From 9e73d1729b078059a2ececb0eca31a30a8616377 Mon Sep 17 00:00:00 2001 From: Naman Agrawal Date: Thu, 5 Sep 2024 17:15:46 -0400 Subject: [PATCH] Add conversation ID header to API call --- .env.sample | 1 + app.py | 1 + backend/settings.py | 1 + frontend/src/api/api.ts | 9 +- frontend/src/api/models.ts | 1 + frontend/src/pages/chat/Chat.tsx | 6 +- static/assets/index-49a94d23.css | 1 + .../{index-a21d054a.js => index-52d61520.js} | 226 +++++++++--------- static/assets/index-52d61520.js.map | 1 + static/assets/index-71eea0dc.css | 1 - static/index.html | 29 ++- 11 files changed, 145 insertions(+), 132 deletions(-) create mode 100644 static/assets/index-49a94d23.css rename static/assets/{index-a21d054a.js => index-52d61520.js} (76%) create mode 100644 static/assets/index-52d61520.js.map delete mode 100644 static/assets/index-71eea0dc.css diff --git a/.env.sample b/.env.sample index ad51840680..46e97cb8cd 100644 --- a/.env.sample +++ b/.env.sample @@ -118,3 +118,4 @@ PROMPTFLOW_RESPONSE_TIMEOUT=120 PROMPTFLOW_REQUEST_FIELD_NAME=query PROMPTFLOW_RESPONSE_FIELD_NAME=reply PROMPTFLOW_CITATIONS_FIELD_NAME=documents +CONVERSATION_ID_HEADER="12345" \ No newline at end of file diff --git a/app.py b/app.py index 7c3a86c646..580b6b7a93 100644 --- a/app.py +++ b/app.py @@ -103,6 +103,7 @@ async def assets(path): "show_chat_history_button": app_settings.ui.show_chat_history_button, }, "sanitize_answer": app_settings.base_settings.sanitize_answer, + "conversation_id_header": app_settings.base_settings.conversation_id_header, } diff --git a/backend/settings.py b/backend/settings.py index dda4492cc5..36886869d4 100644 --- a/backend/settings.py +++ b/backend/settings.py @@ -670,6 +670,7 @@ class _BaseSettings(BaseSettings): auth_enabled: bool = False sanitize_answer: bool = False use_promptflow: bool = False + conversation_id_header: Optional[str] = None class _AppSettings(BaseModel): diff --git a/frontend/src/api/api.ts b/frontend/src/api/api.ts index 8cf34dd591..dd2b079d06 100644 --- a/frontend/src/api/api.ts +++ b/frontend/src/api/api.ts @@ -3,7 +3,11 @@ import { FileType, UploadedFile } from '../custom/fileUploadUtils' import { ChatMessage, Conversation, ConversationRequest, CosmosDBHealth, CosmosDBStatus, UserInfo } from './models' -export async function conversationApi(options: ConversationRequest, abortSignal: AbortSignal): Promise { +export async function conversationApi( + options: ConversationRequest, + abortSignal: AbortSignal, + conversationIdHeader: string | null | undefined +): Promise { const formatContent = (message: any) => { const apiMessage = structuredClone(message) @@ -30,7 +34,8 @@ export async function conversationApi(options: ConversationRequest, abortSignal: const response = await fetch('/conversation', { method: 'POST', headers: { - 'Content-Type': 'application/json' + 'Content-Type': 'application/json', + 'conversation-id': conversationIdHeader ?? '' }, body: JSON.stringify({ messages: options.messages.map(formatContent) diff --git a/frontend/src/api/models.ts b/frontend/src/api/models.ts index d34f9366fe..3dc7a20501 100644 --- a/frontend/src/api/models.ts +++ b/frontend/src/api/models.ts @@ -147,6 +147,7 @@ export type FrontendSettings = { feedback_enabled?: string | null ui?: UI sanitize_answer?: boolean + conversation_id_header?: string } export enum Feedback { diff --git a/frontend/src/pages/chat/Chat.tsx b/frontend/src/pages/chat/Chat.tsx index 0b30469876..e7c20b5848 100644 --- a/frontend/src/pages/chat/Chat.tsx +++ b/frontend/src/pages/chat/Chat.tsx @@ -216,7 +216,11 @@ const Chat = () => { let result = {} as ChatResponse try { - const response = await conversationApi(request, abortController.signal) + const response = await conversationApi( + request, + abortController.signal, + appStateContext?.state.frontendSettings?.conversation_id_header + ) if (response?.body) { const reader = response.body.getReader() diff --git a/static/assets/index-49a94d23.css b/static/assets/index-49a94d23.css new file mode 100644 index 0000000000..f7c800b671 --- /dev/null +++ b/static/assets/index-49a94d23.css @@ -0,0 +1 @@ +._container_17869_1{flex:1;display:flex;flex-direction:column}._chatRoot_17869_7{flex:1;display:flex;margin:0 20px 5px;gap:5px}._chatContainer_17869_17{flex:1;display:flex;flex-direction:column;align-items:center;background:radial-gradient(108.78% 108.78% at 50.02% 19.78%,#ffffff 57.29%,#eef6fe 100%);box-shadow:0 2px 4px #00000024,0 0 2px #0000001f;border-radius:8px;overflow-y:auto;max-height:calc(100vh - 135px)}._chatEmptyState_17869_31{flex-grow:1;display:flex;flex-direction:column;justify-content:center;align-items:center}._chatEmptyStateTitle_17869_39{font-style:normal;font-weight:700;font-size:36px;display:flex;align-items:flex-end;text-align:center;line-height:24px;margin-top:36px;margin-bottom:0}._chatEmptyStateSubtitle_17869_51{margin-top:20px;font-style:normal;font-weight:400;font-size:16px;line-height:150%;align-items:flex-end;text-align:left;letter-spacing:-.01em;color:#616161;max-width:600px;padding:0 10px}._chatIcon_17869_65{height:62px;width:auto;margin-top:36px}._chatMessageStream_17869_71{flex-grow:1;max-width:1028px;width:100%;overflow-y:auto;padding-left:24px;padding-right:24px;display:flex;flex-direction:column;margin-top:24px}._chatMessageUser_17869_83{display:flex;justify-content:flex-end;margin-bottom:12px}._chatMessageUserMessage_17869_89{display:flex;padding:20px;background:#edf5fd;border-radius:8px;box-shadow:0 2px 4px #00000024,0 0 2px #0000001f;font-style:normal;font-weight:400;font-size:14px;line-height:22px;color:#242424;order:0;flex-grow:0;white-space:pre-wrap;word-wrap:break-word;max-width:80%;flex-wrap:wrap}._chatMessageGpt_17869_110{margin-bottom:12px;max-width:80%;display:flex}._chatMessageError_17869_116{padding:20px;border-radius:8px;box-shadow:#b63443 1px 1px 2px,#b63443 0 0 1px;color:#242424;flex:none;order:0;flex-grow:0;max-width:800px;margin-bottom:12px}._chatMessageErrorContent_17869_130{font-family:Segoe UI;font-style:normal;font-weight:400;font-size:14px;line-height:22px;white-space:pre-wrap;word-wrap:break-word;gap:12px;align-items:center}._chatInput_17869_142{position:sticky;flex:0 0 100px;padding:12px 24px 24px;width:calc(100% - 140px);max-width:1028px;margin-bottom:50px;margin-top:8px}._clearChatBroom_17869_155{box-sizing:border-box;display:flex;flex-direction:row;justify-content:center;align-items:center;position:absolute;width:40px;height:40px;left:7px;top:13px;color:#fff;border-radius:4px;z-index:1}._clearChatBroomNoCosmos_17869_171,._newChatIcon_17869_187{box-sizing:border-box;display:flex;flex-direction:row;justify-content:center;align-items:center;position:absolute;width:40px;height:40px;left:7px;top:66px;color:#fff;border-radius:4px;z-index:1}._stopGeneratingContainer_17869_203{box-sizing:border-box;display:flex;flex-direction:row;justify-content:center;align-items:center;padding:5px 16px;gap:4px;position:absolute;width:161px;height:32px;left:calc(50% - 54.7px);bottom:116px;border:1px solid #d1d1d1;border-radius:16px}._stopGeneratingIcon_17869_220{width:14px;height:14px;color:#424242}._stopGeneratingText_17869_226{width:103px;height:20px;font-style:normal;font-weight:600;font-size:14px;line-height:20px;display:flex;align-items:center;color:#242424;flex:none;order:0;flex-grow:0}._citationPanel_17869_241{display:flex;flex-direction:column;align-items:flex-start;padding:16px;gap:8px;background:#ffffff;box-shadow:0 2px 4px #00000024,0 0 2px #0000001f;border-radius:8px;flex:auto;order:0;align-self:stretch;flex-grow:.3;max-width:30%;overflow-y:scroll;max-height:calc(100vh - 100px)}._citationPanelHeaderContainer_17869_261{width:100%}._citationPanelHeader_17869_261{font-style:normal;font-weight:600;font-size:18px;line-height:24px;color:#000;flex:none;order:0;flex-grow:0}._citationPanelDismiss_17869_276{width:18px;height:18px;color:#424242}._citationPanelDismiss_17869_276:hover{background-color:#d1d1d1;cursor:pointer}._citationPanelTitle_17869_287{font-style:normal;font-weight:600;font-size:16px;line-height:22px;color:#323130;margin-top:12px;margin-bottom:12px}._citationPanelTitle_17869_287:hover{text-decoration:underline;cursor:pointer}._citationPanelContent_17869_302{font-style:normal;font-weight:400;font-size:14px;line-height:20px;color:#000;flex:none;order:1;align-self:stretch;flex-grow:0}._exectResultList_17869_314{display:flex;flex-direction:column;gap:2px;border-bottom:1px solid #ccc;margin-top:12px}._exectResultList_17869_314:first-child{margin-top:0}._exectResultList_17869_314:last-child{border-bottom:none}._exectResultList_17869_314>p{display:flex;flex-direction:row;gap:4px;margin:0 0 16px}._exectResultList_17869_314>span{font-weight:600}a{padding-left:5px;padding-right:5px}._viewSourceButton_17869_347{font-style:normal;font-weight:600;font-size:12px;line-height:16px;color:#115ea3;flex-direction:row;align-items:center;padding:4px 6px;gap:4px;border:1px solid #d1d1d1;border-radius:4px}._viewSourceButton_17869_347:hover{text-decoration:underline;cursor:pointer}@media (max-width: 480px){._chatInput_17869_142{width:90%;max-width:90%}._newChatIcon_17869_187,._clearChatBroom_17869_155,._clearChatBroomNoCosmos_17869_171{left:0px}._chatEmptyStateTitle_17869_39{line-height:36px}._citationPanel_17869_241{max-width:100%}}._chatEmptyStateSubtitle_17869_51 a{padding:0}._chatMessageUserAttachment_17869_397{flex-basis:100%}._userAttachmentDisclaimer_17869_401{font-size:12px;color:#707070;flex-basis:100%;margin-top:10px}._answerContainer_1qm4u_1{display:flex;flex-direction:column;align-items:flex-start;padding:8.1285px;gap:5.42px;background:#ffffff;box-shadow:0 1px 2px #00000024,0 0 2px #0000001f;border-radius:5.419px}._answerText_1qm4u_14{font-style:normal;font-weight:400;font-size:14px;line-height:20px;color:#323130;flex:none;order:1;align-self:stretch;flex-grow:0;margin:11px;white-space:normal;word-wrap:break-word;max-width:800px;overflow-x:auto}._answerHeader_1qm4u_31{position:relative}._answerFooter_1qm4u_35{display:flex;flex-flow:row nowrap;width:100%;height:auto;box-sizing:border-box;justify-content:space-between}._answerDisclaimerContainer_1qm4u_44{justify-content:center;display:flex}._answerDisclaimer_1qm4u_44{font-style:normal;font-weight:400;font-size:12px;line-height:16px;display:flex;align-items:center;text-align:center;color:#707070;flex:none;order:1;flex-grow:0}._citationWrapper_1qm4u_64{margin-top:8;display:flex;flex-flow:wrap column;max-height:150px;gap:4px}._citationContainer_1qm4u_72{margin-left:10px;font-style:normal;font-weight:600;font-size:12px;line-height:16px;color:#115ea3;display:flex;flex-direction:row;align-items:center;padding:4px 6px;gap:4px;border:1px solid #d1d1d1;border-radius:4px}._citationContainer_1qm4u_72:hover{text-decoration:underline;cursor:pointer}._citation_1qm4u_64{box-sizing:border-box;display:inline-flex;flex-direction:column;justify-content:center;align-items:center;padding:0;width:14px;height:14px;border:1px solid #e0e0e0;border-radius:4px;flex:none;flex-grow:0;z-index:2;font-style:normal;font-weight:600;font-size:10px;line-height:14px;text-align:center;color:#424242;cursor:pointer}._citation_1qm4u_64:hover{text-decoration:underline;cursor:pointer}._accordionIcon_1qm4u_122{display:inline-flex;flex-direction:row;justify-content:center;align-items:center;padding:0;margin-top:4px;color:#616161;font-size:10px}._accordionIcon_1qm4u_122:hover{cursor:pointer}._accordionTitle_1qm4u_137{margin-right:5px;margin-left:10px;font-style:normal;font-weight:400;font-size:12px;line-height:16px;display:flex;align-items:center;color:#616161}._accordionTitle_1qm4u_137:hover{cursor:pointer}._clickableSup_1qm4u_153{box-sizing:border-box;display:inline-flex;flex-direction:column;justify-content:center;align-items:center;padding:0;width:14px;height:14px;border:1px solid #e0e0e0;border-radius:4px;flex:none;order:2;flex-grow:0;z-index:2;font-style:normal;font-weight:600;font-size:10px;line-height:14px;text-align:center;color:#424242;cursor:pointer}._clickableSup_1qm4u_153:hover{text-decoration:underline;cursor:pointer}sup{font-size:10px;line-height:10px}@media (max-width: 480px){._answerFooter_1qm4u_35{flex-direction:column-reverse}._citationWrapper_1qm4u_64{max-height:max-content}._citationContainer_1qm4u_72{margin-left:0}._answerDisclaimer_1qm4u_44{margin-bottom:5px}}._questionInputContainer_40emw_1{height:145px;position:absolute;left:6.5%;right:0%;top:0%;bottom:0%;background:#ffffff;box-shadow:0 8px 16px #00000024,0 0 2px #0000001f;border-radius:8px}._questionInputTextArea_40emw_15{width:100%;line-height:40px;padding:10px 12px}._questionInputSendButtonContainer_40emw_24{z-index:2}._questionInputSendButton_40emw_24{width:24px;height:23px;cursor:pointer}._questionInputSendButtonDisabled_40emw_34{width:24px;height:23px;background:none;color:#424242}._questionInputBottomBorder_40emw_42{position:absolute;width:100%;height:4px;left:0%;bottom:0%;background:radial-gradient(106.04% 106.06% at 100.1% 90.19%,#0f6cbd 33.63%,#8dddd8 100%);border-bottom-left-radius:8px;border-bottom-right-radius:8px}._questionInputOptionsButton_40emw_53{cursor:pointer;width:27px;height:30px}@media (max-width: 480px){._questionInputContainer_40emw_1{left:16.5%}}._fileInput_40emw_65{z-index:1}input._fileInput_40emw_65::file-selector-button{font-weight:700;color:#005ea2;padding:12px 20px;border:2px solid #005ea2;border-radius:4px;background-color:#fff;cursor:pointer;margin-right:12px!important;font-size:16px!important;font-family:Segoe UI,"Segoe UI Web (West European)",Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif!important}._errorText_40emw_90{position:absolute;top:-50px;z-index:1;background-color:#f4e3db;border-left:8px solid #d54309;padding:8px 14px;font-size:16px;line-height:24px;width:100%;display:flex;gap:12px}._textAreaOverrides_40emw_104{font-size:16px!important}._questionInputChatButtons_40emw_108{display:flex;justify-content:space-between;align-items:center;width:100%;padding-right:16px;padding-left:16px}._container_1epg5_1{max-height:calc(100vh - 100px);width:300px}._listContainer_1epg5_6{overflow:hidden auto;max-height:calc(90vh - 105px)}._itemCell_1epg5_11{max-width:270px;min-height:32px;cursor:pointer;padding:5px 5px 5px 15px;box-sizing:border-box;border-radius:5px;display:flex}._itemCell_1epg5_11:hover{background:#e6e6e6}._itemButton_1epg5_28{display:flex;justify-content:center;align-items:center;width:28px;height:28px;border:1px solid #d1d1d1;border-radius:5px;background-color:#fff;margin:auto 2.5px;cursor:pointer}._itemButton_1epg5_28:hover{background-color:#e6e6e6}._chatGroup_1epg5_45{margin:auto 5px;width:100%}._spinnerContainer_1epg5_50{display:flex;justify-content:center;align-items:center;height:50px}._chatList_1epg5_57{width:100%}._chatMonth_1epg5_61{font-size:14px;font-weight:600;margin-bottom:5px;padding-left:15px}._chatTitle_1epg5_68{width:80%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}@media (max-width: 480px){._container_1epg5_1{width:100%}}._shareButtonRoot_1ep5g_1{width:86px;height:32px;border-radius:4px;background:radial-gradient(109.81% 107.82% at 100.1% 90.19%,#0f6cbd 33.63%,#2d87c3 70.31%,#8dddd8 100%);padding:5px 12px}._shareButtonRoot_1ep5g_1:hover{background:linear-gradient(135deg,#0f6cbd 0%,#2d87c3 51.04%,#8dddd8 100%)}._shareButtonRoot_1ep5g_1 span{font-weight:600;font-size:14px;line-height:20px;color:#fff}._shareButtonRoot_1ep5g_1 i,._shareButtonRoot_1ep5g_1:hover i{color:#fff!important}._historyButtonRoot_1ep5g_25{width:180px;border:1px solid #d1d1d1}._historyButtonRoot_1ep5g_25:hover,._historyButtonRoot_1ep5g_25:active{border:1px solid #d1d1d1}@media (max-width: 480px){._shareButtonRoot_1ep5g_1{width:auto;padding:5px 8px}._historyButtonRoot_1ep5g_25{width:auto;padding:0 8px}}._layout_1e0ns_1{display:flex;flex-direction:column;height:100%}._header_1e0ns_7{background-color:#f2f2f2}._headerContainer_1e0ns_11{display:flex;justify-content:left;align-items:center}._headerTitleContainer_1e0ns_17{display:flex;align-items:center;margin-left:14px;text-decoration:none}._headerTitle_1e0ns_17{font-style:normal;font-weight:600;font-size:20px;line-height:28px;display:flex;align-items:flex-end;color:#242424}._headerIcon_1e0ns_34{height:32px;width:auto;margin-left:36px}._shareButtonContainer_1e0ns_40{display:flex;flex-direction:row;justify-content:center;margin-right:20px}._shareButton_1e0ns_40{color:#fff}._shareButtonText_1e0ns_51{font-style:normal;font-weight:600;font-size:14px;line-height:20px;display:flex;align-items:center;color:#fff}._urlTextBox_1e0ns_61{font-style:normal;font-weight:400;font-size:14px;line-height:20px;color:#707070;border:1px solid #d1d1d1;border-radius:4px}._copyButtonContainer_1e0ns_71{box-sizing:border-box;display:flex;flex-direction:row;justify-content:center;align-items:center;padding:5px 12px;gap:4px;background:#ffffff;border:1px solid #d1d1d1;border-radius:4px}._copyButtonContainer_1e0ns_71:hover{cursor:pointer;background:#d1d1d1}._copyButton_1e0ns_71{color:#424242}._copyButtonText_1e0ns_93{font-style:normal;font-weight:600;font-size:14px;line-height:20px;display:flex;align-items:center;color:#242424}@media (max-width: 480px){._headerTitleContainer_1e0ns_17{margin-left:4px}._headerIcon_1e0ns_34{margin-left:26px}}*{box-sizing:border-box}html,body{height:100%;margin:0;padding:0}html{background:#f2f2f2;font-family:Segoe UI,"Segoe UI Web (West European)",Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#root{height:100%}.feedback-container{padding:12px 30px!important}.feedback-text{font-size:16px!important;font-weight:700px!important}.feedback-button{padding:12px 20px!important;font-weight:700!important}.feedback-button:focus{outline-offset:4px!important;outline:4px solid #1b1b1b!important}.confirmation-text{font-size:16px!important} diff --git a/static/assets/index-a21d054a.js b/static/assets/index-52d61520.js similarity index 76% rename from static/assets/index-a21d054a.js rename to static/assets/index-52d61520.js index 039f1b7078..f6aecdf90e 100644 --- a/static/assets/index-a21d054a.js +++ b/static/assets/index-52d61520.js @@ -22,7 +22,7 @@ var VS=Object.defineProperty;var WS=(a,i,_e)=>i in a?VS(a,i,{enumerable:!0,confi * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(a){function i(wt,ct){var It=wt.length;wt.push(ct);e:for(;0>>1,Ot=wt[At];if(0>>1;AtLt(Dt,It))NtLt($t,Dt)?(wt[At]=$t,wt[Nt]=It,At=Nt):(wt[At]=Dt,wt[zt]=It,At=zt);else if(NtLt($t,It))wt[At]=$t,wt[Nt]=It,At=Nt;else break e}}return ct}function Lt(wt,ct){var It=wt.sortIndex-ct.sortIndex;return It!==0?It:wt.id-ct.id}if(typeof performance=="object"&&typeof performance.now=="function"){var Gt=performance;a.unstable_now=function(){return Gt.now()}}else{var Ct=Date,Rt=Ct.now();a.unstable_now=function(){return Ct.now()-Rt}}var o=[],it=[],xt=1,et=null,Et=3,mt=!1,ut=!1,ht=!1,j=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,rt=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function tt(wt){for(var ct=_e(it);ct!==null;){if(ct.callback===null)pt(it);else if(ct.startTime<=wt)pt(it),ct.sortIndex=ct.expirationTime,i(o,ct);else break;ct=_e(it)}}function st(wt){if(ht=!1,tt(wt),!ut)if(_e(o)!==null)ut=!0,Tt(ot);else{var ct=_e(it);ct!==null&&kt(st,ct.startTime-wt)}}function ot(wt,ct){ut=!1,ht&&(ht=!1,_(dt),dt=-1),mt=!0;var It=Et;try{for(tt(ct),et=_e(o);et!==null&&(!(et.expirationTime>ct)||wt&&!at());){var At=et.callback;if(typeof At=="function"){et.callback=null,Et=et.priorityLevel;var Ot=At(et.expirationTime<=ct);ct=a.unstable_now(),typeof Ot=="function"?et.callback=Ot:et===_e(o)&&pt(o),tt(ct)}else pt(o);et=_e(o)}if(et!==null)var Pt=!0;else{var zt=_e(it);zt!==null&&kt(st,zt.startTime-ct),Pt=!1}return Pt}finally{et=null,Et=It,mt=!1}}var nt=!1,vt=null,dt=-1,bt=5,ft=-1;function at(){return!(a.unstable_now()-ftwt||125At?(wt.sortIndex=It,i(it,wt),_e(o)===null&&wt===_e(it)&&(ht?(_(dt),dt=-1):ht=!0,kt(st,It-At))):(wt.sortIndex=Ot,i(o,wt),ut||mt||(ut=!0,Tt(ot))),wt},a.unstable_shouldYield=at,a.unstable_wrapCallback=function(wt){var ct=Et;return function(){var It=Et;Et=ct;try{return wt.apply(this,arguments)}finally{Et=It}}}})(scheduler_production_min);(function(a){a.exports=scheduler_production_min})(scheduler);/** + */(function(a){function i(wt,ct){var It=wt.length;wt.push(ct);e:for(;0>>1,Ot=wt[At];if(0>>1;AtLt(Dt,It))NtLt($t,Dt)?(wt[At]=$t,wt[Nt]=It,At=Nt):(wt[At]=Dt,wt[zt]=It,At=zt);else if(NtLt($t,It))wt[At]=$t,wt[Nt]=It,At=Nt;else break e}}return ct}function Lt(wt,ct){var It=wt.sortIndex-ct.sortIndex;return It!==0?It:wt.id-ct.id}if(typeof performance=="object"&&typeof performance.now=="function"){var Gt=performance;a.unstable_now=function(){return Gt.now()}}else{var Ct=Date,Rt=Ct.now();a.unstable_now=function(){return Ct.now()-Rt}}var o=[],it=[],xt=1,et=null,Tt=3,yt=!1,ut=!1,ht=!1,j=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,rt=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function tt(wt){for(var ct=_e(it);ct!==null;){if(ct.callback===null)pt(it);else if(ct.startTime<=wt)pt(it),ct.sortIndex=ct.expirationTime,i(o,ct);else break;ct=_e(it)}}function st(wt){if(ht=!1,tt(wt),!ut)if(_e(o)!==null)ut=!0,Et(ot);else{var ct=_e(it);ct!==null&&kt(st,ct.startTime-wt)}}function ot(wt,ct){ut=!1,ht&&(ht=!1,_(dt),dt=-1),yt=!0;var It=Tt;try{for(tt(ct),et=_e(o);et!==null&&(!(et.expirationTime>ct)||wt&&!at());){var At=et.callback;if(typeof At=="function"){et.callback=null,Tt=et.priorityLevel;var Ot=At(et.expirationTime<=ct);ct=a.unstable_now(),typeof Ot=="function"?et.callback=Ot:et===_e(o)&&pt(o),tt(ct)}else pt(o);et=_e(o)}if(et!==null)var Pt=!0;else{var zt=_e(it);zt!==null&&kt(st,zt.startTime-ct),Pt=!1}return Pt}finally{et=null,Tt=It,yt=!1}}var nt=!1,vt=null,dt=-1,bt=5,ft=-1;function at(){return!(a.unstable_now()-ftwt||125At?(wt.sortIndex=It,i(it,wt),_e(o)===null&&wt===_e(it)&&(ht?(_(dt),dt=-1):ht=!0,kt(st,It-At))):(wt.sortIndex=Ot,i(o,wt),ut||yt||(ut=!0,Et(ot))),wt},a.unstable_shouldYield=at,a.unstable_wrapCallback=function(wt){var ct=Tt;return function(){var It=Tt;Tt=ct;try{return wt.apply(this,arguments)}finally{Tt=It}}}})(scheduler_production_min);(function(a){a.exports=scheduler_production_min})(scheduler);/** * @license React * react-dom.production.min.js * @@ -34,10 +34,10 @@ var VS=Object.defineProperty;var WS=(a,i,_e)=>i in a?VS(a,i,{enumerable:!0,confi `+La+a}var Na=!1;function Oa(a,i){if(!a||Na)return"";Na=!0;var _e=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(i)if(i=function(){throw Error()},Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(it){var pt=it}Reflect.construct(a,[],i)}else{try{i.call()}catch(it){pt=it}a.call(i.prototype)}else{try{throw Error()}catch(it){pt=it}a()}}catch(it){if(it&&pt&&typeof it.stack=="string"){for(var Lt=it.stack.split(` `),Gt=pt.stack.split(` `),Ct=Lt.length-1,Rt=Gt.length-1;1<=Ct&&0<=Rt&&Lt[Ct]!==Gt[Rt];)Rt--;for(;1<=Ct&&0<=Rt;Ct--,Rt--)if(Lt[Ct]!==Gt[Rt]){if(Ct!==1||Rt!==1)do if(Ct--,Rt--,0>Rt||Lt[Ct]!==Gt[Rt]){var o=` -`+Lt[Ct].replace(" at new "," at ");return a.displayName&&o.includes("")&&(o=o.replace("",a.displayName)),o}while(1<=Ct&&0<=Rt);break}}}finally{Na=!1,Error.prepareStackTrace=_e}return(a=a?a.displayName||a.name:"")?Ma(a):""}function Pa(a){switch(a.tag){case 5:return Ma(a.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return a=Oa(a.type,!1),a;case 11:return a=Oa(a.type.render,!1),a;case 1:return a=Oa(a.type,!0),a;default:return""}}function Qa(a){if(a==null)return null;if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){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 a=="object")switch(a.$$typeof){case Ca:return(a.displayName||"Context")+".Consumer";case Ba:return(a._context.displayName||"Context")+".Provider";case Da:var i=a.render;return a=a.displayName,a||(a=i.displayName||i.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case Ga:return i=a.displayName||null,i!==null?i:Qa(a.type)||"Memo";case Ha:i=a._payload,a=a._init;try{return Qa(a(i))}catch{}}return null}function Ra(a){var i=a.type;switch(a.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return a=i.render,a=a.displayName||a.name||"",i.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(i);case 8:return i===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 i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function Sa(a){switch(typeof a){case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function Ta(a){var i=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Ua(a){var i=Ta(a)?"checked":"value",_e=Object.getOwnPropertyDescriptor(a.constructor.prototype,i),pt=""+a[i];if(!a.hasOwnProperty(i)&&typeof _e<"u"&&typeof _e.get=="function"&&typeof _e.set=="function"){var Lt=_e.get,Gt=_e.set;return Object.defineProperty(a,i,{configurable:!0,get:function(){return Lt.call(this)},set:function(Ct){pt=""+Ct,Gt.call(this,Ct)}}),Object.defineProperty(a,i,{enumerable:_e.enumerable}),{getValue:function(){return pt},setValue:function(Ct){pt=""+Ct},stopTracking:function(){a._valueTracker=null,delete a[i]}}}}function Va(a){a._valueTracker||(a._valueTracker=Ua(a))}function Wa(a){if(!a)return!1;var i=a._valueTracker;if(!i)return!0;var _e=i.getValue(),pt="";return a&&(pt=Ta(a)?a.checked?"true":"false":a.value),a=pt,a!==_e?(i.setValue(a),!0):!1}function Xa(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}function Ya(a,i){var _e=i.checked;return A$1({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:_e??a._wrapperState.initialChecked})}function Za(a,i){var _e=i.defaultValue==null?"":i.defaultValue,pt=i.checked!=null?i.checked:i.defaultChecked;_e=Sa(i.value!=null?i.value:_e),a._wrapperState={initialChecked:pt,initialValue:_e,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function ab(a,i){i=i.checked,i!=null&&ta(a,"checked",i,!1)}function bb(a,i){ab(a,i);var _e=Sa(i.value),pt=i.type;if(_e!=null)pt==="number"?(_e===0&&a.value===""||a.value!=_e)&&(a.value=""+_e):a.value!==""+_e&&(a.value=""+_e);else if(pt==="submit"||pt==="reset"){a.removeAttribute("value");return}i.hasOwnProperty("value")?cb(a,i.type,_e):i.hasOwnProperty("defaultValue")&&cb(a,i.type,Sa(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(a.defaultChecked=!!i.defaultChecked)}function db(a,i,_e){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var pt=i.type;if(!(pt!=="submit"&&pt!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+a._wrapperState.initialValue,_e||i===a.value||(a.value=i),a.defaultValue=i}_e=a.name,_e!==""&&(a.name=""),a.defaultChecked=!!a._wrapperState.initialChecked,_e!==""&&(a.name=_e)}function cb(a,i,_e){(i!=="number"||Xa(a.ownerDocument)!==a)&&(_e==null?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+_e&&(a.defaultValue=""+_e))}var eb=Array.isArray;function fb(a,i,_e,pt){if(a=a.options,i){i={};for(var Lt=0;Lt<_e.length;Lt++)i["$"+_e[Lt]]=!0;for(_e=0;_e"+i.valueOf().toString()+"",i=mb.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;i.firstChild;)a.appendChild(i.firstChild)}});function ob(a,i){if(i){var _e=a.firstChild;if(_e&&_e===a.lastChild&&_e.nodeType===3){_e.nodeValue=i;return}}a.textContent=i}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(a){qb.forEach(function(i){i=i+a.charAt(0).toUpperCase()+a.substring(1),pb[i]=pb[a]})});function rb(a,i,_e){return i==null||typeof i=="boolean"||i===""?"":_e||typeof i!="number"||i===0||pb.hasOwnProperty(a)&&pb[a]?(""+i).trim():i+"px"}function sb(a,i){a=a.style;for(var _e in i)if(i.hasOwnProperty(_e)){var pt=_e.indexOf("--")===0,Lt=rb(_e,i[_e],pt);_e==="float"&&(_e="cssFloat"),pt?a.setProperty(_e,Lt):a[_e]=Lt}}var tb=A$1({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(a,i){if(i){if(tb[a]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(p$1(137,a));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(p$1(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(p$1(61))}if(i.style!=null&&typeof i.style!="object")throw Error(p$1(62))}}function vb(a,i){if(a.indexOf("-")===-1)return typeof i.is=="string";switch(a){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(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var yb=null,zb=null,Ab=null;function Bb(a){if(a=Cb(a)){if(typeof yb!="function")throw Error(p$1(280));var i=a.stateNode;i&&(i=Db(i),yb(a.stateNode,a.type,i))}}function Eb(a){zb?Ab?Ab.push(a):Ab=[a]:zb=a}function Fb(){if(zb){var a=zb,i=Ab;if(Ab=zb=null,Bb(a),i)for(a=0;a>>=0,a===0?32:31-(pc(a)/qc|0)|0}var rc=64,sc=4194304;function tc(a){switch(a&-a){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 a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return a}}function uc(a,i){var _e=a.pendingLanes;if(_e===0)return 0;var pt=0,Lt=a.suspendedLanes,Gt=a.pingedLanes,Ct=_e&268435455;if(Ct!==0){var Rt=Ct&~Lt;Rt!==0?pt=tc(Rt):(Gt&=Ct,Gt!==0&&(pt=tc(Gt)))}else Ct=_e&~Lt,Ct!==0?pt=tc(Ct):Gt!==0&&(pt=tc(Gt));if(pt===0)return 0;if(i!==0&&i!==pt&&!(i&Lt)&&(Lt=pt&-pt,Gt=i&-i,Lt>=Gt||Lt===16&&(Gt&4194240)!==0))return i;if(pt&4&&(pt|=_e&16),i=a.entangledLanes,i!==0)for(a=a.entanglements,i&=pt;0_e;_e++)i.push(a);return i}function Ac(a,i,_e){a.pendingLanes|=i,i!==536870912&&(a.suspendedLanes=0,a.pingedLanes=0),a=a.eventTimes,i=31-oc(i),a[i]=_e}function Bc(a,i){var _e=a.pendingLanes&~i;a.pendingLanes=i,a.suspendedLanes=0,a.pingedLanes=0,a.expiredLanes&=i,a.mutableReadLanes&=i,a.entangledLanes&=i,i=a.entanglements;var pt=a.eventTimes;for(a=a.expirationTimes;0<_e;){var Lt=31-oc(_e),Gt=1<=be),ee=String.fromCharCode(32),fe=!1;function ge(a,i){switch(a){case"keyup":return $d.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var ie=!1;function je(a,i){switch(a){case"compositionend":return he(i);case"keypress":return i.which!==32?null:(fe=!0,ee);case"textInput":return a=i.data,a===ee&&fe?null:a;default:return null}}function ke(a,i){if(ie)return a==="compositionend"||!ae&&ge(a,i)?(a=nd(),md=ld=kd=null,ie=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1=i)return{node:_e,offset:i-a};a=pt}e:{for(;_e;){if(_e.nextSibling){_e=_e.nextSibling;break e}_e=_e.parentNode}_e=void 0}_e=Je(_e)}}function Le(a,i){return a&&i?a===i?!0:a&&a.nodeType===3?!1:i&&i.nodeType===3?Le(a,i.parentNode):"contains"in a?a.contains(i):a.compareDocumentPosition?!!(a.compareDocumentPosition(i)&16):!1:!1}function Me(){for(var a=window,i=Xa();i instanceof a.HTMLIFrameElement;){try{var _e=typeof i.contentWindow.location.href=="string"}catch{_e=!1}if(_e)a=i.contentWindow;else break;i=Xa(a.document)}return i}function Ne(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i&&(i==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||i==="textarea"||a.contentEditable==="true")}function Oe(a){var i=Me(),_e=a.focusedElem,pt=a.selectionRange;if(i!==_e&&_e&&_e.ownerDocument&&Le(_e.ownerDocument.documentElement,_e)){if(pt!==null&&Ne(_e)){if(i=pt.start,a=pt.end,a===void 0&&(a=i),"selectionStart"in _e)_e.selectionStart=i,_e.selectionEnd=Math.min(a,_e.value.length);else if(a=(i=_e.ownerDocument||document)&&i.defaultView||window,a.getSelection){a=a.getSelection();var Lt=_e.textContent.length,Gt=Math.min(pt.start,Lt);pt=pt.end===void 0?Gt:Math.min(pt.end,Lt),!a.extend&&Gt>pt&&(Lt=pt,pt=Gt,Gt=Lt),Lt=Ke(_e,Gt);var Ct=Ke(_e,pt);Lt&&Ct&&(a.rangeCount!==1||a.anchorNode!==Lt.node||a.anchorOffset!==Lt.offset||a.focusNode!==Ct.node||a.focusOffset!==Ct.offset)&&(i=i.createRange(),i.setStart(Lt.node,Lt.offset),a.removeAllRanges(),Gt>pt?(a.addRange(i),a.extend(Ct.node,Ct.offset)):(i.setEnd(Ct.node,Ct.offset),a.addRange(i)))}}for(i=[],a=_e;a=a.parentNode;)a.nodeType===1&&i.push({element:a,left:a.scrollLeft,top:a.scrollTop});for(typeof _e.focus=="function"&&_e.focus(),_e=0;_e=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;function Ue(a,i,_e){var pt=_e.window===_e?_e.document:_e.nodeType===9?_e:_e.ownerDocument;Te||Qe==null||Qe!==Xa(pt)||(pt=Qe,"selectionStart"in pt&&Ne(pt)?pt={start:pt.selectionStart,end:pt.selectionEnd}:(pt=(pt.ownerDocument&&pt.ownerDocument.defaultView||window).getSelection(),pt={anchorNode:pt.anchorNode,anchorOffset:pt.anchorOffset,focusNode:pt.focusNode,focusOffset:pt.focusOffset}),Se&&Ie(Se,pt)||(Se=pt,pt=oe(Re,"onSelect"),0Tf||(a.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G$1(a,i){Tf++,Sf[Tf]=a.current,a.current=i}var Vf={},H$1=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(a,i){var _e=a.type.contextTypes;if(!_e)return Vf;var pt=a.stateNode;if(pt&&pt.__reactInternalMemoizedUnmaskedChildContext===i)return pt.__reactInternalMemoizedMaskedChildContext;var Lt={},Gt;for(Gt in _e)Lt[Gt]=i[Gt];return pt&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=i,a.__reactInternalMemoizedMaskedChildContext=Lt),Lt}function Zf(a){return a=a.childContextTypes,a!=null}function $f(){E$1(Wf),E$1(H$1)}function ag(a,i,_e){if(H$1.current!==Vf)throw Error(p$1(168));G$1(H$1,i),G$1(Wf,_e)}function bg(a,i,_e){var pt=a.stateNode;if(i=i.childContextTypes,typeof pt.getChildContext!="function")return _e;pt=pt.getChildContext();for(var Lt in pt)if(!(Lt in i))throw Error(p$1(108,Ra(a)||"Unknown",Lt));return A$1({},_e,pt)}function cg(a){return a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Vf,Xf=H$1.current,G$1(H$1,a),G$1(Wf,Wf.current),!0}function dg(a,i,_e){var pt=a.stateNode;if(!pt)throw Error(p$1(169));_e?(a=bg(a,i,Xf),pt.__reactInternalMemoizedMergedChildContext=a,E$1(Wf),E$1(H$1),G$1(H$1,a)):E$1(Wf),G$1(Wf,_e)}var eg=null,fg=!1,gg=!1;function hg(a){eg===null?eg=[a]:eg.push(a)}function ig(a){fg=!0,hg(a)}function jg(){if(!gg&&eg!==null){gg=!0;var a=0,i=C$1;try{var _e=eg;for(C$1=1;a<_e.length;a++){var pt=_e[a];do pt=pt(!0);while(pt!==null)}eg=null,fg=!1}catch(Lt){throw eg!==null&&(eg=eg.slice(a+1)),ac(fc,jg),Lt}finally{C$1=i,gg=!1}}return null}var kg=[],lg=0,mg=null,ng=0,og=[],pg=0,qg=null,rg=1,sg="";function tg(a,i){kg[lg++]=ng,kg[lg++]=mg,mg=a,ng=i}function ug(a,i,_e){og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,qg=a;var pt=rg;a=sg;var Lt=32-oc(pt)-1;pt&=~(1<>=Ct,Lt-=Ct,rg=1<<32-oc(i)+Lt|_e<dt?(bt=vt,vt=null):bt=vt.sibling;var ft=Et(_,vt,tt[dt],st);if(ft===null){vt===null&&(vt=bt);break}a&&vt&&ft.alternate===null&&i(_,vt),rt=Gt(ft,rt,dt),nt===null?ot=ft:nt.sibling=ft,nt=ft,vt=bt}if(dt===tt.length)return _e(_,vt),I$1&&tg(_,dt),ot;if(vt===null){for(;dtdt?(bt=vt,vt=null):bt=vt.sibling;var at=Et(_,vt,ft.value,st);if(at===null){vt===null&&(vt=bt);break}a&&vt&&at.alternate===null&&i(_,vt),rt=Gt(at,rt,dt),nt===null?ot=at:nt.sibling=at,nt=at,vt=bt}if(ft.done)return _e(_,vt),I$1&&tg(_,dt),ot;if(vt===null){for(;!ft.done;dt++,ft=tt.next())ft=et(_,ft.value,st),ft!==null&&(rt=Gt(ft,rt,dt),nt===null?ot=ft:nt.sibling=ft,nt=ft);return I$1&&tg(_,dt),ot}for(vt=pt(_,vt);!ft.done;dt++,ft=tt.next())ft=mt(vt,_,dt,ft.value,st),ft!==null&&(a&&ft.alternate!==null&&vt.delete(ft.key===null?dt:ft.key),rt=Gt(ft,rt,dt),nt===null?ot=ft:nt.sibling=ft,nt=ft);return a&&vt.forEach(function(yt){return i(_,yt)}),I$1&&tg(_,dt),ot}function j(_,rt,tt,st){if(typeof tt=="object"&&tt!==null&&tt.type===ya&&tt.key===null&&(tt=tt.props.children),typeof tt=="object"&&tt!==null){switch(tt.$$typeof){case va:e:{for(var ot=tt.key,nt=rt;nt!==null;){if(nt.key===ot){if(ot=tt.type,ot===ya){if(nt.tag===7){_e(_,nt.sibling),rt=Lt(nt,tt.props.children),rt.return=_,_=rt;break e}}else if(nt.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===Ha&&uh(ot)===nt.type){_e(_,nt.sibling),rt=Lt(nt,tt.props),rt.ref=sh(_,nt,tt),rt.return=_,_=rt;break e}_e(_,nt);break}else i(_,nt);nt=nt.sibling}tt.type===ya?(rt=Ah(tt.props.children,_.mode,st,tt.key),rt.return=_,_=rt):(st=yh(tt.type,tt.key,tt.props,null,_.mode,st),st.ref=sh(_,rt,tt),st.return=_,_=st)}return Ct(_);case wa:e:{for(nt=tt.key;rt!==null;){if(rt.key===nt)if(rt.tag===4&&rt.stateNode.containerInfo===tt.containerInfo&&rt.stateNode.implementation===tt.implementation){_e(_,rt.sibling),rt=Lt(rt,tt.children||[]),rt.return=_,_=rt;break e}else{_e(_,rt);break}else i(_,rt);rt=rt.sibling}rt=zh(tt,_.mode,st),rt.return=_,_=rt}return Ct(_);case Ha:return nt=tt._init,j(_,rt,nt(tt._payload),st)}if(eb(tt))return ut(_,rt,tt,st);if(Ka(tt))return ht(_,rt,tt,st);th(_,tt)}return typeof tt=="string"&&tt!==""||typeof tt=="number"?(tt=""+tt,rt!==null&&rt.tag===6?(_e(_,rt.sibling),rt=Lt(rt,tt),rt.return=_,_=rt):(_e(_,rt),rt=xh(tt,_.mode,st),rt.return=_,_=rt),Ct(_)):_e(_,rt)}return j}var Bh=vh(!0),Ch=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(a){if(a===Dh)throw Error(p$1(174));return a}function Ih(a,i){switch(G$1(Gh,i),G$1(Fh,a),G$1(Eh,Dh),a=i.nodeType,a){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:lb(null,"");break;default:a=a===8?i.parentNode:i,i=a.namespaceURI||null,a=a.tagName,i=lb(i,a)}E$1(Eh),G$1(Eh,i)}function Jh(){E$1(Eh),E$1(Fh),E$1(Gh)}function Kh(a){Hh(Gh.current);var i=Hh(Eh.current),_e=lb(i,a.type);i!==_e&&(G$1(Fh,a),G$1(Eh,_e))}function Lh(a){Fh.current===a&&(E$1(Eh),E$1(Fh))}var M=Uf(0);function Mh(a){for(var i=a;i!==null;){if(i.tag===13){var _e=i.memoizedState;if(_e!==null&&(_e=_e.dehydrated,_e===null||_e.data==="$?"||_e.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if(i.flags&128)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break;for(;i.sibling===null;){if(i.return===null||i.return===a)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Nh=[];function Oh(){for(var a=0;a_e?_e:4,a(!0);var pt=Qh.transition;Qh.transition={};try{a(!1),i()}finally{C$1=_e,Qh.transition=pt}}function Fi(){return di().memoizedState}function Gi(a,i,_e){var pt=lh(a);if(_e={lane:pt,action:_e,hasEagerState:!1,eagerState:null,next:null},Hi(a))Ii(i,_e);else if(_e=Yg(a,i,_e,pt),_e!==null){var Lt=L();mh(_e,a,pt,Lt),Ji(_e,i,pt)}}function ri(a,i,_e){var pt=lh(a),Lt={lane:pt,action:_e,hasEagerState:!1,eagerState:null,next:null};if(Hi(a))Ii(i,Lt);else{var Gt=a.alternate;if(a.lanes===0&&(Gt===null||Gt.lanes===0)&&(Gt=i.lastRenderedReducer,Gt!==null))try{var Ct=i.lastRenderedState,Rt=Gt(Ct,_e);if(Lt.hasEagerState=!0,Lt.eagerState=Rt,He(Rt,Ct)){var o=i.interleaved;o===null?(Lt.next=Lt,Xg(i)):(Lt.next=o.next,o.next=Lt),i.interleaved=Lt;return}}catch{}finally{}_e=Yg(a,i,Lt,pt),_e!==null&&(Lt=L(),mh(_e,a,pt,Lt),Ji(_e,i,pt))}}function Hi(a){var i=a.alternate;return a===N||i!==null&&i===N}function Ii(a,i){Th=Sh=!0;var _e=a.pending;_e===null?i.next=i:(i.next=_e.next,_e.next=i),a.pending=i}function Ji(a,i,_e){if(_e&4194240){var pt=i.lanes;pt&=a.pendingLanes,_e|=pt,i.lanes=_e,Cc(a,_e)}}var ai={readContext:Vg,useCallback:Q,useContext:Q,useEffect:Q,useImperativeHandle:Q,useInsertionEffect:Q,useLayoutEffect:Q,useMemo:Q,useReducer:Q,useRef:Q,useState:Q,useDebugValue:Q,useDeferredValue:Q,useTransition:Q,useMutableSource:Q,useSyncExternalStore:Q,useId:Q,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(a,i){return ci().memoizedState=[a,i===void 0?null:i],a},useContext:Vg,useEffect:vi,useImperativeHandle:function(a,i,_e){return _e=_e!=null?_e.concat([a]):null,ti(4194308,4,yi.bind(null,i,a),_e)},useLayoutEffect:function(a,i){return ti(4194308,4,a,i)},useInsertionEffect:function(a,i){return ti(4,2,a,i)},useMemo:function(a,i){var _e=ci();return i=i===void 0?null:i,a=a(),_e.memoizedState=[a,i],a},useReducer:function(a,i,_e){var pt=ci();return i=_e!==void 0?_e(i):i,pt.memoizedState=pt.baseState=i,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:i},pt.queue=a,a=a.dispatch=Gi.bind(null,N,a),[pt.memoizedState,a]},useRef:function(a){var i=ci();return a={current:a},i.memoizedState=a},useState:qi,useDebugValue:Ai,useDeferredValue:function(a){return ci().memoizedState=a},useTransition:function(){var a=qi(!1),i=a[0];return a=Ei.bind(null,a[1]),ci().memoizedState=a,[i,a]},useMutableSource:function(){},useSyncExternalStore:function(a,i,_e){var pt=N,Lt=ci();if(I$1){if(_e===void 0)throw Error(p$1(407));_e=_e()}else{if(_e=i(),R===null)throw Error(p$1(349));Rh&30||ni(pt,i,_e)}Lt.memoizedState=_e;var Gt={value:_e,getSnapshot:i};return Lt.queue=Gt,vi(ki.bind(null,pt,Gt,a),[a]),pt.flags|=2048,li(9,mi.bind(null,pt,Gt,_e,i),void 0,null),_e},useId:function(){var a=ci(),i=R.identifierPrefix;if(I$1){var _e=sg,pt=rg;_e=(pt&~(1<<32-oc(pt)-1)).toString(32)+_e,i=":"+i+"R"+_e,_e=Uh++,0<_e&&(i+="H"+_e.toString(32)),i+=":"}else _e=Vh++,i=":"+i+"r"+_e.toString(32)+":";return a.memoizedState=i},unstable_isNewReconciler:!1},Zh={readContext:Vg,useCallback:Bi,useContext:Vg,useEffect:ji,useImperativeHandle:zi,useInsertionEffect:wi,useLayoutEffect:xi,useMemo:Ci,useReducer:fi,useRef:si,useState:function(){return fi(ei)},useDebugValue:Ai,useDeferredValue:function(a){var i=di();return Di(i,O.memoizedState,a)},useTransition:function(){var a=fi(ei)[0],i=di().memoizedState;return[a,i]},useMutableSource:hi,useSyncExternalStore:ii,useId:Fi,unstable_isNewReconciler:!1},$h={readContext:Vg,useCallback:Bi,useContext:Vg,useEffect:ji,useImperativeHandle:zi,useInsertionEffect:wi,useLayoutEffect:xi,useMemo:Ci,useReducer:gi,useRef:si,useState:function(){return gi(ei)},useDebugValue:Ai,useDeferredValue:function(a){var i=di();return O===null?i.memoizedState=a:Di(i,O.memoizedState,a)},useTransition:function(){var a=gi(ei)[0],i=di().memoizedState;return[a,i]},useMutableSource:hi,useSyncExternalStore:ii,useId:Fi,unstable_isNewReconciler:!1};function Ki(a,i){try{var _e="",pt=i;do _e+=Pa(pt),pt=pt.return;while(pt);var Lt=_e}catch(Gt){Lt=` +`+Lt[Ct].replace(" at new "," at ");return a.displayName&&o.includes("")&&(o=o.replace("",a.displayName)),o}while(1<=Ct&&0<=Rt);break}}}finally{Na=!1,Error.prepareStackTrace=_e}return(a=a?a.displayName||a.name:"")?Ma(a):""}function Pa(a){switch(a.tag){case 5:return Ma(a.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return a=Oa(a.type,!1),a;case 11:return a=Oa(a.type.render,!1),a;case 1:return a=Oa(a.type,!0),a;default:return""}}function Qa(a){if(a==null)return null;if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){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 a=="object")switch(a.$$typeof){case Ca:return(a.displayName||"Context")+".Consumer";case Ba:return(a._context.displayName||"Context")+".Provider";case Da:var i=a.render;return a=a.displayName,a||(a=i.displayName||i.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case Ga:return i=a.displayName||null,i!==null?i:Qa(a.type)||"Memo";case Ha:i=a._payload,a=a._init;try{return Qa(a(i))}catch{}}return null}function Ra(a){var i=a.type;switch(a.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return a=i.render,a=a.displayName||a.name||"",i.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(i);case 8:return i===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 i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function Sa(a){switch(typeof a){case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function Ta(a){var i=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Ua(a){var i=Ta(a)?"checked":"value",_e=Object.getOwnPropertyDescriptor(a.constructor.prototype,i),pt=""+a[i];if(!a.hasOwnProperty(i)&&typeof _e<"u"&&typeof _e.get=="function"&&typeof _e.set=="function"){var Lt=_e.get,Gt=_e.set;return Object.defineProperty(a,i,{configurable:!0,get:function(){return Lt.call(this)},set:function(Ct){pt=""+Ct,Gt.call(this,Ct)}}),Object.defineProperty(a,i,{enumerable:_e.enumerable}),{getValue:function(){return pt},setValue:function(Ct){pt=""+Ct},stopTracking:function(){a._valueTracker=null,delete a[i]}}}}function Va(a){a._valueTracker||(a._valueTracker=Ua(a))}function Wa(a){if(!a)return!1;var i=a._valueTracker;if(!i)return!0;var _e=i.getValue(),pt="";return a&&(pt=Ta(a)?a.checked?"true":"false":a.value),a=pt,a!==_e?(i.setValue(a),!0):!1}function Xa(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}function Ya(a,i){var _e=i.checked;return A$1({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:_e??a._wrapperState.initialChecked})}function Za(a,i){var _e=i.defaultValue==null?"":i.defaultValue,pt=i.checked!=null?i.checked:i.defaultChecked;_e=Sa(i.value!=null?i.value:_e),a._wrapperState={initialChecked:pt,initialValue:_e,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function ab(a,i){i=i.checked,i!=null&&ta(a,"checked",i,!1)}function bb(a,i){ab(a,i);var _e=Sa(i.value),pt=i.type;if(_e!=null)pt==="number"?(_e===0&&a.value===""||a.value!=_e)&&(a.value=""+_e):a.value!==""+_e&&(a.value=""+_e);else if(pt==="submit"||pt==="reset"){a.removeAttribute("value");return}i.hasOwnProperty("value")?cb(a,i.type,_e):i.hasOwnProperty("defaultValue")&&cb(a,i.type,Sa(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(a.defaultChecked=!!i.defaultChecked)}function db(a,i,_e){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var pt=i.type;if(!(pt!=="submit"&&pt!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+a._wrapperState.initialValue,_e||i===a.value||(a.value=i),a.defaultValue=i}_e=a.name,_e!==""&&(a.name=""),a.defaultChecked=!!a._wrapperState.initialChecked,_e!==""&&(a.name=_e)}function cb(a,i,_e){(i!=="number"||Xa(a.ownerDocument)!==a)&&(_e==null?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+_e&&(a.defaultValue=""+_e))}var eb=Array.isArray;function fb(a,i,_e,pt){if(a=a.options,i){i={};for(var Lt=0;Lt<_e.length;Lt++)i["$"+_e[Lt]]=!0;for(_e=0;_e"+i.valueOf().toString()+"",i=mb.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;i.firstChild;)a.appendChild(i.firstChild)}});function ob(a,i){if(i){var _e=a.firstChild;if(_e&&_e===a.lastChild&&_e.nodeType===3){_e.nodeValue=i;return}}a.textContent=i}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(a){qb.forEach(function(i){i=i+a.charAt(0).toUpperCase()+a.substring(1),pb[i]=pb[a]})});function rb(a,i,_e){return i==null||typeof i=="boolean"||i===""?"":_e||typeof i!="number"||i===0||pb.hasOwnProperty(a)&&pb[a]?(""+i).trim():i+"px"}function sb(a,i){a=a.style;for(var _e in i)if(i.hasOwnProperty(_e)){var pt=_e.indexOf("--")===0,Lt=rb(_e,i[_e],pt);_e==="float"&&(_e="cssFloat"),pt?a.setProperty(_e,Lt):a[_e]=Lt}}var tb=A$1({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(a,i){if(i){if(tb[a]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(p$1(137,a));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(p$1(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(p$1(61))}if(i.style!=null&&typeof i.style!="object")throw Error(p$1(62))}}function vb(a,i){if(a.indexOf("-")===-1)return typeof i.is=="string";switch(a){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(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var yb=null,zb=null,Ab=null;function Bb(a){if(a=Cb(a)){if(typeof yb!="function")throw Error(p$1(280));var i=a.stateNode;i&&(i=Db(i),yb(a.stateNode,a.type,i))}}function Eb(a){zb?Ab?Ab.push(a):Ab=[a]:zb=a}function Fb(){if(zb){var a=zb,i=Ab;if(Ab=zb=null,Bb(a),i)for(a=0;a>>=0,a===0?32:31-(pc(a)/qc|0)|0}var rc=64,sc=4194304;function tc(a){switch(a&-a){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 a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return a}}function uc(a,i){var _e=a.pendingLanes;if(_e===0)return 0;var pt=0,Lt=a.suspendedLanes,Gt=a.pingedLanes,Ct=_e&268435455;if(Ct!==0){var Rt=Ct&~Lt;Rt!==0?pt=tc(Rt):(Gt&=Ct,Gt!==0&&(pt=tc(Gt)))}else Ct=_e&~Lt,Ct!==0?pt=tc(Ct):Gt!==0&&(pt=tc(Gt));if(pt===0)return 0;if(i!==0&&i!==pt&&!(i&Lt)&&(Lt=pt&-pt,Gt=i&-i,Lt>=Gt||Lt===16&&(Gt&4194240)!==0))return i;if(pt&4&&(pt|=_e&16),i=a.entangledLanes,i!==0)for(a=a.entanglements,i&=pt;0_e;_e++)i.push(a);return i}function Ac(a,i,_e){a.pendingLanes|=i,i!==536870912&&(a.suspendedLanes=0,a.pingedLanes=0),a=a.eventTimes,i=31-oc(i),a[i]=_e}function Bc(a,i){var _e=a.pendingLanes&~i;a.pendingLanes=i,a.suspendedLanes=0,a.pingedLanes=0,a.expiredLanes&=i,a.mutableReadLanes&=i,a.entangledLanes&=i,i=a.entanglements;var pt=a.eventTimes;for(a=a.expirationTimes;0<_e;){var Lt=31-oc(_e),Gt=1<=be),ee=String.fromCharCode(32),fe=!1;function ge(a,i){switch(a){case"keyup":return $d.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var ie=!1;function je(a,i){switch(a){case"compositionend":return he(i);case"keypress":return i.which!==32?null:(fe=!0,ee);case"textInput":return a=i.data,a===ee&&fe?null:a;default:return null}}function ke(a,i){if(ie)return a==="compositionend"||!ae&&ge(a,i)?(a=nd(),md=ld=kd=null,ie=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1=i)return{node:_e,offset:i-a};a=pt}e:{for(;_e;){if(_e.nextSibling){_e=_e.nextSibling;break e}_e=_e.parentNode}_e=void 0}_e=Je(_e)}}function Le(a,i){return a&&i?a===i?!0:a&&a.nodeType===3?!1:i&&i.nodeType===3?Le(a,i.parentNode):"contains"in a?a.contains(i):a.compareDocumentPosition?!!(a.compareDocumentPosition(i)&16):!1:!1}function Me(){for(var a=window,i=Xa();i instanceof a.HTMLIFrameElement;){try{var _e=typeof i.contentWindow.location.href=="string"}catch{_e=!1}if(_e)a=i.contentWindow;else break;i=Xa(a.document)}return i}function Ne(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i&&(i==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||i==="textarea"||a.contentEditable==="true")}function Oe(a){var i=Me(),_e=a.focusedElem,pt=a.selectionRange;if(i!==_e&&_e&&_e.ownerDocument&&Le(_e.ownerDocument.documentElement,_e)){if(pt!==null&&Ne(_e)){if(i=pt.start,a=pt.end,a===void 0&&(a=i),"selectionStart"in _e)_e.selectionStart=i,_e.selectionEnd=Math.min(a,_e.value.length);else if(a=(i=_e.ownerDocument||document)&&i.defaultView||window,a.getSelection){a=a.getSelection();var Lt=_e.textContent.length,Gt=Math.min(pt.start,Lt);pt=pt.end===void 0?Gt:Math.min(pt.end,Lt),!a.extend&&Gt>pt&&(Lt=pt,pt=Gt,Gt=Lt),Lt=Ke(_e,Gt);var Ct=Ke(_e,pt);Lt&&Ct&&(a.rangeCount!==1||a.anchorNode!==Lt.node||a.anchorOffset!==Lt.offset||a.focusNode!==Ct.node||a.focusOffset!==Ct.offset)&&(i=i.createRange(),i.setStart(Lt.node,Lt.offset),a.removeAllRanges(),Gt>pt?(a.addRange(i),a.extend(Ct.node,Ct.offset)):(i.setEnd(Ct.node,Ct.offset),a.addRange(i)))}}for(i=[],a=_e;a=a.parentNode;)a.nodeType===1&&i.push({element:a,left:a.scrollLeft,top:a.scrollTop});for(typeof _e.focus=="function"&&_e.focus(),_e=0;_e=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;function Ue(a,i,_e){var pt=_e.window===_e?_e.document:_e.nodeType===9?_e:_e.ownerDocument;Te||Qe==null||Qe!==Xa(pt)||(pt=Qe,"selectionStart"in pt&&Ne(pt)?pt={start:pt.selectionStart,end:pt.selectionEnd}:(pt=(pt.ownerDocument&&pt.ownerDocument.defaultView||window).getSelection(),pt={anchorNode:pt.anchorNode,anchorOffset:pt.anchorOffset,focusNode:pt.focusNode,focusOffset:pt.focusOffset}),Se&&Ie(Se,pt)||(Se=pt,pt=oe(Re,"onSelect"),0Tf||(a.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G$1(a,i){Tf++,Sf[Tf]=a.current,a.current=i}var Vf={},H$1=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(a,i){var _e=a.type.contextTypes;if(!_e)return Vf;var pt=a.stateNode;if(pt&&pt.__reactInternalMemoizedUnmaskedChildContext===i)return pt.__reactInternalMemoizedMaskedChildContext;var Lt={},Gt;for(Gt in _e)Lt[Gt]=i[Gt];return pt&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=i,a.__reactInternalMemoizedMaskedChildContext=Lt),Lt}function Zf(a){return a=a.childContextTypes,a!=null}function $f(){E$1(Wf),E$1(H$1)}function ag(a,i,_e){if(H$1.current!==Vf)throw Error(p$1(168));G$1(H$1,i),G$1(Wf,_e)}function bg(a,i,_e){var pt=a.stateNode;if(i=i.childContextTypes,typeof pt.getChildContext!="function")return _e;pt=pt.getChildContext();for(var Lt in pt)if(!(Lt in i))throw Error(p$1(108,Ra(a)||"Unknown",Lt));return A$1({},_e,pt)}function cg(a){return a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Vf,Xf=H$1.current,G$1(H$1,a),G$1(Wf,Wf.current),!0}function dg(a,i,_e){var pt=a.stateNode;if(!pt)throw Error(p$1(169));_e?(a=bg(a,i,Xf),pt.__reactInternalMemoizedMergedChildContext=a,E$1(Wf),E$1(H$1),G$1(H$1,a)):E$1(Wf),G$1(Wf,_e)}var eg=null,fg=!1,gg=!1;function hg(a){eg===null?eg=[a]:eg.push(a)}function ig(a){fg=!0,hg(a)}function jg(){if(!gg&&eg!==null){gg=!0;var a=0,i=C$1;try{var _e=eg;for(C$1=1;a<_e.length;a++){var pt=_e[a];do pt=pt(!0);while(pt!==null)}eg=null,fg=!1}catch(Lt){throw eg!==null&&(eg=eg.slice(a+1)),ac(fc,jg),Lt}finally{C$1=i,gg=!1}}return null}var kg=[],lg=0,mg=null,ng=0,og=[],pg=0,qg=null,rg=1,sg="";function tg(a,i){kg[lg++]=ng,kg[lg++]=mg,mg=a,ng=i}function ug(a,i,_e){og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,qg=a;var pt=rg;a=sg;var Lt=32-oc(pt)-1;pt&=~(1<>=Ct,Lt-=Ct,rg=1<<32-oc(i)+Lt|_e<dt?(bt=vt,vt=null):bt=vt.sibling;var ft=Tt(_,vt,tt[dt],st);if(ft===null){vt===null&&(vt=bt);break}a&&vt&&ft.alternate===null&&i(_,vt),rt=Gt(ft,rt,dt),nt===null?ot=ft:nt.sibling=ft,nt=ft,vt=bt}if(dt===tt.length)return _e(_,vt),I$1&&tg(_,dt),ot;if(vt===null){for(;dtdt?(bt=vt,vt=null):bt=vt.sibling;var at=Tt(_,vt,ft.value,st);if(at===null){vt===null&&(vt=bt);break}a&&vt&&at.alternate===null&&i(_,vt),rt=Gt(at,rt,dt),nt===null?ot=at:nt.sibling=at,nt=at,vt=bt}if(ft.done)return _e(_,vt),I$1&&tg(_,dt),ot;if(vt===null){for(;!ft.done;dt++,ft=tt.next())ft=et(_,ft.value,st),ft!==null&&(rt=Gt(ft,rt,dt),nt===null?ot=ft:nt.sibling=ft,nt=ft);return I$1&&tg(_,dt),ot}for(vt=pt(_,vt);!ft.done;dt++,ft=tt.next())ft=yt(vt,_,dt,ft.value,st),ft!==null&&(a&&ft.alternate!==null&&vt.delete(ft.key===null?dt:ft.key),rt=Gt(ft,rt,dt),nt===null?ot=ft:nt.sibling=ft,nt=ft);return a&&vt.forEach(function(mt){return i(_,mt)}),I$1&&tg(_,dt),ot}function j(_,rt,tt,st){if(typeof tt=="object"&&tt!==null&&tt.type===ya&&tt.key===null&&(tt=tt.props.children),typeof tt=="object"&&tt!==null){switch(tt.$$typeof){case va:e:{for(var ot=tt.key,nt=rt;nt!==null;){if(nt.key===ot){if(ot=tt.type,ot===ya){if(nt.tag===7){_e(_,nt.sibling),rt=Lt(nt,tt.props.children),rt.return=_,_=rt;break e}}else if(nt.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===Ha&&uh(ot)===nt.type){_e(_,nt.sibling),rt=Lt(nt,tt.props),rt.ref=sh(_,nt,tt),rt.return=_,_=rt;break e}_e(_,nt);break}else i(_,nt);nt=nt.sibling}tt.type===ya?(rt=Ah(tt.props.children,_.mode,st,tt.key),rt.return=_,_=rt):(st=yh(tt.type,tt.key,tt.props,null,_.mode,st),st.ref=sh(_,rt,tt),st.return=_,_=st)}return Ct(_);case wa:e:{for(nt=tt.key;rt!==null;){if(rt.key===nt)if(rt.tag===4&&rt.stateNode.containerInfo===tt.containerInfo&&rt.stateNode.implementation===tt.implementation){_e(_,rt.sibling),rt=Lt(rt,tt.children||[]),rt.return=_,_=rt;break e}else{_e(_,rt);break}else i(_,rt);rt=rt.sibling}rt=zh(tt,_.mode,st),rt.return=_,_=rt}return Ct(_);case Ha:return nt=tt._init,j(_,rt,nt(tt._payload),st)}if(eb(tt))return ut(_,rt,tt,st);if(Ka(tt))return ht(_,rt,tt,st);th(_,tt)}return typeof tt=="string"&&tt!==""||typeof tt=="number"?(tt=""+tt,rt!==null&&rt.tag===6?(_e(_,rt.sibling),rt=Lt(rt,tt),rt.return=_,_=rt):(_e(_,rt),rt=xh(tt,_.mode,st),rt.return=_,_=rt),Ct(_)):_e(_,rt)}return j}var Bh=vh(!0),Ch=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(a){if(a===Dh)throw Error(p$1(174));return a}function Ih(a,i){switch(G$1(Gh,i),G$1(Fh,a),G$1(Eh,Dh),a=i.nodeType,a){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:lb(null,"");break;default:a=a===8?i.parentNode:i,i=a.namespaceURI||null,a=a.tagName,i=lb(i,a)}E$1(Eh),G$1(Eh,i)}function Jh(){E$1(Eh),E$1(Fh),E$1(Gh)}function Kh(a){Hh(Gh.current);var i=Hh(Eh.current),_e=lb(i,a.type);i!==_e&&(G$1(Fh,a),G$1(Eh,_e))}function Lh(a){Fh.current===a&&(E$1(Eh),E$1(Fh))}var M=Uf(0);function Mh(a){for(var i=a;i!==null;){if(i.tag===13){var _e=i.memoizedState;if(_e!==null&&(_e=_e.dehydrated,_e===null||_e.data==="$?"||_e.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if(i.flags&128)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break;for(;i.sibling===null;){if(i.return===null||i.return===a)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Nh=[];function Oh(){for(var a=0;a_e?_e:4,a(!0);var pt=Qh.transition;Qh.transition={};try{a(!1),i()}finally{C$1=_e,Qh.transition=pt}}function Fi(){return di().memoizedState}function Gi(a,i,_e){var pt=lh(a);if(_e={lane:pt,action:_e,hasEagerState:!1,eagerState:null,next:null},Hi(a))Ii(i,_e);else if(_e=Yg(a,i,_e,pt),_e!==null){var Lt=L();mh(_e,a,pt,Lt),Ji(_e,i,pt)}}function ri(a,i,_e){var pt=lh(a),Lt={lane:pt,action:_e,hasEagerState:!1,eagerState:null,next:null};if(Hi(a))Ii(i,Lt);else{var Gt=a.alternate;if(a.lanes===0&&(Gt===null||Gt.lanes===0)&&(Gt=i.lastRenderedReducer,Gt!==null))try{var Ct=i.lastRenderedState,Rt=Gt(Ct,_e);if(Lt.hasEagerState=!0,Lt.eagerState=Rt,He(Rt,Ct)){var o=i.interleaved;o===null?(Lt.next=Lt,Xg(i)):(Lt.next=o.next,o.next=Lt),i.interleaved=Lt;return}}catch{}finally{}_e=Yg(a,i,Lt,pt),_e!==null&&(Lt=L(),mh(_e,a,pt,Lt),Ji(_e,i,pt))}}function Hi(a){var i=a.alternate;return a===N||i!==null&&i===N}function Ii(a,i){Th=Sh=!0;var _e=a.pending;_e===null?i.next=i:(i.next=_e.next,_e.next=i),a.pending=i}function Ji(a,i,_e){if(_e&4194240){var pt=i.lanes;pt&=a.pendingLanes,_e|=pt,i.lanes=_e,Cc(a,_e)}}var ai={readContext:Vg,useCallback:Q,useContext:Q,useEffect:Q,useImperativeHandle:Q,useInsertionEffect:Q,useLayoutEffect:Q,useMemo:Q,useReducer:Q,useRef:Q,useState:Q,useDebugValue:Q,useDeferredValue:Q,useTransition:Q,useMutableSource:Q,useSyncExternalStore:Q,useId:Q,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(a,i){return ci().memoizedState=[a,i===void 0?null:i],a},useContext:Vg,useEffect:vi,useImperativeHandle:function(a,i,_e){return _e=_e!=null?_e.concat([a]):null,ti(4194308,4,yi.bind(null,i,a),_e)},useLayoutEffect:function(a,i){return ti(4194308,4,a,i)},useInsertionEffect:function(a,i){return ti(4,2,a,i)},useMemo:function(a,i){var _e=ci();return i=i===void 0?null:i,a=a(),_e.memoizedState=[a,i],a},useReducer:function(a,i,_e){var pt=ci();return i=_e!==void 0?_e(i):i,pt.memoizedState=pt.baseState=i,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:i},pt.queue=a,a=a.dispatch=Gi.bind(null,N,a),[pt.memoizedState,a]},useRef:function(a){var i=ci();return a={current:a},i.memoizedState=a},useState:qi,useDebugValue:Ai,useDeferredValue:function(a){return ci().memoizedState=a},useTransition:function(){var a=qi(!1),i=a[0];return a=Ei.bind(null,a[1]),ci().memoizedState=a,[i,a]},useMutableSource:function(){},useSyncExternalStore:function(a,i,_e){var pt=N,Lt=ci();if(I$1){if(_e===void 0)throw Error(p$1(407));_e=_e()}else{if(_e=i(),R===null)throw Error(p$1(349));Rh&30||ni(pt,i,_e)}Lt.memoizedState=_e;var Gt={value:_e,getSnapshot:i};return Lt.queue=Gt,vi(ki.bind(null,pt,Gt,a),[a]),pt.flags|=2048,li(9,mi.bind(null,pt,Gt,_e,i),void 0,null),_e},useId:function(){var a=ci(),i=R.identifierPrefix;if(I$1){var _e=sg,pt=rg;_e=(pt&~(1<<32-oc(pt)-1)).toString(32)+_e,i=":"+i+"R"+_e,_e=Uh++,0<_e&&(i+="H"+_e.toString(32)),i+=":"}else _e=Vh++,i=":"+i+"r"+_e.toString(32)+":";return a.memoizedState=i},unstable_isNewReconciler:!1},Zh={readContext:Vg,useCallback:Bi,useContext:Vg,useEffect:ji,useImperativeHandle:zi,useInsertionEffect:wi,useLayoutEffect:xi,useMemo:Ci,useReducer:fi,useRef:si,useState:function(){return fi(ei)},useDebugValue:Ai,useDeferredValue:function(a){var i=di();return Di(i,O.memoizedState,a)},useTransition:function(){var a=fi(ei)[0],i=di().memoizedState;return[a,i]},useMutableSource:hi,useSyncExternalStore:ii,useId:Fi,unstable_isNewReconciler:!1},$h={readContext:Vg,useCallback:Bi,useContext:Vg,useEffect:ji,useImperativeHandle:zi,useInsertionEffect:wi,useLayoutEffect:xi,useMemo:Ci,useReducer:gi,useRef:si,useState:function(){return gi(ei)},useDebugValue:Ai,useDeferredValue:function(a){var i=di();return O===null?i.memoizedState=a:Di(i,O.memoizedState,a)},useTransition:function(){var a=gi(ei)[0],i=di().memoizedState;return[a,i]},useMutableSource:hi,useSyncExternalStore:ii,useId:Fi,unstable_isNewReconciler:!1};function Ki(a,i){try{var _e="",pt=i;do _e+=Pa(pt),pt=pt.return;while(pt);var Lt=_e}catch(Gt){Lt=` Error generating stack: `+Gt.message+` -`+Gt.stack}return{value:a,source:i,stack:Lt,digest:null}}function Li(a,i,_e){return{value:a,source:null,stack:_e??null,digest:i??null}}function Mi(a,i){try{console.error(i.value)}catch(_e){setTimeout(function(){throw _e})}}var Ni=typeof WeakMap=="function"?WeakMap:Map;function Oi(a,i,_e){_e=ch(-1,_e),_e.tag=3,_e.payload={element:null};var pt=i.value;return _e.callback=function(){Pi||(Pi=!0,Qi=pt),Mi(a,i)},_e}function Ri(a,i,_e){_e=ch(-1,_e),_e.tag=3;var pt=a.type.getDerivedStateFromError;if(typeof pt=="function"){var Lt=i.value;_e.payload=function(){return pt(Lt)},_e.callback=function(){Mi(a,i)}}var Gt=a.stateNode;return Gt!==null&&typeof Gt.componentDidCatch=="function"&&(_e.callback=function(){Mi(a,i),typeof pt!="function"&&(Si===null?Si=new Set([this]):Si.add(this));var Ct=i.stack;this.componentDidCatch(i.value,{componentStack:Ct!==null?Ct:""})}),_e}function Ti(a,i,_e){var pt=a.pingCache;if(pt===null){pt=a.pingCache=new Ni;var Lt=new Set;pt.set(i,Lt)}else Lt=pt.get(i),Lt===void 0&&(Lt=new Set,pt.set(i,Lt));Lt.has(_e)||(Lt.add(_e),a=Ui.bind(null,a,i,_e),i.then(a,a))}function Vi(a){do{var i;if((i=a.tag===13)&&(i=a.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return a;a=a.return}while(a!==null);return null}function Wi(a,i,_e,pt,Lt){return a.mode&1?(a.flags|=65536,a.lanes=Lt,a):(a===i?a.flags|=65536:(a.flags|=128,_e.flags|=131072,_e.flags&=-52805,_e.tag===1&&(_e.alternate===null?_e.tag=17:(i=ch(-1,1),i.tag=2,dh(_e,i,1))),_e.lanes|=1),a)}var Xi=ua.ReactCurrentOwner,Ug=!1;function Yi(a,i,_e,pt){i.child=a===null?Ch(i,null,_e,pt):Bh(i,a.child,_e,pt)}function Zi(a,i,_e,pt,Lt){_e=_e.render;var Gt=i.ref;return Tg(i,Lt),pt=Xh(a,i,_e,pt,Gt,Lt),_e=bi(),a!==null&&!Ug?(i.updateQueue=a.updateQueue,i.flags&=-2053,a.lanes&=~Lt,$i(a,i,Lt)):(I$1&&_e&&vg(i),i.flags|=1,Yi(a,i,pt,Lt),i.child)}function aj(a,i,_e,pt,Lt){if(a===null){var Gt=_e.type;return typeof Gt=="function"&&!bj(Gt)&&Gt.defaultProps===void 0&&_e.compare===null&&_e.defaultProps===void 0?(i.tag=15,i.type=Gt,cj(a,i,Gt,pt,Lt)):(a=yh(_e.type,null,pt,i,i.mode,Lt),a.ref=i.ref,a.return=i,i.child=a)}if(Gt=a.child,!(a.lanes&Lt)){var Ct=Gt.memoizedProps;if(_e=_e.compare,_e=_e!==null?_e:Ie,_e(Ct,pt)&&a.ref===i.ref)return $i(a,i,Lt)}return i.flags|=1,a=wh(Gt,pt),a.ref=i.ref,a.return=i,i.child=a}function cj(a,i,_e,pt,Lt){if(a!==null){var Gt=a.memoizedProps;if(Ie(Gt,pt)&&a.ref===i.ref)if(Ug=!1,i.pendingProps=pt=Gt,(a.lanes&Lt)!==0)a.flags&131072&&(Ug=!0);else return i.lanes=a.lanes,$i(a,i,Lt)}return dj(a,i,_e,pt,Lt)}function ej(a,i,_e){var pt=i.pendingProps,Lt=pt.children,Gt=a!==null?a.memoizedState:null;if(pt.mode==="hidden")if(!(i.mode&1))i.memoizedState={baseLanes:0,cachePool:null,transitions:null},G$1(fj,gj),gj|=_e;else{if(!(_e&1073741824))return a=Gt!==null?Gt.baseLanes|_e:_e,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:a,cachePool:null,transitions:null},i.updateQueue=null,G$1(fj,gj),gj|=a,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},pt=Gt!==null?Gt.baseLanes:_e,G$1(fj,gj),gj|=pt}else Gt!==null?(pt=Gt.baseLanes|_e,i.memoizedState=null):pt=_e,G$1(fj,gj),gj|=pt;return Yi(a,i,Lt,_e),i.child}function hj(a,i){var _e=i.ref;(a===null&&_e!==null||a!==null&&a.ref!==_e)&&(i.flags|=512,i.flags|=2097152)}function dj(a,i,_e,pt,Lt){var Gt=Zf(_e)?Xf:H$1.current;return Gt=Yf(i,Gt),Tg(i,Lt),_e=Xh(a,i,_e,pt,Gt,Lt),pt=bi(),a!==null&&!Ug?(i.updateQueue=a.updateQueue,i.flags&=-2053,a.lanes&=~Lt,$i(a,i,Lt)):(I$1&&pt&&vg(i),i.flags|=1,Yi(a,i,_e,Lt),i.child)}function ij(a,i,_e,pt,Lt){if(Zf(_e)){var Gt=!0;cg(i)}else Gt=!1;if(Tg(i,Lt),i.stateNode===null)jj(a,i),ph(i,_e,pt),rh(i,_e,pt,Lt),pt=!0;else if(a===null){var Ct=i.stateNode,Rt=i.memoizedProps;Ct.props=Rt;var o=Ct.context,it=_e.contextType;typeof it=="object"&&it!==null?it=Vg(it):(it=Zf(_e)?Xf:H$1.current,it=Yf(i,it));var xt=_e.getDerivedStateFromProps,et=typeof xt=="function"||typeof Ct.getSnapshotBeforeUpdate=="function";et||typeof Ct.UNSAFE_componentWillReceiveProps!="function"&&typeof Ct.componentWillReceiveProps!="function"||(Rt!==pt||o!==it)&&qh(i,Ct,pt,it),$g=!1;var Et=i.memoizedState;Ct.state=Et,gh(i,pt,Ct,Lt),o=i.memoizedState,Rt!==pt||Et!==o||Wf.current||$g?(typeof xt=="function"&&(kh(i,_e,xt,pt),o=i.memoizedState),(Rt=$g||oh(i,_e,Rt,pt,Et,o,it))?(et||typeof Ct.UNSAFE_componentWillMount!="function"&&typeof Ct.componentWillMount!="function"||(typeof Ct.componentWillMount=="function"&&Ct.componentWillMount(),typeof Ct.UNSAFE_componentWillMount=="function"&&Ct.UNSAFE_componentWillMount()),typeof Ct.componentDidMount=="function"&&(i.flags|=4194308)):(typeof Ct.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=pt,i.memoizedState=o),Ct.props=pt,Ct.state=o,Ct.context=it,pt=Rt):(typeof Ct.componentDidMount=="function"&&(i.flags|=4194308),pt=!1)}else{Ct=i.stateNode,bh(a,i),Rt=i.memoizedProps,it=i.type===i.elementType?Rt:Lg(i.type,Rt),Ct.props=it,et=i.pendingProps,Et=Ct.context,o=_e.contextType,typeof o=="object"&&o!==null?o=Vg(o):(o=Zf(_e)?Xf:H$1.current,o=Yf(i,o));var mt=_e.getDerivedStateFromProps;(xt=typeof mt=="function"||typeof Ct.getSnapshotBeforeUpdate=="function")||typeof Ct.UNSAFE_componentWillReceiveProps!="function"&&typeof Ct.componentWillReceiveProps!="function"||(Rt!==et||Et!==o)&&qh(i,Ct,pt,o),$g=!1,Et=i.memoizedState,Ct.state=Et,gh(i,pt,Ct,Lt);var ut=i.memoizedState;Rt!==et||Et!==ut||Wf.current||$g?(typeof mt=="function"&&(kh(i,_e,mt,pt),ut=i.memoizedState),(it=$g||oh(i,_e,it,pt,Et,ut,o)||!1)?(xt||typeof Ct.UNSAFE_componentWillUpdate!="function"&&typeof Ct.componentWillUpdate!="function"||(typeof Ct.componentWillUpdate=="function"&&Ct.componentWillUpdate(pt,ut,o),typeof Ct.UNSAFE_componentWillUpdate=="function"&&Ct.UNSAFE_componentWillUpdate(pt,ut,o)),typeof Ct.componentDidUpdate=="function"&&(i.flags|=4),typeof Ct.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof Ct.componentDidUpdate!="function"||Rt===a.memoizedProps&&Et===a.memoizedState||(i.flags|=4),typeof Ct.getSnapshotBeforeUpdate!="function"||Rt===a.memoizedProps&&Et===a.memoizedState||(i.flags|=1024),i.memoizedProps=pt,i.memoizedState=ut),Ct.props=pt,Ct.state=ut,Ct.context=o,pt=it):(typeof Ct.componentDidUpdate!="function"||Rt===a.memoizedProps&&Et===a.memoizedState||(i.flags|=4),typeof Ct.getSnapshotBeforeUpdate!="function"||Rt===a.memoizedProps&&Et===a.memoizedState||(i.flags|=1024),pt=!1)}return kj(a,i,_e,pt,Gt,Lt)}function kj(a,i,_e,pt,Lt,Gt){hj(a,i);var Ct=(i.flags&128)!==0;if(!pt&&!Ct)return Lt&&dg(i,_e,!1),$i(a,i,Gt);pt=i.stateNode,Xi.current=i;var Rt=Ct&&typeof _e.getDerivedStateFromError!="function"?null:pt.render();return i.flags|=1,a!==null&&Ct?(i.child=Bh(i,a.child,null,Gt),i.child=Bh(i,null,Rt,Gt)):Yi(a,i,Rt,Gt),i.memoizedState=pt.state,Lt&&dg(i,_e,!0),i.child}function lj(a){var i=a.stateNode;i.pendingContext?ag(a,i.pendingContext,i.pendingContext!==i.context):i.context&&ag(a,i.context,!1),Ih(a,i.containerInfo)}function mj(a,i,_e,pt,Lt){return Ig(),Jg(Lt),i.flags|=256,Yi(a,i,_e,pt),i.child}var nj={dehydrated:null,treeContext:null,retryLane:0};function oj(a){return{baseLanes:a,cachePool:null,transitions:null}}function pj(a,i,_e){var pt=i.pendingProps,Lt=M.current,Gt=!1,Ct=(i.flags&128)!==0,Rt;if((Rt=Ct)||(Rt=a!==null&&a.memoizedState===null?!1:(Lt&2)!==0),Rt?(Gt=!0,i.flags&=-129):(a===null||a.memoizedState!==null)&&(Lt|=1),G$1(M,Lt&1),a===null)return Eg(i),a=i.memoizedState,a!==null&&(a=a.dehydrated,a!==null)?(i.mode&1?a.data==="$!"?i.lanes=8:i.lanes=1073741824:i.lanes=1,null):(Ct=pt.children,a=pt.fallback,Gt?(pt=i.mode,Gt=i.child,Ct={mode:"hidden",children:Ct},!(pt&1)&&Gt!==null?(Gt.childLanes=0,Gt.pendingProps=Ct):Gt=qj(Ct,pt,0,null),a=Ah(a,pt,_e,null),Gt.return=i,a.return=i,Gt.sibling=a,i.child=Gt,i.child.memoizedState=oj(_e),i.memoizedState=nj,a):rj(i,Ct));if(Lt=a.memoizedState,Lt!==null&&(Rt=Lt.dehydrated,Rt!==null))return sj(a,i,Ct,pt,Rt,Lt,_e);if(Gt){Gt=pt.fallback,Ct=i.mode,Lt=a.child,Rt=Lt.sibling;var o={mode:"hidden",children:pt.children};return!(Ct&1)&&i.child!==Lt?(pt=i.child,pt.childLanes=0,pt.pendingProps=o,i.deletions=null):(pt=wh(Lt,o),pt.subtreeFlags=Lt.subtreeFlags&14680064),Rt!==null?Gt=wh(Rt,Gt):(Gt=Ah(Gt,Ct,_e,null),Gt.flags|=2),Gt.return=i,pt.return=i,pt.sibling=Gt,i.child=pt,pt=Gt,Gt=i.child,Ct=a.child.memoizedState,Ct=Ct===null?oj(_e):{baseLanes:Ct.baseLanes|_e,cachePool:null,transitions:Ct.transitions},Gt.memoizedState=Ct,Gt.childLanes=a.childLanes&~_e,i.memoizedState=nj,pt}return Gt=a.child,a=Gt.sibling,pt=wh(Gt,{mode:"visible",children:pt.children}),!(i.mode&1)&&(pt.lanes=_e),pt.return=i,pt.sibling=null,a!==null&&(_e=i.deletions,_e===null?(i.deletions=[a],i.flags|=16):_e.push(a)),i.child=pt,i.memoizedState=null,pt}function rj(a,i){return i=qj({mode:"visible",children:i},a.mode,0,null),i.return=a,a.child=i}function tj(a,i,_e,pt){return pt!==null&&Jg(pt),Bh(i,a.child,null,_e),a=rj(i,i.pendingProps.children),a.flags|=2,i.memoizedState=null,a}function sj(a,i,_e,pt,Lt,Gt,Ct){if(_e)return i.flags&256?(i.flags&=-257,pt=Li(Error(p$1(422))),tj(a,i,Ct,pt)):i.memoizedState!==null?(i.child=a.child,i.flags|=128,null):(Gt=pt.fallback,Lt=i.mode,pt=qj({mode:"visible",children:pt.children},Lt,0,null),Gt=Ah(Gt,Lt,Ct,null),Gt.flags|=2,pt.return=i,Gt.return=i,pt.sibling=Gt,i.child=pt,i.mode&1&&Bh(i,a.child,null,Ct),i.child.memoizedState=oj(Ct),i.memoizedState=nj,Gt);if(!(i.mode&1))return tj(a,i,Ct,null);if(Lt.data==="$!"){if(pt=Lt.nextSibling&&Lt.nextSibling.dataset,pt)var Rt=pt.dgst;return pt=Rt,Gt=Error(p$1(419)),pt=Li(Gt,pt,void 0),tj(a,i,Ct,pt)}if(Rt=(Ct&a.childLanes)!==0,Ug||Rt){if(pt=R,pt!==null){switch(Ct&-Ct){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&(pt.suspendedLanes|Ct)?0:Lt,Lt!==0&&Lt!==Gt.retryLane&&(Gt.retryLane=Lt,Zg(a,Lt),mh(pt,a,Lt,-1))}return uj(),pt=Li(Error(p$1(421))),tj(a,i,Ct,pt)}return Lt.data==="$?"?(i.flags|=128,i.child=a.child,i=vj.bind(null,a),Lt._reactRetry=i,null):(a=Gt.treeContext,yg=Lf(Lt.nextSibling),xg=i,I$1=!0,zg=null,a!==null&&(og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,rg=a.id,sg=a.overflow,qg=i),i=rj(i,pt.children),i.flags|=4096,i)}function wj(a,i,_e){a.lanes|=i;var pt=a.alternate;pt!==null&&(pt.lanes|=i),Sg(a.return,i,_e)}function xj(a,i,_e,pt,Lt){var Gt=a.memoizedState;Gt===null?a.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:pt,tail:_e,tailMode:Lt}:(Gt.isBackwards=i,Gt.rendering=null,Gt.renderingStartTime=0,Gt.last=pt,Gt.tail=_e,Gt.tailMode=Lt)}function yj(a,i,_e){var pt=i.pendingProps,Lt=pt.revealOrder,Gt=pt.tail;if(Yi(a,i,pt.children,_e),pt=M.current,pt&2)pt=pt&1|2,i.flags|=128;else{if(a!==null&&a.flags&128)e:for(a=i.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&wj(a,_e,i);else if(a.tag===19)wj(a,_e,i);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break e;for(;a.sibling===null;){if(a.return===null||a.return===i)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}pt&=1}if(G$1(M,pt),!(i.mode&1))i.memoizedState=null;else switch(Lt){case"forwards":for(_e=i.child,Lt=null;_e!==null;)a=_e.alternate,a!==null&&Mh(a)===null&&(Lt=_e),_e=_e.sibling;_e=Lt,_e===null?(Lt=i.child,i.child=null):(Lt=_e.sibling,_e.sibling=null),xj(i,!1,Lt,_e,Gt);break;case"backwards":for(_e=null,Lt=i.child,i.child=null;Lt!==null;){if(a=Lt.alternate,a!==null&&Mh(a)===null){i.child=Lt;break}a=Lt.sibling,Lt.sibling=_e,_e=Lt,Lt=a}xj(i,!0,_e,null,Gt);break;case"together":xj(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function jj(a,i){!(i.mode&1)&&a!==null&&(a.alternate=null,i.alternate=null,i.flags|=2)}function $i(a,i,_e){if(a!==null&&(i.dependencies=a.dependencies),hh|=i.lanes,!(_e&i.childLanes))return null;if(a!==null&&i.child!==a.child)throw Error(p$1(153));if(i.child!==null){for(a=i.child,_e=wh(a,a.pendingProps),i.child=_e,_e.return=i;a.sibling!==null;)a=a.sibling,_e=_e.sibling=wh(a,a.pendingProps),_e.return=i;_e.sibling=null}return i.child}function zj(a,i,_e){switch(i.tag){case 3:lj(i),Ig();break;case 5:Kh(i);break;case 1:Zf(i.type)&&cg(i);break;case 4:Ih(i,i.stateNode.containerInfo);break;case 10:var pt=i.type._context,Lt=i.memoizedProps.value;G$1(Mg,pt._currentValue),pt._currentValue=Lt;break;case 13:if(pt=i.memoizedState,pt!==null)return pt.dehydrated!==null?(G$1(M,M.current&1),i.flags|=128,null):_e&i.child.childLanes?pj(a,i,_e):(G$1(M,M.current&1),a=$i(a,i,_e),a!==null?a.sibling:null);G$1(M,M.current&1);break;case 19:if(pt=(_e&i.childLanes)!==0,a.flags&128){if(pt)return yj(a,i,_e);i.flags|=128}if(Lt=i.memoizedState,Lt!==null&&(Lt.rendering=null,Lt.tail=null,Lt.lastEffect=null),G$1(M,M.current),pt)break;return null;case 22:case 23:return i.lanes=0,ej(a,i,_e)}return $i(a,i,_e)}var Aj,Bj,Cj,Dj;Aj=function(a,i){for(var _e=i.child;_e!==null;){if(_e.tag===5||_e.tag===6)a.appendChild(_e.stateNode);else if(_e.tag!==4&&_e.child!==null){_e.child.return=_e,_e=_e.child;continue}if(_e===i)break;for(;_e.sibling===null;){if(_e.return===null||_e.return===i)return;_e=_e.return}_e.sibling.return=_e.return,_e=_e.sibling}};Bj=function(){};Cj=function(a,i,_e,pt){var Lt=a.memoizedProps;if(Lt!==pt){a=i.stateNode,Hh(Eh.current);var Gt=null;switch(_e){case"input":Lt=Ya(a,Lt),pt=Ya(a,pt),Gt=[];break;case"select":Lt=A$1({},Lt,{value:void 0}),pt=A$1({},pt,{value:void 0}),Gt=[];break;case"textarea":Lt=gb(a,Lt),pt=gb(a,pt),Gt=[];break;default:typeof Lt.onClick!="function"&&typeof pt.onClick=="function"&&(a.onclick=Bf)}ub(_e,pt);var Ct;_e=null;for(it in Lt)if(!pt.hasOwnProperty(it)&&Lt.hasOwnProperty(it)&&Lt[it]!=null)if(it==="style"){var Rt=Lt[it];for(Ct in Rt)Rt.hasOwnProperty(Ct)&&(_e||(_e={}),_e[Ct]="")}else it!=="dangerouslySetInnerHTML"&&it!=="children"&&it!=="suppressContentEditableWarning"&&it!=="suppressHydrationWarning"&&it!=="autoFocus"&&(ea.hasOwnProperty(it)?Gt||(Gt=[]):(Gt=Gt||[]).push(it,null));for(it in pt){var o=pt[it];if(Rt=Lt!=null?Lt[it]:void 0,pt.hasOwnProperty(it)&&o!==Rt&&(o!=null||Rt!=null))if(it==="style")if(Rt){for(Ct in Rt)!Rt.hasOwnProperty(Ct)||o&&o.hasOwnProperty(Ct)||(_e||(_e={}),_e[Ct]="");for(Ct in o)o.hasOwnProperty(Ct)&&Rt[Ct]!==o[Ct]&&(_e||(_e={}),_e[Ct]=o[Ct])}else _e||(Gt||(Gt=[]),Gt.push(it,_e)),_e=o;else it==="dangerouslySetInnerHTML"?(o=o?o.__html:void 0,Rt=Rt?Rt.__html:void 0,o!=null&&Rt!==o&&(Gt=Gt||[]).push(it,o)):it==="children"?typeof o!="string"&&typeof o!="number"||(Gt=Gt||[]).push(it,""+o):it!=="suppressContentEditableWarning"&&it!=="suppressHydrationWarning"&&(ea.hasOwnProperty(it)?(o!=null&&it==="onScroll"&&D$1("scroll",a),Gt||Rt===o||(Gt=[])):(Gt=Gt||[]).push(it,o))}_e&&(Gt=Gt||[]).push("style",_e);var it=Gt;(i.updateQueue=it)&&(i.flags|=4)}};Dj=function(a,i,_e,pt){_e!==pt&&(i.flags|=4)};function Ej(a,i){if(!I$1)switch(a.tailMode){case"hidden":i=a.tail;for(var _e=null;i!==null;)i.alternate!==null&&(_e=i),i=i.sibling;_e===null?a.tail=null:_e.sibling=null;break;case"collapsed":_e=a.tail;for(var pt=null;_e!==null;)_e.alternate!==null&&(pt=_e),_e=_e.sibling;pt===null?i||a.tail===null?a.tail=null:a.tail.sibling=null:pt.sibling=null}}function S(a){var i=a.alternate!==null&&a.alternate.child===a.child,_e=0,pt=0;if(i)for(var Lt=a.child;Lt!==null;)_e|=Lt.lanes|Lt.childLanes,pt|=Lt.subtreeFlags&14680064,pt|=Lt.flags&14680064,Lt.return=a,Lt=Lt.sibling;else for(Lt=a.child;Lt!==null;)_e|=Lt.lanes|Lt.childLanes,pt|=Lt.subtreeFlags,pt|=Lt.flags,Lt.return=a,Lt=Lt.sibling;return a.subtreeFlags|=pt,a.childLanes=_e,i}function Fj(a,i,_e){var pt=i.pendingProps;switch(wg(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S(i),null;case 1:return Zf(i.type)&&$f(),S(i),null;case 3:return pt=i.stateNode,Jh(),E$1(Wf),E$1(H$1),Oh(),pt.pendingContext&&(pt.context=pt.pendingContext,pt.pendingContext=null),(a===null||a.child===null)&&(Gg(i)?i.flags|=4:a===null||a.memoizedState.isDehydrated&&!(i.flags&256)||(i.flags|=1024,zg!==null&&(Gj(zg),zg=null))),Bj(a,i),S(i),null;case 5:Lh(i);var Lt=Hh(Gh.current);if(_e=i.type,a!==null&&i.stateNode!=null)Cj(a,i,_e,pt,Lt),a.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!pt){if(i.stateNode===null)throw Error(p$1(166));return S(i),null}if(a=Hh(Eh.current),Gg(i)){pt=i.stateNode,_e=i.type;var Gt=i.memoizedProps;switch(pt[Of]=i,pt[Pf]=Gt,a=(i.mode&1)!==0,_e){case"dialog":D$1("cancel",pt),D$1("close",pt);break;case"iframe":case"object":case"embed":D$1("load",pt);break;case"video":case"audio":for(Lt=0;Lt<\/script>",a=a.removeChild(a.firstChild)):typeof pt.is=="string"?a=Ct.createElement(_e,{is:pt.is}):(a=Ct.createElement(_e),_e==="select"&&(Ct=a,pt.multiple?Ct.multiple=!0:pt.size&&(Ct.size=pt.size))):a=Ct.createElementNS(a,_e),a[Of]=i,a[Pf]=pt,Aj(a,i,!1,!1),i.stateNode=a;e:{switch(Ct=vb(_e,pt),_e){case"dialog":D$1("cancel",a),D$1("close",a),Lt=pt;break;case"iframe":case"object":case"embed":D$1("load",a),Lt=pt;break;case"video":case"audio":for(Lt=0;LtHj&&(i.flags|=128,pt=!0,Ej(Gt,!1),i.lanes=4194304)}else{if(!pt)if(a=Mh(Ct),a!==null){if(i.flags|=128,pt=!0,_e=a.updateQueue,_e!==null&&(i.updateQueue=_e,i.flags|=4),Ej(Gt,!0),Gt.tail===null&&Gt.tailMode==="hidden"&&!Ct.alternate&&!I$1)return S(i),null}else 2*B$1()-Gt.renderingStartTime>Hj&&_e!==1073741824&&(i.flags|=128,pt=!0,Ej(Gt,!1),i.lanes=4194304);Gt.isBackwards?(Ct.sibling=i.child,i.child=Ct):(_e=Gt.last,_e!==null?_e.sibling=Ct:i.child=Ct,Gt.last=Ct)}return Gt.tail!==null?(i=Gt.tail,Gt.rendering=i,Gt.tail=i.sibling,Gt.renderingStartTime=B$1(),i.sibling=null,_e=M.current,G$1(M,pt?_e&1|2:_e&1),i):(S(i),null);case 22:case 23:return Ij(),pt=i.memoizedState!==null,a!==null&&a.memoizedState!==null!==pt&&(i.flags|=8192),pt&&i.mode&1?gj&1073741824&&(S(i),i.subtreeFlags&6&&(i.flags|=8192)):S(i),null;case 24:return null;case 25:return null}throw Error(p$1(156,i.tag))}function Jj(a,i){switch(wg(i),i.tag){case 1:return Zf(i.type)&&$f(),a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 3:return Jh(),E$1(Wf),E$1(H$1),Oh(),a=i.flags,a&65536&&!(a&128)?(i.flags=a&-65537|128,i):null;case 5:return Lh(i),null;case 13:if(E$1(M),a=i.memoizedState,a!==null&&a.dehydrated!==null){if(i.alternate===null)throw Error(p$1(340));Ig()}return a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 19:return E$1(M),null;case 4:return Jh(),null;case 10:return Rg(i.type._context),null;case 22:case 23:return Ij(),null;case 24:return null;default:return null}}var Kj=!1,U=!1,Lj=typeof WeakSet=="function"?WeakSet:Set,V=null;function Mj(a,i){var _e=a.ref;if(_e!==null)if(typeof _e=="function")try{_e(null)}catch(pt){W(a,i,pt)}else _e.current=null}function Nj(a,i,_e){try{_e()}catch(pt){W(a,i,pt)}}var Oj=!1;function Pj(a,i){if(Cf=dd,a=Me(),Ne(a)){if("selectionStart"in a)var _e={start:a.selectionStart,end:a.selectionEnd};else e:{_e=(_e=a.ownerDocument)&&_e.defaultView||window;var pt=_e.getSelection&&_e.getSelection();if(pt&&pt.rangeCount!==0){_e=pt.anchorNode;var Lt=pt.anchorOffset,Gt=pt.focusNode;pt=pt.focusOffset;try{_e.nodeType,Gt.nodeType}catch{_e=null;break e}var Ct=0,Rt=-1,o=-1,it=0,xt=0,et=a,Et=null;t:for(;;){for(var mt;et!==_e||Lt!==0&&et.nodeType!==3||(Rt=Ct+Lt),et!==Gt||pt!==0&&et.nodeType!==3||(o=Ct+pt),et.nodeType===3&&(Ct+=et.nodeValue.length),(mt=et.firstChild)!==null;)Et=et,et=mt;for(;;){if(et===a)break t;if(Et===_e&&++it===Lt&&(Rt=Ct),Et===Gt&&++xt===pt&&(o=Ct),(mt=et.nextSibling)!==null)break;et=Et,Et=et.parentNode}et=mt}_e=Rt===-1||o===-1?null:{start:Rt,end:o}}else _e=null}_e=_e||{start:0,end:0}}else _e=null;for(Df={focusedElem:a,selectionRange:_e},dd=!1,V=i;V!==null;)if(i=V,a=i.child,(i.subtreeFlags&1028)!==0&&a!==null)a.return=i,V=a;else for(;V!==null;){i=V;try{var ut=i.alternate;if(i.flags&1024)switch(i.tag){case 0:case 11:case 15:break;case 1:if(ut!==null){var ht=ut.memoizedProps,j=ut.memoizedState,_=i.stateNode,rt=_.getSnapshotBeforeUpdate(i.elementType===i.type?ht:Lg(i.type,ht),j);_.__reactInternalSnapshotBeforeUpdate=rt}break;case 3:var tt=i.stateNode.containerInfo;tt.nodeType===1?tt.textContent="":tt.nodeType===9&&tt.documentElement&&tt.removeChild(tt.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$1(163))}}catch(st){W(i,i.return,st)}if(a=i.sibling,a!==null){a.return=i.return,V=a;break}V=i.return}return ut=Oj,Oj=!1,ut}function Qj(a,i,_e){var pt=i.updateQueue;if(pt=pt!==null?pt.lastEffect:null,pt!==null){var Lt=pt=pt.next;do{if((Lt.tag&a)===a){var Gt=Lt.destroy;Lt.destroy=void 0,Gt!==void 0&&Nj(i,_e,Gt)}Lt=Lt.next}while(Lt!==pt)}}function Rj(a,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var _e=i=i.next;do{if((_e.tag&a)===a){var pt=_e.create;_e.destroy=pt()}_e=_e.next}while(_e!==i)}}function Sj(a){var i=a.ref;if(i!==null){var _e=a.stateNode;switch(a.tag){case 5:a=_e;break;default:a=_e}typeof i=="function"?i(a):i.current=a}}function Tj(a){var i=a.alternate;i!==null&&(a.alternate=null,Tj(i)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(i=a.stateNode,i!==null&&(delete i[Of],delete i[Pf],delete i[of],delete i[Qf],delete i[Rf])),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function Uj(a){return a.tag===5||a.tag===3||a.tag===4}function Vj(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||Uj(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function Wj(a,i,_e){var pt=a.tag;if(pt===5||pt===6)a=a.stateNode,i?_e.nodeType===8?_e.parentNode.insertBefore(a,i):_e.insertBefore(a,i):(_e.nodeType===8?(i=_e.parentNode,i.insertBefore(a,_e)):(i=_e,i.appendChild(a)),_e=_e._reactRootContainer,_e!=null||i.onclick!==null||(i.onclick=Bf));else if(pt!==4&&(a=a.child,a!==null))for(Wj(a,i,_e),a=a.sibling;a!==null;)Wj(a,i,_e),a=a.sibling}function Xj(a,i,_e){var pt=a.tag;if(pt===5||pt===6)a=a.stateNode,i?_e.insertBefore(a,i):_e.appendChild(a);else if(pt!==4&&(a=a.child,a!==null))for(Xj(a,i,_e),a=a.sibling;a!==null;)Xj(a,i,_e),a=a.sibling}var X=null,Yj=!1;function Zj(a,i,_e){for(_e=_e.child;_e!==null;)ak(a,i,_e),_e=_e.sibling}function ak(a,i,_e){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,_e)}catch{}switch(_e.tag){case 5:U||Mj(_e,i);case 6:var pt=X,Lt=Yj;X=null,Zj(a,i,_e),X=pt,Yj=Lt,X!==null&&(Yj?(a=X,_e=_e.stateNode,a.nodeType===8?a.parentNode.removeChild(_e):a.removeChild(_e)):X.removeChild(_e.stateNode));break;case 18:X!==null&&(Yj?(a=X,_e=_e.stateNode,a.nodeType===8?Kf(a.parentNode,_e):a.nodeType===1&&Kf(a,_e),bd(a)):Kf(X,_e.stateNode));break;case 4:pt=X,Lt=Yj,X=_e.stateNode.containerInfo,Yj=!0,Zj(a,i,_e),X=pt,Yj=Lt;break;case 0:case 11:case 14:case 15:if(!U&&(pt=_e.updateQueue,pt!==null&&(pt=pt.lastEffect,pt!==null))){Lt=pt=pt.next;do{var Gt=Lt,Ct=Gt.destroy;Gt=Gt.tag,Ct!==void 0&&(Gt&2||Gt&4)&&Nj(_e,i,Ct),Lt=Lt.next}while(Lt!==pt)}Zj(a,i,_e);break;case 1:if(!U&&(Mj(_e,i),pt=_e.stateNode,typeof pt.componentWillUnmount=="function"))try{pt.props=_e.memoizedProps,pt.state=_e.memoizedState,pt.componentWillUnmount()}catch(Rt){W(_e,i,Rt)}Zj(a,i,_e);break;case 21:Zj(a,i,_e);break;case 22:_e.mode&1?(U=(pt=U)||_e.memoizedState!==null,Zj(a,i,_e),U=pt):Zj(a,i,_e);break;default:Zj(a,i,_e)}}function bk(a){var i=a.updateQueue;if(i!==null){a.updateQueue=null;var _e=a.stateNode;_e===null&&(_e=a.stateNode=new Lj),i.forEach(function(pt){var Lt=ck.bind(null,a,pt);_e.has(pt)||(_e.add(pt),pt.then(Lt,Lt))})}}function dk(a,i){var _e=i.deletions;if(_e!==null)for(var pt=0;pt<_e.length;pt++){var Lt=_e[pt];try{var Gt=a,Ct=i,Rt=Ct;e:for(;Rt!==null;){switch(Rt.tag){case 5:X=Rt.stateNode,Yj=!1;break e;case 3:X=Rt.stateNode.containerInfo,Yj=!0;break e;case 4:X=Rt.stateNode.containerInfo,Yj=!0;break e}Rt=Rt.return}if(X===null)throw Error(p$1(160));ak(Gt,Ct,Lt),X=null,Yj=!1;var o=Lt.alternate;o!==null&&(o.return=null),Lt.return=null}catch(it){W(Lt,i,it)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)ek(i,a),i=i.sibling}function ek(a,i){var _e=a.alternate,pt=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:if(dk(i,a),fk(a),pt&4){try{Qj(3,a,a.return),Rj(3,a)}catch(ht){W(a,a.return,ht)}try{Qj(5,a,a.return)}catch(ht){W(a,a.return,ht)}}break;case 1:dk(i,a),fk(a),pt&512&&_e!==null&&Mj(_e,_e.return);break;case 5:if(dk(i,a),fk(a),pt&512&&_e!==null&&Mj(_e,_e.return),a.flags&32){var Lt=a.stateNode;try{ob(Lt,"")}catch(ht){W(a,a.return,ht)}}if(pt&4&&(Lt=a.stateNode,Lt!=null)){var Gt=a.memoizedProps,Ct=_e!==null?_e.memoizedProps:Gt,Rt=a.type,o=a.updateQueue;if(a.updateQueue=null,o!==null)try{Rt==="input"&&Gt.type==="radio"&&Gt.name!=null&&ab(Lt,Gt),vb(Rt,Ct);var it=vb(Rt,Gt);for(Ct=0;CtLt&&(Lt=Ct),pt&=~Gt}if(pt=Lt,pt=B$1()-pt,pt=(120>pt?120:480>pt?480:1080>pt?1080:1920>pt?1920:3e3>pt?3e3:4320>pt?4320:1960*mk(pt/1960))-pt,10a?16:a,xk===null)var pt=!1;else{if(a=xk,xk=null,yk=0,K&6)throw Error(p$1(331));var Lt=K;for(K|=4,V=a.current;V!==null;){var Gt=V,Ct=Gt.child;if(V.flags&16){var Rt=Gt.deletions;if(Rt!==null){for(var o=0;oB$1()-gk?Lk(a,0):sk|=_e),Ek(a,i)}function Zk(a,i){i===0&&(a.mode&1?(i=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):i=1);var _e=L();a=Zg(a,i),a!==null&&(Ac(a,i,_e),Ek(a,_e))}function vj(a){var i=a.memoizedState,_e=0;i!==null&&(_e=i.retryLane),Zk(a,_e)}function ck(a,i){var _e=0;switch(a.tag){case 13:var pt=a.stateNode,Lt=a.memoizedState;Lt!==null&&(_e=Lt.retryLane);break;case 19:pt=a.stateNode;break;default:throw Error(p$1(314))}pt!==null&&pt.delete(i),Zk(a,_e)}var Wk;Wk=function(a,i,_e){if(a!==null)if(a.memoizedProps!==i.pendingProps||Wf.current)Ug=!0;else{if(!(a.lanes&_e)&&!(i.flags&128))return Ug=!1,zj(a,i,_e);Ug=!!(a.flags&131072)}else Ug=!1,I$1&&i.flags&1048576&&ug(i,ng,i.index);switch(i.lanes=0,i.tag){case 2:var pt=i.type;jj(a,i),a=i.pendingProps;var Lt=Yf(i,H$1.current);Tg(i,_e),Lt=Xh(null,i,pt,a,Lt,_e);var Gt=bi();return i.flags|=1,typeof Lt=="object"&&Lt!==null&&typeof Lt.render=="function"&&Lt.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,Zf(pt)?(Gt=!0,cg(i)):Gt=!1,i.memoizedState=Lt.state!==null&&Lt.state!==void 0?Lt.state:null,ah(i),Lt.updater=nh,i.stateNode=Lt,Lt._reactInternals=i,rh(i,pt,a,_e),i=kj(null,i,pt,!0,Gt,_e)):(i.tag=0,I$1&&Gt&&vg(i),Yi(null,i,Lt,_e),i=i.child),i;case 16:pt=i.elementType;e:{switch(jj(a,i),a=i.pendingProps,Lt=pt._init,pt=Lt(pt._payload),i.type=pt,Lt=i.tag=$k(pt),a=Lg(pt,a),Lt){case 0:i=dj(null,i,pt,a,_e);break e;case 1:i=ij(null,i,pt,a,_e);break e;case 11:i=Zi(null,i,pt,a,_e);break e;case 14:i=aj(null,i,pt,Lg(pt.type,a),_e);break e}throw Error(p$1(306,pt,""))}return i;case 0:return pt=i.type,Lt=i.pendingProps,Lt=i.elementType===pt?Lt:Lg(pt,Lt),dj(a,i,pt,Lt,_e);case 1:return pt=i.type,Lt=i.pendingProps,Lt=i.elementType===pt?Lt:Lg(pt,Lt),ij(a,i,pt,Lt,_e);case 3:e:{if(lj(i),a===null)throw Error(p$1(387));pt=i.pendingProps,Gt=i.memoizedState,Lt=Gt.element,bh(a,i),gh(i,pt,null,_e);var Ct=i.memoizedState;if(pt=Ct.element,Gt.isDehydrated)if(Gt={element:pt,isDehydrated:!1,cache:Ct.cache,pendingSuspenseBoundaries:Ct.pendingSuspenseBoundaries,transitions:Ct.transitions},i.updateQueue.baseState=Gt,i.memoizedState=Gt,i.flags&256){Lt=Ki(Error(p$1(423)),i),i=mj(a,i,pt,_e,Lt);break e}else if(pt!==Lt){Lt=Ki(Error(p$1(424)),i),i=mj(a,i,pt,_e,Lt);break e}else for(yg=Lf(i.stateNode.containerInfo.firstChild),xg=i,I$1=!0,zg=null,_e=Ch(i,null,pt,_e),i.child=_e;_e;)_e.flags=_e.flags&-3|4096,_e=_e.sibling;else{if(Ig(),pt===Lt){i=$i(a,i,_e);break e}Yi(a,i,pt,_e)}i=i.child}return i;case 5:return Kh(i),a===null&&Eg(i),pt=i.type,Lt=i.pendingProps,Gt=a!==null?a.memoizedProps:null,Ct=Lt.children,Ef(pt,Lt)?Ct=null:Gt!==null&&Ef(pt,Gt)&&(i.flags|=32),hj(a,i),Yi(a,i,Ct,_e),i.child;case 6:return a===null&&Eg(i),null;case 13:return pj(a,i,_e);case 4:return Ih(i,i.stateNode.containerInfo),pt=i.pendingProps,a===null?i.child=Bh(i,null,pt,_e):Yi(a,i,pt,_e),i.child;case 11:return pt=i.type,Lt=i.pendingProps,Lt=i.elementType===pt?Lt:Lg(pt,Lt),Zi(a,i,pt,Lt,_e);case 7:return Yi(a,i,i.pendingProps,_e),i.child;case 8:return Yi(a,i,i.pendingProps.children,_e),i.child;case 12:return Yi(a,i,i.pendingProps.children,_e),i.child;case 10:e:{if(pt=i.type._context,Lt=i.pendingProps,Gt=i.memoizedProps,Ct=Lt.value,G$1(Mg,pt._currentValue),pt._currentValue=Ct,Gt!==null)if(He(Gt.value,Ct)){if(Gt.children===Lt.children&&!Wf.current){i=$i(a,i,_e);break e}}else for(Gt=i.child,Gt!==null&&(Gt.return=i);Gt!==null;){var Rt=Gt.dependencies;if(Rt!==null){Ct=Gt.child;for(var o=Rt.firstContext;o!==null;){if(o.context===pt){if(Gt.tag===1){o=ch(-1,_e&-_e),o.tag=2;var it=Gt.updateQueue;if(it!==null){it=it.shared;var xt=it.pending;xt===null?o.next=o:(o.next=xt.next,xt.next=o),it.pending=o}}Gt.lanes|=_e,o=Gt.alternate,o!==null&&(o.lanes|=_e),Sg(Gt.return,_e,i),Rt.lanes|=_e;break}o=o.next}}else if(Gt.tag===10)Ct=Gt.type===i.type?null:Gt.child;else if(Gt.tag===18){if(Ct=Gt.return,Ct===null)throw Error(p$1(341));Ct.lanes|=_e,Rt=Ct.alternate,Rt!==null&&(Rt.lanes|=_e),Sg(Ct,_e,i),Ct=Gt.sibling}else Ct=Gt.child;if(Ct!==null)Ct.return=Gt;else for(Ct=Gt;Ct!==null;){if(Ct===i){Ct=null;break}if(Gt=Ct.sibling,Gt!==null){Gt.return=Ct.return,Ct=Gt;break}Ct=Ct.return}Gt=Ct}Yi(a,i,Lt.children,_e),i=i.child}return i;case 9:return Lt=i.type,pt=i.pendingProps.children,Tg(i,_e),Lt=Vg(Lt),pt=pt(Lt),i.flags|=1,Yi(a,i,pt,_e),i.child;case 14:return pt=i.type,Lt=Lg(pt,i.pendingProps),Lt=Lg(pt.type,Lt),aj(a,i,pt,Lt,_e);case 15:return cj(a,i,i.type,i.pendingProps,_e);case 17:return pt=i.type,Lt=i.pendingProps,Lt=i.elementType===pt?Lt:Lg(pt,Lt),jj(a,i),i.tag=1,Zf(pt)?(a=!0,cg(i)):a=!1,Tg(i,_e),ph(i,pt,Lt),rh(i,pt,Lt,_e),kj(null,i,pt,!0,a,_e);case 19:return yj(a,i,_e);case 22:return ej(a,i,_e)}throw Error(p$1(156,i.tag))};function Gk(a,i){return ac(a,i)}function al(a,i,_e,pt){this.tag=a,this.key=_e,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=pt,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(a,i,_e,pt){return new al(a,i,_e,pt)}function bj(a){return a=a.prototype,!(!a||!a.isReactComponent)}function $k(a){if(typeof a=="function")return bj(a)?1:0;if(a!=null){if(a=a.$$typeof,a===Da)return 11;if(a===Ga)return 14}return 2}function wh(a,i){var _e=a.alternate;return _e===null?(_e=Bg(a.tag,i,a.key,a.mode),_e.elementType=a.elementType,_e.type=a.type,_e.stateNode=a.stateNode,_e.alternate=a,a.alternate=_e):(_e.pendingProps=i,_e.type=a.type,_e.flags=0,_e.subtreeFlags=0,_e.deletions=null),_e.flags=a.flags&14680064,_e.childLanes=a.childLanes,_e.lanes=a.lanes,_e.child=a.child,_e.memoizedProps=a.memoizedProps,_e.memoizedState=a.memoizedState,_e.updateQueue=a.updateQueue,i=a.dependencies,_e.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},_e.sibling=a.sibling,_e.index=a.index,_e.ref=a.ref,_e}function yh(a,i,_e,pt,Lt,Gt){var Ct=2;if(pt=a,typeof a=="function")bj(a)&&(Ct=1);else if(typeof a=="string")Ct=5;else e:switch(a){case ya:return Ah(_e.children,Lt,Gt,i);case za:Ct=8,Lt|=8;break;case Aa:return a=Bg(12,_e,i,Lt|2),a.elementType=Aa,a.lanes=Gt,a;case Ea:return a=Bg(13,_e,i,Lt),a.elementType=Ea,a.lanes=Gt,a;case Fa:return a=Bg(19,_e,i,Lt),a.elementType=Fa,a.lanes=Gt,a;case Ia:return qj(_e,Lt,Gt,i);default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case Ba:Ct=10;break e;case Ca:Ct=9;break e;case Da:Ct=11;break e;case Ga:Ct=14;break e;case Ha:Ct=16,pt=null;break e}throw Error(p$1(130,a==null?a:typeof a,""))}return i=Bg(Ct,_e,i,Lt),i.elementType=a,i.type=pt,i.lanes=Gt,i}function Ah(a,i,_e,pt){return a=Bg(7,a,pt,i),a.lanes=_e,a}function qj(a,i,_e,pt){return a=Bg(22,a,pt,i),a.elementType=Ia,a.lanes=_e,a.stateNode={isHidden:!1},a}function xh(a,i,_e){return a=Bg(6,a,null,i),a.lanes=_e,a}function zh(a,i,_e){return i=Bg(4,a.children!==null?a.children:[],a.key,i),i.lanes=_e,i.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},i}function bl(a,i,_e,pt,Lt){this.tag=i,this.containerInfo=a,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=pt,this.onRecoverableError=Lt,this.mutableSourceEagerHydrationData=null}function cl(a,i,_e,pt,Lt,Gt,Ct,Rt,o){return a=new bl(a,i,_e,Rt,o),i===1?(i=1,Gt===!0&&(i|=8)):i=0,Gt=Bg(3,null,null,i),a.current=Gt,Gt.stateNode=a,Gt.memoizedState={element:pt,isDehydrated:_e,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(Gt),a}function dl(a,i,_e){var pt=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(_e){console.error(_e)}}i(),a.exports=reactDom_production_min})(reactDom);var m$1=reactDomExports;client.createRoot=m$1.createRoot,client.hydrateRoot=m$1.hydrateRoot;/** +`+Gt.stack}return{value:a,source:i,stack:Lt,digest:null}}function Li(a,i,_e){return{value:a,source:null,stack:_e??null,digest:i??null}}function Mi(a,i){try{console.error(i.value)}catch(_e){setTimeout(function(){throw _e})}}var Ni=typeof WeakMap=="function"?WeakMap:Map;function Oi(a,i,_e){_e=ch(-1,_e),_e.tag=3,_e.payload={element:null};var pt=i.value;return _e.callback=function(){Pi||(Pi=!0,Qi=pt),Mi(a,i)},_e}function Ri(a,i,_e){_e=ch(-1,_e),_e.tag=3;var pt=a.type.getDerivedStateFromError;if(typeof pt=="function"){var Lt=i.value;_e.payload=function(){return pt(Lt)},_e.callback=function(){Mi(a,i)}}var Gt=a.stateNode;return Gt!==null&&typeof Gt.componentDidCatch=="function"&&(_e.callback=function(){Mi(a,i),typeof pt!="function"&&(Si===null?Si=new Set([this]):Si.add(this));var Ct=i.stack;this.componentDidCatch(i.value,{componentStack:Ct!==null?Ct:""})}),_e}function Ti(a,i,_e){var pt=a.pingCache;if(pt===null){pt=a.pingCache=new Ni;var Lt=new Set;pt.set(i,Lt)}else Lt=pt.get(i),Lt===void 0&&(Lt=new Set,pt.set(i,Lt));Lt.has(_e)||(Lt.add(_e),a=Ui.bind(null,a,i,_e),i.then(a,a))}function Vi(a){do{var i;if((i=a.tag===13)&&(i=a.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return a;a=a.return}while(a!==null);return null}function Wi(a,i,_e,pt,Lt){return a.mode&1?(a.flags|=65536,a.lanes=Lt,a):(a===i?a.flags|=65536:(a.flags|=128,_e.flags|=131072,_e.flags&=-52805,_e.tag===1&&(_e.alternate===null?_e.tag=17:(i=ch(-1,1),i.tag=2,dh(_e,i,1))),_e.lanes|=1),a)}var Xi=ua.ReactCurrentOwner,Ug=!1;function Yi(a,i,_e,pt){i.child=a===null?Ch(i,null,_e,pt):Bh(i,a.child,_e,pt)}function Zi(a,i,_e,pt,Lt){_e=_e.render;var Gt=i.ref;return Tg(i,Lt),pt=Xh(a,i,_e,pt,Gt,Lt),_e=bi(),a!==null&&!Ug?(i.updateQueue=a.updateQueue,i.flags&=-2053,a.lanes&=~Lt,$i(a,i,Lt)):(I$1&&_e&&vg(i),i.flags|=1,Yi(a,i,pt,Lt),i.child)}function aj(a,i,_e,pt,Lt){if(a===null){var Gt=_e.type;return typeof Gt=="function"&&!bj(Gt)&&Gt.defaultProps===void 0&&_e.compare===null&&_e.defaultProps===void 0?(i.tag=15,i.type=Gt,cj(a,i,Gt,pt,Lt)):(a=yh(_e.type,null,pt,i,i.mode,Lt),a.ref=i.ref,a.return=i,i.child=a)}if(Gt=a.child,!(a.lanes&Lt)){var Ct=Gt.memoizedProps;if(_e=_e.compare,_e=_e!==null?_e:Ie,_e(Ct,pt)&&a.ref===i.ref)return $i(a,i,Lt)}return i.flags|=1,a=wh(Gt,pt),a.ref=i.ref,a.return=i,i.child=a}function cj(a,i,_e,pt,Lt){if(a!==null){var Gt=a.memoizedProps;if(Ie(Gt,pt)&&a.ref===i.ref)if(Ug=!1,i.pendingProps=pt=Gt,(a.lanes&Lt)!==0)a.flags&131072&&(Ug=!0);else return i.lanes=a.lanes,$i(a,i,Lt)}return dj(a,i,_e,pt,Lt)}function ej(a,i,_e){var pt=i.pendingProps,Lt=pt.children,Gt=a!==null?a.memoizedState:null;if(pt.mode==="hidden")if(!(i.mode&1))i.memoizedState={baseLanes:0,cachePool:null,transitions:null},G$1(fj,gj),gj|=_e;else{if(!(_e&1073741824))return a=Gt!==null?Gt.baseLanes|_e:_e,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:a,cachePool:null,transitions:null},i.updateQueue=null,G$1(fj,gj),gj|=a,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},pt=Gt!==null?Gt.baseLanes:_e,G$1(fj,gj),gj|=pt}else Gt!==null?(pt=Gt.baseLanes|_e,i.memoizedState=null):pt=_e,G$1(fj,gj),gj|=pt;return Yi(a,i,Lt,_e),i.child}function hj(a,i){var _e=i.ref;(a===null&&_e!==null||a!==null&&a.ref!==_e)&&(i.flags|=512,i.flags|=2097152)}function dj(a,i,_e,pt,Lt){var Gt=Zf(_e)?Xf:H$1.current;return Gt=Yf(i,Gt),Tg(i,Lt),_e=Xh(a,i,_e,pt,Gt,Lt),pt=bi(),a!==null&&!Ug?(i.updateQueue=a.updateQueue,i.flags&=-2053,a.lanes&=~Lt,$i(a,i,Lt)):(I$1&&pt&&vg(i),i.flags|=1,Yi(a,i,_e,Lt),i.child)}function ij(a,i,_e,pt,Lt){if(Zf(_e)){var Gt=!0;cg(i)}else Gt=!1;if(Tg(i,Lt),i.stateNode===null)jj(a,i),ph(i,_e,pt),rh(i,_e,pt,Lt),pt=!0;else if(a===null){var Ct=i.stateNode,Rt=i.memoizedProps;Ct.props=Rt;var o=Ct.context,it=_e.contextType;typeof it=="object"&&it!==null?it=Vg(it):(it=Zf(_e)?Xf:H$1.current,it=Yf(i,it));var xt=_e.getDerivedStateFromProps,et=typeof xt=="function"||typeof Ct.getSnapshotBeforeUpdate=="function";et||typeof Ct.UNSAFE_componentWillReceiveProps!="function"&&typeof Ct.componentWillReceiveProps!="function"||(Rt!==pt||o!==it)&&qh(i,Ct,pt,it),$g=!1;var Tt=i.memoizedState;Ct.state=Tt,gh(i,pt,Ct,Lt),o=i.memoizedState,Rt!==pt||Tt!==o||Wf.current||$g?(typeof xt=="function"&&(kh(i,_e,xt,pt),o=i.memoizedState),(Rt=$g||oh(i,_e,Rt,pt,Tt,o,it))?(et||typeof Ct.UNSAFE_componentWillMount!="function"&&typeof Ct.componentWillMount!="function"||(typeof Ct.componentWillMount=="function"&&Ct.componentWillMount(),typeof Ct.UNSAFE_componentWillMount=="function"&&Ct.UNSAFE_componentWillMount()),typeof Ct.componentDidMount=="function"&&(i.flags|=4194308)):(typeof Ct.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=pt,i.memoizedState=o),Ct.props=pt,Ct.state=o,Ct.context=it,pt=Rt):(typeof Ct.componentDidMount=="function"&&(i.flags|=4194308),pt=!1)}else{Ct=i.stateNode,bh(a,i),Rt=i.memoizedProps,it=i.type===i.elementType?Rt:Lg(i.type,Rt),Ct.props=it,et=i.pendingProps,Tt=Ct.context,o=_e.contextType,typeof o=="object"&&o!==null?o=Vg(o):(o=Zf(_e)?Xf:H$1.current,o=Yf(i,o));var yt=_e.getDerivedStateFromProps;(xt=typeof yt=="function"||typeof Ct.getSnapshotBeforeUpdate=="function")||typeof Ct.UNSAFE_componentWillReceiveProps!="function"&&typeof Ct.componentWillReceiveProps!="function"||(Rt!==et||Tt!==o)&&qh(i,Ct,pt,o),$g=!1,Tt=i.memoizedState,Ct.state=Tt,gh(i,pt,Ct,Lt);var ut=i.memoizedState;Rt!==et||Tt!==ut||Wf.current||$g?(typeof yt=="function"&&(kh(i,_e,yt,pt),ut=i.memoizedState),(it=$g||oh(i,_e,it,pt,Tt,ut,o)||!1)?(xt||typeof Ct.UNSAFE_componentWillUpdate!="function"&&typeof Ct.componentWillUpdate!="function"||(typeof Ct.componentWillUpdate=="function"&&Ct.componentWillUpdate(pt,ut,o),typeof Ct.UNSAFE_componentWillUpdate=="function"&&Ct.UNSAFE_componentWillUpdate(pt,ut,o)),typeof Ct.componentDidUpdate=="function"&&(i.flags|=4),typeof Ct.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof Ct.componentDidUpdate!="function"||Rt===a.memoizedProps&&Tt===a.memoizedState||(i.flags|=4),typeof Ct.getSnapshotBeforeUpdate!="function"||Rt===a.memoizedProps&&Tt===a.memoizedState||(i.flags|=1024),i.memoizedProps=pt,i.memoizedState=ut),Ct.props=pt,Ct.state=ut,Ct.context=o,pt=it):(typeof Ct.componentDidUpdate!="function"||Rt===a.memoizedProps&&Tt===a.memoizedState||(i.flags|=4),typeof Ct.getSnapshotBeforeUpdate!="function"||Rt===a.memoizedProps&&Tt===a.memoizedState||(i.flags|=1024),pt=!1)}return kj(a,i,_e,pt,Gt,Lt)}function kj(a,i,_e,pt,Lt,Gt){hj(a,i);var Ct=(i.flags&128)!==0;if(!pt&&!Ct)return Lt&&dg(i,_e,!1),$i(a,i,Gt);pt=i.stateNode,Xi.current=i;var Rt=Ct&&typeof _e.getDerivedStateFromError!="function"?null:pt.render();return i.flags|=1,a!==null&&Ct?(i.child=Bh(i,a.child,null,Gt),i.child=Bh(i,null,Rt,Gt)):Yi(a,i,Rt,Gt),i.memoizedState=pt.state,Lt&&dg(i,_e,!0),i.child}function lj(a){var i=a.stateNode;i.pendingContext?ag(a,i.pendingContext,i.pendingContext!==i.context):i.context&&ag(a,i.context,!1),Ih(a,i.containerInfo)}function mj(a,i,_e,pt,Lt){return Ig(),Jg(Lt),i.flags|=256,Yi(a,i,_e,pt),i.child}var nj={dehydrated:null,treeContext:null,retryLane:0};function oj(a){return{baseLanes:a,cachePool:null,transitions:null}}function pj(a,i,_e){var pt=i.pendingProps,Lt=M.current,Gt=!1,Ct=(i.flags&128)!==0,Rt;if((Rt=Ct)||(Rt=a!==null&&a.memoizedState===null?!1:(Lt&2)!==0),Rt?(Gt=!0,i.flags&=-129):(a===null||a.memoizedState!==null)&&(Lt|=1),G$1(M,Lt&1),a===null)return Eg(i),a=i.memoizedState,a!==null&&(a=a.dehydrated,a!==null)?(i.mode&1?a.data==="$!"?i.lanes=8:i.lanes=1073741824:i.lanes=1,null):(Ct=pt.children,a=pt.fallback,Gt?(pt=i.mode,Gt=i.child,Ct={mode:"hidden",children:Ct},!(pt&1)&&Gt!==null?(Gt.childLanes=0,Gt.pendingProps=Ct):Gt=qj(Ct,pt,0,null),a=Ah(a,pt,_e,null),Gt.return=i,a.return=i,Gt.sibling=a,i.child=Gt,i.child.memoizedState=oj(_e),i.memoizedState=nj,a):rj(i,Ct));if(Lt=a.memoizedState,Lt!==null&&(Rt=Lt.dehydrated,Rt!==null))return sj(a,i,Ct,pt,Rt,Lt,_e);if(Gt){Gt=pt.fallback,Ct=i.mode,Lt=a.child,Rt=Lt.sibling;var o={mode:"hidden",children:pt.children};return!(Ct&1)&&i.child!==Lt?(pt=i.child,pt.childLanes=0,pt.pendingProps=o,i.deletions=null):(pt=wh(Lt,o),pt.subtreeFlags=Lt.subtreeFlags&14680064),Rt!==null?Gt=wh(Rt,Gt):(Gt=Ah(Gt,Ct,_e,null),Gt.flags|=2),Gt.return=i,pt.return=i,pt.sibling=Gt,i.child=pt,pt=Gt,Gt=i.child,Ct=a.child.memoizedState,Ct=Ct===null?oj(_e):{baseLanes:Ct.baseLanes|_e,cachePool:null,transitions:Ct.transitions},Gt.memoizedState=Ct,Gt.childLanes=a.childLanes&~_e,i.memoizedState=nj,pt}return Gt=a.child,a=Gt.sibling,pt=wh(Gt,{mode:"visible",children:pt.children}),!(i.mode&1)&&(pt.lanes=_e),pt.return=i,pt.sibling=null,a!==null&&(_e=i.deletions,_e===null?(i.deletions=[a],i.flags|=16):_e.push(a)),i.child=pt,i.memoizedState=null,pt}function rj(a,i){return i=qj({mode:"visible",children:i},a.mode,0,null),i.return=a,a.child=i}function tj(a,i,_e,pt){return pt!==null&&Jg(pt),Bh(i,a.child,null,_e),a=rj(i,i.pendingProps.children),a.flags|=2,i.memoizedState=null,a}function sj(a,i,_e,pt,Lt,Gt,Ct){if(_e)return i.flags&256?(i.flags&=-257,pt=Li(Error(p$1(422))),tj(a,i,Ct,pt)):i.memoizedState!==null?(i.child=a.child,i.flags|=128,null):(Gt=pt.fallback,Lt=i.mode,pt=qj({mode:"visible",children:pt.children},Lt,0,null),Gt=Ah(Gt,Lt,Ct,null),Gt.flags|=2,pt.return=i,Gt.return=i,pt.sibling=Gt,i.child=pt,i.mode&1&&Bh(i,a.child,null,Ct),i.child.memoizedState=oj(Ct),i.memoizedState=nj,Gt);if(!(i.mode&1))return tj(a,i,Ct,null);if(Lt.data==="$!"){if(pt=Lt.nextSibling&&Lt.nextSibling.dataset,pt)var Rt=pt.dgst;return pt=Rt,Gt=Error(p$1(419)),pt=Li(Gt,pt,void 0),tj(a,i,Ct,pt)}if(Rt=(Ct&a.childLanes)!==0,Ug||Rt){if(pt=R,pt!==null){switch(Ct&-Ct){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&(pt.suspendedLanes|Ct)?0:Lt,Lt!==0&&Lt!==Gt.retryLane&&(Gt.retryLane=Lt,Zg(a,Lt),mh(pt,a,Lt,-1))}return uj(),pt=Li(Error(p$1(421))),tj(a,i,Ct,pt)}return Lt.data==="$?"?(i.flags|=128,i.child=a.child,i=vj.bind(null,a),Lt._reactRetry=i,null):(a=Gt.treeContext,yg=Lf(Lt.nextSibling),xg=i,I$1=!0,zg=null,a!==null&&(og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,rg=a.id,sg=a.overflow,qg=i),i=rj(i,pt.children),i.flags|=4096,i)}function wj(a,i,_e){a.lanes|=i;var pt=a.alternate;pt!==null&&(pt.lanes|=i),Sg(a.return,i,_e)}function xj(a,i,_e,pt,Lt){var Gt=a.memoizedState;Gt===null?a.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:pt,tail:_e,tailMode:Lt}:(Gt.isBackwards=i,Gt.rendering=null,Gt.renderingStartTime=0,Gt.last=pt,Gt.tail=_e,Gt.tailMode=Lt)}function yj(a,i,_e){var pt=i.pendingProps,Lt=pt.revealOrder,Gt=pt.tail;if(Yi(a,i,pt.children,_e),pt=M.current,pt&2)pt=pt&1|2,i.flags|=128;else{if(a!==null&&a.flags&128)e:for(a=i.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&wj(a,_e,i);else if(a.tag===19)wj(a,_e,i);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break e;for(;a.sibling===null;){if(a.return===null||a.return===i)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}pt&=1}if(G$1(M,pt),!(i.mode&1))i.memoizedState=null;else switch(Lt){case"forwards":for(_e=i.child,Lt=null;_e!==null;)a=_e.alternate,a!==null&&Mh(a)===null&&(Lt=_e),_e=_e.sibling;_e=Lt,_e===null?(Lt=i.child,i.child=null):(Lt=_e.sibling,_e.sibling=null),xj(i,!1,Lt,_e,Gt);break;case"backwards":for(_e=null,Lt=i.child,i.child=null;Lt!==null;){if(a=Lt.alternate,a!==null&&Mh(a)===null){i.child=Lt;break}a=Lt.sibling,Lt.sibling=_e,_e=Lt,Lt=a}xj(i,!0,_e,null,Gt);break;case"together":xj(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function jj(a,i){!(i.mode&1)&&a!==null&&(a.alternate=null,i.alternate=null,i.flags|=2)}function $i(a,i,_e){if(a!==null&&(i.dependencies=a.dependencies),hh|=i.lanes,!(_e&i.childLanes))return null;if(a!==null&&i.child!==a.child)throw Error(p$1(153));if(i.child!==null){for(a=i.child,_e=wh(a,a.pendingProps),i.child=_e,_e.return=i;a.sibling!==null;)a=a.sibling,_e=_e.sibling=wh(a,a.pendingProps),_e.return=i;_e.sibling=null}return i.child}function zj(a,i,_e){switch(i.tag){case 3:lj(i),Ig();break;case 5:Kh(i);break;case 1:Zf(i.type)&&cg(i);break;case 4:Ih(i,i.stateNode.containerInfo);break;case 10:var pt=i.type._context,Lt=i.memoizedProps.value;G$1(Mg,pt._currentValue),pt._currentValue=Lt;break;case 13:if(pt=i.memoizedState,pt!==null)return pt.dehydrated!==null?(G$1(M,M.current&1),i.flags|=128,null):_e&i.child.childLanes?pj(a,i,_e):(G$1(M,M.current&1),a=$i(a,i,_e),a!==null?a.sibling:null);G$1(M,M.current&1);break;case 19:if(pt=(_e&i.childLanes)!==0,a.flags&128){if(pt)return yj(a,i,_e);i.flags|=128}if(Lt=i.memoizedState,Lt!==null&&(Lt.rendering=null,Lt.tail=null,Lt.lastEffect=null),G$1(M,M.current),pt)break;return null;case 22:case 23:return i.lanes=0,ej(a,i,_e)}return $i(a,i,_e)}var Aj,Bj,Cj,Dj;Aj=function(a,i){for(var _e=i.child;_e!==null;){if(_e.tag===5||_e.tag===6)a.appendChild(_e.stateNode);else if(_e.tag!==4&&_e.child!==null){_e.child.return=_e,_e=_e.child;continue}if(_e===i)break;for(;_e.sibling===null;){if(_e.return===null||_e.return===i)return;_e=_e.return}_e.sibling.return=_e.return,_e=_e.sibling}};Bj=function(){};Cj=function(a,i,_e,pt){var Lt=a.memoizedProps;if(Lt!==pt){a=i.stateNode,Hh(Eh.current);var Gt=null;switch(_e){case"input":Lt=Ya(a,Lt),pt=Ya(a,pt),Gt=[];break;case"select":Lt=A$1({},Lt,{value:void 0}),pt=A$1({},pt,{value:void 0}),Gt=[];break;case"textarea":Lt=gb(a,Lt),pt=gb(a,pt),Gt=[];break;default:typeof Lt.onClick!="function"&&typeof pt.onClick=="function"&&(a.onclick=Bf)}ub(_e,pt);var Ct;_e=null;for(it in Lt)if(!pt.hasOwnProperty(it)&&Lt.hasOwnProperty(it)&&Lt[it]!=null)if(it==="style"){var Rt=Lt[it];for(Ct in Rt)Rt.hasOwnProperty(Ct)&&(_e||(_e={}),_e[Ct]="")}else it!=="dangerouslySetInnerHTML"&&it!=="children"&&it!=="suppressContentEditableWarning"&&it!=="suppressHydrationWarning"&&it!=="autoFocus"&&(ea.hasOwnProperty(it)?Gt||(Gt=[]):(Gt=Gt||[]).push(it,null));for(it in pt){var o=pt[it];if(Rt=Lt!=null?Lt[it]:void 0,pt.hasOwnProperty(it)&&o!==Rt&&(o!=null||Rt!=null))if(it==="style")if(Rt){for(Ct in Rt)!Rt.hasOwnProperty(Ct)||o&&o.hasOwnProperty(Ct)||(_e||(_e={}),_e[Ct]="");for(Ct in o)o.hasOwnProperty(Ct)&&Rt[Ct]!==o[Ct]&&(_e||(_e={}),_e[Ct]=o[Ct])}else _e||(Gt||(Gt=[]),Gt.push(it,_e)),_e=o;else it==="dangerouslySetInnerHTML"?(o=o?o.__html:void 0,Rt=Rt?Rt.__html:void 0,o!=null&&Rt!==o&&(Gt=Gt||[]).push(it,o)):it==="children"?typeof o!="string"&&typeof o!="number"||(Gt=Gt||[]).push(it,""+o):it!=="suppressContentEditableWarning"&&it!=="suppressHydrationWarning"&&(ea.hasOwnProperty(it)?(o!=null&&it==="onScroll"&&D$1("scroll",a),Gt||Rt===o||(Gt=[])):(Gt=Gt||[]).push(it,o))}_e&&(Gt=Gt||[]).push("style",_e);var it=Gt;(i.updateQueue=it)&&(i.flags|=4)}};Dj=function(a,i,_e,pt){_e!==pt&&(i.flags|=4)};function Ej(a,i){if(!I$1)switch(a.tailMode){case"hidden":i=a.tail;for(var _e=null;i!==null;)i.alternate!==null&&(_e=i),i=i.sibling;_e===null?a.tail=null:_e.sibling=null;break;case"collapsed":_e=a.tail;for(var pt=null;_e!==null;)_e.alternate!==null&&(pt=_e),_e=_e.sibling;pt===null?i||a.tail===null?a.tail=null:a.tail.sibling=null:pt.sibling=null}}function S(a){var i=a.alternate!==null&&a.alternate.child===a.child,_e=0,pt=0;if(i)for(var Lt=a.child;Lt!==null;)_e|=Lt.lanes|Lt.childLanes,pt|=Lt.subtreeFlags&14680064,pt|=Lt.flags&14680064,Lt.return=a,Lt=Lt.sibling;else for(Lt=a.child;Lt!==null;)_e|=Lt.lanes|Lt.childLanes,pt|=Lt.subtreeFlags,pt|=Lt.flags,Lt.return=a,Lt=Lt.sibling;return a.subtreeFlags|=pt,a.childLanes=_e,i}function Fj(a,i,_e){var pt=i.pendingProps;switch(wg(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S(i),null;case 1:return Zf(i.type)&&$f(),S(i),null;case 3:return pt=i.stateNode,Jh(),E$1(Wf),E$1(H$1),Oh(),pt.pendingContext&&(pt.context=pt.pendingContext,pt.pendingContext=null),(a===null||a.child===null)&&(Gg(i)?i.flags|=4:a===null||a.memoizedState.isDehydrated&&!(i.flags&256)||(i.flags|=1024,zg!==null&&(Gj(zg),zg=null))),Bj(a,i),S(i),null;case 5:Lh(i);var Lt=Hh(Gh.current);if(_e=i.type,a!==null&&i.stateNode!=null)Cj(a,i,_e,pt,Lt),a.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!pt){if(i.stateNode===null)throw Error(p$1(166));return S(i),null}if(a=Hh(Eh.current),Gg(i)){pt=i.stateNode,_e=i.type;var Gt=i.memoizedProps;switch(pt[Of]=i,pt[Pf]=Gt,a=(i.mode&1)!==0,_e){case"dialog":D$1("cancel",pt),D$1("close",pt);break;case"iframe":case"object":case"embed":D$1("load",pt);break;case"video":case"audio":for(Lt=0;Lt<\/script>",a=a.removeChild(a.firstChild)):typeof pt.is=="string"?a=Ct.createElement(_e,{is:pt.is}):(a=Ct.createElement(_e),_e==="select"&&(Ct=a,pt.multiple?Ct.multiple=!0:pt.size&&(Ct.size=pt.size))):a=Ct.createElementNS(a,_e),a[Of]=i,a[Pf]=pt,Aj(a,i,!1,!1),i.stateNode=a;e:{switch(Ct=vb(_e,pt),_e){case"dialog":D$1("cancel",a),D$1("close",a),Lt=pt;break;case"iframe":case"object":case"embed":D$1("load",a),Lt=pt;break;case"video":case"audio":for(Lt=0;LtHj&&(i.flags|=128,pt=!0,Ej(Gt,!1),i.lanes=4194304)}else{if(!pt)if(a=Mh(Ct),a!==null){if(i.flags|=128,pt=!0,_e=a.updateQueue,_e!==null&&(i.updateQueue=_e,i.flags|=4),Ej(Gt,!0),Gt.tail===null&&Gt.tailMode==="hidden"&&!Ct.alternate&&!I$1)return S(i),null}else 2*B$1()-Gt.renderingStartTime>Hj&&_e!==1073741824&&(i.flags|=128,pt=!0,Ej(Gt,!1),i.lanes=4194304);Gt.isBackwards?(Ct.sibling=i.child,i.child=Ct):(_e=Gt.last,_e!==null?_e.sibling=Ct:i.child=Ct,Gt.last=Ct)}return Gt.tail!==null?(i=Gt.tail,Gt.rendering=i,Gt.tail=i.sibling,Gt.renderingStartTime=B$1(),i.sibling=null,_e=M.current,G$1(M,pt?_e&1|2:_e&1),i):(S(i),null);case 22:case 23:return Ij(),pt=i.memoizedState!==null,a!==null&&a.memoizedState!==null!==pt&&(i.flags|=8192),pt&&i.mode&1?gj&1073741824&&(S(i),i.subtreeFlags&6&&(i.flags|=8192)):S(i),null;case 24:return null;case 25:return null}throw Error(p$1(156,i.tag))}function Jj(a,i){switch(wg(i),i.tag){case 1:return Zf(i.type)&&$f(),a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 3:return Jh(),E$1(Wf),E$1(H$1),Oh(),a=i.flags,a&65536&&!(a&128)?(i.flags=a&-65537|128,i):null;case 5:return Lh(i),null;case 13:if(E$1(M),a=i.memoizedState,a!==null&&a.dehydrated!==null){if(i.alternate===null)throw Error(p$1(340));Ig()}return a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 19:return E$1(M),null;case 4:return Jh(),null;case 10:return Rg(i.type._context),null;case 22:case 23:return Ij(),null;case 24:return null;default:return null}}var Kj=!1,U=!1,Lj=typeof WeakSet=="function"?WeakSet:Set,V=null;function Mj(a,i){var _e=a.ref;if(_e!==null)if(typeof _e=="function")try{_e(null)}catch(pt){W(a,i,pt)}else _e.current=null}function Nj(a,i,_e){try{_e()}catch(pt){W(a,i,pt)}}var Oj=!1;function Pj(a,i){if(Cf=dd,a=Me(),Ne(a)){if("selectionStart"in a)var _e={start:a.selectionStart,end:a.selectionEnd};else e:{_e=(_e=a.ownerDocument)&&_e.defaultView||window;var pt=_e.getSelection&&_e.getSelection();if(pt&&pt.rangeCount!==0){_e=pt.anchorNode;var Lt=pt.anchorOffset,Gt=pt.focusNode;pt=pt.focusOffset;try{_e.nodeType,Gt.nodeType}catch{_e=null;break e}var Ct=0,Rt=-1,o=-1,it=0,xt=0,et=a,Tt=null;t:for(;;){for(var yt;et!==_e||Lt!==0&&et.nodeType!==3||(Rt=Ct+Lt),et!==Gt||pt!==0&&et.nodeType!==3||(o=Ct+pt),et.nodeType===3&&(Ct+=et.nodeValue.length),(yt=et.firstChild)!==null;)Tt=et,et=yt;for(;;){if(et===a)break t;if(Tt===_e&&++it===Lt&&(Rt=Ct),Tt===Gt&&++xt===pt&&(o=Ct),(yt=et.nextSibling)!==null)break;et=Tt,Tt=et.parentNode}et=yt}_e=Rt===-1||o===-1?null:{start:Rt,end:o}}else _e=null}_e=_e||{start:0,end:0}}else _e=null;for(Df={focusedElem:a,selectionRange:_e},dd=!1,V=i;V!==null;)if(i=V,a=i.child,(i.subtreeFlags&1028)!==0&&a!==null)a.return=i,V=a;else for(;V!==null;){i=V;try{var ut=i.alternate;if(i.flags&1024)switch(i.tag){case 0:case 11:case 15:break;case 1:if(ut!==null){var ht=ut.memoizedProps,j=ut.memoizedState,_=i.stateNode,rt=_.getSnapshotBeforeUpdate(i.elementType===i.type?ht:Lg(i.type,ht),j);_.__reactInternalSnapshotBeforeUpdate=rt}break;case 3:var tt=i.stateNode.containerInfo;tt.nodeType===1?tt.textContent="":tt.nodeType===9&&tt.documentElement&&tt.removeChild(tt.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$1(163))}}catch(st){W(i,i.return,st)}if(a=i.sibling,a!==null){a.return=i.return,V=a;break}V=i.return}return ut=Oj,Oj=!1,ut}function Qj(a,i,_e){var pt=i.updateQueue;if(pt=pt!==null?pt.lastEffect:null,pt!==null){var Lt=pt=pt.next;do{if((Lt.tag&a)===a){var Gt=Lt.destroy;Lt.destroy=void 0,Gt!==void 0&&Nj(i,_e,Gt)}Lt=Lt.next}while(Lt!==pt)}}function Rj(a,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var _e=i=i.next;do{if((_e.tag&a)===a){var pt=_e.create;_e.destroy=pt()}_e=_e.next}while(_e!==i)}}function Sj(a){var i=a.ref;if(i!==null){var _e=a.stateNode;switch(a.tag){case 5:a=_e;break;default:a=_e}typeof i=="function"?i(a):i.current=a}}function Tj(a){var i=a.alternate;i!==null&&(a.alternate=null,Tj(i)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(i=a.stateNode,i!==null&&(delete i[Of],delete i[Pf],delete i[of],delete i[Qf],delete i[Rf])),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function Uj(a){return a.tag===5||a.tag===3||a.tag===4}function Vj(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||Uj(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function Wj(a,i,_e){var pt=a.tag;if(pt===5||pt===6)a=a.stateNode,i?_e.nodeType===8?_e.parentNode.insertBefore(a,i):_e.insertBefore(a,i):(_e.nodeType===8?(i=_e.parentNode,i.insertBefore(a,_e)):(i=_e,i.appendChild(a)),_e=_e._reactRootContainer,_e!=null||i.onclick!==null||(i.onclick=Bf));else if(pt!==4&&(a=a.child,a!==null))for(Wj(a,i,_e),a=a.sibling;a!==null;)Wj(a,i,_e),a=a.sibling}function Xj(a,i,_e){var pt=a.tag;if(pt===5||pt===6)a=a.stateNode,i?_e.insertBefore(a,i):_e.appendChild(a);else if(pt!==4&&(a=a.child,a!==null))for(Xj(a,i,_e),a=a.sibling;a!==null;)Xj(a,i,_e),a=a.sibling}var X=null,Yj=!1;function Zj(a,i,_e){for(_e=_e.child;_e!==null;)ak(a,i,_e),_e=_e.sibling}function ak(a,i,_e){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,_e)}catch{}switch(_e.tag){case 5:U||Mj(_e,i);case 6:var pt=X,Lt=Yj;X=null,Zj(a,i,_e),X=pt,Yj=Lt,X!==null&&(Yj?(a=X,_e=_e.stateNode,a.nodeType===8?a.parentNode.removeChild(_e):a.removeChild(_e)):X.removeChild(_e.stateNode));break;case 18:X!==null&&(Yj?(a=X,_e=_e.stateNode,a.nodeType===8?Kf(a.parentNode,_e):a.nodeType===1&&Kf(a,_e),bd(a)):Kf(X,_e.stateNode));break;case 4:pt=X,Lt=Yj,X=_e.stateNode.containerInfo,Yj=!0,Zj(a,i,_e),X=pt,Yj=Lt;break;case 0:case 11:case 14:case 15:if(!U&&(pt=_e.updateQueue,pt!==null&&(pt=pt.lastEffect,pt!==null))){Lt=pt=pt.next;do{var Gt=Lt,Ct=Gt.destroy;Gt=Gt.tag,Ct!==void 0&&(Gt&2||Gt&4)&&Nj(_e,i,Ct),Lt=Lt.next}while(Lt!==pt)}Zj(a,i,_e);break;case 1:if(!U&&(Mj(_e,i),pt=_e.stateNode,typeof pt.componentWillUnmount=="function"))try{pt.props=_e.memoizedProps,pt.state=_e.memoizedState,pt.componentWillUnmount()}catch(Rt){W(_e,i,Rt)}Zj(a,i,_e);break;case 21:Zj(a,i,_e);break;case 22:_e.mode&1?(U=(pt=U)||_e.memoizedState!==null,Zj(a,i,_e),U=pt):Zj(a,i,_e);break;default:Zj(a,i,_e)}}function bk(a){var i=a.updateQueue;if(i!==null){a.updateQueue=null;var _e=a.stateNode;_e===null&&(_e=a.stateNode=new Lj),i.forEach(function(pt){var Lt=ck.bind(null,a,pt);_e.has(pt)||(_e.add(pt),pt.then(Lt,Lt))})}}function dk(a,i){var _e=i.deletions;if(_e!==null)for(var pt=0;pt<_e.length;pt++){var Lt=_e[pt];try{var Gt=a,Ct=i,Rt=Ct;e:for(;Rt!==null;){switch(Rt.tag){case 5:X=Rt.stateNode,Yj=!1;break e;case 3:X=Rt.stateNode.containerInfo,Yj=!0;break e;case 4:X=Rt.stateNode.containerInfo,Yj=!0;break e}Rt=Rt.return}if(X===null)throw Error(p$1(160));ak(Gt,Ct,Lt),X=null,Yj=!1;var o=Lt.alternate;o!==null&&(o.return=null),Lt.return=null}catch(it){W(Lt,i,it)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)ek(i,a),i=i.sibling}function ek(a,i){var _e=a.alternate,pt=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:if(dk(i,a),fk(a),pt&4){try{Qj(3,a,a.return),Rj(3,a)}catch(ht){W(a,a.return,ht)}try{Qj(5,a,a.return)}catch(ht){W(a,a.return,ht)}}break;case 1:dk(i,a),fk(a),pt&512&&_e!==null&&Mj(_e,_e.return);break;case 5:if(dk(i,a),fk(a),pt&512&&_e!==null&&Mj(_e,_e.return),a.flags&32){var Lt=a.stateNode;try{ob(Lt,"")}catch(ht){W(a,a.return,ht)}}if(pt&4&&(Lt=a.stateNode,Lt!=null)){var Gt=a.memoizedProps,Ct=_e!==null?_e.memoizedProps:Gt,Rt=a.type,o=a.updateQueue;if(a.updateQueue=null,o!==null)try{Rt==="input"&&Gt.type==="radio"&&Gt.name!=null&&ab(Lt,Gt),vb(Rt,Ct);var it=vb(Rt,Gt);for(Ct=0;CtLt&&(Lt=Ct),pt&=~Gt}if(pt=Lt,pt=B$1()-pt,pt=(120>pt?120:480>pt?480:1080>pt?1080:1920>pt?1920:3e3>pt?3e3:4320>pt?4320:1960*mk(pt/1960))-pt,10a?16:a,xk===null)var pt=!1;else{if(a=xk,xk=null,yk=0,K&6)throw Error(p$1(331));var Lt=K;for(K|=4,V=a.current;V!==null;){var Gt=V,Ct=Gt.child;if(V.flags&16){var Rt=Gt.deletions;if(Rt!==null){for(var o=0;oB$1()-gk?Lk(a,0):sk|=_e),Ek(a,i)}function Zk(a,i){i===0&&(a.mode&1?(i=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):i=1);var _e=L();a=Zg(a,i),a!==null&&(Ac(a,i,_e),Ek(a,_e))}function vj(a){var i=a.memoizedState,_e=0;i!==null&&(_e=i.retryLane),Zk(a,_e)}function ck(a,i){var _e=0;switch(a.tag){case 13:var pt=a.stateNode,Lt=a.memoizedState;Lt!==null&&(_e=Lt.retryLane);break;case 19:pt=a.stateNode;break;default:throw Error(p$1(314))}pt!==null&&pt.delete(i),Zk(a,_e)}var Wk;Wk=function(a,i,_e){if(a!==null)if(a.memoizedProps!==i.pendingProps||Wf.current)Ug=!0;else{if(!(a.lanes&_e)&&!(i.flags&128))return Ug=!1,zj(a,i,_e);Ug=!!(a.flags&131072)}else Ug=!1,I$1&&i.flags&1048576&&ug(i,ng,i.index);switch(i.lanes=0,i.tag){case 2:var pt=i.type;jj(a,i),a=i.pendingProps;var Lt=Yf(i,H$1.current);Tg(i,_e),Lt=Xh(null,i,pt,a,Lt,_e);var Gt=bi();return i.flags|=1,typeof Lt=="object"&&Lt!==null&&typeof Lt.render=="function"&&Lt.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,Zf(pt)?(Gt=!0,cg(i)):Gt=!1,i.memoizedState=Lt.state!==null&&Lt.state!==void 0?Lt.state:null,ah(i),Lt.updater=nh,i.stateNode=Lt,Lt._reactInternals=i,rh(i,pt,a,_e),i=kj(null,i,pt,!0,Gt,_e)):(i.tag=0,I$1&&Gt&&vg(i),Yi(null,i,Lt,_e),i=i.child),i;case 16:pt=i.elementType;e:{switch(jj(a,i),a=i.pendingProps,Lt=pt._init,pt=Lt(pt._payload),i.type=pt,Lt=i.tag=$k(pt),a=Lg(pt,a),Lt){case 0:i=dj(null,i,pt,a,_e);break e;case 1:i=ij(null,i,pt,a,_e);break e;case 11:i=Zi(null,i,pt,a,_e);break e;case 14:i=aj(null,i,pt,Lg(pt.type,a),_e);break e}throw Error(p$1(306,pt,""))}return i;case 0:return pt=i.type,Lt=i.pendingProps,Lt=i.elementType===pt?Lt:Lg(pt,Lt),dj(a,i,pt,Lt,_e);case 1:return pt=i.type,Lt=i.pendingProps,Lt=i.elementType===pt?Lt:Lg(pt,Lt),ij(a,i,pt,Lt,_e);case 3:e:{if(lj(i),a===null)throw Error(p$1(387));pt=i.pendingProps,Gt=i.memoizedState,Lt=Gt.element,bh(a,i),gh(i,pt,null,_e);var Ct=i.memoizedState;if(pt=Ct.element,Gt.isDehydrated)if(Gt={element:pt,isDehydrated:!1,cache:Ct.cache,pendingSuspenseBoundaries:Ct.pendingSuspenseBoundaries,transitions:Ct.transitions},i.updateQueue.baseState=Gt,i.memoizedState=Gt,i.flags&256){Lt=Ki(Error(p$1(423)),i),i=mj(a,i,pt,_e,Lt);break e}else if(pt!==Lt){Lt=Ki(Error(p$1(424)),i),i=mj(a,i,pt,_e,Lt);break e}else for(yg=Lf(i.stateNode.containerInfo.firstChild),xg=i,I$1=!0,zg=null,_e=Ch(i,null,pt,_e),i.child=_e;_e;)_e.flags=_e.flags&-3|4096,_e=_e.sibling;else{if(Ig(),pt===Lt){i=$i(a,i,_e);break e}Yi(a,i,pt,_e)}i=i.child}return i;case 5:return Kh(i),a===null&&Eg(i),pt=i.type,Lt=i.pendingProps,Gt=a!==null?a.memoizedProps:null,Ct=Lt.children,Ef(pt,Lt)?Ct=null:Gt!==null&&Ef(pt,Gt)&&(i.flags|=32),hj(a,i),Yi(a,i,Ct,_e),i.child;case 6:return a===null&&Eg(i),null;case 13:return pj(a,i,_e);case 4:return Ih(i,i.stateNode.containerInfo),pt=i.pendingProps,a===null?i.child=Bh(i,null,pt,_e):Yi(a,i,pt,_e),i.child;case 11:return pt=i.type,Lt=i.pendingProps,Lt=i.elementType===pt?Lt:Lg(pt,Lt),Zi(a,i,pt,Lt,_e);case 7:return Yi(a,i,i.pendingProps,_e),i.child;case 8:return Yi(a,i,i.pendingProps.children,_e),i.child;case 12:return Yi(a,i,i.pendingProps.children,_e),i.child;case 10:e:{if(pt=i.type._context,Lt=i.pendingProps,Gt=i.memoizedProps,Ct=Lt.value,G$1(Mg,pt._currentValue),pt._currentValue=Ct,Gt!==null)if(He(Gt.value,Ct)){if(Gt.children===Lt.children&&!Wf.current){i=$i(a,i,_e);break e}}else for(Gt=i.child,Gt!==null&&(Gt.return=i);Gt!==null;){var Rt=Gt.dependencies;if(Rt!==null){Ct=Gt.child;for(var o=Rt.firstContext;o!==null;){if(o.context===pt){if(Gt.tag===1){o=ch(-1,_e&-_e),o.tag=2;var it=Gt.updateQueue;if(it!==null){it=it.shared;var xt=it.pending;xt===null?o.next=o:(o.next=xt.next,xt.next=o),it.pending=o}}Gt.lanes|=_e,o=Gt.alternate,o!==null&&(o.lanes|=_e),Sg(Gt.return,_e,i),Rt.lanes|=_e;break}o=o.next}}else if(Gt.tag===10)Ct=Gt.type===i.type?null:Gt.child;else if(Gt.tag===18){if(Ct=Gt.return,Ct===null)throw Error(p$1(341));Ct.lanes|=_e,Rt=Ct.alternate,Rt!==null&&(Rt.lanes|=_e),Sg(Ct,_e,i),Ct=Gt.sibling}else Ct=Gt.child;if(Ct!==null)Ct.return=Gt;else for(Ct=Gt;Ct!==null;){if(Ct===i){Ct=null;break}if(Gt=Ct.sibling,Gt!==null){Gt.return=Ct.return,Ct=Gt;break}Ct=Ct.return}Gt=Ct}Yi(a,i,Lt.children,_e),i=i.child}return i;case 9:return Lt=i.type,pt=i.pendingProps.children,Tg(i,_e),Lt=Vg(Lt),pt=pt(Lt),i.flags|=1,Yi(a,i,pt,_e),i.child;case 14:return pt=i.type,Lt=Lg(pt,i.pendingProps),Lt=Lg(pt.type,Lt),aj(a,i,pt,Lt,_e);case 15:return cj(a,i,i.type,i.pendingProps,_e);case 17:return pt=i.type,Lt=i.pendingProps,Lt=i.elementType===pt?Lt:Lg(pt,Lt),jj(a,i),i.tag=1,Zf(pt)?(a=!0,cg(i)):a=!1,Tg(i,_e),ph(i,pt,Lt),rh(i,pt,Lt,_e),kj(null,i,pt,!0,a,_e);case 19:return yj(a,i,_e);case 22:return ej(a,i,_e)}throw Error(p$1(156,i.tag))};function Gk(a,i){return ac(a,i)}function al(a,i,_e,pt){this.tag=a,this.key=_e,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=pt,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(a,i,_e,pt){return new al(a,i,_e,pt)}function bj(a){return a=a.prototype,!(!a||!a.isReactComponent)}function $k(a){if(typeof a=="function")return bj(a)?1:0;if(a!=null){if(a=a.$$typeof,a===Da)return 11;if(a===Ga)return 14}return 2}function wh(a,i){var _e=a.alternate;return _e===null?(_e=Bg(a.tag,i,a.key,a.mode),_e.elementType=a.elementType,_e.type=a.type,_e.stateNode=a.stateNode,_e.alternate=a,a.alternate=_e):(_e.pendingProps=i,_e.type=a.type,_e.flags=0,_e.subtreeFlags=0,_e.deletions=null),_e.flags=a.flags&14680064,_e.childLanes=a.childLanes,_e.lanes=a.lanes,_e.child=a.child,_e.memoizedProps=a.memoizedProps,_e.memoizedState=a.memoizedState,_e.updateQueue=a.updateQueue,i=a.dependencies,_e.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},_e.sibling=a.sibling,_e.index=a.index,_e.ref=a.ref,_e}function yh(a,i,_e,pt,Lt,Gt){var Ct=2;if(pt=a,typeof a=="function")bj(a)&&(Ct=1);else if(typeof a=="string")Ct=5;else e:switch(a){case ya:return Ah(_e.children,Lt,Gt,i);case za:Ct=8,Lt|=8;break;case Aa:return a=Bg(12,_e,i,Lt|2),a.elementType=Aa,a.lanes=Gt,a;case Ea:return a=Bg(13,_e,i,Lt),a.elementType=Ea,a.lanes=Gt,a;case Fa:return a=Bg(19,_e,i,Lt),a.elementType=Fa,a.lanes=Gt,a;case Ia:return qj(_e,Lt,Gt,i);default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case Ba:Ct=10;break e;case Ca:Ct=9;break e;case Da:Ct=11;break e;case Ga:Ct=14;break e;case Ha:Ct=16,pt=null;break e}throw Error(p$1(130,a==null?a:typeof a,""))}return i=Bg(Ct,_e,i,Lt),i.elementType=a,i.type=pt,i.lanes=Gt,i}function Ah(a,i,_e,pt){return a=Bg(7,a,pt,i),a.lanes=_e,a}function qj(a,i,_e,pt){return a=Bg(22,a,pt,i),a.elementType=Ia,a.lanes=_e,a.stateNode={isHidden:!1},a}function xh(a,i,_e){return a=Bg(6,a,null,i),a.lanes=_e,a}function zh(a,i,_e){return i=Bg(4,a.children!==null?a.children:[],a.key,i),i.lanes=_e,i.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},i}function bl(a,i,_e,pt,Lt){this.tag=i,this.containerInfo=a,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=pt,this.onRecoverableError=Lt,this.mutableSourceEagerHydrationData=null}function cl(a,i,_e,pt,Lt,Gt,Ct,Rt,o){return a=new bl(a,i,_e,Rt,o),i===1?(i=1,Gt===!0&&(i|=8)):i=0,Gt=Bg(3,null,null,i),a.current=Gt,Gt.stateNode=a,Gt.memoizedState={element:pt,isDehydrated:_e,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(Gt),a}function dl(a,i,_e){var pt=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(_e){console.error(_e)}}i(),a.exports=reactDom_production_min})(reactDom);var m$1=reactDomExports;client.createRoot=m$1.createRoot,client.hydrateRoot=m$1.hydrateRoot;/** * @remix-run/router v1.3.2 * * Copyright (c) Remix Software Inc. @@ -46,7 +46,7 @@ Error generating stack: `+Gt.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function _extends$3(){return _extends$3=Object.assign?Object.assign.bind():function(a){for(var i=1;i"u")throw new Error(i)}function warning$1(a,i){if(!a){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function createKey(){return Math.random().toString(36).substr(2,8)}function getHistoryState(a,i){return{usr:a.state,key:a.key,idx:i}}function createLocation$1(a,i,_e,pt){return _e===void 0&&(_e=null),_extends$3({pathname:typeof a=="string"?a:a.pathname,search:"",hash:""},typeof i=="string"?parsePath(i):i,{state:_e,key:i&&i.key||pt||createKey()})}function createPath(a){let{pathname:i="/",search:_e="",hash:pt=""}=a;return _e&&_e!=="?"&&(i+=_e.charAt(0)==="?"?_e:"?"+_e),pt&&pt!=="#"&&(i+=pt.charAt(0)==="#"?pt:"#"+pt),i}function parsePath(a){let i={};if(a){let _e=a.indexOf("#");_e>=0&&(i.hash=a.substr(_e),a=a.substr(0,_e));let pt=a.indexOf("?");pt>=0&&(i.search=a.substr(pt),a=a.substr(0,pt)),a&&(i.pathname=a)}return i}function getUrlBasedHistory(a,i,_e,pt){pt===void 0&&(pt={});let{window:Lt=document.defaultView,v5Compat:Gt=!1}=pt,Ct=Lt.history,Rt=Action.Pop,o=null,it=xt();it==null&&(it=0,Ct.replaceState(_extends$3({},Ct.state,{idx:it}),""));function xt(){return(Ct.state||{idx:null}).idx}function et(){Rt=Action.Pop;let j=xt(),_=j==null?null:j-it;it=j,o&&o({action:Rt,location:ht.location,delta:_})}function Et(j,_){Rt=Action.Push;let rt=createLocation$1(ht.location,j,_);_e&&_e(rt,j),it=xt()+1;let tt=getHistoryState(rt,it),st=ht.createHref(rt);try{Ct.pushState(tt,"",st)}catch{Lt.location.assign(st)}Gt&&o&&o({action:Rt,location:ht.location,delta:1})}function mt(j,_){Rt=Action.Replace;let rt=createLocation$1(ht.location,j,_);_e&&_e(rt,j),it=xt();let tt=getHistoryState(rt,it),st=ht.createHref(rt);Ct.replaceState(tt,"",st),Gt&&o&&o({action:Rt,location:ht.location,delta:0})}function ut(j){let _=Lt.location.origin!=="null"?Lt.location.origin:Lt.location.href,rt=typeof j=="string"?j:createPath(j);return invariant$1(_,"No window.location.(origin|href) available to create URL for href: "+rt),new URL(rt,_)}let ht={get action(){return Rt},get location(){return a(Lt,Ct)},listen(j){if(o)throw new Error("A history only accepts one active listener");return Lt.addEventListener(PopStateEventType,et),o=j,()=>{Lt.removeEventListener(PopStateEventType,et),o=null}},createHref(j){return i(Lt,j)},createURL:ut,encodeLocation(j){let _=ut(j);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:Et,replace:mt,go(j){return Ct.go(j)}};return ht}var ResultType;(function(a){a.data="data",a.deferred="deferred",a.redirect="redirect",a.error="error"})(ResultType||(ResultType={}));function matchRoutes(a,i,_e){_e===void 0&&(_e="/");let pt=typeof i=="string"?parsePath(i):i,Lt=stripBasename(pt.pathname||"/",_e);if(Lt==null)return null;let Gt=flattenRoutes(a);rankRouteBranches(Gt);let Ct=null;for(let Rt=0;Ct==null&&Rt{let o={relativePath:Rt===void 0?Gt.path||"":Rt,caseSensitive:Gt.caseSensitive===!0,childrenIndex:Ct,route:Gt};o.relativePath.startsWith("/")&&(invariant$1(o.relativePath.startsWith(pt),'Absolute route path "'+o.relativePath+'" nested under path '+('"'+pt+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),o.relativePath=o.relativePath.slice(pt.length));let it=joinPaths([pt,o.relativePath]),xt=_e.concat(o);Gt.children&&Gt.children.length>0&&(invariant$1(Gt.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+it+'".')),flattenRoutes(Gt.children,i,xt,it)),!(Gt.path==null&&!Gt.index)&&i.push({path:it,score:computeScore(it,Gt.index),routesMeta:xt})};return a.forEach((Gt,Ct)=>{var Rt;if(Gt.path===""||!((Rt=Gt.path)!=null&&Rt.includes("?")))Lt(Gt,Ct);else for(let o of explodeOptionalSegments(Gt.path))Lt(Gt,Ct,o)}),i}function explodeOptionalSegments(a){let i=a.split("/");if(i.length===0)return[];let[_e,...pt]=i,Lt=_e.endsWith("?"),Gt=_e.replace(/\?$/,"");if(pt.length===0)return Lt?[Gt,""]:[Gt];let Ct=explodeOptionalSegments(pt.join("/")),Rt=[];return Rt.push(...Ct.map(o=>o===""?Gt:[Gt,o].join("/"))),Lt&&Rt.push(...Ct),Rt.map(o=>a.startsWith("/")&&o===""?"/":o)}function rankRouteBranches(a){a.sort((i,_e)=>i.score!==_e.score?_e.score-i.score:compareIndexes(i.routesMeta.map(pt=>pt.childrenIndex),_e.routesMeta.map(pt=>pt.childrenIndex)))}const paramRe=/^:\w+$/,dynamicSegmentValue=3,indexRouteValue=2,emptySegmentValue=1,staticSegmentValue=10,splatPenalty=-2,isSplat=a=>a==="*";function computeScore(a,i){let _e=a.split("/"),pt=_e.length;return _e.some(isSplat)&&(pt+=splatPenalty),i&&(pt+=indexRouteValue),_e.filter(Lt=>!isSplat(Lt)).reduce((Lt,Gt)=>Lt+(paramRe.test(Gt)?dynamicSegmentValue:Gt===""?emptySegmentValue:staticSegmentValue),pt)}function compareIndexes(a,i){return a.length===i.length&&a.slice(0,-1).every((pt,Lt)=>pt===i[Lt])?a[a.length-1]-i[i.length-1]:0}function matchRouteBranch(a,i){let{routesMeta:_e}=a,pt={},Lt="/",Gt=[];for(let Ct=0;Ct<_e.length;++Ct){let Rt=_e[Ct],o=Ct===_e.length-1,it=Lt==="/"?i:i.slice(Lt.length)||"/",xt=matchPath({path:Rt.relativePath,caseSensitive:Rt.caseSensitive,end:o},it);if(!xt)return null;Object.assign(pt,xt.params);let et=Rt.route;Gt.push({params:pt,pathname:joinPaths([Lt,xt.pathname]),pathnameBase:normalizePathname(joinPaths([Lt,xt.pathnameBase])),route:et}),xt.pathnameBase!=="/"&&(Lt=joinPaths([Lt,xt.pathnameBase]))}return Gt}function matchPath(a,i){typeof a=="string"&&(a={path:a,caseSensitive:!1,end:!0});let[_e,pt]=compilePath(a.path,a.caseSensitive,a.end),Lt=i.match(_e);if(!Lt)return null;let Gt=Lt[0],Ct=Gt.replace(/(.)\/+$/,"$1"),Rt=Lt.slice(1);return{params:pt.reduce((it,xt,et)=>{if(xt==="*"){let Et=Rt[et]||"";Ct=Gt.slice(0,Gt.length-Et.length).replace(/(.)\/+$/,"$1")}return it[xt]=safelyDecodeURIComponent(Rt[et]||"",xt),it},{}),pathname:Gt,pathnameBase:Ct,pattern:a}}function compilePath(a,i,_e){i===void 0&&(i=!1),_e===void 0&&(_e=!0),warning$2(a==="*"||!a.endsWith("*")||a.endsWith("/*"),'Route path "'+a+'" will be treated as if it were '+('"'+a.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+a.replace(/\*$/,"/*")+'".'));let pt=[],Lt="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(Ct,Rt)=>(pt.push(Rt),"/([^\\/]+)"));return a.endsWith("*")?(pt.push("*"),Lt+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):_e?Lt+="\\/*$":a!==""&&a!=="/"&&(Lt+="(?:(?=\\/|$))"),[new RegExp(Lt,i?void 0:"i"),pt]}function safelyDecodeURI(a){try{return decodeURI(a)}catch(i){return warning$2(!1,'The URL path "'+a+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+i+").")),a}}function safelyDecodeURIComponent(a,i){try{return decodeURIComponent(a)}catch(_e){return warning$2(!1,'The value for the URL param "'+i+'" will not be decoded because'+(' the string "'+a+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+_e+").")),a}}function stripBasename(a,i){if(i==="/")return a;if(!a.toLowerCase().startsWith(i.toLowerCase()))return null;let _e=i.endsWith("/")?i.length-1:i.length,pt=a.charAt(_e);return pt&&pt!=="/"?null:a.slice(_e)||"/"}function warning$2(a,i){if(!a){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function resolvePath(a,i){i===void 0&&(i="/");let{pathname:_e,search:pt="",hash:Lt=""}=typeof a=="string"?parsePath(a):a;return{pathname:_e?_e.startsWith("/")?_e:resolvePathname(_e,i):i,search:normalizeSearch(pt),hash:normalizeHash(Lt)}}function resolvePathname(a,i){let _e=i.replace(/\/+$/,"").split("/");return a.split("/").forEach(Lt=>{Lt===".."?_e.length>1&&_e.pop():Lt!=="."&&_e.push(Lt)}),_e.length>1?_e.join("/"):"/"}function getInvalidPathError(a,i,_e,pt){return"Cannot include a '"+a+"' character in a manually specified "+("`to."+i+"` field ["+JSON.stringify(pt)+"]. Please separate it out to the ")+("`to."+_e+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function getPathContributingMatches(a){return a.filter((i,_e)=>_e===0||i.route.path&&i.route.path.length>0)}function resolveTo(a,i,_e,pt){pt===void 0&&(pt=!1);let Lt;typeof a=="string"?Lt=parsePath(a):(Lt=_extends$3({},a),invariant$1(!Lt.pathname||!Lt.pathname.includes("?"),getInvalidPathError("?","pathname","search",Lt)),invariant$1(!Lt.pathname||!Lt.pathname.includes("#"),getInvalidPathError("#","pathname","hash",Lt)),invariant$1(!Lt.search||!Lt.search.includes("#"),getInvalidPathError("#","search","hash",Lt)));let Gt=a===""||Lt.pathname==="",Ct=Gt?"/":Lt.pathname,Rt;if(pt||Ct==null)Rt=_e;else{let et=i.length-1;if(Ct.startsWith("..")){let Et=Ct.split("/");for(;Et[0]==="..";)Et.shift(),et-=1;Lt.pathname=Et.join("/")}Rt=et>=0?i[et]:"/"}let o=resolvePath(Lt,Rt),it=Ct&&Ct!=="/"&&Ct.endsWith("/"),xt=(Gt||Ct===".")&&_e.endsWith("/");return!o.pathname.endsWith("/")&&(it||xt)&&(o.pathname+="/"),o}const joinPaths=a=>a.join("/").replace(/\/\/+/g,"/"),normalizePathname=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),normalizeSearch=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,normalizeHash=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a;function isRouteErrorResponse(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}const validMutationMethodsArr=["post","put","patch","delete"];[...validMutationMethodsArr];/** + */function _extends$3(){return _extends$3=Object.assign?Object.assign.bind():function(a){for(var i=1;i"u")throw new Error(i)}function warning$1(a,i){if(!a){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function createKey(){return Math.random().toString(36).substr(2,8)}function getHistoryState(a,i){return{usr:a.state,key:a.key,idx:i}}function createLocation$1(a,i,_e,pt){return _e===void 0&&(_e=null),_extends$3({pathname:typeof a=="string"?a:a.pathname,search:"",hash:""},typeof i=="string"?parsePath(i):i,{state:_e,key:i&&i.key||pt||createKey()})}function createPath(a){let{pathname:i="/",search:_e="",hash:pt=""}=a;return _e&&_e!=="?"&&(i+=_e.charAt(0)==="?"?_e:"?"+_e),pt&&pt!=="#"&&(i+=pt.charAt(0)==="#"?pt:"#"+pt),i}function parsePath(a){let i={};if(a){let _e=a.indexOf("#");_e>=0&&(i.hash=a.substr(_e),a=a.substr(0,_e));let pt=a.indexOf("?");pt>=0&&(i.search=a.substr(pt),a=a.substr(0,pt)),a&&(i.pathname=a)}return i}function getUrlBasedHistory(a,i,_e,pt){pt===void 0&&(pt={});let{window:Lt=document.defaultView,v5Compat:Gt=!1}=pt,Ct=Lt.history,Rt=Action.Pop,o=null,it=xt();it==null&&(it=0,Ct.replaceState(_extends$3({},Ct.state,{idx:it}),""));function xt(){return(Ct.state||{idx:null}).idx}function et(){Rt=Action.Pop;let j=xt(),_=j==null?null:j-it;it=j,o&&o({action:Rt,location:ht.location,delta:_})}function Tt(j,_){Rt=Action.Push;let rt=createLocation$1(ht.location,j,_);_e&&_e(rt,j),it=xt()+1;let tt=getHistoryState(rt,it),st=ht.createHref(rt);try{Ct.pushState(tt,"",st)}catch{Lt.location.assign(st)}Gt&&o&&o({action:Rt,location:ht.location,delta:1})}function yt(j,_){Rt=Action.Replace;let rt=createLocation$1(ht.location,j,_);_e&&_e(rt,j),it=xt();let tt=getHistoryState(rt,it),st=ht.createHref(rt);Ct.replaceState(tt,"",st),Gt&&o&&o({action:Rt,location:ht.location,delta:0})}function ut(j){let _=Lt.location.origin!=="null"?Lt.location.origin:Lt.location.href,rt=typeof j=="string"?j:createPath(j);return invariant$1(_,"No window.location.(origin|href) available to create URL for href: "+rt),new URL(rt,_)}let ht={get action(){return Rt},get location(){return a(Lt,Ct)},listen(j){if(o)throw new Error("A history only accepts one active listener");return Lt.addEventListener(PopStateEventType,et),o=j,()=>{Lt.removeEventListener(PopStateEventType,et),o=null}},createHref(j){return i(Lt,j)},createURL:ut,encodeLocation(j){let _=ut(j);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:Tt,replace:yt,go(j){return Ct.go(j)}};return ht}var ResultType;(function(a){a.data="data",a.deferred="deferred",a.redirect="redirect",a.error="error"})(ResultType||(ResultType={}));function matchRoutes(a,i,_e){_e===void 0&&(_e="/");let pt=typeof i=="string"?parsePath(i):i,Lt=stripBasename(pt.pathname||"/",_e);if(Lt==null)return null;let Gt=flattenRoutes(a);rankRouteBranches(Gt);let Ct=null;for(let Rt=0;Ct==null&&Rt{let o={relativePath:Rt===void 0?Gt.path||"":Rt,caseSensitive:Gt.caseSensitive===!0,childrenIndex:Ct,route:Gt};o.relativePath.startsWith("/")&&(invariant$1(o.relativePath.startsWith(pt),'Absolute route path "'+o.relativePath+'" nested under path '+('"'+pt+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),o.relativePath=o.relativePath.slice(pt.length));let it=joinPaths([pt,o.relativePath]),xt=_e.concat(o);Gt.children&&Gt.children.length>0&&(invariant$1(Gt.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+it+'".')),flattenRoutes(Gt.children,i,xt,it)),!(Gt.path==null&&!Gt.index)&&i.push({path:it,score:computeScore(it,Gt.index),routesMeta:xt})};return a.forEach((Gt,Ct)=>{var Rt;if(Gt.path===""||!((Rt=Gt.path)!=null&&Rt.includes("?")))Lt(Gt,Ct);else for(let o of explodeOptionalSegments(Gt.path))Lt(Gt,Ct,o)}),i}function explodeOptionalSegments(a){let i=a.split("/");if(i.length===0)return[];let[_e,...pt]=i,Lt=_e.endsWith("?"),Gt=_e.replace(/\?$/,"");if(pt.length===0)return Lt?[Gt,""]:[Gt];let Ct=explodeOptionalSegments(pt.join("/")),Rt=[];return Rt.push(...Ct.map(o=>o===""?Gt:[Gt,o].join("/"))),Lt&&Rt.push(...Ct),Rt.map(o=>a.startsWith("/")&&o===""?"/":o)}function rankRouteBranches(a){a.sort((i,_e)=>i.score!==_e.score?_e.score-i.score:compareIndexes(i.routesMeta.map(pt=>pt.childrenIndex),_e.routesMeta.map(pt=>pt.childrenIndex)))}const paramRe=/^:\w+$/,dynamicSegmentValue=3,indexRouteValue=2,emptySegmentValue=1,staticSegmentValue=10,splatPenalty=-2,isSplat=a=>a==="*";function computeScore(a,i){let _e=a.split("/"),pt=_e.length;return _e.some(isSplat)&&(pt+=splatPenalty),i&&(pt+=indexRouteValue),_e.filter(Lt=>!isSplat(Lt)).reduce((Lt,Gt)=>Lt+(paramRe.test(Gt)?dynamicSegmentValue:Gt===""?emptySegmentValue:staticSegmentValue),pt)}function compareIndexes(a,i){return a.length===i.length&&a.slice(0,-1).every((pt,Lt)=>pt===i[Lt])?a[a.length-1]-i[i.length-1]:0}function matchRouteBranch(a,i){let{routesMeta:_e}=a,pt={},Lt="/",Gt=[];for(let Ct=0;Ct<_e.length;++Ct){let Rt=_e[Ct],o=Ct===_e.length-1,it=Lt==="/"?i:i.slice(Lt.length)||"/",xt=matchPath({path:Rt.relativePath,caseSensitive:Rt.caseSensitive,end:o},it);if(!xt)return null;Object.assign(pt,xt.params);let et=Rt.route;Gt.push({params:pt,pathname:joinPaths([Lt,xt.pathname]),pathnameBase:normalizePathname(joinPaths([Lt,xt.pathnameBase])),route:et}),xt.pathnameBase!=="/"&&(Lt=joinPaths([Lt,xt.pathnameBase]))}return Gt}function matchPath(a,i){typeof a=="string"&&(a={path:a,caseSensitive:!1,end:!0});let[_e,pt]=compilePath(a.path,a.caseSensitive,a.end),Lt=i.match(_e);if(!Lt)return null;let Gt=Lt[0],Ct=Gt.replace(/(.)\/+$/,"$1"),Rt=Lt.slice(1);return{params:pt.reduce((it,xt,et)=>{if(xt==="*"){let Tt=Rt[et]||"";Ct=Gt.slice(0,Gt.length-Tt.length).replace(/(.)\/+$/,"$1")}return it[xt]=safelyDecodeURIComponent(Rt[et]||"",xt),it},{}),pathname:Gt,pathnameBase:Ct,pattern:a}}function compilePath(a,i,_e){i===void 0&&(i=!1),_e===void 0&&(_e=!0),warning$2(a==="*"||!a.endsWith("*")||a.endsWith("/*"),'Route path "'+a+'" will be treated as if it were '+('"'+a.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+a.replace(/\*$/,"/*")+'".'));let pt=[],Lt="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(Ct,Rt)=>(pt.push(Rt),"/([^\\/]+)"));return a.endsWith("*")?(pt.push("*"),Lt+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):_e?Lt+="\\/*$":a!==""&&a!=="/"&&(Lt+="(?:(?=\\/|$))"),[new RegExp(Lt,i?void 0:"i"),pt]}function safelyDecodeURI(a){try{return decodeURI(a)}catch(i){return warning$2(!1,'The URL path "'+a+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+i+").")),a}}function safelyDecodeURIComponent(a,i){try{return decodeURIComponent(a)}catch(_e){return warning$2(!1,'The value for the URL param "'+i+'" will not be decoded because'+(' the string "'+a+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+_e+").")),a}}function stripBasename(a,i){if(i==="/")return a;if(!a.toLowerCase().startsWith(i.toLowerCase()))return null;let _e=i.endsWith("/")?i.length-1:i.length,pt=a.charAt(_e);return pt&&pt!=="/"?null:a.slice(_e)||"/"}function warning$2(a,i){if(!a){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function resolvePath(a,i){i===void 0&&(i="/");let{pathname:_e,search:pt="",hash:Lt=""}=typeof a=="string"?parsePath(a):a;return{pathname:_e?_e.startsWith("/")?_e:resolvePathname(_e,i):i,search:normalizeSearch(pt),hash:normalizeHash(Lt)}}function resolvePathname(a,i){let _e=i.replace(/\/+$/,"").split("/");return a.split("/").forEach(Lt=>{Lt===".."?_e.length>1&&_e.pop():Lt!=="."&&_e.push(Lt)}),_e.length>1?_e.join("/"):"/"}function getInvalidPathError(a,i,_e,pt){return"Cannot include a '"+a+"' character in a manually specified "+("`to."+i+"` field ["+JSON.stringify(pt)+"]. Please separate it out to the ")+("`to."+_e+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function getPathContributingMatches(a){return a.filter((i,_e)=>_e===0||i.route.path&&i.route.path.length>0)}function resolveTo(a,i,_e,pt){pt===void 0&&(pt=!1);let Lt;typeof a=="string"?Lt=parsePath(a):(Lt=_extends$3({},a),invariant$1(!Lt.pathname||!Lt.pathname.includes("?"),getInvalidPathError("?","pathname","search",Lt)),invariant$1(!Lt.pathname||!Lt.pathname.includes("#"),getInvalidPathError("#","pathname","hash",Lt)),invariant$1(!Lt.search||!Lt.search.includes("#"),getInvalidPathError("#","search","hash",Lt)));let Gt=a===""||Lt.pathname==="",Ct=Gt?"/":Lt.pathname,Rt;if(pt||Ct==null)Rt=_e;else{let et=i.length-1;if(Ct.startsWith("..")){let Tt=Ct.split("/");for(;Tt[0]==="..";)Tt.shift(),et-=1;Lt.pathname=Tt.join("/")}Rt=et>=0?i[et]:"/"}let o=resolvePath(Lt,Rt),it=Ct&&Ct!=="/"&&Ct.endsWith("/"),xt=(Gt||Ct===".")&&_e.endsWith("/");return!o.pathname.endsWith("/")&&(it||xt)&&(o.pathname+="/"),o}const joinPaths=a=>a.join("/").replace(/\/\/+/g,"/"),normalizePathname=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),normalizeSearch=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,normalizeHash=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a;function isRouteErrorResponse(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}const validMutationMethodsArr=["post","put","patch","delete"];[...validMutationMethodsArr];/** * React Router v6.8.1 * * Copyright (c) Remix Software Inc. @@ -55,7 +55,7 @@ Error generating stack: `+Gt.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function _extends$2(){return _extends$2=Object.assign?Object.assign.bind():function(a){for(var i=1;i{Lt.value=pt,Lt.getSnapshot=i,checkIfSnapshotChanged(Lt)&&Gt({inst:Lt})},[a,pt,i]),useEffect(()=>(checkIfSnapshotChanged(Lt)&&Gt({inst:Lt}),a(()=>{checkIfSnapshotChanged(Lt)&&Gt({inst:Lt})})),[a]),useDebugValue(pt),pt}function checkIfSnapshotChanged(a){const i=a.getSnapshot,_e=a.value;try{const pt=i();return!is(_e,pt)}catch{return!0}}function useSyncExternalStore$1(a,i,_e){return i()}const canUseDOM$1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",isServerEnvironment=!canUseDOM$1,shim=isServerEnvironment?useSyncExternalStore$1:useSyncExternalStore$2;"useSyncExternalStore"in React$1&&(a=>a.useSyncExternalStore)(React$1);const DataRouterContext=reactExports.createContext(null),DataRouterStateContext=reactExports.createContext(null),NavigationContext=reactExports.createContext(null),LocationContext=reactExports.createContext(null),RouteContext=reactExports.createContext({outlet:null,matches:[]}),RouteErrorContext=reactExports.createContext(null);function useHref(a,i){let{relative:_e}=i===void 0?{}:i;useInRouterContext()||invariant$1(!1);let{basename:pt,navigator:Lt}=reactExports.useContext(NavigationContext),{hash:Gt,pathname:Ct,search:Rt}=useResolvedPath(a,{relative:_e}),o=Ct;return pt!=="/"&&(o=Ct==="/"?pt:joinPaths([pt,Ct])),Lt.createHref({pathname:o,search:Rt,hash:Gt})}function useInRouterContext(){return reactExports.useContext(LocationContext)!=null}function useLocation(){return useInRouterContext()||invariant$1(!1),reactExports.useContext(LocationContext).location}function useNavigate(){useInRouterContext()||invariant$1(!1);let{basename:a,navigator:i}=reactExports.useContext(NavigationContext),{matches:_e}=reactExports.useContext(RouteContext),{pathname:pt}=useLocation(),Lt=JSON.stringify(getPathContributingMatches(_e).map(Rt=>Rt.pathnameBase)),Gt=reactExports.useRef(!1);return reactExports.useEffect(()=>{Gt.current=!0}),reactExports.useCallback(function(Rt,o){if(o===void 0&&(o={}),!Gt.current)return;if(typeof Rt=="number"){i.go(Rt);return}let it=resolveTo(Rt,JSON.parse(Lt),pt,o.relative==="path");a!=="/"&&(it.pathname=it.pathname==="/"?a:joinPaths([a,it.pathname])),(o.replace?i.replace:i.push)(it,o.state,o)},[a,i,Lt,pt])}const OutletContext=reactExports.createContext(null);function useOutlet(a){let i=reactExports.useContext(RouteContext).outlet;return i&&reactExports.createElement(OutletContext.Provider,{value:a},i)}function useResolvedPath(a,i){let{relative:_e}=i===void 0?{}:i,{matches:pt}=reactExports.useContext(RouteContext),{pathname:Lt}=useLocation(),Gt=JSON.stringify(getPathContributingMatches(pt).map(Ct=>Ct.pathnameBase));return reactExports.useMemo(()=>resolveTo(a,JSON.parse(Gt),Lt,_e==="path"),[a,Gt,Lt,_e])}function useRoutes(a,i){useInRouterContext()||invariant$1(!1);let{navigator:_e}=reactExports.useContext(NavigationContext),pt=reactExports.useContext(DataRouterStateContext),{matches:Lt}=reactExports.useContext(RouteContext),Gt=Lt[Lt.length-1],Ct=Gt?Gt.params:{};Gt&&Gt.pathname;let Rt=Gt?Gt.pathnameBase:"/";Gt&&Gt.route;let o=useLocation(),it;if(i){var xt;let ht=typeof i=="string"?parsePath(i):i;Rt==="/"||(xt=ht.pathname)!=null&&xt.startsWith(Rt)||invariant$1(!1),it=ht}else it=o;let et=it.pathname||"/",Et=Rt==="/"?et:et.slice(Rt.length)||"/",mt=matchRoutes(a,{pathname:Et}),ut=_renderMatches(mt&&mt.map(ht=>Object.assign({},ht,{params:Object.assign({},Ct,ht.params),pathname:joinPaths([Rt,_e.encodeLocation?_e.encodeLocation(ht.pathname).pathname:ht.pathname]),pathnameBase:ht.pathnameBase==="/"?Rt:joinPaths([Rt,_e.encodeLocation?_e.encodeLocation(ht.pathnameBase).pathname:ht.pathnameBase])})),Lt,pt||void 0);return i&&ut?reactExports.createElement(LocationContext.Provider,{value:{location:_extends$2({pathname:"/",search:"",hash:"",state:null,key:"default"},it),navigationType:Action.Pop}},ut):ut}function DefaultErrorElement(){let a=useRouteError(),i=isRouteErrorResponse(a)?a.status+" "+a.statusText:a instanceof Error?a.message:JSON.stringify(a),_e=a instanceof Error?a.stack:null,Lt={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},Gt=null;return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("h2",null,"Unexpected Application Error!"),reactExports.createElement("h3",{style:{fontStyle:"italic"}},i),_e?reactExports.createElement("pre",{style:Lt},_e):null,Gt)}class RenderErrorBoundary extends reactExports.Component{constructor(i){super(i),this.state={location:i.location,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,_e){return _e.location!==i.location?{error:i.error,location:i.location}:{error:i.error||_e.error,location:_e.location}}componentDidCatch(i,_e){console.error("React Router caught the following error during render",i,_e)}render(){return this.state.error?reactExports.createElement(RouteContext.Provider,{value:this.props.routeContext},reactExports.createElement(RouteErrorContext.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function RenderedRoute(a){let{routeContext:i,match:_e,children:pt}=a,Lt=reactExports.useContext(DataRouterContext);return Lt&&Lt.static&&Lt.staticContext&&_e.route.errorElement&&(Lt.staticContext._deepestRenderedBoundaryId=_e.route.id),reactExports.createElement(RouteContext.Provider,{value:i},pt)}function _renderMatches(a,i,_e){if(i===void 0&&(i=[]),a==null)if(_e!=null&&_e.errors)a=_e.matches;else return null;let pt=a,Lt=_e==null?void 0:_e.errors;if(Lt!=null){let Gt=pt.findIndex(Ct=>Ct.route.id&&(Lt==null?void 0:Lt[Ct.route.id]));Gt>=0||invariant$1(!1),pt=pt.slice(0,Math.min(pt.length,Gt+1))}return pt.reduceRight((Gt,Ct,Rt)=>{let o=Ct.route.id?Lt==null?void 0:Lt[Ct.route.id]:null,it=_e?Ct.route.errorElement||reactExports.createElement(DefaultErrorElement,null):null,xt=i.concat(pt.slice(0,Rt+1)),et=()=>reactExports.createElement(RenderedRoute,{match:Ct,routeContext:{outlet:Gt,matches:xt}},o?it:Ct.route.element!==void 0?Ct.route.element:Gt);return _e&&(Ct.route.errorElement||Rt===0)?reactExports.createElement(RenderErrorBoundary,{location:_e.location,component:it,error:o,children:et(),routeContext:{outlet:null,matches:xt}}):et()},null)}var DataRouterHook$1;(function(a){a.UseBlocker="useBlocker",a.UseRevalidator="useRevalidator"})(DataRouterHook$1||(DataRouterHook$1={}));var DataRouterStateHook$1;(function(a){a.UseLoaderData="useLoaderData",a.UseActionData="useActionData",a.UseRouteError="useRouteError",a.UseNavigation="useNavigation",a.UseRouteLoaderData="useRouteLoaderData",a.UseMatches="useMatches",a.UseRevalidator="useRevalidator"})(DataRouterStateHook$1||(DataRouterStateHook$1={}));function useDataRouterState(a){let i=reactExports.useContext(DataRouterStateContext);return i||invariant$1(!1),i}function useRouteContext(a){let i=reactExports.useContext(RouteContext);return i||invariant$1(!1),i}function useCurrentRouteId(a){let i=useRouteContext(),_e=i.matches[i.matches.length-1];return _e.route.id||invariant$1(!1),_e.route.id}function useRouteError(){var a;let i=reactExports.useContext(RouteErrorContext),_e=useDataRouterState(DataRouterStateHook$1.UseRouteError),pt=useCurrentRouteId(DataRouterStateHook$1.UseRouteError);return i||((a=_e.errors)==null?void 0:a[pt])}function Outlet(a){return useOutlet(a.context)}function Route(a){invariant$1(!1)}function Router(a){let{basename:i="/",children:_e=null,location:pt,navigationType:Lt=Action.Pop,navigator:Gt,static:Ct=!1}=a;useInRouterContext()&&invariant$1(!1);let Rt=i.replace(/^\/*/,"/"),o=reactExports.useMemo(()=>({basename:Rt,navigator:Gt,static:Ct}),[Rt,Gt,Ct]);typeof pt=="string"&&(pt=parsePath(pt));let{pathname:it="/",search:xt="",hash:et="",state:Et=null,key:mt="default"}=pt,ut=reactExports.useMemo(()=>{let ht=stripBasename(it,Rt);return ht==null?null:{pathname:ht,search:xt,hash:et,state:Et,key:mt}},[Rt,it,xt,et,Et,mt]);return ut==null?null:reactExports.createElement(NavigationContext.Provider,{value:o},reactExports.createElement(LocationContext.Provider,{children:_e,value:{location:ut,navigationType:Lt}}))}function Routes(a){let{children:i,location:_e}=a,pt=reactExports.useContext(DataRouterContext),Lt=pt&&!i?pt.router.routes:createRoutesFromChildren(i);return useRoutes(Lt,_e)}var AwaitRenderStatus;(function(a){a[a.pending=0]="pending",a[a.success=1]="success",a[a.error=2]="error"})(AwaitRenderStatus||(AwaitRenderStatus={}));new Promise(()=>{});function createRoutesFromChildren(a,i){i===void 0&&(i=[]);let _e=[];return reactExports.Children.forEach(a,(pt,Lt)=>{if(!reactExports.isValidElement(pt))return;if(pt.type===reactExports.Fragment){_e.push.apply(_e,createRoutesFromChildren(pt.props.children,i));return}pt.type!==Route&&invariant$1(!1),!pt.props.index||!pt.props.children||invariant$1(!1);let Gt=[...i,Lt],Ct={id:pt.props.id||Gt.join("-"),caseSensitive:pt.props.caseSensitive,element:pt.props.element,index:pt.props.index,path:pt.props.path,loader:pt.props.loader,action:pt.props.action,errorElement:pt.props.errorElement,hasErrorBoundary:pt.props.errorElement!=null,shouldRevalidate:pt.props.shouldRevalidate,handle:pt.props.handle};pt.props.children&&(Ct.children=createRoutesFromChildren(pt.props.children,Gt)),_e.push(Ct)}),_e}/** + */function _extends$2(){return _extends$2=Object.assign?Object.assign.bind():function(a){for(var i=1;i{Lt.value=pt,Lt.getSnapshot=i,checkIfSnapshotChanged(Lt)&&Gt({inst:Lt})},[a,pt,i]),useEffect(()=>(checkIfSnapshotChanged(Lt)&&Gt({inst:Lt}),a(()=>{checkIfSnapshotChanged(Lt)&&Gt({inst:Lt})})),[a]),useDebugValue(pt),pt}function checkIfSnapshotChanged(a){const i=a.getSnapshot,_e=a.value;try{const pt=i();return!is(_e,pt)}catch{return!0}}function useSyncExternalStore$1(a,i,_e){return i()}const canUseDOM$1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",isServerEnvironment=!canUseDOM$1,shim=isServerEnvironment?useSyncExternalStore$1:useSyncExternalStore$2;"useSyncExternalStore"in React$1&&(a=>a.useSyncExternalStore)(React$1);const DataRouterContext=reactExports.createContext(null),DataRouterStateContext=reactExports.createContext(null),NavigationContext=reactExports.createContext(null),LocationContext=reactExports.createContext(null),RouteContext=reactExports.createContext({outlet:null,matches:[]}),RouteErrorContext=reactExports.createContext(null);function useHref(a,i){let{relative:_e}=i===void 0?{}:i;useInRouterContext()||invariant$1(!1);let{basename:pt,navigator:Lt}=reactExports.useContext(NavigationContext),{hash:Gt,pathname:Ct,search:Rt}=useResolvedPath(a,{relative:_e}),o=Ct;return pt!=="/"&&(o=Ct==="/"?pt:joinPaths([pt,Ct])),Lt.createHref({pathname:o,search:Rt,hash:Gt})}function useInRouterContext(){return reactExports.useContext(LocationContext)!=null}function useLocation(){return useInRouterContext()||invariant$1(!1),reactExports.useContext(LocationContext).location}function useNavigate(){useInRouterContext()||invariant$1(!1);let{basename:a,navigator:i}=reactExports.useContext(NavigationContext),{matches:_e}=reactExports.useContext(RouteContext),{pathname:pt}=useLocation(),Lt=JSON.stringify(getPathContributingMatches(_e).map(Rt=>Rt.pathnameBase)),Gt=reactExports.useRef(!1);return reactExports.useEffect(()=>{Gt.current=!0}),reactExports.useCallback(function(Rt,o){if(o===void 0&&(o={}),!Gt.current)return;if(typeof Rt=="number"){i.go(Rt);return}let it=resolveTo(Rt,JSON.parse(Lt),pt,o.relative==="path");a!=="/"&&(it.pathname=it.pathname==="/"?a:joinPaths([a,it.pathname])),(o.replace?i.replace:i.push)(it,o.state,o)},[a,i,Lt,pt])}const OutletContext=reactExports.createContext(null);function useOutlet(a){let i=reactExports.useContext(RouteContext).outlet;return i&&reactExports.createElement(OutletContext.Provider,{value:a},i)}function useResolvedPath(a,i){let{relative:_e}=i===void 0?{}:i,{matches:pt}=reactExports.useContext(RouteContext),{pathname:Lt}=useLocation(),Gt=JSON.stringify(getPathContributingMatches(pt).map(Ct=>Ct.pathnameBase));return reactExports.useMemo(()=>resolveTo(a,JSON.parse(Gt),Lt,_e==="path"),[a,Gt,Lt,_e])}function useRoutes(a,i){useInRouterContext()||invariant$1(!1);let{navigator:_e}=reactExports.useContext(NavigationContext),pt=reactExports.useContext(DataRouterStateContext),{matches:Lt}=reactExports.useContext(RouteContext),Gt=Lt[Lt.length-1],Ct=Gt?Gt.params:{};Gt&&Gt.pathname;let Rt=Gt?Gt.pathnameBase:"/";Gt&&Gt.route;let o=useLocation(),it;if(i){var xt;let ht=typeof i=="string"?parsePath(i):i;Rt==="/"||(xt=ht.pathname)!=null&&xt.startsWith(Rt)||invariant$1(!1),it=ht}else it=o;let et=it.pathname||"/",Tt=Rt==="/"?et:et.slice(Rt.length)||"/",yt=matchRoutes(a,{pathname:Tt}),ut=_renderMatches(yt&&yt.map(ht=>Object.assign({},ht,{params:Object.assign({},Ct,ht.params),pathname:joinPaths([Rt,_e.encodeLocation?_e.encodeLocation(ht.pathname).pathname:ht.pathname]),pathnameBase:ht.pathnameBase==="/"?Rt:joinPaths([Rt,_e.encodeLocation?_e.encodeLocation(ht.pathnameBase).pathname:ht.pathnameBase])})),Lt,pt||void 0);return i&&ut?reactExports.createElement(LocationContext.Provider,{value:{location:_extends$2({pathname:"/",search:"",hash:"",state:null,key:"default"},it),navigationType:Action.Pop}},ut):ut}function DefaultErrorElement(){let a=useRouteError(),i=isRouteErrorResponse(a)?a.status+" "+a.statusText:a instanceof Error?a.message:JSON.stringify(a),_e=a instanceof Error?a.stack:null,Lt={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},Gt=null;return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("h2",null,"Unexpected Application Error!"),reactExports.createElement("h3",{style:{fontStyle:"italic"}},i),_e?reactExports.createElement("pre",{style:Lt},_e):null,Gt)}class RenderErrorBoundary extends reactExports.Component{constructor(i){super(i),this.state={location:i.location,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,_e){return _e.location!==i.location?{error:i.error,location:i.location}:{error:i.error||_e.error,location:_e.location}}componentDidCatch(i,_e){console.error("React Router caught the following error during render",i,_e)}render(){return this.state.error?reactExports.createElement(RouteContext.Provider,{value:this.props.routeContext},reactExports.createElement(RouteErrorContext.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function RenderedRoute(a){let{routeContext:i,match:_e,children:pt}=a,Lt=reactExports.useContext(DataRouterContext);return Lt&&Lt.static&&Lt.staticContext&&_e.route.errorElement&&(Lt.staticContext._deepestRenderedBoundaryId=_e.route.id),reactExports.createElement(RouteContext.Provider,{value:i},pt)}function _renderMatches(a,i,_e){if(i===void 0&&(i=[]),a==null)if(_e!=null&&_e.errors)a=_e.matches;else return null;let pt=a,Lt=_e==null?void 0:_e.errors;if(Lt!=null){let Gt=pt.findIndex(Ct=>Ct.route.id&&(Lt==null?void 0:Lt[Ct.route.id]));Gt>=0||invariant$1(!1),pt=pt.slice(0,Math.min(pt.length,Gt+1))}return pt.reduceRight((Gt,Ct,Rt)=>{let o=Ct.route.id?Lt==null?void 0:Lt[Ct.route.id]:null,it=_e?Ct.route.errorElement||reactExports.createElement(DefaultErrorElement,null):null,xt=i.concat(pt.slice(0,Rt+1)),et=()=>reactExports.createElement(RenderedRoute,{match:Ct,routeContext:{outlet:Gt,matches:xt}},o?it:Ct.route.element!==void 0?Ct.route.element:Gt);return _e&&(Ct.route.errorElement||Rt===0)?reactExports.createElement(RenderErrorBoundary,{location:_e.location,component:it,error:o,children:et(),routeContext:{outlet:null,matches:xt}}):et()},null)}var DataRouterHook$1;(function(a){a.UseBlocker="useBlocker",a.UseRevalidator="useRevalidator"})(DataRouterHook$1||(DataRouterHook$1={}));var DataRouterStateHook$1;(function(a){a.UseLoaderData="useLoaderData",a.UseActionData="useActionData",a.UseRouteError="useRouteError",a.UseNavigation="useNavigation",a.UseRouteLoaderData="useRouteLoaderData",a.UseMatches="useMatches",a.UseRevalidator="useRevalidator"})(DataRouterStateHook$1||(DataRouterStateHook$1={}));function useDataRouterState(a){let i=reactExports.useContext(DataRouterStateContext);return i||invariant$1(!1),i}function useRouteContext(a){let i=reactExports.useContext(RouteContext);return i||invariant$1(!1),i}function useCurrentRouteId(a){let i=useRouteContext(),_e=i.matches[i.matches.length-1];return _e.route.id||invariant$1(!1),_e.route.id}function useRouteError(){var a;let i=reactExports.useContext(RouteErrorContext),_e=useDataRouterState(DataRouterStateHook$1.UseRouteError),pt=useCurrentRouteId(DataRouterStateHook$1.UseRouteError);return i||((a=_e.errors)==null?void 0:a[pt])}function Outlet(a){return useOutlet(a.context)}function Route(a){invariant$1(!1)}function Router(a){let{basename:i="/",children:_e=null,location:pt,navigationType:Lt=Action.Pop,navigator:Gt,static:Ct=!1}=a;useInRouterContext()&&invariant$1(!1);let Rt=i.replace(/^\/*/,"/"),o=reactExports.useMemo(()=>({basename:Rt,navigator:Gt,static:Ct}),[Rt,Gt,Ct]);typeof pt=="string"&&(pt=parsePath(pt));let{pathname:it="/",search:xt="",hash:et="",state:Tt=null,key:yt="default"}=pt,ut=reactExports.useMemo(()=>{let ht=stripBasename(it,Rt);return ht==null?null:{pathname:ht,search:xt,hash:et,state:Tt,key:yt}},[Rt,it,xt,et,Tt,yt]);return ut==null?null:reactExports.createElement(NavigationContext.Provider,{value:o},reactExports.createElement(LocationContext.Provider,{children:_e,value:{location:ut,navigationType:Lt}}))}function Routes(a){let{children:i,location:_e}=a,pt=reactExports.useContext(DataRouterContext),Lt=pt&&!i?pt.router.routes:createRoutesFromChildren(i);return useRoutes(Lt,_e)}var AwaitRenderStatus;(function(a){a[a.pending=0]="pending",a[a.success=1]="success",a[a.error=2]="error"})(AwaitRenderStatus||(AwaitRenderStatus={}));new Promise(()=>{});function createRoutesFromChildren(a,i){i===void 0&&(i=[]);let _e=[];return reactExports.Children.forEach(a,(pt,Lt)=>{if(!reactExports.isValidElement(pt))return;if(pt.type===reactExports.Fragment){_e.push.apply(_e,createRoutesFromChildren(pt.props.children,i));return}pt.type!==Route&&invariant$1(!1),!pt.props.index||!pt.props.children||invariant$1(!1);let Gt=[...i,Lt],Ct={id:pt.props.id||Gt.join("-"),caseSensitive:pt.props.caseSensitive,element:pt.props.element,index:pt.props.index,path:pt.props.path,loader:pt.props.loader,action:pt.props.action,errorElement:pt.props.errorElement,hasErrorBoundary:pt.props.errorElement!=null,shouldRevalidate:pt.props.shouldRevalidate,handle:pt.props.handle};pt.props.children&&(Ct.children=createRoutesFromChildren(pt.props.children,Gt)),_e.push(Ct)}),_e}/** * React Router DOM v6.8.1 * * Copyright (c) Remix Software Inc. @@ -64,15 +64,15 @@ Error generating stack: `+Gt.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(a){for(var i=1;i=0)&&(_e[Lt]=a[Lt]);return _e}function isModifiedEvent(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function shouldProcessLinkClick(a,i){return a.button===0&&(!i||i==="_self")&&!isModifiedEvent(a)}const _excluded$1=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function HashRouter(a){let{basename:i,children:_e,window:pt}=a,Lt=reactExports.useRef();Lt.current==null&&(Lt.current=createHashHistory({window:pt,v5Compat:!0}));let Gt=Lt.current,[Ct,Rt]=reactExports.useState({action:Gt.action,location:Gt.location});return reactExports.useLayoutEffect(()=>Gt.listen(Rt),[Gt]),reactExports.createElement(Router,{basename:i,children:_e,location:Ct.location,navigationType:Ct.action,navigator:Gt})}const isBrowser=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Link=reactExports.forwardRef(function(i,_e){let{onClick:pt,relative:Lt,reloadDocument:Gt,replace:Ct,state:Rt,target:o,to:it,preventScrollReset:xt}=i,et=_objectWithoutPropertiesLoose$1(i,_excluded$1),Et,mt=!1;if(isBrowser&&typeof it=="string"&&/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i.test(it)){Et=it;let _=new URL(window.location.href),rt=it.startsWith("//")?new URL(_.protocol+it):new URL(it);rt.origin===_.origin?it=rt.pathname+rt.search+rt.hash:mt=!0}let ut=useHref(it,{relative:Lt}),ht=useLinkClickHandler(it,{replace:Ct,state:Rt,target:o,preventScrollReset:xt,relative:Lt});function j(_){pt&&pt(_),_.defaultPrevented||ht(_)}return reactExports.createElement("a",_extends$1({},et,{href:Et||ut,onClick:mt||Gt?pt:j,ref:_e,target:o}))});var DataRouterHook;(function(a){a.UseScrollRestoration="useScrollRestoration",a.UseSubmitImpl="useSubmitImpl",a.UseFetcher="useFetcher"})(DataRouterHook||(DataRouterHook={}));var DataRouterStateHook;(function(a){a.UseFetchers="useFetchers",a.UseScrollRestoration="useScrollRestoration"})(DataRouterStateHook||(DataRouterStateHook={}));function useLinkClickHandler(a,i){let{target:_e,replace:pt,state:Lt,preventScrollReset:Gt,relative:Ct}=i===void 0?{}:i,Rt=useNavigate(),o=useLocation(),it=useResolvedPath(a,{relative:Ct});return reactExports.useCallback(xt=>{if(shouldProcessLinkClick(xt,_e)){xt.preventDefault();let et=pt!==void 0?pt:createPath(o)===createPath(it);Rt(a,{replace:et,state:Lt,preventScrollReset:Gt,relative:Ct})}},[o,Rt,it,pt,Lt,_e,a,Gt,Ct])}var packagesCache={},_win=void 0;try{_win=window}catch{}function setVersion(a,i){if(typeof _win<"u"){var _e=_win.__packages__=_win.__packages__||{};if(!_e[a]||!packagesCache[a]){packagesCache[a]=i;var pt=_e[a]=_e[a]||[];pt.push(i)}}}setVersion("@fluentui/set-version","6.0.0");var extendStatics=function(a,i){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_e,pt){_e.__proto__=pt}||function(_e,pt){for(var Lt in pt)Object.prototype.hasOwnProperty.call(pt,Lt)&&(_e[Lt]=pt[Lt])},extendStatics(a,i)};function __extends(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");extendStatics(a,i);function _e(){this.constructor=a}a.prototype=i===null?Object.create(i):(_e.prototype=i.prototype,new _e)}var __assign$1=function(){return __assign$1=Object.assign||function(i){for(var _e,pt=1,Lt=arguments.length;pt=0;Rt--)(Ct=a[Rt])&&(Gt=(Lt<3?Ct(Gt):Lt>3?Ct(i,_e,Gt):Ct(i,_e))||Gt);return Lt>3&&Gt&&Object.defineProperty(i,_e,Gt),Gt}function __spreadArray(a,i,_e){if(_e||arguments.length===2)for(var pt=0,Lt=i.length,Gt;pt"u"?InjectionMode.none:InjectionMode.insertNode,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},i),this._classNameToArgs=(pt=_e==null?void 0:_e.classNameToArgs)!==null&&pt!==void 0?pt:this._classNameToArgs,this._counter=(Lt=_e==null?void 0:_e.counter)!==null&&Lt!==void 0?Lt:this._counter,this._keyToClassName=(Ct=(Gt=this._config.classNameCache)!==null&&Gt!==void 0?Gt:_e==null?void 0:_e.keyToClassName)!==null&&Ct!==void 0?Ct:this._keyToClassName,this._preservedRules=(Rt=_e==null?void 0:_e.preservedRules)!==null&&Rt!==void 0?Rt:this._preservedRules,this._rules=(o=_e==null?void 0:_e.rules)!==null&&o!==void 0?o:this._rules}return a.getInstance=function(){if(_stylesheet=_global$1[STYLESHEET_SETTING],!_stylesheet||_stylesheet._lastStyleElement&&_stylesheet._lastStyleElement.ownerDocument!==document){var i=(_global$1==null?void 0:_global$1.FabricConfig)||{},_e=new a(i.mergeStyles,i.serializedStylesheet);_stylesheet=_e,_global$1[STYLESHEET_SETTING]=_e}return _stylesheet},a.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},a.prototype.setConfig=function(i){this._config=__assign$1(__assign$1({},this._config),i)},a.prototype.onReset=function(i){var _e=this;return this._onResetCallbacks.push(i),function(){_e._onResetCallbacks=_e._onResetCallbacks.filter(function(pt){return pt!==i})}},a.prototype.onInsertRule=function(i){var _e=this;return this._onInsertRuleCallbacks.push(i),function(){_e._onInsertRuleCallbacks=_e._onInsertRuleCallbacks.filter(function(pt){return pt!==i})}},a.prototype.getClassName=function(i){var _e=this._config.namespace,pt=i||this._config.defaultPrefix;return"".concat(_e?_e+"-":"").concat(pt,"-").concat(this._counter++)},a.prototype.cacheClassName=function(i,_e,pt,Lt){this._keyToClassName[_e]=i,this._classNameToArgs[i]={args:pt,rules:Lt}},a.prototype.classNameFromKey=function(i){return this._keyToClassName[i]},a.prototype.getClassNameCache=function(){return this._keyToClassName},a.prototype.argsFromClassName=function(i){var _e=this._classNameToArgs[i];return _e&&_e.args},a.prototype.insertedRulesFromClassName=function(i){var _e=this._classNameToArgs[i];return _e&&_e.rules},a.prototype.insertRule=function(i,_e){var pt=this._config.injectionMode,Lt=pt!==InjectionMode.none?this._getStyleElement():void 0;if(_e&&this._preservedRules.push(i),Lt)switch(pt){case InjectionMode.insertNode:var Gt=Lt.sheet;try{Gt.insertRule(i,Gt.cssRules.length)}catch{}break;case InjectionMode.appendChild:Lt.appendChild(document.createTextNode(i));break}else this._rules.push(i);this._config.onInsertRule&&this._config.onInsertRule(i),this._onInsertRuleCallbacks.forEach(function(Ct){return Ct()})},a.prototype.getRules=function(i){return(i?this._preservedRules.join(""):"")+this._rules.join("")},a.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach(function(i){return i()})},a.prototype.resetKeys=function(){this._keyToClassName={}},a.prototype._getStyleElement=function(){var i=this;return!this._styleElement&&typeof document<"u"&&(this._styleElement=this._createStyleElement(),REUSE_STYLE_NODE||window.requestAnimationFrame(function(){i._styleElement=void 0})),this._styleElement},a.prototype._createStyleElement=function(){var i=document.head,_e=document.createElement("style"),pt=null;_e.setAttribute("data-merge-styles","true");var Lt=this._config.cspSettings;if(Lt&&Lt.nonce&&_e.setAttribute("nonce",Lt.nonce),this._lastStyleElement)pt=this._lastStyleElement.nextElementSibling;else{var Gt=this._findPlaceholderStyleTag();Gt?pt=Gt.nextElementSibling:pt=i.childNodes[0]}return i.insertBefore(_e,i.contains(pt)?pt:null),this._lastStyleElement=_e,_e},a.prototype._findPlaceholderStyleTag=function(){var i=document.head;return i?i.querySelector("style[data-merge-styles]"):null},a}();function extractStyleParts(){for(var a=[],i=0;i=0)Gt(it.split(" "));else{var xt=Lt.argsFromClassName(it);xt?Gt(xt):_e.indexOf(it)===-1&&_e.push(it)}else Array.isArray(it)?Gt(it):typeof it=="object"&&pt.push(it)}}return Gt(a),{classes:_e,objects:pt}}function setRTL$1(a){_rtl!==a&&(_rtl=a)}function getRTL$1(){return _rtl===void 0&&(_rtl=typeof document<"u"&&!!document.documentElement&&document.documentElement.getAttribute("dir")==="rtl"),_rtl}var _rtl;_rtl=getRTL$1();function getStyleOptions(){return{rtl:getRTL$1()}}var rules={};function kebabRules(a,i){var _e=a[i];_e.charAt(0)!=="-"&&(a[i]=rules[_e]=rules[_e]||_e.replace(/([A-Z])/g,"-$1").toLowerCase())}var _vendorSettings;function getVendorSettings(){var a;if(!_vendorSettings){var i=typeof document<"u"?document:void 0,_e=typeof navigator<"u"?navigator:void 0,pt=(a=_e==null?void 0:_e.userAgent)===null||a===void 0?void 0:a.toLowerCase();i?_vendorSettings={isWebkit:!!(i&&"WebkitAppearance"in i.documentElement.style),isMoz:!!(pt&&pt.indexOf("firefox")>-1),isOpera:!!(pt&&pt.indexOf("opera")>-1),isMs:!!(_e&&(/rv:11.0/i.test(_e.userAgent)||/Edge\/\d./i.test(navigator.userAgent)))}:_vendorSettings={isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return _vendorSettings}var autoPrefixNames={"user-select":1};function prefixRules(a,i){var _e=getVendorSettings(),pt=a[i];if(autoPrefixNames[pt]){var Lt=a[i+1];autoPrefixNames[pt]&&(_e.isWebkit&&a.push("-webkit-"+pt,Lt),_e.isMoz&&a.push("-moz-"+pt,Lt),_e.isMs&&a.push("-ms-"+pt,Lt),_e.isOpera&&a.push("-o-"+pt,Lt))}}var NON_PIXEL_NUMBER_PROPS=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function provideUnits(a,i){var _e=a[i],pt=a[i+1];if(typeof pt=="number"){var Lt=NON_PIXEL_NUMBER_PROPS.indexOf(_e)>-1,Gt=_e.indexOf("--")>-1,Ct=Lt||Gt?"":"px";a[i+1]="".concat(pt).concat(Ct)}}var _a$3,LEFT="left",RIGHT="right",NO_FLIP="@noflip",NAME_REPLACEMENTS=(_a$3={},_a$3[LEFT]=RIGHT,_a$3[RIGHT]=LEFT,_a$3),VALUE_REPLACEMENTS={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function rtlifyRules(a,i,_e){if(a.rtl){var pt=i[_e];if(!pt)return;var Lt=i[_e+1];if(typeof Lt=="string"&&Lt.indexOf(NO_FLIP)>=0)i[_e+1]=Lt.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(pt.indexOf(LEFT)>=0)i[_e]=pt.replace(LEFT,RIGHT);else if(pt.indexOf(RIGHT)>=0)i[_e]=pt.replace(RIGHT,LEFT);else if(String(Lt).indexOf(LEFT)>=0)i[_e+1]=Lt.replace(LEFT,RIGHT);else if(String(Lt).indexOf(RIGHT)>=0)i[_e+1]=Lt.replace(RIGHT,LEFT);else if(NAME_REPLACEMENTS[pt])i[_e]=NAME_REPLACEMENTS[pt];else if(VALUE_REPLACEMENTS[Lt])i[_e+1]=VALUE_REPLACEMENTS[Lt];else switch(pt){case"margin":case"padding":i[_e+1]=flipQuad(Lt);break;case"box-shadow":i[_e+1]=negateNum(Lt,0);break}}}function negateNum(a,i){var _e=a.split(" "),pt=parseInt(_e[i],10);return _e[0]=_e[0].replace(String(pt),String(pt*-1)),_e.join(" ")}function flipQuad(a){if(typeof a=="string"){var i=a.split(" ");if(i.length===4)return"".concat(i[0]," ").concat(i[3]," ").concat(i[2]," ").concat(i[1])}return a}function tokenizeWithParentheses(a){for(var i=[],_e=0,pt=0,Lt=0;Lt_e&&i.push(a.substring(_e,Lt)),_e=Lt+1);break}return _e-1&&i.push([pt.index,pt.index+pt[0].length,pt[1].split(",").map(function(Lt){return":global(".concat(Lt.trim(),")")}).join(", ")]);return i.reverse().reduce(function(Lt,Gt){var Ct=Gt[0],Rt=Gt[1],o=Gt[2],it=Lt.slice(0,Ct),xt=Lt.slice(Rt);return it+o+xt},a)}function expandSelector(a,i){return a.indexOf(":global(")>=0?a.replace(globalSelectorRegExp,"$1"):a.indexOf(":")===0?i+a:a.indexOf("&")<0?i+" "+a:a}function extractSelector(a,i,_e,pt){i===void 0&&(i={__order:[]}),_e.indexOf("@")===0?(_e=_e+"{"+a,extractRules([pt],i,_e)):_e.indexOf(",")>-1?expandCommaSeparatedGlobals(_e).split(",").map(function(Lt){return Lt.trim()}).forEach(function(Lt){return extractRules([pt],i,expandSelector(Lt,a))}):extractRules([pt],i,expandSelector(_e,a))}function extractRules(a,i,_e){i===void 0&&(i={__order:[]}),_e===void 0&&(_e="&");var pt=Stylesheet.getInstance(),Lt=i[_e];Lt||(Lt={},i[_e]=Lt,i.__order.push(_e));for(var Gt=0,Ct=a;Gt0){_e.subComponentStyles={};var Et=_e.subComponentStyles,mt=function(ut){if(pt.hasOwnProperty(ut)){var ht=pt[ut];Et[ut]=function(j){return concatStyleSets.apply(void 0,ht.map(function(_){return typeof _=="function"?_(j):_}))}}};for(var it in pt)mt(it)}return _e}function mergeStyleSets(){for(var a=[],i=0;i"u")){var i=a;return i&&i.ownerDocument&&i.ownerDocument.defaultView?i.ownerDocument.defaultView:_window}}var Async=function(){function a(i,_e){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=i||null,this._onErrorHandler=_e,this._noop=function(){}}return a.prototype.dispose=function(){var i;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(i in this._timeoutIds)this._timeoutIds.hasOwnProperty(i)&&this.clearTimeout(parseInt(i,10));this._timeoutIds=null}if(this._immediateIds){for(i in this._immediateIds)this._immediateIds.hasOwnProperty(i)&&this.clearImmediate(parseInt(i,10));this._immediateIds=null}if(this._intervalIds){for(i in this._intervalIds)this._intervalIds.hasOwnProperty(i)&&this.clearInterval(parseInt(i,10));this._intervalIds=null}if(this._animationFrameIds){for(i in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(i)&&this.cancelAnimationFrame(parseInt(i,10));this._animationFrameIds=null}},a.prototype.setTimeout=function(i,_e){var pt=this,Lt=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),Lt=setTimeout(function(){try{pt._timeoutIds&&delete pt._timeoutIds[Lt],i.apply(pt._parent)}catch(Gt){pt._logError(Gt)}},_e),this._timeoutIds[Lt]=!0),Lt},a.prototype.clearTimeout=function(i){this._timeoutIds&&this._timeoutIds[i]&&(clearTimeout(i),delete this._timeoutIds[i])},a.prototype.setImmediate=function(i,_e){var pt=this,Lt=0,Gt=getWindow(_e);if(!this._isDisposed){this._immediateIds||(this._immediateIds={});var Ct=function(){try{pt._immediateIds&&delete pt._immediateIds[Lt],i.apply(pt._parent)}catch(Rt){pt._logError(Rt)}};Lt=Gt.setTimeout(Ct,0),this._immediateIds[Lt]=!0}return Lt},a.prototype.clearImmediate=function(i,_e){var pt=getWindow(_e);this._immediateIds&&this._immediateIds[i]&&(pt.clearTimeout(i),delete this._immediateIds[i])},a.prototype.setInterval=function(i,_e){var pt=this,Lt=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),Lt=setInterval(function(){try{i.apply(pt._parent)}catch(Gt){pt._logError(Gt)}},_e),this._intervalIds[Lt]=!0),Lt},a.prototype.clearInterval=function(i){this._intervalIds&&this._intervalIds[i]&&(clearInterval(i),delete this._intervalIds[i])},a.prototype.throttle=function(i,_e,pt){var Lt=this;if(this._isDisposed)return this._noop;var Gt=_e||0,Ct=!0,Rt=!0,o=0,it,xt,et=null;pt&&typeof pt.leading=="boolean"&&(Ct=pt.leading),pt&&typeof pt.trailing=="boolean"&&(Rt=pt.trailing);var Et=function(ut){var ht=Date.now(),j=ht-o,_=Ct?Gt-j:Gt;return j>=Gt&&(!ut||Ct)?(o=ht,et&&(Lt.clearTimeout(et),et=null),it=i.apply(Lt._parent,xt)):et===null&&Rt&&(et=Lt.setTimeout(Et,_)),it},mt=function(){for(var ut=[],ht=0;ht=Ct&&(dt=!0),xt=vt);var bt=vt-xt,ft=Ct-bt,at=vt-et,yt=!1;return it!==null&&(at>=it&&ut?yt=!0:ft=Math.min(ft,it-at)),bt>=Ct||yt||dt?j(vt):(ut===null||!nt)&&o&&(ut=Lt.setTimeout(_,ft)),Et},rt=function(){return!!ut},tt=function(){rt()&&ht(Date.now())},st=function(){return rt()&&j(Date.now()),Et},ot=function(){for(var nt=[],vt=0;vt-1)for(var Ct=_e.split(/[ ,]+/),Rt=0;Rt"u")){var i=a;return i&&i.ownerDocument?i.ownerDocument:document}}var _scrollbarWidth,_bodyScrollDisabledCount=0,DisabledScrollClassName=mergeStyles({overflow:"hidden !important"}),DATA_IS_SCROLLABLE_ATTRIBUTE="data-is-scrollable",allowScrollOnElement=function(a,i){if(a){var _e=0,pt=null,Lt=function(Ct){Ct.targetTouches.length===1&&(_e=Ct.targetTouches[0].clientY)},Gt=function(Ct){if(Ct.targetTouches.length===1&&(Ct.stopPropagation(),!!pt)){var Rt=Ct.targetTouches[0].clientY-_e,o=findScrollableParent(Ct.target);o&&(pt=o),pt.scrollTop===0&&Rt>0&&Ct.preventDefault(),pt.scrollHeight-Math.ceil(pt.scrollTop)<=pt.clientHeight&&Rt<0&&Ct.preventDefault()}};i.on(a,"touchstart",Lt,{passive:!1}),i.on(a,"touchmove",Gt,{passive:!1}),pt=a}},allowOverscrollOnElement=function(a,i){if(a){var _e=function(pt){pt.stopPropagation()};i.on(a,"touchmove",_e,{passive:!1})}},_disableIosBodyScroll=function(a){a.preventDefault()};function disableBodyScroll(){var a=getDocument();a&&a.body&&!_bodyScrollDisabledCount&&(a.body.classList.add(DisabledScrollClassName),a.body.addEventListener("touchmove",_disableIosBodyScroll,{passive:!1,capture:!1})),_bodyScrollDisabledCount++}function enableBodyScroll(){if(_bodyScrollDisabledCount>0){var a=getDocument();a&&a.body&&_bodyScrollDisabledCount===1&&(a.body.classList.remove(DisabledScrollClassName),a.body.removeEventListener("touchmove",_disableIosBodyScroll)),_bodyScrollDisabledCount--}}function getScrollbarWidth(){if(_scrollbarWidth===void 0){var a=document.createElement("div");a.style.setProperty("width","100px"),a.style.setProperty("height","100px"),a.style.setProperty("overflow","scroll"),a.style.setProperty("position","absolute"),a.style.setProperty("top","-9999px"),document.body.appendChild(a),_scrollbarWidth=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return _scrollbarWidth}function findScrollableParent(a){for(var i=a,_e=getDocument(a);i&&i!==_e.body;){if(i.getAttribute(DATA_IS_SCROLLABLE_ATTRIBUTE)==="true")return i;i=i.parentElement}for(i=a;i&&i!==_e.body;){if(i.getAttribute(DATA_IS_SCROLLABLE_ATTRIBUTE)!=="false"){var pt=getComputedStyle(i),Lt=pt?pt.getPropertyValue("overflow-y"):"";if(Lt&&(Lt==="scroll"||Lt==="auto"))return i}i=i.parentElement}return(!i||i===_e.body)&&(i=getWindow(a)),i}var _warningCallback=void 0;function warn(a){console&&console.warn&&console.warn(a)}function warnConditionallyRequiredProps(a,i,_e,pt,Lt){if(Lt===!0&&!1)for(var Gt,Ct;Gt1?pt[1]:""}return this.__className},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"_disposables",{get:function(){return this.__disposables||(this.__disposables=[]),this.__disposables},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"_async",{get:function(){return this.__async||(this.__async=new Async(this),this._disposables.push(this.__async)),this.__async},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"_events",{get:function(){return this.__events||(this.__events=new EventGroup(this),this._disposables.push(this.__events)),this.__events},enumerable:!1,configurable:!0}),i.prototype._resolveRef=function(_e){var pt=this;return this.__resolves||(this.__resolves={}),this.__resolves[_e]||(this.__resolves[_e]=function(Lt){return pt[_e]=Lt}),this.__resolves[_e]},i.prototype._updateComponentRef=function(_e,pt){pt===void 0&&(pt={}),_e&&pt&&_e.componentRef!==pt.componentRef&&(this._setComponentRef(_e.componentRef,null),this._setComponentRef(pt.componentRef,this))},i.prototype._warnDeprecations=function(_e){this.className,this.props},i.prototype._warnMutuallyExclusive=function(_e){this.className,this.props},i.prototype._warnConditionallyRequiredProps=function(_e,pt,Lt){warnConditionallyRequiredProps(this.className,this.props,_e,pt,Lt)},i.prototype._setComponentRef=function(_e,pt){!this._skipComponentRefResolution&&_e&&(typeof _e=="function"&&_e(pt),typeof _e=="object"&&(_e.current=pt))},i})(reactExports.Component);function _makeAllSafe(a,i,_e){for(var pt=0,Lt=_e.length;pt-1&&Lt._virtual.children.splice(Gt,1)}_e._virtual.parent=pt||void 0,pt&&(pt._virtual||(pt._virtual={children:[]}),pt._virtual.children.push(_e))}var IS_FOCUSABLE_ATTRIBUTE$1="data-is-focusable",IS_VISIBLE_ATTRIBUTE="data-is-visible",FOCUSZONE_ID_ATTRIBUTE$1="data-focuszone-id",FOCUSZONE_SUB_ATTRIBUTE="data-is-sub-focuszone";function getFirstFocusable(a,i,_e){return getNextElement(a,i,!0,!1,!1,_e)}function getLastFocusable(a,i,_e){return getPreviousElement(a,i,!0,!1,!0,_e)}function getFirstTabbable(a,i,_e,pt){return pt===void 0&&(pt=!0),getNextElement(a,i,pt,!1,!1,_e,!1,!0)}function getLastTabbable(a,i,_e,pt){return pt===void 0&&(pt=!0),getPreviousElement(a,i,pt,!1,!0,_e,!1,!0)}function focusFirstChild(a,i){var _e=getNextElement(a,a,!0,!1,!1,!0,void 0,void 0,i);return _e?(focusAsync(_e),!0):!1}function getPreviousElement(a,i,_e,pt,Lt,Gt,Ct,Rt){if(!i||!Ct&&i===a)return null;var o=isElementVisible(i);if(Lt&&o&&(Gt||!(isElementFocusZone(i)||isElementFocusSubZone(i)))){var it=getPreviousElement(a,i.lastElementChild,!0,!0,!0,Gt,Ct,Rt);if(it){if(Rt&&isElementTabbable(it,!0)||!Rt)return it;var xt=getPreviousElement(a,it.previousElementSibling,!0,!0,!0,Gt,Ct,Rt);if(xt)return xt;for(var et=it.parentElement;et&&et!==i;){var Et=getPreviousElement(a,et.previousElementSibling,!0,!0,!0,Gt,Ct,Rt);if(Et)return Et;et=et.parentElement}}}if(_e&&o&&isElementTabbable(i,Rt))return i;var mt=getPreviousElement(a,i.previousElementSibling,!0,!0,!0,Gt,Ct,Rt);return mt||(pt?null:getPreviousElement(a,i.parentElement,!0,!1,!1,Gt,Ct,Rt))}function getNextElement(a,i,_e,pt,Lt,Gt,Ct,Rt,o){if(!i||i===a&&Lt&&!Ct)return null;var it=o?isElementVisibleAndNotHidden:isElementVisible,xt=it(i);if(_e&&xt&&isElementTabbable(i,Rt))return i;if(!Lt&&xt&&(Gt||!(isElementFocusZone(i)||isElementFocusSubZone(i)))){var et=getNextElement(a,i.firstElementChild,!0,!0,!1,Gt,Ct,Rt,o);if(et)return et}if(i===a)return null;var Et=getNextElement(a,i.nextElementSibling,!0,!0,!1,Gt,Ct,Rt,o);return Et||(pt?null:getNextElement(a,i.parentElement,!1,!1,!0,Gt,Ct,Rt,o))}function isElementVisible(a){if(!a||!a.getAttribute)return!1;var i=a.getAttribute(IS_VISIBLE_ATTRIBUTE);return i!=null?i==="true":a.offsetHeight!==0||a.offsetParent!==null||a.isVisible===!0}function isElementVisibleAndNotHidden(a){return!!a&&isElementVisible(a)&&!a.hidden&&window.getComputedStyle(a).visibility!=="hidden"}function isElementTabbable(a,i){if(!a||a.disabled)return!1;var _e=0,pt=null;a&&a.getAttribute&&(pt=a.getAttribute("tabIndex"),pt&&(_e=parseInt(pt,10)));var Lt=a.getAttribute?a.getAttribute(IS_FOCUSABLE_ATTRIBUTE$1):null,Gt=pt!==null&&_e>=0,Ct=!!a&&Lt!=="false"&&(a.tagName==="A"||a.tagName==="BUTTON"||a.tagName==="INPUT"||a.tagName==="TEXTAREA"||a.tagName==="SELECT"||Lt==="true"||Gt);return i?_e!==-1&&Ct:Ct}function isElementFocusZone(a){return!!(a&&a.getAttribute&&a.getAttribute(FOCUSZONE_ID_ATTRIBUTE$1))}function isElementFocusSubZone(a){return!!(a&&a.getAttribute&&a.getAttribute(FOCUSZONE_SUB_ATTRIBUTE)==="true")}function doesElementContainFocus(a){var i=getDocument(a),_e=i&&i.activeElement;return!!(_e&&elementContains(a,_e))}function shouldWrapFocus(a,i){return elementContainsAttribute(a,i)!=="true"}var targetToFocusOnNextRepaint=void 0;function focusAsync(a){if(a){if(targetToFocusOnNextRepaint){targetToFocusOnNextRepaint=a;return}targetToFocusOnNextRepaint=a;var i=getWindow(a);i&&i.requestAnimationFrame(function(){targetToFocusOnNextRepaint&&targetToFocusOnNextRepaint.focus(),targetToFocusOnNextRepaint=void 0})}}function getFocusableByIndexPath(a,i){for(var _e=a,pt=0,Lt=i;pt(a.cacheSize||MAX_CACHE_COUNT)){var mt=getWindow();!((o=mt==null?void 0:mt.FabricConfig)===null||o===void 0)&&o.enableClassNameCacheFullWarning&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is ".concat(_e,"/").concat(pt,".")),console.trace()),i.clear(),_e=0,a.disableCaching=!0}return it[retVal]};return Gt}function _traverseEdge(a,i){return i=_normalizeValue(i),a.has(i)||a.set(i,new Map),a.get(i)}function _traverseMap(a,i){if(typeof i=="function"){var _e=i.__cachedInputs__;if(_e)for(var pt=0,Lt=i.__cachedInputs__;pt"u"?null:WeakMap;function resetMemoizations(){_resetCounter++}function memoizeFunction(a,i,_e){if(i===void 0&&(i=100),_e===void 0&&(_e=!1),!_weakMap)return a;if(!_initializedStylesheetResets$1){var pt=Stylesheet.getInstance();pt&&pt.onReset&&Stylesheet.getInstance().onReset(resetMemoizations),_initializedStylesheetResets$1=!0}var Lt,Gt=0,Ct=_resetCounter;return function(){for(var o=[],it=0;it0&&Gt>i)&&(Lt=_createNode(),Gt=0,Ct=_resetCounter),xt=Lt;for(var et=0;et=0||o.indexOf("data-")===0||o.indexOf("aria-")===0;it&&(!_e||(_e==null?void 0:_e.indexOf(o))===-1)&&(Lt[o]=a[o])}return Lt}var REACT_LIFECYCLE_EXCLUSIONS=["setState","render","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","getSnapshotBeforeUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount"];function hoistMethods(a,i,_e){_e===void 0&&(_e=REACT_LIFECYCLE_EXCLUSIONS);var pt=[],Lt=function(Ct){typeof i[Ct]=="function"&&a[Ct]===void 0&&(!_e||_e.indexOf(Ct)===-1)&&(pt.push(Ct),a[Ct]=function(){for(var Rt=[],o=0;o=0&&pt.splice(o,1)}}},[i,pt,Lt,Gt]);return reactExports.useEffect(function(){if(Ct)return Ct.registerProvider(Ct.providerRef),function(){return Ct.unregisterProvider(Ct.providerRef)}},[Ct]),Ct?reactExports.createElement(FocusRectsContext.Provider,{value:Ct},a.children):reactExports.createElement(reactExports.Fragment,null,a.children)};function getItem(a){var i=null;try{var _e=getWindow();i=_e?_e.localStorage.getItem(a):null}catch{}return i}var _language,STORAGE_KEY="language";function getLanguage(a){if(a===void 0&&(a="sessionStorage"),_language===void 0){var i=getDocument(),_e=a==="localStorage"?getItem(STORAGE_KEY):a==="sessionStorage"?getItem$1(STORAGE_KEY):void 0;_e&&(_language=_e),_language===void 0&&i&&(_language=i.documentElement.getAttribute("lang")),_language===void 0&&(_language="en")}return _language}function merge$3(a){for(var i=[],_e=1;_e-1;a[pt]=Gt?Lt:_merge(a[pt]||{},Lt,_e)}else a[pt]=Lt}return _e.pop(),a}var isIOS=function(){return!window||!window.navigator||!window.navigator.userAgent?!1:/iPad|iPhone|iPod/i.test(window.navigator.userAgent)},tagsToIgnore=["TEMPLATE","STYLE","SCRIPT"];function modalize(a){var i=getDocument(a);if(!i)return function(){};for(var _e=[];a!==i.body&&a.parentElement;){for(var pt=0,Lt=a.parentElement.children;pt"u"||a){var _e=getWindow(),pt=(i=_e==null?void 0:_e.navigator)===null||i===void 0?void 0:i.userAgent;isMacResult=!!pt&&pt.indexOf("Macintosh")!==-1}return!!isMacResult}function createComposedRenderFunction(a){var i=createMemoizer(function(_e){var pt=createMemoizer(function(Lt){return function(Gt){return _e(Gt,Lt)}});return function(Lt,Gt){return a(Lt,Gt?pt(Gt):_e)}});return i}var memoizer=createMemoizer(createComposedRenderFunction);function composeRenderFunction(a,i){return memoizer(a)(i)}var DefaultFields=["theme","styles"];function styled(a,i,_e,pt,Lt){pt=pt||{scope:"",fields:void 0};var Gt=pt.scope,Ct=pt.fields,Rt=Ct===void 0?DefaultFields:Ct,o=reactExports.forwardRef(function(xt,et){var Et=reactExports.useRef(),mt=useCustomizationSettings(Rt,Gt),ut=mt.styles;mt.dir;var ht=__rest$5(mt,["styles","dir"]),j=_e?_e(xt):void 0,_=Et.current&&Et.current.__cachedInputs__||[],rt=xt.styles;if(!Et.current||ut!==_[1]||rt!==_[2]){var tt=function(st){return concatStyleSetsWithProps(st,i,ut,rt)};tt.__cachedInputs__=[i,ut,rt],tt.__noStyleOverride__=!ut&&!rt,Et.current=tt}return reactExports.createElement(a,__assign$1({ref:et},ht,j,xt,{styles:Et.current}))});o.displayName="Styled".concat(a.displayName||a.name);var it=Lt?reactExports.memo(o):o;return o.displayName&&(it.displayName=o.displayName),it}function warnControlledUsage(a){}var isIE11=function(){var a,i=getWindow();return!((a=i==null?void 0:i.navigator)===null||a===void 0)&&a.userAgent?i.navigator.userAgent.indexOf("rv:11.0")>-1:!1};function getPropsWithDefaults(a,i){for(var _e=__assign$1({},i),pt=0,Lt=Object.keys(a);ptpt?" (+ "+(_missingIcons.length-pt)+" more)":"")),_missingIconsTimer=void 0,_missingIcons=[]},_e)))}function makeSemanticColors(a,i,_e,pt,Lt){Lt===void 0&&(Lt=!1);var Gt=__assign$1({primaryButtonBorder:"transparent",errorText:pt?"#F1707B":"#a4262c",messageText:pt?"#F3F2F1":"#323130",messageLink:pt?"#6CB8F6":"#005A9E",messageLinkHovered:pt?"#82C7FF":"#004578",infoIcon:pt?"#C8C6C4":"#605e5c",errorIcon:pt?"#F1707B":"#A80000",blockingIcon:pt?"#442726":"#FDE7E9",warningIcon:pt?"#C8C6C4":"#797775",severeWarningIcon:pt?"#FCE100":"#D83B01",successIcon:pt?"#92C353":"#107C10",infoBackground:pt?"#323130":"#f3f2f1",errorBackground:pt?"#442726":"#FDE7E9",blockingBackground:pt?"#442726":"#FDE7E9",warningBackground:pt?"#433519":"#FFF4CE",severeWarningBackground:pt?"#4F2A0F":"#FED9CC",successBackground:pt?"#393D1B":"#DFF6DD",warningHighlight:pt?"#fff100":"#ffb900",successText:pt?"#92c353":"#107C10"},_e),Ct=getSemanticColors(a,i,Gt,pt);return _fixDeprecatedSlots(Ct,Lt)}function getSemanticColors(a,i,_e,pt,Lt){var Gt={},Ct=a||{},Rt=Ct.white,o=Ct.black,it=Ct.themePrimary,xt=Ct.themeDark,et=Ct.themeDarker,Et=Ct.themeDarkAlt,mt=Ct.themeLighter,ut=Ct.neutralLight,ht=Ct.neutralLighter,j=Ct.neutralDark,_=Ct.neutralQuaternary,rt=Ct.neutralQuaternaryAlt,tt=Ct.neutralPrimary,st=Ct.neutralSecondary,ot=Ct.neutralSecondaryAlt,nt=Ct.neutralTertiary,vt=Ct.neutralTertiaryAlt,dt=Ct.neutralLighterAlt,bt=Ct.accent;return Rt&&(Gt.bodyBackground=Rt,Gt.bodyFrameBackground=Rt,Gt.accentButtonText=Rt,Gt.buttonBackground=Rt,Gt.primaryButtonText=Rt,Gt.primaryButtonTextHovered=Rt,Gt.primaryButtonTextPressed=Rt,Gt.inputBackground=Rt,Gt.inputForegroundChecked=Rt,Gt.listBackground=Rt,Gt.menuBackground=Rt,Gt.cardStandoutBackground=Rt),o&&(Gt.bodyTextChecked=o,Gt.buttonTextCheckedHovered=o),it&&(Gt.link=it,Gt.primaryButtonBackground=it,Gt.inputBackgroundChecked=it,Gt.inputIcon=it,Gt.inputFocusBorderAlt=it,Gt.menuIcon=it,Gt.menuHeader=it,Gt.accentButtonBackground=it),xt&&(Gt.primaryButtonBackgroundPressed=xt,Gt.inputBackgroundCheckedHovered=xt,Gt.inputIconHovered=xt),et&&(Gt.linkHovered=et),Et&&(Gt.primaryButtonBackgroundHovered=Et),mt&&(Gt.inputPlaceholderBackgroundChecked=mt),ut&&(Gt.bodyBackgroundChecked=ut,Gt.bodyFrameDivider=ut,Gt.bodyDivider=ut,Gt.variantBorder=ut,Gt.buttonBackgroundCheckedHovered=ut,Gt.buttonBackgroundPressed=ut,Gt.listItemBackgroundChecked=ut,Gt.listHeaderBackgroundPressed=ut,Gt.menuItemBackgroundPressed=ut,Gt.menuItemBackgroundChecked=ut),ht&&(Gt.bodyBackgroundHovered=ht,Gt.buttonBackgroundHovered=ht,Gt.buttonBackgroundDisabled=ht,Gt.buttonBorderDisabled=ht,Gt.primaryButtonBackgroundDisabled=ht,Gt.disabledBackground=ht,Gt.listItemBackgroundHovered=ht,Gt.listHeaderBackgroundHovered=ht,Gt.menuItemBackgroundHovered=ht),_&&(Gt.primaryButtonTextDisabled=_,Gt.disabledSubtext=_),rt&&(Gt.listItemBackgroundCheckedHovered=rt),nt&&(Gt.disabledBodyText=nt,Gt.variantBorderHovered=(_e==null?void 0:_e.variantBorderHovered)||nt,Gt.buttonTextDisabled=nt,Gt.inputIconDisabled=nt,Gt.disabledText=nt),tt&&(Gt.bodyText=tt,Gt.actionLink=tt,Gt.buttonText=tt,Gt.inputBorderHovered=tt,Gt.inputText=tt,Gt.listText=tt,Gt.menuItemText=tt),dt&&(Gt.bodyStandoutBackground=dt,Gt.defaultStateBackground=dt),j&&(Gt.actionLinkHovered=j,Gt.buttonTextHovered=j,Gt.buttonTextChecked=j,Gt.buttonTextPressed=j,Gt.inputTextHovered=j,Gt.menuItemTextHovered=j),st&&(Gt.bodySubtext=st,Gt.focusBorder=st,Gt.inputBorder=st,Gt.smallInputBorder=st,Gt.inputPlaceholderText=st),ot&&(Gt.buttonBorder=ot),vt&&(Gt.disabledBodySubtext=vt,Gt.disabledBorder=vt,Gt.buttonBackgroundChecked=vt,Gt.menuDivider=vt),bt&&(Gt.accentButtonBackground=bt),i!=null&&i.elevation4&&(Gt.cardShadow=i.elevation4),!pt&&(i!=null&&i.elevation8)?Gt.cardShadowHovered=i.elevation8:Gt.variantBorderHovered&&(Gt.cardShadowHovered="0 0 1px "+Gt.variantBorderHovered),Gt=__assign$1(__assign$1({},Gt),_e),Gt}function _fixDeprecatedSlots(a,i){var _e="";return i===!0&&(_e=" /* @deprecated */"),a.listTextColor=a.listText+_e,a.menuItemBackgroundChecked+=_e,a.warningHighlight+=_e,a.warningText=a.messageText+_e,a.successText+=_e,a}function mergeThemes(a,i){var _e,pt,Lt;i===void 0&&(i={});var Gt=merge$3({},a,i,{semanticColors:getSemanticColors(i.palette,i.effects,i.semanticColors,i.isInverted===void 0?a.isInverted:i.isInverted)});if(!((_e=i.palette)===null||_e===void 0)&&_e.themePrimary&&!(!((pt=i.palette)===null||pt===void 0)&&pt.accent)&&(Gt.palette.accent=i.palette.themePrimary),i.defaultFontStyle)for(var Ct=0,Rt=Object.keys(Gt.fonts);Ct"u"?global:window,_styleNonce=_root&&_root.CSPSettings&&_root.CSPSettings.nonce,_themeState=initializeThemeState();function initializeThemeState(){var a=_root.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]};return a.runState||(a=__assign(__assign({},a),{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),a.registeredThemableStyles||(a=__assign(__assign({},a),{registeredThemableStyles:[]})),_root.__themeState__=a,a}function applyThemableStyles(a,i){_themeState.loadStyles?_themeState.loadStyles(resolveThemableArray(a).styleString,a):registerStyles(a)}function loadTheme$1(a){_themeState.theme=a,reloadStyles()}function clearStyles(a){a===void 0&&(a=3),(a===3||a===2)&&(clearStylesInternal(_themeState.registeredStyles),_themeState.registeredStyles=[]),(a===3||a===1)&&(clearStylesInternal(_themeState.registeredThemableStyles),_themeState.registeredThemableStyles=[])}function clearStylesInternal(a){a.forEach(function(i){var _e=i&&i.styleElement;_e&&_e.parentElement&&_e.parentElement.removeChild(_e)})}function reloadStyles(){if(_themeState.theme){for(var a=[],i=0,_e=_themeState.registeredThemableStyles;i<_e.length;i++){var pt=_e[i];a.push(pt.themableStyle)}a.length>0&&(clearStyles(1),applyThemableStyles([].concat.apply([],a)))}}function resolveThemableArray(a){var i=_themeState.theme,_e=!1,pt=(a||[]).map(function(Lt){var Gt=Lt.theme;if(Gt){_e=!0;var Ct=i?i[Gt]:void 0,Rt=Lt.defaultValue||"inherit";return i&&!Ct&&console&&!(Gt in i)&&typeof DEBUG<"u"&&DEBUG&&console.warn('Theming value not provided for "'.concat(Gt,'". Falling back to "').concat(Rt,'".')),Ct||Rt}else return Lt.rawString});return{styleString:pt.join(""),themable:_e}}function registerStyles(a){if(!(typeof document>"u")){var i=document.getElementsByTagName("head")[0],_e=document.createElement("style"),pt=resolveThemableArray(a),Lt=pt.styleString,Gt=pt.themable;_e.setAttribute("data-load-themed-styles","true"),_styleNonce&&_e.setAttribute("nonce",_styleNonce),_e.appendChild(document.createTextNode(Lt)),_themeState.perf.count++,i.appendChild(_e);var Ct=document.createEvent("HTMLEvents");Ct.initEvent("styleinsert",!0,!1),Ct.args={newStyle:_e},document.dispatchEvent(Ct);var Rt={styleElement:_e,themableStyle:a};Gt?_themeState.registeredThemableStyles.push(Rt):_themeState.registeredStyles.push(Rt)}}var _theme=createTheme({}),_onThemeChangeCallbacks=[],ThemeSettingName="theme";function initializeThemeInCustomizations(){var a,i,_e,pt=getWindow();!((i=pt==null?void 0:pt.FabricConfig)===null||i===void 0)&&i.legacyTheme?loadTheme(pt.FabricConfig.legacyTheme):Customizations.getSettings([ThemeSettingName]).theme||(!((_e=pt==null?void 0:pt.FabricConfig)===null||_e===void 0)&&_e.theme&&(_theme=createTheme(pt.FabricConfig.theme)),Customizations.applySettings((a={},a[ThemeSettingName]=_theme,a)))}initializeThemeInCustomizations();function getTheme(a){return a===void 0&&(a=!1),a===!0&&(_theme=createTheme({},a)),_theme}function loadTheme(a,i){var _e;return i===void 0&&(i=!1),_theme=createTheme(a,i),loadTheme$1(__assign$1(__assign$1(__assign$1(__assign$1({},_theme.palette),_theme.semanticColors),_theme.effects),_loadFonts(_theme))),Customizations.applySettings((_e={},_e[ThemeSettingName]=_theme,_e)),_onThemeChangeCallbacks.forEach(function(pt){try{pt(_theme)}catch{}}),_theme}function _loadFonts(a){for(var i={},_e=0,pt=Object.keys(a.fonts);_ei.bottom||a.lefti.right)}function _getOutOfBoundsEdges(a,i){var _e=[];return a.topi.bottom&&_e.push(RectangleEdge.bottom),a.lefti.right&&_e.push(RectangleEdge.right),_e}function _getEdgeValue(a,i){return a[RectangleEdge[i]]}function _setEdgeValue(a,i,_e){return a[RectangleEdge[i]]=_e,a}function _getCenterValue(a,i){var _e=_getFlankingEdges(i);return(_getEdgeValue(a,_e.positiveEdge)+_getEdgeValue(a,_e.negativeEdge))/2}function _getRelativeEdgeValue(a,i){return a>0?i:i*-1}function _getRelativeRectEdgeValue(a,i){return _getRelativeEdgeValue(a,_getEdgeValue(i,a))}function _getRelativeEdgeDifference(a,i,_e){var pt=_getEdgeValue(a,_e)-_getEdgeValue(i,_e);return _getRelativeEdgeValue(_e,pt)}function _moveEdge(a,i,_e,pt){pt===void 0&&(pt=!0);var Lt=_getEdgeValue(a,i)-_e,Gt=_setEdgeValue(a,i,_e);return pt&&(Gt=_setEdgeValue(a,i*-1,_getEdgeValue(a,i*-1)-Lt)),Gt}function _alignEdges(a,i,_e,pt){return pt===void 0&&(pt=0),_moveEdge(a,_e,_getEdgeValue(i,_e)+_getRelativeEdgeValue(_e,pt))}function _alignOppositeEdges(a,i,_e,pt){pt===void 0&&(pt=0);var Lt=_e*-1,Gt=_getRelativeEdgeValue(Lt,pt);return _moveEdge(a,_e*-1,_getEdgeValue(i,_e)+Gt)}function _isEdgeInBounds(a,i,_e){var pt=_getRelativeRectEdgeValue(_e,a);return pt>_getRelativeRectEdgeValue(_e,i)}function _getOutOfBoundsDegree(a,i){for(var _e=_getOutOfBoundsEdges(a,i),pt=0,Lt=0,Gt=_e;Lt0&&(Gt.indexOf(Rt*-1)>-1?Rt=Rt*-1:(o=Rt,Rt=Gt.slice(-1)[0]),Ct=_estimatePosition(a,i,{targetEdge:Rt,alignmentEdge:o},Lt))}return Ct=_estimatePosition(a,i,{targetEdge:xt,alignmentEdge:et},Lt),{elementRectangle:Ct,targetEdge:xt,alignmentEdge:et}}function _flipAlignmentEdge(a,i,_e,pt){var Lt=a.alignmentEdge,Gt=a.targetEdge,Ct=a.elementRectangle,Rt=Lt*-1,o=_estimatePosition(Ct,i,{targetEdge:Gt,alignmentEdge:Rt},_e,pt);return{elementRectangle:o,targetEdge:Gt,alignmentEdge:Rt}}function _adjustFitWithinBounds(a,i,_e,pt,Lt,Gt,Ct){Lt===void 0&&(Lt=0);var Rt=pt.alignmentEdge,o=pt.alignTargetEdge,it={elementRectangle:a,targetEdge:pt.targetEdge,alignmentEdge:Rt};!Gt&&!Ct&&(it=_flipToFit(a,i,_e,pt,Lt));var xt=_getOutOfBoundsEdges(it.elementRectangle,_e),et=Gt?-it.targetEdge:void 0;if(xt.length>0)if(o)if(it.alignmentEdge&&xt.indexOf(it.alignmentEdge*-1)>-1){var Et=_flipAlignmentEdge(it,i,Lt,Ct);if(_isRectangleWithinBounds(Et.elementRectangle,_e))return Et;it=_alignOutOfBoundsEdges(_getOutOfBoundsEdges(Et.elementRectangle,_e),it,_e,et)}else it=_alignOutOfBoundsEdges(xt,it,_e,et);else it=_alignOutOfBoundsEdges(xt,it,_e,et);return it}function _alignOutOfBoundsEdges(a,i,_e,pt){for(var Lt=0,Gt=a;LtMath.abs(_getRelativeEdgeDifference(a,_e,i*-1))?i*-1:i}function _isEdgeOnBounds(a,i,_e){return _e!==void 0&&_getEdgeValue(a,i)===_getEdgeValue(_e,i)}function _finalizeElementPosition(a,i,_e,pt,Lt,Gt,Ct,Rt){var o={},it=_getRectangleFromElement(i),xt=Gt?_e:_e*-1,et=Lt||_getFlankingEdges(_e).positiveEdge;return(!Ct||_isEdgeOnBounds(a,getOppositeEdge(et),pt))&&(et=_finalizeReturnEdge(a,et,pt)),o[RectangleEdge[xt]]=_getRelativeEdgeDifference(a,it,xt),o[RectangleEdge[et]]=_getRelativeEdgeDifference(a,it,et),Rt&&(o[RectangleEdge[xt*-1]]=_getRelativeEdgeDifference(a,it,xt*-1),o[RectangleEdge[et*-1]]=_getRelativeEdgeDifference(a,it,et*-1)),o}function _calculateActualBeakWidthInPixels(a){return Math.sqrt(a*a*2)}function _getPositionData(a,i,_e){if(a===void 0&&(a=DirectionalHint.bottomAutoEdge),_e)return{alignmentEdge:_e.alignmentEdge,isAuto:_e.isAuto,targetEdge:_e.targetEdge};var pt=__assign$1({},DirectionalDictionary[a]);return getRTL()?(pt.alignmentEdge&&pt.alignmentEdge%2===0&&(pt.alignmentEdge=pt.alignmentEdge*-1),i!==void 0?DirectionalDictionary[i]:pt):pt}function _getAlignmentData(a,i,_e,pt,Lt){return a.isAuto&&(a.alignmentEdge=getClosestEdge(a.targetEdge,i,_e)),a.alignTargetEdge=Lt,a}function getClosestEdge(a,i,_e){var pt=_getCenterValue(i,a),Lt=_getCenterValue(_e,a),Gt=_getFlankingEdges(a),Ct=Gt.positiveEdge,Rt=Gt.negativeEdge;return pt<=Lt?Ct:Rt}function _positionElementWithinBounds(a,i,_e,pt,Lt,Gt,Ct){var Rt=_estimatePosition(a,i,pt,Lt,Ct);return _isRectangleWithinBounds(Rt,_e)?{elementRectangle:Rt,targetEdge:pt.targetEdge,alignmentEdge:pt.alignmentEdge}:_adjustFitWithinBounds(Rt,i,_e,pt,Lt,Gt,Ct)}function _finalizeBeakPosition(a,i,_e){var pt=a.targetEdge*-1,Lt=new Rectangle(0,a.elementRectangle.width,0,a.elementRectangle.height),Gt={},Ct=_finalizeReturnEdge(a.elementRectangle,a.alignmentEdge?a.alignmentEdge:_getFlankingEdges(pt).positiveEdge,_e),Rt=_getRelativeEdgeDifference(a.elementRectangle,a.targetRectangle,pt),o=Rt>Math.abs(_getEdgeValue(i,pt));return Gt[RectangleEdge[pt]]=_getEdgeValue(i,pt),Gt[RectangleEdge[Ct]]=_getRelativeEdgeDifference(i,Lt,Ct),{elementPosition:__assign$1({},Gt),closestEdge:getClosestEdge(a.targetEdge,i,Lt),targetEdge:pt,hideBeak:!o}}function _positionBeak(a,i){var _e=i.targetRectangle,pt=_getFlankingEdges(i.targetEdge),Lt=pt.positiveEdge,Gt=pt.negativeEdge,Ct=_getCenterValue(_e,i.targetEdge),Rt=new Rectangle(a/2,i.elementRectangle.width-a/2,a/2,i.elementRectangle.height-a/2),o=new Rectangle(0,a,0,a);return o=_moveEdge(o,i.targetEdge*-1,-a/2),o=_centerEdgeToPoint(o,i.targetEdge*-1,Ct-_getRelativeRectEdgeValue(Lt,i.elementRectangle)),_isEdgeInBounds(o,Rt,Lt)?_isEdgeInBounds(o,Rt,Gt)||(o=_alignEdges(o,Rt,Gt)):o=_alignEdges(o,Rt,Lt),o}function _getRectangleFromElement(a){var i=a.getBoundingClientRect();return new Rectangle(i.left,i.right,i.top,i.bottom)}function _getRectangleFromIRect(a){return new Rectangle(a.left,a.right,a.top,a.bottom)}function _getTargetRect(a,i){var _e;if(i){if(i.preventDefault){var pt=i;_e=new Rectangle(pt.clientX,pt.clientX,pt.clientY,pt.clientY)}else if(i.getBoundingClientRect)_e=_getRectangleFromElement(i);else{var Lt=i,Gt=Lt.left||Lt.x,Ct=Lt.top||Lt.y,Rt=Lt.right||Gt,o=Lt.bottom||Ct;_e=new Rectangle(Gt,Rt,Ct,o)}if(!_isRectangleWithinBounds(_e,a))for(var it=_getOutOfBoundsEdges(_e,a),xt=0,et=it;xt=pt&&Lt&&it.top<=Lt&&it.bottom>=Lt&&(Ct={top:it.top,left:it.left,right:it.right,bottom:it.bottom,width:it.width,height:it.height})}return Ct}function getBoundsFromTargetWindow(a,i){return _getBoundsFromTargetWindow(a,i)}function useAsync(){var a=reactExports.useRef();return a.current||(a.current=new Async),reactExports.useEffect(function(){return function(){var i;(i=a.current)===null||i===void 0||i.dispose(),a.current=void 0}},[]),a.current}function useConst(a){var i=reactExports.useRef();return i.current===void 0&&(i.current={value:typeof a=="function"?a():a}),i.current.value}function useBoolean(a){var i=reactExports.useState(a),_e=i[0],pt=i[1],Lt=useConst(function(){return function(){pt(!0)}}),Gt=useConst(function(){return function(){pt(!1)}}),Ct=useConst(function(){return function(){pt(function(Rt){return!Rt})}});return[_e,{setTrue:Lt,setFalse:Gt,toggle:Ct}]}function useControllableValue(a,i,_e){var pt=reactExports.useState(i),Lt=pt[0],Gt=pt[1],Ct=useConst(a!==void 0),Rt=Ct?a:Lt,o=reactExports.useRef(Rt),it=reactExports.useRef(_e);reactExports.useEffect(function(){o.current=Rt,it.current=_e});var xt=useConst(function(){return function(et,Et){var mt=typeof et=="function"?et(o.current):et;it.current&&it.current(Et,mt),Ct||Gt(mt)}});return[Rt,xt]}function useEventCallback(a){var i=reactExports.useRef(function(){throw new Error("Cannot call an event handler while rendering")});return useIsomorphicLayoutEffect(function(){i.current=a},[a]),useConst(function(){return function(){for(var _e=[],pt=0;pt0&&it>o&&(Rt=it-o>1)}Lt!==Rt&&Gt(Rt)}}),function(){return _e.dispose()}}),Lt}function defaultFocusRestorer(a){var i=a.originalElement,_e=a.containsFocus;i&&_e&&i!==getWindow()&&setTimeout(function(){var pt;(pt=i.focus)===null||pt===void 0||pt.call(i)},0)}function useRestoreFocus(a,i){var _e=a.onRestoreFocus,pt=_e===void 0?defaultFocusRestorer:_e,Lt=reactExports.useRef(),Gt=reactExports.useRef(!1);reactExports.useEffect(function(){return Lt.current=getDocument().activeElement,doesElementContainFocus(i.current)&&(Gt.current=!0),function(){var Ct;pt==null||pt({originalElement:Lt.current,containsFocus:Gt.current,documentContainsFocus:((Ct=getDocument())===null||Ct===void 0?void 0:Ct.hasFocus())||!1}),Lt.current=void 0}},[]),useOnEvent(i,"focus",reactExports.useCallback(function(){Gt.current=!0},[]),!0),useOnEvent(i,"blur",reactExports.useCallback(function(Ct){i.current&&Ct.relatedTarget&&!i.current.contains(Ct.relatedTarget)&&(Gt.current=!1)},[]),!0)}function useHideSiblingNodes(a,i){var _e=String(a["aria-modal"]).toLowerCase()==="true"&&a.enableAriaHiddenSiblings;reactExports.useEffect(function(){if(_e&&i.current){var pt=modalize(i.current);return pt}},[i,_e])}var Popup=reactExports.forwardRef(function(a,i){var _e=getPropsWithDefaults({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},a),pt=reactExports.useRef(),Lt=useMergedRefs(pt,i);useHideSiblingNodes(_e,pt),useRestoreFocus(_e,pt);var Gt=_e.role,Ct=_e.className,Rt=_e.ariaLabel,o=_e.ariaLabelledBy,it=_e.ariaDescribedBy,xt=_e.style,et=_e.children,Et=_e.onDismiss,mt=useScrollbarAsync(_e,pt),ut=reactExports.useCallback(function(j){switch(j.which){case KeyCodes.escape:Et&&(Et(j),j.preventDefault(),j.stopPropagation());break}},[Et]),ht=useWindow();return useOnEvent(ht,"keydown",ut),reactExports.createElement("div",__assign$1({ref:Lt},getNativeProps(_e,divProperties),{className:Ct,role:Gt,"aria-label":Rt,"aria-labelledby":o,"aria-describedby":it,onKeyDown:ut,style:__assign$1({overflowY:mt?"scroll":void 0,outline:"none"},xt)}),et)});Popup.displayName="Popup";var _a,COMPONENT_NAME$4="CalloutContentBase",ANIMATIONS=(_a={},_a[RectangleEdge.top]=AnimationClassNames.slideUpIn10,_a[RectangleEdge.bottom]=AnimationClassNames.slideDownIn10,_a[RectangleEdge.left]=AnimationClassNames.slideLeftIn10,_a[RectangleEdge.right]=AnimationClassNames.slideRightIn10,_a),BEAK_ORIGIN_POSITION={top:0,left:0},OFF_SCREEN_STYLE={opacity:0,filter:"opacity(0)",pointerEvents:"none"},ARIA_ROLE_ATTRIBUTES=["role","aria-roledescription"],DEFAULT_PROPS$3={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:DirectionalHint.bottomAutoEdge},getClassNames$h=classNamesFunction({disableCaching:!0});function useBounds(a,i,_e){var pt=a.bounds,Lt=a.minPagePadding,Gt=Lt===void 0?DEFAULT_PROPS$3.minPagePadding:Lt,Ct=a.target,Rt=reactExports.useState(!1),o=Rt[0],it=Rt[1],xt=reactExports.useRef(),et=reactExports.useCallback(function(){if(!xt.current||o){var mt=typeof pt=="function"?_e?pt(Ct,_e):void 0:pt;!mt&&_e&&(mt=getBoundsFromTargetWindow(i.current,_e),mt={top:mt.top+Gt,left:mt.left+Gt,right:mt.right-Gt,bottom:mt.bottom-Gt,width:mt.width-Gt*2,height:mt.height-Gt*2}),xt.current=mt,o&&it(!1)}return xt.current},[pt,Gt,Ct,i,_e,o]),Et=useAsync();return useOnEvent(_e,"resize",Et.debounce(function(){it(!0)},500,{leading:!0})),et}function useMaxHeight(a,i,_e){var pt,Lt=a.calloutMaxHeight,Gt=a.finalHeight,Ct=a.directionalHint,Rt=a.directionalHintFixed,o=a.hidden,it=reactExports.useState(),xt=it[0],et=it[1],Et=(pt=_e==null?void 0:_e.elementPosition)!==null&&pt!==void 0?pt:{},mt=Et.top,ut=Et.bottom;return reactExports.useEffect(function(){var ht,j=(ht=i())!==null&&ht!==void 0?ht:{},_=j.top,rt=j.bottom;!Lt&&!o?typeof mt=="number"&&rt?et(rt-mt):typeof ut=="number"&&typeof _=="number"&&rt&&et(rt-_-ut):et(Lt||void 0)},[ut,Lt,Gt,Ct,Rt,i,o,_e,mt]),xt}function usePositions(a,i,_e,pt,Lt){var Gt=reactExports.useState(),Ct=Gt[0],Rt=Gt[1],o=reactExports.useRef(0),it=reactExports.useRef(),xt=useAsync(),et=a.hidden,Et=a.target,mt=a.finalHeight,ut=a.calloutMaxHeight,ht=a.onPositioned,j=a.directionalHint;return reactExports.useEffect(function(){if(et)Rt(void 0),o.current=0;else{var _=xt.requestAnimationFrame(function(){var rt,tt;if(i.current&&_e){var st=__assign$1(__assign$1({},a),{target:pt.current,bounds:Lt()}),ot=_e.cloneNode(!0);ot.style.maxHeight=ut?""+ut:"",ot.style.visibility="hidden",(rt=_e.parentElement)===null||rt===void 0||rt.appendChild(ot);var nt=it.current===Et?Ct:void 0,vt=mt?positionCard(st,i.current,ot,nt):positionCallout(st,i.current,ot,nt);(tt=_e.parentElement)===null||tt===void 0||tt.removeChild(ot),!Ct&&vt||Ct&&vt&&!arePositionsEqual(Ct,vt)&&o.current<5?(o.current++,Rt(vt)):o.current>0&&(o.current=0,ht==null||ht(Ct))}},_e);return it.current=Et,function(){xt.cancelAnimationFrame(_),it.current=void 0}}},[et,j,xt,_e,ut,i,pt,mt,Lt,ht,Ct,a,Et]),Ct}function useAutoFocus(a,i,_e){var pt=a.hidden,Lt=a.setInitialFocus,Gt=useAsync(),Ct=!!i;reactExports.useEffect(function(){if(!pt&&Lt&&Ct&&_e){var Rt=Gt.requestAnimationFrame(function(){return focusFirstChild(_e)},_e);return function(){return Gt.cancelAnimationFrame(Rt)}}},[pt,Ct,Gt,_e,Lt])}function useDismissHandlers(a,i,_e,pt,Lt){var Gt=a.hidden,Ct=a.onDismiss,Rt=a.preventDismissOnScroll,o=a.preventDismissOnResize,it=a.preventDismissOnLostFocus,xt=a.dismissOnTargetClick,et=a.shouldDismissOnWindowFocus,Et=a.preventDismissOnEvent,mt=reactExports.useRef(!1),ut=useAsync(),ht=useConst([function(){mt.current=!0},function(){mt.current=!1}]),j=!!i;return reactExports.useEffect(function(){var _=function(vt){j&&!Rt&&st(vt)},rt=function(vt){!o&&!(Et&&Et(vt))&&(Ct==null||Ct(vt))},tt=function(vt){it||st(vt)},st=function(vt){var dt=vt.composedPath?vt.composedPath():[],bt=dt.length>0?dt[0]:vt.target,ft=_e.current&&!elementContains(_e.current,bt);if(ft&&mt.current){mt.current=!1;return}if(!pt.current&&ft||vt.target!==Lt&&ft&&(!pt.current||"stopPropagation"in pt.current||xt||bt!==pt.current&&!elementContains(pt.current,bt))){if(Et&&Et(vt))return;Ct==null||Ct(vt)}},ot=function(vt){et&&(Et&&!Et(vt)||!Et&&!it)&&!(Lt!=null&&Lt.document.hasFocus())&&vt.relatedTarget===null&&(Ct==null||Ct(vt))},nt=new Promise(function(vt){ut.setTimeout(function(){if(!Gt&&Lt){var dt=[on(Lt,"scroll",_,!0),on(Lt,"resize",rt,!0),on(Lt.document.documentElement,"focus",tt,!0),on(Lt.document.documentElement,"click",tt,!0),on(Lt,"blur",ot,!0)];vt(function(){dt.forEach(function(bt){return bt()})})}},0)});return function(){nt.then(function(vt){return vt()})}},[Gt,ut,_e,pt,Lt,Ct,et,xt,it,o,Rt,j,Et]),ht}var CalloutContentBase=reactExports.memo(reactExports.forwardRef(function(a,i){var _e=getPropsWithDefaults(DEFAULT_PROPS$3,a),pt=_e.styles,Lt=_e.style,Gt=_e.ariaLabel,Ct=_e.ariaDescribedBy,Rt=_e.ariaLabelledBy,o=_e.className,it=_e.isBeakVisible,xt=_e.children,et=_e.beakWidth,Et=_e.calloutWidth,mt=_e.calloutMaxWidth,ut=_e.calloutMinWidth,ht=_e.doNotLayer,j=_e.finalHeight,_=_e.hideOverflow,rt=_===void 0?!!j:_,tt=_e.backgroundColor,st=_e.calloutMaxHeight,ot=_e.onScroll,nt=_e.shouldRestoreFocus,vt=nt===void 0?!0:nt,dt=_e.target,bt=_e.hidden,ft=_e.onLayerMounted,at=_e.popupProps,yt=reactExports.useRef(null),St=reactExports.useState(null),_t=St[0],Mt=St[1],Tt=reactExports.useCallback(function(lr){Mt(lr)},[]),kt=useMergedRefs(yt,i),wt=useTarget(_e.target,{current:_t}),ct=wt[0],It=wt[1],At=useBounds(_e,ct,It),Ot=usePositions(_e,yt,_t,ct,At),Pt=useMaxHeight(_e,At,Ot),zt=useDismissHandlers(_e,Ot,yt,ct,It),Dt=zt[0],Nt=zt[1],$t=(Ot==null?void 0:Ot.elementPosition.top)&&(Ot==null?void 0:Ot.elementPosition.bottom),Ut=__assign$1(__assign$1({},Ot==null?void 0:Ot.elementPosition),{maxHeight:Pt});if($t&&(Ut.bottom=void 0),useAutoFocus(_e,Ot,_t),reactExports.useEffect(function(){bt||ft==null||ft()},[bt]),!It)return null;var Ht=rt,Vt=it&&!!dt,Xt=getClassNames$h(pt,{theme:_e.theme,className:o,overflowYHidden:Ht,calloutWidth:Et,positions:Ot,beakWidth:et,backgroundColor:tt,calloutMaxWidth:mt,calloutMinWidth:ut,doNotLayer:ht}),qt=__assign$1(__assign$1({maxHeight:st||"100%"},Lt),Ht&&{overflowY:"hidden"}),er=_e.hidden?{visibility:"hidden"}:void 0;return reactExports.createElement("div",{ref:kt,className:Xt.container,style:er},reactExports.createElement("div",__assign$1({},getNativeProps(_e,divProperties,ARIA_ROLE_ATTRIBUTES),{className:css$2(Xt.root,Ot&&Ot.targetEdge&&ANIMATIONS[Ot.targetEdge]),style:Ot?__assign$1({},Ut):OFF_SCREEN_STYLE,tabIndex:-1,ref:Tt}),Vt&&reactExports.createElement("div",{className:Xt.beak,style:getBeakPosition(Ot)}),Vt&&reactExports.createElement("div",{className:Xt.beakCurtain}),reactExports.createElement(Popup,__assign$1({role:_e.role,"aria-roledescription":_e["aria-roledescription"],ariaDescribedBy:Ct,ariaLabel:Gt,ariaLabelledBy:Rt,className:Xt.calloutMain,onDismiss:_e.onDismiss,onMouseDown:Dt,onMouseUp:Nt,onRestoreFocus:_e.onRestoreFocus,onScroll:ot,shouldRestoreFocus:vt,style:qt},at),xt)))}),function(a,i){return!i.shouldUpdateWhenHidden&&a.hidden&&i.hidden?!0:shallowCompare(a,i)});function getBeakPosition(a){var i,_e,pt=__assign$1(__assign$1({},(i=a==null?void 0:a.beakPosition)===null||i===void 0?void 0:i.elementPosition),{display:!((_e=a==null?void 0:a.beakPosition)===null||_e===void 0)&&_e.hideBeak?"none":void 0});return!pt.top&&!pt.bottom&&!pt.left&&!pt.right&&(pt.left=BEAK_ORIGIN_POSITION.left,pt.top=BEAK_ORIGIN_POSITION.top),pt}function arePositionsEqual(a,i){return comparePositions(a.elementPosition,i.elementPosition)&&comparePositions(a.beakPosition.elementPosition,i.beakPosition.elementPosition)}function comparePositions(a,i){for(var _e in i)if(i.hasOwnProperty(_e)){var pt=a[_e],Lt=i[_e];if(pt!==void 0&&Lt!==void 0){if(pt.toFixed(2)!==Lt.toFixed(2))return!1}else return!1}return!0}CalloutContentBase.displayName=COMPONENT_NAME$4;function getBeakStyle(a){return{height:a,width:a}}var GlobalClassNames$d={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},getStyles$l=function(a){var i,_e=a.theme,pt=a.className,Lt=a.overflowYHidden,Gt=a.calloutWidth,Ct=a.beakWidth,Rt=a.backgroundColor,o=a.calloutMaxWidth,it=a.calloutMinWidth,xt=a.doNotLayer,et=getGlobalClassNames(GlobalClassNames$d,_e),Et=_e.semanticColors,mt=_e.effects;return{container:[et.container,{position:"relative"}],root:[et.root,_e.fonts.medium,{position:"absolute",display:"flex",zIndex:xt?ZIndexes.Layer:void 0,boxSizing:"border-box",borderRadius:mt.roundedCorner2,boxShadow:mt.elevation16,selectors:(i={},i[HighContrastSelector]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},i)},focusClear(),pt,!!Gt&&{width:Gt},!!o&&{maxWidth:o},!!it&&{minWidth:it}],beak:[et.beak,{position:"absolute",backgroundColor:Et.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},getBeakStyle(Ct),Rt&&{backgroundColor:Rt}],beakCurtain:[et.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:Et.menuBackground,borderRadius:mt.roundedCorner2}],calloutMain:[et.calloutMain,{backgroundColor:Et.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:mt.roundedCorner2},Lt&&{overflowY:"hidden"},Rt&&{backgroundColor:Rt}]}},CalloutContent=styled(CalloutContentBase,getStyles$l,void 0,{scope:"CalloutContent"}),PortalCompatContext=reactExports.createContext(void 0),portalCompatContextDefaultValue=function(){return function(){}};PortalCompatContext.Provider;function usePortalCompat(){var a;return(a=reactExports.useContext(PortalCompatContext))!==null&&a!==void 0?a:portalCompatContextDefaultValue}var getClassNames$g=classNamesFunction(),getFabricTheme=memoizeFunction(function(a,i){return createTheme(__assign$1(__assign$1({},a),{rtl:i}))}),getDir=function(a){var i=a.theme,_e=a.dir,pt=getRTL(i)?"rtl":"ltr",Lt=getRTL()?"rtl":"ltr",Gt=_e||pt;return{rootDir:Gt!==pt||Gt!==Lt?Gt:_e,needsTheme:Gt!==pt}},FabricBase=reactExports.forwardRef(function(a,i){var _e=a.className,pt=a.theme,Lt=a.applyTheme,Gt=a.applyThemeToBody,Ct=a.styles,Rt=getClassNames$g(Ct,{theme:pt,applyTheme:Lt,className:_e}),o=reactExports.useRef(null);return useApplyThemeToBody(Gt,Rt,o),reactExports.createElement(reactExports.Fragment,null,useRenderedContent(a,Rt,o,i))});FabricBase.displayName="FabricBase";function useRenderedContent(a,i,_e,pt){var Lt=i.root,Gt=a.as,Ct=Gt===void 0?"div":Gt,Rt=a.dir,o=a.theme,it=getNativeProps(a,divProperties,["dir"]),xt=getDir(a),et=xt.rootDir,Et=xt.needsTheme,mt=reactExports.createElement(FocusRectsProvider,{providerRef:_e},reactExports.createElement(Ct,__assign$1({dir:et},it,{className:Lt,ref:useMergedRefs(_e,pt)})));return Et&&(mt=reactExports.createElement(Customizer,{settings:{theme:getFabricTheme(o,Rt==="rtl")}},mt)),mt}function useApplyThemeToBody(a,i,_e){var pt=i.bodyThemed;return reactExports.useEffect(function(){if(a){var Lt=getDocument(_e.current);if(Lt)return Lt.body.classList.add(pt),function(){Lt.body.classList.remove(pt)}}},[pt,a,_e]),_e}var inheritFont={fontFamily:"inherit"},GlobalClassNames$c={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},getStyles$k=function(a){var i=a.applyTheme,_e=a.className,pt=a.preventBlanketFontInheritance,Lt=a.theme,Gt=getGlobalClassNames(GlobalClassNames$c,Lt);return{root:[Gt.root,Lt.fonts.medium,{color:Lt.palette.neutralPrimary},!pt&&{"& button":inheritFont,"& input":inheritFont,"& textarea":inheritFont},i&&{color:Lt.semanticColors.bodyText,backgroundColor:Lt.semanticColors.bodyBackground},_e],bodyThemed:[{backgroundColor:Lt.semanticColors.bodyBackground}]}},Fabric=styled(FabricBase,getStyles$k,void 0,{scope:"Fabric"}),_layersByHostId={},_layerHostsById={},defaultHostId="fluent-default-layer-host",_defaultHostSelector="#"+defaultHostId;function registerLayer(a,i){_layersByHostId[a]||(_layersByHostId[a]=[]),_layersByHostId[a].push(i);var _e=_layerHostsById[a];if(_e)for(var pt=0,Lt=_e;pt=0&&(_e.splice(pt,1),_e.length===0&&delete _layersByHostId[a])}var Lt=_layerHostsById[a];if(Lt)for(var Gt=0,Ct=Lt;Gt0&&i.current.naturalHeight>0||i.current.complete&&SVG_REGEX.test(Gt):!1;et&&o(ImageLoadState.loaded)}}),reactExports.useEffect(function(){_e==null||_e(Rt)},[Rt]);var it=reactExports.useCallback(function(et){pt==null||pt(et),Gt&&o(ImageLoadState.loaded)},[Gt,pt]),xt=reactExports.useCallback(function(et){Lt==null||Lt(et),o(ImageLoadState.error)},[Lt]);return[Rt,it,xt]}var ImageBase=reactExports.forwardRef(function(a,i){var _e=reactExports.useRef(),pt=reactExports.useRef(),Lt=useLoadState(a,pt),Gt=Lt[0],Ct=Lt[1],Rt=Lt[2],o=getNativeProps(a,imgProperties,["width","height"]),it=a.src,xt=a.alt,et=a.width,Et=a.height,mt=a.shouldFadeIn,ut=mt===void 0?!0:mt,ht=a.shouldStartVisible,j=a.className,_=a.imageFit,rt=a.role,tt=a.maximizeFrame,st=a.styles,ot=a.theme,nt=a.loading,vt=useCoverStyle(a,Gt,pt,_e),dt=getClassNames$e(st,{theme:ot,className:j,width:et,height:Et,maximizeFrame:tt,shouldFadeIn:ut,shouldStartVisible:ht,isLoaded:Gt===ImageLoadState.loaded||Gt===ImageLoadState.notLoaded&&a.shouldStartVisible,isLandscape:vt===ImageCoverStyle.landscape,isCenter:_===ImageFit.center,isCenterContain:_===ImageFit.centerContain,isCenterCover:_===ImageFit.centerCover,isContain:_===ImageFit.contain,isCover:_===ImageFit.cover,isNone:_===ImageFit.none,isError:Gt===ImageLoadState.error,isNotImageFit:_===void 0});return reactExports.createElement("div",{className:dt.root,style:{width:et,height:Et},ref:_e},reactExports.createElement("img",__assign$1({},o,{onLoad:Ct,onError:Rt,key:KEY_PREFIX+a.src||"",className:dt.image,ref:useMergedRefs(pt,i),src:it,alt:xt,role:rt,loading:nt})))});ImageBase.displayName="ImageBase";function useCoverStyle(a,i,_e,pt){var Lt=reactExports.useRef(i),Gt=reactExports.useRef();return(Gt===void 0||Lt.current===ImageLoadState.notLoaded&&i===ImageLoadState.loaded)&&(Gt.current=computeCoverStyle(a,i,_e,pt)),Lt.current=i,Gt.current}function computeCoverStyle(a,i,_e,pt){var Lt=a.imageFit,Gt=a.width,Ct=a.height;if(a.coverStyle!==void 0)return a.coverStyle;if(i===ImageLoadState.loaded&&(Lt===ImageFit.cover||Lt===ImageFit.contain||Lt===ImageFit.centerContain||Lt===ImageFit.centerCover)&&_e.current&&pt.current){var Rt=void 0;typeof Gt=="number"&&typeof Ct=="number"&&Lt!==ImageFit.centerContain&&Lt!==ImageFit.centerCover?Rt=Gt/Ct:Rt=pt.current.clientWidth/pt.current.clientHeight;var o=_e.current.naturalWidth/_e.current.naturalHeight;if(o>Rt)return ImageCoverStyle.landscape}return ImageCoverStyle.portrait}var GlobalClassNames$a={root:"ms-Image",rootMaximizeFrame:"ms-Image--maximizeFrame",image:"ms-Image-image",imageCenter:"ms-Image-image--center",imageContain:"ms-Image-image--contain",imageCover:"ms-Image-image--cover",imageCenterContain:"ms-Image-image--centerContain",imageCenterCover:"ms-Image-image--centerCover",imageNone:"ms-Image-image--none",imageLandscape:"ms-Image-image--landscape",imagePortrait:"ms-Image-image--portrait"},getStyles$i=function(a){var i=a.className,_e=a.width,pt=a.height,Lt=a.maximizeFrame,Gt=a.isLoaded,Ct=a.shouldFadeIn,Rt=a.shouldStartVisible,o=a.isLandscape,it=a.isCenter,xt=a.isContain,et=a.isCover,Et=a.isCenterContain,mt=a.isCenterCover,ut=a.isNone,ht=a.isError,j=a.isNotImageFit,_=a.theme,rt=getGlobalClassNames(GlobalClassNames$a,_),tt={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},st=getWindow(),ot=st!==void 0&&st.navigator.msMaxTouchPoints===void 0,nt=xt&&o||et&&!o?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[rt.root,_.fonts.medium,{overflow:"hidden"},Lt&&[rt.rootMaximizeFrame,{height:"100%",width:"100%"}],Gt&&Ct&&!Rt&&AnimationClassNames.fadeIn400,(it||xt||et||Et||mt)&&{position:"relative"},i],image:[rt.image,{display:"block",opacity:0},Gt&&["is-loaded",{opacity:1}],it&&[rt.imageCenter,tt],xt&&[rt.imageContain,ot&&{width:"100%",height:"100%",objectFit:"contain"},!ot&&nt,!ot&&tt],et&&[rt.imageCover,ot&&{width:"100%",height:"100%",objectFit:"cover"},!ot&&nt,!ot&&tt],Et&&[rt.imageCenterContain,o&&{maxWidth:"100%"},!o&&{maxHeight:"100%"},tt],mt&&[rt.imageCenterCover,o&&{maxHeight:"100%"},!o&&{maxWidth:"100%"},tt],ut&&[rt.imageNone,{width:"auto",height:"auto"}],j&&[!!_e&&!pt&&{height:"auto",width:"100%"},!_e&&!!pt&&{height:"100%",width:"auto"},!!_e&&!!pt&&{height:"100%",width:"100%"}],o&&rt.imageLandscape,!o&&rt.imagePortrait,!Gt&&"is-notLoaded",Ct&&"is-fadeIn",ht&&"is-error"]}},Image$1=styled(ImageBase,getStyles$i,void 0,{scope:"Image"},!0);Image$1.displayName="Image";var classNames=mergeStyleSets({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]}),MS_ICON="ms-Icon",getStyles$h=function(a){var i=a.className,_e=a.iconClassName,pt=a.isPlaceholder,Lt=a.isImage,Gt=a.styles;return{root:[pt&&classNames.placeholder,classNames.root,Lt&&classNames.image,_e,i,Gt&&Gt.root,Gt&&Gt.imageContainer]}},getIconContent=memoizeFunction(function(a){var i=getIcon(a)||{subset:{},code:void 0},_e=i.code,pt=i.subset;return _e?{children:_e,iconClassName:pt.className,fontFamily:pt.fontFace&&pt.fontFace.fontFamily,mergeImageProps:pt.mergeImageProps}:null},void 0,!0),FontIcon=function(a){var i=a.iconName,_e=a.className,pt=a.style,Lt=pt===void 0?{}:pt,Gt=getIconContent(i)||{},Ct=Gt.iconClassName,Rt=Gt.children,o=Gt.fontFamily,it=Gt.mergeImageProps,xt=getNativeProps(a,htmlElementProperties),et=a["aria-label"]||a.title,Et=a["aria-label"]||a["aria-labelledby"]||a.title?{role:it?void 0:"img"}:{"aria-hidden":!0},mt=Rt;return it&&typeof Rt=="object"&&typeof Rt.props=="object"&&et&&(mt=reactExports.cloneElement(Rt,{alt:et})),reactExports.createElement("i",__assign$1({"data-icon-name":i},Et,xt,it?{title:void 0,"aria-label":void 0}:{},{className:css$2(MS_ICON,classNames.root,Ct,!i&&classNames.placeholder,_e),style:__assign$1({fontFamily:o},Lt)}),mt)};memoizeFunction(function(a,i,_e){return FontIcon({iconName:a,className:i,"aria-label":_e})});var getClassNames$d=classNamesFunction({cacheSize:100}),IconBase=function(a){__extends(i,a);function i(_e){var pt=a.call(this,_e)||this;return pt._onImageLoadingStateChange=function(Lt){pt.props.imageProps&&pt.props.imageProps.onLoadingStateChange&&pt.props.imageProps.onLoadingStateChange(Lt),Lt===ImageLoadState.error&&pt.setState({imageLoadError:!0})},pt.state={imageLoadError:!1},pt}return i.prototype.render=function(){var _e=this.props,pt=_e.children,Lt=_e.className,Gt=_e.styles,Ct=_e.iconName,Rt=_e.imageErrorAs,o=_e.theme,it=typeof Ct=="string"&&Ct.length===0,xt=!!this.props.imageProps||this.props.iconType===IconType.image||this.props.iconType===IconType.Image,et=getIconContent(Ct)||{},Et=et.iconClassName,mt=et.children,ut=et.mergeImageProps,ht=getClassNames$d(Gt,{theme:o,className:Lt,iconClassName:Et,isImage:xt,isPlaceholder:it}),j=xt?"span":"i",_=getNativeProps(this.props,htmlElementProperties,["aria-label"]),rt=this.state.imageLoadError,tt=__assign$1(__assign$1({},this.props.imageProps),{onLoadingStateChange:this._onImageLoadingStateChange}),st=rt&&Rt||Image$1,ot=this.props["aria-label"]||this.props.ariaLabel,nt=tt.alt||ot||this.props.title,vt=!!(nt||this.props["aria-labelledby"]||tt["aria-label"]||tt["aria-labelledby"]),dt=vt?{role:xt||ut?void 0:"img","aria-label":xt||ut?void 0:nt}:{"aria-hidden":!0},bt=mt;return ut&&mt&&typeof mt=="object"&&nt&&(bt=reactExports.cloneElement(mt,{alt:nt})),reactExports.createElement(j,__assign$1({"data-icon-name":Ct},dt,_,ut?{title:void 0,"aria-label":void 0}:{},{className:ht.root}),xt?reactExports.createElement(st,__assign$1({},tt)):pt||bt)},i}(reactExports.Component),Icon=styled(IconBase,getStyles$h,void 0,{scope:"Icon"},!0);Icon.displayName="Icon";var ImageIcon=function(a){var i=a.className,_e=a.imageProps,pt=getNativeProps(a,htmlElementProperties,["aria-label","aria-labelledby","title","aria-describedby"]),Lt=_e.alt||a["aria-label"],Gt=Lt||a["aria-labelledby"]||a.title||_e["aria-label"]||_e["aria-labelledby"]||_e.title,Ct={"aria-labelledby":a["aria-labelledby"],"aria-describedby":a["aria-describedby"],title:a.title},Rt=Gt?{}:{"aria-hidden":!0};return reactExports.createElement("div",__assign$1({},Rt,pt,{className:css$2(MS_ICON,classNames.root,classNames.image,i)}),reactExports.createElement(Image$1,__assign$1({},Ct,_e,{alt:Gt?Lt:""})))},FocusZoneTabbableElements={none:0,all:1,inputOnly:2},FocusZoneDirection;(function(a){a[a.vertical=0]="vertical",a[a.horizontal=1]="horizontal",a[a.bidirectional=2]="bidirectional",a[a.domOrder=3]="domOrder"})(FocusZoneDirection||(FocusZoneDirection={}));var IS_FOCUSABLE_ATTRIBUTE="data-is-focusable",IS_ENTER_DISABLED_ATTRIBUTE="data-disable-click-on-enter",FOCUSZONE_ID_ATTRIBUTE="data-focuszone-id",TABINDEX="tabindex",NO_VERTICAL_WRAP="data-no-vertical-wrap",NO_HORIZONTAL_WRAP="data-no-horizontal-wrap",LARGE_DISTANCE_FROM_CENTER=999999999,LARGE_NEGATIVE_DISTANCE_FROM_CENTER=-999999999,focusZoneStyles,focusZoneClass="ms-FocusZone";function raiseClickFromKeyboardEvent(a,i){var _e;typeof MouseEvent=="function"?_e=new MouseEvent("click",{ctrlKey:i==null?void 0:i.ctrlKey,metaKey:i==null?void 0:i.metaKey,shiftKey:i==null?void 0:i.shiftKey,altKey:i==null?void 0:i.altKey,bubbles:i==null?void 0:i.bubbles,cancelable:i==null?void 0:i.cancelable}):(_e=document.createEvent("MouseEvents"),_e.initMouseEvent("click",i?i.bubbles:!1,i?i.cancelable:!1,window,0,0,0,0,0,i?i.ctrlKey:!1,i?i.altKey:!1,i?i.shiftKey:!1,i?i.metaKey:!1,0,null)),a.dispatchEvent(_e)}function getRootClass(){return focusZoneStyles||(focusZoneStyles=mergeStyles({selectors:{":focus":{outline:"none"}}},focusZoneClass)),focusZoneStyles}var _allInstances={},_outerZones=new Set,ALLOWED_INPUT_TYPES=["text","number","password","email","tel","url","search","textarea"],ALLOW_VIRTUAL_ELEMENTS=!1,FocusZone=function(a){__extends(i,a);function i(_e){var pt,Lt,Gt,Ct,Rt=a.call(this,_e)||this;Rt._root=reactExports.createRef(),Rt._mergedRef=createMergedRef(),Rt._onFocus=function(it){if(!Rt._portalContainsElement(it.target)){var xt=Rt.props,et=xt.onActiveElementChanged,Et=xt.doNotAllowFocusEventToPropagate,mt=xt.stopFocusPropagation,ut=xt.onFocusNotification,ht=xt.onFocus,j=xt.shouldFocusInnerElementWhenReceivedFocus,_=xt.defaultTabbableElement,rt=Rt._isImmediateDescendantOfZone(it.target),tt;if(rt)tt=it.target;else for(var st=it.target;st&&st!==Rt._root.current;){if(isElementTabbable(st)&&Rt._isImmediateDescendantOfZone(st)){tt=st;break}st=getParent(st,ALLOW_VIRTUAL_ELEMENTS)}if(j&&it.target===Rt._root.current){var ot=_&&typeof _=="function"&&Rt._root.current&&_(Rt._root.current);ot&&isElementTabbable(ot)?(tt=ot,ot.focus()):(Rt.focus(!0),Rt._activeElement&&(tt=null))}var nt=!Rt._activeElement;tt&&tt!==Rt._activeElement&&((rt||nt)&&Rt._setFocusAlignment(tt,!0,!0),Rt._activeElement=tt,nt&&Rt._updateTabIndexes()),et&&et(Rt._activeElement,it),(mt||Et)&&it.stopPropagation(),ht?ht(it):ut&&ut()}},Rt._onBlur=function(){Rt._setParkedFocus(!1)},Rt._onMouseDown=function(it){if(!Rt._portalContainsElement(it.target)){var xt=Rt.props.disabled;if(!xt){for(var et=it.target,Et=[];et&&et!==Rt._root.current;)Et.push(et),et=getParent(et,ALLOW_VIRTUAL_ELEMENTS);for(;Et.length&&(et=Et.pop(),et&&isElementTabbable(et)&&Rt._setActiveElement(et,!0),!isElementFocusZone(et)););}}},Rt._onKeyDown=function(it,xt){if(!Rt._portalContainsElement(it.target)){var et=Rt.props,Et=et.direction,mt=et.disabled,ut=et.isInnerZoneKeystroke,ht=et.pagingSupportDisabled,j=et.shouldEnterInnerZone;if(!mt&&(Rt.props.onKeyDown&&Rt.props.onKeyDown(it),!it.isDefaultPrevented()&&!(Rt._getDocument().activeElement===Rt._root.current&&Rt._isInnerZone))){if((j&&j(it)||ut&&ut(it))&&Rt._isImmediateDescendantOfZone(it.target)){var _=Rt._getFirstInnerZone();if(_){if(!_.focus(!0))return}else if(isElementFocusSubZone(it.target)){if(!Rt.focusElement(getNextElement(it.target,it.target.firstChild,!0)))return}else return}else{if(it.altKey)return;switch(it.which){case KeyCodes.space:if(Rt._shouldRaiseClicksOnSpace&&Rt._tryInvokeClickForFocusable(it.target,it))break;return;case KeyCodes.left:if(Et!==FocusZoneDirection.vertical&&(Rt._preventDefaultWhenHandled(it),Rt._moveFocusLeft(xt)))break;return;case KeyCodes.right:if(Et!==FocusZoneDirection.vertical&&(Rt._preventDefaultWhenHandled(it),Rt._moveFocusRight(xt)))break;return;case KeyCodes.up:if(Et!==FocusZoneDirection.horizontal&&(Rt._preventDefaultWhenHandled(it),Rt._moveFocusUp()))break;return;case KeyCodes.down:if(Et!==FocusZoneDirection.horizontal&&(Rt._preventDefaultWhenHandled(it),Rt._moveFocusDown()))break;return;case KeyCodes.pageDown:if(!ht&&Rt._moveFocusPaging(!0))break;return;case KeyCodes.pageUp:if(!ht&&Rt._moveFocusPaging(!1))break;return;case KeyCodes.tab:if(Rt.props.allowTabKey||Rt.props.handleTabKey===FocusZoneTabbableElements.all||Rt.props.handleTabKey===FocusZoneTabbableElements.inputOnly&&Rt._isElementInput(it.target)){var rt=!1;if(Rt._processingTabKey=!0,Et===FocusZoneDirection.vertical||!Rt._shouldWrapFocus(Rt._activeElement,NO_HORIZONTAL_WRAP))rt=it.shiftKey?Rt._moveFocusUp():Rt._moveFocusDown();else{var tt=getRTL(xt)?!it.shiftKey:it.shiftKey;rt=tt?Rt._moveFocusLeft(xt):Rt._moveFocusRight(xt)}if(Rt._processingTabKey=!1,rt)break;Rt.props.shouldResetActiveElementWhenTabFromZone&&(Rt._activeElement=null)}return;case KeyCodes.home:if(Rt._isContentEditableElement(it.target)||Rt._isElementInput(it.target)&&!Rt._shouldInputLoseFocus(it.target,!1))return!1;var st=Rt._root.current&&Rt._root.current.firstChild;if(Rt._root.current&&st&&Rt.focusElement(getNextElement(Rt._root.current,st,!0)))break;return;case KeyCodes.end:if(Rt._isContentEditableElement(it.target)||Rt._isElementInput(it.target)&&!Rt._shouldInputLoseFocus(it.target,!0))return!1;var ot=Rt._root.current&&Rt._root.current.lastChild;if(Rt._root.current&&Rt.focusElement(getPreviousElement(Rt._root.current,ot,!0,!0,!0)))break;return;case KeyCodes.enter:if(Rt._shouldRaiseClicksOnEnter&&Rt._tryInvokeClickForFocusable(it.target,it))break;return;default:return}}it.preventDefault(),it.stopPropagation()}}},Rt._getHorizontalDistanceFromCenter=function(it,xt,et){var Et=Rt._focusAlignment.left||Rt._focusAlignment.x||0,mt=Math.floor(et.top),ut=Math.floor(xt.bottom),ht=Math.floor(et.bottom),j=Math.floor(xt.top),_=it&&mt>ut,rt=!it&&ht=et.left&&Et<=et.left+et.width?0:Math.abs(et.left+et.width/2-Et):Rt._shouldWrapFocus(Rt._activeElement,NO_VERTICAL_WRAP)?LARGE_DISTANCE_FROM_CENTER:LARGE_NEGATIVE_DISTANCE_FROM_CENTER},initializeComponentRef(Rt),Rt._id=getId("FocusZone"),Rt._focusAlignment={left:0,top:0},Rt._processingTabKey=!1;var o=(Lt=(pt=_e.shouldRaiseClicks)!==null&&pt!==void 0?pt:i.defaultProps.shouldRaiseClicks)!==null&&Lt!==void 0?Lt:!0;return Rt._shouldRaiseClicksOnEnter=(Gt=_e.shouldRaiseClicksOnEnter)!==null&&Gt!==void 0?Gt:o,Rt._shouldRaiseClicksOnSpace=(Ct=_e.shouldRaiseClicksOnSpace)!==null&&Ct!==void 0?Ct:o,Rt}return i.getOuterZones=function(){return _outerZones.size},i._onKeyDownCapture=function(_e){_e.which===KeyCodes.tab&&_outerZones.forEach(function(pt){return pt._updateTabIndexes()})},i.prototype.componentDidMount=function(){var _e=this._root.current;if(_allInstances[this._id]=this,_e){for(var pt=getParent(_e,ALLOW_VIRTUAL_ELEMENTS);pt&&pt!==this._getDocument().body&&pt.nodeType===1;){if(isElementFocusZone(pt)){this._isInnerZone=!0;break}pt=getParent(pt,ALLOW_VIRTUAL_ELEMENTS)}this._isInnerZone||(_outerZones.add(this),this._root.current&&this._root.current.addEventListener("keydown",i._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&typeof this.props.defaultTabbableElement=="string"?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},i.prototype.componentDidUpdate=function(){var _e=this._root.current,pt=this._getDocument();if((this._activeElement&&!elementContains(this._root.current,this._activeElement,ALLOW_VIRTUAL_ELEMENTS)||this._defaultFocusElement&&!elementContains(this._root.current,this._defaultFocusElement,ALLOW_VIRTUAL_ELEMENTS))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&pt&&this._lastIndexPath&&(pt.activeElement===pt.body||pt.activeElement===null||pt.activeElement===_e)){var Lt=getFocusableByIndexPath(_e,this._lastIndexPath);Lt?(this._setActiveElement(Lt,!0),Lt.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},i.prototype.componentWillUnmount=function(){delete _allInstances[this._id],this._isInnerZone||(_outerZones.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",i._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},i.prototype.render=function(){var _e=this,pt=this.props,Lt=pt.as,Gt=pt.elementType,Ct=pt.rootProps,Rt=pt.ariaDescribedBy,o=pt.ariaLabelledBy,it=pt.className,xt=getNativeProps(this.props,htmlElementProperties),et=Lt||Gt||"div";this._evaluateFocusBeforeRender();var Et=getTheme();return reactExports.createElement(et,__assign$1({"aria-labelledby":o,"aria-describedby":Rt},xt,Ct,{className:css$2(getRootClass(),it),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(mt){return _e._onKeyDown(mt,Et)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},i.prototype.focus=function(_e,pt){if(_e===void 0&&(_e=!1),pt===void 0&&(pt=!1),this._root.current)if(!_e&&this._root.current.getAttribute(IS_FOCUSABLE_ATTRIBUTE)==="true"&&this._isInnerZone){var Lt=this._getOwnerZone(this._root.current);if(Lt!==this._root.current){var Gt=_allInstances[Lt.getAttribute(FOCUSZONE_ID_ATTRIBUTE)];return!!Gt&&Gt.focusElement(this._root.current)}return!1}else{if(!_e&&this._activeElement&&elementContains(this._root.current,this._activeElement)&&isElementTabbable(this._activeElement)&&(!pt||isElementVisibleAndNotHidden(this._activeElement)))return this._activeElement.focus(),!0;var Ct=this._root.current.firstChild;return this.focusElement(getNextElement(this._root.current,Ct,!0,void 0,void 0,void 0,void 0,void 0,pt))}return!1},i.prototype.focusLast=function(){if(this._root.current){var _e=this._root.current&&this._root.current.lastChild;return this.focusElement(getPreviousElement(this._root.current,_e,!0,!0,!0))}return!1},i.prototype.focusElement=function(_e,pt){var Lt=this.props,Gt=Lt.onBeforeFocus,Ct=Lt.shouldReceiveFocus;return Ct&&!Ct(_e)||Gt&&!Gt(_e)?!1:_e?(this._setActiveElement(_e,pt),this._activeElement&&this._activeElement.focus(),!0):!1},i.prototype.setFocusAlignment=function(_e){this._focusAlignment=_e},Object.defineProperty(i.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),i.prototype._evaluateFocusBeforeRender=function(){var _e=this._root.current,pt=this._getDocument();if(pt){var Lt=pt.activeElement;if(Lt!==_e){var Gt=elementContains(_e,Lt,!1);this._lastIndexPath=Gt?getElementIndexPath(_e,Lt):void 0}}},i.prototype._setParkedFocus=function(_e){var pt=this._root.current;pt&&this._isParked!==_e&&(this._isParked=_e,_e?(this.props.allowFocusRoot||(this._parkedTabIndex=pt.getAttribute("tabindex"),pt.setAttribute("tabindex","-1")),pt.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(pt.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):pt.removeAttribute("tabindex")))},i.prototype._setActiveElement=function(_e,pt){var Lt=this._activeElement;this._activeElement=_e,Lt&&(isElementFocusZone(Lt)&&this._updateTabIndexes(Lt),Lt.tabIndex=-1),this._activeElement&&((!this._focusAlignment||pt)&&this._setFocusAlignment(_e,!0,!0),this._activeElement.tabIndex=0)},i.prototype._preventDefaultWhenHandled=function(_e){this.props.preventDefaultWhenHandled&&_e.preventDefault()},i.prototype._tryInvokeClickForFocusable=function(_e,pt){var Lt=_e;if(Lt===this._root.current)return!1;do{if(Lt.tagName==="BUTTON"||Lt.tagName==="A"||Lt.tagName==="INPUT"||Lt.tagName==="TEXTAREA"||Lt.tagName==="SUMMARY")return!1;if(this._isImmediateDescendantOfZone(Lt)&&Lt.getAttribute(IS_FOCUSABLE_ATTRIBUTE)==="true"&&Lt.getAttribute(IS_ENTER_DISABLED_ATTRIBUTE)!=="true")return raiseClickFromKeyboardEvent(Lt,pt),!0;Lt=getParent(Lt,ALLOW_VIRTUAL_ELEMENTS)}while(Lt!==this._root.current);return!1},i.prototype._getFirstInnerZone=function(_e){if(_e=_e||this._activeElement||this._root.current,!_e)return null;if(isElementFocusZone(_e))return _allInstances[_e.getAttribute(FOCUSZONE_ID_ATTRIBUTE)];for(var pt=_e.firstElementChild;pt;){if(isElementFocusZone(pt))return _allInstances[pt.getAttribute(FOCUSZONE_ID_ATTRIBUTE)];var Lt=this._getFirstInnerZone(pt);if(Lt)return Lt;pt=pt.nextElementSibling}return null},i.prototype._moveFocus=function(_e,pt,Lt,Gt){Gt===void 0&&(Gt=!0);var Ct=this._activeElement,Rt=-1,o=void 0,it=!1,xt=this.props.direction===FocusZoneDirection.bidirectional;if(!Ct||!this._root.current||this._isElementInput(Ct)&&!this._shouldInputLoseFocus(Ct,_e))return!1;var et=xt?Ct.getBoundingClientRect():null;do if(Ct=_e?getNextElement(this._root.current,Ct):getPreviousElement(this._root.current,Ct),xt){if(Ct){var Et=Ct.getBoundingClientRect(),mt=pt(et,Et);if(mt===-1&&Rt===-1){o=Ct;break}if(mt>-1&&(Rt===-1||mt=0&&mt<0)break}}else{o=Ct;break}while(Ct);if(o&&o!==this._activeElement)it=!0,this.focusElement(o);else if(this.props.isCircularNavigation&&Gt)return _e?this.focusElement(getNextElement(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(getPreviousElement(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return it},i.prototype._moveFocusDown=function(){var _e=this,pt=-1,Lt=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!0,function(Gt,Ct){var Rt=-1,o=Math.floor(Ct.top),it=Math.floor(Gt.bottom);return o=it||o===pt)&&(pt=o,Lt>=Ct.left&&Lt<=Ct.left+Ct.width?Rt=0:Rt=Math.abs(Ct.left+Ct.width/2-Lt)),Rt)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},i.prototype._moveFocusUp=function(){var _e=this,pt=-1,Lt=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!1,function(Gt,Ct){var Rt=-1,o=Math.floor(Ct.bottom),it=Math.floor(Ct.top),xt=Math.floor(Gt.top);return o>xt?_e._shouldWrapFocus(_e._activeElement,NO_VERTICAL_WRAP)?LARGE_DISTANCE_FROM_CENTER:LARGE_NEGATIVE_DISTANCE_FROM_CENTER:((pt===-1&&o<=xt||it===pt)&&(pt=it,Lt>=Ct.left&&Lt<=Ct.left+Ct.width?Rt=0:Rt=Math.abs(Ct.left+Ct.width/2-Lt)),Rt)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},i.prototype._moveFocusLeft=function(_e){var pt=this,Lt=this._shouldWrapFocus(this._activeElement,NO_HORIZONTAL_WRAP);return this._moveFocus(getRTL(_e),function(Gt,Ct){var Rt=-1,o;return getRTL(_e)?o=parseFloat(Ct.top.toFixed(3))parseFloat(Gt.top.toFixed(3)),o&&Ct.right<=Gt.right&&pt.props.direction!==FocusZoneDirection.vertical?Rt=Gt.right-Ct.right:Lt||(Rt=LARGE_NEGATIVE_DISTANCE_FROM_CENTER),Rt},void 0,Lt)?(this._setFocusAlignment(this._activeElement,!0,!1),!0):!1},i.prototype._moveFocusRight=function(_e){var pt=this,Lt=this._shouldWrapFocus(this._activeElement,NO_HORIZONTAL_WRAP);return this._moveFocus(!getRTL(_e),function(Gt,Ct){var Rt=-1,o;return getRTL(_e)?o=parseFloat(Ct.bottom.toFixed(3))>parseFloat(Gt.top.toFixed(3)):o=parseFloat(Ct.top.toFixed(3))=Gt.left&&pt.props.direction!==FocusZoneDirection.vertical?Rt=Ct.left-Gt.left:Lt||(Rt=LARGE_NEGATIVE_DISTANCE_FROM_CENTER),Rt},void 0,Lt)?(this._setFocusAlignment(this._activeElement,!0,!1),!0):!1},i.prototype._moveFocusPaging=function(_e,pt){pt===void 0&&(pt=!0);var Lt=this._activeElement;if(!Lt||!this._root.current||this._isElementInput(Lt)&&!this._shouldInputLoseFocus(Lt,_e))return!1;var Gt=findScrollableParent(Lt);if(!Gt)return!1;var Ct=-1,Rt=void 0,o=-1,it=-1,xt=Gt.clientHeight,et=Lt.getBoundingClientRect();do if(Lt=_e?getNextElement(this._root.current,Lt):getPreviousElement(this._root.current,Lt),Lt){var Et=Lt.getBoundingClientRect(),mt=Math.floor(Et.top),ut=Math.floor(et.bottom),ht=Math.floor(Et.bottom),j=Math.floor(et.top),_=this._getHorizontalDistanceFromCenter(_e,et,Et),rt=_e&&mt>ut+xt,tt=!_e&&ht-1&&(_e&&mt>o?(o=mt,Ct=_,Rt=Lt):!_e&&ht-1){var Lt=_e.selectionStart,Gt=_e.selectionEnd,Ct=Lt!==Gt,Rt=_e.value,o=_e.readOnly;if(Ct||Lt>0&&!pt&&!o||Lt!==Rt.length&&pt&&!o||this.props.handleTabKey&&!(this.props.shouldInputLoseFocusOnArrowKey&&this.props.shouldInputLoseFocusOnArrowKey(_e)))return!1}return!0},i.prototype._shouldWrapFocus=function(_e,pt){return this.props.checkForNoWrap?shouldWrapFocus(_e,pt):!0},i.prototype._portalContainsElement=function(_e){return _e&&!!this._root.current&&portalContainsElement(_e,this._root.current)},i.prototype._getDocument=function(){return getDocument(this._root.current)},i.defaultProps={isCircularNavigation:!1,direction:FocusZoneDirection.bidirectional,shouldRaiseClicks:!0},i}(reactExports.Component),ContextualMenuItemType;(function(a){a[a.Normal=0]="Normal",a[a.Divider=1]="Divider",a[a.Header=2]="Header",a[a.Section=3]="Section"})(ContextualMenuItemType||(ContextualMenuItemType={}));function getIsChecked(a){return a.canCheck?!!(a.isChecked||a.checked):typeof a.isChecked=="boolean"?a.isChecked:typeof a.checked=="boolean"?a.checked:null}function hasSubmenu(a){return!!(a.subMenuProps||a.items)}function isItemDisabled(a){return!!(a.isDisabled||a.disabled)}function getMenuItemAriaRole(a){var i=getIsChecked(a),_e=i!==null;return _e?"menuitemcheckbox":"menuitem"}var defaultIconRenderer=function(a){var i=a.item,_e=a.classNames,pt=i.iconProps;return reactExports.createElement(Icon,__assign$1({},pt,{className:_e.icon}))},renderItemIcon=function(a){var i=a.item,_e=a.hasIcons;return _e?i.onRenderIcon?i.onRenderIcon(a,defaultIconRenderer):defaultIconRenderer(a):null},renderCheckMarkIcon=function(a){var i=a.onCheckmarkClick,_e=a.item,pt=a.classNames,Lt=getIsChecked(_e);if(i){var Gt=function(Ct){return i(_e,Ct)};return reactExports.createElement(Icon,{iconName:_e.canCheck!==!1&&Lt?"CheckMark":"",className:pt.checkmarkIcon,onClick:Gt})}return null},renderItemName=function(a){var i=a.item,_e=a.classNames;return i.text||i.name?reactExports.createElement("span",{className:_e.label},i.text||i.name):null},renderSecondaryText=function(a){var i=a.item,_e=a.classNames;return i.secondaryText?reactExports.createElement("span",{className:_e.secondaryText},i.secondaryText):null},renderSubMenuIcon=function(a){var i=a.item,_e=a.classNames,pt=a.theme;return hasSubmenu(i)?reactExports.createElement(Icon,__assign$1({iconName:getRTL(pt)?"ChevronLeft":"ChevronRight"},i.submenuIconProps,{className:_e.subMenuIcon})):null},ContextualMenuItemBase=function(a){__extends(i,a);function i(_e){var pt=a.call(this,_e)||this;return pt.openSubMenu=function(){var Lt=pt.props,Gt=Lt.item,Ct=Lt.openSubMenu,Rt=Lt.getSubmenuTarget;if(Rt){var o=Rt();hasSubmenu(Gt)&&Ct&&o&&Ct(Gt,o)}},pt.dismissSubMenu=function(){var Lt=pt.props,Gt=Lt.item,Ct=Lt.dismissSubMenu;hasSubmenu(Gt)&&Ct&&Ct()},pt.dismissMenu=function(Lt){var Gt=pt.props.dismissMenu;Gt&&Gt(void 0,Lt)},initializeComponentRef(pt),pt}return i.prototype.render=function(){var _e=this.props,pt=_e.item,Lt=_e.classNames,Gt=pt.onRenderContent||this._renderLayout;return reactExports.createElement("div",{className:pt.split?Lt.linkContentMenu:Lt.linkContent},Gt(this.props,{renderCheckMarkIcon,renderItemIcon,renderItemName,renderSecondaryText,renderSubMenuIcon}))},i.prototype._renderLayout=function(_e,pt){return reactExports.createElement(reactExports.Fragment,null,pt.renderCheckMarkIcon(_e),pt.renderItemIcon(_e),pt.renderItemName(_e),pt.renderSecondaryText(_e),pt.renderSubMenuIcon(_e))},i}(reactExports.Component),getDividerClassNames=memoizeFunction(function(a){return mergeStyleSets({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:a.palette.neutralTertiaryAlt}})}),CONTEXTUAL_MENU_ITEM_HEIGHT=36,MediumScreenSelector$1=getScreenSelector(0,ScreenWidthMaxMedium),getMenuItemStyles=memoizeFunction(function(a){var i,_e,pt,Lt,Gt,Ct=a.semanticColors,Rt=a.fonts,o=a.palette,it=Ct.menuItemBackgroundHovered,xt=Ct.menuItemTextHovered,et=Ct.menuItemBackgroundPressed,Et=Ct.bodyDivider,mt={item:[Rt.medium,{color:Ct.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:Et,position:"relative"},root:[getFocusStyle(a),Rt.medium,{color:Ct.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:CONTEXTUAL_MENU_ITEM_HEIGHT,lineHeight:CONTEXTUAL_MENU_ITEM_HEIGHT,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:Ct.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:(i={},i[HighContrastSelector]={color:"GrayText",opacity:1},i)},rootHovered:{backgroundColor:it,color:xt,selectors:{".ms-ContextualMenu-icon":{color:o.themeDarkAlt},".ms-ContextualMenu-submenuIcon":{color:o.neutralPrimary}}},rootFocused:{backgroundColor:o.white},rootChecked:{selectors:{".ms-ContextualMenu-checkmarkIcon":{color:o.neutralPrimary}}},rootPressed:{backgroundColor:et,selectors:{".ms-ContextualMenu-icon":{color:o.themeDark},".ms-ContextualMenu-submenuIcon":{color:o.neutralPrimary}}},rootExpanded:{backgroundColor:et,color:Ct.bodyTextChecked,selectors:(_e={".ms-ContextualMenu-submenuIcon":(pt={},pt[HighContrastSelector]={color:"inherit"},pt)},_e[HighContrastSelector]=__assign$1({},getHighContrastNoAdjustStyle()),_e)},linkContent:{whiteSpace:"nowrap",height:"inherit",display:"flex",alignItems:"center",maxWidth:"100%"},anchorLink:{padding:"0px 8px 0 4px",textRendering:"auto",color:"inherit",letterSpacing:"normal",wordSpacing:"normal",textTransform:"none",textIndent:"0px",textShadow:"none",textDecoration:"none",boxSizing:"border-box"},label:{margin:"0 4px",verticalAlign:"middle",display:"inline-block",flexGrow:"1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},secondaryText:{color:a.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:CONTEXTUAL_MENU_ITEM_HEIGHT,fontSize:IconFontSizes.medium,width:IconFontSizes.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(Lt={},Lt[MediumScreenSelector$1]={fontSize:IconFontSizes.large,width:IconFontSizes.large},Lt)},iconColor:{color:Ct.menuIcon},iconDisabled:{color:Ct.disabledBodyText},checkmarkIcon:{color:Ct.bodySubtext},subMenuIcon:{height:CONTEXTUAL_MENU_ITEM_HEIGHT,lineHeight:CONTEXTUAL_MENU_ITEM_HEIGHT,color:o.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:IconFontSizes.small,selectors:(Gt={":hover":{color:o.neutralPrimary},":active":{color:o.neutralPrimary}},Gt[MediumScreenSelector$1]={fontSize:IconFontSizes.medium},Gt)},splitButtonFlexContainer:[getFocusStyle(a),{display:"flex",height:CONTEXTUAL_MENU_ITEM_HEIGHT,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]};return concatStyleSets(mt)}),CONTEXTUAL_SPLIT_MENU_MINWIDTH="28px",MediumScreenSelector=getScreenSelector(0,ScreenWidthMaxMedium),getSplitButtonVerticalDividerClassNames=memoizeFunction(function(a){var i;return mergeStyleSets(getDividerClassNames(a),{wrapper:{position:"absolute",right:28,selectors:(i={},i[MediumScreenSelector]={right:32},i)},divider:{height:16,width:1}})}),GlobalClassNames$9={item:"ms-ContextualMenu-item",divider:"ms-ContextualMenu-divider",root:"ms-ContextualMenu-link",isChecked:"is-checked",isExpanded:"is-expanded",isDisabled:"is-disabled",linkContent:"ms-ContextualMenu-linkContent",linkContentMenu:"ms-ContextualMenu-linkContent",icon:"ms-ContextualMenu-icon",iconColor:"ms-ContextualMenu-iconColor",checkmarkIcon:"ms-ContextualMenu-checkmarkIcon",subMenuIcon:"ms-ContextualMenu-submenuIcon",label:"ms-ContextualMenu-itemText",secondaryText:"ms-ContextualMenu-secondaryText",splitMenu:"ms-ContextualMenu-splitMenu",screenReaderText:"ms-ContextualMenu-screenReaderText"},getItemClassNames=memoizeFunction(function(a,i,_e,pt,Lt,Gt,Ct,Rt,o,it,xt,et){var Et,mt,ut,ht,j=getMenuItemStyles(a),_=getGlobalClassNames(GlobalClassNames$9,a);return mergeStyleSets({item:[_.item,j.item,Ct],divider:[_.divider,j.divider,Rt],root:[_.root,j.root,pt&&[_.isChecked,j.rootChecked],Lt&&j.anchorLink,_e&&[_.isExpanded,j.rootExpanded],i&&[_.isDisabled,j.rootDisabled],!i&&!_e&&[{selectors:(Et={":hover":j.rootHovered,":active":j.rootPressed},Et["."+IsFocusVisibleClassName+" &:focus, ."+IsFocusVisibleClassName+" &:focus:hover"]=j.rootFocused,Et["."+IsFocusVisibleClassName+" &:hover"]={background:"inherit;"},Et)}],et],splitPrimary:[j.root,{width:"calc(100% - "+CONTEXTUAL_SPLIT_MENU_MINWIDTH+")"},pt&&["is-checked",j.rootChecked],(i||xt)&&["is-disabled",j.rootDisabled],!(i||xt)&&!pt&&[{selectors:(mt={":hover":j.rootHovered},mt[":hover ~ ."+_.splitMenu]=j.rootHovered,mt[":active"]=j.rootPressed,mt["."+IsFocusVisibleClassName+" &:focus, ."+IsFocusVisibleClassName+" &:focus:hover"]=j.rootFocused,mt["."+IsFocusVisibleClassName+" &:hover"]={background:"inherit;"},mt)}]],splitMenu:[_.splitMenu,j.root,{flexBasis:"0",padding:"0 8px",minWidth:CONTEXTUAL_SPLIT_MENU_MINWIDTH},_e&&["is-expanded",j.rootExpanded],i&&["is-disabled",j.rootDisabled],!i&&!_e&&[{selectors:(ut={":hover":j.rootHovered,":active":j.rootPressed},ut["."+IsFocusVisibleClassName+" &:focus, ."+IsFocusVisibleClassName+" &:focus:hover"]=j.rootFocused,ut["."+IsFocusVisibleClassName+" &:hover"]={background:"inherit;"},ut)}]],anchorLink:j.anchorLink,linkContent:[_.linkContent,j.linkContent],linkContentMenu:[_.linkContentMenu,j.linkContent,{justifyContent:"center"}],icon:[_.icon,Gt&&j.iconColor,j.icon,o,i&&[_.isDisabled,j.iconDisabled]],iconColor:j.iconColor,checkmarkIcon:[_.checkmarkIcon,Gt&&j.checkmarkIcon,j.icon,o],subMenuIcon:[_.subMenuIcon,j.subMenuIcon,it,_e&&{color:a.palette.neutralPrimary},i&&[j.iconDisabled]],label:[_.label,j.label],secondaryText:[_.secondaryText,j.secondaryText],splitContainer:[j.splitButtonFlexContainer,!i&&!pt&&[{selectors:(ht={},ht["."+IsFocusVisibleClassName+" &:focus, ."+IsFocusVisibleClassName+" &:focus:hover"]=j.rootFocused,ht)}]],screenReaderText:[_.screenReaderText,j.screenReaderText,hiddenContentStyle,{visibility:"hidden"}]})}),getItemStyles=function(a){var i=a.theme,_e=a.disabled,pt=a.expanded,Lt=a.checked,Gt=a.isAnchorLink,Ct=a.knownIcon,Rt=a.itemClassName,o=a.dividerClassName,it=a.iconClassName,xt=a.subMenuClassName,et=a.primaryDisabled,Et=a.className;return getItemClassNames(i,_e,pt,Lt,Gt,Ct,Rt,o,it,xt,et,Et)},ContextualMenuItem=styled(ContextualMenuItemBase,getItemStyles,void 0,{scope:"ContextualMenuItem"}),ContextualMenuItemWrapper=function(a){__extends(i,a);function i(_e){var pt=a.call(this,_e)||this;return pt._onItemMouseEnter=function(Lt){var Gt=pt.props,Ct=Gt.item,Rt=Gt.onItemMouseEnter;Rt&&Rt(Ct,Lt,Lt.currentTarget)},pt._onItemClick=function(Lt){var Gt=pt.props,Ct=Gt.item,Rt=Gt.onItemClickBase;Rt&&Rt(Ct,Lt,Lt.currentTarget)},pt._onItemMouseLeave=function(Lt){var Gt=pt.props,Ct=Gt.item,Rt=Gt.onItemMouseLeave;Rt&&Rt(Ct,Lt)},pt._onItemKeyDown=function(Lt){var Gt=pt.props,Ct=Gt.item,Rt=Gt.onItemKeyDown;Rt&&Rt(Ct,Lt)},pt._onItemMouseMove=function(Lt){var Gt=pt.props,Ct=Gt.item,Rt=Gt.onItemMouseMove;Rt&&Rt(Ct,Lt,Lt.currentTarget)},pt._getSubmenuTarget=function(){},initializeComponentRef(pt),pt}return i.prototype.shouldComponentUpdate=function(_e){return!shallowCompare(_e,this.props)},i}(reactExports.Component),KTP_PREFIX="ktp",KTP_SEPARATOR="-",DATAKTP_TARGET="data-ktp-target",DATAKTP_EXECUTE_TARGET="data-ktp-execute-target",KTP_LAYER_ID="ktp-layer-id",KeytipEvents;(function(a){a.KEYTIP_ADDED="keytipAdded",a.KEYTIP_REMOVED="keytipRemoved",a.KEYTIP_UPDATED="keytipUpdated",a.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",a.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",a.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",a.ENTER_KEYTIP_MODE="enterKeytipMode",a.EXIT_KEYTIP_MODE="exitKeytipMode"})(KeytipEvents||(KeytipEvents={}));var KeytipManager=function(){function a(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return a.getInstance=function(){return this._instance},a.prototype.init=function(i){this.delayUpdatingKeytipChange=i},a.prototype.register=function(i,_e){_e===void 0&&(_e=!1);var pt=i;_e||(pt=this.addParentOverflow(i),this.sequenceMapping[pt.keySequences.toString()]=pt);var Lt=this._getUniqueKtp(pt);if(_e?this.persistedKeytips[Lt.uniqueID]=Lt:this.keytips[Lt.uniqueID]=Lt,this.inKeytipMode||!this.delayUpdatingKeytipChange){var Gt=_e?KeytipEvents.PERSISTED_KEYTIP_ADDED:KeytipEvents.KEYTIP_ADDED;EventGroup.raise(this,Gt,{keytip:pt,uniqueID:Lt.uniqueID})}return Lt.uniqueID},a.prototype.update=function(i,_e){var pt=this.addParentOverflow(i),Lt=this._getUniqueKtp(pt,_e),Gt=this.keytips[_e];Gt&&(Lt.keytip.visible=Gt.keytip.visible,this.keytips[_e]=Lt,delete this.sequenceMapping[Gt.keytip.keySequences.toString()],this.sequenceMapping[Lt.keytip.keySequences.toString()]=Lt.keytip,(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&EventGroup.raise(this,KeytipEvents.KEYTIP_UPDATED,{keytip:Lt.keytip,uniqueID:Lt.uniqueID}))},a.prototype.unregister=function(i,_e,pt){pt===void 0&&(pt=!1),pt?delete this.persistedKeytips[_e]:delete this.keytips[_e],!pt&&delete this.sequenceMapping[i.keySequences.toString()];var Lt=pt?KeytipEvents.PERSISTED_KEYTIP_REMOVED:KeytipEvents.KEYTIP_REMOVED;(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&EventGroup.raise(this,Lt,{keytip:i,uniqueID:_e})},a.prototype.enterKeytipMode=function(){EventGroup.raise(this,KeytipEvents.ENTER_KEYTIP_MODE)},a.prototype.exitKeytipMode=function(){EventGroup.raise(this,KeytipEvents.EXIT_KEYTIP_MODE)},a.prototype.getKeytips=function(){var i=this;return Object.keys(this.keytips).map(function(_e){return i.keytips[_e].keytip})},a.prototype.addParentOverflow=function(i){var _e=__spreadArray([],i.keySequences);if(_e.pop(),_e.length!==0){var pt=this.sequenceMapping[_e.toString()];if(pt&&pt.overflowSetSequence)return __assign$1(__assign$1({},i),{overflowSetSequence:pt.overflowSetSequence})}return i},a.prototype.menuExecute=function(i,_e){EventGroup.raise(this,KeytipEvents.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:i,keytipSequences:_e})},a.prototype._getUniqueKtp=function(i,_e){return _e===void 0&&(_e=getId()),{keytip:__assign$1({},i),uniqueID:_e}},a._instance=new a,a}();function sequencesToID(a){return a.reduce(function(i,_e){return i+KTP_SEPARATOR+_e.split("").join(KTP_SEPARATOR)},KTP_PREFIX)}function mergeOverflows(a,i){var _e=i.length,pt=__spreadArray([],i).pop(),Lt=__spreadArray([],a);return addElementAtIndex(Lt,_e-1,pt)}function getAriaDescribedBy(a){var i=" "+KTP_LAYER_ID;return a.length?i+" "+sequencesToID(a):i}function useKeytipData(a){var i=reactExports.useRef(),_e=a.keytipProps?__assign$1({disabled:a.disabled},a.keytipProps):void 0,pt=useConst(KeytipManager.getInstance()),Lt=usePrevious(a);useIsomorphicLayoutEffect(function(){i.current&&_e&&((Lt==null?void 0:Lt.keytipProps)!==a.keytipProps||(Lt==null?void 0:Lt.disabled)!==a.disabled)&&pt.update(_e,i.current)}),useIsomorphicLayoutEffect(function(){return _e&&(i.current=pt.register(_e)),function(){_e&&pt.unregister(_e,i.current)}},[]);var Gt={ariaDescribedBy:void 0,keytipId:void 0};return _e&&(Gt=getKeytipData(pt,_e,a.ariaDescribedBy)),Gt}function getKeytipData(a,i,_e){var pt=a.addParentOverflow(i),Lt=mergeAriaAttributeValues(_e,getAriaDescribedBy(pt.keySequences)),Gt=__spreadArray([],pt.keySequences);pt.overflowSetSequence&&(Gt=mergeOverflows(Gt,pt.overflowSetSequence));var Ct=sequencesToID(Gt);return{ariaDescribedBy:Lt,keytipId:Ct}}var KeytipData=function(a){var i,_e=a.children,pt=__rest$5(a,["children"]),Lt=useKeytipData(pt),Gt=Lt.keytipId,Ct=Lt.ariaDescribedBy;return _e((i={},i[DATAKTP_TARGET]=Gt,i[DATAKTP_EXECUTE_TARGET]=Gt,i["aria-describedby"]=Ct,i))},ContextualMenuAnchor=function(a){__extends(i,a);function i(){var _e=a!==null&&a.apply(this,arguments)||this;return _e._anchor=reactExports.createRef(),_e._getMemoizedMenuButtonKeytipProps=memoizeFunction(function(pt){return __assign$1(__assign$1({},pt),{hasMenu:!0})}),_e._getSubmenuTarget=function(){return _e._anchor.current?_e._anchor.current:void 0},_e._onItemClick=function(pt){var Lt=_e.props,Gt=Lt.item,Ct=Lt.onItemClick;Ct&&Ct(Gt,pt)},_e._renderAriaDescription=function(pt,Lt){return pt?reactExports.createElement("span",{id:_e._ariaDescriptionId,className:Lt},pt):null},_e}return i.prototype.render=function(){var _e=this,pt=this.props,Lt=pt.item,Gt=pt.classNames,Ct=pt.index,Rt=pt.focusableElementIndex,o=pt.totalItemCount,it=pt.hasCheckmarks,xt=pt.hasIcons,et=pt.contextualMenuItemAs,Et=et===void 0?ContextualMenuItem:et,mt=pt.expandedMenuItemKey,ut=pt.onItemClick,ht=pt.openSubMenu,j=pt.dismissSubMenu,_=pt.dismissMenu,rt=Lt.rel;Lt.target&&Lt.target.toLowerCase()==="_blank"&&(rt=rt||"nofollow noopener noreferrer");var tt=hasSubmenu(Lt),st=getNativeProps(Lt,anchorProperties),ot=isItemDisabled(Lt),nt=Lt.itemProps,vt=Lt.ariaDescription,dt=Lt.keytipProps;dt&&tt&&(dt=this._getMemoizedMenuButtonKeytipProps(dt)),vt&&(this._ariaDescriptionId=getId());var bt=mergeAriaAttributeValues(Lt.ariaDescribedBy,vt?this._ariaDescriptionId:void 0,st["aria-describedby"]),ft={"aria-describedby":bt};return reactExports.createElement("div",null,reactExports.createElement(KeytipData,{keytipProps:Lt.keytipProps,ariaDescribedBy:bt,disabled:ot},function(at){return reactExports.createElement("a",__assign$1({},ft,st,at,{ref:_e._anchor,href:Lt.href,target:Lt.target,rel:rt,className:Gt.root,role:"menuitem","aria-haspopup":tt||void 0,"aria-expanded":tt?Lt.key===mt:void 0,"aria-posinset":Rt+1,"aria-setsize":o,"aria-disabled":isItemDisabled(Lt),style:Lt.style,onClick:_e._onItemClick,onMouseEnter:_e._onItemMouseEnter,onMouseLeave:_e._onItemMouseLeave,onMouseMove:_e._onItemMouseMove,onKeyDown:tt?_e._onItemKeyDown:void 0}),reactExports.createElement(Et,__assign$1({componentRef:Lt.componentRef,item:Lt,classNames:Gt,index:Ct,onCheckmarkClick:it&&ut?ut:void 0,hasIcons:xt,openSubMenu:ht,dismissSubMenu:j,dismissMenu:_,getSubmenuTarget:_e._getSubmenuTarget},nt)),_e._renderAriaDescription(vt,Gt.screenReaderText))}))},i}(ContextualMenuItemWrapper),ContextualMenuButton=function(a){__extends(i,a);function i(){var _e=a!==null&&a.apply(this,arguments)||this;return _e._btn=reactExports.createRef(),_e._getMemoizedMenuButtonKeytipProps=memoizeFunction(function(pt){return __assign$1(__assign$1({},pt),{hasMenu:!0})}),_e._renderAriaDescription=function(pt,Lt){return pt?reactExports.createElement("span",{id:_e._ariaDescriptionId,className:Lt},pt):null},_e._getSubmenuTarget=function(){return _e._btn.current?_e._btn.current:void 0},_e}return i.prototype.render=function(){var _e=this,pt=this.props,Lt=pt.item,Gt=pt.classNames,Ct=pt.index,Rt=pt.focusableElementIndex,o=pt.totalItemCount,it=pt.hasCheckmarks,xt=pt.hasIcons,et=pt.contextualMenuItemAs,Et=et===void 0?ContextualMenuItem:et,mt=pt.expandedMenuItemKey,ut=pt.onItemMouseDown,ht=pt.onItemClick,j=pt.openSubMenu,_=pt.dismissSubMenu,rt=pt.dismissMenu,tt=getIsChecked(Lt),st=tt!==null,ot=getMenuItemAriaRole(Lt),nt=hasSubmenu(Lt),vt=Lt.itemProps,dt=Lt.ariaLabel,bt=Lt.ariaDescription,ft=getNativeProps(Lt,buttonProperties);delete ft.disabled;var at=Lt.role||ot;bt&&(this._ariaDescriptionId=getId());var yt=mergeAriaAttributeValues(Lt.ariaDescribedBy,bt?this._ariaDescriptionId:void 0,ft["aria-describedby"]),St={className:Gt.root,onClick:this._onItemClick,onKeyDown:nt?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(Mt){return ut?ut(Lt,Mt):void 0},onMouseMove:this._onItemMouseMove,href:Lt.href,title:Lt.title,"aria-label":dt,"aria-describedby":yt,"aria-haspopup":nt||void 0,"aria-expanded":nt?Lt.key===mt:void 0,"aria-posinset":Rt+1,"aria-setsize":o,"aria-disabled":isItemDisabled(Lt),"aria-checked":(at==="menuitemcheckbox"||at==="menuitemradio")&&st?!!tt:void 0,"aria-selected":at==="menuitem"&&st?!!tt:void 0,role:at,style:Lt.style},_t=Lt.keytipProps;return _t&&nt&&(_t=this._getMemoizedMenuButtonKeytipProps(_t)),reactExports.createElement(KeytipData,{keytipProps:_t,ariaDescribedBy:yt,disabled:isItemDisabled(Lt)},function(Mt){return reactExports.createElement("button",__assign$1({ref:_e._btn},ft,St,Mt),reactExports.createElement(Et,__assign$1({componentRef:Lt.componentRef,item:Lt,classNames:Gt,index:Ct,onCheckmarkClick:it&&ht?ht:void 0,hasIcons:xt,openSubMenu:j,dismissSubMenu:_,dismissMenu:rt,getSubmenuTarget:_e._getSubmenuTarget},vt)),_e._renderAriaDescription(bt,Gt.screenReaderText))})},i}(ContextualMenuItemWrapper),getStyles$g=function(a){var i=a.theme,_e=a.getClassNames,pt=a.className;if(!i)throw new Error("Theme is undefined or null.");if(_e){var Lt=_e(i);return{wrapper:[Lt.wrapper],divider:[Lt.divider]}}return{wrapper:[{display:"inline-flex",height:"100%",alignItems:"center"},pt],divider:[{width:1,height:"100%",backgroundColor:i.palette.neutralTertiaryAlt}]}},getClassNames$c=classNamesFunction(),VerticalDividerBase=reactExports.forwardRef(function(a,i){var _e=a.styles,pt=a.theme,Lt=a.getClassNames,Gt=a.className,Ct=getClassNames$c(_e,{theme:pt,getClassNames:Lt,className:Gt});return reactExports.createElement("span",{className:Ct.wrapper,ref:i},reactExports.createElement("span",{className:Ct.divider}))});VerticalDividerBase.displayName="VerticalDividerBase";var VerticalDivider=styled(VerticalDividerBase,getStyles$g,void 0,{scope:"VerticalDivider"}),TouchIdleDelay$1=500,ContextualMenuSplitButton=function(a){__extends(i,a);function i(_e){var pt=a.call(this,_e)||this;return pt._getMemoizedMenuButtonKeytipProps=memoizeFunction(function(Lt){return __assign$1(__assign$1({},Lt),{hasMenu:!0})}),pt._onItemKeyDown=function(Lt){var Gt=pt.props,Ct=Gt.item,Rt=Gt.onItemKeyDown;Lt.which===KeyCodes.enter?(pt._executeItemClick(Lt),Lt.preventDefault(),Lt.stopPropagation()):Rt&&Rt(Ct,Lt)},pt._getSubmenuTarget=function(){return pt._splitButton},pt._renderAriaDescription=function(Lt,Gt){return Lt?reactExports.createElement("span",{id:pt._ariaDescriptionId,className:Gt},Lt):null},pt._onItemMouseEnterPrimary=function(Lt){var Gt=pt.props,Ct=Gt.item,Rt=Gt.onItemMouseEnter;Rt&&Rt(__assign$1(__assign$1({},Ct),{subMenuProps:void 0,items:void 0}),Lt,pt._splitButton)},pt._onItemMouseEnterIcon=function(Lt){var Gt=pt.props,Ct=Gt.item,Rt=Gt.onItemMouseEnter;Rt&&Rt(Ct,Lt,pt._splitButton)},pt._onItemMouseMovePrimary=function(Lt){var Gt=pt.props,Ct=Gt.item,Rt=Gt.onItemMouseMove;Rt&&Rt(__assign$1(__assign$1({},Ct),{subMenuProps:void 0,items:void 0}),Lt,pt._splitButton)},pt._onItemMouseMoveIcon=function(Lt){var Gt=pt.props,Ct=Gt.item,Rt=Gt.onItemMouseMove;Rt&&Rt(Ct,Lt,pt._splitButton)},pt._onIconItemClick=function(Lt){var Gt=pt.props,Ct=Gt.item,Rt=Gt.onItemClickBase;Rt&&Rt(Ct,Lt,pt._splitButton?pt._splitButton:Lt.currentTarget)},pt._executeItemClick=function(Lt){var Gt=pt.props,Ct=Gt.item,Rt=Gt.executeItemClick,o=Gt.onItemClick;if(!(Ct.disabled||Ct.isDisabled)){if(pt._processingTouch&&o)return o(Ct,Lt);Rt&&Rt(Ct,Lt)}},pt._onTouchStart=function(Lt){pt._splitButton&&!("onpointerdown"in pt._splitButton)&&pt._handleTouchAndPointerEvent(Lt)},pt._onPointerDown=function(Lt){Lt.pointerType==="touch"&&(pt._handleTouchAndPointerEvent(Lt),Lt.preventDefault(),Lt.stopImmediatePropagation())},pt._async=new Async(pt),pt._events=new EventGroup(pt),pt}return i.prototype.componentDidMount=function(){this._splitButton&&"onpointerdown"in this._splitButton&&this._events.on(this._splitButton,"pointerdown",this._onPointerDown,!0)},i.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},i.prototype.render=function(){var _e=this,pt=this.props,Lt=pt.item,Gt=pt.classNames,Ct=pt.index,Rt=pt.focusableElementIndex,o=pt.totalItemCount,it=pt.hasCheckmarks,xt=pt.hasIcons,et=pt.onItemMouseLeave,Et=pt.expandedMenuItemKey,mt=hasSubmenu(Lt),ut=Lt.keytipProps;ut&&(ut=this._getMemoizedMenuButtonKeytipProps(ut));var ht=Lt.ariaDescription;return ht&&(this._ariaDescriptionId=getId()),reactExports.createElement(KeytipData,{keytipProps:ut,disabled:isItemDisabled(Lt)},function(j){return reactExports.createElement("div",{"data-ktp-target":j["data-ktp-target"],ref:function(_){return _e._splitButton=_},role:getMenuItemAriaRole(Lt),"aria-label":Lt.ariaLabel,className:Gt.splitContainer,"aria-disabled":isItemDisabled(Lt),"aria-expanded":mt?Lt.key===Et:void 0,"aria-haspopup":!0,"aria-describedby":mergeAriaAttributeValues(Lt.ariaDescribedBy,ht?_e._ariaDescriptionId:void 0,j["aria-describedby"]),"aria-checked":Lt.isChecked||Lt.checked,"aria-posinset":Rt+1,"aria-setsize":o,onMouseEnter:_e._onItemMouseEnterPrimary,onMouseLeave:et?et.bind(_e,__assign$1(__assign$1({},Lt),{subMenuProps:null,items:null})):void 0,onMouseMove:_e._onItemMouseMovePrimary,onKeyDown:_e._onItemKeyDown,onClick:_e._executeItemClick,onTouchStart:_e._onTouchStart,tabIndex:0,"data-is-focusable":!0,"aria-roledescription":Lt["aria-roledescription"]},_e._renderSplitPrimaryButton(Lt,Gt,Ct,it,xt),_e._renderSplitDivider(Lt),_e._renderSplitIconButton(Lt,Gt,Ct,j),_e._renderAriaDescription(ht,Gt.screenReaderText))})},i.prototype._renderSplitPrimaryButton=function(_e,pt,Lt,Gt,Ct){var Rt=this.props,o=Rt.contextualMenuItemAs,it=o===void 0?ContextualMenuItem:o,xt=Rt.onItemClick,et={key:_e.key,disabled:isItemDisabled(_e)||_e.primaryDisabled,name:_e.name,text:_e.text||_e.name,secondaryText:_e.secondaryText,className:pt.splitPrimary,canCheck:_e.canCheck,isChecked:_e.isChecked,checked:_e.checked,iconProps:_e.iconProps,onRenderIcon:_e.onRenderIcon,data:_e.data,"data-is-focusable":!1},Et=_e.itemProps;return reactExports.createElement("button",__assign$1({},getNativeProps(et,buttonProperties)),reactExports.createElement(it,__assign$1({"data-is-focusable":!1,item:et,classNames:pt,index:Lt,onCheckmarkClick:Gt&&xt?xt:void 0,hasIcons:Ct},Et)))},i.prototype._renderSplitDivider=function(_e){var pt=_e.getSplitButtonVerticalDividerClassNames||getSplitButtonVerticalDividerClassNames;return reactExports.createElement(VerticalDivider,{getClassNames:pt})},i.prototype._renderSplitIconButton=function(_e,pt,Lt,Gt){var Ct=this.props,Rt=Ct.contextualMenuItemAs,o=Rt===void 0?ContextualMenuItem:Rt,it=Ct.onItemMouseLeave,xt=Ct.onItemMouseDown,et=Ct.openSubMenu,Et=Ct.dismissSubMenu,mt=Ct.dismissMenu,ut={onClick:this._onIconItemClick,disabled:isItemDisabled(_e),className:pt.splitMenu,subMenuProps:_e.subMenuProps,submenuIconProps:_e.submenuIconProps,split:!0,key:_e.key},ht=__assign$1(__assign$1({},getNativeProps(ut,buttonProperties)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:it?it.bind(this,_e):void 0,onMouseDown:function(_){return xt?xt(_e,_):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":Gt["data-ktp-execute-target"],"aria-hidden":!0}),j=_e.itemProps;return reactExports.createElement("button",__assign$1({},ht),reactExports.createElement(o,__assign$1({componentRef:_e.componentRef,item:ut,classNames:pt,index:Lt,hasIcons:!1,openSubMenu:et,dismissSubMenu:Et,dismissMenu:mt,getSubmenuTarget:this._getSubmenuTarget},j)))},i.prototype._handleTouchAndPointerEvent=function(_e){var pt=this,Lt=this.props.onTap;Lt&&Lt(_e),this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout(function(){pt._processingTouch=!1,pt._lastTouchTimeoutId=void 0},TouchIdleDelay$1)},i}(ContextualMenuItemWrapper),BaseDecorator=function(a){__extends(i,a);function i(_e){var pt=a.call(this,_e)||this;return pt._updateComposedComponentRef=pt._updateComposedComponentRef.bind(pt),pt}return i.prototype._updateComposedComponentRef=function(_e){this._composedComponentInstance=_e,_e?this._hoisted=hoistMethods(this,_e):this._hoisted&&unhoistMethods(this,this._hoisted)},i}(reactExports.Component),ResponsiveMode;(function(a){a[a.small=0]="small",a[a.medium=1]="medium",a[a.large=2]="large",a[a.xLarge=3]="xLarge",a[a.xxLarge=4]="xxLarge",a[a.xxxLarge=5]="xxxLarge",a[a.unknown=999]="unknown"})(ResponsiveMode||(ResponsiveMode={}));var RESPONSIVE_MAX_CONSTRAINT=[479,639,1023,1365,1919,99999999],_lastMode;function getInitialResponsiveMode(){var a;return(a=_lastMode)!==null&&a!==void 0?a:ResponsiveMode.large}function withResponsiveMode(a){var i,_e=(i=function(pt){__extends(Lt,pt);function Lt(Gt){var Ct=pt.call(this,Gt)||this;return Ct._onResize=function(){var Rt=getResponsiveMode(Ct.context.window);Rt!==Ct.state.responsiveMode&&Ct.setState({responsiveMode:Rt})},Ct._events=new EventGroup(Ct),Ct._updateComposedComponentRef=Ct._updateComposedComponentRef.bind(Ct),Ct.state={responsiveMode:getInitialResponsiveMode()},Ct}return Lt.prototype.componentDidMount=function(){this._events.on(this.context.window,"resize",this._onResize),this._onResize()},Lt.prototype.componentWillUnmount=function(){this._events.dispose()},Lt.prototype.render=function(){var Gt=this.state.responsiveMode;return Gt===ResponsiveMode.unknown?null:reactExports.createElement(a,__assign$1({ref:this._updateComposedComponentRef,responsiveMode:Gt},this.props))},Lt}(BaseDecorator),i.contextType=WindowContext,i);return hoistStatics(a,_e)}function getWidthOfCurrentWindow(a){try{return a.document.documentElement.clientWidth}catch{return a.innerWidth}}function getResponsiveMode(a){var i=ResponsiveMode.small;if(a){try{for(;getWidthOfCurrentWindow(a)>RESPONSIVE_MAX_CONSTRAINT[i];)i++}catch{i=getInitialResponsiveMode()}_lastMode=i}else throw new Error("Content was rendered in a server environment without providing a default responsive mode. Call setResponsiveMode to define what the responsive mode is.");return i}var useResponsiveMode=function(a,i){var _e=reactExports.useState(getInitialResponsiveMode()),pt=_e[0],Lt=_e[1],Gt=reactExports.useCallback(function(){var Rt=getResponsiveMode(getWindow(a.current));pt!==Rt&&Lt(Rt)},[a,pt]),Ct=useWindow();return useOnEvent(Ct,"resize",Gt),reactExports.useEffect(function(){i===void 0&&Gt()},[i]),i??pt},MenuContext=reactExports.createContext({}),getClassNames$b=classNamesFunction(),getContextualMenuItemClassNames=classNamesFunction(),DEFAULT_PROPS$1={items:[],shouldFocusOnMount:!0,gapSpace:0,directionalHint:DirectionalHint.bottomAutoEdge,beakWidth:16};function getSubmenuItems(a,i){var _e=i==null?void 0:i.target,pt=a.subMenuProps?a.subMenuProps.items:a.items;if(pt){for(var Lt=[],Gt=0,Ct=pt;Gt0)return reactExports.createElement("li",{role:"presentation",key:yn.key||Cn.key||"section-"+bn},reactExports.createElement("div",__assign$1({},Jn),reactExports.createElement("ul",{className:fn.list,role:"presentation"},yn.topDivider&&er(bn,xn,!0,!0),Kn&&qt(Kn,Cn.key||bn,xn,Cn.title),yn.items.map(function(wn,In){return Ht(wn,In,In,yn.items.length,Un,_i,fn)}),yn.bottomDivider&&er(bn,xn,!1,!0))))}},qt=function(Cn,xn,fn,bn){return reactExports.createElement("li",{role:"presentation",title:bn,key:xn,className:fn.item},Cn)},er=function(Cn,xn,fn,bn){return bn||Cn>0?reactExports.createElement("li",{role:"separator",key:"separator-"+Cn+(fn===void 0?"":fn?"-top":"-bottom"),className:xn.divider,"aria-hidden":"true"}):null},lr=function(Cn,xn,fn,bn,Un,_i,yn){if(Cn.onRender)return Cn.onRender(__assign$1({"aria-posinset":bn+1,"aria-setsize":Un},Cn),o);var Kn=Lt.contextualMenuItemAs,Jn={item:Cn,classNames:xn,index:fn,focusableElementIndex:bn,totalItemCount:Un,hasCheckmarks:_i,hasIcons:yn,contextualMenuItemAs:Kn,onItemMouseEnter:It,onItemMouseLeave:Ot,onItemMouseMove:At,onItemMouseDown,executeItemClick:Dt,onItemKeyDown:wt,expandedMenuItemKey:ut,openSubMenu:ht,dismissSubMenu:_,dismissMenu:o};return Cn.href?reactExports.createElement(ContextualMenuAnchor,__assign$1({},Jn,{onItemClick:zt})):Cn.split&&hasSubmenu(Cn)?reactExports.createElement(ContextualMenuSplitButton,__assign$1({},Jn,{onItemClick:Pt,onItemClickBase:Nt,onTap:ft})):reactExports.createElement(ContextualMenuButton,__assign$1({},Jn,{onItemClick:Pt,onItemClickBase:Nt}))},Jt=function(Cn,xn,fn,bn,Un,_i){var yn=Lt.contextualMenuItemAs,Kn=yn===void 0?ContextualMenuItem:yn,Jn=Cn.itemProps,so=Cn.id,ba=Jn&&getNativeProps(Jn,divProperties);return reactExports.createElement("div",__assign$1({id:so,className:fn.header},ba,{style:Cn.style}),reactExports.createElement(Kn,__assign$1({item:Cn,classNames:xn,index:bn,onCheckmarkClick:Un?Pt:void 0,hasIcons:_i},Jn)))},Yt=Lt.isBeakVisible,rr=Lt.items,jt=Lt.labelElementId,ar=Lt.id,sr=Lt.className,Zt=Lt.beakWidth,Kt=Lt.directionalHint,or=Lt.directionalHintForRTL,tr=Lt.alignTargetEdge,cr=Lt.gapSpace,hr=Lt.coverTarget,br=Lt.ariaLabel,Tr=Lt.doNotLayer,Ir=Lt.target,Ar=Lt.bounds,_r=Lt.useTargetWidth,Er=Lt.useTargetAsMinWidth,Rr=Lt.directionalHintFixed,zr=Lt.shouldFocusOnMount,Br=Lt.shouldFocusOnContainer,kr=Lt.title,Nr=Lt.styles,Qr=Lt.theme,sn=Lt.calloutProps,un=Lt.onRenderSubMenu,qr=un===void 0?onDefaultRenderSubMenu:un,Xr=Lt.onRenderMenuList,ln=Xr===void 0?function(Cn,xn){return $t(Cn,En)}:Xr,mn=Lt.focusZoneProps,pn=Lt.getMenuClassNames,En=pn?pn(Qr,sr):getClassNames$b(Nr,{theme:Qr,className:sr}),Jr=Or(rr);function Or(Cn){for(var xn=0,fn=Cn;xn0){for(var ur=0,xr=0,Pr=rr;xr span":{position:"relative",left:0,top:0}}}],rootDisabled:[getFocusStyle(a,{inset:1,highContrastStyle:it,borderColor:"transparent"}),{backgroundColor:Rt,borderColor:Rt,color:o,cursor:"default",selectors:{":hover":noOutline,":focus":noOutline}}],iconDisabled:{color:o,selectors:(i={},i[HighContrastSelector]={color:"GrayText"},i)},menuIconDisabled:{color:o,selectors:(_e={},_e[HighContrastSelector]={color:"GrayText"},_e)},flexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},description:{display:"block"},textContainer:{flexGrow:1,display:"block"},icon:iconStyle(Gt.mediumPlus.fontSize),menuIcon:iconStyle(Gt.small.fontSize),label:{margin:"0 4px",lineHeight:"100%",display:"block"},screenReaderText:hiddenContentStyle}}),getStyles$d=memoizeFunction(function(a,i){var _e,pt,Lt,Gt,Ct,Rt,o,it,xt,et,Et,mt,ut,ht=a.effects,j=a.palette,_=a.semanticColors,rt={left:-2,top:-2,bottom:-2,right:-2,border:"none"},tt={position:"absolute",width:1,right:31,top:8,bottom:8},st={splitButtonContainer:[getFocusStyle(a,{highContrastStyle:rt,inset:2,pointerEvents:"none"}),{display:"inline-flex",selectors:{".ms-Button--default":{borderTopRightRadius:"0",borderBottomRightRadius:"0",borderRight:"none",flexGrow:"1"},".ms-Button--primary":{borderTopRightRadius:"0",borderBottomRightRadius:"0",border:"none",flexGrow:"1",selectors:(_e={},_e[HighContrastSelector]=__assign$1({color:"WindowText",backgroundColor:"Window",border:"1px solid WindowText",borderRightWidth:"0"},getHighContrastNoAdjustStyle()),_e[":hover"]={border:"none"},_e[":active"]={border:"none"},_e)},".ms-Button--primary + .ms-Button":{border:"none",selectors:(pt={},pt[HighContrastSelector]={border:"1px solid WindowText",borderLeftWidth:"0"},pt)}}}],splitButtonContainerHovered:{selectors:{".ms-Button--primary":{selectors:(Lt={},Lt[HighContrastSelector]={color:"Window",backgroundColor:"Highlight"},Lt)},".ms-Button.is-disabled":{color:_.buttonTextDisabled,selectors:(Gt={},Gt[HighContrastSelector]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},Gt)}}},splitButtonContainerChecked:{selectors:{".ms-Button--primary":{selectors:(Ct={},Ct[HighContrastSelector]=__assign$1({color:"Window",backgroundColor:"WindowText"},getHighContrastNoAdjustStyle()),Ct)}}},splitButtonContainerCheckedHovered:{selectors:{".ms-Button--primary":{selectors:(Rt={},Rt[HighContrastSelector]=__assign$1({color:"Window",backgroundColor:"WindowText"},getHighContrastNoAdjustStyle()),Rt)}}},splitButtonContainerFocused:{outline:"none!important"},splitButtonMenuButton:(o={padding:6,height:"auto",boxSizing:"border-box",borderRadius:0,borderTopRightRadius:ht.roundedCorner2,borderBottomRightRadius:ht.roundedCorner2,border:"1px solid "+j.neutralSecondaryAlt,borderLeft:"none",outline:"transparent",userSelect:"none",display:"inline-block",textDecoration:"none",textAlign:"center",cursor:"pointer",verticalAlign:"top",width:32,marginLeft:-1,marginTop:0,marginRight:0,marginBottom:0},o[HighContrastSelector]={".ms-Button-menuIcon":{color:"WindowText"}},o),splitButtonDivider:__assign$1(__assign$1({},tt),{selectors:(it={},it[HighContrastSelector]={backgroundColor:"WindowText"},it)}),splitButtonDividerDisabled:__assign$1(__assign$1({},tt),{selectors:(xt={},xt[HighContrastSelector]={backgroundColor:"GrayText"},xt)}),splitButtonMenuButtonDisabled:{pointerEvents:"none",border:"none",selectors:(et={":hover":{cursor:"default"},".ms-Button--primary":{selectors:(Et={},Et[HighContrastSelector]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},Et)},".ms-Button-menuIcon":{selectors:(mt={},mt[HighContrastSelector]={color:"GrayText"},mt)}},et[HighContrastSelector]={color:"GrayText",border:"1px solid GrayText",backgroundColor:"Window"},et)},splitButtonFlexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},splitButtonContainerDisabled:{outline:"none",border:"none",selectors:(ut={},ut[HighContrastSelector]=__assign$1({color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},getHighContrastNoAdjustStyle()),ut)},splitButtonMenuFocused:__assign$1({},getFocusStyle(a,{highContrastStyle:rt,inset:2}))};return concatStyleSets(st,i)}),splitButtonDividerBaseStyles=function(){return{position:"absolute",width:1,right:31,top:8,bottom:8}};function standardStyles(a){var i,_e,pt,Lt,Gt,Ct=a.semanticColors,Rt=a.palette,o=Ct.buttonBackground,it=Ct.buttonBackgroundPressed,xt=Ct.buttonBackgroundHovered,et=Ct.buttonBackgroundDisabled,Et=Ct.buttonText,mt=Ct.buttonTextHovered,ut=Ct.buttonTextDisabled,ht=Ct.buttonTextChecked,j=Ct.buttonTextCheckedHovered;return{root:{backgroundColor:o,color:Et},rootHovered:{backgroundColor:xt,color:mt,selectors:(i={},i[HighContrastSelector]={borderColor:"Highlight",color:"Highlight"},i)},rootPressed:{backgroundColor:it,color:ht},rootExpanded:{backgroundColor:it,color:ht},rootChecked:{backgroundColor:it,color:ht},rootCheckedHovered:{backgroundColor:it,color:j},rootDisabled:{color:ut,backgroundColor:et,selectors:(_e={},_e[HighContrastSelector]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},_e)},splitButtonContainer:{selectors:(pt={},pt[HighContrastSelector]={border:"none"},pt)},splitButtonMenuButton:{color:Rt.white,backgroundColor:"transparent",selectors:{":hover":{backgroundColor:Rt.neutralLight,selectors:(Lt={},Lt[HighContrastSelector]={color:"Highlight"},Lt)}}},splitButtonMenuButtonDisabled:{backgroundColor:Ct.buttonBackgroundDisabled,selectors:{":hover":{backgroundColor:Ct.buttonBackgroundDisabled}}},splitButtonDivider:__assign$1(__assign$1({},splitButtonDividerBaseStyles()),{backgroundColor:Rt.neutralTertiaryAlt,selectors:(Gt={},Gt[HighContrastSelector]={backgroundColor:"WindowText"},Gt)}),splitButtonDividerDisabled:{backgroundColor:a.palette.neutralTertiaryAlt},splitButtonMenuButtonChecked:{backgroundColor:Rt.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:Rt.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:Rt.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:Rt.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:Ct.buttonText},splitButtonMenuIconDisabled:{color:Ct.buttonTextDisabled}}}function primaryStyles(a){var i,_e,pt,Lt,Gt,Ct,Rt,o,it,xt=a.palette,et=a.semanticColors;return{root:{backgroundColor:et.primaryButtonBackground,border:"1px solid "+et.primaryButtonBackground,color:et.primaryButtonText,selectors:(i={},i[HighContrastSelector]=__assign$1({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},getHighContrastNoAdjustStyle()),i["."+IsFocusVisibleClassName+" &:focus"]={selectors:{":after":{border:"none",outlineColor:xt.white}}},i)},rootHovered:{backgroundColor:et.primaryButtonBackgroundHovered,border:"1px solid "+et.primaryButtonBackgroundHovered,color:et.primaryButtonTextHovered,selectors:(_e={},_e[HighContrastSelector]={color:"Window",backgroundColor:"Highlight",borderColor:"Highlight"},_e)},rootPressed:{backgroundColor:et.primaryButtonBackgroundPressed,border:"1px solid "+et.primaryButtonBackgroundPressed,color:et.primaryButtonTextPressed,selectors:(pt={},pt[HighContrastSelector]=__assign$1({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},getHighContrastNoAdjustStyle()),pt)},rootExpanded:{backgroundColor:et.primaryButtonBackgroundPressed,color:et.primaryButtonTextPressed},rootChecked:{backgroundColor:et.primaryButtonBackgroundPressed,color:et.primaryButtonTextPressed},rootCheckedHovered:{backgroundColor:et.primaryButtonBackgroundPressed,color:et.primaryButtonTextPressed},rootDisabled:{color:et.primaryButtonTextDisabled,backgroundColor:et.primaryButtonBackgroundDisabled,selectors:(Lt={},Lt[HighContrastSelector]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},Lt)},splitButtonContainer:{selectors:(Gt={},Gt[HighContrastSelector]={border:"none"},Gt)},splitButtonDivider:__assign$1(__assign$1({},splitButtonDividerBaseStyles()),{backgroundColor:xt.white,selectors:(Ct={},Ct[HighContrastSelector]={backgroundColor:"Window"},Ct)}),splitButtonMenuButton:{backgroundColor:et.primaryButtonBackground,color:et.primaryButtonText,selectors:(Rt={},Rt[HighContrastSelector]={backgroundColor:"Canvas"},Rt[":hover"]={backgroundColor:et.primaryButtonBackgroundHovered,selectors:(o={},o[HighContrastSelector]={color:"Highlight"},o)},Rt)},splitButtonMenuButtonDisabled:{backgroundColor:et.primaryButtonBackgroundDisabled,selectors:{":hover":{backgroundColor:et.primaryButtonBackgroundDisabled}}},splitButtonMenuButtonChecked:{backgroundColor:et.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:et.primaryButtonBackgroundPressed}}},splitButtonMenuButtonExpanded:{backgroundColor:et.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:et.primaryButtonBackgroundPressed}}},splitButtonMenuIcon:{color:et.primaryButtonText},splitButtonMenuIconDisabled:{color:xt.neutralTertiary,selectors:(it={},it[HighContrastSelector]={color:"GrayText"},it)}}}var DEFAULT_BUTTON_HEIGHT="32px",DEFAULT_BUTTON_MIN_WIDTH="80px",getStyles$c=memoizeFunction(function(a,i,_e){var pt=getStyles$e(a),Lt=getStyles$d(a),Gt={root:{minWidth:DEFAULT_BUTTON_MIN_WIDTH,height:DEFAULT_BUTTON_HEIGHT},label:{fontWeight:FontWeights.semibold}};return concatStyleSets(pt,Gt,_e?primaryStyles(a):standardStyles(a),Lt,i)}),DefaultButton=function(a){__extends(i,a);function i(){return a!==null&&a.apply(this,arguments)||this}return i.prototype.render=function(){var _e=this.props,pt=_e.primary,Lt=pt===void 0?!1:pt,Gt=_e.styles,Ct=_e.theme;return reactExports.createElement(BaseButton,__assign$1({},this.props,{variantClassName:Lt?"ms-Button--primary":"ms-Button--default",styles:getStyles$c(Ct,Gt,Lt),onRenderDescription:nullRender}))},i=__decorate([customizable("DefaultButton",["theme","styles"],!0)],i),i}(reactExports.Component),getStyles$b=memoizeFunction(function(a,i){var _e,pt=getStyles$e(a),Lt=getStyles$d(a),Gt=a.palette,Ct=a.semanticColors,Rt={root:{padding:"0 4px",width:"32px",height:"32px",backgroundColor:"transparent",border:"none",color:Ct.link},rootHovered:{color:Gt.themeDarkAlt,backgroundColor:Gt.neutralLighter,selectors:(_e={},_e[HighContrastSelector]={borderColor:"Highlight",color:"Highlight"},_e)},rootHasMenu:{width:"auto"},rootPressed:{color:Gt.themeDark,backgroundColor:Gt.neutralLight},rootExpanded:{color:Gt.themeDark,backgroundColor:Gt.neutralLight},rootChecked:{color:Gt.themeDark,backgroundColor:Gt.neutralLight},rootCheckedHovered:{color:Gt.themeDark,backgroundColor:Gt.neutralQuaternaryAlt},rootDisabled:{color:Gt.neutralTertiaryAlt}};return concatStyleSets(pt,Rt,Lt,i)}),IconButton=function(a){__extends(i,a);function i(){return a!==null&&a.apply(this,arguments)||this}return i.prototype.render=function(){var _e=this.props,pt=_e.styles,Lt=_e.theme;return reactExports.createElement(BaseButton,__assign$1({},this.props,{variantClassName:"ms-Button--icon",styles:getStyles$b(Lt,pt),onRenderText:nullRender,onRenderDescription:nullRender}))},i=__decorate([customizable("IconButton",["theme","styles"],!0)],i),i}(reactExports.Component),PrimaryButton=function(a){__extends(i,a);function i(){return a!==null&&a.apply(this,arguments)||this}return i.prototype.render=function(){return reactExports.createElement(DefaultButton,__assign$1({},this.props,{primary:!0,onRenderDescription:nullRender}))},i=__decorate([customizable("PrimaryButton",["theme","styles"],!0)],i),i}(reactExports.Component),getStyles$a=memoizeFunction(function(a,i,_e,pt){var Lt,Gt,Ct,Rt,o,it,xt,et,Et,mt,ut,ht,j,_,rt=getStyles$e(a),tt=getStyles$d(a),st=a.palette,ot=a.semanticColors,nt={left:4,top:4,bottom:4,right:4,border:"none"},vt={root:[getFocusStyle(a,{inset:2,highContrastStyle:nt,borderColor:"transparent"}),a.fonts.medium,{minWidth:"40px",backgroundColor:st.white,color:st.neutralPrimary,padding:"0 4px",border:"none",borderRadius:0,selectors:(Lt={},Lt[HighContrastSelector]={border:"none"},Lt)}],rootHovered:{backgroundColor:st.neutralLighter,color:st.neutralDark,selectors:(Gt={},Gt[HighContrastSelector]={color:"Highlight"},Gt["."+ButtonGlobalClassNames.msButtonIcon]={color:st.themeDarkAlt},Gt["."+ButtonGlobalClassNames.msButtonMenuIcon]={color:st.neutralPrimary},Gt)},rootPressed:{backgroundColor:st.neutralLight,color:st.neutralDark,selectors:(Ct={},Ct["."+ButtonGlobalClassNames.msButtonIcon]={color:st.themeDark},Ct["."+ButtonGlobalClassNames.msButtonMenuIcon]={color:st.neutralPrimary},Ct)},rootChecked:{backgroundColor:st.neutralLight,color:st.neutralDark,selectors:(Rt={},Rt["."+ButtonGlobalClassNames.msButtonIcon]={color:st.themeDark},Rt["."+ButtonGlobalClassNames.msButtonMenuIcon]={color:st.neutralPrimary},Rt)},rootCheckedHovered:{backgroundColor:st.neutralQuaternaryAlt,selectors:(o={},o["."+ButtonGlobalClassNames.msButtonIcon]={color:st.themeDark},o["."+ButtonGlobalClassNames.msButtonMenuIcon]={color:st.neutralPrimary},o)},rootExpanded:{backgroundColor:st.neutralLight,color:st.neutralDark,selectors:(it={},it["."+ButtonGlobalClassNames.msButtonIcon]={color:st.themeDark},it["."+ButtonGlobalClassNames.msButtonMenuIcon]={color:st.neutralPrimary},it)},rootExpandedHovered:{backgroundColor:st.neutralQuaternaryAlt},rootDisabled:{backgroundColor:st.white,selectors:(xt={},xt["."+ButtonGlobalClassNames.msButtonIcon]={color:ot.disabledBodySubtext,selectors:(et={},et[HighContrastSelector]=__assign$1({color:"GrayText"},getHighContrastNoAdjustStyle()),et)},xt[HighContrastSelector]=__assign$1({color:"GrayText",backgroundColor:"Window"},getHighContrastNoAdjustStyle()),xt)},splitButtonContainer:{height:"100%",selectors:(Et={},Et[HighContrastSelector]={border:"none"},Et)},splitButtonDividerDisabled:{selectors:(mt={},mt[HighContrastSelector]={backgroundColor:"Window"},mt)},splitButtonDivider:{backgroundColor:st.neutralTertiaryAlt},splitButtonMenuButton:{backgroundColor:st.white,border:"none",borderTopRightRadius:"0",borderBottomRightRadius:"0",color:st.neutralSecondary,selectors:{":hover":{backgroundColor:st.neutralLighter,color:st.neutralDark,selectors:(ut={},ut[HighContrastSelector]={color:"Highlight"},ut["."+ButtonGlobalClassNames.msButtonIcon]={color:st.neutralPrimary},ut)},":active":{backgroundColor:st.neutralLight,selectors:(ht={},ht["."+ButtonGlobalClassNames.msButtonIcon]={color:st.neutralPrimary},ht)}}},splitButtonMenuButtonDisabled:{backgroundColor:st.white,selectors:(j={},j[HighContrastSelector]=__assign$1({color:"GrayText",border:"none",backgroundColor:"Window"},getHighContrastNoAdjustStyle()),j)},splitButtonMenuButtonChecked:{backgroundColor:st.neutralLight,color:st.neutralDark,selectors:{":hover":{backgroundColor:st.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:st.neutralLight,color:st.black,selectors:{":hover":{backgroundColor:st.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:st.neutralPrimary},splitButtonMenuIconDisabled:{color:st.neutralTertiary},label:{fontWeight:"normal"},icon:{color:st.themePrimary},menuIcon:(_={color:st.neutralSecondary},_[HighContrastSelector]={color:"GrayText"},_)};return concatStyleSets(rt,tt,vt,i)}),CommandBarButton=function(a){__extends(i,a);function i(){return a!==null&&a.apply(this,arguments)||this}return i.prototype.render=function(){var _e=this.props,pt=_e.styles,Lt=_e.theme;return reactExports.createElement(BaseButton,__assign$1({},this.props,{variantClassName:"ms-Button--commandBar",styles:getStyles$a(Lt,pt),onRenderDescription:nullRender}))},i=__decorate([customizable("CommandBarButton",["theme","styles"],!0)],i),i}(reactExports.Component),getClassNames$a=classNamesFunction(),CheckboxBase=reactExports.forwardRef(function(a,i){var _e=a.disabled,pt=a.required,Lt=a.inputProps,Gt=a.name,Ct=a.ariaLabel,Rt=a.ariaLabelledBy,o=a.ariaDescribedBy,it=a.ariaPositionInSet,xt=a.ariaSetSize,et=a.title,Et=a.checkmarkIconProps,mt=a.styles,ut=a.theme,ht=a.className,j=a.boxSide,_=j===void 0?"start":j,rt=useId("checkbox-",a.id),tt=reactExports.useRef(null),st=useMergedRefs(tt,i),ot=reactExports.useRef(null),nt=useControllableValue(a.checked,a.defaultChecked,a.onChange),vt=nt[0],dt=nt[1],bt=useControllableValue(a.indeterminate,a.defaultIndeterminate),ft=bt[0],at=bt[1];useFocusRects(tt);var yt=getClassNames$a(mt,{theme:ut,className:ht,disabled:_e,indeterminate:ft,checked:vt,reversed:_!=="start",isUsingCustomLabelRender:!!a.onRenderLabel}),St=reactExports.useCallback(function(ct){ft?(dt(!!vt,ct),at(!1)):dt(!vt,ct)},[dt,at,ft,vt]),_t=reactExports.useCallback(function(ct){return ct&&ct.label?reactExports.createElement("span",{className:yt.text,title:ct.title},ct.label):null},[yt.text]),Mt=reactExports.useCallback(function(ct){if(ot.current){var It=!!ct;ot.current.indeterminate=It,at(It)}},[at]);useComponentRef$1(a,vt,ft,Mt,ot),reactExports.useEffect(function(){return Mt(ft)},[Mt,ft]);var Tt=a.onRenderLabel||_t,kt=ft?"mixed":void 0,wt=__assign$1(__assign$1({className:yt.input,type:"checkbox"},Lt),{checked:!!vt,disabled:_e,required:pt,name:Gt,id:rt,title:et,onChange:St,"aria-disabled":_e,"aria-label":Ct,"aria-labelledby":Rt,"aria-describedby":o,"aria-posinset":it,"aria-setsize":xt,"aria-checked":kt});return reactExports.createElement("div",{className:yt.root,title:et,ref:st},reactExports.createElement("input",__assign$1({},wt,{ref:ot,title:et,"data-ktp-execute-target":!0})),reactExports.createElement("label",{className:yt.label,htmlFor:rt},reactExports.createElement("div",{className:yt.checkbox,"data-ktp-target":!0},reactExports.createElement(Icon,__assign$1({iconName:"CheckMark"},Et,{className:yt.checkmark}))),Tt(a,_t)))});CheckboxBase.displayName="CheckboxBase";function useComponentRef$1(a,i,_e,pt,Lt){reactExports.useImperativeHandle(a.componentRef,function(){return{get checked(){return!!i},get indeterminate(){return!!_e},set indeterminate(Gt){pt(Gt)},focus:function(){Lt.current&&Lt.current.focus()}}},[Lt,i,_e,pt])}var GlobalClassNames$7={root:"ms-Checkbox",label:"ms-Checkbox-label",checkbox:"ms-Checkbox-checkbox",checkmark:"ms-Checkbox-checkmark",text:"ms-Checkbox-text"},MS_CHECKBOX_LABEL_SIZE="20px",MS_CHECKBOX_TRANSITION_DURATION="200ms",MS_CHECKBOX_TRANSITION_TIMING="cubic-bezier(.4, 0, .23, 1)",getStyles$9=function(a){var i,_e,pt,Lt,Gt,Ct,Rt,o,it,xt,et,Et,mt,ut,ht,j,_,rt,tt=a.className,st=a.theme,ot=a.reversed,nt=a.checked,vt=a.disabled,dt=a.isUsingCustomLabelRender,bt=a.indeterminate,ft=st.semanticColors,at=st.effects,yt=st.palette,St=st.fonts,_t=getGlobalClassNames(GlobalClassNames$7,st),Mt=ft.inputForegroundChecked,Tt=yt.neutralSecondary,kt=yt.neutralPrimary,wt=ft.inputBackgroundChecked,ct=ft.inputBackgroundChecked,It=ft.disabledBodySubtext,At=ft.inputBorderHovered,Ot=ft.inputBackgroundCheckedHovered,Pt=ft.inputBackgroundChecked,zt=ft.inputBackgroundCheckedHovered,Dt=ft.inputBackgroundCheckedHovered,Nt=ft.inputTextHovered,$t=ft.disabledBodySubtext,Ut=ft.bodyText,Ht=ft.disabledText,Vt=[(i={content:'""',borderRadius:at.roundedCorner2,position:"absolute",width:10,height:10,top:4,left:4,boxSizing:"border-box",borderWidth:5,borderStyle:"solid",borderColor:vt?It:wt,transitionProperty:"border-width, border, border-color",transitionDuration:MS_CHECKBOX_TRANSITION_DURATION,transitionTimingFunction:MS_CHECKBOX_TRANSITION_TIMING},i[HighContrastSelector]={borderColor:"WindowText"},i)];return{root:[_t.root,{position:"relative",display:"flex"},ot&&"reversed",nt&&"is-checked",!vt&&"is-enabled",vt&&"is-disabled",!vt&&[!nt&&(_e={},_e[":hover ."+_t.checkbox]=(pt={borderColor:At},pt[HighContrastSelector]={borderColor:"Highlight"},pt),_e[":focus ."+_t.checkbox]={borderColor:At},_e[":hover ."+_t.checkmark]=(Lt={color:Tt,opacity:"1"},Lt[HighContrastSelector]={color:"Highlight"},Lt),_e),nt&&!bt&&(Gt={},Gt[":hover ."+_t.checkbox]={background:zt,borderColor:Dt},Gt[":focus ."+_t.checkbox]={background:zt,borderColor:Dt},Gt[HighContrastSelector]=(Ct={},Ct[":hover ."+_t.checkbox]={background:"Highlight",borderColor:"Highlight"},Ct[":focus ."+_t.checkbox]={background:"Highlight"},Ct[":focus:hover ."+_t.checkbox]={background:"Highlight"},Ct[":focus:hover ."+_t.checkmark]={color:"Window"},Ct[":hover ."+_t.checkmark]={color:"Window"},Ct),Gt),bt&&(Rt={},Rt[":hover ."+_t.checkbox+", :hover ."+_t.checkbox+":after"]=(o={borderColor:Ot},o[HighContrastSelector]={borderColor:"WindowText"},o),Rt[":focus ."+_t.checkbox]={borderColor:Ot},Rt[":hover ."+_t.checkmark]={opacity:"0"},Rt),(it={},it[":hover ."+_t.text+", :focus ."+_t.text]=(xt={color:Nt},xt[HighContrastSelector]={color:vt?"GrayText":"WindowText"},xt),it)],tt],input:(et={position:"absolute",background:"none",opacity:0},et["."+IsFocusVisibleClassName+" &:focus + label::before"]=(Et={outline:"1px solid "+st.palette.neutralSecondary,outlineOffset:"2px"},Et[HighContrastSelector]={outline:"1px solid WindowText"},Et),et),label:[_t.label,st.fonts.medium,{display:"flex",alignItems:dt?"center":"flex-start",cursor:vt?"default":"pointer",position:"relative",userSelect:"none"},ot&&{flexDirection:"row-reverse",justifyContent:"flex-end"},{"&::before":{position:"absolute",left:0,right:0,top:0,bottom:0,content:'""',pointerEvents:"none"}}],checkbox:[_t.checkbox,(mt={position:"relative",display:"flex",flexShrink:0,alignItems:"center",justifyContent:"center",height:MS_CHECKBOX_LABEL_SIZE,width:MS_CHECKBOX_LABEL_SIZE,border:"1px solid "+kt,borderRadius:at.roundedCorner2,boxSizing:"border-box",transitionProperty:"background, border, border-color",transitionDuration:MS_CHECKBOX_TRANSITION_DURATION,transitionTimingFunction:MS_CHECKBOX_TRANSITION_TIMING,overflow:"hidden",":after":bt?Vt:null},mt[HighContrastSelector]=__assign$1({borderColor:"WindowText"},getHighContrastNoAdjustStyle()),mt),bt&&{borderColor:wt},ot?{marginLeft:4}:{marginRight:4},!vt&&!bt&&nt&&(ut={background:Pt,borderColor:ct},ut[HighContrastSelector]={background:"Highlight",borderColor:"Highlight"},ut),vt&&(ht={borderColor:It},ht[HighContrastSelector]={borderColor:"GrayText"},ht),nt&&vt&&(j={background:$t,borderColor:It},j[HighContrastSelector]={background:"Window"},j)],checkmark:[_t.checkmark,(_={opacity:nt&&!bt?"1":"0",color:Mt},_[HighContrastSelector]=__assign$1({color:vt?"GrayText":"Window"},getHighContrastNoAdjustStyle()),_)],text:[_t.text,(rt={color:vt?Ht:Ut,fontSize:St.medium.fontSize,lineHeight:"20px"},rt[HighContrastSelector]=__assign$1({color:vt?"GrayText":"WindowText"},getHighContrastNoAdjustStyle()),rt),ot?{marginRight:4}:{marginLeft:4}]}},Checkbox=styled(CheckboxBase,getStyles$9,void 0,{scope:"Checkbox"}),getClassNames$9=classNamesFunction({cacheSize:100}),LabelBase=function(a){__extends(i,a);function i(){return a!==null&&a.apply(this,arguments)||this}return i.prototype.render=function(){var _e=this.props,pt=_e.as,Lt=pt===void 0?"label":pt,Gt=_e.children,Ct=_e.className,Rt=_e.disabled,o=_e.styles,it=_e.required,xt=_e.theme,et=getClassNames$9(o,{className:Ct,disabled:Rt,required:it,theme:xt});return reactExports.createElement(Lt,__assign$1({},getNativeProps(this.props,divProperties),{className:et.root}),Gt)},i}(reactExports.Component),getStyles$8=function(a){var i,_e=a.theme,pt=a.className,Lt=a.disabled,Gt=a.required,Ct=_e.semanticColors,Rt=FontWeights.semibold,o=Ct.bodyText,it=Ct.disabledBodyText,xt=Ct.errorText;return{root:["ms-Label",_e.fonts.medium,{fontWeight:Rt,color:o,boxSizing:"border-box",boxShadow:"none",margin:0,display:"block",padding:"5px 0",wordWrap:"break-word",overflowWrap:"break-word"},Lt&&{color:it,selectors:(i={},i[HighContrastSelector]=__assign$1({color:"GrayText"},getHighContrastNoAdjustStyle()),i)},Gt&&{selectors:{"::after":{content:"' *'",color:xt,paddingRight:12}}},pt]}},Label=styled(LabelBase,getStyles$8,void 0,{scope:"Label"}),getClassNames$8=classNamesFunction(),DEFAULT_STATE_VALUE="",COMPONENT_NAME="TextField",REVEAL_ICON_NAME="RedEye",HIDE_ICON_NAME="Hide",TextFieldBase=function(a){__extends(i,a);function i(_e){var pt=a.call(this,_e)||this;pt._textElement=reactExports.createRef(),pt._onFocus=function(Ct){pt.props.onFocus&&pt.props.onFocus(Ct),pt.setState({isFocused:!0},function(){pt.props.validateOnFocusIn&&pt._validate(pt.value)})},pt._onBlur=function(Ct){pt.props.onBlur&&pt.props.onBlur(Ct),pt.setState({isFocused:!1},function(){pt.props.validateOnFocusOut&&pt._validate(pt.value)})},pt._onRenderLabel=function(Ct){var Rt=Ct.label,o=Ct.required,it=pt._classNames.subComponentStyles?pt._classNames.subComponentStyles.label:void 0;return Rt?reactExports.createElement(Label,{required:o,htmlFor:pt._id,styles:it,disabled:Ct.disabled,id:pt._labelId},Ct.label):null},pt._onRenderDescription=function(Ct){return Ct.description?reactExports.createElement("span",{className:pt._classNames.description},Ct.description):null},pt._onRevealButtonClick=function(Ct){pt.setState(function(Rt){return{isRevealingPassword:!Rt.isRevealingPassword}})},pt._onInputChange=function(Ct){var Rt,o,it=Ct.target,xt=it.value,et=_getValue(pt.props,pt.state)||"";if(xt===void 0||xt===pt._lastChangeValue||xt===et){pt._lastChangeValue=void 0;return}pt._lastChangeValue=xt,(o=(Rt=pt.props).onChange)===null||o===void 0||o.call(Rt,Ct,xt),pt._isControlled||pt.setState({uncontrolledValue:xt})},initializeComponentRef(pt),pt._async=new Async(pt),pt._fallbackId=getId(COMPONENT_NAME),pt._descriptionId=getId(COMPONENT_NAME+"Description"),pt._labelId=getId(COMPONENT_NAME+"Label"),pt._prefixId=getId(COMPONENT_NAME+"Prefix"),pt._suffixId=getId(COMPONENT_NAME+"Suffix"),pt._warnControlledUsage();var Lt=_e.defaultValue,Gt=Lt===void 0?DEFAULT_STATE_VALUE:Lt;return typeof Gt=="number"&&(Gt=String(Gt)),pt.state={uncontrolledValue:pt._isControlled?void 0:Gt,isFocused:!1,errorMessage:""},pt._delayedValidate=pt._async.debounce(pt._validate,pt.props.deferredValidationTime),pt._lastValidation=0,pt}return Object.defineProperty(i.prototype,"value",{get:function(){return _getValue(this.props,this.state)},enumerable:!1,configurable:!0}),i.prototype.componentDidMount=function(){this._adjustInputHeight(),this.props.validateOnLoad&&this._validate(this.value)},i.prototype.componentWillUnmount=function(){this._async.dispose()},i.prototype.getSnapshotBeforeUpdate=function(_e,pt){return{selection:[this.selectionStart,this.selectionEnd]}},i.prototype.componentDidUpdate=function(_e,pt,Lt){var Gt=this.props,Ct=(Lt||{}).selection,Rt=Ct===void 0?[null,null]:Ct,o=Rt[0],it=Rt[1];!!_e.multiline!=!!Gt.multiline&&pt.isFocused&&(this.focus(),o!==null&&it!==null&&o>=0&&it>=0&&this.setSelectionRange(o,it)),_e.value!==Gt.value&&(this._lastChangeValue=void 0);var xt=_getValue(_e,pt),et=this.value;xt!==et&&(this._warnControlledUsage(_e),this.state.errorMessage&&!Gt.errorMessage&&this.setState({errorMessage:""}),this._adjustInputHeight(),_shouldValidateAllChanges(Gt)&&this._delayedValidate(et))},i.prototype.render=function(){var _e=this.props,pt=_e.borderless,Lt=_e.className,Gt=_e.disabled,Ct=_e.invalid,Rt=_e.iconProps,o=_e.inputClassName,it=_e.label,xt=_e.multiline,et=_e.required,Et=_e.underlined,mt=_e.prefix,ut=_e.resizable,ht=_e.suffix,j=_e.theme,_=_e.styles,rt=_e.autoAdjustHeight,tt=_e.canRevealPassword,st=_e.revealPasswordAriaLabel,ot=_e.type,nt=_e.onRenderPrefix,vt=nt===void 0?this._onRenderPrefix:nt,dt=_e.onRenderSuffix,bt=dt===void 0?this._onRenderSuffix:dt,ft=_e.onRenderLabel,at=ft===void 0?this._onRenderLabel:ft,yt=_e.onRenderDescription,St=yt===void 0?this._onRenderDescription:yt,_t=this.state,Mt=_t.isFocused,Tt=_t.isRevealingPassword,kt=this._errorMessage,wt=typeof Ct=="boolean"?Ct:!!kt,ct=!!tt&&ot==="password"&&_browserNeedsRevealButton(),It=this._classNames=getClassNames$8(_,{theme:j,className:Lt,disabled:Gt,focused:Mt,required:et,multiline:xt,hasLabel:!!it,hasErrorMessage:wt,borderless:pt,resizable:ut,hasIcon:!!Rt,underlined:Et,inputClassName:o,autoAdjustHeight:rt,hasRevealButton:ct});return reactExports.createElement("div",{ref:this.props.elementRef,className:It.root},reactExports.createElement("div",{className:It.wrapper},at(this.props,this._onRenderLabel),reactExports.createElement("div",{className:It.fieldGroup},(mt!==void 0||this.props.onRenderPrefix)&&reactExports.createElement("div",{className:It.prefix,id:this._prefixId},vt(this.props,this._onRenderPrefix)),xt?this._renderTextArea():this._renderInput(),Rt&&reactExports.createElement(Icon,__assign$1({className:It.icon},Rt)),ct&&reactExports.createElement("button",{"aria-label":st,className:It.revealButton,onClick:this._onRevealButtonClick,"aria-pressed":!!Tt,type:"button"},reactExports.createElement("span",{className:It.revealSpan},reactExports.createElement(Icon,{className:It.revealIcon,iconName:Tt?HIDE_ICON_NAME:REVEAL_ICON_NAME}))),(ht!==void 0||this.props.onRenderSuffix)&&reactExports.createElement("div",{className:It.suffix,id:this._suffixId},bt(this.props,this._onRenderSuffix)))),this._isDescriptionAvailable&&reactExports.createElement("span",{id:this._descriptionId},St(this.props,this._onRenderDescription),kt&&reactExports.createElement("div",{role:"alert"},reactExports.createElement(DelayedRender,null,this._renderErrorMessage()))))},i.prototype.focus=function(){this._textElement.current&&this._textElement.current.focus()},i.prototype.blur=function(){this._textElement.current&&this._textElement.current.blur()},i.prototype.select=function(){this._textElement.current&&this._textElement.current.select()},i.prototype.setSelectionStart=function(_e){this._textElement.current&&(this._textElement.current.selectionStart=_e)},i.prototype.setSelectionEnd=function(_e){this._textElement.current&&(this._textElement.current.selectionEnd=_e)},Object.defineProperty(i.prototype,"selectionStart",{get:function(){return this._textElement.current?this._textElement.current.selectionStart:-1},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"selectionEnd",{get:function(){return this._textElement.current?this._textElement.current.selectionEnd:-1},enumerable:!1,configurable:!0}),i.prototype.setSelectionRange=function(_e,pt){this._textElement.current&&this._textElement.current.setSelectionRange(_e,pt)},i.prototype._warnControlledUsage=function(_e){this._id,this.props,this.props.value===null&&!this._hasWarnedNullValue&&(this._hasWarnedNullValue=!0,warn("Warning: 'value' prop on '"+COMPONENT_NAME+"' should not be null. Consider using an empty string to clear the component or undefined to indicate an uncontrolled component."))},Object.defineProperty(i.prototype,"_id",{get:function(){return this.props.id||this._fallbackId},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"_isControlled",{get:function(){return isControlled(this.props,"value")},enumerable:!1,configurable:!0}),i.prototype._onRenderPrefix=function(_e){var pt=_e.prefix;return reactExports.createElement("span",{style:{paddingBottom:"1px"}},pt)},i.prototype._onRenderSuffix=function(_e){var pt=_e.suffix;return reactExports.createElement("span",{style:{paddingBottom:"1px"}},pt)},Object.defineProperty(i.prototype,"_errorMessage",{get:function(){var _e=this.props.errorMessage,pt=_e===void 0?this.state.errorMessage:_e;return pt||""},enumerable:!1,configurable:!0}),i.prototype._renderErrorMessage=function(){var _e=this._errorMessage;return _e?typeof _e=="string"?reactExports.createElement("p",{className:this._classNames.errorMessage},reactExports.createElement("span",{"data-automation-id":"error-message"},_e)):reactExports.createElement("div",{className:this._classNames.errorMessage,"data-automation-id":"error-message"},_e):null},Object.defineProperty(i.prototype,"_isDescriptionAvailable",{get:function(){var _e=this.props;return!!(_e.onRenderDescription||_e.description||this._errorMessage)},enumerable:!1,configurable:!0}),i.prototype._renderTextArea=function(){var _e=this.props.invalid,pt=_e===void 0?!!this._errorMessage:_e,Lt=getNativeProps(this.props,textAreaProperties,["defaultValue"]),Gt=this.props["aria-labelledby"]||(this.props.label?this._labelId:void 0);return reactExports.createElement("textarea",__assign$1({id:this._id},Lt,{ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-labelledby":Gt,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":pt,"aria-label":this.props.ariaLabel,readOnly:this.props.readOnly,onFocus:this._onFocus,onBlur:this._onBlur}))},i.prototype._renderInput=function(){var _e=this.props,pt=_e.ariaLabel,Lt=_e.invalid,Gt=Lt===void 0?!!this._errorMessage:Lt,Ct=_e.onRenderPrefix,Rt=_e.onRenderSuffix,o=_e.prefix,it=_e.suffix,xt=_e.type,et=xt===void 0?"text":xt,Et=_e.label,mt=[];Et&&mt.push(this._labelId),(o!==void 0||Ct)&&mt.push(this._prefixId),(it!==void 0||Rt)&&mt.push(this._suffixId);var ut=__assign$1(__assign$1({type:this.state.isRevealingPassword?"text":et,id:this._id},getNativeProps(this.props,inputProperties,["defaultValue","type"])),{"aria-labelledby":this.props["aria-labelledby"]||(mt.length>0?mt.join(" "):void 0),ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-label":pt,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":Gt,onFocus:this._onFocus,onBlur:this._onBlur}),ht=function(_){return reactExports.createElement("input",__assign$1({},_))},j=this.props.onRenderInput||ht;return j(ut,ht)},i.prototype._validate=function(_e){var pt=this;if(!(this._latestValidateValue===_e&&_shouldValidateAllChanges(this.props))){this._latestValidateValue=_e;var Lt=this.props.onGetErrorMessage,Gt=Lt&&Lt(_e||"");if(Gt!==void 0)if(typeof Gt=="string"||!("then"in Gt))this.setState({errorMessage:Gt}),this._notifyAfterValidate(_e,Gt);else{var Ct=++this._lastValidation;Gt.then(function(Rt){Ct===pt._lastValidation&&pt.setState({errorMessage:Rt}),pt._notifyAfterValidate(_e,Rt)})}else this._notifyAfterValidate(_e,"")}},i.prototype._notifyAfterValidate=function(_e,pt){_e===this.value&&this.props.onNotifyValidationResult&&this.props.onNotifyValidationResult(pt,_e)},i.prototype._adjustInputHeight=function(){if(this._textElement.current&&this.props.autoAdjustHeight&&this.props.multiline){var _e=this._textElement.current;_e.style.height="",_e.style.height=_e.scrollHeight+"px"}},i.defaultProps={resizable:!0,deferredValidationTime:200,validateOnLoad:!0},i}(reactExports.Component);function _getValue(a,i){var _e=a.value,pt=_e===void 0?i.uncontrolledValue:_e;return typeof pt=="number"?String(pt):pt}function _shouldValidateAllChanges(a){return!(a.validateOnFocusIn||a.validateOnFocusOut)}var __browserNeedsRevealButton;function _browserNeedsRevealButton(){if(typeof __browserNeedsRevealButton!="boolean"){var a=getWindow();if(a!=null&&a.navigator){var i=/Edg/.test(a.navigator.userAgent||"");__browserNeedsRevealButton=!(isIE11()||i)}else __browserNeedsRevealButton=!0}return __browserNeedsRevealButton}var globalClassNames$1={root:"ms-TextField",description:"ms-TextField-description",errorMessage:"ms-TextField-errorMessage",field:"ms-TextField-field",fieldGroup:"ms-TextField-fieldGroup",prefix:"ms-TextField-prefix",suffix:"ms-TextField-suffix",wrapper:"ms-TextField-wrapper",revealButton:"ms-TextField-reveal",multiline:"ms-TextField--multiline",borderless:"ms-TextField--borderless",underlined:"ms-TextField--underlined",unresizable:"ms-TextField--unresizable",required:"is-required",disabled:"is-disabled",active:"is-active"};function getLabelStyles(a){var i=a.underlined,_e=a.disabled,pt=a.focused,Lt=a.theme,Gt=Lt.palette,Ct=Lt.fonts;return function(){var Rt;return{root:[i&&_e&&{color:Gt.neutralTertiary},i&&{fontSize:Ct.medium.fontSize,marginRight:8,paddingLeft:12,paddingRight:0,lineHeight:"22px",height:32},i&&pt&&{selectors:(Rt={},Rt[HighContrastSelector]={height:31},Rt)}]}}}function getStyles$7(a){var i,_e,pt,Lt,Gt,Ct,Rt,o,it,xt,et,Et,mt=a.theme,ut=a.className,ht=a.disabled,j=a.focused,_=a.required,rt=a.multiline,tt=a.hasLabel,st=a.borderless,ot=a.underlined,nt=a.hasIcon,vt=a.resizable,dt=a.hasErrorMessage,bt=a.inputClassName,ft=a.autoAdjustHeight,at=a.hasRevealButton,yt=mt.semanticColors,St=mt.effects,_t=mt.fonts,Mt=getGlobalClassNames(globalClassNames$1,mt),Tt={background:yt.disabledBackground,color:ht?yt.disabledText:yt.inputPlaceholderText,display:"flex",alignItems:"center",padding:"0 10px",lineHeight:1,whiteSpace:"nowrap",flexShrink:0,selectors:(i={},i[HighContrastSelector]={background:"Window",color:ht?"GrayText":"WindowText"},i)},kt=[{color:yt.inputPlaceholderText,opacity:1,selectors:(_e={},_e[HighContrastSelector]={color:"GrayText"},_e)}],wt={color:yt.disabledText,selectors:(pt={},pt[HighContrastSelector]={color:"GrayText"},pt)};return{root:[Mt.root,_t.medium,_&&Mt.required,ht&&Mt.disabled,j&&Mt.active,rt&&Mt.multiline,st&&Mt.borderless,ot&&Mt.underlined,normalize$6,{position:"relative"},ut],wrapper:[Mt.wrapper,ot&&[{display:"flex",borderBottom:"1px solid "+(dt?yt.errorText:yt.inputBorder),width:"100%"},ht&&{borderBottomColor:yt.disabledBackground,selectors:(Lt={},Lt[HighContrastSelector]=__assign$1({borderColor:"GrayText"},getHighContrastNoAdjustStyle()),Lt)},!ht&&{selectors:{":hover":{borderBottomColor:dt?yt.errorText:yt.inputBorderHovered,selectors:(Gt={},Gt[HighContrastSelector]=__assign$1({borderBottomColor:"Highlight"},getHighContrastNoAdjustStyle()),Gt)}}},j&&[{position:"relative"},getInputFocusStyle(dt?yt.errorText:yt.inputFocusBorderAlt,0,"borderBottom")]]],fieldGroup:[Mt.fieldGroup,normalize$6,{border:"1px solid "+yt.inputBorder,borderRadius:St.roundedCorner2,background:yt.inputBackground,cursor:"text",height:32,display:"flex",flexDirection:"row",alignItems:"stretch",position:"relative"},rt&&{minHeight:"60px",height:"auto",display:"flex"},!j&&!ht&&{selectors:{":hover":{borderColor:yt.inputBorderHovered,selectors:(Ct={},Ct[HighContrastSelector]=__assign$1({borderColor:"Highlight"},getHighContrastNoAdjustStyle()),Ct)}}},j&&!ot&&getInputFocusStyle(dt?yt.errorText:yt.inputFocusBorderAlt,St.roundedCorner2),ht&&{borderColor:yt.disabledBackground,selectors:(Rt={},Rt[HighContrastSelector]=__assign$1({borderColor:"GrayText"},getHighContrastNoAdjustStyle()),Rt),cursor:"default"},st&&{border:"none"},st&&j&&{border:"none",selectors:{":after":{border:"none"}}},ot&&{flex:"1 1 0px",border:"none",textAlign:"left"},ot&&ht&&{backgroundColor:"transparent"},dt&&!ot&&{borderColor:yt.errorText,selectors:{"&:hover":{borderColor:yt.errorText}}},!tt&&_&&{selectors:(o={":before":{content:"'*'",color:yt.errorText,position:"absolute",top:-5,right:-10}},o[HighContrastSelector]={selectors:{":before":{color:"WindowText",right:-14}}},o)}],field:[_t.medium,Mt.field,normalize$6,{borderRadius:0,border:"none",background:"none",backgroundColor:"transparent",color:yt.inputText,padding:"0 8px",width:"100%",minWidth:0,textOverflow:"ellipsis",outline:0,selectors:(it={"&:active, &:focus, &:hover":{outline:0},"::-ms-clear":{display:"none"}},it[HighContrastSelector]={background:"Window",color:ht?"GrayText":"WindowText"},it)},getPlaceholderStyles(kt),rt&&!vt&&[Mt.unresizable,{resize:"none"}],rt&&{minHeight:"inherit",lineHeight:17,flexGrow:1,paddingTop:6,paddingBottom:6,overflow:"auto",width:"100%"},rt&&ft&&{overflow:"hidden"},nt&&!at&&{paddingRight:24},rt&&nt&&{paddingRight:40},ht&&[{backgroundColor:yt.disabledBackground,color:yt.disabledText,borderColor:yt.disabledBackground},getPlaceholderStyles(wt)],ot&&{textAlign:"left"},j&&!st&&{selectors:(xt={},xt[HighContrastSelector]={paddingLeft:11,paddingRight:11},xt)},j&&rt&&!st&&{selectors:(et={},et[HighContrastSelector]={paddingTop:4},et)},bt],icon:[rt&&{paddingRight:24,alignItems:"flex-end"},{pointerEvents:"none",position:"absolute",bottom:6,right:8,top:"auto",fontSize:IconFontSizes.medium,lineHeight:18},ht&&{color:yt.disabledText}],description:[Mt.description,{color:yt.bodySubtext,fontSize:_t.xSmall.fontSize}],errorMessage:[Mt.errorMessage,AnimationClassNames.slideDownIn20,_t.small,{color:yt.errorText,margin:0,paddingTop:5,display:"flex",alignItems:"center"}],prefix:[Mt.prefix,Tt],suffix:[Mt.suffix,Tt],revealButton:[Mt.revealButton,"ms-Button","ms-Button--icon",getFocusStyle(mt,{inset:1}),{height:30,width:32,border:"none",padding:"0px 4px",backgroundColor:"transparent",color:yt.link,selectors:{":hover":{outline:0,color:yt.primaryButtonBackgroundHovered,backgroundColor:yt.buttonBackgroundHovered,selectors:(Et={},Et[HighContrastSelector]={borderColor:"Highlight",color:"Highlight"},Et)},":focus":{outline:0}}},nt&&{marginRight:28}],revealSpan:{display:"flex",height:"100%",alignItems:"center"},revealIcon:{margin:"0px 4px",pointerEvents:"none",bottom:6,right:8,top:"auto",fontSize:IconFontSizes.medium,lineHeight:18},subComponentStyles:{label:getLabelStyles(a)}}}var TextField=styled(TextFieldBase,getStyles$7,void 0,{scope:"TextField"}),ScrollToMode={auto:0,top:1,bottom:2,center:3},getScrollHeight=function(a){if(a===void 0)return 0;var i=0;return"scrollHeight"in a?i=a.scrollHeight:"document"in a&&(i=a.document.documentElement.scrollHeight),i},getScrollYPosition=function(a){if(a===void 0)return 0;var i=0;return"scrollTop"in a?i=a.scrollTop:"scrollY"in a&&(i=a.scrollY),Math.ceil(i)},setScrollYPosition=function(a,i){"scrollTop"in a?a.scrollTop=i:"scrollY"in a&&a.scrollTo(a.scrollX,i)},RESIZE_DELAY=16,MIN_SCROLL_UPDATE_DELAY=100,MAX_SCROLL_UPDATE_DELAY=500,IDLE_DEBOUNCE_DELAY=200,DONE_SCROLLING_WAIT=500,DEFAULT_ITEMS_PER_PAGE=10,DEFAULT_PAGE_HEIGHT=30,DEFAULT_RENDERED_WINDOWS_BEHIND=2,DEFAULT_RENDERED_WINDOWS_AHEAD=2,PAGE_KEY_PREFIX="page-",SPACER_KEY_PREFIX="spacer-",EMPTY_RECT={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},_measurePageRect=function(a){return a.getBoundingClientRect()},_measureSurfaceRect=_measurePageRect,_measureScrollRect=_measurePageRect,List=function(a){__extends(i,a);function i(_e){var pt=a.call(this,_e)||this;return pt._root=reactExports.createRef(),pt._surface=reactExports.createRef(),pt._pageRefs={},pt._getDerivedStateFromProps=function(Lt,Gt){return(Lt.items!==pt.props.items||Lt.renderCount!==pt.props.renderCount||Lt.startIndex!==pt.props.startIndex||Lt.version!==pt.props.version||!Gt.hasMounted)&&canUseDOM()?(pt._resetRequiredWindows(),pt._requiredRect=null,pt._measureVersion++,pt._invalidatePageCache(),pt._updatePages(Lt,Gt)):Gt},pt._onRenderRoot=function(Lt){var Gt=Lt.rootRef,Ct=Lt.surfaceElement,Rt=Lt.divProps;return reactExports.createElement("div",__assign$1({ref:Gt},Rt),Ct)},pt._onRenderSurface=function(Lt){var Gt=Lt.surfaceRef,Ct=Lt.pageElements,Rt=Lt.divProps;return reactExports.createElement("div",__assign$1({ref:Gt},Rt),Ct)},pt._onRenderPage=function(Lt,Gt){for(var Ct,Rt=pt.props,o=Rt.onRenderCell,it=Rt.onRenderCellConditional,xt=Rt.role,et=Lt.page,Et=et.items,mt=Et===void 0?[]:Et,ut=et.startIndex,ht=__rest$5(Lt,["page"]),j=xt===void 0?"listitem":"presentation",_=[],rt=0;rt_e;if(ut){if(pt&&this._scrollElement){for(var ht=_measureScrollRect(this._scrollElement),j=getScrollYPosition(this._scrollElement),_={top:j,bottom:j+ht.height},rt=_e-et,tt=0;tt=_.top&&st<=_.bottom;if(ot)return;var nt=it<_.top,vt=st>_.bottom;nt||vt&&(it=st-ht.height)}this._scrollElement&&setScrollYPosition(this._scrollElement,it);return}it+=mt}},i.prototype.getStartItemIndexInView=function(_e){for(var pt=this.state.pages||[],Lt=0,Gt=pt;Lt=Ct.top&&(this._scrollTop||0)<=Ct.top+Ct.height;if(Rt)if(_e)for(var it=0,xt=Ct.startIndex;xt0?Gt:void 0,"aria-label":xt.length>0?et["aria-label"]:void 0})})},i.prototype._shouldVirtualize=function(_e){_e===void 0&&(_e=this.props);var pt=_e.onShouldVirtualize;return!pt||pt(_e)},i.prototype._invalidatePageCache=function(){this._pageCache={}},i.prototype._renderPage=function(_e){var pt=this,Lt=this.props.usePageCache,Gt;if(Lt&&(Gt=this._pageCache[_e.key],Gt&&Gt.pageElement))return Gt.pageElement;var Ct=this._getPageStyle(_e),Rt=this.props.onRenderPage,o=Rt===void 0?this._onRenderPage:Rt,it=o({page:_e,className:"ms-List-page",key:_e.key,ref:function(xt){pt._pageRefs[_e.key]=xt},style:Ct,role:"presentation"},this._onRenderPage);return Lt&&_e.startIndex===0&&(this._pageCache[_e.key]={page:_e,pageElement:it}),it},i.prototype._getPageStyle=function(_e){var pt=this.props.getPageStyle;return __assign$1(__assign$1({},pt?pt(_e):{}),_e.items?{}:{height:_e.height})},i.prototype._onFocus=function(_e){for(var pt=_e.target;pt!==this._surface.current;){var Lt=pt.getAttribute("data-list-index");if(Lt){this._focusedIndex=Number(Lt);break}pt=getParent(pt)}},i.prototype._onScroll=function(){!this.state.isScrolling&&!this.props.ignoreScrollingState&&this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDone()},i.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},i.prototype._onAsyncScroll=function(){this._updateRenderRects(this.props,this.state),(!this._materializedRect||!_isContainedWithin(this._requiredRect,this._materializedRect))&&this.setState(this._updatePages(this.props,this.state))},i.prototype._onAsyncIdle=function(){var _e=this.props,pt=_e.renderedWindowsAhead,Lt=_e.renderedWindowsBehind,Gt=this,Ct=Gt._requiredWindowsAhead,Rt=Gt._requiredWindowsBehind,o=Math.min(pt,Ct+1),it=Math.min(Lt,Rt+1);(o!==Ct||it!==Rt)&&(this._requiredWindowsAhead=o,this._requiredWindowsBehind=it,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(pt>o||Lt>it)&&this._onAsyncIdle()},i.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||this.setState({isScrolling:!1})},i.prototype._onAsyncResize=function(){this.forceUpdate()},i.prototype._updatePages=function(_e,pt){this._requiredRect||this._updateRenderRects(_e,pt);var Lt=this._buildPages(_e,pt),Gt=pt.pages;return this._notifyPageChanges(Gt,Lt.pages,this.props),__assign$1(__assign$1(__assign$1({},pt),Lt),{pagesVersion:{}})},i.prototype._notifyPageChanges=function(_e,pt,Lt){var Gt=Lt.onPageAdded,Ct=Lt.onPageRemoved;if(Gt||Ct){for(var Rt={},o=0,it=_e;o-1,St=!_||at>=_.top&&et<=_.bottom,_t=!tt._requiredRect||at>=tt._requiredRect.top&&et<=tt._requiredRect.bottom,Mt=!j&&(_t||St&&yt)||!ht,Tt=mt>=nt&&mt=tt._visibleRect.top&&et<=tt._visibleRect.bottom),it.push(ct),_t&&tt._allowedRect&&_mergeRect(o,{top:et,bottom:at,height:dt,left:_.left,right:_.right,width:_.width})}else Et||(Et=tt._createPage(SPACER_KEY_PREFIX+nt,void 0,nt,0,void 0,bt,!0)),Et.height=(Et.height||0)+(at-et)+1,Et.itemCount+=xt;if(et+=at-et+1,j&&ht)return"break"},tt=this,st=Ct;stthis._estimatedPageHeight/3)&&(o=this._surfaceRect=_measureSurfaceRect(this._surface.current),this._scrollTop=xt),(Lt||!it||it!==this._scrollHeight)&&this._measureVersion++,this._scrollHeight=it||0;var et=Math.max(0,-o.top),Et=getWindow(this._root.current),mt={top:et,left:o.left,bottom:et+Et.innerHeight,right:o.right,width:o.width,height:Et.innerHeight};this._requiredRect=_expandRect(mt,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=_expandRect(mt,Ct,Gt),this._visibleRect=mt}},i.defaultProps={startIndex:0,onRenderCell:function(_e,pt,Lt){return reactExports.createElement(reactExports.Fragment,null,_e&&_e.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:DEFAULT_RENDERED_WINDOWS_AHEAD,renderedWindowsBehind:DEFAULT_RENDERED_WINDOWS_BEHIND},i}(reactExports.Component);function _expandRect(a,i,_e){var pt=a.top-i*a.height,Lt=a.height+(i+_e)*a.height;return{top:pt,bottom:pt+Lt,height:Lt,left:a.left,right:a.right,width:a.width}}function _isContainedWithin(a,i){return a.top>=i.top&&a.left>=i.left&&a.bottom<=i.bottom&&a.right<=i.right}function _mergeRect(a,i){return a.top=i.topa.bottom||a.bottom===-1?i.bottom:a.bottom,a.right=i.right>a.right||a.right===-1?i.right:a.right,a.width=a.right-a.left+1,a.height=a.bottom-a.top+1,a}var SpinnerSize;(function(a){a[a.xSmall=0]="xSmall",a[a.small=1]="small",a[a.medium=2]="medium",a[a.large=3]="large"})(SpinnerSize||(SpinnerSize={}));var SpinnerType;(function(a){a[a.normal=0]="normal",a[a.large=1]="large"})(SpinnerType||(SpinnerType={}));var getClassNames$7=classNamesFunction(),SpinnerBase=function(a){__extends(i,a);function i(){return a!==null&&a.apply(this,arguments)||this}return i.prototype.render=function(){var _e=this.props,pt=_e.type,Lt=_e.size,Gt=_e.ariaLabel,Ct=_e.ariaLive,Rt=_e.styles,o=_e.label,it=_e.theme,xt=_e.className,et=_e.labelPosition,Et=Gt,mt=getNativeProps(this.props,divProperties,["size"]),ut=Lt;ut===void 0&&pt!==void 0&&(ut=pt===SpinnerType.large?SpinnerSize.large:SpinnerSize.medium);var ht=getClassNames$7(Rt,{theme:it,size:ut,className:xt,labelPosition:et});return reactExports.createElement("div",__assign$1({},mt,{className:ht.root}),reactExports.createElement("div",{className:ht.circle}),o&&reactExports.createElement("div",{className:ht.label},o),Et&&reactExports.createElement("div",{role:"status","aria-live":Ct},reactExports.createElement(DelayedRender,null,reactExports.createElement("div",{className:ht.screenReaderText},Et))))},i.defaultProps={size:SpinnerSize.medium,ariaLive:"polite",labelPosition:"bottom"},i}(reactExports.Component),GlobalClassNames$6={root:"ms-Spinner",circle:"ms-Spinner-circle",label:"ms-Spinner-label"},spinAnimation=memoizeFunction(function(){return keyframes({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}})}),getStyles$6=function(a){var i,_e=a.theme,pt=a.size,Lt=a.className,Gt=a.labelPosition,Ct=_e.palette,Rt=getGlobalClassNames(GlobalClassNames$6,_e);return{root:[Rt.root,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},Gt==="top"&&{flexDirection:"column-reverse"},Gt==="right"&&{flexDirection:"row"},Gt==="left"&&{flexDirection:"row-reverse"},Lt],circle:[Rt.circle,{boxSizing:"border-box",borderRadius:"50%",border:"1.5px solid "+Ct.themeLight,borderTopColor:Ct.themePrimary,animationName:spinAnimation(),animationDuration:"1.3s",animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(.53,.21,.29,.67)",selectors:(i={},i[HighContrastSelector]=__assign$1({borderTopColor:"Highlight"},getHighContrastNoAdjustStyle()),i)},pt===SpinnerSize.xSmall&&["ms-Spinner--xSmall",{width:12,height:12}],pt===SpinnerSize.small&&["ms-Spinner--small",{width:16,height:16}],pt===SpinnerSize.medium&&["ms-Spinner--medium",{width:20,height:20}],pt===SpinnerSize.large&&["ms-Spinner--large",{width:28,height:28}]],label:[Rt.label,_e.fonts.small,{color:Ct.themePrimary,margin:"8px 0 0",textAlign:"center"},Gt==="top"&&{margin:"0 0 8px"},Gt==="right"&&{margin:"0 0 0 8px"},Gt==="left"&&{margin:"0 8px 0 0"}],screenReaderText:hiddenContentStyle}},Spinner=styled(SpinnerBase,getStyles$6,void 0,{scope:"Spinner"}),DialogType;(function(a){a[a.normal=0]="normal",a[a.largeHeader=1]="largeHeader",a[a.close=2]="close"})(DialogType||(DialogType={}));var animationDuration=AnimationVariables.durationValue2,globalClassNames={root:"ms-Modal",main:"ms-Dialog-main",scrollableContent:"ms-Modal-scrollableContent",isOpen:"is-open",layer:"ms-Modal-Layer"},getStyles$5=function(a){var i,_e=a.className,pt=a.containerClassName,Lt=a.scrollableContentClassName,Gt=a.isOpen,Ct=a.isVisible,Rt=a.hasBeenOpened,o=a.modalRectangleTop,it=a.theme,xt=a.topOffsetFixed,et=a.isModeless,Et=a.layerClassName,mt=a.isDefaultDragHandle,ut=a.windowInnerHeight,ht=it.palette,j=it.effects,_=it.fonts,rt=getGlobalClassNames(globalClassNames,it);return{root:[rt.root,_.medium,{backgroundColor:"transparent",position:"fixed",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",opacity:0,pointerEvents:"none",transition:"opacity "+animationDuration},xt&&typeof o=="number"&&Rt&&{alignItems:"flex-start"},Gt&&rt.isOpen,Ct&&{opacity:1},Ct&&!et&&{pointerEvents:"auto"},_e],main:[rt.main,{boxShadow:j.elevation64,borderRadius:j.roundedCorner2,backgroundColor:ht.white,boxSizing:"border-box",position:"relative",textAlign:"left",outline:"3px solid transparent",maxHeight:"calc(100% - 32px)",maxWidth:"calc(100% - 32px)",minHeight:"176px",minWidth:"288px",overflowY:"auto",zIndex:et?ZIndexes.Layer:void 0},et&&{pointerEvents:"auto"},xt&&typeof o=="number"&&Rt&&{top:o},mt&&{cursor:"move"},pt],scrollableContent:[rt.scrollableContent,{overflowY:"auto",flexGrow:1,maxHeight:"100vh",selectors:(i={},i["@supports (-webkit-overflow-scrolling: touch)"]={maxHeight:ut},i)},Lt],layer:et&&[Et,rt.layer,{pointerEvents:"none"}],keyboardMoveIconContainer:{position:"absolute",display:"flex",justifyContent:"center",width:"100%",padding:"3px 0px"},keyboardMoveIcon:{fontSize:_.xLargePlus.fontSize,width:"24px"}}},getClassNames$6=classNamesFunction(),OverlayBase=function(a){__extends(i,a);function i(_e){var pt=a.call(this,_e)||this;initializeComponentRef(pt);var Lt=pt.props.allowTouchBodyScroll,Gt=Lt===void 0?!1:Lt;return pt._allowTouchBodyScroll=Gt,pt}return i.prototype.componentDidMount=function(){!this._allowTouchBodyScroll&&disableBodyScroll()},i.prototype.componentWillUnmount=function(){!this._allowTouchBodyScroll&&enableBodyScroll()},i.prototype.render=function(){var _e=this.props,pt=_e.isDarkThemed,Lt=_e.className,Gt=_e.theme,Ct=_e.styles,Rt=getNativeProps(this.props,divProperties),o=getClassNames$6(Ct,{theme:Gt,className:Lt,isDark:pt});return reactExports.createElement("div",__assign$1({},Rt,{className:o.root}))},i}(reactExports.Component),GlobalClassNames$5={root:"ms-Overlay",rootDark:"ms-Overlay--dark"},getStyles$4=function(a){var i,_e=a.className,pt=a.theme,Lt=a.isNone,Gt=a.isDark,Ct=pt.palette,Rt=getGlobalClassNames(GlobalClassNames$5,pt);return{root:[Rt.root,pt.fonts.medium,{backgroundColor:Ct.whiteTranslucent40,top:0,right:0,bottom:0,left:0,position:"absolute",selectors:(i={},i[HighContrastSelector]={border:"1px solid WindowText",opacity:0},i)},Lt&&{visibility:"hidden"},Gt&&[Rt.rootDark,{backgroundColor:Ct.blackTranslucent40}],_e]}},Overlay=styled(OverlayBase,getStyles$4,void 0,{scope:"Overlay"}),getClassNames$5=memoizeFunction(function(a,i){return{root:mergeStyles(a,i&&{touchAction:"none",selectors:{"& *":{userSelect:"none"}}})}}),eventMapping={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},DraggableZone=function(a){__extends(i,a);function i(_e){var pt=a.call(this,_e)||this;return pt._currentEventType=eventMapping.mouse,pt._events=[],pt._onMouseDown=function(Lt){var Gt=reactExports.Children.only(pt.props.children).props.onMouseDown;return Gt&&Gt(Lt),pt._currentEventType=eventMapping.mouse,pt._onDragStart(Lt)},pt._onMouseUp=function(Lt){var Gt=reactExports.Children.only(pt.props.children).props.onMouseUp;return Gt&&Gt(Lt),pt._currentEventType=eventMapping.mouse,pt._onDragStop(Lt)},pt._onTouchStart=function(Lt){var Gt=reactExports.Children.only(pt.props.children).props.onTouchStart;return Gt&&Gt(Lt),pt._currentEventType=eventMapping.touch,pt._onDragStart(Lt)},pt._onTouchEnd=function(Lt){var Gt=reactExports.Children.only(pt.props.children).props.onTouchEnd;Gt&&Gt(Lt),pt._currentEventType=eventMapping.touch,pt._onDragStop(Lt)},pt._onDragStart=function(Lt){if(typeof Lt.button=="number"&&Lt.button!==0)return!1;if(!(pt.props.handleSelector&&!pt._matchesSelector(Lt.target,pt.props.handleSelector)||pt.props.preventDragSelector&&pt._matchesSelector(Lt.target,pt.props.preventDragSelector))){pt._touchId=pt._getTouchId(Lt);var Gt=pt._getControlPosition(Lt);if(Gt!==void 0){var Ct=pt._createDragDataFromPosition(Gt);pt.props.onStart&&pt.props.onStart(Lt,Ct),pt.setState({isDragging:!0,lastPosition:Gt}),pt._events=[on(document.body,pt._currentEventType.move,pt._onDrag,!0),on(document.body,pt._currentEventType.stop,pt._onDragStop,!0)]}}},pt._onDrag=function(Lt){Lt.type==="touchmove"&&Lt.preventDefault();var Gt=pt._getControlPosition(Lt);if(Gt){var Ct=pt._createUpdatedDragData(pt._createDragDataFromPosition(Gt)),Rt=Ct.position;pt.props.onDragChange&&pt.props.onDragChange(Lt,Ct),pt.setState({position:Rt,lastPosition:Gt})}},pt._onDragStop=function(Lt){if(pt.state.isDragging){var Gt=pt._getControlPosition(Lt);if(Gt){var Ct=pt._createDragDataFromPosition(Gt);pt.setState({isDragging:!1,lastPosition:void 0}),pt.props.onStop&&pt.props.onStop(Lt,Ct),pt.props.position&&pt.setState({position:pt.props.position}),pt._events.forEach(function(Rt){return Rt()})}}},pt.state={isDragging:!1,position:pt.props.position||{x:0,y:0},lastPosition:void 0},pt}return i.prototype.componentDidUpdate=function(_e){this.props.position&&(!_e.position||this.props.position!==_e.position)&&this.setState({position:this.props.position})},i.prototype.componentWillUnmount=function(){this._events.forEach(function(_e){return _e()})},i.prototype.render=function(){var _e=reactExports.Children.only(this.props.children),pt=_e.props,Lt=this.props.position,Gt=this.state,Ct=Gt.position,Rt=Gt.isDragging,o=Ct.x,it=Ct.y;return Lt&&!Rt&&(o=Lt.x,it=Lt.y),reactExports.cloneElement(_e,{style:__assign$1(__assign$1({},pt.style),{transform:"translate("+o+"px, "+it+"px)"}),className:getClassNames$5(pt.className,this.state.isDragging).root,onMouseDown:this._onMouseDown,onMouseUp:this._onMouseUp,onTouchStart:this._onTouchStart,onTouchEnd:this._onTouchEnd})},i.prototype._getControlPosition=function(_e){var pt=this._getActiveTouch(_e);if(!(this._touchId!==void 0&&!pt)){var Lt=pt||_e;return{x:Lt.clientX,y:Lt.clientY}}},i.prototype._getActiveTouch=function(_e){return _e.targetTouches&&this._findTouchInTouchList(_e.targetTouches)||_e.changedTouches&&this._findTouchInTouchList(_e.changedTouches)},i.prototype._getTouchId=function(_e){var pt=_e.targetTouches&&_e.targetTouches[0]||_e.changedTouches&&_e.changedTouches[0];if(pt)return pt.identifier},i.prototype._matchesSelector=function(_e,pt){if(!_e||_e===document.body)return!1;var Lt=_e.matches||_e.webkitMatchesSelector||_e.msMatchesSelector;return Lt?Lt.call(_e,pt)||this._matchesSelector(_e.parentElement,pt):!1},i.prototype._findTouchInTouchList=function(_e){if(this._touchId!==void 0){for(var pt=0;pt<_e.length;pt++)if(_e[pt].identifier===this._touchId)return _e[pt]}},i.prototype._createDragDataFromPosition=function(_e){var pt=this.state.lastPosition;return pt===void 0?{delta:{x:0,y:0},lastPosition:_e,position:_e}:{delta:{x:_e.x-pt.x,y:_e.y-pt.y},lastPosition:pt,position:_e}},i.prototype._createUpdatedDragData=function(_e){var pt=this.state.position;return{position:{x:pt.x+_e.delta.x,y:pt.y+_e.delta.y},delta:_e.delta,lastPosition:pt}},i}(reactExports.Component),ZERO={x:0,y:0},DEFAULT_PROPS={isOpen:!1,isDarkOverlay:!0,className:"",containerClassName:"",enableAriaHiddenSiblings:!0},getClassNames$4=classNamesFunction(),getMoveDelta=function(a){var i=10;return a.shiftKey?a.ctrlKey||(i=50):a.ctrlKey&&(i=1),i},useComponentRef=function(a,i){reactExports.useImperativeHandle(a.componentRef,function(){return{focus:function(){i.current&&i.current.focus()}}},[i])},ModalBase=reactExports.forwardRef(function(a,i){var _e,pt,Lt,Gt,Ct,Rt=getPropsWithDefaults(DEFAULT_PROPS,a),o=Rt.allowTouchBodyScroll,it=Rt.className,xt=Rt.children,et=Rt.containerClassName,Et=Rt.scrollableContentClassName,mt=Rt.elementToFocusOnDismiss,ut=Rt.firstFocusableSelector,ht=Rt.focusTrapZoneProps,j=Rt.forceFocusInsideTrap,_=Rt.disableRestoreFocus,rt=_===void 0?Rt.ignoreExternalFocusing:_,tt=Rt.isBlocking,st=Rt.isAlert,ot=Rt.isClickableOutsideFocusTrap,nt=Rt.isDarkOverlay,vt=Rt.onDismiss,dt=Rt.layerProps,bt=Rt.overlay,ft=Rt.isOpen,at=Rt.titleAriaId,yt=Rt.styles,St=Rt.subtitleAriaId,_t=Rt.theme,Mt=Rt.topOffsetFixed,Tt=Rt.responsiveMode,kt=Rt.onLayerDidMount,wt=Rt.isModeless,ct=Rt.dragOptions,It=Rt.onDismissed,At=Rt.enableAriaHiddenSiblings,Ot=Rt.popupProps,Pt=reactExports.useRef(null),zt=reactExports.useRef(null),Dt=useMergedRefs(zt,ht==null?void 0:ht.componentRef),Nt=reactExports.useRef(null),$t=useMergedRefs(Pt,i),Ut=useResponsiveMode($t),Ht=useId("ModalFocusTrapZone",ht==null?void 0:ht.id),Vt=useWindow(),Xt=useSetTimeout(),qt=Xt.setTimeout,er=Xt.clearTimeout,lr=reactExports.useState(ft),Jt=lr[0],Yt=lr[1],rr=reactExports.useState(ft),jt=rr[0],ar=rr[1],sr=reactExports.useState(ZERO),Zt=sr[0],Kt=sr[1],or=reactExports.useState(),tr=or[0],cr=or[1],hr=useBoolean(!1),br=hr[0],Tr=hr[1],Ir=Tr.toggle,Ar=Tr.setFalse,_r=useConst(function(){return{onModalCloseTimer:0,allowTouchBodyScroll:o,scrollableContent:null,lastSetCoordinates:ZERO,events:new EventGroup({})}}),Er=(ct||{}).keepInBounds,Rr=st??(tt&&!wt),zr=dt===void 0?"":dt.className,Br=getClassNames$4(yt,{theme:_t,className:it,containerClassName:et,scrollableContentClassName:Et,isOpen:ft,isVisible:jt,hasBeenOpened:_r.hasBeenOpened,modalRectangleTop:tr,topOffsetFixed:Mt,isModeless:wt,layerClassName:zr,windowInnerHeight:Vt==null?void 0:Vt.innerHeight,isDefaultDragHandle:ct&&!ct.dragHandleSelector}),kr=__assign$1(__assign$1({eventBubblingEnabled:!1},dt),{onLayerDidMount:dt&&dt.onLayerDidMount?dt.onLayerDidMount:kt,insertFirst:(dt==null?void 0:dt.insertFirst)||wt,className:Br.layer}),Nr=reactExports.useCallback(function(Or){Or?_r.allowTouchBodyScroll?allowOverscrollOnElement(Or,_r.events):allowScrollOnElement(Or,_r.events):_r.events.off(_r.scrollableContent),_r.scrollableContent=Or},[_r]),Qr=function(){var Or=Nt.current,Ur=Or==null?void 0:Or.getBoundingClientRect();Ur&&(Mt&&cr(Ur.top),Er&&(_r.minPosition={x:-Ur.left,y:-Ur.top},_r.maxPosition={x:Ur.left,y:Ur.top}))},sn=reactExports.useCallback(function(Or,Ur){var jr=_r.minPosition,Gr=_r.maxPosition;return Er&&jr&&Gr&&(Ur=Math.max(jr[Or],Ur),Ur=Math.min(Gr[Or],Ur)),Ur},[Er,_r]),un=function(){var Or;_r.lastSetCoordinates=ZERO,Ar(),_r.isInKeyboardMoveMode=!1,Yt(!1),Kt(ZERO),(Or=_r.disposeOnKeyUp)===null||Or===void 0||Or.call(_r),It==null||It()},qr=reactExports.useCallback(function(){Ar(),_r.isInKeyboardMoveMode=!1},[_r,Ar]),Xr=reactExports.useCallback(function(Or,Ur){Kt(function(jr){return{x:sn("x",jr.x+Ur.delta.x),y:sn("y",jr.y+Ur.delta.y)}})},[sn]),ln=reactExports.useCallback(function(){zt.current&&zt.current.focus()},[]),mn=function(){var Or=function(Ur){if(Ur.altKey&&Ur.ctrlKey&&Ur.keyCode===KeyCodes.space){Ur.preventDefault(),Ur.stopPropagation();return}var jr=Ur.altKey||Ur.keyCode===KeyCodes.escape;if(br&&jr&&Ar(),_r.isInKeyboardMoveMode&&(Ur.keyCode===KeyCodes.escape||Ur.keyCode===KeyCodes.enter)&&(_r.isInKeyboardMoveMode=!1,Ur.preventDefault(),Ur.stopPropagation()),_r.isInKeyboardMoveMode){var Gr=!0,wr=getMoveDelta(Ur);switch(Ur.keyCode){case KeyCodes.escape:Kt(_r.lastSetCoordinates);case KeyCodes.enter:{_r.lastSetCoordinates=ZERO;break}case KeyCodes.up:{Kt(function(vr){return{x:vr.x,y:sn("y",vr.y-wr)}});break}case KeyCodes.down:{Kt(function(vr){return{x:vr.x,y:sn("y",vr.y+wr)}});break}case KeyCodes.left:{Kt(function(vr){return{x:sn("x",vr.x-wr),y:vr.y}});break}case KeyCodes.right:{Kt(function(vr){return{x:sn("x",vr.x+wr),y:vr.y}});break}default:Gr=!1}Gr&&(Ur.preventDefault(),Ur.stopPropagation())}};_r.lastSetCoordinates=Zt,Ar(),_r.isInKeyboardMoveMode=!0,_r.events.on(Vt,"keydown",Or,!0),_r.disposeOnKeyDown=function(){_r.events.off(Vt,"keydown",Or,!0),_r.disposeOnKeyDown=void 0}},pn=function(Or){var Ur,jr;(Ur=ht==null?void 0:ht.onBlur)===null||Ur===void 0||Ur.call(ht,Or),_r.lastSetCoordinates=ZERO,_r.isInKeyboardMoveMode=!1,(jr=_r.disposeOnKeyDown)===null||jr===void 0||jr.call(_r)},En=function(){var Or=function(Ur){Ur.altKey&&Ur.ctrlKey&&Ur.keyCode===KeyCodes.space&&elementContains(_r.scrollableContent,Ur.target)&&(Ir(),Ur.preventDefault(),Ur.stopPropagation())};_r.disposeOnKeyUp||(_r.events.on(Vt,"keyup",Or,!0),_r.disposeOnKeyUp=function(){_r.events.off(Vt,"keyup",Or,!0),_r.disposeOnKeyUp=void 0})};reactExports.useEffect(function(){er(_r.onModalCloseTimer),ft&&(requestAnimationFrame(function(){return qt(Qr,0)}),Yt(!0),ct&&En(),_r.hasBeenOpened=!0,ar(!0)),!ft&&Jt&&(_r.onModalCloseTimer=qt(un,parseFloat(animationDuration)*1e3),ar(!1))},[Jt,ft]),useUnmount(function(){_r.events.dispose()}),useComponentRef(Rt,zt);var Jr=reactExports.createElement(FocusTrapZone,__assign$1({},ht,{id:Ht,ref:Nt,componentRef:Dt,className:css$2(Br.main,ht==null?void 0:ht.className),elementToFocusOnDismiss:(_e=ht==null?void 0:ht.elementToFocusOnDismiss)!==null&&_e!==void 0?_e:mt,isClickableOutsideFocusTrap:(pt=ht==null?void 0:ht.isClickableOutsideFocusTrap)!==null&&pt!==void 0?pt:wt||ot||!tt,disableRestoreFocus:(Lt=ht==null?void 0:ht.disableRestoreFocus)!==null&&Lt!==void 0?Lt:rt,forceFocusInsideTrap:((Gt=ht==null?void 0:ht.forceFocusInsideTrap)!==null&&Gt!==void 0?Gt:j)&&!wt,firstFocusableSelector:(ht==null?void 0:ht.firstFocusableSelector)||ut,focusPreviouslyFocusedInnerElement:(Ct=ht==null?void 0:ht.focusPreviouslyFocusedInnerElement)!==null&&Ct!==void 0?Ct:!0,onBlur:_r.isInKeyboardMoveMode?pn:void 0}),ct&&_r.isInKeyboardMoveMode&&reactExports.createElement("div",{className:Br.keyboardMoveIconContainer},ct.keyboardMoveIconProps?reactExports.createElement(Icon,__assign$1({},ct.keyboardMoveIconProps)):reactExports.createElement(Icon,{iconName:"move",className:Br.keyboardMoveIcon})),reactExports.createElement("div",{ref:Nr,className:Br.scrollableContent,"data-is-scrollable":!0},ct&&br&&reactExports.createElement(ct.menu,{items:[{key:"move",text:ct.moveMenuItemText,onClick:mn},{key:"close",text:ct.closeMenuItemText,onClick:un}],onDismiss:Ar,alignTargetEdge:!0,coverTarget:!0,directionalHint:DirectionalHint.topLeftEdge,directionalHintFixed:!0,shouldFocusOnMount:!0,target:_r.scrollableContent}),xt));return Jt&&Ut>=(Tt||ResponsiveMode.small)&&reactExports.createElement(Layer,__assign$1({ref:$t},kr),reactExports.createElement(Popup,__assign$1({role:Rr?"alertdialog":"dialog",ariaLabelledBy:at,ariaDescribedBy:St,onDismiss:vt,shouldRestoreFocus:!rt,enableAriaHiddenSiblings:At,"aria-modal":!wt},Ot),reactExports.createElement("div",{className:Br.root,role:wt?void 0:"document"},!wt&&reactExports.createElement(Overlay,__assign$1({"aria-hidden":!0,isDarkThemed:nt,onClick:tt?void 0:vt,allowTouchBodyScroll:o},bt)),ct?reactExports.createElement(DraggableZone,{handleSelector:ct.dragHandleSelector||"#"+Ht,preventDragSelector:"button",onStart:qr,onDragChange:Xr,onStop:ln,position:Zt},Jr):Jr)))||null});ModalBase.displayName="Modal";var Modal=styled(ModalBase,getStyles$5,void 0,{scope:"Modal",fields:["theme","styles","enableAriaHiddenSiblings"]});Modal.displayName="Modal";var getClassNames$3=classNamesFunction(),DialogFooterBase=function(a){__extends(i,a);function i(_e){var pt=a.call(this,_e)||this;return initializeComponentRef(pt),pt}return i.prototype.render=function(){var _e=this.props,pt=_e.className,Lt=_e.styles,Gt=_e.theme;return this._classNames=getClassNames$3(Lt,{theme:Gt,className:pt}),reactExports.createElement("div",{className:this._classNames.actions},reactExports.createElement("div",{className:this._classNames.actionsRight},this._renderChildrenAsActions()))},i.prototype._renderChildrenAsActions=function(){var _e=this;return reactExports.Children.map(this.props.children,function(pt){return pt?reactExports.createElement("span",{className:_e._classNames.action},pt):null})},i}(reactExports.Component),GlobalClassNames$4={actions:"ms-Dialog-actions",action:"ms-Dialog-action",actionsRight:"ms-Dialog-actionsRight"},getStyles$3=function(a){var i=a.className,_e=a.theme,pt=getGlobalClassNames(GlobalClassNames$4,_e);return{actions:[pt.actions,{position:"relative",width:"100%",minHeight:"24px",lineHeight:"24px",margin:"16px 0 0",fontSize:"0",selectors:{".ms-Button":{lineHeight:"normal",verticalAlign:"middle"}}},i],action:[pt.action,{margin:"0 4px"}],actionsRight:[pt.actionsRight,{alignItems:"center",display:"flex",fontSize:"0",justifyContent:"flex-end",marginRight:"-4px"}]}},DialogFooter=styled(DialogFooterBase,getStyles$3,void 0,{scope:"DialogFooter"}),getClassNames$2=classNamesFunction(),DialogFooterType=reactExports.createElement(DialogFooter,null).type,DialogContentBase=function(a){__extends(i,a);function i(_e){var pt=a.call(this,_e)||this;return initializeComponentRef(pt),pt}return i.prototype.render=function(){var _e=this.props,pt=_e.showCloseButton,Lt=_e.className,Gt=_e.closeButtonAriaLabel,Ct=_e.onDismiss,Rt=_e.subTextId,o=_e.subText,it=_e.titleProps,xt=it===void 0?{}:it,et=_e.titleId,Et=_e.title,mt=_e.type,ut=_e.styles,ht=_e.theme,j=_e.draggableHeaderClassName,_=getClassNames$2(ut,{theme:ht,className:Lt,isLargeHeader:mt===DialogType.largeHeader,isClose:mt===DialogType.close,draggableHeaderClassName:j}),rt=this._groupChildren(),tt;return o&&(tt=reactExports.createElement("p",{className:_.subText,id:Rt},o)),reactExports.createElement("div",{className:_.content},reactExports.createElement("div",{className:_.header},reactExports.createElement("div",__assign$1({id:et,role:"heading","aria-level":1},xt,{className:css$2(_.title,xt.className)}),Et),reactExports.createElement("div",{className:_.topButton},this.props.topButtonsProps.map(function(st,ot){return reactExports.createElement(IconButton,__assign$1({key:st.uniqueId||ot},st))}),(mt===DialogType.close||pt&&mt!==DialogType.largeHeader)&&reactExports.createElement(IconButton,{className:_.button,iconProps:{iconName:"Cancel"},ariaLabel:Gt,onClick:Ct}))),reactExports.createElement("div",{className:_.inner},reactExports.createElement("div",{className:_.innerContent},tt,rt.contents),rt.footers))},i.prototype._groupChildren=function(){var _e={footers:[],contents:[]};return reactExports.Children.map(this.props.children,function(pt){typeof pt=="object"&&pt!==null&&pt.type===DialogFooterType?_e.footers.push(pt):_e.contents.push(pt)}),_e},i.defaultProps={showCloseButton:!1,className:"",topButtonsProps:[],closeButtonAriaLabel:"Close"},i=__decorate([withResponsiveMode],i),i}(reactExports.Component),GlobalClassNames$3={contentLgHeader:"ms-Dialog-lgHeader",close:"ms-Dialog--close",subText:"ms-Dialog-subText",header:"ms-Dialog-header",headerLg:"ms-Dialog--lgHeader",button:"ms-Dialog-button ms-Dialog-button--close",inner:"ms-Dialog-inner",content:"ms-Dialog-content",title:"ms-Dialog-title"},getStyles$2=function(a){var i,_e,pt,Lt=a.className,Gt=a.theme,Ct=a.isLargeHeader,Rt=a.isClose,o=a.hidden,it=a.isMultiline,xt=a.draggableHeaderClassName,et=Gt.palette,Et=Gt.fonts,mt=Gt.effects,ut=Gt.semanticColors,ht=getGlobalClassNames(GlobalClassNames$3,Gt);return{content:[Ct&&[ht.contentLgHeader,{borderTop:"4px solid "+et.themePrimary}],Rt&&ht.close,{flexGrow:1,overflowY:"hidden"},Lt],subText:[ht.subText,Et.medium,{margin:"0 0 24px 0",color:ut.bodySubtext,lineHeight:"1.5",wordWrap:"break-word",fontWeight:FontWeights.regular}],header:[ht.header,{position:"relative",width:"100%",boxSizing:"border-box"},Rt&&ht.close,xt&&[xt,{cursor:"move"}]],button:[ht.button,o&&{selectors:{".ms-Icon.ms-Icon--Cancel":{color:ut.buttonText,fontSize:IconFontSizes.medium}}}],inner:[ht.inner,{padding:"0 24px 24px",selectors:(i={},i["@media (min-width: "+ScreenWidthMinSmall+"px) and (max-width: "+ScreenWidthMaxSmall+"px)"]={padding:"0 16px 16px"},i)}],innerContent:[ht.content,{position:"relative",width:"100%"}],title:[ht.title,Et.xLarge,{color:ut.bodyText,margin:"0",minHeight:Et.xLarge.fontSize,padding:"16px 46px 20px 24px",lineHeight:"normal",selectors:(_e={},_e["@media (min-width: "+ScreenWidthMinSmall+"px) and (max-width: "+ScreenWidthMaxSmall+"px)"]={padding:"16px 46px 16px 16px"},_e)},Ct&&{color:ut.menuHeader},it&&{fontSize:Et.xxLarge.fontSize}],topButton:[{display:"flex",flexDirection:"row",flexWrap:"nowrap",position:"absolute",top:"0",right:"0",padding:"15px 15px 0 0",selectors:(pt={"> *":{flex:"0 0 auto"},".ms-Dialog-button":{color:ut.buttonText},".ms-Dialog-button:hover":{color:ut.buttonTextHovered,borderRadius:mt.roundedCorner2}},pt["@media (min-width: "+ScreenWidthMinSmall+"px) and (max-width: "+ScreenWidthMaxSmall+"px)"]={padding:"15px 8px 0 0"},pt)}]}},DialogContent=styled(DialogContentBase,getStyles$2,void 0,{scope:"DialogContent"}),getClassNames$1=classNamesFunction(),DefaultModalProps={isDarkOverlay:!1,isBlocking:!1,className:"",containerClassName:"",topOffsetFixed:!1,enableAriaHiddenSiblings:!0},DefaultDialogContentProps={type:DialogType.normal,className:"",topButtonsProps:[]},DialogBase=function(a){__extends(i,a);function i(_e){var pt=a.call(this,_e)||this;return pt._getSubTextId=function(){var Lt=pt.props,Gt=Lt.ariaDescribedById,Ct=Lt.modalProps,Rt=Lt.dialogContentProps,o=Lt.subText,it=Ct&&Ct.subtitleAriaId||Gt;return it||(it=(Rt&&Rt.subText||o)&&pt._defaultSubTextId),it},pt._getTitleTextId=function(){var Lt=pt.props,Gt=Lt.ariaLabelledById,Ct=Lt.modalProps,Rt=Lt.dialogContentProps,o=Lt.title,it=Ct&&Ct.titleAriaId||Gt;return it||(it=(Rt&&Rt.title||o)&&pt._defaultTitleTextId),it},pt._id=getId("Dialog"),pt._defaultTitleTextId=pt._id+"-title",pt._defaultSubTextId=pt._id+"-subText",pt}return i.prototype.render=function(){var _e,pt,Lt,Gt=this.props,Ct=Gt.className,Rt=Gt.containerClassName,o=Gt.contentClassName,it=Gt.elementToFocusOnDismiss,xt=Gt.firstFocusableSelector,et=Gt.forceFocusInsideTrap,Et=Gt.styles,mt=Gt.hidden,ut=Gt.disableRestoreFocus,ht=ut===void 0?Gt.ignoreExternalFocusing:ut,j=Gt.isBlocking,_=Gt.isClickableOutsideFocusTrap,rt=Gt.isDarkOverlay,tt=Gt.isOpen,st=tt===void 0?!mt:tt,ot=Gt.onDismiss,nt=Gt.onDismissed,vt=Gt.onLayerDidMount,dt=Gt.responsiveMode,bt=Gt.subText,ft=Gt.theme,at=Gt.title,yt=Gt.topButtonsProps,St=Gt.type,_t=Gt.minWidth,Mt=Gt.maxWidth,Tt=Gt.modalProps,kt=__assign$1({onLayerDidMount:vt},Tt==null?void 0:Tt.layerProps),wt,ct;Tt!=null&&Tt.dragOptions&&!(!((_e=Tt.dragOptions)===null||_e===void 0)&&_e.dragHandleSelector)&&(ct=__assign$1({},Tt.dragOptions),wt="ms-Dialog-draggable-header",ct.dragHandleSelector="."+wt);var It=__assign$1(__assign$1(__assign$1(__assign$1({},DefaultModalProps),{elementToFocusOnDismiss:it,firstFocusableSelector:xt,forceFocusInsideTrap:et,disableRestoreFocus:ht,isClickableOutsideFocusTrap:_,responsiveMode:dt,className:Ct,containerClassName:Rt,isBlocking:j,isDarkOverlay:rt,onDismissed:nt}),Tt),{dragOptions:ct,layerProps:kt,isOpen:st}),At=__assign$1(__assign$1(__assign$1({className:o,subText:bt,title:at,topButtonsProps:yt,type:St},DefaultDialogContentProps),Gt.dialogContentProps),{draggableHeaderClassName:wt,titleProps:__assign$1({id:((pt=Gt.dialogContentProps)===null||pt===void 0?void 0:pt.titleId)||this._defaultTitleTextId},(Lt=Gt.dialogContentProps)===null||Lt===void 0?void 0:Lt.titleProps)}),Ot=getClassNames$1(Et,{theme:ft,className:It.className,containerClassName:It.containerClassName,hidden:mt,dialogDefaultMinWidth:_t,dialogDefaultMaxWidth:Mt});return reactExports.createElement(Modal,__assign$1({},It,{className:Ot.root,containerClassName:Ot.main,onDismiss:ot||It.onDismiss,subtitleAriaId:this._getSubTextId(),titleAriaId:this._getTitleTextId()}),reactExports.createElement(DialogContent,__assign$1({subTextId:this._defaultSubTextId,showCloseButton:It.isBlocking,onDismiss:ot},At),Gt.children))},i.defaultProps={hidden:!0},i=__decorate([withResponsiveMode],i),i}(reactExports.Component),GlobalClassNames$2={root:"ms-Dialog"},getStyles$1=function(a){var i,_e=a.className,pt=a.containerClassName,Lt=a.dialogDefaultMinWidth,Gt=Lt===void 0?"288px":Lt,Ct=a.dialogDefaultMaxWidth,Rt=Ct===void 0?"340px":Ct,o=a.hidden,it=a.theme,xt=getGlobalClassNames(GlobalClassNames$2,it);return{root:[xt.root,it.fonts.medium,_e],main:[{width:Gt,outline:"3px solid transparent",selectors:(i={},i["@media (min-width: "+ScreenWidthMinMedium+"px)"]={width:"auto",maxWidth:Rt,minWidth:Gt},i)},!o&&{display:"flex"},pt]}},Dialog=styled(DialogBase,getStyles$1,void 0,{scope:"Dialog"});Dialog.displayName="Dialog";function initializeIcons$j(a,i){a===void 0&&(a="");var _e={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons"',src:"url('"+a+"fabric-icons-a13498cf.woff') format('woff')"},icons:{GlobalNavButton:"",ChevronDown:"",ChevronUp:"",Edit:"",Add:"",Cancel:"",More:"",Settings:"",Mail:"",Filter:"",Search:"",Share:"",BlockedSite:"",FavoriteStar:"",FavoriteStarFill:"",CheckMark:"",Delete:"",ChevronLeft:"",ChevronRight:"",Calendar:"",Megaphone:"",Undo:"",Flag:"",Page:"",Pinned:"",View:"",Clear:"",Download:"",Upload:"",Folder:"",Sort:"",AlignRight:"",AlignLeft:"",Tag:"",AddFriend:"",Info:"",SortLines:"",List:"",CircleRing:"",Heart:"",HeartFill:"",Tiles:"",Embed:"",Glimmer:"",Ascending:"",Descending:"",SortUp:"",SortDown:"",SyncToPC:"",LargeGrid:"",SkypeCheck:"",SkypeClock:"",SkypeMinus:"",ClearFilter:"",Flow:"",StatusCircleCheckmark:"",MoreVertical:""}};registerIcons(_e,i)}function initializeIcons$i(a,i){a===void 0&&(a="");var _e={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-0"',src:"url('"+a+"fabric-icons-0-467ee27f.woff') format('woff')"},icons:{PageLink:"",CommentSolid:"",ChangeEntitlements:"",Installation:"",WebAppBuilderModule:"",WebAppBuilderFragment:"",WebAppBuilderSlot:"",BullseyeTargetEdit:"",WebAppBuilderFragmentCreate:"",PageData:"",PageHeaderEdit:"",ProductList:"",UnpublishContent:"",DependencyAdd:"",DependencyRemove:"",EntitlementPolicy:"",EntitlementRedemption:"",SchoolDataSyncLogo:"",PinSolid12:"",PinSolidOff12:"",AddLink:"",SharepointAppIcon16:"",DataflowsLink:"",TimePicker:"",UserWarning:"",ComplianceAudit:"",InternetSharing:"",Brightness:"",MapPin:"",Airplane:"",Tablet:"",QuickNote:"",Video:"",People:"",Phone:"",Pin:"",Shop:"",Stop:"",Link:"",AllApps:"",Zoom:"",ZoomOut:"",Microphone:"",Camera:"",Attach:"",Send:"",FavoriteList:"",PageSolid:"",Forward:"",Back:"",Refresh:"",Lock:"",ReportHacked:"",EMI:"",MiniLink:"",Blocked:"",ReadingMode:"",Favicon:"",Remove:"",Checkbox:"",CheckboxComposite:"",CheckboxFill:"",CheckboxIndeterminate:"",CheckboxCompositeReversed:"",BackToWindow:"",FullScreen:"",Print:"",Up:"",Down:"",OEM:"",Save:"",ReturnKey:"",Cloud:"",Flashlight:"",CommandPrompt:"",Sad:"",RealEstate:"",SIPMove:"",EraseTool:"",GripperTool:"",Dialpad:"",PageLeft:"",PageRight:"",MultiSelect:"",KeyboardClassic:"",Play:"",Pause:"",InkingTool:"",Emoji2:"",GripperBarHorizontal:"",System:"",Personalize:"",SearchAndApps:"",Globe:"",EaseOfAccess:"",ContactInfo:"",Unpin:"",Contact:"",Memo:"",IncomingCall:""}};registerIcons(_e,i)}function initializeIcons$h(a,i){a===void 0&&(a="");var _e={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-1"',src:"url('"+a+"fabric-icons-1-4d521695.woff') format('woff')"},icons:{Paste:"",WindowsLogo:"",Error:"",GripperBarVertical:"",Unlock:"",Slideshow:"",Trim:"",AutoEnhanceOn:"",AutoEnhanceOff:"",Color:"",SaveAs:"",Light:"",Filters:"",AspectRatio:"",Contrast:"",Redo:"",Crop:"",PhotoCollection:"",Album:"",Rotate:"",PanoIndicator:"",Translate:"",RedEye:"",ViewOriginal:"",ThumbnailView:"",Package:"",Telemarketer:"",Warning:"",Financial:"",Education:"",ShoppingCart:"",Train:"",Move:"",TouchPointer:"",Merge:"",TurnRight:"",Ferry:"",Highlight:"",PowerButton:"",Tab:"",Admin:"",TVMonitor:"",Speakers:"",Game:"",HorizontalTabKey:"",UnstackSelected:"",StackIndicator:"",Nav2DMapView:"",StreetsideSplitMinimize:"",Car:"",Bus:"",EatDrink:"",SeeDo:"",LocationCircle:"",Home:"",SwitcherStartEnd:"",ParkingLocation:"",IncidentTriangle:"",Touch:"",MapDirections:"",CaretHollow:"",CaretSolid:"",History:"",Location:"",MapLayers:"",SearchNearby:"",Work:"",Recent:"",Hotel:"",Bank:"",LocationDot:"",Dictionary:"",ChromeBack:"",FolderOpen:"",PinnedFill:"",RevToggleKey:"",USB:"",Previous:"",Next:"",Sync:"",Help:"",Emoji:"",MailForward:"",ClosePane:"",OpenPane:"",PreviewLink:"",ZoomIn:"",Bookmarks:"",Document:"",ProtectedDocument:"",OpenInNewWindow:"",MailFill:"",ViewAll:"",Switch:"",Rename:"",Go:"",Remote:"",SelectAll:"",Orientation:"",Import:""}};registerIcons(_e,i)}function initializeIcons$g(a,i){a===void 0&&(a="");var _e={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-2"',src:"url('"+a+"fabric-icons-2-63c99abf.woff') format('woff')"},icons:{Picture:"",ChromeClose:"",ShowResults:"",Message:"",CalendarDay:"",CalendarWeek:"",MailReplyAll:"",Read:"",Cut:"",PaymentCard:"",Copy:"",Important:"",MailReply:"",GotoToday:"",Font:"",FontColor:"",FolderFill:"",Permissions:"",DisableUpdates:"",Unfavorite:"",Italic:"",Underline:"",Bold:"",MoveToFolder:"",Dislike:"",Like:"",AlignCenter:"",OpenFile:"",ClearSelection:"",FontDecrease:"",FontIncrease:"",FontSize:"",CellPhone:"",RepeatOne:"",RepeatAll:"",Calculator:"",Library:"",PostUpdate:"",NewFolder:"",CalendarReply:"",UnsyncFolder:"",SyncFolder:"",BlockContact:"",Accept:"",BulletedList:"",Preview:"",News:"",Chat:"",Group:"",World:"",Comment:"",DockLeft:"",DockRight:"",Repair:"",Accounts:"",Street:"",RadioBullet:"",Stopwatch:"",Clock:"",WorldClock:"",AlarmClock:"",Photo:"",ActionCenter:"",Hospital:"",Timer:"",FullCircleMask:"",LocationFill:"",ChromeMinimize:"",ChromeRestore:"",Annotation:"",Fingerprint:"",Handwriting:"",ChromeFullScreen:"",Completed:"",Label:"",FlickDown:"",FlickUp:"",FlickLeft:"",FlickRight:"",MiniExpand:"",MiniContract:"",Streaming:"",MusicInCollection:"",OneDriveLogo:"",CompassNW:"",Code:"",LightningBolt:"",CalculatorMultiply:"",CalculatorAddition:"",CalculatorSubtract:"",CalculatorPercentage:"",CalculatorEqualTo:"",PrintfaxPrinterFile:"",StorageOptical:"",Communications:"",Headset:"",Health:"",Webcam2:"",FrontCamera:"",ChevronUpSmall:""}};registerIcons(_e,i)}function initializeIcons$f(a,i){a===void 0&&(a="");var _e={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-3"',src:"url('"+a+"fabric-icons-3-089e217a.woff') format('woff')"},icons:{ChevronDownSmall:"",ChevronLeftSmall:"",ChevronRightSmall:"",ChevronUpMed:"",ChevronDownMed:"",ChevronLeftMed:"",ChevronRightMed:"",Devices2:"",PC1:"",PresenceChickletVideo:"",Reply:"",HalfAlpha:"",ConstructionCone:"",DoubleChevronLeftMed:"",Volume0:"",Volume1:"",Volume2:"",Volume3:"",Chart:"",Robot:"",Manufacturing:"",LockSolid:"",FitPage:"",FitWidth:"",BidiLtr:"",BidiRtl:"",RightDoubleQuote:"",Sunny:"",CloudWeather:"",Cloudy:"",PartlyCloudyDay:"",PartlyCloudyNight:"",ClearNight:"",RainShowersDay:"",Rain:"",Thunderstorms:"",RainSnow:"",Snow:"",BlowingSnow:"",Frigid:"",Fog:"",Squalls:"",Duststorm:"",Unknown:"",Precipitation:"",Ribbon:"",AreaChart:"",Assign:"",FlowChart:"",CheckList:"",Diagnostic:"",Generate:"",LineChart:"",Equalizer:"",BarChartHorizontal:"",BarChartVertical:"",Freezing:"",FunnelChart:"",Processing:"",Quantity:"",ReportDocument:"",StackColumnChart:"",SnowShowerDay:"",HailDay:"",WorkFlow:"",HourGlass:"",StoreLogoMed20:"",TimeSheet:"",TriangleSolid:"",UpgradeAnalysis:"",VideoSolid:"",RainShowersNight:"",SnowShowerNight:"",Teamwork:"",HailNight:"",PeopleAdd:"",Glasses:"",DateTime2:"",Shield:"",Header1:"",PageAdd:"",NumberedList:"",PowerBILogo:"",Info2:"",MusicInCollectionFill:"",Asterisk:"",ErrorBadge:"",CircleFill:"",Record2:"",AllAppsMirrored:"",BookmarksMirrored:"",BulletedListMirrored:"",CaretHollowMirrored:"",CaretSolidMirrored:"",ChromeBackMirrored:"",ClearSelectionMirrored:"",ClosePaneMirrored:"",DockLeftMirrored:"",DoubleChevronLeftMedMirrored:"",GoMirrored:""}};registerIcons(_e,i)}function initializeIcons$e(a,i){a===void 0&&(a="");var _e={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-4"',src:"url('"+a+"fabric-icons-4-a656cc0a.woff') format('woff')"},icons:{HelpMirrored:"",ImportMirrored:"",ImportAllMirrored:"",ListMirrored:"",MailForwardMirrored:"",MailReplyMirrored:"",MailReplyAllMirrored:"",MiniContractMirrored:"",MiniExpandMirrored:"",OpenPaneMirrored:"",ParkingLocationMirrored:"",SendMirrored:"",ShowResultsMirrored:"",ThumbnailViewMirrored:"",Media:"",Devices3:"",Focus:"",VideoLightOff:"",Lightbulb:"",StatusTriangle:"",VolumeDisabled:"",Puzzle:"",EmojiNeutral:"",EmojiDisappointed:"",HomeSolid:"",Ringer:"",PDF:"",HeartBroken:"",StoreLogo16:"",MultiSelectMirrored:"",Broom:"",AddToShoppingList:"",Cocktails:"",Wines:"",Articles:"",Cycling:"",DietPlanNotebook:"",Pill:"",ExerciseTracker:"",HandsFree:"",Medical:"",Running:"",Weights:"",Trackers:"",AddNotes:"",AllCurrency:"",BarChart4:"",CirclePlus:"",Coffee:"",Cotton:"",Market:"",Money:"",PieDouble:"",PieSingle:"",RemoveFilter:"",Savings:"",Sell:"",StockDown:"",StockUp:"",Lamp:"",Source:"",MSNVideos:"",Cricket:"",Golf:"",Baseball:"",Soccer:"",MoreSports:"",AutoRacing:"",CollegeHoops:"",CollegeFootball:"",ProFootball:"",ProHockey:"",Rugby:"",SubstitutionsIn:"",Tennis:"",Arrivals:"",Design:"",Website:"",Drop:"",HistoricalWeather:"",SkiResorts:"",Snowflake:"",BusSolid:"",FerrySolid:"",AirplaneSolid:"",TrainSolid:"",Ticket:"",WifiWarning4:"",Devices4:"",AzureLogo:"",BingLogo:"",MSNLogo:"",OutlookLogoInverse:"",OfficeLogo:"",SkypeLogo:"",Door:"",EditMirrored:"",GiftCard:"",DoubleBookmark:"",StatusErrorFull:""}};registerIcons(_e,i)}function initializeIcons$d(a,i){a===void 0&&(a="");var _e={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-5"',src:"url('"+a+"fabric-icons-5-f95ba260.woff') format('woff')"},icons:{Certificate:"",FastForward:"",Rewind:"",Photo2:"",OpenSource:"",Movers:"",CloudDownload:"",Family:"",WindDirection:"",Bug:"",SiteScan:"",BrowserScreenShot:"",F12DevTools:"",CSS:"",JS:"",DeliveryTruck:"",ReminderPerson:"",ReminderGroup:"",ReminderTime:"",TabletMode:"",Umbrella:"",NetworkTower:"",CityNext:"",CityNext2:"",Section:"",OneNoteLogoInverse:"",ToggleFilled:"",ToggleBorder:"",SliderThumb:"",ToggleThumb:"",Documentation:"",Badge:"",Giftbox:"",VisualStudioLogo:"",HomeGroup:"",ExcelLogoInverse:"",WordLogoInverse:"",PowerPointLogoInverse:"",Cafe:"",SpeedHigh:"",Commitments:"",ThisPC:"",MusicNote:"",MicOff:"",PlaybackRate1x:"",EdgeLogo:"",CompletedSolid:"",AlbumRemove:"",MessageFill:"",TabletSelected:"",MobileSelected:"",LaptopSelected:"",TVMonitorSelected:"",DeveloperTools:"",Shapes:"",InsertTextBox:"",LowerBrightness:"",WebComponents:"",OfflineStorage:"",DOM:"",CloudUpload:"",ScrollUpDown:"",DateTime:"",Event:"",Cake:"",Org:"",PartyLeader:"",DRM:"",CloudAdd:"",AppIconDefault:"",Photo2Add:"",Photo2Remove:"",Calories:"",POI:"",AddTo:"",RadioBtnOff:"",RadioBtnOn:"",ExploreContent:"",Product:"",ProgressLoopInner:"",ProgressLoopOuter:"",Blocked2:"",FangBody:"",Toolbox:"",PageHeader:"",ChatInviteFriend:"",Brush:"",Shirt:"",Crown:"",Diamond:"",ScaleUp:"",QRCode:"",Feedback:"",SharepointLogoInverse:"",YammerLogo:"",Hide:"",Uneditable:"",ReturnToSession:"",OpenFolderHorizontal:"",CalendarMirrored:""}};registerIcons(_e,i)}function initializeIcons$c(a,i){a===void 0&&(a="");var _e={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-6"',src:"url('"+a+"fabric-icons-6-ef6fd590.woff') format('woff')"},icons:{SwayLogoInverse:"",OutOfOffice:"",Trophy:"",ReopenPages:"",EmojiTabSymbols:"",AADLogo:"",AccessLogo:"",AdminALogoInverse32:"",AdminCLogoInverse32:"",AdminDLogoInverse32:"",AdminELogoInverse32:"",AdminLLogoInverse32:"",AdminMLogoInverse32:"",AdminOLogoInverse32:"",AdminPLogoInverse32:"",AdminSLogoInverse32:"",AdminYLogoInverse32:"",DelveLogoInverse:"",ExchangeLogoInverse:"",LyncLogo:"",OfficeVideoLogoInverse:"",SocialListeningLogo:"",VisioLogoInverse:"",Balloons:"",Cat:"",MailAlert:"",MailCheck:"",MailLowImportance:"",MailPause:"",MailRepeat:"",SecurityGroup:"",Table:"",VoicemailForward:"",VoicemailReply:"",Waffle:"",RemoveEvent:"",EventInfo:"",ForwardEvent:"",WipePhone:"",AddOnlineMeeting:"",JoinOnlineMeeting:"",RemoveLink:"",PeopleBlock:"",PeopleRepeat:"",PeopleAlert:"",PeoplePause:"",TransferCall:"",AddPhone:"",UnknownCall:"",NoteReply:"",NoteForward:"",NotePinned:"",RemoveOccurrence:"",Timeline:"",EditNote:"",CircleHalfFull:"",Room:"",Unsubscribe:"",Subscribe:"",HardDrive:"",RecurringTask:"",TaskManager:"",TaskManagerMirrored:"",Combine:"",Split:"",DoubleChevronUp:"",DoubleChevronLeft:"",DoubleChevronRight:"",TextBox:"",TextField:"",NumberField:"",Dropdown:"",PenWorkspace:"",BookingsLogo:"",ClassNotebookLogoInverse:"",DelveAnalyticsLogo:"",DocsLogoInverse:"",Dynamics365Logo:"",DynamicSMBLogo:"",OfficeAssistantLogo:"",OfficeStoreLogo:"",OneNoteEduLogoInverse:"",PlannerLogo:"",PowerApps:"",Suitcase:"",ProjectLogoInverse:"",CaretLeft8:"",CaretRight8:"",CaretUp8:"",CaretDown8:"",CaretLeftSolid8:"",CaretRightSolid8:"",CaretUpSolid8:"",CaretDownSolid8:"",ClearFormatting:"",Superscript:"",Subscript:"",Strikethrough:"",Export:"",ExportMirrored:""}};registerIcons(_e,i)}function initializeIcons$b(a,i){a===void 0&&(a="");var _e={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-7"',src:"url('"+a+"fabric-icons-7-2b97bb99.woff') format('woff')"},icons:{SingleBookmark:"",SingleBookmarkSolid:"",DoubleChevronDown:"",FollowUser:"",ReplyAll:"",WorkforceManagement:"",RecruitmentManagement:"",Questionnaire:"",ManagerSelfService:"",ProductionFloorManagement:"",ProductRelease:"",ProductVariant:"",ReplyMirrored:"",ReplyAllMirrored:"",Medal:"",AddGroup:"",QuestionnaireMirrored:"",CloudImportExport:"",TemporaryUser:"",CaretSolid16:"",GroupedDescending:"",GroupedAscending:"",AwayStatus:"",MyMoviesTV:"",GenericScan:"",AustralianRules:"",WifiEthernet:"",TrackersMirrored:"",DateTimeMirrored:"",StopSolid:"",DoubleChevronUp12:"",DoubleChevronDown12:"",DoubleChevronLeft12:"",DoubleChevronRight12:"",CalendarAgenda:"",ConnectVirtualMachine:"",AddEvent:"",AssetLibrary:"",DataConnectionLibrary:"",DocLibrary:"",FormLibrary:"",FormLibraryMirrored:"",ReportLibrary:"",ReportLibraryMirrored:"",ContactCard:"",CustomList:"",CustomListMirrored:"",IssueTracking:"",IssueTrackingMirrored:"",PictureLibrary:"",OfficeAddinsLogo:"",OfflineOneDriveParachute:"",OfflineOneDriveParachuteDisabled:"",TriangleSolidUp12:"",TriangleSolidDown12:"",TriangleSolidLeft12:"",TriangleSolidRight12:"",TriangleUp12:"",TriangleDown12:"",TriangleLeft12:"",TriangleRight12:"",ArrowUpRight8:"",ArrowDownRight8:"",DocumentSet:"",GoToDashboard:"",DelveAnalytics:"",ArrowUpRightMirrored8:"",ArrowDownRightMirrored8:"",CompanyDirectory:"",OpenEnrollment:"",CompanyDirectoryMirrored:"",OneDriveAdd:"",ProfileSearch:"",Header2:"",Header3:"",Header4:"",RingerSolid:"",Eyedropper:"",MarketDown:"",CalendarWorkWeek:"",SidePanel:"",GlobeFavorite:"",CaretTopLeftSolid8:"",CaretTopRightSolid8:"",ViewAll2:"",DocumentReply:"",PlayerSettings:"",ReceiptForward:"",ReceiptReply:"",ReceiptCheck:"",Fax:"",RecurringEvent:"",ReplyAlt:"",ReplyAllAlt:"",EditStyle:"",EditMail:"",Lifesaver:"",LifesaverLock:"",InboxCheck:"",FolderSearch:""}};registerIcons(_e,i)}function initializeIcons$a(a,i){a===void 0&&(a="");var _e={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-8"',src:"url('"+a+"fabric-icons-8-6fdf1528.woff') format('woff')"},icons:{CollapseMenu:"",ExpandMenu:"",Boards:"",SunAdd:"",SunQuestionMark:"",LandscapeOrientation:"",DocumentSearch:"",PublicCalendar:"",PublicContactCard:"",PublicEmail:"",PublicFolder:"",WordDocument:"",PowerPointDocument:"",ExcelDocument:"",GroupedList:"",ClassroomLogo:"",Sections:"",EditPhoto:"",Starburst:"",ShareiOS:"",AirTickets:"",PencilReply:"",Tiles2:"",SkypeCircleCheck:"",SkypeCircleClock:"",SkypeCircleMinus:"",SkypeMessage:"",ClosedCaption:"",ATPLogo:"",OfficeFormsLogoInverse:"",RecycleBin:"",EmptyRecycleBin:"",Hide2:"",Breadcrumb:"",BirthdayCake:"",TimeEntry:"",CRMProcesses:"",PageEdit:"",PageArrowRight:"",PageRemove:"",Database:"",DataManagementSettings:"",CRMServices:"",EditContact:"",ConnectContacts:"",AppIconDefaultAdd:"",AppIconDefaultList:"",ActivateOrders:"",DeactivateOrders:"",ProductCatalog:"",ScatterChart:"",AccountActivity:"",DocumentManagement:"",CRMReport:"",KnowledgeArticle:"",Relationship:"",HomeVerify:"",ZipFolder:"",SurveyQuestions:"",TextDocument:"",TextDocumentShared:"",PageCheckedOut:"",PageShared:"",SaveAndClose:"",Script:"",Archive:"",ActivityFeed:"",Compare:"",EventDate:"",ArrowUpRight:"",CaretRight:"",SetAction:"",ChatBot:"",CaretSolidLeft:"",CaretSolidDown:"",CaretSolidRight:"",CaretSolidUp:"",PowerAppsLogo:"",PowerApps2Logo:"",SearchIssue:"",SearchIssueMirrored:"",FabricAssetLibrary:"",FabricDataConnectionLibrary:"",FabricDocLibrary:"",FabricFormLibrary:"",FabricFormLibraryMirrored:"",FabricReportLibrary:"",FabricReportLibraryMirrored:"",FabricPublicFolder:"",FabricFolderSearch:"",FabricMovetoFolder:"",FabricUnsyncFolder:"",FabricSyncFolder:"",FabricOpenFolderHorizontal:"",FabricFolder:"",FabricFolderFill:"",FabricNewFolder:"",FabricPictureLibrary:"",PhotoVideoMedia:"",AddFavorite:""}};registerIcons(_e,i)}function initializeIcons$9(a,i){a===void 0&&(a="");var _e={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-9"',src:"url('"+a+"fabric-icons-9-c6162b42.woff') format('woff')"},icons:{AddFavoriteFill:"",BufferTimeBefore:"",BufferTimeAfter:"",BufferTimeBoth:"",PublishContent:"",ClipboardList:"",ClipboardListMirrored:"",CannedChat:"",SkypeForBusinessLogo:"",TabCenter:"",PageCheckedin:"",PageList:"",ReadOutLoud:"",CaretBottomLeftSolid8:"",CaretBottomRightSolid8:"",FolderHorizontal:"",MicrosoftStaffhubLogo:"",GiftboxOpen:"",StatusCircleOuter:"",StatusCircleInner:"",StatusCircleRing:"",StatusTriangleOuter:"",StatusTriangleInner:"",StatusTriangleExclamation:"",StatusCircleExclamation:"",StatusCircleErrorX:"",StatusCircleInfo:"",StatusCircleBlock:"",StatusCircleBlock2:"",StatusCircleQuestionMark:"",StatusCircleSync:"",Toll:"",ExploreContentSingle:"",CollapseContent:"",CollapseContentSingle:"",InfoSolid:"",GroupList:"",ProgressRingDots:"",CaloriesAdd:"",BranchFork:"",MuteChat:"",AddHome:"",AddWork:"",MobileReport:"",ScaleVolume:"",HardDriveGroup:"",FastMode:"",ToggleLeft:"",ToggleRight:"",TriangleShape:"",RectangleShape:"",CubeShape:"",Trophy2:"",BucketColor:"",BucketColorFill:"",Taskboard:"",SingleColumn:"",DoubleColumn:"",TripleColumn:"",ColumnLeftTwoThirds:"",ColumnRightTwoThirds:"",AccessLogoFill:"",AnalyticsLogo:"",AnalyticsQuery:"",NewAnalyticsQuery:"",AnalyticsReport:"",WordLogo:"",WordLogoFill:"",ExcelLogo:"",ExcelLogoFill:"",OneNoteLogo:"",OneNoteLogoFill:"",OutlookLogo:"",OutlookLogoFill:"",PowerPointLogo:"",PowerPointLogoFill:"",PublisherLogo:"",PublisherLogoFill:"",ScheduleEventAction:"",FlameSolid:"",ServerProcesses:"",Server:"",SaveAll:"",LinkedInLogo:"",Decimals:"",SidePanelMirrored:"",ProtectRestrict:"",Blog:"",UnknownMirrored:"",PublicContactCardMirrored:"",GridViewSmall:"",GridViewMedium:"",GridViewLarge:"",Step:"",StepInsert:"",StepShared:"",StepSharedAdd:"",StepSharedInsert:"",ViewDashboard:"",ViewList:""}};registerIcons(_e,i)}function initializeIcons$8(a,i){a===void 0&&(a="");var _e={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-10"',src:"url('"+a+"fabric-icons-10-c4ded8e4.woff') format('woff')"},icons:{ViewListGroup:"",ViewListTree:"",TriggerAuto:"",TriggerUser:"",PivotChart:"",StackedBarChart:"",StackedLineChart:"",BuildQueue:"",BuildQueueNew:"",UserFollowed:"",ContactLink:"",Stack:"",Bullseye:"",VennDiagram:"",FiveTileGrid:"",FocalPoint:"",Insert:"",RingerRemove:"",TeamsLogoInverse:"",TeamsLogo:"",TeamsLogoFill:"",SkypeForBusinessLogoFill:"",SharepointLogo:"",SharepointLogoFill:"",DelveLogo:"",DelveLogoFill:"",OfficeVideoLogo:"",OfficeVideoLogoFill:"",ExchangeLogo:"",ExchangeLogoFill:"",Signin:"",DocumentApproval:"",CloneToDesktop:"",InstallToDrive:"",Blur:"",Build:"",ProcessMetaTask:"",BranchFork2:"",BranchLocked:"",BranchCommit:"",BranchCompare:"",BranchMerge:"",BranchPullRequest:"",BranchSearch:"",BranchShelveset:"",RawSource:"",MergeDuplicate:"",RowsGroup:"",RowsChild:"",Deploy:"",Redeploy:"",ServerEnviroment:"",VisioDiagram:"",HighlightMappedShapes:"",TextCallout:"",IconSetsFlag:"",VisioLogo:"",VisioLogoFill:"",VisioDocument:"",TimelineProgress:"",TimelineDelivery:"",Backlog:"",TeamFavorite:"",TaskGroup:"",TaskGroupMirrored:"",ScopeTemplate:"",AssessmentGroupTemplate:"",NewTeamProject:"",CommentAdd:"",CommentNext:"",CommentPrevious:"",ShopServer:"",LocaleLanguage:"",QueryList:"",UserSync:"",UserPause:"",StreamingOff:"",ArrowTallUpLeft:"",ArrowTallUpRight:"",ArrowTallDownLeft:"",ArrowTallDownRight:"",FieldEmpty:"",FieldFilled:"",FieldChanged:"",FieldNotChanged:"",RingerOff:"",PlayResume:"",BulletedList2:"",BulletedList2Mirrored:"",ImageCrosshair:"",GitGraph:"",Repo:"",RepoSolid:"",FolderQuery:"",FolderList:"",FolderListMirrored:"",LocationOutline:"",POISolid:"",CalculatorNotEqualTo:"",BoxSubtractSolid:""}};registerIcons(_e,i)}function initializeIcons$7(a,i){a===void 0&&(a="");var _e={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-11"',src:"url('"+a+"fabric-icons-11-2a8393d6.woff') format('woff')"},icons:{BoxAdditionSolid:"",BoxMultiplySolid:"",BoxPlaySolid:"",BoxCheckmarkSolid:"",CirclePauseSolid:"",CirclePause:"",MSNVideosSolid:"",CircleStopSolid:"",CircleStop:"",NavigateBack:"",NavigateBackMirrored:"",NavigateForward:"",NavigateForwardMirrored:"",UnknownSolid:"",UnknownMirroredSolid:"",CircleAddition:"",CircleAdditionSolid:"",FilePDB:"",FileTemplate:"",FileSQL:"",FileJAVA:"",FileASPX:"",FileCSS:"",FileSass:"",FileLess:"",FileHTML:"",JavaScriptLanguage:"",CSharpLanguage:"",CSharp:"",VisualBasicLanguage:"",VB:"",CPlusPlusLanguage:"",CPlusPlus:"",FSharpLanguage:"",FSharp:"",TypeScriptLanguage:"",PythonLanguage:"",PY:"",CoffeeScript:"",MarkDownLanguage:"",FullWidth:"",FullWidthEdit:"",Plug:"",PlugSolid:"",PlugConnected:"",PlugDisconnected:"",UnlockSolid:"",Variable:"",Parameter:"",CommentUrgent:"",Storyboard:"",DiffInline:"",DiffSideBySide:"",ImageDiff:"",ImagePixel:"",FileBug:"",FileCode:"",FileComment:"",BusinessHoursSign:"",FileImage:"",FileSymlink:"",AutoFillTemplate:"",WorkItem:"",WorkItemBug:"",LogRemove:"",ColumnOptions:"",Packages:"",BuildIssue:"",AssessmentGroup:"",VariableGroup:"",FullHistory:"",Wheelchair:"",SingleColumnEdit:"",DoubleColumnEdit:"",TripleColumnEdit:"",ColumnLeftTwoThirdsEdit:"",ColumnRightTwoThirdsEdit:"",StreamLogo:"",PassiveAuthentication:"",AlertSolid:"",MegaphoneSolid:"",TaskSolid:"",ConfigurationSolid:"",BugSolid:"",CrownSolid:"",Trophy2Solid:"",QuickNoteSolid:"",ConstructionConeSolid:"",PageListSolid:"",PageListMirroredSolid:"",StarburstSolid:"",ReadingModeSolid:"",SadSolid:"",HealthSolid:"",ShieldSolid:"",GiftBoxSolid:"",ShoppingCartSolid:"",MailSolid:"",ChatSolid:"",RibbonSolid:""}};registerIcons(_e,i)}function initializeIcons$6(a,i){a===void 0&&(a="");var _e={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-12"',src:"url('"+a+"fabric-icons-12-7e945a1e.woff') format('woff')"},icons:{FinancialSolid:"",FinancialMirroredSolid:"",HeadsetSolid:"",PermissionsSolid:"",ParkingSolid:"",ParkingMirroredSolid:"",DiamondSolid:"",AsteriskSolid:"",OfflineStorageSolid:"",BankSolid:"",DecisionSolid:"",Parachute:"",ParachuteSolid:"",FiltersSolid:"",ColorSolid:"",ReviewSolid:"",ReviewRequestSolid:"",ReviewRequestMirroredSolid:"",ReviewResponseSolid:"",FeedbackRequestSolid:"",FeedbackRequestMirroredSolid:"",FeedbackResponseSolid:"",WorkItemBar:"",WorkItemBarSolid:"",Separator:"",NavigateExternalInline:"",PlanView:"",TimelineMatrixView:"",EngineeringGroup:"",ProjectCollection:"",CaretBottomRightCenter8:"",CaretBottomLeftCenter8:"",CaretTopRightCenter8:"",CaretTopLeftCenter8:"",DonutChart:"",ChevronUnfold10:"",ChevronFold10:"",DoubleChevronDown8:"",DoubleChevronUp8:"",DoubleChevronLeft8:"",DoubleChevronRight8:"",ChevronDownEnd6:"",ChevronUpEnd6:"",ChevronLeftEnd6:"",ChevronRightEnd6:"",ContextMenu:"",AzureAPIManagement:"",AzureServiceEndpoint:"",VSTSLogo:"",VSTSAltLogo1:"",VSTSAltLogo2:"",FileTypeSolution:"",WordLogoInverse16:"",WordLogo16:"",WordLogoFill16:"",PowerPointLogoInverse16:"",PowerPointLogo16:"",PowerPointLogoFill16:"",ExcelLogoInverse16:"",ExcelLogo16:"",ExcelLogoFill16:"",OneNoteLogoInverse16:"",OneNoteLogo16:"",OneNoteLogoFill16:"",OutlookLogoInverse16:"",OutlookLogo16:"",OutlookLogoFill16:"",PublisherLogoInverse16:"",PublisherLogo16:"",PublisherLogoFill16:"",VisioLogoInverse16:"",VisioLogo16:"",VisioLogoFill16:"",TestBeaker:"",TestBeakerSolid:"",TestExploreSolid:"",TestAutoSolid:"",TestUserSolid:"",TestImpactSolid:"",TestPlan:"",TestStep:"",TestParameter:"",TestSuite:"",TestCase:"",Sprint:"",SignOut:"",TriggerApproval:"",Rocket:"",AzureKeyVault:"",Onboarding:"",Transition:"",LikeSolid:"",DislikeSolid:"",CRMCustomerInsightsApp:"",EditCreate:"",PlayReverseResume:"",PlayReverse:"",SearchData:"",UnSetColor:"",DeclineCall:""}};registerIcons(_e,i)}function initializeIcons$5(a,i){a===void 0&&(a="");var _e={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-13"',src:"url('"+a+"fabric-icons-13-c3989a02.woff') format('woff')"},icons:{RectangularClipping:"",TeamsLogo16:"",TeamsLogoFill16:"",Spacer:"",SkypeLogo16:"",SkypeForBusinessLogo16:"",SkypeForBusinessLogoFill16:"",FilterSolid:"",MailUndelivered:"",MailTentative:"",MailTentativeMirrored:"",MailReminder:"",ReceiptUndelivered:"",ReceiptTentative:"",ReceiptTentativeMirrored:"",Inbox:"",IRMReply:"",IRMReplyMirrored:"",IRMForward:"",IRMForwardMirrored:"",VoicemailIRM:"",EventAccepted:"",EventTentative:"",EventTentativeMirrored:"",EventDeclined:"",IDBadge:"",BackgroundColor:"",OfficeFormsLogoInverse16:"",OfficeFormsLogo:"",OfficeFormsLogoFill:"",OfficeFormsLogo16:"",OfficeFormsLogoFill16:"",OfficeFormsLogoInverse24:"",OfficeFormsLogo24:"",OfficeFormsLogoFill24:"",PageLock:"",NotExecuted:"",NotImpactedSolid:"",FieldReadOnly:"",FieldRequired:"",BacklogBoard:"",ExternalBuild:"",ExternalTFVC:"",ExternalXAML:"",IssueSolid:"",DefectSolid:"",LadybugSolid:"",NugetLogo:"",TFVCLogo:"",ProjectLogo32:"",ProjectLogoFill32:"",ProjectLogo16:"",ProjectLogoFill16:"",SwayLogo32:"",SwayLogoFill32:"",SwayLogo16:"",SwayLogoFill16:"",ClassNotebookLogo32:"",ClassNotebookLogoFill32:"",ClassNotebookLogo16:"",ClassNotebookLogoFill16:"",ClassNotebookLogoInverse32:"",ClassNotebookLogoInverse16:"",StaffNotebookLogo32:"",StaffNotebookLogoFill32:"",StaffNotebookLogo16:"",StaffNotebookLogoFill16:"",StaffNotebookLogoInverted32:"",StaffNotebookLogoInverted16:"",KaizalaLogo:"",TaskLogo:"",ProtectionCenterLogo32:"",GallatinLogo:"",Globe2:"",Guitar:"",Breakfast:"",Brunch:"",BeerMug:"",Vacation:"",Teeth:"",Taxi:"",Chopsticks:"",SyncOccurence:"",UnsyncOccurence:"",GIF:"",PrimaryCalendar:"",SearchCalendar:"",VideoOff:"",MicrosoftFlowLogo:"",BusinessCenterLogo:"",ToDoLogoBottom:"",ToDoLogoTop:"",EditSolid12:"",EditSolidMirrored12:"",UneditableSolid12:"",UneditableSolidMirrored12:"",UneditableMirrored:"",AdminALogo32:"",AdminALogoFill32:"",ToDoLogoInverse:""}};registerIcons(_e,i)}function initializeIcons$4(a,i){a===void 0&&(a="");var _e={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-14"',src:"url('"+a+"fabric-icons-14-5cf58db8.woff') format('woff')"},icons:{Snooze:"",WaffleOffice365:"",ImageSearch:"",NewsSearch:"",VideoSearch:"",R:"",FontColorA:"",FontColorSwatch:"",LightWeight:"",NormalWeight:"",SemiboldWeight:"",GroupObject:"",UngroupObject:"",AlignHorizontalLeft:"",AlignHorizontalCenter:"",AlignHorizontalRight:"",AlignVerticalTop:"",AlignVerticalCenter:"",AlignVerticalBottom:"",HorizontalDistributeCenter:"",VerticalDistributeCenter:"",Ellipse:"",Line:"",Octagon:"",Hexagon:"",Pentagon:"",RightTriangle:"",HalfCircle:"",QuarterCircle:"",ThreeQuarterCircle:"","6PointStar":"","12PointStar":"",ArrangeBringToFront:"",ArrangeSendToBack:"",ArrangeSendBackward:"",ArrangeBringForward:"",BorderDash:"",BorderDot:"",LineStyle:"",LineThickness:"",WindowEdit:"",HintText:"",MediaAdd:"",AnchorLock:"",AutoHeight:"",ChartSeries:"",ChartXAngle:"",ChartYAngle:"",Combobox:"",LineSpacing:"",Padding:"",PaddingTop:"",PaddingBottom:"",PaddingLeft:"",PaddingRight:"",NavigationFlipper:"",AlignJustify:"",TextOverflow:"",VisualsFolder:"",VisualsStore:"",PictureCenter:"",PictureFill:"",PicturePosition:"",PictureStretch:"",PictureTile:"",Slider:"",SliderHandleSize:"",DefaultRatio:"",NumberSequence:"",GUID:"",ReportAdd:"",DashboardAdd:"",MapPinSolid:"",WebPublish:"",PieSingleSolid:"",BlockedSolid:"",DrillDown:"",DrillDownSolid:"",DrillExpand:"",DrillShow:"",SpecialEvent:"",OneDriveFolder16:"",FunctionalManagerDashboard:"",BIDashboard:"",CodeEdit:"",RenewalCurrent:"",RenewalFuture:"",SplitObject:"",BulkUpload:"",DownloadDocument:"",GreetingCard:"",Flower:"",WaitlistConfirm:"",WaitlistConfirmMirrored:"",LaptopSecure:"",DragObject:"",EntryView:"",EntryDecline:"",ContactCardSettings:"",ContactCardSettingsMirrored:""}};registerIcons(_e,i)}function initializeIcons$3(a,i){a===void 0&&(a="");var _e={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-15"',src:"url('"+a+"fabric-icons-15-3807251b.woff') format('woff')"},icons:{CalendarSettings:"",CalendarSettingsMirrored:"",HardDriveLock:"",HardDriveUnlock:"",AccountManagement:"",ReportWarning:"",TransitionPop:"",TransitionPush:"",TransitionEffect:"",LookupEntities:"",ExploreData:"",AddBookmark:"",SearchBookmark:"",DrillThrough:"",MasterDatabase:"",CertifiedDatabase:"",MaximumValue:"",MinimumValue:"",VisualStudioIDELogo32:"",PasteAsText:"",PasteAsCode:"",BrowserTab:"",BrowserTabScreenshot:"",DesktopScreenshot:"",FileYML:"",ClipboardSolid:"",FabricUserFolder:"",FabricNetworkFolder:"",BullseyeTarget:"",AnalyticsView:"",Video360Generic:"",Untag:"",Leave:"",Trending12:"",Blocked12:"",Warning12:"",CheckedOutByOther12:"",CheckedOutByYou12:"",CircleShapeSolid:"",SquareShapeSolid:"",TriangleShapeSolid:"",DropShapeSolid:"",RectangleShapeSolid:"",ZoomToFit:"",InsertColumnsLeft:"",InsertColumnsRight:"",InsertRowsAbove:"",InsertRowsBelow:"",DeleteColumns:"",DeleteRows:"",DeleteRowsMirrored:"",DeleteTable:"",AccountBrowser:"",VersionControlPush:"",StackedColumnChart2:"",TripleColumnWide:"",QuadColumn:"",WhiteBoardApp16:"",WhiteBoardApp32:"",PinnedSolid:"",InsertSignatureLine:"",ArrangeByFrom:"",Phishing:"",CreateMailRule:"",PublishCourse:"",DictionaryRemove:"",UserRemove:"",UserEvent:"",Encryption:"",PasswordField:"",OpenInNewTab:"",Hide3:"",VerifiedBrandSolid:"",MarkAsProtected:"",AuthenticatorApp:"",WebTemplate:"",DefenderTVM:"",MedalSolid:"",D365TalentLearn:"",D365TalentInsight:"",D365TalentHRCore:"",BacklogList:"",ButtonControl:"",TableGroup:"",MountainClimbing:"",TagUnknown:"",TagUnknownMirror:"",TagUnknown12:"",TagUnknown12Mirror:"",Link12:"",Presentation:"",Presentation12:"",Lock12:"",BuildDefinition:"",ReleaseDefinition:"",SaveTemplate:"",UserGauge:"",BlockedSiteSolid12:"",TagSolid:"",OfficeChat:""}};registerIcons(_e,i)}function initializeIcons$2(a,i){a===void 0&&(a="");var _e={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-16"',src:"url('"+a+"fabric-icons-16-9cf93f3b.woff') format('woff')"},icons:{OfficeChatSolid:"",MailSchedule:"",WarningSolid:"",Blocked2Solid:"",SkypeCircleArrow:"",SkypeArrow:"",SyncStatus:"",SyncStatusSolid:"",ProjectDocument:"",ToDoLogoOutline:"",VisioOnlineLogoFill32:"",VisioOnlineLogo32:"",VisioOnlineLogoCloud32:"",VisioDiagramSync:"",Event12:"",EventDateMissed12:"",UserOptional:"",ResponsesMenu:"",DoubleDownArrow:"",DistributeDown:"",BookmarkReport:"",FilterSettings:"",GripperDotsVertical:"",MailAttached:"",AddIn:"",LinkedDatabase:"",TableLink:"",PromotedDatabase:"",BarChartVerticalFilter:"",BarChartVerticalFilterSolid:"",MicOff2:"",MicrosoftTranslatorLogo:"",ShowTimeAs:"",FileRequest:"",WorkItemAlert:"",PowerBILogo16:"",PowerBILogoBackplate16:"",BulletedListText:"",BulletedListBullet:"",BulletedListTextMirrored:"",BulletedListBulletMirrored:"",NumberedListText:"",NumberedListNumber:"",NumberedListTextMirrored:"",NumberedListNumberMirrored:"",RemoveLinkChain:"",RemoveLinkX:"",FabricTextHighlight:"",ClearFormattingA:"",ClearFormattingEraser:"",Photo2Fill:"",IncreaseIndentText:"",IncreaseIndentArrow:"",DecreaseIndentText:"",DecreaseIndentArrow:"",IncreaseIndentTextMirrored:"",IncreaseIndentArrowMirrored:"",DecreaseIndentTextMirrored:"",DecreaseIndentArrowMirrored:"",CheckListText:"",CheckListCheck:"",CheckListTextMirrored:"",CheckListCheckMirrored:"",NumberSymbol:"",Coupon:"",VerifiedBrand:"",ReleaseGate:"",ReleaseGateCheck:"",ReleaseGateError:"",M365InvoicingLogo:"",RemoveFromShoppingList:"",ShieldAlert:"",FabricTextHighlightComposite:"",Dataflows:"",GenericScanFilled:"",DiagnosticDataBarTooltip:"",SaveToMobile:"",Orientation2:"",ScreenCast:"",ShowGrid:"",SnapToGrid:"",ContactList:"",NewMail:"",EyeShadow:"",FabricFolderConfirm:"",InformationBarriers:"",CommentActive:"",ColumnVerticalSectionEdit:"",WavingHand:"",ShakeDevice:"",SmartGlassRemote:"",Rotate90Clockwise:"",Rotate90CounterClockwise:"",CampaignTemplate:"",ChartTemplate:"",PageListFilter:"",SecondaryNav:"",ColumnVerticalSection:"",SkypeCircleSlash:"",SkypeSlash:""}};registerIcons(_e,i)}function initializeIcons$1(a,i){a===void 0&&(a="");var _e={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-17"',src:"url('"+a+"fabric-icons-17-0c4ed701.woff') format('woff')"},icons:{CustomizeToolbar:"",DuplicateRow:"",RemoveFromTrash:"",MailOptions:"",Childof:"",Footer:"",Header:"",BarChartVerticalFill:"",StackedColumnChart2Fill:"",PlainText:"",AccessibiltyChecker:"",DatabaseSync:"",ReservationOrders:"",TabOneColumn:"",TabTwoColumn:"",TabThreeColumn:"",BulletedTreeList:"",MicrosoftTranslatorLogoGreen:"",MicrosoftTranslatorLogoBlue:"",InternalInvestigation:"",AddReaction:"",ContactHeart:"",VisuallyImpaired:"",EventToDoLogo:"",Variable2:"",ModelingView:"",DisconnectVirtualMachine:"",ReportLock:"",Uneditable2:"",Uneditable2Mirrored:"",BarChartVerticalEdit:"",GlobalNavButtonActive:"",PollResults:"",Rerun:"",QandA:"",QandAMirror:"",BookAnswers:"",AlertSettings:"",TrimStart:"",TrimEnd:"",TableComputed:"",DecreaseIndentLegacy:"",IncreaseIndentLegacy:"",SizeLegacy:""}};registerIcons(_e,i)}var registerIconAliases=function(){registerIconAlias("trash","delete"),registerIconAlias("onedrive","onedrivelogo"),registerIconAlias("alertsolid12","eventdatemissed12"),registerIconAlias("sixpointstar","6pointstar"),registerIconAlias("twelvepointstar","12pointstar"),registerIconAlias("toggleon","toggleleft"),registerIconAlias("toggleoff","toggleright")};setVersion("@fluentui/font-icons-mdl2","8.5.8");var DEFAULT_BASE_URL="https://spoppe-b.azureedge.net/files/fabric-cdn-prod_20210407.001/assets/icons/",win=getWindow();function initializeIcons(a,i){var _e,pt;a===void 0&&(a=((_e=win==null?void 0:win.FabricConfig)===null||_e===void 0?void 0:_e.iconBaseUrl)||((pt=win==null?void 0:win.FabricConfig)===null||pt===void 0?void 0:pt.fontBaseUrl)||DEFAULT_BASE_URL),[initializeIcons$j,initializeIcons$i,initializeIcons$h,initializeIcons$g,initializeIcons$f,initializeIcons$e,initializeIcons$d,initializeIcons$c,initializeIcons$b,initializeIcons$a,initializeIcons$9,initializeIcons$8,initializeIcons$7,initializeIcons$6,initializeIcons$5,initializeIcons$4,initializeIcons$3,initializeIcons$2,initializeIcons$1].forEach(function(Lt){return Lt(a,i)}),registerIconAliases()}var getClassNames=classNamesFunction(),SeparatorBase=reactExports.forwardRef(function(a,i){var _e=a.styles,pt=a.theme,Lt=a.className,Gt=a.vertical,Ct=a.alignContent,Rt=a.children,o=getClassNames(_e,{theme:pt,className:Lt,alignContent:Ct,vertical:Gt});return reactExports.createElement("div",{className:o.root,ref:i},reactExports.createElement("div",{className:o.content,role:"separator","aria-orientation":Gt?"vertical":"horizontal"},Rt))}),getStyles=function(a){var i,_e,pt=a.theme,Lt=a.alignContent,Gt=a.vertical,Ct=a.className,Rt=Lt==="start",o=Lt==="center",it=Lt==="end";return{root:[pt.fonts.medium,{position:"relative"},Lt&&{textAlign:Lt},!Lt&&{textAlign:"center"},Gt&&(o||!Lt)&&{verticalAlign:"middle"},Gt&&Rt&&{verticalAlign:"top"},Gt&&it&&{verticalAlign:"bottom"},Gt&&{padding:"0 4px",height:"inherit",display:"table-cell",zIndex:1,selectors:{":after":(i={backgroundColor:pt.palette.neutralLighter,width:"1px",content:'""',position:"absolute",top:"0",bottom:"0",left:"50%",right:"0",zIndex:-1},i[HighContrastSelector]={backgroundColor:"WindowText"},i)}},!Gt&&{padding:"4px 0",selectors:{":before":(_e={backgroundColor:pt.palette.neutralLighter,height:"1px",content:'""',display:"block",position:"absolute",top:"50%",bottom:"0",left:"0",right:"0"},_e[HighContrastSelector]={backgroundColor:"WindowText"},_e)}},Ct],content:[{position:"relative",display:"inline-block",padding:"0 12px",color:pt.semanticColors.bodyText,background:pt.semanticColors.bodyBackground},Gt&&{padding:"12px 0"}]}},Separator=styled(SeparatorBase,getStyles,void 0,{scope:"Separator"});Separator.displayName="Separator";var assign=__assign$1;function withSlots(a,i){for(var _e=[],pt=2;pt0)throw new Error("Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.");return _renderSlot(i[Ct],o,pt[Ct],pt.slots&&pt.slots[Ct],pt._defaultStyles&&pt._defaultStyles[Ct],pt.theme)};Rt.isSlot=!0,_e[Ct]=Rt}};for(var Gt in i)Lt(Gt);return _e}function _translateShorthand(a,i){var _e,pt;return typeof i=="string"||typeof i=="number"||typeof i=="boolean"?pt=(_e={},_e[a]=i,_e):pt=i,pt}function _constructFinalProps(a,i){for(var _e=[],pt=2;pt2)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if(_e.length===2)return{rowGap:_getValueUnitGap(_getThemedSpacing(_e[0],i)),columnGap:_getValueUnitGap(_getThemedSpacing(_e[1],i))};var pt=_getValueUnitGap(_getThemedSpacing(a,i));return{rowGap:pt,columnGap:pt}},parsePadding=function(a,i){if(a===void 0||typeof a=="number"||a==="")return a;var _e=a.split(" ");return _e.length<2?_getThemedSpacing(a,i):_e.reduce(function(pt,Lt){return _getThemedSpacing(pt,i)+" "+_getThemedSpacing(Lt,i)})},nameMap={start:"flex-start",end:"flex-end"},GlobalClassNames={root:"ms-Stack",inner:"ms-Stack-inner",child:"ms-Stack-child"},styles$6=function(a,i,_e){var pt,Lt,Gt,Ct,Rt,o,it,xt,et,Et,mt,ut,ht,j=a.className,_=a.disableShrink,rt=a.enableScopedSelectors,tt=a.grow,st=a.horizontal,ot=a.horizontalAlign,nt=a.reversed,vt=a.verticalAlign,dt=a.verticalFill,bt=a.wrap,ft=getGlobalClassNames(GlobalClassNames,i),at=_e&&_e.childrenGap?_e.childrenGap:a.gap,yt=_e&&_e.maxHeight?_e.maxHeight:a.maxHeight,St=_e&&_e.maxWidth?_e.maxWidth:a.maxWidth,_t=_e&&_e.padding?_e.padding:a.padding,Mt=parseGap(at,i),Tt=Mt.rowGap,kt=Mt.columnGap,wt=""+-.5*kt.value+kt.unit,ct=""+-.5*Tt.value+Tt.unit,It={textOverflow:"ellipsis"},At="> "+(rt?"."+GlobalClassNames.child:"*"),Ot=(pt={},pt[At+":not(."+GlobalClassNames$1.root+")"]={flexShrink:0},pt);return bt?{root:[ft.root,{flexWrap:"wrap",maxWidth:St,maxHeight:yt,width:"auto",overflow:"visible",height:"100%"},ot&&(Lt={},Lt[st?"justifyContent":"alignItems"]=nameMap[ot]||ot,Lt),vt&&(Gt={},Gt[st?"alignItems":"justifyContent"]=nameMap[vt]||vt,Gt),j,{display:"flex"},st&&{height:dt?"100%":"auto"}],inner:[ft.inner,(Ct={display:"flex",flexWrap:"wrap",marginLeft:wt,marginRight:wt,marginTop:ct,marginBottom:ct,overflow:"visible",boxSizing:"border-box",padding:parsePadding(_t,i),width:kt.value===0?"100%":"calc(100% + "+kt.value+kt.unit+")",maxWidth:"100vw"},Ct[At]=__assign$1({margin:""+.5*Tt.value+Tt.unit+" "+.5*kt.value+kt.unit},It),Ct),_&&Ot,ot&&(Rt={},Rt[st?"justifyContent":"alignItems"]=nameMap[ot]||ot,Rt),vt&&(o={},o[st?"alignItems":"justifyContent"]=nameMap[vt]||vt,o),st&&(it={flexDirection:nt?"row-reverse":"row",height:Tt.value===0?"100%":"calc(100% + "+Tt.value+Tt.unit+")"},it[At]={maxWidth:kt.value===0?"100%":"calc(100% - "+kt.value+kt.unit+")"},it),!st&&(xt={flexDirection:nt?"column-reverse":"column",height:"calc(100% + "+Tt.value+Tt.unit+")"},xt[At]={maxHeight:Tt.value===0?"100%":"calc(100% - "+Tt.value+Tt.unit+")"},xt)]}:{root:[ft.root,(et={display:"flex",flexDirection:st?nt?"row-reverse":"row":nt?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:dt?"100%":"auto",maxWidth:St,maxHeight:yt,padding:parsePadding(_t,i),boxSizing:"border-box"},et[At]=It,et),_&&Ot,tt&&{flexGrow:tt===!0?1:tt},ot&&(Et={},Et[st?"justifyContent":"alignItems"]=nameMap[ot]||ot,Et),vt&&(mt={},mt[st?"alignItems":"justifyContent"]=nameMap[vt]||vt,mt),st&&kt.value>0&&(ut={},ut[nt?At+":not(:last-child)":At+":not(:first-child)"]={marginLeft:""+kt.value+kt.unit},ut),!st&&Tt.value>0&&(ht={},ht[nt?At+":not(:last-child)":At+":not(:first-child)"]={marginTop:""+Tt.value+Tt.unit},ht),j]}},StackView=function(a){var i=a.as,_e=i===void 0?"div":i,pt=a.disableShrink,Lt=pt===void 0?!1:pt,Gt=a.enableScopedSelectors,Ct=Gt===void 0?!1:Gt,Rt=a.wrap,o=__rest$5(a,["as","disableShrink","enableScopedSelectors","wrap"]),it=_processStackChildren(a.children,{disableShrink:Lt,enableScopedSelectors:Ct}),xt=getNativeProps(o,htmlElementProperties),et=getSlots(a,{root:_e,inner:"div"});return Rt?withSlots(et.root,__assign$1({},xt),withSlots(et.inner,null,it)):withSlots(et.root,__assign$1({},xt),it)};function _processStackChildren(a,i){var _e=i.disableShrink,pt=i.enableScopedSelectors,Lt=reactExports.Children.toArray(a);return Lt=reactExports.Children.map(Lt,function(Gt){if(!Gt||!reactExports.isValidElement(Gt))return Gt;if(Gt.type===reactExports.Fragment)return Gt.props.children?_processStackChildren(Gt.props.children,{disableShrink:_e,enableScopedSelectors:pt}):null;var Ct=Gt,Rt={};_isStackItem(Gt)&&(Rt={shrink:!_e});var o=Ct.props.className;return reactExports.cloneElement(Ct,__assign$1(__assign$1(__assign$1(__assign$1({},Rt),Ct.props),o&&{className:o}),pt&&{className:css$2(GlobalClassNames.child,o)}))}),Lt}function _isStackItem(a){return!!a&&typeof a=="object"&&!!a.type&&a.type.displayName===StackItem.displayName}var StackStatics={Item:StackItem},Stack=createComponent(StackView,{displayName:"Stack",styles:styles$6,statics:StackStatics}),TextView=function(a){if(a.children==null)return null;a.block,a.className;var i=a.as,_e=i===void 0?"span":i;a.variant,a.nowrap;var pt=__rest$5(a,["block","className","as","variant","nowrap"]),Lt=getSlots(a,{root:_e});return withSlots(Lt.root,__assign$1({},getNativeProps(pt,htmlElementProperties)))},TextStyles=function(a,i){var _e=a.as,pt=a.className,Lt=a.block,Gt=a.nowrap,Ct=a.variant,Rt=i.fonts,o=i.semanticColors,it=Rt[Ct||"medium"];return{root:[it,{color:it.color||o.bodyText,display:Lt?_e==="td"?"table-cell":"block":"inline",mozOsxFontSmoothing:it.MozOsxFontSmoothing,webkitFontSmoothing:it.WebkitFontSmoothing},Gt&&{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},pt]}},Text=createComponent(TextView,{displayName:"Text",styles:TextStyles});const __GLOBAL__=typeof window>"u"?global:window,__NAMESPACE_PREFIX__="@griffel/";function getGlobalVar(a,i){return __GLOBAL__[Symbol.for(__NAMESPACE_PREFIX__+a)]||(__GLOBAL__[Symbol.for(__NAMESPACE_PREFIX__+a)]=i),__GLOBAL__[Symbol.for(__NAMESPACE_PREFIX__+a)]}const DEFINITION_LOOKUP_TABLE=getGlobalVar("DEFINITION_LOOKUP_TABLE",{}),DATA_BUCKET_ATTR="data-make-styles-bucket",SEQUENCE_HASH_LENGTH=7,SEQUENCE_PREFIX="___",SEQUENCE_SIZE=SEQUENCE_PREFIX.length+SEQUENCE_HASH_LENGTH,LOOKUP_DEFINITIONS_INDEX=0,LOOKUP_DIR_INDEX=1;function murmur2(a){for(var i=0,_e,pt=0,Lt=a.length;Lt>=4;++pt,Lt-=4)_e=a.charCodeAt(pt)&255|(a.charCodeAt(++pt)&255)<<8|(a.charCodeAt(++pt)&255)<<16|(a.charCodeAt(++pt)&255)<<24,_e=(_e&65535)*1540483477+((_e>>>16)*59797<<16),_e^=_e>>>24,i=(_e&65535)*1540483477+((_e>>>16)*59797<<16)^(i&65535)*1540483477+((i>>>16)*59797<<16);switch(Lt){case 3:i^=(a.charCodeAt(pt+2)&255)<<16;case 2:i^=(a.charCodeAt(pt+1)&255)<<8;case 1:i^=a.charCodeAt(pt)&255,i=(i&65535)*1540483477+((i>>>16)*59797<<16)}return i^=i>>>13,i=(i&65535)*1540483477+((i>>>16)*59797<<16),((i^i>>>15)>>>0).toString(36)}function padEndHash(a){const i=a.length;if(i===SEQUENCE_HASH_LENGTH)return a;for(let _e=i;_e0&&(i+=xt.slice(0,et)),_e+=Et,pt[it]=Et}}}if(_e==="")return i.slice(0,-1);const Lt=mergeClassesCachedResults[_e];if(Lt!==void 0)return i+Lt;const Gt=[];for(let it=0;it{const i=Object.keys(mergeClassesCachedResults).find(_e=>mergeClassesCachedResults[_e].startsWith(a));return i?i.split(SEQUENCE_PREFIX).filter(_e=>_e.length).map(_e=>SEQUENCE_PREFIX+_e):[]},addCSSRule:a=>{cssRules.add(a)},addSequenceDetails:(a,i)=>{Object.entries(a).forEach(([_e,pt])=>{sequenceDetails[pt.substring(0,SEQUENCE_SIZE)]={slotName:_e,sourceURL:i}})},getCSSRules:()=>Array.from(cssRules),getSequenceDetails:a=>sequenceDetails[a]};function getDirectionalClassName(a,i){return Array.isArray(a)?i==="rtl"?a[1]:a[0]:a}function getDebugClassNames(a,i,_e,pt){const Lt=a[0],Gt=a[1];return Object.entries(Lt).map(([Ct,Rt])=>{const o=getDirectionalClassName(Rt,Gt);let it;if(_e&&i){const xt=_e.find(({className:et})=>et===o);!xt&&i[0][Ct]?it=getDirectionalClassName(i[0][Ct],i[1]):xt&&i[0][Ct]?it=(pt?pt.filter(({debugClassNames:Et})=>Et.filter(({className:mt})=>mt===o).length>0).length>0:!1)?xt.className:xt.overriddenBy:(!xt&&!i[0][Ct]||xt&&!i[0][Ct])&&(it=void 0)}return{className:o,overriddenBy:it}})}function getDebugTree(a,i){const _e=DEFINITION_LOOKUP_TABLE[a];if(_e===void 0)return;const pt=i?DEFINITION_LOOKUP_TABLE[i.sequenceHash]:void 0,Lt=getDebugClassNames(_e,pt,i==null?void 0:i.debugClassNames,i==null?void 0:i.children),Gt={sequenceHash:a,direction:_e[1],children:[],debugClassNames:Lt};return debugData.getChildrenSequences(Gt.sequenceHash).reverse().forEach(Rt=>{const o=getDebugTree(Rt,Gt);o&&Gt.children.push(o)}),Gt.children.length||(Gt.rules={},Gt.debugClassNames.forEach(({className:Rt})=>{const o=debugData.getSequenceDetails(a);o&&(Gt.slot=o.slotName,Gt.sourceURL=o.sourceURL);const it=debugData.getCSSRules().find(xt=>xt.includes(Rt));Gt.rules[Rt]=it})),Gt}function injectDevTools(a){const i=a.defaultView;if(!i||i.__GRIFFEL_DEVTOOLS__)return;const _e={getInfo:pt=>{const Lt=Array.from(pt.classList).find(Gt=>Gt.startsWith(SEQUENCE_PREFIX));if(Lt!==void 0)return getDebugTree(Lt)}};Object.defineProperty(i,"__GRIFFEL_DEVTOOLS__",{configurable:!1,enumerable:!1,get(){return _e}})}const isDevToolsEnabled=(()=>{var a;try{return Boolean(typeof window<"u"&&((a=window.sessionStorage)===null||a===void 0?void 0:a.getItem("__GRIFFEL_DEVTOOLS__")))}catch{return!1}})();function normalizeCSSBucketEntry(a){return Array.isArray(a)?a:[a]}function createIsomorphicStyleSheet(a,i,_e){const pt=[];if(_e[DATA_BUCKET_ATTR]=i,a)for(const Gt in _e)a.setAttribute(Gt,_e[Gt]);function Lt(Gt){return a!=null&&a.sheet?a.sheet.insertRule(Gt,a.sheet.cssRules.length):pt.push(Gt)}return{elementAttributes:_e,insertRule:Lt,element:a,bucketName:i,cssRules(){return a!=null&&a.sheet?Array.from(a.sheet.cssRules).map(Gt=>Gt.cssText):pt}}}const styleBucketOrdering=["r","d","l","v","w","f","i","h","a","k","t","m"],styleBucketOrderingMap=styleBucketOrdering.reduce((a,i,_e)=>(a[i]=_e,a),{});function getStyleSheetForBucket(a,i,_e,pt,Lt={}){const Gt=a==="m",Ct=Gt?a+Lt.m:a;if(!pt.stylesheets[Ct]){const Rt=i&&i.createElement("style"),o=createIsomorphicStyleSheet(Rt,a,{...pt.styleElementAttributes,...Gt&&{media:Lt.m}});pt.stylesheets[Ct]=o,i&&Rt&&i.head.insertBefore(Rt,findInsertionPoint(i,_e,a,pt,Lt))}return pt.stylesheets[Ct]}function findInsertionPoint(a,i,_e,pt,Lt){const Gt=styleBucketOrderingMap[_e];let Ct=xt=>Gt-styleBucketOrderingMap[xt.getAttribute(DATA_BUCKET_ATTR)],Rt=a.head.querySelectorAll(`[${DATA_BUCKET_ATTR}]`);if(_e==="m"&&Lt){const xt=a.head.querySelectorAll(`[${DATA_BUCKET_ATTR}="${_e}"]`);xt.length&&(Rt=xt,Ct=et=>pt.compareMediaQueries(Lt.m,et.media))}const o=Rt.length;let it=o-1;for(;it>=0;){const xt=Rt.item(it);if(Ct(xt)>0)return xt.nextSibling;it--}return o>0?Rt.item(0):i?i.nextSibling:null}let lastIndex=0;const defaultCompareMediaQueries=(a,i)=>ai?1:0;function createDOMRenderer(a=typeof document>"u"?void 0:document,i={}){const{unstable_filterCSSRule:_e,insertionPoint:pt,styleElementAttributes:Lt,compareMediaQueries:Gt=defaultCompareMediaQueries}=i,Ct={insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(Lt),compareMediaQueries:Gt,id:`d${lastIndex++}`,insertCSSRules(Rt){for(const o in Rt){const it=Rt[o];for(let xt=0,et=it.length;xt{const{title:i,primaryFill:_e="currentColor"}=a,pt=__rest$5(a,["title","primaryFill"]),Lt=Object.assign(Object.assign({},pt),{title:void 0,fill:_e}),Gt=useRootStyles();return Lt.className=mergeClasses(Gt.root,Lt.className),i&&(Lt["aria-label"]=i),!Lt["aria-label"]&&!Lt["aria-labelledby"]?Lt["aria-hidden"]=!0:Lt.role="img",Lt},wrapIcon=(a,i)=>{const _e=pt=>{const Lt=useIconState(pt);return reactExports.createElement(a,Object.assign({},Lt))};return _e.displayName=i,_e},wrapIcon$1=wrapIcon,CopyRegularIcon=a=>{const{fill:i="currentColor",className:_e}=a;return reactExports.createElement("svg",Object.assign({},a,{width:"1em",height:"1em",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:_e}),reactExports.createElement("path",{d:"M8 2a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h6a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8ZM7 4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V4ZM4 6a2 2 0 0 1 1-1.73V14.5A2.5 2.5 0 0 0 7.5 17h6.23A2 2 0 0 1 12 18H7.5A3.5 3.5 0 0 1 4 14.5V6Z",fill:i}))},CopyRegular=wrapIcon$1(CopyRegularIcon,"CopyRegular"),ErrorCircleRegularIcon=a=>{const{fill:i="currentColor",className:_e}=a;return reactExports.createElement("svg",Object.assign({},a,{width:"1em",height:"1em",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:_e}),reactExports.createElement("path",{d:"M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm0 9.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5ZM10 6a.5.5 0 0 1 .5.41V11a.5.5 0 0 1-1 .09V6.5c0-.28.22-.5.5-.5Z",fill:i}))},ErrorCircleRegular=wrapIcon$1(ErrorCircleRegularIcon,"ErrorCircleRegular"),SendRegularIcon=a=>{const{fill:i="currentColor",className:_e}=a;return reactExports.createElement("svg",Object.assign({},a,{width:"1em",height:"1em",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:_e}),reactExports.createElement("path",{d:"M2.18 2.11a.5.5 0 0 1 .54-.06l15 7.5a.5.5 0 0 1 0 .9l-15 7.5a.5.5 0 0 1-.7-.58L3.98 10 2.02 2.63a.5.5 0 0 1 .16-.52Zm2.7 8.39-1.61 6.06L16.38 10 3.27 3.44 4.88 9.5h6.62a.5.5 0 1 1 0 1H4.88Z",fill:i}))},SendRegular=wrapIcon$1(SendRegularIcon,"SendRegular"),ShieldLockRegularIcon=a=>{const{fill:i="currentColor",className:_e}=a;return reactExports.createElement("svg",Object.assign({},a,{width:"1em",height:"1em",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:_e}),reactExports.createElement("path",{d:"M9.72 2.08a.5.5 0 0 1 .56 0c1.94 1.3 4.03 2.1 6.3 2.43A.5.5 0 0 1 17 5v4.34c-.26-.38-.6-.7-1-.94V5.43a15.97 15.97 0 0 1-5.6-2.08L10 3.1l-.4.25A15.97 15.97 0 0 1 4 5.43V9.5c0 3.4 1.97 5.86 6 7.46V17a2 2 0 0 0 .24.94l-.06.03a.5.5 0 0 1-.36 0C5.31 16.23 3 13.39 3 9.5V5a.5.5 0 0 1 .43-.5 15.05 15.05 0 0 0 6.3-2.42ZM12.5 12v-1a2 2 0 1 1 4 0v1h.5a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-5a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h.5Zm1-1v1h2v-1a1 1 0 1 0-2 0Zm1.75 4a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z",fill:i}))},ShieldLockRegular=wrapIcon$1(ShieldLockRegularIcon,"ShieldLockRegular"),SquareRegularIcon=a=>{const{fill:i="currentColor",className:_e}=a;return reactExports.createElement("svg",Object.assign({},a,{width:"1em",height:"1em",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:_e}),reactExports.createElement("path",{d:"M3 6a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6Zm3-2a2 2 0 0 0-2 2v8c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H6Z",fill:i}))},SquareRegular=wrapIcon$1(SquareRegularIcon,"SquareRegular"),ThumbDislike20FilledIcon=a=>{const{fill:i="currentColor",className:_e}=a;return reactExports.createElement("svg",Object.assign({},a,{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:_e}),reactExports.createElement("path",{d:"M12.48 18.3c-.8.83-2.09.38-2.43-.6-.28-.8-.64-1.77-1-2.48C8 13.1 7.38 11.9 5.67 10.37c-.23-.2-.52-.36-.84-.49-1.13-.44-2.2-1.61-1.91-3l.35-1.77a2.5 2.5 0 0 1 1.8-1.92l5.6-1.53a4.5 4.5 0 0 1 5.6 3.54l.69 3.76A3 3 0 0 1 14 12.5h-.89l.01.05c.08.41.18.97.24 1.58.07.62.1 1.29.05 1.92a3.68 3.68 0 0 1-.5 1.73c-.11.16-.27.35-.44.52Z",fill:i}))},ThumbDislike20Filled=wrapIcon$1(ThumbDislike20FilledIcon,"ThumbDislike20Filled"),ThumbLike20FilledIcon=a=>{const{fill:i="currentColor",className:_e}=a;return reactExports.createElement("svg",Object.assign({},a,{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:_e}),reactExports.createElement("path",{d:"M12.48 1.7c-.8-.83-2.09-.38-2.43.6-.28.8-.64 1.77-1 2.48C8 6.9 7.38 8.1 5.67 9.63c-.23.2-.52.36-.84.49-1.13.44-2.2 1.61-1.91 3l.35 1.77a2.5 2.5 0 0 0 1.8 1.92l5.6 1.52a4.5 4.5 0 0 0 5.6-3.53l.69-3.76A3 3 0 0 0 14 7.5h-.89l.01-.05c.08-.41.18-.97.24-1.59.07-.6.1-1.28.05-1.9a3.68 3.68 0 0 0-.5-1.74 4.16 4.16 0 0 0-.44-.52Z",fill:i}))},ThumbLike20Filled=wrapIcon$1(ThumbLike20FilledIcon,"ThumbLike20Filled"),protocols=["http","https","mailto","tel"];function uriTransformer(a){const i=(a||"").trim(),_e=i.charAt(0);if(_e==="#"||_e==="/")return i;const pt=i.indexOf(":");if(pt===-1)return i;let Lt=-1;for(;++LtLt||(Lt=i.indexOf("#"),Lt!==-1&&pt>Lt)?i:"javascript:void(0)"}/*! + */function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(a){for(var i=1;i=0)&&(_e[Lt]=a[Lt]);return _e}function isModifiedEvent(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function shouldProcessLinkClick(a,i){return a.button===0&&(!i||i==="_self")&&!isModifiedEvent(a)}const _excluded$1=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function HashRouter(a){let{basename:i,children:_e,window:pt}=a,Lt=reactExports.useRef();Lt.current==null&&(Lt.current=createHashHistory({window:pt,v5Compat:!0}));let Gt=Lt.current,[Ct,Rt]=reactExports.useState({action:Gt.action,location:Gt.location});return reactExports.useLayoutEffect(()=>Gt.listen(Rt),[Gt]),reactExports.createElement(Router,{basename:i,children:_e,location:Ct.location,navigationType:Ct.action,navigator:Gt})}const isBrowser=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Link=reactExports.forwardRef(function(i,_e){let{onClick:pt,relative:Lt,reloadDocument:Gt,replace:Ct,state:Rt,target:o,to:it,preventScrollReset:xt}=i,et=_objectWithoutPropertiesLoose$1(i,_excluded$1),Tt,yt=!1;if(isBrowser&&typeof it=="string"&&/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i.test(it)){Tt=it;let _=new URL(window.location.href),rt=it.startsWith("//")?new URL(_.protocol+it):new URL(it);rt.origin===_.origin?it=rt.pathname+rt.search+rt.hash:yt=!0}let ut=useHref(it,{relative:Lt}),ht=useLinkClickHandler(it,{replace:Ct,state:Rt,target:o,preventScrollReset:xt,relative:Lt});function j(_){pt&&pt(_),_.defaultPrevented||ht(_)}return reactExports.createElement("a",_extends$1({},et,{href:Tt||ut,onClick:yt||Gt?pt:j,ref:_e,target:o}))});var DataRouterHook;(function(a){a.UseScrollRestoration="useScrollRestoration",a.UseSubmitImpl="useSubmitImpl",a.UseFetcher="useFetcher"})(DataRouterHook||(DataRouterHook={}));var DataRouterStateHook;(function(a){a.UseFetchers="useFetchers",a.UseScrollRestoration="useScrollRestoration"})(DataRouterStateHook||(DataRouterStateHook={}));function useLinkClickHandler(a,i){let{target:_e,replace:pt,state:Lt,preventScrollReset:Gt,relative:Ct}=i===void 0?{}:i,Rt=useNavigate(),o=useLocation(),it=useResolvedPath(a,{relative:Ct});return reactExports.useCallback(xt=>{if(shouldProcessLinkClick(xt,_e)){xt.preventDefault();let et=pt!==void 0?pt:createPath(o)===createPath(it);Rt(a,{replace:et,state:Lt,preventScrollReset:Gt,relative:Ct})}},[o,Rt,it,pt,Lt,_e,a,Gt,Ct])}var packagesCache={},_win=void 0;try{_win=window}catch{}function setVersion(a,i){if(typeof _win<"u"){var _e=_win.__packages__=_win.__packages__||{};if(!_e[a]||!packagesCache[a]){packagesCache[a]=i;var pt=_e[a]=_e[a]||[];pt.push(i)}}}setVersion("@fluentui/set-version","6.0.0");var extendStatics=function(a,i){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_e,pt){_e.__proto__=pt}||function(_e,pt){for(var Lt in pt)Object.prototype.hasOwnProperty.call(pt,Lt)&&(_e[Lt]=pt[Lt])},extendStatics(a,i)};function __extends(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");extendStatics(a,i);function _e(){this.constructor=a}a.prototype=i===null?Object.create(i):(_e.prototype=i.prototype,new _e)}var __assign$1=function(){return __assign$1=Object.assign||function(i){for(var _e,pt=1,Lt=arguments.length;pt=0;Rt--)(Ct=a[Rt])&&(Gt=(Lt<3?Ct(Gt):Lt>3?Ct(i,_e,Gt):Ct(i,_e))||Gt);return Lt>3&&Gt&&Object.defineProperty(i,_e,Gt),Gt}function __spreadArray(a,i,_e){if(_e||arguments.length===2)for(var pt=0,Lt=i.length,Gt;pt"u"?InjectionMode.none:InjectionMode.insertNode,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},i),this._classNameToArgs=(pt=_e==null?void 0:_e.classNameToArgs)!==null&&pt!==void 0?pt:this._classNameToArgs,this._counter=(Lt=_e==null?void 0:_e.counter)!==null&&Lt!==void 0?Lt:this._counter,this._keyToClassName=(Ct=(Gt=this._config.classNameCache)!==null&&Gt!==void 0?Gt:_e==null?void 0:_e.keyToClassName)!==null&&Ct!==void 0?Ct:this._keyToClassName,this._preservedRules=(Rt=_e==null?void 0:_e.preservedRules)!==null&&Rt!==void 0?Rt:this._preservedRules,this._rules=(o=_e==null?void 0:_e.rules)!==null&&o!==void 0?o:this._rules}return a.getInstance=function(){if(_stylesheet=_global$1[STYLESHEET_SETTING],!_stylesheet||_stylesheet._lastStyleElement&&_stylesheet._lastStyleElement.ownerDocument!==document){var i=(_global$1==null?void 0:_global$1.FabricConfig)||{},_e=new a(i.mergeStyles,i.serializedStylesheet);_stylesheet=_e,_global$1[STYLESHEET_SETTING]=_e}return _stylesheet},a.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},a.prototype.setConfig=function(i){this._config=__assign$1(__assign$1({},this._config),i)},a.prototype.onReset=function(i){var _e=this;return this._onResetCallbacks.push(i),function(){_e._onResetCallbacks=_e._onResetCallbacks.filter(function(pt){return pt!==i})}},a.prototype.onInsertRule=function(i){var _e=this;return this._onInsertRuleCallbacks.push(i),function(){_e._onInsertRuleCallbacks=_e._onInsertRuleCallbacks.filter(function(pt){return pt!==i})}},a.prototype.getClassName=function(i){var _e=this._config.namespace,pt=i||this._config.defaultPrefix;return"".concat(_e?_e+"-":"").concat(pt,"-").concat(this._counter++)},a.prototype.cacheClassName=function(i,_e,pt,Lt){this._keyToClassName[_e]=i,this._classNameToArgs[i]={args:pt,rules:Lt}},a.prototype.classNameFromKey=function(i){return this._keyToClassName[i]},a.prototype.getClassNameCache=function(){return this._keyToClassName},a.prototype.argsFromClassName=function(i){var _e=this._classNameToArgs[i];return _e&&_e.args},a.prototype.insertedRulesFromClassName=function(i){var _e=this._classNameToArgs[i];return _e&&_e.rules},a.prototype.insertRule=function(i,_e){var pt=this._config.injectionMode,Lt=pt!==InjectionMode.none?this._getStyleElement():void 0;if(_e&&this._preservedRules.push(i),Lt)switch(pt){case InjectionMode.insertNode:var Gt=Lt.sheet;try{Gt.insertRule(i,Gt.cssRules.length)}catch{}break;case InjectionMode.appendChild:Lt.appendChild(document.createTextNode(i));break}else this._rules.push(i);this._config.onInsertRule&&this._config.onInsertRule(i),this._onInsertRuleCallbacks.forEach(function(Ct){return Ct()})},a.prototype.getRules=function(i){return(i?this._preservedRules.join(""):"")+this._rules.join("")},a.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach(function(i){return i()})},a.prototype.resetKeys=function(){this._keyToClassName={}},a.prototype._getStyleElement=function(){var i=this;return!this._styleElement&&typeof document<"u"&&(this._styleElement=this._createStyleElement(),REUSE_STYLE_NODE||window.requestAnimationFrame(function(){i._styleElement=void 0})),this._styleElement},a.prototype._createStyleElement=function(){var i=document.head,_e=document.createElement("style"),pt=null;_e.setAttribute("data-merge-styles","true");var Lt=this._config.cspSettings;if(Lt&&Lt.nonce&&_e.setAttribute("nonce",Lt.nonce),this._lastStyleElement)pt=this._lastStyleElement.nextElementSibling;else{var Gt=this._findPlaceholderStyleTag();Gt?pt=Gt.nextElementSibling:pt=i.childNodes[0]}return i.insertBefore(_e,i.contains(pt)?pt:null),this._lastStyleElement=_e,_e},a.prototype._findPlaceholderStyleTag=function(){var i=document.head;return i?i.querySelector("style[data-merge-styles]"):null},a}();function extractStyleParts(){for(var a=[],i=0;i=0)Gt(it.split(" "));else{var xt=Lt.argsFromClassName(it);xt?Gt(xt):_e.indexOf(it)===-1&&_e.push(it)}else Array.isArray(it)?Gt(it):typeof it=="object"&&pt.push(it)}}return Gt(a),{classes:_e,objects:pt}}function setRTL$1(a){_rtl!==a&&(_rtl=a)}function getRTL$1(){return _rtl===void 0&&(_rtl=typeof document<"u"&&!!document.documentElement&&document.documentElement.getAttribute("dir")==="rtl"),_rtl}var _rtl;_rtl=getRTL$1();function getStyleOptions(){return{rtl:getRTL$1()}}var rules={};function kebabRules(a,i){var _e=a[i];_e.charAt(0)!=="-"&&(a[i]=rules[_e]=rules[_e]||_e.replace(/([A-Z])/g,"-$1").toLowerCase())}var _vendorSettings;function getVendorSettings(){var a;if(!_vendorSettings){var i=typeof document<"u"?document:void 0,_e=typeof navigator<"u"?navigator:void 0,pt=(a=_e==null?void 0:_e.userAgent)===null||a===void 0?void 0:a.toLowerCase();i?_vendorSettings={isWebkit:!!(i&&"WebkitAppearance"in i.documentElement.style),isMoz:!!(pt&&pt.indexOf("firefox")>-1),isOpera:!!(pt&&pt.indexOf("opera")>-1),isMs:!!(_e&&(/rv:11.0/i.test(_e.userAgent)||/Edge\/\d./i.test(navigator.userAgent)))}:_vendorSettings={isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return _vendorSettings}var autoPrefixNames={"user-select":1};function prefixRules(a,i){var _e=getVendorSettings(),pt=a[i];if(autoPrefixNames[pt]){var Lt=a[i+1];autoPrefixNames[pt]&&(_e.isWebkit&&a.push("-webkit-"+pt,Lt),_e.isMoz&&a.push("-moz-"+pt,Lt),_e.isMs&&a.push("-ms-"+pt,Lt),_e.isOpera&&a.push("-o-"+pt,Lt))}}var NON_PIXEL_NUMBER_PROPS=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function provideUnits(a,i){var _e=a[i],pt=a[i+1];if(typeof pt=="number"){var Lt=NON_PIXEL_NUMBER_PROPS.indexOf(_e)>-1,Gt=_e.indexOf("--")>-1,Ct=Lt||Gt?"":"px";a[i+1]="".concat(pt).concat(Ct)}}var _a$3,LEFT="left",RIGHT="right",NO_FLIP="@noflip",NAME_REPLACEMENTS=(_a$3={},_a$3[LEFT]=RIGHT,_a$3[RIGHT]=LEFT,_a$3),VALUE_REPLACEMENTS={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function rtlifyRules(a,i,_e){if(a.rtl){var pt=i[_e];if(!pt)return;var Lt=i[_e+1];if(typeof Lt=="string"&&Lt.indexOf(NO_FLIP)>=0)i[_e+1]=Lt.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(pt.indexOf(LEFT)>=0)i[_e]=pt.replace(LEFT,RIGHT);else if(pt.indexOf(RIGHT)>=0)i[_e]=pt.replace(RIGHT,LEFT);else if(String(Lt).indexOf(LEFT)>=0)i[_e+1]=Lt.replace(LEFT,RIGHT);else if(String(Lt).indexOf(RIGHT)>=0)i[_e+1]=Lt.replace(RIGHT,LEFT);else if(NAME_REPLACEMENTS[pt])i[_e]=NAME_REPLACEMENTS[pt];else if(VALUE_REPLACEMENTS[Lt])i[_e+1]=VALUE_REPLACEMENTS[Lt];else switch(pt){case"margin":case"padding":i[_e+1]=flipQuad(Lt);break;case"box-shadow":i[_e+1]=negateNum(Lt,0);break}}}function negateNum(a,i){var _e=a.split(" "),pt=parseInt(_e[i],10);return _e[0]=_e[0].replace(String(pt),String(pt*-1)),_e.join(" ")}function flipQuad(a){if(typeof a=="string"){var i=a.split(" ");if(i.length===4)return"".concat(i[0]," ").concat(i[3]," ").concat(i[2]," ").concat(i[1])}return a}function tokenizeWithParentheses(a){for(var i=[],_e=0,pt=0,Lt=0;Lt_e&&i.push(a.substring(_e,Lt)),_e=Lt+1);break}return _e-1&&i.push([pt.index,pt.index+pt[0].length,pt[1].split(",").map(function(Lt){return":global(".concat(Lt.trim(),")")}).join(", ")]);return i.reverse().reduce(function(Lt,Gt){var Ct=Gt[0],Rt=Gt[1],o=Gt[2],it=Lt.slice(0,Ct),xt=Lt.slice(Rt);return it+o+xt},a)}function expandSelector(a,i){return a.indexOf(":global(")>=0?a.replace(globalSelectorRegExp,"$1"):a.indexOf(":")===0?i+a:a.indexOf("&")<0?i+" "+a:a}function extractSelector(a,i,_e,pt){i===void 0&&(i={__order:[]}),_e.indexOf("@")===0?(_e=_e+"{"+a,extractRules([pt],i,_e)):_e.indexOf(",")>-1?expandCommaSeparatedGlobals(_e).split(",").map(function(Lt){return Lt.trim()}).forEach(function(Lt){return extractRules([pt],i,expandSelector(Lt,a))}):extractRules([pt],i,expandSelector(_e,a))}function extractRules(a,i,_e){i===void 0&&(i={__order:[]}),_e===void 0&&(_e="&");var pt=Stylesheet.getInstance(),Lt=i[_e];Lt||(Lt={},i[_e]=Lt,i.__order.push(_e));for(var Gt=0,Ct=a;Gt0){_e.subComponentStyles={};var Tt=_e.subComponentStyles,yt=function(ut){if(pt.hasOwnProperty(ut)){var ht=pt[ut];Tt[ut]=function(j){return concatStyleSets.apply(void 0,ht.map(function(_){return typeof _=="function"?_(j):_}))}}};for(var it in pt)yt(it)}return _e}function mergeStyleSets(){for(var a=[],i=0;i"u")){var i=a;return i&&i.ownerDocument&&i.ownerDocument.defaultView?i.ownerDocument.defaultView:_window}}var Async=function(){function a(i,_e){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=i||null,this._onErrorHandler=_e,this._noop=function(){}}return a.prototype.dispose=function(){var i;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(i in this._timeoutIds)this._timeoutIds.hasOwnProperty(i)&&this.clearTimeout(parseInt(i,10));this._timeoutIds=null}if(this._immediateIds){for(i in this._immediateIds)this._immediateIds.hasOwnProperty(i)&&this.clearImmediate(parseInt(i,10));this._immediateIds=null}if(this._intervalIds){for(i in this._intervalIds)this._intervalIds.hasOwnProperty(i)&&this.clearInterval(parseInt(i,10));this._intervalIds=null}if(this._animationFrameIds){for(i in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(i)&&this.cancelAnimationFrame(parseInt(i,10));this._animationFrameIds=null}},a.prototype.setTimeout=function(i,_e){var pt=this,Lt=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),Lt=setTimeout(function(){try{pt._timeoutIds&&delete pt._timeoutIds[Lt],i.apply(pt._parent)}catch(Gt){pt._logError(Gt)}},_e),this._timeoutIds[Lt]=!0),Lt},a.prototype.clearTimeout=function(i){this._timeoutIds&&this._timeoutIds[i]&&(clearTimeout(i),delete this._timeoutIds[i])},a.prototype.setImmediate=function(i,_e){var pt=this,Lt=0,Gt=getWindow(_e);if(!this._isDisposed){this._immediateIds||(this._immediateIds={});var Ct=function(){try{pt._immediateIds&&delete pt._immediateIds[Lt],i.apply(pt._parent)}catch(Rt){pt._logError(Rt)}};Lt=Gt.setTimeout(Ct,0),this._immediateIds[Lt]=!0}return Lt},a.prototype.clearImmediate=function(i,_e){var pt=getWindow(_e);this._immediateIds&&this._immediateIds[i]&&(pt.clearTimeout(i),delete this._immediateIds[i])},a.prototype.setInterval=function(i,_e){var pt=this,Lt=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),Lt=setInterval(function(){try{i.apply(pt._parent)}catch(Gt){pt._logError(Gt)}},_e),this._intervalIds[Lt]=!0),Lt},a.prototype.clearInterval=function(i){this._intervalIds&&this._intervalIds[i]&&(clearInterval(i),delete this._intervalIds[i])},a.prototype.throttle=function(i,_e,pt){var Lt=this;if(this._isDisposed)return this._noop;var Gt=_e||0,Ct=!0,Rt=!0,o=0,it,xt,et=null;pt&&typeof pt.leading=="boolean"&&(Ct=pt.leading),pt&&typeof pt.trailing=="boolean"&&(Rt=pt.trailing);var Tt=function(ut){var ht=Date.now(),j=ht-o,_=Ct?Gt-j:Gt;return j>=Gt&&(!ut||Ct)?(o=ht,et&&(Lt.clearTimeout(et),et=null),it=i.apply(Lt._parent,xt)):et===null&&Rt&&(et=Lt.setTimeout(Tt,_)),it},yt=function(){for(var ut=[],ht=0;ht=Ct&&(dt=!0),xt=vt);var bt=vt-xt,ft=Ct-bt,at=vt-et,mt=!1;return it!==null&&(at>=it&&ut?mt=!0:ft=Math.min(ft,it-at)),bt>=Ct||mt||dt?j(vt):(ut===null||!nt)&&o&&(ut=Lt.setTimeout(_,ft)),Tt},rt=function(){return!!ut},tt=function(){rt()&&ht(Date.now())},st=function(){return rt()&&j(Date.now()),Tt},ot=function(){for(var nt=[],vt=0;vt-1)for(var Ct=_e.split(/[ ,]+/),Rt=0;Rt"u")){var i=a;return i&&i.ownerDocument?i.ownerDocument:document}}var _scrollbarWidth,_bodyScrollDisabledCount=0,DisabledScrollClassName=mergeStyles({overflow:"hidden !important"}),DATA_IS_SCROLLABLE_ATTRIBUTE="data-is-scrollable",allowScrollOnElement=function(a,i){if(a){var _e=0,pt=null,Lt=function(Ct){Ct.targetTouches.length===1&&(_e=Ct.targetTouches[0].clientY)},Gt=function(Ct){if(Ct.targetTouches.length===1&&(Ct.stopPropagation(),!!pt)){var Rt=Ct.targetTouches[0].clientY-_e,o=findScrollableParent(Ct.target);o&&(pt=o),pt.scrollTop===0&&Rt>0&&Ct.preventDefault(),pt.scrollHeight-Math.ceil(pt.scrollTop)<=pt.clientHeight&&Rt<0&&Ct.preventDefault()}};i.on(a,"touchstart",Lt,{passive:!1}),i.on(a,"touchmove",Gt,{passive:!1}),pt=a}},allowOverscrollOnElement=function(a,i){if(a){var _e=function(pt){pt.stopPropagation()};i.on(a,"touchmove",_e,{passive:!1})}},_disableIosBodyScroll=function(a){a.preventDefault()};function disableBodyScroll(){var a=getDocument();a&&a.body&&!_bodyScrollDisabledCount&&(a.body.classList.add(DisabledScrollClassName),a.body.addEventListener("touchmove",_disableIosBodyScroll,{passive:!1,capture:!1})),_bodyScrollDisabledCount++}function enableBodyScroll(){if(_bodyScrollDisabledCount>0){var a=getDocument();a&&a.body&&_bodyScrollDisabledCount===1&&(a.body.classList.remove(DisabledScrollClassName),a.body.removeEventListener("touchmove",_disableIosBodyScroll)),_bodyScrollDisabledCount--}}function getScrollbarWidth(){if(_scrollbarWidth===void 0){var a=document.createElement("div");a.style.setProperty("width","100px"),a.style.setProperty("height","100px"),a.style.setProperty("overflow","scroll"),a.style.setProperty("position","absolute"),a.style.setProperty("top","-9999px"),document.body.appendChild(a),_scrollbarWidth=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return _scrollbarWidth}function findScrollableParent(a){for(var i=a,_e=getDocument(a);i&&i!==_e.body;){if(i.getAttribute(DATA_IS_SCROLLABLE_ATTRIBUTE)==="true")return i;i=i.parentElement}for(i=a;i&&i!==_e.body;){if(i.getAttribute(DATA_IS_SCROLLABLE_ATTRIBUTE)!=="false"){var pt=getComputedStyle(i),Lt=pt?pt.getPropertyValue("overflow-y"):"";if(Lt&&(Lt==="scroll"||Lt==="auto"))return i}i=i.parentElement}return(!i||i===_e.body)&&(i=getWindow(a)),i}var _warningCallback=void 0;function warn(a){console&&console.warn&&console.warn(a)}function warnConditionallyRequiredProps(a,i,_e,pt,Lt){if(Lt===!0&&!1)for(var Gt,Ct;Gt1?pt[1]:""}return this.__className},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"_disposables",{get:function(){return this.__disposables||(this.__disposables=[]),this.__disposables},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"_async",{get:function(){return this.__async||(this.__async=new Async(this),this._disposables.push(this.__async)),this.__async},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"_events",{get:function(){return this.__events||(this.__events=new EventGroup(this),this._disposables.push(this.__events)),this.__events},enumerable:!1,configurable:!0}),i.prototype._resolveRef=function(_e){var pt=this;return this.__resolves||(this.__resolves={}),this.__resolves[_e]||(this.__resolves[_e]=function(Lt){return pt[_e]=Lt}),this.__resolves[_e]},i.prototype._updateComponentRef=function(_e,pt){pt===void 0&&(pt={}),_e&&pt&&_e.componentRef!==pt.componentRef&&(this._setComponentRef(_e.componentRef,null),this._setComponentRef(pt.componentRef,this))},i.prototype._warnDeprecations=function(_e){this.className,this.props},i.prototype._warnMutuallyExclusive=function(_e){this.className,this.props},i.prototype._warnConditionallyRequiredProps=function(_e,pt,Lt){warnConditionallyRequiredProps(this.className,this.props,_e,pt,Lt)},i.prototype._setComponentRef=function(_e,pt){!this._skipComponentRefResolution&&_e&&(typeof _e=="function"&&_e(pt),typeof _e=="object"&&(_e.current=pt))},i})(reactExports.Component);function _makeAllSafe(a,i,_e){for(var pt=0,Lt=_e.length;pt-1&&Lt._virtual.children.splice(Gt,1)}_e._virtual.parent=pt||void 0,pt&&(pt._virtual||(pt._virtual={children:[]}),pt._virtual.children.push(_e))}var IS_FOCUSABLE_ATTRIBUTE$1="data-is-focusable",IS_VISIBLE_ATTRIBUTE="data-is-visible",FOCUSZONE_ID_ATTRIBUTE$1="data-focuszone-id",FOCUSZONE_SUB_ATTRIBUTE="data-is-sub-focuszone";function getFirstFocusable(a,i,_e){return getNextElement(a,i,!0,!1,!1,_e)}function getLastFocusable(a,i,_e){return getPreviousElement(a,i,!0,!1,!0,_e)}function getFirstTabbable(a,i,_e,pt){return pt===void 0&&(pt=!0),getNextElement(a,i,pt,!1,!1,_e,!1,!0)}function getLastTabbable(a,i,_e,pt){return pt===void 0&&(pt=!0),getPreviousElement(a,i,pt,!1,!0,_e,!1,!0)}function focusFirstChild(a,i){var _e=getNextElement(a,a,!0,!1,!1,!0,void 0,void 0,i);return _e?(focusAsync(_e),!0):!1}function getPreviousElement(a,i,_e,pt,Lt,Gt,Ct,Rt){if(!i||!Ct&&i===a)return null;var o=isElementVisible(i);if(Lt&&o&&(Gt||!(isElementFocusZone(i)||isElementFocusSubZone(i)))){var it=getPreviousElement(a,i.lastElementChild,!0,!0,!0,Gt,Ct,Rt);if(it){if(Rt&&isElementTabbable(it,!0)||!Rt)return it;var xt=getPreviousElement(a,it.previousElementSibling,!0,!0,!0,Gt,Ct,Rt);if(xt)return xt;for(var et=it.parentElement;et&&et!==i;){var Tt=getPreviousElement(a,et.previousElementSibling,!0,!0,!0,Gt,Ct,Rt);if(Tt)return Tt;et=et.parentElement}}}if(_e&&o&&isElementTabbable(i,Rt))return i;var yt=getPreviousElement(a,i.previousElementSibling,!0,!0,!0,Gt,Ct,Rt);return yt||(pt?null:getPreviousElement(a,i.parentElement,!0,!1,!1,Gt,Ct,Rt))}function getNextElement(a,i,_e,pt,Lt,Gt,Ct,Rt,o){if(!i||i===a&&Lt&&!Ct)return null;var it=o?isElementVisibleAndNotHidden:isElementVisible,xt=it(i);if(_e&&xt&&isElementTabbable(i,Rt))return i;if(!Lt&&xt&&(Gt||!(isElementFocusZone(i)||isElementFocusSubZone(i)))){var et=getNextElement(a,i.firstElementChild,!0,!0,!1,Gt,Ct,Rt,o);if(et)return et}if(i===a)return null;var Tt=getNextElement(a,i.nextElementSibling,!0,!0,!1,Gt,Ct,Rt,o);return Tt||(pt?null:getNextElement(a,i.parentElement,!1,!1,!0,Gt,Ct,Rt,o))}function isElementVisible(a){if(!a||!a.getAttribute)return!1;var i=a.getAttribute(IS_VISIBLE_ATTRIBUTE);return i!=null?i==="true":a.offsetHeight!==0||a.offsetParent!==null||a.isVisible===!0}function isElementVisibleAndNotHidden(a){return!!a&&isElementVisible(a)&&!a.hidden&&window.getComputedStyle(a).visibility!=="hidden"}function isElementTabbable(a,i){if(!a||a.disabled)return!1;var _e=0,pt=null;a&&a.getAttribute&&(pt=a.getAttribute("tabIndex"),pt&&(_e=parseInt(pt,10)));var Lt=a.getAttribute?a.getAttribute(IS_FOCUSABLE_ATTRIBUTE$1):null,Gt=pt!==null&&_e>=0,Ct=!!a&&Lt!=="false"&&(a.tagName==="A"||a.tagName==="BUTTON"||a.tagName==="INPUT"||a.tagName==="TEXTAREA"||a.tagName==="SELECT"||Lt==="true"||Gt);return i?_e!==-1&&Ct:Ct}function isElementFocusZone(a){return!!(a&&a.getAttribute&&a.getAttribute(FOCUSZONE_ID_ATTRIBUTE$1))}function isElementFocusSubZone(a){return!!(a&&a.getAttribute&&a.getAttribute(FOCUSZONE_SUB_ATTRIBUTE)==="true")}function doesElementContainFocus(a){var i=getDocument(a),_e=i&&i.activeElement;return!!(_e&&elementContains(a,_e))}function shouldWrapFocus(a,i){return elementContainsAttribute(a,i)!=="true"}var targetToFocusOnNextRepaint=void 0;function focusAsync(a){if(a){if(targetToFocusOnNextRepaint){targetToFocusOnNextRepaint=a;return}targetToFocusOnNextRepaint=a;var i=getWindow(a);i&&i.requestAnimationFrame(function(){targetToFocusOnNextRepaint&&targetToFocusOnNextRepaint.focus(),targetToFocusOnNextRepaint=void 0})}}function getFocusableByIndexPath(a,i){for(var _e=a,pt=0,Lt=i;pt(a.cacheSize||MAX_CACHE_COUNT)){var yt=getWindow();!((o=yt==null?void 0:yt.FabricConfig)===null||o===void 0)&&o.enableClassNameCacheFullWarning&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is ".concat(_e,"/").concat(pt,".")),console.trace()),i.clear(),_e=0,a.disableCaching=!0}return it[retVal]};return Gt}function _traverseEdge(a,i){return i=_normalizeValue(i),a.has(i)||a.set(i,new Map),a.get(i)}function _traverseMap(a,i){if(typeof i=="function"){var _e=i.__cachedInputs__;if(_e)for(var pt=0,Lt=i.__cachedInputs__;pt"u"?null:WeakMap;function resetMemoizations(){_resetCounter++}function memoizeFunction(a,i,_e){if(i===void 0&&(i=100),_e===void 0&&(_e=!1),!_weakMap)return a;if(!_initializedStylesheetResets$1){var pt=Stylesheet.getInstance();pt&&pt.onReset&&Stylesheet.getInstance().onReset(resetMemoizations),_initializedStylesheetResets$1=!0}var Lt,Gt=0,Ct=_resetCounter;return function(){for(var o=[],it=0;it0&&Gt>i)&&(Lt=_createNode(),Gt=0,Ct=_resetCounter),xt=Lt;for(var et=0;et=0||o.indexOf("data-")===0||o.indexOf("aria-")===0;it&&(!_e||(_e==null?void 0:_e.indexOf(o))===-1)&&(Lt[o]=a[o])}return Lt}var REACT_LIFECYCLE_EXCLUSIONS=["setState","render","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","getSnapshotBeforeUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount"];function hoistMethods(a,i,_e){_e===void 0&&(_e=REACT_LIFECYCLE_EXCLUSIONS);var pt=[],Lt=function(Ct){typeof i[Ct]=="function"&&a[Ct]===void 0&&(!_e||_e.indexOf(Ct)===-1)&&(pt.push(Ct),a[Ct]=function(){for(var Rt=[],o=0;o=0&&pt.splice(o,1)}}},[i,pt,Lt,Gt]);return reactExports.useEffect(function(){if(Ct)return Ct.registerProvider(Ct.providerRef),function(){return Ct.unregisterProvider(Ct.providerRef)}},[Ct]),Ct?reactExports.createElement(FocusRectsContext.Provider,{value:Ct},a.children):reactExports.createElement(reactExports.Fragment,null,a.children)};function getItem(a){var i=null;try{var _e=getWindow();i=_e?_e.localStorage.getItem(a):null}catch{}return i}var _language,STORAGE_KEY="language";function getLanguage(a){if(a===void 0&&(a="sessionStorage"),_language===void 0){var i=getDocument(),_e=a==="localStorage"?getItem(STORAGE_KEY):a==="sessionStorage"?getItem$1(STORAGE_KEY):void 0;_e&&(_language=_e),_language===void 0&&i&&(_language=i.documentElement.getAttribute("lang")),_language===void 0&&(_language="en")}return _language}function merge$3(a){for(var i=[],_e=1;_e-1;a[pt]=Gt?Lt:_merge(a[pt]||{},Lt,_e)}else a[pt]=Lt}return _e.pop(),a}var isIOS=function(){return!window||!window.navigator||!window.navigator.userAgent?!1:/iPad|iPhone|iPod/i.test(window.navigator.userAgent)},tagsToIgnore=["TEMPLATE","STYLE","SCRIPT"];function modalize(a){var i=getDocument(a);if(!i)return function(){};for(var _e=[];a!==i.body&&a.parentElement;){for(var pt=0,Lt=a.parentElement.children;pt"u"||a){var _e=getWindow(),pt=(i=_e==null?void 0:_e.navigator)===null||i===void 0?void 0:i.userAgent;isMacResult=!!pt&&pt.indexOf("Macintosh")!==-1}return!!isMacResult}function createComposedRenderFunction(a){var i=createMemoizer(function(_e){var pt=createMemoizer(function(Lt){return function(Gt){return _e(Gt,Lt)}});return function(Lt,Gt){return a(Lt,Gt?pt(Gt):_e)}});return i}var memoizer=createMemoizer(createComposedRenderFunction);function composeRenderFunction(a,i){return memoizer(a)(i)}var DefaultFields=["theme","styles"];function styled(a,i,_e,pt,Lt){pt=pt||{scope:"",fields:void 0};var Gt=pt.scope,Ct=pt.fields,Rt=Ct===void 0?DefaultFields:Ct,o=reactExports.forwardRef(function(xt,et){var Tt=reactExports.useRef(),yt=useCustomizationSettings(Rt,Gt),ut=yt.styles;yt.dir;var ht=__rest$5(yt,["styles","dir"]),j=_e?_e(xt):void 0,_=Tt.current&&Tt.current.__cachedInputs__||[],rt=xt.styles;if(!Tt.current||ut!==_[1]||rt!==_[2]){var tt=function(st){return concatStyleSetsWithProps(st,i,ut,rt)};tt.__cachedInputs__=[i,ut,rt],tt.__noStyleOverride__=!ut&&!rt,Tt.current=tt}return reactExports.createElement(a,__assign$1({ref:et},ht,j,xt,{styles:Tt.current}))});o.displayName="Styled".concat(a.displayName||a.name);var it=Lt?reactExports.memo(o):o;return o.displayName&&(it.displayName=o.displayName),it}function warnControlledUsage(a){}var isIE11=function(){var a,i=getWindow();return!((a=i==null?void 0:i.navigator)===null||a===void 0)&&a.userAgent?i.navigator.userAgent.indexOf("rv:11.0")>-1:!1};function getPropsWithDefaults(a,i){for(var _e=__assign$1({},i),pt=0,Lt=Object.keys(a);ptpt?" (+ "+(_missingIcons.length-pt)+" more)":"")),_missingIconsTimer=void 0,_missingIcons=[]},_e)))}function makeSemanticColors(a,i,_e,pt,Lt){Lt===void 0&&(Lt=!1);var Gt=__assign$1({primaryButtonBorder:"transparent",errorText:pt?"#F1707B":"#a4262c",messageText:pt?"#F3F2F1":"#323130",messageLink:pt?"#6CB8F6":"#005A9E",messageLinkHovered:pt?"#82C7FF":"#004578",infoIcon:pt?"#C8C6C4":"#605e5c",errorIcon:pt?"#F1707B":"#A80000",blockingIcon:pt?"#442726":"#FDE7E9",warningIcon:pt?"#C8C6C4":"#797775",severeWarningIcon:pt?"#FCE100":"#D83B01",successIcon:pt?"#92C353":"#107C10",infoBackground:pt?"#323130":"#f3f2f1",errorBackground:pt?"#442726":"#FDE7E9",blockingBackground:pt?"#442726":"#FDE7E9",warningBackground:pt?"#433519":"#FFF4CE",severeWarningBackground:pt?"#4F2A0F":"#FED9CC",successBackground:pt?"#393D1B":"#DFF6DD",warningHighlight:pt?"#fff100":"#ffb900",successText:pt?"#92c353":"#107C10"},_e),Ct=getSemanticColors(a,i,Gt,pt);return _fixDeprecatedSlots(Ct,Lt)}function getSemanticColors(a,i,_e,pt,Lt){var Gt={},Ct=a||{},Rt=Ct.white,o=Ct.black,it=Ct.themePrimary,xt=Ct.themeDark,et=Ct.themeDarker,Tt=Ct.themeDarkAlt,yt=Ct.themeLighter,ut=Ct.neutralLight,ht=Ct.neutralLighter,j=Ct.neutralDark,_=Ct.neutralQuaternary,rt=Ct.neutralQuaternaryAlt,tt=Ct.neutralPrimary,st=Ct.neutralSecondary,ot=Ct.neutralSecondaryAlt,nt=Ct.neutralTertiary,vt=Ct.neutralTertiaryAlt,dt=Ct.neutralLighterAlt,bt=Ct.accent;return Rt&&(Gt.bodyBackground=Rt,Gt.bodyFrameBackground=Rt,Gt.accentButtonText=Rt,Gt.buttonBackground=Rt,Gt.primaryButtonText=Rt,Gt.primaryButtonTextHovered=Rt,Gt.primaryButtonTextPressed=Rt,Gt.inputBackground=Rt,Gt.inputForegroundChecked=Rt,Gt.listBackground=Rt,Gt.menuBackground=Rt,Gt.cardStandoutBackground=Rt),o&&(Gt.bodyTextChecked=o,Gt.buttonTextCheckedHovered=o),it&&(Gt.link=it,Gt.primaryButtonBackground=it,Gt.inputBackgroundChecked=it,Gt.inputIcon=it,Gt.inputFocusBorderAlt=it,Gt.menuIcon=it,Gt.menuHeader=it,Gt.accentButtonBackground=it),xt&&(Gt.primaryButtonBackgroundPressed=xt,Gt.inputBackgroundCheckedHovered=xt,Gt.inputIconHovered=xt),et&&(Gt.linkHovered=et),Tt&&(Gt.primaryButtonBackgroundHovered=Tt),yt&&(Gt.inputPlaceholderBackgroundChecked=yt),ut&&(Gt.bodyBackgroundChecked=ut,Gt.bodyFrameDivider=ut,Gt.bodyDivider=ut,Gt.variantBorder=ut,Gt.buttonBackgroundCheckedHovered=ut,Gt.buttonBackgroundPressed=ut,Gt.listItemBackgroundChecked=ut,Gt.listHeaderBackgroundPressed=ut,Gt.menuItemBackgroundPressed=ut,Gt.menuItemBackgroundChecked=ut),ht&&(Gt.bodyBackgroundHovered=ht,Gt.buttonBackgroundHovered=ht,Gt.buttonBackgroundDisabled=ht,Gt.buttonBorderDisabled=ht,Gt.primaryButtonBackgroundDisabled=ht,Gt.disabledBackground=ht,Gt.listItemBackgroundHovered=ht,Gt.listHeaderBackgroundHovered=ht,Gt.menuItemBackgroundHovered=ht),_&&(Gt.primaryButtonTextDisabled=_,Gt.disabledSubtext=_),rt&&(Gt.listItemBackgroundCheckedHovered=rt),nt&&(Gt.disabledBodyText=nt,Gt.variantBorderHovered=(_e==null?void 0:_e.variantBorderHovered)||nt,Gt.buttonTextDisabled=nt,Gt.inputIconDisabled=nt,Gt.disabledText=nt),tt&&(Gt.bodyText=tt,Gt.actionLink=tt,Gt.buttonText=tt,Gt.inputBorderHovered=tt,Gt.inputText=tt,Gt.listText=tt,Gt.menuItemText=tt),dt&&(Gt.bodyStandoutBackground=dt,Gt.defaultStateBackground=dt),j&&(Gt.actionLinkHovered=j,Gt.buttonTextHovered=j,Gt.buttonTextChecked=j,Gt.buttonTextPressed=j,Gt.inputTextHovered=j,Gt.menuItemTextHovered=j),st&&(Gt.bodySubtext=st,Gt.focusBorder=st,Gt.inputBorder=st,Gt.smallInputBorder=st,Gt.inputPlaceholderText=st),ot&&(Gt.buttonBorder=ot),vt&&(Gt.disabledBodySubtext=vt,Gt.disabledBorder=vt,Gt.buttonBackgroundChecked=vt,Gt.menuDivider=vt),bt&&(Gt.accentButtonBackground=bt),i!=null&&i.elevation4&&(Gt.cardShadow=i.elevation4),!pt&&(i!=null&&i.elevation8)?Gt.cardShadowHovered=i.elevation8:Gt.variantBorderHovered&&(Gt.cardShadowHovered="0 0 1px "+Gt.variantBorderHovered),Gt=__assign$1(__assign$1({},Gt),_e),Gt}function _fixDeprecatedSlots(a,i){var _e="";return i===!0&&(_e=" /* @deprecated */"),a.listTextColor=a.listText+_e,a.menuItemBackgroundChecked+=_e,a.warningHighlight+=_e,a.warningText=a.messageText+_e,a.successText+=_e,a}function mergeThemes(a,i){var _e,pt,Lt;i===void 0&&(i={});var Gt=merge$3({},a,i,{semanticColors:getSemanticColors(i.palette,i.effects,i.semanticColors,i.isInverted===void 0?a.isInverted:i.isInverted)});if(!((_e=i.palette)===null||_e===void 0)&&_e.themePrimary&&!(!((pt=i.palette)===null||pt===void 0)&&pt.accent)&&(Gt.palette.accent=i.palette.themePrimary),i.defaultFontStyle)for(var Ct=0,Rt=Object.keys(Gt.fonts);Ct"u"?global:window,_styleNonce=_root&&_root.CSPSettings&&_root.CSPSettings.nonce,_themeState=initializeThemeState();function initializeThemeState(){var a=_root.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]};return a.runState||(a=__assign(__assign({},a),{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),a.registeredThemableStyles||(a=__assign(__assign({},a),{registeredThemableStyles:[]})),_root.__themeState__=a,a}function applyThemableStyles(a,i){_themeState.loadStyles?_themeState.loadStyles(resolveThemableArray(a).styleString,a):registerStyles(a)}function loadTheme$1(a){_themeState.theme=a,reloadStyles()}function clearStyles(a){a===void 0&&(a=3),(a===3||a===2)&&(clearStylesInternal(_themeState.registeredStyles),_themeState.registeredStyles=[]),(a===3||a===1)&&(clearStylesInternal(_themeState.registeredThemableStyles),_themeState.registeredThemableStyles=[])}function clearStylesInternal(a){a.forEach(function(i){var _e=i&&i.styleElement;_e&&_e.parentElement&&_e.parentElement.removeChild(_e)})}function reloadStyles(){if(_themeState.theme){for(var a=[],i=0,_e=_themeState.registeredThemableStyles;i<_e.length;i++){var pt=_e[i];a.push(pt.themableStyle)}a.length>0&&(clearStyles(1),applyThemableStyles([].concat.apply([],a)))}}function resolveThemableArray(a){var i=_themeState.theme,_e=!1,pt=(a||[]).map(function(Lt){var Gt=Lt.theme;if(Gt){_e=!0;var Ct=i?i[Gt]:void 0,Rt=Lt.defaultValue||"inherit";return i&&!Ct&&console&&!(Gt in i)&&typeof DEBUG<"u"&&DEBUG&&console.warn('Theming value not provided for "'.concat(Gt,'". Falling back to "').concat(Rt,'".')),Ct||Rt}else return Lt.rawString});return{styleString:pt.join(""),themable:_e}}function registerStyles(a){if(!(typeof document>"u")){var i=document.getElementsByTagName("head")[0],_e=document.createElement("style"),pt=resolveThemableArray(a),Lt=pt.styleString,Gt=pt.themable;_e.setAttribute("data-load-themed-styles","true"),_styleNonce&&_e.setAttribute("nonce",_styleNonce),_e.appendChild(document.createTextNode(Lt)),_themeState.perf.count++,i.appendChild(_e);var Ct=document.createEvent("HTMLEvents");Ct.initEvent("styleinsert",!0,!1),Ct.args={newStyle:_e},document.dispatchEvent(Ct);var Rt={styleElement:_e,themableStyle:a};Gt?_themeState.registeredThemableStyles.push(Rt):_themeState.registeredStyles.push(Rt)}}var _theme=createTheme({}),_onThemeChangeCallbacks=[],ThemeSettingName="theme";function initializeThemeInCustomizations(){var a,i,_e,pt=getWindow();!((i=pt==null?void 0:pt.FabricConfig)===null||i===void 0)&&i.legacyTheme?loadTheme(pt.FabricConfig.legacyTheme):Customizations.getSettings([ThemeSettingName]).theme||(!((_e=pt==null?void 0:pt.FabricConfig)===null||_e===void 0)&&_e.theme&&(_theme=createTheme(pt.FabricConfig.theme)),Customizations.applySettings((a={},a[ThemeSettingName]=_theme,a)))}initializeThemeInCustomizations();function getTheme(a){return a===void 0&&(a=!1),a===!0&&(_theme=createTheme({},a)),_theme}function loadTheme(a,i){var _e;return i===void 0&&(i=!1),_theme=createTheme(a,i),loadTheme$1(__assign$1(__assign$1(__assign$1(__assign$1({},_theme.palette),_theme.semanticColors),_theme.effects),_loadFonts(_theme))),Customizations.applySettings((_e={},_e[ThemeSettingName]=_theme,_e)),_onThemeChangeCallbacks.forEach(function(pt){try{pt(_theme)}catch{}}),_theme}function _loadFonts(a){for(var i={},_e=0,pt=Object.keys(a.fonts);_ei.bottom||a.lefti.right)}function _getOutOfBoundsEdges(a,i){var _e=[];return a.topi.bottom&&_e.push(RectangleEdge.bottom),a.lefti.right&&_e.push(RectangleEdge.right),_e}function _getEdgeValue(a,i){return a[RectangleEdge[i]]}function _setEdgeValue(a,i,_e){return a[RectangleEdge[i]]=_e,a}function _getCenterValue(a,i){var _e=_getFlankingEdges(i);return(_getEdgeValue(a,_e.positiveEdge)+_getEdgeValue(a,_e.negativeEdge))/2}function _getRelativeEdgeValue(a,i){return a>0?i:i*-1}function _getRelativeRectEdgeValue(a,i){return _getRelativeEdgeValue(a,_getEdgeValue(i,a))}function _getRelativeEdgeDifference(a,i,_e){var pt=_getEdgeValue(a,_e)-_getEdgeValue(i,_e);return _getRelativeEdgeValue(_e,pt)}function _moveEdge(a,i,_e,pt){pt===void 0&&(pt=!0);var Lt=_getEdgeValue(a,i)-_e,Gt=_setEdgeValue(a,i,_e);return pt&&(Gt=_setEdgeValue(a,i*-1,_getEdgeValue(a,i*-1)-Lt)),Gt}function _alignEdges(a,i,_e,pt){return pt===void 0&&(pt=0),_moveEdge(a,_e,_getEdgeValue(i,_e)+_getRelativeEdgeValue(_e,pt))}function _alignOppositeEdges(a,i,_e,pt){pt===void 0&&(pt=0);var Lt=_e*-1,Gt=_getRelativeEdgeValue(Lt,pt);return _moveEdge(a,_e*-1,_getEdgeValue(i,_e)+Gt)}function _isEdgeInBounds(a,i,_e){var pt=_getRelativeRectEdgeValue(_e,a);return pt>_getRelativeRectEdgeValue(_e,i)}function _getOutOfBoundsDegree(a,i){for(var _e=_getOutOfBoundsEdges(a,i),pt=0,Lt=0,Gt=_e;Lt0&&(Gt.indexOf(Rt*-1)>-1?Rt=Rt*-1:(o=Rt,Rt=Gt.slice(-1)[0]),Ct=_estimatePosition(a,i,{targetEdge:Rt,alignmentEdge:o},Lt))}return Ct=_estimatePosition(a,i,{targetEdge:xt,alignmentEdge:et},Lt),{elementRectangle:Ct,targetEdge:xt,alignmentEdge:et}}function _flipAlignmentEdge(a,i,_e,pt){var Lt=a.alignmentEdge,Gt=a.targetEdge,Ct=a.elementRectangle,Rt=Lt*-1,o=_estimatePosition(Ct,i,{targetEdge:Gt,alignmentEdge:Rt},_e,pt);return{elementRectangle:o,targetEdge:Gt,alignmentEdge:Rt}}function _adjustFitWithinBounds(a,i,_e,pt,Lt,Gt,Ct){Lt===void 0&&(Lt=0);var Rt=pt.alignmentEdge,o=pt.alignTargetEdge,it={elementRectangle:a,targetEdge:pt.targetEdge,alignmentEdge:Rt};!Gt&&!Ct&&(it=_flipToFit(a,i,_e,pt,Lt));var xt=_getOutOfBoundsEdges(it.elementRectangle,_e),et=Gt?-it.targetEdge:void 0;if(xt.length>0)if(o)if(it.alignmentEdge&&xt.indexOf(it.alignmentEdge*-1)>-1){var Tt=_flipAlignmentEdge(it,i,Lt,Ct);if(_isRectangleWithinBounds(Tt.elementRectangle,_e))return Tt;it=_alignOutOfBoundsEdges(_getOutOfBoundsEdges(Tt.elementRectangle,_e),it,_e,et)}else it=_alignOutOfBoundsEdges(xt,it,_e,et);else it=_alignOutOfBoundsEdges(xt,it,_e,et);return it}function _alignOutOfBoundsEdges(a,i,_e,pt){for(var Lt=0,Gt=a;LtMath.abs(_getRelativeEdgeDifference(a,_e,i*-1))?i*-1:i}function _isEdgeOnBounds(a,i,_e){return _e!==void 0&&_getEdgeValue(a,i)===_getEdgeValue(_e,i)}function _finalizeElementPosition(a,i,_e,pt,Lt,Gt,Ct,Rt){var o={},it=_getRectangleFromElement(i),xt=Gt?_e:_e*-1,et=Lt||_getFlankingEdges(_e).positiveEdge;return(!Ct||_isEdgeOnBounds(a,getOppositeEdge(et),pt))&&(et=_finalizeReturnEdge(a,et,pt)),o[RectangleEdge[xt]]=_getRelativeEdgeDifference(a,it,xt),o[RectangleEdge[et]]=_getRelativeEdgeDifference(a,it,et),Rt&&(o[RectangleEdge[xt*-1]]=_getRelativeEdgeDifference(a,it,xt*-1),o[RectangleEdge[et*-1]]=_getRelativeEdgeDifference(a,it,et*-1)),o}function _calculateActualBeakWidthInPixels(a){return Math.sqrt(a*a*2)}function _getPositionData(a,i,_e){if(a===void 0&&(a=DirectionalHint.bottomAutoEdge),_e)return{alignmentEdge:_e.alignmentEdge,isAuto:_e.isAuto,targetEdge:_e.targetEdge};var pt=__assign$1({},DirectionalDictionary[a]);return getRTL()?(pt.alignmentEdge&&pt.alignmentEdge%2===0&&(pt.alignmentEdge=pt.alignmentEdge*-1),i!==void 0?DirectionalDictionary[i]:pt):pt}function _getAlignmentData(a,i,_e,pt,Lt){return a.isAuto&&(a.alignmentEdge=getClosestEdge(a.targetEdge,i,_e)),a.alignTargetEdge=Lt,a}function getClosestEdge(a,i,_e){var pt=_getCenterValue(i,a),Lt=_getCenterValue(_e,a),Gt=_getFlankingEdges(a),Ct=Gt.positiveEdge,Rt=Gt.negativeEdge;return pt<=Lt?Ct:Rt}function _positionElementWithinBounds(a,i,_e,pt,Lt,Gt,Ct){var Rt=_estimatePosition(a,i,pt,Lt,Ct);return _isRectangleWithinBounds(Rt,_e)?{elementRectangle:Rt,targetEdge:pt.targetEdge,alignmentEdge:pt.alignmentEdge}:_adjustFitWithinBounds(Rt,i,_e,pt,Lt,Gt,Ct)}function _finalizeBeakPosition(a,i,_e){var pt=a.targetEdge*-1,Lt=new Rectangle(0,a.elementRectangle.width,0,a.elementRectangle.height),Gt={},Ct=_finalizeReturnEdge(a.elementRectangle,a.alignmentEdge?a.alignmentEdge:_getFlankingEdges(pt).positiveEdge,_e),Rt=_getRelativeEdgeDifference(a.elementRectangle,a.targetRectangle,pt),o=Rt>Math.abs(_getEdgeValue(i,pt));return Gt[RectangleEdge[pt]]=_getEdgeValue(i,pt),Gt[RectangleEdge[Ct]]=_getRelativeEdgeDifference(i,Lt,Ct),{elementPosition:__assign$1({},Gt),closestEdge:getClosestEdge(a.targetEdge,i,Lt),targetEdge:pt,hideBeak:!o}}function _positionBeak(a,i){var _e=i.targetRectangle,pt=_getFlankingEdges(i.targetEdge),Lt=pt.positiveEdge,Gt=pt.negativeEdge,Ct=_getCenterValue(_e,i.targetEdge),Rt=new Rectangle(a/2,i.elementRectangle.width-a/2,a/2,i.elementRectangle.height-a/2),o=new Rectangle(0,a,0,a);return o=_moveEdge(o,i.targetEdge*-1,-a/2),o=_centerEdgeToPoint(o,i.targetEdge*-1,Ct-_getRelativeRectEdgeValue(Lt,i.elementRectangle)),_isEdgeInBounds(o,Rt,Lt)?_isEdgeInBounds(o,Rt,Gt)||(o=_alignEdges(o,Rt,Gt)):o=_alignEdges(o,Rt,Lt),o}function _getRectangleFromElement(a){var i=a.getBoundingClientRect();return new Rectangle(i.left,i.right,i.top,i.bottom)}function _getRectangleFromIRect(a){return new Rectangle(a.left,a.right,a.top,a.bottom)}function _getTargetRect(a,i){var _e;if(i){if(i.preventDefault){var pt=i;_e=new Rectangle(pt.clientX,pt.clientX,pt.clientY,pt.clientY)}else if(i.getBoundingClientRect)_e=_getRectangleFromElement(i);else{var Lt=i,Gt=Lt.left||Lt.x,Ct=Lt.top||Lt.y,Rt=Lt.right||Gt,o=Lt.bottom||Ct;_e=new Rectangle(Gt,Rt,Ct,o)}if(!_isRectangleWithinBounds(_e,a))for(var it=_getOutOfBoundsEdges(_e,a),xt=0,et=it;xt=pt&&Lt&&it.top<=Lt&&it.bottom>=Lt&&(Ct={top:it.top,left:it.left,right:it.right,bottom:it.bottom,width:it.width,height:it.height})}return Ct}function getBoundsFromTargetWindow(a,i){return _getBoundsFromTargetWindow(a,i)}function useAsync(){var a=reactExports.useRef();return a.current||(a.current=new Async),reactExports.useEffect(function(){return function(){var i;(i=a.current)===null||i===void 0||i.dispose(),a.current=void 0}},[]),a.current}function useConst(a){var i=reactExports.useRef();return i.current===void 0&&(i.current={value:typeof a=="function"?a():a}),i.current.value}function useBoolean(a){var i=reactExports.useState(a),_e=i[0],pt=i[1],Lt=useConst(function(){return function(){pt(!0)}}),Gt=useConst(function(){return function(){pt(!1)}}),Ct=useConst(function(){return function(){pt(function(Rt){return!Rt})}});return[_e,{setTrue:Lt,setFalse:Gt,toggle:Ct}]}function useControllableValue(a,i,_e){var pt=reactExports.useState(i),Lt=pt[0],Gt=pt[1],Ct=useConst(a!==void 0),Rt=Ct?a:Lt,o=reactExports.useRef(Rt),it=reactExports.useRef(_e);reactExports.useEffect(function(){o.current=Rt,it.current=_e});var xt=useConst(function(){return function(et,Tt){var yt=typeof et=="function"?et(o.current):et;it.current&&it.current(Tt,yt),Ct||Gt(yt)}});return[Rt,xt]}function useEventCallback(a){var i=reactExports.useRef(function(){throw new Error("Cannot call an event handler while rendering")});return useIsomorphicLayoutEffect(function(){i.current=a},[a]),useConst(function(){return function(){for(var _e=[],pt=0;pt0&&it>o&&(Rt=it-o>1)}Lt!==Rt&&Gt(Rt)}}),function(){return _e.dispose()}}),Lt}function defaultFocusRestorer(a){var i=a.originalElement,_e=a.containsFocus;i&&_e&&i!==getWindow()&&setTimeout(function(){var pt;(pt=i.focus)===null||pt===void 0||pt.call(i)},0)}function useRestoreFocus(a,i){var _e=a.onRestoreFocus,pt=_e===void 0?defaultFocusRestorer:_e,Lt=reactExports.useRef(),Gt=reactExports.useRef(!1);reactExports.useEffect(function(){return Lt.current=getDocument().activeElement,doesElementContainFocus(i.current)&&(Gt.current=!0),function(){var Ct;pt==null||pt({originalElement:Lt.current,containsFocus:Gt.current,documentContainsFocus:((Ct=getDocument())===null||Ct===void 0?void 0:Ct.hasFocus())||!1}),Lt.current=void 0}},[]),useOnEvent(i,"focus",reactExports.useCallback(function(){Gt.current=!0},[]),!0),useOnEvent(i,"blur",reactExports.useCallback(function(Ct){i.current&&Ct.relatedTarget&&!i.current.contains(Ct.relatedTarget)&&(Gt.current=!1)},[]),!0)}function useHideSiblingNodes(a,i){var _e=String(a["aria-modal"]).toLowerCase()==="true"&&a.enableAriaHiddenSiblings;reactExports.useEffect(function(){if(_e&&i.current){var pt=modalize(i.current);return pt}},[i,_e])}var Popup=reactExports.forwardRef(function(a,i){var _e=getPropsWithDefaults({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},a),pt=reactExports.useRef(),Lt=useMergedRefs(pt,i);useHideSiblingNodes(_e,pt),useRestoreFocus(_e,pt);var Gt=_e.role,Ct=_e.className,Rt=_e.ariaLabel,o=_e.ariaLabelledBy,it=_e.ariaDescribedBy,xt=_e.style,et=_e.children,Tt=_e.onDismiss,yt=useScrollbarAsync(_e,pt),ut=reactExports.useCallback(function(j){switch(j.which){case KeyCodes.escape:Tt&&(Tt(j),j.preventDefault(),j.stopPropagation());break}},[Tt]),ht=useWindow();return useOnEvent(ht,"keydown",ut),reactExports.createElement("div",__assign$1({ref:Lt},getNativeProps(_e,divProperties),{className:Ct,role:Gt,"aria-label":Rt,"aria-labelledby":o,"aria-describedby":it,onKeyDown:ut,style:__assign$1({overflowY:yt?"scroll":void 0,outline:"none"},xt)}),et)});Popup.displayName="Popup";var _a,COMPONENT_NAME$4="CalloutContentBase",ANIMATIONS=(_a={},_a[RectangleEdge.top]=AnimationClassNames.slideUpIn10,_a[RectangleEdge.bottom]=AnimationClassNames.slideDownIn10,_a[RectangleEdge.left]=AnimationClassNames.slideLeftIn10,_a[RectangleEdge.right]=AnimationClassNames.slideRightIn10,_a),BEAK_ORIGIN_POSITION={top:0,left:0},OFF_SCREEN_STYLE={opacity:0,filter:"opacity(0)",pointerEvents:"none"},ARIA_ROLE_ATTRIBUTES=["role","aria-roledescription"],DEFAULT_PROPS$3={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:DirectionalHint.bottomAutoEdge},getClassNames$h=classNamesFunction({disableCaching:!0});function useBounds(a,i,_e){var pt=a.bounds,Lt=a.minPagePadding,Gt=Lt===void 0?DEFAULT_PROPS$3.minPagePadding:Lt,Ct=a.target,Rt=reactExports.useState(!1),o=Rt[0],it=Rt[1],xt=reactExports.useRef(),et=reactExports.useCallback(function(){if(!xt.current||o){var yt=typeof pt=="function"?_e?pt(Ct,_e):void 0:pt;!yt&&_e&&(yt=getBoundsFromTargetWindow(i.current,_e),yt={top:yt.top+Gt,left:yt.left+Gt,right:yt.right-Gt,bottom:yt.bottom-Gt,width:yt.width-Gt*2,height:yt.height-Gt*2}),xt.current=yt,o&&it(!1)}return xt.current},[pt,Gt,Ct,i,_e,o]),Tt=useAsync();return useOnEvent(_e,"resize",Tt.debounce(function(){it(!0)},500,{leading:!0})),et}function useMaxHeight(a,i,_e){var pt,Lt=a.calloutMaxHeight,Gt=a.finalHeight,Ct=a.directionalHint,Rt=a.directionalHintFixed,o=a.hidden,it=reactExports.useState(),xt=it[0],et=it[1],Tt=(pt=_e==null?void 0:_e.elementPosition)!==null&&pt!==void 0?pt:{},yt=Tt.top,ut=Tt.bottom;return reactExports.useEffect(function(){var ht,j=(ht=i())!==null&&ht!==void 0?ht:{},_=j.top,rt=j.bottom;!Lt&&!o?typeof yt=="number"&&rt?et(rt-yt):typeof ut=="number"&&typeof _=="number"&&rt&&et(rt-_-ut):et(Lt||void 0)},[ut,Lt,Gt,Ct,Rt,i,o,_e,yt]),xt}function usePositions(a,i,_e,pt,Lt){var Gt=reactExports.useState(),Ct=Gt[0],Rt=Gt[1],o=reactExports.useRef(0),it=reactExports.useRef(),xt=useAsync(),et=a.hidden,Tt=a.target,yt=a.finalHeight,ut=a.calloutMaxHeight,ht=a.onPositioned,j=a.directionalHint;return reactExports.useEffect(function(){if(et)Rt(void 0),o.current=0;else{var _=xt.requestAnimationFrame(function(){var rt,tt;if(i.current&&_e){var st=__assign$1(__assign$1({},a),{target:pt.current,bounds:Lt()}),ot=_e.cloneNode(!0);ot.style.maxHeight=ut?""+ut:"",ot.style.visibility="hidden",(rt=_e.parentElement)===null||rt===void 0||rt.appendChild(ot);var nt=it.current===Tt?Ct:void 0,vt=yt?positionCard(st,i.current,ot,nt):positionCallout(st,i.current,ot,nt);(tt=_e.parentElement)===null||tt===void 0||tt.removeChild(ot),!Ct&&vt||Ct&&vt&&!arePositionsEqual(Ct,vt)&&o.current<5?(o.current++,Rt(vt)):o.current>0&&(o.current=0,ht==null||ht(Ct))}},_e);return it.current=Tt,function(){xt.cancelAnimationFrame(_),it.current=void 0}}},[et,j,xt,_e,ut,i,pt,yt,Lt,ht,Ct,a,Tt]),Ct}function useAutoFocus(a,i,_e){var pt=a.hidden,Lt=a.setInitialFocus,Gt=useAsync(),Ct=!!i;reactExports.useEffect(function(){if(!pt&&Lt&&Ct&&_e){var Rt=Gt.requestAnimationFrame(function(){return focusFirstChild(_e)},_e);return function(){return Gt.cancelAnimationFrame(Rt)}}},[pt,Ct,Gt,_e,Lt])}function useDismissHandlers(a,i,_e,pt,Lt){var Gt=a.hidden,Ct=a.onDismiss,Rt=a.preventDismissOnScroll,o=a.preventDismissOnResize,it=a.preventDismissOnLostFocus,xt=a.dismissOnTargetClick,et=a.shouldDismissOnWindowFocus,Tt=a.preventDismissOnEvent,yt=reactExports.useRef(!1),ut=useAsync(),ht=useConst([function(){yt.current=!0},function(){yt.current=!1}]),j=!!i;return reactExports.useEffect(function(){var _=function(vt){j&&!Rt&&st(vt)},rt=function(vt){!o&&!(Tt&&Tt(vt))&&(Ct==null||Ct(vt))},tt=function(vt){it||st(vt)},st=function(vt){var dt=vt.composedPath?vt.composedPath():[],bt=dt.length>0?dt[0]:vt.target,ft=_e.current&&!elementContains(_e.current,bt);if(ft&&yt.current){yt.current=!1;return}if(!pt.current&&ft||vt.target!==Lt&&ft&&(!pt.current||"stopPropagation"in pt.current||xt||bt!==pt.current&&!elementContains(pt.current,bt))){if(Tt&&Tt(vt))return;Ct==null||Ct(vt)}},ot=function(vt){et&&(Tt&&!Tt(vt)||!Tt&&!it)&&!(Lt!=null&&Lt.document.hasFocus())&&vt.relatedTarget===null&&(Ct==null||Ct(vt))},nt=new Promise(function(vt){ut.setTimeout(function(){if(!Gt&&Lt){var dt=[on(Lt,"scroll",_,!0),on(Lt,"resize",rt,!0),on(Lt.document.documentElement,"focus",tt,!0),on(Lt.document.documentElement,"click",tt,!0),on(Lt,"blur",ot,!0)];vt(function(){dt.forEach(function(bt){return bt()})})}},0)});return function(){nt.then(function(vt){return vt()})}},[Gt,ut,_e,pt,Lt,Ct,et,xt,it,o,Rt,j,Tt]),ht}var CalloutContentBase=reactExports.memo(reactExports.forwardRef(function(a,i){var _e=getPropsWithDefaults(DEFAULT_PROPS$3,a),pt=_e.styles,Lt=_e.style,Gt=_e.ariaLabel,Ct=_e.ariaDescribedBy,Rt=_e.ariaLabelledBy,o=_e.className,it=_e.isBeakVisible,xt=_e.children,et=_e.beakWidth,Tt=_e.calloutWidth,yt=_e.calloutMaxWidth,ut=_e.calloutMinWidth,ht=_e.doNotLayer,j=_e.finalHeight,_=_e.hideOverflow,rt=_===void 0?!!j:_,tt=_e.backgroundColor,st=_e.calloutMaxHeight,ot=_e.onScroll,nt=_e.shouldRestoreFocus,vt=nt===void 0?!0:nt,dt=_e.target,bt=_e.hidden,ft=_e.onLayerMounted,at=_e.popupProps,mt=reactExports.useRef(null),St=reactExports.useState(null),_t=St[0],Mt=St[1],Et=reactExports.useCallback(function(lr){Mt(lr)},[]),kt=useMergedRefs(mt,i),wt=useTarget(_e.target,{current:_t}),ct=wt[0],It=wt[1],At=useBounds(_e,ct,It),Ot=usePositions(_e,mt,_t,ct,At),Pt=useMaxHeight(_e,At,Ot),zt=useDismissHandlers(_e,Ot,mt,ct,It),Dt=zt[0],Nt=zt[1],$t=(Ot==null?void 0:Ot.elementPosition.top)&&(Ot==null?void 0:Ot.elementPosition.bottom),Ut=__assign$1(__assign$1({},Ot==null?void 0:Ot.elementPosition),{maxHeight:Pt});if($t&&(Ut.bottom=void 0),useAutoFocus(_e,Ot,_t),reactExports.useEffect(function(){bt||ft==null||ft()},[bt]),!It)return null;var Ht=rt,Vt=it&&!!dt,Xt=getClassNames$h(pt,{theme:_e.theme,className:o,overflowYHidden:Ht,calloutWidth:Tt,positions:Ot,beakWidth:et,backgroundColor:tt,calloutMaxWidth:yt,calloutMinWidth:ut,doNotLayer:ht}),qt=__assign$1(__assign$1({maxHeight:st||"100%"},Lt),Ht&&{overflowY:"hidden"}),er=_e.hidden?{visibility:"hidden"}:void 0;return reactExports.createElement("div",{ref:kt,className:Xt.container,style:er},reactExports.createElement("div",__assign$1({},getNativeProps(_e,divProperties,ARIA_ROLE_ATTRIBUTES),{className:css$2(Xt.root,Ot&&Ot.targetEdge&&ANIMATIONS[Ot.targetEdge]),style:Ot?__assign$1({},Ut):OFF_SCREEN_STYLE,tabIndex:-1,ref:Et}),Vt&&reactExports.createElement("div",{className:Xt.beak,style:getBeakPosition(Ot)}),Vt&&reactExports.createElement("div",{className:Xt.beakCurtain}),reactExports.createElement(Popup,__assign$1({role:_e.role,"aria-roledescription":_e["aria-roledescription"],ariaDescribedBy:Ct,ariaLabel:Gt,ariaLabelledBy:Rt,className:Xt.calloutMain,onDismiss:_e.onDismiss,onMouseDown:Dt,onMouseUp:Nt,onRestoreFocus:_e.onRestoreFocus,onScroll:ot,shouldRestoreFocus:vt,style:qt},at),xt)))}),function(a,i){return!i.shouldUpdateWhenHidden&&a.hidden&&i.hidden?!0:shallowCompare(a,i)});function getBeakPosition(a){var i,_e,pt=__assign$1(__assign$1({},(i=a==null?void 0:a.beakPosition)===null||i===void 0?void 0:i.elementPosition),{display:!((_e=a==null?void 0:a.beakPosition)===null||_e===void 0)&&_e.hideBeak?"none":void 0});return!pt.top&&!pt.bottom&&!pt.left&&!pt.right&&(pt.left=BEAK_ORIGIN_POSITION.left,pt.top=BEAK_ORIGIN_POSITION.top),pt}function arePositionsEqual(a,i){return comparePositions(a.elementPosition,i.elementPosition)&&comparePositions(a.beakPosition.elementPosition,i.beakPosition.elementPosition)}function comparePositions(a,i){for(var _e in i)if(i.hasOwnProperty(_e)){var pt=a[_e],Lt=i[_e];if(pt!==void 0&&Lt!==void 0){if(pt.toFixed(2)!==Lt.toFixed(2))return!1}else return!1}return!0}CalloutContentBase.displayName=COMPONENT_NAME$4;function getBeakStyle(a){return{height:a,width:a}}var GlobalClassNames$d={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},getStyles$l=function(a){var i,_e=a.theme,pt=a.className,Lt=a.overflowYHidden,Gt=a.calloutWidth,Ct=a.beakWidth,Rt=a.backgroundColor,o=a.calloutMaxWidth,it=a.calloutMinWidth,xt=a.doNotLayer,et=getGlobalClassNames(GlobalClassNames$d,_e),Tt=_e.semanticColors,yt=_e.effects;return{container:[et.container,{position:"relative"}],root:[et.root,_e.fonts.medium,{position:"absolute",display:"flex",zIndex:xt?ZIndexes.Layer:void 0,boxSizing:"border-box",borderRadius:yt.roundedCorner2,boxShadow:yt.elevation16,selectors:(i={},i[HighContrastSelector]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},i)},focusClear(),pt,!!Gt&&{width:Gt},!!o&&{maxWidth:o},!!it&&{minWidth:it}],beak:[et.beak,{position:"absolute",backgroundColor:Tt.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},getBeakStyle(Ct),Rt&&{backgroundColor:Rt}],beakCurtain:[et.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:Tt.menuBackground,borderRadius:yt.roundedCorner2}],calloutMain:[et.calloutMain,{backgroundColor:Tt.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:yt.roundedCorner2},Lt&&{overflowY:"hidden"},Rt&&{backgroundColor:Rt}]}},CalloutContent=styled(CalloutContentBase,getStyles$l,void 0,{scope:"CalloutContent"}),PortalCompatContext=reactExports.createContext(void 0),portalCompatContextDefaultValue=function(){return function(){}};PortalCompatContext.Provider;function usePortalCompat(){var a;return(a=reactExports.useContext(PortalCompatContext))!==null&&a!==void 0?a:portalCompatContextDefaultValue}var getClassNames$g=classNamesFunction(),getFabricTheme=memoizeFunction(function(a,i){return createTheme(__assign$1(__assign$1({},a),{rtl:i}))}),getDir=function(a){var i=a.theme,_e=a.dir,pt=getRTL(i)?"rtl":"ltr",Lt=getRTL()?"rtl":"ltr",Gt=_e||pt;return{rootDir:Gt!==pt||Gt!==Lt?Gt:_e,needsTheme:Gt!==pt}},FabricBase=reactExports.forwardRef(function(a,i){var _e=a.className,pt=a.theme,Lt=a.applyTheme,Gt=a.applyThemeToBody,Ct=a.styles,Rt=getClassNames$g(Ct,{theme:pt,applyTheme:Lt,className:_e}),o=reactExports.useRef(null);return useApplyThemeToBody(Gt,Rt,o),reactExports.createElement(reactExports.Fragment,null,useRenderedContent(a,Rt,o,i))});FabricBase.displayName="FabricBase";function useRenderedContent(a,i,_e,pt){var Lt=i.root,Gt=a.as,Ct=Gt===void 0?"div":Gt,Rt=a.dir,o=a.theme,it=getNativeProps(a,divProperties,["dir"]),xt=getDir(a),et=xt.rootDir,Tt=xt.needsTheme,yt=reactExports.createElement(FocusRectsProvider,{providerRef:_e},reactExports.createElement(Ct,__assign$1({dir:et},it,{className:Lt,ref:useMergedRefs(_e,pt)})));return Tt&&(yt=reactExports.createElement(Customizer,{settings:{theme:getFabricTheme(o,Rt==="rtl")}},yt)),yt}function useApplyThemeToBody(a,i,_e){var pt=i.bodyThemed;return reactExports.useEffect(function(){if(a){var Lt=getDocument(_e.current);if(Lt)return Lt.body.classList.add(pt),function(){Lt.body.classList.remove(pt)}}},[pt,a,_e]),_e}var inheritFont={fontFamily:"inherit"},GlobalClassNames$c={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},getStyles$k=function(a){var i=a.applyTheme,_e=a.className,pt=a.preventBlanketFontInheritance,Lt=a.theme,Gt=getGlobalClassNames(GlobalClassNames$c,Lt);return{root:[Gt.root,Lt.fonts.medium,{color:Lt.palette.neutralPrimary},!pt&&{"& button":inheritFont,"& input":inheritFont,"& textarea":inheritFont},i&&{color:Lt.semanticColors.bodyText,backgroundColor:Lt.semanticColors.bodyBackground},_e],bodyThemed:[{backgroundColor:Lt.semanticColors.bodyBackground}]}},Fabric=styled(FabricBase,getStyles$k,void 0,{scope:"Fabric"}),_layersByHostId={},_layerHostsById={},defaultHostId="fluent-default-layer-host",_defaultHostSelector="#"+defaultHostId;function registerLayer(a,i){_layersByHostId[a]||(_layersByHostId[a]=[]),_layersByHostId[a].push(i);var _e=_layerHostsById[a];if(_e)for(var pt=0,Lt=_e;pt=0&&(_e.splice(pt,1),_e.length===0&&delete _layersByHostId[a])}var Lt=_layerHostsById[a];if(Lt)for(var Gt=0,Ct=Lt;Gt0&&i.current.naturalHeight>0||i.current.complete&&SVG_REGEX.test(Gt):!1;et&&o(ImageLoadState.loaded)}}),reactExports.useEffect(function(){_e==null||_e(Rt)},[Rt]);var it=reactExports.useCallback(function(et){pt==null||pt(et),Gt&&o(ImageLoadState.loaded)},[Gt,pt]),xt=reactExports.useCallback(function(et){Lt==null||Lt(et),o(ImageLoadState.error)},[Lt]);return[Rt,it,xt]}var ImageBase=reactExports.forwardRef(function(a,i){var _e=reactExports.useRef(),pt=reactExports.useRef(),Lt=useLoadState(a,pt),Gt=Lt[0],Ct=Lt[1],Rt=Lt[2],o=getNativeProps(a,imgProperties,["width","height"]),it=a.src,xt=a.alt,et=a.width,Tt=a.height,yt=a.shouldFadeIn,ut=yt===void 0?!0:yt,ht=a.shouldStartVisible,j=a.className,_=a.imageFit,rt=a.role,tt=a.maximizeFrame,st=a.styles,ot=a.theme,nt=a.loading,vt=useCoverStyle(a,Gt,pt,_e),dt=getClassNames$e(st,{theme:ot,className:j,width:et,height:Tt,maximizeFrame:tt,shouldFadeIn:ut,shouldStartVisible:ht,isLoaded:Gt===ImageLoadState.loaded||Gt===ImageLoadState.notLoaded&&a.shouldStartVisible,isLandscape:vt===ImageCoverStyle.landscape,isCenter:_===ImageFit.center,isCenterContain:_===ImageFit.centerContain,isCenterCover:_===ImageFit.centerCover,isContain:_===ImageFit.contain,isCover:_===ImageFit.cover,isNone:_===ImageFit.none,isError:Gt===ImageLoadState.error,isNotImageFit:_===void 0});return reactExports.createElement("div",{className:dt.root,style:{width:et,height:Tt},ref:_e},reactExports.createElement("img",__assign$1({},o,{onLoad:Ct,onError:Rt,key:KEY_PREFIX+a.src||"",className:dt.image,ref:useMergedRefs(pt,i),src:it,alt:xt,role:rt,loading:nt})))});ImageBase.displayName="ImageBase";function useCoverStyle(a,i,_e,pt){var Lt=reactExports.useRef(i),Gt=reactExports.useRef();return(Gt===void 0||Lt.current===ImageLoadState.notLoaded&&i===ImageLoadState.loaded)&&(Gt.current=computeCoverStyle(a,i,_e,pt)),Lt.current=i,Gt.current}function computeCoverStyle(a,i,_e,pt){var Lt=a.imageFit,Gt=a.width,Ct=a.height;if(a.coverStyle!==void 0)return a.coverStyle;if(i===ImageLoadState.loaded&&(Lt===ImageFit.cover||Lt===ImageFit.contain||Lt===ImageFit.centerContain||Lt===ImageFit.centerCover)&&_e.current&&pt.current){var Rt=void 0;typeof Gt=="number"&&typeof Ct=="number"&&Lt!==ImageFit.centerContain&&Lt!==ImageFit.centerCover?Rt=Gt/Ct:Rt=pt.current.clientWidth/pt.current.clientHeight;var o=_e.current.naturalWidth/_e.current.naturalHeight;if(o>Rt)return ImageCoverStyle.landscape}return ImageCoverStyle.portrait}var GlobalClassNames$a={root:"ms-Image",rootMaximizeFrame:"ms-Image--maximizeFrame",image:"ms-Image-image",imageCenter:"ms-Image-image--center",imageContain:"ms-Image-image--contain",imageCover:"ms-Image-image--cover",imageCenterContain:"ms-Image-image--centerContain",imageCenterCover:"ms-Image-image--centerCover",imageNone:"ms-Image-image--none",imageLandscape:"ms-Image-image--landscape",imagePortrait:"ms-Image-image--portrait"},getStyles$i=function(a){var i=a.className,_e=a.width,pt=a.height,Lt=a.maximizeFrame,Gt=a.isLoaded,Ct=a.shouldFadeIn,Rt=a.shouldStartVisible,o=a.isLandscape,it=a.isCenter,xt=a.isContain,et=a.isCover,Tt=a.isCenterContain,yt=a.isCenterCover,ut=a.isNone,ht=a.isError,j=a.isNotImageFit,_=a.theme,rt=getGlobalClassNames(GlobalClassNames$a,_),tt={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},st=getWindow(),ot=st!==void 0&&st.navigator.msMaxTouchPoints===void 0,nt=xt&&o||et&&!o?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[rt.root,_.fonts.medium,{overflow:"hidden"},Lt&&[rt.rootMaximizeFrame,{height:"100%",width:"100%"}],Gt&&Ct&&!Rt&&AnimationClassNames.fadeIn400,(it||xt||et||Tt||yt)&&{position:"relative"},i],image:[rt.image,{display:"block",opacity:0},Gt&&["is-loaded",{opacity:1}],it&&[rt.imageCenter,tt],xt&&[rt.imageContain,ot&&{width:"100%",height:"100%",objectFit:"contain"},!ot&&nt,!ot&&tt],et&&[rt.imageCover,ot&&{width:"100%",height:"100%",objectFit:"cover"},!ot&&nt,!ot&&tt],Tt&&[rt.imageCenterContain,o&&{maxWidth:"100%"},!o&&{maxHeight:"100%"},tt],yt&&[rt.imageCenterCover,o&&{maxHeight:"100%"},!o&&{maxWidth:"100%"},tt],ut&&[rt.imageNone,{width:"auto",height:"auto"}],j&&[!!_e&&!pt&&{height:"auto",width:"100%"},!_e&&!!pt&&{height:"100%",width:"auto"},!!_e&&!!pt&&{height:"100%",width:"100%"}],o&&rt.imageLandscape,!o&&rt.imagePortrait,!Gt&&"is-notLoaded",Ct&&"is-fadeIn",ht&&"is-error"]}},Image$1=styled(ImageBase,getStyles$i,void 0,{scope:"Image"},!0);Image$1.displayName="Image";var classNames=mergeStyleSets({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]}),MS_ICON="ms-Icon",getStyles$h=function(a){var i=a.className,_e=a.iconClassName,pt=a.isPlaceholder,Lt=a.isImage,Gt=a.styles;return{root:[pt&&classNames.placeholder,classNames.root,Lt&&classNames.image,_e,i,Gt&&Gt.root,Gt&&Gt.imageContainer]}},getIconContent=memoizeFunction(function(a){var i=getIcon(a)||{subset:{},code:void 0},_e=i.code,pt=i.subset;return _e?{children:_e,iconClassName:pt.className,fontFamily:pt.fontFace&&pt.fontFace.fontFamily,mergeImageProps:pt.mergeImageProps}:null},void 0,!0),FontIcon=function(a){var i=a.iconName,_e=a.className,pt=a.style,Lt=pt===void 0?{}:pt,Gt=getIconContent(i)||{},Ct=Gt.iconClassName,Rt=Gt.children,o=Gt.fontFamily,it=Gt.mergeImageProps,xt=getNativeProps(a,htmlElementProperties),et=a["aria-label"]||a.title,Tt=a["aria-label"]||a["aria-labelledby"]||a.title?{role:it?void 0:"img"}:{"aria-hidden":!0},yt=Rt;return it&&typeof Rt=="object"&&typeof Rt.props=="object"&&et&&(yt=reactExports.cloneElement(Rt,{alt:et})),reactExports.createElement("i",__assign$1({"data-icon-name":i},Tt,xt,it?{title:void 0,"aria-label":void 0}:{},{className:css$2(MS_ICON,classNames.root,Ct,!i&&classNames.placeholder,_e),style:__assign$1({fontFamily:o},Lt)}),yt)};memoizeFunction(function(a,i,_e){return FontIcon({iconName:a,className:i,"aria-label":_e})});var getClassNames$d=classNamesFunction({cacheSize:100}),IconBase=function(a){__extends(i,a);function i(_e){var pt=a.call(this,_e)||this;return pt._onImageLoadingStateChange=function(Lt){pt.props.imageProps&&pt.props.imageProps.onLoadingStateChange&&pt.props.imageProps.onLoadingStateChange(Lt),Lt===ImageLoadState.error&&pt.setState({imageLoadError:!0})},pt.state={imageLoadError:!1},pt}return i.prototype.render=function(){var _e=this.props,pt=_e.children,Lt=_e.className,Gt=_e.styles,Ct=_e.iconName,Rt=_e.imageErrorAs,o=_e.theme,it=typeof Ct=="string"&&Ct.length===0,xt=!!this.props.imageProps||this.props.iconType===IconType.image||this.props.iconType===IconType.Image,et=getIconContent(Ct)||{},Tt=et.iconClassName,yt=et.children,ut=et.mergeImageProps,ht=getClassNames$d(Gt,{theme:o,className:Lt,iconClassName:Tt,isImage:xt,isPlaceholder:it}),j=xt?"span":"i",_=getNativeProps(this.props,htmlElementProperties,["aria-label"]),rt=this.state.imageLoadError,tt=__assign$1(__assign$1({},this.props.imageProps),{onLoadingStateChange:this._onImageLoadingStateChange}),st=rt&&Rt||Image$1,ot=this.props["aria-label"]||this.props.ariaLabel,nt=tt.alt||ot||this.props.title,vt=!!(nt||this.props["aria-labelledby"]||tt["aria-label"]||tt["aria-labelledby"]),dt=vt?{role:xt||ut?void 0:"img","aria-label":xt||ut?void 0:nt}:{"aria-hidden":!0},bt=yt;return ut&&yt&&typeof yt=="object"&&nt&&(bt=reactExports.cloneElement(yt,{alt:nt})),reactExports.createElement(j,__assign$1({"data-icon-name":Ct},dt,_,ut?{title:void 0,"aria-label":void 0}:{},{className:ht.root}),xt?reactExports.createElement(st,__assign$1({},tt)):pt||bt)},i}(reactExports.Component),Icon=styled(IconBase,getStyles$h,void 0,{scope:"Icon"},!0);Icon.displayName="Icon";var ImageIcon=function(a){var i=a.className,_e=a.imageProps,pt=getNativeProps(a,htmlElementProperties,["aria-label","aria-labelledby","title","aria-describedby"]),Lt=_e.alt||a["aria-label"],Gt=Lt||a["aria-labelledby"]||a.title||_e["aria-label"]||_e["aria-labelledby"]||_e.title,Ct={"aria-labelledby":a["aria-labelledby"],"aria-describedby":a["aria-describedby"],title:a.title},Rt=Gt?{}:{"aria-hidden":!0};return reactExports.createElement("div",__assign$1({},Rt,pt,{className:css$2(MS_ICON,classNames.root,classNames.image,i)}),reactExports.createElement(Image$1,__assign$1({},Ct,_e,{alt:Gt?Lt:""})))},FocusZoneTabbableElements={none:0,all:1,inputOnly:2},FocusZoneDirection;(function(a){a[a.vertical=0]="vertical",a[a.horizontal=1]="horizontal",a[a.bidirectional=2]="bidirectional",a[a.domOrder=3]="domOrder"})(FocusZoneDirection||(FocusZoneDirection={}));var IS_FOCUSABLE_ATTRIBUTE="data-is-focusable",IS_ENTER_DISABLED_ATTRIBUTE="data-disable-click-on-enter",FOCUSZONE_ID_ATTRIBUTE="data-focuszone-id",TABINDEX="tabindex",NO_VERTICAL_WRAP="data-no-vertical-wrap",NO_HORIZONTAL_WRAP="data-no-horizontal-wrap",LARGE_DISTANCE_FROM_CENTER=999999999,LARGE_NEGATIVE_DISTANCE_FROM_CENTER=-999999999,focusZoneStyles,focusZoneClass="ms-FocusZone";function raiseClickFromKeyboardEvent(a,i){var _e;typeof MouseEvent=="function"?_e=new MouseEvent("click",{ctrlKey:i==null?void 0:i.ctrlKey,metaKey:i==null?void 0:i.metaKey,shiftKey:i==null?void 0:i.shiftKey,altKey:i==null?void 0:i.altKey,bubbles:i==null?void 0:i.bubbles,cancelable:i==null?void 0:i.cancelable}):(_e=document.createEvent("MouseEvents"),_e.initMouseEvent("click",i?i.bubbles:!1,i?i.cancelable:!1,window,0,0,0,0,0,i?i.ctrlKey:!1,i?i.altKey:!1,i?i.shiftKey:!1,i?i.metaKey:!1,0,null)),a.dispatchEvent(_e)}function getRootClass(){return focusZoneStyles||(focusZoneStyles=mergeStyles({selectors:{":focus":{outline:"none"}}},focusZoneClass)),focusZoneStyles}var _allInstances={},_outerZones=new Set,ALLOWED_INPUT_TYPES=["text","number","password","email","tel","url","search","textarea"],ALLOW_VIRTUAL_ELEMENTS=!1,FocusZone=function(a){__extends(i,a);function i(_e){var pt,Lt,Gt,Ct,Rt=a.call(this,_e)||this;Rt._root=reactExports.createRef(),Rt._mergedRef=createMergedRef(),Rt._onFocus=function(it){if(!Rt._portalContainsElement(it.target)){var xt=Rt.props,et=xt.onActiveElementChanged,Tt=xt.doNotAllowFocusEventToPropagate,yt=xt.stopFocusPropagation,ut=xt.onFocusNotification,ht=xt.onFocus,j=xt.shouldFocusInnerElementWhenReceivedFocus,_=xt.defaultTabbableElement,rt=Rt._isImmediateDescendantOfZone(it.target),tt;if(rt)tt=it.target;else for(var st=it.target;st&&st!==Rt._root.current;){if(isElementTabbable(st)&&Rt._isImmediateDescendantOfZone(st)){tt=st;break}st=getParent(st,ALLOW_VIRTUAL_ELEMENTS)}if(j&&it.target===Rt._root.current){var ot=_&&typeof _=="function"&&Rt._root.current&&_(Rt._root.current);ot&&isElementTabbable(ot)?(tt=ot,ot.focus()):(Rt.focus(!0),Rt._activeElement&&(tt=null))}var nt=!Rt._activeElement;tt&&tt!==Rt._activeElement&&((rt||nt)&&Rt._setFocusAlignment(tt,!0,!0),Rt._activeElement=tt,nt&&Rt._updateTabIndexes()),et&&et(Rt._activeElement,it),(yt||Tt)&&it.stopPropagation(),ht?ht(it):ut&&ut()}},Rt._onBlur=function(){Rt._setParkedFocus(!1)},Rt._onMouseDown=function(it){if(!Rt._portalContainsElement(it.target)){var xt=Rt.props.disabled;if(!xt){for(var et=it.target,Tt=[];et&&et!==Rt._root.current;)Tt.push(et),et=getParent(et,ALLOW_VIRTUAL_ELEMENTS);for(;Tt.length&&(et=Tt.pop(),et&&isElementTabbable(et)&&Rt._setActiveElement(et,!0),!isElementFocusZone(et)););}}},Rt._onKeyDown=function(it,xt){if(!Rt._portalContainsElement(it.target)){var et=Rt.props,Tt=et.direction,yt=et.disabled,ut=et.isInnerZoneKeystroke,ht=et.pagingSupportDisabled,j=et.shouldEnterInnerZone;if(!yt&&(Rt.props.onKeyDown&&Rt.props.onKeyDown(it),!it.isDefaultPrevented()&&!(Rt._getDocument().activeElement===Rt._root.current&&Rt._isInnerZone))){if((j&&j(it)||ut&&ut(it))&&Rt._isImmediateDescendantOfZone(it.target)){var _=Rt._getFirstInnerZone();if(_){if(!_.focus(!0))return}else if(isElementFocusSubZone(it.target)){if(!Rt.focusElement(getNextElement(it.target,it.target.firstChild,!0)))return}else return}else{if(it.altKey)return;switch(it.which){case KeyCodes.space:if(Rt._shouldRaiseClicksOnSpace&&Rt._tryInvokeClickForFocusable(it.target,it))break;return;case KeyCodes.left:if(Tt!==FocusZoneDirection.vertical&&(Rt._preventDefaultWhenHandled(it),Rt._moveFocusLeft(xt)))break;return;case KeyCodes.right:if(Tt!==FocusZoneDirection.vertical&&(Rt._preventDefaultWhenHandled(it),Rt._moveFocusRight(xt)))break;return;case KeyCodes.up:if(Tt!==FocusZoneDirection.horizontal&&(Rt._preventDefaultWhenHandled(it),Rt._moveFocusUp()))break;return;case KeyCodes.down:if(Tt!==FocusZoneDirection.horizontal&&(Rt._preventDefaultWhenHandled(it),Rt._moveFocusDown()))break;return;case KeyCodes.pageDown:if(!ht&&Rt._moveFocusPaging(!0))break;return;case KeyCodes.pageUp:if(!ht&&Rt._moveFocusPaging(!1))break;return;case KeyCodes.tab:if(Rt.props.allowTabKey||Rt.props.handleTabKey===FocusZoneTabbableElements.all||Rt.props.handleTabKey===FocusZoneTabbableElements.inputOnly&&Rt._isElementInput(it.target)){var rt=!1;if(Rt._processingTabKey=!0,Tt===FocusZoneDirection.vertical||!Rt._shouldWrapFocus(Rt._activeElement,NO_HORIZONTAL_WRAP))rt=it.shiftKey?Rt._moveFocusUp():Rt._moveFocusDown();else{var tt=getRTL(xt)?!it.shiftKey:it.shiftKey;rt=tt?Rt._moveFocusLeft(xt):Rt._moveFocusRight(xt)}if(Rt._processingTabKey=!1,rt)break;Rt.props.shouldResetActiveElementWhenTabFromZone&&(Rt._activeElement=null)}return;case KeyCodes.home:if(Rt._isContentEditableElement(it.target)||Rt._isElementInput(it.target)&&!Rt._shouldInputLoseFocus(it.target,!1))return!1;var st=Rt._root.current&&Rt._root.current.firstChild;if(Rt._root.current&&st&&Rt.focusElement(getNextElement(Rt._root.current,st,!0)))break;return;case KeyCodes.end:if(Rt._isContentEditableElement(it.target)||Rt._isElementInput(it.target)&&!Rt._shouldInputLoseFocus(it.target,!0))return!1;var ot=Rt._root.current&&Rt._root.current.lastChild;if(Rt._root.current&&Rt.focusElement(getPreviousElement(Rt._root.current,ot,!0,!0,!0)))break;return;case KeyCodes.enter:if(Rt._shouldRaiseClicksOnEnter&&Rt._tryInvokeClickForFocusable(it.target,it))break;return;default:return}}it.preventDefault(),it.stopPropagation()}}},Rt._getHorizontalDistanceFromCenter=function(it,xt,et){var Tt=Rt._focusAlignment.left||Rt._focusAlignment.x||0,yt=Math.floor(et.top),ut=Math.floor(xt.bottom),ht=Math.floor(et.bottom),j=Math.floor(xt.top),_=it&&yt>ut,rt=!it&&ht=et.left&&Tt<=et.left+et.width?0:Math.abs(et.left+et.width/2-Tt):Rt._shouldWrapFocus(Rt._activeElement,NO_VERTICAL_WRAP)?LARGE_DISTANCE_FROM_CENTER:LARGE_NEGATIVE_DISTANCE_FROM_CENTER},initializeComponentRef(Rt),Rt._id=getId("FocusZone"),Rt._focusAlignment={left:0,top:0},Rt._processingTabKey=!1;var o=(Lt=(pt=_e.shouldRaiseClicks)!==null&&pt!==void 0?pt:i.defaultProps.shouldRaiseClicks)!==null&&Lt!==void 0?Lt:!0;return Rt._shouldRaiseClicksOnEnter=(Gt=_e.shouldRaiseClicksOnEnter)!==null&&Gt!==void 0?Gt:o,Rt._shouldRaiseClicksOnSpace=(Ct=_e.shouldRaiseClicksOnSpace)!==null&&Ct!==void 0?Ct:o,Rt}return i.getOuterZones=function(){return _outerZones.size},i._onKeyDownCapture=function(_e){_e.which===KeyCodes.tab&&_outerZones.forEach(function(pt){return pt._updateTabIndexes()})},i.prototype.componentDidMount=function(){var _e=this._root.current;if(_allInstances[this._id]=this,_e){for(var pt=getParent(_e,ALLOW_VIRTUAL_ELEMENTS);pt&&pt!==this._getDocument().body&&pt.nodeType===1;){if(isElementFocusZone(pt)){this._isInnerZone=!0;break}pt=getParent(pt,ALLOW_VIRTUAL_ELEMENTS)}this._isInnerZone||(_outerZones.add(this),this._root.current&&this._root.current.addEventListener("keydown",i._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&typeof this.props.defaultTabbableElement=="string"?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},i.prototype.componentDidUpdate=function(){var _e=this._root.current,pt=this._getDocument();if((this._activeElement&&!elementContains(this._root.current,this._activeElement,ALLOW_VIRTUAL_ELEMENTS)||this._defaultFocusElement&&!elementContains(this._root.current,this._defaultFocusElement,ALLOW_VIRTUAL_ELEMENTS))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&pt&&this._lastIndexPath&&(pt.activeElement===pt.body||pt.activeElement===null||pt.activeElement===_e)){var Lt=getFocusableByIndexPath(_e,this._lastIndexPath);Lt?(this._setActiveElement(Lt,!0),Lt.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},i.prototype.componentWillUnmount=function(){delete _allInstances[this._id],this._isInnerZone||(_outerZones.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",i._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},i.prototype.render=function(){var _e=this,pt=this.props,Lt=pt.as,Gt=pt.elementType,Ct=pt.rootProps,Rt=pt.ariaDescribedBy,o=pt.ariaLabelledBy,it=pt.className,xt=getNativeProps(this.props,htmlElementProperties),et=Lt||Gt||"div";this._evaluateFocusBeforeRender();var Tt=getTheme();return reactExports.createElement(et,__assign$1({"aria-labelledby":o,"aria-describedby":Rt},xt,Ct,{className:css$2(getRootClass(),it),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(yt){return _e._onKeyDown(yt,Tt)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},i.prototype.focus=function(_e,pt){if(_e===void 0&&(_e=!1),pt===void 0&&(pt=!1),this._root.current)if(!_e&&this._root.current.getAttribute(IS_FOCUSABLE_ATTRIBUTE)==="true"&&this._isInnerZone){var Lt=this._getOwnerZone(this._root.current);if(Lt!==this._root.current){var Gt=_allInstances[Lt.getAttribute(FOCUSZONE_ID_ATTRIBUTE)];return!!Gt&&Gt.focusElement(this._root.current)}return!1}else{if(!_e&&this._activeElement&&elementContains(this._root.current,this._activeElement)&&isElementTabbable(this._activeElement)&&(!pt||isElementVisibleAndNotHidden(this._activeElement)))return this._activeElement.focus(),!0;var Ct=this._root.current.firstChild;return this.focusElement(getNextElement(this._root.current,Ct,!0,void 0,void 0,void 0,void 0,void 0,pt))}return!1},i.prototype.focusLast=function(){if(this._root.current){var _e=this._root.current&&this._root.current.lastChild;return this.focusElement(getPreviousElement(this._root.current,_e,!0,!0,!0))}return!1},i.prototype.focusElement=function(_e,pt){var Lt=this.props,Gt=Lt.onBeforeFocus,Ct=Lt.shouldReceiveFocus;return Ct&&!Ct(_e)||Gt&&!Gt(_e)?!1:_e?(this._setActiveElement(_e,pt),this._activeElement&&this._activeElement.focus(),!0):!1},i.prototype.setFocusAlignment=function(_e){this._focusAlignment=_e},Object.defineProperty(i.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),i.prototype._evaluateFocusBeforeRender=function(){var _e=this._root.current,pt=this._getDocument();if(pt){var Lt=pt.activeElement;if(Lt!==_e){var Gt=elementContains(_e,Lt,!1);this._lastIndexPath=Gt?getElementIndexPath(_e,Lt):void 0}}},i.prototype._setParkedFocus=function(_e){var pt=this._root.current;pt&&this._isParked!==_e&&(this._isParked=_e,_e?(this.props.allowFocusRoot||(this._parkedTabIndex=pt.getAttribute("tabindex"),pt.setAttribute("tabindex","-1")),pt.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(pt.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):pt.removeAttribute("tabindex")))},i.prototype._setActiveElement=function(_e,pt){var Lt=this._activeElement;this._activeElement=_e,Lt&&(isElementFocusZone(Lt)&&this._updateTabIndexes(Lt),Lt.tabIndex=-1),this._activeElement&&((!this._focusAlignment||pt)&&this._setFocusAlignment(_e,!0,!0),this._activeElement.tabIndex=0)},i.prototype._preventDefaultWhenHandled=function(_e){this.props.preventDefaultWhenHandled&&_e.preventDefault()},i.prototype._tryInvokeClickForFocusable=function(_e,pt){var Lt=_e;if(Lt===this._root.current)return!1;do{if(Lt.tagName==="BUTTON"||Lt.tagName==="A"||Lt.tagName==="INPUT"||Lt.tagName==="TEXTAREA"||Lt.tagName==="SUMMARY")return!1;if(this._isImmediateDescendantOfZone(Lt)&&Lt.getAttribute(IS_FOCUSABLE_ATTRIBUTE)==="true"&&Lt.getAttribute(IS_ENTER_DISABLED_ATTRIBUTE)!=="true")return raiseClickFromKeyboardEvent(Lt,pt),!0;Lt=getParent(Lt,ALLOW_VIRTUAL_ELEMENTS)}while(Lt!==this._root.current);return!1},i.prototype._getFirstInnerZone=function(_e){if(_e=_e||this._activeElement||this._root.current,!_e)return null;if(isElementFocusZone(_e))return _allInstances[_e.getAttribute(FOCUSZONE_ID_ATTRIBUTE)];for(var pt=_e.firstElementChild;pt;){if(isElementFocusZone(pt))return _allInstances[pt.getAttribute(FOCUSZONE_ID_ATTRIBUTE)];var Lt=this._getFirstInnerZone(pt);if(Lt)return Lt;pt=pt.nextElementSibling}return null},i.prototype._moveFocus=function(_e,pt,Lt,Gt){Gt===void 0&&(Gt=!0);var Ct=this._activeElement,Rt=-1,o=void 0,it=!1,xt=this.props.direction===FocusZoneDirection.bidirectional;if(!Ct||!this._root.current||this._isElementInput(Ct)&&!this._shouldInputLoseFocus(Ct,_e))return!1;var et=xt?Ct.getBoundingClientRect():null;do if(Ct=_e?getNextElement(this._root.current,Ct):getPreviousElement(this._root.current,Ct),xt){if(Ct){var Tt=Ct.getBoundingClientRect(),yt=pt(et,Tt);if(yt===-1&&Rt===-1){o=Ct;break}if(yt>-1&&(Rt===-1||yt=0&&yt<0)break}}else{o=Ct;break}while(Ct);if(o&&o!==this._activeElement)it=!0,this.focusElement(o);else if(this.props.isCircularNavigation&&Gt)return _e?this.focusElement(getNextElement(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(getPreviousElement(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return it},i.prototype._moveFocusDown=function(){var _e=this,pt=-1,Lt=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!0,function(Gt,Ct){var Rt=-1,o=Math.floor(Ct.top),it=Math.floor(Gt.bottom);return o=it||o===pt)&&(pt=o,Lt>=Ct.left&&Lt<=Ct.left+Ct.width?Rt=0:Rt=Math.abs(Ct.left+Ct.width/2-Lt)),Rt)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},i.prototype._moveFocusUp=function(){var _e=this,pt=-1,Lt=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!1,function(Gt,Ct){var Rt=-1,o=Math.floor(Ct.bottom),it=Math.floor(Ct.top),xt=Math.floor(Gt.top);return o>xt?_e._shouldWrapFocus(_e._activeElement,NO_VERTICAL_WRAP)?LARGE_DISTANCE_FROM_CENTER:LARGE_NEGATIVE_DISTANCE_FROM_CENTER:((pt===-1&&o<=xt||it===pt)&&(pt=it,Lt>=Ct.left&&Lt<=Ct.left+Ct.width?Rt=0:Rt=Math.abs(Ct.left+Ct.width/2-Lt)),Rt)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},i.prototype._moveFocusLeft=function(_e){var pt=this,Lt=this._shouldWrapFocus(this._activeElement,NO_HORIZONTAL_WRAP);return this._moveFocus(getRTL(_e),function(Gt,Ct){var Rt=-1,o;return getRTL(_e)?o=parseFloat(Ct.top.toFixed(3))parseFloat(Gt.top.toFixed(3)),o&&Ct.right<=Gt.right&&pt.props.direction!==FocusZoneDirection.vertical?Rt=Gt.right-Ct.right:Lt||(Rt=LARGE_NEGATIVE_DISTANCE_FROM_CENTER),Rt},void 0,Lt)?(this._setFocusAlignment(this._activeElement,!0,!1),!0):!1},i.prototype._moveFocusRight=function(_e){var pt=this,Lt=this._shouldWrapFocus(this._activeElement,NO_HORIZONTAL_WRAP);return this._moveFocus(!getRTL(_e),function(Gt,Ct){var Rt=-1,o;return getRTL(_e)?o=parseFloat(Ct.bottom.toFixed(3))>parseFloat(Gt.top.toFixed(3)):o=parseFloat(Ct.top.toFixed(3))=Gt.left&&pt.props.direction!==FocusZoneDirection.vertical?Rt=Ct.left-Gt.left:Lt||(Rt=LARGE_NEGATIVE_DISTANCE_FROM_CENTER),Rt},void 0,Lt)?(this._setFocusAlignment(this._activeElement,!0,!1),!0):!1},i.prototype._moveFocusPaging=function(_e,pt){pt===void 0&&(pt=!0);var Lt=this._activeElement;if(!Lt||!this._root.current||this._isElementInput(Lt)&&!this._shouldInputLoseFocus(Lt,_e))return!1;var Gt=findScrollableParent(Lt);if(!Gt)return!1;var Ct=-1,Rt=void 0,o=-1,it=-1,xt=Gt.clientHeight,et=Lt.getBoundingClientRect();do if(Lt=_e?getNextElement(this._root.current,Lt):getPreviousElement(this._root.current,Lt),Lt){var Tt=Lt.getBoundingClientRect(),yt=Math.floor(Tt.top),ut=Math.floor(et.bottom),ht=Math.floor(Tt.bottom),j=Math.floor(et.top),_=this._getHorizontalDistanceFromCenter(_e,et,Tt),rt=_e&&yt>ut+xt,tt=!_e&&ht-1&&(_e&&yt>o?(o=yt,Ct=_,Rt=Lt):!_e&&ht-1){var Lt=_e.selectionStart,Gt=_e.selectionEnd,Ct=Lt!==Gt,Rt=_e.value,o=_e.readOnly;if(Ct||Lt>0&&!pt&&!o||Lt!==Rt.length&&pt&&!o||this.props.handleTabKey&&!(this.props.shouldInputLoseFocusOnArrowKey&&this.props.shouldInputLoseFocusOnArrowKey(_e)))return!1}return!0},i.prototype._shouldWrapFocus=function(_e,pt){return this.props.checkForNoWrap?shouldWrapFocus(_e,pt):!0},i.prototype._portalContainsElement=function(_e){return _e&&!!this._root.current&&portalContainsElement(_e,this._root.current)},i.prototype._getDocument=function(){return getDocument(this._root.current)},i.defaultProps={isCircularNavigation:!1,direction:FocusZoneDirection.bidirectional,shouldRaiseClicks:!0},i}(reactExports.Component),ContextualMenuItemType;(function(a){a[a.Normal=0]="Normal",a[a.Divider=1]="Divider",a[a.Header=2]="Header",a[a.Section=3]="Section"})(ContextualMenuItemType||(ContextualMenuItemType={}));function getIsChecked(a){return a.canCheck?!!(a.isChecked||a.checked):typeof a.isChecked=="boolean"?a.isChecked:typeof a.checked=="boolean"?a.checked:null}function hasSubmenu(a){return!!(a.subMenuProps||a.items)}function isItemDisabled(a){return!!(a.isDisabled||a.disabled)}function getMenuItemAriaRole(a){var i=getIsChecked(a),_e=i!==null;return _e?"menuitemcheckbox":"menuitem"}var defaultIconRenderer=function(a){var i=a.item,_e=a.classNames,pt=i.iconProps;return reactExports.createElement(Icon,__assign$1({},pt,{className:_e.icon}))},renderItemIcon=function(a){var i=a.item,_e=a.hasIcons;return _e?i.onRenderIcon?i.onRenderIcon(a,defaultIconRenderer):defaultIconRenderer(a):null},renderCheckMarkIcon=function(a){var i=a.onCheckmarkClick,_e=a.item,pt=a.classNames,Lt=getIsChecked(_e);if(i){var Gt=function(Ct){return i(_e,Ct)};return reactExports.createElement(Icon,{iconName:_e.canCheck!==!1&&Lt?"CheckMark":"",className:pt.checkmarkIcon,onClick:Gt})}return null},renderItemName=function(a){var i=a.item,_e=a.classNames;return i.text||i.name?reactExports.createElement("span",{className:_e.label},i.text||i.name):null},renderSecondaryText=function(a){var i=a.item,_e=a.classNames;return i.secondaryText?reactExports.createElement("span",{className:_e.secondaryText},i.secondaryText):null},renderSubMenuIcon=function(a){var i=a.item,_e=a.classNames,pt=a.theme;return hasSubmenu(i)?reactExports.createElement(Icon,__assign$1({iconName:getRTL(pt)?"ChevronLeft":"ChevronRight"},i.submenuIconProps,{className:_e.subMenuIcon})):null},ContextualMenuItemBase=function(a){__extends(i,a);function i(_e){var pt=a.call(this,_e)||this;return pt.openSubMenu=function(){var Lt=pt.props,Gt=Lt.item,Ct=Lt.openSubMenu,Rt=Lt.getSubmenuTarget;if(Rt){var o=Rt();hasSubmenu(Gt)&&Ct&&o&&Ct(Gt,o)}},pt.dismissSubMenu=function(){var Lt=pt.props,Gt=Lt.item,Ct=Lt.dismissSubMenu;hasSubmenu(Gt)&&Ct&&Ct()},pt.dismissMenu=function(Lt){var Gt=pt.props.dismissMenu;Gt&&Gt(void 0,Lt)},initializeComponentRef(pt),pt}return i.prototype.render=function(){var _e=this.props,pt=_e.item,Lt=_e.classNames,Gt=pt.onRenderContent||this._renderLayout;return reactExports.createElement("div",{className:pt.split?Lt.linkContentMenu:Lt.linkContent},Gt(this.props,{renderCheckMarkIcon,renderItemIcon,renderItemName,renderSecondaryText,renderSubMenuIcon}))},i.prototype._renderLayout=function(_e,pt){return reactExports.createElement(reactExports.Fragment,null,pt.renderCheckMarkIcon(_e),pt.renderItemIcon(_e),pt.renderItemName(_e),pt.renderSecondaryText(_e),pt.renderSubMenuIcon(_e))},i}(reactExports.Component),getDividerClassNames=memoizeFunction(function(a){return mergeStyleSets({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:a.palette.neutralTertiaryAlt}})}),CONTEXTUAL_MENU_ITEM_HEIGHT=36,MediumScreenSelector$1=getScreenSelector(0,ScreenWidthMaxMedium),getMenuItemStyles=memoizeFunction(function(a){var i,_e,pt,Lt,Gt,Ct=a.semanticColors,Rt=a.fonts,o=a.palette,it=Ct.menuItemBackgroundHovered,xt=Ct.menuItemTextHovered,et=Ct.menuItemBackgroundPressed,Tt=Ct.bodyDivider,yt={item:[Rt.medium,{color:Ct.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:Tt,position:"relative"},root:[getFocusStyle(a),Rt.medium,{color:Ct.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:CONTEXTUAL_MENU_ITEM_HEIGHT,lineHeight:CONTEXTUAL_MENU_ITEM_HEIGHT,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:Ct.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:(i={},i[HighContrastSelector]={color:"GrayText",opacity:1},i)},rootHovered:{backgroundColor:it,color:xt,selectors:{".ms-ContextualMenu-icon":{color:o.themeDarkAlt},".ms-ContextualMenu-submenuIcon":{color:o.neutralPrimary}}},rootFocused:{backgroundColor:o.white},rootChecked:{selectors:{".ms-ContextualMenu-checkmarkIcon":{color:o.neutralPrimary}}},rootPressed:{backgroundColor:et,selectors:{".ms-ContextualMenu-icon":{color:o.themeDark},".ms-ContextualMenu-submenuIcon":{color:o.neutralPrimary}}},rootExpanded:{backgroundColor:et,color:Ct.bodyTextChecked,selectors:(_e={".ms-ContextualMenu-submenuIcon":(pt={},pt[HighContrastSelector]={color:"inherit"},pt)},_e[HighContrastSelector]=__assign$1({},getHighContrastNoAdjustStyle()),_e)},linkContent:{whiteSpace:"nowrap",height:"inherit",display:"flex",alignItems:"center",maxWidth:"100%"},anchorLink:{padding:"0px 8px 0 4px",textRendering:"auto",color:"inherit",letterSpacing:"normal",wordSpacing:"normal",textTransform:"none",textIndent:"0px",textShadow:"none",textDecoration:"none",boxSizing:"border-box"},label:{margin:"0 4px",verticalAlign:"middle",display:"inline-block",flexGrow:"1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},secondaryText:{color:a.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:CONTEXTUAL_MENU_ITEM_HEIGHT,fontSize:IconFontSizes.medium,width:IconFontSizes.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(Lt={},Lt[MediumScreenSelector$1]={fontSize:IconFontSizes.large,width:IconFontSizes.large},Lt)},iconColor:{color:Ct.menuIcon},iconDisabled:{color:Ct.disabledBodyText},checkmarkIcon:{color:Ct.bodySubtext},subMenuIcon:{height:CONTEXTUAL_MENU_ITEM_HEIGHT,lineHeight:CONTEXTUAL_MENU_ITEM_HEIGHT,color:o.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:IconFontSizes.small,selectors:(Gt={":hover":{color:o.neutralPrimary},":active":{color:o.neutralPrimary}},Gt[MediumScreenSelector$1]={fontSize:IconFontSizes.medium},Gt)},splitButtonFlexContainer:[getFocusStyle(a),{display:"flex",height:CONTEXTUAL_MENU_ITEM_HEIGHT,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]};return concatStyleSets(yt)}),CONTEXTUAL_SPLIT_MENU_MINWIDTH="28px",MediumScreenSelector=getScreenSelector(0,ScreenWidthMaxMedium),getSplitButtonVerticalDividerClassNames=memoizeFunction(function(a){var i;return mergeStyleSets(getDividerClassNames(a),{wrapper:{position:"absolute",right:28,selectors:(i={},i[MediumScreenSelector]={right:32},i)},divider:{height:16,width:1}})}),GlobalClassNames$9={item:"ms-ContextualMenu-item",divider:"ms-ContextualMenu-divider",root:"ms-ContextualMenu-link",isChecked:"is-checked",isExpanded:"is-expanded",isDisabled:"is-disabled",linkContent:"ms-ContextualMenu-linkContent",linkContentMenu:"ms-ContextualMenu-linkContent",icon:"ms-ContextualMenu-icon",iconColor:"ms-ContextualMenu-iconColor",checkmarkIcon:"ms-ContextualMenu-checkmarkIcon",subMenuIcon:"ms-ContextualMenu-submenuIcon",label:"ms-ContextualMenu-itemText",secondaryText:"ms-ContextualMenu-secondaryText",splitMenu:"ms-ContextualMenu-splitMenu",screenReaderText:"ms-ContextualMenu-screenReaderText"},getItemClassNames=memoizeFunction(function(a,i,_e,pt,Lt,Gt,Ct,Rt,o,it,xt,et){var Tt,yt,ut,ht,j=getMenuItemStyles(a),_=getGlobalClassNames(GlobalClassNames$9,a);return mergeStyleSets({item:[_.item,j.item,Ct],divider:[_.divider,j.divider,Rt],root:[_.root,j.root,pt&&[_.isChecked,j.rootChecked],Lt&&j.anchorLink,_e&&[_.isExpanded,j.rootExpanded],i&&[_.isDisabled,j.rootDisabled],!i&&!_e&&[{selectors:(Tt={":hover":j.rootHovered,":active":j.rootPressed},Tt["."+IsFocusVisibleClassName+" &:focus, ."+IsFocusVisibleClassName+" &:focus:hover"]=j.rootFocused,Tt["."+IsFocusVisibleClassName+" &:hover"]={background:"inherit;"},Tt)}],et],splitPrimary:[j.root,{width:"calc(100% - "+CONTEXTUAL_SPLIT_MENU_MINWIDTH+")"},pt&&["is-checked",j.rootChecked],(i||xt)&&["is-disabled",j.rootDisabled],!(i||xt)&&!pt&&[{selectors:(yt={":hover":j.rootHovered},yt[":hover ~ ."+_.splitMenu]=j.rootHovered,yt[":active"]=j.rootPressed,yt["."+IsFocusVisibleClassName+" &:focus, ."+IsFocusVisibleClassName+" &:focus:hover"]=j.rootFocused,yt["."+IsFocusVisibleClassName+" &:hover"]={background:"inherit;"},yt)}]],splitMenu:[_.splitMenu,j.root,{flexBasis:"0",padding:"0 8px",minWidth:CONTEXTUAL_SPLIT_MENU_MINWIDTH},_e&&["is-expanded",j.rootExpanded],i&&["is-disabled",j.rootDisabled],!i&&!_e&&[{selectors:(ut={":hover":j.rootHovered,":active":j.rootPressed},ut["."+IsFocusVisibleClassName+" &:focus, ."+IsFocusVisibleClassName+" &:focus:hover"]=j.rootFocused,ut["."+IsFocusVisibleClassName+" &:hover"]={background:"inherit;"},ut)}]],anchorLink:j.anchorLink,linkContent:[_.linkContent,j.linkContent],linkContentMenu:[_.linkContentMenu,j.linkContent,{justifyContent:"center"}],icon:[_.icon,Gt&&j.iconColor,j.icon,o,i&&[_.isDisabled,j.iconDisabled]],iconColor:j.iconColor,checkmarkIcon:[_.checkmarkIcon,Gt&&j.checkmarkIcon,j.icon,o],subMenuIcon:[_.subMenuIcon,j.subMenuIcon,it,_e&&{color:a.palette.neutralPrimary},i&&[j.iconDisabled]],label:[_.label,j.label],secondaryText:[_.secondaryText,j.secondaryText],splitContainer:[j.splitButtonFlexContainer,!i&&!pt&&[{selectors:(ht={},ht["."+IsFocusVisibleClassName+" &:focus, ."+IsFocusVisibleClassName+" &:focus:hover"]=j.rootFocused,ht)}]],screenReaderText:[_.screenReaderText,j.screenReaderText,hiddenContentStyle,{visibility:"hidden"}]})}),getItemStyles=function(a){var i=a.theme,_e=a.disabled,pt=a.expanded,Lt=a.checked,Gt=a.isAnchorLink,Ct=a.knownIcon,Rt=a.itemClassName,o=a.dividerClassName,it=a.iconClassName,xt=a.subMenuClassName,et=a.primaryDisabled,Tt=a.className;return getItemClassNames(i,_e,pt,Lt,Gt,Ct,Rt,o,it,xt,et,Tt)},ContextualMenuItem=styled(ContextualMenuItemBase,getItemStyles,void 0,{scope:"ContextualMenuItem"}),ContextualMenuItemWrapper=function(a){__extends(i,a);function i(_e){var pt=a.call(this,_e)||this;return pt._onItemMouseEnter=function(Lt){var Gt=pt.props,Ct=Gt.item,Rt=Gt.onItemMouseEnter;Rt&&Rt(Ct,Lt,Lt.currentTarget)},pt._onItemClick=function(Lt){var Gt=pt.props,Ct=Gt.item,Rt=Gt.onItemClickBase;Rt&&Rt(Ct,Lt,Lt.currentTarget)},pt._onItemMouseLeave=function(Lt){var Gt=pt.props,Ct=Gt.item,Rt=Gt.onItemMouseLeave;Rt&&Rt(Ct,Lt)},pt._onItemKeyDown=function(Lt){var Gt=pt.props,Ct=Gt.item,Rt=Gt.onItemKeyDown;Rt&&Rt(Ct,Lt)},pt._onItemMouseMove=function(Lt){var Gt=pt.props,Ct=Gt.item,Rt=Gt.onItemMouseMove;Rt&&Rt(Ct,Lt,Lt.currentTarget)},pt._getSubmenuTarget=function(){},initializeComponentRef(pt),pt}return i.prototype.shouldComponentUpdate=function(_e){return!shallowCompare(_e,this.props)},i}(reactExports.Component),KTP_PREFIX="ktp",KTP_SEPARATOR="-",DATAKTP_TARGET="data-ktp-target",DATAKTP_EXECUTE_TARGET="data-ktp-execute-target",KTP_LAYER_ID="ktp-layer-id",KeytipEvents;(function(a){a.KEYTIP_ADDED="keytipAdded",a.KEYTIP_REMOVED="keytipRemoved",a.KEYTIP_UPDATED="keytipUpdated",a.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",a.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",a.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",a.ENTER_KEYTIP_MODE="enterKeytipMode",a.EXIT_KEYTIP_MODE="exitKeytipMode"})(KeytipEvents||(KeytipEvents={}));var KeytipManager=function(){function a(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return a.getInstance=function(){return this._instance},a.prototype.init=function(i){this.delayUpdatingKeytipChange=i},a.prototype.register=function(i,_e){_e===void 0&&(_e=!1);var pt=i;_e||(pt=this.addParentOverflow(i),this.sequenceMapping[pt.keySequences.toString()]=pt);var Lt=this._getUniqueKtp(pt);if(_e?this.persistedKeytips[Lt.uniqueID]=Lt:this.keytips[Lt.uniqueID]=Lt,this.inKeytipMode||!this.delayUpdatingKeytipChange){var Gt=_e?KeytipEvents.PERSISTED_KEYTIP_ADDED:KeytipEvents.KEYTIP_ADDED;EventGroup.raise(this,Gt,{keytip:pt,uniqueID:Lt.uniqueID})}return Lt.uniqueID},a.prototype.update=function(i,_e){var pt=this.addParentOverflow(i),Lt=this._getUniqueKtp(pt,_e),Gt=this.keytips[_e];Gt&&(Lt.keytip.visible=Gt.keytip.visible,this.keytips[_e]=Lt,delete this.sequenceMapping[Gt.keytip.keySequences.toString()],this.sequenceMapping[Lt.keytip.keySequences.toString()]=Lt.keytip,(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&EventGroup.raise(this,KeytipEvents.KEYTIP_UPDATED,{keytip:Lt.keytip,uniqueID:Lt.uniqueID}))},a.prototype.unregister=function(i,_e,pt){pt===void 0&&(pt=!1),pt?delete this.persistedKeytips[_e]:delete this.keytips[_e],!pt&&delete this.sequenceMapping[i.keySequences.toString()];var Lt=pt?KeytipEvents.PERSISTED_KEYTIP_REMOVED:KeytipEvents.KEYTIP_REMOVED;(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&EventGroup.raise(this,Lt,{keytip:i,uniqueID:_e})},a.prototype.enterKeytipMode=function(){EventGroup.raise(this,KeytipEvents.ENTER_KEYTIP_MODE)},a.prototype.exitKeytipMode=function(){EventGroup.raise(this,KeytipEvents.EXIT_KEYTIP_MODE)},a.prototype.getKeytips=function(){var i=this;return Object.keys(this.keytips).map(function(_e){return i.keytips[_e].keytip})},a.prototype.addParentOverflow=function(i){var _e=__spreadArray([],i.keySequences);if(_e.pop(),_e.length!==0){var pt=this.sequenceMapping[_e.toString()];if(pt&&pt.overflowSetSequence)return __assign$1(__assign$1({},i),{overflowSetSequence:pt.overflowSetSequence})}return i},a.prototype.menuExecute=function(i,_e){EventGroup.raise(this,KeytipEvents.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:i,keytipSequences:_e})},a.prototype._getUniqueKtp=function(i,_e){return _e===void 0&&(_e=getId()),{keytip:__assign$1({},i),uniqueID:_e}},a._instance=new a,a}();function sequencesToID(a){return a.reduce(function(i,_e){return i+KTP_SEPARATOR+_e.split("").join(KTP_SEPARATOR)},KTP_PREFIX)}function mergeOverflows(a,i){var _e=i.length,pt=__spreadArray([],i).pop(),Lt=__spreadArray([],a);return addElementAtIndex(Lt,_e-1,pt)}function getAriaDescribedBy(a){var i=" "+KTP_LAYER_ID;return a.length?i+" "+sequencesToID(a):i}function useKeytipData(a){var i=reactExports.useRef(),_e=a.keytipProps?__assign$1({disabled:a.disabled},a.keytipProps):void 0,pt=useConst(KeytipManager.getInstance()),Lt=usePrevious(a);useIsomorphicLayoutEffect(function(){i.current&&_e&&((Lt==null?void 0:Lt.keytipProps)!==a.keytipProps||(Lt==null?void 0:Lt.disabled)!==a.disabled)&&pt.update(_e,i.current)}),useIsomorphicLayoutEffect(function(){return _e&&(i.current=pt.register(_e)),function(){_e&&pt.unregister(_e,i.current)}},[]);var Gt={ariaDescribedBy:void 0,keytipId:void 0};return _e&&(Gt=getKeytipData(pt,_e,a.ariaDescribedBy)),Gt}function getKeytipData(a,i,_e){var pt=a.addParentOverflow(i),Lt=mergeAriaAttributeValues(_e,getAriaDescribedBy(pt.keySequences)),Gt=__spreadArray([],pt.keySequences);pt.overflowSetSequence&&(Gt=mergeOverflows(Gt,pt.overflowSetSequence));var Ct=sequencesToID(Gt);return{ariaDescribedBy:Lt,keytipId:Ct}}var KeytipData=function(a){var i,_e=a.children,pt=__rest$5(a,["children"]),Lt=useKeytipData(pt),Gt=Lt.keytipId,Ct=Lt.ariaDescribedBy;return _e((i={},i[DATAKTP_TARGET]=Gt,i[DATAKTP_EXECUTE_TARGET]=Gt,i["aria-describedby"]=Ct,i))},ContextualMenuAnchor=function(a){__extends(i,a);function i(){var _e=a!==null&&a.apply(this,arguments)||this;return _e._anchor=reactExports.createRef(),_e._getMemoizedMenuButtonKeytipProps=memoizeFunction(function(pt){return __assign$1(__assign$1({},pt),{hasMenu:!0})}),_e._getSubmenuTarget=function(){return _e._anchor.current?_e._anchor.current:void 0},_e._onItemClick=function(pt){var Lt=_e.props,Gt=Lt.item,Ct=Lt.onItemClick;Ct&&Ct(Gt,pt)},_e._renderAriaDescription=function(pt,Lt){return pt?reactExports.createElement("span",{id:_e._ariaDescriptionId,className:Lt},pt):null},_e}return i.prototype.render=function(){var _e=this,pt=this.props,Lt=pt.item,Gt=pt.classNames,Ct=pt.index,Rt=pt.focusableElementIndex,o=pt.totalItemCount,it=pt.hasCheckmarks,xt=pt.hasIcons,et=pt.contextualMenuItemAs,Tt=et===void 0?ContextualMenuItem:et,yt=pt.expandedMenuItemKey,ut=pt.onItemClick,ht=pt.openSubMenu,j=pt.dismissSubMenu,_=pt.dismissMenu,rt=Lt.rel;Lt.target&&Lt.target.toLowerCase()==="_blank"&&(rt=rt||"nofollow noopener noreferrer");var tt=hasSubmenu(Lt),st=getNativeProps(Lt,anchorProperties),ot=isItemDisabled(Lt),nt=Lt.itemProps,vt=Lt.ariaDescription,dt=Lt.keytipProps;dt&&tt&&(dt=this._getMemoizedMenuButtonKeytipProps(dt)),vt&&(this._ariaDescriptionId=getId());var bt=mergeAriaAttributeValues(Lt.ariaDescribedBy,vt?this._ariaDescriptionId:void 0,st["aria-describedby"]),ft={"aria-describedby":bt};return reactExports.createElement("div",null,reactExports.createElement(KeytipData,{keytipProps:Lt.keytipProps,ariaDescribedBy:bt,disabled:ot},function(at){return reactExports.createElement("a",__assign$1({},ft,st,at,{ref:_e._anchor,href:Lt.href,target:Lt.target,rel:rt,className:Gt.root,role:"menuitem","aria-haspopup":tt||void 0,"aria-expanded":tt?Lt.key===yt:void 0,"aria-posinset":Rt+1,"aria-setsize":o,"aria-disabled":isItemDisabled(Lt),style:Lt.style,onClick:_e._onItemClick,onMouseEnter:_e._onItemMouseEnter,onMouseLeave:_e._onItemMouseLeave,onMouseMove:_e._onItemMouseMove,onKeyDown:tt?_e._onItemKeyDown:void 0}),reactExports.createElement(Tt,__assign$1({componentRef:Lt.componentRef,item:Lt,classNames:Gt,index:Ct,onCheckmarkClick:it&&ut?ut:void 0,hasIcons:xt,openSubMenu:ht,dismissSubMenu:j,dismissMenu:_,getSubmenuTarget:_e._getSubmenuTarget},nt)),_e._renderAriaDescription(vt,Gt.screenReaderText))}))},i}(ContextualMenuItemWrapper),ContextualMenuButton=function(a){__extends(i,a);function i(){var _e=a!==null&&a.apply(this,arguments)||this;return _e._btn=reactExports.createRef(),_e._getMemoizedMenuButtonKeytipProps=memoizeFunction(function(pt){return __assign$1(__assign$1({},pt),{hasMenu:!0})}),_e._renderAriaDescription=function(pt,Lt){return pt?reactExports.createElement("span",{id:_e._ariaDescriptionId,className:Lt},pt):null},_e._getSubmenuTarget=function(){return _e._btn.current?_e._btn.current:void 0},_e}return i.prototype.render=function(){var _e=this,pt=this.props,Lt=pt.item,Gt=pt.classNames,Ct=pt.index,Rt=pt.focusableElementIndex,o=pt.totalItemCount,it=pt.hasCheckmarks,xt=pt.hasIcons,et=pt.contextualMenuItemAs,Tt=et===void 0?ContextualMenuItem:et,yt=pt.expandedMenuItemKey,ut=pt.onItemMouseDown,ht=pt.onItemClick,j=pt.openSubMenu,_=pt.dismissSubMenu,rt=pt.dismissMenu,tt=getIsChecked(Lt),st=tt!==null,ot=getMenuItemAriaRole(Lt),nt=hasSubmenu(Lt),vt=Lt.itemProps,dt=Lt.ariaLabel,bt=Lt.ariaDescription,ft=getNativeProps(Lt,buttonProperties);delete ft.disabled;var at=Lt.role||ot;bt&&(this._ariaDescriptionId=getId());var mt=mergeAriaAttributeValues(Lt.ariaDescribedBy,bt?this._ariaDescriptionId:void 0,ft["aria-describedby"]),St={className:Gt.root,onClick:this._onItemClick,onKeyDown:nt?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(Mt){return ut?ut(Lt,Mt):void 0},onMouseMove:this._onItemMouseMove,href:Lt.href,title:Lt.title,"aria-label":dt,"aria-describedby":mt,"aria-haspopup":nt||void 0,"aria-expanded":nt?Lt.key===yt:void 0,"aria-posinset":Rt+1,"aria-setsize":o,"aria-disabled":isItemDisabled(Lt),"aria-checked":(at==="menuitemcheckbox"||at==="menuitemradio")&&st?!!tt:void 0,"aria-selected":at==="menuitem"&&st?!!tt:void 0,role:at,style:Lt.style},_t=Lt.keytipProps;return _t&&nt&&(_t=this._getMemoizedMenuButtonKeytipProps(_t)),reactExports.createElement(KeytipData,{keytipProps:_t,ariaDescribedBy:mt,disabled:isItemDisabled(Lt)},function(Mt){return reactExports.createElement("button",__assign$1({ref:_e._btn},ft,St,Mt),reactExports.createElement(Tt,__assign$1({componentRef:Lt.componentRef,item:Lt,classNames:Gt,index:Ct,onCheckmarkClick:it&&ht?ht:void 0,hasIcons:xt,openSubMenu:j,dismissSubMenu:_,dismissMenu:rt,getSubmenuTarget:_e._getSubmenuTarget},vt)),_e._renderAriaDescription(bt,Gt.screenReaderText))})},i}(ContextualMenuItemWrapper),getStyles$g=function(a){var i=a.theme,_e=a.getClassNames,pt=a.className;if(!i)throw new Error("Theme is undefined or null.");if(_e){var Lt=_e(i);return{wrapper:[Lt.wrapper],divider:[Lt.divider]}}return{wrapper:[{display:"inline-flex",height:"100%",alignItems:"center"},pt],divider:[{width:1,height:"100%",backgroundColor:i.palette.neutralTertiaryAlt}]}},getClassNames$c=classNamesFunction(),VerticalDividerBase=reactExports.forwardRef(function(a,i){var _e=a.styles,pt=a.theme,Lt=a.getClassNames,Gt=a.className,Ct=getClassNames$c(_e,{theme:pt,getClassNames:Lt,className:Gt});return reactExports.createElement("span",{className:Ct.wrapper,ref:i},reactExports.createElement("span",{className:Ct.divider}))});VerticalDividerBase.displayName="VerticalDividerBase";var VerticalDivider=styled(VerticalDividerBase,getStyles$g,void 0,{scope:"VerticalDivider"}),TouchIdleDelay$1=500,ContextualMenuSplitButton=function(a){__extends(i,a);function i(_e){var pt=a.call(this,_e)||this;return pt._getMemoizedMenuButtonKeytipProps=memoizeFunction(function(Lt){return __assign$1(__assign$1({},Lt),{hasMenu:!0})}),pt._onItemKeyDown=function(Lt){var Gt=pt.props,Ct=Gt.item,Rt=Gt.onItemKeyDown;Lt.which===KeyCodes.enter?(pt._executeItemClick(Lt),Lt.preventDefault(),Lt.stopPropagation()):Rt&&Rt(Ct,Lt)},pt._getSubmenuTarget=function(){return pt._splitButton},pt._renderAriaDescription=function(Lt,Gt){return Lt?reactExports.createElement("span",{id:pt._ariaDescriptionId,className:Gt},Lt):null},pt._onItemMouseEnterPrimary=function(Lt){var Gt=pt.props,Ct=Gt.item,Rt=Gt.onItemMouseEnter;Rt&&Rt(__assign$1(__assign$1({},Ct),{subMenuProps:void 0,items:void 0}),Lt,pt._splitButton)},pt._onItemMouseEnterIcon=function(Lt){var Gt=pt.props,Ct=Gt.item,Rt=Gt.onItemMouseEnter;Rt&&Rt(Ct,Lt,pt._splitButton)},pt._onItemMouseMovePrimary=function(Lt){var Gt=pt.props,Ct=Gt.item,Rt=Gt.onItemMouseMove;Rt&&Rt(__assign$1(__assign$1({},Ct),{subMenuProps:void 0,items:void 0}),Lt,pt._splitButton)},pt._onItemMouseMoveIcon=function(Lt){var Gt=pt.props,Ct=Gt.item,Rt=Gt.onItemMouseMove;Rt&&Rt(Ct,Lt,pt._splitButton)},pt._onIconItemClick=function(Lt){var Gt=pt.props,Ct=Gt.item,Rt=Gt.onItemClickBase;Rt&&Rt(Ct,Lt,pt._splitButton?pt._splitButton:Lt.currentTarget)},pt._executeItemClick=function(Lt){var Gt=pt.props,Ct=Gt.item,Rt=Gt.executeItemClick,o=Gt.onItemClick;if(!(Ct.disabled||Ct.isDisabled)){if(pt._processingTouch&&o)return o(Ct,Lt);Rt&&Rt(Ct,Lt)}},pt._onTouchStart=function(Lt){pt._splitButton&&!("onpointerdown"in pt._splitButton)&&pt._handleTouchAndPointerEvent(Lt)},pt._onPointerDown=function(Lt){Lt.pointerType==="touch"&&(pt._handleTouchAndPointerEvent(Lt),Lt.preventDefault(),Lt.stopImmediatePropagation())},pt._async=new Async(pt),pt._events=new EventGroup(pt),pt}return i.prototype.componentDidMount=function(){this._splitButton&&"onpointerdown"in this._splitButton&&this._events.on(this._splitButton,"pointerdown",this._onPointerDown,!0)},i.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},i.prototype.render=function(){var _e=this,pt=this.props,Lt=pt.item,Gt=pt.classNames,Ct=pt.index,Rt=pt.focusableElementIndex,o=pt.totalItemCount,it=pt.hasCheckmarks,xt=pt.hasIcons,et=pt.onItemMouseLeave,Tt=pt.expandedMenuItemKey,yt=hasSubmenu(Lt),ut=Lt.keytipProps;ut&&(ut=this._getMemoizedMenuButtonKeytipProps(ut));var ht=Lt.ariaDescription;return ht&&(this._ariaDescriptionId=getId()),reactExports.createElement(KeytipData,{keytipProps:ut,disabled:isItemDisabled(Lt)},function(j){return reactExports.createElement("div",{"data-ktp-target":j["data-ktp-target"],ref:function(_){return _e._splitButton=_},role:getMenuItemAriaRole(Lt),"aria-label":Lt.ariaLabel,className:Gt.splitContainer,"aria-disabled":isItemDisabled(Lt),"aria-expanded":yt?Lt.key===Tt:void 0,"aria-haspopup":!0,"aria-describedby":mergeAriaAttributeValues(Lt.ariaDescribedBy,ht?_e._ariaDescriptionId:void 0,j["aria-describedby"]),"aria-checked":Lt.isChecked||Lt.checked,"aria-posinset":Rt+1,"aria-setsize":o,onMouseEnter:_e._onItemMouseEnterPrimary,onMouseLeave:et?et.bind(_e,__assign$1(__assign$1({},Lt),{subMenuProps:null,items:null})):void 0,onMouseMove:_e._onItemMouseMovePrimary,onKeyDown:_e._onItemKeyDown,onClick:_e._executeItemClick,onTouchStart:_e._onTouchStart,tabIndex:0,"data-is-focusable":!0,"aria-roledescription":Lt["aria-roledescription"]},_e._renderSplitPrimaryButton(Lt,Gt,Ct,it,xt),_e._renderSplitDivider(Lt),_e._renderSplitIconButton(Lt,Gt,Ct,j),_e._renderAriaDescription(ht,Gt.screenReaderText))})},i.prototype._renderSplitPrimaryButton=function(_e,pt,Lt,Gt,Ct){var Rt=this.props,o=Rt.contextualMenuItemAs,it=o===void 0?ContextualMenuItem:o,xt=Rt.onItemClick,et={key:_e.key,disabled:isItemDisabled(_e)||_e.primaryDisabled,name:_e.name,text:_e.text||_e.name,secondaryText:_e.secondaryText,className:pt.splitPrimary,canCheck:_e.canCheck,isChecked:_e.isChecked,checked:_e.checked,iconProps:_e.iconProps,onRenderIcon:_e.onRenderIcon,data:_e.data,"data-is-focusable":!1},Tt=_e.itemProps;return reactExports.createElement("button",__assign$1({},getNativeProps(et,buttonProperties)),reactExports.createElement(it,__assign$1({"data-is-focusable":!1,item:et,classNames:pt,index:Lt,onCheckmarkClick:Gt&&xt?xt:void 0,hasIcons:Ct},Tt)))},i.prototype._renderSplitDivider=function(_e){var pt=_e.getSplitButtonVerticalDividerClassNames||getSplitButtonVerticalDividerClassNames;return reactExports.createElement(VerticalDivider,{getClassNames:pt})},i.prototype._renderSplitIconButton=function(_e,pt,Lt,Gt){var Ct=this.props,Rt=Ct.contextualMenuItemAs,o=Rt===void 0?ContextualMenuItem:Rt,it=Ct.onItemMouseLeave,xt=Ct.onItemMouseDown,et=Ct.openSubMenu,Tt=Ct.dismissSubMenu,yt=Ct.dismissMenu,ut={onClick:this._onIconItemClick,disabled:isItemDisabled(_e),className:pt.splitMenu,subMenuProps:_e.subMenuProps,submenuIconProps:_e.submenuIconProps,split:!0,key:_e.key},ht=__assign$1(__assign$1({},getNativeProps(ut,buttonProperties)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:it?it.bind(this,_e):void 0,onMouseDown:function(_){return xt?xt(_e,_):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":Gt["data-ktp-execute-target"],"aria-hidden":!0}),j=_e.itemProps;return reactExports.createElement("button",__assign$1({},ht),reactExports.createElement(o,__assign$1({componentRef:_e.componentRef,item:ut,classNames:pt,index:Lt,hasIcons:!1,openSubMenu:et,dismissSubMenu:Tt,dismissMenu:yt,getSubmenuTarget:this._getSubmenuTarget},j)))},i.prototype._handleTouchAndPointerEvent=function(_e){var pt=this,Lt=this.props.onTap;Lt&&Lt(_e),this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout(function(){pt._processingTouch=!1,pt._lastTouchTimeoutId=void 0},TouchIdleDelay$1)},i}(ContextualMenuItemWrapper),BaseDecorator=function(a){__extends(i,a);function i(_e){var pt=a.call(this,_e)||this;return pt._updateComposedComponentRef=pt._updateComposedComponentRef.bind(pt),pt}return i.prototype._updateComposedComponentRef=function(_e){this._composedComponentInstance=_e,_e?this._hoisted=hoistMethods(this,_e):this._hoisted&&unhoistMethods(this,this._hoisted)},i}(reactExports.Component),ResponsiveMode;(function(a){a[a.small=0]="small",a[a.medium=1]="medium",a[a.large=2]="large",a[a.xLarge=3]="xLarge",a[a.xxLarge=4]="xxLarge",a[a.xxxLarge=5]="xxxLarge",a[a.unknown=999]="unknown"})(ResponsiveMode||(ResponsiveMode={}));var RESPONSIVE_MAX_CONSTRAINT=[479,639,1023,1365,1919,99999999],_lastMode;function getInitialResponsiveMode(){var a;return(a=_lastMode)!==null&&a!==void 0?a:ResponsiveMode.large}function withResponsiveMode(a){var i,_e=(i=function(pt){__extends(Lt,pt);function Lt(Gt){var Ct=pt.call(this,Gt)||this;return Ct._onResize=function(){var Rt=getResponsiveMode(Ct.context.window);Rt!==Ct.state.responsiveMode&&Ct.setState({responsiveMode:Rt})},Ct._events=new EventGroup(Ct),Ct._updateComposedComponentRef=Ct._updateComposedComponentRef.bind(Ct),Ct.state={responsiveMode:getInitialResponsiveMode()},Ct}return Lt.prototype.componentDidMount=function(){this._events.on(this.context.window,"resize",this._onResize),this._onResize()},Lt.prototype.componentWillUnmount=function(){this._events.dispose()},Lt.prototype.render=function(){var Gt=this.state.responsiveMode;return Gt===ResponsiveMode.unknown?null:reactExports.createElement(a,__assign$1({ref:this._updateComposedComponentRef,responsiveMode:Gt},this.props))},Lt}(BaseDecorator),i.contextType=WindowContext,i);return hoistStatics(a,_e)}function getWidthOfCurrentWindow(a){try{return a.document.documentElement.clientWidth}catch{return a.innerWidth}}function getResponsiveMode(a){var i=ResponsiveMode.small;if(a){try{for(;getWidthOfCurrentWindow(a)>RESPONSIVE_MAX_CONSTRAINT[i];)i++}catch{i=getInitialResponsiveMode()}_lastMode=i}else throw new Error("Content was rendered in a server environment without providing a default responsive mode. Call setResponsiveMode to define what the responsive mode is.");return i}var useResponsiveMode=function(a,i){var _e=reactExports.useState(getInitialResponsiveMode()),pt=_e[0],Lt=_e[1],Gt=reactExports.useCallback(function(){var Rt=getResponsiveMode(getWindow(a.current));pt!==Rt&&Lt(Rt)},[a,pt]),Ct=useWindow();return useOnEvent(Ct,"resize",Gt),reactExports.useEffect(function(){i===void 0&&Gt()},[i]),i??pt},MenuContext=reactExports.createContext({}),getClassNames$b=classNamesFunction(),getContextualMenuItemClassNames=classNamesFunction(),DEFAULT_PROPS$1={items:[],shouldFocusOnMount:!0,gapSpace:0,directionalHint:DirectionalHint.bottomAutoEdge,beakWidth:16};function getSubmenuItems(a,i){var _e=i==null?void 0:i.target,pt=a.subMenuProps?a.subMenuProps.items:a.items;if(pt){for(var Lt=[],Gt=0,Ct=pt;Gt0)return reactExports.createElement("li",{role:"presentation",key:yn.key||Cn.key||"section-"+bn},reactExports.createElement("div",__assign$1({},Jn),reactExports.createElement("ul",{className:fn.list,role:"presentation"},yn.topDivider&&er(bn,xn,!0,!0),Kn&&qt(Kn,Cn.key||bn,xn,Cn.title),yn.items.map(function(wn,In){return Ht(wn,In,In,yn.items.length,Un,_i,fn)}),yn.bottomDivider&&er(bn,xn,!1,!0))))}},qt=function(Cn,xn,fn,bn){return reactExports.createElement("li",{role:"presentation",title:bn,key:xn,className:fn.item},Cn)},er=function(Cn,xn,fn,bn){return bn||Cn>0?reactExports.createElement("li",{role:"separator",key:"separator-"+Cn+(fn===void 0?"":fn?"-top":"-bottom"),className:xn.divider,"aria-hidden":"true"}):null},lr=function(Cn,xn,fn,bn,Un,_i,yn){if(Cn.onRender)return Cn.onRender(__assign$1({"aria-posinset":bn+1,"aria-setsize":Un},Cn),o);var Kn=Lt.contextualMenuItemAs,Jn={item:Cn,classNames:xn,index:fn,focusableElementIndex:bn,totalItemCount:Un,hasCheckmarks:_i,hasIcons:yn,contextualMenuItemAs:Kn,onItemMouseEnter:It,onItemMouseLeave:Ot,onItemMouseMove:At,onItemMouseDown,executeItemClick:Dt,onItemKeyDown:wt,expandedMenuItemKey:ut,openSubMenu:ht,dismissSubMenu:_,dismissMenu:o};return Cn.href?reactExports.createElement(ContextualMenuAnchor,__assign$1({},Jn,{onItemClick:zt})):Cn.split&&hasSubmenu(Cn)?reactExports.createElement(ContextualMenuSplitButton,__assign$1({},Jn,{onItemClick:Pt,onItemClickBase:Nt,onTap:ft})):reactExports.createElement(ContextualMenuButton,__assign$1({},Jn,{onItemClick:Pt,onItemClickBase:Nt}))},Jt=function(Cn,xn,fn,bn,Un,_i){var yn=Lt.contextualMenuItemAs,Kn=yn===void 0?ContextualMenuItem:yn,Jn=Cn.itemProps,so=Cn.id,ba=Jn&&getNativeProps(Jn,divProperties);return reactExports.createElement("div",__assign$1({id:so,className:fn.header},ba,{style:Cn.style}),reactExports.createElement(Kn,__assign$1({item:Cn,classNames:xn,index:bn,onCheckmarkClick:Un?Pt:void 0,hasIcons:_i},Jn)))},Yt=Lt.isBeakVisible,rr=Lt.items,jt=Lt.labelElementId,ar=Lt.id,sr=Lt.className,Zt=Lt.beakWidth,Kt=Lt.directionalHint,or=Lt.directionalHintForRTL,tr=Lt.alignTargetEdge,cr=Lt.gapSpace,mr=Lt.coverTarget,Ar=Lt.ariaLabel,br=Lt.doNotLayer,Ir=Lt.target,Tr=Lt.bounds,_r=Lt.useTargetWidth,Er=Lt.useTargetAsMinWidth,Rr=Lt.directionalHintFixed,zr=Lt.shouldFocusOnMount,Or=Lt.shouldFocusOnContainer,kr=Lt.title,Nr=Lt.styles,Qr=Lt.theme,sn=Lt.calloutProps,un=Lt.onRenderSubMenu,en=un===void 0?onDefaultRenderSubMenu:un,Xr=Lt.onRenderMenuList,ln=Xr===void 0?function(Cn,xn){return $t(Cn,Tn)}:Xr,mn=Lt.focusZoneProps,pn=Lt.getMenuClassNames,Tn=pn?pn(Qr,sr):getClassNames$b(Nr,{theme:Qr,className:sr}),Zr=Fr(rr);function Fr(Cn){for(var xn=0,fn=Cn;xn0){for(var ur=0,xr=0,Pr=rr;xr span":{position:"relative",left:0,top:0}}}],rootDisabled:[getFocusStyle(a,{inset:1,highContrastStyle:it,borderColor:"transparent"}),{backgroundColor:Rt,borderColor:Rt,color:o,cursor:"default",selectors:{":hover":noOutline,":focus":noOutline}}],iconDisabled:{color:o,selectors:(i={},i[HighContrastSelector]={color:"GrayText"},i)},menuIconDisabled:{color:o,selectors:(_e={},_e[HighContrastSelector]={color:"GrayText"},_e)},flexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},description:{display:"block"},textContainer:{flexGrow:1,display:"block"},icon:iconStyle(Gt.mediumPlus.fontSize),menuIcon:iconStyle(Gt.small.fontSize),label:{margin:"0 4px",lineHeight:"100%",display:"block"},screenReaderText:hiddenContentStyle}}),getStyles$d=memoizeFunction(function(a,i){var _e,pt,Lt,Gt,Ct,Rt,o,it,xt,et,Tt,yt,ut,ht=a.effects,j=a.palette,_=a.semanticColors,rt={left:-2,top:-2,bottom:-2,right:-2,border:"none"},tt={position:"absolute",width:1,right:31,top:8,bottom:8},st={splitButtonContainer:[getFocusStyle(a,{highContrastStyle:rt,inset:2,pointerEvents:"none"}),{display:"inline-flex",selectors:{".ms-Button--default":{borderTopRightRadius:"0",borderBottomRightRadius:"0",borderRight:"none",flexGrow:"1"},".ms-Button--primary":{borderTopRightRadius:"0",borderBottomRightRadius:"0",border:"none",flexGrow:"1",selectors:(_e={},_e[HighContrastSelector]=__assign$1({color:"WindowText",backgroundColor:"Window",border:"1px solid WindowText",borderRightWidth:"0"},getHighContrastNoAdjustStyle()),_e[":hover"]={border:"none"},_e[":active"]={border:"none"},_e)},".ms-Button--primary + .ms-Button":{border:"none",selectors:(pt={},pt[HighContrastSelector]={border:"1px solid WindowText",borderLeftWidth:"0"},pt)}}}],splitButtonContainerHovered:{selectors:{".ms-Button--primary":{selectors:(Lt={},Lt[HighContrastSelector]={color:"Window",backgroundColor:"Highlight"},Lt)},".ms-Button.is-disabled":{color:_.buttonTextDisabled,selectors:(Gt={},Gt[HighContrastSelector]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},Gt)}}},splitButtonContainerChecked:{selectors:{".ms-Button--primary":{selectors:(Ct={},Ct[HighContrastSelector]=__assign$1({color:"Window",backgroundColor:"WindowText"},getHighContrastNoAdjustStyle()),Ct)}}},splitButtonContainerCheckedHovered:{selectors:{".ms-Button--primary":{selectors:(Rt={},Rt[HighContrastSelector]=__assign$1({color:"Window",backgroundColor:"WindowText"},getHighContrastNoAdjustStyle()),Rt)}}},splitButtonContainerFocused:{outline:"none!important"},splitButtonMenuButton:(o={padding:6,height:"auto",boxSizing:"border-box",borderRadius:0,borderTopRightRadius:ht.roundedCorner2,borderBottomRightRadius:ht.roundedCorner2,border:"1px solid "+j.neutralSecondaryAlt,borderLeft:"none",outline:"transparent",userSelect:"none",display:"inline-block",textDecoration:"none",textAlign:"center",cursor:"pointer",verticalAlign:"top",width:32,marginLeft:-1,marginTop:0,marginRight:0,marginBottom:0},o[HighContrastSelector]={".ms-Button-menuIcon":{color:"WindowText"}},o),splitButtonDivider:__assign$1(__assign$1({},tt),{selectors:(it={},it[HighContrastSelector]={backgroundColor:"WindowText"},it)}),splitButtonDividerDisabled:__assign$1(__assign$1({},tt),{selectors:(xt={},xt[HighContrastSelector]={backgroundColor:"GrayText"},xt)}),splitButtonMenuButtonDisabled:{pointerEvents:"none",border:"none",selectors:(et={":hover":{cursor:"default"},".ms-Button--primary":{selectors:(Tt={},Tt[HighContrastSelector]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},Tt)},".ms-Button-menuIcon":{selectors:(yt={},yt[HighContrastSelector]={color:"GrayText"},yt)}},et[HighContrastSelector]={color:"GrayText",border:"1px solid GrayText",backgroundColor:"Window"},et)},splitButtonFlexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},splitButtonContainerDisabled:{outline:"none",border:"none",selectors:(ut={},ut[HighContrastSelector]=__assign$1({color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},getHighContrastNoAdjustStyle()),ut)},splitButtonMenuFocused:__assign$1({},getFocusStyle(a,{highContrastStyle:rt,inset:2}))};return concatStyleSets(st,i)}),splitButtonDividerBaseStyles=function(){return{position:"absolute",width:1,right:31,top:8,bottom:8}};function standardStyles(a){var i,_e,pt,Lt,Gt,Ct=a.semanticColors,Rt=a.palette,o=Ct.buttonBackground,it=Ct.buttonBackgroundPressed,xt=Ct.buttonBackgroundHovered,et=Ct.buttonBackgroundDisabled,Tt=Ct.buttonText,yt=Ct.buttonTextHovered,ut=Ct.buttonTextDisabled,ht=Ct.buttonTextChecked,j=Ct.buttonTextCheckedHovered;return{root:{backgroundColor:o,color:Tt},rootHovered:{backgroundColor:xt,color:yt,selectors:(i={},i[HighContrastSelector]={borderColor:"Highlight",color:"Highlight"},i)},rootPressed:{backgroundColor:it,color:ht},rootExpanded:{backgroundColor:it,color:ht},rootChecked:{backgroundColor:it,color:ht},rootCheckedHovered:{backgroundColor:it,color:j},rootDisabled:{color:ut,backgroundColor:et,selectors:(_e={},_e[HighContrastSelector]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},_e)},splitButtonContainer:{selectors:(pt={},pt[HighContrastSelector]={border:"none"},pt)},splitButtonMenuButton:{color:Rt.white,backgroundColor:"transparent",selectors:{":hover":{backgroundColor:Rt.neutralLight,selectors:(Lt={},Lt[HighContrastSelector]={color:"Highlight"},Lt)}}},splitButtonMenuButtonDisabled:{backgroundColor:Ct.buttonBackgroundDisabled,selectors:{":hover":{backgroundColor:Ct.buttonBackgroundDisabled}}},splitButtonDivider:__assign$1(__assign$1({},splitButtonDividerBaseStyles()),{backgroundColor:Rt.neutralTertiaryAlt,selectors:(Gt={},Gt[HighContrastSelector]={backgroundColor:"WindowText"},Gt)}),splitButtonDividerDisabled:{backgroundColor:a.palette.neutralTertiaryAlt},splitButtonMenuButtonChecked:{backgroundColor:Rt.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:Rt.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:Rt.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:Rt.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:Ct.buttonText},splitButtonMenuIconDisabled:{color:Ct.buttonTextDisabled}}}function primaryStyles(a){var i,_e,pt,Lt,Gt,Ct,Rt,o,it,xt=a.palette,et=a.semanticColors;return{root:{backgroundColor:et.primaryButtonBackground,border:"1px solid "+et.primaryButtonBackground,color:et.primaryButtonText,selectors:(i={},i[HighContrastSelector]=__assign$1({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},getHighContrastNoAdjustStyle()),i["."+IsFocusVisibleClassName+" &:focus"]={selectors:{":after":{border:"none",outlineColor:xt.white}}},i)},rootHovered:{backgroundColor:et.primaryButtonBackgroundHovered,border:"1px solid "+et.primaryButtonBackgroundHovered,color:et.primaryButtonTextHovered,selectors:(_e={},_e[HighContrastSelector]={color:"Window",backgroundColor:"Highlight",borderColor:"Highlight"},_e)},rootPressed:{backgroundColor:et.primaryButtonBackgroundPressed,border:"1px solid "+et.primaryButtonBackgroundPressed,color:et.primaryButtonTextPressed,selectors:(pt={},pt[HighContrastSelector]=__assign$1({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},getHighContrastNoAdjustStyle()),pt)},rootExpanded:{backgroundColor:et.primaryButtonBackgroundPressed,color:et.primaryButtonTextPressed},rootChecked:{backgroundColor:et.primaryButtonBackgroundPressed,color:et.primaryButtonTextPressed},rootCheckedHovered:{backgroundColor:et.primaryButtonBackgroundPressed,color:et.primaryButtonTextPressed},rootDisabled:{color:et.primaryButtonTextDisabled,backgroundColor:et.primaryButtonBackgroundDisabled,selectors:(Lt={},Lt[HighContrastSelector]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},Lt)},splitButtonContainer:{selectors:(Gt={},Gt[HighContrastSelector]={border:"none"},Gt)},splitButtonDivider:__assign$1(__assign$1({},splitButtonDividerBaseStyles()),{backgroundColor:xt.white,selectors:(Ct={},Ct[HighContrastSelector]={backgroundColor:"Window"},Ct)}),splitButtonMenuButton:{backgroundColor:et.primaryButtonBackground,color:et.primaryButtonText,selectors:(Rt={},Rt[HighContrastSelector]={backgroundColor:"Canvas"},Rt[":hover"]={backgroundColor:et.primaryButtonBackgroundHovered,selectors:(o={},o[HighContrastSelector]={color:"Highlight"},o)},Rt)},splitButtonMenuButtonDisabled:{backgroundColor:et.primaryButtonBackgroundDisabled,selectors:{":hover":{backgroundColor:et.primaryButtonBackgroundDisabled}}},splitButtonMenuButtonChecked:{backgroundColor:et.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:et.primaryButtonBackgroundPressed}}},splitButtonMenuButtonExpanded:{backgroundColor:et.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:et.primaryButtonBackgroundPressed}}},splitButtonMenuIcon:{color:et.primaryButtonText},splitButtonMenuIconDisabled:{color:xt.neutralTertiary,selectors:(it={},it[HighContrastSelector]={color:"GrayText"},it)}}}var DEFAULT_BUTTON_HEIGHT="32px",DEFAULT_BUTTON_MIN_WIDTH="80px",getStyles$c=memoizeFunction(function(a,i,_e){var pt=getStyles$e(a),Lt=getStyles$d(a),Gt={root:{minWidth:DEFAULT_BUTTON_MIN_WIDTH,height:DEFAULT_BUTTON_HEIGHT},label:{fontWeight:FontWeights.semibold}};return concatStyleSets(pt,Gt,_e?primaryStyles(a):standardStyles(a),Lt,i)}),DefaultButton=function(a){__extends(i,a);function i(){return a!==null&&a.apply(this,arguments)||this}return i.prototype.render=function(){var _e=this.props,pt=_e.primary,Lt=pt===void 0?!1:pt,Gt=_e.styles,Ct=_e.theme;return reactExports.createElement(BaseButton,__assign$1({},this.props,{variantClassName:Lt?"ms-Button--primary":"ms-Button--default",styles:getStyles$c(Ct,Gt,Lt),onRenderDescription:nullRender}))},i=__decorate([customizable("DefaultButton",["theme","styles"],!0)],i),i}(reactExports.Component),getStyles$b=memoizeFunction(function(a,i){var _e,pt=getStyles$e(a),Lt=getStyles$d(a),Gt=a.palette,Ct=a.semanticColors,Rt={root:{padding:"0 4px",width:"32px",height:"32px",backgroundColor:"transparent",border:"none",color:Ct.link},rootHovered:{color:Gt.themeDarkAlt,backgroundColor:Gt.neutralLighter,selectors:(_e={},_e[HighContrastSelector]={borderColor:"Highlight",color:"Highlight"},_e)},rootHasMenu:{width:"auto"},rootPressed:{color:Gt.themeDark,backgroundColor:Gt.neutralLight},rootExpanded:{color:Gt.themeDark,backgroundColor:Gt.neutralLight},rootChecked:{color:Gt.themeDark,backgroundColor:Gt.neutralLight},rootCheckedHovered:{color:Gt.themeDark,backgroundColor:Gt.neutralQuaternaryAlt},rootDisabled:{color:Gt.neutralTertiaryAlt}};return concatStyleSets(pt,Rt,Lt,i)}),IconButton=function(a){__extends(i,a);function i(){return a!==null&&a.apply(this,arguments)||this}return i.prototype.render=function(){var _e=this.props,pt=_e.styles,Lt=_e.theme;return reactExports.createElement(BaseButton,__assign$1({},this.props,{variantClassName:"ms-Button--icon",styles:getStyles$b(Lt,pt),onRenderText:nullRender,onRenderDescription:nullRender}))},i=__decorate([customizable("IconButton",["theme","styles"],!0)],i),i}(reactExports.Component),PrimaryButton=function(a){__extends(i,a);function i(){return a!==null&&a.apply(this,arguments)||this}return i.prototype.render=function(){return reactExports.createElement(DefaultButton,__assign$1({},this.props,{primary:!0,onRenderDescription:nullRender}))},i=__decorate([customizable("PrimaryButton",["theme","styles"],!0)],i),i}(reactExports.Component),getStyles$a=memoizeFunction(function(a,i,_e,pt){var Lt,Gt,Ct,Rt,o,it,xt,et,Tt,yt,ut,ht,j,_,rt=getStyles$e(a),tt=getStyles$d(a),st=a.palette,ot=a.semanticColors,nt={left:4,top:4,bottom:4,right:4,border:"none"},vt={root:[getFocusStyle(a,{inset:2,highContrastStyle:nt,borderColor:"transparent"}),a.fonts.medium,{minWidth:"40px",backgroundColor:st.white,color:st.neutralPrimary,padding:"0 4px",border:"none",borderRadius:0,selectors:(Lt={},Lt[HighContrastSelector]={border:"none"},Lt)}],rootHovered:{backgroundColor:st.neutralLighter,color:st.neutralDark,selectors:(Gt={},Gt[HighContrastSelector]={color:"Highlight"},Gt["."+ButtonGlobalClassNames.msButtonIcon]={color:st.themeDarkAlt},Gt["."+ButtonGlobalClassNames.msButtonMenuIcon]={color:st.neutralPrimary},Gt)},rootPressed:{backgroundColor:st.neutralLight,color:st.neutralDark,selectors:(Ct={},Ct["."+ButtonGlobalClassNames.msButtonIcon]={color:st.themeDark},Ct["."+ButtonGlobalClassNames.msButtonMenuIcon]={color:st.neutralPrimary},Ct)},rootChecked:{backgroundColor:st.neutralLight,color:st.neutralDark,selectors:(Rt={},Rt["."+ButtonGlobalClassNames.msButtonIcon]={color:st.themeDark},Rt["."+ButtonGlobalClassNames.msButtonMenuIcon]={color:st.neutralPrimary},Rt)},rootCheckedHovered:{backgroundColor:st.neutralQuaternaryAlt,selectors:(o={},o["."+ButtonGlobalClassNames.msButtonIcon]={color:st.themeDark},o["."+ButtonGlobalClassNames.msButtonMenuIcon]={color:st.neutralPrimary},o)},rootExpanded:{backgroundColor:st.neutralLight,color:st.neutralDark,selectors:(it={},it["."+ButtonGlobalClassNames.msButtonIcon]={color:st.themeDark},it["."+ButtonGlobalClassNames.msButtonMenuIcon]={color:st.neutralPrimary},it)},rootExpandedHovered:{backgroundColor:st.neutralQuaternaryAlt},rootDisabled:{backgroundColor:st.white,selectors:(xt={},xt["."+ButtonGlobalClassNames.msButtonIcon]={color:ot.disabledBodySubtext,selectors:(et={},et[HighContrastSelector]=__assign$1({color:"GrayText"},getHighContrastNoAdjustStyle()),et)},xt[HighContrastSelector]=__assign$1({color:"GrayText",backgroundColor:"Window"},getHighContrastNoAdjustStyle()),xt)},splitButtonContainer:{height:"100%",selectors:(Tt={},Tt[HighContrastSelector]={border:"none"},Tt)},splitButtonDividerDisabled:{selectors:(yt={},yt[HighContrastSelector]={backgroundColor:"Window"},yt)},splitButtonDivider:{backgroundColor:st.neutralTertiaryAlt},splitButtonMenuButton:{backgroundColor:st.white,border:"none",borderTopRightRadius:"0",borderBottomRightRadius:"0",color:st.neutralSecondary,selectors:{":hover":{backgroundColor:st.neutralLighter,color:st.neutralDark,selectors:(ut={},ut[HighContrastSelector]={color:"Highlight"},ut["."+ButtonGlobalClassNames.msButtonIcon]={color:st.neutralPrimary},ut)},":active":{backgroundColor:st.neutralLight,selectors:(ht={},ht["."+ButtonGlobalClassNames.msButtonIcon]={color:st.neutralPrimary},ht)}}},splitButtonMenuButtonDisabled:{backgroundColor:st.white,selectors:(j={},j[HighContrastSelector]=__assign$1({color:"GrayText",border:"none",backgroundColor:"Window"},getHighContrastNoAdjustStyle()),j)},splitButtonMenuButtonChecked:{backgroundColor:st.neutralLight,color:st.neutralDark,selectors:{":hover":{backgroundColor:st.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:st.neutralLight,color:st.black,selectors:{":hover":{backgroundColor:st.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:st.neutralPrimary},splitButtonMenuIconDisabled:{color:st.neutralTertiary},label:{fontWeight:"normal"},icon:{color:st.themePrimary},menuIcon:(_={color:st.neutralSecondary},_[HighContrastSelector]={color:"GrayText"},_)};return concatStyleSets(rt,tt,vt,i)}),CommandBarButton=function(a){__extends(i,a);function i(){return a!==null&&a.apply(this,arguments)||this}return i.prototype.render=function(){var _e=this.props,pt=_e.styles,Lt=_e.theme;return reactExports.createElement(BaseButton,__assign$1({},this.props,{variantClassName:"ms-Button--commandBar",styles:getStyles$a(Lt,pt),onRenderDescription:nullRender}))},i=__decorate([customizable("CommandBarButton",["theme","styles"],!0)],i),i}(reactExports.Component),getClassNames$a=classNamesFunction(),CheckboxBase=reactExports.forwardRef(function(a,i){var _e=a.disabled,pt=a.required,Lt=a.inputProps,Gt=a.name,Ct=a.ariaLabel,Rt=a.ariaLabelledBy,o=a.ariaDescribedBy,it=a.ariaPositionInSet,xt=a.ariaSetSize,et=a.title,Tt=a.checkmarkIconProps,yt=a.styles,ut=a.theme,ht=a.className,j=a.boxSide,_=j===void 0?"start":j,rt=useId("checkbox-",a.id),tt=reactExports.useRef(null),st=useMergedRefs(tt,i),ot=reactExports.useRef(null),nt=useControllableValue(a.checked,a.defaultChecked,a.onChange),vt=nt[0],dt=nt[1],bt=useControllableValue(a.indeterminate,a.defaultIndeterminate),ft=bt[0],at=bt[1];useFocusRects(tt);var mt=getClassNames$a(yt,{theme:ut,className:ht,disabled:_e,indeterminate:ft,checked:vt,reversed:_!=="start",isUsingCustomLabelRender:!!a.onRenderLabel}),St=reactExports.useCallback(function(ct){ft?(dt(!!vt,ct),at(!1)):dt(!vt,ct)},[dt,at,ft,vt]),_t=reactExports.useCallback(function(ct){return ct&&ct.label?reactExports.createElement("span",{className:mt.text,title:ct.title},ct.label):null},[mt.text]),Mt=reactExports.useCallback(function(ct){if(ot.current){var It=!!ct;ot.current.indeterminate=It,at(It)}},[at]);useComponentRef$1(a,vt,ft,Mt,ot),reactExports.useEffect(function(){return Mt(ft)},[Mt,ft]);var Et=a.onRenderLabel||_t,kt=ft?"mixed":void 0,wt=__assign$1(__assign$1({className:mt.input,type:"checkbox"},Lt),{checked:!!vt,disabled:_e,required:pt,name:Gt,id:rt,title:et,onChange:St,"aria-disabled":_e,"aria-label":Ct,"aria-labelledby":Rt,"aria-describedby":o,"aria-posinset":it,"aria-setsize":xt,"aria-checked":kt});return reactExports.createElement("div",{className:mt.root,title:et,ref:st},reactExports.createElement("input",__assign$1({},wt,{ref:ot,title:et,"data-ktp-execute-target":!0})),reactExports.createElement("label",{className:mt.label,htmlFor:rt},reactExports.createElement("div",{className:mt.checkbox,"data-ktp-target":!0},reactExports.createElement(Icon,__assign$1({iconName:"CheckMark"},Tt,{className:mt.checkmark}))),Et(a,_t)))});CheckboxBase.displayName="CheckboxBase";function useComponentRef$1(a,i,_e,pt,Lt){reactExports.useImperativeHandle(a.componentRef,function(){return{get checked(){return!!i},get indeterminate(){return!!_e},set indeterminate(Gt){pt(Gt)},focus:function(){Lt.current&&Lt.current.focus()}}},[Lt,i,_e,pt])}var GlobalClassNames$7={root:"ms-Checkbox",label:"ms-Checkbox-label",checkbox:"ms-Checkbox-checkbox",checkmark:"ms-Checkbox-checkmark",text:"ms-Checkbox-text"},MS_CHECKBOX_LABEL_SIZE="20px",MS_CHECKBOX_TRANSITION_DURATION="200ms",MS_CHECKBOX_TRANSITION_TIMING="cubic-bezier(.4, 0, .23, 1)",getStyles$9=function(a){var i,_e,pt,Lt,Gt,Ct,Rt,o,it,xt,et,Tt,yt,ut,ht,j,_,rt,tt=a.className,st=a.theme,ot=a.reversed,nt=a.checked,vt=a.disabled,dt=a.isUsingCustomLabelRender,bt=a.indeterminate,ft=st.semanticColors,at=st.effects,mt=st.palette,St=st.fonts,_t=getGlobalClassNames(GlobalClassNames$7,st),Mt=ft.inputForegroundChecked,Et=mt.neutralSecondary,kt=mt.neutralPrimary,wt=ft.inputBackgroundChecked,ct=ft.inputBackgroundChecked,It=ft.disabledBodySubtext,At=ft.inputBorderHovered,Ot=ft.inputBackgroundCheckedHovered,Pt=ft.inputBackgroundChecked,zt=ft.inputBackgroundCheckedHovered,Dt=ft.inputBackgroundCheckedHovered,Nt=ft.inputTextHovered,$t=ft.disabledBodySubtext,Ut=ft.bodyText,Ht=ft.disabledText,Vt=[(i={content:'""',borderRadius:at.roundedCorner2,position:"absolute",width:10,height:10,top:4,left:4,boxSizing:"border-box",borderWidth:5,borderStyle:"solid",borderColor:vt?It:wt,transitionProperty:"border-width, border, border-color",transitionDuration:MS_CHECKBOX_TRANSITION_DURATION,transitionTimingFunction:MS_CHECKBOX_TRANSITION_TIMING},i[HighContrastSelector]={borderColor:"WindowText"},i)];return{root:[_t.root,{position:"relative",display:"flex"},ot&&"reversed",nt&&"is-checked",!vt&&"is-enabled",vt&&"is-disabled",!vt&&[!nt&&(_e={},_e[":hover ."+_t.checkbox]=(pt={borderColor:At},pt[HighContrastSelector]={borderColor:"Highlight"},pt),_e[":focus ."+_t.checkbox]={borderColor:At},_e[":hover ."+_t.checkmark]=(Lt={color:Et,opacity:"1"},Lt[HighContrastSelector]={color:"Highlight"},Lt),_e),nt&&!bt&&(Gt={},Gt[":hover ."+_t.checkbox]={background:zt,borderColor:Dt},Gt[":focus ."+_t.checkbox]={background:zt,borderColor:Dt},Gt[HighContrastSelector]=(Ct={},Ct[":hover ."+_t.checkbox]={background:"Highlight",borderColor:"Highlight"},Ct[":focus ."+_t.checkbox]={background:"Highlight"},Ct[":focus:hover ."+_t.checkbox]={background:"Highlight"},Ct[":focus:hover ."+_t.checkmark]={color:"Window"},Ct[":hover ."+_t.checkmark]={color:"Window"},Ct),Gt),bt&&(Rt={},Rt[":hover ."+_t.checkbox+", :hover ."+_t.checkbox+":after"]=(o={borderColor:Ot},o[HighContrastSelector]={borderColor:"WindowText"},o),Rt[":focus ."+_t.checkbox]={borderColor:Ot},Rt[":hover ."+_t.checkmark]={opacity:"0"},Rt),(it={},it[":hover ."+_t.text+", :focus ."+_t.text]=(xt={color:Nt},xt[HighContrastSelector]={color:vt?"GrayText":"WindowText"},xt),it)],tt],input:(et={position:"absolute",background:"none",opacity:0},et["."+IsFocusVisibleClassName+" &:focus + label::before"]=(Tt={outline:"1px solid "+st.palette.neutralSecondary,outlineOffset:"2px"},Tt[HighContrastSelector]={outline:"1px solid WindowText"},Tt),et),label:[_t.label,st.fonts.medium,{display:"flex",alignItems:dt?"center":"flex-start",cursor:vt?"default":"pointer",position:"relative",userSelect:"none"},ot&&{flexDirection:"row-reverse",justifyContent:"flex-end"},{"&::before":{position:"absolute",left:0,right:0,top:0,bottom:0,content:'""',pointerEvents:"none"}}],checkbox:[_t.checkbox,(yt={position:"relative",display:"flex",flexShrink:0,alignItems:"center",justifyContent:"center",height:MS_CHECKBOX_LABEL_SIZE,width:MS_CHECKBOX_LABEL_SIZE,border:"1px solid "+kt,borderRadius:at.roundedCorner2,boxSizing:"border-box",transitionProperty:"background, border, border-color",transitionDuration:MS_CHECKBOX_TRANSITION_DURATION,transitionTimingFunction:MS_CHECKBOX_TRANSITION_TIMING,overflow:"hidden",":after":bt?Vt:null},yt[HighContrastSelector]=__assign$1({borderColor:"WindowText"},getHighContrastNoAdjustStyle()),yt),bt&&{borderColor:wt},ot?{marginLeft:4}:{marginRight:4},!vt&&!bt&&nt&&(ut={background:Pt,borderColor:ct},ut[HighContrastSelector]={background:"Highlight",borderColor:"Highlight"},ut),vt&&(ht={borderColor:It},ht[HighContrastSelector]={borderColor:"GrayText"},ht),nt&&vt&&(j={background:$t,borderColor:It},j[HighContrastSelector]={background:"Window"},j)],checkmark:[_t.checkmark,(_={opacity:nt&&!bt?"1":"0",color:Mt},_[HighContrastSelector]=__assign$1({color:vt?"GrayText":"Window"},getHighContrastNoAdjustStyle()),_)],text:[_t.text,(rt={color:vt?Ht:Ut,fontSize:St.medium.fontSize,lineHeight:"20px"},rt[HighContrastSelector]=__assign$1({color:vt?"GrayText":"WindowText"},getHighContrastNoAdjustStyle()),rt),ot?{marginRight:4}:{marginLeft:4}]}},Checkbox=styled(CheckboxBase,getStyles$9,void 0,{scope:"Checkbox"}),getClassNames$9=classNamesFunction({cacheSize:100}),LabelBase=function(a){__extends(i,a);function i(){return a!==null&&a.apply(this,arguments)||this}return i.prototype.render=function(){var _e=this.props,pt=_e.as,Lt=pt===void 0?"label":pt,Gt=_e.children,Ct=_e.className,Rt=_e.disabled,o=_e.styles,it=_e.required,xt=_e.theme,et=getClassNames$9(o,{className:Ct,disabled:Rt,required:it,theme:xt});return reactExports.createElement(Lt,__assign$1({},getNativeProps(this.props,divProperties),{className:et.root}),Gt)},i}(reactExports.Component),getStyles$8=function(a){var i,_e=a.theme,pt=a.className,Lt=a.disabled,Gt=a.required,Ct=_e.semanticColors,Rt=FontWeights.semibold,o=Ct.bodyText,it=Ct.disabledBodyText,xt=Ct.errorText;return{root:["ms-Label",_e.fonts.medium,{fontWeight:Rt,color:o,boxSizing:"border-box",boxShadow:"none",margin:0,display:"block",padding:"5px 0",wordWrap:"break-word",overflowWrap:"break-word"},Lt&&{color:it,selectors:(i={},i[HighContrastSelector]=__assign$1({color:"GrayText"},getHighContrastNoAdjustStyle()),i)},Gt&&{selectors:{"::after":{content:"' *'",color:xt,paddingRight:12}}},pt]}},Label=styled(LabelBase,getStyles$8,void 0,{scope:"Label"}),getClassNames$8=classNamesFunction(),DEFAULT_STATE_VALUE="",COMPONENT_NAME="TextField",REVEAL_ICON_NAME="RedEye",HIDE_ICON_NAME="Hide",TextFieldBase=function(a){__extends(i,a);function i(_e){var pt=a.call(this,_e)||this;pt._textElement=reactExports.createRef(),pt._onFocus=function(Ct){pt.props.onFocus&&pt.props.onFocus(Ct),pt.setState({isFocused:!0},function(){pt.props.validateOnFocusIn&&pt._validate(pt.value)})},pt._onBlur=function(Ct){pt.props.onBlur&&pt.props.onBlur(Ct),pt.setState({isFocused:!1},function(){pt.props.validateOnFocusOut&&pt._validate(pt.value)})},pt._onRenderLabel=function(Ct){var Rt=Ct.label,o=Ct.required,it=pt._classNames.subComponentStyles?pt._classNames.subComponentStyles.label:void 0;return Rt?reactExports.createElement(Label,{required:o,htmlFor:pt._id,styles:it,disabled:Ct.disabled,id:pt._labelId},Ct.label):null},pt._onRenderDescription=function(Ct){return Ct.description?reactExports.createElement("span",{className:pt._classNames.description},Ct.description):null},pt._onRevealButtonClick=function(Ct){pt.setState(function(Rt){return{isRevealingPassword:!Rt.isRevealingPassword}})},pt._onInputChange=function(Ct){var Rt,o,it=Ct.target,xt=it.value,et=_getValue(pt.props,pt.state)||"";if(xt===void 0||xt===pt._lastChangeValue||xt===et){pt._lastChangeValue=void 0;return}pt._lastChangeValue=xt,(o=(Rt=pt.props).onChange)===null||o===void 0||o.call(Rt,Ct,xt),pt._isControlled||pt.setState({uncontrolledValue:xt})},initializeComponentRef(pt),pt._async=new Async(pt),pt._fallbackId=getId(COMPONENT_NAME),pt._descriptionId=getId(COMPONENT_NAME+"Description"),pt._labelId=getId(COMPONENT_NAME+"Label"),pt._prefixId=getId(COMPONENT_NAME+"Prefix"),pt._suffixId=getId(COMPONENT_NAME+"Suffix"),pt._warnControlledUsage();var Lt=_e.defaultValue,Gt=Lt===void 0?DEFAULT_STATE_VALUE:Lt;return typeof Gt=="number"&&(Gt=String(Gt)),pt.state={uncontrolledValue:pt._isControlled?void 0:Gt,isFocused:!1,errorMessage:""},pt._delayedValidate=pt._async.debounce(pt._validate,pt.props.deferredValidationTime),pt._lastValidation=0,pt}return Object.defineProperty(i.prototype,"value",{get:function(){return _getValue(this.props,this.state)},enumerable:!1,configurable:!0}),i.prototype.componentDidMount=function(){this._adjustInputHeight(),this.props.validateOnLoad&&this._validate(this.value)},i.prototype.componentWillUnmount=function(){this._async.dispose()},i.prototype.getSnapshotBeforeUpdate=function(_e,pt){return{selection:[this.selectionStart,this.selectionEnd]}},i.prototype.componentDidUpdate=function(_e,pt,Lt){var Gt=this.props,Ct=(Lt||{}).selection,Rt=Ct===void 0?[null,null]:Ct,o=Rt[0],it=Rt[1];!!_e.multiline!=!!Gt.multiline&&pt.isFocused&&(this.focus(),o!==null&&it!==null&&o>=0&&it>=0&&this.setSelectionRange(o,it)),_e.value!==Gt.value&&(this._lastChangeValue=void 0);var xt=_getValue(_e,pt),et=this.value;xt!==et&&(this._warnControlledUsage(_e),this.state.errorMessage&&!Gt.errorMessage&&this.setState({errorMessage:""}),this._adjustInputHeight(),_shouldValidateAllChanges(Gt)&&this._delayedValidate(et))},i.prototype.render=function(){var _e=this.props,pt=_e.borderless,Lt=_e.className,Gt=_e.disabled,Ct=_e.invalid,Rt=_e.iconProps,o=_e.inputClassName,it=_e.label,xt=_e.multiline,et=_e.required,Tt=_e.underlined,yt=_e.prefix,ut=_e.resizable,ht=_e.suffix,j=_e.theme,_=_e.styles,rt=_e.autoAdjustHeight,tt=_e.canRevealPassword,st=_e.revealPasswordAriaLabel,ot=_e.type,nt=_e.onRenderPrefix,vt=nt===void 0?this._onRenderPrefix:nt,dt=_e.onRenderSuffix,bt=dt===void 0?this._onRenderSuffix:dt,ft=_e.onRenderLabel,at=ft===void 0?this._onRenderLabel:ft,mt=_e.onRenderDescription,St=mt===void 0?this._onRenderDescription:mt,_t=this.state,Mt=_t.isFocused,Et=_t.isRevealingPassword,kt=this._errorMessage,wt=typeof Ct=="boolean"?Ct:!!kt,ct=!!tt&&ot==="password"&&_browserNeedsRevealButton(),It=this._classNames=getClassNames$8(_,{theme:j,className:Lt,disabled:Gt,focused:Mt,required:et,multiline:xt,hasLabel:!!it,hasErrorMessage:wt,borderless:pt,resizable:ut,hasIcon:!!Rt,underlined:Tt,inputClassName:o,autoAdjustHeight:rt,hasRevealButton:ct});return reactExports.createElement("div",{ref:this.props.elementRef,className:It.root},reactExports.createElement("div",{className:It.wrapper},at(this.props,this._onRenderLabel),reactExports.createElement("div",{className:It.fieldGroup},(yt!==void 0||this.props.onRenderPrefix)&&reactExports.createElement("div",{className:It.prefix,id:this._prefixId},vt(this.props,this._onRenderPrefix)),xt?this._renderTextArea():this._renderInput(),Rt&&reactExports.createElement(Icon,__assign$1({className:It.icon},Rt)),ct&&reactExports.createElement("button",{"aria-label":st,className:It.revealButton,onClick:this._onRevealButtonClick,"aria-pressed":!!Et,type:"button"},reactExports.createElement("span",{className:It.revealSpan},reactExports.createElement(Icon,{className:It.revealIcon,iconName:Et?HIDE_ICON_NAME:REVEAL_ICON_NAME}))),(ht!==void 0||this.props.onRenderSuffix)&&reactExports.createElement("div",{className:It.suffix,id:this._suffixId},bt(this.props,this._onRenderSuffix)))),this._isDescriptionAvailable&&reactExports.createElement("span",{id:this._descriptionId},St(this.props,this._onRenderDescription),kt&&reactExports.createElement("div",{role:"alert"},reactExports.createElement(DelayedRender,null,this._renderErrorMessage()))))},i.prototype.focus=function(){this._textElement.current&&this._textElement.current.focus()},i.prototype.blur=function(){this._textElement.current&&this._textElement.current.blur()},i.prototype.select=function(){this._textElement.current&&this._textElement.current.select()},i.prototype.setSelectionStart=function(_e){this._textElement.current&&(this._textElement.current.selectionStart=_e)},i.prototype.setSelectionEnd=function(_e){this._textElement.current&&(this._textElement.current.selectionEnd=_e)},Object.defineProperty(i.prototype,"selectionStart",{get:function(){return this._textElement.current?this._textElement.current.selectionStart:-1},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"selectionEnd",{get:function(){return this._textElement.current?this._textElement.current.selectionEnd:-1},enumerable:!1,configurable:!0}),i.prototype.setSelectionRange=function(_e,pt){this._textElement.current&&this._textElement.current.setSelectionRange(_e,pt)},i.prototype._warnControlledUsage=function(_e){this._id,this.props,this.props.value===null&&!this._hasWarnedNullValue&&(this._hasWarnedNullValue=!0,warn("Warning: 'value' prop on '"+COMPONENT_NAME+"' should not be null. Consider using an empty string to clear the component or undefined to indicate an uncontrolled component."))},Object.defineProperty(i.prototype,"_id",{get:function(){return this.props.id||this._fallbackId},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"_isControlled",{get:function(){return isControlled(this.props,"value")},enumerable:!1,configurable:!0}),i.prototype._onRenderPrefix=function(_e){var pt=_e.prefix;return reactExports.createElement("span",{style:{paddingBottom:"1px"}},pt)},i.prototype._onRenderSuffix=function(_e){var pt=_e.suffix;return reactExports.createElement("span",{style:{paddingBottom:"1px"}},pt)},Object.defineProperty(i.prototype,"_errorMessage",{get:function(){var _e=this.props.errorMessage,pt=_e===void 0?this.state.errorMessage:_e;return pt||""},enumerable:!1,configurable:!0}),i.prototype._renderErrorMessage=function(){var _e=this._errorMessage;return _e?typeof _e=="string"?reactExports.createElement("p",{className:this._classNames.errorMessage},reactExports.createElement("span",{"data-automation-id":"error-message"},_e)):reactExports.createElement("div",{className:this._classNames.errorMessage,"data-automation-id":"error-message"},_e):null},Object.defineProperty(i.prototype,"_isDescriptionAvailable",{get:function(){var _e=this.props;return!!(_e.onRenderDescription||_e.description||this._errorMessage)},enumerable:!1,configurable:!0}),i.prototype._renderTextArea=function(){var _e=this.props.invalid,pt=_e===void 0?!!this._errorMessage:_e,Lt=getNativeProps(this.props,textAreaProperties,["defaultValue"]),Gt=this.props["aria-labelledby"]||(this.props.label?this._labelId:void 0);return reactExports.createElement("textarea",__assign$1({id:this._id},Lt,{ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-labelledby":Gt,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":pt,"aria-label":this.props.ariaLabel,readOnly:this.props.readOnly,onFocus:this._onFocus,onBlur:this._onBlur}))},i.prototype._renderInput=function(){var _e=this.props,pt=_e.ariaLabel,Lt=_e.invalid,Gt=Lt===void 0?!!this._errorMessage:Lt,Ct=_e.onRenderPrefix,Rt=_e.onRenderSuffix,o=_e.prefix,it=_e.suffix,xt=_e.type,et=xt===void 0?"text":xt,Tt=_e.label,yt=[];Tt&&yt.push(this._labelId),(o!==void 0||Ct)&&yt.push(this._prefixId),(it!==void 0||Rt)&&yt.push(this._suffixId);var ut=__assign$1(__assign$1({type:this.state.isRevealingPassword?"text":et,id:this._id},getNativeProps(this.props,inputProperties,["defaultValue","type"])),{"aria-labelledby":this.props["aria-labelledby"]||(yt.length>0?yt.join(" "):void 0),ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-label":pt,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":Gt,onFocus:this._onFocus,onBlur:this._onBlur}),ht=function(_){return reactExports.createElement("input",__assign$1({},_))},j=this.props.onRenderInput||ht;return j(ut,ht)},i.prototype._validate=function(_e){var pt=this;if(!(this._latestValidateValue===_e&&_shouldValidateAllChanges(this.props))){this._latestValidateValue=_e;var Lt=this.props.onGetErrorMessage,Gt=Lt&&Lt(_e||"");if(Gt!==void 0)if(typeof Gt=="string"||!("then"in Gt))this.setState({errorMessage:Gt}),this._notifyAfterValidate(_e,Gt);else{var Ct=++this._lastValidation;Gt.then(function(Rt){Ct===pt._lastValidation&&pt.setState({errorMessage:Rt}),pt._notifyAfterValidate(_e,Rt)})}else this._notifyAfterValidate(_e,"")}},i.prototype._notifyAfterValidate=function(_e,pt){_e===this.value&&this.props.onNotifyValidationResult&&this.props.onNotifyValidationResult(pt,_e)},i.prototype._adjustInputHeight=function(){if(this._textElement.current&&this.props.autoAdjustHeight&&this.props.multiline){var _e=this._textElement.current;_e.style.height="",_e.style.height=_e.scrollHeight+"px"}},i.defaultProps={resizable:!0,deferredValidationTime:200,validateOnLoad:!0},i}(reactExports.Component);function _getValue(a,i){var _e=a.value,pt=_e===void 0?i.uncontrolledValue:_e;return typeof pt=="number"?String(pt):pt}function _shouldValidateAllChanges(a){return!(a.validateOnFocusIn||a.validateOnFocusOut)}var __browserNeedsRevealButton;function _browserNeedsRevealButton(){if(typeof __browserNeedsRevealButton!="boolean"){var a=getWindow();if(a!=null&&a.navigator){var i=/Edg/.test(a.navigator.userAgent||"");__browserNeedsRevealButton=!(isIE11()||i)}else __browserNeedsRevealButton=!0}return __browserNeedsRevealButton}var globalClassNames$1={root:"ms-TextField",description:"ms-TextField-description",errorMessage:"ms-TextField-errorMessage",field:"ms-TextField-field",fieldGroup:"ms-TextField-fieldGroup",prefix:"ms-TextField-prefix",suffix:"ms-TextField-suffix",wrapper:"ms-TextField-wrapper",revealButton:"ms-TextField-reveal",multiline:"ms-TextField--multiline",borderless:"ms-TextField--borderless",underlined:"ms-TextField--underlined",unresizable:"ms-TextField--unresizable",required:"is-required",disabled:"is-disabled",active:"is-active"};function getLabelStyles(a){var i=a.underlined,_e=a.disabled,pt=a.focused,Lt=a.theme,Gt=Lt.palette,Ct=Lt.fonts;return function(){var Rt;return{root:[i&&_e&&{color:Gt.neutralTertiary},i&&{fontSize:Ct.medium.fontSize,marginRight:8,paddingLeft:12,paddingRight:0,lineHeight:"22px",height:32},i&&pt&&{selectors:(Rt={},Rt[HighContrastSelector]={height:31},Rt)}]}}}function getStyles$7(a){var i,_e,pt,Lt,Gt,Ct,Rt,o,it,xt,et,Tt,yt=a.theme,ut=a.className,ht=a.disabled,j=a.focused,_=a.required,rt=a.multiline,tt=a.hasLabel,st=a.borderless,ot=a.underlined,nt=a.hasIcon,vt=a.resizable,dt=a.hasErrorMessage,bt=a.inputClassName,ft=a.autoAdjustHeight,at=a.hasRevealButton,mt=yt.semanticColors,St=yt.effects,_t=yt.fonts,Mt=getGlobalClassNames(globalClassNames$1,yt),Et={background:mt.disabledBackground,color:ht?mt.disabledText:mt.inputPlaceholderText,display:"flex",alignItems:"center",padding:"0 10px",lineHeight:1,whiteSpace:"nowrap",flexShrink:0,selectors:(i={},i[HighContrastSelector]={background:"Window",color:ht?"GrayText":"WindowText"},i)},kt=[{color:mt.inputPlaceholderText,opacity:1,selectors:(_e={},_e[HighContrastSelector]={color:"GrayText"},_e)}],wt={color:mt.disabledText,selectors:(pt={},pt[HighContrastSelector]={color:"GrayText"},pt)};return{root:[Mt.root,_t.medium,_&&Mt.required,ht&&Mt.disabled,j&&Mt.active,rt&&Mt.multiline,st&&Mt.borderless,ot&&Mt.underlined,normalize$6,{position:"relative"},ut],wrapper:[Mt.wrapper,ot&&[{display:"flex",borderBottom:"1px solid "+(dt?mt.errorText:mt.inputBorder),width:"100%"},ht&&{borderBottomColor:mt.disabledBackground,selectors:(Lt={},Lt[HighContrastSelector]=__assign$1({borderColor:"GrayText"},getHighContrastNoAdjustStyle()),Lt)},!ht&&{selectors:{":hover":{borderBottomColor:dt?mt.errorText:mt.inputBorderHovered,selectors:(Gt={},Gt[HighContrastSelector]=__assign$1({borderBottomColor:"Highlight"},getHighContrastNoAdjustStyle()),Gt)}}},j&&[{position:"relative"},getInputFocusStyle(dt?mt.errorText:mt.inputFocusBorderAlt,0,"borderBottom")]]],fieldGroup:[Mt.fieldGroup,normalize$6,{border:"1px solid "+mt.inputBorder,borderRadius:St.roundedCorner2,background:mt.inputBackground,cursor:"text",height:32,display:"flex",flexDirection:"row",alignItems:"stretch",position:"relative"},rt&&{minHeight:"60px",height:"auto",display:"flex"},!j&&!ht&&{selectors:{":hover":{borderColor:mt.inputBorderHovered,selectors:(Ct={},Ct[HighContrastSelector]=__assign$1({borderColor:"Highlight"},getHighContrastNoAdjustStyle()),Ct)}}},j&&!ot&&getInputFocusStyle(dt?mt.errorText:mt.inputFocusBorderAlt,St.roundedCorner2),ht&&{borderColor:mt.disabledBackground,selectors:(Rt={},Rt[HighContrastSelector]=__assign$1({borderColor:"GrayText"},getHighContrastNoAdjustStyle()),Rt),cursor:"default"},st&&{border:"none"},st&&j&&{border:"none",selectors:{":after":{border:"none"}}},ot&&{flex:"1 1 0px",border:"none",textAlign:"left"},ot&&ht&&{backgroundColor:"transparent"},dt&&!ot&&{borderColor:mt.errorText,selectors:{"&:hover":{borderColor:mt.errorText}}},!tt&&_&&{selectors:(o={":before":{content:"'*'",color:mt.errorText,position:"absolute",top:-5,right:-10}},o[HighContrastSelector]={selectors:{":before":{color:"WindowText",right:-14}}},o)}],field:[_t.medium,Mt.field,normalize$6,{borderRadius:0,border:"none",background:"none",backgroundColor:"transparent",color:mt.inputText,padding:"0 8px",width:"100%",minWidth:0,textOverflow:"ellipsis",outline:0,selectors:(it={"&:active, &:focus, &:hover":{outline:0},"::-ms-clear":{display:"none"}},it[HighContrastSelector]={background:"Window",color:ht?"GrayText":"WindowText"},it)},getPlaceholderStyles(kt),rt&&!vt&&[Mt.unresizable,{resize:"none"}],rt&&{minHeight:"inherit",lineHeight:17,flexGrow:1,paddingTop:6,paddingBottom:6,overflow:"auto",width:"100%"},rt&&ft&&{overflow:"hidden"},nt&&!at&&{paddingRight:24},rt&&nt&&{paddingRight:40},ht&&[{backgroundColor:mt.disabledBackground,color:mt.disabledText,borderColor:mt.disabledBackground},getPlaceholderStyles(wt)],ot&&{textAlign:"left"},j&&!st&&{selectors:(xt={},xt[HighContrastSelector]={paddingLeft:11,paddingRight:11},xt)},j&&rt&&!st&&{selectors:(et={},et[HighContrastSelector]={paddingTop:4},et)},bt],icon:[rt&&{paddingRight:24,alignItems:"flex-end"},{pointerEvents:"none",position:"absolute",bottom:6,right:8,top:"auto",fontSize:IconFontSizes.medium,lineHeight:18},ht&&{color:mt.disabledText}],description:[Mt.description,{color:mt.bodySubtext,fontSize:_t.xSmall.fontSize}],errorMessage:[Mt.errorMessage,AnimationClassNames.slideDownIn20,_t.small,{color:mt.errorText,margin:0,paddingTop:5,display:"flex",alignItems:"center"}],prefix:[Mt.prefix,Et],suffix:[Mt.suffix,Et],revealButton:[Mt.revealButton,"ms-Button","ms-Button--icon",getFocusStyle(yt,{inset:1}),{height:30,width:32,border:"none",padding:"0px 4px",backgroundColor:"transparent",color:mt.link,selectors:{":hover":{outline:0,color:mt.primaryButtonBackgroundHovered,backgroundColor:mt.buttonBackgroundHovered,selectors:(Tt={},Tt[HighContrastSelector]={borderColor:"Highlight",color:"Highlight"},Tt)},":focus":{outline:0}}},nt&&{marginRight:28}],revealSpan:{display:"flex",height:"100%",alignItems:"center"},revealIcon:{margin:"0px 4px",pointerEvents:"none",bottom:6,right:8,top:"auto",fontSize:IconFontSizes.medium,lineHeight:18},subComponentStyles:{label:getLabelStyles(a)}}}var TextField=styled(TextFieldBase,getStyles$7,void 0,{scope:"TextField"}),ScrollToMode={auto:0,top:1,bottom:2,center:3},getScrollHeight=function(a){if(a===void 0)return 0;var i=0;return"scrollHeight"in a?i=a.scrollHeight:"document"in a&&(i=a.document.documentElement.scrollHeight),i},getScrollYPosition=function(a){if(a===void 0)return 0;var i=0;return"scrollTop"in a?i=a.scrollTop:"scrollY"in a&&(i=a.scrollY),Math.ceil(i)},setScrollYPosition=function(a,i){"scrollTop"in a?a.scrollTop=i:"scrollY"in a&&a.scrollTo(a.scrollX,i)},RESIZE_DELAY=16,MIN_SCROLL_UPDATE_DELAY=100,MAX_SCROLL_UPDATE_DELAY=500,IDLE_DEBOUNCE_DELAY=200,DONE_SCROLLING_WAIT=500,DEFAULT_ITEMS_PER_PAGE=10,DEFAULT_PAGE_HEIGHT=30,DEFAULT_RENDERED_WINDOWS_BEHIND=2,DEFAULT_RENDERED_WINDOWS_AHEAD=2,PAGE_KEY_PREFIX="page-",SPACER_KEY_PREFIX="spacer-",EMPTY_RECT={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},_measurePageRect=function(a){return a.getBoundingClientRect()},_measureSurfaceRect=_measurePageRect,_measureScrollRect=_measurePageRect,List=function(a){__extends(i,a);function i(_e){var pt=a.call(this,_e)||this;return pt._root=reactExports.createRef(),pt._surface=reactExports.createRef(),pt._pageRefs={},pt._getDerivedStateFromProps=function(Lt,Gt){return(Lt.items!==pt.props.items||Lt.renderCount!==pt.props.renderCount||Lt.startIndex!==pt.props.startIndex||Lt.version!==pt.props.version||!Gt.hasMounted)&&canUseDOM()?(pt._resetRequiredWindows(),pt._requiredRect=null,pt._measureVersion++,pt._invalidatePageCache(),pt._updatePages(Lt,Gt)):Gt},pt._onRenderRoot=function(Lt){var Gt=Lt.rootRef,Ct=Lt.surfaceElement,Rt=Lt.divProps;return reactExports.createElement("div",__assign$1({ref:Gt},Rt),Ct)},pt._onRenderSurface=function(Lt){var Gt=Lt.surfaceRef,Ct=Lt.pageElements,Rt=Lt.divProps;return reactExports.createElement("div",__assign$1({ref:Gt},Rt),Ct)},pt._onRenderPage=function(Lt,Gt){for(var Ct,Rt=pt.props,o=Rt.onRenderCell,it=Rt.onRenderCellConditional,xt=Rt.role,et=Lt.page,Tt=et.items,yt=Tt===void 0?[]:Tt,ut=et.startIndex,ht=__rest$5(Lt,["page"]),j=xt===void 0?"listitem":"presentation",_=[],rt=0;rt_e;if(ut){if(pt&&this._scrollElement){for(var ht=_measureScrollRect(this._scrollElement),j=getScrollYPosition(this._scrollElement),_={top:j,bottom:j+ht.height},rt=_e-et,tt=0;tt=_.top&&st<=_.bottom;if(ot)return;var nt=it<_.top,vt=st>_.bottom;nt||vt&&(it=st-ht.height)}this._scrollElement&&setScrollYPosition(this._scrollElement,it);return}it+=yt}},i.prototype.getStartItemIndexInView=function(_e){for(var pt=this.state.pages||[],Lt=0,Gt=pt;Lt=Ct.top&&(this._scrollTop||0)<=Ct.top+Ct.height;if(Rt)if(_e)for(var it=0,xt=Ct.startIndex;xt0?Gt:void 0,"aria-label":xt.length>0?et["aria-label"]:void 0})})},i.prototype._shouldVirtualize=function(_e){_e===void 0&&(_e=this.props);var pt=_e.onShouldVirtualize;return!pt||pt(_e)},i.prototype._invalidatePageCache=function(){this._pageCache={}},i.prototype._renderPage=function(_e){var pt=this,Lt=this.props.usePageCache,Gt;if(Lt&&(Gt=this._pageCache[_e.key],Gt&&Gt.pageElement))return Gt.pageElement;var Ct=this._getPageStyle(_e),Rt=this.props.onRenderPage,o=Rt===void 0?this._onRenderPage:Rt,it=o({page:_e,className:"ms-List-page",key:_e.key,ref:function(xt){pt._pageRefs[_e.key]=xt},style:Ct,role:"presentation"},this._onRenderPage);return Lt&&_e.startIndex===0&&(this._pageCache[_e.key]={page:_e,pageElement:it}),it},i.prototype._getPageStyle=function(_e){var pt=this.props.getPageStyle;return __assign$1(__assign$1({},pt?pt(_e):{}),_e.items?{}:{height:_e.height})},i.prototype._onFocus=function(_e){for(var pt=_e.target;pt!==this._surface.current;){var Lt=pt.getAttribute("data-list-index");if(Lt){this._focusedIndex=Number(Lt);break}pt=getParent(pt)}},i.prototype._onScroll=function(){!this.state.isScrolling&&!this.props.ignoreScrollingState&&this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDone()},i.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},i.prototype._onAsyncScroll=function(){this._updateRenderRects(this.props,this.state),(!this._materializedRect||!_isContainedWithin(this._requiredRect,this._materializedRect))&&this.setState(this._updatePages(this.props,this.state))},i.prototype._onAsyncIdle=function(){var _e=this.props,pt=_e.renderedWindowsAhead,Lt=_e.renderedWindowsBehind,Gt=this,Ct=Gt._requiredWindowsAhead,Rt=Gt._requiredWindowsBehind,o=Math.min(pt,Ct+1),it=Math.min(Lt,Rt+1);(o!==Ct||it!==Rt)&&(this._requiredWindowsAhead=o,this._requiredWindowsBehind=it,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(pt>o||Lt>it)&&this._onAsyncIdle()},i.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||this.setState({isScrolling:!1})},i.prototype._onAsyncResize=function(){this.forceUpdate()},i.prototype._updatePages=function(_e,pt){this._requiredRect||this._updateRenderRects(_e,pt);var Lt=this._buildPages(_e,pt),Gt=pt.pages;return this._notifyPageChanges(Gt,Lt.pages,this.props),__assign$1(__assign$1(__assign$1({},pt),Lt),{pagesVersion:{}})},i.prototype._notifyPageChanges=function(_e,pt,Lt){var Gt=Lt.onPageAdded,Ct=Lt.onPageRemoved;if(Gt||Ct){for(var Rt={},o=0,it=_e;o-1,St=!_||at>=_.top&&et<=_.bottom,_t=!tt._requiredRect||at>=tt._requiredRect.top&&et<=tt._requiredRect.bottom,Mt=!j&&(_t||St&&mt)||!ht,Et=yt>=nt&&yt=tt._visibleRect.top&&et<=tt._visibleRect.bottom),it.push(ct),_t&&tt._allowedRect&&_mergeRect(o,{top:et,bottom:at,height:dt,left:_.left,right:_.right,width:_.width})}else Tt||(Tt=tt._createPage(SPACER_KEY_PREFIX+nt,void 0,nt,0,void 0,bt,!0)),Tt.height=(Tt.height||0)+(at-et)+1,Tt.itemCount+=xt;if(et+=at-et+1,j&&ht)return"break"},tt=this,st=Ct;stthis._estimatedPageHeight/3)&&(o=this._surfaceRect=_measureSurfaceRect(this._surface.current),this._scrollTop=xt),(Lt||!it||it!==this._scrollHeight)&&this._measureVersion++,this._scrollHeight=it||0;var et=Math.max(0,-o.top),Tt=getWindow(this._root.current),yt={top:et,left:o.left,bottom:et+Tt.innerHeight,right:o.right,width:o.width,height:Tt.innerHeight};this._requiredRect=_expandRect(yt,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=_expandRect(yt,Ct,Gt),this._visibleRect=yt}},i.defaultProps={startIndex:0,onRenderCell:function(_e,pt,Lt){return reactExports.createElement(reactExports.Fragment,null,_e&&_e.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:DEFAULT_RENDERED_WINDOWS_AHEAD,renderedWindowsBehind:DEFAULT_RENDERED_WINDOWS_BEHIND},i}(reactExports.Component);function _expandRect(a,i,_e){var pt=a.top-i*a.height,Lt=a.height+(i+_e)*a.height;return{top:pt,bottom:pt+Lt,height:Lt,left:a.left,right:a.right,width:a.width}}function _isContainedWithin(a,i){return a.top>=i.top&&a.left>=i.left&&a.bottom<=i.bottom&&a.right<=i.right}function _mergeRect(a,i){return a.top=i.topa.bottom||a.bottom===-1?i.bottom:a.bottom,a.right=i.right>a.right||a.right===-1?i.right:a.right,a.width=a.right-a.left+1,a.height=a.bottom-a.top+1,a}var SpinnerSize;(function(a){a[a.xSmall=0]="xSmall",a[a.small=1]="small",a[a.medium=2]="medium",a[a.large=3]="large"})(SpinnerSize||(SpinnerSize={}));var SpinnerType;(function(a){a[a.normal=0]="normal",a[a.large=1]="large"})(SpinnerType||(SpinnerType={}));var getClassNames$7=classNamesFunction(),SpinnerBase=function(a){__extends(i,a);function i(){return a!==null&&a.apply(this,arguments)||this}return i.prototype.render=function(){var _e=this.props,pt=_e.type,Lt=_e.size,Gt=_e.ariaLabel,Ct=_e.ariaLive,Rt=_e.styles,o=_e.label,it=_e.theme,xt=_e.className,et=_e.labelPosition,Tt=Gt,yt=getNativeProps(this.props,divProperties,["size"]),ut=Lt;ut===void 0&&pt!==void 0&&(ut=pt===SpinnerType.large?SpinnerSize.large:SpinnerSize.medium);var ht=getClassNames$7(Rt,{theme:it,size:ut,className:xt,labelPosition:et});return reactExports.createElement("div",__assign$1({},yt,{className:ht.root}),reactExports.createElement("div",{className:ht.circle}),o&&reactExports.createElement("div",{className:ht.label},o),Tt&&reactExports.createElement("div",{role:"status","aria-live":Ct},reactExports.createElement(DelayedRender,null,reactExports.createElement("div",{className:ht.screenReaderText},Tt))))},i.defaultProps={size:SpinnerSize.medium,ariaLive:"polite",labelPosition:"bottom"},i}(reactExports.Component),GlobalClassNames$6={root:"ms-Spinner",circle:"ms-Spinner-circle",label:"ms-Spinner-label"},spinAnimation=memoizeFunction(function(){return keyframes({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}})}),getStyles$6=function(a){var i,_e=a.theme,pt=a.size,Lt=a.className,Gt=a.labelPosition,Ct=_e.palette,Rt=getGlobalClassNames(GlobalClassNames$6,_e);return{root:[Rt.root,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},Gt==="top"&&{flexDirection:"column-reverse"},Gt==="right"&&{flexDirection:"row"},Gt==="left"&&{flexDirection:"row-reverse"},Lt],circle:[Rt.circle,{boxSizing:"border-box",borderRadius:"50%",border:"1.5px solid "+Ct.themeLight,borderTopColor:Ct.themePrimary,animationName:spinAnimation(),animationDuration:"1.3s",animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(.53,.21,.29,.67)",selectors:(i={},i[HighContrastSelector]=__assign$1({borderTopColor:"Highlight"},getHighContrastNoAdjustStyle()),i)},pt===SpinnerSize.xSmall&&["ms-Spinner--xSmall",{width:12,height:12}],pt===SpinnerSize.small&&["ms-Spinner--small",{width:16,height:16}],pt===SpinnerSize.medium&&["ms-Spinner--medium",{width:20,height:20}],pt===SpinnerSize.large&&["ms-Spinner--large",{width:28,height:28}]],label:[Rt.label,_e.fonts.small,{color:Ct.themePrimary,margin:"8px 0 0",textAlign:"center"},Gt==="top"&&{margin:"0 0 8px"},Gt==="right"&&{margin:"0 0 0 8px"},Gt==="left"&&{margin:"0 8px 0 0"}],screenReaderText:hiddenContentStyle}},Spinner=styled(SpinnerBase,getStyles$6,void 0,{scope:"Spinner"}),DialogType;(function(a){a[a.normal=0]="normal",a[a.largeHeader=1]="largeHeader",a[a.close=2]="close"})(DialogType||(DialogType={}));var animationDuration=AnimationVariables.durationValue2,globalClassNames={root:"ms-Modal",main:"ms-Dialog-main",scrollableContent:"ms-Modal-scrollableContent",isOpen:"is-open",layer:"ms-Modal-Layer"},getStyles$5=function(a){var i,_e=a.className,pt=a.containerClassName,Lt=a.scrollableContentClassName,Gt=a.isOpen,Ct=a.isVisible,Rt=a.hasBeenOpened,o=a.modalRectangleTop,it=a.theme,xt=a.topOffsetFixed,et=a.isModeless,Tt=a.layerClassName,yt=a.isDefaultDragHandle,ut=a.windowInnerHeight,ht=it.palette,j=it.effects,_=it.fonts,rt=getGlobalClassNames(globalClassNames,it);return{root:[rt.root,_.medium,{backgroundColor:"transparent",position:"fixed",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",opacity:0,pointerEvents:"none",transition:"opacity "+animationDuration},xt&&typeof o=="number"&&Rt&&{alignItems:"flex-start"},Gt&&rt.isOpen,Ct&&{opacity:1},Ct&&!et&&{pointerEvents:"auto"},_e],main:[rt.main,{boxShadow:j.elevation64,borderRadius:j.roundedCorner2,backgroundColor:ht.white,boxSizing:"border-box",position:"relative",textAlign:"left",outline:"3px solid transparent",maxHeight:"calc(100% - 32px)",maxWidth:"calc(100% - 32px)",minHeight:"176px",minWidth:"288px",overflowY:"auto",zIndex:et?ZIndexes.Layer:void 0},et&&{pointerEvents:"auto"},xt&&typeof o=="number"&&Rt&&{top:o},yt&&{cursor:"move"},pt],scrollableContent:[rt.scrollableContent,{overflowY:"auto",flexGrow:1,maxHeight:"100vh",selectors:(i={},i["@supports (-webkit-overflow-scrolling: touch)"]={maxHeight:ut},i)},Lt],layer:et&&[Tt,rt.layer,{pointerEvents:"none"}],keyboardMoveIconContainer:{position:"absolute",display:"flex",justifyContent:"center",width:"100%",padding:"3px 0px"},keyboardMoveIcon:{fontSize:_.xLargePlus.fontSize,width:"24px"}}},getClassNames$6=classNamesFunction(),OverlayBase=function(a){__extends(i,a);function i(_e){var pt=a.call(this,_e)||this;initializeComponentRef(pt);var Lt=pt.props.allowTouchBodyScroll,Gt=Lt===void 0?!1:Lt;return pt._allowTouchBodyScroll=Gt,pt}return i.prototype.componentDidMount=function(){!this._allowTouchBodyScroll&&disableBodyScroll()},i.prototype.componentWillUnmount=function(){!this._allowTouchBodyScroll&&enableBodyScroll()},i.prototype.render=function(){var _e=this.props,pt=_e.isDarkThemed,Lt=_e.className,Gt=_e.theme,Ct=_e.styles,Rt=getNativeProps(this.props,divProperties),o=getClassNames$6(Ct,{theme:Gt,className:Lt,isDark:pt});return reactExports.createElement("div",__assign$1({},Rt,{className:o.root}))},i}(reactExports.Component),GlobalClassNames$5={root:"ms-Overlay",rootDark:"ms-Overlay--dark"},getStyles$4=function(a){var i,_e=a.className,pt=a.theme,Lt=a.isNone,Gt=a.isDark,Ct=pt.palette,Rt=getGlobalClassNames(GlobalClassNames$5,pt);return{root:[Rt.root,pt.fonts.medium,{backgroundColor:Ct.whiteTranslucent40,top:0,right:0,bottom:0,left:0,position:"absolute",selectors:(i={},i[HighContrastSelector]={border:"1px solid WindowText",opacity:0},i)},Lt&&{visibility:"hidden"},Gt&&[Rt.rootDark,{backgroundColor:Ct.blackTranslucent40}],_e]}},Overlay=styled(OverlayBase,getStyles$4,void 0,{scope:"Overlay"}),getClassNames$5=memoizeFunction(function(a,i){return{root:mergeStyles(a,i&&{touchAction:"none",selectors:{"& *":{userSelect:"none"}}})}}),eventMapping={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},DraggableZone=function(a){__extends(i,a);function i(_e){var pt=a.call(this,_e)||this;return pt._currentEventType=eventMapping.mouse,pt._events=[],pt._onMouseDown=function(Lt){var Gt=reactExports.Children.only(pt.props.children).props.onMouseDown;return Gt&&Gt(Lt),pt._currentEventType=eventMapping.mouse,pt._onDragStart(Lt)},pt._onMouseUp=function(Lt){var Gt=reactExports.Children.only(pt.props.children).props.onMouseUp;return Gt&&Gt(Lt),pt._currentEventType=eventMapping.mouse,pt._onDragStop(Lt)},pt._onTouchStart=function(Lt){var Gt=reactExports.Children.only(pt.props.children).props.onTouchStart;return Gt&&Gt(Lt),pt._currentEventType=eventMapping.touch,pt._onDragStart(Lt)},pt._onTouchEnd=function(Lt){var Gt=reactExports.Children.only(pt.props.children).props.onTouchEnd;Gt&&Gt(Lt),pt._currentEventType=eventMapping.touch,pt._onDragStop(Lt)},pt._onDragStart=function(Lt){if(typeof Lt.button=="number"&&Lt.button!==0)return!1;if(!(pt.props.handleSelector&&!pt._matchesSelector(Lt.target,pt.props.handleSelector)||pt.props.preventDragSelector&&pt._matchesSelector(Lt.target,pt.props.preventDragSelector))){pt._touchId=pt._getTouchId(Lt);var Gt=pt._getControlPosition(Lt);if(Gt!==void 0){var Ct=pt._createDragDataFromPosition(Gt);pt.props.onStart&&pt.props.onStart(Lt,Ct),pt.setState({isDragging:!0,lastPosition:Gt}),pt._events=[on(document.body,pt._currentEventType.move,pt._onDrag,!0),on(document.body,pt._currentEventType.stop,pt._onDragStop,!0)]}}},pt._onDrag=function(Lt){Lt.type==="touchmove"&&Lt.preventDefault();var Gt=pt._getControlPosition(Lt);if(Gt){var Ct=pt._createUpdatedDragData(pt._createDragDataFromPosition(Gt)),Rt=Ct.position;pt.props.onDragChange&&pt.props.onDragChange(Lt,Ct),pt.setState({position:Rt,lastPosition:Gt})}},pt._onDragStop=function(Lt){if(pt.state.isDragging){var Gt=pt._getControlPosition(Lt);if(Gt){var Ct=pt._createDragDataFromPosition(Gt);pt.setState({isDragging:!1,lastPosition:void 0}),pt.props.onStop&&pt.props.onStop(Lt,Ct),pt.props.position&&pt.setState({position:pt.props.position}),pt._events.forEach(function(Rt){return Rt()})}}},pt.state={isDragging:!1,position:pt.props.position||{x:0,y:0},lastPosition:void 0},pt}return i.prototype.componentDidUpdate=function(_e){this.props.position&&(!_e.position||this.props.position!==_e.position)&&this.setState({position:this.props.position})},i.prototype.componentWillUnmount=function(){this._events.forEach(function(_e){return _e()})},i.prototype.render=function(){var _e=reactExports.Children.only(this.props.children),pt=_e.props,Lt=this.props.position,Gt=this.state,Ct=Gt.position,Rt=Gt.isDragging,o=Ct.x,it=Ct.y;return Lt&&!Rt&&(o=Lt.x,it=Lt.y),reactExports.cloneElement(_e,{style:__assign$1(__assign$1({},pt.style),{transform:"translate("+o+"px, "+it+"px)"}),className:getClassNames$5(pt.className,this.state.isDragging).root,onMouseDown:this._onMouseDown,onMouseUp:this._onMouseUp,onTouchStart:this._onTouchStart,onTouchEnd:this._onTouchEnd})},i.prototype._getControlPosition=function(_e){var pt=this._getActiveTouch(_e);if(!(this._touchId!==void 0&&!pt)){var Lt=pt||_e;return{x:Lt.clientX,y:Lt.clientY}}},i.prototype._getActiveTouch=function(_e){return _e.targetTouches&&this._findTouchInTouchList(_e.targetTouches)||_e.changedTouches&&this._findTouchInTouchList(_e.changedTouches)},i.prototype._getTouchId=function(_e){var pt=_e.targetTouches&&_e.targetTouches[0]||_e.changedTouches&&_e.changedTouches[0];if(pt)return pt.identifier},i.prototype._matchesSelector=function(_e,pt){if(!_e||_e===document.body)return!1;var Lt=_e.matches||_e.webkitMatchesSelector||_e.msMatchesSelector;return Lt?Lt.call(_e,pt)||this._matchesSelector(_e.parentElement,pt):!1},i.prototype._findTouchInTouchList=function(_e){if(this._touchId!==void 0){for(var pt=0;pt<_e.length;pt++)if(_e[pt].identifier===this._touchId)return _e[pt]}},i.prototype._createDragDataFromPosition=function(_e){var pt=this.state.lastPosition;return pt===void 0?{delta:{x:0,y:0},lastPosition:_e,position:_e}:{delta:{x:_e.x-pt.x,y:_e.y-pt.y},lastPosition:pt,position:_e}},i.prototype._createUpdatedDragData=function(_e){var pt=this.state.position;return{position:{x:pt.x+_e.delta.x,y:pt.y+_e.delta.y},delta:_e.delta,lastPosition:pt}},i}(reactExports.Component),ZERO={x:0,y:0},DEFAULT_PROPS={isOpen:!1,isDarkOverlay:!0,className:"",containerClassName:"",enableAriaHiddenSiblings:!0},getClassNames$4=classNamesFunction(),getMoveDelta=function(a){var i=10;return a.shiftKey?a.ctrlKey||(i=50):a.ctrlKey&&(i=1),i},useComponentRef=function(a,i){reactExports.useImperativeHandle(a.componentRef,function(){return{focus:function(){i.current&&i.current.focus()}}},[i])},ModalBase=reactExports.forwardRef(function(a,i){var _e,pt,Lt,Gt,Ct,Rt=getPropsWithDefaults(DEFAULT_PROPS,a),o=Rt.allowTouchBodyScroll,it=Rt.className,xt=Rt.children,et=Rt.containerClassName,Tt=Rt.scrollableContentClassName,yt=Rt.elementToFocusOnDismiss,ut=Rt.firstFocusableSelector,ht=Rt.focusTrapZoneProps,j=Rt.forceFocusInsideTrap,_=Rt.disableRestoreFocus,rt=_===void 0?Rt.ignoreExternalFocusing:_,tt=Rt.isBlocking,st=Rt.isAlert,ot=Rt.isClickableOutsideFocusTrap,nt=Rt.isDarkOverlay,vt=Rt.onDismiss,dt=Rt.layerProps,bt=Rt.overlay,ft=Rt.isOpen,at=Rt.titleAriaId,mt=Rt.styles,St=Rt.subtitleAriaId,_t=Rt.theme,Mt=Rt.topOffsetFixed,Et=Rt.responsiveMode,kt=Rt.onLayerDidMount,wt=Rt.isModeless,ct=Rt.dragOptions,It=Rt.onDismissed,At=Rt.enableAriaHiddenSiblings,Ot=Rt.popupProps,Pt=reactExports.useRef(null),zt=reactExports.useRef(null),Dt=useMergedRefs(zt,ht==null?void 0:ht.componentRef),Nt=reactExports.useRef(null),$t=useMergedRefs(Pt,i),Ut=useResponsiveMode($t),Ht=useId("ModalFocusTrapZone",ht==null?void 0:ht.id),Vt=useWindow(),Xt=useSetTimeout(),qt=Xt.setTimeout,er=Xt.clearTimeout,lr=reactExports.useState(ft),Jt=lr[0],Yt=lr[1],rr=reactExports.useState(ft),jt=rr[0],ar=rr[1],sr=reactExports.useState(ZERO),Zt=sr[0],Kt=sr[1],or=reactExports.useState(),tr=or[0],cr=or[1],mr=useBoolean(!1),Ar=mr[0],br=mr[1],Ir=br.toggle,Tr=br.setFalse,_r=useConst(function(){return{onModalCloseTimer:0,allowTouchBodyScroll:o,scrollableContent:null,lastSetCoordinates:ZERO,events:new EventGroup({})}}),Er=(ct||{}).keepInBounds,Rr=st??(tt&&!wt),zr=dt===void 0?"":dt.className,Or=getClassNames$4(mt,{theme:_t,className:it,containerClassName:et,scrollableContentClassName:Tt,isOpen:ft,isVisible:jt,hasBeenOpened:_r.hasBeenOpened,modalRectangleTop:tr,topOffsetFixed:Mt,isModeless:wt,layerClassName:zr,windowInnerHeight:Vt==null?void 0:Vt.innerHeight,isDefaultDragHandle:ct&&!ct.dragHandleSelector}),kr=__assign$1(__assign$1({eventBubblingEnabled:!1},dt),{onLayerDidMount:dt&&dt.onLayerDidMount?dt.onLayerDidMount:kt,insertFirst:(dt==null?void 0:dt.insertFirst)||wt,className:Or.layer}),Nr=reactExports.useCallback(function(Fr){Fr?_r.allowTouchBodyScroll?allowOverscrollOnElement(Fr,_r.events):allowScrollOnElement(Fr,_r.events):_r.events.off(_r.scrollableContent),_r.scrollableContent=Fr},[_r]),Qr=function(){var Fr=Nt.current,Ur=Fr==null?void 0:Fr.getBoundingClientRect();Ur&&(Mt&&cr(Ur.top),Er&&(_r.minPosition={x:-Ur.left,y:-Ur.top},_r.maxPosition={x:Ur.left,y:Ur.top}))},sn=reactExports.useCallback(function(Fr,Ur){var Wr=_r.minPosition,Gr=_r.maxPosition;return Er&&Wr&&Gr&&(Ur=Math.max(Wr[Fr],Ur),Ur=Math.min(Gr[Fr],Ur)),Ur},[Er,_r]),un=function(){var Fr;_r.lastSetCoordinates=ZERO,Tr(),_r.isInKeyboardMoveMode=!1,Yt(!1),Kt(ZERO),(Fr=_r.disposeOnKeyUp)===null||Fr===void 0||Fr.call(_r),It==null||It()},en=reactExports.useCallback(function(){Tr(),_r.isInKeyboardMoveMode=!1},[_r,Tr]),Xr=reactExports.useCallback(function(Fr,Ur){Kt(function(Wr){return{x:sn("x",Wr.x+Ur.delta.x),y:sn("y",Wr.y+Ur.delta.y)}})},[sn]),ln=reactExports.useCallback(function(){zt.current&&zt.current.focus()},[]),mn=function(){var Fr=function(Ur){if(Ur.altKey&&Ur.ctrlKey&&Ur.keyCode===KeyCodes.space){Ur.preventDefault(),Ur.stopPropagation();return}var Wr=Ur.altKey||Ur.keyCode===KeyCodes.escape;if(Ar&&Wr&&Tr(),_r.isInKeyboardMoveMode&&(Ur.keyCode===KeyCodes.escape||Ur.keyCode===KeyCodes.enter)&&(_r.isInKeyboardMoveMode=!1,Ur.preventDefault(),Ur.stopPropagation()),_r.isInKeyboardMoveMode){var Gr=!0,wr=getMoveDelta(Ur);switch(Ur.keyCode){case KeyCodes.escape:Kt(_r.lastSetCoordinates);case KeyCodes.enter:{_r.lastSetCoordinates=ZERO;break}case KeyCodes.up:{Kt(function(pr){return{x:pr.x,y:sn("y",pr.y-wr)}});break}case KeyCodes.down:{Kt(function(pr){return{x:pr.x,y:sn("y",pr.y+wr)}});break}case KeyCodes.left:{Kt(function(pr){return{x:sn("x",pr.x-wr),y:pr.y}});break}case KeyCodes.right:{Kt(function(pr){return{x:sn("x",pr.x+wr),y:pr.y}});break}default:Gr=!1}Gr&&(Ur.preventDefault(),Ur.stopPropagation())}};_r.lastSetCoordinates=Zt,Tr(),_r.isInKeyboardMoveMode=!0,_r.events.on(Vt,"keydown",Fr,!0),_r.disposeOnKeyDown=function(){_r.events.off(Vt,"keydown",Fr,!0),_r.disposeOnKeyDown=void 0}},pn=function(Fr){var Ur,Wr;(Ur=ht==null?void 0:ht.onBlur)===null||Ur===void 0||Ur.call(ht,Fr),_r.lastSetCoordinates=ZERO,_r.isInKeyboardMoveMode=!1,(Wr=_r.disposeOnKeyDown)===null||Wr===void 0||Wr.call(_r)},Tn=function(){var Fr=function(Ur){Ur.altKey&&Ur.ctrlKey&&Ur.keyCode===KeyCodes.space&&elementContains(_r.scrollableContent,Ur.target)&&(Ir(),Ur.preventDefault(),Ur.stopPropagation())};_r.disposeOnKeyUp||(_r.events.on(Vt,"keyup",Fr,!0),_r.disposeOnKeyUp=function(){_r.events.off(Vt,"keyup",Fr,!0),_r.disposeOnKeyUp=void 0})};reactExports.useEffect(function(){er(_r.onModalCloseTimer),ft&&(requestAnimationFrame(function(){return qt(Qr,0)}),Yt(!0),ct&&Tn(),_r.hasBeenOpened=!0,ar(!0)),!ft&&Jt&&(_r.onModalCloseTimer=qt(un,parseFloat(animationDuration)*1e3),ar(!1))},[Jt,ft]),useUnmount(function(){_r.events.dispose()}),useComponentRef(Rt,zt);var Zr=reactExports.createElement(FocusTrapZone,__assign$1({},ht,{id:Ht,ref:Nt,componentRef:Dt,className:css$2(Or.main,ht==null?void 0:ht.className),elementToFocusOnDismiss:(_e=ht==null?void 0:ht.elementToFocusOnDismiss)!==null&&_e!==void 0?_e:yt,isClickableOutsideFocusTrap:(pt=ht==null?void 0:ht.isClickableOutsideFocusTrap)!==null&&pt!==void 0?pt:wt||ot||!tt,disableRestoreFocus:(Lt=ht==null?void 0:ht.disableRestoreFocus)!==null&&Lt!==void 0?Lt:rt,forceFocusInsideTrap:((Gt=ht==null?void 0:ht.forceFocusInsideTrap)!==null&&Gt!==void 0?Gt:j)&&!wt,firstFocusableSelector:(ht==null?void 0:ht.firstFocusableSelector)||ut,focusPreviouslyFocusedInnerElement:(Ct=ht==null?void 0:ht.focusPreviouslyFocusedInnerElement)!==null&&Ct!==void 0?Ct:!0,onBlur:_r.isInKeyboardMoveMode?pn:void 0}),ct&&_r.isInKeyboardMoveMode&&reactExports.createElement("div",{className:Or.keyboardMoveIconContainer},ct.keyboardMoveIconProps?reactExports.createElement(Icon,__assign$1({},ct.keyboardMoveIconProps)):reactExports.createElement(Icon,{iconName:"move",className:Or.keyboardMoveIcon})),reactExports.createElement("div",{ref:Nr,className:Or.scrollableContent,"data-is-scrollable":!0},ct&&Ar&&reactExports.createElement(ct.menu,{items:[{key:"move",text:ct.moveMenuItemText,onClick:mn},{key:"close",text:ct.closeMenuItemText,onClick:un}],onDismiss:Tr,alignTargetEdge:!0,coverTarget:!0,directionalHint:DirectionalHint.topLeftEdge,directionalHintFixed:!0,shouldFocusOnMount:!0,target:_r.scrollableContent}),xt));return Jt&&Ut>=(Et||ResponsiveMode.small)&&reactExports.createElement(Layer,__assign$1({ref:$t},kr),reactExports.createElement(Popup,__assign$1({role:Rr?"alertdialog":"dialog",ariaLabelledBy:at,ariaDescribedBy:St,onDismiss:vt,shouldRestoreFocus:!rt,enableAriaHiddenSiblings:At,"aria-modal":!wt},Ot),reactExports.createElement("div",{className:Or.root,role:wt?void 0:"document"},!wt&&reactExports.createElement(Overlay,__assign$1({"aria-hidden":!0,isDarkThemed:nt,onClick:tt?void 0:vt,allowTouchBodyScroll:o},bt)),ct?reactExports.createElement(DraggableZone,{handleSelector:ct.dragHandleSelector||"#"+Ht,preventDragSelector:"button",onStart:en,onDragChange:Xr,onStop:ln,position:Zt},Zr):Zr)))||null});ModalBase.displayName="Modal";var Modal=styled(ModalBase,getStyles$5,void 0,{scope:"Modal",fields:["theme","styles","enableAriaHiddenSiblings"]});Modal.displayName="Modal";var getClassNames$3=classNamesFunction(),DialogFooterBase=function(a){__extends(i,a);function i(_e){var pt=a.call(this,_e)||this;return initializeComponentRef(pt),pt}return i.prototype.render=function(){var _e=this.props,pt=_e.className,Lt=_e.styles,Gt=_e.theme;return this._classNames=getClassNames$3(Lt,{theme:Gt,className:pt}),reactExports.createElement("div",{className:this._classNames.actions},reactExports.createElement("div",{className:this._classNames.actionsRight},this._renderChildrenAsActions()))},i.prototype._renderChildrenAsActions=function(){var _e=this;return reactExports.Children.map(this.props.children,function(pt){return pt?reactExports.createElement("span",{className:_e._classNames.action},pt):null})},i}(reactExports.Component),GlobalClassNames$4={actions:"ms-Dialog-actions",action:"ms-Dialog-action",actionsRight:"ms-Dialog-actionsRight"},getStyles$3=function(a){var i=a.className,_e=a.theme,pt=getGlobalClassNames(GlobalClassNames$4,_e);return{actions:[pt.actions,{position:"relative",width:"100%",minHeight:"24px",lineHeight:"24px",margin:"16px 0 0",fontSize:"0",selectors:{".ms-Button":{lineHeight:"normal",verticalAlign:"middle"}}},i],action:[pt.action,{margin:"0 4px"}],actionsRight:[pt.actionsRight,{alignItems:"center",display:"flex",fontSize:"0",justifyContent:"flex-end",marginRight:"-4px"}]}},DialogFooter=styled(DialogFooterBase,getStyles$3,void 0,{scope:"DialogFooter"}),getClassNames$2=classNamesFunction(),DialogFooterType=reactExports.createElement(DialogFooter,null).type,DialogContentBase=function(a){__extends(i,a);function i(_e){var pt=a.call(this,_e)||this;return initializeComponentRef(pt),pt}return i.prototype.render=function(){var _e=this.props,pt=_e.showCloseButton,Lt=_e.className,Gt=_e.closeButtonAriaLabel,Ct=_e.onDismiss,Rt=_e.subTextId,o=_e.subText,it=_e.titleProps,xt=it===void 0?{}:it,et=_e.titleId,Tt=_e.title,yt=_e.type,ut=_e.styles,ht=_e.theme,j=_e.draggableHeaderClassName,_=getClassNames$2(ut,{theme:ht,className:Lt,isLargeHeader:yt===DialogType.largeHeader,isClose:yt===DialogType.close,draggableHeaderClassName:j}),rt=this._groupChildren(),tt;return o&&(tt=reactExports.createElement("p",{className:_.subText,id:Rt},o)),reactExports.createElement("div",{className:_.content},reactExports.createElement("div",{className:_.header},reactExports.createElement("div",__assign$1({id:et,role:"heading","aria-level":1},xt,{className:css$2(_.title,xt.className)}),Tt),reactExports.createElement("div",{className:_.topButton},this.props.topButtonsProps.map(function(st,ot){return reactExports.createElement(IconButton,__assign$1({key:st.uniqueId||ot},st))}),(yt===DialogType.close||pt&&yt!==DialogType.largeHeader)&&reactExports.createElement(IconButton,{className:_.button,iconProps:{iconName:"Cancel"},ariaLabel:Gt,onClick:Ct}))),reactExports.createElement("div",{className:_.inner},reactExports.createElement("div",{className:_.innerContent},tt,rt.contents),rt.footers))},i.prototype._groupChildren=function(){var _e={footers:[],contents:[]};return reactExports.Children.map(this.props.children,function(pt){typeof pt=="object"&&pt!==null&&pt.type===DialogFooterType?_e.footers.push(pt):_e.contents.push(pt)}),_e},i.defaultProps={showCloseButton:!1,className:"",topButtonsProps:[],closeButtonAriaLabel:"Close"},i=__decorate([withResponsiveMode],i),i}(reactExports.Component),GlobalClassNames$3={contentLgHeader:"ms-Dialog-lgHeader",close:"ms-Dialog--close",subText:"ms-Dialog-subText",header:"ms-Dialog-header",headerLg:"ms-Dialog--lgHeader",button:"ms-Dialog-button ms-Dialog-button--close",inner:"ms-Dialog-inner",content:"ms-Dialog-content",title:"ms-Dialog-title"},getStyles$2=function(a){var i,_e,pt,Lt=a.className,Gt=a.theme,Ct=a.isLargeHeader,Rt=a.isClose,o=a.hidden,it=a.isMultiline,xt=a.draggableHeaderClassName,et=Gt.palette,Tt=Gt.fonts,yt=Gt.effects,ut=Gt.semanticColors,ht=getGlobalClassNames(GlobalClassNames$3,Gt);return{content:[Ct&&[ht.contentLgHeader,{borderTop:"4px solid "+et.themePrimary}],Rt&&ht.close,{flexGrow:1,overflowY:"hidden"},Lt],subText:[ht.subText,Tt.medium,{margin:"0 0 24px 0",color:ut.bodySubtext,lineHeight:"1.5",wordWrap:"break-word",fontWeight:FontWeights.regular}],header:[ht.header,{position:"relative",width:"100%",boxSizing:"border-box"},Rt&&ht.close,xt&&[xt,{cursor:"move"}]],button:[ht.button,o&&{selectors:{".ms-Icon.ms-Icon--Cancel":{color:ut.buttonText,fontSize:IconFontSizes.medium}}}],inner:[ht.inner,{padding:"0 24px 24px",selectors:(i={},i["@media (min-width: "+ScreenWidthMinSmall+"px) and (max-width: "+ScreenWidthMaxSmall+"px)"]={padding:"0 16px 16px"},i)}],innerContent:[ht.content,{position:"relative",width:"100%"}],title:[ht.title,Tt.xLarge,{color:ut.bodyText,margin:"0",minHeight:Tt.xLarge.fontSize,padding:"16px 46px 20px 24px",lineHeight:"normal",selectors:(_e={},_e["@media (min-width: "+ScreenWidthMinSmall+"px) and (max-width: "+ScreenWidthMaxSmall+"px)"]={padding:"16px 46px 16px 16px"},_e)},Ct&&{color:ut.menuHeader},it&&{fontSize:Tt.xxLarge.fontSize}],topButton:[{display:"flex",flexDirection:"row",flexWrap:"nowrap",position:"absolute",top:"0",right:"0",padding:"15px 15px 0 0",selectors:(pt={"> *":{flex:"0 0 auto"},".ms-Dialog-button":{color:ut.buttonText},".ms-Dialog-button:hover":{color:ut.buttonTextHovered,borderRadius:yt.roundedCorner2}},pt["@media (min-width: "+ScreenWidthMinSmall+"px) and (max-width: "+ScreenWidthMaxSmall+"px)"]={padding:"15px 8px 0 0"},pt)}]}},DialogContent=styled(DialogContentBase,getStyles$2,void 0,{scope:"DialogContent"}),getClassNames$1=classNamesFunction(),DefaultModalProps={isDarkOverlay:!1,isBlocking:!1,className:"",containerClassName:"",topOffsetFixed:!1,enableAriaHiddenSiblings:!0},DefaultDialogContentProps={type:DialogType.normal,className:"",topButtonsProps:[]},DialogBase=function(a){__extends(i,a);function i(_e){var pt=a.call(this,_e)||this;return pt._getSubTextId=function(){var Lt=pt.props,Gt=Lt.ariaDescribedById,Ct=Lt.modalProps,Rt=Lt.dialogContentProps,o=Lt.subText,it=Ct&&Ct.subtitleAriaId||Gt;return it||(it=(Rt&&Rt.subText||o)&&pt._defaultSubTextId),it},pt._getTitleTextId=function(){var Lt=pt.props,Gt=Lt.ariaLabelledById,Ct=Lt.modalProps,Rt=Lt.dialogContentProps,o=Lt.title,it=Ct&&Ct.titleAriaId||Gt;return it||(it=(Rt&&Rt.title||o)&&pt._defaultTitleTextId),it},pt._id=getId("Dialog"),pt._defaultTitleTextId=pt._id+"-title",pt._defaultSubTextId=pt._id+"-subText",pt}return i.prototype.render=function(){var _e,pt,Lt,Gt=this.props,Ct=Gt.className,Rt=Gt.containerClassName,o=Gt.contentClassName,it=Gt.elementToFocusOnDismiss,xt=Gt.firstFocusableSelector,et=Gt.forceFocusInsideTrap,Tt=Gt.styles,yt=Gt.hidden,ut=Gt.disableRestoreFocus,ht=ut===void 0?Gt.ignoreExternalFocusing:ut,j=Gt.isBlocking,_=Gt.isClickableOutsideFocusTrap,rt=Gt.isDarkOverlay,tt=Gt.isOpen,st=tt===void 0?!yt:tt,ot=Gt.onDismiss,nt=Gt.onDismissed,vt=Gt.onLayerDidMount,dt=Gt.responsiveMode,bt=Gt.subText,ft=Gt.theme,at=Gt.title,mt=Gt.topButtonsProps,St=Gt.type,_t=Gt.minWidth,Mt=Gt.maxWidth,Et=Gt.modalProps,kt=__assign$1({onLayerDidMount:vt},Et==null?void 0:Et.layerProps),wt,ct;Et!=null&&Et.dragOptions&&!(!((_e=Et.dragOptions)===null||_e===void 0)&&_e.dragHandleSelector)&&(ct=__assign$1({},Et.dragOptions),wt="ms-Dialog-draggable-header",ct.dragHandleSelector="."+wt);var It=__assign$1(__assign$1(__assign$1(__assign$1({},DefaultModalProps),{elementToFocusOnDismiss:it,firstFocusableSelector:xt,forceFocusInsideTrap:et,disableRestoreFocus:ht,isClickableOutsideFocusTrap:_,responsiveMode:dt,className:Ct,containerClassName:Rt,isBlocking:j,isDarkOverlay:rt,onDismissed:nt}),Et),{dragOptions:ct,layerProps:kt,isOpen:st}),At=__assign$1(__assign$1(__assign$1({className:o,subText:bt,title:at,topButtonsProps:mt,type:St},DefaultDialogContentProps),Gt.dialogContentProps),{draggableHeaderClassName:wt,titleProps:__assign$1({id:((pt=Gt.dialogContentProps)===null||pt===void 0?void 0:pt.titleId)||this._defaultTitleTextId},(Lt=Gt.dialogContentProps)===null||Lt===void 0?void 0:Lt.titleProps)}),Ot=getClassNames$1(Tt,{theme:ft,className:It.className,containerClassName:It.containerClassName,hidden:yt,dialogDefaultMinWidth:_t,dialogDefaultMaxWidth:Mt});return reactExports.createElement(Modal,__assign$1({},It,{className:Ot.root,containerClassName:Ot.main,onDismiss:ot||It.onDismiss,subtitleAriaId:this._getSubTextId(),titleAriaId:this._getTitleTextId()}),reactExports.createElement(DialogContent,__assign$1({subTextId:this._defaultSubTextId,showCloseButton:It.isBlocking,onDismiss:ot},At),Gt.children))},i.defaultProps={hidden:!0},i=__decorate([withResponsiveMode],i),i}(reactExports.Component),GlobalClassNames$2={root:"ms-Dialog"},getStyles$1=function(a){var i,_e=a.className,pt=a.containerClassName,Lt=a.dialogDefaultMinWidth,Gt=Lt===void 0?"288px":Lt,Ct=a.dialogDefaultMaxWidth,Rt=Ct===void 0?"340px":Ct,o=a.hidden,it=a.theme,xt=getGlobalClassNames(GlobalClassNames$2,it);return{root:[xt.root,it.fonts.medium,_e],main:[{width:Gt,outline:"3px solid transparent",selectors:(i={},i["@media (min-width: "+ScreenWidthMinMedium+"px)"]={width:"auto",maxWidth:Rt,minWidth:Gt},i)},!o&&{display:"flex"},pt]}},Dialog=styled(DialogBase,getStyles$1,void 0,{scope:"Dialog"});Dialog.displayName="Dialog";function initializeIcons$j(a,i){a===void 0&&(a="");var _e={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons"',src:"url('"+a+"fabric-icons-a13498cf.woff') format('woff')"},icons:{GlobalNavButton:"",ChevronDown:"",ChevronUp:"",Edit:"",Add:"",Cancel:"",More:"",Settings:"",Mail:"",Filter:"",Search:"",Share:"",BlockedSite:"",FavoriteStar:"",FavoriteStarFill:"",CheckMark:"",Delete:"",ChevronLeft:"",ChevronRight:"",Calendar:"",Megaphone:"",Undo:"",Flag:"",Page:"",Pinned:"",View:"",Clear:"",Download:"",Upload:"",Folder:"",Sort:"",AlignRight:"",AlignLeft:"",Tag:"",AddFriend:"",Info:"",SortLines:"",List:"",CircleRing:"",Heart:"",HeartFill:"",Tiles:"",Embed:"",Glimmer:"",Ascending:"",Descending:"",SortUp:"",SortDown:"",SyncToPC:"",LargeGrid:"",SkypeCheck:"",SkypeClock:"",SkypeMinus:"",ClearFilter:"",Flow:"",StatusCircleCheckmark:"",MoreVertical:""}};registerIcons(_e,i)}function initializeIcons$i(a,i){a===void 0&&(a="");var _e={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-0"',src:"url('"+a+"fabric-icons-0-467ee27f.woff') format('woff')"},icons:{PageLink:"",CommentSolid:"",ChangeEntitlements:"",Installation:"",WebAppBuilderModule:"",WebAppBuilderFragment:"",WebAppBuilderSlot:"",BullseyeTargetEdit:"",WebAppBuilderFragmentCreate:"",PageData:"",PageHeaderEdit:"",ProductList:"",UnpublishContent:"",DependencyAdd:"",DependencyRemove:"",EntitlementPolicy:"",EntitlementRedemption:"",SchoolDataSyncLogo:"",PinSolid12:"",PinSolidOff12:"",AddLink:"",SharepointAppIcon16:"",DataflowsLink:"",TimePicker:"",UserWarning:"",ComplianceAudit:"",InternetSharing:"",Brightness:"",MapPin:"",Airplane:"",Tablet:"",QuickNote:"",Video:"",People:"",Phone:"",Pin:"",Shop:"",Stop:"",Link:"",AllApps:"",Zoom:"",ZoomOut:"",Microphone:"",Camera:"",Attach:"",Send:"",FavoriteList:"",PageSolid:"",Forward:"",Back:"",Refresh:"",Lock:"",ReportHacked:"",EMI:"",MiniLink:"",Blocked:"",ReadingMode:"",Favicon:"",Remove:"",Checkbox:"",CheckboxComposite:"",CheckboxFill:"",CheckboxIndeterminate:"",CheckboxCompositeReversed:"",BackToWindow:"",FullScreen:"",Print:"",Up:"",Down:"",OEM:"",Save:"",ReturnKey:"",Cloud:"",Flashlight:"",CommandPrompt:"",Sad:"",RealEstate:"",SIPMove:"",EraseTool:"",GripperTool:"",Dialpad:"",PageLeft:"",PageRight:"",MultiSelect:"",KeyboardClassic:"",Play:"",Pause:"",InkingTool:"",Emoji2:"",GripperBarHorizontal:"",System:"",Personalize:"",SearchAndApps:"",Globe:"",EaseOfAccess:"",ContactInfo:"",Unpin:"",Contact:"",Memo:"",IncomingCall:""}};registerIcons(_e,i)}function initializeIcons$h(a,i){a===void 0&&(a="");var _e={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-1"',src:"url('"+a+"fabric-icons-1-4d521695.woff') format('woff')"},icons:{Paste:"",WindowsLogo:"",Error:"",GripperBarVertical:"",Unlock:"",Slideshow:"",Trim:"",AutoEnhanceOn:"",AutoEnhanceOff:"",Color:"",SaveAs:"",Light:"",Filters:"",AspectRatio:"",Contrast:"",Redo:"",Crop:"",PhotoCollection:"",Album:"",Rotate:"",PanoIndicator:"",Translate:"",RedEye:"",ViewOriginal:"",ThumbnailView:"",Package:"",Telemarketer:"",Warning:"",Financial:"",Education:"",ShoppingCart:"",Train:"",Move:"",TouchPointer:"",Merge:"",TurnRight:"",Ferry:"",Highlight:"",PowerButton:"",Tab:"",Admin:"",TVMonitor:"",Speakers:"",Game:"",HorizontalTabKey:"",UnstackSelected:"",StackIndicator:"",Nav2DMapView:"",StreetsideSplitMinimize:"",Car:"",Bus:"",EatDrink:"",SeeDo:"",LocationCircle:"",Home:"",SwitcherStartEnd:"",ParkingLocation:"",IncidentTriangle:"",Touch:"",MapDirections:"",CaretHollow:"",CaretSolid:"",History:"",Location:"",MapLayers:"",SearchNearby:"",Work:"",Recent:"",Hotel:"",Bank:"",LocationDot:"",Dictionary:"",ChromeBack:"",FolderOpen:"",PinnedFill:"",RevToggleKey:"",USB:"",Previous:"",Next:"",Sync:"",Help:"",Emoji:"",MailForward:"",ClosePane:"",OpenPane:"",PreviewLink:"",ZoomIn:"",Bookmarks:"",Document:"",ProtectedDocument:"",OpenInNewWindow:"",MailFill:"",ViewAll:"",Switch:"",Rename:"",Go:"",Remote:"",SelectAll:"",Orientation:"",Import:""}};registerIcons(_e,i)}function initializeIcons$g(a,i){a===void 0&&(a="");var _e={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-2"',src:"url('"+a+"fabric-icons-2-63c99abf.woff') format('woff')"},icons:{Picture:"",ChromeClose:"",ShowResults:"",Message:"",CalendarDay:"",CalendarWeek:"",MailReplyAll:"",Read:"",Cut:"",PaymentCard:"",Copy:"",Important:"",MailReply:"",GotoToday:"",Font:"",FontColor:"",FolderFill:"",Permissions:"",DisableUpdates:"",Unfavorite:"",Italic:"",Underline:"",Bold:"",MoveToFolder:"",Dislike:"",Like:"",AlignCenter:"",OpenFile:"",ClearSelection:"",FontDecrease:"",FontIncrease:"",FontSize:"",CellPhone:"",RepeatOne:"",RepeatAll:"",Calculator:"",Library:"",PostUpdate:"",NewFolder:"",CalendarReply:"",UnsyncFolder:"",SyncFolder:"",BlockContact:"",Accept:"",BulletedList:"",Preview:"",News:"",Chat:"",Group:"",World:"",Comment:"",DockLeft:"",DockRight:"",Repair:"",Accounts:"",Street:"",RadioBullet:"",Stopwatch:"",Clock:"",WorldClock:"",AlarmClock:"",Photo:"",ActionCenter:"",Hospital:"",Timer:"",FullCircleMask:"",LocationFill:"",ChromeMinimize:"",ChromeRestore:"",Annotation:"",Fingerprint:"",Handwriting:"",ChromeFullScreen:"",Completed:"",Label:"",FlickDown:"",FlickUp:"",FlickLeft:"",FlickRight:"",MiniExpand:"",MiniContract:"",Streaming:"",MusicInCollection:"",OneDriveLogo:"",CompassNW:"",Code:"",LightningBolt:"",CalculatorMultiply:"",CalculatorAddition:"",CalculatorSubtract:"",CalculatorPercentage:"",CalculatorEqualTo:"",PrintfaxPrinterFile:"",StorageOptical:"",Communications:"",Headset:"",Health:"",Webcam2:"",FrontCamera:"",ChevronUpSmall:""}};registerIcons(_e,i)}function initializeIcons$f(a,i){a===void 0&&(a="");var _e={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-3"',src:"url('"+a+"fabric-icons-3-089e217a.woff') format('woff')"},icons:{ChevronDownSmall:"",ChevronLeftSmall:"",ChevronRightSmall:"",ChevronUpMed:"",ChevronDownMed:"",ChevronLeftMed:"",ChevronRightMed:"",Devices2:"",PC1:"",PresenceChickletVideo:"",Reply:"",HalfAlpha:"",ConstructionCone:"",DoubleChevronLeftMed:"",Volume0:"",Volume1:"",Volume2:"",Volume3:"",Chart:"",Robot:"",Manufacturing:"",LockSolid:"",FitPage:"",FitWidth:"",BidiLtr:"",BidiRtl:"",RightDoubleQuote:"",Sunny:"",CloudWeather:"",Cloudy:"",PartlyCloudyDay:"",PartlyCloudyNight:"",ClearNight:"",RainShowersDay:"",Rain:"",Thunderstorms:"",RainSnow:"",Snow:"",BlowingSnow:"",Frigid:"",Fog:"",Squalls:"",Duststorm:"",Unknown:"",Precipitation:"",Ribbon:"",AreaChart:"",Assign:"",FlowChart:"",CheckList:"",Diagnostic:"",Generate:"",LineChart:"",Equalizer:"",BarChartHorizontal:"",BarChartVertical:"",Freezing:"",FunnelChart:"",Processing:"",Quantity:"",ReportDocument:"",StackColumnChart:"",SnowShowerDay:"",HailDay:"",WorkFlow:"",HourGlass:"",StoreLogoMed20:"",TimeSheet:"",TriangleSolid:"",UpgradeAnalysis:"",VideoSolid:"",RainShowersNight:"",SnowShowerNight:"",Teamwork:"",HailNight:"",PeopleAdd:"",Glasses:"",DateTime2:"",Shield:"",Header1:"",PageAdd:"",NumberedList:"",PowerBILogo:"",Info2:"",MusicInCollectionFill:"",Asterisk:"",ErrorBadge:"",CircleFill:"",Record2:"",AllAppsMirrored:"",BookmarksMirrored:"",BulletedListMirrored:"",CaretHollowMirrored:"",CaretSolidMirrored:"",ChromeBackMirrored:"",ClearSelectionMirrored:"",ClosePaneMirrored:"",DockLeftMirrored:"",DoubleChevronLeftMedMirrored:"",GoMirrored:""}};registerIcons(_e,i)}function initializeIcons$e(a,i){a===void 0&&(a="");var _e={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-4"',src:"url('"+a+"fabric-icons-4-a656cc0a.woff') format('woff')"},icons:{HelpMirrored:"",ImportMirrored:"",ImportAllMirrored:"",ListMirrored:"",MailForwardMirrored:"",MailReplyMirrored:"",MailReplyAllMirrored:"",MiniContractMirrored:"",MiniExpandMirrored:"",OpenPaneMirrored:"",ParkingLocationMirrored:"",SendMirrored:"",ShowResultsMirrored:"",ThumbnailViewMirrored:"",Media:"",Devices3:"",Focus:"",VideoLightOff:"",Lightbulb:"",StatusTriangle:"",VolumeDisabled:"",Puzzle:"",EmojiNeutral:"",EmojiDisappointed:"",HomeSolid:"",Ringer:"",PDF:"",HeartBroken:"",StoreLogo16:"",MultiSelectMirrored:"",Broom:"",AddToShoppingList:"",Cocktails:"",Wines:"",Articles:"",Cycling:"",DietPlanNotebook:"",Pill:"",ExerciseTracker:"",HandsFree:"",Medical:"",Running:"",Weights:"",Trackers:"",AddNotes:"",AllCurrency:"",BarChart4:"",CirclePlus:"",Coffee:"",Cotton:"",Market:"",Money:"",PieDouble:"",PieSingle:"",RemoveFilter:"",Savings:"",Sell:"",StockDown:"",StockUp:"",Lamp:"",Source:"",MSNVideos:"",Cricket:"",Golf:"",Baseball:"",Soccer:"",MoreSports:"",AutoRacing:"",CollegeHoops:"",CollegeFootball:"",ProFootball:"",ProHockey:"",Rugby:"",SubstitutionsIn:"",Tennis:"",Arrivals:"",Design:"",Website:"",Drop:"",HistoricalWeather:"",SkiResorts:"",Snowflake:"",BusSolid:"",FerrySolid:"",AirplaneSolid:"",TrainSolid:"",Ticket:"",WifiWarning4:"",Devices4:"",AzureLogo:"",BingLogo:"",MSNLogo:"",OutlookLogoInverse:"",OfficeLogo:"",SkypeLogo:"",Door:"",EditMirrored:"",GiftCard:"",DoubleBookmark:"",StatusErrorFull:""}};registerIcons(_e,i)}function initializeIcons$d(a,i){a===void 0&&(a="");var _e={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-5"',src:"url('"+a+"fabric-icons-5-f95ba260.woff') format('woff')"},icons:{Certificate:"",FastForward:"",Rewind:"",Photo2:"",OpenSource:"",Movers:"",CloudDownload:"",Family:"",WindDirection:"",Bug:"",SiteScan:"",BrowserScreenShot:"",F12DevTools:"",CSS:"",JS:"",DeliveryTruck:"",ReminderPerson:"",ReminderGroup:"",ReminderTime:"",TabletMode:"",Umbrella:"",NetworkTower:"",CityNext:"",CityNext2:"",Section:"",OneNoteLogoInverse:"",ToggleFilled:"",ToggleBorder:"",SliderThumb:"",ToggleThumb:"",Documentation:"",Badge:"",Giftbox:"",VisualStudioLogo:"",HomeGroup:"",ExcelLogoInverse:"",WordLogoInverse:"",PowerPointLogoInverse:"",Cafe:"",SpeedHigh:"",Commitments:"",ThisPC:"",MusicNote:"",MicOff:"",PlaybackRate1x:"",EdgeLogo:"",CompletedSolid:"",AlbumRemove:"",MessageFill:"",TabletSelected:"",MobileSelected:"",LaptopSelected:"",TVMonitorSelected:"",DeveloperTools:"",Shapes:"",InsertTextBox:"",LowerBrightness:"",WebComponents:"",OfflineStorage:"",DOM:"",CloudUpload:"",ScrollUpDown:"",DateTime:"",Event:"",Cake:"",Org:"",PartyLeader:"",DRM:"",CloudAdd:"",AppIconDefault:"",Photo2Add:"",Photo2Remove:"",Calories:"",POI:"",AddTo:"",RadioBtnOff:"",RadioBtnOn:"",ExploreContent:"",Product:"",ProgressLoopInner:"",ProgressLoopOuter:"",Blocked2:"",FangBody:"",Toolbox:"",PageHeader:"",ChatInviteFriend:"",Brush:"",Shirt:"",Crown:"",Diamond:"",ScaleUp:"",QRCode:"",Feedback:"",SharepointLogoInverse:"",YammerLogo:"",Hide:"",Uneditable:"",ReturnToSession:"",OpenFolderHorizontal:"",CalendarMirrored:""}};registerIcons(_e,i)}function initializeIcons$c(a,i){a===void 0&&(a="");var _e={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-6"',src:"url('"+a+"fabric-icons-6-ef6fd590.woff') format('woff')"},icons:{SwayLogoInverse:"",OutOfOffice:"",Trophy:"",ReopenPages:"",EmojiTabSymbols:"",AADLogo:"",AccessLogo:"",AdminALogoInverse32:"",AdminCLogoInverse32:"",AdminDLogoInverse32:"",AdminELogoInverse32:"",AdminLLogoInverse32:"",AdminMLogoInverse32:"",AdminOLogoInverse32:"",AdminPLogoInverse32:"",AdminSLogoInverse32:"",AdminYLogoInverse32:"",DelveLogoInverse:"",ExchangeLogoInverse:"",LyncLogo:"",OfficeVideoLogoInverse:"",SocialListeningLogo:"",VisioLogoInverse:"",Balloons:"",Cat:"",MailAlert:"",MailCheck:"",MailLowImportance:"",MailPause:"",MailRepeat:"",SecurityGroup:"",Table:"",VoicemailForward:"",VoicemailReply:"",Waffle:"",RemoveEvent:"",EventInfo:"",ForwardEvent:"",WipePhone:"",AddOnlineMeeting:"",JoinOnlineMeeting:"",RemoveLink:"",PeopleBlock:"",PeopleRepeat:"",PeopleAlert:"",PeoplePause:"",TransferCall:"",AddPhone:"",UnknownCall:"",NoteReply:"",NoteForward:"",NotePinned:"",RemoveOccurrence:"",Timeline:"",EditNote:"",CircleHalfFull:"",Room:"",Unsubscribe:"",Subscribe:"",HardDrive:"",RecurringTask:"",TaskManager:"",TaskManagerMirrored:"",Combine:"",Split:"",DoubleChevronUp:"",DoubleChevronLeft:"",DoubleChevronRight:"",TextBox:"",TextField:"",NumberField:"",Dropdown:"",PenWorkspace:"",BookingsLogo:"",ClassNotebookLogoInverse:"",DelveAnalyticsLogo:"",DocsLogoInverse:"",Dynamics365Logo:"",DynamicSMBLogo:"",OfficeAssistantLogo:"",OfficeStoreLogo:"",OneNoteEduLogoInverse:"",PlannerLogo:"",PowerApps:"",Suitcase:"",ProjectLogoInverse:"",CaretLeft8:"",CaretRight8:"",CaretUp8:"",CaretDown8:"",CaretLeftSolid8:"",CaretRightSolid8:"",CaretUpSolid8:"",CaretDownSolid8:"",ClearFormatting:"",Superscript:"",Subscript:"",Strikethrough:"",Export:"",ExportMirrored:""}};registerIcons(_e,i)}function initializeIcons$b(a,i){a===void 0&&(a="");var _e={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-7"',src:"url('"+a+"fabric-icons-7-2b97bb99.woff') format('woff')"},icons:{SingleBookmark:"",SingleBookmarkSolid:"",DoubleChevronDown:"",FollowUser:"",ReplyAll:"",WorkforceManagement:"",RecruitmentManagement:"",Questionnaire:"",ManagerSelfService:"",ProductionFloorManagement:"",ProductRelease:"",ProductVariant:"",ReplyMirrored:"",ReplyAllMirrored:"",Medal:"",AddGroup:"",QuestionnaireMirrored:"",CloudImportExport:"",TemporaryUser:"",CaretSolid16:"",GroupedDescending:"",GroupedAscending:"",AwayStatus:"",MyMoviesTV:"",GenericScan:"",AustralianRules:"",WifiEthernet:"",TrackersMirrored:"",DateTimeMirrored:"",StopSolid:"",DoubleChevronUp12:"",DoubleChevronDown12:"",DoubleChevronLeft12:"",DoubleChevronRight12:"",CalendarAgenda:"",ConnectVirtualMachine:"",AddEvent:"",AssetLibrary:"",DataConnectionLibrary:"",DocLibrary:"",FormLibrary:"",FormLibraryMirrored:"",ReportLibrary:"",ReportLibraryMirrored:"",ContactCard:"",CustomList:"",CustomListMirrored:"",IssueTracking:"",IssueTrackingMirrored:"",PictureLibrary:"",OfficeAddinsLogo:"",OfflineOneDriveParachute:"",OfflineOneDriveParachuteDisabled:"",TriangleSolidUp12:"",TriangleSolidDown12:"",TriangleSolidLeft12:"",TriangleSolidRight12:"",TriangleUp12:"",TriangleDown12:"",TriangleLeft12:"",TriangleRight12:"",ArrowUpRight8:"",ArrowDownRight8:"",DocumentSet:"",GoToDashboard:"",DelveAnalytics:"",ArrowUpRightMirrored8:"",ArrowDownRightMirrored8:"",CompanyDirectory:"",OpenEnrollment:"",CompanyDirectoryMirrored:"",OneDriveAdd:"",ProfileSearch:"",Header2:"",Header3:"",Header4:"",RingerSolid:"",Eyedropper:"",MarketDown:"",CalendarWorkWeek:"",SidePanel:"",GlobeFavorite:"",CaretTopLeftSolid8:"",CaretTopRightSolid8:"",ViewAll2:"",DocumentReply:"",PlayerSettings:"",ReceiptForward:"",ReceiptReply:"",ReceiptCheck:"",Fax:"",RecurringEvent:"",ReplyAlt:"",ReplyAllAlt:"",EditStyle:"",EditMail:"",Lifesaver:"",LifesaverLock:"",InboxCheck:"",FolderSearch:""}};registerIcons(_e,i)}function initializeIcons$a(a,i){a===void 0&&(a="");var _e={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-8"',src:"url('"+a+"fabric-icons-8-6fdf1528.woff') format('woff')"},icons:{CollapseMenu:"",ExpandMenu:"",Boards:"",SunAdd:"",SunQuestionMark:"",LandscapeOrientation:"",DocumentSearch:"",PublicCalendar:"",PublicContactCard:"",PublicEmail:"",PublicFolder:"",WordDocument:"",PowerPointDocument:"",ExcelDocument:"",GroupedList:"",ClassroomLogo:"",Sections:"",EditPhoto:"",Starburst:"",ShareiOS:"",AirTickets:"",PencilReply:"",Tiles2:"",SkypeCircleCheck:"",SkypeCircleClock:"",SkypeCircleMinus:"",SkypeMessage:"",ClosedCaption:"",ATPLogo:"",OfficeFormsLogoInverse:"",RecycleBin:"",EmptyRecycleBin:"",Hide2:"",Breadcrumb:"",BirthdayCake:"",TimeEntry:"",CRMProcesses:"",PageEdit:"",PageArrowRight:"",PageRemove:"",Database:"",DataManagementSettings:"",CRMServices:"",EditContact:"",ConnectContacts:"",AppIconDefaultAdd:"",AppIconDefaultList:"",ActivateOrders:"",DeactivateOrders:"",ProductCatalog:"",ScatterChart:"",AccountActivity:"",DocumentManagement:"",CRMReport:"",KnowledgeArticle:"",Relationship:"",HomeVerify:"",ZipFolder:"",SurveyQuestions:"",TextDocument:"",TextDocumentShared:"",PageCheckedOut:"",PageShared:"",SaveAndClose:"",Script:"",Archive:"",ActivityFeed:"",Compare:"",EventDate:"",ArrowUpRight:"",CaretRight:"",SetAction:"",ChatBot:"",CaretSolidLeft:"",CaretSolidDown:"",CaretSolidRight:"",CaretSolidUp:"",PowerAppsLogo:"",PowerApps2Logo:"",SearchIssue:"",SearchIssueMirrored:"",FabricAssetLibrary:"",FabricDataConnectionLibrary:"",FabricDocLibrary:"",FabricFormLibrary:"",FabricFormLibraryMirrored:"",FabricReportLibrary:"",FabricReportLibraryMirrored:"",FabricPublicFolder:"",FabricFolderSearch:"",FabricMovetoFolder:"",FabricUnsyncFolder:"",FabricSyncFolder:"",FabricOpenFolderHorizontal:"",FabricFolder:"",FabricFolderFill:"",FabricNewFolder:"",FabricPictureLibrary:"",PhotoVideoMedia:"",AddFavorite:""}};registerIcons(_e,i)}function initializeIcons$9(a,i){a===void 0&&(a="");var _e={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-9"',src:"url('"+a+"fabric-icons-9-c6162b42.woff') format('woff')"},icons:{AddFavoriteFill:"",BufferTimeBefore:"",BufferTimeAfter:"",BufferTimeBoth:"",PublishContent:"",ClipboardList:"",ClipboardListMirrored:"",CannedChat:"",SkypeForBusinessLogo:"",TabCenter:"",PageCheckedin:"",PageList:"",ReadOutLoud:"",CaretBottomLeftSolid8:"",CaretBottomRightSolid8:"",FolderHorizontal:"",MicrosoftStaffhubLogo:"",GiftboxOpen:"",StatusCircleOuter:"",StatusCircleInner:"",StatusCircleRing:"",StatusTriangleOuter:"",StatusTriangleInner:"",StatusTriangleExclamation:"",StatusCircleExclamation:"",StatusCircleErrorX:"",StatusCircleInfo:"",StatusCircleBlock:"",StatusCircleBlock2:"",StatusCircleQuestionMark:"",StatusCircleSync:"",Toll:"",ExploreContentSingle:"",CollapseContent:"",CollapseContentSingle:"",InfoSolid:"",GroupList:"",ProgressRingDots:"",CaloriesAdd:"",BranchFork:"",MuteChat:"",AddHome:"",AddWork:"",MobileReport:"",ScaleVolume:"",HardDriveGroup:"",FastMode:"",ToggleLeft:"",ToggleRight:"",TriangleShape:"",RectangleShape:"",CubeShape:"",Trophy2:"",BucketColor:"",BucketColorFill:"",Taskboard:"",SingleColumn:"",DoubleColumn:"",TripleColumn:"",ColumnLeftTwoThirds:"",ColumnRightTwoThirds:"",AccessLogoFill:"",AnalyticsLogo:"",AnalyticsQuery:"",NewAnalyticsQuery:"",AnalyticsReport:"",WordLogo:"",WordLogoFill:"",ExcelLogo:"",ExcelLogoFill:"",OneNoteLogo:"",OneNoteLogoFill:"",OutlookLogo:"",OutlookLogoFill:"",PowerPointLogo:"",PowerPointLogoFill:"",PublisherLogo:"",PublisherLogoFill:"",ScheduleEventAction:"",FlameSolid:"",ServerProcesses:"",Server:"",SaveAll:"",LinkedInLogo:"",Decimals:"",SidePanelMirrored:"",ProtectRestrict:"",Blog:"",UnknownMirrored:"",PublicContactCardMirrored:"",GridViewSmall:"",GridViewMedium:"",GridViewLarge:"",Step:"",StepInsert:"",StepShared:"",StepSharedAdd:"",StepSharedInsert:"",ViewDashboard:"",ViewList:""}};registerIcons(_e,i)}function initializeIcons$8(a,i){a===void 0&&(a="");var _e={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-10"',src:"url('"+a+"fabric-icons-10-c4ded8e4.woff') format('woff')"},icons:{ViewListGroup:"",ViewListTree:"",TriggerAuto:"",TriggerUser:"",PivotChart:"",StackedBarChart:"",StackedLineChart:"",BuildQueue:"",BuildQueueNew:"",UserFollowed:"",ContactLink:"",Stack:"",Bullseye:"",VennDiagram:"",FiveTileGrid:"",FocalPoint:"",Insert:"",RingerRemove:"",TeamsLogoInverse:"",TeamsLogo:"",TeamsLogoFill:"",SkypeForBusinessLogoFill:"",SharepointLogo:"",SharepointLogoFill:"",DelveLogo:"",DelveLogoFill:"",OfficeVideoLogo:"",OfficeVideoLogoFill:"",ExchangeLogo:"",ExchangeLogoFill:"",Signin:"",DocumentApproval:"",CloneToDesktop:"",InstallToDrive:"",Blur:"",Build:"",ProcessMetaTask:"",BranchFork2:"",BranchLocked:"",BranchCommit:"",BranchCompare:"",BranchMerge:"",BranchPullRequest:"",BranchSearch:"",BranchShelveset:"",RawSource:"",MergeDuplicate:"",RowsGroup:"",RowsChild:"",Deploy:"",Redeploy:"",ServerEnviroment:"",VisioDiagram:"",HighlightMappedShapes:"",TextCallout:"",IconSetsFlag:"",VisioLogo:"",VisioLogoFill:"",VisioDocument:"",TimelineProgress:"",TimelineDelivery:"",Backlog:"",TeamFavorite:"",TaskGroup:"",TaskGroupMirrored:"",ScopeTemplate:"",AssessmentGroupTemplate:"",NewTeamProject:"",CommentAdd:"",CommentNext:"",CommentPrevious:"",ShopServer:"",LocaleLanguage:"",QueryList:"",UserSync:"",UserPause:"",StreamingOff:"",ArrowTallUpLeft:"",ArrowTallUpRight:"",ArrowTallDownLeft:"",ArrowTallDownRight:"",FieldEmpty:"",FieldFilled:"",FieldChanged:"",FieldNotChanged:"",RingerOff:"",PlayResume:"",BulletedList2:"",BulletedList2Mirrored:"",ImageCrosshair:"",GitGraph:"",Repo:"",RepoSolid:"",FolderQuery:"",FolderList:"",FolderListMirrored:"",LocationOutline:"",POISolid:"",CalculatorNotEqualTo:"",BoxSubtractSolid:""}};registerIcons(_e,i)}function initializeIcons$7(a,i){a===void 0&&(a="");var _e={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-11"',src:"url('"+a+"fabric-icons-11-2a8393d6.woff') format('woff')"},icons:{BoxAdditionSolid:"",BoxMultiplySolid:"",BoxPlaySolid:"",BoxCheckmarkSolid:"",CirclePauseSolid:"",CirclePause:"",MSNVideosSolid:"",CircleStopSolid:"",CircleStop:"",NavigateBack:"",NavigateBackMirrored:"",NavigateForward:"",NavigateForwardMirrored:"",UnknownSolid:"",UnknownMirroredSolid:"",CircleAddition:"",CircleAdditionSolid:"",FilePDB:"",FileTemplate:"",FileSQL:"",FileJAVA:"",FileASPX:"",FileCSS:"",FileSass:"",FileLess:"",FileHTML:"",JavaScriptLanguage:"",CSharpLanguage:"",CSharp:"",VisualBasicLanguage:"",VB:"",CPlusPlusLanguage:"",CPlusPlus:"",FSharpLanguage:"",FSharp:"",TypeScriptLanguage:"",PythonLanguage:"",PY:"",CoffeeScript:"",MarkDownLanguage:"",FullWidth:"",FullWidthEdit:"",Plug:"",PlugSolid:"",PlugConnected:"",PlugDisconnected:"",UnlockSolid:"",Variable:"",Parameter:"",CommentUrgent:"",Storyboard:"",DiffInline:"",DiffSideBySide:"",ImageDiff:"",ImagePixel:"",FileBug:"",FileCode:"",FileComment:"",BusinessHoursSign:"",FileImage:"",FileSymlink:"",AutoFillTemplate:"",WorkItem:"",WorkItemBug:"",LogRemove:"",ColumnOptions:"",Packages:"",BuildIssue:"",AssessmentGroup:"",VariableGroup:"",FullHistory:"",Wheelchair:"",SingleColumnEdit:"",DoubleColumnEdit:"",TripleColumnEdit:"",ColumnLeftTwoThirdsEdit:"",ColumnRightTwoThirdsEdit:"",StreamLogo:"",PassiveAuthentication:"",AlertSolid:"",MegaphoneSolid:"",TaskSolid:"",ConfigurationSolid:"",BugSolid:"",CrownSolid:"",Trophy2Solid:"",QuickNoteSolid:"",ConstructionConeSolid:"",PageListSolid:"",PageListMirroredSolid:"",StarburstSolid:"",ReadingModeSolid:"",SadSolid:"",HealthSolid:"",ShieldSolid:"",GiftBoxSolid:"",ShoppingCartSolid:"",MailSolid:"",ChatSolid:"",RibbonSolid:""}};registerIcons(_e,i)}function initializeIcons$6(a,i){a===void 0&&(a="");var _e={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-12"',src:"url('"+a+"fabric-icons-12-7e945a1e.woff') format('woff')"},icons:{FinancialSolid:"",FinancialMirroredSolid:"",HeadsetSolid:"",PermissionsSolid:"",ParkingSolid:"",ParkingMirroredSolid:"",DiamondSolid:"",AsteriskSolid:"",OfflineStorageSolid:"",BankSolid:"",DecisionSolid:"",Parachute:"",ParachuteSolid:"",FiltersSolid:"",ColorSolid:"",ReviewSolid:"",ReviewRequestSolid:"",ReviewRequestMirroredSolid:"",ReviewResponseSolid:"",FeedbackRequestSolid:"",FeedbackRequestMirroredSolid:"",FeedbackResponseSolid:"",WorkItemBar:"",WorkItemBarSolid:"",Separator:"",NavigateExternalInline:"",PlanView:"",TimelineMatrixView:"",EngineeringGroup:"",ProjectCollection:"",CaretBottomRightCenter8:"",CaretBottomLeftCenter8:"",CaretTopRightCenter8:"",CaretTopLeftCenter8:"",DonutChart:"",ChevronUnfold10:"",ChevronFold10:"",DoubleChevronDown8:"",DoubleChevronUp8:"",DoubleChevronLeft8:"",DoubleChevronRight8:"",ChevronDownEnd6:"",ChevronUpEnd6:"",ChevronLeftEnd6:"",ChevronRightEnd6:"",ContextMenu:"",AzureAPIManagement:"",AzureServiceEndpoint:"",VSTSLogo:"",VSTSAltLogo1:"",VSTSAltLogo2:"",FileTypeSolution:"",WordLogoInverse16:"",WordLogo16:"",WordLogoFill16:"",PowerPointLogoInverse16:"",PowerPointLogo16:"",PowerPointLogoFill16:"",ExcelLogoInverse16:"",ExcelLogo16:"",ExcelLogoFill16:"",OneNoteLogoInverse16:"",OneNoteLogo16:"",OneNoteLogoFill16:"",OutlookLogoInverse16:"",OutlookLogo16:"",OutlookLogoFill16:"",PublisherLogoInverse16:"",PublisherLogo16:"",PublisherLogoFill16:"",VisioLogoInverse16:"",VisioLogo16:"",VisioLogoFill16:"",TestBeaker:"",TestBeakerSolid:"",TestExploreSolid:"",TestAutoSolid:"",TestUserSolid:"",TestImpactSolid:"",TestPlan:"",TestStep:"",TestParameter:"",TestSuite:"",TestCase:"",Sprint:"",SignOut:"",TriggerApproval:"",Rocket:"",AzureKeyVault:"",Onboarding:"",Transition:"",LikeSolid:"",DislikeSolid:"",CRMCustomerInsightsApp:"",EditCreate:"",PlayReverseResume:"",PlayReverse:"",SearchData:"",UnSetColor:"",DeclineCall:""}};registerIcons(_e,i)}function initializeIcons$5(a,i){a===void 0&&(a="");var _e={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-13"',src:"url('"+a+"fabric-icons-13-c3989a02.woff') format('woff')"},icons:{RectangularClipping:"",TeamsLogo16:"",TeamsLogoFill16:"",Spacer:"",SkypeLogo16:"",SkypeForBusinessLogo16:"",SkypeForBusinessLogoFill16:"",FilterSolid:"",MailUndelivered:"",MailTentative:"",MailTentativeMirrored:"",MailReminder:"",ReceiptUndelivered:"",ReceiptTentative:"",ReceiptTentativeMirrored:"",Inbox:"",IRMReply:"",IRMReplyMirrored:"",IRMForward:"",IRMForwardMirrored:"",VoicemailIRM:"",EventAccepted:"",EventTentative:"",EventTentativeMirrored:"",EventDeclined:"",IDBadge:"",BackgroundColor:"",OfficeFormsLogoInverse16:"",OfficeFormsLogo:"",OfficeFormsLogoFill:"",OfficeFormsLogo16:"",OfficeFormsLogoFill16:"",OfficeFormsLogoInverse24:"",OfficeFormsLogo24:"",OfficeFormsLogoFill24:"",PageLock:"",NotExecuted:"",NotImpactedSolid:"",FieldReadOnly:"",FieldRequired:"",BacklogBoard:"",ExternalBuild:"",ExternalTFVC:"",ExternalXAML:"",IssueSolid:"",DefectSolid:"",LadybugSolid:"",NugetLogo:"",TFVCLogo:"",ProjectLogo32:"",ProjectLogoFill32:"",ProjectLogo16:"",ProjectLogoFill16:"",SwayLogo32:"",SwayLogoFill32:"",SwayLogo16:"",SwayLogoFill16:"",ClassNotebookLogo32:"",ClassNotebookLogoFill32:"",ClassNotebookLogo16:"",ClassNotebookLogoFill16:"",ClassNotebookLogoInverse32:"",ClassNotebookLogoInverse16:"",StaffNotebookLogo32:"",StaffNotebookLogoFill32:"",StaffNotebookLogo16:"",StaffNotebookLogoFill16:"",StaffNotebookLogoInverted32:"",StaffNotebookLogoInverted16:"",KaizalaLogo:"",TaskLogo:"",ProtectionCenterLogo32:"",GallatinLogo:"",Globe2:"",Guitar:"",Breakfast:"",Brunch:"",BeerMug:"",Vacation:"",Teeth:"",Taxi:"",Chopsticks:"",SyncOccurence:"",UnsyncOccurence:"",GIF:"",PrimaryCalendar:"",SearchCalendar:"",VideoOff:"",MicrosoftFlowLogo:"",BusinessCenterLogo:"",ToDoLogoBottom:"",ToDoLogoTop:"",EditSolid12:"",EditSolidMirrored12:"",UneditableSolid12:"",UneditableSolidMirrored12:"",UneditableMirrored:"",AdminALogo32:"",AdminALogoFill32:"",ToDoLogoInverse:""}};registerIcons(_e,i)}function initializeIcons$4(a,i){a===void 0&&(a="");var _e={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-14"',src:"url('"+a+"fabric-icons-14-5cf58db8.woff') format('woff')"},icons:{Snooze:"",WaffleOffice365:"",ImageSearch:"",NewsSearch:"",VideoSearch:"",R:"",FontColorA:"",FontColorSwatch:"",LightWeight:"",NormalWeight:"",SemiboldWeight:"",GroupObject:"",UngroupObject:"",AlignHorizontalLeft:"",AlignHorizontalCenter:"",AlignHorizontalRight:"",AlignVerticalTop:"",AlignVerticalCenter:"",AlignVerticalBottom:"",HorizontalDistributeCenter:"",VerticalDistributeCenter:"",Ellipse:"",Line:"",Octagon:"",Hexagon:"",Pentagon:"",RightTriangle:"",HalfCircle:"",QuarterCircle:"",ThreeQuarterCircle:"","6PointStar":"","12PointStar":"",ArrangeBringToFront:"",ArrangeSendToBack:"",ArrangeSendBackward:"",ArrangeBringForward:"",BorderDash:"",BorderDot:"",LineStyle:"",LineThickness:"",WindowEdit:"",HintText:"",MediaAdd:"",AnchorLock:"",AutoHeight:"",ChartSeries:"",ChartXAngle:"",ChartYAngle:"",Combobox:"",LineSpacing:"",Padding:"",PaddingTop:"",PaddingBottom:"",PaddingLeft:"",PaddingRight:"",NavigationFlipper:"",AlignJustify:"",TextOverflow:"",VisualsFolder:"",VisualsStore:"",PictureCenter:"",PictureFill:"",PicturePosition:"",PictureStretch:"",PictureTile:"",Slider:"",SliderHandleSize:"",DefaultRatio:"",NumberSequence:"",GUID:"",ReportAdd:"",DashboardAdd:"",MapPinSolid:"",WebPublish:"",PieSingleSolid:"",BlockedSolid:"",DrillDown:"",DrillDownSolid:"",DrillExpand:"",DrillShow:"",SpecialEvent:"",OneDriveFolder16:"",FunctionalManagerDashboard:"",BIDashboard:"",CodeEdit:"",RenewalCurrent:"",RenewalFuture:"",SplitObject:"",BulkUpload:"",DownloadDocument:"",GreetingCard:"",Flower:"",WaitlistConfirm:"",WaitlistConfirmMirrored:"",LaptopSecure:"",DragObject:"",EntryView:"",EntryDecline:"",ContactCardSettings:"",ContactCardSettingsMirrored:""}};registerIcons(_e,i)}function initializeIcons$3(a,i){a===void 0&&(a="");var _e={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-15"',src:"url('"+a+"fabric-icons-15-3807251b.woff') format('woff')"},icons:{CalendarSettings:"",CalendarSettingsMirrored:"",HardDriveLock:"",HardDriveUnlock:"",AccountManagement:"",ReportWarning:"",TransitionPop:"",TransitionPush:"",TransitionEffect:"",LookupEntities:"",ExploreData:"",AddBookmark:"",SearchBookmark:"",DrillThrough:"",MasterDatabase:"",CertifiedDatabase:"",MaximumValue:"",MinimumValue:"",VisualStudioIDELogo32:"",PasteAsText:"",PasteAsCode:"",BrowserTab:"",BrowserTabScreenshot:"",DesktopScreenshot:"",FileYML:"",ClipboardSolid:"",FabricUserFolder:"",FabricNetworkFolder:"",BullseyeTarget:"",AnalyticsView:"",Video360Generic:"",Untag:"",Leave:"",Trending12:"",Blocked12:"",Warning12:"",CheckedOutByOther12:"",CheckedOutByYou12:"",CircleShapeSolid:"",SquareShapeSolid:"",TriangleShapeSolid:"",DropShapeSolid:"",RectangleShapeSolid:"",ZoomToFit:"",InsertColumnsLeft:"",InsertColumnsRight:"",InsertRowsAbove:"",InsertRowsBelow:"",DeleteColumns:"",DeleteRows:"",DeleteRowsMirrored:"",DeleteTable:"",AccountBrowser:"",VersionControlPush:"",StackedColumnChart2:"",TripleColumnWide:"",QuadColumn:"",WhiteBoardApp16:"",WhiteBoardApp32:"",PinnedSolid:"",InsertSignatureLine:"",ArrangeByFrom:"",Phishing:"",CreateMailRule:"",PublishCourse:"",DictionaryRemove:"",UserRemove:"",UserEvent:"",Encryption:"",PasswordField:"",OpenInNewTab:"",Hide3:"",VerifiedBrandSolid:"",MarkAsProtected:"",AuthenticatorApp:"",WebTemplate:"",DefenderTVM:"",MedalSolid:"",D365TalentLearn:"",D365TalentInsight:"",D365TalentHRCore:"",BacklogList:"",ButtonControl:"",TableGroup:"",MountainClimbing:"",TagUnknown:"",TagUnknownMirror:"",TagUnknown12:"",TagUnknown12Mirror:"",Link12:"",Presentation:"",Presentation12:"",Lock12:"",BuildDefinition:"",ReleaseDefinition:"",SaveTemplate:"",UserGauge:"",BlockedSiteSolid12:"",TagSolid:"",OfficeChat:""}};registerIcons(_e,i)}function initializeIcons$2(a,i){a===void 0&&(a="");var _e={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-16"',src:"url('"+a+"fabric-icons-16-9cf93f3b.woff') format('woff')"},icons:{OfficeChatSolid:"",MailSchedule:"",WarningSolid:"",Blocked2Solid:"",SkypeCircleArrow:"",SkypeArrow:"",SyncStatus:"",SyncStatusSolid:"",ProjectDocument:"",ToDoLogoOutline:"",VisioOnlineLogoFill32:"",VisioOnlineLogo32:"",VisioOnlineLogoCloud32:"",VisioDiagramSync:"",Event12:"",EventDateMissed12:"",UserOptional:"",ResponsesMenu:"",DoubleDownArrow:"",DistributeDown:"",BookmarkReport:"",FilterSettings:"",GripperDotsVertical:"",MailAttached:"",AddIn:"",LinkedDatabase:"",TableLink:"",PromotedDatabase:"",BarChartVerticalFilter:"",BarChartVerticalFilterSolid:"",MicOff2:"",MicrosoftTranslatorLogo:"",ShowTimeAs:"",FileRequest:"",WorkItemAlert:"",PowerBILogo16:"",PowerBILogoBackplate16:"",BulletedListText:"",BulletedListBullet:"",BulletedListTextMirrored:"",BulletedListBulletMirrored:"",NumberedListText:"",NumberedListNumber:"",NumberedListTextMirrored:"",NumberedListNumberMirrored:"",RemoveLinkChain:"",RemoveLinkX:"",FabricTextHighlight:"",ClearFormattingA:"",ClearFormattingEraser:"",Photo2Fill:"",IncreaseIndentText:"",IncreaseIndentArrow:"",DecreaseIndentText:"",DecreaseIndentArrow:"",IncreaseIndentTextMirrored:"",IncreaseIndentArrowMirrored:"",DecreaseIndentTextMirrored:"",DecreaseIndentArrowMirrored:"",CheckListText:"",CheckListCheck:"",CheckListTextMirrored:"",CheckListCheckMirrored:"",NumberSymbol:"",Coupon:"",VerifiedBrand:"",ReleaseGate:"",ReleaseGateCheck:"",ReleaseGateError:"",M365InvoicingLogo:"",RemoveFromShoppingList:"",ShieldAlert:"",FabricTextHighlightComposite:"",Dataflows:"",GenericScanFilled:"",DiagnosticDataBarTooltip:"",SaveToMobile:"",Orientation2:"",ScreenCast:"",ShowGrid:"",SnapToGrid:"",ContactList:"",NewMail:"",EyeShadow:"",FabricFolderConfirm:"",InformationBarriers:"",CommentActive:"",ColumnVerticalSectionEdit:"",WavingHand:"",ShakeDevice:"",SmartGlassRemote:"",Rotate90Clockwise:"",Rotate90CounterClockwise:"",CampaignTemplate:"",ChartTemplate:"",PageListFilter:"",SecondaryNav:"",ColumnVerticalSection:"",SkypeCircleSlash:"",SkypeSlash:""}};registerIcons(_e,i)}function initializeIcons$1(a,i){a===void 0&&(a="");var _e={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-17"',src:"url('"+a+"fabric-icons-17-0c4ed701.woff') format('woff')"},icons:{CustomizeToolbar:"",DuplicateRow:"",RemoveFromTrash:"",MailOptions:"",Childof:"",Footer:"",Header:"",BarChartVerticalFill:"",StackedColumnChart2Fill:"",PlainText:"",AccessibiltyChecker:"",DatabaseSync:"",ReservationOrders:"",TabOneColumn:"",TabTwoColumn:"",TabThreeColumn:"",BulletedTreeList:"",MicrosoftTranslatorLogoGreen:"",MicrosoftTranslatorLogoBlue:"",InternalInvestigation:"",AddReaction:"",ContactHeart:"",VisuallyImpaired:"",EventToDoLogo:"",Variable2:"",ModelingView:"",DisconnectVirtualMachine:"",ReportLock:"",Uneditable2:"",Uneditable2Mirrored:"",BarChartVerticalEdit:"",GlobalNavButtonActive:"",PollResults:"",Rerun:"",QandA:"",QandAMirror:"",BookAnswers:"",AlertSettings:"",TrimStart:"",TrimEnd:"",TableComputed:"",DecreaseIndentLegacy:"",IncreaseIndentLegacy:"",SizeLegacy:""}};registerIcons(_e,i)}var registerIconAliases=function(){registerIconAlias("trash","delete"),registerIconAlias("onedrive","onedrivelogo"),registerIconAlias("alertsolid12","eventdatemissed12"),registerIconAlias("sixpointstar","6pointstar"),registerIconAlias("twelvepointstar","12pointstar"),registerIconAlias("toggleon","toggleleft"),registerIconAlias("toggleoff","toggleright")};setVersion("@fluentui/font-icons-mdl2","8.5.8");var DEFAULT_BASE_URL="https://spoppe-b.azureedge.net/files/fabric-cdn-prod_20210407.001/assets/icons/",win=getWindow();function initializeIcons(a,i){var _e,pt;a===void 0&&(a=((_e=win==null?void 0:win.FabricConfig)===null||_e===void 0?void 0:_e.iconBaseUrl)||((pt=win==null?void 0:win.FabricConfig)===null||pt===void 0?void 0:pt.fontBaseUrl)||DEFAULT_BASE_URL),[initializeIcons$j,initializeIcons$i,initializeIcons$h,initializeIcons$g,initializeIcons$f,initializeIcons$e,initializeIcons$d,initializeIcons$c,initializeIcons$b,initializeIcons$a,initializeIcons$9,initializeIcons$8,initializeIcons$7,initializeIcons$6,initializeIcons$5,initializeIcons$4,initializeIcons$3,initializeIcons$2,initializeIcons$1].forEach(function(Lt){return Lt(a,i)}),registerIconAliases()}var getClassNames=classNamesFunction(),SeparatorBase=reactExports.forwardRef(function(a,i){var _e=a.styles,pt=a.theme,Lt=a.className,Gt=a.vertical,Ct=a.alignContent,Rt=a.children,o=getClassNames(_e,{theme:pt,className:Lt,alignContent:Ct,vertical:Gt});return reactExports.createElement("div",{className:o.root,ref:i},reactExports.createElement("div",{className:o.content,role:"separator","aria-orientation":Gt?"vertical":"horizontal"},Rt))}),getStyles=function(a){var i,_e,pt=a.theme,Lt=a.alignContent,Gt=a.vertical,Ct=a.className,Rt=Lt==="start",o=Lt==="center",it=Lt==="end";return{root:[pt.fonts.medium,{position:"relative"},Lt&&{textAlign:Lt},!Lt&&{textAlign:"center"},Gt&&(o||!Lt)&&{verticalAlign:"middle"},Gt&&Rt&&{verticalAlign:"top"},Gt&&it&&{verticalAlign:"bottom"},Gt&&{padding:"0 4px",height:"inherit",display:"table-cell",zIndex:1,selectors:{":after":(i={backgroundColor:pt.palette.neutralLighter,width:"1px",content:'""',position:"absolute",top:"0",bottom:"0",left:"50%",right:"0",zIndex:-1},i[HighContrastSelector]={backgroundColor:"WindowText"},i)}},!Gt&&{padding:"4px 0",selectors:{":before":(_e={backgroundColor:pt.palette.neutralLighter,height:"1px",content:'""',display:"block",position:"absolute",top:"50%",bottom:"0",left:"0",right:"0"},_e[HighContrastSelector]={backgroundColor:"WindowText"},_e)}},Ct],content:[{position:"relative",display:"inline-block",padding:"0 12px",color:pt.semanticColors.bodyText,background:pt.semanticColors.bodyBackground},Gt&&{padding:"12px 0"}]}},Separator=styled(SeparatorBase,getStyles,void 0,{scope:"Separator"});Separator.displayName="Separator";var assign=__assign$1;function withSlots(a,i){for(var _e=[],pt=2;pt0)throw new Error("Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.");return _renderSlot(i[Ct],o,pt[Ct],pt.slots&&pt.slots[Ct],pt._defaultStyles&&pt._defaultStyles[Ct],pt.theme)};Rt.isSlot=!0,_e[Ct]=Rt}};for(var Gt in i)Lt(Gt);return _e}function _translateShorthand(a,i){var _e,pt;return typeof i=="string"||typeof i=="number"||typeof i=="boolean"?pt=(_e={},_e[a]=i,_e):pt=i,pt}function _constructFinalProps(a,i){for(var _e=[],pt=2;pt2)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if(_e.length===2)return{rowGap:_getValueUnitGap(_getThemedSpacing(_e[0],i)),columnGap:_getValueUnitGap(_getThemedSpacing(_e[1],i))};var pt=_getValueUnitGap(_getThemedSpacing(a,i));return{rowGap:pt,columnGap:pt}},parsePadding=function(a,i){if(a===void 0||typeof a=="number"||a==="")return a;var _e=a.split(" ");return _e.length<2?_getThemedSpacing(a,i):_e.reduce(function(pt,Lt){return _getThemedSpacing(pt,i)+" "+_getThemedSpacing(Lt,i)})},nameMap={start:"flex-start",end:"flex-end"},GlobalClassNames={root:"ms-Stack",inner:"ms-Stack-inner",child:"ms-Stack-child"},styles$6=function(a,i,_e){var pt,Lt,Gt,Ct,Rt,o,it,xt,et,Tt,yt,ut,ht,j=a.className,_=a.disableShrink,rt=a.enableScopedSelectors,tt=a.grow,st=a.horizontal,ot=a.horizontalAlign,nt=a.reversed,vt=a.verticalAlign,dt=a.verticalFill,bt=a.wrap,ft=getGlobalClassNames(GlobalClassNames,i),at=_e&&_e.childrenGap?_e.childrenGap:a.gap,mt=_e&&_e.maxHeight?_e.maxHeight:a.maxHeight,St=_e&&_e.maxWidth?_e.maxWidth:a.maxWidth,_t=_e&&_e.padding?_e.padding:a.padding,Mt=parseGap(at,i),Et=Mt.rowGap,kt=Mt.columnGap,wt=""+-.5*kt.value+kt.unit,ct=""+-.5*Et.value+Et.unit,It={textOverflow:"ellipsis"},At="> "+(rt?"."+GlobalClassNames.child:"*"),Ot=(pt={},pt[At+":not(."+GlobalClassNames$1.root+")"]={flexShrink:0},pt);return bt?{root:[ft.root,{flexWrap:"wrap",maxWidth:St,maxHeight:mt,width:"auto",overflow:"visible",height:"100%"},ot&&(Lt={},Lt[st?"justifyContent":"alignItems"]=nameMap[ot]||ot,Lt),vt&&(Gt={},Gt[st?"alignItems":"justifyContent"]=nameMap[vt]||vt,Gt),j,{display:"flex"},st&&{height:dt?"100%":"auto"}],inner:[ft.inner,(Ct={display:"flex",flexWrap:"wrap",marginLeft:wt,marginRight:wt,marginTop:ct,marginBottom:ct,overflow:"visible",boxSizing:"border-box",padding:parsePadding(_t,i),width:kt.value===0?"100%":"calc(100% + "+kt.value+kt.unit+")",maxWidth:"100vw"},Ct[At]=__assign$1({margin:""+.5*Et.value+Et.unit+" "+.5*kt.value+kt.unit},It),Ct),_&&Ot,ot&&(Rt={},Rt[st?"justifyContent":"alignItems"]=nameMap[ot]||ot,Rt),vt&&(o={},o[st?"alignItems":"justifyContent"]=nameMap[vt]||vt,o),st&&(it={flexDirection:nt?"row-reverse":"row",height:Et.value===0?"100%":"calc(100% + "+Et.value+Et.unit+")"},it[At]={maxWidth:kt.value===0?"100%":"calc(100% - "+kt.value+kt.unit+")"},it),!st&&(xt={flexDirection:nt?"column-reverse":"column",height:"calc(100% + "+Et.value+Et.unit+")"},xt[At]={maxHeight:Et.value===0?"100%":"calc(100% - "+Et.value+Et.unit+")"},xt)]}:{root:[ft.root,(et={display:"flex",flexDirection:st?nt?"row-reverse":"row":nt?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:dt?"100%":"auto",maxWidth:St,maxHeight:mt,padding:parsePadding(_t,i),boxSizing:"border-box"},et[At]=It,et),_&&Ot,tt&&{flexGrow:tt===!0?1:tt},ot&&(Tt={},Tt[st?"justifyContent":"alignItems"]=nameMap[ot]||ot,Tt),vt&&(yt={},yt[st?"alignItems":"justifyContent"]=nameMap[vt]||vt,yt),st&&kt.value>0&&(ut={},ut[nt?At+":not(:last-child)":At+":not(:first-child)"]={marginLeft:""+kt.value+kt.unit},ut),!st&&Et.value>0&&(ht={},ht[nt?At+":not(:last-child)":At+":not(:first-child)"]={marginTop:""+Et.value+Et.unit},ht),j]}},StackView=function(a){var i=a.as,_e=i===void 0?"div":i,pt=a.disableShrink,Lt=pt===void 0?!1:pt,Gt=a.enableScopedSelectors,Ct=Gt===void 0?!1:Gt,Rt=a.wrap,o=__rest$5(a,["as","disableShrink","enableScopedSelectors","wrap"]),it=_processStackChildren(a.children,{disableShrink:Lt,enableScopedSelectors:Ct}),xt=getNativeProps(o,htmlElementProperties),et=getSlots(a,{root:_e,inner:"div"});return Rt?withSlots(et.root,__assign$1({},xt),withSlots(et.inner,null,it)):withSlots(et.root,__assign$1({},xt),it)};function _processStackChildren(a,i){var _e=i.disableShrink,pt=i.enableScopedSelectors,Lt=reactExports.Children.toArray(a);return Lt=reactExports.Children.map(Lt,function(Gt){if(!Gt||!reactExports.isValidElement(Gt))return Gt;if(Gt.type===reactExports.Fragment)return Gt.props.children?_processStackChildren(Gt.props.children,{disableShrink:_e,enableScopedSelectors:pt}):null;var Ct=Gt,Rt={};_isStackItem(Gt)&&(Rt={shrink:!_e});var o=Ct.props.className;return reactExports.cloneElement(Ct,__assign$1(__assign$1(__assign$1(__assign$1({},Rt),Ct.props),o&&{className:o}),pt&&{className:css$2(GlobalClassNames.child,o)}))}),Lt}function _isStackItem(a){return!!a&&typeof a=="object"&&!!a.type&&a.type.displayName===StackItem.displayName}var StackStatics={Item:StackItem},Stack=createComponent(StackView,{displayName:"Stack",styles:styles$6,statics:StackStatics}),TextView=function(a){if(a.children==null)return null;a.block,a.className;var i=a.as,_e=i===void 0?"span":i;a.variant,a.nowrap;var pt=__rest$5(a,["block","className","as","variant","nowrap"]),Lt=getSlots(a,{root:_e});return withSlots(Lt.root,__assign$1({},getNativeProps(pt,htmlElementProperties)))},TextStyles=function(a,i){var _e=a.as,pt=a.className,Lt=a.block,Gt=a.nowrap,Ct=a.variant,Rt=i.fonts,o=i.semanticColors,it=Rt[Ct||"medium"];return{root:[it,{color:it.color||o.bodyText,display:Lt?_e==="td"?"table-cell":"block":"inline",mozOsxFontSmoothing:it.MozOsxFontSmoothing,webkitFontSmoothing:it.WebkitFontSmoothing},Gt&&{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},pt]}},Text=createComponent(TextView,{displayName:"Text",styles:TextStyles});const __GLOBAL__=typeof window>"u"?global:window,__NAMESPACE_PREFIX__="@griffel/";function getGlobalVar(a,i){return __GLOBAL__[Symbol.for(__NAMESPACE_PREFIX__+a)]||(__GLOBAL__[Symbol.for(__NAMESPACE_PREFIX__+a)]=i),__GLOBAL__[Symbol.for(__NAMESPACE_PREFIX__+a)]}const DEFINITION_LOOKUP_TABLE=getGlobalVar("DEFINITION_LOOKUP_TABLE",{}),DATA_BUCKET_ATTR="data-make-styles-bucket",SEQUENCE_HASH_LENGTH=7,SEQUENCE_PREFIX="___",SEQUENCE_SIZE=SEQUENCE_PREFIX.length+SEQUENCE_HASH_LENGTH,LOOKUP_DEFINITIONS_INDEX=0,LOOKUP_DIR_INDEX=1;function murmur2(a){for(var i=0,_e,pt=0,Lt=a.length;Lt>=4;++pt,Lt-=4)_e=a.charCodeAt(pt)&255|(a.charCodeAt(++pt)&255)<<8|(a.charCodeAt(++pt)&255)<<16|(a.charCodeAt(++pt)&255)<<24,_e=(_e&65535)*1540483477+((_e>>>16)*59797<<16),_e^=_e>>>24,i=(_e&65535)*1540483477+((_e>>>16)*59797<<16)^(i&65535)*1540483477+((i>>>16)*59797<<16);switch(Lt){case 3:i^=(a.charCodeAt(pt+2)&255)<<16;case 2:i^=(a.charCodeAt(pt+1)&255)<<8;case 1:i^=a.charCodeAt(pt)&255,i=(i&65535)*1540483477+((i>>>16)*59797<<16)}return i^=i>>>13,i=(i&65535)*1540483477+((i>>>16)*59797<<16),((i^i>>>15)>>>0).toString(36)}function padEndHash(a){const i=a.length;if(i===SEQUENCE_HASH_LENGTH)return a;for(let _e=i;_e0&&(i+=xt.slice(0,et)),_e+=Tt,pt[it]=Tt}}}if(_e==="")return i.slice(0,-1);const Lt=mergeClassesCachedResults[_e];if(Lt!==void 0)return i+Lt;const Gt=[];for(let it=0;it{const i=Object.keys(mergeClassesCachedResults).find(_e=>mergeClassesCachedResults[_e].startsWith(a));return i?i.split(SEQUENCE_PREFIX).filter(_e=>_e.length).map(_e=>SEQUENCE_PREFIX+_e):[]},addCSSRule:a=>{cssRules.add(a)},addSequenceDetails:(a,i)=>{Object.entries(a).forEach(([_e,pt])=>{sequenceDetails[pt.substring(0,SEQUENCE_SIZE)]={slotName:_e,sourceURL:i}})},getCSSRules:()=>Array.from(cssRules),getSequenceDetails:a=>sequenceDetails[a]};function getDirectionalClassName(a,i){return Array.isArray(a)?i==="rtl"?a[1]:a[0]:a}function getDebugClassNames(a,i,_e,pt){const Lt=a[0],Gt=a[1];return Object.entries(Lt).map(([Ct,Rt])=>{const o=getDirectionalClassName(Rt,Gt);let it;if(_e&&i){const xt=_e.find(({className:et})=>et===o);!xt&&i[0][Ct]?it=getDirectionalClassName(i[0][Ct],i[1]):xt&&i[0][Ct]?it=(pt?pt.filter(({debugClassNames:Tt})=>Tt.filter(({className:yt})=>yt===o).length>0).length>0:!1)?xt.className:xt.overriddenBy:(!xt&&!i[0][Ct]||xt&&!i[0][Ct])&&(it=void 0)}return{className:o,overriddenBy:it}})}function getDebugTree(a,i){const _e=DEFINITION_LOOKUP_TABLE[a];if(_e===void 0)return;const pt=i?DEFINITION_LOOKUP_TABLE[i.sequenceHash]:void 0,Lt=getDebugClassNames(_e,pt,i==null?void 0:i.debugClassNames,i==null?void 0:i.children),Gt={sequenceHash:a,direction:_e[1],children:[],debugClassNames:Lt};return debugData.getChildrenSequences(Gt.sequenceHash).reverse().forEach(Rt=>{const o=getDebugTree(Rt,Gt);o&&Gt.children.push(o)}),Gt.children.length||(Gt.rules={},Gt.debugClassNames.forEach(({className:Rt})=>{const o=debugData.getSequenceDetails(a);o&&(Gt.slot=o.slotName,Gt.sourceURL=o.sourceURL);const it=debugData.getCSSRules().find(xt=>xt.includes(Rt));Gt.rules[Rt]=it})),Gt}function injectDevTools(a){const i=a.defaultView;if(!i||i.__GRIFFEL_DEVTOOLS__)return;const _e={getInfo:pt=>{const Lt=Array.from(pt.classList).find(Gt=>Gt.startsWith(SEQUENCE_PREFIX));if(Lt!==void 0)return getDebugTree(Lt)}};Object.defineProperty(i,"__GRIFFEL_DEVTOOLS__",{configurable:!1,enumerable:!1,get(){return _e}})}const isDevToolsEnabled=(()=>{var a;try{return Boolean(typeof window<"u"&&((a=window.sessionStorage)===null||a===void 0?void 0:a.getItem("__GRIFFEL_DEVTOOLS__")))}catch{return!1}})();function normalizeCSSBucketEntry(a){return Array.isArray(a)?a:[a]}function createIsomorphicStyleSheet(a,i,_e){const pt=[];if(_e[DATA_BUCKET_ATTR]=i,a)for(const Gt in _e)a.setAttribute(Gt,_e[Gt]);function Lt(Gt){return a!=null&&a.sheet?a.sheet.insertRule(Gt,a.sheet.cssRules.length):pt.push(Gt)}return{elementAttributes:_e,insertRule:Lt,element:a,bucketName:i,cssRules(){return a!=null&&a.sheet?Array.from(a.sheet.cssRules).map(Gt=>Gt.cssText):pt}}}const styleBucketOrdering=["r","d","l","v","w","f","i","h","a","k","t","m"],styleBucketOrderingMap=styleBucketOrdering.reduce((a,i,_e)=>(a[i]=_e,a),{});function getStyleSheetForBucket(a,i,_e,pt,Lt={}){const Gt=a==="m",Ct=Gt?a+Lt.m:a;if(!pt.stylesheets[Ct]){const Rt=i&&i.createElement("style"),o=createIsomorphicStyleSheet(Rt,a,{...pt.styleElementAttributes,...Gt&&{media:Lt.m}});pt.stylesheets[Ct]=o,i&&Rt&&i.head.insertBefore(Rt,findInsertionPoint(i,_e,a,pt,Lt))}return pt.stylesheets[Ct]}function findInsertionPoint(a,i,_e,pt,Lt){const Gt=styleBucketOrderingMap[_e];let Ct=xt=>Gt-styleBucketOrderingMap[xt.getAttribute(DATA_BUCKET_ATTR)],Rt=a.head.querySelectorAll(`[${DATA_BUCKET_ATTR}]`);if(_e==="m"&&Lt){const xt=a.head.querySelectorAll(`[${DATA_BUCKET_ATTR}="${_e}"]`);xt.length&&(Rt=xt,Ct=et=>pt.compareMediaQueries(Lt.m,et.media))}const o=Rt.length;let it=o-1;for(;it>=0;){const xt=Rt.item(it);if(Ct(xt)>0)return xt.nextSibling;it--}return o>0?Rt.item(0):i?i.nextSibling:null}let lastIndex=0;const defaultCompareMediaQueries=(a,i)=>ai?1:0;function createDOMRenderer(a=typeof document>"u"?void 0:document,i={}){const{unstable_filterCSSRule:_e,insertionPoint:pt,styleElementAttributes:Lt,compareMediaQueries:Gt=defaultCompareMediaQueries}=i,Ct={insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(Lt),compareMediaQueries:Gt,id:`d${lastIndex++}`,insertCSSRules(Rt){for(const o in Rt){const it=Rt[o];for(let xt=0,et=it.length;xt{const{title:i,primaryFill:_e="currentColor"}=a,pt=__rest$5(a,["title","primaryFill"]),Lt=Object.assign(Object.assign({},pt),{title:void 0,fill:_e}),Gt=useRootStyles();return Lt.className=mergeClasses(Gt.root,Lt.className),i&&(Lt["aria-label"]=i),!Lt["aria-label"]&&!Lt["aria-labelledby"]?Lt["aria-hidden"]=!0:Lt.role="img",Lt},wrapIcon=(a,i)=>{const _e=pt=>{const Lt=useIconState(pt);return reactExports.createElement(a,Object.assign({},Lt))};return _e.displayName=i,_e},wrapIcon$1=wrapIcon,CopyRegularIcon=a=>{const{fill:i="currentColor",className:_e}=a;return reactExports.createElement("svg",Object.assign({},a,{width:"1em",height:"1em",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:_e}),reactExports.createElement("path",{d:"M8 2a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h6a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8ZM7 4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V4ZM4 6a2 2 0 0 1 1-1.73V14.5A2.5 2.5 0 0 0 7.5 17h6.23A2 2 0 0 1 12 18H7.5A3.5 3.5 0 0 1 4 14.5V6Z",fill:i}))},CopyRegular=wrapIcon$1(CopyRegularIcon,"CopyRegular"),ErrorCircleRegularIcon=a=>{const{fill:i="currentColor",className:_e}=a;return reactExports.createElement("svg",Object.assign({},a,{width:"1em",height:"1em",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:_e}),reactExports.createElement("path",{d:"M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm0 9.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5ZM10 6a.5.5 0 0 1 .5.41V11a.5.5 0 0 1-1 .09V6.5c0-.28.22-.5.5-.5Z",fill:i}))},ErrorCircleRegular=wrapIcon$1(ErrorCircleRegularIcon,"ErrorCircleRegular"),SendRegularIcon=a=>{const{fill:i="currentColor",className:_e}=a;return reactExports.createElement("svg",Object.assign({},a,{width:"1em",height:"1em",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:_e}),reactExports.createElement("path",{d:"M2.18 2.11a.5.5 0 0 1 .54-.06l15 7.5a.5.5 0 0 1 0 .9l-15 7.5a.5.5 0 0 1-.7-.58L3.98 10 2.02 2.63a.5.5 0 0 1 .16-.52Zm2.7 8.39-1.61 6.06L16.38 10 3.27 3.44 4.88 9.5h6.62a.5.5 0 1 1 0 1H4.88Z",fill:i}))},SendRegular=wrapIcon$1(SendRegularIcon,"SendRegular"),ShieldLockRegularIcon=a=>{const{fill:i="currentColor",className:_e}=a;return reactExports.createElement("svg",Object.assign({},a,{width:"1em",height:"1em",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:_e}),reactExports.createElement("path",{d:"M9.72 2.08a.5.5 0 0 1 .56 0c1.94 1.3 4.03 2.1 6.3 2.43A.5.5 0 0 1 17 5v4.34c-.26-.38-.6-.7-1-.94V5.43a15.97 15.97 0 0 1-5.6-2.08L10 3.1l-.4.25A15.97 15.97 0 0 1 4 5.43V9.5c0 3.4 1.97 5.86 6 7.46V17a2 2 0 0 0 .24.94l-.06.03a.5.5 0 0 1-.36 0C5.31 16.23 3 13.39 3 9.5V5a.5.5 0 0 1 .43-.5 15.05 15.05 0 0 0 6.3-2.42ZM12.5 12v-1a2 2 0 1 1 4 0v1h.5a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-5a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h.5Zm1-1v1h2v-1a1 1 0 1 0-2 0Zm1.75 4a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z",fill:i}))},ShieldLockRegular=wrapIcon$1(ShieldLockRegularIcon,"ShieldLockRegular"),SquareRegularIcon=a=>{const{fill:i="currentColor",className:_e}=a;return reactExports.createElement("svg",Object.assign({},a,{width:"1em",height:"1em",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:_e}),reactExports.createElement("path",{d:"M3 6a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6Zm3-2a2 2 0 0 0-2 2v8c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H6Z",fill:i}))},SquareRegular=wrapIcon$1(SquareRegularIcon,"SquareRegular"),ThumbDislike20FilledIcon=a=>{const{fill:i="currentColor",className:_e}=a;return reactExports.createElement("svg",Object.assign({},a,{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:_e}),reactExports.createElement("path",{d:"M12.48 18.3c-.8.83-2.09.38-2.43-.6-.28-.8-.64-1.77-1-2.48C8 13.1 7.38 11.9 5.67 10.37c-.23-.2-.52-.36-.84-.49-1.13-.44-2.2-1.61-1.91-3l.35-1.77a2.5 2.5 0 0 1 1.8-1.92l5.6-1.53a4.5 4.5 0 0 1 5.6 3.54l.69 3.76A3 3 0 0 1 14 12.5h-.89l.01.05c.08.41.18.97.24 1.58.07.62.1 1.29.05 1.92a3.68 3.68 0 0 1-.5 1.73c-.11.16-.27.35-.44.52Z",fill:i}))},ThumbDislike20Filled=wrapIcon$1(ThumbDislike20FilledIcon,"ThumbDislike20Filled"),ThumbLike20FilledIcon=a=>{const{fill:i="currentColor",className:_e}=a;return reactExports.createElement("svg",Object.assign({},a,{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:_e}),reactExports.createElement("path",{d:"M12.48 1.7c-.8-.83-2.09-.38-2.43.6-.28.8-.64 1.77-1 2.48C8 6.9 7.38 8.1 5.67 9.63c-.23.2-.52.36-.84.49-1.13.44-2.2 1.61-1.91 3l.35 1.77a2.5 2.5 0 0 0 1.8 1.92l5.6 1.52a4.5 4.5 0 0 0 5.6-3.53l.69-3.76A3 3 0 0 0 14 7.5h-.89l.01-.05c.08-.41.18-.97.24-1.59.07-.6.1-1.28.05-1.9a3.68 3.68 0 0 0-.5-1.74 4.16 4.16 0 0 0-.44-.52Z",fill:i}))},ThumbLike20Filled=wrapIcon$1(ThumbLike20FilledIcon,"ThumbLike20Filled"),protocols=["http","https","mailto","tel"];function uriTransformer(a){const i=(a||"").trim(),_e=i.charAt(0);if(_e==="#"||_e==="/")return i;const pt=i.indexOf(":");if(pt===-1)return i;let Lt=-1;for(;++LtLt||(Lt=i.indexOf("#"),Lt!==-1&&pt>Lt)?i:"javascript:void(0)"}/*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh * @license MIT - */var isBuffer=function(i){return i!=null&&i.constructor!=null&&typeof i.constructor.isBuffer=="function"&&i.constructor.isBuffer(i)};function stringifyPosition(a){return!a||typeof a!="object"?"":"position"in a||"type"in a?position$1(a.position):"start"in a||"end"in a?position$1(a):"line"in a||"column"in a?point$3(a):""}function point$3(a){return index$1(a&&a.line)+":"+index$1(a&&a.column)}function position$1(a){return point$3(a&&a.start)+"-"+point$3(a&&a.end)}function index$1(a){return a&&typeof a=="number"?a:1}class VFileMessage extends Error{constructor(i,_e,pt){const Lt=[null,null];let Gt={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof _e=="string"&&(pt=_e,_e=void 0),typeof pt=="string"){const Ct=pt.indexOf(":");Ct===-1?Lt[1]=pt:(Lt[0]=pt.slice(0,Ct),Lt[1]=pt.slice(Ct+1))}_e&&("type"in _e||"position"in _e?_e.position&&(Gt=_e.position):"start"in _e||"end"in _e?Gt=_e:("line"in _e||"column"in _e)&&(Gt.start=_e)),this.name=stringifyPosition(_e)||"1:1",this.message=typeof i=="object"?i.message:i,this.stack="",typeof i=="object"&&i.stack&&(this.stack=i.stack),this.reason=this.message,this.fatal,this.line=Gt.start.line,this.column=Gt.start.column,this.position=Gt,this.source=Lt[0],this.ruleId=Lt[1],this.file,this.actual,this.expected,this.url,this.note}}VFileMessage.prototype.file="";VFileMessage.prototype.name="";VFileMessage.prototype.reason="";VFileMessage.prototype.message="";VFileMessage.prototype.stack="";VFileMessage.prototype.fatal=null;VFileMessage.prototype.column=null;VFileMessage.prototype.line=null;VFileMessage.prototype.source=null;VFileMessage.prototype.ruleId=null;VFileMessage.prototype.position=null;const path$1={basename,dirname,extname,join,sep:"/"};function basename(a,i){if(i!==void 0&&typeof i!="string")throw new TypeError('"ext" argument must be a string');assertPath$1(a);let _e=0,pt=-1,Lt=a.length,Gt;if(i===void 0||i.length===0||i.length>a.length){for(;Lt--;)if(a.charCodeAt(Lt)===47){if(Gt){_e=Lt+1;break}}else pt<0&&(Gt=!0,pt=Lt+1);return pt<0?"":a.slice(_e,pt)}if(i===a)return"";let Ct=-1,Rt=i.length-1;for(;Lt--;)if(a.charCodeAt(Lt)===47){if(Gt){_e=Lt+1;break}}else Ct<0&&(Gt=!0,Ct=Lt+1),Rt>-1&&(a.charCodeAt(Lt)===i.charCodeAt(Rt--)?Rt<0&&(pt=Lt):(Rt=-1,pt=Ct));return _e===pt?pt=Ct:pt<0&&(pt=a.length),a.slice(_e,pt)}function dirname(a){if(assertPath$1(a),a.length===0)return".";let i=-1,_e=a.length,pt;for(;--_e;)if(a.charCodeAt(_e)===47){if(pt){i=_e;break}}else pt||(pt=!0);return i<0?a.charCodeAt(0)===47?"/":".":i===1&&a.charCodeAt(0)===47?"//":a.slice(0,i)}function extname(a){assertPath$1(a);let i=a.length,_e=-1,pt=0,Lt=-1,Gt=0,Ct;for(;i--;){const Rt=a.charCodeAt(i);if(Rt===47){if(Ct){pt=i+1;break}continue}_e<0&&(Ct=!0,_e=i+1),Rt===46?Lt<0?Lt=i:Gt!==1&&(Gt=1):Lt>-1&&(Gt=-1)}return Lt<0||_e<0||Gt===0||Gt===1&&Lt===_e-1&&Lt===pt+1?"":a.slice(Lt,_e)}function join(...a){let i=-1,_e;for(;++i0&&a.charCodeAt(a.length-1)===47&&(_e+="/"),i?"/"+_e:_e}function normalizeString(a,i){let _e="",pt=0,Lt=-1,Gt=0,Ct=-1,Rt,o;for(;++Ct<=a.length;){if(Ct2){if(o=_e.lastIndexOf("/"),o!==_e.length-1){o<0?(_e="",pt=0):(_e=_e.slice(0,o),pt=_e.length-1-_e.lastIndexOf("/")),Lt=Ct,Gt=0;continue}}else if(_e.length>0){_e="",pt=0,Lt=Ct,Gt=0;continue}}i&&(_e=_e.length>0?_e+"/..":"..",pt=2)}else _e.length>0?_e+="/"+a.slice(Lt+1,Ct):_e=a.slice(Lt+1,Ct),pt=Ct-Lt-1;Lt=Ct,Gt=0}else Rt===46&&Gt>-1?Gt++:Gt=-1}return _e}function assertPath$1(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}const proc={cwd};function cwd(){return"/"}function isUrl(a){return a!==null&&typeof a=="object"&&a.href&&a.origin}function urlToPath(a){if(typeof a=="string")a=new URL(a);else if(!isUrl(a)){const i=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+a+"`");throw i.code="ERR_INVALID_ARG_TYPE",i}if(a.protocol!=="file:"){const i=new TypeError("The URL must be of scheme file");throw i.code="ERR_INVALID_URL_SCHEME",i}return getPathFromURLPosix(a)}function getPathFromURLPosix(a){if(a.hostname!==""){const pt=new TypeError('File URL host must be "localhost" or empty on darwin');throw pt.code="ERR_INVALID_FILE_URL_HOST",pt}const i=a.pathname;let _e=-1;for(;++_e"u"||hasOwn.call(i,Lt)},setProperty=function(i,_e){defineProperty&&_e.name==="__proto__"?defineProperty(i,_e.name,{enumerable:!0,configurable:!0,value:_e.newValue,writable:!0}):i[_e.name]=_e.newValue},getProperty=function(i,_e){if(_e==="__proto__")if(hasOwn.call(i,_e)){if(gOPD)return gOPD(i,_e).value}else return;return i[_e]},extend$1=function a(){var i,_e,pt,Lt,Gt,Ct,Rt=arguments[0],o=1,it=arguments.length,xt=!1;for(typeof Rt=="boolean"&&(xt=Rt,Rt=arguments[1]||{},o=2),(Rt==null||typeof Rt!="object"&&typeof Rt!="function")&&(Rt={});oCt.length;let o;Rt&&Ct.push(Lt);try{o=a.apply(this,Ct)}catch(it){const xt=it;if(Rt&&_e)throw xt;return Lt(xt)}Rt||(o instanceof Promise?o.then(Gt,Lt):o instanceof Error?Lt(o):Gt(o))}function Lt(Ct,...Rt){_e||(_e=!0,i(Ct,...Rt))}function Gt(Ct){Lt(null,Ct)}}const unified=base().freeze(),own$f={}.hasOwnProperty;function base(){const a=trough(),i=[];let _e={},pt,Lt=-1;return Gt.data=Ct,Gt.Parser=void 0,Gt.Compiler=void 0,Gt.freeze=Rt,Gt.attachers=i,Gt.use=o,Gt.parse=it,Gt.stringify=xt,Gt.run=et,Gt.runSync=Et,Gt.process=mt,Gt.processSync=ut,Gt;function Gt(){const ht=base();let j=-1;for(;++j{if(nt||!vt||!dt)ot(nt);else{const bt=Gt.stringify(vt,dt);bt==null||(looksLikeAVFileValue(bt)?dt.value=bt:dt.result=bt),ot(nt,dt)}});function ot(nt,vt){nt||!vt?tt(nt):rt?rt(vt):j(null,vt)}}}function ut(ht){let j;Gt.freeze(),assertParser("processSync",Gt.Parser),assertCompiler("processSync",Gt.Compiler);const _=vfile(ht);return Gt.process(_,rt),assertDone("processSync","process",j),_;function rt(tt){j=!0,bail(tt)}}}function newable(a,i){return typeof a=="function"&&a.prototype&&(keys(a.prototype)||i in a.prototype)}function keys(a){let i;for(i in a)if(own$f.call(a,i))return!0;return!1}function assertParser(a,i){if(typeof i!="function")throw new TypeError("Cannot `"+a+"` without `Parser`")}function assertCompiler(a,i){if(typeof i!="function")throw new TypeError("Cannot `"+a+"` without `Compiler`")}function assertUnfrozen(a,i){if(i)throw new Error("Cannot call `"+a+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function assertNode(a){if(!isPlainObject(a)||typeof a.type!="string")throw new TypeError("Expected node, got `"+a+"`")}function assertDone(a,i,_e){if(!_e)throw new Error("`"+a+"` finished async. Use `"+i+"` instead")}function vfile(a){return looksLikeAVFile(a)?a:new VFile(a)}function looksLikeAVFile(a){return Boolean(a&&typeof a=="object"&&"message"in a&&"messages"in a)}function looksLikeAVFileValue(a){return typeof a=="string"||isBuffer(a)}const emptyOptions={};function toString(a,i){const _e=i||emptyOptions,pt=typeof _e.includeImageAlt=="boolean"?_e.includeImageAlt:!0,Lt=typeof _e.includeHtml=="boolean"?_e.includeHtml:!0;return one$3(a,pt,Lt)}function one$3(a,i,_e){if(node(a)){if("value"in a)return a.type==="html"&&!_e?"":a.value;if(i&&"alt"in a&&a.alt)return a.alt;if("children"in a)return all$3(a.children,i,_e)}return Array.isArray(a)?all$3(a,i,_e):""}function all$3(a,i,_e){const pt=[];let Lt=-1;for(;++LtLt?0:Lt+i:i=i>Lt?Lt:i,_e=_e>0?_e:0,pt.length<1e4)Ct=Array.from(pt),Ct.unshift(i,_e),[].splice.apply(a,Ct);else for(_e&&[].splice.apply(a,[i,_e]);Gt0?(splice(a,a.length,0,i),a):i}const hasOwnProperty$2={}.hasOwnProperty;function combineExtensions(a){const i={};let _e=-1;for(;++_eCt))return;const vt=i.events.length;let dt=vt,bt,ft;for(;dt--;)if(i.events[dt][0]==="exit"&&i.events[dt][1].type==="chunkFlow"){if(bt){ft=i.events[dt][1].end;break}bt=!0}for(_(pt),nt=vt;nttt;){const ot=_e[st];i.containerState=ot[1],ot[0].exit.call(i,a)}_e.length=tt}function rt(){Lt.write([null]),Gt=void 0,Lt=void 0,i.containerState._closeFlow=void 0}}function tokenizeContainer(a,i,_e){return factorySpace(a,a.attempt(this.parser.constructs.document,i,_e),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function classifyCharacter(a){if(a===null||markdownLineEndingOrSpace(a)||unicodeWhitespace(a))return 1;if(unicodePunctuation(a))return 2}function resolveAll(a,i,_e){const pt=[];let Lt=-1;for(;++Lt1&&a[_e][1].end.offset-a[_e][1].start.offset>1?2:1;const et=Object.assign({},a[pt][1].end),Et=Object.assign({},a[_e][1].start);movePoint(et,-o),movePoint(Et,o),Ct={type:o>1?"strongSequence":"emphasisSequence",start:et,end:Object.assign({},a[pt][1].end)},Rt={type:o>1?"strongSequence":"emphasisSequence",start:Object.assign({},a[_e][1].start),end:Et},Gt={type:o>1?"strongText":"emphasisText",start:Object.assign({},a[pt][1].end),end:Object.assign({},a[_e][1].start)},Lt={type:o>1?"strong":"emphasis",start:Object.assign({},Ct.start),end:Object.assign({},Rt.end)},a[pt][1].end=Object.assign({},Ct.start),a[_e][1].start=Object.assign({},Rt.end),it=[],a[pt][1].end.offset-a[pt][1].start.offset&&(it=push(it,[["enter",a[pt][1],i],["exit",a[pt][1],i]])),it=push(it,[["enter",Lt,i],["enter",Ct,i],["exit",Ct,i],["enter",Gt,i]]),it=push(it,resolveAll(i.parser.constructs.insideSpan.null,a.slice(pt+1,_e),i)),it=push(it,[["exit",Gt,i],["enter",Rt,i],["exit",Rt,i],["exit",Lt,i]]),a[_e][1].end.offset-a[_e][1].start.offset?(xt=2,it=push(it,[["enter",a[_e][1],i],["exit",a[_e][1],i]])):xt=0,splice(a,pt-1,_e-pt+3,it),_e=pt+it.length-xt-2;break}}for(_e=-1;++_e=4?Ct(it):_e(it)}function Ct(it){return it===null?o(it):markdownLineEnding(it)?a.attempt(indentedContent,Ct,o)(it):(a.enter("codeFlowValue"),Rt(it))}function Rt(it){return it===null||markdownLineEnding(it)?(a.exit("codeFlowValue"),Ct(it)):(a.consume(it),Rt)}function o(it){return a.exit("codeIndented"),i(it)}}function tokenizeIndentedContent(a,i,_e){const pt=this;return Lt;function Lt(Ct){return pt.parser.lazy[pt.now().line]?_e(Ct):markdownLineEnding(Ct)?(a.enter("lineEnding"),a.consume(Ct),a.exit("lineEnding"),Lt):factorySpace(a,Gt,"linePrefix",4+1)(Ct)}function Gt(Ct){const Rt=pt.events[pt.events.length-1];return Rt&&Rt[1].type==="linePrefix"&&Rt[2].sliceSerialize(Rt[1],!0).length>=4?i(Ct):markdownLineEnding(Ct)?Lt(Ct):_e(Ct)}}const codeText={name:"codeText",tokenize:tokenizeCodeText,resolve:resolveCodeText,previous:previous$1};function resolveCodeText(a){let i=a.length-4,_e=3,pt,Lt;if((a[_e][1].type==="lineEnding"||a[_e][1].type==="space")&&(a[i][1].type==="lineEnding"||a[i][1].type==="space")){for(pt=_e;++pt=4?i(Ct):a.interrupt(pt.parser.constructs.flow,_e,i)(Ct)}}function factoryDestination(a,i,_e,pt,Lt,Gt,Ct,Rt,o){const it=o||Number.POSITIVE_INFINITY;let xt=0;return et;function et(_){return _===60?(a.enter(pt),a.enter(Lt),a.enter(Gt),a.consume(_),a.exit(Gt),Et):_===null||_===41||asciiControl(_)?_e(_):(a.enter(pt),a.enter(Ct),a.enter(Rt),a.enter("chunkString",{contentType:"string"}),ht(_))}function Et(_){return _===62?(a.enter(Gt),a.consume(_),a.exit(Gt),a.exit(Lt),a.exit(pt),i):(a.enter(Rt),a.enter("chunkString",{contentType:"string"}),mt(_))}function mt(_){return _===62?(a.exit("chunkString"),a.exit(Rt),Et(_)):_===null||_===60||markdownLineEnding(_)?_e(_):(a.consume(_),_===92?ut:mt)}function ut(_){return _===60||_===62||_===92?(a.consume(_),mt):mt(_)}function ht(_){return _===40?++xt>it?_e(_):(a.consume(_),ht):_===41?xt--?(a.consume(_),ht):(a.exit("chunkString"),a.exit(Rt),a.exit(Ct),a.exit(pt),i(_)):_===null||markdownLineEndingOrSpace(_)?xt?_e(_):(a.exit("chunkString"),a.exit(Rt),a.exit(Ct),a.exit(pt),i(_)):asciiControl(_)?_e(_):(a.consume(_),_===92?j:ht)}function j(_){return _===40||_===41||_===92?(a.consume(_),ht):ht(_)}}function factoryLabel(a,i,_e,pt,Lt,Gt){const Ct=this;let Rt=0,o;return it;function it(mt){return a.enter(pt),a.enter(Lt),a.consume(mt),a.exit(Lt),a.enter(Gt),xt}function xt(mt){return mt===null||mt===91||mt===93&&!o||mt===94&&!Rt&&"_hiddenFootnoteSupport"in Ct.parser.constructs||Rt>999?_e(mt):mt===93?(a.exit(Gt),a.enter(Lt),a.consume(mt),a.exit(Lt),a.exit(pt),i):markdownLineEnding(mt)?(a.enter("lineEnding"),a.consume(mt),a.exit("lineEnding"),xt):(a.enter("chunkString",{contentType:"string"}),et(mt))}function et(mt){return mt===null||mt===91||mt===93||markdownLineEnding(mt)||Rt++>999?(a.exit("chunkString"),xt(mt)):(a.consume(mt),o=o||!markdownSpace(mt),mt===92?Et:et)}function Et(mt){return mt===91||mt===92||mt===93?(a.consume(mt),Rt++,et):et(mt)}}function factoryTitle(a,i,_e,pt,Lt,Gt){let Ct;return Rt;function Rt(Et){return a.enter(pt),a.enter(Lt),a.consume(Et),a.exit(Lt),Ct=Et===40?41:Et,o}function o(Et){return Et===Ct?(a.enter(Lt),a.consume(Et),a.exit(Lt),a.exit(pt),i):(a.enter(Gt),it(Et))}function it(Et){return Et===Ct?(a.exit(Gt),o(Ct)):Et===null?_e(Et):markdownLineEnding(Et)?(a.enter("lineEnding"),a.consume(Et),a.exit("lineEnding"),factorySpace(a,it,"linePrefix")):(a.enter("chunkString",{contentType:"string"}),xt(Et))}function xt(Et){return Et===Ct||Et===null||markdownLineEnding(Et)?(a.exit("chunkString"),it(Et)):(a.consume(Et),Et===92?et:xt)}function et(Et){return Et===Ct||Et===92?(a.consume(Et),xt):xt(Et)}}function factoryWhitespace(a,i){let _e;return pt;function pt(Lt){return markdownLineEnding(Lt)?(a.enter("lineEnding"),a.consume(Lt),a.exit("lineEnding"),_e=!0,pt):markdownSpace(Lt)?factorySpace(a,pt,_e?"linePrefix":"lineSuffix")(Lt):i(Lt)}}function normalizeIdentifier(a){return a.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const definition={name:"definition",tokenize:tokenizeDefinition},titleConstruct={tokenize:tokenizeTitle,partial:!0};function tokenizeDefinition(a,i,_e){const pt=this;let Lt;return Gt;function Gt(o){return a.enter("definition"),factoryLabel.call(pt,a,Ct,_e,"definitionLabel","definitionLabelMarker","definitionLabelString")(o)}function Ct(o){return Lt=normalizeIdentifier(pt.sliceSerialize(pt.events[pt.events.length-1][1]).slice(1,-1)),o===58?(a.enter("definitionMarker"),a.consume(o),a.exit("definitionMarker"),factoryWhitespace(a,factoryDestination(a,a.attempt(titleConstruct,factorySpace(a,Rt,"whitespace"),factorySpace(a,Rt,"whitespace")),_e,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):_e(o)}function Rt(o){return o===null||markdownLineEnding(o)?(a.exit("definition"),pt.parser.defined.includes(Lt)||pt.parser.defined.push(Lt),i(o)):_e(o)}}function tokenizeTitle(a,i,_e){return pt;function pt(Ct){return markdownLineEndingOrSpace(Ct)?factoryWhitespace(a,Lt)(Ct):_e(Ct)}function Lt(Ct){return Ct===34||Ct===39||Ct===40?factoryTitle(a,factorySpace(a,Gt,"whitespace"),_e,"definitionTitle","definitionTitleMarker","definitionTitleString")(Ct):_e(Ct)}function Gt(Ct){return Ct===null||markdownLineEnding(Ct)?i(Ct):_e(Ct)}}const hardBreakEscape={name:"hardBreakEscape",tokenize:tokenizeHardBreakEscape};function tokenizeHardBreakEscape(a,i,_e){return pt;function pt(Gt){return a.enter("hardBreakEscape"),a.enter("escapeMarker"),a.consume(Gt),Lt}function Lt(Gt){return markdownLineEnding(Gt)?(a.exit("escapeMarker"),a.exit("hardBreakEscape"),i(Gt)):_e(Gt)}}const headingAtx={name:"headingAtx",tokenize:tokenizeHeadingAtx,resolve:resolveHeadingAtx};function resolveHeadingAtx(a,i){let _e=a.length-2,pt=3,Lt,Gt;return a[pt][1].type==="whitespace"&&(pt+=2),_e-2>pt&&a[_e][1].type==="whitespace"&&(_e-=2),a[_e][1].type==="atxHeadingSequence"&&(pt===_e-1||_e-4>pt&&a[_e-2][1].type==="whitespace")&&(_e-=pt+1===_e?2:4),_e>pt&&(Lt={type:"atxHeadingText",start:a[pt][1].start,end:a[_e][1].end},Gt={type:"chunkText",start:a[pt][1].start,end:a[_e][1].end,contentType:"text"},splice(a,pt,_e-pt+1,[["enter",Lt,i],["enter",Gt,i],["exit",Gt,i],["exit",Lt,i]])),a}function tokenizeHeadingAtx(a,i,_e){const pt=this;let Lt=0;return Gt;function Gt(xt){return a.enter("atxHeading"),a.enter("atxHeadingSequence"),Ct(xt)}function Ct(xt){return xt===35&&Lt++<6?(a.consume(xt),Ct):xt===null||markdownLineEndingOrSpace(xt)?(a.exit("atxHeadingSequence"),pt.interrupt?i(xt):Rt(xt)):_e(xt)}function Rt(xt){return xt===35?(a.enter("atxHeadingSequence"),o(xt)):xt===null||markdownLineEnding(xt)?(a.exit("atxHeading"),i(xt)):markdownSpace(xt)?factorySpace(a,Rt,"whitespace")(xt):(a.enter("atxHeadingText"),it(xt))}function o(xt){return xt===35?(a.consume(xt),o):(a.exit("atxHeadingSequence"),Rt(xt))}function it(xt){return xt===null||xt===35||markdownLineEndingOrSpace(xt)?(a.exit("atxHeadingText"),Rt(xt)):(a.consume(xt),it)}}const htmlBlockNames=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],htmlRawNames=["pre","script","style","textarea"],htmlFlow={name:"htmlFlow",tokenize:tokenizeHtmlFlow,resolveTo:resolveToHtmlFlow,concrete:!0},nextBlankConstruct={tokenize:tokenizeNextBlank,partial:!0};function resolveToHtmlFlow(a){let i=a.length;for(;i--&&!(a[i][0]==="enter"&&a[i][1].type==="htmlFlow"););return i>1&&a[i-2][1].type==="linePrefix"&&(a[i][1].start=a[i-2][1].start,a[i+1][1].start=a[i-2][1].start,a.splice(i-2,2)),a}function tokenizeHtmlFlow(a,i,_e){const pt=this;let Lt,Gt,Ct,Rt,o;return it;function it(Ot){return a.enter("htmlFlow"),a.enter("htmlFlowData"),a.consume(Ot),xt}function xt(Ot){return Ot===33?(a.consume(Ot),et):Ot===47?(a.consume(Ot),ut):Ot===63?(a.consume(Ot),Lt=3,pt.interrupt?i:ct):asciiAlpha(Ot)?(a.consume(Ot),Ct=String.fromCharCode(Ot),Gt=!0,ht):_e(Ot)}function et(Ot){return Ot===45?(a.consume(Ot),Lt=2,Et):Ot===91?(a.consume(Ot),Lt=5,Ct="CDATA[",Rt=0,mt):asciiAlpha(Ot)?(a.consume(Ot),Lt=4,pt.interrupt?i:ct):_e(Ot)}function Et(Ot){return Ot===45?(a.consume(Ot),pt.interrupt?i:ct):_e(Ot)}function mt(Ot){return Ot===Ct.charCodeAt(Rt++)?(a.consume(Ot),Rt===Ct.length?pt.interrupt?i:at:mt):_e(Ot)}function ut(Ot){return asciiAlpha(Ot)?(a.consume(Ot),Ct=String.fromCharCode(Ot),ht):_e(Ot)}function ht(Ot){return Ot===null||Ot===47||Ot===62||markdownLineEndingOrSpace(Ot)?Ot!==47&&Gt&&htmlRawNames.includes(Ct.toLowerCase())?(Lt=1,pt.interrupt?i(Ot):at(Ot)):htmlBlockNames.includes(Ct.toLowerCase())?(Lt=6,Ot===47?(a.consume(Ot),j):pt.interrupt?i(Ot):at(Ot)):(Lt=7,pt.interrupt&&!pt.parser.lazy[pt.now().line]?_e(Ot):Gt?rt(Ot):_(Ot)):Ot===45||asciiAlphanumeric(Ot)?(a.consume(Ot),Ct+=String.fromCharCode(Ot),ht):_e(Ot)}function j(Ot){return Ot===62?(a.consume(Ot),pt.interrupt?i:at):_e(Ot)}function _(Ot){return markdownSpace(Ot)?(a.consume(Ot),_):bt(Ot)}function rt(Ot){return Ot===47?(a.consume(Ot),bt):Ot===58||Ot===95||asciiAlpha(Ot)?(a.consume(Ot),tt):markdownSpace(Ot)?(a.consume(Ot),rt):bt(Ot)}function tt(Ot){return Ot===45||Ot===46||Ot===58||Ot===95||asciiAlphanumeric(Ot)?(a.consume(Ot),tt):st(Ot)}function st(Ot){return Ot===61?(a.consume(Ot),ot):markdownSpace(Ot)?(a.consume(Ot),st):rt(Ot)}function ot(Ot){return Ot===null||Ot===60||Ot===61||Ot===62||Ot===96?_e(Ot):Ot===34||Ot===39?(a.consume(Ot),o=Ot,nt):markdownSpace(Ot)?(a.consume(Ot),ot):(o=null,vt(Ot))}function nt(Ot){return Ot===null||markdownLineEnding(Ot)?_e(Ot):Ot===o?(a.consume(Ot),dt):(a.consume(Ot),nt)}function vt(Ot){return Ot===null||Ot===34||Ot===39||Ot===60||Ot===61||Ot===62||Ot===96||markdownLineEndingOrSpace(Ot)?st(Ot):(a.consume(Ot),vt)}function dt(Ot){return Ot===47||Ot===62||markdownSpace(Ot)?rt(Ot):_e(Ot)}function bt(Ot){return Ot===62?(a.consume(Ot),ft):_e(Ot)}function ft(Ot){return markdownSpace(Ot)?(a.consume(Ot),ft):Ot===null||markdownLineEnding(Ot)?at(Ot):_e(Ot)}function at(Ot){return Ot===45&&Lt===2?(a.consume(Ot),Mt):Ot===60&&Lt===1?(a.consume(Ot),Tt):Ot===62&&Lt===4?(a.consume(Ot),It):Ot===63&&Lt===3?(a.consume(Ot),ct):Ot===93&&Lt===5?(a.consume(Ot),wt):markdownLineEnding(Ot)&&(Lt===6||Lt===7)?a.check(nextBlankConstruct,It,yt)(Ot):Ot===null||markdownLineEnding(Ot)?yt(Ot):(a.consume(Ot),at)}function yt(Ot){return a.exit("htmlFlowData"),St(Ot)}function St(Ot){return Ot===null?At(Ot):markdownLineEnding(Ot)?a.attempt({tokenize:_t,partial:!0},St,At)(Ot):(a.enter("htmlFlowData"),at(Ot))}function _t(Ot,Pt,zt){return Dt;function Dt($t){return Ot.enter("lineEnding"),Ot.consume($t),Ot.exit("lineEnding"),Nt}function Nt($t){return pt.parser.lazy[pt.now().line]?zt($t):Pt($t)}}function Mt(Ot){return Ot===45?(a.consume(Ot),ct):at(Ot)}function Tt(Ot){return Ot===47?(a.consume(Ot),Ct="",kt):at(Ot)}function kt(Ot){return Ot===62&&htmlRawNames.includes(Ct.toLowerCase())?(a.consume(Ot),It):asciiAlpha(Ot)&&Ct.length<8?(a.consume(Ot),Ct+=String.fromCharCode(Ot),kt):at(Ot)}function wt(Ot){return Ot===93?(a.consume(Ot),ct):at(Ot)}function ct(Ot){return Ot===62?(a.consume(Ot),It):Ot===45&&Lt===2?(a.consume(Ot),ct):at(Ot)}function It(Ot){return Ot===null||markdownLineEnding(Ot)?(a.exit("htmlFlowData"),At(Ot)):(a.consume(Ot),It)}function At(Ot){return a.exit("htmlFlow"),i(Ot)}}function tokenizeNextBlank(a,i,_e){return pt;function pt(Lt){return a.exit("htmlFlowData"),a.enter("lineEndingBlank"),a.consume(Lt),a.exit("lineEndingBlank"),a.attempt(blankLine,i,_e)}}const htmlText={name:"htmlText",tokenize:tokenizeHtmlText};function tokenizeHtmlText(a,i,_e){const pt=this;let Lt,Gt,Ct,Rt;return o;function o(At){return a.enter("htmlText"),a.enter("htmlTextData"),a.consume(At),it}function it(At){return At===33?(a.consume(At),xt):At===47?(a.consume(At),vt):At===63?(a.consume(At),ot):asciiAlpha(At)?(a.consume(At),ft):_e(At)}function xt(At){return At===45?(a.consume(At),et):At===91?(a.consume(At),Gt="CDATA[",Ct=0,j):asciiAlpha(At)?(a.consume(At),st):_e(At)}function et(At){return At===45?(a.consume(At),Et):_e(At)}function Et(At){return At===null||At===62?_e(At):At===45?(a.consume(At),mt):ut(At)}function mt(At){return At===null||At===62?_e(At):ut(At)}function ut(At){return At===null?_e(At):At===45?(a.consume(At),ht):markdownLineEnding(At)?(Rt=ut,wt(At)):(a.consume(At),ut)}function ht(At){return At===45?(a.consume(At),It):ut(At)}function j(At){return At===Gt.charCodeAt(Ct++)?(a.consume(At),Ct===Gt.length?_:j):_e(At)}function _(At){return At===null?_e(At):At===93?(a.consume(At),rt):markdownLineEnding(At)?(Rt=_,wt(At)):(a.consume(At),_)}function rt(At){return At===93?(a.consume(At),tt):_(At)}function tt(At){return At===62?It(At):At===93?(a.consume(At),tt):_(At)}function st(At){return At===null||At===62?It(At):markdownLineEnding(At)?(Rt=st,wt(At)):(a.consume(At),st)}function ot(At){return At===null?_e(At):At===63?(a.consume(At),nt):markdownLineEnding(At)?(Rt=ot,wt(At)):(a.consume(At),ot)}function nt(At){return At===62?It(At):ot(At)}function vt(At){return asciiAlpha(At)?(a.consume(At),dt):_e(At)}function dt(At){return At===45||asciiAlphanumeric(At)?(a.consume(At),dt):bt(At)}function bt(At){return markdownLineEnding(At)?(Rt=bt,wt(At)):markdownSpace(At)?(a.consume(At),bt):It(At)}function ft(At){return At===45||asciiAlphanumeric(At)?(a.consume(At),ft):At===47||At===62||markdownLineEndingOrSpace(At)?at(At):_e(At)}function at(At){return At===47?(a.consume(At),It):At===58||At===95||asciiAlpha(At)?(a.consume(At),yt):markdownLineEnding(At)?(Rt=at,wt(At)):markdownSpace(At)?(a.consume(At),at):It(At)}function yt(At){return At===45||At===46||At===58||At===95||asciiAlphanumeric(At)?(a.consume(At),yt):St(At)}function St(At){return At===61?(a.consume(At),_t):markdownLineEnding(At)?(Rt=St,wt(At)):markdownSpace(At)?(a.consume(At),St):at(At)}function _t(At){return At===null||At===60||At===61||At===62||At===96?_e(At):At===34||At===39?(a.consume(At),Lt=At,Mt):markdownLineEnding(At)?(Rt=_t,wt(At)):markdownSpace(At)?(a.consume(At),_t):(a.consume(At),Lt=void 0,kt)}function Mt(At){return At===Lt?(a.consume(At),Tt):At===null?_e(At):markdownLineEnding(At)?(Rt=Mt,wt(At)):(a.consume(At),Mt)}function Tt(At){return At===62||At===47||markdownLineEndingOrSpace(At)?at(At):_e(At)}function kt(At){return At===null||At===34||At===39||At===60||At===61||At===96?_e(At):At===62||markdownLineEndingOrSpace(At)?at(At):(a.consume(At),kt)}function wt(At){return a.exit("htmlTextData"),a.enter("lineEnding"),a.consume(At),a.exit("lineEnding"),factorySpace(a,ct,"linePrefix",pt.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ct(At){return a.enter("htmlTextData"),Rt(At)}function It(At){return At===62?(a.consume(At),a.exit("htmlTextData"),a.exit("htmlText"),i):_e(At)}}const labelEnd={name:"labelEnd",tokenize:tokenizeLabelEnd,resolveTo:resolveToLabelEnd,resolveAll:resolveAllLabelEnd},resourceConstruct={tokenize:tokenizeResource},fullReferenceConstruct={tokenize:tokenizeFullReference},collapsedReferenceConstruct={tokenize:tokenizeCollapsedReference};function resolveAllLabelEnd(a){let i=-1,_e;for(;++i-1&&(Ct[0]=Ct[0].slice(pt)),Gt>0&&Ct.push(a[Lt].slice(0,Gt))),Ct}function serializeChunks(a,i){let _e=-1;const pt=[];let Lt;for(;++_ea.length){for(;Lt--;)if(a.charCodeAt(Lt)===47){if(Gt){_e=Lt+1;break}}else pt<0&&(Gt=!0,pt=Lt+1);return pt<0?"":a.slice(_e,pt)}if(i===a)return"";let Ct=-1,Rt=i.length-1;for(;Lt--;)if(a.charCodeAt(Lt)===47){if(Gt){_e=Lt+1;break}}else Ct<0&&(Gt=!0,Ct=Lt+1),Rt>-1&&(a.charCodeAt(Lt)===i.charCodeAt(Rt--)?Rt<0&&(pt=Lt):(Rt=-1,pt=Ct));return _e===pt?pt=Ct:pt<0&&(pt=a.length),a.slice(_e,pt)}function dirname(a){if(assertPath$1(a),a.length===0)return".";let i=-1,_e=a.length,pt;for(;--_e;)if(a.charCodeAt(_e)===47){if(pt){i=_e;break}}else pt||(pt=!0);return i<0?a.charCodeAt(0)===47?"/":".":i===1&&a.charCodeAt(0)===47?"//":a.slice(0,i)}function extname(a){assertPath$1(a);let i=a.length,_e=-1,pt=0,Lt=-1,Gt=0,Ct;for(;i--;){const Rt=a.charCodeAt(i);if(Rt===47){if(Ct){pt=i+1;break}continue}_e<0&&(Ct=!0,_e=i+1),Rt===46?Lt<0?Lt=i:Gt!==1&&(Gt=1):Lt>-1&&(Gt=-1)}return Lt<0||_e<0||Gt===0||Gt===1&&Lt===_e-1&&Lt===pt+1?"":a.slice(Lt,_e)}function join(...a){let i=-1,_e;for(;++i0&&a.charCodeAt(a.length-1)===47&&(_e+="/"),i?"/"+_e:_e}function normalizeString(a,i){let _e="",pt=0,Lt=-1,Gt=0,Ct=-1,Rt,o;for(;++Ct<=a.length;){if(Ct2){if(o=_e.lastIndexOf("/"),o!==_e.length-1){o<0?(_e="",pt=0):(_e=_e.slice(0,o),pt=_e.length-1-_e.lastIndexOf("/")),Lt=Ct,Gt=0;continue}}else if(_e.length>0){_e="",pt=0,Lt=Ct,Gt=0;continue}}i&&(_e=_e.length>0?_e+"/..":"..",pt=2)}else _e.length>0?_e+="/"+a.slice(Lt+1,Ct):_e=a.slice(Lt+1,Ct),pt=Ct-Lt-1;Lt=Ct,Gt=0}else Rt===46&&Gt>-1?Gt++:Gt=-1}return _e}function assertPath$1(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}const proc={cwd};function cwd(){return"/"}function isUrl(a){return a!==null&&typeof a=="object"&&a.href&&a.origin}function urlToPath(a){if(typeof a=="string")a=new URL(a);else if(!isUrl(a)){const i=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+a+"`");throw i.code="ERR_INVALID_ARG_TYPE",i}if(a.protocol!=="file:"){const i=new TypeError("The URL must be of scheme file");throw i.code="ERR_INVALID_URL_SCHEME",i}return getPathFromURLPosix(a)}function getPathFromURLPosix(a){if(a.hostname!==""){const pt=new TypeError('File URL host must be "localhost" or empty on darwin');throw pt.code="ERR_INVALID_FILE_URL_HOST",pt}const i=a.pathname;let _e=-1;for(;++_e"u"||hasOwn.call(i,Lt)},setProperty=function(i,_e){defineProperty&&_e.name==="__proto__"?defineProperty(i,_e.name,{enumerable:!0,configurable:!0,value:_e.newValue,writable:!0}):i[_e.name]=_e.newValue},getProperty=function(i,_e){if(_e==="__proto__")if(hasOwn.call(i,_e)){if(gOPD)return gOPD(i,_e).value}else return;return i[_e]},extend$1=function a(){var i,_e,pt,Lt,Gt,Ct,Rt=arguments[0],o=1,it=arguments.length,xt=!1;for(typeof Rt=="boolean"&&(xt=Rt,Rt=arguments[1]||{},o=2),(Rt==null||typeof Rt!="object"&&typeof Rt!="function")&&(Rt={});oCt.length;let o;Rt&&Ct.push(Lt);try{o=a.apply(this,Ct)}catch(it){const xt=it;if(Rt&&_e)throw xt;return Lt(xt)}Rt||(o instanceof Promise?o.then(Gt,Lt):o instanceof Error?Lt(o):Gt(o))}function Lt(Ct,...Rt){_e||(_e=!0,i(Ct,...Rt))}function Gt(Ct){Lt(null,Ct)}}const unified=base().freeze(),own$f={}.hasOwnProperty;function base(){const a=trough(),i=[];let _e={},pt,Lt=-1;return Gt.data=Ct,Gt.Parser=void 0,Gt.Compiler=void 0,Gt.freeze=Rt,Gt.attachers=i,Gt.use=o,Gt.parse=it,Gt.stringify=xt,Gt.run=et,Gt.runSync=Tt,Gt.process=yt,Gt.processSync=ut,Gt;function Gt(){const ht=base();let j=-1;for(;++j{if(nt||!vt||!dt)ot(nt);else{const bt=Gt.stringify(vt,dt);bt==null||(looksLikeAVFileValue(bt)?dt.value=bt:dt.result=bt),ot(nt,dt)}});function ot(nt,vt){nt||!vt?tt(nt):rt?rt(vt):j(null,vt)}}}function ut(ht){let j;Gt.freeze(),assertParser("processSync",Gt.Parser),assertCompiler("processSync",Gt.Compiler);const _=vfile(ht);return Gt.process(_,rt),assertDone("processSync","process",j),_;function rt(tt){j=!0,bail(tt)}}}function newable(a,i){return typeof a=="function"&&a.prototype&&(keys(a.prototype)||i in a.prototype)}function keys(a){let i;for(i in a)if(own$f.call(a,i))return!0;return!1}function assertParser(a,i){if(typeof i!="function")throw new TypeError("Cannot `"+a+"` without `Parser`")}function assertCompiler(a,i){if(typeof i!="function")throw new TypeError("Cannot `"+a+"` without `Compiler`")}function assertUnfrozen(a,i){if(i)throw new Error("Cannot call `"+a+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function assertNode(a){if(!isPlainObject(a)||typeof a.type!="string")throw new TypeError("Expected node, got `"+a+"`")}function assertDone(a,i,_e){if(!_e)throw new Error("`"+a+"` finished async. Use `"+i+"` instead")}function vfile(a){return looksLikeAVFile(a)?a:new VFile(a)}function looksLikeAVFile(a){return Boolean(a&&typeof a=="object"&&"message"in a&&"messages"in a)}function looksLikeAVFileValue(a){return typeof a=="string"||isBuffer(a)}const emptyOptions={};function toString(a,i){const _e=i||emptyOptions,pt=typeof _e.includeImageAlt=="boolean"?_e.includeImageAlt:!0,Lt=typeof _e.includeHtml=="boolean"?_e.includeHtml:!0;return one$3(a,pt,Lt)}function one$3(a,i,_e){if(node(a)){if("value"in a)return a.type==="html"&&!_e?"":a.value;if(i&&"alt"in a&&a.alt)return a.alt;if("children"in a)return all$3(a.children,i,_e)}return Array.isArray(a)?all$3(a,i,_e):""}function all$3(a,i,_e){const pt=[];let Lt=-1;for(;++LtLt?0:Lt+i:i=i>Lt?Lt:i,_e=_e>0?_e:0,pt.length<1e4)Ct=Array.from(pt),Ct.unshift(i,_e),[].splice.apply(a,Ct);else for(_e&&[].splice.apply(a,[i,_e]);Gt0?(splice(a,a.length,0,i),a):i}const hasOwnProperty$2={}.hasOwnProperty;function combineExtensions(a){const i={};let _e=-1;for(;++_eCt))return;const vt=i.events.length;let dt=vt,bt,ft;for(;dt--;)if(i.events[dt][0]==="exit"&&i.events[dt][1].type==="chunkFlow"){if(bt){ft=i.events[dt][1].end;break}bt=!0}for(_(pt),nt=vt;nttt;){const ot=_e[st];i.containerState=ot[1],ot[0].exit.call(i,a)}_e.length=tt}function rt(){Lt.write([null]),Gt=void 0,Lt=void 0,i.containerState._closeFlow=void 0}}function tokenizeContainer(a,i,_e){return factorySpace(a,a.attempt(this.parser.constructs.document,i,_e),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function classifyCharacter(a){if(a===null||markdownLineEndingOrSpace(a)||unicodeWhitespace(a))return 1;if(unicodePunctuation(a))return 2}function resolveAll(a,i,_e){const pt=[];let Lt=-1;for(;++Lt1&&a[_e][1].end.offset-a[_e][1].start.offset>1?2:1;const et=Object.assign({},a[pt][1].end),Tt=Object.assign({},a[_e][1].start);movePoint(et,-o),movePoint(Tt,o),Ct={type:o>1?"strongSequence":"emphasisSequence",start:et,end:Object.assign({},a[pt][1].end)},Rt={type:o>1?"strongSequence":"emphasisSequence",start:Object.assign({},a[_e][1].start),end:Tt},Gt={type:o>1?"strongText":"emphasisText",start:Object.assign({},a[pt][1].end),end:Object.assign({},a[_e][1].start)},Lt={type:o>1?"strong":"emphasis",start:Object.assign({},Ct.start),end:Object.assign({},Rt.end)},a[pt][1].end=Object.assign({},Ct.start),a[_e][1].start=Object.assign({},Rt.end),it=[],a[pt][1].end.offset-a[pt][1].start.offset&&(it=push(it,[["enter",a[pt][1],i],["exit",a[pt][1],i]])),it=push(it,[["enter",Lt,i],["enter",Ct,i],["exit",Ct,i],["enter",Gt,i]]),it=push(it,resolveAll(i.parser.constructs.insideSpan.null,a.slice(pt+1,_e),i)),it=push(it,[["exit",Gt,i],["enter",Rt,i],["exit",Rt,i],["exit",Lt,i]]),a[_e][1].end.offset-a[_e][1].start.offset?(xt=2,it=push(it,[["enter",a[_e][1],i],["exit",a[_e][1],i]])):xt=0,splice(a,pt-1,_e-pt+3,it),_e=pt+it.length-xt-2;break}}for(_e=-1;++_e=4?Ct(it):_e(it)}function Ct(it){return it===null?o(it):markdownLineEnding(it)?a.attempt(indentedContent,Ct,o)(it):(a.enter("codeFlowValue"),Rt(it))}function Rt(it){return it===null||markdownLineEnding(it)?(a.exit("codeFlowValue"),Ct(it)):(a.consume(it),Rt)}function o(it){return a.exit("codeIndented"),i(it)}}function tokenizeIndentedContent(a,i,_e){const pt=this;return Lt;function Lt(Ct){return pt.parser.lazy[pt.now().line]?_e(Ct):markdownLineEnding(Ct)?(a.enter("lineEnding"),a.consume(Ct),a.exit("lineEnding"),Lt):factorySpace(a,Gt,"linePrefix",4+1)(Ct)}function Gt(Ct){const Rt=pt.events[pt.events.length-1];return Rt&&Rt[1].type==="linePrefix"&&Rt[2].sliceSerialize(Rt[1],!0).length>=4?i(Ct):markdownLineEnding(Ct)?Lt(Ct):_e(Ct)}}const codeText={name:"codeText",tokenize:tokenizeCodeText,resolve:resolveCodeText,previous:previous$1};function resolveCodeText(a){let i=a.length-4,_e=3,pt,Lt;if((a[_e][1].type==="lineEnding"||a[_e][1].type==="space")&&(a[i][1].type==="lineEnding"||a[i][1].type==="space")){for(pt=_e;++pt=4?i(Ct):a.interrupt(pt.parser.constructs.flow,_e,i)(Ct)}}function factoryDestination(a,i,_e,pt,Lt,Gt,Ct,Rt,o){const it=o||Number.POSITIVE_INFINITY;let xt=0;return et;function et(_){return _===60?(a.enter(pt),a.enter(Lt),a.enter(Gt),a.consume(_),a.exit(Gt),Tt):_===null||_===41||asciiControl(_)?_e(_):(a.enter(pt),a.enter(Ct),a.enter(Rt),a.enter("chunkString",{contentType:"string"}),ht(_))}function Tt(_){return _===62?(a.enter(Gt),a.consume(_),a.exit(Gt),a.exit(Lt),a.exit(pt),i):(a.enter(Rt),a.enter("chunkString",{contentType:"string"}),yt(_))}function yt(_){return _===62?(a.exit("chunkString"),a.exit(Rt),Tt(_)):_===null||_===60||markdownLineEnding(_)?_e(_):(a.consume(_),_===92?ut:yt)}function ut(_){return _===60||_===62||_===92?(a.consume(_),yt):yt(_)}function ht(_){return _===40?++xt>it?_e(_):(a.consume(_),ht):_===41?xt--?(a.consume(_),ht):(a.exit("chunkString"),a.exit(Rt),a.exit(Ct),a.exit(pt),i(_)):_===null||markdownLineEndingOrSpace(_)?xt?_e(_):(a.exit("chunkString"),a.exit(Rt),a.exit(Ct),a.exit(pt),i(_)):asciiControl(_)?_e(_):(a.consume(_),_===92?j:ht)}function j(_){return _===40||_===41||_===92?(a.consume(_),ht):ht(_)}}function factoryLabel(a,i,_e,pt,Lt,Gt){const Ct=this;let Rt=0,o;return it;function it(yt){return a.enter(pt),a.enter(Lt),a.consume(yt),a.exit(Lt),a.enter(Gt),xt}function xt(yt){return yt===null||yt===91||yt===93&&!o||yt===94&&!Rt&&"_hiddenFootnoteSupport"in Ct.parser.constructs||Rt>999?_e(yt):yt===93?(a.exit(Gt),a.enter(Lt),a.consume(yt),a.exit(Lt),a.exit(pt),i):markdownLineEnding(yt)?(a.enter("lineEnding"),a.consume(yt),a.exit("lineEnding"),xt):(a.enter("chunkString",{contentType:"string"}),et(yt))}function et(yt){return yt===null||yt===91||yt===93||markdownLineEnding(yt)||Rt++>999?(a.exit("chunkString"),xt(yt)):(a.consume(yt),o=o||!markdownSpace(yt),yt===92?Tt:et)}function Tt(yt){return yt===91||yt===92||yt===93?(a.consume(yt),Rt++,et):et(yt)}}function factoryTitle(a,i,_e,pt,Lt,Gt){let Ct;return Rt;function Rt(Tt){return a.enter(pt),a.enter(Lt),a.consume(Tt),a.exit(Lt),Ct=Tt===40?41:Tt,o}function o(Tt){return Tt===Ct?(a.enter(Lt),a.consume(Tt),a.exit(Lt),a.exit(pt),i):(a.enter(Gt),it(Tt))}function it(Tt){return Tt===Ct?(a.exit(Gt),o(Ct)):Tt===null?_e(Tt):markdownLineEnding(Tt)?(a.enter("lineEnding"),a.consume(Tt),a.exit("lineEnding"),factorySpace(a,it,"linePrefix")):(a.enter("chunkString",{contentType:"string"}),xt(Tt))}function xt(Tt){return Tt===Ct||Tt===null||markdownLineEnding(Tt)?(a.exit("chunkString"),it(Tt)):(a.consume(Tt),Tt===92?et:xt)}function et(Tt){return Tt===Ct||Tt===92?(a.consume(Tt),xt):xt(Tt)}}function factoryWhitespace(a,i){let _e;return pt;function pt(Lt){return markdownLineEnding(Lt)?(a.enter("lineEnding"),a.consume(Lt),a.exit("lineEnding"),_e=!0,pt):markdownSpace(Lt)?factorySpace(a,pt,_e?"linePrefix":"lineSuffix")(Lt):i(Lt)}}function normalizeIdentifier(a){return a.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const definition={name:"definition",tokenize:tokenizeDefinition},titleConstruct={tokenize:tokenizeTitle,partial:!0};function tokenizeDefinition(a,i,_e){const pt=this;let Lt;return Gt;function Gt(o){return a.enter("definition"),factoryLabel.call(pt,a,Ct,_e,"definitionLabel","definitionLabelMarker","definitionLabelString")(o)}function Ct(o){return Lt=normalizeIdentifier(pt.sliceSerialize(pt.events[pt.events.length-1][1]).slice(1,-1)),o===58?(a.enter("definitionMarker"),a.consume(o),a.exit("definitionMarker"),factoryWhitespace(a,factoryDestination(a,a.attempt(titleConstruct,factorySpace(a,Rt,"whitespace"),factorySpace(a,Rt,"whitespace")),_e,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):_e(o)}function Rt(o){return o===null||markdownLineEnding(o)?(a.exit("definition"),pt.parser.defined.includes(Lt)||pt.parser.defined.push(Lt),i(o)):_e(o)}}function tokenizeTitle(a,i,_e){return pt;function pt(Ct){return markdownLineEndingOrSpace(Ct)?factoryWhitespace(a,Lt)(Ct):_e(Ct)}function Lt(Ct){return Ct===34||Ct===39||Ct===40?factoryTitle(a,factorySpace(a,Gt,"whitespace"),_e,"definitionTitle","definitionTitleMarker","definitionTitleString")(Ct):_e(Ct)}function Gt(Ct){return Ct===null||markdownLineEnding(Ct)?i(Ct):_e(Ct)}}const hardBreakEscape={name:"hardBreakEscape",tokenize:tokenizeHardBreakEscape};function tokenizeHardBreakEscape(a,i,_e){return pt;function pt(Gt){return a.enter("hardBreakEscape"),a.enter("escapeMarker"),a.consume(Gt),Lt}function Lt(Gt){return markdownLineEnding(Gt)?(a.exit("escapeMarker"),a.exit("hardBreakEscape"),i(Gt)):_e(Gt)}}const headingAtx={name:"headingAtx",tokenize:tokenizeHeadingAtx,resolve:resolveHeadingAtx};function resolveHeadingAtx(a,i){let _e=a.length-2,pt=3,Lt,Gt;return a[pt][1].type==="whitespace"&&(pt+=2),_e-2>pt&&a[_e][1].type==="whitespace"&&(_e-=2),a[_e][1].type==="atxHeadingSequence"&&(pt===_e-1||_e-4>pt&&a[_e-2][1].type==="whitespace")&&(_e-=pt+1===_e?2:4),_e>pt&&(Lt={type:"atxHeadingText",start:a[pt][1].start,end:a[_e][1].end},Gt={type:"chunkText",start:a[pt][1].start,end:a[_e][1].end,contentType:"text"},splice(a,pt,_e-pt+1,[["enter",Lt,i],["enter",Gt,i],["exit",Gt,i],["exit",Lt,i]])),a}function tokenizeHeadingAtx(a,i,_e){const pt=this;let Lt=0;return Gt;function Gt(xt){return a.enter("atxHeading"),a.enter("atxHeadingSequence"),Ct(xt)}function Ct(xt){return xt===35&&Lt++<6?(a.consume(xt),Ct):xt===null||markdownLineEndingOrSpace(xt)?(a.exit("atxHeadingSequence"),pt.interrupt?i(xt):Rt(xt)):_e(xt)}function Rt(xt){return xt===35?(a.enter("atxHeadingSequence"),o(xt)):xt===null||markdownLineEnding(xt)?(a.exit("atxHeading"),i(xt)):markdownSpace(xt)?factorySpace(a,Rt,"whitespace")(xt):(a.enter("atxHeadingText"),it(xt))}function o(xt){return xt===35?(a.consume(xt),o):(a.exit("atxHeadingSequence"),Rt(xt))}function it(xt){return xt===null||xt===35||markdownLineEndingOrSpace(xt)?(a.exit("atxHeadingText"),Rt(xt)):(a.consume(xt),it)}}const htmlBlockNames=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],htmlRawNames=["pre","script","style","textarea"],htmlFlow={name:"htmlFlow",tokenize:tokenizeHtmlFlow,resolveTo:resolveToHtmlFlow,concrete:!0},nextBlankConstruct={tokenize:tokenizeNextBlank,partial:!0};function resolveToHtmlFlow(a){let i=a.length;for(;i--&&!(a[i][0]==="enter"&&a[i][1].type==="htmlFlow"););return i>1&&a[i-2][1].type==="linePrefix"&&(a[i][1].start=a[i-2][1].start,a[i+1][1].start=a[i-2][1].start,a.splice(i-2,2)),a}function tokenizeHtmlFlow(a,i,_e){const pt=this;let Lt,Gt,Ct,Rt,o;return it;function it(Ot){return a.enter("htmlFlow"),a.enter("htmlFlowData"),a.consume(Ot),xt}function xt(Ot){return Ot===33?(a.consume(Ot),et):Ot===47?(a.consume(Ot),ut):Ot===63?(a.consume(Ot),Lt=3,pt.interrupt?i:ct):asciiAlpha(Ot)?(a.consume(Ot),Ct=String.fromCharCode(Ot),Gt=!0,ht):_e(Ot)}function et(Ot){return Ot===45?(a.consume(Ot),Lt=2,Tt):Ot===91?(a.consume(Ot),Lt=5,Ct="CDATA[",Rt=0,yt):asciiAlpha(Ot)?(a.consume(Ot),Lt=4,pt.interrupt?i:ct):_e(Ot)}function Tt(Ot){return Ot===45?(a.consume(Ot),pt.interrupt?i:ct):_e(Ot)}function yt(Ot){return Ot===Ct.charCodeAt(Rt++)?(a.consume(Ot),Rt===Ct.length?pt.interrupt?i:at:yt):_e(Ot)}function ut(Ot){return asciiAlpha(Ot)?(a.consume(Ot),Ct=String.fromCharCode(Ot),ht):_e(Ot)}function ht(Ot){return Ot===null||Ot===47||Ot===62||markdownLineEndingOrSpace(Ot)?Ot!==47&&Gt&&htmlRawNames.includes(Ct.toLowerCase())?(Lt=1,pt.interrupt?i(Ot):at(Ot)):htmlBlockNames.includes(Ct.toLowerCase())?(Lt=6,Ot===47?(a.consume(Ot),j):pt.interrupt?i(Ot):at(Ot)):(Lt=7,pt.interrupt&&!pt.parser.lazy[pt.now().line]?_e(Ot):Gt?rt(Ot):_(Ot)):Ot===45||asciiAlphanumeric(Ot)?(a.consume(Ot),Ct+=String.fromCharCode(Ot),ht):_e(Ot)}function j(Ot){return Ot===62?(a.consume(Ot),pt.interrupt?i:at):_e(Ot)}function _(Ot){return markdownSpace(Ot)?(a.consume(Ot),_):bt(Ot)}function rt(Ot){return Ot===47?(a.consume(Ot),bt):Ot===58||Ot===95||asciiAlpha(Ot)?(a.consume(Ot),tt):markdownSpace(Ot)?(a.consume(Ot),rt):bt(Ot)}function tt(Ot){return Ot===45||Ot===46||Ot===58||Ot===95||asciiAlphanumeric(Ot)?(a.consume(Ot),tt):st(Ot)}function st(Ot){return Ot===61?(a.consume(Ot),ot):markdownSpace(Ot)?(a.consume(Ot),st):rt(Ot)}function ot(Ot){return Ot===null||Ot===60||Ot===61||Ot===62||Ot===96?_e(Ot):Ot===34||Ot===39?(a.consume(Ot),o=Ot,nt):markdownSpace(Ot)?(a.consume(Ot),ot):(o=null,vt(Ot))}function nt(Ot){return Ot===null||markdownLineEnding(Ot)?_e(Ot):Ot===o?(a.consume(Ot),dt):(a.consume(Ot),nt)}function vt(Ot){return Ot===null||Ot===34||Ot===39||Ot===60||Ot===61||Ot===62||Ot===96||markdownLineEndingOrSpace(Ot)?st(Ot):(a.consume(Ot),vt)}function dt(Ot){return Ot===47||Ot===62||markdownSpace(Ot)?rt(Ot):_e(Ot)}function bt(Ot){return Ot===62?(a.consume(Ot),ft):_e(Ot)}function ft(Ot){return markdownSpace(Ot)?(a.consume(Ot),ft):Ot===null||markdownLineEnding(Ot)?at(Ot):_e(Ot)}function at(Ot){return Ot===45&&Lt===2?(a.consume(Ot),Mt):Ot===60&&Lt===1?(a.consume(Ot),Et):Ot===62&&Lt===4?(a.consume(Ot),It):Ot===63&&Lt===3?(a.consume(Ot),ct):Ot===93&&Lt===5?(a.consume(Ot),wt):markdownLineEnding(Ot)&&(Lt===6||Lt===7)?a.check(nextBlankConstruct,It,mt)(Ot):Ot===null||markdownLineEnding(Ot)?mt(Ot):(a.consume(Ot),at)}function mt(Ot){return a.exit("htmlFlowData"),St(Ot)}function St(Ot){return Ot===null?At(Ot):markdownLineEnding(Ot)?a.attempt({tokenize:_t,partial:!0},St,At)(Ot):(a.enter("htmlFlowData"),at(Ot))}function _t(Ot,Pt,zt){return Dt;function Dt($t){return Ot.enter("lineEnding"),Ot.consume($t),Ot.exit("lineEnding"),Nt}function Nt($t){return pt.parser.lazy[pt.now().line]?zt($t):Pt($t)}}function Mt(Ot){return Ot===45?(a.consume(Ot),ct):at(Ot)}function Et(Ot){return Ot===47?(a.consume(Ot),Ct="",kt):at(Ot)}function kt(Ot){return Ot===62&&htmlRawNames.includes(Ct.toLowerCase())?(a.consume(Ot),It):asciiAlpha(Ot)&&Ct.length<8?(a.consume(Ot),Ct+=String.fromCharCode(Ot),kt):at(Ot)}function wt(Ot){return Ot===93?(a.consume(Ot),ct):at(Ot)}function ct(Ot){return Ot===62?(a.consume(Ot),It):Ot===45&&Lt===2?(a.consume(Ot),ct):at(Ot)}function It(Ot){return Ot===null||markdownLineEnding(Ot)?(a.exit("htmlFlowData"),At(Ot)):(a.consume(Ot),It)}function At(Ot){return a.exit("htmlFlow"),i(Ot)}}function tokenizeNextBlank(a,i,_e){return pt;function pt(Lt){return a.exit("htmlFlowData"),a.enter("lineEndingBlank"),a.consume(Lt),a.exit("lineEndingBlank"),a.attempt(blankLine,i,_e)}}const htmlText={name:"htmlText",tokenize:tokenizeHtmlText};function tokenizeHtmlText(a,i,_e){const pt=this;let Lt,Gt,Ct,Rt;return o;function o(At){return a.enter("htmlText"),a.enter("htmlTextData"),a.consume(At),it}function it(At){return At===33?(a.consume(At),xt):At===47?(a.consume(At),vt):At===63?(a.consume(At),ot):asciiAlpha(At)?(a.consume(At),ft):_e(At)}function xt(At){return At===45?(a.consume(At),et):At===91?(a.consume(At),Gt="CDATA[",Ct=0,j):asciiAlpha(At)?(a.consume(At),st):_e(At)}function et(At){return At===45?(a.consume(At),Tt):_e(At)}function Tt(At){return At===null||At===62?_e(At):At===45?(a.consume(At),yt):ut(At)}function yt(At){return At===null||At===62?_e(At):ut(At)}function ut(At){return At===null?_e(At):At===45?(a.consume(At),ht):markdownLineEnding(At)?(Rt=ut,wt(At)):(a.consume(At),ut)}function ht(At){return At===45?(a.consume(At),It):ut(At)}function j(At){return At===Gt.charCodeAt(Ct++)?(a.consume(At),Ct===Gt.length?_:j):_e(At)}function _(At){return At===null?_e(At):At===93?(a.consume(At),rt):markdownLineEnding(At)?(Rt=_,wt(At)):(a.consume(At),_)}function rt(At){return At===93?(a.consume(At),tt):_(At)}function tt(At){return At===62?It(At):At===93?(a.consume(At),tt):_(At)}function st(At){return At===null||At===62?It(At):markdownLineEnding(At)?(Rt=st,wt(At)):(a.consume(At),st)}function ot(At){return At===null?_e(At):At===63?(a.consume(At),nt):markdownLineEnding(At)?(Rt=ot,wt(At)):(a.consume(At),ot)}function nt(At){return At===62?It(At):ot(At)}function vt(At){return asciiAlpha(At)?(a.consume(At),dt):_e(At)}function dt(At){return At===45||asciiAlphanumeric(At)?(a.consume(At),dt):bt(At)}function bt(At){return markdownLineEnding(At)?(Rt=bt,wt(At)):markdownSpace(At)?(a.consume(At),bt):It(At)}function ft(At){return At===45||asciiAlphanumeric(At)?(a.consume(At),ft):At===47||At===62||markdownLineEndingOrSpace(At)?at(At):_e(At)}function at(At){return At===47?(a.consume(At),It):At===58||At===95||asciiAlpha(At)?(a.consume(At),mt):markdownLineEnding(At)?(Rt=at,wt(At)):markdownSpace(At)?(a.consume(At),at):It(At)}function mt(At){return At===45||At===46||At===58||At===95||asciiAlphanumeric(At)?(a.consume(At),mt):St(At)}function St(At){return At===61?(a.consume(At),_t):markdownLineEnding(At)?(Rt=St,wt(At)):markdownSpace(At)?(a.consume(At),St):at(At)}function _t(At){return At===null||At===60||At===61||At===62||At===96?_e(At):At===34||At===39?(a.consume(At),Lt=At,Mt):markdownLineEnding(At)?(Rt=_t,wt(At)):markdownSpace(At)?(a.consume(At),_t):(a.consume(At),Lt=void 0,kt)}function Mt(At){return At===Lt?(a.consume(At),Et):At===null?_e(At):markdownLineEnding(At)?(Rt=Mt,wt(At)):(a.consume(At),Mt)}function Et(At){return At===62||At===47||markdownLineEndingOrSpace(At)?at(At):_e(At)}function kt(At){return At===null||At===34||At===39||At===60||At===61||At===96?_e(At):At===62||markdownLineEndingOrSpace(At)?at(At):(a.consume(At),kt)}function wt(At){return a.exit("htmlTextData"),a.enter("lineEnding"),a.consume(At),a.exit("lineEnding"),factorySpace(a,ct,"linePrefix",pt.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ct(At){return a.enter("htmlTextData"),Rt(At)}function It(At){return At===62?(a.consume(At),a.exit("htmlTextData"),a.exit("htmlText"),i):_e(At)}}const labelEnd={name:"labelEnd",tokenize:tokenizeLabelEnd,resolveTo:resolveToLabelEnd,resolveAll:resolveAllLabelEnd},resourceConstruct={tokenize:tokenizeResource},fullReferenceConstruct={tokenize:tokenizeFullReference},collapsedReferenceConstruct={tokenize:tokenizeCollapsedReference};function resolveAllLabelEnd(a){let i=-1,_e;for(;++i-1&&(Ct[0]=Ct[0].slice(pt)),Gt>0&&Ct.push(a[Lt].slice(0,Gt))),Ct}function serializeChunks(a,i){let _e=-1;const pt=[];let Lt;for(;++_e13&&_e<32||_e>126&&_e<160||_e>55295&&_e<57344||_e>64975&&_e<65008||(_e&65535)===65535||(_e&65535)===65534||_e>1114111?"�":String.fromCharCode(_e)}const characterEscapeOrReference=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function decodeString(a){return a.replace(characterEscapeOrReference,decode$1)}function decode$1(a,i,_e){if(i)return i;if(_e.charCodeAt(0)===35){const Lt=_e.charCodeAt(1),Gt=Lt===120||Lt===88;return decodeNumericCharacterReference(_e.slice(Gt?2:1),Gt?16:10)}return decodeNamedCharacterReference(_e)||a}const own$e={}.hasOwnProperty,fromMarkdown=function(a,i,_e){return typeof i!="string"&&(_e=i,i=void 0),compiler(_e)(postprocess(parse$7(_e).document().write(preprocess()(a,i,!0))))};function compiler(a){const i={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:Rt(sr),autolinkProtocol:at,autolinkEmail:at,atxHeading:Rt(Yt),blockQuote:Rt(Xt),characterEscape:at,characterReference:at,codeFenced:Rt(qt),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:Rt(qt,o),codeText:Rt(er,o),codeTextData:at,data:at,codeFlowValue:at,definition:Rt(lr),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:Rt(Jt),hardBreakEscape:Rt(rr),hardBreakTrailing:Rt(rr),htmlFlow:Rt(jt,o),htmlFlowData:at,htmlText:Rt(jt,o),htmlTextData:at,image:Rt(ar),label:o,link:Rt(sr),listItem:Rt(Kt),listItemValue:ut,listOrdered:Rt(Zt,mt),listUnordered:Rt(Zt),paragraph:Rt(or),reference:Dt,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:Rt(Yt),strong:Rt(tr),thematicBreak:Rt(hr)},exit:{atxHeading:xt(),atxHeadingSequence:vt,autolink:xt(),autolinkEmail:Vt,autolinkProtocol:Ht,blockQuote:xt(),characterEscapeValue:yt,characterReferenceMarkerHexadecimal:$t,characterReferenceMarkerNumeric:$t,characterReferenceValue:Ut,codeFenced:xt(rt),codeFencedFence:_,codeFencedFenceInfo:ht,codeFencedFenceMeta:j,codeFlowValue:yt,codeIndented:xt(tt),codeText:xt(kt),codeTextData:yt,data:yt,definition:xt(),definitionDestinationString:nt,definitionLabelString:st,definitionTitleString:ot,emphasis:xt(),hardBreakEscape:xt(_t),hardBreakTrailing:xt(_t),htmlFlow:xt(Mt),htmlFlowData:yt,htmlText:xt(Tt),htmlTextData:yt,image:xt(ct),label:At,labelText:It,lineEnding:St,link:xt(wt),listItem:xt(),listOrdered:xt(),listUnordered:xt(),paragraph:xt(),referenceString:Nt,resourceDestinationString:Ot,resourceTitleString:Pt,resource:zt,setextHeading:xt(ft),setextHeadingLineSequence:bt,setextHeadingText:dt,strong:xt(),thematicBreak:xt()}};configure(i,(a||{}).mdastExtensions||[]);const _e={};return pt;function pt(br){let Tr={type:"root",children:[]};const Ir={stack:[Tr],tokenStack:[],config:i,enter:it,exit:et,buffer:o,resume:Et,setData:Gt,getData:Ct},Ar=[];let _r=-1;for(;++_r0){const Er=Ir.tokenStack[Ir.tokenStack.length-1];(Er[1]||defaultOnError).call(Ir,void 0,Er[0])}for(Tr.position={start:point$2(br.length>0?br[0][1].start:{line:1,column:1,offset:0}),end:point$2(br.length>0?br[br.length-2][1].end:{line:1,column:1,offset:0})},_r=-1;++_r{const pt=this.data("settings");return fromMarkdown(_e,Object.assign({},pt,a,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}const u$1=function(a,i,_e){const pt={type:String(a)};return _e==null&&(typeof i=="string"||Array.isArray(i))?_e=i:Object.assign(pt,i),Array.isArray(_e)?pt.children=_e:_e!=null&&(pt.value=String(_e)),pt},own$d={}.hasOwnProperty;function unknown$1(a,i){const _e=i.data||{};return"value"in i&&!(own$d.call(_e,"hName")||own$d.call(_e,"hProperties")||own$d.call(_e,"hChildren"))?a.augment(i,u$1("text",i.value)):a(i,"div",all$2(a,i))}function one$2(a,i,_e){const pt=i&&i.type;let Lt;if(!pt)throw new Error("Expected node, got `"+i+"`");return own$d.call(a.handlers,pt)?Lt=a.handlers[pt]:a.passThrough&&a.passThrough.includes(pt)?Lt=returnNode:Lt=a.unknownHandler,(typeof Lt=="function"?Lt:unknown$1)(a,i,_e)}function returnNode(a,i){return"children"in i?{...i,children:all$2(a,i)}:i}function all$2(a,i){const _e=[];if("children"in i){const pt=i.children;let Lt=-1;for(;++Lt":""))+")"})}return et;function et(){let Et=[],mt,ut,ht;if((!i||Lt(Rt,o,it[it.length-1]||null))&&(Et=toResult(_e(Rt,it)),Et[0]===EXIT))return Et;if(Rt.children&&Et[0]!==SKIP)for(ut=(pt?Rt.children.length:-1)+Gt,ht=it.concat(Rt);ut>-1&&ut-1?pt.offset:null}}}function generated(a){return!a||!a.position||!a.position.start||!a.position.start.line||!a.position.start.column||!a.position.end||!a.position.end.line||!a.position.end.column}const own$c={}.hasOwnProperty;function definitions(a){const i=Object.create(null);if(!a||!a.type)throw new Error("mdast-util-definitions expected node");return visit(a,"definition",pt=>{const Lt=clean(pt.identifier);Lt&&!own$c.call(i,Lt)&&(i[Lt]=pt)}),_e;function _e(pt){const Lt=clean(pt);return Lt&&own$c.call(i,Lt)?i[Lt]:null}}function clean(a){return String(a||"").toUpperCase()}function thematicBreak(a,i){return a(i,"hr")}function wrap(a,i){const _e=[];let pt=-1;for(i&&_e.push(u$1("text",` +`;break}case-2:{Ct=i?" ":" ";break}case-1:{if(!i&&Lt)continue;Ct=" ";break}default:Ct=String.fromCharCode(Gt)}Lt=Gt===-2,pt.push(Ct)}return pt.join("")}const document$1={[42]:list$1,[43]:list$1,[45]:list$1,[48]:list$1,[49]:list$1,[50]:list$1,[51]:list$1,[52]:list$1,[53]:list$1,[54]:list$1,[55]:list$1,[56]:list$1,[57]:list$1,[62]:blockQuote},contentInitial={[91]:definition},flowInitial={[-2]:codeIndented,[-1]:codeIndented,[32]:codeIndented},flow={[35]:headingAtx,[42]:thematicBreak$1,[45]:[setextUnderline,thematicBreak$1],[60]:htmlFlow,[61]:setextUnderline,[95]:thematicBreak$1,[96]:codeFenced,[126]:codeFenced},string={[38]:characterReference,[92]:characterEscape},text$4={[-5]:lineEnding,[-4]:lineEnding,[-3]:lineEnding,[33]:labelStartImage,[38]:characterReference,[42]:attention,[60]:[autolink,htmlText],[91]:labelStartLink,[92]:[hardBreakEscape,characterEscape],[93]:labelEnd,[95]:attention,[96]:codeText},insideSpan={null:[attention,resolver]},attentionMarkers={null:[42,95]},disable={null:[]},defaultConstructs=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers,contentInitial,disable,document:document$1,flow,flowInitial,insideSpan,string,text:text$4},Symbol.toStringTag,{value:"Module"}));function parse$7(a={}){const i=combineExtensions([defaultConstructs].concat(a.extensions||[])),_e={defined:[],lazy:{},constructs:i,content:pt(content$1),document:pt(document$2),flow:pt(flow$1),string:pt(string$1),text:pt(text$5)};return _e;function pt(Lt){return Gt;function Gt(Ct){return createTokenizer(_e,Lt,Ct)}}}const search$2=/[\0\t\n\r]/g;function preprocess(){let a=1,i="",_e=!0,pt;return Lt;function Lt(Gt,Ct,Rt){const o=[];let it,xt,et,Tt,yt;for(Gt=i+Gt.toString(Ct),et=0,i="",_e&&(Gt.charCodeAt(0)===65279&&et++,_e=void 0);et13&&_e<32||_e>126&&_e<160||_e>55295&&_e<57344||_e>64975&&_e<65008||(_e&65535)===65535||(_e&65535)===65534||_e>1114111?"�":String.fromCharCode(_e)}const characterEscapeOrReference=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function decodeString(a){return a.replace(characterEscapeOrReference,decode$1)}function decode$1(a,i,_e){if(i)return i;if(_e.charCodeAt(0)===35){const Lt=_e.charCodeAt(1),Gt=Lt===120||Lt===88;return decodeNumericCharacterReference(_e.slice(Gt?2:1),Gt?16:10)}return decodeNamedCharacterReference(_e)||a}const own$e={}.hasOwnProperty,fromMarkdown=function(a,i,_e){return typeof i!="string"&&(_e=i,i=void 0),compiler(_e)(postprocess(parse$7(_e).document().write(preprocess()(a,i,!0))))};function compiler(a){const i={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:Rt(sr),autolinkProtocol:at,autolinkEmail:at,atxHeading:Rt(Yt),blockQuote:Rt(Xt),characterEscape:at,characterReference:at,codeFenced:Rt(qt),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:Rt(qt,o),codeText:Rt(er,o),codeTextData:at,data:at,codeFlowValue:at,definition:Rt(lr),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:Rt(Jt),hardBreakEscape:Rt(rr),hardBreakTrailing:Rt(rr),htmlFlow:Rt(jt,o),htmlFlowData:at,htmlText:Rt(jt,o),htmlTextData:at,image:Rt(ar),label:o,link:Rt(sr),listItem:Rt(Kt),listItemValue:ut,listOrdered:Rt(Zt,yt),listUnordered:Rt(Zt),paragraph:Rt(or),reference:Dt,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:Rt(Yt),strong:Rt(tr),thematicBreak:Rt(mr)},exit:{atxHeading:xt(),atxHeadingSequence:vt,autolink:xt(),autolinkEmail:Vt,autolinkProtocol:Ht,blockQuote:xt(),characterEscapeValue:mt,characterReferenceMarkerHexadecimal:$t,characterReferenceMarkerNumeric:$t,characterReferenceValue:Ut,codeFenced:xt(rt),codeFencedFence:_,codeFencedFenceInfo:ht,codeFencedFenceMeta:j,codeFlowValue:mt,codeIndented:xt(tt),codeText:xt(kt),codeTextData:mt,data:mt,definition:xt(),definitionDestinationString:nt,definitionLabelString:st,definitionTitleString:ot,emphasis:xt(),hardBreakEscape:xt(_t),hardBreakTrailing:xt(_t),htmlFlow:xt(Mt),htmlFlowData:mt,htmlText:xt(Et),htmlTextData:mt,image:xt(ct),label:At,labelText:It,lineEnding:St,link:xt(wt),listItem:xt(),listOrdered:xt(),listUnordered:xt(),paragraph:xt(),referenceString:Nt,resourceDestinationString:Ot,resourceTitleString:Pt,resource:zt,setextHeading:xt(ft),setextHeadingLineSequence:bt,setextHeadingText:dt,strong:xt(),thematicBreak:xt()}};configure(i,(a||{}).mdastExtensions||[]);const _e={};return pt;function pt(Ar){let br={type:"root",children:[]};const Ir={stack:[br],tokenStack:[],config:i,enter:it,exit:et,buffer:o,resume:Tt,setData:Gt,getData:Ct},Tr=[];let _r=-1;for(;++_r0){const Er=Ir.tokenStack[Ir.tokenStack.length-1];(Er[1]||defaultOnError).call(Ir,void 0,Er[0])}for(br.position={start:point$2(Ar.length>0?Ar[0][1].start:{line:1,column:1,offset:0}),end:point$2(Ar.length>0?Ar[Ar.length-2][1].end:{line:1,column:1,offset:0})},_r=-1;++_r{const pt=this.data("settings");return fromMarkdown(_e,Object.assign({},pt,a,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}const u$1=function(a,i,_e){const pt={type:String(a)};return _e==null&&(typeof i=="string"||Array.isArray(i))?_e=i:Object.assign(pt,i),Array.isArray(_e)?pt.children=_e:_e!=null&&(pt.value=String(_e)),pt},own$d={}.hasOwnProperty;function unknown$1(a,i){const _e=i.data||{};return"value"in i&&!(own$d.call(_e,"hName")||own$d.call(_e,"hProperties")||own$d.call(_e,"hChildren"))?a.augment(i,u$1("text",i.value)):a(i,"div",all$2(a,i))}function one$2(a,i,_e){const pt=i&&i.type;let Lt;if(!pt)throw new Error("Expected node, got `"+i+"`");return own$d.call(a.handlers,pt)?Lt=a.handlers[pt]:a.passThrough&&a.passThrough.includes(pt)?Lt=returnNode:Lt=a.unknownHandler,(typeof Lt=="function"?Lt:unknown$1)(a,i,_e)}function returnNode(a,i){return"children"in i?{...i,children:all$2(a,i)}:i}function all$2(a,i){const _e=[];if("children"in i){const pt=i.children;let Lt=-1;for(;++Lt":""))+")"})}return et;function et(){let Tt=[],yt,ut,ht;if((!i||Lt(Rt,o,it[it.length-1]||null))&&(Tt=toResult(_e(Rt,it)),Tt[0]===EXIT))return Tt;if(Rt.children&&Tt[0]!==SKIP)for(ut=(pt?Rt.children.length:-1)+Gt,ht=it.concat(Rt);ut>-1&&ut-1?pt.offset:null}}}function generated(a){return!a||!a.position||!a.position.start||!a.position.start.line||!a.position.start.column||!a.position.end||!a.position.end.line||!a.position.end.column}const own$c={}.hasOwnProperty;function definitions(a){const i=Object.create(null);if(!a||!a.type)throw new Error("mdast-util-definitions expected node");return visit(a,"definition",pt=>{const Lt=clean(pt.identifier);Lt&&!own$c.call(i,Lt)&&(i[Lt]=pt)}),_e;function _e(pt){const Lt=clean(pt);return Lt&&own$c.call(i,Lt)?i[Lt]:null}}function clean(a){return String(a||"").toUpperCase()}function thematicBreak(a,i){return a(i,"hr")}function wrap(a,i){const _e=[];let pt=-1;for(i&&_e.push(u$1("text",` `));++pt0&&_e.push(u$1("text",` `)),_e}function list(a,i){const _e={},pt=i.ordered?"ol":"ul",Lt=all$2(a,i);let Gt=-1;for(typeof i.start=="number"&&i.start!==1&&(_e.start=i.start);++Gt0?React.createElement(Et,Rt,xt):React.createElement(Et,Rt)}function getInputElement(a){let i=-1;for(;++iString(i)).join("")}const own$8={}.hasOwnProperty,changelog="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",deprecated={renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function ReactMarkdown(a){for(const Gt in deprecated)if(own$8.call(deprecated,Gt)&&own$8.call(a,Gt)){const Ct=deprecated[Gt];console.warn(`[react-markdown] Warning: please ${Ct.to?`use \`${Ct.to}\` instead of`:"remove"} \`${Gt}\` (see <${changelog}#${Ct.id}> for more info)`),delete deprecated[Gt]}const i=unified().use(remarkParse).use(a.remarkPlugins||a.plugins||[]).use(remarkRehype$1,{allowDangerousHtml:!0}).use(a.rehypePlugins||[]).use(rehypeFilter,a),_e=new VFile;typeof a.children=="string"?_e.value=a.children:a.children!==void 0&&a.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${a.children}\`)`);const pt=i.runSync(i.parse(_e),_e);if(pt.type!=="root")throw new TypeError("Expected a `root` node");let Lt=React.createElement(React.Fragment,{},childrenToReact({options:a,schema:html$5,listDepth:0},pt));return a.className&&(Lt=React.createElement("div",{className:a.className},Lt)),Lt}ReactMarkdown.defaultProps={transformLinkUri:uriTransformer};ReactMarkdown.propTypes={children:propTypesExports.string,className:propTypesExports.string,allowElement:propTypesExports.func,allowedElements:propTypesExports.arrayOf(propTypesExports.string),disallowedElements:propTypesExports.arrayOf(propTypesExports.string),unwrapDisallowed:propTypesExports.bool,remarkPlugins:propTypesExports.arrayOf(propTypesExports.oneOfType([propTypesExports.object,propTypesExports.func,propTypesExports.arrayOf(propTypesExports.oneOfType([propTypesExports.object,propTypesExports.func]))])),rehypePlugins:propTypesExports.arrayOf(propTypesExports.oneOfType([propTypesExports.object,propTypesExports.func,propTypesExports.arrayOf(propTypesExports.oneOfType([propTypesExports.object,propTypesExports.func]))])),sourcePos:propTypesExports.bool,rawSourcePos:propTypesExports.bool,skipHtml:propTypesExports.bool,includeElementIndex:propTypesExports.bool,transformLinkUri:propTypesExports.oneOfType([propTypesExports.func,propTypesExports.bool]),linkTarget:propTypesExports.oneOfType([propTypesExports.func,propTypesExports.string]),transformImageUri:propTypesExports.func,components:propTypesExports.object};const wwwPrefix={tokenize:tokenizeWwwPrefix,partial:!0},domain={tokenize:tokenizeDomain,partial:!0},path={tokenize:tokenizePath,partial:!0},trail={tokenize:tokenizeTrail,partial:!0},emailDomainDotTrail={tokenize:tokenizeEmailDomainDotTrail,partial:!0},wwwAutolink={tokenize:tokenizeWwwAutolink,previous:previousWww},protocolAutolink={tokenize:tokenizeProtocolAutolink,previous:previousProtocol},emailAutolink={tokenize:tokenizeEmailAutolink,previous:previousEmail},text$2={},gfmAutolinkLiteral={text:text$2};let code=48;for(;code<123;)text$2[code]=emailAutolink,code++,code===58?code=65:code===91&&(code=97);text$2[43]=emailAutolink;text$2[45]=emailAutolink;text$2[46]=emailAutolink;text$2[95]=emailAutolink;text$2[72]=[emailAutolink,protocolAutolink];text$2[104]=[emailAutolink,protocolAutolink];text$2[87]=[emailAutolink,wwwAutolink];text$2[119]=[emailAutolink,wwwAutolink];function tokenizeEmailAutolink(a,i,_e){const pt=this;let Lt,Gt;return Ct;function Ct(et){return!gfmAtext(et)||!previousEmail.call(pt,pt.previous)||previousUnbalanced(pt.events)?_e(et):(a.enter("literalAutolink"),a.enter("literalAutolinkEmail"),Rt(et))}function Rt(et){return gfmAtext(et)?(a.consume(et),Rt):et===64?(a.consume(et),o):_e(et)}function o(et){return et===46?a.check(emailDomainDotTrail,xt,it)(et):et===45||et===95||asciiAlphanumeric(et)?(Gt=!0,a.consume(et),o):xt(et)}function it(et){return a.consume(et),Lt=!0,o}function xt(et){return Gt&&Lt&&asciiAlpha(pt.previous)?(a.exit("literalAutolinkEmail"),a.exit("literalAutolink"),i(et)):_e(et)}}function tokenizeWwwAutolink(a,i,_e){const pt=this;return Lt;function Lt(Ct){return Ct!==87&&Ct!==119||!previousWww.call(pt,pt.previous)||previousUnbalanced(pt.events)?_e(Ct):(a.enter("literalAutolink"),a.enter("literalAutolinkWww"),a.check(wwwPrefix,a.attempt(domain,a.attempt(path,Gt),_e),_e)(Ct))}function Gt(Ct){return a.exit("literalAutolinkWww"),a.exit("literalAutolink"),i(Ct)}}function tokenizeProtocolAutolink(a,i,_e){const pt=this;let Lt="",Gt=!1;return Ct;function Ct(et){return(et===72||et===104)&&previousProtocol.call(pt,pt.previous)&&!previousUnbalanced(pt.events)?(a.enter("literalAutolink"),a.enter("literalAutolinkHttp"),Lt+=String.fromCodePoint(et),a.consume(et),Rt):_e(et)}function Rt(et){if(asciiAlpha(et)&&Lt.length<5)return Lt+=String.fromCodePoint(et),a.consume(et),Rt;if(et===58){const Et=Lt.toLowerCase();if(Et==="http"||Et==="https")return a.consume(et),o}return _e(et)}function o(et){return et===47?(a.consume(et),Gt?it:(Gt=!0,o)):_e(et)}function it(et){return et===null||asciiControl(et)||markdownLineEndingOrSpace(et)||unicodeWhitespace(et)||unicodePunctuation(et)?_e(et):a.attempt(domain,a.attempt(path,xt),_e)(et)}function xt(et){return a.exit("literalAutolinkHttp"),a.exit("literalAutolink"),i(et)}}function tokenizeWwwPrefix(a,i,_e){let pt=0;return Lt;function Lt(Ct){return(Ct===87||Ct===119)&&pt<3?(pt++,a.consume(Ct),Lt):Ct===46&&pt===3?(a.consume(Ct),Gt):_e(Ct)}function Gt(Ct){return Ct===null?_e(Ct):i(Ct)}}function tokenizeDomain(a,i,_e){let pt,Lt,Gt;return Ct;function Ct(it){return it===46||it===95?a.check(trail,o,Rt)(it):it===null||markdownLineEndingOrSpace(it)||unicodeWhitespace(it)||it!==45&&unicodePunctuation(it)?o(it):(Gt=!0,a.consume(it),Ct)}function Rt(it){return it===95?pt=!0:(Lt=pt,pt=void 0),a.consume(it),Ct}function o(it){return Lt||pt||!Gt?_e(it):i(it)}}function tokenizePath(a,i){let _e=0,pt=0;return Lt;function Lt(Ct){return Ct===40?(_e++,a.consume(Ct),Lt):Ct===41&&pt<_e?Gt(Ct):Ct===33||Ct===34||Ct===38||Ct===39||Ct===41||Ct===42||Ct===44||Ct===46||Ct===58||Ct===59||Ct===60||Ct===63||Ct===93||Ct===95||Ct===126?a.check(trail,i,Gt)(Ct):Ct===null||markdownLineEndingOrSpace(Ct)||unicodeWhitespace(Ct)?i(Ct):(a.consume(Ct),Lt)}function Gt(Ct){return Ct===41&&pt++,a.consume(Ct),Lt}}function tokenizeTrail(a,i,_e){return pt;function pt(Rt){return Rt===33||Rt===34||Rt===39||Rt===41||Rt===42||Rt===44||Rt===46||Rt===58||Rt===59||Rt===63||Rt===95||Rt===126?(a.consume(Rt),pt):Rt===38?(a.consume(Rt),Gt):Rt===93?(a.consume(Rt),Lt):Rt===60||Rt===null||markdownLineEndingOrSpace(Rt)||unicodeWhitespace(Rt)?i(Rt):_e(Rt)}function Lt(Rt){return Rt===null||Rt===40||Rt===91||markdownLineEndingOrSpace(Rt)||unicodeWhitespace(Rt)?i(Rt):pt(Rt)}function Gt(Rt){return asciiAlpha(Rt)?Ct(Rt):_e(Rt)}function Ct(Rt){return Rt===59?(a.consume(Rt),pt):asciiAlpha(Rt)?(a.consume(Rt),Ct):_e(Rt)}}function tokenizeEmailDomainDotTrail(a,i,_e){return pt;function pt(Gt){return a.consume(Gt),Lt}function Lt(Gt){return asciiAlphanumeric(Gt)?_e(Gt):i(Gt)}}function previousWww(a){return a===null||a===40||a===42||a===95||a===91||a===93||a===126||markdownLineEndingOrSpace(a)}function previousProtocol(a){return!asciiAlpha(a)}function previousEmail(a){return!(a===47||gfmAtext(a))}function gfmAtext(a){return a===43||a===45||a===46||a===95||asciiAlphanumeric(a)}function previousUnbalanced(a){let i=a.length,_e=!1;for(;i--;){const pt=a[i][1];if((pt.type==="labelLink"||pt.type==="labelImage")&&!pt._balanced){_e=!0;break}if(pt._gfmAutolinkLiteralWalkedInto){_e=!1;break}}return a.length>0&&!_e&&(a[a.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),_e}const indent={tokenize:tokenizeIndent,partial:!0};function gfmFootnote(){return{document:{[91]:{tokenize:tokenizeDefinitionStart,continuation:{tokenize:tokenizeDefinitionContinuation},exit:gfmFootnoteDefinitionEnd}},text:{[91]:{tokenize:tokenizeGfmFootnoteCall},[93]:{add:"after",tokenize:tokenizePotentialGfmFootnoteCall,resolveTo:resolveToPotentialGfmFootnoteCall}}}}function tokenizePotentialGfmFootnoteCall(a,i,_e){const pt=this;let Lt=pt.events.length;const Gt=pt.parser.gfmFootnotes||(pt.parser.gfmFootnotes=[]);let Ct;for(;Lt--;){const o=pt.events[Lt][1];if(o.type==="labelImage"){Ct=o;break}if(o.type==="gfmFootnoteCall"||o.type==="labelLink"||o.type==="label"||o.type==="image"||o.type==="link")break}return Rt;function Rt(o){if(!Ct||!Ct._balanced)return _e(o);const it=normalizeIdentifier(pt.sliceSerialize({start:Ct.end,end:pt.now()}));return it.codePointAt(0)!==94||!Gt.includes(it.slice(1))?_e(o):(a.enter("gfmFootnoteCallLabelMarker"),a.consume(o),a.exit("gfmFootnoteCallLabelMarker"),i(o))}}function resolveToPotentialGfmFootnoteCall(a,i){let _e=a.length;for(;_e--;)if(a[_e][1].type==="labelImage"&&a[_e][0]==="enter"){a[_e][1];break}a[_e+1][1].type="data",a[_e+3][1].type="gfmFootnoteCallLabelMarker";const pt={type:"gfmFootnoteCall",start:Object.assign({},a[_e+3][1].start),end:Object.assign({},a[a.length-1][1].end)},Lt={type:"gfmFootnoteCallMarker",start:Object.assign({},a[_e+3][1].end),end:Object.assign({},a[_e+3][1].end)};Lt.end.column++,Lt.end.offset++,Lt.end._bufferIndex++;const Gt={type:"gfmFootnoteCallString",start:Object.assign({},Lt.end),end:Object.assign({},a[a.length-1][1].start)},Ct={type:"chunkString",contentType:"string",start:Object.assign({},Gt.start),end:Object.assign({},Gt.end)},Rt=[a[_e+1],a[_e+2],["enter",pt,i],a[_e+3],a[_e+4],["enter",Lt,i],["exit",Lt,i],["enter",Gt,i],["enter",Ct,i],["exit",Ct,i],["exit",Gt,i],a[a.length-2],a[a.length-1],["exit",pt,i]];return a.splice(_e,a.length-_e+1,...Rt),a}function tokenizeGfmFootnoteCall(a,i,_e){const pt=this,Lt=pt.parser.gfmFootnotes||(pt.parser.gfmFootnotes=[]);let Gt=0,Ct;return Rt;function Rt(et){return a.enter("gfmFootnoteCall"),a.enter("gfmFootnoteCallLabelMarker"),a.consume(et),a.exit("gfmFootnoteCallLabelMarker"),o}function o(et){return et!==94?_e(et):(a.enter("gfmFootnoteCallMarker"),a.consume(et),a.exit("gfmFootnoteCallMarker"),a.enter("gfmFootnoteCallString"),a.enter("chunkString").contentType="string",it)}function it(et){if(Gt>999||et===93&&!Ct||et===null||et===91||markdownLineEndingOrSpace(et))return _e(et);if(et===93){a.exit("chunkString");const Et=a.exit("gfmFootnoteCallString");return Lt.includes(normalizeIdentifier(pt.sliceSerialize(Et)))?(a.enter("gfmFootnoteCallLabelMarker"),a.consume(et),a.exit("gfmFootnoteCallLabelMarker"),a.exit("gfmFootnoteCall"),i):_e(et)}return markdownLineEndingOrSpace(et)||(Ct=!0),Gt++,a.consume(et),et===92?xt:it}function xt(et){return et===91||et===92||et===93?(a.consume(et),Gt++,it):it(et)}}function tokenizeDefinitionStart(a,i,_e){const pt=this,Lt=pt.parser.gfmFootnotes||(pt.parser.gfmFootnotes=[]);let Gt,Ct=0,Rt;return o;function o(ut){return a.enter("gfmFootnoteDefinition")._container=!0,a.enter("gfmFootnoteDefinitionLabel"),a.enter("gfmFootnoteDefinitionLabelMarker"),a.consume(ut),a.exit("gfmFootnoteDefinitionLabelMarker"),it}function it(ut){return ut===94?(a.enter("gfmFootnoteDefinitionMarker"),a.consume(ut),a.exit("gfmFootnoteDefinitionMarker"),a.enter("gfmFootnoteDefinitionLabelString"),a.enter("chunkString").contentType="string",xt):_e(ut)}function xt(ut){if(Ct>999||ut===93&&!Rt||ut===null||ut===91||markdownLineEndingOrSpace(ut))return _e(ut);if(ut===93){a.exit("chunkString");const ht=a.exit("gfmFootnoteDefinitionLabelString");return Gt=normalizeIdentifier(pt.sliceSerialize(ht)),a.enter("gfmFootnoteDefinitionLabelMarker"),a.consume(ut),a.exit("gfmFootnoteDefinitionLabelMarker"),a.exit("gfmFootnoteDefinitionLabel"),Et}return markdownLineEndingOrSpace(ut)||(Rt=!0),Ct++,a.consume(ut),ut===92?et:xt}function et(ut){return ut===91||ut===92||ut===93?(a.consume(ut),Ct++,xt):xt(ut)}function Et(ut){return ut===58?(a.enter("definitionMarker"),a.consume(ut),a.exit("definitionMarker"),Lt.includes(Gt)||Lt.push(Gt),factorySpace(a,mt,"gfmFootnoteDefinitionWhitespace")):_e(ut)}function mt(ut){return i(ut)}}function tokenizeDefinitionContinuation(a,i,_e){return a.check(blankLine,i,a.attempt(indent,i,_e))}function gfmFootnoteDefinitionEnd(a){a.exit("gfmFootnoteDefinition")}function tokenizeIndent(a,i,_e){const pt=this;return factorySpace(a,Lt,"gfmFootnoteDefinitionIndent",4+1);function Lt(Gt){const Ct=pt.events[pt.events.length-1];return Ct&&Ct[1].type==="gfmFootnoteDefinitionIndent"&&Ct[2].sliceSerialize(Ct[1],!0).length===4?i(Gt):_e(Gt)}}function gfmStrikethrough(a){let _e=(a||{}).singleTilde;const pt={tokenize:Gt,resolveAll:Lt};return _e==null&&(_e=!0),{text:{[126]:pt},insideSpan:{null:[pt]},attentionMarkers:{null:[126]}};function Lt(Ct,Rt){let o=-1;for(;++o1?o(ut):(Ct.consume(ut),et++,mt);if(et<2&&!_e)return o(ut);const j=Ct.exit("strikethroughSequenceTemporary"),_=classifyCharacter(ut);return j._open=!_||_===2&&Boolean(ht),j._close=!ht||ht===2&&Boolean(_),Rt(ut)}}}class EditMap{constructor(){this.map=[]}add(i,_e,pt){addImpl(this,i,_e,pt)}consume(i){if(this.map.sort((Gt,Ct)=>Gt[0]-Ct[0]),this.map.length===0)return;let _e=this.map.length;const pt=[];for(;_e>0;)_e-=1,pt.push(i.slice(this.map[_e][0]+this.map[_e][1])),pt.push(this.map[_e][2]),i.length=this.map[_e][0];pt.push([...i]),i.length=0;let Lt=pt.pop();for(;Lt;)i.push(...Lt),Lt=pt.pop();this.map.length=0}}function addImpl(a,i,_e,pt){let Lt=0;if(!(_e===0&&pt.length===0)){for(;Lt-1;){const _t=pt.events[at][1].type;if(_t==="lineEnding"||_t==="linePrefix")at--;else break}const yt=at>-1?pt.events[at][1].type:null,St=yt==="tableHead"||yt==="tableRow"?nt:o;return St===nt&&pt.parser.lazy[pt.now().line]?_e(ft):St(ft)}function o(ft){return a.enter("tableHead"),a.enter("tableRow"),it(ft)}function it(ft){return ft===124||(Ct=!0,Gt+=1),xt(ft)}function xt(ft){return ft===null?_e(ft):markdownLineEnding(ft)?Gt>1?(Gt=0,pt.interrupt=!0,a.exit("tableRow"),a.enter("lineEnding"),a.consume(ft),a.exit("lineEnding"),mt):_e(ft):markdownSpace(ft)?factorySpace(a,xt,"whitespace")(ft):(Gt+=1,Ct&&(Ct=!1,Lt+=1),ft===124?(a.enter("tableCellDivider"),a.consume(ft),a.exit("tableCellDivider"),Ct=!0,xt):(a.enter("data"),et(ft)))}function et(ft){return ft===null||ft===124||markdownLineEndingOrSpace(ft)?(a.exit("data"),xt(ft)):(a.consume(ft),ft===92?Et:et)}function Et(ft){return ft===92||ft===124?(a.consume(ft),et):et(ft)}function mt(ft){return pt.interrupt=!1,pt.parser.lazy[pt.now().line]?_e(ft):(a.enter("tableDelimiterRow"),Ct=!1,markdownSpace(ft)?factorySpace(a,ut,"linePrefix",pt.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ft):ut(ft))}function ut(ft){return ft===45||ft===58?j(ft):ft===124?(Ct=!0,a.enter("tableCellDivider"),a.consume(ft),a.exit("tableCellDivider"),ht):ot(ft)}function ht(ft){return markdownSpace(ft)?factorySpace(a,j,"whitespace")(ft):j(ft)}function j(ft){return ft===58?(Gt+=1,Ct=!0,a.enter("tableDelimiterMarker"),a.consume(ft),a.exit("tableDelimiterMarker"),_):ft===45?(Gt+=1,_(ft)):ft===null||markdownLineEnding(ft)?st(ft):ot(ft)}function _(ft){return ft===45?(a.enter("tableDelimiterFiller"),rt(ft)):ot(ft)}function rt(ft){return ft===45?(a.consume(ft),rt):ft===58?(Ct=!0,a.exit("tableDelimiterFiller"),a.enter("tableDelimiterMarker"),a.consume(ft),a.exit("tableDelimiterMarker"),tt):(a.exit("tableDelimiterFiller"),tt(ft))}function tt(ft){return markdownSpace(ft)?factorySpace(a,st,"whitespace")(ft):st(ft)}function st(ft){return ft===124?ut(ft):ft===null||markdownLineEnding(ft)?!Ct||Lt!==Gt?ot(ft):(a.exit("tableDelimiterRow"),a.exit("tableHead"),i(ft)):ot(ft)}function ot(ft){return _e(ft)}function nt(ft){return a.enter("tableRow"),vt(ft)}function vt(ft){return ft===124?(a.enter("tableCellDivider"),a.consume(ft),a.exit("tableCellDivider"),vt):ft===null||markdownLineEnding(ft)?(a.exit("tableRow"),i(ft)):markdownSpace(ft)?factorySpace(a,vt,"whitespace")(ft):(a.enter("data"),dt(ft))}function dt(ft){return ft===null||ft===124||markdownLineEndingOrSpace(ft)?(a.exit("data"),vt(ft)):(a.consume(ft),ft===92?bt:dt)}function bt(ft){return ft===92||ft===124?(a.consume(ft),dt):dt(ft)}}function resolveTable(a,i){let _e=-1,pt=!0,Lt=0,Gt=[0,0,0,0],Ct=[0,0,0,0],Rt=!1,o=0,it,xt,et;const Et=new EditMap;for(;++_e_e[2]+1){const ut=_e[2]+1,ht=_e[3]-_e[2]-1;a.add(ut,ht,[])}}a.add(_e[3]+1,0,[["exit",et,i]])}return Lt!==void 0&&(Gt.end=Object.assign({},getPoint(i.events,Lt)),a.add(Lt,0,[["exit",Gt,i]]),Gt=void 0),Gt}function flushTableEnd(a,i,_e,pt,Lt){const Gt=[],Ct=getPoint(i.events,_e);Lt&&(Lt.end=Object.assign({},Ct),Gt.push(["exit",Lt,i])),pt.end=Object.assign({},Ct),Gt.push(["exit",pt,i]),a.add(_e+1,0,Gt)}function getPoint(a,i){const _e=a[i],pt=_e[0]==="enter"?"start":"end";return _e[1][pt]}const tasklistCheck={tokenize:tokenizeTasklistCheck},gfmTaskListItem={text:{[91]:tasklistCheck}};function tokenizeTasklistCheck(a,i,_e){const pt=this;return Lt;function Lt(o){return pt.previous!==null||!pt._gfmTasklistFirstContentOfListItem?_e(o):(a.enter("taskListCheck"),a.enter("taskListCheckMarker"),a.consume(o),a.exit("taskListCheckMarker"),Gt)}function Gt(o){return markdownLineEndingOrSpace(o)?(a.enter("taskListCheckValueUnchecked"),a.consume(o),a.exit("taskListCheckValueUnchecked"),Ct):o===88||o===120?(a.enter("taskListCheckValueChecked"),a.consume(o),a.exit("taskListCheckValueChecked"),Ct):_e(o)}function Ct(o){return o===93?(a.enter("taskListCheckMarker"),a.consume(o),a.exit("taskListCheckMarker"),a.exit("taskListCheck"),Rt):_e(o)}function Rt(o){return markdownLineEnding(o)?i(o):markdownSpace(o)?a.check({tokenize:spaceThenNonSpace},i,_e)(o):_e(o)}}function spaceThenNonSpace(a,i,_e){return factorySpace(a,pt,"whitespace");function pt(Lt){return Lt===null?_e(Lt):i(Lt)}}function gfm(a){return combineExtensions([gfmAutolinkLiteral,gfmFootnote(),gfmStrikethrough(a),gfmTable,gfmTaskListItem])}function ccount(a,i){const _e=String(a);if(typeof i!="string")throw new TypeError("Expected character");let pt=0,Lt=_e.indexOf(i);for(;Lt!==-1;)pt++,Lt=_e.indexOf(i,Lt+i.length);return pt}function escapeStringRegexp(a){if(typeof a!="string")throw new TypeError("Expected a string");return a.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const own$7={}.hasOwnProperty,findAndReplace=function(a,i,_e,pt){let Lt,Gt;typeof i=="string"||i instanceof RegExp?(Gt=[[i,_e]],Lt=pt):(Gt=i,Lt=_e),Lt||(Lt={});const Ct=convert(Lt.ignore||[]),Rt=toPairs(Gt);let o=-1;for(;++o0?{type:"text",value:vt}:void 0),vt!==!1&&(j!==ot&&tt.push({type:"text",value:et.value.slice(j,ot)}),Array.isArray(vt)?tt.push(...vt):vt&&tt.push(vt),j=ot+st[0].length,rt=!0),!ut.global)break;st=ut.exec(et.value)}return rt?(ja}const inConstruct="phrasing",notInConstruct=["autolink","link","image","label"],gfmAutolinkLiteralFromMarkdown={transforms:[transformGfmAutolinkLiterals],enter:{literalAutolink:enterLiteralAutolink,literalAutolinkEmail:enterLiteralAutolinkValue,literalAutolinkHttp:enterLiteralAutolinkValue,literalAutolinkWww:enterLiteralAutolinkValue},exit:{literalAutolink:exitLiteralAutolink,literalAutolinkEmail:exitLiteralAutolinkEmail,literalAutolinkHttp:exitLiteralAutolinkHttp,literalAutolinkWww:exitLiteralAutolinkWww}},gfmAutolinkLiteralToMarkdown={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct,notInConstruct},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct,notInConstruct},{character:":",before:"[ps]",after:"\\/",inConstruct,notInConstruct}]};function enterLiteralAutolink(a){this.enter({type:"link",title:null,url:"",children:[]},a)}function enterLiteralAutolinkValue(a){this.config.enter.autolinkProtocol.call(this,a)}function exitLiteralAutolinkHttp(a){this.config.exit.autolinkProtocol.call(this,a)}function exitLiteralAutolinkWww(a){this.config.exit.data.call(this,a);const i=this.stack[this.stack.length-1];i.url="http://"+this.sliceSerialize(a)}function exitLiteralAutolinkEmail(a){this.config.exit.autolinkEmail.call(this,a)}function exitLiteralAutolink(a){this.exit(a)}function transformGfmAutolinkLiterals(a){findAndReplace(a,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,findUrl],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,findEmail]],{ignore:["link","linkReference"]})}function findUrl(a,i,_e,pt,Lt){let Gt="";if(!previous(Lt)||(/^w/i.test(i)&&(_e=i+_e,i="",Gt="http://"),!isCorrectDomain(_e)))return!1;const Ct=splitUrl(_e+pt);if(!Ct[0])return!1;const Rt={type:"link",title:null,url:Gt+i+Ct[0],children:[{type:"text",value:i+Ct[0]}]};return Ct[1]?[Rt,{type:"text",value:Ct[1]}]:Rt}function findEmail(a,i,_e,pt){return!previous(pt,!0)||/[-\d_]$/.test(_e)?!1:{type:"link",title:null,url:"mailto:"+i+"@"+_e,children:[{type:"text",value:i+"@"+_e}]}}function isCorrectDomain(a){const i=a.split(".");return!(i.length<2||i[i.length-1]&&(/_/.test(i[i.length-1])||!/[a-zA-Z\d]/.test(i[i.length-1]))||i[i.length-2]&&(/_/.test(i[i.length-2])||!/[a-zA-Z\d]/.test(i[i.length-2])))}function splitUrl(a){const i=/[!"&'),.:;<>?\]}]+$/.exec(a);if(!i)return[a,void 0];a=a.slice(0,i.index);let _e=i[0],pt=_e.indexOf(")");const Lt=ccount(a,"(");let Gt=ccount(a,")");for(;pt!==-1&&Lt>Gt;)a+=_e.slice(0,pt+1),_e=_e.slice(pt+1),pt=_e.indexOf(")"),Gt++;return[a,_e]}function previous(a,i){const _e=a.input.charCodeAt(a.index-1);return(a.index===0||unicodeWhitespace(_e)||unicodePunctuation(_e))&&(!i||_e!==47)}function association(a){return a.label||!a.identifier?a.label||"":decodeString(a.identifier)}function containerFlow(a,i,_e){const pt=i.indexStack,Lt=a.children||[],Gt=i.createTracker(_e),Ct=[];let Rt=-1;for(pt.push(-1);++Rt0?React.createElement(Tt,Rt,xt):React.createElement(Tt,Rt)}function getInputElement(a){let i=-1;for(;++iString(i)).join("")}const own$8={}.hasOwnProperty,changelog="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",deprecated={renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function ReactMarkdown(a){for(const Gt in deprecated)if(own$8.call(deprecated,Gt)&&own$8.call(a,Gt)){const Ct=deprecated[Gt];console.warn(`[react-markdown] Warning: please ${Ct.to?`use \`${Ct.to}\` instead of`:"remove"} \`${Gt}\` (see <${changelog}#${Ct.id}> for more info)`),delete deprecated[Gt]}const i=unified().use(remarkParse).use(a.remarkPlugins||a.plugins||[]).use(remarkRehype$1,{allowDangerousHtml:!0}).use(a.rehypePlugins||[]).use(rehypeFilter,a),_e=new VFile;typeof a.children=="string"?_e.value=a.children:a.children!==void 0&&a.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${a.children}\`)`);const pt=i.runSync(i.parse(_e),_e);if(pt.type!=="root")throw new TypeError("Expected a `root` node");let Lt=React.createElement(React.Fragment,{},childrenToReact({options:a,schema:html$5,listDepth:0},pt));return a.className&&(Lt=React.createElement("div",{className:a.className},Lt)),Lt}ReactMarkdown.defaultProps={transformLinkUri:uriTransformer};ReactMarkdown.propTypes={children:propTypesExports.string,className:propTypesExports.string,allowElement:propTypesExports.func,allowedElements:propTypesExports.arrayOf(propTypesExports.string),disallowedElements:propTypesExports.arrayOf(propTypesExports.string),unwrapDisallowed:propTypesExports.bool,remarkPlugins:propTypesExports.arrayOf(propTypesExports.oneOfType([propTypesExports.object,propTypesExports.func,propTypesExports.arrayOf(propTypesExports.oneOfType([propTypesExports.object,propTypesExports.func]))])),rehypePlugins:propTypesExports.arrayOf(propTypesExports.oneOfType([propTypesExports.object,propTypesExports.func,propTypesExports.arrayOf(propTypesExports.oneOfType([propTypesExports.object,propTypesExports.func]))])),sourcePos:propTypesExports.bool,rawSourcePos:propTypesExports.bool,skipHtml:propTypesExports.bool,includeElementIndex:propTypesExports.bool,transformLinkUri:propTypesExports.oneOfType([propTypesExports.func,propTypesExports.bool]),linkTarget:propTypesExports.oneOfType([propTypesExports.func,propTypesExports.string]),transformImageUri:propTypesExports.func,components:propTypesExports.object};const wwwPrefix={tokenize:tokenizeWwwPrefix,partial:!0},domain={tokenize:tokenizeDomain,partial:!0},path={tokenize:tokenizePath,partial:!0},trail={tokenize:tokenizeTrail,partial:!0},emailDomainDotTrail={tokenize:tokenizeEmailDomainDotTrail,partial:!0},wwwAutolink={tokenize:tokenizeWwwAutolink,previous:previousWww},protocolAutolink={tokenize:tokenizeProtocolAutolink,previous:previousProtocol},emailAutolink={tokenize:tokenizeEmailAutolink,previous:previousEmail},text$2={},gfmAutolinkLiteral={text:text$2};let code=48;for(;code<123;)text$2[code]=emailAutolink,code++,code===58?code=65:code===91&&(code=97);text$2[43]=emailAutolink;text$2[45]=emailAutolink;text$2[46]=emailAutolink;text$2[95]=emailAutolink;text$2[72]=[emailAutolink,protocolAutolink];text$2[104]=[emailAutolink,protocolAutolink];text$2[87]=[emailAutolink,wwwAutolink];text$2[119]=[emailAutolink,wwwAutolink];function tokenizeEmailAutolink(a,i,_e){const pt=this;let Lt,Gt;return Ct;function Ct(et){return!gfmAtext(et)||!previousEmail.call(pt,pt.previous)||previousUnbalanced(pt.events)?_e(et):(a.enter("literalAutolink"),a.enter("literalAutolinkEmail"),Rt(et))}function Rt(et){return gfmAtext(et)?(a.consume(et),Rt):et===64?(a.consume(et),o):_e(et)}function o(et){return et===46?a.check(emailDomainDotTrail,xt,it)(et):et===45||et===95||asciiAlphanumeric(et)?(Gt=!0,a.consume(et),o):xt(et)}function it(et){return a.consume(et),Lt=!0,o}function xt(et){return Gt&&Lt&&asciiAlpha(pt.previous)?(a.exit("literalAutolinkEmail"),a.exit("literalAutolink"),i(et)):_e(et)}}function tokenizeWwwAutolink(a,i,_e){const pt=this;return Lt;function Lt(Ct){return Ct!==87&&Ct!==119||!previousWww.call(pt,pt.previous)||previousUnbalanced(pt.events)?_e(Ct):(a.enter("literalAutolink"),a.enter("literalAutolinkWww"),a.check(wwwPrefix,a.attempt(domain,a.attempt(path,Gt),_e),_e)(Ct))}function Gt(Ct){return a.exit("literalAutolinkWww"),a.exit("literalAutolink"),i(Ct)}}function tokenizeProtocolAutolink(a,i,_e){const pt=this;let Lt="",Gt=!1;return Ct;function Ct(et){return(et===72||et===104)&&previousProtocol.call(pt,pt.previous)&&!previousUnbalanced(pt.events)?(a.enter("literalAutolink"),a.enter("literalAutolinkHttp"),Lt+=String.fromCodePoint(et),a.consume(et),Rt):_e(et)}function Rt(et){if(asciiAlpha(et)&&Lt.length<5)return Lt+=String.fromCodePoint(et),a.consume(et),Rt;if(et===58){const Tt=Lt.toLowerCase();if(Tt==="http"||Tt==="https")return a.consume(et),o}return _e(et)}function o(et){return et===47?(a.consume(et),Gt?it:(Gt=!0,o)):_e(et)}function it(et){return et===null||asciiControl(et)||markdownLineEndingOrSpace(et)||unicodeWhitespace(et)||unicodePunctuation(et)?_e(et):a.attempt(domain,a.attempt(path,xt),_e)(et)}function xt(et){return a.exit("literalAutolinkHttp"),a.exit("literalAutolink"),i(et)}}function tokenizeWwwPrefix(a,i,_e){let pt=0;return Lt;function Lt(Ct){return(Ct===87||Ct===119)&&pt<3?(pt++,a.consume(Ct),Lt):Ct===46&&pt===3?(a.consume(Ct),Gt):_e(Ct)}function Gt(Ct){return Ct===null?_e(Ct):i(Ct)}}function tokenizeDomain(a,i,_e){let pt,Lt,Gt;return Ct;function Ct(it){return it===46||it===95?a.check(trail,o,Rt)(it):it===null||markdownLineEndingOrSpace(it)||unicodeWhitespace(it)||it!==45&&unicodePunctuation(it)?o(it):(Gt=!0,a.consume(it),Ct)}function Rt(it){return it===95?pt=!0:(Lt=pt,pt=void 0),a.consume(it),Ct}function o(it){return Lt||pt||!Gt?_e(it):i(it)}}function tokenizePath(a,i){let _e=0,pt=0;return Lt;function Lt(Ct){return Ct===40?(_e++,a.consume(Ct),Lt):Ct===41&&pt<_e?Gt(Ct):Ct===33||Ct===34||Ct===38||Ct===39||Ct===41||Ct===42||Ct===44||Ct===46||Ct===58||Ct===59||Ct===60||Ct===63||Ct===93||Ct===95||Ct===126?a.check(trail,i,Gt)(Ct):Ct===null||markdownLineEndingOrSpace(Ct)||unicodeWhitespace(Ct)?i(Ct):(a.consume(Ct),Lt)}function Gt(Ct){return Ct===41&&pt++,a.consume(Ct),Lt}}function tokenizeTrail(a,i,_e){return pt;function pt(Rt){return Rt===33||Rt===34||Rt===39||Rt===41||Rt===42||Rt===44||Rt===46||Rt===58||Rt===59||Rt===63||Rt===95||Rt===126?(a.consume(Rt),pt):Rt===38?(a.consume(Rt),Gt):Rt===93?(a.consume(Rt),Lt):Rt===60||Rt===null||markdownLineEndingOrSpace(Rt)||unicodeWhitespace(Rt)?i(Rt):_e(Rt)}function Lt(Rt){return Rt===null||Rt===40||Rt===91||markdownLineEndingOrSpace(Rt)||unicodeWhitespace(Rt)?i(Rt):pt(Rt)}function Gt(Rt){return asciiAlpha(Rt)?Ct(Rt):_e(Rt)}function Ct(Rt){return Rt===59?(a.consume(Rt),pt):asciiAlpha(Rt)?(a.consume(Rt),Ct):_e(Rt)}}function tokenizeEmailDomainDotTrail(a,i,_e){return pt;function pt(Gt){return a.consume(Gt),Lt}function Lt(Gt){return asciiAlphanumeric(Gt)?_e(Gt):i(Gt)}}function previousWww(a){return a===null||a===40||a===42||a===95||a===91||a===93||a===126||markdownLineEndingOrSpace(a)}function previousProtocol(a){return!asciiAlpha(a)}function previousEmail(a){return!(a===47||gfmAtext(a))}function gfmAtext(a){return a===43||a===45||a===46||a===95||asciiAlphanumeric(a)}function previousUnbalanced(a){let i=a.length,_e=!1;for(;i--;){const pt=a[i][1];if((pt.type==="labelLink"||pt.type==="labelImage")&&!pt._balanced){_e=!0;break}if(pt._gfmAutolinkLiteralWalkedInto){_e=!1;break}}return a.length>0&&!_e&&(a[a.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),_e}const indent={tokenize:tokenizeIndent,partial:!0};function gfmFootnote(){return{document:{[91]:{tokenize:tokenizeDefinitionStart,continuation:{tokenize:tokenizeDefinitionContinuation},exit:gfmFootnoteDefinitionEnd}},text:{[91]:{tokenize:tokenizeGfmFootnoteCall},[93]:{add:"after",tokenize:tokenizePotentialGfmFootnoteCall,resolveTo:resolveToPotentialGfmFootnoteCall}}}}function tokenizePotentialGfmFootnoteCall(a,i,_e){const pt=this;let Lt=pt.events.length;const Gt=pt.parser.gfmFootnotes||(pt.parser.gfmFootnotes=[]);let Ct;for(;Lt--;){const o=pt.events[Lt][1];if(o.type==="labelImage"){Ct=o;break}if(o.type==="gfmFootnoteCall"||o.type==="labelLink"||o.type==="label"||o.type==="image"||o.type==="link")break}return Rt;function Rt(o){if(!Ct||!Ct._balanced)return _e(o);const it=normalizeIdentifier(pt.sliceSerialize({start:Ct.end,end:pt.now()}));return it.codePointAt(0)!==94||!Gt.includes(it.slice(1))?_e(o):(a.enter("gfmFootnoteCallLabelMarker"),a.consume(o),a.exit("gfmFootnoteCallLabelMarker"),i(o))}}function resolveToPotentialGfmFootnoteCall(a,i){let _e=a.length;for(;_e--;)if(a[_e][1].type==="labelImage"&&a[_e][0]==="enter"){a[_e][1];break}a[_e+1][1].type="data",a[_e+3][1].type="gfmFootnoteCallLabelMarker";const pt={type:"gfmFootnoteCall",start:Object.assign({},a[_e+3][1].start),end:Object.assign({},a[a.length-1][1].end)},Lt={type:"gfmFootnoteCallMarker",start:Object.assign({},a[_e+3][1].end),end:Object.assign({},a[_e+3][1].end)};Lt.end.column++,Lt.end.offset++,Lt.end._bufferIndex++;const Gt={type:"gfmFootnoteCallString",start:Object.assign({},Lt.end),end:Object.assign({},a[a.length-1][1].start)},Ct={type:"chunkString",contentType:"string",start:Object.assign({},Gt.start),end:Object.assign({},Gt.end)},Rt=[a[_e+1],a[_e+2],["enter",pt,i],a[_e+3],a[_e+4],["enter",Lt,i],["exit",Lt,i],["enter",Gt,i],["enter",Ct,i],["exit",Ct,i],["exit",Gt,i],a[a.length-2],a[a.length-1],["exit",pt,i]];return a.splice(_e,a.length-_e+1,...Rt),a}function tokenizeGfmFootnoteCall(a,i,_e){const pt=this,Lt=pt.parser.gfmFootnotes||(pt.parser.gfmFootnotes=[]);let Gt=0,Ct;return Rt;function Rt(et){return a.enter("gfmFootnoteCall"),a.enter("gfmFootnoteCallLabelMarker"),a.consume(et),a.exit("gfmFootnoteCallLabelMarker"),o}function o(et){return et!==94?_e(et):(a.enter("gfmFootnoteCallMarker"),a.consume(et),a.exit("gfmFootnoteCallMarker"),a.enter("gfmFootnoteCallString"),a.enter("chunkString").contentType="string",it)}function it(et){if(Gt>999||et===93&&!Ct||et===null||et===91||markdownLineEndingOrSpace(et))return _e(et);if(et===93){a.exit("chunkString");const Tt=a.exit("gfmFootnoteCallString");return Lt.includes(normalizeIdentifier(pt.sliceSerialize(Tt)))?(a.enter("gfmFootnoteCallLabelMarker"),a.consume(et),a.exit("gfmFootnoteCallLabelMarker"),a.exit("gfmFootnoteCall"),i):_e(et)}return markdownLineEndingOrSpace(et)||(Ct=!0),Gt++,a.consume(et),et===92?xt:it}function xt(et){return et===91||et===92||et===93?(a.consume(et),Gt++,it):it(et)}}function tokenizeDefinitionStart(a,i,_e){const pt=this,Lt=pt.parser.gfmFootnotes||(pt.parser.gfmFootnotes=[]);let Gt,Ct=0,Rt;return o;function o(ut){return a.enter("gfmFootnoteDefinition")._container=!0,a.enter("gfmFootnoteDefinitionLabel"),a.enter("gfmFootnoteDefinitionLabelMarker"),a.consume(ut),a.exit("gfmFootnoteDefinitionLabelMarker"),it}function it(ut){return ut===94?(a.enter("gfmFootnoteDefinitionMarker"),a.consume(ut),a.exit("gfmFootnoteDefinitionMarker"),a.enter("gfmFootnoteDefinitionLabelString"),a.enter("chunkString").contentType="string",xt):_e(ut)}function xt(ut){if(Ct>999||ut===93&&!Rt||ut===null||ut===91||markdownLineEndingOrSpace(ut))return _e(ut);if(ut===93){a.exit("chunkString");const ht=a.exit("gfmFootnoteDefinitionLabelString");return Gt=normalizeIdentifier(pt.sliceSerialize(ht)),a.enter("gfmFootnoteDefinitionLabelMarker"),a.consume(ut),a.exit("gfmFootnoteDefinitionLabelMarker"),a.exit("gfmFootnoteDefinitionLabel"),Tt}return markdownLineEndingOrSpace(ut)||(Rt=!0),Ct++,a.consume(ut),ut===92?et:xt}function et(ut){return ut===91||ut===92||ut===93?(a.consume(ut),Ct++,xt):xt(ut)}function Tt(ut){return ut===58?(a.enter("definitionMarker"),a.consume(ut),a.exit("definitionMarker"),Lt.includes(Gt)||Lt.push(Gt),factorySpace(a,yt,"gfmFootnoteDefinitionWhitespace")):_e(ut)}function yt(ut){return i(ut)}}function tokenizeDefinitionContinuation(a,i,_e){return a.check(blankLine,i,a.attempt(indent,i,_e))}function gfmFootnoteDefinitionEnd(a){a.exit("gfmFootnoteDefinition")}function tokenizeIndent(a,i,_e){const pt=this;return factorySpace(a,Lt,"gfmFootnoteDefinitionIndent",4+1);function Lt(Gt){const Ct=pt.events[pt.events.length-1];return Ct&&Ct[1].type==="gfmFootnoteDefinitionIndent"&&Ct[2].sliceSerialize(Ct[1],!0).length===4?i(Gt):_e(Gt)}}function gfmStrikethrough(a){let _e=(a||{}).singleTilde;const pt={tokenize:Gt,resolveAll:Lt};return _e==null&&(_e=!0),{text:{[126]:pt},insideSpan:{null:[pt]},attentionMarkers:{null:[126]}};function Lt(Ct,Rt){let o=-1;for(;++o1?o(ut):(Ct.consume(ut),et++,yt);if(et<2&&!_e)return o(ut);const j=Ct.exit("strikethroughSequenceTemporary"),_=classifyCharacter(ut);return j._open=!_||_===2&&Boolean(ht),j._close=!ht||ht===2&&Boolean(_),Rt(ut)}}}class EditMap{constructor(){this.map=[]}add(i,_e,pt){addImpl(this,i,_e,pt)}consume(i){if(this.map.sort((Gt,Ct)=>Gt[0]-Ct[0]),this.map.length===0)return;let _e=this.map.length;const pt=[];for(;_e>0;)_e-=1,pt.push(i.slice(this.map[_e][0]+this.map[_e][1])),pt.push(this.map[_e][2]),i.length=this.map[_e][0];pt.push([...i]),i.length=0;let Lt=pt.pop();for(;Lt;)i.push(...Lt),Lt=pt.pop();this.map.length=0}}function addImpl(a,i,_e,pt){let Lt=0;if(!(_e===0&&pt.length===0)){for(;Lt-1;){const _t=pt.events[at][1].type;if(_t==="lineEnding"||_t==="linePrefix")at--;else break}const mt=at>-1?pt.events[at][1].type:null,St=mt==="tableHead"||mt==="tableRow"?nt:o;return St===nt&&pt.parser.lazy[pt.now().line]?_e(ft):St(ft)}function o(ft){return a.enter("tableHead"),a.enter("tableRow"),it(ft)}function it(ft){return ft===124||(Ct=!0,Gt+=1),xt(ft)}function xt(ft){return ft===null?_e(ft):markdownLineEnding(ft)?Gt>1?(Gt=0,pt.interrupt=!0,a.exit("tableRow"),a.enter("lineEnding"),a.consume(ft),a.exit("lineEnding"),yt):_e(ft):markdownSpace(ft)?factorySpace(a,xt,"whitespace")(ft):(Gt+=1,Ct&&(Ct=!1,Lt+=1),ft===124?(a.enter("tableCellDivider"),a.consume(ft),a.exit("tableCellDivider"),Ct=!0,xt):(a.enter("data"),et(ft)))}function et(ft){return ft===null||ft===124||markdownLineEndingOrSpace(ft)?(a.exit("data"),xt(ft)):(a.consume(ft),ft===92?Tt:et)}function Tt(ft){return ft===92||ft===124?(a.consume(ft),et):et(ft)}function yt(ft){return pt.interrupt=!1,pt.parser.lazy[pt.now().line]?_e(ft):(a.enter("tableDelimiterRow"),Ct=!1,markdownSpace(ft)?factorySpace(a,ut,"linePrefix",pt.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ft):ut(ft))}function ut(ft){return ft===45||ft===58?j(ft):ft===124?(Ct=!0,a.enter("tableCellDivider"),a.consume(ft),a.exit("tableCellDivider"),ht):ot(ft)}function ht(ft){return markdownSpace(ft)?factorySpace(a,j,"whitespace")(ft):j(ft)}function j(ft){return ft===58?(Gt+=1,Ct=!0,a.enter("tableDelimiterMarker"),a.consume(ft),a.exit("tableDelimiterMarker"),_):ft===45?(Gt+=1,_(ft)):ft===null||markdownLineEnding(ft)?st(ft):ot(ft)}function _(ft){return ft===45?(a.enter("tableDelimiterFiller"),rt(ft)):ot(ft)}function rt(ft){return ft===45?(a.consume(ft),rt):ft===58?(Ct=!0,a.exit("tableDelimiterFiller"),a.enter("tableDelimiterMarker"),a.consume(ft),a.exit("tableDelimiterMarker"),tt):(a.exit("tableDelimiterFiller"),tt(ft))}function tt(ft){return markdownSpace(ft)?factorySpace(a,st,"whitespace")(ft):st(ft)}function st(ft){return ft===124?ut(ft):ft===null||markdownLineEnding(ft)?!Ct||Lt!==Gt?ot(ft):(a.exit("tableDelimiterRow"),a.exit("tableHead"),i(ft)):ot(ft)}function ot(ft){return _e(ft)}function nt(ft){return a.enter("tableRow"),vt(ft)}function vt(ft){return ft===124?(a.enter("tableCellDivider"),a.consume(ft),a.exit("tableCellDivider"),vt):ft===null||markdownLineEnding(ft)?(a.exit("tableRow"),i(ft)):markdownSpace(ft)?factorySpace(a,vt,"whitespace")(ft):(a.enter("data"),dt(ft))}function dt(ft){return ft===null||ft===124||markdownLineEndingOrSpace(ft)?(a.exit("data"),vt(ft)):(a.consume(ft),ft===92?bt:dt)}function bt(ft){return ft===92||ft===124?(a.consume(ft),dt):dt(ft)}}function resolveTable(a,i){let _e=-1,pt=!0,Lt=0,Gt=[0,0,0,0],Ct=[0,0,0,0],Rt=!1,o=0,it,xt,et;const Tt=new EditMap;for(;++_e_e[2]+1){const ut=_e[2]+1,ht=_e[3]-_e[2]-1;a.add(ut,ht,[])}}a.add(_e[3]+1,0,[["exit",et,i]])}return Lt!==void 0&&(Gt.end=Object.assign({},getPoint(i.events,Lt)),a.add(Lt,0,[["exit",Gt,i]]),Gt=void 0),Gt}function flushTableEnd(a,i,_e,pt,Lt){const Gt=[],Ct=getPoint(i.events,_e);Lt&&(Lt.end=Object.assign({},Ct),Gt.push(["exit",Lt,i])),pt.end=Object.assign({},Ct),Gt.push(["exit",pt,i]),a.add(_e+1,0,Gt)}function getPoint(a,i){const _e=a[i],pt=_e[0]==="enter"?"start":"end";return _e[1][pt]}const tasklistCheck={tokenize:tokenizeTasklistCheck},gfmTaskListItem={text:{[91]:tasklistCheck}};function tokenizeTasklistCheck(a,i,_e){const pt=this;return Lt;function Lt(o){return pt.previous!==null||!pt._gfmTasklistFirstContentOfListItem?_e(o):(a.enter("taskListCheck"),a.enter("taskListCheckMarker"),a.consume(o),a.exit("taskListCheckMarker"),Gt)}function Gt(o){return markdownLineEndingOrSpace(o)?(a.enter("taskListCheckValueUnchecked"),a.consume(o),a.exit("taskListCheckValueUnchecked"),Ct):o===88||o===120?(a.enter("taskListCheckValueChecked"),a.consume(o),a.exit("taskListCheckValueChecked"),Ct):_e(o)}function Ct(o){return o===93?(a.enter("taskListCheckMarker"),a.consume(o),a.exit("taskListCheckMarker"),a.exit("taskListCheck"),Rt):_e(o)}function Rt(o){return markdownLineEnding(o)?i(o):markdownSpace(o)?a.check({tokenize:spaceThenNonSpace},i,_e)(o):_e(o)}}function spaceThenNonSpace(a,i,_e){return factorySpace(a,pt,"whitespace");function pt(Lt){return Lt===null?_e(Lt):i(Lt)}}function gfm(a){return combineExtensions([gfmAutolinkLiteral,gfmFootnote(),gfmStrikethrough(a),gfmTable,gfmTaskListItem])}function ccount(a,i){const _e=String(a);if(typeof i!="string")throw new TypeError("Expected character");let pt=0,Lt=_e.indexOf(i);for(;Lt!==-1;)pt++,Lt=_e.indexOf(i,Lt+i.length);return pt}function escapeStringRegexp(a){if(typeof a!="string")throw new TypeError("Expected a string");return a.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const own$7={}.hasOwnProperty,findAndReplace=function(a,i,_e,pt){let Lt,Gt;typeof i=="string"||i instanceof RegExp?(Gt=[[i,_e]],Lt=pt):(Gt=i,Lt=_e),Lt||(Lt={});const Ct=convert(Lt.ignore||[]),Rt=toPairs(Gt);let o=-1;for(;++o0?{type:"text",value:vt}:void 0),vt!==!1&&(j!==ot&&tt.push({type:"text",value:et.value.slice(j,ot)}),Array.isArray(vt)?tt.push(...vt):vt&&tt.push(vt),j=ot+st[0].length,rt=!0),!ut.global)break;st=ut.exec(et.value)}return rt?(ja}const inConstruct="phrasing",notInConstruct=["autolink","link","image","label"],gfmAutolinkLiteralFromMarkdown={transforms:[transformGfmAutolinkLiterals],enter:{literalAutolink:enterLiteralAutolink,literalAutolinkEmail:enterLiteralAutolinkValue,literalAutolinkHttp:enterLiteralAutolinkValue,literalAutolinkWww:enterLiteralAutolinkValue},exit:{literalAutolink:exitLiteralAutolink,literalAutolinkEmail:exitLiteralAutolinkEmail,literalAutolinkHttp:exitLiteralAutolinkHttp,literalAutolinkWww:exitLiteralAutolinkWww}},gfmAutolinkLiteralToMarkdown={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct,notInConstruct},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct,notInConstruct},{character:":",before:"[ps]",after:"\\/",inConstruct,notInConstruct}]};function enterLiteralAutolink(a){this.enter({type:"link",title:null,url:"",children:[]},a)}function enterLiteralAutolinkValue(a){this.config.enter.autolinkProtocol.call(this,a)}function exitLiteralAutolinkHttp(a){this.config.exit.autolinkProtocol.call(this,a)}function exitLiteralAutolinkWww(a){this.config.exit.data.call(this,a);const i=this.stack[this.stack.length-1];i.url="http://"+this.sliceSerialize(a)}function exitLiteralAutolinkEmail(a){this.config.exit.autolinkEmail.call(this,a)}function exitLiteralAutolink(a){this.exit(a)}function transformGfmAutolinkLiterals(a){findAndReplace(a,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,findUrl],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,findEmail]],{ignore:["link","linkReference"]})}function findUrl(a,i,_e,pt,Lt){let Gt="";if(!previous(Lt)||(/^w/i.test(i)&&(_e=i+_e,i="",Gt="http://"),!isCorrectDomain(_e)))return!1;const Ct=splitUrl(_e+pt);if(!Ct[0])return!1;const Rt={type:"link",title:null,url:Gt+i+Ct[0],children:[{type:"text",value:i+Ct[0]}]};return Ct[1]?[Rt,{type:"text",value:Ct[1]}]:Rt}function findEmail(a,i,_e,pt){return!previous(pt,!0)||/[-\d_]$/.test(_e)?!1:{type:"link",title:null,url:"mailto:"+i+"@"+_e,children:[{type:"text",value:i+"@"+_e}]}}function isCorrectDomain(a){const i=a.split(".");return!(i.length<2||i[i.length-1]&&(/_/.test(i[i.length-1])||!/[a-zA-Z\d]/.test(i[i.length-1]))||i[i.length-2]&&(/_/.test(i[i.length-2])||!/[a-zA-Z\d]/.test(i[i.length-2])))}function splitUrl(a){const i=/[!"&'),.:;<>?\]}]+$/.exec(a);if(!i)return[a,void 0];a=a.slice(0,i.index);let _e=i[0],pt=_e.indexOf(")");const Lt=ccount(a,"(");let Gt=ccount(a,")");for(;pt!==-1&&Lt>Gt;)a+=_e.slice(0,pt+1),_e=_e.slice(pt+1),pt=_e.indexOf(")"),Gt++;return[a,_e]}function previous(a,i){const _e=a.input.charCodeAt(a.index-1);return(a.index===0||unicodeWhitespace(_e)||unicodePunctuation(_e))&&(!i||_e!==47)}function association(a){return a.label||!a.identifier?a.label||"":decodeString(a.identifier)}function containerFlow(a,i,_e){const pt=i.indexStack,Lt=a.children||[],Gt=i.createTracker(_e),Ct=[];let Rt=-1;for(pt.push(-1);++Rt=it||xt+10?" ":"")),Lt.shift(4),Gt+=Lt.move(indentLines(containerFlow(a,_e,Lt.current()),map)),Ct(),Gt}function map(a,i,_e){return i===0?a:(_e?"":" ")+a}function containerPhrasing(a,i,_e){const pt=i.indexStack,Lt=a.children||[],Gt=[];let Ct=-1,Rt=_e.before;pt.push(-1);let o=i.createTracker(_e);for(;++Ct0&&(Rt==="\r"||Rt===` -`)&&it.type==="html"&&(Gt[Gt.length-1]=Gt[Gt.length-1].replace(/(\r?\n|\r)$/," "),Rt=" ",o=i.createTracker(_e),o.move(Gt.join(""))),Gt.push(o.move(i.handle(it,a,i,{...o.current(),before:Rt,after:xt}))),Rt=Gt[Gt.length-1].slice(-1)}return pt.pop(),Gt.join("")}const constructsWithoutStrikethrough=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];handleDelete.peek=peekDelete;const gfmStrikethroughFromMarkdown={canContainEols:["delete"],enter:{strikethrough:enterStrikethrough},exit:{strikethrough:exitStrikethrough}},gfmStrikethroughToMarkdown={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:constructsWithoutStrikethrough}],handlers:{delete:handleDelete}};function enterStrikethrough(a){this.enter({type:"delete",children:[]},a)}function exitStrikethrough(a){this.exit(a)}function handleDelete(a,i,_e,pt){const Lt=track(pt),Gt=_e.enter("strikethrough");let Ct=Lt.move("~~");return Ct+=containerPhrasing(a,_e,{...Lt.current(),before:Ct,after:"~"}),Ct+=Lt.move("~~"),Gt(),Ct}function peekDelete(){return"~"}inlineCode.peek=inlineCodePeek;function inlineCode(a,i,_e){let pt=a.value||"",Lt="`",Gt=-1;for(;new RegExp("(^|[^`])"+Lt+"([^`]|$)").test(pt);)Lt+="`";for(/[^ \r\n]/.test(pt)&&(/^[ \r\n]/.test(pt)&&/[ \r\n]$/.test(pt)||/^`|`$/.test(pt))&&(pt=" "+pt+" ");++Gt<_e.unsafe.length;){const Ct=_e.unsafe[Gt],Rt=patternCompile(Ct);let o;if(Ct.atBreak)for(;o=Rt.exec(pt);){let it=o.index;pt.charCodeAt(it)===10&&pt.charCodeAt(it-1)===13&&it--,pt=pt.slice(0,it)+" "+pt.slice(o.index+1)}}return Lt+pt+Lt}function inlineCodePeek(){return"`"}function markdownTable(a,i={}){const _e=(i.align||[]).concat(),pt=i.stringLength||defaultStringLength,Lt=[],Gt=[],Ct=[],Rt=[];let o=0,it=-1;for(;++ito&&(o=a[it].length);++jRt[j])&&(Rt[j]=rt)}ut.push(_)}Gt[it]=ut,Ct[it]=ht}let xt=-1;if(typeof _e=="object"&&"length"in _e)for(;++xtRt[xt]&&(Rt[xt]=_),Et[xt]=_),et[xt]=rt}Gt.splice(1,0,et),Ct.splice(1,0,Et),it=-1;const mt=[];for(;++it=it||xt+10?" ":"")),Lt.shift(4),Gt+=Lt.move(indentLines(containerFlow(a,_e,Lt.current()),map)),Ct(),Gt}function map(a,i,_e){return i===0?a:(_e?"":" ")+a}function containerPhrasing(a,i,_e){const pt=i.indexStack,Lt=a.children||[],Gt=[];let Ct=-1,Rt=_e.before;pt.push(-1);let o=i.createTracker(_e);for(;++Ct0&&(Rt==="\r"||Rt===` +`)&&it.type==="html"&&(Gt[Gt.length-1]=Gt[Gt.length-1].replace(/(\r?\n|\r)$/," "),Rt=" ",o=i.createTracker(_e),o.move(Gt.join(""))),Gt.push(o.move(i.handle(it,a,i,{...o.current(),before:Rt,after:xt}))),Rt=Gt[Gt.length-1].slice(-1)}return pt.pop(),Gt.join("")}const constructsWithoutStrikethrough=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];handleDelete.peek=peekDelete;const gfmStrikethroughFromMarkdown={canContainEols:["delete"],enter:{strikethrough:enterStrikethrough},exit:{strikethrough:exitStrikethrough}},gfmStrikethroughToMarkdown={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:constructsWithoutStrikethrough}],handlers:{delete:handleDelete}};function enterStrikethrough(a){this.enter({type:"delete",children:[]},a)}function exitStrikethrough(a){this.exit(a)}function handleDelete(a,i,_e,pt){const Lt=track(pt),Gt=_e.enter("strikethrough");let Ct=Lt.move("~~");return Ct+=containerPhrasing(a,_e,{...Lt.current(),before:Ct,after:"~"}),Ct+=Lt.move("~~"),Gt(),Ct}function peekDelete(){return"~"}inlineCode.peek=inlineCodePeek;function inlineCode(a,i,_e){let pt=a.value||"",Lt="`",Gt=-1;for(;new RegExp("(^|[^`])"+Lt+"([^`]|$)").test(pt);)Lt+="`";for(/[^ \r\n]/.test(pt)&&(/^[ \r\n]/.test(pt)&&/[ \r\n]$/.test(pt)||/^`|`$/.test(pt))&&(pt=" "+pt+" ");++Gt<_e.unsafe.length;){const Ct=_e.unsafe[Gt],Rt=patternCompile(Ct);let o;if(Ct.atBreak)for(;o=Rt.exec(pt);){let it=o.index;pt.charCodeAt(it)===10&&pt.charCodeAt(it-1)===13&&it--,pt=pt.slice(0,it)+" "+pt.slice(o.index+1)}}return Lt+pt+Lt}function inlineCodePeek(){return"`"}function markdownTable(a,i={}){const _e=(i.align||[]).concat(),pt=i.stringLength||defaultStringLength,Lt=[],Gt=[],Ct=[],Rt=[];let o=0,it=-1;for(;++ito&&(o=a[it].length);++jRt[j])&&(Rt[j]=rt)}ut.push(_)}Gt[it]=ut,Ct[it]=ht}let xt=-1;if(typeof _e=="object"&&"length"in _e)for(;++xtRt[xt]&&(Rt[xt]=_),Tt[xt]=_),et[xt]=rt}Gt.splice(1,0,et),Ct.splice(1,0,Tt),it=-1;const yt=[];for(;++it_e==="none"?null:_e),children:[]},a),this.setData("inTable",!0)}function exitTable(a){this.exit(a),this.setData("inTable")}function enterRow(a){this.enter({type:"tableRow",children:[]},a)}function exit(a){this.exit(a)}function enterCell(a){this.enter({type:"tableCell",children:[]},a)}function exitCodeText(a){let i=this.resume();this.getData("inTable")&&(i=i.replace(/\\([\\|])/g,replace));const _e=this.stack[this.stack.length-1];_e.value=i,this.exit(a)}function replace(a,i){return i==="|"?i:a}function gfmTableToMarkdown(a){const i=a||{},_e=i.tableCellPadding,pt=i.tablePipeAlign,Lt=i.stringLength,Gt=_e?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` -`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:Ct,tableRow:Rt,tableCell:o,inlineCode:Et}};function Ct(mt,ut,ht,j){return it(xt(mt,ht,j),mt.align)}function Rt(mt,ut,ht,j){const _=et(mt,ht,j),rt=it([_]);return rt.slice(0,rt.indexOf(` -`))}function o(mt,ut,ht,j){const _=ht.enter("tableCell"),rt=ht.enter("phrasing"),tt=containerPhrasing(mt,ht,{...j,before:Gt,after:Gt});return rt(),_(),tt}function it(mt,ut){return markdownTable(mt,{align:ut,alignDelimiters:pt,padding:_e,stringLength:Lt})}function xt(mt,ut,ht){const j=mt.children;let _=-1;const rt=[],tt=ut.enter("table");for(;++_-1?i.start:1)+(_e.options.incrementListMarker===!1?0:i.children.indexOf(a))+Gt);let Ct=Gt.length+1;(Lt==="tab"||Lt==="mixed"&&(i&&i.type==="list"&&i.spread||a.spread))&&(Ct=Math.ceil(Ct/4)*4);const Rt=_e.createTracker(pt);Rt.move(Gt+" ".repeat(Ct-Gt.length)),Rt.shift(Ct);const o=_e.enter("listItem"),it=_e.indentLines(_e.containerFlow(a,Rt.current()),xt);return o(),it;function xt(et,Et,mt){return Et?(mt?"":" ".repeat(Ct))+et:(mt?Gt:Gt+" ".repeat(Ct-Gt.length))+et}}const gfmTaskListItemFromMarkdown={exit:{taskListCheckValueChecked:exitCheck,taskListCheckValueUnchecked:exitCheck,paragraph:exitParagraphWithTaskListItem}},gfmTaskListItemToMarkdown={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:listItemWithTaskListItem}};function exitCheck(a){const i=this.stack[this.stack.length-2];i.checked=a.type==="taskListCheckValueChecked"}function exitParagraphWithTaskListItem(a){const i=this.stack[this.stack.length-2];if(i&&i.type==="listItem"&&typeof i.checked=="boolean"){const _e=this.stack[this.stack.length-1],pt=_e.children[0];if(pt&&pt.type==="text"){const Lt=i.children;let Gt=-1,Ct;for(;++Gt=55296&&a<=57343};unicode$3.isSurrogatePair=function(a){return a>=56320&&a<=57343};unicode$3.getSurrogatePairCodePoint=function(a,i){return(a-55296)*1024+9216+i};unicode$3.isControlCodePoint=function(a){return a!==32&&a!==10&&a!==13&&a!==9&&a!==12&&a>=1&&a<=31||a>=127&&a<=159};unicode$3.isUndefinedCodePoint=function(a){return a>=64976&&a<=65007||UNDEFINED_CODE_POINTS.indexOf(a)>-1};var errorCodes={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"};const unicode$2=unicode$3,ERR$2=errorCodes,$$6=unicode$2.CODE_POINTS,DEFAULT_BUFFER_WATERLINE=1<<16;let Preprocessor$1=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=DEFAULT_BUFFER_WATERLINE}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(i){if(this.pos!==this.lastCharPos){const _e=this.html.charCodeAt(this.pos+1);if(unicode$2.isSurrogatePair(_e))return this.pos++,this._addGap(),unicode$2.getSurrogatePairCodePoint(i,_e)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,$$6.EOF;return this._err(ERR$2.surrogateInInputStream),i}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(i,_e){this.html?this.html+=i:this.html=i,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=_e}insertHtmlAtCurrentPos(i){this.html=this.html.substring(0,this.pos+1)+i+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,$$6.EOF;let i=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&i===$$6.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):i===$$6.CARRIAGE_RETURN?(this.skipNextNewLine=!0,$$6.LINE_FEED):(this.skipNextNewLine=!1,unicode$2.isSurrogate(i)&&(i=this._processSurrogate(i)),i>31&&i<127||i===$$6.LINE_FEED||i===$$6.CARRIAGE_RETURN||i>159&&i<64976||this._checkForProblematicCharacters(i),i)}_checkForProblematicCharacters(i){unicode$2.isControlCodePoint(i)?this._err(ERR$2.controlCharacterInInputStream):unicode$2.isUndefinedCodePoint(i)&&this._err(ERR$2.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}};var preprocessor=Preprocessor$1,namedEntityData=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204]);const Preprocessor=preprocessor,unicode$1=unicode$3,neTree=namedEntityData,ERR$1=errorCodes,$$5=unicode$1.CODE_POINTS,$$=unicode$1.CODE_POINT_SEQUENCES,C1_CONTROLS_REFERENCE_REPLACEMENTS={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},HAS_DATA_FLAG=1<<0,DATA_DUPLET_FLAG=1<<1,HAS_BRANCHES_FLAG=1<<2,MAX_BRANCH_MARKER_VALUE=HAS_DATA_FLAG|DATA_DUPLET_FLAG|HAS_BRANCHES_FLAG,DATA_STATE="DATA_STATE",RCDATA_STATE="RCDATA_STATE",RAWTEXT_STATE="RAWTEXT_STATE",SCRIPT_DATA_STATE="SCRIPT_DATA_STATE",PLAINTEXT_STATE="PLAINTEXT_STATE",TAG_OPEN_STATE="TAG_OPEN_STATE",END_TAG_OPEN_STATE="END_TAG_OPEN_STATE",TAG_NAME_STATE="TAG_NAME_STATE",RCDATA_LESS_THAN_SIGN_STATE="RCDATA_LESS_THAN_SIGN_STATE",RCDATA_END_TAG_OPEN_STATE="RCDATA_END_TAG_OPEN_STATE",RCDATA_END_TAG_NAME_STATE="RCDATA_END_TAG_NAME_STATE",RAWTEXT_LESS_THAN_SIGN_STATE="RAWTEXT_LESS_THAN_SIGN_STATE",RAWTEXT_END_TAG_OPEN_STATE="RAWTEXT_END_TAG_OPEN_STATE",RAWTEXT_END_TAG_NAME_STATE="RAWTEXT_END_TAG_NAME_STATE",SCRIPT_DATA_LESS_THAN_SIGN_STATE="SCRIPT_DATA_LESS_THAN_SIGN_STATE",SCRIPT_DATA_END_TAG_OPEN_STATE="SCRIPT_DATA_END_TAG_OPEN_STATE",SCRIPT_DATA_END_TAG_NAME_STATE="SCRIPT_DATA_END_TAG_NAME_STATE",SCRIPT_DATA_ESCAPE_START_STATE="SCRIPT_DATA_ESCAPE_START_STATE",SCRIPT_DATA_ESCAPE_START_DASH_STATE="SCRIPT_DATA_ESCAPE_START_DASH_STATE",SCRIPT_DATA_ESCAPED_STATE="SCRIPT_DATA_ESCAPED_STATE",SCRIPT_DATA_ESCAPED_DASH_STATE="SCRIPT_DATA_ESCAPED_DASH_STATE",SCRIPT_DATA_ESCAPED_DASH_DASH_STATE="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",SCRIPT_DATA_DOUBLE_ESCAPED_STATE="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",BEFORE_ATTRIBUTE_NAME_STATE="BEFORE_ATTRIBUTE_NAME_STATE",ATTRIBUTE_NAME_STATE="ATTRIBUTE_NAME_STATE",AFTER_ATTRIBUTE_NAME_STATE="AFTER_ATTRIBUTE_NAME_STATE",BEFORE_ATTRIBUTE_VALUE_STATE="BEFORE_ATTRIBUTE_VALUE_STATE",ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",ATTRIBUTE_VALUE_UNQUOTED_STATE="ATTRIBUTE_VALUE_UNQUOTED_STATE",AFTER_ATTRIBUTE_VALUE_QUOTED_STATE="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",SELF_CLOSING_START_TAG_STATE="SELF_CLOSING_START_TAG_STATE",BOGUS_COMMENT_STATE="BOGUS_COMMENT_STATE",MARKUP_DECLARATION_OPEN_STATE="MARKUP_DECLARATION_OPEN_STATE",COMMENT_START_STATE="COMMENT_START_STATE",COMMENT_START_DASH_STATE="COMMENT_START_DASH_STATE",COMMENT_STATE="COMMENT_STATE",COMMENT_LESS_THAN_SIGN_STATE="COMMENT_LESS_THAN_SIGN_STATE",COMMENT_LESS_THAN_SIGN_BANG_STATE="COMMENT_LESS_THAN_SIGN_BANG_STATE",COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",COMMENT_END_DASH_STATE="COMMENT_END_DASH_STATE",COMMENT_END_STATE="COMMENT_END_STATE",COMMENT_END_BANG_STATE="COMMENT_END_BANG_STATE",DOCTYPE_STATE="DOCTYPE_STATE",BEFORE_DOCTYPE_NAME_STATE="BEFORE_DOCTYPE_NAME_STATE",DOCTYPE_NAME_STATE="DOCTYPE_NAME_STATE",AFTER_DOCTYPE_NAME_STATE="AFTER_DOCTYPE_NAME_STATE",AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",BOGUS_DOCTYPE_STATE="BOGUS_DOCTYPE_STATE",CDATA_SECTION_STATE="CDATA_SECTION_STATE",CDATA_SECTION_BRACKET_STATE="CDATA_SECTION_BRACKET_STATE",CDATA_SECTION_END_STATE="CDATA_SECTION_END_STATE",CHARACTER_REFERENCE_STATE="CHARACTER_REFERENCE_STATE",NAMED_CHARACTER_REFERENCE_STATE="NAMED_CHARACTER_REFERENCE_STATE",AMBIGUOUS_AMPERSAND_STATE="AMBIGUOS_AMPERSAND_STATE",NUMERIC_CHARACTER_REFERENCE_STATE="NUMERIC_CHARACTER_REFERENCE_STATE",HEXADEMICAL_CHARACTER_REFERENCE_START_STATE="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",DECIMAL_CHARACTER_REFERENCE_START_STATE="DECIMAL_CHARACTER_REFERENCE_START_STATE",HEXADEMICAL_CHARACTER_REFERENCE_STATE="HEXADEMICAL_CHARACTER_REFERENCE_STATE",DECIMAL_CHARACTER_REFERENCE_STATE="DECIMAL_CHARACTER_REFERENCE_STATE",NUMERIC_CHARACTER_REFERENCE_END_STATE="NUMERIC_CHARACTER_REFERENCE_END_STATE";function isWhitespace(a){return a===$$5.SPACE||a===$$5.LINE_FEED||a===$$5.TABULATION||a===$$5.FORM_FEED}function isAsciiDigit(a){return a>=$$5.DIGIT_0&&a<=$$5.DIGIT_9}function isAsciiUpper(a){return a>=$$5.LATIN_CAPITAL_A&&a<=$$5.LATIN_CAPITAL_Z}function isAsciiLower(a){return a>=$$5.LATIN_SMALL_A&&a<=$$5.LATIN_SMALL_Z}function isAsciiLetter(a){return isAsciiLower(a)||isAsciiUpper(a)}function isAsciiAlphaNumeric(a){return isAsciiLetter(a)||isAsciiDigit(a)}function isAsciiUpperHexDigit(a){return a>=$$5.LATIN_CAPITAL_A&&a<=$$5.LATIN_CAPITAL_F}function isAsciiLowerHexDigit(a){return a>=$$5.LATIN_SMALL_A&&a<=$$5.LATIN_SMALL_F}function isAsciiHexDigit(a){return isAsciiDigit(a)||isAsciiUpperHexDigit(a)||isAsciiLowerHexDigit(a)}function toAsciiLowerCodePoint(a){return a+32}function toChar(a){return a<=65535?String.fromCharCode(a):(a-=65536,String.fromCharCode(a>>>10&1023|55296)+String.fromCharCode(56320|a&1023))}function toAsciiLowerChar(a){return String.fromCharCode(toAsciiLowerCodePoint(a))}function findNamedEntityTreeBranch(a,i){const _e=neTree[++a];let pt=++a,Lt=pt+_e-1;for(;pt<=Lt;){const Gt=pt+Lt>>>1,Ct=neTree[Gt];if(Cti)Lt=Gt-1;else return neTree[Gt+_e]}return-1}let Tokenizer$4=class G1{constructor(){this.preprocessor=new Preprocessor,this.tokenQueue=[],this.allowCDATA=!1,this.state=DATA_STATE,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(i){this._consume(),this._err(i),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const i=this._consume();this._ensureHibernation()||this[this.state](i)}return this.tokenQueue.shift()}write(i,_e){this.active=!0,this.preprocessor.write(i,_e)}insertHtmlAtCurrentPos(i){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(i)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:G1.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(i){this.state=i,this._unconsume()}_consumeSequenceIfMatch(i,_e,pt){let Lt=0,Gt=!0;const Ct=i.length;let Rt=0,o=_e,it;for(;Rt0&&(o=this._consume(),Lt++),o===$$5.EOF){Gt=!1;break}if(it=i[Rt],o!==it&&(pt||o!==toAsciiLowerCodePoint(it))){Gt=!1;break}}if(!Gt)for(;Lt--;)this._unconsume();return Gt}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==$$.SCRIPT_STRING.length)return!1;for(let i=0;i0&&this._err(ERR$1.endTagWithAttributes),i.selfClosing&&this._err(ERR$1.endTagWithTrailingSolidus)),this.tokenQueue.push(i)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(i,_e){this.currentCharacterToken&&this.currentCharacterToken.type!==i&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=_e:this._createCharacterToken(i,_e)}_emitCodePoint(i){let _e=G1.CHARACTER_TOKEN;isWhitespace(i)?_e=G1.WHITESPACE_CHARACTER_TOKEN:i===$$5.NULL&&(_e=G1.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(_e,toChar(i))}_emitSeveralCodePoints(i){for(let _e=0;_e-1;){const Gt=neTree[Lt],Ct=Gt")):i===$$5.NULL?(this._err(ERR$1.unexpectedNullCharacter),this.state=SCRIPT_DATA_ESCAPED_STATE,this._emitChars(unicode$1.REPLACEMENT_CHARACTER)):i===$$5.EOF?(this._err(ERR$1.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=SCRIPT_DATA_ESCAPED_STATE,this._emitCodePoint(i))}[SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE](i){i===$$5.SOLIDUS?(this.tempBuff=[],this.state=SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE):isAsciiLetter(i)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE)):(this._emitChars("<"),this._reconsumeInState(SCRIPT_DATA_ESCAPED_STATE))}[SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE](i){isAsciiLetter(i)?(this._createEndTagToken(),this._reconsumeInState(SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE)):(this._emitChars("")):i===$$5.NULL?(this._err(ERR$1.unexpectedNullCharacter),this.state=SCRIPT_DATA_DOUBLE_ESCAPED_STATE,this._emitChars(unicode$1.REPLACEMENT_CHARACTER)):i===$$5.EOF?(this._err(ERR$1.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=SCRIPT_DATA_DOUBLE_ESCAPED_STATE,this._emitCodePoint(i))}[SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE](i){i===$$5.SOLIDUS?(this.tempBuff=[],this.state=SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE,this._emitChars("/")):this._reconsumeInState(SCRIPT_DATA_DOUBLE_ESCAPED_STATE)}[SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE](i){isWhitespace(i)||i===$$5.SOLIDUS||i===$$5.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?SCRIPT_DATA_ESCAPED_STATE:SCRIPT_DATA_DOUBLE_ESCAPED_STATE,this._emitCodePoint(i)):isAsciiUpper(i)?(this.tempBuff.push(toAsciiLowerCodePoint(i)),this._emitCodePoint(i)):isAsciiLower(i)?(this.tempBuff.push(i),this._emitCodePoint(i)):this._reconsumeInState(SCRIPT_DATA_DOUBLE_ESCAPED_STATE)}[BEFORE_ATTRIBUTE_NAME_STATE](i){isWhitespace(i)||(i===$$5.SOLIDUS||i===$$5.GREATER_THAN_SIGN||i===$$5.EOF?this._reconsumeInState(AFTER_ATTRIBUTE_NAME_STATE):i===$$5.EQUALS_SIGN?(this._err(ERR$1.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=ATTRIBUTE_NAME_STATE):(this._createAttr(""),this._reconsumeInState(ATTRIBUTE_NAME_STATE)))}[ATTRIBUTE_NAME_STATE](i){isWhitespace(i)||i===$$5.SOLIDUS||i===$$5.GREATER_THAN_SIGN||i===$$5.EOF?(this._leaveAttrName(AFTER_ATTRIBUTE_NAME_STATE),this._unconsume()):i===$$5.EQUALS_SIGN?this._leaveAttrName(BEFORE_ATTRIBUTE_VALUE_STATE):isAsciiUpper(i)?this.currentAttr.name+=toAsciiLowerChar(i):i===$$5.QUOTATION_MARK||i===$$5.APOSTROPHE||i===$$5.LESS_THAN_SIGN?(this._err(ERR$1.unexpectedCharacterInAttributeName),this.currentAttr.name+=toChar(i)):i===$$5.NULL?(this._err(ERR$1.unexpectedNullCharacter),this.currentAttr.name+=unicode$1.REPLACEMENT_CHARACTER):this.currentAttr.name+=toChar(i)}[AFTER_ATTRIBUTE_NAME_STATE](i){isWhitespace(i)||(i===$$5.SOLIDUS?this.state=SELF_CLOSING_START_TAG_STATE:i===$$5.EQUALS_SIGN?this.state=BEFORE_ATTRIBUTE_VALUE_STATE:i===$$5.GREATER_THAN_SIGN?(this.state=DATA_STATE,this._emitCurrentToken()):i===$$5.EOF?(this._err(ERR$1.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(ATTRIBUTE_NAME_STATE)))}[BEFORE_ATTRIBUTE_VALUE_STATE](i){isWhitespace(i)||(i===$$5.QUOTATION_MARK?this.state=ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE:i===$$5.APOSTROPHE?this.state=ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE:i===$$5.GREATER_THAN_SIGN?(this._err(ERR$1.missingAttributeValue),this.state=DATA_STATE,this._emitCurrentToken()):this._reconsumeInState(ATTRIBUTE_VALUE_UNQUOTED_STATE))}[ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE](i){i===$$5.QUOTATION_MARK?this.state=AFTER_ATTRIBUTE_VALUE_QUOTED_STATE:i===$$5.AMPERSAND?(this.returnState=ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE,this.state=CHARACTER_REFERENCE_STATE):i===$$5.NULL?(this._err(ERR$1.unexpectedNullCharacter),this.currentAttr.value+=unicode$1.REPLACEMENT_CHARACTER):i===$$5.EOF?(this._err(ERR$1.eofInTag),this._emitEOFToken()):this.currentAttr.value+=toChar(i)}[ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE](i){i===$$5.APOSTROPHE?this.state=AFTER_ATTRIBUTE_VALUE_QUOTED_STATE:i===$$5.AMPERSAND?(this.returnState=ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE,this.state=CHARACTER_REFERENCE_STATE):i===$$5.NULL?(this._err(ERR$1.unexpectedNullCharacter),this.currentAttr.value+=unicode$1.REPLACEMENT_CHARACTER):i===$$5.EOF?(this._err(ERR$1.eofInTag),this._emitEOFToken()):this.currentAttr.value+=toChar(i)}[ATTRIBUTE_VALUE_UNQUOTED_STATE](i){isWhitespace(i)?this._leaveAttrValue(BEFORE_ATTRIBUTE_NAME_STATE):i===$$5.AMPERSAND?(this.returnState=ATTRIBUTE_VALUE_UNQUOTED_STATE,this.state=CHARACTER_REFERENCE_STATE):i===$$5.GREATER_THAN_SIGN?(this._leaveAttrValue(DATA_STATE),this._emitCurrentToken()):i===$$5.NULL?(this._err(ERR$1.unexpectedNullCharacter),this.currentAttr.value+=unicode$1.REPLACEMENT_CHARACTER):i===$$5.QUOTATION_MARK||i===$$5.APOSTROPHE||i===$$5.LESS_THAN_SIGN||i===$$5.EQUALS_SIGN||i===$$5.GRAVE_ACCENT?(this._err(ERR$1.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=toChar(i)):i===$$5.EOF?(this._err(ERR$1.eofInTag),this._emitEOFToken()):this.currentAttr.value+=toChar(i)}[AFTER_ATTRIBUTE_VALUE_QUOTED_STATE](i){isWhitespace(i)?this._leaveAttrValue(BEFORE_ATTRIBUTE_NAME_STATE):i===$$5.SOLIDUS?this._leaveAttrValue(SELF_CLOSING_START_TAG_STATE):i===$$5.GREATER_THAN_SIGN?(this._leaveAttrValue(DATA_STATE),this._emitCurrentToken()):i===$$5.EOF?(this._err(ERR$1.eofInTag),this._emitEOFToken()):(this._err(ERR$1.missingWhitespaceBetweenAttributes),this._reconsumeInState(BEFORE_ATTRIBUTE_NAME_STATE))}[SELF_CLOSING_START_TAG_STATE](i){i===$$5.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=DATA_STATE,this._emitCurrentToken()):i===$$5.EOF?(this._err(ERR$1.eofInTag),this._emitEOFToken()):(this._err(ERR$1.unexpectedSolidusInTag),this._reconsumeInState(BEFORE_ATTRIBUTE_NAME_STATE))}[BOGUS_COMMENT_STATE](i){i===$$5.GREATER_THAN_SIGN?(this.state=DATA_STATE,this._emitCurrentToken()):i===$$5.EOF?(this._emitCurrentToken(),this._emitEOFToken()):i===$$5.NULL?(this._err(ERR$1.unexpectedNullCharacter),this.currentToken.data+=unicode$1.REPLACEMENT_CHARACTER):this.currentToken.data+=toChar(i)}[MARKUP_DECLARATION_OPEN_STATE](i){this._consumeSequenceIfMatch($$.DASH_DASH_STRING,i,!0)?(this._createCommentToken(),this.state=COMMENT_START_STATE):this._consumeSequenceIfMatch($$.DOCTYPE_STRING,i,!1)?this.state=DOCTYPE_STATE:this._consumeSequenceIfMatch($$.CDATA_START_STRING,i,!0)?this.allowCDATA?this.state=CDATA_SECTION_STATE:(this._err(ERR$1.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=BOGUS_COMMENT_STATE):this._ensureHibernation()||(this._err(ERR$1.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(BOGUS_COMMENT_STATE))}[COMMENT_START_STATE](i){i===$$5.HYPHEN_MINUS?this.state=COMMENT_START_DASH_STATE:i===$$5.GREATER_THAN_SIGN?(this._err(ERR$1.abruptClosingOfEmptyComment),this.state=DATA_STATE,this._emitCurrentToken()):this._reconsumeInState(COMMENT_STATE)}[COMMENT_START_DASH_STATE](i){i===$$5.HYPHEN_MINUS?this.state=COMMENT_END_STATE:i===$$5.GREATER_THAN_SIGN?(this._err(ERR$1.abruptClosingOfEmptyComment),this.state=DATA_STATE,this._emitCurrentToken()):i===$$5.EOF?(this._err(ERR$1.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(COMMENT_STATE))}[COMMENT_STATE](i){i===$$5.HYPHEN_MINUS?this.state=COMMENT_END_DASH_STATE:i===$$5.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=COMMENT_LESS_THAN_SIGN_STATE):i===$$5.NULL?(this._err(ERR$1.unexpectedNullCharacter),this.currentToken.data+=unicode$1.REPLACEMENT_CHARACTER):i===$$5.EOF?(this._err(ERR$1.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=toChar(i)}[COMMENT_LESS_THAN_SIGN_STATE](i){i===$$5.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=COMMENT_LESS_THAN_SIGN_BANG_STATE):i===$$5.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(COMMENT_STATE)}[COMMENT_LESS_THAN_SIGN_BANG_STATE](i){i===$$5.HYPHEN_MINUS?this.state=COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE:this._reconsumeInState(COMMENT_STATE)}[COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE](i){i===$$5.HYPHEN_MINUS?this.state=COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE:this._reconsumeInState(COMMENT_END_DASH_STATE)}[COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE](i){i!==$$5.GREATER_THAN_SIGN&&i!==$$5.EOF&&this._err(ERR$1.nestedComment),this._reconsumeInState(COMMENT_END_STATE)}[COMMENT_END_DASH_STATE](i){i===$$5.HYPHEN_MINUS?this.state=COMMENT_END_STATE:i===$$5.EOF?(this._err(ERR$1.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(COMMENT_STATE))}[COMMENT_END_STATE](i){i===$$5.GREATER_THAN_SIGN?(this.state=DATA_STATE,this._emitCurrentToken()):i===$$5.EXCLAMATION_MARK?this.state=COMMENT_END_BANG_STATE:i===$$5.HYPHEN_MINUS?this.currentToken.data+="-":i===$$5.EOF?(this._err(ERR$1.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(COMMENT_STATE))}[COMMENT_END_BANG_STATE](i){i===$$5.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=COMMENT_END_DASH_STATE):i===$$5.GREATER_THAN_SIGN?(this._err(ERR$1.incorrectlyClosedComment),this.state=DATA_STATE,this._emitCurrentToken()):i===$$5.EOF?(this._err(ERR$1.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(COMMENT_STATE))}[DOCTYPE_STATE](i){isWhitespace(i)?this.state=BEFORE_DOCTYPE_NAME_STATE:i===$$5.GREATER_THAN_SIGN?this._reconsumeInState(BEFORE_DOCTYPE_NAME_STATE):i===$$5.EOF?(this._err(ERR$1.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ERR$1.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(BEFORE_DOCTYPE_NAME_STATE))}[BEFORE_DOCTYPE_NAME_STATE](i){isWhitespace(i)||(isAsciiUpper(i)?(this._createDoctypeToken(toAsciiLowerChar(i)),this.state=DOCTYPE_NAME_STATE):i===$$5.NULL?(this._err(ERR$1.unexpectedNullCharacter),this._createDoctypeToken(unicode$1.REPLACEMENT_CHARACTER),this.state=DOCTYPE_NAME_STATE):i===$$5.GREATER_THAN_SIGN?(this._err(ERR$1.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=DATA_STATE):i===$$5.EOF?(this._err(ERR$1.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(toChar(i)),this.state=DOCTYPE_NAME_STATE))}[DOCTYPE_NAME_STATE](i){isWhitespace(i)?this.state=AFTER_DOCTYPE_NAME_STATE:i===$$5.GREATER_THAN_SIGN?(this.state=DATA_STATE,this._emitCurrentToken()):isAsciiUpper(i)?this.currentToken.name+=toAsciiLowerChar(i):i===$$5.NULL?(this._err(ERR$1.unexpectedNullCharacter),this.currentToken.name+=unicode$1.REPLACEMENT_CHARACTER):i===$$5.EOF?(this._err(ERR$1.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=toChar(i)}[AFTER_DOCTYPE_NAME_STATE](i){isWhitespace(i)||(i===$$5.GREATER_THAN_SIGN?(this.state=DATA_STATE,this._emitCurrentToken()):i===$$5.EOF?(this._err(ERR$1.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch($$.PUBLIC_STRING,i,!1)?this.state=AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE:this._consumeSequenceIfMatch($$.SYSTEM_STRING,i,!1)?this.state=AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE:this._ensureHibernation()||(this._err(ERR$1.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(BOGUS_DOCTYPE_STATE)))}[AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE](i){isWhitespace(i)?this.state=BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE:i===$$5.QUOTATION_MARK?(this._err(ERR$1.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE):i===$$5.APOSTROPHE?(this._err(ERR$1.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE):i===$$5.GREATER_THAN_SIGN?(this._err(ERR$1.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=DATA_STATE,this._emitCurrentToken()):i===$$5.EOF?(this._err(ERR$1.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ERR$1.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(BOGUS_DOCTYPE_STATE))}[BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE](i){isWhitespace(i)||(i===$$5.QUOTATION_MARK?(this.currentToken.publicId="",this.state=DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE):i===$$5.APOSTROPHE?(this.currentToken.publicId="",this.state=DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE):i===$$5.GREATER_THAN_SIGN?(this._err(ERR$1.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=DATA_STATE,this._emitCurrentToken()):i===$$5.EOF?(this._err(ERR$1.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ERR$1.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(BOGUS_DOCTYPE_STATE)))}[DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE](i){i===$$5.QUOTATION_MARK?this.state=AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE:i===$$5.NULL?(this._err(ERR$1.unexpectedNullCharacter),this.currentToken.publicId+=unicode$1.REPLACEMENT_CHARACTER):i===$$5.GREATER_THAN_SIGN?(this._err(ERR$1.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=DATA_STATE):i===$$5.EOF?(this._err(ERR$1.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=toChar(i)}[DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE](i){i===$$5.APOSTROPHE?this.state=AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE:i===$$5.NULL?(this._err(ERR$1.unexpectedNullCharacter),this.currentToken.publicId+=unicode$1.REPLACEMENT_CHARACTER):i===$$5.GREATER_THAN_SIGN?(this._err(ERR$1.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=DATA_STATE):i===$$5.EOF?(this._err(ERR$1.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=toChar(i)}[AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE](i){isWhitespace(i)?this.state=BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE:i===$$5.GREATER_THAN_SIGN?(this.state=DATA_STATE,this._emitCurrentToken()):i===$$5.QUOTATION_MARK?(this._err(ERR$1.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE):i===$$5.APOSTROPHE?(this._err(ERR$1.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE):i===$$5.EOF?(this._err(ERR$1.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ERR$1.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(BOGUS_DOCTYPE_STATE))}[BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE](i){isWhitespace(i)||(i===$$5.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=DATA_STATE):i===$$5.QUOTATION_MARK?(this.currentToken.systemId="",this.state=DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE):i===$$5.APOSTROPHE?(this.currentToken.systemId="",this.state=DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE):i===$$5.EOF?(this._err(ERR$1.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ERR$1.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(BOGUS_DOCTYPE_STATE)))}[AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE](i){isWhitespace(i)?this.state=BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE:i===$$5.QUOTATION_MARK?(this._err(ERR$1.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE):i===$$5.APOSTROPHE?(this._err(ERR$1.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE):i===$$5.GREATER_THAN_SIGN?(this._err(ERR$1.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=DATA_STATE,this._emitCurrentToken()):i===$$5.EOF?(this._err(ERR$1.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ERR$1.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(BOGUS_DOCTYPE_STATE))}[BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE](i){isWhitespace(i)||(i===$$5.QUOTATION_MARK?(this.currentToken.systemId="",this.state=DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE):i===$$5.APOSTROPHE?(this.currentToken.systemId="",this.state=DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE):i===$$5.GREATER_THAN_SIGN?(this._err(ERR$1.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=DATA_STATE,this._emitCurrentToken()):i===$$5.EOF?(this._err(ERR$1.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ERR$1.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(BOGUS_DOCTYPE_STATE)))}[DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE](i){i===$$5.QUOTATION_MARK?this.state=AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE:i===$$5.NULL?(this._err(ERR$1.unexpectedNullCharacter),this.currentToken.systemId+=unicode$1.REPLACEMENT_CHARACTER):i===$$5.GREATER_THAN_SIGN?(this._err(ERR$1.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=DATA_STATE):i===$$5.EOF?(this._err(ERR$1.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=toChar(i)}[DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE](i){i===$$5.APOSTROPHE?this.state=AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE:i===$$5.NULL?(this._err(ERR$1.unexpectedNullCharacter),this.currentToken.systemId+=unicode$1.REPLACEMENT_CHARACTER):i===$$5.GREATER_THAN_SIGN?(this._err(ERR$1.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=DATA_STATE):i===$$5.EOF?(this._err(ERR$1.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=toChar(i)}[AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE](i){isWhitespace(i)||(i===$$5.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=DATA_STATE):i===$$5.EOF?(this._err(ERR$1.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ERR$1.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(BOGUS_DOCTYPE_STATE)))}[BOGUS_DOCTYPE_STATE](i){i===$$5.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=DATA_STATE):i===$$5.NULL?this._err(ERR$1.unexpectedNullCharacter):i===$$5.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[CDATA_SECTION_STATE](i){i===$$5.RIGHT_SQUARE_BRACKET?this.state=CDATA_SECTION_BRACKET_STATE:i===$$5.EOF?(this._err(ERR$1.eofInCdata),this._emitEOFToken()):this._emitCodePoint(i)}[CDATA_SECTION_BRACKET_STATE](i){i===$$5.RIGHT_SQUARE_BRACKET?this.state=CDATA_SECTION_END_STATE:(this._emitChars("]"),this._reconsumeInState(CDATA_SECTION_STATE))}[CDATA_SECTION_END_STATE](i){i===$$5.GREATER_THAN_SIGN?this.state=DATA_STATE:i===$$5.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(CDATA_SECTION_STATE))}[CHARACTER_REFERENCE_STATE](i){this.tempBuff=[$$5.AMPERSAND],i===$$5.NUMBER_SIGN?(this.tempBuff.push(i),this.state=NUMERIC_CHARACTER_REFERENCE_STATE):isAsciiAlphaNumeric(i)?this._reconsumeInState(NAMED_CHARACTER_REFERENCE_STATE):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[NAMED_CHARACTER_REFERENCE_STATE](i){const _e=this._matchNamedCharacterReference(i);if(this._ensureHibernation())this.tempBuff=[$$5.AMPERSAND];else if(_e){const pt=this.tempBuff[this.tempBuff.length-1]===$$5.SEMICOLON;this._isCharacterReferenceAttributeQuirk(pt)||(pt||this._errOnNextCodePoint(ERR$1.missingSemicolonAfterCharacterReference),this.tempBuff=_e),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=AMBIGUOUS_AMPERSAND_STATE}[AMBIGUOUS_AMPERSAND_STATE](i){isAsciiAlphaNumeric(i)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=toChar(i):this._emitCodePoint(i):(i===$$5.SEMICOLON&&this._err(ERR$1.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[NUMERIC_CHARACTER_REFERENCE_STATE](i){this.charRefCode=0,i===$$5.LATIN_SMALL_X||i===$$5.LATIN_CAPITAL_X?(this.tempBuff.push(i),this.state=HEXADEMICAL_CHARACTER_REFERENCE_START_STATE):this._reconsumeInState(DECIMAL_CHARACTER_REFERENCE_START_STATE)}[HEXADEMICAL_CHARACTER_REFERENCE_START_STATE](i){isAsciiHexDigit(i)?this._reconsumeInState(HEXADEMICAL_CHARACTER_REFERENCE_STATE):(this._err(ERR$1.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[DECIMAL_CHARACTER_REFERENCE_START_STATE](i){isAsciiDigit(i)?this._reconsumeInState(DECIMAL_CHARACTER_REFERENCE_STATE):(this._err(ERR$1.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[HEXADEMICAL_CHARACTER_REFERENCE_STATE](i){isAsciiUpperHexDigit(i)?this.charRefCode=this.charRefCode*16+i-55:isAsciiLowerHexDigit(i)?this.charRefCode=this.charRefCode*16+i-87:isAsciiDigit(i)?this.charRefCode=this.charRefCode*16+i-48:i===$$5.SEMICOLON?this.state=NUMERIC_CHARACTER_REFERENCE_END_STATE:(this._err(ERR$1.missingSemicolonAfterCharacterReference),this._reconsumeInState(NUMERIC_CHARACTER_REFERENCE_END_STATE))}[DECIMAL_CHARACTER_REFERENCE_STATE](i){isAsciiDigit(i)?this.charRefCode=this.charRefCode*10+i-48:i===$$5.SEMICOLON?this.state=NUMERIC_CHARACTER_REFERENCE_END_STATE:(this._err(ERR$1.missingSemicolonAfterCharacterReference),this._reconsumeInState(NUMERIC_CHARACTER_REFERENCE_END_STATE))}[NUMERIC_CHARACTER_REFERENCE_END_STATE](){if(this.charRefCode===$$5.NULL)this._err(ERR$1.nullCharacterReference),this.charRefCode=$$5.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(ERR$1.characterReferenceOutsideUnicodeRange),this.charRefCode=$$5.REPLACEMENT_CHARACTER;else if(unicode$1.isSurrogate(this.charRefCode))this._err(ERR$1.surrogateCharacterReference),this.charRefCode=$$5.REPLACEMENT_CHARACTER;else if(unicode$1.isUndefinedCodePoint(this.charRefCode))this._err(ERR$1.noncharacterCharacterReference);else if(unicode$1.isControlCodePoint(this.charRefCode)||this.charRefCode===$$5.CARRIAGE_RETURN){this._err(ERR$1.controlCharacterReference);const i=C1_CONTROLS_REFERENCE_REPLACEMENTS[this.charRefCode];i&&(this.charRefCode=i)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}};Tokenizer$4.CHARACTER_TOKEN="CHARACTER_TOKEN";Tokenizer$4.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN";Tokenizer$4.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN";Tokenizer$4.START_TAG_TOKEN="START_TAG_TOKEN";Tokenizer$4.END_TAG_TOKEN="END_TAG_TOKEN";Tokenizer$4.COMMENT_TOKEN="COMMENT_TOKEN";Tokenizer$4.DOCTYPE_TOKEN="DOCTYPE_TOKEN";Tokenizer$4.EOF_TOKEN="EOF_TOKEN";Tokenizer$4.HIBERNATION_TOKEN="HIBERNATION_TOKEN";Tokenizer$4.MODE={DATA:DATA_STATE,RCDATA:RCDATA_STATE,RAWTEXT:RAWTEXT_STATE,SCRIPT_DATA:SCRIPT_DATA_STATE,PLAINTEXT:PLAINTEXT_STATE};Tokenizer$4.getTokenAttr=function(a,i){for(let _e=a.attrs.length-1;_e>=0;_e--)if(a.attrs[_e].name===i)return a.attrs[_e].value;return null};var tokenizer=Tokenizer$4,html$4={};const NS$3=html$4.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};html$4.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"};html$4.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const $$4=html$4.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};html$4.SPECIAL_ELEMENTS={[NS$3.HTML]:{[$$4.ADDRESS]:!0,[$$4.APPLET]:!0,[$$4.AREA]:!0,[$$4.ARTICLE]:!0,[$$4.ASIDE]:!0,[$$4.BASE]:!0,[$$4.BASEFONT]:!0,[$$4.BGSOUND]:!0,[$$4.BLOCKQUOTE]:!0,[$$4.BODY]:!0,[$$4.BR]:!0,[$$4.BUTTON]:!0,[$$4.CAPTION]:!0,[$$4.CENTER]:!0,[$$4.COL]:!0,[$$4.COLGROUP]:!0,[$$4.DD]:!0,[$$4.DETAILS]:!0,[$$4.DIR]:!0,[$$4.DIV]:!0,[$$4.DL]:!0,[$$4.DT]:!0,[$$4.EMBED]:!0,[$$4.FIELDSET]:!0,[$$4.FIGCAPTION]:!0,[$$4.FIGURE]:!0,[$$4.FOOTER]:!0,[$$4.FORM]:!0,[$$4.FRAME]:!0,[$$4.FRAMESET]:!0,[$$4.H1]:!0,[$$4.H2]:!0,[$$4.H3]:!0,[$$4.H4]:!0,[$$4.H5]:!0,[$$4.H6]:!0,[$$4.HEAD]:!0,[$$4.HEADER]:!0,[$$4.HGROUP]:!0,[$$4.HR]:!0,[$$4.HTML]:!0,[$$4.IFRAME]:!0,[$$4.IMG]:!0,[$$4.INPUT]:!0,[$$4.LI]:!0,[$$4.LINK]:!0,[$$4.LISTING]:!0,[$$4.MAIN]:!0,[$$4.MARQUEE]:!0,[$$4.MENU]:!0,[$$4.META]:!0,[$$4.NAV]:!0,[$$4.NOEMBED]:!0,[$$4.NOFRAMES]:!0,[$$4.NOSCRIPT]:!0,[$$4.OBJECT]:!0,[$$4.OL]:!0,[$$4.P]:!0,[$$4.PARAM]:!0,[$$4.PLAINTEXT]:!0,[$$4.PRE]:!0,[$$4.SCRIPT]:!0,[$$4.SECTION]:!0,[$$4.SELECT]:!0,[$$4.SOURCE]:!0,[$$4.STYLE]:!0,[$$4.SUMMARY]:!0,[$$4.TABLE]:!0,[$$4.TBODY]:!0,[$$4.TD]:!0,[$$4.TEMPLATE]:!0,[$$4.TEXTAREA]:!0,[$$4.TFOOT]:!0,[$$4.TH]:!0,[$$4.THEAD]:!0,[$$4.TITLE]:!0,[$$4.TR]:!0,[$$4.TRACK]:!0,[$$4.UL]:!0,[$$4.WBR]:!0,[$$4.XMP]:!0},[NS$3.MATHML]:{[$$4.MI]:!0,[$$4.MO]:!0,[$$4.MN]:!0,[$$4.MS]:!0,[$$4.MTEXT]:!0,[$$4.ANNOTATION_XML]:!0},[NS$3.SVG]:{[$$4.TITLE]:!0,[$$4.FOREIGN_OBJECT]:!0,[$$4.DESC]:!0}};const HTML$3=html$4,$$3=HTML$3.TAG_NAMES,NS$2=HTML$3.NAMESPACES;function isImpliedEndTagRequired(a){switch(a.length){case 1:return a===$$3.P;case 2:return a===$$3.RB||a===$$3.RP||a===$$3.RT||a===$$3.DD||a===$$3.DT||a===$$3.LI;case 3:return a===$$3.RTC;case 6:return a===$$3.OPTION;case 8:return a===$$3.OPTGROUP}return!1}function isImpliedEndTagRequiredThoroughly(a){switch(a.length){case 1:return a===$$3.P;case 2:return a===$$3.RB||a===$$3.RP||a===$$3.RT||a===$$3.DD||a===$$3.DT||a===$$3.LI||a===$$3.TD||a===$$3.TH||a===$$3.TR;case 3:return a===$$3.RTC;case 5:return a===$$3.TBODY||a===$$3.TFOOT||a===$$3.THEAD;case 6:return a===$$3.OPTION;case 7:return a===$$3.CAPTION;case 8:return a===$$3.OPTGROUP||a===$$3.COLGROUP}return!1}function isScopingElement(a,i){switch(a.length){case 2:if(a===$$3.TD||a===$$3.TH)return i===NS$2.HTML;if(a===$$3.MI||a===$$3.MO||a===$$3.MN||a===$$3.MS)return i===NS$2.MATHML;break;case 4:if(a===$$3.HTML)return i===NS$2.HTML;if(a===$$3.DESC)return i===NS$2.SVG;break;case 5:if(a===$$3.TABLE)return i===NS$2.HTML;if(a===$$3.MTEXT)return i===NS$2.MATHML;if(a===$$3.TITLE)return i===NS$2.SVG;break;case 6:return(a===$$3.APPLET||a===$$3.OBJECT)&&i===NS$2.HTML;case 7:return(a===$$3.CAPTION||a===$$3.MARQUEE)&&i===NS$2.HTML;case 8:return a===$$3.TEMPLATE&&i===NS$2.HTML;case 13:return a===$$3.FOREIGN_OBJECT&&i===NS$2.SVG;case 14:return a===$$3.ANNOTATION_XML&&i===NS$2.MATHML}return!1}let OpenElementStack$1=class{constructor(i,_e){this.stackTop=-1,this.items=[],this.current=i,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=_e}_indexOf(i){let _e=-1;for(let pt=this.stackTop;pt>=0;pt--)if(this.items[pt]===i){_e=pt;break}return _e}_isInTemplate(){return this.currentTagName===$$3.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===NS$2.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(i){this.items[++this.stackTop]=i,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(i,_e){const pt=this._indexOf(i);this.items[pt]=_e,pt===this.stackTop&&this._updateCurrentElement()}insertAfter(i,_e){const pt=this._indexOf(i)+1;this.items.splice(pt,0,_e),pt===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(i){for(;this.stackTop>-1;){const _e=this.currentTagName,pt=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),_e===i&&pt===NS$2.HTML)break}}popUntilElementPopped(i){for(;this.stackTop>-1;){const _e=this.current;if(this.pop(),_e===i)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const i=this.currentTagName,_e=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),i===$$3.H1||i===$$3.H2||i===$$3.H3||i===$$3.H4||i===$$3.H5||i===$$3.H6&&_e===NS$2.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const i=this.currentTagName,_e=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),i===$$3.TD||i===$$3.TH&&_e===NS$2.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==$$3.TABLE&&this.currentTagName!==$$3.TEMPLATE&&this.currentTagName!==$$3.HTML||this.treeAdapter.getNamespaceURI(this.current)!==NS$2.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==$$3.TBODY&&this.currentTagName!==$$3.TFOOT&&this.currentTagName!==$$3.THEAD&&this.currentTagName!==$$3.TEMPLATE&&this.currentTagName!==$$3.HTML||this.treeAdapter.getNamespaceURI(this.current)!==NS$2.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==$$3.TR&&this.currentTagName!==$$3.TEMPLATE&&this.currentTagName!==$$3.HTML||this.treeAdapter.getNamespaceURI(this.current)!==NS$2.HTML;)this.pop()}remove(i){for(let _e=this.stackTop;_e>=0;_e--)if(this.items[_e]===i){this.items.splice(_e,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const i=this.items[1];return i&&this.treeAdapter.getTagName(i)===$$3.BODY?i:null}contains(i){return this._indexOf(i)>-1}getCommonAncestor(i){let _e=this._indexOf(i);return--_e>=0?this.items[_e]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.currentTagName===$$3.HTML}hasInScope(i){for(let _e=this.stackTop;_e>=0;_e--){const pt=this.treeAdapter.getTagName(this.items[_e]),Lt=this.treeAdapter.getNamespaceURI(this.items[_e]);if(pt===i&&Lt===NS$2.HTML)return!0;if(isScopingElement(pt,Lt))return!1}return!0}hasNumberedHeaderInScope(){for(let i=this.stackTop;i>=0;i--){const _e=this.treeAdapter.getTagName(this.items[i]),pt=this.treeAdapter.getNamespaceURI(this.items[i]);if((_e===$$3.H1||_e===$$3.H2||_e===$$3.H3||_e===$$3.H4||_e===$$3.H5||_e===$$3.H6)&&pt===NS$2.HTML)return!0;if(isScopingElement(_e,pt))return!1}return!0}hasInListItemScope(i){for(let _e=this.stackTop;_e>=0;_e--){const pt=this.treeAdapter.getTagName(this.items[_e]),Lt=this.treeAdapter.getNamespaceURI(this.items[_e]);if(pt===i&&Lt===NS$2.HTML)return!0;if((pt===$$3.UL||pt===$$3.OL)&&Lt===NS$2.HTML||isScopingElement(pt,Lt))return!1}return!0}hasInButtonScope(i){for(let _e=this.stackTop;_e>=0;_e--){const pt=this.treeAdapter.getTagName(this.items[_e]),Lt=this.treeAdapter.getNamespaceURI(this.items[_e]);if(pt===i&&Lt===NS$2.HTML)return!0;if(pt===$$3.BUTTON&&Lt===NS$2.HTML||isScopingElement(pt,Lt))return!1}return!0}hasInTableScope(i){for(let _e=this.stackTop;_e>=0;_e--){const pt=this.treeAdapter.getTagName(this.items[_e]);if(this.treeAdapter.getNamespaceURI(this.items[_e])===NS$2.HTML){if(pt===i)return!0;if(pt===$$3.TABLE||pt===$$3.TEMPLATE||pt===$$3.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let i=this.stackTop;i>=0;i--){const _e=this.treeAdapter.getTagName(this.items[i]);if(this.treeAdapter.getNamespaceURI(this.items[i])===NS$2.HTML){if(_e===$$3.TBODY||_e===$$3.THEAD||_e===$$3.TFOOT)return!0;if(_e===$$3.TABLE||_e===$$3.HTML)return!1}}return!0}hasInSelectScope(i){for(let _e=this.stackTop;_e>=0;_e--){const pt=this.treeAdapter.getTagName(this.items[_e]);if(this.treeAdapter.getNamespaceURI(this.items[_e])===NS$2.HTML){if(pt===i)return!0;if(pt!==$$3.OPTION&&pt!==$$3.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;isImpliedEndTagRequired(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;isImpliedEndTagRequiredThoroughly(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(i){for(;isImpliedEndTagRequired(this.currentTagName)&&this.currentTagName!==i;)this.pop()}};var openElementStack=OpenElementStack$1;const NOAH_ARK_CAPACITY=3;let FormattingElementList$1=class dx{constructor(i){this.length=0,this.entries=[],this.treeAdapter=i,this.bookmark=null}_getNoahArkConditionCandidates(i){const _e=[];if(this.length>=NOAH_ARK_CAPACITY){const pt=this.treeAdapter.getAttrList(i).length,Lt=this.treeAdapter.getTagName(i),Gt=this.treeAdapter.getNamespaceURI(i);for(let Ct=this.length-1;Ct>=0;Ct--){const Rt=this.entries[Ct];if(Rt.type===dx.MARKER_ENTRY)break;const o=Rt.element,it=this.treeAdapter.getAttrList(o);this.treeAdapter.getTagName(o)===Lt&&this.treeAdapter.getNamespaceURI(o)===Gt&&it.length===pt&&_e.push({idx:Ct,attrs:it})}}return _e.length=NOAH_ARK_CAPACITY-1;Rt--)this.entries.splice(_e[Rt].idx,1),this.length--}}insertMarker(){this.entries.push({type:dx.MARKER_ENTRY}),this.length++}pushElement(i,_e){this._ensureNoahArkCondition(i),this.entries.push({type:dx.ELEMENT_ENTRY,element:i,token:_e}),this.length++}insertElementAfterBookmark(i,_e){let pt=this.length-1;for(;pt>=0&&this.entries[pt]!==this.bookmark;pt--);this.entries.splice(pt+1,0,{type:dx.ELEMENT_ENTRY,element:i,token:_e}),this.length++}removeEntry(i){for(let _e=this.length-1;_e>=0;_e--)if(this.entries[_e]===i){this.entries.splice(_e,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const i=this.entries.pop();if(this.length--,i.type===dx.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(i){for(let _e=this.length-1;_e>=0;_e--){const pt=this.entries[_e];if(pt.type===dx.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(pt.element)===i)return pt}return null}getElementEntry(i){for(let _e=this.length-1;_e>=0;_e--){const pt=this.entries[_e];if(pt.type===dx.ELEMENT_ENTRY&&pt.element===i)return pt}return null}};FormattingElementList$1.MARKER_ENTRY="MARKER_ENTRY";FormattingElementList$1.ELEMENT_ENTRY="ELEMENT_ENTRY";var formattingElementList=FormattingElementList$1;let Mixin$9=class{constructor(i){const _e={},pt=this._getOverriddenMethods(this,_e);for(const Lt of Object.keys(pt))typeof pt[Lt]=="function"&&(_e[Lt]=i[Lt],i[Lt]=pt[Lt])}_getOverriddenMethods(){throw new Error("Not implemented")}};Mixin$9.install=function(a,i,_e){a.__mixins||(a.__mixins=[]);for(let Lt=0;Lt-1?i.start:1)+(_e.options.incrementListMarker===!1?0:i.children.indexOf(a))+Gt);let Ct=Gt.length+1;(Lt==="tab"||Lt==="mixed"&&(i&&i.type==="list"&&i.spread||a.spread))&&(Ct=Math.ceil(Ct/4)*4);const Rt=_e.createTracker(pt);Rt.move(Gt+" ".repeat(Ct-Gt.length)),Rt.shift(Ct);const o=_e.enter("listItem"),it=_e.indentLines(_e.containerFlow(a,Rt.current()),xt);return o(),it;function xt(et,Tt,yt){return Tt?(yt?"":" ".repeat(Ct))+et:(yt?Gt:Gt+" ".repeat(Ct-Gt.length))+et}}const gfmTaskListItemFromMarkdown={exit:{taskListCheckValueChecked:exitCheck,taskListCheckValueUnchecked:exitCheck,paragraph:exitParagraphWithTaskListItem}},gfmTaskListItemToMarkdown={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:listItemWithTaskListItem}};function exitCheck(a){const i=this.stack[this.stack.length-2];i.checked=a.type==="taskListCheckValueChecked"}function exitParagraphWithTaskListItem(a){const i=this.stack[this.stack.length-2];if(i&&i.type==="listItem"&&typeof i.checked=="boolean"){const _e=this.stack[this.stack.length-1],pt=_e.children[0];if(pt&&pt.type==="text"){const Lt=i.children;let Gt=-1,Ct;for(;++Gt=55296&&a<=57343};unicode$3.isSurrogatePair=function(a){return a>=56320&&a<=57343};unicode$3.getSurrogatePairCodePoint=function(a,i){return(a-55296)*1024+9216+i};unicode$3.isControlCodePoint=function(a){return a!==32&&a!==10&&a!==13&&a!==9&&a!==12&&a>=1&&a<=31||a>=127&&a<=159};unicode$3.isUndefinedCodePoint=function(a){return a>=64976&&a<=65007||UNDEFINED_CODE_POINTS.indexOf(a)>-1};var errorCodes={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"};const unicode$2=unicode$3,ERR$2=errorCodes,$$6=unicode$2.CODE_POINTS,DEFAULT_BUFFER_WATERLINE=1<<16;let Preprocessor$1=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=DEFAULT_BUFFER_WATERLINE}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(i){if(this.pos!==this.lastCharPos){const _e=this.html.charCodeAt(this.pos+1);if(unicode$2.isSurrogatePair(_e))return this.pos++,this._addGap(),unicode$2.getSurrogatePairCodePoint(i,_e)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,$$6.EOF;return this._err(ERR$2.surrogateInInputStream),i}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(i,_e){this.html?this.html+=i:this.html=i,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=_e}insertHtmlAtCurrentPos(i){this.html=this.html.substring(0,this.pos+1)+i+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,$$6.EOF;let i=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&i===$$6.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):i===$$6.CARRIAGE_RETURN?(this.skipNextNewLine=!0,$$6.LINE_FEED):(this.skipNextNewLine=!1,unicode$2.isSurrogate(i)&&(i=this._processSurrogate(i)),i>31&&i<127||i===$$6.LINE_FEED||i===$$6.CARRIAGE_RETURN||i>159&&i<64976||this._checkForProblematicCharacters(i),i)}_checkForProblematicCharacters(i){unicode$2.isControlCodePoint(i)?this._err(ERR$2.controlCharacterInInputStream):unicode$2.isUndefinedCodePoint(i)&&this._err(ERR$2.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}};var preprocessor=Preprocessor$1,namedEntityData=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204]);const Preprocessor=preprocessor,unicode$1=unicode$3,neTree=namedEntityData,ERR$1=errorCodes,$$5=unicode$1.CODE_POINTS,$$=unicode$1.CODE_POINT_SEQUENCES,C1_CONTROLS_REFERENCE_REPLACEMENTS={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},HAS_DATA_FLAG=1<<0,DATA_DUPLET_FLAG=1<<1,HAS_BRANCHES_FLAG=1<<2,MAX_BRANCH_MARKER_VALUE=HAS_DATA_FLAG|DATA_DUPLET_FLAG|HAS_BRANCHES_FLAG,DATA_STATE="DATA_STATE",RCDATA_STATE="RCDATA_STATE",RAWTEXT_STATE="RAWTEXT_STATE",SCRIPT_DATA_STATE="SCRIPT_DATA_STATE",PLAINTEXT_STATE="PLAINTEXT_STATE",TAG_OPEN_STATE="TAG_OPEN_STATE",END_TAG_OPEN_STATE="END_TAG_OPEN_STATE",TAG_NAME_STATE="TAG_NAME_STATE",RCDATA_LESS_THAN_SIGN_STATE="RCDATA_LESS_THAN_SIGN_STATE",RCDATA_END_TAG_OPEN_STATE="RCDATA_END_TAG_OPEN_STATE",RCDATA_END_TAG_NAME_STATE="RCDATA_END_TAG_NAME_STATE",RAWTEXT_LESS_THAN_SIGN_STATE="RAWTEXT_LESS_THAN_SIGN_STATE",RAWTEXT_END_TAG_OPEN_STATE="RAWTEXT_END_TAG_OPEN_STATE",RAWTEXT_END_TAG_NAME_STATE="RAWTEXT_END_TAG_NAME_STATE",SCRIPT_DATA_LESS_THAN_SIGN_STATE="SCRIPT_DATA_LESS_THAN_SIGN_STATE",SCRIPT_DATA_END_TAG_OPEN_STATE="SCRIPT_DATA_END_TAG_OPEN_STATE",SCRIPT_DATA_END_TAG_NAME_STATE="SCRIPT_DATA_END_TAG_NAME_STATE",SCRIPT_DATA_ESCAPE_START_STATE="SCRIPT_DATA_ESCAPE_START_STATE",SCRIPT_DATA_ESCAPE_START_DASH_STATE="SCRIPT_DATA_ESCAPE_START_DASH_STATE",SCRIPT_DATA_ESCAPED_STATE="SCRIPT_DATA_ESCAPED_STATE",SCRIPT_DATA_ESCAPED_DASH_STATE="SCRIPT_DATA_ESCAPED_DASH_STATE",SCRIPT_DATA_ESCAPED_DASH_DASH_STATE="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",SCRIPT_DATA_DOUBLE_ESCAPED_STATE="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",BEFORE_ATTRIBUTE_NAME_STATE="BEFORE_ATTRIBUTE_NAME_STATE",ATTRIBUTE_NAME_STATE="ATTRIBUTE_NAME_STATE",AFTER_ATTRIBUTE_NAME_STATE="AFTER_ATTRIBUTE_NAME_STATE",BEFORE_ATTRIBUTE_VALUE_STATE="BEFORE_ATTRIBUTE_VALUE_STATE",ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",ATTRIBUTE_VALUE_UNQUOTED_STATE="ATTRIBUTE_VALUE_UNQUOTED_STATE",AFTER_ATTRIBUTE_VALUE_QUOTED_STATE="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",SELF_CLOSING_START_TAG_STATE="SELF_CLOSING_START_TAG_STATE",BOGUS_COMMENT_STATE="BOGUS_COMMENT_STATE",MARKUP_DECLARATION_OPEN_STATE="MARKUP_DECLARATION_OPEN_STATE",COMMENT_START_STATE="COMMENT_START_STATE",COMMENT_START_DASH_STATE="COMMENT_START_DASH_STATE",COMMENT_STATE="COMMENT_STATE",COMMENT_LESS_THAN_SIGN_STATE="COMMENT_LESS_THAN_SIGN_STATE",COMMENT_LESS_THAN_SIGN_BANG_STATE="COMMENT_LESS_THAN_SIGN_BANG_STATE",COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",COMMENT_END_DASH_STATE="COMMENT_END_DASH_STATE",COMMENT_END_STATE="COMMENT_END_STATE",COMMENT_END_BANG_STATE="COMMENT_END_BANG_STATE",DOCTYPE_STATE="DOCTYPE_STATE",BEFORE_DOCTYPE_NAME_STATE="BEFORE_DOCTYPE_NAME_STATE",DOCTYPE_NAME_STATE="DOCTYPE_NAME_STATE",AFTER_DOCTYPE_NAME_STATE="AFTER_DOCTYPE_NAME_STATE",AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",BOGUS_DOCTYPE_STATE="BOGUS_DOCTYPE_STATE",CDATA_SECTION_STATE="CDATA_SECTION_STATE",CDATA_SECTION_BRACKET_STATE="CDATA_SECTION_BRACKET_STATE",CDATA_SECTION_END_STATE="CDATA_SECTION_END_STATE",CHARACTER_REFERENCE_STATE="CHARACTER_REFERENCE_STATE",NAMED_CHARACTER_REFERENCE_STATE="NAMED_CHARACTER_REFERENCE_STATE",AMBIGUOUS_AMPERSAND_STATE="AMBIGUOS_AMPERSAND_STATE",NUMERIC_CHARACTER_REFERENCE_STATE="NUMERIC_CHARACTER_REFERENCE_STATE",HEXADEMICAL_CHARACTER_REFERENCE_START_STATE="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",DECIMAL_CHARACTER_REFERENCE_START_STATE="DECIMAL_CHARACTER_REFERENCE_START_STATE",HEXADEMICAL_CHARACTER_REFERENCE_STATE="HEXADEMICAL_CHARACTER_REFERENCE_STATE",DECIMAL_CHARACTER_REFERENCE_STATE="DECIMAL_CHARACTER_REFERENCE_STATE",NUMERIC_CHARACTER_REFERENCE_END_STATE="NUMERIC_CHARACTER_REFERENCE_END_STATE";function isWhitespace(a){return a===$$5.SPACE||a===$$5.LINE_FEED||a===$$5.TABULATION||a===$$5.FORM_FEED}function isAsciiDigit(a){return a>=$$5.DIGIT_0&&a<=$$5.DIGIT_9}function isAsciiUpper(a){return a>=$$5.LATIN_CAPITAL_A&&a<=$$5.LATIN_CAPITAL_Z}function isAsciiLower(a){return a>=$$5.LATIN_SMALL_A&&a<=$$5.LATIN_SMALL_Z}function isAsciiLetter(a){return isAsciiLower(a)||isAsciiUpper(a)}function isAsciiAlphaNumeric(a){return isAsciiLetter(a)||isAsciiDigit(a)}function isAsciiUpperHexDigit(a){return a>=$$5.LATIN_CAPITAL_A&&a<=$$5.LATIN_CAPITAL_F}function isAsciiLowerHexDigit(a){return a>=$$5.LATIN_SMALL_A&&a<=$$5.LATIN_SMALL_F}function isAsciiHexDigit(a){return isAsciiDigit(a)||isAsciiUpperHexDigit(a)||isAsciiLowerHexDigit(a)}function toAsciiLowerCodePoint(a){return a+32}function toChar(a){return a<=65535?String.fromCharCode(a):(a-=65536,String.fromCharCode(a>>>10&1023|55296)+String.fromCharCode(56320|a&1023))}function toAsciiLowerChar(a){return String.fromCharCode(toAsciiLowerCodePoint(a))}function findNamedEntityTreeBranch(a,i){const _e=neTree[++a];let pt=++a,Lt=pt+_e-1;for(;pt<=Lt;){const Gt=pt+Lt>>>1,Ct=neTree[Gt];if(Cti)Lt=Gt-1;else return neTree[Gt+_e]}return-1}let Tokenizer$4=class G1{constructor(){this.preprocessor=new Preprocessor,this.tokenQueue=[],this.allowCDATA=!1,this.state=DATA_STATE,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(i){this._consume(),this._err(i),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const i=this._consume();this._ensureHibernation()||this[this.state](i)}return this.tokenQueue.shift()}write(i,_e){this.active=!0,this.preprocessor.write(i,_e)}insertHtmlAtCurrentPos(i){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(i)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:G1.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(i){this.state=i,this._unconsume()}_consumeSequenceIfMatch(i,_e,pt){let Lt=0,Gt=!0;const Ct=i.length;let Rt=0,o=_e,it;for(;Rt0&&(o=this._consume(),Lt++),o===$$5.EOF){Gt=!1;break}if(it=i[Rt],o!==it&&(pt||o!==toAsciiLowerCodePoint(it))){Gt=!1;break}}if(!Gt)for(;Lt--;)this._unconsume();return Gt}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==$$.SCRIPT_STRING.length)return!1;for(let i=0;i0&&this._err(ERR$1.endTagWithAttributes),i.selfClosing&&this._err(ERR$1.endTagWithTrailingSolidus)),this.tokenQueue.push(i)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(i,_e){this.currentCharacterToken&&this.currentCharacterToken.type!==i&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=_e:this._createCharacterToken(i,_e)}_emitCodePoint(i){let _e=G1.CHARACTER_TOKEN;isWhitespace(i)?_e=G1.WHITESPACE_CHARACTER_TOKEN:i===$$5.NULL&&(_e=G1.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(_e,toChar(i))}_emitSeveralCodePoints(i){for(let _e=0;_e-1;){const Gt=neTree[Lt],Ct=Gt")):i===$$5.NULL?(this._err(ERR$1.unexpectedNullCharacter),this.state=SCRIPT_DATA_ESCAPED_STATE,this._emitChars(unicode$1.REPLACEMENT_CHARACTER)):i===$$5.EOF?(this._err(ERR$1.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=SCRIPT_DATA_ESCAPED_STATE,this._emitCodePoint(i))}[SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE](i){i===$$5.SOLIDUS?(this.tempBuff=[],this.state=SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE):isAsciiLetter(i)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE)):(this._emitChars("<"),this._reconsumeInState(SCRIPT_DATA_ESCAPED_STATE))}[SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE](i){isAsciiLetter(i)?(this._createEndTagToken(),this._reconsumeInState(SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE)):(this._emitChars("")):i===$$5.NULL?(this._err(ERR$1.unexpectedNullCharacter),this.state=SCRIPT_DATA_DOUBLE_ESCAPED_STATE,this._emitChars(unicode$1.REPLACEMENT_CHARACTER)):i===$$5.EOF?(this._err(ERR$1.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=SCRIPT_DATA_DOUBLE_ESCAPED_STATE,this._emitCodePoint(i))}[SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE](i){i===$$5.SOLIDUS?(this.tempBuff=[],this.state=SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE,this._emitChars("/")):this._reconsumeInState(SCRIPT_DATA_DOUBLE_ESCAPED_STATE)}[SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE](i){isWhitespace(i)||i===$$5.SOLIDUS||i===$$5.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?SCRIPT_DATA_ESCAPED_STATE:SCRIPT_DATA_DOUBLE_ESCAPED_STATE,this._emitCodePoint(i)):isAsciiUpper(i)?(this.tempBuff.push(toAsciiLowerCodePoint(i)),this._emitCodePoint(i)):isAsciiLower(i)?(this.tempBuff.push(i),this._emitCodePoint(i)):this._reconsumeInState(SCRIPT_DATA_DOUBLE_ESCAPED_STATE)}[BEFORE_ATTRIBUTE_NAME_STATE](i){isWhitespace(i)||(i===$$5.SOLIDUS||i===$$5.GREATER_THAN_SIGN||i===$$5.EOF?this._reconsumeInState(AFTER_ATTRIBUTE_NAME_STATE):i===$$5.EQUALS_SIGN?(this._err(ERR$1.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=ATTRIBUTE_NAME_STATE):(this._createAttr(""),this._reconsumeInState(ATTRIBUTE_NAME_STATE)))}[ATTRIBUTE_NAME_STATE](i){isWhitespace(i)||i===$$5.SOLIDUS||i===$$5.GREATER_THAN_SIGN||i===$$5.EOF?(this._leaveAttrName(AFTER_ATTRIBUTE_NAME_STATE),this._unconsume()):i===$$5.EQUALS_SIGN?this._leaveAttrName(BEFORE_ATTRIBUTE_VALUE_STATE):isAsciiUpper(i)?this.currentAttr.name+=toAsciiLowerChar(i):i===$$5.QUOTATION_MARK||i===$$5.APOSTROPHE||i===$$5.LESS_THAN_SIGN?(this._err(ERR$1.unexpectedCharacterInAttributeName),this.currentAttr.name+=toChar(i)):i===$$5.NULL?(this._err(ERR$1.unexpectedNullCharacter),this.currentAttr.name+=unicode$1.REPLACEMENT_CHARACTER):this.currentAttr.name+=toChar(i)}[AFTER_ATTRIBUTE_NAME_STATE](i){isWhitespace(i)||(i===$$5.SOLIDUS?this.state=SELF_CLOSING_START_TAG_STATE:i===$$5.EQUALS_SIGN?this.state=BEFORE_ATTRIBUTE_VALUE_STATE:i===$$5.GREATER_THAN_SIGN?(this.state=DATA_STATE,this._emitCurrentToken()):i===$$5.EOF?(this._err(ERR$1.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(ATTRIBUTE_NAME_STATE)))}[BEFORE_ATTRIBUTE_VALUE_STATE](i){isWhitespace(i)||(i===$$5.QUOTATION_MARK?this.state=ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE:i===$$5.APOSTROPHE?this.state=ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE:i===$$5.GREATER_THAN_SIGN?(this._err(ERR$1.missingAttributeValue),this.state=DATA_STATE,this._emitCurrentToken()):this._reconsumeInState(ATTRIBUTE_VALUE_UNQUOTED_STATE))}[ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE](i){i===$$5.QUOTATION_MARK?this.state=AFTER_ATTRIBUTE_VALUE_QUOTED_STATE:i===$$5.AMPERSAND?(this.returnState=ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE,this.state=CHARACTER_REFERENCE_STATE):i===$$5.NULL?(this._err(ERR$1.unexpectedNullCharacter),this.currentAttr.value+=unicode$1.REPLACEMENT_CHARACTER):i===$$5.EOF?(this._err(ERR$1.eofInTag),this._emitEOFToken()):this.currentAttr.value+=toChar(i)}[ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE](i){i===$$5.APOSTROPHE?this.state=AFTER_ATTRIBUTE_VALUE_QUOTED_STATE:i===$$5.AMPERSAND?(this.returnState=ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE,this.state=CHARACTER_REFERENCE_STATE):i===$$5.NULL?(this._err(ERR$1.unexpectedNullCharacter),this.currentAttr.value+=unicode$1.REPLACEMENT_CHARACTER):i===$$5.EOF?(this._err(ERR$1.eofInTag),this._emitEOFToken()):this.currentAttr.value+=toChar(i)}[ATTRIBUTE_VALUE_UNQUOTED_STATE](i){isWhitespace(i)?this._leaveAttrValue(BEFORE_ATTRIBUTE_NAME_STATE):i===$$5.AMPERSAND?(this.returnState=ATTRIBUTE_VALUE_UNQUOTED_STATE,this.state=CHARACTER_REFERENCE_STATE):i===$$5.GREATER_THAN_SIGN?(this._leaveAttrValue(DATA_STATE),this._emitCurrentToken()):i===$$5.NULL?(this._err(ERR$1.unexpectedNullCharacter),this.currentAttr.value+=unicode$1.REPLACEMENT_CHARACTER):i===$$5.QUOTATION_MARK||i===$$5.APOSTROPHE||i===$$5.LESS_THAN_SIGN||i===$$5.EQUALS_SIGN||i===$$5.GRAVE_ACCENT?(this._err(ERR$1.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=toChar(i)):i===$$5.EOF?(this._err(ERR$1.eofInTag),this._emitEOFToken()):this.currentAttr.value+=toChar(i)}[AFTER_ATTRIBUTE_VALUE_QUOTED_STATE](i){isWhitespace(i)?this._leaveAttrValue(BEFORE_ATTRIBUTE_NAME_STATE):i===$$5.SOLIDUS?this._leaveAttrValue(SELF_CLOSING_START_TAG_STATE):i===$$5.GREATER_THAN_SIGN?(this._leaveAttrValue(DATA_STATE),this._emitCurrentToken()):i===$$5.EOF?(this._err(ERR$1.eofInTag),this._emitEOFToken()):(this._err(ERR$1.missingWhitespaceBetweenAttributes),this._reconsumeInState(BEFORE_ATTRIBUTE_NAME_STATE))}[SELF_CLOSING_START_TAG_STATE](i){i===$$5.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=DATA_STATE,this._emitCurrentToken()):i===$$5.EOF?(this._err(ERR$1.eofInTag),this._emitEOFToken()):(this._err(ERR$1.unexpectedSolidusInTag),this._reconsumeInState(BEFORE_ATTRIBUTE_NAME_STATE))}[BOGUS_COMMENT_STATE](i){i===$$5.GREATER_THAN_SIGN?(this.state=DATA_STATE,this._emitCurrentToken()):i===$$5.EOF?(this._emitCurrentToken(),this._emitEOFToken()):i===$$5.NULL?(this._err(ERR$1.unexpectedNullCharacter),this.currentToken.data+=unicode$1.REPLACEMENT_CHARACTER):this.currentToken.data+=toChar(i)}[MARKUP_DECLARATION_OPEN_STATE](i){this._consumeSequenceIfMatch($$.DASH_DASH_STRING,i,!0)?(this._createCommentToken(),this.state=COMMENT_START_STATE):this._consumeSequenceIfMatch($$.DOCTYPE_STRING,i,!1)?this.state=DOCTYPE_STATE:this._consumeSequenceIfMatch($$.CDATA_START_STRING,i,!0)?this.allowCDATA?this.state=CDATA_SECTION_STATE:(this._err(ERR$1.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=BOGUS_COMMENT_STATE):this._ensureHibernation()||(this._err(ERR$1.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(BOGUS_COMMENT_STATE))}[COMMENT_START_STATE](i){i===$$5.HYPHEN_MINUS?this.state=COMMENT_START_DASH_STATE:i===$$5.GREATER_THAN_SIGN?(this._err(ERR$1.abruptClosingOfEmptyComment),this.state=DATA_STATE,this._emitCurrentToken()):this._reconsumeInState(COMMENT_STATE)}[COMMENT_START_DASH_STATE](i){i===$$5.HYPHEN_MINUS?this.state=COMMENT_END_STATE:i===$$5.GREATER_THAN_SIGN?(this._err(ERR$1.abruptClosingOfEmptyComment),this.state=DATA_STATE,this._emitCurrentToken()):i===$$5.EOF?(this._err(ERR$1.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(COMMENT_STATE))}[COMMENT_STATE](i){i===$$5.HYPHEN_MINUS?this.state=COMMENT_END_DASH_STATE:i===$$5.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=COMMENT_LESS_THAN_SIGN_STATE):i===$$5.NULL?(this._err(ERR$1.unexpectedNullCharacter),this.currentToken.data+=unicode$1.REPLACEMENT_CHARACTER):i===$$5.EOF?(this._err(ERR$1.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=toChar(i)}[COMMENT_LESS_THAN_SIGN_STATE](i){i===$$5.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=COMMENT_LESS_THAN_SIGN_BANG_STATE):i===$$5.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(COMMENT_STATE)}[COMMENT_LESS_THAN_SIGN_BANG_STATE](i){i===$$5.HYPHEN_MINUS?this.state=COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE:this._reconsumeInState(COMMENT_STATE)}[COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE](i){i===$$5.HYPHEN_MINUS?this.state=COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE:this._reconsumeInState(COMMENT_END_DASH_STATE)}[COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE](i){i!==$$5.GREATER_THAN_SIGN&&i!==$$5.EOF&&this._err(ERR$1.nestedComment),this._reconsumeInState(COMMENT_END_STATE)}[COMMENT_END_DASH_STATE](i){i===$$5.HYPHEN_MINUS?this.state=COMMENT_END_STATE:i===$$5.EOF?(this._err(ERR$1.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(COMMENT_STATE))}[COMMENT_END_STATE](i){i===$$5.GREATER_THAN_SIGN?(this.state=DATA_STATE,this._emitCurrentToken()):i===$$5.EXCLAMATION_MARK?this.state=COMMENT_END_BANG_STATE:i===$$5.HYPHEN_MINUS?this.currentToken.data+="-":i===$$5.EOF?(this._err(ERR$1.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(COMMENT_STATE))}[COMMENT_END_BANG_STATE](i){i===$$5.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=COMMENT_END_DASH_STATE):i===$$5.GREATER_THAN_SIGN?(this._err(ERR$1.incorrectlyClosedComment),this.state=DATA_STATE,this._emitCurrentToken()):i===$$5.EOF?(this._err(ERR$1.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(COMMENT_STATE))}[DOCTYPE_STATE](i){isWhitespace(i)?this.state=BEFORE_DOCTYPE_NAME_STATE:i===$$5.GREATER_THAN_SIGN?this._reconsumeInState(BEFORE_DOCTYPE_NAME_STATE):i===$$5.EOF?(this._err(ERR$1.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ERR$1.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(BEFORE_DOCTYPE_NAME_STATE))}[BEFORE_DOCTYPE_NAME_STATE](i){isWhitespace(i)||(isAsciiUpper(i)?(this._createDoctypeToken(toAsciiLowerChar(i)),this.state=DOCTYPE_NAME_STATE):i===$$5.NULL?(this._err(ERR$1.unexpectedNullCharacter),this._createDoctypeToken(unicode$1.REPLACEMENT_CHARACTER),this.state=DOCTYPE_NAME_STATE):i===$$5.GREATER_THAN_SIGN?(this._err(ERR$1.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=DATA_STATE):i===$$5.EOF?(this._err(ERR$1.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(toChar(i)),this.state=DOCTYPE_NAME_STATE))}[DOCTYPE_NAME_STATE](i){isWhitespace(i)?this.state=AFTER_DOCTYPE_NAME_STATE:i===$$5.GREATER_THAN_SIGN?(this.state=DATA_STATE,this._emitCurrentToken()):isAsciiUpper(i)?this.currentToken.name+=toAsciiLowerChar(i):i===$$5.NULL?(this._err(ERR$1.unexpectedNullCharacter),this.currentToken.name+=unicode$1.REPLACEMENT_CHARACTER):i===$$5.EOF?(this._err(ERR$1.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=toChar(i)}[AFTER_DOCTYPE_NAME_STATE](i){isWhitespace(i)||(i===$$5.GREATER_THAN_SIGN?(this.state=DATA_STATE,this._emitCurrentToken()):i===$$5.EOF?(this._err(ERR$1.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch($$.PUBLIC_STRING,i,!1)?this.state=AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE:this._consumeSequenceIfMatch($$.SYSTEM_STRING,i,!1)?this.state=AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE:this._ensureHibernation()||(this._err(ERR$1.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(BOGUS_DOCTYPE_STATE)))}[AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE](i){isWhitespace(i)?this.state=BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE:i===$$5.QUOTATION_MARK?(this._err(ERR$1.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE):i===$$5.APOSTROPHE?(this._err(ERR$1.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE):i===$$5.GREATER_THAN_SIGN?(this._err(ERR$1.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=DATA_STATE,this._emitCurrentToken()):i===$$5.EOF?(this._err(ERR$1.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ERR$1.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(BOGUS_DOCTYPE_STATE))}[BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE](i){isWhitespace(i)||(i===$$5.QUOTATION_MARK?(this.currentToken.publicId="",this.state=DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE):i===$$5.APOSTROPHE?(this.currentToken.publicId="",this.state=DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE):i===$$5.GREATER_THAN_SIGN?(this._err(ERR$1.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=DATA_STATE,this._emitCurrentToken()):i===$$5.EOF?(this._err(ERR$1.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ERR$1.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(BOGUS_DOCTYPE_STATE)))}[DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE](i){i===$$5.QUOTATION_MARK?this.state=AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE:i===$$5.NULL?(this._err(ERR$1.unexpectedNullCharacter),this.currentToken.publicId+=unicode$1.REPLACEMENT_CHARACTER):i===$$5.GREATER_THAN_SIGN?(this._err(ERR$1.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=DATA_STATE):i===$$5.EOF?(this._err(ERR$1.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=toChar(i)}[DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE](i){i===$$5.APOSTROPHE?this.state=AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE:i===$$5.NULL?(this._err(ERR$1.unexpectedNullCharacter),this.currentToken.publicId+=unicode$1.REPLACEMENT_CHARACTER):i===$$5.GREATER_THAN_SIGN?(this._err(ERR$1.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=DATA_STATE):i===$$5.EOF?(this._err(ERR$1.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=toChar(i)}[AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE](i){isWhitespace(i)?this.state=BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE:i===$$5.GREATER_THAN_SIGN?(this.state=DATA_STATE,this._emitCurrentToken()):i===$$5.QUOTATION_MARK?(this._err(ERR$1.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE):i===$$5.APOSTROPHE?(this._err(ERR$1.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE):i===$$5.EOF?(this._err(ERR$1.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ERR$1.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(BOGUS_DOCTYPE_STATE))}[BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE](i){isWhitespace(i)||(i===$$5.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=DATA_STATE):i===$$5.QUOTATION_MARK?(this.currentToken.systemId="",this.state=DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE):i===$$5.APOSTROPHE?(this.currentToken.systemId="",this.state=DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE):i===$$5.EOF?(this._err(ERR$1.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ERR$1.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(BOGUS_DOCTYPE_STATE)))}[AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE](i){isWhitespace(i)?this.state=BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE:i===$$5.QUOTATION_MARK?(this._err(ERR$1.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE):i===$$5.APOSTROPHE?(this._err(ERR$1.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE):i===$$5.GREATER_THAN_SIGN?(this._err(ERR$1.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=DATA_STATE,this._emitCurrentToken()):i===$$5.EOF?(this._err(ERR$1.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ERR$1.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(BOGUS_DOCTYPE_STATE))}[BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE](i){isWhitespace(i)||(i===$$5.QUOTATION_MARK?(this.currentToken.systemId="",this.state=DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE):i===$$5.APOSTROPHE?(this.currentToken.systemId="",this.state=DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE):i===$$5.GREATER_THAN_SIGN?(this._err(ERR$1.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=DATA_STATE,this._emitCurrentToken()):i===$$5.EOF?(this._err(ERR$1.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ERR$1.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(BOGUS_DOCTYPE_STATE)))}[DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE](i){i===$$5.QUOTATION_MARK?this.state=AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE:i===$$5.NULL?(this._err(ERR$1.unexpectedNullCharacter),this.currentToken.systemId+=unicode$1.REPLACEMENT_CHARACTER):i===$$5.GREATER_THAN_SIGN?(this._err(ERR$1.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=DATA_STATE):i===$$5.EOF?(this._err(ERR$1.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=toChar(i)}[DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE](i){i===$$5.APOSTROPHE?this.state=AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE:i===$$5.NULL?(this._err(ERR$1.unexpectedNullCharacter),this.currentToken.systemId+=unicode$1.REPLACEMENT_CHARACTER):i===$$5.GREATER_THAN_SIGN?(this._err(ERR$1.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=DATA_STATE):i===$$5.EOF?(this._err(ERR$1.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=toChar(i)}[AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE](i){isWhitespace(i)||(i===$$5.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=DATA_STATE):i===$$5.EOF?(this._err(ERR$1.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ERR$1.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(BOGUS_DOCTYPE_STATE)))}[BOGUS_DOCTYPE_STATE](i){i===$$5.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=DATA_STATE):i===$$5.NULL?this._err(ERR$1.unexpectedNullCharacter):i===$$5.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[CDATA_SECTION_STATE](i){i===$$5.RIGHT_SQUARE_BRACKET?this.state=CDATA_SECTION_BRACKET_STATE:i===$$5.EOF?(this._err(ERR$1.eofInCdata),this._emitEOFToken()):this._emitCodePoint(i)}[CDATA_SECTION_BRACKET_STATE](i){i===$$5.RIGHT_SQUARE_BRACKET?this.state=CDATA_SECTION_END_STATE:(this._emitChars("]"),this._reconsumeInState(CDATA_SECTION_STATE))}[CDATA_SECTION_END_STATE](i){i===$$5.GREATER_THAN_SIGN?this.state=DATA_STATE:i===$$5.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(CDATA_SECTION_STATE))}[CHARACTER_REFERENCE_STATE](i){this.tempBuff=[$$5.AMPERSAND],i===$$5.NUMBER_SIGN?(this.tempBuff.push(i),this.state=NUMERIC_CHARACTER_REFERENCE_STATE):isAsciiAlphaNumeric(i)?this._reconsumeInState(NAMED_CHARACTER_REFERENCE_STATE):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[NAMED_CHARACTER_REFERENCE_STATE](i){const _e=this._matchNamedCharacterReference(i);if(this._ensureHibernation())this.tempBuff=[$$5.AMPERSAND];else if(_e){const pt=this.tempBuff[this.tempBuff.length-1]===$$5.SEMICOLON;this._isCharacterReferenceAttributeQuirk(pt)||(pt||this._errOnNextCodePoint(ERR$1.missingSemicolonAfterCharacterReference),this.tempBuff=_e),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=AMBIGUOUS_AMPERSAND_STATE}[AMBIGUOUS_AMPERSAND_STATE](i){isAsciiAlphaNumeric(i)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=toChar(i):this._emitCodePoint(i):(i===$$5.SEMICOLON&&this._err(ERR$1.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[NUMERIC_CHARACTER_REFERENCE_STATE](i){this.charRefCode=0,i===$$5.LATIN_SMALL_X||i===$$5.LATIN_CAPITAL_X?(this.tempBuff.push(i),this.state=HEXADEMICAL_CHARACTER_REFERENCE_START_STATE):this._reconsumeInState(DECIMAL_CHARACTER_REFERENCE_START_STATE)}[HEXADEMICAL_CHARACTER_REFERENCE_START_STATE](i){isAsciiHexDigit(i)?this._reconsumeInState(HEXADEMICAL_CHARACTER_REFERENCE_STATE):(this._err(ERR$1.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[DECIMAL_CHARACTER_REFERENCE_START_STATE](i){isAsciiDigit(i)?this._reconsumeInState(DECIMAL_CHARACTER_REFERENCE_STATE):(this._err(ERR$1.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[HEXADEMICAL_CHARACTER_REFERENCE_STATE](i){isAsciiUpperHexDigit(i)?this.charRefCode=this.charRefCode*16+i-55:isAsciiLowerHexDigit(i)?this.charRefCode=this.charRefCode*16+i-87:isAsciiDigit(i)?this.charRefCode=this.charRefCode*16+i-48:i===$$5.SEMICOLON?this.state=NUMERIC_CHARACTER_REFERENCE_END_STATE:(this._err(ERR$1.missingSemicolonAfterCharacterReference),this._reconsumeInState(NUMERIC_CHARACTER_REFERENCE_END_STATE))}[DECIMAL_CHARACTER_REFERENCE_STATE](i){isAsciiDigit(i)?this.charRefCode=this.charRefCode*10+i-48:i===$$5.SEMICOLON?this.state=NUMERIC_CHARACTER_REFERENCE_END_STATE:(this._err(ERR$1.missingSemicolonAfterCharacterReference),this._reconsumeInState(NUMERIC_CHARACTER_REFERENCE_END_STATE))}[NUMERIC_CHARACTER_REFERENCE_END_STATE](){if(this.charRefCode===$$5.NULL)this._err(ERR$1.nullCharacterReference),this.charRefCode=$$5.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(ERR$1.characterReferenceOutsideUnicodeRange),this.charRefCode=$$5.REPLACEMENT_CHARACTER;else if(unicode$1.isSurrogate(this.charRefCode))this._err(ERR$1.surrogateCharacterReference),this.charRefCode=$$5.REPLACEMENT_CHARACTER;else if(unicode$1.isUndefinedCodePoint(this.charRefCode))this._err(ERR$1.noncharacterCharacterReference);else if(unicode$1.isControlCodePoint(this.charRefCode)||this.charRefCode===$$5.CARRIAGE_RETURN){this._err(ERR$1.controlCharacterReference);const i=C1_CONTROLS_REFERENCE_REPLACEMENTS[this.charRefCode];i&&(this.charRefCode=i)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}};Tokenizer$4.CHARACTER_TOKEN="CHARACTER_TOKEN";Tokenizer$4.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN";Tokenizer$4.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN";Tokenizer$4.START_TAG_TOKEN="START_TAG_TOKEN";Tokenizer$4.END_TAG_TOKEN="END_TAG_TOKEN";Tokenizer$4.COMMENT_TOKEN="COMMENT_TOKEN";Tokenizer$4.DOCTYPE_TOKEN="DOCTYPE_TOKEN";Tokenizer$4.EOF_TOKEN="EOF_TOKEN";Tokenizer$4.HIBERNATION_TOKEN="HIBERNATION_TOKEN";Tokenizer$4.MODE={DATA:DATA_STATE,RCDATA:RCDATA_STATE,RAWTEXT:RAWTEXT_STATE,SCRIPT_DATA:SCRIPT_DATA_STATE,PLAINTEXT:PLAINTEXT_STATE};Tokenizer$4.getTokenAttr=function(a,i){for(let _e=a.attrs.length-1;_e>=0;_e--)if(a.attrs[_e].name===i)return a.attrs[_e].value;return null};var tokenizer=Tokenizer$4,html$4={};const NS$3=html$4.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};html$4.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"};html$4.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const $$4=html$4.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};html$4.SPECIAL_ELEMENTS={[NS$3.HTML]:{[$$4.ADDRESS]:!0,[$$4.APPLET]:!0,[$$4.AREA]:!0,[$$4.ARTICLE]:!0,[$$4.ASIDE]:!0,[$$4.BASE]:!0,[$$4.BASEFONT]:!0,[$$4.BGSOUND]:!0,[$$4.BLOCKQUOTE]:!0,[$$4.BODY]:!0,[$$4.BR]:!0,[$$4.BUTTON]:!0,[$$4.CAPTION]:!0,[$$4.CENTER]:!0,[$$4.COL]:!0,[$$4.COLGROUP]:!0,[$$4.DD]:!0,[$$4.DETAILS]:!0,[$$4.DIR]:!0,[$$4.DIV]:!0,[$$4.DL]:!0,[$$4.DT]:!0,[$$4.EMBED]:!0,[$$4.FIELDSET]:!0,[$$4.FIGCAPTION]:!0,[$$4.FIGURE]:!0,[$$4.FOOTER]:!0,[$$4.FORM]:!0,[$$4.FRAME]:!0,[$$4.FRAMESET]:!0,[$$4.H1]:!0,[$$4.H2]:!0,[$$4.H3]:!0,[$$4.H4]:!0,[$$4.H5]:!0,[$$4.H6]:!0,[$$4.HEAD]:!0,[$$4.HEADER]:!0,[$$4.HGROUP]:!0,[$$4.HR]:!0,[$$4.HTML]:!0,[$$4.IFRAME]:!0,[$$4.IMG]:!0,[$$4.INPUT]:!0,[$$4.LI]:!0,[$$4.LINK]:!0,[$$4.LISTING]:!0,[$$4.MAIN]:!0,[$$4.MARQUEE]:!0,[$$4.MENU]:!0,[$$4.META]:!0,[$$4.NAV]:!0,[$$4.NOEMBED]:!0,[$$4.NOFRAMES]:!0,[$$4.NOSCRIPT]:!0,[$$4.OBJECT]:!0,[$$4.OL]:!0,[$$4.P]:!0,[$$4.PARAM]:!0,[$$4.PLAINTEXT]:!0,[$$4.PRE]:!0,[$$4.SCRIPT]:!0,[$$4.SECTION]:!0,[$$4.SELECT]:!0,[$$4.SOURCE]:!0,[$$4.STYLE]:!0,[$$4.SUMMARY]:!0,[$$4.TABLE]:!0,[$$4.TBODY]:!0,[$$4.TD]:!0,[$$4.TEMPLATE]:!0,[$$4.TEXTAREA]:!0,[$$4.TFOOT]:!0,[$$4.TH]:!0,[$$4.THEAD]:!0,[$$4.TITLE]:!0,[$$4.TR]:!0,[$$4.TRACK]:!0,[$$4.UL]:!0,[$$4.WBR]:!0,[$$4.XMP]:!0},[NS$3.MATHML]:{[$$4.MI]:!0,[$$4.MO]:!0,[$$4.MN]:!0,[$$4.MS]:!0,[$$4.MTEXT]:!0,[$$4.ANNOTATION_XML]:!0},[NS$3.SVG]:{[$$4.TITLE]:!0,[$$4.FOREIGN_OBJECT]:!0,[$$4.DESC]:!0}};const HTML$3=html$4,$$3=HTML$3.TAG_NAMES,NS$2=HTML$3.NAMESPACES;function isImpliedEndTagRequired(a){switch(a.length){case 1:return a===$$3.P;case 2:return a===$$3.RB||a===$$3.RP||a===$$3.RT||a===$$3.DD||a===$$3.DT||a===$$3.LI;case 3:return a===$$3.RTC;case 6:return a===$$3.OPTION;case 8:return a===$$3.OPTGROUP}return!1}function isImpliedEndTagRequiredThoroughly(a){switch(a.length){case 1:return a===$$3.P;case 2:return a===$$3.RB||a===$$3.RP||a===$$3.RT||a===$$3.DD||a===$$3.DT||a===$$3.LI||a===$$3.TD||a===$$3.TH||a===$$3.TR;case 3:return a===$$3.RTC;case 5:return a===$$3.TBODY||a===$$3.TFOOT||a===$$3.THEAD;case 6:return a===$$3.OPTION;case 7:return a===$$3.CAPTION;case 8:return a===$$3.OPTGROUP||a===$$3.COLGROUP}return!1}function isScopingElement(a,i){switch(a.length){case 2:if(a===$$3.TD||a===$$3.TH)return i===NS$2.HTML;if(a===$$3.MI||a===$$3.MO||a===$$3.MN||a===$$3.MS)return i===NS$2.MATHML;break;case 4:if(a===$$3.HTML)return i===NS$2.HTML;if(a===$$3.DESC)return i===NS$2.SVG;break;case 5:if(a===$$3.TABLE)return i===NS$2.HTML;if(a===$$3.MTEXT)return i===NS$2.MATHML;if(a===$$3.TITLE)return i===NS$2.SVG;break;case 6:return(a===$$3.APPLET||a===$$3.OBJECT)&&i===NS$2.HTML;case 7:return(a===$$3.CAPTION||a===$$3.MARQUEE)&&i===NS$2.HTML;case 8:return a===$$3.TEMPLATE&&i===NS$2.HTML;case 13:return a===$$3.FOREIGN_OBJECT&&i===NS$2.SVG;case 14:return a===$$3.ANNOTATION_XML&&i===NS$2.MATHML}return!1}let OpenElementStack$1=class{constructor(i,_e){this.stackTop=-1,this.items=[],this.current=i,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=_e}_indexOf(i){let _e=-1;for(let pt=this.stackTop;pt>=0;pt--)if(this.items[pt]===i){_e=pt;break}return _e}_isInTemplate(){return this.currentTagName===$$3.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===NS$2.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(i){this.items[++this.stackTop]=i,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(i,_e){const pt=this._indexOf(i);this.items[pt]=_e,pt===this.stackTop&&this._updateCurrentElement()}insertAfter(i,_e){const pt=this._indexOf(i)+1;this.items.splice(pt,0,_e),pt===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(i){for(;this.stackTop>-1;){const _e=this.currentTagName,pt=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),_e===i&&pt===NS$2.HTML)break}}popUntilElementPopped(i){for(;this.stackTop>-1;){const _e=this.current;if(this.pop(),_e===i)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const i=this.currentTagName,_e=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),i===$$3.H1||i===$$3.H2||i===$$3.H3||i===$$3.H4||i===$$3.H5||i===$$3.H6&&_e===NS$2.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const i=this.currentTagName,_e=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),i===$$3.TD||i===$$3.TH&&_e===NS$2.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==$$3.TABLE&&this.currentTagName!==$$3.TEMPLATE&&this.currentTagName!==$$3.HTML||this.treeAdapter.getNamespaceURI(this.current)!==NS$2.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==$$3.TBODY&&this.currentTagName!==$$3.TFOOT&&this.currentTagName!==$$3.THEAD&&this.currentTagName!==$$3.TEMPLATE&&this.currentTagName!==$$3.HTML||this.treeAdapter.getNamespaceURI(this.current)!==NS$2.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==$$3.TR&&this.currentTagName!==$$3.TEMPLATE&&this.currentTagName!==$$3.HTML||this.treeAdapter.getNamespaceURI(this.current)!==NS$2.HTML;)this.pop()}remove(i){for(let _e=this.stackTop;_e>=0;_e--)if(this.items[_e]===i){this.items.splice(_e,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const i=this.items[1];return i&&this.treeAdapter.getTagName(i)===$$3.BODY?i:null}contains(i){return this._indexOf(i)>-1}getCommonAncestor(i){let _e=this._indexOf(i);return--_e>=0?this.items[_e]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.currentTagName===$$3.HTML}hasInScope(i){for(let _e=this.stackTop;_e>=0;_e--){const pt=this.treeAdapter.getTagName(this.items[_e]),Lt=this.treeAdapter.getNamespaceURI(this.items[_e]);if(pt===i&&Lt===NS$2.HTML)return!0;if(isScopingElement(pt,Lt))return!1}return!0}hasNumberedHeaderInScope(){for(let i=this.stackTop;i>=0;i--){const _e=this.treeAdapter.getTagName(this.items[i]),pt=this.treeAdapter.getNamespaceURI(this.items[i]);if((_e===$$3.H1||_e===$$3.H2||_e===$$3.H3||_e===$$3.H4||_e===$$3.H5||_e===$$3.H6)&&pt===NS$2.HTML)return!0;if(isScopingElement(_e,pt))return!1}return!0}hasInListItemScope(i){for(let _e=this.stackTop;_e>=0;_e--){const pt=this.treeAdapter.getTagName(this.items[_e]),Lt=this.treeAdapter.getNamespaceURI(this.items[_e]);if(pt===i&&Lt===NS$2.HTML)return!0;if((pt===$$3.UL||pt===$$3.OL)&&Lt===NS$2.HTML||isScopingElement(pt,Lt))return!1}return!0}hasInButtonScope(i){for(let _e=this.stackTop;_e>=0;_e--){const pt=this.treeAdapter.getTagName(this.items[_e]),Lt=this.treeAdapter.getNamespaceURI(this.items[_e]);if(pt===i&&Lt===NS$2.HTML)return!0;if(pt===$$3.BUTTON&&Lt===NS$2.HTML||isScopingElement(pt,Lt))return!1}return!0}hasInTableScope(i){for(let _e=this.stackTop;_e>=0;_e--){const pt=this.treeAdapter.getTagName(this.items[_e]);if(this.treeAdapter.getNamespaceURI(this.items[_e])===NS$2.HTML){if(pt===i)return!0;if(pt===$$3.TABLE||pt===$$3.TEMPLATE||pt===$$3.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let i=this.stackTop;i>=0;i--){const _e=this.treeAdapter.getTagName(this.items[i]);if(this.treeAdapter.getNamespaceURI(this.items[i])===NS$2.HTML){if(_e===$$3.TBODY||_e===$$3.THEAD||_e===$$3.TFOOT)return!0;if(_e===$$3.TABLE||_e===$$3.HTML)return!1}}return!0}hasInSelectScope(i){for(let _e=this.stackTop;_e>=0;_e--){const pt=this.treeAdapter.getTagName(this.items[_e]);if(this.treeAdapter.getNamespaceURI(this.items[_e])===NS$2.HTML){if(pt===i)return!0;if(pt!==$$3.OPTION&&pt!==$$3.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;isImpliedEndTagRequired(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;isImpliedEndTagRequiredThoroughly(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(i){for(;isImpliedEndTagRequired(this.currentTagName)&&this.currentTagName!==i;)this.pop()}};var openElementStack=OpenElementStack$1;const NOAH_ARK_CAPACITY=3;let FormattingElementList$1=class dx{constructor(i){this.length=0,this.entries=[],this.treeAdapter=i,this.bookmark=null}_getNoahArkConditionCandidates(i){const _e=[];if(this.length>=NOAH_ARK_CAPACITY){const pt=this.treeAdapter.getAttrList(i).length,Lt=this.treeAdapter.getTagName(i),Gt=this.treeAdapter.getNamespaceURI(i);for(let Ct=this.length-1;Ct>=0;Ct--){const Rt=this.entries[Ct];if(Rt.type===dx.MARKER_ENTRY)break;const o=Rt.element,it=this.treeAdapter.getAttrList(o);this.treeAdapter.getTagName(o)===Lt&&this.treeAdapter.getNamespaceURI(o)===Gt&&it.length===pt&&_e.push({idx:Ct,attrs:it})}}return _e.length=NOAH_ARK_CAPACITY-1;Rt--)this.entries.splice(_e[Rt].idx,1),this.length--}}insertMarker(){this.entries.push({type:dx.MARKER_ENTRY}),this.length++}pushElement(i,_e){this._ensureNoahArkCondition(i),this.entries.push({type:dx.ELEMENT_ENTRY,element:i,token:_e}),this.length++}insertElementAfterBookmark(i,_e){let pt=this.length-1;for(;pt>=0&&this.entries[pt]!==this.bookmark;pt--);this.entries.splice(pt+1,0,{type:dx.ELEMENT_ENTRY,element:i,token:_e}),this.length++}removeEntry(i){for(let _e=this.length-1;_e>=0;_e--)if(this.entries[_e]===i){this.entries.splice(_e,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const i=this.entries.pop();if(this.length--,i.type===dx.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(i){for(let _e=this.length-1;_e>=0;_e--){const pt=this.entries[_e];if(pt.type===dx.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(pt.element)===i)return pt}return null}getElementEntry(i){for(let _e=this.length-1;_e>=0;_e--){const pt=this.entries[_e];if(pt.type===dx.ELEMENT_ENTRY&&pt.element===i)return pt}return null}};FormattingElementList$1.MARKER_ENTRY="MARKER_ENTRY";FormattingElementList$1.ELEMENT_ENTRY="ELEMENT_ENTRY";var formattingElementList=FormattingElementList$1;let Mixin$9=class{constructor(i){const _e={},pt=this._getOverriddenMethods(this,_e);for(const Lt of Object.keys(pt))typeof pt[Lt]=="function"&&(_e[Lt]=i[Lt],i[Lt]=pt[Lt])}_getOverriddenMethods(){throw new Error("Not implemented")}};Mixin$9.install=function(a,i,_e){a.__mixins||(a.__mixins=[]);for(let Lt=0;Lt{const Gt=Tokenizer$3.MODE[Lt];pt[Gt]=function(Ct){i.ctLoc=i._getCurrentLocation(),_e[Gt].call(this,Ct)}}),pt}};var tokenizerMixin$1=LocationInfoTokenizerMixin$2;const Mixin$6=mixin;let LocationInfoOpenElementStackMixin$1=class extends Mixin$6{constructor(i,_e){super(i),this.onItemPop=_e.onItemPop}_getOverriddenMethods(i,_e){return{pop(){i.onItemPop(this.current),_e.pop.call(this)},popAllUpToHtmlElement(){for(let pt=this.stackTop;pt>0;pt--)i.onItemPop(this.items[pt]);_e.popAllUpToHtmlElement.call(this)},remove(pt){i.onItemPop(this.current),_e.remove.call(this,pt)}}}};var openElementStackMixin=LocationInfoOpenElementStackMixin$1;const Mixin$5=mixin,Tokenizer$2=tokenizer,LocationInfoTokenizerMixin$1=tokenizerMixin$1,LocationInfoOpenElementStackMixin=openElementStackMixin,HTML$2=html$4,$$2=HTML$2.TAG_NAMES;let LocationInfoParserMixin$1=class extends Mixin$5{constructor(i){super(i),this.parser=i,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(i){let _e=null;this.lastStartTagToken&&(_e=Object.assign({},this.lastStartTagToken.location),_e.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(i,_e)}_setEndLocation(i,_e){if(this.treeAdapter.getNodeSourceCodeLocation(i)&&_e.location){const Lt=_e.location,Gt=this.treeAdapter.getTagName(i),Ct=_e.type===Tokenizer$2.END_TAG_TOKEN&&Gt===_e.tagName,Rt={};Ct?(Rt.endTag=Object.assign({},Lt),Rt.endLine=Lt.endLine,Rt.endCol=Lt.endCol,Rt.endOffset=Lt.endOffset):(Rt.endLine=Lt.startLine,Rt.endCol=Lt.startCol,Rt.endOffset=Lt.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(i,Rt)}}_getOverriddenMethods(i,_e){return{_bootstrap(pt,Lt){_e._bootstrap.call(this,pt,Lt),i.lastStartTagToken=null,i.lastFosterParentingLocation=null,i.currentToken=null;const Gt=Mixin$5.install(this.tokenizer,LocationInfoTokenizerMixin$1);i.posTracker=Gt.posTracker,Mixin$5.install(this.openElements,LocationInfoOpenElementStackMixin,{onItemPop:function(Ct){i._setEndLocation(Ct,i.currentToken)}})},_runParsingLoop(pt){_e._runParsingLoop.call(this,pt);for(let Lt=this.openElements.stackTop;Lt>=0;Lt--)i._setEndLocation(this.openElements.items[Lt],i.currentToken)},_processTokenInForeignContent(pt){i.currentToken=pt,_e._processTokenInForeignContent.call(this,pt)},_processToken(pt){if(i.currentToken=pt,_e._processToken.call(this,pt),pt.type===Tokenizer$2.END_TAG_TOKEN&&(pt.tagName===$$2.HTML||pt.tagName===$$2.BODY&&this.openElements.hasInScope($$2.BODY)))for(let Gt=this.openElements.stackTop;Gt>=0;Gt--){const Ct=this.openElements.items[Gt];if(this.treeAdapter.getTagName(Ct)===pt.tagName){i._setEndLocation(Ct,pt);break}}},_setDocumentType(pt){_e._setDocumentType.call(this,pt);const Lt=this.treeAdapter.getChildNodes(this.document),Gt=Lt.length;for(let Ct=0;Ct(Object.keys(Lt).forEach(Gt=>{pt[Gt]=Lt[Gt]}),pt),Object.create(null))},doctype$2={};const{DOCUMENT_MODE}=html$4,VALID_DOCTYPE_NAME="html",VALID_SYSTEM_ID="about:legacy-compat",QUIRKS_MODE_SYSTEM_ID="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",QUIRKS_MODE_PUBLIC_ID_PREFIXES=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],QUIRKS_MODE_NO_SYSTEM_ID_PUBLIC_ID_PREFIXES=QUIRKS_MODE_PUBLIC_ID_PREFIXES.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),QUIRKS_MODE_PUBLIC_IDS=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],LIMITED_QUIRKS_PUBLIC_ID_PREFIXES=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],LIMITED_QUIRKS_WITH_SYSTEM_ID_PUBLIC_ID_PREFIXES=LIMITED_QUIRKS_PUBLIC_ID_PREFIXES.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function enquoteDoctypeId(a){const i=a.indexOf('"')!==-1?"'":'"';return i+a+i}function hasPrefix(a,i){for(let _e=0;_e-1)return DOCUMENT_MODE.QUIRKS;let pt=i===null?QUIRKS_MODE_NO_SYSTEM_ID_PUBLIC_ID_PREFIXES:QUIRKS_MODE_PUBLIC_ID_PREFIXES;if(hasPrefix(_e,pt))return DOCUMENT_MODE.QUIRKS;if(pt=i===null?LIMITED_QUIRKS_PUBLIC_ID_PREFIXES:LIMITED_QUIRKS_WITH_SYSTEM_ID_PUBLIC_ID_PREFIXES,hasPrefix(_e,pt))return DOCUMENT_MODE.LIMITED_QUIRKS}return DOCUMENT_MODE.NO_QUIRKS};doctype$2.serializeContent=function(a,i,_e){let pt="!DOCTYPE ";return a&&(pt+=a),i?pt+=" PUBLIC "+enquoteDoctypeId(i):_e&&(pt+=" SYSTEM"),_e!==null&&(pt+=" "+enquoteDoctypeId(_e)),pt};var foreignContent$1={};const Tokenizer$1=tokenizer,HTML$1=html$4,$$1=HTML$1.TAG_NAMES,NS$1=HTML$1.NAMESPACES,ATTRS$1=HTML$1.ATTRS,MIME_TYPES={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},DEFINITION_URL_ATTR="definitionurl",ADJUSTED_DEFINITION_URL_ATTR="definitionURL",SVG_ATTRS_ADJUSTMENT_MAP={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},XML_ATTRS_ADJUSTMENT_MAP={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:NS$1.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:NS$1.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:NS$1.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:NS$1.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:NS$1.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:NS$1.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:NS$1.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:NS$1.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:NS$1.XML},"xml:space":{prefix:"xml",name:"space",namespace:NS$1.XML},xmlns:{prefix:"",name:"xmlns",namespace:NS$1.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:NS$1.XMLNS}},SVG_TAG_NAMES_ADJUSTMENT_MAP=foreignContent$1.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},EXITS_FOREIGN_CONTENT={[$$1.B]:!0,[$$1.BIG]:!0,[$$1.BLOCKQUOTE]:!0,[$$1.BODY]:!0,[$$1.BR]:!0,[$$1.CENTER]:!0,[$$1.CODE]:!0,[$$1.DD]:!0,[$$1.DIV]:!0,[$$1.DL]:!0,[$$1.DT]:!0,[$$1.EM]:!0,[$$1.EMBED]:!0,[$$1.H1]:!0,[$$1.H2]:!0,[$$1.H3]:!0,[$$1.H4]:!0,[$$1.H5]:!0,[$$1.H6]:!0,[$$1.HEAD]:!0,[$$1.HR]:!0,[$$1.I]:!0,[$$1.IMG]:!0,[$$1.LI]:!0,[$$1.LISTING]:!0,[$$1.MENU]:!0,[$$1.META]:!0,[$$1.NOBR]:!0,[$$1.OL]:!0,[$$1.P]:!0,[$$1.PRE]:!0,[$$1.RUBY]:!0,[$$1.S]:!0,[$$1.SMALL]:!0,[$$1.SPAN]:!0,[$$1.STRONG]:!0,[$$1.STRIKE]:!0,[$$1.SUB]:!0,[$$1.SUP]:!0,[$$1.TABLE]:!0,[$$1.TT]:!0,[$$1.U]:!0,[$$1.UL]:!0,[$$1.VAR]:!0};foreignContent$1.causesExit=function(a){const i=a.tagName;return i===$$1.FONT&&(Tokenizer$1.getTokenAttr(a,ATTRS$1.COLOR)!==null||Tokenizer$1.getTokenAttr(a,ATTRS$1.SIZE)!==null||Tokenizer$1.getTokenAttr(a,ATTRS$1.FACE)!==null)?!0:EXITS_FOREIGN_CONTENT[i]};foreignContent$1.adjustTokenMathMLAttrs=function(a){for(let i=0;i0);for(let Lt=_e;Lt=0;i--){let pt=this.openElements.items[i];i===0&&(_e=!0,this.fragmentContext&&(pt=this.fragmentContext));const Lt=this.treeAdapter.getTagName(pt),Gt=INSERTION_MODE_RESET_MAP[Lt];if(Gt){this.insertionMode=Gt;break}else if(!_e&&(Lt===$.TD||Lt===$.TH)){this.insertionMode=IN_CELL_MODE;break}else if(!_e&&Lt===$.HEAD){this.insertionMode=IN_HEAD_MODE;break}else if(Lt===$.SELECT){this._resetInsertionModeForSelect(i);break}else if(Lt===$.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(Lt===$.HTML){this.insertionMode=this.headElement?AFTER_HEAD_MODE:BEFORE_HEAD_MODE;break}else if(_e){this.insertionMode=IN_BODY_MODE;break}}}_resetInsertionModeForSelect(i){if(i>0)for(let _e=i-1;_e>0;_e--){const pt=this.openElements.items[_e],Lt=this.treeAdapter.getTagName(pt);if(Lt===$.TEMPLATE)break;if(Lt===$.TABLE){this.insertionMode=IN_SELECT_IN_TABLE_MODE;return}}this.insertionMode=IN_SELECT_MODE}_pushTmplInsertionMode(i){this.tmplInsertionModeStack.push(i),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=i}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(i){const _e=this.treeAdapter.getTagName(i);return _e===$.TABLE||_e===$.TBODY||_e===$.TFOOT||_e===$.THEAD||_e===$.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const i={parent:null,beforeElement:null};for(let _e=this.openElements.stackTop;_e>=0;_e--){const pt=this.openElements.items[_e],Lt=this.treeAdapter.getTagName(pt),Gt=this.treeAdapter.getNamespaceURI(pt);if(Lt===$.TEMPLATE&&Gt===NS.HTML){i.parent=this.treeAdapter.getTemplateContent(pt);break}else if(Lt===$.TABLE){i.parent=this.treeAdapter.getParentNode(pt),i.parent?i.beforeElement=pt:i.parent=this.openElements.items[_e-1];break}}return i.parent||(i.parent=this.openElements.items[0]),i}_fosterParentElement(i){const _e=this._findFosterParentingLocation();_e.beforeElement?this.treeAdapter.insertBefore(_e.parent,i,_e.beforeElement):this.treeAdapter.appendChild(_e.parent,i)}_fosterParentText(i){const _e=this._findFosterParentingLocation();_e.beforeElement?this.treeAdapter.insertTextBefore(_e.parent,i,_e.beforeElement):this.treeAdapter.insertText(_e.parent,i)}_isSpecialElement(i){const _e=this.treeAdapter.getTagName(i),pt=this.treeAdapter.getNamespaceURI(i);return HTML.SPECIAL_ELEMENTS[pt][_e]}}var parser=Parser;function aaObtainFormattingElementEntry(a,i){let _e=a.activeFormattingElements.getElementEntryInScopeWithTagName(i.tagName);return _e?a.openElements.contains(_e.element)?a.openElements.hasInScope(i.tagName)||(_e=null):(a.activeFormattingElements.removeEntry(_e),_e=null):genericEndTagInBody(a,i),_e}function aaObtainFurthestBlock(a,i){let _e=null;for(let pt=a.openElements.stackTop;pt>=0;pt--){const Lt=a.openElements.items[pt];if(Lt===i.element)break;a._isSpecialElement(Lt)&&(_e=Lt)}return _e||(a.openElements.popUntilElementPopped(i.element),a.activeFormattingElements.removeEntry(i)),_e}function aaInnerLoop(a,i,_e){let pt=i,Lt=a.openElements.getCommonAncestor(i);for(let Gt=0,Ct=Lt;Ct!==_e;Gt++,Ct=Lt){Lt=a.openElements.getCommonAncestor(Ct);const Rt=a.activeFormattingElements.getElementEntry(Ct),o=Rt&&Gt>=AA_INNER_LOOP_ITER;!Rt||o?(o&&a.activeFormattingElements.removeEntry(Rt),a.openElements.remove(Ct)):(Ct=aaRecreateElementFromEntry(a,Rt),pt===i&&(a.activeFormattingElements.bookmark=Rt),a.treeAdapter.detachNode(pt),a.treeAdapter.appendChild(Ct,pt),pt=Ct)}return pt}function aaRecreateElementFromEntry(a,i){const _e=a.treeAdapter.getNamespaceURI(i.element),pt=a.treeAdapter.createElement(i.token.tagName,_e,i.token.attrs);return a.openElements.replace(i.element,pt),i.element=pt,pt}function aaInsertLastNodeInCommonAncestor(a,i,_e){if(a._isElementCausesFosterParenting(i))a._fosterParentElement(_e);else{const pt=a.treeAdapter.getTagName(i),Lt=a.treeAdapter.getNamespaceURI(i);pt===$.TEMPLATE&&Lt===NS.HTML&&(i=a.treeAdapter.getTemplateContent(i)),a.treeAdapter.appendChild(i,_e)}}function aaReplaceFormattingElement(a,i,_e){const pt=a.treeAdapter.getNamespaceURI(_e.element),Lt=_e.token,Gt=a.treeAdapter.createElement(Lt.tagName,pt,Lt.attrs);a._adoptNodes(i,Gt),a.treeAdapter.appendChild(i,Gt),a.activeFormattingElements.insertElementAfterBookmark(Gt,_e.token),a.activeFormattingElements.removeEntry(_e),a.openElements.remove(_e.element),a.openElements.insertAfter(i,Gt)}function callAdoptionAgency(a,i){let _e;for(let pt=0;pt0?(a.openElements.generateImpliedEndTagsThoroughly(),a.openElements.currentTagName!==$.TEMPLATE&&a._err(ERR.closingOfElementWithOpenChildElements),a.openElements.popUntilTagNamePopped($.TEMPLATE),a.activeFormattingElements.clearToLastMarker(),a._popTmplInsertionMode(),a._resetInsertionMode()):a._err(ERR.endTagWithoutMatchingOpenElement)}function tokenInHead(a,i){a.openElements.pop(),a.insertionMode=AFTER_HEAD_MODE,a._processToken(i)}function startTagInHeadNoScript(a,i){const _e=i.tagName;_e===$.HTML?startTagInBody(a,i):_e===$.BASEFONT||_e===$.BGSOUND||_e===$.HEAD||_e===$.LINK||_e===$.META||_e===$.NOFRAMES||_e===$.STYLE?startTagInHead(a,i):_e===$.NOSCRIPT?a._err(ERR.nestedNoscriptInHead):tokenInHeadNoScript(a,i)}function endTagInHeadNoScript(a,i){const _e=i.tagName;_e===$.NOSCRIPT?(a.openElements.pop(),a.insertionMode=IN_HEAD_MODE):_e===$.BR?tokenInHeadNoScript(a,i):a._err(ERR.endTagWithoutMatchingOpenElement)}function tokenInHeadNoScript(a,i){const _e=i.type===Tokenizer.EOF_TOKEN?ERR.openElementsLeftAfterEof:ERR.disallowedContentInNoscriptInHead;a._err(_e),a.openElements.pop(),a.insertionMode=IN_HEAD_MODE,a._processToken(i)}function startTagAfterHead(a,i){const _e=i.tagName;_e===$.HTML?startTagInBody(a,i):_e===$.BODY?(a._insertElement(i,NS.HTML),a.framesetOk=!1,a.insertionMode=IN_BODY_MODE):_e===$.FRAMESET?(a._insertElement(i,NS.HTML),a.insertionMode=IN_FRAMESET_MODE):_e===$.BASE||_e===$.BASEFONT||_e===$.BGSOUND||_e===$.LINK||_e===$.META||_e===$.NOFRAMES||_e===$.SCRIPT||_e===$.STYLE||_e===$.TEMPLATE||_e===$.TITLE?(a._err(ERR.abandonedHeadElementChild),a.openElements.push(a.headElement),startTagInHead(a,i),a.openElements.remove(a.headElement)):_e===$.HEAD?a._err(ERR.misplacedStartTagForHeadElement):tokenAfterHead(a,i)}function endTagAfterHead(a,i){const _e=i.tagName;_e===$.BODY||_e===$.HTML||_e===$.BR?tokenAfterHead(a,i):_e===$.TEMPLATE?endTagInHead(a,i):a._err(ERR.endTagWithoutMatchingOpenElement)}function tokenAfterHead(a,i){a._insertFakeElement($.BODY),a.insertionMode=IN_BODY_MODE,a._processToken(i)}function whitespaceCharacterInBody(a,i){a._reconstructActiveFormattingElements(),a._insertCharacters(i)}function characterInBody(a,i){a._reconstructActiveFormattingElements(),a._insertCharacters(i),a.framesetOk=!1}function htmlStartTagInBody(a,i){a.openElements.tmplCount===0&&a.treeAdapter.adoptAttributes(a.openElements.items[0],i.attrs)}function bodyStartTagInBody(a,i){const _e=a.openElements.tryPeekProperlyNestedBodyElement();_e&&a.openElements.tmplCount===0&&(a.framesetOk=!1,a.treeAdapter.adoptAttributes(_e,i.attrs))}function framesetStartTagInBody(a,i){const _e=a.openElements.tryPeekProperlyNestedBodyElement();a.framesetOk&&_e&&(a.treeAdapter.detachNode(_e),a.openElements.popAllUpToHtmlElement(),a._insertElement(i,NS.HTML),a.insertionMode=IN_FRAMESET_MODE)}function addressStartTagInBody(a,i){a.openElements.hasInButtonScope($.P)&&a._closePElement(),a._insertElement(i,NS.HTML)}function numberedHeaderStartTagInBody(a,i){a.openElements.hasInButtonScope($.P)&&a._closePElement();const _e=a.openElements.currentTagName;(_e===$.H1||_e===$.H2||_e===$.H3||_e===$.H4||_e===$.H5||_e===$.H6)&&a.openElements.pop(),a._insertElement(i,NS.HTML)}function preStartTagInBody(a,i){a.openElements.hasInButtonScope($.P)&&a._closePElement(),a._insertElement(i,NS.HTML),a.skipNextNewLine=!0,a.framesetOk=!1}function formStartTagInBody(a,i){const _e=a.openElements.tmplCount>0;(!a.formElement||_e)&&(a.openElements.hasInButtonScope($.P)&&a._closePElement(),a._insertElement(i,NS.HTML),_e||(a.formElement=a.openElements.current))}function listItemStartTagInBody(a,i){a.framesetOk=!1;const _e=i.tagName;for(let pt=a.openElements.stackTop;pt>=0;pt--){const Lt=a.openElements.items[pt],Gt=a.treeAdapter.getTagName(Lt);let Ct=null;if(_e===$.LI&&Gt===$.LI?Ct=$.LI:(_e===$.DD||_e===$.DT)&&(Gt===$.DD||Gt===$.DT)&&(Ct=Gt),Ct){a.openElements.generateImpliedEndTagsWithExclusion(Ct),a.openElements.popUntilTagNamePopped(Ct);break}if(Gt!==$.ADDRESS&&Gt!==$.DIV&&Gt!==$.P&&a._isSpecialElement(Lt))break}a.openElements.hasInButtonScope($.P)&&a._closePElement(),a._insertElement(i,NS.HTML)}function plaintextStartTagInBody(a,i){a.openElements.hasInButtonScope($.P)&&a._closePElement(),a._insertElement(i,NS.HTML),a.tokenizer.state=Tokenizer.MODE.PLAINTEXT}function buttonStartTagInBody(a,i){a.openElements.hasInScope($.BUTTON)&&(a.openElements.generateImpliedEndTags(),a.openElements.popUntilTagNamePopped($.BUTTON)),a._reconstructActiveFormattingElements(),a._insertElement(i,NS.HTML),a.framesetOk=!1}function aStartTagInBody(a,i){const _e=a.activeFormattingElements.getElementEntryInScopeWithTagName($.A);_e&&(callAdoptionAgency(a,i),a.openElements.remove(_e.element),a.activeFormattingElements.removeEntry(_e)),a._reconstructActiveFormattingElements(),a._insertElement(i,NS.HTML),a.activeFormattingElements.pushElement(a.openElements.current,i)}function bStartTagInBody(a,i){a._reconstructActiveFormattingElements(),a._insertElement(i,NS.HTML),a.activeFormattingElements.pushElement(a.openElements.current,i)}function nobrStartTagInBody(a,i){a._reconstructActiveFormattingElements(),a.openElements.hasInScope($.NOBR)&&(callAdoptionAgency(a,i),a._reconstructActiveFormattingElements()),a._insertElement(i,NS.HTML),a.activeFormattingElements.pushElement(a.openElements.current,i)}function appletStartTagInBody(a,i){a._reconstructActiveFormattingElements(),a._insertElement(i,NS.HTML),a.activeFormattingElements.insertMarker(),a.framesetOk=!1}function tableStartTagInBody(a,i){a.treeAdapter.getDocumentMode(a.document)!==HTML.DOCUMENT_MODE.QUIRKS&&a.openElements.hasInButtonScope($.P)&&a._closePElement(),a._insertElement(i,NS.HTML),a.framesetOk=!1,a.insertionMode=IN_TABLE_MODE}function areaStartTagInBody(a,i){a._reconstructActiveFormattingElements(),a._appendElement(i,NS.HTML),a.framesetOk=!1,i.ackSelfClosing=!0}function inputStartTagInBody(a,i){a._reconstructActiveFormattingElements(),a._appendElement(i,NS.HTML);const _e=Tokenizer.getTokenAttr(i,ATTRS.TYPE);(!_e||_e.toLowerCase()!==HIDDEN_INPUT_TYPE)&&(a.framesetOk=!1),i.ackSelfClosing=!0}function paramStartTagInBody(a,i){a._appendElement(i,NS.HTML),i.ackSelfClosing=!0}function hrStartTagInBody(a,i){a.openElements.hasInButtonScope($.P)&&a._closePElement(),a._appendElement(i,NS.HTML),a.framesetOk=!1,i.ackSelfClosing=!0}function imageStartTagInBody(a,i){i.tagName=$.IMG,areaStartTagInBody(a,i)}function textareaStartTagInBody(a,i){a._insertElement(i,NS.HTML),a.skipNextNewLine=!0,a.tokenizer.state=Tokenizer.MODE.RCDATA,a.originalInsertionMode=a.insertionMode,a.framesetOk=!1,a.insertionMode=TEXT_MODE}function xmpStartTagInBody(a,i){a.openElements.hasInButtonScope($.P)&&a._closePElement(),a._reconstructActiveFormattingElements(),a.framesetOk=!1,a._switchToTextParsing(i,Tokenizer.MODE.RAWTEXT)}function iframeStartTagInBody(a,i){a.framesetOk=!1,a._switchToTextParsing(i,Tokenizer.MODE.RAWTEXT)}function noembedStartTagInBody(a,i){a._switchToTextParsing(i,Tokenizer.MODE.RAWTEXT)}function selectStartTagInBody(a,i){a._reconstructActiveFormattingElements(),a._insertElement(i,NS.HTML),a.framesetOk=!1,a.insertionMode===IN_TABLE_MODE||a.insertionMode===IN_CAPTION_MODE||a.insertionMode===IN_TABLE_BODY_MODE||a.insertionMode===IN_ROW_MODE||a.insertionMode===IN_CELL_MODE?a.insertionMode=IN_SELECT_IN_TABLE_MODE:a.insertionMode=IN_SELECT_MODE}function optgroupStartTagInBody(a,i){a.openElements.currentTagName===$.OPTION&&a.openElements.pop(),a._reconstructActiveFormattingElements(),a._insertElement(i,NS.HTML)}function rbStartTagInBody(a,i){a.openElements.hasInScope($.RUBY)&&a.openElements.generateImpliedEndTags(),a._insertElement(i,NS.HTML)}function rtStartTagInBody(a,i){a.openElements.hasInScope($.RUBY)&&a.openElements.generateImpliedEndTagsWithExclusion($.RTC),a._insertElement(i,NS.HTML)}function menuStartTagInBody(a,i){a.openElements.hasInButtonScope($.P)&&a._closePElement(),a._insertElement(i,NS.HTML)}function mathStartTagInBody(a,i){a._reconstructActiveFormattingElements(),foreignContent.adjustTokenMathMLAttrs(i),foreignContent.adjustTokenXMLAttrs(i),i.selfClosing?a._appendElement(i,NS.MATHML):a._insertElement(i,NS.MATHML),i.ackSelfClosing=!0}function svgStartTagInBody(a,i){a._reconstructActiveFormattingElements(),foreignContent.adjustTokenSVGAttrs(i),foreignContent.adjustTokenXMLAttrs(i),i.selfClosing?a._appendElement(i,NS.SVG):a._insertElement(i,NS.SVG),i.ackSelfClosing=!0}function genericStartTagInBody(a,i){a._reconstructActiveFormattingElements(),a._insertElement(i,NS.HTML)}function startTagInBody(a,i){const _e=i.tagName;switch(_e.length){case 1:_e===$.I||_e===$.S||_e===$.B||_e===$.U?bStartTagInBody(a,i):_e===$.P?addressStartTagInBody(a,i):_e===$.A?aStartTagInBody(a,i):genericStartTagInBody(a,i);break;case 2:_e===$.DL||_e===$.OL||_e===$.UL?addressStartTagInBody(a,i):_e===$.H1||_e===$.H2||_e===$.H3||_e===$.H4||_e===$.H5||_e===$.H6?numberedHeaderStartTagInBody(a,i):_e===$.LI||_e===$.DD||_e===$.DT?listItemStartTagInBody(a,i):_e===$.EM||_e===$.TT?bStartTagInBody(a,i):_e===$.BR?areaStartTagInBody(a,i):_e===$.HR?hrStartTagInBody(a,i):_e===$.RB?rbStartTagInBody(a,i):_e===$.RT||_e===$.RP?rtStartTagInBody(a,i):_e!==$.TH&&_e!==$.TD&&_e!==$.TR&&genericStartTagInBody(a,i);break;case 3:_e===$.DIV||_e===$.DIR||_e===$.NAV?addressStartTagInBody(a,i):_e===$.PRE?preStartTagInBody(a,i):_e===$.BIG?bStartTagInBody(a,i):_e===$.IMG||_e===$.WBR?areaStartTagInBody(a,i):_e===$.XMP?xmpStartTagInBody(a,i):_e===$.SVG?svgStartTagInBody(a,i):_e===$.RTC?rbStartTagInBody(a,i):_e!==$.COL&&genericStartTagInBody(a,i);break;case 4:_e===$.HTML?htmlStartTagInBody(a,i):_e===$.BASE||_e===$.LINK||_e===$.META?startTagInHead(a,i):_e===$.BODY?bodyStartTagInBody(a,i):_e===$.MAIN||_e===$.MENU?addressStartTagInBody(a,i):_e===$.FORM?formStartTagInBody(a,i):_e===$.CODE||_e===$.FONT?bStartTagInBody(a,i):_e===$.NOBR?nobrStartTagInBody(a,i):_e===$.AREA?areaStartTagInBody(a,i):_e===$.MATH?mathStartTagInBody(a,i):_e===$.MENU?menuStartTagInBody(a,i):_e!==$.HEAD&&genericStartTagInBody(a,i);break;case 5:_e===$.STYLE||_e===$.TITLE?startTagInHead(a,i):_e===$.ASIDE?addressStartTagInBody(a,i):_e===$.SMALL?bStartTagInBody(a,i):_e===$.TABLE?tableStartTagInBody(a,i):_e===$.EMBED?areaStartTagInBody(a,i):_e===$.INPUT?inputStartTagInBody(a,i):_e===$.PARAM||_e===$.TRACK?paramStartTagInBody(a,i):_e===$.IMAGE?imageStartTagInBody(a,i):_e!==$.FRAME&&_e!==$.TBODY&&_e!==$.TFOOT&&_e!==$.THEAD&&genericStartTagInBody(a,i);break;case 6:_e===$.SCRIPT?startTagInHead(a,i):_e===$.CENTER||_e===$.FIGURE||_e===$.FOOTER||_e===$.HEADER||_e===$.HGROUP||_e===$.DIALOG?addressStartTagInBody(a,i):_e===$.BUTTON?buttonStartTagInBody(a,i):_e===$.STRIKE||_e===$.STRONG?bStartTagInBody(a,i):_e===$.APPLET||_e===$.OBJECT?appletStartTagInBody(a,i):_e===$.KEYGEN?areaStartTagInBody(a,i):_e===$.SOURCE?paramStartTagInBody(a,i):_e===$.IFRAME?iframeStartTagInBody(a,i):_e===$.SELECT?selectStartTagInBody(a,i):_e===$.OPTION?optgroupStartTagInBody(a,i):genericStartTagInBody(a,i);break;case 7:_e===$.BGSOUND?startTagInHead(a,i):_e===$.DETAILS||_e===$.ADDRESS||_e===$.ARTICLE||_e===$.SECTION||_e===$.SUMMARY?addressStartTagInBody(a,i):_e===$.LISTING?preStartTagInBody(a,i):_e===$.MARQUEE?appletStartTagInBody(a,i):_e===$.NOEMBED?noembedStartTagInBody(a,i):_e!==$.CAPTION&&genericStartTagInBody(a,i);break;case 8:_e===$.BASEFONT?startTagInHead(a,i):_e===$.FRAMESET?framesetStartTagInBody(a,i):_e===$.FIELDSET?addressStartTagInBody(a,i):_e===$.TEXTAREA?textareaStartTagInBody(a,i):_e===$.TEMPLATE?startTagInHead(a,i):_e===$.NOSCRIPT?a.options.scriptingEnabled?noembedStartTagInBody(a,i):genericStartTagInBody(a,i):_e===$.OPTGROUP?optgroupStartTagInBody(a,i):_e!==$.COLGROUP&&genericStartTagInBody(a,i);break;case 9:_e===$.PLAINTEXT?plaintextStartTagInBody(a,i):genericStartTagInBody(a,i);break;case 10:_e===$.BLOCKQUOTE||_e===$.FIGCAPTION?addressStartTagInBody(a,i):genericStartTagInBody(a,i);break;default:genericStartTagInBody(a,i)}}function bodyEndTagInBody(a){a.openElements.hasInScope($.BODY)&&(a.insertionMode=AFTER_BODY_MODE)}function htmlEndTagInBody(a,i){a.openElements.hasInScope($.BODY)&&(a.insertionMode=AFTER_BODY_MODE,a._processToken(i))}function addressEndTagInBody(a,i){const _e=i.tagName;a.openElements.hasInScope(_e)&&(a.openElements.generateImpliedEndTags(),a.openElements.popUntilTagNamePopped(_e))}function formEndTagInBody(a){const i=a.openElements.tmplCount>0,_e=a.formElement;i||(a.formElement=null),(_e||i)&&a.openElements.hasInScope($.FORM)&&(a.openElements.generateImpliedEndTags(),i?a.openElements.popUntilTagNamePopped($.FORM):a.openElements.remove(_e))}function pEndTagInBody(a){a.openElements.hasInButtonScope($.P)||a._insertFakeElement($.P),a._closePElement()}function liEndTagInBody(a){a.openElements.hasInListItemScope($.LI)&&(a.openElements.generateImpliedEndTagsWithExclusion($.LI),a.openElements.popUntilTagNamePopped($.LI))}function ddEndTagInBody(a,i){const _e=i.tagName;a.openElements.hasInScope(_e)&&(a.openElements.generateImpliedEndTagsWithExclusion(_e),a.openElements.popUntilTagNamePopped(_e))}function numberedHeaderEndTagInBody(a){a.openElements.hasNumberedHeaderInScope()&&(a.openElements.generateImpliedEndTags(),a.openElements.popUntilNumberedHeaderPopped())}function appletEndTagInBody(a,i){const _e=i.tagName;a.openElements.hasInScope(_e)&&(a.openElements.generateImpliedEndTags(),a.openElements.popUntilTagNamePopped(_e),a.activeFormattingElements.clearToLastMarker())}function brEndTagInBody(a){a._reconstructActiveFormattingElements(),a._insertFakeElement($.BR),a.openElements.pop(),a.framesetOk=!1}function genericEndTagInBody(a,i){const _e=i.tagName;for(let pt=a.openElements.stackTop;pt>0;pt--){const Lt=a.openElements.items[pt];if(a.treeAdapter.getTagName(Lt)===_e){a.openElements.generateImpliedEndTagsWithExclusion(_e),a.openElements.popUntilElementPopped(Lt);break}if(a._isSpecialElement(Lt))break}}function endTagInBody(a,i){const _e=i.tagName;switch(_e.length){case 1:_e===$.A||_e===$.B||_e===$.I||_e===$.S||_e===$.U?callAdoptionAgency(a,i):_e===$.P?pEndTagInBody(a):genericEndTagInBody(a,i);break;case 2:_e===$.DL||_e===$.UL||_e===$.OL?addressEndTagInBody(a,i):_e===$.LI?liEndTagInBody(a):_e===$.DD||_e===$.DT?ddEndTagInBody(a,i):_e===$.H1||_e===$.H2||_e===$.H3||_e===$.H4||_e===$.H5||_e===$.H6?numberedHeaderEndTagInBody(a):_e===$.BR?brEndTagInBody(a):_e===$.EM||_e===$.TT?callAdoptionAgency(a,i):genericEndTagInBody(a,i);break;case 3:_e===$.BIG?callAdoptionAgency(a,i):_e===$.DIR||_e===$.DIV||_e===$.NAV||_e===$.PRE?addressEndTagInBody(a,i):genericEndTagInBody(a,i);break;case 4:_e===$.BODY?bodyEndTagInBody(a):_e===$.HTML?htmlEndTagInBody(a,i):_e===$.FORM?formEndTagInBody(a):_e===$.CODE||_e===$.FONT||_e===$.NOBR?callAdoptionAgency(a,i):_e===$.MAIN||_e===$.MENU?addressEndTagInBody(a,i):genericEndTagInBody(a,i);break;case 5:_e===$.ASIDE?addressEndTagInBody(a,i):_e===$.SMALL?callAdoptionAgency(a,i):genericEndTagInBody(a,i);break;case 6:_e===$.CENTER||_e===$.FIGURE||_e===$.FOOTER||_e===$.HEADER||_e===$.HGROUP||_e===$.DIALOG?addressEndTagInBody(a,i):_e===$.APPLET||_e===$.OBJECT?appletEndTagInBody(a,i):_e===$.STRIKE||_e===$.STRONG?callAdoptionAgency(a,i):genericEndTagInBody(a,i);break;case 7:_e===$.ADDRESS||_e===$.ARTICLE||_e===$.DETAILS||_e===$.SECTION||_e===$.SUMMARY||_e===$.LISTING?addressEndTagInBody(a,i):_e===$.MARQUEE?appletEndTagInBody(a,i):genericEndTagInBody(a,i);break;case 8:_e===$.FIELDSET?addressEndTagInBody(a,i):_e===$.TEMPLATE?endTagInHead(a,i):genericEndTagInBody(a,i);break;case 10:_e===$.BLOCKQUOTE||_e===$.FIGCAPTION?addressEndTagInBody(a,i):genericEndTagInBody(a,i);break;default:genericEndTagInBody(a,i)}}function eofInBody(a,i){a.tmplInsertionModeStackTop>-1?eofInTemplate(a,i):a.stopped=!0}function endTagInText(a,i){i.tagName===$.SCRIPT&&(a.pendingScript=a.openElements.current),a.openElements.pop(),a.insertionMode=a.originalInsertionMode}function eofInText(a,i){a._err(ERR.eofInElementThatCanContainOnlyText),a.openElements.pop(),a.insertionMode=a.originalInsertionMode,a._processToken(i)}function characterInTable(a,i){const _e=a.openElements.currentTagName;_e===$.TABLE||_e===$.TBODY||_e===$.TFOOT||_e===$.THEAD||_e===$.TR?(a.pendingCharacterTokens=[],a.hasNonWhitespacePendingCharacterToken=!1,a.originalInsertionMode=a.insertionMode,a.insertionMode=IN_TABLE_TEXT_MODE,a._processToken(i)):tokenInTable(a,i)}function captionStartTagInTable(a,i){a.openElements.clearBackToTableContext(),a.activeFormattingElements.insertMarker(),a._insertElement(i,NS.HTML),a.insertionMode=IN_CAPTION_MODE}function colgroupStartTagInTable(a,i){a.openElements.clearBackToTableContext(),a._insertElement(i,NS.HTML),a.insertionMode=IN_COLUMN_GROUP_MODE}function colStartTagInTable(a,i){a.openElements.clearBackToTableContext(),a._insertFakeElement($.COLGROUP),a.insertionMode=IN_COLUMN_GROUP_MODE,a._processToken(i)}function tbodyStartTagInTable(a,i){a.openElements.clearBackToTableContext(),a._insertElement(i,NS.HTML),a.insertionMode=IN_TABLE_BODY_MODE}function tdStartTagInTable(a,i){a.openElements.clearBackToTableContext(),a._insertFakeElement($.TBODY),a.insertionMode=IN_TABLE_BODY_MODE,a._processToken(i)}function tableStartTagInTable(a,i){a.openElements.hasInTableScope($.TABLE)&&(a.openElements.popUntilTagNamePopped($.TABLE),a._resetInsertionMode(),a._processToken(i))}function inputStartTagInTable(a,i){const _e=Tokenizer.getTokenAttr(i,ATTRS.TYPE);_e&&_e.toLowerCase()===HIDDEN_INPUT_TYPE?a._appendElement(i,NS.HTML):tokenInTable(a,i),i.ackSelfClosing=!0}function formStartTagInTable(a,i){!a.formElement&&a.openElements.tmplCount===0&&(a._insertElement(i,NS.HTML),a.formElement=a.openElements.current,a.openElements.pop())}function startTagInTable(a,i){const _e=i.tagName;switch(_e.length){case 2:_e===$.TD||_e===$.TH||_e===$.TR?tdStartTagInTable(a,i):tokenInTable(a,i);break;case 3:_e===$.COL?colStartTagInTable(a,i):tokenInTable(a,i);break;case 4:_e===$.FORM?formStartTagInTable(a,i):tokenInTable(a,i);break;case 5:_e===$.TABLE?tableStartTagInTable(a,i):_e===$.STYLE?startTagInHead(a,i):_e===$.TBODY||_e===$.TFOOT||_e===$.THEAD?tbodyStartTagInTable(a,i):_e===$.INPUT?inputStartTagInTable(a,i):tokenInTable(a,i);break;case 6:_e===$.SCRIPT?startTagInHead(a,i):tokenInTable(a,i);break;case 7:_e===$.CAPTION?captionStartTagInTable(a,i):tokenInTable(a,i);break;case 8:_e===$.COLGROUP?colgroupStartTagInTable(a,i):_e===$.TEMPLATE?startTagInHead(a,i):tokenInTable(a,i);break;default:tokenInTable(a,i)}}function endTagInTable(a,i){const _e=i.tagName;_e===$.TABLE?a.openElements.hasInTableScope($.TABLE)&&(a.openElements.popUntilTagNamePopped($.TABLE),a._resetInsertionMode()):_e===$.TEMPLATE?endTagInHead(a,i):_e!==$.BODY&&_e!==$.CAPTION&&_e!==$.COL&&_e!==$.COLGROUP&&_e!==$.HTML&&_e!==$.TBODY&&_e!==$.TD&&_e!==$.TFOOT&&_e!==$.TH&&_e!==$.THEAD&&_e!==$.TR&&tokenInTable(a,i)}function tokenInTable(a,i){const _e=a.fosterParentingEnabled;a.fosterParentingEnabled=!0,a._processTokenInBodyMode(i),a.fosterParentingEnabled=_e}function whitespaceCharacterInTableText(a,i){a.pendingCharacterTokens.push(i)}function characterInTableText(a,i){a.pendingCharacterTokens.push(i),a.hasNonWhitespacePendingCharacterToken=!0}function tokenInTableText(a,i){let _e=0;if(a.hasNonWhitespacePendingCharacterToken)for(;_e0?(a.openElements.popUntilTagNamePopped($.TEMPLATE),a.activeFormattingElements.clearToLastMarker(),a._popTmplInsertionMode(),a._resetInsertionMode(),a._processToken(i)):a.stopped=!0}function startTagAfterBody(a,i){i.tagName===$.HTML?startTagInBody(a,i):tokenAfterBody(a,i)}function endTagAfterBody(a,i){i.tagName===$.HTML?a.fragmentContext||(a.insertionMode=AFTER_AFTER_BODY_MODE):tokenAfterBody(a,i)}function tokenAfterBody(a,i){a.insertionMode=IN_BODY_MODE,a._processToken(i)}function startTagInFrameset(a,i){const _e=i.tagName;_e===$.HTML?startTagInBody(a,i):_e===$.FRAMESET?a._insertElement(i,NS.HTML):_e===$.FRAME?(a._appendElement(i,NS.HTML),i.ackSelfClosing=!0):_e===$.NOFRAMES&&startTagInHead(a,i)}function endTagInFrameset(a,i){i.tagName===$.FRAMESET&&!a.openElements.isRootHtmlElementCurrent()&&(a.openElements.pop(),!a.fragmentContext&&a.openElements.currentTagName!==$.FRAMESET&&(a.insertionMode=AFTER_FRAMESET_MODE))}function startTagAfterFrameset(a,i){const _e=i.tagName;_e===$.HTML?startTagInBody(a,i):_e===$.NOFRAMES&&startTagInHead(a,i)}function endTagAfterFrameset(a,i){i.tagName===$.HTML&&(a.insertionMode=AFTER_AFTER_FRAMESET_MODE)}function startTagAfterAfterBody(a,i){i.tagName===$.HTML?startTagInBody(a,i):tokenAfterAfterBody(a,i)}function tokenAfterAfterBody(a,i){a.insertionMode=IN_BODY_MODE,a._processToken(i)}function startTagAfterAfterFrameset(a,i){const _e=i.tagName;_e===$.HTML?startTagInBody(a,i):_e===$.NOFRAMES&&startTagInHead(a,i)}function nullCharacterInForeignContent(a,i){i.chars=unicode.REPLACEMENT_CHARACTER,a._insertCharacters(i)}function characterInForeignContent(a,i){a._insertCharacters(i),a.framesetOk=!1}function startTagInForeignContent(a,i){if(foreignContent.causesExit(i)&&!a.fragmentContext){for(;a.treeAdapter.getNamespaceURI(a.openElements.current)!==NS.HTML&&!a._isIntegrationPoint(a.openElements.current);)a.openElements.pop();a._processToken(i)}else{const _e=a._getAdjustedCurrentElement(),pt=a.treeAdapter.getNamespaceURI(_e);pt===NS.MATHML?foreignContent.adjustTokenMathMLAttrs(i):pt===NS.SVG&&(foreignContent.adjustTokenSVGTagName(i),foreignContent.adjustTokenSVGAttrs(i)),foreignContent.adjustTokenXMLAttrs(i),i.selfClosing?a._appendElement(i,pt):a._insertElement(i,pt),i.ackSelfClosing=!0}}function endTagInForeignContent(a,i){for(let _e=a.openElements.stackTop;_e>0;_e--){const pt=a.openElements.items[_e];if(a.treeAdapter.getNamespaceURI(pt)===NS.HTML){a._processToken(i);break}if(a.treeAdapter.getTagName(pt).toLowerCase()===i.tagName){a.openElements.popUntilElementPopped(pt);break}}}const search$1=/[#.]/g;function parseSelector$1(a,i){const _e=a||"",pt={};let Lt=0,Gt,Ct;for(;Lt<_e.length;){search$1.lastIndex=Lt;const Rt=search$1.exec(_e),o=_e.slice(Lt,Rt?Rt.index:_e.length);o&&(Gt?Gt==="#"?pt.id=o:Array.isArray(pt.className)?pt.className.push(o):pt.className=[o]:Ct=o,Lt+=o.length),Rt&&(Gt=Rt[0],Lt++)}return{type:"element",tagName:Ct||i||"div",properties:pt,children:[]}}const buttonTypes=new Set(["menu","submit","reset","button"]),own$6={}.hasOwnProperty;function core$1(a,i,_e){const pt=_e&&createAdjustMap$1(_e);return function(Gt,Ct,...Rt){let o=-1,it;if(Gt==null)it={type:"root",children:[]},Rt.unshift(Ct);else if(it=parseSelector$1(Gt,i),it.tagName=it.tagName.toLowerCase(),pt&&own$6.call(pt,it.tagName)&&(it.tagName=pt[it.tagName]),isProperties(Ct,it.tagName)){let xt;for(xt in Ct)own$6.call(Ct,xt)&&addProperty(a,it.properties,xt,Ct[xt])}else Rt.unshift(Ct);for(;++o-1&&Ct<_e[_e.length-1]){for(;++Rt<_e.length;)if(_e[Rt]>Ct)return{line:Rt+1,column:Ct-(Rt>0?_e[Rt-1]:0)+1,offset:Ct}}return{line:void 0,column:void 0,offset:void 0}}function Gt(Ct){const Rt=Ct&&Ct.line,o=Ct&&Ct.column;if(typeof Rt=="number"&&typeof o=="number"&&!Number.isNaN(Rt)&&!Number.isNaN(o)&&Rt-1 in _e){const it=(_e[Rt-2]||0)+o-1||0;if(it>-1&&it<_e[_e.length-1])return it}return-1}}const webNamespaces={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},own$5={}.hasOwnProperty,proto$2=Object.prototype;function fromParse5(a,i){const _e=i||{};let pt,Lt;return isFile(_e)?(Lt=_e,pt={}):(Lt=_e.file||void 0,pt=_e),one$1({schema:pt.space==="svg"?svg$2:html$5,file:Lt,verbose:pt.verbose,location:!1},a)}function one$1(a,i){let _e;switch(i.nodeName){case"#comment":{const pt=i;return _e={type:"comment",value:pt.data},patch$1(a,pt,_e),_e}case"#document":case"#document-fragment":{const pt=i,Lt="mode"in pt?pt.mode==="quirks"||pt.mode==="limited-quirks":!1;if(_e={type:"root",children:all$1(a,i.childNodes),data:{quirksMode:Lt}},a.file&&a.location){const Gt=String(a.file),Ct=location(Gt),Rt=Ct.toPoint(0),o=Ct.toPoint(Gt.length);_e.position={start:Rt,end:o}}return _e}case"#documentType":{const pt=i;return _e={type:"doctype"},patch$1(a,pt,_e),_e}case"#text":{const pt=i;return _e={type:"text",value:pt.value},patch$1(a,pt,_e),_e}default:return _e=element$1(a,i),_e}}function all$1(a,i){let _e=-1;const pt=[];for(;++_e{const ft=vt;if(ft.value.stitch&&bt!==null&&dt!==null)return bt.children[dt]=ft.value.stitch,dt}),a.type!=="root"&&et.type==="root"&&et.children.length===1)return et.children[0];return et;function Et(){const vt={nodeName:"template",tagName:"template",attrs:[],namespaceURI:webNamespaces.html,childNodes:[]},dt={nodeName:"documentmock",tagName:"documentmock",attrs:[],namespaceURI:webNamespaces.html,childNodes:[]},bt={nodeName:"#document-fragment",childNodes:[]};if(Lt._bootstrap(dt,vt),Lt._pushTmplInsertionMode(inTemplateMode),Lt._initTokenizerForFragmentParsing(),Lt._insertFakeRootElement(),Lt._resetInsertionMode(),Lt._findFormInFragmentContext(),Rt=Lt.tokenizer,!Rt)throw new Error("Expected `tokenizer`");return o=Rt.preprocessor,xt=Rt.__mixins[0],it=xt.posTracker,Gt(a),nt(),Lt._adoptNodes(dt.childNodes[0],bt),bt}function mt(){const vt=Lt.treeAdapter.createDocument();if(Lt._bootstrap(vt,void 0),Rt=Lt.tokenizer,!Rt)throw new Error("Expected `tokenizer`");return o=Rt.preprocessor,xt=Rt.__mixins[0],it=xt.posTracker,Gt(a),nt(),vt}function ut(vt){let dt=-1;if(vt)for(;++dtraw(i,_e,a)}function uuid(){const a=["a","b","c","d","e","f","0","1","2","3","4","5","6","7","8","9"];let i=[];for(let _e=0;_e<36;_e++)_e===8||_e===13||_e===18||_e===23?i[_e]="-":i[_e]=a[Math.ceil(Math.random()*a.length-1)];return i.join("")}var uuid_1=uuid,lodashExports={},lodash={get exports(){return lodashExports},set exports(a){lodashExports=a}};/** +`)&&(i.isEol=!0),i.col=pt-i.lineStartPos+1,i.offset=i.droppedBufferSize+pt,_e.advance.call(this)},retreat(){_e.retreat.call(this),i.isEol=!1,i.col=this.pos-i.lineStartPos+1},dropParsedChunk(){const pt=this.pos;_e.dropParsedChunk.call(this);const Lt=pt-this.pos;i.lineStartPos-=Lt,i.droppedBufferSize+=Lt,i.offset=i.droppedBufferSize+this.pos}}}};var preprocessorMixin$1=PositionTrackingPreprocessorMixin$2;const Mixin$7=mixin,Tokenizer$3=tokenizer,PositionTrackingPreprocessorMixin$1=preprocessorMixin$1;let LocationInfoTokenizerMixin$2=class extends Mixin$7{constructor(i){super(i),this.tokenizer=i,this.posTracker=Mixin$7.install(i.preprocessor,PositionTrackingPreprocessorMixin$1),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;const i=this.tokenizer.currentToken,_e=this.tokenizer.currentAttr;i.location.attrs||(i.location.attrs=Object.create(null)),i.location.attrs[_e.name]=this.currentAttrLocation}_getOverriddenMethods(i,_e){const pt={_createStartTagToken(){_e._createStartTagToken.call(this),this.currentToken.location=i.ctLoc},_createEndTagToken(){_e._createEndTagToken.call(this),this.currentToken.location=i.ctLoc},_createCommentToken(){_e._createCommentToken.call(this),this.currentToken.location=i.ctLoc},_createDoctypeToken(Lt){_e._createDoctypeToken.call(this,Lt),this.currentToken.location=i.ctLoc},_createCharacterToken(Lt,Gt){_e._createCharacterToken.call(this,Lt,Gt),this.currentCharacterToken.location=i.ctLoc},_createEOFToken(){_e._createEOFToken.call(this),this.currentToken.location=i._getCurrentLocation()},_createAttr(Lt){_e._createAttr.call(this,Lt),i.currentAttrLocation=i._getCurrentLocation()},_leaveAttrName(Lt){_e._leaveAttrName.call(this,Lt),i._attachCurrentAttrLocationInfo()},_leaveAttrValue(Lt){_e._leaveAttrValue.call(this,Lt),i._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const Lt=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=Lt.startLine,this.currentCharacterToken.location.endCol=Lt.startCol,this.currentCharacterToken.location.endOffset=Lt.startOffset),this.currentToken.type===Tokenizer$3.EOF_TOKEN?(Lt.endLine=Lt.startLine,Lt.endCol=Lt.startCol,Lt.endOffset=Lt.startOffset):(Lt.endLine=i.posTracker.line,Lt.endCol=i.posTracker.col+1,Lt.endOffset=i.posTracker.offset+1),_e._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const Lt=this.currentCharacterToken&&this.currentCharacterToken.location;Lt&&Lt.endOffset===-1&&(Lt.endLine=i.posTracker.line,Lt.endCol=i.posTracker.col,Lt.endOffset=i.posTracker.offset),_e._emitCurrentCharacterToken.call(this)}};return Object.keys(Tokenizer$3.MODE).forEach(Lt=>{const Gt=Tokenizer$3.MODE[Lt];pt[Gt]=function(Ct){i.ctLoc=i._getCurrentLocation(),_e[Gt].call(this,Ct)}}),pt}};var tokenizerMixin$1=LocationInfoTokenizerMixin$2;const Mixin$6=mixin;let LocationInfoOpenElementStackMixin$1=class extends Mixin$6{constructor(i,_e){super(i),this.onItemPop=_e.onItemPop}_getOverriddenMethods(i,_e){return{pop(){i.onItemPop(this.current),_e.pop.call(this)},popAllUpToHtmlElement(){for(let pt=this.stackTop;pt>0;pt--)i.onItemPop(this.items[pt]);_e.popAllUpToHtmlElement.call(this)},remove(pt){i.onItemPop(this.current),_e.remove.call(this,pt)}}}};var openElementStackMixin=LocationInfoOpenElementStackMixin$1;const Mixin$5=mixin,Tokenizer$2=tokenizer,LocationInfoTokenizerMixin$1=tokenizerMixin$1,LocationInfoOpenElementStackMixin=openElementStackMixin,HTML$2=html$4,$$2=HTML$2.TAG_NAMES;let LocationInfoParserMixin$1=class extends Mixin$5{constructor(i){super(i),this.parser=i,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(i){let _e=null;this.lastStartTagToken&&(_e=Object.assign({},this.lastStartTagToken.location),_e.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(i,_e)}_setEndLocation(i,_e){if(this.treeAdapter.getNodeSourceCodeLocation(i)&&_e.location){const Lt=_e.location,Gt=this.treeAdapter.getTagName(i),Ct=_e.type===Tokenizer$2.END_TAG_TOKEN&&Gt===_e.tagName,Rt={};Ct?(Rt.endTag=Object.assign({},Lt),Rt.endLine=Lt.endLine,Rt.endCol=Lt.endCol,Rt.endOffset=Lt.endOffset):(Rt.endLine=Lt.startLine,Rt.endCol=Lt.startCol,Rt.endOffset=Lt.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(i,Rt)}}_getOverriddenMethods(i,_e){return{_bootstrap(pt,Lt){_e._bootstrap.call(this,pt,Lt),i.lastStartTagToken=null,i.lastFosterParentingLocation=null,i.currentToken=null;const Gt=Mixin$5.install(this.tokenizer,LocationInfoTokenizerMixin$1);i.posTracker=Gt.posTracker,Mixin$5.install(this.openElements,LocationInfoOpenElementStackMixin,{onItemPop:function(Ct){i._setEndLocation(Ct,i.currentToken)}})},_runParsingLoop(pt){_e._runParsingLoop.call(this,pt);for(let Lt=this.openElements.stackTop;Lt>=0;Lt--)i._setEndLocation(this.openElements.items[Lt],i.currentToken)},_processTokenInForeignContent(pt){i.currentToken=pt,_e._processTokenInForeignContent.call(this,pt)},_processToken(pt){if(i.currentToken=pt,_e._processToken.call(this,pt),pt.type===Tokenizer$2.END_TAG_TOKEN&&(pt.tagName===$$2.HTML||pt.tagName===$$2.BODY&&this.openElements.hasInScope($$2.BODY)))for(let Gt=this.openElements.stackTop;Gt>=0;Gt--){const Ct=this.openElements.items[Gt];if(this.treeAdapter.getTagName(Ct)===pt.tagName){i._setEndLocation(Ct,pt);break}}},_setDocumentType(pt){_e._setDocumentType.call(this,pt);const Lt=this.treeAdapter.getChildNodes(this.document),Gt=Lt.length;for(let Ct=0;Ct(Object.keys(Lt).forEach(Gt=>{pt[Gt]=Lt[Gt]}),pt),Object.create(null))},doctype$2={};const{DOCUMENT_MODE}=html$4,VALID_DOCTYPE_NAME="html",VALID_SYSTEM_ID="about:legacy-compat",QUIRKS_MODE_SYSTEM_ID="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",QUIRKS_MODE_PUBLIC_ID_PREFIXES=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],QUIRKS_MODE_NO_SYSTEM_ID_PUBLIC_ID_PREFIXES=QUIRKS_MODE_PUBLIC_ID_PREFIXES.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),QUIRKS_MODE_PUBLIC_IDS=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],LIMITED_QUIRKS_PUBLIC_ID_PREFIXES=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],LIMITED_QUIRKS_WITH_SYSTEM_ID_PUBLIC_ID_PREFIXES=LIMITED_QUIRKS_PUBLIC_ID_PREFIXES.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function enquoteDoctypeId(a){const i=a.indexOf('"')!==-1?"'":'"';return i+a+i}function hasPrefix(a,i){for(let _e=0;_e-1)return DOCUMENT_MODE.QUIRKS;let pt=i===null?QUIRKS_MODE_NO_SYSTEM_ID_PUBLIC_ID_PREFIXES:QUIRKS_MODE_PUBLIC_ID_PREFIXES;if(hasPrefix(_e,pt))return DOCUMENT_MODE.QUIRKS;if(pt=i===null?LIMITED_QUIRKS_PUBLIC_ID_PREFIXES:LIMITED_QUIRKS_WITH_SYSTEM_ID_PUBLIC_ID_PREFIXES,hasPrefix(_e,pt))return DOCUMENT_MODE.LIMITED_QUIRKS}return DOCUMENT_MODE.NO_QUIRKS};doctype$2.serializeContent=function(a,i,_e){let pt="!DOCTYPE ";return a&&(pt+=a),i?pt+=" PUBLIC "+enquoteDoctypeId(i):_e&&(pt+=" SYSTEM"),_e!==null&&(pt+=" "+enquoteDoctypeId(_e)),pt};var foreignContent$1={};const Tokenizer$1=tokenizer,HTML$1=html$4,$$1=HTML$1.TAG_NAMES,NS$1=HTML$1.NAMESPACES,ATTRS$1=HTML$1.ATTRS,MIME_TYPES={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},DEFINITION_URL_ATTR="definitionurl",ADJUSTED_DEFINITION_URL_ATTR="definitionURL",SVG_ATTRS_ADJUSTMENT_MAP={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},XML_ATTRS_ADJUSTMENT_MAP={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:NS$1.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:NS$1.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:NS$1.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:NS$1.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:NS$1.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:NS$1.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:NS$1.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:NS$1.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:NS$1.XML},"xml:space":{prefix:"xml",name:"space",namespace:NS$1.XML},xmlns:{prefix:"",name:"xmlns",namespace:NS$1.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:NS$1.XMLNS}},SVG_TAG_NAMES_ADJUSTMENT_MAP=foreignContent$1.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},EXITS_FOREIGN_CONTENT={[$$1.B]:!0,[$$1.BIG]:!0,[$$1.BLOCKQUOTE]:!0,[$$1.BODY]:!0,[$$1.BR]:!0,[$$1.CENTER]:!0,[$$1.CODE]:!0,[$$1.DD]:!0,[$$1.DIV]:!0,[$$1.DL]:!0,[$$1.DT]:!0,[$$1.EM]:!0,[$$1.EMBED]:!0,[$$1.H1]:!0,[$$1.H2]:!0,[$$1.H3]:!0,[$$1.H4]:!0,[$$1.H5]:!0,[$$1.H6]:!0,[$$1.HEAD]:!0,[$$1.HR]:!0,[$$1.I]:!0,[$$1.IMG]:!0,[$$1.LI]:!0,[$$1.LISTING]:!0,[$$1.MENU]:!0,[$$1.META]:!0,[$$1.NOBR]:!0,[$$1.OL]:!0,[$$1.P]:!0,[$$1.PRE]:!0,[$$1.RUBY]:!0,[$$1.S]:!0,[$$1.SMALL]:!0,[$$1.SPAN]:!0,[$$1.STRONG]:!0,[$$1.STRIKE]:!0,[$$1.SUB]:!0,[$$1.SUP]:!0,[$$1.TABLE]:!0,[$$1.TT]:!0,[$$1.U]:!0,[$$1.UL]:!0,[$$1.VAR]:!0};foreignContent$1.causesExit=function(a){const i=a.tagName;return i===$$1.FONT&&(Tokenizer$1.getTokenAttr(a,ATTRS$1.COLOR)!==null||Tokenizer$1.getTokenAttr(a,ATTRS$1.SIZE)!==null||Tokenizer$1.getTokenAttr(a,ATTRS$1.FACE)!==null)?!0:EXITS_FOREIGN_CONTENT[i]};foreignContent$1.adjustTokenMathMLAttrs=function(a){for(let i=0;i0);for(let Lt=_e;Lt=0;i--){let pt=this.openElements.items[i];i===0&&(_e=!0,this.fragmentContext&&(pt=this.fragmentContext));const Lt=this.treeAdapter.getTagName(pt),Gt=INSERTION_MODE_RESET_MAP[Lt];if(Gt){this.insertionMode=Gt;break}else if(!_e&&(Lt===$.TD||Lt===$.TH)){this.insertionMode=IN_CELL_MODE;break}else if(!_e&&Lt===$.HEAD){this.insertionMode=IN_HEAD_MODE;break}else if(Lt===$.SELECT){this._resetInsertionModeForSelect(i);break}else if(Lt===$.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(Lt===$.HTML){this.insertionMode=this.headElement?AFTER_HEAD_MODE:BEFORE_HEAD_MODE;break}else if(_e){this.insertionMode=IN_BODY_MODE;break}}}_resetInsertionModeForSelect(i){if(i>0)for(let _e=i-1;_e>0;_e--){const pt=this.openElements.items[_e],Lt=this.treeAdapter.getTagName(pt);if(Lt===$.TEMPLATE)break;if(Lt===$.TABLE){this.insertionMode=IN_SELECT_IN_TABLE_MODE;return}}this.insertionMode=IN_SELECT_MODE}_pushTmplInsertionMode(i){this.tmplInsertionModeStack.push(i),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=i}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(i){const _e=this.treeAdapter.getTagName(i);return _e===$.TABLE||_e===$.TBODY||_e===$.TFOOT||_e===$.THEAD||_e===$.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const i={parent:null,beforeElement:null};for(let _e=this.openElements.stackTop;_e>=0;_e--){const pt=this.openElements.items[_e],Lt=this.treeAdapter.getTagName(pt),Gt=this.treeAdapter.getNamespaceURI(pt);if(Lt===$.TEMPLATE&&Gt===NS.HTML){i.parent=this.treeAdapter.getTemplateContent(pt);break}else if(Lt===$.TABLE){i.parent=this.treeAdapter.getParentNode(pt),i.parent?i.beforeElement=pt:i.parent=this.openElements.items[_e-1];break}}return i.parent||(i.parent=this.openElements.items[0]),i}_fosterParentElement(i){const _e=this._findFosterParentingLocation();_e.beforeElement?this.treeAdapter.insertBefore(_e.parent,i,_e.beforeElement):this.treeAdapter.appendChild(_e.parent,i)}_fosterParentText(i){const _e=this._findFosterParentingLocation();_e.beforeElement?this.treeAdapter.insertTextBefore(_e.parent,i,_e.beforeElement):this.treeAdapter.insertText(_e.parent,i)}_isSpecialElement(i){const _e=this.treeAdapter.getTagName(i),pt=this.treeAdapter.getNamespaceURI(i);return HTML.SPECIAL_ELEMENTS[pt][_e]}}var parser=Parser;function aaObtainFormattingElementEntry(a,i){let _e=a.activeFormattingElements.getElementEntryInScopeWithTagName(i.tagName);return _e?a.openElements.contains(_e.element)?a.openElements.hasInScope(i.tagName)||(_e=null):(a.activeFormattingElements.removeEntry(_e),_e=null):genericEndTagInBody(a,i),_e}function aaObtainFurthestBlock(a,i){let _e=null;for(let pt=a.openElements.stackTop;pt>=0;pt--){const Lt=a.openElements.items[pt];if(Lt===i.element)break;a._isSpecialElement(Lt)&&(_e=Lt)}return _e||(a.openElements.popUntilElementPopped(i.element),a.activeFormattingElements.removeEntry(i)),_e}function aaInnerLoop(a,i,_e){let pt=i,Lt=a.openElements.getCommonAncestor(i);for(let Gt=0,Ct=Lt;Ct!==_e;Gt++,Ct=Lt){Lt=a.openElements.getCommonAncestor(Ct);const Rt=a.activeFormattingElements.getElementEntry(Ct),o=Rt&&Gt>=AA_INNER_LOOP_ITER;!Rt||o?(o&&a.activeFormattingElements.removeEntry(Rt),a.openElements.remove(Ct)):(Ct=aaRecreateElementFromEntry(a,Rt),pt===i&&(a.activeFormattingElements.bookmark=Rt),a.treeAdapter.detachNode(pt),a.treeAdapter.appendChild(Ct,pt),pt=Ct)}return pt}function aaRecreateElementFromEntry(a,i){const _e=a.treeAdapter.getNamespaceURI(i.element),pt=a.treeAdapter.createElement(i.token.tagName,_e,i.token.attrs);return a.openElements.replace(i.element,pt),i.element=pt,pt}function aaInsertLastNodeInCommonAncestor(a,i,_e){if(a._isElementCausesFosterParenting(i))a._fosterParentElement(_e);else{const pt=a.treeAdapter.getTagName(i),Lt=a.treeAdapter.getNamespaceURI(i);pt===$.TEMPLATE&&Lt===NS.HTML&&(i=a.treeAdapter.getTemplateContent(i)),a.treeAdapter.appendChild(i,_e)}}function aaReplaceFormattingElement(a,i,_e){const pt=a.treeAdapter.getNamespaceURI(_e.element),Lt=_e.token,Gt=a.treeAdapter.createElement(Lt.tagName,pt,Lt.attrs);a._adoptNodes(i,Gt),a.treeAdapter.appendChild(i,Gt),a.activeFormattingElements.insertElementAfterBookmark(Gt,_e.token),a.activeFormattingElements.removeEntry(_e),a.openElements.remove(_e.element),a.openElements.insertAfter(i,Gt)}function callAdoptionAgency(a,i){let _e;for(let pt=0;pt0?(a.openElements.generateImpliedEndTagsThoroughly(),a.openElements.currentTagName!==$.TEMPLATE&&a._err(ERR.closingOfElementWithOpenChildElements),a.openElements.popUntilTagNamePopped($.TEMPLATE),a.activeFormattingElements.clearToLastMarker(),a._popTmplInsertionMode(),a._resetInsertionMode()):a._err(ERR.endTagWithoutMatchingOpenElement)}function tokenInHead(a,i){a.openElements.pop(),a.insertionMode=AFTER_HEAD_MODE,a._processToken(i)}function startTagInHeadNoScript(a,i){const _e=i.tagName;_e===$.HTML?startTagInBody(a,i):_e===$.BASEFONT||_e===$.BGSOUND||_e===$.HEAD||_e===$.LINK||_e===$.META||_e===$.NOFRAMES||_e===$.STYLE?startTagInHead(a,i):_e===$.NOSCRIPT?a._err(ERR.nestedNoscriptInHead):tokenInHeadNoScript(a,i)}function endTagInHeadNoScript(a,i){const _e=i.tagName;_e===$.NOSCRIPT?(a.openElements.pop(),a.insertionMode=IN_HEAD_MODE):_e===$.BR?tokenInHeadNoScript(a,i):a._err(ERR.endTagWithoutMatchingOpenElement)}function tokenInHeadNoScript(a,i){const _e=i.type===Tokenizer.EOF_TOKEN?ERR.openElementsLeftAfterEof:ERR.disallowedContentInNoscriptInHead;a._err(_e),a.openElements.pop(),a.insertionMode=IN_HEAD_MODE,a._processToken(i)}function startTagAfterHead(a,i){const _e=i.tagName;_e===$.HTML?startTagInBody(a,i):_e===$.BODY?(a._insertElement(i,NS.HTML),a.framesetOk=!1,a.insertionMode=IN_BODY_MODE):_e===$.FRAMESET?(a._insertElement(i,NS.HTML),a.insertionMode=IN_FRAMESET_MODE):_e===$.BASE||_e===$.BASEFONT||_e===$.BGSOUND||_e===$.LINK||_e===$.META||_e===$.NOFRAMES||_e===$.SCRIPT||_e===$.STYLE||_e===$.TEMPLATE||_e===$.TITLE?(a._err(ERR.abandonedHeadElementChild),a.openElements.push(a.headElement),startTagInHead(a,i),a.openElements.remove(a.headElement)):_e===$.HEAD?a._err(ERR.misplacedStartTagForHeadElement):tokenAfterHead(a,i)}function endTagAfterHead(a,i){const _e=i.tagName;_e===$.BODY||_e===$.HTML||_e===$.BR?tokenAfterHead(a,i):_e===$.TEMPLATE?endTagInHead(a,i):a._err(ERR.endTagWithoutMatchingOpenElement)}function tokenAfterHead(a,i){a._insertFakeElement($.BODY),a.insertionMode=IN_BODY_MODE,a._processToken(i)}function whitespaceCharacterInBody(a,i){a._reconstructActiveFormattingElements(),a._insertCharacters(i)}function characterInBody(a,i){a._reconstructActiveFormattingElements(),a._insertCharacters(i),a.framesetOk=!1}function htmlStartTagInBody(a,i){a.openElements.tmplCount===0&&a.treeAdapter.adoptAttributes(a.openElements.items[0],i.attrs)}function bodyStartTagInBody(a,i){const _e=a.openElements.tryPeekProperlyNestedBodyElement();_e&&a.openElements.tmplCount===0&&(a.framesetOk=!1,a.treeAdapter.adoptAttributes(_e,i.attrs))}function framesetStartTagInBody(a,i){const _e=a.openElements.tryPeekProperlyNestedBodyElement();a.framesetOk&&_e&&(a.treeAdapter.detachNode(_e),a.openElements.popAllUpToHtmlElement(),a._insertElement(i,NS.HTML),a.insertionMode=IN_FRAMESET_MODE)}function addressStartTagInBody(a,i){a.openElements.hasInButtonScope($.P)&&a._closePElement(),a._insertElement(i,NS.HTML)}function numberedHeaderStartTagInBody(a,i){a.openElements.hasInButtonScope($.P)&&a._closePElement();const _e=a.openElements.currentTagName;(_e===$.H1||_e===$.H2||_e===$.H3||_e===$.H4||_e===$.H5||_e===$.H6)&&a.openElements.pop(),a._insertElement(i,NS.HTML)}function preStartTagInBody(a,i){a.openElements.hasInButtonScope($.P)&&a._closePElement(),a._insertElement(i,NS.HTML),a.skipNextNewLine=!0,a.framesetOk=!1}function formStartTagInBody(a,i){const _e=a.openElements.tmplCount>0;(!a.formElement||_e)&&(a.openElements.hasInButtonScope($.P)&&a._closePElement(),a._insertElement(i,NS.HTML),_e||(a.formElement=a.openElements.current))}function listItemStartTagInBody(a,i){a.framesetOk=!1;const _e=i.tagName;for(let pt=a.openElements.stackTop;pt>=0;pt--){const Lt=a.openElements.items[pt],Gt=a.treeAdapter.getTagName(Lt);let Ct=null;if(_e===$.LI&&Gt===$.LI?Ct=$.LI:(_e===$.DD||_e===$.DT)&&(Gt===$.DD||Gt===$.DT)&&(Ct=Gt),Ct){a.openElements.generateImpliedEndTagsWithExclusion(Ct),a.openElements.popUntilTagNamePopped(Ct);break}if(Gt!==$.ADDRESS&&Gt!==$.DIV&&Gt!==$.P&&a._isSpecialElement(Lt))break}a.openElements.hasInButtonScope($.P)&&a._closePElement(),a._insertElement(i,NS.HTML)}function plaintextStartTagInBody(a,i){a.openElements.hasInButtonScope($.P)&&a._closePElement(),a._insertElement(i,NS.HTML),a.tokenizer.state=Tokenizer.MODE.PLAINTEXT}function buttonStartTagInBody(a,i){a.openElements.hasInScope($.BUTTON)&&(a.openElements.generateImpliedEndTags(),a.openElements.popUntilTagNamePopped($.BUTTON)),a._reconstructActiveFormattingElements(),a._insertElement(i,NS.HTML),a.framesetOk=!1}function aStartTagInBody(a,i){const _e=a.activeFormattingElements.getElementEntryInScopeWithTagName($.A);_e&&(callAdoptionAgency(a,i),a.openElements.remove(_e.element),a.activeFormattingElements.removeEntry(_e)),a._reconstructActiveFormattingElements(),a._insertElement(i,NS.HTML),a.activeFormattingElements.pushElement(a.openElements.current,i)}function bStartTagInBody(a,i){a._reconstructActiveFormattingElements(),a._insertElement(i,NS.HTML),a.activeFormattingElements.pushElement(a.openElements.current,i)}function nobrStartTagInBody(a,i){a._reconstructActiveFormattingElements(),a.openElements.hasInScope($.NOBR)&&(callAdoptionAgency(a,i),a._reconstructActiveFormattingElements()),a._insertElement(i,NS.HTML),a.activeFormattingElements.pushElement(a.openElements.current,i)}function appletStartTagInBody(a,i){a._reconstructActiveFormattingElements(),a._insertElement(i,NS.HTML),a.activeFormattingElements.insertMarker(),a.framesetOk=!1}function tableStartTagInBody(a,i){a.treeAdapter.getDocumentMode(a.document)!==HTML.DOCUMENT_MODE.QUIRKS&&a.openElements.hasInButtonScope($.P)&&a._closePElement(),a._insertElement(i,NS.HTML),a.framesetOk=!1,a.insertionMode=IN_TABLE_MODE}function areaStartTagInBody(a,i){a._reconstructActiveFormattingElements(),a._appendElement(i,NS.HTML),a.framesetOk=!1,i.ackSelfClosing=!0}function inputStartTagInBody(a,i){a._reconstructActiveFormattingElements(),a._appendElement(i,NS.HTML);const _e=Tokenizer.getTokenAttr(i,ATTRS.TYPE);(!_e||_e.toLowerCase()!==HIDDEN_INPUT_TYPE)&&(a.framesetOk=!1),i.ackSelfClosing=!0}function paramStartTagInBody(a,i){a._appendElement(i,NS.HTML),i.ackSelfClosing=!0}function hrStartTagInBody(a,i){a.openElements.hasInButtonScope($.P)&&a._closePElement(),a._appendElement(i,NS.HTML),a.framesetOk=!1,i.ackSelfClosing=!0}function imageStartTagInBody(a,i){i.tagName=$.IMG,areaStartTagInBody(a,i)}function textareaStartTagInBody(a,i){a._insertElement(i,NS.HTML),a.skipNextNewLine=!0,a.tokenizer.state=Tokenizer.MODE.RCDATA,a.originalInsertionMode=a.insertionMode,a.framesetOk=!1,a.insertionMode=TEXT_MODE}function xmpStartTagInBody(a,i){a.openElements.hasInButtonScope($.P)&&a._closePElement(),a._reconstructActiveFormattingElements(),a.framesetOk=!1,a._switchToTextParsing(i,Tokenizer.MODE.RAWTEXT)}function iframeStartTagInBody(a,i){a.framesetOk=!1,a._switchToTextParsing(i,Tokenizer.MODE.RAWTEXT)}function noembedStartTagInBody(a,i){a._switchToTextParsing(i,Tokenizer.MODE.RAWTEXT)}function selectStartTagInBody(a,i){a._reconstructActiveFormattingElements(),a._insertElement(i,NS.HTML),a.framesetOk=!1,a.insertionMode===IN_TABLE_MODE||a.insertionMode===IN_CAPTION_MODE||a.insertionMode===IN_TABLE_BODY_MODE||a.insertionMode===IN_ROW_MODE||a.insertionMode===IN_CELL_MODE?a.insertionMode=IN_SELECT_IN_TABLE_MODE:a.insertionMode=IN_SELECT_MODE}function optgroupStartTagInBody(a,i){a.openElements.currentTagName===$.OPTION&&a.openElements.pop(),a._reconstructActiveFormattingElements(),a._insertElement(i,NS.HTML)}function rbStartTagInBody(a,i){a.openElements.hasInScope($.RUBY)&&a.openElements.generateImpliedEndTags(),a._insertElement(i,NS.HTML)}function rtStartTagInBody(a,i){a.openElements.hasInScope($.RUBY)&&a.openElements.generateImpliedEndTagsWithExclusion($.RTC),a._insertElement(i,NS.HTML)}function menuStartTagInBody(a,i){a.openElements.hasInButtonScope($.P)&&a._closePElement(),a._insertElement(i,NS.HTML)}function mathStartTagInBody(a,i){a._reconstructActiveFormattingElements(),foreignContent.adjustTokenMathMLAttrs(i),foreignContent.adjustTokenXMLAttrs(i),i.selfClosing?a._appendElement(i,NS.MATHML):a._insertElement(i,NS.MATHML),i.ackSelfClosing=!0}function svgStartTagInBody(a,i){a._reconstructActiveFormattingElements(),foreignContent.adjustTokenSVGAttrs(i),foreignContent.adjustTokenXMLAttrs(i),i.selfClosing?a._appendElement(i,NS.SVG):a._insertElement(i,NS.SVG),i.ackSelfClosing=!0}function genericStartTagInBody(a,i){a._reconstructActiveFormattingElements(),a._insertElement(i,NS.HTML)}function startTagInBody(a,i){const _e=i.tagName;switch(_e.length){case 1:_e===$.I||_e===$.S||_e===$.B||_e===$.U?bStartTagInBody(a,i):_e===$.P?addressStartTagInBody(a,i):_e===$.A?aStartTagInBody(a,i):genericStartTagInBody(a,i);break;case 2:_e===$.DL||_e===$.OL||_e===$.UL?addressStartTagInBody(a,i):_e===$.H1||_e===$.H2||_e===$.H3||_e===$.H4||_e===$.H5||_e===$.H6?numberedHeaderStartTagInBody(a,i):_e===$.LI||_e===$.DD||_e===$.DT?listItemStartTagInBody(a,i):_e===$.EM||_e===$.TT?bStartTagInBody(a,i):_e===$.BR?areaStartTagInBody(a,i):_e===$.HR?hrStartTagInBody(a,i):_e===$.RB?rbStartTagInBody(a,i):_e===$.RT||_e===$.RP?rtStartTagInBody(a,i):_e!==$.TH&&_e!==$.TD&&_e!==$.TR&&genericStartTagInBody(a,i);break;case 3:_e===$.DIV||_e===$.DIR||_e===$.NAV?addressStartTagInBody(a,i):_e===$.PRE?preStartTagInBody(a,i):_e===$.BIG?bStartTagInBody(a,i):_e===$.IMG||_e===$.WBR?areaStartTagInBody(a,i):_e===$.XMP?xmpStartTagInBody(a,i):_e===$.SVG?svgStartTagInBody(a,i):_e===$.RTC?rbStartTagInBody(a,i):_e!==$.COL&&genericStartTagInBody(a,i);break;case 4:_e===$.HTML?htmlStartTagInBody(a,i):_e===$.BASE||_e===$.LINK||_e===$.META?startTagInHead(a,i):_e===$.BODY?bodyStartTagInBody(a,i):_e===$.MAIN||_e===$.MENU?addressStartTagInBody(a,i):_e===$.FORM?formStartTagInBody(a,i):_e===$.CODE||_e===$.FONT?bStartTagInBody(a,i):_e===$.NOBR?nobrStartTagInBody(a,i):_e===$.AREA?areaStartTagInBody(a,i):_e===$.MATH?mathStartTagInBody(a,i):_e===$.MENU?menuStartTagInBody(a,i):_e!==$.HEAD&&genericStartTagInBody(a,i);break;case 5:_e===$.STYLE||_e===$.TITLE?startTagInHead(a,i):_e===$.ASIDE?addressStartTagInBody(a,i):_e===$.SMALL?bStartTagInBody(a,i):_e===$.TABLE?tableStartTagInBody(a,i):_e===$.EMBED?areaStartTagInBody(a,i):_e===$.INPUT?inputStartTagInBody(a,i):_e===$.PARAM||_e===$.TRACK?paramStartTagInBody(a,i):_e===$.IMAGE?imageStartTagInBody(a,i):_e!==$.FRAME&&_e!==$.TBODY&&_e!==$.TFOOT&&_e!==$.THEAD&&genericStartTagInBody(a,i);break;case 6:_e===$.SCRIPT?startTagInHead(a,i):_e===$.CENTER||_e===$.FIGURE||_e===$.FOOTER||_e===$.HEADER||_e===$.HGROUP||_e===$.DIALOG?addressStartTagInBody(a,i):_e===$.BUTTON?buttonStartTagInBody(a,i):_e===$.STRIKE||_e===$.STRONG?bStartTagInBody(a,i):_e===$.APPLET||_e===$.OBJECT?appletStartTagInBody(a,i):_e===$.KEYGEN?areaStartTagInBody(a,i):_e===$.SOURCE?paramStartTagInBody(a,i):_e===$.IFRAME?iframeStartTagInBody(a,i):_e===$.SELECT?selectStartTagInBody(a,i):_e===$.OPTION?optgroupStartTagInBody(a,i):genericStartTagInBody(a,i);break;case 7:_e===$.BGSOUND?startTagInHead(a,i):_e===$.DETAILS||_e===$.ADDRESS||_e===$.ARTICLE||_e===$.SECTION||_e===$.SUMMARY?addressStartTagInBody(a,i):_e===$.LISTING?preStartTagInBody(a,i):_e===$.MARQUEE?appletStartTagInBody(a,i):_e===$.NOEMBED?noembedStartTagInBody(a,i):_e!==$.CAPTION&&genericStartTagInBody(a,i);break;case 8:_e===$.BASEFONT?startTagInHead(a,i):_e===$.FRAMESET?framesetStartTagInBody(a,i):_e===$.FIELDSET?addressStartTagInBody(a,i):_e===$.TEXTAREA?textareaStartTagInBody(a,i):_e===$.TEMPLATE?startTagInHead(a,i):_e===$.NOSCRIPT?a.options.scriptingEnabled?noembedStartTagInBody(a,i):genericStartTagInBody(a,i):_e===$.OPTGROUP?optgroupStartTagInBody(a,i):_e!==$.COLGROUP&&genericStartTagInBody(a,i);break;case 9:_e===$.PLAINTEXT?plaintextStartTagInBody(a,i):genericStartTagInBody(a,i);break;case 10:_e===$.BLOCKQUOTE||_e===$.FIGCAPTION?addressStartTagInBody(a,i):genericStartTagInBody(a,i);break;default:genericStartTagInBody(a,i)}}function bodyEndTagInBody(a){a.openElements.hasInScope($.BODY)&&(a.insertionMode=AFTER_BODY_MODE)}function htmlEndTagInBody(a,i){a.openElements.hasInScope($.BODY)&&(a.insertionMode=AFTER_BODY_MODE,a._processToken(i))}function addressEndTagInBody(a,i){const _e=i.tagName;a.openElements.hasInScope(_e)&&(a.openElements.generateImpliedEndTags(),a.openElements.popUntilTagNamePopped(_e))}function formEndTagInBody(a){const i=a.openElements.tmplCount>0,_e=a.formElement;i||(a.formElement=null),(_e||i)&&a.openElements.hasInScope($.FORM)&&(a.openElements.generateImpliedEndTags(),i?a.openElements.popUntilTagNamePopped($.FORM):a.openElements.remove(_e))}function pEndTagInBody(a){a.openElements.hasInButtonScope($.P)||a._insertFakeElement($.P),a._closePElement()}function liEndTagInBody(a){a.openElements.hasInListItemScope($.LI)&&(a.openElements.generateImpliedEndTagsWithExclusion($.LI),a.openElements.popUntilTagNamePopped($.LI))}function ddEndTagInBody(a,i){const _e=i.tagName;a.openElements.hasInScope(_e)&&(a.openElements.generateImpliedEndTagsWithExclusion(_e),a.openElements.popUntilTagNamePopped(_e))}function numberedHeaderEndTagInBody(a){a.openElements.hasNumberedHeaderInScope()&&(a.openElements.generateImpliedEndTags(),a.openElements.popUntilNumberedHeaderPopped())}function appletEndTagInBody(a,i){const _e=i.tagName;a.openElements.hasInScope(_e)&&(a.openElements.generateImpliedEndTags(),a.openElements.popUntilTagNamePopped(_e),a.activeFormattingElements.clearToLastMarker())}function brEndTagInBody(a){a._reconstructActiveFormattingElements(),a._insertFakeElement($.BR),a.openElements.pop(),a.framesetOk=!1}function genericEndTagInBody(a,i){const _e=i.tagName;for(let pt=a.openElements.stackTop;pt>0;pt--){const Lt=a.openElements.items[pt];if(a.treeAdapter.getTagName(Lt)===_e){a.openElements.generateImpliedEndTagsWithExclusion(_e),a.openElements.popUntilElementPopped(Lt);break}if(a._isSpecialElement(Lt))break}}function endTagInBody(a,i){const _e=i.tagName;switch(_e.length){case 1:_e===$.A||_e===$.B||_e===$.I||_e===$.S||_e===$.U?callAdoptionAgency(a,i):_e===$.P?pEndTagInBody(a):genericEndTagInBody(a,i);break;case 2:_e===$.DL||_e===$.UL||_e===$.OL?addressEndTagInBody(a,i):_e===$.LI?liEndTagInBody(a):_e===$.DD||_e===$.DT?ddEndTagInBody(a,i):_e===$.H1||_e===$.H2||_e===$.H3||_e===$.H4||_e===$.H5||_e===$.H6?numberedHeaderEndTagInBody(a):_e===$.BR?brEndTagInBody(a):_e===$.EM||_e===$.TT?callAdoptionAgency(a,i):genericEndTagInBody(a,i);break;case 3:_e===$.BIG?callAdoptionAgency(a,i):_e===$.DIR||_e===$.DIV||_e===$.NAV||_e===$.PRE?addressEndTagInBody(a,i):genericEndTagInBody(a,i);break;case 4:_e===$.BODY?bodyEndTagInBody(a):_e===$.HTML?htmlEndTagInBody(a,i):_e===$.FORM?formEndTagInBody(a):_e===$.CODE||_e===$.FONT||_e===$.NOBR?callAdoptionAgency(a,i):_e===$.MAIN||_e===$.MENU?addressEndTagInBody(a,i):genericEndTagInBody(a,i);break;case 5:_e===$.ASIDE?addressEndTagInBody(a,i):_e===$.SMALL?callAdoptionAgency(a,i):genericEndTagInBody(a,i);break;case 6:_e===$.CENTER||_e===$.FIGURE||_e===$.FOOTER||_e===$.HEADER||_e===$.HGROUP||_e===$.DIALOG?addressEndTagInBody(a,i):_e===$.APPLET||_e===$.OBJECT?appletEndTagInBody(a,i):_e===$.STRIKE||_e===$.STRONG?callAdoptionAgency(a,i):genericEndTagInBody(a,i);break;case 7:_e===$.ADDRESS||_e===$.ARTICLE||_e===$.DETAILS||_e===$.SECTION||_e===$.SUMMARY||_e===$.LISTING?addressEndTagInBody(a,i):_e===$.MARQUEE?appletEndTagInBody(a,i):genericEndTagInBody(a,i);break;case 8:_e===$.FIELDSET?addressEndTagInBody(a,i):_e===$.TEMPLATE?endTagInHead(a,i):genericEndTagInBody(a,i);break;case 10:_e===$.BLOCKQUOTE||_e===$.FIGCAPTION?addressEndTagInBody(a,i):genericEndTagInBody(a,i);break;default:genericEndTagInBody(a,i)}}function eofInBody(a,i){a.tmplInsertionModeStackTop>-1?eofInTemplate(a,i):a.stopped=!0}function endTagInText(a,i){i.tagName===$.SCRIPT&&(a.pendingScript=a.openElements.current),a.openElements.pop(),a.insertionMode=a.originalInsertionMode}function eofInText(a,i){a._err(ERR.eofInElementThatCanContainOnlyText),a.openElements.pop(),a.insertionMode=a.originalInsertionMode,a._processToken(i)}function characterInTable(a,i){const _e=a.openElements.currentTagName;_e===$.TABLE||_e===$.TBODY||_e===$.TFOOT||_e===$.THEAD||_e===$.TR?(a.pendingCharacterTokens=[],a.hasNonWhitespacePendingCharacterToken=!1,a.originalInsertionMode=a.insertionMode,a.insertionMode=IN_TABLE_TEXT_MODE,a._processToken(i)):tokenInTable(a,i)}function captionStartTagInTable(a,i){a.openElements.clearBackToTableContext(),a.activeFormattingElements.insertMarker(),a._insertElement(i,NS.HTML),a.insertionMode=IN_CAPTION_MODE}function colgroupStartTagInTable(a,i){a.openElements.clearBackToTableContext(),a._insertElement(i,NS.HTML),a.insertionMode=IN_COLUMN_GROUP_MODE}function colStartTagInTable(a,i){a.openElements.clearBackToTableContext(),a._insertFakeElement($.COLGROUP),a.insertionMode=IN_COLUMN_GROUP_MODE,a._processToken(i)}function tbodyStartTagInTable(a,i){a.openElements.clearBackToTableContext(),a._insertElement(i,NS.HTML),a.insertionMode=IN_TABLE_BODY_MODE}function tdStartTagInTable(a,i){a.openElements.clearBackToTableContext(),a._insertFakeElement($.TBODY),a.insertionMode=IN_TABLE_BODY_MODE,a._processToken(i)}function tableStartTagInTable(a,i){a.openElements.hasInTableScope($.TABLE)&&(a.openElements.popUntilTagNamePopped($.TABLE),a._resetInsertionMode(),a._processToken(i))}function inputStartTagInTable(a,i){const _e=Tokenizer.getTokenAttr(i,ATTRS.TYPE);_e&&_e.toLowerCase()===HIDDEN_INPUT_TYPE?a._appendElement(i,NS.HTML):tokenInTable(a,i),i.ackSelfClosing=!0}function formStartTagInTable(a,i){!a.formElement&&a.openElements.tmplCount===0&&(a._insertElement(i,NS.HTML),a.formElement=a.openElements.current,a.openElements.pop())}function startTagInTable(a,i){const _e=i.tagName;switch(_e.length){case 2:_e===$.TD||_e===$.TH||_e===$.TR?tdStartTagInTable(a,i):tokenInTable(a,i);break;case 3:_e===$.COL?colStartTagInTable(a,i):tokenInTable(a,i);break;case 4:_e===$.FORM?formStartTagInTable(a,i):tokenInTable(a,i);break;case 5:_e===$.TABLE?tableStartTagInTable(a,i):_e===$.STYLE?startTagInHead(a,i):_e===$.TBODY||_e===$.TFOOT||_e===$.THEAD?tbodyStartTagInTable(a,i):_e===$.INPUT?inputStartTagInTable(a,i):tokenInTable(a,i);break;case 6:_e===$.SCRIPT?startTagInHead(a,i):tokenInTable(a,i);break;case 7:_e===$.CAPTION?captionStartTagInTable(a,i):tokenInTable(a,i);break;case 8:_e===$.COLGROUP?colgroupStartTagInTable(a,i):_e===$.TEMPLATE?startTagInHead(a,i):tokenInTable(a,i);break;default:tokenInTable(a,i)}}function endTagInTable(a,i){const _e=i.tagName;_e===$.TABLE?a.openElements.hasInTableScope($.TABLE)&&(a.openElements.popUntilTagNamePopped($.TABLE),a._resetInsertionMode()):_e===$.TEMPLATE?endTagInHead(a,i):_e!==$.BODY&&_e!==$.CAPTION&&_e!==$.COL&&_e!==$.COLGROUP&&_e!==$.HTML&&_e!==$.TBODY&&_e!==$.TD&&_e!==$.TFOOT&&_e!==$.TH&&_e!==$.THEAD&&_e!==$.TR&&tokenInTable(a,i)}function tokenInTable(a,i){const _e=a.fosterParentingEnabled;a.fosterParentingEnabled=!0,a._processTokenInBodyMode(i),a.fosterParentingEnabled=_e}function whitespaceCharacterInTableText(a,i){a.pendingCharacterTokens.push(i)}function characterInTableText(a,i){a.pendingCharacterTokens.push(i),a.hasNonWhitespacePendingCharacterToken=!0}function tokenInTableText(a,i){let _e=0;if(a.hasNonWhitespacePendingCharacterToken)for(;_e0?(a.openElements.popUntilTagNamePopped($.TEMPLATE),a.activeFormattingElements.clearToLastMarker(),a._popTmplInsertionMode(),a._resetInsertionMode(),a._processToken(i)):a.stopped=!0}function startTagAfterBody(a,i){i.tagName===$.HTML?startTagInBody(a,i):tokenAfterBody(a,i)}function endTagAfterBody(a,i){i.tagName===$.HTML?a.fragmentContext||(a.insertionMode=AFTER_AFTER_BODY_MODE):tokenAfterBody(a,i)}function tokenAfterBody(a,i){a.insertionMode=IN_BODY_MODE,a._processToken(i)}function startTagInFrameset(a,i){const _e=i.tagName;_e===$.HTML?startTagInBody(a,i):_e===$.FRAMESET?a._insertElement(i,NS.HTML):_e===$.FRAME?(a._appendElement(i,NS.HTML),i.ackSelfClosing=!0):_e===$.NOFRAMES&&startTagInHead(a,i)}function endTagInFrameset(a,i){i.tagName===$.FRAMESET&&!a.openElements.isRootHtmlElementCurrent()&&(a.openElements.pop(),!a.fragmentContext&&a.openElements.currentTagName!==$.FRAMESET&&(a.insertionMode=AFTER_FRAMESET_MODE))}function startTagAfterFrameset(a,i){const _e=i.tagName;_e===$.HTML?startTagInBody(a,i):_e===$.NOFRAMES&&startTagInHead(a,i)}function endTagAfterFrameset(a,i){i.tagName===$.HTML&&(a.insertionMode=AFTER_AFTER_FRAMESET_MODE)}function startTagAfterAfterBody(a,i){i.tagName===$.HTML?startTagInBody(a,i):tokenAfterAfterBody(a,i)}function tokenAfterAfterBody(a,i){a.insertionMode=IN_BODY_MODE,a._processToken(i)}function startTagAfterAfterFrameset(a,i){const _e=i.tagName;_e===$.HTML?startTagInBody(a,i):_e===$.NOFRAMES&&startTagInHead(a,i)}function nullCharacterInForeignContent(a,i){i.chars=unicode.REPLACEMENT_CHARACTER,a._insertCharacters(i)}function characterInForeignContent(a,i){a._insertCharacters(i),a.framesetOk=!1}function startTagInForeignContent(a,i){if(foreignContent.causesExit(i)&&!a.fragmentContext){for(;a.treeAdapter.getNamespaceURI(a.openElements.current)!==NS.HTML&&!a._isIntegrationPoint(a.openElements.current);)a.openElements.pop();a._processToken(i)}else{const _e=a._getAdjustedCurrentElement(),pt=a.treeAdapter.getNamespaceURI(_e);pt===NS.MATHML?foreignContent.adjustTokenMathMLAttrs(i):pt===NS.SVG&&(foreignContent.adjustTokenSVGTagName(i),foreignContent.adjustTokenSVGAttrs(i)),foreignContent.adjustTokenXMLAttrs(i),i.selfClosing?a._appendElement(i,pt):a._insertElement(i,pt),i.ackSelfClosing=!0}}function endTagInForeignContent(a,i){for(let _e=a.openElements.stackTop;_e>0;_e--){const pt=a.openElements.items[_e];if(a.treeAdapter.getNamespaceURI(pt)===NS.HTML){a._processToken(i);break}if(a.treeAdapter.getTagName(pt).toLowerCase()===i.tagName){a.openElements.popUntilElementPopped(pt);break}}}const search$1=/[#.]/g;function parseSelector$1(a,i){const _e=a||"",pt={};let Lt=0,Gt,Ct;for(;Lt<_e.length;){search$1.lastIndex=Lt;const Rt=search$1.exec(_e),o=_e.slice(Lt,Rt?Rt.index:_e.length);o&&(Gt?Gt==="#"?pt.id=o:Array.isArray(pt.className)?pt.className.push(o):pt.className=[o]:Ct=o,Lt+=o.length),Rt&&(Gt=Rt[0],Lt++)}return{type:"element",tagName:Ct||i||"div",properties:pt,children:[]}}const buttonTypes=new Set(["menu","submit","reset","button"]),own$6={}.hasOwnProperty;function core$1(a,i,_e){const pt=_e&&createAdjustMap$1(_e);return function(Gt,Ct,...Rt){let o=-1,it;if(Gt==null)it={type:"root",children:[]},Rt.unshift(Ct);else if(it=parseSelector$1(Gt,i),it.tagName=it.tagName.toLowerCase(),pt&&own$6.call(pt,it.tagName)&&(it.tagName=pt[it.tagName]),isProperties(Ct,it.tagName)){let xt;for(xt in Ct)own$6.call(Ct,xt)&&addProperty(a,it.properties,xt,Ct[xt])}else Rt.unshift(Ct);for(;++o-1&&Ct<_e[_e.length-1]){for(;++Rt<_e.length;)if(_e[Rt]>Ct)return{line:Rt+1,column:Ct-(Rt>0?_e[Rt-1]:0)+1,offset:Ct}}return{line:void 0,column:void 0,offset:void 0}}function Gt(Ct){const Rt=Ct&&Ct.line,o=Ct&&Ct.column;if(typeof Rt=="number"&&typeof o=="number"&&!Number.isNaN(Rt)&&!Number.isNaN(o)&&Rt-1 in _e){const it=(_e[Rt-2]||0)+o-1||0;if(it>-1&&it<_e[_e.length-1])return it}return-1}}const webNamespaces={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},own$5={}.hasOwnProperty,proto$2=Object.prototype;function fromParse5(a,i){const _e=i||{};let pt,Lt;return isFile(_e)?(Lt=_e,pt={}):(Lt=_e.file||void 0,pt=_e),one$1({schema:pt.space==="svg"?svg$2:html$5,file:Lt,verbose:pt.verbose,location:!1},a)}function one$1(a,i){let _e;switch(i.nodeName){case"#comment":{const pt=i;return _e={type:"comment",value:pt.data},patch$1(a,pt,_e),_e}case"#document":case"#document-fragment":{const pt=i,Lt="mode"in pt?pt.mode==="quirks"||pt.mode==="limited-quirks":!1;if(_e={type:"root",children:all$1(a,i.childNodes),data:{quirksMode:Lt}},a.file&&a.location){const Gt=String(a.file),Ct=location(Gt),Rt=Ct.toPoint(0),o=Ct.toPoint(Gt.length);_e.position={start:Rt,end:o}}return _e}case"#documentType":{const pt=i;return _e={type:"doctype"},patch$1(a,pt,_e),_e}case"#text":{const pt=i;return _e={type:"text",value:pt.value},patch$1(a,pt,_e),_e}default:return _e=element$1(a,i),_e}}function all$1(a,i){let _e=-1;const pt=[];for(;++_e{const ft=vt;if(ft.value.stitch&&bt!==null&&dt!==null)return bt.children[dt]=ft.value.stitch,dt}),a.type!=="root"&&et.type==="root"&&et.children.length===1)return et.children[0];return et;function Tt(){const vt={nodeName:"template",tagName:"template",attrs:[],namespaceURI:webNamespaces.html,childNodes:[]},dt={nodeName:"documentmock",tagName:"documentmock",attrs:[],namespaceURI:webNamespaces.html,childNodes:[]},bt={nodeName:"#document-fragment",childNodes:[]};if(Lt._bootstrap(dt,vt),Lt._pushTmplInsertionMode(inTemplateMode),Lt._initTokenizerForFragmentParsing(),Lt._insertFakeRootElement(),Lt._resetInsertionMode(),Lt._findFormInFragmentContext(),Rt=Lt.tokenizer,!Rt)throw new Error("Expected `tokenizer`");return o=Rt.preprocessor,xt=Rt.__mixins[0],it=xt.posTracker,Gt(a),nt(),Lt._adoptNodes(dt.childNodes[0],bt),bt}function yt(){const vt=Lt.treeAdapter.createDocument();if(Lt._bootstrap(vt,void 0),Rt=Lt.tokenizer,!Rt)throw new Error("Expected `tokenizer`");return o=Rt.preprocessor,xt=Rt.__mixins[0],it=xt.posTracker,Gt(a),nt(),vt}function ut(vt){let dt=-1;if(vt)for(;++dtraw(i,_e,a)}function uuid(){const a=["a","b","c","d","e","f","0","1","2","3","4","5","6","7","8","9"];let i=[];for(let _e=0;_e<36;_e++)_e===8||_e===13||_e===18||_e===23?i[_e]="-":i[_e]=a[Math.ceil(Math.random()*a.length-1)];return i.join("")}var uuid_1=uuid,lodashExports={},lodash={get exports(){return lodashExports},set exports(a){lodashExports=a}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */(function(a,i){(function(){var _e,pt="4.17.21",Lt=200,Gt="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",Ct="Expected a function",Rt="Invalid `variable` option passed into `_.template`",o="__lodash_hash_undefined__",it=500,xt="__lodash_placeholder__",et=1,Et=2,mt=4,ut=1,ht=2,j=1,_=2,rt=4,tt=8,st=16,ot=32,nt=64,vt=128,dt=256,bt=512,ft=30,at="...",yt=800,St=16,_t=1,Mt=2,Tt=3,kt=1/0,wt=9007199254740991,ct=17976931348623157e292,It=0/0,At=4294967295,Ot=At-1,Pt=At>>>1,zt=[["ary",vt],["bind",j],["bindKey",_],["curry",tt],["curryRight",st],["flip",bt],["partial",ot],["partialRight",nt],["rearg",dt]],Dt="[object Arguments]",Nt="[object Array]",$t="[object AsyncFunction]",Ut="[object Boolean]",Ht="[object Date]",Vt="[object DOMException]",Xt="[object Error]",qt="[object Function]",er="[object GeneratorFunction]",lr="[object Map]",Jt="[object Number]",Yt="[object Null]",rr="[object Object]",jt="[object Promise]",ar="[object Proxy]",sr="[object RegExp]",Zt="[object Set]",Kt="[object String]",or="[object Symbol]",tr="[object Undefined]",cr="[object WeakMap]",hr="[object WeakSet]",br="[object ArrayBuffer]",Tr="[object DataView]",Ir="[object Float32Array]",Ar="[object Float64Array]",_r="[object Int8Array]",Er="[object Int16Array]",Rr="[object Int32Array]",zr="[object Uint8Array]",Br="[object Uint8ClampedArray]",kr="[object Uint16Array]",Nr="[object Uint32Array]",Qr=/\b__p \+= '';/g,sn=/\b(__p \+=) '' \+/g,un=/(__e\(.*?\)|\b__t\)) \+\n'';/g,qr=/&(?:amp|lt|gt|quot|#39);/g,Xr=/[&<>"']/g,ln=RegExp(qr.source),mn=RegExp(Xr.source),pn=/<%-([\s\S]+?)%>/g,En=/<%([\s\S]+?)%>/g,Jr=/<%=([\s\S]+?)%>/g,Or=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ur=/^\w*$/,jr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Gr=/[\\^$.*+?()[\]{}|]/g,wr=RegExp(Gr.source),vr=/^\s+/,Dr=/\s/,Sr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ur=/\{\n\/\* \[wrapped with (.+)\] \*/,xr=/,? & /,Pr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Vr=/[()=,{}\[\]\/\s]/,en=/\\(\\)?/g,rn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Cn=/\w*$/,xn=/^[-+]0x[0-9a-f]+$/i,fn=/^0b[01]+$/i,bn=/^\[object .+?Constructor\]$/,Un=/^0o[0-7]+$/i,_i=/^(?:0|[1-9]\d*)$/,yn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Kn=/($^)/,Jn=/['\n\r\u2028\u2029\\]/g,so="\\ud800-\\udfff",ba="\\u0300-\\u036f",An="\\ufe20-\\ufe2f",hn="\\u20d0-\\u20ff",wn=ba+An+hn,In="\\u2700-\\u27bf",Ln="a-z\\xdf-\\xf6\\xf8-\\xff",Xn="\\xac\\xb1\\xd7\\xf7",Wn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Vn="\\u2000-\\u206f",ga=" \\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",fo="A-Z\\xc0-\\xd6\\xd8-\\xde",qn="\\ufe0e\\ufe0f",po=Xn+Wn+Vn+ga,Yr="['’]",Wr="["+so+"]",$n="["+po+"]",Bn="["+wn+"]",xa="\\d+",ro="["+In+"]",io="["+Ln+"]",eo="[^"+so+po+xa+In+Ln+fo+"]",Gn="\\ud83c[\\udffb-\\udfff]",ho="(?:"+Bn+"|"+Gn+")",go="[^"+so+"]",_o="(?:\\ud83c[\\udde6-\\uddff]){2}",co="[\\ud800-\\udbff][\\udc00-\\udfff]",zo="["+fo+"]",Io="\\u200d",Lo="(?:"+io+"|"+eo+")",vs="(?:"+zo+"|"+eo+")",Zo="(?:"+Yr+"(?:d|ll|m|re|s|t|ve))?",Ls="(?:"+Yr+"(?:D|LL|M|RE|S|T|VE))?",Ds=ho+"?",bo="["+qn+"]?",No="(?:"+Io+"(?:"+[go,_o,co].join("|")+")"+bo+Ds+")*",Yo="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Oo="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ys=bo+Ds+No,gs="(?:"+[ro,_o,co].join("|")+")"+ys,zs="(?:"+[go+Bn+"?",Bn,_o,co,Wr].join("|")+")",Us=RegExp(Yr,"g"),Qs=RegExp(Bn,"g"),Fl=RegExp(Gn+"(?="+Gn+")|"+zs+ys,"g"),Jl=RegExp([zo+"?"+io+"+"+Zo+"(?="+[$n,zo,"$"].join("|")+")",vs+"+"+Ls+"(?="+[$n,zo+Lo,"$"].join("|")+")",zo+"?"+Lo+"+"+Zo,zo+"+"+Ls,Oo,Yo,xa,gs].join("|"),"g"),nu=RegExp("["+Io+so+wn+qn+"]"),Yl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Zs=["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"],xo=-1,Vo={};Vo[Ir]=Vo[Ar]=Vo[_r]=Vo[Er]=Vo[Rr]=Vo[zr]=Vo[Br]=Vo[kr]=Vo[Nr]=!0,Vo[Dt]=Vo[Nt]=Vo[br]=Vo[Ut]=Vo[Tr]=Vo[Ht]=Vo[Xt]=Vo[qt]=Vo[lr]=Vo[Jt]=Vo[rr]=Vo[sr]=Vo[Zt]=Vo[Kt]=Vo[cr]=!1;var Go={};Go[Dt]=Go[Nt]=Go[br]=Go[Tr]=Go[Ut]=Go[Ht]=Go[Ir]=Go[Ar]=Go[_r]=Go[Er]=Go[Rr]=Go[lr]=Go[Jt]=Go[rr]=Go[sr]=Go[Zt]=Go[Kt]=Go[or]=Go[zr]=Go[Br]=Go[kr]=Go[Nr]=!0,Go[Xt]=Go[qt]=Go[cr]=!1;var ms={À:"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",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Ws={"&":"&","<":"<",">":">",'"':""","'":"'"},ws={"&":"&","<":"<",">":">",""":'"',"'":"'"},Is={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Xs=parseFloat,Cl=parseInt,Wl=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,yu=typeof self=="object"&&self&&self.Object===Object&&self,yo=Wl||yu||Function("return this")(),Fo=i&&!i.nodeType&&i,To=Fo&&!0&&a&&!a.nodeType&&a,Bo=To&&To.exports===Fo,Es=Bo&&Wl.process,Ps=function(){try{var Ts=To&&To.require&&To.require("util").types;return Ts||Es&&Es.binding&&Es.binding("util")}catch{}}(),xs=Ps&&Ps.isArrayBuffer,us=Ps&&Ps.isDate,wo=Ps&&Ps.isMap,Qo=Ps&&Ps.isRegExp,Wo=Ps&&Ps.isSet,rs=Ps&&Ps.isTypedArray;function _s(Ts,xl,Js){switch(Js.length){case 0:return Ts.call(xl);case 1:return Ts.call(xl,Js[0]);case 2:return Ts.call(xl,Js[0],Js[1]);case 3:return Ts.call(xl,Js[0],Js[1],Js[2])}return Ts.apply(xl,Js)}function Gs(Ts,xl,Js,fu){for(var Su=-1,Yu=Ts==null?0:Ts.length;++Su-1}function Xl(Ts,xl,Js){for(var fu=-1,Su=Ts==null?0:Ts.length;++fu-1;);return Js}function iy(Ts,xl){for(var Js=Ts.length;Js--&&Qv(xl,Ts[Js],0)>-1;);return Js}function qv(Ts,xl){for(var Js=Ts.length,fu=0;Js--;)Ts[Js]===xl&&++fu;return fu}var Hp=f1(ms),Um=f1(Ws);function R0(Ts){return"\\"+Is[Ts]}function _g(Ts,xl){return Ts==null?_e:Ts[xl]}function M0(Ts){return nu.test(Ts)}function oy(Ts){return Yl.test(Ts)}function wy(Ts){for(var xl,Js=[];!(xl=Ts.next()).done;)Js.push(xl.value);return Js}function v1(Ts){var xl=-1,Js=Array(Ts.size);return Ts.forEach(function(fu,Su){Js[++xl]=[Su,fu]}),Js}function sy(Ts,xl){return function(Js){return Ts(xl(Js))}}function I0(Ts,xl){for(var Js=-1,fu=Ts.length,Su=0,Yu=[];++Js-1}function dy(fr,Cr){var an=this.__data__,Fn=Vv(an,fr);return Fn<0?(++this.size,an.push([fr,Cr])):an[Fn][1]=Cr,this}Mv.prototype.clear=M1,Mv.prototype.delete=tp,Mv.prototype.get=I1,Mv.prototype.has=Sm,Mv.prototype.set=dy;function mv(fr){var Cr=-1,an=fr==null?0:fr.length;for(this.clear();++Cr=Cr?fr:Cr)),fr}function bv(fr,Cr,an,Fn,no,Mo){var ns,fs=Cr&et,Ms=Cr&Et,Il=Cr&mt;if(an&&(ns=no?an(fr,Fn,no,Mo):an(fr)),ns!==_e)return ns;if(!qp(fr))return fr;var Sl=Wu(fr);if(Sl){if(ns=Jo(fr),!fs)return Tv(fr,ns)}else{var $l=na(fr),hu=$l==qt||$l==er;if(U1(fr))return jp(fr,fs);if($l==rr||$l==Dt||hu&&!no){if(ns=Ms||hu?{}:Ko(fr),!fs)return Ms?hx(fr,am(ns,fr)):Zm(fr,cv(ns,fr))}else{if(!Go[$l])return no?fr:{};ns=jo(fr,$l,fs)}}Mo||(Mo=new sp);var lu=Mo.get(fr);if(lu)return lu;Mo.set(fr,ns),C2(fr)?fr.forEach(function(Mu){ns.add(bv(Mu,Cr,an,Mu,fr,Mo))}):gE(fr)&&fr.forEach(function(Mu,rp){ns.set(rp,bv(Mu,Cr,an,rp,fr,Mo))});var Ru=Il?Ms?zp:Gy:Ms?T0:ev,mu=Sl?_e:Ru(fr);return Cs(mu||fr,function(Mu,rp){mu&&(rp=Mu,Mu=fr[rp]),k1(ns,rp,bv(Mu,Cr,an,rp,fr,Mo))}),ns}function im(fr){var Cr=ev(fr);return function(an){return L1(an,fr,Cr)}}function L1(fr,Cr,an){var Fn=an.length;if(fr==null)return!Fn;for(fr=np(fr);Fn--;){var no=an[Fn],Mo=Cr[no],ns=fr[no];if(ns===_e&&!(no in fr)||!Mo(ns))return!1}return!0}function om(fr,Cr,an){if(typeof fr!="function")throw new vv(Ct);return Pu(function(){fr.apply(_e,an)},Cr)}function D1(fr,Cr,an,Fn){var no=-1,Mo=zl,ns=!0,fs=fr.length,Ms=[],Il=Cr.length;if(!fs)return Ms;an&&(Cr=Zl(Cr,op(an))),Fn?(Mo=Xl,ns=!1):Cr.length>=Lt&&(Mo=p1,ns=!1,Cr=new yv(Cr));e:for(;++nono?0:no+an),Fn=Fn===_e||Fn>no?no:Ju(Fn),Fn<0&&(Fn+=no),Fn=an>Fn?0:dv(Fn);an0&&an(fs)?Cr>1?Zr(fs,Cr-1,an,Fn,no):ju(no,fs):Fn||(no[no.length]=fs)}return no}var dn=Bv(),_n=Bv(!0);function Sn(fr,Cr){return fr&&dn(fr,Cr,ev)}function zn(fr,Cr){return fr&&_n(fr,Cr,ev)}function Nn(fr,Cr){return Bl(Cr,function(an){return ry(fr[an])})}function Hn(fr,Cr){Cr=Ol(Cr,fr);for(var an=0,Fn=Cr.length;fr!=null&&anCr}function So(fr,Cr){return fr!=null&&ep.call(fr,Cr)}function Do(fr,Cr){return fr!=null&&Cr in np(fr)}function $o(fr,Cr,an){return fr>=vp(Cr,an)&&fr=120&&Sl.length>=120)?new yv(ns&&Sl):_e}Sl=fr[0];var $l=-1,hu=fs[0];e:for(;++$l-1;)fs!==fr&&L0.call(fs,Ms,1),L0.call(fr,Ms,1);return fr}function qo(fr,Cr){for(var an=fr?Cr.length:0,Fn=an-1;an--;){var no=Cr[an];if(an==Fn||no!==Mo){var Mo=no;Fs(no)?L0.call(fr,no,1):Ou(fr,no)}}return fr}function cs(fr,Cr){return fr+j0(wv()*(Cr-fr+1))}function bs(fr,Cr,an,Fn){for(var no=-1,Mo=pp(Hv((Cr-fr)/(an||1)),0),ns=Js(Mo);Mo--;)ns[Fn?Mo:++no]=fr,fr+=an;return ns}function as(fr,Cr){var an="";if(!fr||Cr<1||Cr>wt)return an;do Cr%2&&(an+=fr),Cr=j0(Cr/2),Cr&&(fr+=fr);while(Cr);return an}function Rs(fr,Cr){return ap(Du(fr,Cr,Iv),fr+"")}function Ll(fr){return Xm(Py(fr))}function Gl(fr,Cr){var an=Py(fr);return Cp(an,xv(Cr,0,an.length))}function Rl(fr,Cr,an,Fn){if(!qp(fr))return fr;Cr=Ol(Cr,fr);for(var no=-1,Mo=Cr.length,ns=Mo-1,fs=fr;fs!=null&&++nono?0:no+Cr),an=an>no?no:an,an<0&&(an+=no),no=Cr>an?0:an-Cr>>>0,Cr>>>=0;for(var Mo=Js(no);++Fn>>1,ns=fr[Mo];ns!==null&&!s1(ns)&&(an?ns<=Cr:ns=Lt){var Il=Cr?null:px(fr);if(Il)return mm(Il);ns=!1,no=p1,Ms=new yv}else Ms=Cr?[]:fs;e:for(;++Fn=Fn?fr:Ql(fr,Cr,an)}var Ev=uy||function(fr){return yo.clearTimeout(fr)};function jp(fr,Cr){if(Cr)return fr.slice();var an=fr.length,Fn=Tm?Tm(an):new fr.constructor(an);return fr.copy(Fn),Fn}function Ku(fr){var Cr=new fr.constructor(fr.byteLength);return new E1(Cr).set(new E1(fr)),Cr}function Bp(fr,Cr){var an=Cr?Ku(fr.buffer):fr.buffer;return new fr.constructor(an,fr.byteOffset,fr.byteLength)}function Np(fr){var Cr=new fr.constructor(fr.source,Cn.exec(fr));return Cr.lastIndex=fr.lastIndex,Cr}function n0(fr){return w1?np(w1.call(fr)):{}}function a0(fr,Cr){var an=Cr?Ku(fr.buffer):fr.buffer;return new fr.constructor(an,fr.byteOffset,fr.length)}function yp(fr,Cr){if(fr!==Cr){var an=fr!==_e,Fn=fr===null,no=fr===fr,Mo=s1(fr),ns=Cr!==_e,fs=Cr===null,Ms=Cr===Cr,Il=s1(Cr);if(!fs&&!Il&&!Mo&&fr>Cr||Mo&&ns&&Ms&&!fs&&!Il||Fn&&ns&&Ms||!an&&Ms||!no)return 1;if(!Fn&&!Mo&&!Il&&fr=fs)return Ms;var Il=an[Fn];return Ms*(Il=="desc"?-1:1)}}return fr.index-Cr.index}function Fu(fr,Cr,an,Fn){for(var no=-1,Mo=fr.length,ns=an.length,fs=-1,Ms=Cr.length,Il=pp(Mo-ns,0),Sl=Js(Ms+Il),$l=!Fn;++fs1?an[no-1]:_e,ns=no>2?an[2]:_e;for(Mo=fr.length>3&&typeof Mo=="function"?(no--,Mo):_e,ns&&Hs(an[0],an[1],ns)&&(Mo=no<3?_e:Mo,no=1),Cr=np(Cr);++Fn-1?no[Mo?Cr[ns]:ns]:_e}}function jv(fr){return cm(function(Cr){var an=Cr.length,Fn=an,no=Mp.prototype.thru;for(fr&&Cr.reverse();Fn--;){var Mo=Cr[Fn];if(typeof Mo!="function")throw new vv(Ct);if(no&&!ns&&Qt(Mo)=="wrapper")var ns=new Mp([],!0)}for(Fn=ns?Fn:an;++Fn1&&ip.reverse(),Sl&&Msfs))return!1;var Il=Mo.get(fr),Sl=Mo.get(Cr);if(Il&&Sl)return Il==Cr&&Sl==fr;var $l=-1,hu=!0,lu=an&ht?new yv:_e;for(Mo.set(fr,Cr),Mo.set(Cr,fr);++$l1?"& ":"")+Cr[Fn],Cr=Cr.join(an>2?", ":" "),fr.replace(Sr,`{ + */(function(a,i){(function(){var _e,pt="4.17.21",Lt=200,Gt="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",Ct="Expected a function",Rt="Invalid `variable` option passed into `_.template`",o="__lodash_hash_undefined__",it=500,xt="__lodash_placeholder__",et=1,Tt=2,yt=4,ut=1,ht=2,j=1,_=2,rt=4,tt=8,st=16,ot=32,nt=64,vt=128,dt=256,bt=512,ft=30,at="...",mt=800,St=16,_t=1,Mt=2,Et=3,kt=1/0,wt=9007199254740991,ct=17976931348623157e292,It=0/0,At=4294967295,Ot=At-1,Pt=At>>>1,zt=[["ary",vt],["bind",j],["bindKey",_],["curry",tt],["curryRight",st],["flip",bt],["partial",ot],["partialRight",nt],["rearg",dt]],Dt="[object Arguments]",Nt="[object Array]",$t="[object AsyncFunction]",Ut="[object Boolean]",Ht="[object Date]",Vt="[object DOMException]",Xt="[object Error]",qt="[object Function]",er="[object GeneratorFunction]",lr="[object Map]",Jt="[object Number]",Yt="[object Null]",rr="[object Object]",jt="[object Promise]",ar="[object Proxy]",sr="[object RegExp]",Zt="[object Set]",Kt="[object String]",or="[object Symbol]",tr="[object Undefined]",cr="[object WeakMap]",mr="[object WeakSet]",Ar="[object ArrayBuffer]",br="[object DataView]",Ir="[object Float32Array]",Tr="[object Float64Array]",_r="[object Int8Array]",Er="[object Int16Array]",Rr="[object Int32Array]",zr="[object Uint8Array]",Or="[object Uint8ClampedArray]",kr="[object Uint16Array]",Nr="[object Uint32Array]",Qr=/\b__p \+= '';/g,sn=/\b(__p \+=) '' \+/g,un=/(__e\(.*?\)|\b__t\)) \+\n'';/g,en=/&(?:amp|lt|gt|quot|#39);/g,Xr=/[&<>"']/g,ln=RegExp(en.source),mn=RegExp(Xr.source),pn=/<%-([\s\S]+?)%>/g,Tn=/<%([\s\S]+?)%>/g,Zr=/<%=([\s\S]+?)%>/g,Fr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ur=/^\w*$/,Wr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Gr=/[\\^$.*+?()[\]{}|]/g,wr=RegExp(Gr.source),pr=/^\s+/,Dr=/\s/,Sr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ur=/\{\n\/\* \[wrapped with (.+)\] \*/,xr=/,? & /,Pr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Vr=/[()=,{}\[\]\/\s]/,qr=/\\(\\)?/g,rn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Cn=/\w*$/,xn=/^[-+]0x[0-9a-f]+$/i,fn=/^0b[01]+$/i,bn=/^\[object .+?Constructor\]$/,Un=/^0o[0-7]+$/i,_i=/^(?:0|[1-9]\d*)$/,yn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Kn=/($^)/,Jn=/['\n\r\u2028\u2029\\]/g,so="\\ud800-\\udfff",ba="\\u0300-\\u036f",An="\\ufe20-\\ufe2f",hn="\\u20d0-\\u20ff",wn=ba+An+hn,In="\\u2700-\\u27bf",Ln="a-z\\xdf-\\xf6\\xf8-\\xff",Xn="\\xac\\xb1\\xd7\\xf7",Wn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Vn="\\u2000-\\u206f",ga=" \\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",fo="A-Z\\xc0-\\xd6\\xd8-\\xde",qn="\\ufe0e\\ufe0f",po=Xn+Wn+Vn+ga,Yr="['’]",jr="["+so+"]",$n="["+po+"]",Bn="["+wn+"]",xa="\\d+",ro="["+In+"]",io="["+Ln+"]",eo="[^"+so+po+xa+In+Ln+fo+"]",Gn="\\ud83c[\\udffb-\\udfff]",ho="(?:"+Bn+"|"+Gn+")",go="[^"+so+"]",_o="(?:\\ud83c[\\udde6-\\uddff]){2}",co="[\\ud800-\\udbff][\\udc00-\\udfff]",zo="["+fo+"]",Io="\\u200d",Lo="(?:"+io+"|"+eo+")",vs="(?:"+zo+"|"+eo+")",Zo="(?:"+Yr+"(?:d|ll|m|re|s|t|ve))?",Ls="(?:"+Yr+"(?:D|LL|M|RE|S|T|VE))?",Ds=ho+"?",bo="["+qn+"]?",No="(?:"+Io+"(?:"+[go,_o,co].join("|")+")"+bo+Ds+")*",Yo="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Oo="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ys=bo+Ds+No,gs="(?:"+[ro,_o,co].join("|")+")"+ys,zs="(?:"+[go+Bn+"?",Bn,_o,co,jr].join("|")+")",Us=RegExp(Yr,"g"),Qs=RegExp(Bn,"g"),Fl=RegExp(Gn+"(?="+Gn+")|"+zs+ys,"g"),Jl=RegExp([zo+"?"+io+"+"+Zo+"(?="+[$n,zo,"$"].join("|")+")",vs+"+"+Ls+"(?="+[$n,zo+Lo,"$"].join("|")+")",zo+"?"+Lo+"+"+Zo,zo+"+"+Ls,Oo,Yo,xa,gs].join("|"),"g"),nu=RegExp("["+Io+so+wn+qn+"]"),Yl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Zs=["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"],xo=-1,Vo={};Vo[Ir]=Vo[Tr]=Vo[_r]=Vo[Er]=Vo[Rr]=Vo[zr]=Vo[Or]=Vo[kr]=Vo[Nr]=!0,Vo[Dt]=Vo[Nt]=Vo[Ar]=Vo[Ut]=Vo[br]=Vo[Ht]=Vo[Xt]=Vo[qt]=Vo[lr]=Vo[Jt]=Vo[rr]=Vo[sr]=Vo[Zt]=Vo[Kt]=Vo[cr]=!1;var Go={};Go[Dt]=Go[Nt]=Go[Ar]=Go[br]=Go[Ut]=Go[Ht]=Go[Ir]=Go[Tr]=Go[_r]=Go[Er]=Go[Rr]=Go[lr]=Go[Jt]=Go[rr]=Go[sr]=Go[Zt]=Go[Kt]=Go[or]=Go[zr]=Go[Or]=Go[kr]=Go[Nr]=!0,Go[Xt]=Go[qt]=Go[cr]=!1;var ms={À:"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",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Ws={"&":"&","<":"<",">":">",'"':""","'":"'"},ws={"&":"&","<":"<",">":">",""":'"',"'":"'"},Is={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Xs=parseFloat,Cl=parseInt,Wl=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,yu=typeof self=="object"&&self&&self.Object===Object&&self,yo=Wl||yu||Function("return this")(),Fo=i&&!i.nodeType&&i,To=Fo&&!0&&a&&!a.nodeType&&a,Bo=To&&To.exports===Fo,Es=Bo&&Wl.process,Ps=function(){try{var Ts=To&&To.require&&To.require("util").types;return Ts||Es&&Es.binding&&Es.binding("util")}catch{}}(),xs=Ps&&Ps.isArrayBuffer,us=Ps&&Ps.isDate,wo=Ps&&Ps.isMap,Qo=Ps&&Ps.isRegExp,Wo=Ps&&Ps.isSet,rs=Ps&&Ps.isTypedArray;function _s(Ts,xl,Js){switch(Js.length){case 0:return Ts.call(xl);case 1:return Ts.call(xl,Js[0]);case 2:return Ts.call(xl,Js[0],Js[1]);case 3:return Ts.call(xl,Js[0],Js[1],Js[2])}return Ts.apply(xl,Js)}function Gs(Ts,xl,Js,fu){for(var Su=-1,Yu=Ts==null?0:Ts.length;++Su-1}function Xl(Ts,xl,Js){for(var fu=-1,Su=Ts==null?0:Ts.length;++fu-1;);return Js}function iy(Ts,xl){for(var Js=Ts.length;Js--&&Qv(xl,Ts[Js],0)>-1;);return Js}function qv(Ts,xl){for(var Js=Ts.length,fu=0;Js--;)Ts[Js]===xl&&++fu;return fu}var Hp=f1(ms),Um=f1(Ws);function R0(Ts){return"\\"+Is[Ts]}function _g(Ts,xl){return Ts==null?_e:Ts[xl]}function M0(Ts){return nu.test(Ts)}function oy(Ts){return Yl.test(Ts)}function wy(Ts){for(var xl,Js=[];!(xl=Ts.next()).done;)Js.push(xl.value);return Js}function v1(Ts){var xl=-1,Js=Array(Ts.size);return Ts.forEach(function(fu,Su){Js[++xl]=[Su,fu]}),Js}function sy(Ts,xl){return function(Js){return Ts(xl(Js))}}function I0(Ts,xl){for(var Js=-1,fu=Ts.length,Su=0,Yu=[];++Js-1}function dy(fr,Cr){var an=this.__data__,Fn=Vv(an,fr);return Fn<0?(++this.size,an.push([fr,Cr])):an[Fn][1]=Cr,this}Mv.prototype.clear=M1,Mv.prototype.delete=tp,Mv.prototype.get=I1,Mv.prototype.has=Sm,Mv.prototype.set=dy;function mv(fr){var Cr=-1,an=fr==null?0:fr.length;for(this.clear();++Cr=Cr?fr:Cr)),fr}function bv(fr,Cr,an,Fn,no,Mo){var ns,fs=Cr&et,Ms=Cr&Tt,Il=Cr&yt;if(an&&(ns=no?an(fr,Fn,no,Mo):an(fr)),ns!==_e)return ns;if(!qp(fr))return fr;var Sl=Wu(fr);if(Sl){if(ns=Jo(fr),!fs)return Tv(fr,ns)}else{var $l=na(fr),hu=$l==qt||$l==er;if(U1(fr))return jp(fr,fs);if($l==rr||$l==Dt||hu&&!no){if(ns=Ms||hu?{}:Ko(fr),!fs)return Ms?hx(fr,am(ns,fr)):Zm(fr,cv(ns,fr))}else{if(!Go[$l])return no?fr:{};ns=jo(fr,$l,fs)}}Mo||(Mo=new sp);var lu=Mo.get(fr);if(lu)return lu;Mo.set(fr,ns),C2(fr)?fr.forEach(function(Mu){ns.add(bv(Mu,Cr,an,Mu,fr,Mo))}):gE(fr)&&fr.forEach(function(Mu,rp){ns.set(rp,bv(Mu,Cr,an,rp,fr,Mo))});var Ru=Il?Ms?zp:Gy:Ms?T0:ev,mu=Sl?_e:Ru(fr);return Cs(mu||fr,function(Mu,rp){mu&&(rp=Mu,Mu=fr[rp]),k1(ns,rp,bv(Mu,Cr,an,rp,fr,Mo))}),ns}function im(fr){var Cr=ev(fr);return function(an){return L1(an,fr,Cr)}}function L1(fr,Cr,an){var Fn=an.length;if(fr==null)return!Fn;for(fr=np(fr);Fn--;){var no=an[Fn],Mo=Cr[no],ns=fr[no];if(ns===_e&&!(no in fr)||!Mo(ns))return!1}return!0}function om(fr,Cr,an){if(typeof fr!="function")throw new vv(Ct);return Pu(function(){fr.apply(_e,an)},Cr)}function D1(fr,Cr,an,Fn){var no=-1,Mo=zl,ns=!0,fs=fr.length,Ms=[],Il=Cr.length;if(!fs)return Ms;an&&(Cr=Zl(Cr,op(an))),Fn?(Mo=Xl,ns=!1):Cr.length>=Lt&&(Mo=p1,ns=!1,Cr=new yv(Cr));e:for(;++nono?0:no+an),Fn=Fn===_e||Fn>no?no:Ju(Fn),Fn<0&&(Fn+=no),Fn=an>Fn?0:dv(Fn);an0&&an(fs)?Cr>1?Jr(fs,Cr-1,an,Fn,no):ju(no,fs):Fn||(no[no.length]=fs)}return no}var dn=Bv(),_n=Bv(!0);function Sn(fr,Cr){return fr&&dn(fr,Cr,ev)}function zn(fr,Cr){return fr&&_n(fr,Cr,ev)}function Nn(fr,Cr){return Bl(Cr,function(an){return ry(fr[an])})}function Hn(fr,Cr){Cr=Ol(Cr,fr);for(var an=0,Fn=Cr.length;fr!=null&&anCr}function So(fr,Cr){return fr!=null&&ep.call(fr,Cr)}function Do(fr,Cr){return fr!=null&&Cr in np(fr)}function $o(fr,Cr,an){return fr>=vp(Cr,an)&&fr=120&&Sl.length>=120)?new yv(ns&&Sl):_e}Sl=fr[0];var $l=-1,hu=fs[0];e:for(;++$l-1;)fs!==fr&&L0.call(fs,Ms,1),L0.call(fr,Ms,1);return fr}function qo(fr,Cr){for(var an=fr?Cr.length:0,Fn=an-1;an--;){var no=Cr[an];if(an==Fn||no!==Mo){var Mo=no;Fs(no)?L0.call(fr,no,1):Ou(fr,no)}}return fr}function cs(fr,Cr){return fr+j0(wv()*(Cr-fr+1))}function bs(fr,Cr,an,Fn){for(var no=-1,Mo=pp(Hv((Cr-fr)/(an||1)),0),ns=Js(Mo);Mo--;)ns[Fn?Mo:++no]=fr,fr+=an;return ns}function as(fr,Cr){var an="";if(!fr||Cr<1||Cr>wt)return an;do Cr%2&&(an+=fr),Cr=j0(Cr/2),Cr&&(fr+=fr);while(Cr);return an}function Rs(fr,Cr){return ap(Du(fr,Cr,Iv),fr+"")}function Ll(fr){return Xm(Py(fr))}function Gl(fr,Cr){var an=Py(fr);return Cp(an,xv(Cr,0,an.length))}function Rl(fr,Cr,an,Fn){if(!qp(fr))return fr;Cr=Ol(Cr,fr);for(var no=-1,Mo=Cr.length,ns=Mo-1,fs=fr;fs!=null&&++nono?0:no+Cr),an=an>no?no:an,an<0&&(an+=no),no=Cr>an?0:an-Cr>>>0,Cr>>>=0;for(var Mo=Js(no);++Fn>>1,ns=fr[Mo];ns!==null&&!s1(ns)&&(an?ns<=Cr:ns=Lt){var Il=Cr?null:px(fr);if(Il)return mm(Il);ns=!1,no=p1,Ms=new yv}else Ms=Cr?[]:fs;e:for(;++Fn=Fn?fr:Ql(fr,Cr,an)}var Ev=uy||function(fr){return yo.clearTimeout(fr)};function jp(fr,Cr){if(Cr)return fr.slice();var an=fr.length,Fn=Tm?Tm(an):new fr.constructor(an);return fr.copy(Fn),Fn}function Ku(fr){var Cr=new fr.constructor(fr.byteLength);return new E1(Cr).set(new E1(fr)),Cr}function Bp(fr,Cr){var an=Cr?Ku(fr.buffer):fr.buffer;return new fr.constructor(an,fr.byteOffset,fr.byteLength)}function Np(fr){var Cr=new fr.constructor(fr.source,Cn.exec(fr));return Cr.lastIndex=fr.lastIndex,Cr}function n0(fr){return w1?np(w1.call(fr)):{}}function a0(fr,Cr){var an=Cr?Ku(fr.buffer):fr.buffer;return new fr.constructor(an,fr.byteOffset,fr.length)}function yp(fr,Cr){if(fr!==Cr){var an=fr!==_e,Fn=fr===null,no=fr===fr,Mo=s1(fr),ns=Cr!==_e,fs=Cr===null,Ms=Cr===Cr,Il=s1(Cr);if(!fs&&!Il&&!Mo&&fr>Cr||Mo&&ns&&Ms&&!fs&&!Il||Fn&&ns&&Ms||!an&&Ms||!no)return 1;if(!Fn&&!Mo&&!Il&&fr=fs)return Ms;var Il=an[Fn];return Ms*(Il=="desc"?-1:1)}}return fr.index-Cr.index}function Fu(fr,Cr,an,Fn){for(var no=-1,Mo=fr.length,ns=an.length,fs=-1,Ms=Cr.length,Il=pp(Mo-ns,0),Sl=Js(Ms+Il),$l=!Fn;++fs1?an[no-1]:_e,ns=no>2?an[2]:_e;for(Mo=fr.length>3&&typeof Mo=="function"?(no--,Mo):_e,ns&&Hs(an[0],an[1],ns)&&(Mo=no<3?_e:Mo,no=1),Cr=np(Cr);++Fn-1?no[Mo?Cr[ns]:ns]:_e}}function jv(fr){return cm(function(Cr){var an=Cr.length,Fn=an,no=Mp.prototype.thru;for(fr&&Cr.reverse();Fn--;){var Mo=Cr[Fn];if(typeof Mo!="function")throw new vv(Ct);if(no&&!ns&&Qt(Mo)=="wrapper")var ns=new Mp([],!0)}for(Fn=ns?Fn:an;++Fn1&&ip.reverse(),Sl&&Msfs))return!1;var Il=Mo.get(fr),Sl=Mo.get(Cr);if(Il&&Sl)return Il==Cr&&Sl==fr;var $l=-1,hu=!0,lu=an&ht?new yv:_e;for(Mo.set(fr,Cr),Mo.set(Cr,fr);++$l1?"& ":"")+Cr[Fn],Cr=Cr.join(an>2?", ":" "),fr.replace(Sr,`{ /* [wrapped with `+Cr+`] */ -`)}function ps(fr){return Wu(fr)||Zv(fr)||!!(Y1&&fr&&fr[Y1])}function Fs(fr,Cr){var an=typeof fr;return Cr=Cr??wt,!!Cr&&(an=="number"||an!="symbol"&&_i.test(fr))&&fr>-1&&fr%1==0&&fr0){if(++Cr>=yt)return arguments[0]}else Cr=0;return fr.apply(_e,arguments)}}function Cp(fr,Cr){var an=-1,Fn=fr.length,no=Fn-1;for(Cr=Cr===_e?Fn:Cr;++an1?fr[Cr-1]:_e;return an=typeof an=="function"?(fr.pop(),an):_e,eE(fr,an)});function rE(fr){var Cr=Ao(fr);return Cr.__chain__=!0,Cr}function Bx(fr,Cr){return Cr(fr),fr}function mx(fr,Cr){return Cr(fr)}var Ay=cm(function(fr){var Cr=fr.length,an=Cr?fr[0]:0,Fn=this.__wrapped__,no=function(Mo){return Wv(Mo,fr)};return Cr>1||this.__actions__.length||!(Fn instanceof Lu)||!Fs(an)?this.thru(no):(Fn=Fn.slice(an,+an+(Cr?1:0)),Fn.__actions__.push({func:mx,args:[no],thisArg:_e}),new Mp(Fn,this.__chain__).thru(function(Mo){return Cr&&!Mo.length&&Mo.push(_e),Mo}))});function yx(){return rE(this)}function CT(){return new Mp(this.value(),this.__chain__)}function RT(){this.__values__===_e&&(this.__values__=bE(this.value()));var fr=this.__index__>=this.__values__.length,Cr=fr?_e:this.__values__[this.__index__++];return{done:fr,value:Cr}}function MT(){return this}function IT(fr){for(var Cr,an=this;an instanceof Gp;){var Fn=a1(an);Fn.__index__=0,Fn.__values__=_e,Cr?no.__wrapped__=Fn:Cr=Fn;var no=Fn;an=an.__wrapped__}return no.__wrapped__=fr,Cr}function kT(){var fr=this.__wrapped__;if(fr instanceof Lu){var Cr=fr;return this.__actions__.length&&(Cr=new Lu(this)),Cr=Cr.reverse(),Cr.__actions__.push({func:mx,args:[Ly],thisArg:_e}),new Mp(Cr,this.__chain__)}return this.thru(Ly)}function DT(){return Fp(this.__wrapped__,this.__actions__)}var PT=e1(function(fr,Cr,an){ep.call(fr,an)?++fr[an]:Ov(fr,an,1)});function NT(fr,Cr,an){var Fn=Wu(fr)?Ys:Q0;return an&&Hs(fr,Cr,an)&&(Cr=_e),Fn(fr,nr(Cr,3))}function OT(fr,Cr){var an=Wu(fr)?Bl:Km;return an(fr,nr(Cr,3))}var FT=O1(ov),BT=O1(Iy);function x2(fr,Cr){return Zr(Hx(fr,Cr),1)}function zT(fr,Cr){return Zr(Hx(fr,Cr),kt)}function Xy(fr,Cr,an){return an=an===_e?1:Ju(an),Zr(Hx(fr,Cr),an)}function nE(fr,Cr){var an=Wu(fr)?Cs:Fv;return an(fr,nr(Cr,3))}function Yp(fr,Cr){var an=Wu(fr)?Ks:Rm;return an(fr,nr(Cr,3))}var zx=e1(function(fr,Cr,an){ep.call(fr,an)?fr[an].push(Cr):Ov(fr,an,[Cr])});function aE(fr,Cr,an,Fn){fr=z0(fr)?fr:Py(fr),an=an&&!Fn?Ju(an):0;var no=fr.length;return an<0&&(an=pp(no+an,0)),jx(fr)?an<=no&&fr.indexOf(Cr,an)>-1:!!no&&Qv(fr,Cr,an)>-1}var Ux=Rs(function(fr,Cr,an){var Fn=-1,no=typeof Cr=="function",Mo=z0(fr)?Js(fr.length):[];return Fv(fr,function(ns){Mo[++Fn]=no?_s(Cr,ns,an):Ns(ns,Cr,an)}),Mo}),$x=e1(function(fr,Cr,an){Ov(fr,an,Cr)});function Hx(fr,Cr){var an=Wu(fr)?Zl:Dn;return an(fr,nr(Cr,3))}function xx(fr,Cr,an,Fn){return fr==null?[]:(Wu(Cr)||(Cr=Cr==null?[]:[Cr]),an=Fn?_e:an,Wu(an)||(an=an==null?[]:[an]),Ro(fr,Cr,an))}var UT=e1(function(fr,Cr,an){fr[an?0:1].push(Cr)},function(){return[[],[]]});function iE(fr,Cr,an){var Fn=Wu(fr)?Vu:Ap,no=arguments.length<3;return Fn(fr,nr(Cr,4),an,no,Fv)}function oE(fr,Cr,an){var Fn=Wu(fr)?Sv:Ap,no=arguments.length<3;return Fn(fr,nr(Cr,4),an,no,Rm)}function bx(fr,Cr){var an=Wu(fr)?Bl:Km;return an(fr,ty(nr(Cr,3)))}function b2(fr){var Cr=Wu(fr)?Xm:Ll;return Cr(fr)}function E2(fr,Cr,an){(an?Hs(fr,Cr,an):Cr===_e)?Cr=1:Cr=Ju(Cr);var Fn=Wu(fr)?iv:Gl;return Fn(fr,Cr)}function $T(fr){var Cr=Wu(fr)?nm:Tu;return Cr(fr)}function sE(fr){if(fr==null)return 0;if(z0(fr))return jx(fr)?H0(fr):fr.length;var Cr=na(fr);return Cr==lr||Cr==Zt?fr.size:nn(fr).length}function Ex(fr,Cr,an){var Fn=Wu(fr)?nv:xu;return an&&Hs(fr,Cr,an)&&(Cr=_e),Fn(fr,nr(Cr,3))}var HT=Rs(function(fr,Cr){if(fr==null)return[];var an=Cr.length;return an>1&&Hs(fr,Cr[0],Cr[1])?Cr=[]:an>2&&Hs(Cr[0],Cr[1],Cr[2])&&(Cr=[Cr[0]]),Ro(fr,Zr(Cr,1),[])}),Ky=Hm||function(){return yo.Date.now()};function VT(fr,Cr){if(typeof Cr!="function")throw new vv(Ct);return fr=Ju(fr),function(){if(--fr<1)return Cr.apply(this,arguments)}}function Gx(fr,Cr,an){return Cr=an?_e:Cr,Cr=fr&&Cr==null?fr.length:Cr,r1(fr,vt,_e,_e,_e,_e,Cr)}function Vx(fr,Cr){var an;if(typeof Cr!="function")throw new vv(Ct);return fr=Ju(fr),function(){return--fr>0&&(an=Cr.apply(this,arguments)),fr<=1&&(Cr=_e),an}}var T2=Rs(function(fr,Cr,an){var Fn=j;if(an.length){var no=I0(an,gr(T2));Fn|=ot}return r1(fr,Fn,Cr,an,no)}),z1=Rs(function(fr,Cr,an){var Fn=j|_;if(an.length){var no=I0(an,gr(z1));Fn|=ot}return r1(Cr,Fn,fr,an,no)});function lE(fr,Cr,an){Cr=an?_e:Cr;var Fn=r1(fr,tt,_e,_e,_e,_e,_e,Cr);return Fn.placeholder=lE.placeholder,Fn}function uE(fr,Cr,an){Cr=an?_e:Cr;var Fn=r1(fr,st,_e,_e,_e,_e,_e,Cr);return Fn.placeholder=uE.placeholder,Fn}function cE(fr,Cr,an){var Fn,no,Mo,ns,fs,Ms,Il=0,Sl=!1,$l=!1,hu=!0;if(typeof fr!="function")throw new vv(Ct);Cr=$1(Cr)||0,qp(an)&&(Sl=!!an.leading,$l="maxWait"in an,Mo=$l?pp($1(an.maxWait)||0,Cr):Mo,hu="trailing"in an?!!an.trailing:hu);function lu(tv){var vm=Fn,ay=no;return Fn=no=_e,Il=tv,ns=fr.apply(ay,vm),ns}function Ru(tv){return Il=tv,fs=Pu(rp,Cr),Sl?lu(tv):ns}function mu(tv){var vm=tv-Ms,ay=tv-Il,Sy=Cr-vm;return $l?vp(Sy,Mo-ay):Sy}function Mu(tv){var vm=tv-Ms,ay=tv-Il;return Ms===_e||vm>=Cr||vm<0||$l&&ay>=Mo}function rp(){var tv=Ky();if(Mu(tv))return ip(tv);fs=Pu(rp,mu(tv))}function ip(tv){return fs=_e,hu&&Fn?lu(tv):(Fn=no=_e,ns)}function $0(){fs!==_e&&Ev(fs),Il=0,Fn=Ms=no=fs=_e}function c0(){return fs===_e?ns:ip(Ky())}function u1(){var tv=Ky(),vm=Mu(tv);if(Fn=arguments,no=this,Ms=tv,vm){if(fs===_e)return Ru(Ms);if($l)return Ev(fs),fs=Pu(rp,Cr),lu(Ms)}return fs===_e&&(fs=Pu(rp,Cr)),ns}return u1.cancel=$0,u1.flush=c0,u1}var WT=Rs(function(fr,Cr){return om(fr,1,Cr)}),jT=Rs(function(fr,Cr,an){return om(fr,$1(Cr)||0,an)});function YT(fr){return r1(fr,bt)}function Tx(fr,Cr){if(typeof fr!="function"||Cr!=null&&typeof Cr!="function")throw new vv(Ct);var an=function(){var Fn=arguments,no=Cr?Cr.apply(this,Fn):Fn[0],Mo=an.cache;if(Mo.has(no))return Mo.get(no);var ns=fr.apply(this,Fn);return an.cache=Mo.set(no,ns)||Mo,ns};return an.cache=new(Tx.Cache||mv),an}Tx.Cache=mv;function ty(fr){if(typeof fr!="function")throw new vv(Ct);return function(){var Cr=arguments;switch(Cr.length){case 0:return!fr.call(this);case 1:return!fr.call(this,Cr[0]);case 2:return!fr.call(this,Cr[0],Cr[1]);case 3:return!fr.call(this,Cr[0],Cr[1],Cr[2])}return!fr.apply(this,Cr)}}function XT(fr){return Vx(2,fr)}var KT=cu(function(fr,Cr){Cr=Cr.length==1&&Wu(Cr[0])?Zl(Cr[0],op(nr())):Zl(Zr(Cr,1),op(nr()));var an=Cr.length;return Rs(function(Fn){for(var no=-1,Mo=vp(Fn.length,an);++no=Cr}),Zv=$s(function(){return arguments}())?$s:function(fr){return sv(fr)&&ep.call(fr,"callee")&&!j1.call(fr,"callee")},Wu=Js.isArray,iA=xs?op(xs):Al;function z0(fr){return fr!=null&&_x(fr.length)&&!ry(fr)}function fv(fr){return sv(fr)&&z0(fr)}function oA(fr){return fr===!0||fr===!1||sv(fr)&&mo(fr)==Ut}var U1=X1||B2,pE=us?op(us):pu;function sA(fr){return sv(fr)&&fr.nodeType===1&&!Sx(fr)}function lA(fr){if(fr==null)return!0;if(z0(fr)&&(Wu(fr)||typeof fr=="string"||typeof fr.splice=="function"||U1(fr)||Jy(fr)||Zv(fr)))return!fr.length;var Cr=na(fr);if(Cr==lr||Cr==Zt)return!fr.size;if(Ul(fr))return!nn(fr).length;for(var an in fr)if(ep.call(fr,an))return!1;return!0}function uA(fr,Cr){return du(fr,Cr)}function cA(fr,Cr,an){an=typeof an=="function"?an:_e;var Fn=an?an(fr,Cr):_e;return Fn===_e?du(fr,Cr,_e,an):!!Fn}function S2(fr){if(!sv(fr))return!1;var Cr=mo(fr);return Cr==Xt||Cr==Vt||typeof fr.message=="string"&&typeof fr.name=="string"&&!Sx(fr)}function fA(fr){return typeof fr=="number"&&Nv(fr)}function ry(fr){if(!qp(fr))return!1;var Cr=mo(fr);return Cr==qt||Cr==er||Cr==$t||Cr==ar}function vE(fr){return typeof fr=="number"&&fr==Ju(fr)}function _x(fr){return typeof fr=="number"&&fr>-1&&fr%1==0&&fr<=wt}function qp(fr){var Cr=typeof fr;return fr!=null&&(Cr=="object"||Cr=="function")}function sv(fr){return fr!=null&&typeof fr=="object"}var gE=wo?op(wo):Eu;function dA(fr,Cr){return fr===Cr||Nu(fr,Cr,$r(Cr))}function mE(fr,Cr,an){return an=typeof an=="function"?an:_e,Nu(fr,Cr,$r(Cr),an)}function yE(fr){return w2(fr)&&fr!=+fr}function Jv(fr){if(Pl(fr))throw new Su(Gt);return _c(fr)}function hA(fr){return fr===null}function pA(fr){return fr==null}function w2(fr){return typeof fr=="number"||sv(fr)&&mo(fr)==Jt}function Sx(fr){if(!sv(fr)||mo(fr)!=rr)return!1;var Cr=T1(fr);if(Cr===null)return!0;var an=ep.call(Cr,"constructor")&&Cr.constructor;return typeof an=="function"&&an instanceof an&&ym.call(an)==xm}var Wx=Qo?op(Qo):Ip;function vA(fr){return vE(fr)&&fr>=-wt&&fr<=wt}var C2=Wo?op(Wo):dr;function jx(fr){return typeof fr=="string"||!Wu(fr)&&sv(fr)&&mo(fr)==Kt}function s1(fr){return typeof fr=="symbol"||sv(fr)&&mo(fr)==or}var Jy=rs?op(rs):Lr;function gA(fr){return fr===_e}function xE(fr){return sv(fr)&&na(fr)==cr}function mA(fr){return sv(fr)&&mo(fr)==hr}var yA=um(vn),xA=um(function(fr,Cr){return fr<=Cr});function bE(fr){if(!fr)return[];if(z0(fr))return jx(fr)?Pv(fr):Tv(fr);if(qu&&fr[qu])return wy(fr[qu]());var Cr=na(fr),an=Cr==lr?v1:Cr==Zt?mm:Py;return an(fr)}function l1(fr){if(!fr)return fr===0?fr:0;if(fr=$1(fr),fr===kt||fr===-kt){var Cr=fr<0?-1:1;return Cr*ct}return fr===fr?fr:0}function Ju(fr){var Cr=l1(fr),an=Cr%1;return Cr===Cr?an?Cr-an:Cr:0}function dv(fr){return fr?xv(Ju(fr),0,At):0}function $1(fr){if(typeof fr=="number")return fr;if(s1(fr))return It;if(qp(fr)){var Cr=typeof fr.valueOf=="function"?fr.valueOf():fr;fr=qp(Cr)?Cr+"":Cr}if(typeof fr!="string")return fr===0?fr:+fr;fr=$p(fr);var an=fn.test(fr);return an||Un.test(fr)?Cl(fr.slice(2),an?2:8):xn.test(fr)?It:+fr}function EE(fr){return q0(fr,T0(fr))}function Yx(fr){return fr?xv(Ju(fr),-wt,wt):fr===0?fr:0}function hp(fr){return fr==null?"":vu(fr)}var bp=t1(function(fr,Cr){if(Ul(Cr)||z0(Cr)){q0(Cr,ev(Cr),fr);return}for(var an in Cr)ep.call(Cr,an)&&k1(fr,an,Cr[an])}),Xx=t1(function(fr,Cr){q0(Cr,T0(Cr),fr)}),wx=t1(function(fr,Cr,an,Fn){q0(Cr,T0(Cr),fr,Fn)}),bA=t1(function(fr,Cr,an,Fn){q0(Cr,ev(Cr),fr,Fn)}),TE=cm(Wv);function EA(fr,Cr){var an=K0(fr);return Cr==null?an:cv(an,Cr)}var ny=Rs(function(fr,Cr){fr=np(fr);var an=-1,Fn=Cr.length,no=Fn>2?Cr[2]:_e;for(no&&Hs(Cr[0],Cr[1],no)&&(Fn=1);++an1),Mo}),q0(fr,zp(fr),an),Fn&&(an=bv(an,et|Et|mt,Px));for(var no=Cr.length;no--;)Ou(an,Cr[no]);return an});function OA(fr,Cr){return _E(fr,ty(nr(Cr)))}var FA=cm(function(fr,Cr){return fr==null?{}:ts(fr,Cr)});function _E(fr,Cr){if(fr==null)return{};var an=Zl(zp(fr),function(Fn){return[Fn]});return Cr=nr(Cr),ls(fr,an,function(Fn,no){return Cr(Fn,no[0])})}function SE(fr,Cr,an){Cr=Ol(Cr,fr);var Fn=-1,no=Cr.length;for(no||(no=1,fr=_e);++FnCr){var Fn=fr;fr=Cr,Cr=Fn}if(an||fr%1||Cr%1){var no=wv();return vp(fr+no*(Cr-fr+Xs("1e-"+((no+"").length-1))),Cr)}return cs(fr,Cr)}var Jx=Im(function(fr,Cr,an){return Cr=Cr.toLowerCase(),fr+(an?hm(Cr):Cr)});function hm(fr){return Qx(hp(fr).toLowerCase())}function u0(fr){return fr=hp(fr),fr&&fr.replace(yn,Hp).replace(Qs,"")}function RE(fr,Cr,an){fr=hp(fr),Cr=vu(Cr);var Fn=fr.length;an=an===_e?Fn:xv(Ju(an),0,Fn);var no=an;return an-=Cr.length,an>=0&&fr.slice(an,no)==Cr}function UA(fr){return fr=hp(fr),fr&&mn.test(fr)?fr.replace(Xr,Um):fr}function ME(fr){return fr=hp(fr),fr&&wr.test(fr)?fr.replace(Gr,"\\$&"):fr}var $A=Im(function(fr,Cr,an){return fr+(an?"-":"")+Cr.toLowerCase()}),IE=Im(function(fr,Cr,an){return fr+(an?" ":"")+Cr.toLowerCase()}),kE=Uy("toLowerCase");function I2(fr,Cr,an){fr=hp(fr),Cr=Ju(Cr);var Fn=Cr?H0(fr):0;if(!Cr||Fn>=Cr)return fr;var no=(Cr-Fn)/2;return vy(j0(no),an)+fr+vy(Hv(no),an)}function k2(fr,Cr,an){fr=hp(fr),Cr=Ju(Cr);var Fn=Cr?H0(fr):0;return Cr&&Fn>>0,an?(fr=hp(fr),fr&&(typeof Cr=="string"||Cr!=null&&!Wx(Cr))&&(Cr=vu(Cr),!Cr&&M0(fr))?Lp(Pv(fr),0,an):fr.split(Cr,an)):[]}var pm=Im(function(fr,Cr,an){return fr+(an?" ":"")+Qx(Cr)});function L2(fr,Cr,an){return fr=hp(fr),an=an==null?0:xv(Ju(an),0,fr.length),Cr=vu(Cr),fr.slice(an,an+Cr.length)==Cr}function DE(fr,Cr,an){var Fn=Ao.templateSettings;an&&Hs(fr,Cr,an)&&(Cr=_e),fr=hp(fr),Cr=wx({},Cr,Fn,qm);var no=wx({},Cr.imports,Fn.imports,qm),Mo=ev(no),ns=lv(no,Mo),fs,Ms,Il=0,Sl=Cr.interpolate||Kn,$l="__p += '",hu=e0((Cr.escape||Kn).source+"|"+Sl.source+"|"+(Sl===Jr?rn:Kn).source+"|"+(Cr.evaluate||Kn).source+"|$","g"),lu="//# sourceURL="+(ep.call(Cr,"sourceURL")?(Cr.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++xo+"]")+` +`)}function ps(fr){return Wu(fr)||Zv(fr)||!!(Y1&&fr&&fr[Y1])}function Fs(fr,Cr){var an=typeof fr;return Cr=Cr??wt,!!Cr&&(an=="number"||an!="symbol"&&_i.test(fr))&&fr>-1&&fr%1==0&&fr0){if(++Cr>=mt)return arguments[0]}else Cr=0;return fr.apply(_e,arguments)}}function Cp(fr,Cr){var an=-1,Fn=fr.length,no=Fn-1;for(Cr=Cr===_e?Fn:Cr;++an1?fr[Cr-1]:_e;return an=typeof an=="function"?(fr.pop(),an):_e,eE(fr,an)});function rE(fr){var Cr=Ao(fr);return Cr.__chain__=!0,Cr}function Bx(fr,Cr){return Cr(fr),fr}function mx(fr,Cr){return Cr(fr)}var Ay=cm(function(fr){var Cr=fr.length,an=Cr?fr[0]:0,Fn=this.__wrapped__,no=function(Mo){return Wv(Mo,fr)};return Cr>1||this.__actions__.length||!(Fn instanceof Lu)||!Fs(an)?this.thru(no):(Fn=Fn.slice(an,+an+(Cr?1:0)),Fn.__actions__.push({func:mx,args:[no],thisArg:_e}),new Mp(Fn,this.__chain__).thru(function(Mo){return Cr&&!Mo.length&&Mo.push(_e),Mo}))});function yx(){return rE(this)}function CT(){return new Mp(this.value(),this.__chain__)}function RT(){this.__values__===_e&&(this.__values__=bE(this.value()));var fr=this.__index__>=this.__values__.length,Cr=fr?_e:this.__values__[this.__index__++];return{done:fr,value:Cr}}function MT(){return this}function IT(fr){for(var Cr,an=this;an instanceof Gp;){var Fn=a1(an);Fn.__index__=0,Fn.__values__=_e,Cr?no.__wrapped__=Fn:Cr=Fn;var no=Fn;an=an.__wrapped__}return no.__wrapped__=fr,Cr}function kT(){var fr=this.__wrapped__;if(fr instanceof Lu){var Cr=fr;return this.__actions__.length&&(Cr=new Lu(this)),Cr=Cr.reverse(),Cr.__actions__.push({func:mx,args:[Ly],thisArg:_e}),new Mp(Cr,this.__chain__)}return this.thru(Ly)}function DT(){return Fp(this.__wrapped__,this.__actions__)}var PT=e1(function(fr,Cr,an){ep.call(fr,an)?++fr[an]:Ov(fr,an,1)});function NT(fr,Cr,an){var Fn=Wu(fr)?Ys:Q0;return an&&Hs(fr,Cr,an)&&(Cr=_e),Fn(fr,nr(Cr,3))}function OT(fr,Cr){var an=Wu(fr)?Bl:Km;return an(fr,nr(Cr,3))}var FT=O1(ov),BT=O1(Iy);function x2(fr,Cr){return Jr(Hx(fr,Cr),1)}function zT(fr,Cr){return Jr(Hx(fr,Cr),kt)}function Xy(fr,Cr,an){return an=an===_e?1:Ju(an),Jr(Hx(fr,Cr),an)}function nE(fr,Cr){var an=Wu(fr)?Cs:Fv;return an(fr,nr(Cr,3))}function Yp(fr,Cr){var an=Wu(fr)?Ks:Rm;return an(fr,nr(Cr,3))}var zx=e1(function(fr,Cr,an){ep.call(fr,an)?fr[an].push(Cr):Ov(fr,an,[Cr])});function aE(fr,Cr,an,Fn){fr=z0(fr)?fr:Py(fr),an=an&&!Fn?Ju(an):0;var no=fr.length;return an<0&&(an=pp(no+an,0)),jx(fr)?an<=no&&fr.indexOf(Cr,an)>-1:!!no&&Qv(fr,Cr,an)>-1}var Ux=Rs(function(fr,Cr,an){var Fn=-1,no=typeof Cr=="function",Mo=z0(fr)?Js(fr.length):[];return Fv(fr,function(ns){Mo[++Fn]=no?_s(Cr,ns,an):Ns(ns,Cr,an)}),Mo}),$x=e1(function(fr,Cr,an){Ov(fr,an,Cr)});function Hx(fr,Cr){var an=Wu(fr)?Zl:Dn;return an(fr,nr(Cr,3))}function xx(fr,Cr,an,Fn){return fr==null?[]:(Wu(Cr)||(Cr=Cr==null?[]:[Cr]),an=Fn?_e:an,Wu(an)||(an=an==null?[]:[an]),Ro(fr,Cr,an))}var UT=e1(function(fr,Cr,an){fr[an?0:1].push(Cr)},function(){return[[],[]]});function iE(fr,Cr,an){var Fn=Wu(fr)?Vu:Ap,no=arguments.length<3;return Fn(fr,nr(Cr,4),an,no,Fv)}function oE(fr,Cr,an){var Fn=Wu(fr)?Sv:Ap,no=arguments.length<3;return Fn(fr,nr(Cr,4),an,no,Rm)}function bx(fr,Cr){var an=Wu(fr)?Bl:Km;return an(fr,ty(nr(Cr,3)))}function b2(fr){var Cr=Wu(fr)?Xm:Ll;return Cr(fr)}function E2(fr,Cr,an){(an?Hs(fr,Cr,an):Cr===_e)?Cr=1:Cr=Ju(Cr);var Fn=Wu(fr)?iv:Gl;return Fn(fr,Cr)}function $T(fr){var Cr=Wu(fr)?nm:Tu;return Cr(fr)}function sE(fr){if(fr==null)return 0;if(z0(fr))return jx(fr)?H0(fr):fr.length;var Cr=na(fr);return Cr==lr||Cr==Zt?fr.size:nn(fr).length}function Ex(fr,Cr,an){var Fn=Wu(fr)?nv:xu;return an&&Hs(fr,Cr,an)&&(Cr=_e),Fn(fr,nr(Cr,3))}var HT=Rs(function(fr,Cr){if(fr==null)return[];var an=Cr.length;return an>1&&Hs(fr,Cr[0],Cr[1])?Cr=[]:an>2&&Hs(Cr[0],Cr[1],Cr[2])&&(Cr=[Cr[0]]),Ro(fr,Jr(Cr,1),[])}),Ky=Hm||function(){return yo.Date.now()};function VT(fr,Cr){if(typeof Cr!="function")throw new vv(Ct);return fr=Ju(fr),function(){if(--fr<1)return Cr.apply(this,arguments)}}function Gx(fr,Cr,an){return Cr=an?_e:Cr,Cr=fr&&Cr==null?fr.length:Cr,r1(fr,vt,_e,_e,_e,_e,Cr)}function Vx(fr,Cr){var an;if(typeof Cr!="function")throw new vv(Ct);return fr=Ju(fr),function(){return--fr>0&&(an=Cr.apply(this,arguments)),fr<=1&&(Cr=_e),an}}var T2=Rs(function(fr,Cr,an){var Fn=j;if(an.length){var no=I0(an,vr(T2));Fn|=ot}return r1(fr,Fn,Cr,an,no)}),z1=Rs(function(fr,Cr,an){var Fn=j|_;if(an.length){var no=I0(an,vr(z1));Fn|=ot}return r1(Cr,Fn,fr,an,no)});function lE(fr,Cr,an){Cr=an?_e:Cr;var Fn=r1(fr,tt,_e,_e,_e,_e,_e,Cr);return Fn.placeholder=lE.placeholder,Fn}function uE(fr,Cr,an){Cr=an?_e:Cr;var Fn=r1(fr,st,_e,_e,_e,_e,_e,Cr);return Fn.placeholder=uE.placeholder,Fn}function cE(fr,Cr,an){var Fn,no,Mo,ns,fs,Ms,Il=0,Sl=!1,$l=!1,hu=!0;if(typeof fr!="function")throw new vv(Ct);Cr=$1(Cr)||0,qp(an)&&(Sl=!!an.leading,$l="maxWait"in an,Mo=$l?pp($1(an.maxWait)||0,Cr):Mo,hu="trailing"in an?!!an.trailing:hu);function lu(tv){var vm=Fn,ay=no;return Fn=no=_e,Il=tv,ns=fr.apply(ay,vm),ns}function Ru(tv){return Il=tv,fs=Pu(rp,Cr),Sl?lu(tv):ns}function mu(tv){var vm=tv-Ms,ay=tv-Il,Sy=Cr-vm;return $l?vp(Sy,Mo-ay):Sy}function Mu(tv){var vm=tv-Ms,ay=tv-Il;return Ms===_e||vm>=Cr||vm<0||$l&&ay>=Mo}function rp(){var tv=Ky();if(Mu(tv))return ip(tv);fs=Pu(rp,mu(tv))}function ip(tv){return fs=_e,hu&&Fn?lu(tv):(Fn=no=_e,ns)}function $0(){fs!==_e&&Ev(fs),Il=0,Fn=Ms=no=fs=_e}function c0(){return fs===_e?ns:ip(Ky())}function u1(){var tv=Ky(),vm=Mu(tv);if(Fn=arguments,no=this,Ms=tv,vm){if(fs===_e)return Ru(Ms);if($l)return Ev(fs),fs=Pu(rp,Cr),lu(Ms)}return fs===_e&&(fs=Pu(rp,Cr)),ns}return u1.cancel=$0,u1.flush=c0,u1}var WT=Rs(function(fr,Cr){return om(fr,1,Cr)}),jT=Rs(function(fr,Cr,an){return om(fr,$1(Cr)||0,an)});function YT(fr){return r1(fr,bt)}function Tx(fr,Cr){if(typeof fr!="function"||Cr!=null&&typeof Cr!="function")throw new vv(Ct);var an=function(){var Fn=arguments,no=Cr?Cr.apply(this,Fn):Fn[0],Mo=an.cache;if(Mo.has(no))return Mo.get(no);var ns=fr.apply(this,Fn);return an.cache=Mo.set(no,ns)||Mo,ns};return an.cache=new(Tx.Cache||mv),an}Tx.Cache=mv;function ty(fr){if(typeof fr!="function")throw new vv(Ct);return function(){var Cr=arguments;switch(Cr.length){case 0:return!fr.call(this);case 1:return!fr.call(this,Cr[0]);case 2:return!fr.call(this,Cr[0],Cr[1]);case 3:return!fr.call(this,Cr[0],Cr[1],Cr[2])}return!fr.apply(this,Cr)}}function XT(fr){return Vx(2,fr)}var KT=cu(function(fr,Cr){Cr=Cr.length==1&&Wu(Cr[0])?Zl(Cr[0],op(nr())):Zl(Jr(Cr,1),op(nr()));var an=Cr.length;return Rs(function(Fn){for(var no=-1,Mo=vp(Fn.length,an);++no=Cr}),Zv=$s(function(){return arguments}())?$s:function(fr){return sv(fr)&&ep.call(fr,"callee")&&!j1.call(fr,"callee")},Wu=Js.isArray,iA=xs?op(xs):Al;function z0(fr){return fr!=null&&_x(fr.length)&&!ry(fr)}function fv(fr){return sv(fr)&&z0(fr)}function oA(fr){return fr===!0||fr===!1||sv(fr)&&mo(fr)==Ut}var U1=X1||B2,pE=us?op(us):pu;function sA(fr){return sv(fr)&&fr.nodeType===1&&!Sx(fr)}function lA(fr){if(fr==null)return!0;if(z0(fr)&&(Wu(fr)||typeof fr=="string"||typeof fr.splice=="function"||U1(fr)||Jy(fr)||Zv(fr)))return!fr.length;var Cr=na(fr);if(Cr==lr||Cr==Zt)return!fr.size;if(Ul(fr))return!nn(fr).length;for(var an in fr)if(ep.call(fr,an))return!1;return!0}function uA(fr,Cr){return du(fr,Cr)}function cA(fr,Cr,an){an=typeof an=="function"?an:_e;var Fn=an?an(fr,Cr):_e;return Fn===_e?du(fr,Cr,_e,an):!!Fn}function S2(fr){if(!sv(fr))return!1;var Cr=mo(fr);return Cr==Xt||Cr==Vt||typeof fr.message=="string"&&typeof fr.name=="string"&&!Sx(fr)}function fA(fr){return typeof fr=="number"&&Nv(fr)}function ry(fr){if(!qp(fr))return!1;var Cr=mo(fr);return Cr==qt||Cr==er||Cr==$t||Cr==ar}function vE(fr){return typeof fr=="number"&&fr==Ju(fr)}function _x(fr){return typeof fr=="number"&&fr>-1&&fr%1==0&&fr<=wt}function qp(fr){var Cr=typeof fr;return fr!=null&&(Cr=="object"||Cr=="function")}function sv(fr){return fr!=null&&typeof fr=="object"}var gE=wo?op(wo):Eu;function dA(fr,Cr){return fr===Cr||Nu(fr,Cr,$r(Cr))}function mE(fr,Cr,an){return an=typeof an=="function"?an:_e,Nu(fr,Cr,$r(Cr),an)}function yE(fr){return w2(fr)&&fr!=+fr}function Jv(fr){if(Pl(fr))throw new Su(Gt);return _c(fr)}function hA(fr){return fr===null}function pA(fr){return fr==null}function w2(fr){return typeof fr=="number"||sv(fr)&&mo(fr)==Jt}function Sx(fr){if(!sv(fr)||mo(fr)!=rr)return!1;var Cr=T1(fr);if(Cr===null)return!0;var an=ep.call(Cr,"constructor")&&Cr.constructor;return typeof an=="function"&&an instanceof an&&ym.call(an)==xm}var Wx=Qo?op(Qo):Ip;function vA(fr){return vE(fr)&&fr>=-wt&&fr<=wt}var C2=Wo?op(Wo):dr;function jx(fr){return typeof fr=="string"||!Wu(fr)&&sv(fr)&&mo(fr)==Kt}function s1(fr){return typeof fr=="symbol"||sv(fr)&&mo(fr)==or}var Jy=rs?op(rs):Lr;function gA(fr){return fr===_e}function xE(fr){return sv(fr)&&na(fr)==cr}function mA(fr){return sv(fr)&&mo(fr)==mr}var yA=um(vn),xA=um(function(fr,Cr){return fr<=Cr});function bE(fr){if(!fr)return[];if(z0(fr))return jx(fr)?Pv(fr):Tv(fr);if(qu&&fr[qu])return wy(fr[qu]());var Cr=na(fr),an=Cr==lr?v1:Cr==Zt?mm:Py;return an(fr)}function l1(fr){if(!fr)return fr===0?fr:0;if(fr=$1(fr),fr===kt||fr===-kt){var Cr=fr<0?-1:1;return Cr*ct}return fr===fr?fr:0}function Ju(fr){var Cr=l1(fr),an=Cr%1;return Cr===Cr?an?Cr-an:Cr:0}function dv(fr){return fr?xv(Ju(fr),0,At):0}function $1(fr){if(typeof fr=="number")return fr;if(s1(fr))return It;if(qp(fr)){var Cr=typeof fr.valueOf=="function"?fr.valueOf():fr;fr=qp(Cr)?Cr+"":Cr}if(typeof fr!="string")return fr===0?fr:+fr;fr=$p(fr);var an=fn.test(fr);return an||Un.test(fr)?Cl(fr.slice(2),an?2:8):xn.test(fr)?It:+fr}function EE(fr){return q0(fr,T0(fr))}function Yx(fr){return fr?xv(Ju(fr),-wt,wt):fr===0?fr:0}function hp(fr){return fr==null?"":vu(fr)}var bp=t1(function(fr,Cr){if(Ul(Cr)||z0(Cr)){q0(Cr,ev(Cr),fr);return}for(var an in Cr)ep.call(Cr,an)&&k1(fr,an,Cr[an])}),Xx=t1(function(fr,Cr){q0(Cr,T0(Cr),fr)}),wx=t1(function(fr,Cr,an,Fn){q0(Cr,T0(Cr),fr,Fn)}),bA=t1(function(fr,Cr,an,Fn){q0(Cr,ev(Cr),fr,Fn)}),TE=cm(Wv);function EA(fr,Cr){var an=K0(fr);return Cr==null?an:cv(an,Cr)}var ny=Rs(function(fr,Cr){fr=np(fr);var an=-1,Fn=Cr.length,no=Fn>2?Cr[2]:_e;for(no&&Hs(Cr[0],Cr[1],no)&&(Fn=1);++an1),Mo}),q0(fr,zp(fr),an),Fn&&(an=bv(an,et|Tt|yt,Px));for(var no=Cr.length;no--;)Ou(an,Cr[no]);return an});function OA(fr,Cr){return _E(fr,ty(nr(Cr)))}var FA=cm(function(fr,Cr){return fr==null?{}:ts(fr,Cr)});function _E(fr,Cr){if(fr==null)return{};var an=Zl(zp(fr),function(Fn){return[Fn]});return Cr=nr(Cr),ls(fr,an,function(Fn,no){return Cr(Fn,no[0])})}function SE(fr,Cr,an){Cr=Ol(Cr,fr);var Fn=-1,no=Cr.length;for(no||(no=1,fr=_e);++FnCr){var Fn=fr;fr=Cr,Cr=Fn}if(an||fr%1||Cr%1){var no=wv();return vp(fr+no*(Cr-fr+Xs("1e-"+((no+"").length-1))),Cr)}return cs(fr,Cr)}var Jx=Im(function(fr,Cr,an){return Cr=Cr.toLowerCase(),fr+(an?hm(Cr):Cr)});function hm(fr){return Qx(hp(fr).toLowerCase())}function u0(fr){return fr=hp(fr),fr&&fr.replace(yn,Hp).replace(Qs,"")}function RE(fr,Cr,an){fr=hp(fr),Cr=vu(Cr);var Fn=fr.length;an=an===_e?Fn:xv(Ju(an),0,Fn);var no=an;return an-=Cr.length,an>=0&&fr.slice(an,no)==Cr}function UA(fr){return fr=hp(fr),fr&&mn.test(fr)?fr.replace(Xr,Um):fr}function ME(fr){return fr=hp(fr),fr&&wr.test(fr)?fr.replace(Gr,"\\$&"):fr}var $A=Im(function(fr,Cr,an){return fr+(an?"-":"")+Cr.toLowerCase()}),IE=Im(function(fr,Cr,an){return fr+(an?" ":"")+Cr.toLowerCase()}),kE=Uy("toLowerCase");function I2(fr,Cr,an){fr=hp(fr),Cr=Ju(Cr);var Fn=Cr?H0(fr):0;if(!Cr||Fn>=Cr)return fr;var no=(Cr-Fn)/2;return vy(j0(no),an)+fr+vy(Hv(no),an)}function k2(fr,Cr,an){fr=hp(fr),Cr=Ju(Cr);var Fn=Cr?H0(fr):0;return Cr&&Fn>>0,an?(fr=hp(fr),fr&&(typeof Cr=="string"||Cr!=null&&!Wx(Cr))&&(Cr=vu(Cr),!Cr&&M0(fr))?Lp(Pv(fr),0,an):fr.split(Cr,an)):[]}var pm=Im(function(fr,Cr,an){return fr+(an?" ":"")+Qx(Cr)});function L2(fr,Cr,an){return fr=hp(fr),an=an==null?0:xv(Ju(an),0,fr.length),Cr=vu(Cr),fr.slice(an,an+Cr.length)==Cr}function DE(fr,Cr,an){var Fn=Ao.templateSettings;an&&Hs(fr,Cr,an)&&(Cr=_e),fr=hp(fr),Cr=wx({},Cr,Fn,qm);var no=wx({},Cr.imports,Fn.imports,qm),Mo=ev(no),ns=lv(no,Mo),fs,Ms,Il=0,Sl=Cr.interpolate||Kn,$l="__p += '",hu=e0((Cr.escape||Kn).source+"|"+Sl.source+"|"+(Sl===Zr?rn:Kn).source+"|"+(Cr.evaluate||Kn).source+"|$","g"),lu="//# sourceURL="+(ep.call(Cr,"sourceURL")?(Cr.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++xo+"]")+` `;fr.replace(hu,function(Mu,rp,ip,$0,c0,u1){return ip||(ip=$0),$l+=fr.slice(Il,u1).replace(Jn,R0),rp&&(fs=!0,$l+=`' + __e(`+rp+`) + '`),c0&&(Ms=!0,$l+=`'; @@ -130,43 +130,43 @@ __p += '`),ip&&($l+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+$l+`return __p -}`;var mu=Ny(function(){return Yu(Mo,lu+"return "+$l).apply(_e,ns)});if(mu.source=$l,S2(mu))throw mu;return mu}function PE(fr){return hp(fr).toLowerCase()}function jA(fr){return hp(fr).toUpperCase()}function NE(fr,Cr,an){if(fr=hp(fr),fr&&(an||Cr===_e))return $p(fr);if(!fr||!(Cr=vu(Cr)))return fr;var Fn=Pv(fr),no=Pv(Cr),Mo=uv(Fn,no),ns=iy(Fn,no)+1;return Lp(Fn,Mo,ns).join("")}function OE(fr,Cr,an){if(fr=hp(fr),fr&&(an||Cr===_e))return fr.slice(0,k0(fr)+1);if(!fr||!(Cr=vu(Cr)))return fr;var Fn=Pv(fr),no=iy(Fn,Pv(Cr))+1;return Lp(Fn,0,no).join("")}function FE(fr,Cr,an){if(fr=hp(fr),fr&&(an||Cr===_e))return fr.replace(vr,"");if(!fr||!(Cr=vu(Cr)))return fr;var Fn=Pv(fr),no=uv(Fn,Pv(Cr));return Lp(Fn,no).join("")}function BE(fr,Cr){var an=ft,Fn=at;if(qp(Cr)){var no="separator"in Cr?Cr.separator:no;an="length"in Cr?Ju(Cr.length):an,Fn="omission"in Cr?vu(Cr.omission):Fn}fr=hp(fr);var Mo=fr.length;if(M0(fr)){var ns=Pv(fr);Mo=ns.length}if(an>=Mo)return fr;var fs=an-H0(Fn);if(fs<1)return Fn;var Ms=ns?Lp(ns,0,fs).join(""):fr.slice(0,fs);if(no===_e)return Ms+Fn;if(ns&&(fs+=Ms.length-fs),Wx(no)){if(fr.slice(fs).search(no)){var Il,Sl=Ms;for(no.global||(no=e0(no.source,hp(Cn.exec(no))+"g")),no.lastIndex=0;Il=no.exec(Sl);)var $l=Il.index;Ms=Ms.slice(0,$l===_e?fs:$l)}}else if(fr.indexOf(vu(no),fs)!=fs){var hu=Ms.lastIndexOf(no);hu>-1&&(Ms=Ms.slice(0,hu))}return Ms+Fn}function YA(fr){return fr=hp(fr),fr&&ln.test(fr)?fr.replace(qr,g1):fr}var XA=Im(function(fr,Cr,an){return fr+(an?" ":"")+Cr.toUpperCase()}),Qx=Uy("toUpperCase");function D2(fr,Cr,an){return fr=hp(fr),Cr=an?_e:Cr,Cr===_e?oy(fr)?ly(fr):Fm(fr):fr.match(Cr)||[]}var Ny=Rs(function(fr,Cr){try{return _s(fr,_e,Cr)}catch(an){return S2(an)?an:new Su(an)}}),zE=cm(function(fr,Cr){return Cs(Cr,function(an){an=Qp(an),Ov(fr,an,T2(fr[an],fr))}),fr});function qx(fr){var Cr=fr==null?0:fr.length,an=nr();return fr=Cr?Zl(fr,function(Fn){if(typeof Fn[1]!="function")throw new vv(Ct);return[an(Fn[0]),Fn[1]]}):[],Rs(function(Fn){for(var no=-1;++nowt)return[];var an=At,Fn=vp(fr,At);Cr=nr(Cr),fr-=At;for(var no=kp(Fn,Cr);++an0||Cr<0)?new Lu(an):(fr<0?an=an.takeRight(-fr):fr&&(an=an.drop(fr)),Cr!==_e&&(Cr=Ju(Cr),an=Cr<0?an.dropRight(-Cr):an.take(Cr-fr)),an)},Lu.prototype.takeRightWhile=function(fr){return this.reverse().takeWhile(fr).reverse()},Lu.prototype.toArray=function(){return this.take(At)},Sn(Lu.prototype,function(fr,Cr){var an=/^(?:filter|find|map|reject)|While$/.test(Cr),Fn=/^(?:head|last)$/.test(Cr),no=Ao[Fn?"take"+(Cr=="last"?"Right":""):Cr],Mo=Fn||/^find/.test(Cr);no&&(Ao.prototype[Cr]=function(){var ns=this.__wrapped__,fs=Fn?[1]:arguments,Ms=ns instanceof Lu,Il=fs[0],Sl=Ms||Wu(ns),$l=function(rp){var ip=no.apply(Ao,ju([rp],fs));return Fn&&hu?ip[0]:ip};Sl&&an&&typeof Il=="function"&&Il.length!=1&&(Ms=Sl=!1);var hu=this.__chain__,lu=!!this.__actions__.length,Ru=Mo&&!hu,mu=Ms&&!lu;if(!Mo&&Sl){ns=mu?ns:new Lu(this);var Mu=fr.apply(ns,fs);return Mu.__actions__.push({func:mx,args:[$l],thisArg:_e}),new Mp(Mu,hu)}return Ru&&mu?fr.apply(this,fs):(Mu=this.thru($l),Ru?Fn?Mu.value()[0]:Mu.value():Mu)})}),Cs(["pop","push","shift","sort","splice","unshift"],function(fr){var Cr=p0[fr],an=/^(?:push|sort|unshift)$/.test(fr)?"tap":"thru",Fn=/^(?:pop|shift)$/.test(fr);Ao.prototype[fr]=function(){var no=arguments;if(Fn&&!this.__chain__){var Mo=this.value();return Cr.apply(Wu(Mo)?Mo:[],no)}return this[an](function(ns){return Cr.apply(Wu(ns)?ns:[],no)})}}),Sn(Lu.prototype,function(fr,Cr){var an=Ao[Cr];if(an){var Fn=an.name+"";ep.call(Sp,Fn)||(Sp[Fn]=[]),Sp[Fn].push({name:Cr,func:an})}}),Sp[F0(_e,_).name]=[{name:"wrapper",func:_e}],Lu.prototype.clone=C1,Lu.prototype.reverse=_m,Lu.prototype.value=Z0,Ao.prototype.at=Ay,Ao.prototype.chain=yx,Ao.prototype.commit=CT,Ao.prototype.next=RT,Ao.prototype.plant=IT,Ao.prototype.reverse=kT,Ao.prototype.toJSON=Ao.prototype.valueOf=Ao.prototype.value=DT,Ao.prototype.first=Ao.prototype.head,qu&&(Ao.prototype[qu]=MT),Ao},m1=h0();To?((To.exports=m1)._=m1,Fo._=m1):yo._=m1}).call(commonjsGlobal)})(lodash,lodashExports);/*! @license DOMPurify 3.0.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.8/LICENSE */const{entries,setPrototypeOf,isFrozen,getPrototypeOf,getOwnPropertyDescriptor}=Object;let{freeze,seal,create:create$6}=Object,{apply,construct}=typeof Reflect<"u"&&Reflect;freeze||(freeze=function(i){return i});seal||(seal=function(i){return i});apply||(apply=function(i,_e,pt){return i.apply(_e,pt)});construct||(construct=function(i,_e){return new i(..._e)});const arrayForEach=unapply(Array.prototype.forEach),arrayPop=unapply(Array.prototype.pop),arrayPush=unapply(Array.prototype.push),stringToLowerCase=unapply(String.prototype.toLowerCase),stringToString=unapply(String.prototype.toString),stringMatch=unapply(String.prototype.match),stringReplace=unapply(String.prototype.replace),stringIndexOf=unapply(String.prototype.indexOf),stringTrim=unapply(String.prototype.trim),regExpTest=unapply(RegExp.prototype.test),typeErrorCreate=unconstruct(TypeError);function unapply(a){return function(i){for(var _e=arguments.length,pt=new Array(_e>1?_e-1:0),Lt=1;Lt<_e;Lt++)pt[Lt-1]=arguments[Lt];return apply(a,i,pt)}}function unconstruct(a){return function(){for(var i=arguments.length,_e=new Array(i),pt=0;pt2&&arguments[2]!==void 0?arguments[2]:stringToLowerCase;setPrototypeOf&&setPrototypeOf(a,null);let pt=i.length;for(;pt--;){let Lt=i[pt];if(typeof Lt=="string"){const Gt=_e(Lt);Gt!==Lt&&(isFrozen(i)||(i[pt]=Gt),Lt=Gt)}a[Lt]=!0}return a}function cleanArray(a){for(let i=0;i/gm),TMPLIT_EXPR=seal(/\${[\w\W]*}/gm),DATA_ATTR=seal(/^data-[\-\w.\u00B7-\uFFFF]/),ARIA_ATTR=seal(/^aria-[\-\w]+$/),IS_ALLOWED_URI=seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IS_SCRIPT_OR_DATA=seal(/^(?:\w+script|data):/i),ATTR_WHITESPACE=seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),DOCTYPE_NAME=seal(/^html$/i);var EXPRESSIONS=Object.freeze({__proto__:null,MUSTACHE_EXPR,ERB_EXPR,TMPLIT_EXPR,DATA_ATTR,ARIA_ATTR,IS_ALLOWED_URI,IS_SCRIPT_OR_DATA,ATTR_WHITESPACE,DOCTYPE_NAME});const getGlobal=function(){return typeof window>"u"?null:window},_createTrustedTypesPolicy=function(i,_e){if(typeof i!="object"||typeof i.createPolicy!="function")return null;let pt=null;const Lt="data-tt-policy-suffix";_e&&_e.hasAttribute(Lt)&&(pt=_e.getAttribute(Lt));const Gt="dompurify"+(pt?"#"+pt:"");try{return i.createPolicy(Gt,{createHTML(Ct){return Ct},createScriptURL(Ct){return Ct}})}catch{return console.warn("TrustedTypes policy "+Gt+" could not be created."),null}};function createDOMPurify(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:getGlobal();const i=Cn=>createDOMPurify(Cn);if(i.version="3.0.8",i.removed=[],!a||!a.document||a.document.nodeType!==9)return i.isSupported=!1,i;let{document:_e}=a;const pt=_e,Lt=pt.currentScript,{DocumentFragment:Gt,HTMLTemplateElement:Ct,Node:Rt,Element:o,NodeFilter:it,NamedNodeMap:xt=a.NamedNodeMap||a.MozNamedAttrMap,HTMLFormElement:et,DOMParser:Et,trustedTypes:mt}=a,ut=o.prototype,ht=lookupGetter(ut,"cloneNode"),j=lookupGetter(ut,"nextSibling"),_=lookupGetter(ut,"childNodes"),rt=lookupGetter(ut,"parentNode");if(typeof Ct=="function"){const Cn=_e.createElement("template");Cn.content&&Cn.content.ownerDocument&&(_e=Cn.content.ownerDocument)}let tt,st="";const{implementation:ot,createNodeIterator:nt,createDocumentFragment:vt,getElementsByTagName:dt}=_e,{importNode:bt}=pt;let ft={};i.isSupported=typeof entries=="function"&&typeof rt=="function"&&ot&&ot.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:at,ERB_EXPR:yt,TMPLIT_EXPR:St,DATA_ATTR:_t,ARIA_ATTR:Mt,IS_SCRIPT_OR_DATA:Tt,ATTR_WHITESPACE:kt}=EXPRESSIONS;let{IS_ALLOWED_URI:wt}=EXPRESSIONS,ct=null;const It=addToSet({},[...html$1$1,...svg$1,...svgFilters,...mathMl$1,...text]);let At=null;const Ot=addToSet({},[...html$3,...svg,...mathMl,...xml$2]);let Pt=Object.seal(create$6(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),zt=null,Dt=null,Nt=!0,$t=!0,Ut=!1,Ht=!0,Vt=!1,Xt=!1,qt=!1,er=!1,lr=!1,Jt=!1,Yt=!1,rr=!0,jt=!1;const ar="user-content-";let sr=!0,Zt=!1,Kt={},or=null;const tr=addToSet({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let cr=null;const hr=addToSet({},["audio","video","img","source","image","track"]);let br=null;const Tr=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ir="http://www.w3.org/1998/Math/MathML",Ar="http://www.w3.org/2000/svg",_r="http://www.w3.org/1999/xhtml";let Er=_r,Rr=!1,zr=null;const Br=addToSet({},[Ir,Ar,_r],stringToString);let kr=null;const Nr=["application/xhtml+xml","text/html"],Qr="text/html";let sn=null,un=null;const qr=_e.createElement("form"),Xr=function(xn){return xn instanceof RegExp||xn instanceof Function},ln=function(){let xn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(un&&un===xn)){if((!xn||typeof xn!="object")&&(xn={}),xn=clone(xn),kr=Nr.indexOf(xn.PARSER_MEDIA_TYPE)===-1?Qr:xn.PARSER_MEDIA_TYPE,sn=kr==="application/xhtml+xml"?stringToString:stringToLowerCase,ct="ALLOWED_TAGS"in xn?addToSet({},xn.ALLOWED_TAGS,sn):It,At="ALLOWED_ATTR"in xn?addToSet({},xn.ALLOWED_ATTR,sn):Ot,zr="ALLOWED_NAMESPACES"in xn?addToSet({},xn.ALLOWED_NAMESPACES,stringToString):Br,br="ADD_URI_SAFE_ATTR"in xn?addToSet(clone(Tr),xn.ADD_URI_SAFE_ATTR,sn):Tr,cr="ADD_DATA_URI_TAGS"in xn?addToSet(clone(hr),xn.ADD_DATA_URI_TAGS,sn):hr,or="FORBID_CONTENTS"in xn?addToSet({},xn.FORBID_CONTENTS,sn):tr,zt="FORBID_TAGS"in xn?addToSet({},xn.FORBID_TAGS,sn):{},Dt="FORBID_ATTR"in xn?addToSet({},xn.FORBID_ATTR,sn):{},Kt="USE_PROFILES"in xn?xn.USE_PROFILES:!1,Nt=xn.ALLOW_ARIA_ATTR!==!1,$t=xn.ALLOW_DATA_ATTR!==!1,Ut=xn.ALLOW_UNKNOWN_PROTOCOLS||!1,Ht=xn.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Vt=xn.SAFE_FOR_TEMPLATES||!1,Xt=xn.WHOLE_DOCUMENT||!1,lr=xn.RETURN_DOM||!1,Jt=xn.RETURN_DOM_FRAGMENT||!1,Yt=xn.RETURN_TRUSTED_TYPE||!1,er=xn.FORCE_BODY||!1,rr=xn.SANITIZE_DOM!==!1,jt=xn.SANITIZE_NAMED_PROPS||!1,sr=xn.KEEP_CONTENT!==!1,Zt=xn.IN_PLACE||!1,wt=xn.ALLOWED_URI_REGEXP||IS_ALLOWED_URI,Er=xn.NAMESPACE||_r,Pt=xn.CUSTOM_ELEMENT_HANDLING||{},xn.CUSTOM_ELEMENT_HANDLING&&Xr(xn.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Pt.tagNameCheck=xn.CUSTOM_ELEMENT_HANDLING.tagNameCheck),xn.CUSTOM_ELEMENT_HANDLING&&Xr(xn.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Pt.attributeNameCheck=xn.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),xn.CUSTOM_ELEMENT_HANDLING&&typeof xn.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Pt.allowCustomizedBuiltInElements=xn.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Vt&&($t=!1),Jt&&(lr=!0),Kt&&(ct=addToSet({},text),At=[],Kt.html===!0&&(addToSet(ct,html$1$1),addToSet(At,html$3)),Kt.svg===!0&&(addToSet(ct,svg$1),addToSet(At,svg),addToSet(At,xml$2)),Kt.svgFilters===!0&&(addToSet(ct,svgFilters),addToSet(At,svg),addToSet(At,xml$2)),Kt.mathMl===!0&&(addToSet(ct,mathMl$1),addToSet(At,mathMl),addToSet(At,xml$2))),xn.ADD_TAGS&&(ct===It&&(ct=clone(ct)),addToSet(ct,xn.ADD_TAGS,sn)),xn.ADD_ATTR&&(At===Ot&&(At=clone(At)),addToSet(At,xn.ADD_ATTR,sn)),xn.ADD_URI_SAFE_ATTR&&addToSet(br,xn.ADD_URI_SAFE_ATTR,sn),xn.FORBID_CONTENTS&&(or===tr&&(or=clone(or)),addToSet(or,xn.FORBID_CONTENTS,sn)),sr&&(ct["#text"]=!0),Xt&&addToSet(ct,["html","head","body"]),ct.table&&(addToSet(ct,["tbody"]),delete zt.tbody),xn.TRUSTED_TYPES_POLICY){if(typeof xn.TRUSTED_TYPES_POLICY.createHTML!="function")throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof xn.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');tt=xn.TRUSTED_TYPES_POLICY,st=tt.createHTML("")}else tt===void 0&&(tt=_createTrustedTypesPolicy(mt,Lt)),tt!==null&&typeof st=="string"&&(st=tt.createHTML(""));freeze&&freeze(xn),un=xn}},mn=addToSet({},["mi","mo","mn","ms","mtext"]),pn=addToSet({},["foreignobject","desc","title","annotation-xml"]),En=addToSet({},["title","style","font","a","script"]),Jr=addToSet({},[...svg$1,...svgFilters,...svgDisallowed]),Or=addToSet({},[...mathMl$1,...mathMlDisallowed]),Ur=function(xn){let fn=rt(xn);(!fn||!fn.tagName)&&(fn={namespaceURI:Er,tagName:"template"});const bn=stringToLowerCase(xn.tagName),Un=stringToLowerCase(fn.tagName);return zr[xn.namespaceURI]?xn.namespaceURI===Ar?fn.namespaceURI===_r?bn==="svg":fn.namespaceURI===Ir?bn==="svg"&&(Un==="annotation-xml"||mn[Un]):Boolean(Jr[bn]):xn.namespaceURI===Ir?fn.namespaceURI===_r?bn==="math":fn.namespaceURI===Ar?bn==="math"&&pn[Un]:Boolean(Or[bn]):xn.namespaceURI===_r?fn.namespaceURI===Ar&&!pn[Un]||fn.namespaceURI===Ir&&!mn[Un]?!1:!Or[bn]&&(En[bn]||!Jr[bn]):!!(kr==="application/xhtml+xml"&&zr[xn.namespaceURI]):!1},jr=function(xn){arrayPush(i.removed,{element:xn});try{xn.parentNode.removeChild(xn)}catch{xn.remove()}},Gr=function(xn,fn){try{arrayPush(i.removed,{attribute:fn.getAttributeNode(xn),from:fn})}catch{arrayPush(i.removed,{attribute:null,from:fn})}if(fn.removeAttribute(xn),xn==="is"&&!At[xn])if(lr||Jt)try{jr(fn)}catch{}else try{fn.setAttribute(xn,"")}catch{}},wr=function(xn){let fn=null,bn=null;if(er)xn=""+xn;else{const yn=stringMatch(xn,/^[\r\n\t ]+/);bn=yn&&yn[0]}kr==="application/xhtml+xml"&&Er===_r&&(xn=''+xn+"");const Un=tt?tt.createHTML(xn):xn;if(Er===_r)try{fn=new Et().parseFromString(Un,kr)}catch{}if(!fn||!fn.documentElement){fn=ot.createDocument(Er,"template",null);try{fn.documentElement.innerHTML=Rr?st:Un}catch{}}const _i=fn.body||fn.documentElement;return xn&&bn&&_i.insertBefore(_e.createTextNode(bn),_i.childNodes[0]||null),Er===_r?dt.call(fn,Xt?"html":"body")[0]:Xt?fn.documentElement:_i},vr=function(xn){return nt.call(xn.ownerDocument||xn,xn,it.SHOW_ELEMENT|it.SHOW_COMMENT|it.SHOW_TEXT,null)},Dr=function(xn){return xn instanceof et&&(typeof xn.nodeName!="string"||typeof xn.textContent!="string"||typeof xn.removeChild!="function"||!(xn.attributes instanceof xt)||typeof xn.removeAttribute!="function"||typeof xn.setAttribute!="function"||typeof xn.namespaceURI!="string"||typeof xn.insertBefore!="function"||typeof xn.hasChildNodes!="function")},Sr=function(xn){return typeof Rt=="function"&&xn instanceof Rt},ur=function(xn,fn,bn){ft[xn]&&arrayForEach(ft[xn],Un=>{Un.call(i,fn,bn,un)})},xr=function(xn){let fn=null;if(ur("beforeSanitizeElements",xn,null),Dr(xn))return jr(xn),!0;const bn=sn(xn.nodeName);if(ur("uponSanitizeElement",xn,{tagName:bn,allowedTags:ct}),xn.hasChildNodes()&&!Sr(xn.firstElementChild)&®ExpTest(/<[/\w]/g,xn.innerHTML)&®ExpTest(/<[/\w]/g,xn.textContent))return jr(xn),!0;if(!ct[bn]||zt[bn]){if(!zt[bn]&&Vr(bn)&&(Pt.tagNameCheck instanceof RegExp&®ExpTest(Pt.tagNameCheck,bn)||Pt.tagNameCheck instanceof Function&&Pt.tagNameCheck(bn)))return!1;if(sr&&!or[bn]){const Un=rt(xn)||xn.parentNode,_i=_(xn)||xn.childNodes;if(_i&&Un){const yn=_i.length;for(let Kn=yn-1;Kn>=0;--Kn)Un.insertBefore(ht(_i[Kn],!0),j(xn))}}return jr(xn),!0}return xn instanceof o&&!Ur(xn)||(bn==="noscript"||bn==="noembed"||bn==="noframes")&®ExpTest(/<\/no(script|embed|frames)/i,xn.innerHTML)?(jr(xn),!0):(Vt&&xn.nodeType===3&&(fn=xn.textContent,arrayForEach([at,yt,St],Un=>{fn=stringReplace(fn,Un," ")}),xn.textContent!==fn&&(arrayPush(i.removed,{element:xn.cloneNode()}),xn.textContent=fn)),ur("afterSanitizeElements",xn,null),!1)},Pr=function(xn,fn,bn){if(rr&&(fn==="id"||fn==="name")&&(bn in _e||bn in qr))return!1;if(!($t&&!Dt[fn]&®ExpTest(_t,fn))){if(!(Nt&®ExpTest(Mt,fn))){if(!At[fn]||Dt[fn]){if(!(Vr(xn)&&(Pt.tagNameCheck instanceof RegExp&®ExpTest(Pt.tagNameCheck,xn)||Pt.tagNameCheck instanceof Function&&Pt.tagNameCheck(xn))&&(Pt.attributeNameCheck instanceof RegExp&®ExpTest(Pt.attributeNameCheck,fn)||Pt.attributeNameCheck instanceof Function&&Pt.attributeNameCheck(fn))||fn==="is"&&Pt.allowCustomizedBuiltInElements&&(Pt.tagNameCheck instanceof RegExp&®ExpTest(Pt.tagNameCheck,bn)||Pt.tagNameCheck instanceof Function&&Pt.tagNameCheck(bn))))return!1}else if(!br[fn]){if(!regExpTest(wt,stringReplace(bn,kt,""))){if(!((fn==="src"||fn==="xlink:href"||fn==="href")&&xn!=="script"&&stringIndexOf(bn,"data:")===0&&cr[xn])){if(!(Ut&&!regExpTest(Tt,stringReplace(bn,kt,"")))){if(bn)return!1}}}}}}return!0},Vr=function(xn){return xn.indexOf("-")>0},en=function(xn){ur("beforeSanitizeAttributes",xn,null);const{attributes:fn}=xn;if(!fn)return;const bn={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:At};let Un=fn.length;for(;Un--;){const _i=fn[Un],{name:yn,namespaceURI:Kn,value:Jn}=_i,so=sn(yn);let ba=yn==="value"?Jn:stringTrim(Jn);if(bn.attrName=so,bn.attrValue=ba,bn.keepAttr=!0,bn.forceKeepAttr=void 0,ur("uponSanitizeAttribute",xn,bn),ba=bn.attrValue,bn.forceKeepAttr||(Gr(yn,xn),!bn.keepAttr))continue;if(!Ht&®ExpTest(/\/>/i,ba)){Gr(yn,xn);continue}Vt&&arrayForEach([at,yt,St],hn=>{ba=stringReplace(ba,hn," ")});const An=sn(xn.nodeName);if(Pr(An,so,ba)){if(jt&&(so==="id"||so==="name")&&(Gr(yn,xn),ba=ar+ba),tt&&typeof mt=="object"&&typeof mt.getAttributeType=="function"&&!Kn)switch(mt.getAttributeType(An,so)){case"TrustedHTML":{ba=tt.createHTML(ba);break}case"TrustedScriptURL":{ba=tt.createScriptURL(ba);break}}try{Kn?xn.setAttributeNS(Kn,yn,ba):xn.setAttribute(yn,ba),arrayPop(i.removed)}catch{}}}ur("afterSanitizeAttributes",xn,null)},rn=function Cn(xn){let fn=null;const bn=vr(xn);for(ur("beforeSanitizeShadowDOM",xn,null);fn=bn.nextNode();)ur("uponSanitizeShadowNode",fn,null),!xr(fn)&&(fn.content instanceof Gt&&Cn(fn.content),en(fn));ur("afterSanitizeShadowDOM",xn,null)};return i.sanitize=function(Cn){let xn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fn=null,bn=null,Un=null,_i=null;if(Rr=!Cn,Rr&&(Cn=""),typeof Cn!="string"&&!Sr(Cn))if(typeof Cn.toString=="function"){if(Cn=Cn.toString(),typeof Cn!="string")throw typeErrorCreate("dirty is not a string, aborting")}else throw typeErrorCreate("toString is not a function");if(!i.isSupported)return Cn;if(qt||ln(xn),i.removed=[],typeof Cn=="string"&&(Zt=!1),Zt){if(Cn.nodeName){const Jn=sn(Cn.nodeName);if(!ct[Jn]||zt[Jn])throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place")}}else if(Cn instanceof Rt)fn=wr(""),bn=fn.ownerDocument.importNode(Cn,!0),bn.nodeType===1&&bn.nodeName==="BODY"||bn.nodeName==="HTML"?fn=bn:fn.appendChild(bn);else{if(!lr&&!Vt&&!Xt&&Cn.indexOf("<")===-1)return tt&&Yt?tt.createHTML(Cn):Cn;if(fn=wr(Cn),!fn)return lr?null:Yt?st:""}fn&&er&&jr(fn.firstChild);const yn=vr(Zt?Cn:fn);for(;Un=yn.nextNode();)xr(Un)||(Un.content instanceof Gt&&rn(Un.content),en(Un));if(Zt)return Cn;if(lr){if(Jt)for(_i=vt.call(fn.ownerDocument);fn.firstChild;)_i.appendChild(fn.firstChild);else _i=fn;return(At.shadowroot||At.shadowrootmode)&&(_i=bt.call(pt,_i,!0)),_i}let Kn=Xt?fn.outerHTML:fn.innerHTML;return Xt&&ct["!doctype"]&&fn.ownerDocument&&fn.ownerDocument.doctype&&fn.ownerDocument.doctype.name&®ExpTest(DOCTYPE_NAME,fn.ownerDocument.doctype.name)&&(Kn=" -`+Kn),Vt&&arrayForEach([at,yt,St],Jn=>{Kn=stringReplace(Kn,Jn," ")}),tt&&Yt?tt.createHTML(Kn):Kn},i.setConfig=function(){let Cn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ln(Cn),qt=!0},i.clearConfig=function(){un=null,qt=!1},i.isValidAttribute=function(Cn,xn,fn){un||ln({});const bn=sn(Cn),Un=sn(xn);return Pr(bn,Un,fn)},i.addHook=function(Cn,xn){typeof xn=="function"&&(ft[Cn]=ft[Cn]||[],arrayPush(ft[Cn],xn))},i.removeHook=function(Cn){if(ft[Cn])return arrayPop(ft[Cn])},i.removeHooks=function(Cn){ft[Cn]&&(ft[Cn]=[])},i.removeAllHooks=function(){ft={}},i}var purify=createDOMPurify();function _objectWithoutPropertiesLoose(a,i){if(a==null)return{};var _e={},pt=Object.keys(a),Lt,Gt;for(Gt=0;Gt=0)&&(_e[Lt]=a[Lt]);return _e}function _objectWithoutProperties(a,i){if(a==null)return{};var _e=_objectWithoutPropertiesLoose(a,i),pt,Lt;if(Object.getOwnPropertySymbols){var Gt=Object.getOwnPropertySymbols(a);for(Lt=0;Lt=0)&&Object.prototype.propertyIsEnumerable.call(a,pt)&&(_e[pt]=a[pt])}return _e}function _arrayLikeToArray(a,i){(i==null||i>a.length)&&(i=a.length);for(var _e=0,pt=new Array(i);_e=4)return[a[0],a[1],a[2],a[3],"".concat(a[0],".").concat(a[1]),"".concat(a[0],".").concat(a[2]),"".concat(a[0],".").concat(a[3]),"".concat(a[1],".").concat(a[0]),"".concat(a[1],".").concat(a[2]),"".concat(a[1],".").concat(a[3]),"".concat(a[2],".").concat(a[0]),"".concat(a[2],".").concat(a[1]),"".concat(a[2],".").concat(a[3]),"".concat(a[3],".").concat(a[0]),"".concat(a[3],".").concat(a[1]),"".concat(a[3],".").concat(a[2]),"".concat(a[0],".").concat(a[1],".").concat(a[2]),"".concat(a[0],".").concat(a[1],".").concat(a[3]),"".concat(a[0],".").concat(a[2],".").concat(a[1]),"".concat(a[0],".").concat(a[2],".").concat(a[3]),"".concat(a[0],".").concat(a[3],".").concat(a[1]),"".concat(a[0],".").concat(a[3],".").concat(a[2]),"".concat(a[1],".").concat(a[0],".").concat(a[2]),"".concat(a[1],".").concat(a[0],".").concat(a[3]),"".concat(a[1],".").concat(a[2],".").concat(a[0]),"".concat(a[1],".").concat(a[2],".").concat(a[3]),"".concat(a[1],".").concat(a[3],".").concat(a[0]),"".concat(a[1],".").concat(a[3],".").concat(a[2]),"".concat(a[2],".").concat(a[0],".").concat(a[1]),"".concat(a[2],".").concat(a[0],".").concat(a[3]),"".concat(a[2],".").concat(a[1],".").concat(a[0]),"".concat(a[2],".").concat(a[1],".").concat(a[3]),"".concat(a[2],".").concat(a[3],".").concat(a[0]),"".concat(a[2],".").concat(a[3],".").concat(a[1]),"".concat(a[3],".").concat(a[0],".").concat(a[1]),"".concat(a[3],".").concat(a[0],".").concat(a[2]),"".concat(a[3],".").concat(a[1],".").concat(a[0]),"".concat(a[3],".").concat(a[1],".").concat(a[2]),"".concat(a[3],".").concat(a[2],".").concat(a[0]),"".concat(a[3],".").concat(a[2],".").concat(a[1]),"".concat(a[0],".").concat(a[1],".").concat(a[2],".").concat(a[3]),"".concat(a[0],".").concat(a[1],".").concat(a[3],".").concat(a[2]),"".concat(a[0],".").concat(a[2],".").concat(a[1],".").concat(a[3]),"".concat(a[0],".").concat(a[2],".").concat(a[3],".").concat(a[1]),"".concat(a[0],".").concat(a[3],".").concat(a[1],".").concat(a[2]),"".concat(a[0],".").concat(a[3],".").concat(a[2],".").concat(a[1]),"".concat(a[1],".").concat(a[0],".").concat(a[2],".").concat(a[3]),"".concat(a[1],".").concat(a[0],".").concat(a[3],".").concat(a[2]),"".concat(a[1],".").concat(a[2],".").concat(a[0],".").concat(a[3]),"".concat(a[1],".").concat(a[2],".").concat(a[3],".").concat(a[0]),"".concat(a[1],".").concat(a[3],".").concat(a[0],".").concat(a[2]),"".concat(a[1],".").concat(a[3],".").concat(a[2],".").concat(a[0]),"".concat(a[2],".").concat(a[0],".").concat(a[1],".").concat(a[3]),"".concat(a[2],".").concat(a[0],".").concat(a[3],".").concat(a[1]),"".concat(a[2],".").concat(a[1],".").concat(a[0],".").concat(a[3]),"".concat(a[2],".").concat(a[1],".").concat(a[3],".").concat(a[0]),"".concat(a[2],".").concat(a[3],".").concat(a[0],".").concat(a[1]),"".concat(a[2],".").concat(a[3],".").concat(a[1],".").concat(a[0]),"".concat(a[3],".").concat(a[0],".").concat(a[1],".").concat(a[2]),"".concat(a[3],".").concat(a[0],".").concat(a[2],".").concat(a[1]),"".concat(a[3],".").concat(a[1],".").concat(a[0],".").concat(a[2]),"".concat(a[3],".").concat(a[1],".").concat(a[2],".").concat(a[0]),"".concat(a[3],".").concat(a[2],".").concat(a[0],".").concat(a[1]),"".concat(a[3],".").concat(a[2],".").concat(a[1],".").concat(a[0])]}var classNameCombinations={};function getClassNameCombinations(a){if(a.length===0||a.length===1)return a;var i=a.join(".");return classNameCombinations[i]||(classNameCombinations[i]=powerSetPermutations(a)),classNameCombinations[i]}function createStyleObject(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_e=arguments.length>2?arguments[2]:void 0,pt=a.filter(function(Gt){return Gt!=="token"}),Lt=getClassNameCombinations(pt);return Lt.reduce(function(Gt,Ct){return _objectSpread$1(_objectSpread$1({},Gt),_e[Ct])},i)}function createClassNameString(a){return a.join(" ")}function createChildren(a,i){var _e=0;return function(pt){return _e+=1,pt.map(function(Lt,Gt){return createElement({node:Lt,stylesheet:a,useInlineStyles:i,key:"code-segment-".concat(_e,"-").concat(Gt)})})}}function createElement(a){var i=a.node,_e=a.stylesheet,pt=a.style,Lt=pt===void 0?{}:pt,Gt=a.useInlineStyles,Ct=a.key,Rt=i.properties,o=i.type,it=i.tagName,xt=i.value;if(o==="text")return xt;if(it){var et=createChildren(_e,Gt),Et;if(!Gt)Et=_objectSpread$1(_objectSpread$1({},Rt),{},{className:createClassNameString(Rt.className)});else{var mt=Object.keys(_e).reduce(function(_,rt){return rt.split(".").forEach(function(tt){_.includes(tt)||_.push(tt)}),_},[]),ut=Rt.className&&Rt.className.includes("token")?["token"]:[],ht=Rt.className&&ut.concat(Rt.className.filter(function(_){return!mt.includes(_)}));Et=_objectSpread$1(_objectSpread$1({},Rt),{},{className:createClassNameString(ht)||void 0,style:createStyleObject(Rt.className,Object.assign({},Rt.style,Lt),_e)})}var j=et(i.children);return React.createElement(it,_extends({key:Ct},Et),j)}}const checkForListedLanguage=function(a,i){var _e=a.listLanguages();return _e.indexOf(i)!==-1};var _excluded=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function ownKeys(a,i){var _e=Object.keys(a);if(Object.getOwnPropertySymbols){var pt=Object.getOwnPropertySymbols(a);i&&(pt=pt.filter(function(Lt){return Object.getOwnPropertyDescriptor(a,Lt).enumerable})),_e.push.apply(_e,pt)}return _e}function _objectSpread(a){for(var i=1;i=Mo)return fr;var fs=an-H0(Fn);if(fs<1)return Fn;var Ms=ns?Lp(ns,0,fs).join(""):fr.slice(0,fs);if(no===_e)return Ms+Fn;if(ns&&(fs+=Ms.length-fs),Wx(no)){if(fr.slice(fs).search(no)){var Il,Sl=Ms;for(no.global||(no=e0(no.source,hp(Cn.exec(no))+"g")),no.lastIndex=0;Il=no.exec(Sl);)var $l=Il.index;Ms=Ms.slice(0,$l===_e?fs:$l)}}else if(fr.indexOf(vu(no),fs)!=fs){var hu=Ms.lastIndexOf(no);hu>-1&&(Ms=Ms.slice(0,hu))}return Ms+Fn}function YA(fr){return fr=hp(fr),fr&&ln.test(fr)?fr.replace(en,g1):fr}var XA=Im(function(fr,Cr,an){return fr+(an?" ":"")+Cr.toUpperCase()}),Qx=Uy("toUpperCase");function D2(fr,Cr,an){return fr=hp(fr),Cr=an?_e:Cr,Cr===_e?oy(fr)?ly(fr):Fm(fr):fr.match(Cr)||[]}var Ny=Rs(function(fr,Cr){try{return _s(fr,_e,Cr)}catch(an){return S2(an)?an:new Su(an)}}),zE=cm(function(fr,Cr){return Cs(Cr,function(an){an=Qp(an),Ov(fr,an,T2(fr[an],fr))}),fr});function qx(fr){var Cr=fr==null?0:fr.length,an=nr();return fr=Cr?Zl(fr,function(Fn){if(typeof Fn[1]!="function")throw new vv(Ct);return[an(Fn[0]),Fn[1]]}):[],Rs(function(Fn){for(var no=-1;++nowt)return[];var an=At,Fn=vp(fr,At);Cr=nr(Cr),fr-=At;for(var no=kp(Fn,Cr);++an0||Cr<0)?new Lu(an):(fr<0?an=an.takeRight(-fr):fr&&(an=an.drop(fr)),Cr!==_e&&(Cr=Ju(Cr),an=Cr<0?an.dropRight(-Cr):an.take(Cr-fr)),an)},Lu.prototype.takeRightWhile=function(fr){return this.reverse().takeWhile(fr).reverse()},Lu.prototype.toArray=function(){return this.take(At)},Sn(Lu.prototype,function(fr,Cr){var an=/^(?:filter|find|map|reject)|While$/.test(Cr),Fn=/^(?:head|last)$/.test(Cr),no=Ao[Fn?"take"+(Cr=="last"?"Right":""):Cr],Mo=Fn||/^find/.test(Cr);no&&(Ao.prototype[Cr]=function(){var ns=this.__wrapped__,fs=Fn?[1]:arguments,Ms=ns instanceof Lu,Il=fs[0],Sl=Ms||Wu(ns),$l=function(rp){var ip=no.apply(Ao,ju([rp],fs));return Fn&&hu?ip[0]:ip};Sl&&an&&typeof Il=="function"&&Il.length!=1&&(Ms=Sl=!1);var hu=this.__chain__,lu=!!this.__actions__.length,Ru=Mo&&!hu,mu=Ms&&!lu;if(!Mo&&Sl){ns=mu?ns:new Lu(this);var Mu=fr.apply(ns,fs);return Mu.__actions__.push({func:mx,args:[$l],thisArg:_e}),new Mp(Mu,hu)}return Ru&&mu?fr.apply(this,fs):(Mu=this.thru($l),Ru?Fn?Mu.value()[0]:Mu.value():Mu)})}),Cs(["pop","push","shift","sort","splice","unshift"],function(fr){var Cr=p0[fr],an=/^(?:push|sort|unshift)$/.test(fr)?"tap":"thru",Fn=/^(?:pop|shift)$/.test(fr);Ao.prototype[fr]=function(){var no=arguments;if(Fn&&!this.__chain__){var Mo=this.value();return Cr.apply(Wu(Mo)?Mo:[],no)}return this[an](function(ns){return Cr.apply(Wu(ns)?ns:[],no)})}}),Sn(Lu.prototype,function(fr,Cr){var an=Ao[Cr];if(an){var Fn=an.name+"";ep.call(Sp,Fn)||(Sp[Fn]=[]),Sp[Fn].push({name:Cr,func:an})}}),Sp[F0(_e,_).name]=[{name:"wrapper",func:_e}],Lu.prototype.clone=C1,Lu.prototype.reverse=_m,Lu.prototype.value=Z0,Ao.prototype.at=Ay,Ao.prototype.chain=yx,Ao.prototype.commit=CT,Ao.prototype.next=RT,Ao.prototype.plant=IT,Ao.prototype.reverse=kT,Ao.prototype.toJSON=Ao.prototype.valueOf=Ao.prototype.value=DT,Ao.prototype.first=Ao.prototype.head,qu&&(Ao.prototype[qu]=MT),Ao},m1=h0();To?((To.exports=m1)._=m1,Fo._=m1):yo._=m1}).call(commonjsGlobal)})(lodash,lodashExports);/*! @license DOMPurify 3.0.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.8/LICENSE */const{entries,setPrototypeOf,isFrozen,getPrototypeOf,getOwnPropertyDescriptor}=Object;let{freeze,seal,create:create$6}=Object,{apply,construct}=typeof Reflect<"u"&&Reflect;freeze||(freeze=function(i){return i});seal||(seal=function(i){return i});apply||(apply=function(i,_e,pt){return i.apply(_e,pt)});construct||(construct=function(i,_e){return new i(..._e)});const arrayForEach=unapply(Array.prototype.forEach),arrayPop=unapply(Array.prototype.pop),arrayPush=unapply(Array.prototype.push),stringToLowerCase=unapply(String.prototype.toLowerCase),stringToString=unapply(String.prototype.toString),stringMatch=unapply(String.prototype.match),stringReplace=unapply(String.prototype.replace),stringIndexOf=unapply(String.prototype.indexOf),stringTrim=unapply(String.prototype.trim),regExpTest=unapply(RegExp.prototype.test),typeErrorCreate=unconstruct(TypeError);function unapply(a){return function(i){for(var _e=arguments.length,pt=new Array(_e>1?_e-1:0),Lt=1;Lt<_e;Lt++)pt[Lt-1]=arguments[Lt];return apply(a,i,pt)}}function unconstruct(a){return function(){for(var i=arguments.length,_e=new Array(i),pt=0;pt2&&arguments[2]!==void 0?arguments[2]:stringToLowerCase;setPrototypeOf&&setPrototypeOf(a,null);let pt=i.length;for(;pt--;){let Lt=i[pt];if(typeof Lt=="string"){const Gt=_e(Lt);Gt!==Lt&&(isFrozen(i)||(i[pt]=Gt),Lt=Gt)}a[Lt]=!0}return a}function cleanArray(a){for(let i=0;i/gm),TMPLIT_EXPR=seal(/\${[\w\W]*}/gm),DATA_ATTR=seal(/^data-[\-\w.\u00B7-\uFFFF]/),ARIA_ATTR=seal(/^aria-[\-\w]+$/),IS_ALLOWED_URI=seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IS_SCRIPT_OR_DATA=seal(/^(?:\w+script|data):/i),ATTR_WHITESPACE=seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),DOCTYPE_NAME=seal(/^html$/i);var EXPRESSIONS=Object.freeze({__proto__:null,MUSTACHE_EXPR,ERB_EXPR,TMPLIT_EXPR,DATA_ATTR,ARIA_ATTR,IS_ALLOWED_URI,IS_SCRIPT_OR_DATA,ATTR_WHITESPACE,DOCTYPE_NAME});const getGlobal=function(){return typeof window>"u"?null:window},_createTrustedTypesPolicy=function(i,_e){if(typeof i!="object"||typeof i.createPolicy!="function")return null;let pt=null;const Lt="data-tt-policy-suffix";_e&&_e.hasAttribute(Lt)&&(pt=_e.getAttribute(Lt));const Gt="dompurify"+(pt?"#"+pt:"");try{return i.createPolicy(Gt,{createHTML(Ct){return Ct},createScriptURL(Ct){return Ct}})}catch{return console.warn("TrustedTypes policy "+Gt+" could not be created."),null}};function createDOMPurify(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:getGlobal();const i=Cn=>createDOMPurify(Cn);if(i.version="3.0.8",i.removed=[],!a||!a.document||a.document.nodeType!==9)return i.isSupported=!1,i;let{document:_e}=a;const pt=_e,Lt=pt.currentScript,{DocumentFragment:Gt,HTMLTemplateElement:Ct,Node:Rt,Element:o,NodeFilter:it,NamedNodeMap:xt=a.NamedNodeMap||a.MozNamedAttrMap,HTMLFormElement:et,DOMParser:Tt,trustedTypes:yt}=a,ut=o.prototype,ht=lookupGetter(ut,"cloneNode"),j=lookupGetter(ut,"nextSibling"),_=lookupGetter(ut,"childNodes"),rt=lookupGetter(ut,"parentNode");if(typeof Ct=="function"){const Cn=_e.createElement("template");Cn.content&&Cn.content.ownerDocument&&(_e=Cn.content.ownerDocument)}let tt,st="";const{implementation:ot,createNodeIterator:nt,createDocumentFragment:vt,getElementsByTagName:dt}=_e,{importNode:bt}=pt;let ft={};i.isSupported=typeof entries=="function"&&typeof rt=="function"&&ot&&ot.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:at,ERB_EXPR:mt,TMPLIT_EXPR:St,DATA_ATTR:_t,ARIA_ATTR:Mt,IS_SCRIPT_OR_DATA:Et,ATTR_WHITESPACE:kt}=EXPRESSIONS;let{IS_ALLOWED_URI:wt}=EXPRESSIONS,ct=null;const It=addToSet({},[...html$1$1,...svg$1,...svgFilters,...mathMl$1,...text]);let At=null;const Ot=addToSet({},[...html$3,...svg,...mathMl,...xml$2]);let Pt=Object.seal(create$6(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),zt=null,Dt=null,Nt=!0,$t=!0,Ut=!1,Ht=!0,Vt=!1,Xt=!1,qt=!1,er=!1,lr=!1,Jt=!1,Yt=!1,rr=!0,jt=!1;const ar="user-content-";let sr=!0,Zt=!1,Kt={},or=null;const tr=addToSet({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let cr=null;const mr=addToSet({},["audio","video","img","source","image","track"]);let Ar=null;const br=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ir="http://www.w3.org/1998/Math/MathML",Tr="http://www.w3.org/2000/svg",_r="http://www.w3.org/1999/xhtml";let Er=_r,Rr=!1,zr=null;const Or=addToSet({},[Ir,Tr,_r],stringToString);let kr=null;const Nr=["application/xhtml+xml","text/html"],Qr="text/html";let sn=null,un=null;const en=_e.createElement("form"),Xr=function(xn){return xn instanceof RegExp||xn instanceof Function},ln=function(){let xn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(un&&un===xn)){if((!xn||typeof xn!="object")&&(xn={}),xn=clone(xn),kr=Nr.indexOf(xn.PARSER_MEDIA_TYPE)===-1?Qr:xn.PARSER_MEDIA_TYPE,sn=kr==="application/xhtml+xml"?stringToString:stringToLowerCase,ct="ALLOWED_TAGS"in xn?addToSet({},xn.ALLOWED_TAGS,sn):It,At="ALLOWED_ATTR"in xn?addToSet({},xn.ALLOWED_ATTR,sn):Ot,zr="ALLOWED_NAMESPACES"in xn?addToSet({},xn.ALLOWED_NAMESPACES,stringToString):Or,Ar="ADD_URI_SAFE_ATTR"in xn?addToSet(clone(br),xn.ADD_URI_SAFE_ATTR,sn):br,cr="ADD_DATA_URI_TAGS"in xn?addToSet(clone(mr),xn.ADD_DATA_URI_TAGS,sn):mr,or="FORBID_CONTENTS"in xn?addToSet({},xn.FORBID_CONTENTS,sn):tr,zt="FORBID_TAGS"in xn?addToSet({},xn.FORBID_TAGS,sn):{},Dt="FORBID_ATTR"in xn?addToSet({},xn.FORBID_ATTR,sn):{},Kt="USE_PROFILES"in xn?xn.USE_PROFILES:!1,Nt=xn.ALLOW_ARIA_ATTR!==!1,$t=xn.ALLOW_DATA_ATTR!==!1,Ut=xn.ALLOW_UNKNOWN_PROTOCOLS||!1,Ht=xn.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Vt=xn.SAFE_FOR_TEMPLATES||!1,Xt=xn.WHOLE_DOCUMENT||!1,lr=xn.RETURN_DOM||!1,Jt=xn.RETURN_DOM_FRAGMENT||!1,Yt=xn.RETURN_TRUSTED_TYPE||!1,er=xn.FORCE_BODY||!1,rr=xn.SANITIZE_DOM!==!1,jt=xn.SANITIZE_NAMED_PROPS||!1,sr=xn.KEEP_CONTENT!==!1,Zt=xn.IN_PLACE||!1,wt=xn.ALLOWED_URI_REGEXP||IS_ALLOWED_URI,Er=xn.NAMESPACE||_r,Pt=xn.CUSTOM_ELEMENT_HANDLING||{},xn.CUSTOM_ELEMENT_HANDLING&&Xr(xn.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Pt.tagNameCheck=xn.CUSTOM_ELEMENT_HANDLING.tagNameCheck),xn.CUSTOM_ELEMENT_HANDLING&&Xr(xn.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Pt.attributeNameCheck=xn.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),xn.CUSTOM_ELEMENT_HANDLING&&typeof xn.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Pt.allowCustomizedBuiltInElements=xn.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Vt&&($t=!1),Jt&&(lr=!0),Kt&&(ct=addToSet({},text),At=[],Kt.html===!0&&(addToSet(ct,html$1$1),addToSet(At,html$3)),Kt.svg===!0&&(addToSet(ct,svg$1),addToSet(At,svg),addToSet(At,xml$2)),Kt.svgFilters===!0&&(addToSet(ct,svgFilters),addToSet(At,svg),addToSet(At,xml$2)),Kt.mathMl===!0&&(addToSet(ct,mathMl$1),addToSet(At,mathMl),addToSet(At,xml$2))),xn.ADD_TAGS&&(ct===It&&(ct=clone(ct)),addToSet(ct,xn.ADD_TAGS,sn)),xn.ADD_ATTR&&(At===Ot&&(At=clone(At)),addToSet(At,xn.ADD_ATTR,sn)),xn.ADD_URI_SAFE_ATTR&&addToSet(Ar,xn.ADD_URI_SAFE_ATTR,sn),xn.FORBID_CONTENTS&&(or===tr&&(or=clone(or)),addToSet(or,xn.FORBID_CONTENTS,sn)),sr&&(ct["#text"]=!0),Xt&&addToSet(ct,["html","head","body"]),ct.table&&(addToSet(ct,["tbody"]),delete zt.tbody),xn.TRUSTED_TYPES_POLICY){if(typeof xn.TRUSTED_TYPES_POLICY.createHTML!="function")throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof xn.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');tt=xn.TRUSTED_TYPES_POLICY,st=tt.createHTML("")}else tt===void 0&&(tt=_createTrustedTypesPolicy(yt,Lt)),tt!==null&&typeof st=="string"&&(st=tt.createHTML(""));freeze&&freeze(xn),un=xn}},mn=addToSet({},["mi","mo","mn","ms","mtext"]),pn=addToSet({},["foreignobject","desc","title","annotation-xml"]),Tn=addToSet({},["title","style","font","a","script"]),Zr=addToSet({},[...svg$1,...svgFilters,...svgDisallowed]),Fr=addToSet({},[...mathMl$1,...mathMlDisallowed]),Ur=function(xn){let fn=rt(xn);(!fn||!fn.tagName)&&(fn={namespaceURI:Er,tagName:"template"});const bn=stringToLowerCase(xn.tagName),Un=stringToLowerCase(fn.tagName);return zr[xn.namespaceURI]?xn.namespaceURI===Tr?fn.namespaceURI===_r?bn==="svg":fn.namespaceURI===Ir?bn==="svg"&&(Un==="annotation-xml"||mn[Un]):Boolean(Zr[bn]):xn.namespaceURI===Ir?fn.namespaceURI===_r?bn==="math":fn.namespaceURI===Tr?bn==="math"&&pn[Un]:Boolean(Fr[bn]):xn.namespaceURI===_r?fn.namespaceURI===Tr&&!pn[Un]||fn.namespaceURI===Ir&&!mn[Un]?!1:!Fr[bn]&&(Tn[bn]||!Zr[bn]):!!(kr==="application/xhtml+xml"&&zr[xn.namespaceURI]):!1},Wr=function(xn){arrayPush(i.removed,{element:xn});try{xn.parentNode.removeChild(xn)}catch{xn.remove()}},Gr=function(xn,fn){try{arrayPush(i.removed,{attribute:fn.getAttributeNode(xn),from:fn})}catch{arrayPush(i.removed,{attribute:null,from:fn})}if(fn.removeAttribute(xn),xn==="is"&&!At[xn])if(lr||Jt)try{Wr(fn)}catch{}else try{fn.setAttribute(xn,"")}catch{}},wr=function(xn){let fn=null,bn=null;if(er)xn=""+xn;else{const yn=stringMatch(xn,/^[\r\n\t ]+/);bn=yn&&yn[0]}kr==="application/xhtml+xml"&&Er===_r&&(xn=''+xn+"");const Un=tt?tt.createHTML(xn):xn;if(Er===_r)try{fn=new Tt().parseFromString(Un,kr)}catch{}if(!fn||!fn.documentElement){fn=ot.createDocument(Er,"template",null);try{fn.documentElement.innerHTML=Rr?st:Un}catch{}}const _i=fn.body||fn.documentElement;return xn&&bn&&_i.insertBefore(_e.createTextNode(bn),_i.childNodes[0]||null),Er===_r?dt.call(fn,Xt?"html":"body")[0]:Xt?fn.documentElement:_i},pr=function(xn){return nt.call(xn.ownerDocument||xn,xn,it.SHOW_ELEMENT|it.SHOW_COMMENT|it.SHOW_TEXT,null)},Dr=function(xn){return xn instanceof et&&(typeof xn.nodeName!="string"||typeof xn.textContent!="string"||typeof xn.removeChild!="function"||!(xn.attributes instanceof xt)||typeof xn.removeAttribute!="function"||typeof xn.setAttribute!="function"||typeof xn.namespaceURI!="string"||typeof xn.insertBefore!="function"||typeof xn.hasChildNodes!="function")},Sr=function(xn){return typeof Rt=="function"&&xn instanceof Rt},ur=function(xn,fn,bn){ft[xn]&&arrayForEach(ft[xn],Un=>{Un.call(i,fn,bn,un)})},xr=function(xn){let fn=null;if(ur("beforeSanitizeElements",xn,null),Dr(xn))return Wr(xn),!0;const bn=sn(xn.nodeName);if(ur("uponSanitizeElement",xn,{tagName:bn,allowedTags:ct}),xn.hasChildNodes()&&!Sr(xn.firstElementChild)&®ExpTest(/<[/\w]/g,xn.innerHTML)&®ExpTest(/<[/\w]/g,xn.textContent))return Wr(xn),!0;if(!ct[bn]||zt[bn]){if(!zt[bn]&&Vr(bn)&&(Pt.tagNameCheck instanceof RegExp&®ExpTest(Pt.tagNameCheck,bn)||Pt.tagNameCheck instanceof Function&&Pt.tagNameCheck(bn)))return!1;if(sr&&!or[bn]){const Un=rt(xn)||xn.parentNode,_i=_(xn)||xn.childNodes;if(_i&&Un){const yn=_i.length;for(let Kn=yn-1;Kn>=0;--Kn)Un.insertBefore(ht(_i[Kn],!0),j(xn))}}return Wr(xn),!0}return xn instanceof o&&!Ur(xn)||(bn==="noscript"||bn==="noembed"||bn==="noframes")&®ExpTest(/<\/no(script|embed|frames)/i,xn.innerHTML)?(Wr(xn),!0):(Vt&&xn.nodeType===3&&(fn=xn.textContent,arrayForEach([at,mt,St],Un=>{fn=stringReplace(fn,Un," ")}),xn.textContent!==fn&&(arrayPush(i.removed,{element:xn.cloneNode()}),xn.textContent=fn)),ur("afterSanitizeElements",xn,null),!1)},Pr=function(xn,fn,bn){if(rr&&(fn==="id"||fn==="name")&&(bn in _e||bn in en))return!1;if(!($t&&!Dt[fn]&®ExpTest(_t,fn))){if(!(Nt&®ExpTest(Mt,fn))){if(!At[fn]||Dt[fn]){if(!(Vr(xn)&&(Pt.tagNameCheck instanceof RegExp&®ExpTest(Pt.tagNameCheck,xn)||Pt.tagNameCheck instanceof Function&&Pt.tagNameCheck(xn))&&(Pt.attributeNameCheck instanceof RegExp&®ExpTest(Pt.attributeNameCheck,fn)||Pt.attributeNameCheck instanceof Function&&Pt.attributeNameCheck(fn))||fn==="is"&&Pt.allowCustomizedBuiltInElements&&(Pt.tagNameCheck instanceof RegExp&®ExpTest(Pt.tagNameCheck,bn)||Pt.tagNameCheck instanceof Function&&Pt.tagNameCheck(bn))))return!1}else if(!Ar[fn]){if(!regExpTest(wt,stringReplace(bn,kt,""))){if(!((fn==="src"||fn==="xlink:href"||fn==="href")&&xn!=="script"&&stringIndexOf(bn,"data:")===0&&cr[xn])){if(!(Ut&&!regExpTest(Et,stringReplace(bn,kt,"")))){if(bn)return!1}}}}}}return!0},Vr=function(xn){return xn.indexOf("-")>0},qr=function(xn){ur("beforeSanitizeAttributes",xn,null);const{attributes:fn}=xn;if(!fn)return;const bn={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:At};let Un=fn.length;for(;Un--;){const _i=fn[Un],{name:yn,namespaceURI:Kn,value:Jn}=_i,so=sn(yn);let ba=yn==="value"?Jn:stringTrim(Jn);if(bn.attrName=so,bn.attrValue=ba,bn.keepAttr=!0,bn.forceKeepAttr=void 0,ur("uponSanitizeAttribute",xn,bn),ba=bn.attrValue,bn.forceKeepAttr||(Gr(yn,xn),!bn.keepAttr))continue;if(!Ht&®ExpTest(/\/>/i,ba)){Gr(yn,xn);continue}Vt&&arrayForEach([at,mt,St],hn=>{ba=stringReplace(ba,hn," ")});const An=sn(xn.nodeName);if(Pr(An,so,ba)){if(jt&&(so==="id"||so==="name")&&(Gr(yn,xn),ba=ar+ba),tt&&typeof yt=="object"&&typeof yt.getAttributeType=="function"&&!Kn)switch(yt.getAttributeType(An,so)){case"TrustedHTML":{ba=tt.createHTML(ba);break}case"TrustedScriptURL":{ba=tt.createScriptURL(ba);break}}try{Kn?xn.setAttributeNS(Kn,yn,ba):xn.setAttribute(yn,ba),arrayPop(i.removed)}catch{}}}ur("afterSanitizeAttributes",xn,null)},rn=function Cn(xn){let fn=null;const bn=pr(xn);for(ur("beforeSanitizeShadowDOM",xn,null);fn=bn.nextNode();)ur("uponSanitizeShadowNode",fn,null),!xr(fn)&&(fn.content instanceof Gt&&Cn(fn.content),qr(fn));ur("afterSanitizeShadowDOM",xn,null)};return i.sanitize=function(Cn){let xn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fn=null,bn=null,Un=null,_i=null;if(Rr=!Cn,Rr&&(Cn=""),typeof Cn!="string"&&!Sr(Cn))if(typeof Cn.toString=="function"){if(Cn=Cn.toString(),typeof Cn!="string")throw typeErrorCreate("dirty is not a string, aborting")}else throw typeErrorCreate("toString is not a function");if(!i.isSupported)return Cn;if(qt||ln(xn),i.removed=[],typeof Cn=="string"&&(Zt=!1),Zt){if(Cn.nodeName){const Jn=sn(Cn.nodeName);if(!ct[Jn]||zt[Jn])throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place")}}else if(Cn instanceof Rt)fn=wr(""),bn=fn.ownerDocument.importNode(Cn,!0),bn.nodeType===1&&bn.nodeName==="BODY"||bn.nodeName==="HTML"?fn=bn:fn.appendChild(bn);else{if(!lr&&!Vt&&!Xt&&Cn.indexOf("<")===-1)return tt&&Yt?tt.createHTML(Cn):Cn;if(fn=wr(Cn),!fn)return lr?null:Yt?st:""}fn&&er&&Wr(fn.firstChild);const yn=pr(Zt?Cn:fn);for(;Un=yn.nextNode();)xr(Un)||(Un.content instanceof Gt&&rn(Un.content),qr(Un));if(Zt)return Cn;if(lr){if(Jt)for(_i=vt.call(fn.ownerDocument);fn.firstChild;)_i.appendChild(fn.firstChild);else _i=fn;return(At.shadowroot||At.shadowrootmode)&&(_i=bt.call(pt,_i,!0)),_i}let Kn=Xt?fn.outerHTML:fn.innerHTML;return Xt&&ct["!doctype"]&&fn.ownerDocument&&fn.ownerDocument.doctype&&fn.ownerDocument.doctype.name&®ExpTest(DOCTYPE_NAME,fn.ownerDocument.doctype.name)&&(Kn=" +`+Kn),Vt&&arrayForEach([at,mt,St],Jn=>{Kn=stringReplace(Kn,Jn," ")}),tt&&Yt?tt.createHTML(Kn):Kn},i.setConfig=function(){let Cn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ln(Cn),qt=!0},i.clearConfig=function(){un=null,qt=!1},i.isValidAttribute=function(Cn,xn,fn){un||ln({});const bn=sn(Cn),Un=sn(xn);return Pr(bn,Un,fn)},i.addHook=function(Cn,xn){typeof xn=="function"&&(ft[Cn]=ft[Cn]||[],arrayPush(ft[Cn],xn))},i.removeHook=function(Cn){if(ft[Cn])return arrayPop(ft[Cn])},i.removeHooks=function(Cn){ft[Cn]&&(ft[Cn]=[])},i.removeAllHooks=function(){ft={}},i}var purify=createDOMPurify();function _objectWithoutPropertiesLoose(a,i){if(a==null)return{};var _e={},pt=Object.keys(a),Lt,Gt;for(Gt=0;Gt=0)&&(_e[Lt]=a[Lt]);return _e}function _objectWithoutProperties(a,i){if(a==null)return{};var _e=_objectWithoutPropertiesLoose(a,i),pt,Lt;if(Object.getOwnPropertySymbols){var Gt=Object.getOwnPropertySymbols(a);for(Lt=0;Lt=0)&&Object.prototype.propertyIsEnumerable.call(a,pt)&&(_e[pt]=a[pt])}return _e}function _arrayLikeToArray(a,i){(i==null||i>a.length)&&(i=a.length);for(var _e=0,pt=new Array(i);_e=4)return[a[0],a[1],a[2],a[3],"".concat(a[0],".").concat(a[1]),"".concat(a[0],".").concat(a[2]),"".concat(a[0],".").concat(a[3]),"".concat(a[1],".").concat(a[0]),"".concat(a[1],".").concat(a[2]),"".concat(a[1],".").concat(a[3]),"".concat(a[2],".").concat(a[0]),"".concat(a[2],".").concat(a[1]),"".concat(a[2],".").concat(a[3]),"".concat(a[3],".").concat(a[0]),"".concat(a[3],".").concat(a[1]),"".concat(a[3],".").concat(a[2]),"".concat(a[0],".").concat(a[1],".").concat(a[2]),"".concat(a[0],".").concat(a[1],".").concat(a[3]),"".concat(a[0],".").concat(a[2],".").concat(a[1]),"".concat(a[0],".").concat(a[2],".").concat(a[3]),"".concat(a[0],".").concat(a[3],".").concat(a[1]),"".concat(a[0],".").concat(a[3],".").concat(a[2]),"".concat(a[1],".").concat(a[0],".").concat(a[2]),"".concat(a[1],".").concat(a[0],".").concat(a[3]),"".concat(a[1],".").concat(a[2],".").concat(a[0]),"".concat(a[1],".").concat(a[2],".").concat(a[3]),"".concat(a[1],".").concat(a[3],".").concat(a[0]),"".concat(a[1],".").concat(a[3],".").concat(a[2]),"".concat(a[2],".").concat(a[0],".").concat(a[1]),"".concat(a[2],".").concat(a[0],".").concat(a[3]),"".concat(a[2],".").concat(a[1],".").concat(a[0]),"".concat(a[2],".").concat(a[1],".").concat(a[3]),"".concat(a[2],".").concat(a[3],".").concat(a[0]),"".concat(a[2],".").concat(a[3],".").concat(a[1]),"".concat(a[3],".").concat(a[0],".").concat(a[1]),"".concat(a[3],".").concat(a[0],".").concat(a[2]),"".concat(a[3],".").concat(a[1],".").concat(a[0]),"".concat(a[3],".").concat(a[1],".").concat(a[2]),"".concat(a[3],".").concat(a[2],".").concat(a[0]),"".concat(a[3],".").concat(a[2],".").concat(a[1]),"".concat(a[0],".").concat(a[1],".").concat(a[2],".").concat(a[3]),"".concat(a[0],".").concat(a[1],".").concat(a[3],".").concat(a[2]),"".concat(a[0],".").concat(a[2],".").concat(a[1],".").concat(a[3]),"".concat(a[0],".").concat(a[2],".").concat(a[3],".").concat(a[1]),"".concat(a[0],".").concat(a[3],".").concat(a[1],".").concat(a[2]),"".concat(a[0],".").concat(a[3],".").concat(a[2],".").concat(a[1]),"".concat(a[1],".").concat(a[0],".").concat(a[2],".").concat(a[3]),"".concat(a[1],".").concat(a[0],".").concat(a[3],".").concat(a[2]),"".concat(a[1],".").concat(a[2],".").concat(a[0],".").concat(a[3]),"".concat(a[1],".").concat(a[2],".").concat(a[3],".").concat(a[0]),"".concat(a[1],".").concat(a[3],".").concat(a[0],".").concat(a[2]),"".concat(a[1],".").concat(a[3],".").concat(a[2],".").concat(a[0]),"".concat(a[2],".").concat(a[0],".").concat(a[1],".").concat(a[3]),"".concat(a[2],".").concat(a[0],".").concat(a[3],".").concat(a[1]),"".concat(a[2],".").concat(a[1],".").concat(a[0],".").concat(a[3]),"".concat(a[2],".").concat(a[1],".").concat(a[3],".").concat(a[0]),"".concat(a[2],".").concat(a[3],".").concat(a[0],".").concat(a[1]),"".concat(a[2],".").concat(a[3],".").concat(a[1],".").concat(a[0]),"".concat(a[3],".").concat(a[0],".").concat(a[1],".").concat(a[2]),"".concat(a[3],".").concat(a[0],".").concat(a[2],".").concat(a[1]),"".concat(a[3],".").concat(a[1],".").concat(a[0],".").concat(a[2]),"".concat(a[3],".").concat(a[1],".").concat(a[2],".").concat(a[0]),"".concat(a[3],".").concat(a[2],".").concat(a[0],".").concat(a[1]),"".concat(a[3],".").concat(a[2],".").concat(a[1],".").concat(a[0])]}var classNameCombinations={};function getClassNameCombinations(a){if(a.length===0||a.length===1)return a;var i=a.join(".");return classNameCombinations[i]||(classNameCombinations[i]=powerSetPermutations(a)),classNameCombinations[i]}function createStyleObject(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_e=arguments.length>2?arguments[2]:void 0,pt=a.filter(function(Gt){return Gt!=="token"}),Lt=getClassNameCombinations(pt);return Lt.reduce(function(Gt,Ct){return _objectSpread$1(_objectSpread$1({},Gt),_e[Ct])},i)}function createClassNameString(a){return a.join(" ")}function createChildren(a,i){var _e=0;return function(pt){return _e+=1,pt.map(function(Lt,Gt){return createElement({node:Lt,stylesheet:a,useInlineStyles:i,key:"code-segment-".concat(_e,"-").concat(Gt)})})}}function createElement(a){var i=a.node,_e=a.stylesheet,pt=a.style,Lt=pt===void 0?{}:pt,Gt=a.useInlineStyles,Ct=a.key,Rt=i.properties,o=i.type,it=i.tagName,xt=i.value;if(o==="text")return xt;if(it){var et=createChildren(_e,Gt),Tt;if(!Gt)Tt=_objectSpread$1(_objectSpread$1({},Rt),{},{className:createClassNameString(Rt.className)});else{var yt=Object.keys(_e).reduce(function(_,rt){return rt.split(".").forEach(function(tt){_.includes(tt)||_.push(tt)}),_},[]),ut=Rt.className&&Rt.className.includes("token")?["token"]:[],ht=Rt.className&&ut.concat(Rt.className.filter(function(_){return!yt.includes(_)}));Tt=_objectSpread$1(_objectSpread$1({},Rt),{},{className:createClassNameString(ht)||void 0,style:createStyleObject(Rt.className,Object.assign({},Rt.style,Lt),_e)})}var j=et(i.children);return React.createElement(it,_extends({key:Ct},Tt),j)}}const checkForListedLanguage=function(a,i){var _e=a.listLanguages();return _e.indexOf(i)!==-1};var _excluded=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function ownKeys(a,i){var _e=Object.keys(a);if(Object.getOwnPropertySymbols){var pt=Object.getOwnPropertySymbols(a);i&&(pt=pt.filter(function(Lt){return Object.getOwnPropertyDescriptor(a,Lt).enumerable})),_e.push.apply(_e,pt)}return _e}function _objectSpread(a){for(var i=1;i1&&arguments[1]!==void 0?arguments[1]:[],_e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],pt=0;pt2&&arguments[2]!==void 0?arguments[2]:[];return createLineElement({children:ot,lineNumber:nt,lineNumberStyle:Rt,largestLineNumber:Ct,showInlineLineNumbers:Lt,lineProps:_e,className:vt,showLineNumbers:pt,wrapLongLines:o})}function ht(ot,nt){if(pt&&nt&&Lt){var vt=assembleLineNumberStyles(Rt,nt,Ct);ot.unshift(getInlineLineNumber(nt,vt))}return ot}function j(ot,nt){var vt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return i||vt.length>0?ut(ot,nt,vt):ht(ot,nt)}for(var _=function(){var nt=xt[mt],vt=nt.children[0].value,dt=getNewLines(vt);if(dt){var bt=vt.split(` -`);bt.forEach(function(ft,at){var yt=pt&&et.length+Gt,St={type:"text",value:"".concat(ft,` -`)};if(at===0){var _t=xt.slice(Et+1,mt).concat(createLineElement({children:[St],className:nt.properties.className})),Mt=j(_t,yt);et.push(Mt)}else if(at===bt.length-1){var Tt=xt[mt+1]&&xt[mt+1].children&&xt[mt+1].children[0],kt={type:"text",value:"".concat(ft)};if(Tt){var wt=createLineElement({children:[kt],className:nt.properties.className});xt.splice(mt+1,0,wt)}else{var ct=[kt],It=j(ct,yt,nt.properties.className);et.push(It)}}else{var At=[St],Ot=j(At,yt,nt.properties.className);et.push(Ot)}}),Et=mt}mt++};mt4&&_e.slice(0,4)===data&&valid.test(i)&&(i.charAt(4)==="-"?pt=datasetToProperty(i):i=datasetToAttribute(i),Lt=DefinedInfo),new Lt(pt,i))}function datasetToProperty(a){var i=a.slice(5).replace(dash,camelcase);return data+i.charAt(0).toUpperCase()+i.slice(1)}function datasetToAttribute(a){var i=a.slice(4);return dash.test(i)?a:(i=i.replace(cap,kebab),i.charAt(0)!=="-"&&(i="-"+i),data+i)}function kebab(a){return"-"+a.toLowerCase()}function camelcase(a){return a.charAt(1).toUpperCase()}var hastUtilParseSelector=parse$3,search=/[#.]/g;function parse$3(a,i){for(var _e=a||"",pt=i||"div",Lt={},Gt=0,Ct,Rt,o;Gt<_e.length;)search.lastIndex=Gt,o=search.exec(_e),Ct=_e.slice(Gt,o?o.index:_e.length),Ct&&(Rt?Rt==="#"?Lt.id=Ct:Lt.className?Lt.className.push(Ct):Lt.className=[Ct]:pt=Ct,Gt+=Ct.length),o&&(Rt=o[0],Gt++);return{type:"element",tagName:pt,properties:Lt,children:[]}}var spaceSeparatedTokens={};spaceSeparatedTokens.parse=parse$2;spaceSeparatedTokens.stringify=stringify$2;var empty$1="",space$2=" ",whiteSpace=/[ \t\n\r\f]+/g;function parse$2(a){var i=String(a||empty$1).trim();return i===empty$1?[]:i.split(whiteSpace)}function stringify$2(a){return a.join(space$2).trim()}var commaSeparatedTokens={};commaSeparatedTokens.parse=parse$1;commaSeparatedTokens.stringify=stringify$1;var comma=",",space$1=" ",empty="";function parse$1(a){for(var i=[],_e=String(a||empty),pt=_e.indexOf(comma),Lt=0,Gt=!1,Ct;!Gt;)pt===-1&&(pt=_e.length,Gt=!0),Ct=_e.slice(Lt,pt).trim(),(Ct||!Gt)&&i.push(Ct),Lt=pt+1,pt=_e.indexOf(comma,Lt);return i}function stringify$1(a,i){var _e=i||{},pt=_e.padLeft===!1?empty:space$1,Lt=_e.padRight?space$1:empty;return a[a.length-1]===empty&&(a=a.concat(empty)),a.join(Lt+comma+pt).trim()}var find$1=find_1,normalize=normalize_1,parseSelector=hastUtilParseSelector,spaces=spaceSeparatedTokens.parse,commas=commaSeparatedTokens.parse,factory_1=factory$2,own$2={}.hasOwnProperty;function factory$2(a,i,_e){var pt=_e?createAdjustMap(_e):null;return Lt;function Lt(Ct,Rt){var o=parseSelector(Ct,i),it=Array.prototype.slice.call(arguments,2),xt=o.tagName.toLowerCase(),et;if(o.tagName=pt&&own$2.call(pt,xt)?pt[xt]:xt,Rt&&isChildren(Rt,o)&&(it.unshift(Rt),Rt=null),Rt)for(et in Rt)Gt(o.properties,et,Rt[et]);return addChild(o.children,it),o.tagName==="template"&&(o.content={type:"root",children:o.children},o.children=[]),o}function Gt(Ct,Rt,o){var it,xt,et;o==null||o!==o||(it=find$1(a,Rt),xt=it.property,et=o,typeof et=="string"&&(it.spaceSeparated?et=spaces(et):it.commaSeparated?et=commas(et):it.commaOrSpaceSeparated&&(et=spaces(commas(et).join(" ")))),xt==="style"&&typeof o!="string"&&(et=style(et)),xt==="className"&&Ct.className&&(et=Ct.className.concat(et)),Ct[xt]=parsePrimitives(it,xt,et))}}function isChildren(a,i){return typeof a=="string"||"length"in a||isNode(i.tagName,a)}function isNode(a,i){var _e=i.type;return a==="input"||!_e||typeof _e!="string"?!1:typeof i.children=="object"&&"length"in i.children?!0:(_e=_e.toLowerCase(),a==="button"?_e!=="menu"&&_e!=="submit"&&_e!=="reset"&&_e!=="button":"value"in i)}function addChild(a,i){var _e,pt;if(typeof i=="string"||typeof i=="number"){a.push({type:"text",value:String(i)});return}if(typeof i=="object"&&"length"in i){for(_e=-1,pt=i.length;++_e=48&&i<=57}var isHexadecimal=hexadecimal$1;function hexadecimal$1(a){var i=typeof a=="string"?a.charCodeAt(0):a;return i>=97&&i<=102||i>=65&&i<=70||i>=48&&i<=57}var isAlphabetical=alphabetical$1;function alphabetical$1(a){var i=typeof a=="string"?a.charCodeAt(0):a;return i>=97&&i<=122||i>=65&&i<=90}var alphabetical=isAlphabetical,decimal$1=isDecimal,isAlphanumerical=alphanumerical$1;function alphanumerical$1(a){return alphabetical(a)||decimal$1(a)}var el,semicolon$1=59,decodeEntity_browser=decodeEntity$1;function decodeEntity$1(a){var i="&"+a+";",_e;return el=el||document.createElement("i"),el.innerHTML=i,_e=el.textContent,_e.charCodeAt(_e.length-1)===semicolon$1&&a!=="semi"||_e===i?!1:_e}var legacy=require$$0$1,invalid=require$$1,decimal=isDecimal,hexadecimal=isHexadecimal,alphanumerical=isAlphanumerical,decodeEntity=decodeEntity_browser,parseEntities_1=parseEntities,own$1={}.hasOwnProperty,fromCharCode=String.fromCharCode,noop=Function.prototype,defaults={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},tab=9,lineFeed=10,formFeed=12,space=32,ampersand=38,semicolon=59,lessThan=60,equalsTo=61,numberSign=35,uppercaseX=88,lowercaseX=120,replacementCharacter=65533,name$1="named",hexa="hexadecimal",deci="decimal",bases={};bases[hexa]=16;bases[deci]=10;var tests={};tests[name$1]=alphanumerical;tests[deci]=decimal;tests[hexa]=hexadecimal;var namedNotTerminated=1,numericNotTerminated=2,namedEmpty=3,numericEmpty=4,namedUnknown=5,numericDisallowed=6,numericProhibited=7,messages={};messages[namedNotTerminated]="Named character references must be terminated by a semicolon";messages[numericNotTerminated]="Numeric character references must be terminated by a semicolon";messages[namedEmpty]="Named character references cannot be empty";messages[numericEmpty]="Numeric character references cannot be empty";messages[namedUnknown]="Named character references must be known";messages[numericDisallowed]="Numeric character references cannot be disallowed";messages[numericProhibited]="Numeric character references cannot be outside the permissible Unicode range";function parseEntities(a,i){var _e={},pt,Lt;i||(i={});for(Lt in defaults)pt=i[Lt],_e[Lt]=pt??defaults[Lt];return(_e.position.indent||_e.position.start)&&(_e.indent=_e.position.indent||[],_e.position=_e.position.start),parse(a,_e)}function parse(a,i){var _e=i.additional,pt=i.nonTerminated,Lt=i.text,Gt=i.reference,Ct=i.warning,Rt=i.textContext,o=i.referenceContext,it=i.warningContext,xt=i.position,et=i.indent||[],Et=a.length,mt=0,ut=-1,ht=xt.column||1,j=xt.line||1,_="",rt=[],tt,st,ot,nt,vt,dt,bt,ft,at,yt,St,_t,Mt,Tt,kt,wt,ct,It,At;for(typeof _e=="string"&&(_e=_e.charCodeAt(0)),wt=Ot(),ft=Ct?Pt:noop,mt--,Et++;++mt65535&&(dt-=65536,yt+=fromCharCode(dt>>>10|55296),dt=56320|dt&1023),dt=yt+fromCharCode(dt))):Tt!==name$1&&ft(numericEmpty,It)),dt?(zt(),wt=Ot(),mt=At-1,ht+=At-Mt+1,rt.push(dt),ct=Ot(),ct.offset++,Gt&&Gt.call(o,dt,{start:wt,end:ct},a.slice(Mt-1,At)),wt=ct):(nt=a.slice(Mt-1,At),_+=nt,ht+=nt.length,mt=At-1)}else vt===10&&(j++,ut++,ht=0),vt===vt?(_+=fromCharCode(vt),ht++):zt();return rt.join("");function Ot(){return{line:j,column:ht,offset:mt+(xt.offset||0)}}function Pt(Dt,Nt){var $t=Ot();$t.column+=Nt,$t.offset+=Nt,Ct.call(it,messages[Dt],$t,Dt)}function zt(){_&&(rt.push(_),Lt&&Lt.call(Rt,_,{start:wt,end:Ot()}),_="")}}function prohibited(a){return a>=55296&&a<=57343||a>1114111}function disallowed(a){return a>=1&&a<=8||a===11||a>=13&&a<=31||a>=127&&a<=159||a>=64976&&a<=65007||(a&65535)===65535||(a&65535)===65534}var prismCoreExports={},prismCore={get exports(){return prismCoreExports},set exports(a){prismCoreExports=a}};(function(a){var i=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** +`),style:Ct,startingLineNumber:Rt}))}function getEmWidthOfNumber(a){return"".concat(a.toString().length,".25em")}function getInlineLineNumber(a,i){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(a),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:i},children:[{type:"text",value:a}]}}function assembleLineNumberStyles(a,i,_e){var pt={display:"inline-block",minWidth:getEmWidthOfNumber(_e),paddingRight:"1em",textAlign:"right",userSelect:"none"},Lt=typeof a=="function"?a(i):a,Gt=_objectSpread(_objectSpread({},pt),Lt);return Gt}function createLineElement(a){var i=a.children,_e=a.lineNumber,pt=a.lineNumberStyle,Lt=a.largestLineNumber,Gt=a.showInlineLineNumbers,Ct=a.lineProps,Rt=Ct===void 0?{}:Ct,o=a.className,it=o===void 0?[]:o,xt=a.showLineNumbers,et=a.wrapLongLines,Tt=typeof Rt=="function"?Rt(_e):Rt;if(Tt.className=it,_e&&Gt){var yt=assembleLineNumberStyles(pt,_e,Lt);i.unshift(getInlineLineNumber(_e,yt))}return et&xt&&(Tt.style=_objectSpread(_objectSpread({},Tt.style),{},{display:"flex"})),{type:"element",tagName:"span",properties:Tt,children:i}}function flattenCodeTree(a){for(var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],_e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],pt=0;pt2&&arguments[2]!==void 0?arguments[2]:[];return createLineElement({children:ot,lineNumber:nt,lineNumberStyle:Rt,largestLineNumber:Ct,showInlineLineNumbers:Lt,lineProps:_e,className:vt,showLineNumbers:pt,wrapLongLines:o})}function ht(ot,nt){if(pt&&nt&&Lt){var vt=assembleLineNumberStyles(Rt,nt,Ct);ot.unshift(getInlineLineNumber(nt,vt))}return ot}function j(ot,nt){var vt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return i||vt.length>0?ut(ot,nt,vt):ht(ot,nt)}for(var _=function(){var nt=xt[yt],vt=nt.children[0].value,dt=getNewLines(vt);if(dt){var bt=vt.split(` +`);bt.forEach(function(ft,at){var mt=pt&&et.length+Gt,St={type:"text",value:"".concat(ft,` +`)};if(at===0){var _t=xt.slice(Tt+1,yt).concat(createLineElement({children:[St],className:nt.properties.className})),Mt=j(_t,mt);et.push(Mt)}else if(at===bt.length-1){var Et=xt[yt+1]&&xt[yt+1].children&&xt[yt+1].children[0],kt={type:"text",value:"".concat(ft)};if(Et){var wt=createLineElement({children:[kt],className:nt.properties.className});xt.splice(yt+1,0,wt)}else{var ct=[kt],It=j(ct,mt,nt.properties.className);et.push(It)}}else{var At=[St],Ot=j(At,mt,nt.properties.className);et.push(Ot)}}),Tt=yt}yt++};yt4&&_e.slice(0,4)===data&&valid.test(i)&&(i.charAt(4)==="-"?pt=datasetToProperty(i):i=datasetToAttribute(i),Lt=DefinedInfo),new Lt(pt,i))}function datasetToProperty(a){var i=a.slice(5).replace(dash,camelcase);return data+i.charAt(0).toUpperCase()+i.slice(1)}function datasetToAttribute(a){var i=a.slice(4);return dash.test(i)?a:(i=i.replace(cap,kebab),i.charAt(0)!=="-"&&(i="-"+i),data+i)}function kebab(a){return"-"+a.toLowerCase()}function camelcase(a){return a.charAt(1).toUpperCase()}var hastUtilParseSelector=parse$3,search=/[#.]/g;function parse$3(a,i){for(var _e=a||"",pt=i||"div",Lt={},Gt=0,Ct,Rt,o;Gt<_e.length;)search.lastIndex=Gt,o=search.exec(_e),Ct=_e.slice(Gt,o?o.index:_e.length),Ct&&(Rt?Rt==="#"?Lt.id=Ct:Lt.className?Lt.className.push(Ct):Lt.className=[Ct]:pt=Ct,Gt+=Ct.length),o&&(Rt=o[0],Gt++);return{type:"element",tagName:pt,properties:Lt,children:[]}}var spaceSeparatedTokens={};spaceSeparatedTokens.parse=parse$2;spaceSeparatedTokens.stringify=stringify$2;var empty$1="",space$2=" ",whiteSpace=/[ \t\n\r\f]+/g;function parse$2(a){var i=String(a||empty$1).trim();return i===empty$1?[]:i.split(whiteSpace)}function stringify$2(a){return a.join(space$2).trim()}var commaSeparatedTokens={};commaSeparatedTokens.parse=parse$1;commaSeparatedTokens.stringify=stringify$1;var comma=",",space$1=" ",empty="";function parse$1(a){for(var i=[],_e=String(a||empty),pt=_e.indexOf(comma),Lt=0,Gt=!1,Ct;!Gt;)pt===-1&&(pt=_e.length,Gt=!0),Ct=_e.slice(Lt,pt).trim(),(Ct||!Gt)&&i.push(Ct),Lt=pt+1,pt=_e.indexOf(comma,Lt);return i}function stringify$1(a,i){var _e=i||{},pt=_e.padLeft===!1?empty:space$1,Lt=_e.padRight?space$1:empty;return a[a.length-1]===empty&&(a=a.concat(empty)),a.join(Lt+comma+pt).trim()}var find$1=find_1,normalize=normalize_1,parseSelector=hastUtilParseSelector,spaces=spaceSeparatedTokens.parse,commas=commaSeparatedTokens.parse,factory_1=factory$2,own$2={}.hasOwnProperty;function factory$2(a,i,_e){var pt=_e?createAdjustMap(_e):null;return Lt;function Lt(Ct,Rt){var o=parseSelector(Ct,i),it=Array.prototype.slice.call(arguments,2),xt=o.tagName.toLowerCase(),et;if(o.tagName=pt&&own$2.call(pt,xt)?pt[xt]:xt,Rt&&isChildren(Rt,o)&&(it.unshift(Rt),Rt=null),Rt)for(et in Rt)Gt(o.properties,et,Rt[et]);return addChild(o.children,it),o.tagName==="template"&&(o.content={type:"root",children:o.children},o.children=[]),o}function Gt(Ct,Rt,o){var it,xt,et;o==null||o!==o||(it=find$1(a,Rt),xt=it.property,et=o,typeof et=="string"&&(it.spaceSeparated?et=spaces(et):it.commaSeparated?et=commas(et):it.commaOrSpaceSeparated&&(et=spaces(commas(et).join(" ")))),xt==="style"&&typeof o!="string"&&(et=style(et)),xt==="className"&&Ct.className&&(et=Ct.className.concat(et)),Ct[xt]=parsePrimitives(it,xt,et))}}function isChildren(a,i){return typeof a=="string"||"length"in a||isNode(i.tagName,a)}function isNode(a,i){var _e=i.type;return a==="input"||!_e||typeof _e!="string"?!1:typeof i.children=="object"&&"length"in i.children?!0:(_e=_e.toLowerCase(),a==="button"?_e!=="menu"&&_e!=="submit"&&_e!=="reset"&&_e!=="button":"value"in i)}function addChild(a,i){var _e,pt;if(typeof i=="string"||typeof i=="number"){a.push({type:"text",value:String(i)});return}if(typeof i=="object"&&"length"in i){for(_e=-1,pt=i.length;++_e=48&&i<=57}var isHexadecimal=hexadecimal$1;function hexadecimal$1(a){var i=typeof a=="string"?a.charCodeAt(0):a;return i>=97&&i<=102||i>=65&&i<=70||i>=48&&i<=57}var isAlphabetical=alphabetical$1;function alphabetical$1(a){var i=typeof a=="string"?a.charCodeAt(0):a;return i>=97&&i<=122||i>=65&&i<=90}var alphabetical=isAlphabetical,decimal$1=isDecimal,isAlphanumerical=alphanumerical$1;function alphanumerical$1(a){return alphabetical(a)||decimal$1(a)}var el,semicolon$1=59,decodeEntity_browser=decodeEntity$1;function decodeEntity$1(a){var i="&"+a+";",_e;return el=el||document.createElement("i"),el.innerHTML=i,_e=el.textContent,_e.charCodeAt(_e.length-1)===semicolon$1&&a!=="semi"||_e===i?!1:_e}var legacy=require$$0$1,invalid=require$$1,decimal=isDecimal,hexadecimal=isHexadecimal,alphanumerical=isAlphanumerical,decodeEntity=decodeEntity_browser,parseEntities_1=parseEntities,own$1={}.hasOwnProperty,fromCharCode=String.fromCharCode,noop=Function.prototype,defaults={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},tab=9,lineFeed=10,formFeed=12,space=32,ampersand=38,semicolon=59,lessThan=60,equalsTo=61,numberSign=35,uppercaseX=88,lowercaseX=120,replacementCharacter=65533,name$1="named",hexa="hexadecimal",deci="decimal",bases={};bases[hexa]=16;bases[deci]=10;var tests={};tests[name$1]=alphanumerical;tests[deci]=decimal;tests[hexa]=hexadecimal;var namedNotTerminated=1,numericNotTerminated=2,namedEmpty=3,numericEmpty=4,namedUnknown=5,numericDisallowed=6,numericProhibited=7,messages={};messages[namedNotTerminated]="Named character references must be terminated by a semicolon";messages[numericNotTerminated]="Numeric character references must be terminated by a semicolon";messages[namedEmpty]="Named character references cannot be empty";messages[numericEmpty]="Numeric character references cannot be empty";messages[namedUnknown]="Named character references must be known";messages[numericDisallowed]="Numeric character references cannot be disallowed";messages[numericProhibited]="Numeric character references cannot be outside the permissible Unicode range";function parseEntities(a,i){var _e={},pt,Lt;i||(i={});for(Lt in defaults)pt=i[Lt],_e[Lt]=pt??defaults[Lt];return(_e.position.indent||_e.position.start)&&(_e.indent=_e.position.indent||[],_e.position=_e.position.start),parse(a,_e)}function parse(a,i){var _e=i.additional,pt=i.nonTerminated,Lt=i.text,Gt=i.reference,Ct=i.warning,Rt=i.textContext,o=i.referenceContext,it=i.warningContext,xt=i.position,et=i.indent||[],Tt=a.length,yt=0,ut=-1,ht=xt.column||1,j=xt.line||1,_="",rt=[],tt,st,ot,nt,vt,dt,bt,ft,at,mt,St,_t,Mt,Et,kt,wt,ct,It,At;for(typeof _e=="string"&&(_e=_e.charCodeAt(0)),wt=Ot(),ft=Ct?Pt:noop,yt--,Tt++;++yt65535&&(dt-=65536,mt+=fromCharCode(dt>>>10|55296),dt=56320|dt&1023),dt=mt+fromCharCode(dt))):Et!==name$1&&ft(numericEmpty,It)),dt?(zt(),wt=Ot(),yt=At-1,ht+=At-Mt+1,rt.push(dt),ct=Ot(),ct.offset++,Gt&&Gt.call(o,dt,{start:wt,end:ct},a.slice(Mt-1,At)),wt=ct):(nt=a.slice(Mt-1,At),_+=nt,ht+=nt.length,yt=At-1)}else vt===10&&(j++,ut++,ht=0),vt===vt?(_+=fromCharCode(vt),ht++):zt();return rt.join("");function Ot(){return{line:j,column:ht,offset:yt+(xt.offset||0)}}function Pt(Dt,Nt){var $t=Ot();$t.column+=Nt,$t.offset+=Nt,Ct.call(it,messages[Dt],$t,Dt)}function zt(){_&&(rt.push(_),Lt&&Lt.call(Rt,_,{start:wt,end:Ot()}),_="")}}function prohibited(a){return a>=55296&&a<=57343||a>1114111}function disallowed(a){return a>=1&&a<=8||a===11||a>=13&&a<=31||a>=127&&a<=159||a>=64976&&a<=65007||(a&65535)===65535||(a&65535)===65534}var prismCoreExports={},prismCore={get exports(){return prismCoreExports},set exports(a){prismCoreExports=a}};(function(a){var i=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** * Prism: Lightweight, robust, elegant syntax highlighting * * @license MIT * @author Lea Verou * @namespace * @public - */var _e=function(pt){var Lt=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,Gt=0,Ct={},Rt={manual:pt.Prism&&pt.Prism.manual,disableWorkerMessageHandler:pt.Prism&&pt.Prism.disableWorkerMessageHandler,util:{encode:function rt(tt){return tt instanceof o?new o(tt.type,rt(tt.content),tt.alias):Array.isArray(tt)?tt.map(rt):tt.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(ot){var rt=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(ot.stack)||[])[1];if(rt){var tt=document.getElementsByTagName("script");for(var st in tt)if(tt[st].src==rt)return tt[st]}return null}},isActive:function(rt,tt,st){for(var ot="no-"+tt;rt;){var nt=rt.classList;if(nt.contains(tt))return!0;if(nt.contains(ot))return!1;rt=rt.parentElement}return!!st}},languages:{plain:Ct,plaintext:Ct,text:Ct,txt:Ct,extend:function(rt,tt){var st=Rt.util.clone(Rt.languages[rt]);for(var ot in tt)st[ot]=tt[ot];return st},insertBefore:function(rt,tt,st,ot){ot=ot||Rt.languages;var nt=ot[rt],vt={};for(var dt in nt)if(nt.hasOwnProperty(dt)){if(dt==tt)for(var bt in st)st.hasOwnProperty(bt)&&(vt[bt]=st[bt]);st.hasOwnProperty(dt)||(vt[dt]=nt[dt])}var ft=ot[rt];return ot[rt]=vt,Rt.languages.DFS(Rt.languages,function(at,yt){yt===ft&&at!=rt&&(this[at]=vt)}),vt},DFS:function rt(tt,st,ot,nt){nt=nt||{};var vt=Rt.util.objId;for(var dt in tt)if(tt.hasOwnProperty(dt)){st.call(tt,dt,tt[dt],ot||dt);var bt=tt[dt],ft=Rt.util.type(bt);ft==="Object"&&!nt[vt(bt)]?(nt[vt(bt)]=!0,rt(bt,st,null,nt)):ft==="Array"&&!nt[vt(bt)]&&(nt[vt(bt)]=!0,rt(bt,st,dt,nt))}}},plugins:{},highlightAll:function(rt,tt){Rt.highlightAllUnder(document,rt,tt)},highlightAllUnder:function(rt,tt,st){var ot={callback:st,container:rt,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};Rt.hooks.run("before-highlightall",ot),ot.elements=Array.prototype.slice.apply(ot.container.querySelectorAll(ot.selector)),Rt.hooks.run("before-all-elements-highlight",ot);for(var nt=0,vt;vt=ot.elements[nt++];)Rt.highlightElement(vt,tt===!0,ot.callback)},highlightElement:function(rt,tt,st){var ot=Rt.util.getLanguage(rt),nt=Rt.languages[ot];Rt.util.setLanguage(rt,ot);var vt=rt.parentElement;vt&&vt.nodeName.toLowerCase()==="pre"&&Rt.util.setLanguage(vt,ot);var dt=rt.textContent,bt={element:rt,language:ot,grammar:nt,code:dt};function ft(yt){bt.highlightedCode=yt,Rt.hooks.run("before-insert",bt),bt.element.innerHTML=bt.highlightedCode,Rt.hooks.run("after-highlight",bt),Rt.hooks.run("complete",bt),st&&st.call(bt.element)}if(Rt.hooks.run("before-sanity-check",bt),vt=bt.element.parentElement,vt&&vt.nodeName.toLowerCase()==="pre"&&!vt.hasAttribute("tabindex")&&vt.setAttribute("tabindex","0"),!bt.code){Rt.hooks.run("complete",bt),st&&st.call(bt.element);return}if(Rt.hooks.run("before-highlight",bt),!bt.grammar){ft(Rt.util.encode(bt.code));return}if(tt&&pt.Worker){var at=new Worker(Rt.filename);at.onmessage=function(yt){ft(yt.data)},at.postMessage(JSON.stringify({language:bt.language,code:bt.code,immediateClose:!0}))}else ft(Rt.highlight(bt.code,bt.grammar,bt.language))},highlight:function(rt,tt,st){var ot={code:rt,grammar:tt,language:st};if(Rt.hooks.run("before-tokenize",ot),!ot.grammar)throw new Error('The language "'+ot.language+'" has no grammar.');return ot.tokens=Rt.tokenize(ot.code,ot.grammar),Rt.hooks.run("after-tokenize",ot),o.stringify(Rt.util.encode(ot.tokens),ot.language)},tokenize:function(rt,tt){var st=tt.rest;if(st){for(var ot in st)tt[ot]=st[ot];delete tt.rest}var nt=new et;return Et(nt,nt.head,rt),xt(rt,nt,tt,nt.head,0),ut(nt)},hooks:{all:{},add:function(rt,tt){var st=Rt.hooks.all;st[rt]=st[rt]||[],st[rt].push(tt)},run:function(rt,tt){var st=Rt.hooks.all[rt];if(!(!st||!st.length))for(var ot=0,nt;nt=st[ot++];)nt(tt)}},Token:o};pt.Prism=Rt;function o(rt,tt,st,ot){this.type=rt,this.content=tt,this.alias=st,this.length=(ot||"").length|0}o.stringify=function rt(tt,st){if(typeof tt=="string")return tt;if(Array.isArray(tt)){var ot="";return tt.forEach(function(ft){ot+=rt(ft,st)}),ot}var nt={type:tt.type,content:rt(tt.content,st),tag:"span",classes:["token",tt.type],attributes:{},language:st},vt=tt.alias;vt&&(Array.isArray(vt)?Array.prototype.push.apply(nt.classes,vt):nt.classes.push(vt)),Rt.hooks.run("wrap",nt);var dt="";for(var bt in nt.attributes)dt+=" "+bt+'="'+(nt.attributes[bt]||"").replace(/"/g,""")+'"';return"<"+nt.tag+' class="'+nt.classes.join(" ")+'"'+dt+">"+nt.content+""};function it(rt,tt,st,ot){rt.lastIndex=tt;var nt=rt.exec(st);if(nt&&ot&&nt[1]){var vt=nt[1].length;nt.index+=vt,nt[0]=nt[0].slice(vt)}return nt}function xt(rt,tt,st,ot,nt,vt){for(var dt in st)if(!(!st.hasOwnProperty(dt)||!st[dt])){var bt=st[dt];bt=Array.isArray(bt)?bt:[bt];for(var ft=0;ft=vt.reach);ct+=wt.value.length,wt=wt.next){var It=wt.value;if(tt.length>rt.length)return;if(!(It instanceof o)){var At=1,Ot;if(_t){if(Ot=it(kt,ct,rt,St),!Ot||Ot.index>=rt.length)break;var Nt=Ot.index,Pt=Ot.index+Ot[0].length,zt=ct;for(zt+=wt.value.length;Nt>=zt;)wt=wt.next,zt+=wt.value.length;if(zt-=wt.value.length,ct=zt,wt.value instanceof o)continue;for(var Dt=wt;Dt!==tt.tail&&(ztvt.reach&&(vt.reach=Vt);var Xt=wt.prev;Ut&&(Xt=Et(tt,Xt,Ut),ct+=Ut.length),mt(tt,Xt,At);var qt=new o(dt,yt?Rt.tokenize($t,yt):$t,Mt,$t);if(wt=Et(tt,Xt,qt),Ht&&Et(tt,wt,Ht),At>1){var er={cause:dt+","+ft,reach:Vt};xt(rt,tt,st,wt.prev,ct,er),vt&&er.reach>vt.reach&&(vt.reach=er.reach)}}}}}}function et(){var rt={value:null,prev:null,next:null},tt={value:null,prev:rt,next:null};rt.next=tt,this.head=rt,this.tail=tt,this.length=0}function Et(rt,tt,st){var ot=tt.next,nt={value:st,prev:tt,next:ot};return tt.next=nt,ot.prev=nt,rt.length++,nt}function mt(rt,tt,st){for(var ot=tt.next,nt=0;nt/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},a.languages.markup.tag.inside["attr-value"].inside.entity=a.languages.markup.entity,a.languages.markup.doctype.inside["internal-subset"].inside=a.languages.markup,a.hooks.add("wrap",function(i){i.type==="entity"&&(i.attributes.title=i.content.value.replace(/&/,"&"))}),Object.defineProperty(a.languages.markup.tag,"addInlined",{value:function(_e,pt){var Lt={};Lt["language-"+pt]={pattern:/(^$)/i,lookbehind:!0,inside:a.languages[pt]},Lt.cdata=/^$/i;var Gt={"included-cdata":{pattern://i,inside:Lt}};Gt["language-"+pt]={pattern:/[\s\S]+/,inside:a.languages[pt]};var Ct={};Ct[_e]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return _e}),"i"),lookbehind:!0,greedy:!0,inside:Gt},a.languages.insertBefore("markup","cdata",Ct)}}),Object.defineProperty(a.languages.markup.tag,"addAttribute",{value:function(i,_e){a.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+i+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[_e,"language-"+_e],inside:a.languages[_e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),a.languages.html=a.languages.markup,a.languages.mathml=a.languages.markup,a.languages.svg=a.languages.markup,a.languages.xml=a.languages.extend("markup",{}),a.languages.ssml=a.languages.xml,a.languages.atom=a.languages.xml,a.languages.rss=a.languages.xml}var css_1=css$1;css$1.displayName="css";css$1.aliases=[];function css$1(a){(function(i){var _e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;i.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+_e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+_e.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+_e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:_e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},i.languages.css.atrule.inside.rest=i.languages.css;var pt=i.languages.markup;pt&&(pt.tag.addInlined("style","css"),pt.tag.addAttribute("style","css"))})(a)}var clike_1=clike$1;clike$1.displayName="clike";clike$1.aliases=[];function clike$1(a){a.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}var javascript_1=javascript;javascript.displayName="javascript";javascript.aliases=["js"];function javascript(a){a.languages.javascript=a.languages.extend("clike",{"class-name":[a.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),a.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,a.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:a.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:a.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:a.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:a.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:a.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),a.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:a.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),a.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),a.languages.markup&&(a.languages.markup.tag.addInlined("script","javascript"),a.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),a.languages.js=a.languages.javascript}var ctx=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof commonjsGlobal=="object"?commonjsGlobal:{},restore=capture();ctx.Prism={manual:!0,disableWorkerMessageHandler:!0};var h=hastscriptExports,decode=parseEntities_1,Prism=prismCoreExports,markup=markup_1,css=css_1,clike=clike_1,js=javascript_1;restore();var own={}.hasOwnProperty;function Refractor(){}Refractor.prototype=Prism;var refract=new Refractor,core=refract;refract.highlight=highlight;refract.register=register;refract.alias=alias;refract.registered=registered;refract.listLanguages=listLanguages;register(markup);register(css);register(clike);register(js);refract.util.encode=encode;refract.Token.stringify=stringify;function register(a){if(typeof a!="function"||!a.displayName)throw new Error("Expected `function` for `grammar`, got `"+a+"`");refract.languages[a.displayName]===void 0&&a(refract)}function alias(a,i){var _e=refract.languages,pt=a,Lt,Gt,Ct,Rt;i&&(pt={},pt[a]=i);for(Lt in pt)for(Gt=pt[Lt],Gt=typeof Gt=="string"?[Gt]:Gt,Ct=Gt.length,Rt=-1;++Rt code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}};var abap_1,hasRequiredAbap;function requireAbap(){if(hasRequiredAbap)return abap_1;hasRequiredAbap=1,abap_1=a,a.displayName="abap",a.aliases=[];function a(i){i.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:SCIENTIFIC_WITH_LEADING_ZERO|SCALE_PRESERVING_SCIENTIFIC|RMC_COMMUNICATION_FAILURE|END-ENHANCEMENT-SECTION|MULTIPLY-CORRESPONDING|SUBTRACT-CORRESPONDING|VERIFICATION-MESSAGE|DIVIDE-CORRESPONDING|ENHANCEMENT-SECTION|CURRENCY_CONVERSION|RMC_SYSTEM_FAILURE|START-OF-SELECTION|MOVE-CORRESPONDING|RMC_INVALID_STATUS|CUSTOMER-FUNCTION|END-OF-DEFINITION|ENHANCEMENT-POINT|SYSTEM-EXCEPTIONS|ADD-CORRESPONDING|SCALE_PRESERVING|SELECTION-SCREEN|CURSOR-SELECTION|END-OF-SELECTION|LOAD-OF-PROGRAM|SCROLL-BOUNDARY|SELECTION-TABLE|EXCEPTION-TABLE|IMPLEMENTATIONS|PARAMETER-TABLE|RIGHT-JUSTIFIED|UNIT_CONVERSION|AUTHORITY-CHECK|LIST-PROCESSING|SIGN_AS_POSTFIX|COL_BACKGROUND|IMPLEMENTATION|INTERFACE-POOL|TRANSFORMATION|IDENTIFICATION|ENDENHANCEMENT|LINE-SELECTION|INITIALIZATION|LEFT-JUSTIFIED|SELECT-OPTIONS|SELECTION-SETS|COMMUNICATION|CORRESPONDING|DECIMAL_SHIFT|PRINT-CONTROL|VALUE-REQUEST|CHAIN-REQUEST|FUNCTION-POOL|FIELD-SYMBOLS|FUNCTIONALITY|INVERTED-DATE|SELECTION-SET|CLASS-METHODS|OUTPUT-LENGTH|CLASS-CODING|COL_NEGATIVE|ERRORMESSAGE|FIELD-GROUPS|HELP-REQUEST|NO-EXTENSION|NO-TOPOFPAGE|REDEFINITION|DISPLAY-MODE|ENDINTERFACE|EXIT-COMMAND|FIELD-SYMBOL|NO-SCROLLING|SHORTDUMP-ID|ACCESSPOLICY|CLASS-EVENTS|COL_POSITIVE|DECLARATIONS|ENHANCEMENTS|FILTER-TABLE|SWITCHSTATES|SYNTAX-CHECK|TRANSPORTING|ASYNCHRONOUS|SYNTAX-TRACE|TOKENIZATION|USER-COMMAND|WITH-HEADING|ABAP-SOURCE|BREAK-POINT|CHAIN-INPUT|COMPRESSION|FIXED-POINT|NEW-SECTION|NON-UNICODE|OCCURRENCES|RESPONSIBLE|SYSTEM-CALL|TRACE-TABLE|ABBREVIATED|CHAR-TO-HEX|END-OF-FILE|ENDFUNCTION|ENVIRONMENT|ASSOCIATION|COL_HEADING|EDITOR-CALL|END-OF-PAGE|ENGINEERING|IMPLEMENTED|INTENSIFIED|RADIOBUTTON|SYSTEM-EXIT|TOP-OF-PAGE|TRANSACTION|APPLICATION|CONCATENATE|DESTINATION|ENHANCEMENT|IMMEDIATELY|NO-GROUPING|PRECOMPILED|REPLACEMENT|TITLE-LINES|ACTIVATION|BYTE-ORDER|CLASS-POOL|CONNECTION|CONVERSION|DEFINITION|DEPARTMENT|EXPIRATION|INHERITING|MESSAGE-ID|NO-HEADING|PERFORMING|QUEUE-ONLY|RIGHTSPACE|SCIENTIFIC|STATUSINFO|STRUCTURES|SYNCPOINTS|WITH-TITLE|ATTRIBUTES|BOUNDARIES|CLASS-DATA|COL_NORMAL|DD\/MM\/YYYY|DESCENDING|INTERFACES|LINE-COUNT|MM\/DD\/YYYY|NON-UNIQUE|PRESERVING|SELECTIONS|STATEMENTS|SUBROUTINE|TRUNCATION|TYPE-POOLS|ARITHMETIC|BACKGROUND|ENDPROVIDE|EXCEPTIONS|IDENTIFIER|INDEX-LINE|OBLIGATORY|PARAMETERS|PERCENTAGE|PUSHBUTTON|RESOLUTION|COMPONENTS|DEALLOCATE|DISCONNECT|DUPLICATES|FIRST-LINE|HEAD-LINES|NO-DISPLAY|OCCURRENCE|RESPECTING|RETURNCODE|SUBMATCHES|TRACE-FILE|ASCENDING|BYPASSING|ENDMODULE|EXCEPTION|EXCLUDING|EXPORTING|INCREMENT|MATCHCODE|PARAMETER|PARTIALLY|PREFERRED|REFERENCE|REPLACING|RETURNING|SELECTION|SEPARATED|SPECIFIED|STATEMENT|TIMESTAMP|TYPE-POOL|ACCEPTING|APPENDAGE|ASSIGNING|COL_GROUP|COMPARING|CONSTANTS|DANGEROUS|IMPORTING|INSTANCES|LEFTSPACE|LOG-POINT|QUICKINFO|READ-ONLY|SCROLLING|SQLSCRIPT|STEP-LOOP|TOP-LINES|TRANSLATE|APPENDING|AUTHORITY|CHARACTER|COMPONENT|CONDITION|DIRECTORY|DUPLICATE|MESSAGING|RECEIVING|SUBSCREEN|ACCORDING|COL_TOTAL|END-LINES|ENDMETHOD|ENDSELECT|EXPANDING|EXTENSION|INCLUDING|INFOTYPES|INTERFACE|INTERVALS|LINE-SIZE|PF-STATUS|PROCEDURE|PROTECTED|REQUESTED|RESUMABLE|RIGHTPLUS|SAP-SPOOL|SECONDARY|STRUCTURE|SUBSTRING|TABLEVIEW|NUMOFCHAR|ADJACENT|ANALYSIS|ASSIGNED|BACKWARD|CHANNELS|CHECKBOX|CONTINUE|CRITICAL|DATAINFO|DD\/MM\/YY|DURATION|ENCODING|ENDCLASS|FUNCTION|LEFTPLUS|LINEFEED|MM\/DD\/YY|OVERFLOW|RECEIVED|SKIPPING|SORTABLE|STANDARD|SUBTRACT|SUPPRESS|TABSTRIP|TITLEBAR|TRUNCATE|UNASSIGN|WHENEVER|ANALYZER|COALESCE|COMMENTS|CONDENSE|DECIMALS|DEFERRED|ENDWHILE|EXPLICIT|KEYWORDS|MESSAGES|POSITION|PRIORITY|RECEIVER|RENAMING|TIMEZONE|TRAILING|ALLOCATE|CENTERED|CIRCULAR|CONTROLS|CURRENCY|DELETING|DESCRIBE|DISTANCE|ENDCATCH|EXPONENT|EXTENDED|GENERATE|IGNORING|INCLUDES|INTERNAL|MAJOR-ID|MODIFIER|NEW-LINE|OPTIONAL|PROPERTY|ROLLBACK|STARTING|SUPPLIED|ABSTRACT|CHANGING|CONTEXTS|CREATING|CUSTOMER|DATABASE|DAYLIGHT|DEFINING|DISTINCT|DIVISION|ENABLING|ENDCHAIN|ESCAPING|HARMLESS|IMPLICIT|INACTIVE|LANGUAGE|MINOR-ID|MULTIPLY|NEW-PAGE|NO-TITLE|POS_HIGH|SEPARATE|TEXTPOOL|TRANSFER|SELECTOR|DBMAXLEN|ITERATOR|ARCHIVE|BIT-XOR|BYTE-CO|COLLECT|COMMENT|CURRENT|DEFAULT|DISPLAY|ENDFORM|EXTRACT|LEADING|LISTBOX|LOCATOR|MEMBERS|METHODS|NESTING|POS_LOW|PROCESS|PROVIDE|RAISING|RESERVE|SECONDS|SUMMARY|VISIBLE|BETWEEN|BIT-AND|BYTE-CS|CLEANUP|COMPUTE|CONTROL|CONVERT|DATASET|ENDCASE|FORWARD|HEADERS|HOTSPOT|INCLUDE|INVERSE|KEEPING|NO-ZERO|OBJECTS|OVERLAY|PADDING|PATTERN|PROGRAM|REFRESH|SECTION|SUMMING|TESTING|VERSION|WINDOWS|WITHOUT|BIT-NOT|BYTE-CA|BYTE-NA|CASTING|CONTEXT|COUNTRY|DYNAMIC|ENABLED|ENDLOOP|EXECUTE|FRIENDS|HANDLER|HEADING|INITIAL|\*-INPUT|LOGFILE|MAXIMUM|MINIMUM|NO-GAPS|NO-SIGN|PRAGMAS|PRIMARY|PRIVATE|REDUCED|REPLACE|REQUEST|RESULTS|UNICODE|WARNING|ALIASES|BYTE-CN|BYTE-NS|CALLING|COL_KEY|COLUMNS|CONNECT|ENDEXEC|ENTRIES|EXCLUDE|FILTERS|FURTHER|HELP-ID|LOGICAL|MAPPING|MESSAGE|NAMETAB|OPTIONS|PACKAGE|PERFORM|RECEIVE|STATICS|VARYING|BINDING|CHARLEN|GREATER|XSTRLEN|ACCEPT|APPEND|DETAIL|ELSEIF|ENDING|ENDTRY|FORMAT|FRAMES|GIVING|HASHED|HEADER|IMPORT|INSERT|MARGIN|MODULE|NATIVE|OBJECT|OFFSET|REMOTE|RESUME|SAVING|SIMPLE|SUBMIT|TABBED|TOKENS|UNIQUE|UNPACK|UPDATE|WINDOW|YELLOW|ACTUAL|ASPECT|CENTER|CURSOR|DELETE|DIALOG|DIVIDE|DURING|ERRORS|EVENTS|EXTEND|FILTER|HANDLE|HAVING|IGNORE|LITTLE|MEMORY|NO-GAP|OCCURS|OPTION|PERSON|PLACES|PUBLIC|REDUCE|REPORT|RESULT|SINGLE|SORTED|SWITCH|SYNTAX|TARGET|VALUES|WRITER|ASSERT|BLOCKS|BOUNDS|BUFFER|CHANGE|COLUMN|COMMIT|CONCAT|COPIES|CREATE|DDMMYY|DEFINE|ENDIAN|ESCAPE|EXPAND|KERNEL|LAYOUT|LEGACY|LEVELS|MMDDYY|NUMBER|OUTPUT|RANGES|READER|RETURN|SCREEN|SEARCH|SELECT|SHARED|SOURCE|STABLE|STATIC|SUBKEY|SUFFIX|TABLES|UNWIND|YYMMDD|ASSIGN|BACKUP|BEFORE|BINARY|BIT-OR|BLANKS|CLIENT|CODING|COMMON|DEMAND|DYNPRO|EXCEPT|EXISTS|EXPORT|FIELDS|GLOBAL|GROUPS|LENGTH|LOCALE|MEDIUM|METHOD|MODIFY|NESTED|OTHERS|REJECT|SCROLL|SUPPLY|SYMBOL|ENDFOR|STRLEN|ALIGN|BEGIN|BOUND|ENDAT|ENTRY|EVENT|FINAL|FLUSH|GRANT|INNER|SHORT|USING|WRITE|AFTER|BLACK|BLOCK|CLOCK|COLOR|COUNT|DUMMY|EMPTY|ENDDO|ENDON|GREEN|INDEX|INOUT|LEAVE|LEVEL|LINES|MODIF|ORDER|OUTER|RANGE|RESET|RETRY|RIGHT|SMART|SPLIT|STYLE|TABLE|THROW|UNDER|UNTIL|UPPER|UTF-8|WHERE|ALIAS|BLANK|CLEAR|CLOSE|EXACT|FETCH|FIRST|FOUND|GROUP|LLANG|LOCAL|OTHER|REGEX|SPOOL|TITLE|TYPES|VALID|WHILE|ALPHA|BOXED|CATCH|CHAIN|CHECK|CLASS|COVER|ENDIF|EQUIV|FIELD|FLOOR|FRAME|INPUT|LOWER|MATCH|NODES|PAGES|PRINT|RAISE|ROUND|SHIFT|SPACE|SPOTS|STAMP|STATE|TASKS|TIMES|TRMAC|ULINE|UNION|VALUE|WIDTH|EQUAL|LOG10|TRUNC|BLOB|CASE|CEIL|CLOB|COND|EXIT|FILE|GAPS|HOLD|INCL|INTO|KEEP|KEYS|LAST|LINE|LONG|LPAD|MAIL|MODE|OPEN|PINK|READ|ROWS|TEST|THEN|ZERO|AREA|BACK|BADI|BYTE|CAST|EDIT|EXEC|FAIL|FIND|FKEQ|FONT|FREE|GKEQ|HIDE|INIT|ITNO|LATE|LOOP|MAIN|MARK|MOVE|NEXT|NULL|RISK|ROLE|UNIT|WAIT|ZONE|BASE|CALL|CODE|DATA|DATE|FKGE|GKGE|HIGH|KIND|LEFT|LIST|MASK|MESH|NAME|NODE|PACK|PAGE|POOL|SEND|SIGN|SIZE|SOME|STOP|TASK|TEXT|TIME|USER|VARY|WITH|WORD|BLUE|CONV|COPY|DEEP|ELSE|FORM|FROM|HINT|ICON|JOIN|LIKE|LOAD|ONLY|PART|SCAN|SKIP|SORT|TYPE|UNIX|VIEW|WHEN|WORK|ACOS|ASIN|ATAN|COSH|EACH|FRAC|LESS|RTTI|SINH|SQRT|TANH|AVG|BIT|DIV|ISO|LET|OUT|PAD|SQL|ALL|CI_|CPI|END|LOB|LPI|MAX|MIN|NEW|OLE|RUN|SET|\?TO|YES|ABS|ADD|AND|BIG|FOR|HDB|JOB|LOW|NOT|SAP|TRY|VIA|XML|ANY|GET|IDS|KEY|MOD|OFF|PUT|RAW|RED|REF|SUM|TAB|XSD|CNT|COS|EXP|LOG|SIN|TAN|XOR|AT|CO|CP|DO|GT|ID|IF|NS|OR|BT|CA|CS|GE|NA|NB|EQ|IN|LT|NE|NO|OF|ON|PF|TO|AS|BY|CN|IS|LE|NP|UP|E|I|M|O|Z|C|X)\b/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}return abap_1}var abnf_1,hasRequiredAbnf;function requireAbnf(){if(hasRequiredAbnf)return abnf_1;hasRequiredAbnf=1,abnf_1=a,a.displayName="abnf",a.aliases=[];function a(i){(function(_e){var pt="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";_e.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+pt+"|<"+pt+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(i)}return abnf_1}var actionscript_1,hasRequiredActionscript;function requireActionscript(){if(hasRequiredActionscript)return actionscript_1;hasRequiredActionscript=1,actionscript_1=a,a.displayName="actionscript",a.aliases=[];function a(i){i.languages.actionscript=i.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),i.languages.actionscript["class-name"].alias="function",delete i.languages.actionscript.parameter,delete i.languages.actionscript["literal-property"],i.languages.markup&&i.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:i.languages.markup}})}return actionscript_1}var ada_1,hasRequiredAda;function requireAda(){if(hasRequiredAda)return ada_1;hasRequiredAda=1,ada_1=a,a.displayName="ada",a.aliases=[];function a(i){i.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],"attr-name":/\b'\w+/,keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}return ada_1}var agda_1,hasRequiredAgda;function requireAgda(){if(hasRequiredAgda)return agda_1;hasRequiredAgda=1,agda_1=a,a.displayName="agda",a.aliases=[];function a(i){(function(_e){_e.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(i)}return agda_1}var al_1,hasRequiredAl;function requireAl(){if(hasRequiredAl)return al_1;hasRequiredAl=1,al_1=a,a.displayName="al",a.aliases=[];function a(i){i.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}return al_1}var antlr4_1,hasRequiredAntlr4;function requireAntlr4(){if(hasRequiredAntlr4)return antlr4_1;hasRequiredAntlr4=1,antlr4_1=a,a.displayName="antlr4",a.aliases=["g4"];function a(i){i.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},i.languages.g4=i.languages.antlr4}return antlr4_1}var apacheconf_1,hasRequiredApacheconf;function requireApacheconf(){if(hasRequiredApacheconf)return apacheconf_1;hasRequiredApacheconf=1,apacheconf_1=a,a.displayName="apacheconf",a.aliases=[];function a(i){i.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}return apacheconf_1}var sql_1,hasRequiredSql;function requireSql(){if(hasRequiredSql)return sql_1;hasRequiredSql=1,sql_1=a,a.displayName="sql",a.aliases=[];function a(i){i.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}return sql_1}var apex_1,hasRequiredApex;function requireApex(){if(hasRequiredApex)return apex_1;hasRequiredApex=1;var a=requireSql();apex_1=i,i.displayName="apex",i.aliases=[];function i(_e){_e.register(a),function(pt){var Lt=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,Gt=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return Lt.source});function Ct(o){return RegExp(o.replace(//g,function(){return Gt}),"i")}var Rt={keyword:Lt,punctuation:/[()\[\]{};,:.<>]/};pt.languages.apex={comment:pt.languages.clike.comment,string:pt.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:pt.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:Ct(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:Rt},{pattern:Ct(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:Rt},{pattern:Ct(/(?=\s*\w+\s*[;=,(){:])/.source),inside:Rt}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:Lt,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(_e)}return apex_1}var apl_1,hasRequiredApl;function requireApl(){if(hasRequiredApl)return apl_1;hasRequiredApl=1,apl_1=a,a.displayName="apl",a.aliases=[];function a(i){i.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}return apl_1}var applescript_1,hasRequiredApplescript;function requireApplescript(){if(hasRequiredApplescript)return applescript_1;hasRequiredApplescript=1,applescript_1=a,a.displayName="applescript",a.aliases=[];function a(i){i.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}return applescript_1}var aql_1,hasRequiredAql;function requireAql(){if(hasRequiredAql)return aql_1;hasRequiredAql=1,aql_1=a,a.displayName="aql",a.aliases=[];function a(i){i.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}return aql_1}var c_1,hasRequiredC;function requireC(){if(hasRequiredC)return c_1;hasRequiredC=1,c_1=a,a.displayName="c",a.aliases=[];function a(i){i.languages.c=i.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),i.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),i.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},i.languages.c.string],char:i.languages.c.char,comment:i.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:i.languages.c}}}}),i.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete i.languages.c.boolean}return c_1}var cpp_1,hasRequiredCpp;function requireCpp(){if(hasRequiredCpp)return cpp_1;hasRequiredCpp=1;var a=requireC();cpp_1=i,i.displayName="cpp",i.aliases=[];function i(_e){_e.register(a),function(pt){var Lt=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,Gt=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return Lt.source});pt.languages.cpp=pt.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return Lt.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:Lt,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),pt.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return Gt})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),pt.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:pt.languages.cpp}}}}),pt.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),pt.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:pt.languages.extend("cpp",{})}}),pt.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},pt.languages.cpp["base-clause"])}(_e)}return cpp_1}var arduino_1,hasRequiredArduino;function requireArduino(){if(hasRequiredArduino)return arduino_1;hasRequiredArduino=1;var a=requireCpp();arduino_1=i,i.displayName="arduino",i.aliases=["ino"];function i(_e){_e.register(a),_e.languages.arduino=_e.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),_e.languages.ino=_e.languages.arduino}return arduino_1}var arff_1,hasRequiredArff;function requireArff(){if(hasRequiredArff)return arff_1;hasRequiredArff=1,arff_1=a,a.displayName="arff",a.aliases=[];function a(i){i.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}return arff_1}var asciidoc_1,hasRequiredAsciidoc;function requireAsciidoc(){if(hasRequiredAsciidoc)return asciidoc_1;hasRequiredAsciidoc=1,asciidoc_1=a,a.displayName="asciidoc",a.aliases=["adoc"];function a(i){(function(_e){var pt={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},Lt=_e.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:pt,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:pt.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:pt,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function Gt(Ct){Ct=Ct.split(" ");for(var Rt={},o=0,it=Ct.length;o>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}return asmatmel_1}var csharp_1,hasRequiredCsharp;function requireCsharp(){if(hasRequiredCsharp)return csharp_1;hasRequiredCsharp=1,csharp_1=a,a.displayName="csharp",a.aliases=["dotnet","cs"];function a(i){(function(_e){function pt(At,Ot){return At.replace(/<<(\d+)>>/g,function(Pt,zt){return"(?:"+Ot[+zt]+")"})}function Lt(At,Ot,Pt){return RegExp(pt(At,Ot),Pt||"")}function Gt(At,Ot){for(var Pt=0;Pt>/g,function(){return"(?:"+At+")"});return At.replace(/<>/g,"[^\\s\\S]")}var Ct={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function Rt(At){return"\\b(?:"+At.trim().replace(/ /g,"|")+")\\b"}var o=Rt(Ct.typeDeclaration),it=RegExp(Rt(Ct.type+" "+Ct.typeDeclaration+" "+Ct.contextual+" "+Ct.other)),xt=Rt(Ct.typeDeclaration+" "+Ct.contextual+" "+Ct.other),et=Rt(Ct.type+" "+Ct.typeDeclaration+" "+Ct.other),Et=Gt(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),mt=Gt(/\((?:[^()]|<>)*\)/.source,2),ut=/@?\b[A-Za-z_]\w*\b/.source,ht=pt(/<<0>>(?:\s*<<1>>)?/.source,[ut,Et]),j=pt(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[xt,ht]),_=/\[\s*(?:,\s*)*\]/.source,rt=pt(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[j,_]),tt=pt(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[Et,mt,_]),st=pt(/\(<<0>>+(?:,<<0>>+)+\)/.source,[tt]),ot=pt(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[st,j,_]),nt={keyword:it,punctuation:/[<>()?,.:[\]]/},vt=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,dt=/"(?:\\.|[^\\"\r\n])*"/.source,bt=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;_e.languages.csharp=_e.languages.extend("clike",{string:[{pattern:Lt(/(^|[^$\\])<<0>>/.source,[bt]),lookbehind:!0,greedy:!0},{pattern:Lt(/(^|[^@$\\])<<0>>/.source,[dt]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:Lt(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[j]),lookbehind:!0,inside:nt},{pattern:Lt(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[ut,ot]),lookbehind:!0,inside:nt},{pattern:Lt(/(\busing\s+)<<0>>(?=\s*=)/.source,[ut]),lookbehind:!0},{pattern:Lt(/(\b<<0>>\s+)<<1>>/.source,[o,ht]),lookbehind:!0,inside:nt},{pattern:Lt(/(\bcatch\s*\(\s*)<<0>>/.source,[j]),lookbehind:!0,inside:nt},{pattern:Lt(/(\bwhere\s+)<<0>>/.source,[ut]),lookbehind:!0},{pattern:Lt(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[rt]),lookbehind:!0,inside:nt},{pattern:Lt(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[ot,et,ut]),inside:nt}],keyword:it,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),_e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),_e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:Lt(/([(,]\s*)<<0>>(?=\s*:)/.source,[ut]),lookbehind:!0,alias:"punctuation"}}),_e.languages.insertBefore("csharp","class-name",{namespace:{pattern:Lt(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[ut]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:Lt(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[mt]),lookbehind:!0,alias:"class-name",inside:nt},"return-type":{pattern:Lt(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[ot,j]),inside:nt,alias:"class-name"},"constructor-invocation":{pattern:Lt(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[ot]),lookbehind:!0,inside:nt,alias:"class-name"},"generic-method":{pattern:Lt(/<<0>>\s*<<1>>(?=\s*\()/.source,[ut,Et]),inside:{function:Lt(/^<<0>>/.source,[ut]),generic:{pattern:RegExp(Et),alias:"class-name",inside:nt}}},"type-list":{pattern:Lt(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[o,ht,ut,ot,it.source,mt,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:Lt(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[ht,mt]),lookbehind:!0,greedy:!0,inside:_e.languages.csharp},keyword:it,"class-name":{pattern:RegExp(ot),greedy:!0,inside:nt},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var ft=dt+"|"+vt,at=pt(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[ft]),yt=Gt(pt(/[^"'/()]|<<0>>|\(<>*\)/.source,[at]),2),St=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,_t=pt(/<<0>>(?:\s*\(<<1>>*\))?/.source,[j,yt]);_e.languages.insertBefore("csharp","class-name",{attribute:{pattern:Lt(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[St,_t]),lookbehind:!0,greedy:!0,inside:{target:{pattern:Lt(/^<<0>>(?=\s*:)/.source,[St]),alias:"keyword"},"attribute-arguments":{pattern:Lt(/\(<<0>>*\)/.source,[yt]),inside:_e.languages.csharp},"class-name":{pattern:RegExp(j),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var Mt=/:[^}\r\n]+/.source,Tt=Gt(pt(/[^"'/()]|<<0>>|\(<>*\)/.source,[at]),2),kt=pt(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Tt,Mt]),wt=Gt(pt(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[ft]),2),ct=pt(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[wt,Mt]);function It(At,Ot){return{interpolation:{pattern:Lt(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[At]),lookbehind:!0,inside:{"format-string":{pattern:Lt(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[Ot,Mt]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:_e.languages.csharp}}},string:/[\s\S]+/}}_e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:Lt(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[kt]),lookbehind:!0,greedy:!0,inside:It(kt,Tt)},{pattern:Lt(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[ct]),lookbehind:!0,greedy:!0,inside:It(ct,wt)}],char:{pattern:RegExp(vt),greedy:!0}}),_e.languages.dotnet=_e.languages.cs=_e.languages.csharp})(i)}return csharp_1}var aspnet_1,hasRequiredAspnet;function requireAspnet(){if(hasRequiredAspnet)return aspnet_1;hasRequiredAspnet=1;var a=requireCsharp();aspnet_1=i,i.displayName="aspnet",i.aliases=[];function i(_e){_e.register(a),_e.languages.aspnet=_e.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:_e.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:_e.languages.csharp}}}),_e.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,_e.languages.insertBefore("inside","punctuation",{directive:_e.languages.aspnet.directive},_e.languages.aspnet.tag.inside["attr-value"]),_e.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),_e.languages.insertBefore("aspnet",_e.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:_e.languages.csharp||{}}})}return aspnet_1}var autohotkey_1,hasRequiredAutohotkey;function requireAutohotkey(){if(hasRequiredAutohotkey)return autohotkey_1;hasRequiredAutohotkey=1,autohotkey_1=a,a.displayName="autohotkey",a.aliases=[];function a(i){i.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,selector:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,important:/#\b(?:AllowSameLineComments|ClipboardTimeout|CommentFlag|DerefChar|ErrorStdOut|EscapeChar|HotkeyInterval|HotkeyModifierTimeout|Hotstring|If|IfTimeout|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Include|IncludeAgain|InputLevel|InstallKeybdHook|InstallMouseHook|KeyHistory|MaxHotkeysPerInterval|MaxMem|MaxThreads|MaxThreadsBuffer|MaxThreadsPerHotkey|MenuMaskKey|NoEnv|NoTrayIcon|Persistent|SingleInstance|UseHook|Warn|WinActivateForce)\b/i,keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}return autohotkey_1}var autoit_1,hasRequiredAutoit;function requireAutoit(){if(hasRequiredAutoit)return autoit_1;hasRequiredAutoit=1,autoit_1=a,a.displayName="autoit",a.aliases=[];function a(i){i.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}return autoit_1}var avisynth_1,hasRequiredAvisynth;function requireAvisynth(){if(hasRequiredAvisynth)return avisynth_1;hasRequiredAvisynth=1,avisynth_1=a,a.displayName="avisynth",a.aliases=["avs"];function a(i){(function(_e){function pt(xt,et){return xt.replace(/<<(\d+)>>/g,function(Et,mt){return et[+mt]})}function Lt(xt,et,Et){return RegExp(pt(xt,et),Et||"")}var Gt=/bool|clip|float|int|string|val/.source,Ct=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),Rt=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),o=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),it=[Ct,Rt,o].join("|");_e.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:Lt(/\b(?:<<0>>)\s+("?)\w+\1/.source,[Gt],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:Lt(/\b(?:<<0>>)\b/.source,[it],"i"),alias:"function"},"type-cast":{pattern:Lt(/\b(?:<<0>>)(?=\s*\()/.source,[Gt],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},_e.languages.avs=_e.languages.avisynth})(i)}return avisynth_1}var avroIdl_1,hasRequiredAvroIdl;function requireAvroIdl(){if(hasRequiredAvroIdl)return avroIdl_1;hasRequiredAvroIdl=1,avroIdl_1=a,a.displayName="avroIdl",a.aliases=[];function a(i){i.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},i.languages.avdl=i.languages["avro-idl"]}return avroIdl_1}var bash_1,hasRequiredBash;function requireBash(){if(hasRequiredBash)return bash_1;hasRequiredBash=1,bash_1=a,a.displayName="bash",a.aliases=["shell"];function a(i){(function(_e){var pt="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",Lt={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},Gt={bash:Lt,environment:{pattern:RegExp("\\$"+pt),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+pt),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};_e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+pt),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:Gt},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:Lt}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:Gt},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:Gt.entity}}],environment:{pattern:RegExp("\\$?"+pt),alias:"constant"},variable:Gt.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},Lt.inside=_e.languages.bash;for(var Ct=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],Rt=Gt.variable[1].inside,o=0;o?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}return basic_1}var batch_1,hasRequiredBatch;function requireBatch(){if(hasRequiredBatch)return batch_1;hasRequiredBatch=1,batch_1=a,a.displayName="batch",a.aliases=[];function a(i){(function(_e){var pt=/%%?[~:\w]+%?|!\S+!/,Lt={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},Gt=/"(?:[\\"]"|[^"])*"(?!")/,Ct=/(?:\b|-)\d+\b/;_e.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:Gt,parameter:Lt,variable:pt,number:Ct,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:Gt,parameter:Lt,variable:pt,number:Ct,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:Gt,parameter:Lt,variable:[pt,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:Ct,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:Gt,parameter:Lt,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:pt,number:Ct,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(i)}return batch_1}var bbcode_1,hasRequiredBbcode;function requireBbcode(){if(hasRequiredBbcode)return bbcode_1;hasRequiredBbcode=1,bbcode_1=a,a.displayName="bbcode",a.aliases=["shortcode"];function a(i){i.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},i.languages.shortcode=i.languages.bbcode}return bbcode_1}var bicep_1,hasRequiredBicep;function requireBicep(){if(hasRequiredBicep)return bicep_1;hasRequiredBicep=1,bicep_1=a,a.displayName="bicep",a.aliases=[];function a(i){i.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},i.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=i.languages.bicep}return bicep_1}var birb_1,hasRequiredBirb;function requireBirb(){if(hasRequiredBirb)return birb_1;hasRequiredBirb=1,birb_1=a,a.displayName="birb",a.aliases=[];function a(i){i.languages.birb=i.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),i.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}return birb_1}var bison_1,hasRequiredBison;function requireBison(){if(hasRequiredBison)return bison_1;hasRequiredBison=1;var a=requireC();bison_1=i,i.displayName="bison",i.aliases=[];function i(_e){_e.register(a),_e.languages.bison=_e.languages.extend("c",{}),_e.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:_e.languages.c}},comment:_e.languages.c.comment,string:_e.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}return bison_1}var bnf_1,hasRequiredBnf;function requireBnf(){if(hasRequiredBnf)return bnf_1;hasRequiredBnf=1,bnf_1=a,a.displayName="bnf",a.aliases=["rbnf"];function a(i){i.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},i.languages.rbnf=i.languages.bnf}return bnf_1}var brainfuck_1,hasRequiredBrainfuck;function requireBrainfuck(){if(hasRequiredBrainfuck)return brainfuck_1;hasRequiredBrainfuck=1,brainfuck_1=a,a.displayName="brainfuck",a.aliases=[];function a(i){i.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}return brainfuck_1}var brightscript_1,hasRequiredBrightscript;function requireBrightscript(){if(hasRequiredBrightscript)return brightscript_1;hasRequiredBrightscript=1,brightscript_1=a,a.displayName="brightscript",a.aliases=[];function a(i){i.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},i.languages.brightscript["directive-statement"].inside.expression.inside=i.languages.brightscript}return brightscript_1}var bro_1,hasRequiredBro;function requireBro(){if(hasRequiredBro)return bro_1;hasRequiredBro=1,bro_1=a,a.displayName="bro",a.aliases=[];function a(i){i.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}return bro_1}var bsl_1,hasRequiredBsl;function requireBsl(){if(hasRequiredBsl)return bsl_1;hasRequiredBsl=1,bsl_1=a,a.displayName="bsl",a.aliases=[];function a(i){i.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},i.languages.oscript=i.languages.bsl}return bsl_1}var cfscript_1,hasRequiredCfscript;function requireCfscript(){if(hasRequiredCfscript)return cfscript_1;hasRequiredCfscript=1,cfscript_1=a,a.displayName="cfscript",a.aliases=[];function a(i){i.languages.cfscript=i.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|<=?|>=?|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|[?:]/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),i.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete i.languages.cfscript["class-name"],i.languages.cfc=i.languages.cfscript}return cfscript_1}var chaiscript_1,hasRequiredChaiscript;function requireChaiscript(){if(hasRequiredChaiscript)return chaiscript_1;hasRequiredChaiscript=1;var a=requireCpp();chaiscript_1=i,i.displayName="chaiscript",i.aliases=[];function i(_e){_e.register(a),_e.languages.chaiscript=_e.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[_e.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),_e.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),_e.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:_e.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}return chaiscript_1}var cil_1,hasRequiredCil;function requireCil(){if(hasRequiredCil)return cil_1;hasRequiredCil=1,cil_1=a,a.displayName="cil",a.aliases=[];function a(i){i.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}return cil_1}var clojure_1,hasRequiredClojure;function requireClojure(){if(hasRequiredClojure)return clojure_1;hasRequiredClojure=1,clojure_1=a,a.displayName="clojure",a.aliases=[];function a(i){i.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}return clojure_1}var cmake_1,hasRequiredCmake;function requireCmake(){if(hasRequiredCmake)return cmake_1;hasRequiredCmake=1,cmake_1=a,a.displayName="cmake",a.aliases=[];function a(i){i.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_(?:BINARY_DIR|DESCRIPTION|HOMEPAGE_URL|NAME|SOURCE_DIR|VERSION|VERSION_(?:MAJOR|MINOR|PATCH|TWEAK))|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE|XCODE_VERSION))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|GLOBAL_KEYWORD|GLOBAL_PROJECT_TYPES|GLOBAL_ROOTNAMESPACE|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}return cmake_1}var cobol_1,hasRequiredCobol;function requireCobol(){if(hasRequiredCobol)return cobol_1;hasRequiredCobol=1,cobol_1=a,a.displayName="cobol",a.aliases=[];function a(i){i.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}return cobol_1}var coffeescript_1,hasRequiredCoffeescript;function requireCoffeescript(){if(hasRequiredCoffeescript)return coffeescript_1;hasRequiredCoffeescript=1,coffeescript_1=a,a.displayName="coffeescript",a.aliases=["coffee"];function a(i){(function(_e){var pt=/#(?!\{).+/,Lt={pattern:/#\{[^}]+\}/,alias:"variable"};_e.languages.coffeescript=_e.languages.extend("javascript",{comment:pt,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:Lt}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),_e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:pt,interpolation:Lt}}}),_e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:_e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:Lt}}]}),_e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete _e.languages.coffeescript["template-string"],_e.languages.coffee=_e.languages.coffeescript})(i)}return coffeescript_1}var concurnas_1,hasRequiredConcurnas;function requireConcurnas(){if(hasRequiredConcurnas)return concurnas_1;hasRequiredConcurnas=1,concurnas_1=a,a.displayName="concurnas",a.aliases=["conc"];function a(i){i.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},i.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:i.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:i.languages.concurnas},string:/[\s\S]+/}}}),i.languages.conc=i.languages.concurnas}return concurnas_1}var coq_1,hasRequiredCoq;function requireCoq(){if(hasRequiredCoq)return coq_1;hasRequiredCoq=1,coq_1=a,a.displayName="coq",a.aliases=[];function a(i){(function(_e){for(var pt=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|)*\*\)/.source,Lt=0;Lt<2;Lt++)pt=pt.replace(//g,function(){return pt});pt=pt.replace(//g,"[]"),_e.languages.coq={comment:RegExp(pt),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|)*\]/.source.replace(//g,function(){return pt})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(pt),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(i)}return coq_1}var ruby_1,hasRequiredRuby;function requireRuby(){if(hasRequiredRuby)return ruby_1;hasRequiredRuby=1,ruby_1=a,a.displayName="ruby",a.aliases=["rb"];function a(i){(function(_e){_e.languages.ruby=_e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),_e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var pt={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:_e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete _e.languages.ruby.function;var Lt="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",Gt=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;_e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+Lt+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:pt,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:pt,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+Gt),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+Gt+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),_e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+Lt),greedy:!0,inside:{interpolation:pt,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:pt,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:pt,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+Lt),greedy:!0,inside:{interpolation:pt,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:pt,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete _e.languages.ruby.string,_e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),_e.languages.rb=_e.languages.ruby})(i)}return ruby_1}var crystal_1,hasRequiredCrystal;function requireCrystal(){if(hasRequiredCrystal)return crystal_1;hasRequiredCrystal=1;var a=requireRuby();crystal_1=i,i.displayName="crystal",i.aliases=[];function i(_e){_e.register(a),function(pt){pt.languages.crystal=pt.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,pt.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),pt.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:pt.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:pt.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(_e)}return crystal_1}var cshtml_1,hasRequiredCshtml;function requireCshtml(){if(hasRequiredCshtml)return cshtml_1;hasRequiredCshtml=1;var a=requireCsharp();cshtml_1=i,i.displayName="cshtml",i.aliases=["razor"];function i(_e){_e.register(a),function(pt){var Lt=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,Gt=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function Ct(j,_){for(var rt=0;rt<_;rt++)j=j.replace(//g,function(){return"(?:"+j+")"});return j.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+Gt+")").replace(//g,"(?:"+Lt+")")}var Rt=Ct(/\((?:[^()'"@/]|||)*\)/.source,2),o=Ct(/\[(?:[^\[\]'"@/]|||)*\]/.source,2),it=Ct(/\{(?:[^{}'"@/]|||)*\}/.source,2),xt=Ct(/<(?:[^<>'"@/]|||)*>/.source,2),et=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,Et=/(?!\d)[^\s>\/=$<%]+/.source+et+/\s*\/?>/.source,mt=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+et+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+Et+"|"+Ct(/<\1/.source+et+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+Et+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/|\+|~|\|\|/,punctuation:/[(),]/}},_e.languages.css.atrule.inside["selector-function-argument"].inside=Lt,_e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var Gt={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},Ct={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};_e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:Gt,number:Ct,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:Gt,number:Ct})})(i)}return cssExtras_1}var csv_1,hasRequiredCsv;function requireCsv(){if(hasRequiredCsv)return csv_1;hasRequiredCsv=1,csv_1=a,a.displayName="csv",a.aliases=[];function a(i){i.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}return csv_1}var cypher_1,hasRequiredCypher;function requireCypher(){if(hasRequiredCypher)return cypher_1;hasRequiredCypher=1,cypher_1=a,a.displayName="cypher",a.aliases=[];function a(i){i.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}return cypher_1}var d_1,hasRequiredD;function requireD(){if(hasRequiredD)return d_1;hasRequiredD=1,d_1=a,a.displayName="d",a.aliases=[];function a(i){i.languages.d=i.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),i.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),i.languages.insertBefore("d","keyword",{property:/\B@\w*/}),i.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}return d_1}var dart_1,hasRequiredDart;function requireDart(){if(hasRequiredDart)return dart_1;hasRequiredDart=1,dart_1=a,a.displayName="dart",a.aliases=[];function a(i){(function(_e){var pt=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],Lt=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,Gt={pattern:RegExp(Lt+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};_e.languages.dart=_e.languages.extend("clike",{"class-name":[Gt,{pattern:RegExp(Lt+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:Gt.inside}],keyword:pt,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),_e.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:_e.languages.dart}}},string:/[\s\S]+/}},string:void 0}),_e.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),_e.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":Gt,keyword:pt,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(i)}return dart_1}var dataweave_1,hasRequiredDataweave;function requireDataweave(){if(hasRequiredDataweave)return dataweave_1;hasRequiredDataweave=1,dataweave_1=a,a.displayName="dataweave",a.aliases=[];function a(i){(function(_e){_e.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(i)}return dataweave_1}var dax_1,hasRequiredDax;function requireDax(){if(hasRequiredDax)return dax_1;hasRequiredDax=1,dax_1=a,a.displayName="dax",a.aliases=[];function a(i){i.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}return dax_1}var dhall_1,hasRequiredDhall;function requireDhall(){if(hasRequiredDhall)return dhall_1;hasRequiredDhall=1,dhall_1=a,a.displayName="dhall",a.aliases=[];function a(i){i.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},i.languages.dhall.string.inside.interpolation.inside.expression.inside=i.languages.dhall}return dhall_1}var diff_1,hasRequiredDiff;function requireDiff(){if(hasRequiredDiff)return diff_1;hasRequiredDiff=1,diff_1=a,a.displayName="diff",a.aliases=[];function a(i){(function(_e){_e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var pt={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(pt).forEach(function(Lt){var Gt=pt[Lt],Ct=[];/^\w+$/.test(Lt)||Ct.push(/\w+/.exec(Lt)[0]),Lt==="diff"&&Ct.push("bold"),_e.languages.diff[Lt]={pattern:RegExp("^(?:["+Gt+`].*(?:\r + */var _e=function(pt){var Lt=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,Gt=0,Ct={},Rt={manual:pt.Prism&&pt.Prism.manual,disableWorkerMessageHandler:pt.Prism&&pt.Prism.disableWorkerMessageHandler,util:{encode:function rt(tt){return tt instanceof o?new o(tt.type,rt(tt.content),tt.alias):Array.isArray(tt)?tt.map(rt):tt.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(ot){var rt=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(ot.stack)||[])[1];if(rt){var tt=document.getElementsByTagName("script");for(var st in tt)if(tt[st].src==rt)return tt[st]}return null}},isActive:function(rt,tt,st){for(var ot="no-"+tt;rt;){var nt=rt.classList;if(nt.contains(tt))return!0;if(nt.contains(ot))return!1;rt=rt.parentElement}return!!st}},languages:{plain:Ct,plaintext:Ct,text:Ct,txt:Ct,extend:function(rt,tt){var st=Rt.util.clone(Rt.languages[rt]);for(var ot in tt)st[ot]=tt[ot];return st},insertBefore:function(rt,tt,st,ot){ot=ot||Rt.languages;var nt=ot[rt],vt={};for(var dt in nt)if(nt.hasOwnProperty(dt)){if(dt==tt)for(var bt in st)st.hasOwnProperty(bt)&&(vt[bt]=st[bt]);st.hasOwnProperty(dt)||(vt[dt]=nt[dt])}var ft=ot[rt];return ot[rt]=vt,Rt.languages.DFS(Rt.languages,function(at,mt){mt===ft&&at!=rt&&(this[at]=vt)}),vt},DFS:function rt(tt,st,ot,nt){nt=nt||{};var vt=Rt.util.objId;for(var dt in tt)if(tt.hasOwnProperty(dt)){st.call(tt,dt,tt[dt],ot||dt);var bt=tt[dt],ft=Rt.util.type(bt);ft==="Object"&&!nt[vt(bt)]?(nt[vt(bt)]=!0,rt(bt,st,null,nt)):ft==="Array"&&!nt[vt(bt)]&&(nt[vt(bt)]=!0,rt(bt,st,dt,nt))}}},plugins:{},highlightAll:function(rt,tt){Rt.highlightAllUnder(document,rt,tt)},highlightAllUnder:function(rt,tt,st){var ot={callback:st,container:rt,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};Rt.hooks.run("before-highlightall",ot),ot.elements=Array.prototype.slice.apply(ot.container.querySelectorAll(ot.selector)),Rt.hooks.run("before-all-elements-highlight",ot);for(var nt=0,vt;vt=ot.elements[nt++];)Rt.highlightElement(vt,tt===!0,ot.callback)},highlightElement:function(rt,tt,st){var ot=Rt.util.getLanguage(rt),nt=Rt.languages[ot];Rt.util.setLanguage(rt,ot);var vt=rt.parentElement;vt&&vt.nodeName.toLowerCase()==="pre"&&Rt.util.setLanguage(vt,ot);var dt=rt.textContent,bt={element:rt,language:ot,grammar:nt,code:dt};function ft(mt){bt.highlightedCode=mt,Rt.hooks.run("before-insert",bt),bt.element.innerHTML=bt.highlightedCode,Rt.hooks.run("after-highlight",bt),Rt.hooks.run("complete",bt),st&&st.call(bt.element)}if(Rt.hooks.run("before-sanity-check",bt),vt=bt.element.parentElement,vt&&vt.nodeName.toLowerCase()==="pre"&&!vt.hasAttribute("tabindex")&&vt.setAttribute("tabindex","0"),!bt.code){Rt.hooks.run("complete",bt),st&&st.call(bt.element);return}if(Rt.hooks.run("before-highlight",bt),!bt.grammar){ft(Rt.util.encode(bt.code));return}if(tt&&pt.Worker){var at=new Worker(Rt.filename);at.onmessage=function(mt){ft(mt.data)},at.postMessage(JSON.stringify({language:bt.language,code:bt.code,immediateClose:!0}))}else ft(Rt.highlight(bt.code,bt.grammar,bt.language))},highlight:function(rt,tt,st){var ot={code:rt,grammar:tt,language:st};if(Rt.hooks.run("before-tokenize",ot),!ot.grammar)throw new Error('The language "'+ot.language+'" has no grammar.');return ot.tokens=Rt.tokenize(ot.code,ot.grammar),Rt.hooks.run("after-tokenize",ot),o.stringify(Rt.util.encode(ot.tokens),ot.language)},tokenize:function(rt,tt){var st=tt.rest;if(st){for(var ot in st)tt[ot]=st[ot];delete tt.rest}var nt=new et;return Tt(nt,nt.head,rt),xt(rt,nt,tt,nt.head,0),ut(nt)},hooks:{all:{},add:function(rt,tt){var st=Rt.hooks.all;st[rt]=st[rt]||[],st[rt].push(tt)},run:function(rt,tt){var st=Rt.hooks.all[rt];if(!(!st||!st.length))for(var ot=0,nt;nt=st[ot++];)nt(tt)}},Token:o};pt.Prism=Rt;function o(rt,tt,st,ot){this.type=rt,this.content=tt,this.alias=st,this.length=(ot||"").length|0}o.stringify=function rt(tt,st){if(typeof tt=="string")return tt;if(Array.isArray(tt)){var ot="";return tt.forEach(function(ft){ot+=rt(ft,st)}),ot}var nt={type:tt.type,content:rt(tt.content,st),tag:"span",classes:["token",tt.type],attributes:{},language:st},vt=tt.alias;vt&&(Array.isArray(vt)?Array.prototype.push.apply(nt.classes,vt):nt.classes.push(vt)),Rt.hooks.run("wrap",nt);var dt="";for(var bt in nt.attributes)dt+=" "+bt+'="'+(nt.attributes[bt]||"").replace(/"/g,""")+'"';return"<"+nt.tag+' class="'+nt.classes.join(" ")+'"'+dt+">"+nt.content+""};function it(rt,tt,st,ot){rt.lastIndex=tt;var nt=rt.exec(st);if(nt&&ot&&nt[1]){var vt=nt[1].length;nt.index+=vt,nt[0]=nt[0].slice(vt)}return nt}function xt(rt,tt,st,ot,nt,vt){for(var dt in st)if(!(!st.hasOwnProperty(dt)||!st[dt])){var bt=st[dt];bt=Array.isArray(bt)?bt:[bt];for(var ft=0;ft=vt.reach);ct+=wt.value.length,wt=wt.next){var It=wt.value;if(tt.length>rt.length)return;if(!(It instanceof o)){var At=1,Ot;if(_t){if(Ot=it(kt,ct,rt,St),!Ot||Ot.index>=rt.length)break;var Nt=Ot.index,Pt=Ot.index+Ot[0].length,zt=ct;for(zt+=wt.value.length;Nt>=zt;)wt=wt.next,zt+=wt.value.length;if(zt-=wt.value.length,ct=zt,wt.value instanceof o)continue;for(var Dt=wt;Dt!==tt.tail&&(ztvt.reach&&(vt.reach=Vt);var Xt=wt.prev;Ut&&(Xt=Tt(tt,Xt,Ut),ct+=Ut.length),yt(tt,Xt,At);var qt=new o(dt,mt?Rt.tokenize($t,mt):$t,Mt,$t);if(wt=Tt(tt,Xt,qt),Ht&&Tt(tt,wt,Ht),At>1){var er={cause:dt+","+ft,reach:Vt};xt(rt,tt,st,wt.prev,ct,er),vt&&er.reach>vt.reach&&(vt.reach=er.reach)}}}}}}function et(){var rt={value:null,prev:null,next:null},tt={value:null,prev:rt,next:null};rt.next=tt,this.head=rt,this.tail=tt,this.length=0}function Tt(rt,tt,st){var ot=tt.next,nt={value:st,prev:tt,next:ot};return tt.next=nt,ot.prev=nt,rt.length++,nt}function yt(rt,tt,st){for(var ot=tt.next,nt=0;nt/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},a.languages.markup.tag.inside["attr-value"].inside.entity=a.languages.markup.entity,a.languages.markup.doctype.inside["internal-subset"].inside=a.languages.markup,a.hooks.add("wrap",function(i){i.type==="entity"&&(i.attributes.title=i.content.value.replace(/&/,"&"))}),Object.defineProperty(a.languages.markup.tag,"addInlined",{value:function(_e,pt){var Lt={};Lt["language-"+pt]={pattern:/(^$)/i,lookbehind:!0,inside:a.languages[pt]},Lt.cdata=/^$/i;var Gt={"included-cdata":{pattern://i,inside:Lt}};Gt["language-"+pt]={pattern:/[\s\S]+/,inside:a.languages[pt]};var Ct={};Ct[_e]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return _e}),"i"),lookbehind:!0,greedy:!0,inside:Gt},a.languages.insertBefore("markup","cdata",Ct)}}),Object.defineProperty(a.languages.markup.tag,"addAttribute",{value:function(i,_e){a.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+i+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[_e,"language-"+_e],inside:a.languages[_e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),a.languages.html=a.languages.markup,a.languages.mathml=a.languages.markup,a.languages.svg=a.languages.markup,a.languages.xml=a.languages.extend("markup",{}),a.languages.ssml=a.languages.xml,a.languages.atom=a.languages.xml,a.languages.rss=a.languages.xml}var css_1=css$1;css$1.displayName="css";css$1.aliases=[];function css$1(a){(function(i){var _e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;i.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+_e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+_e.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+_e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:_e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},i.languages.css.atrule.inside.rest=i.languages.css;var pt=i.languages.markup;pt&&(pt.tag.addInlined("style","css"),pt.tag.addAttribute("style","css"))})(a)}var clike_1=clike$1;clike$1.displayName="clike";clike$1.aliases=[];function clike$1(a){a.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}var javascript_1=javascript;javascript.displayName="javascript";javascript.aliases=["js"];function javascript(a){a.languages.javascript=a.languages.extend("clike",{"class-name":[a.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),a.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,a.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:a.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:a.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:a.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:a.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:a.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),a.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:a.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),a.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),a.languages.markup&&(a.languages.markup.tag.addInlined("script","javascript"),a.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),a.languages.js=a.languages.javascript}var ctx=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof commonjsGlobal=="object"?commonjsGlobal:{},restore=capture();ctx.Prism={manual:!0,disableWorkerMessageHandler:!0};var h=hastscriptExports,decode=parseEntities_1,Prism=prismCoreExports,markup=markup_1,css=css_1,clike=clike_1,js=javascript_1;restore();var own={}.hasOwnProperty;function Refractor(){}Refractor.prototype=Prism;var refract=new Refractor,core=refract;refract.highlight=highlight;refract.register=register;refract.alias=alias;refract.registered=registered;refract.listLanguages=listLanguages;register(markup);register(css);register(clike);register(js);refract.util.encode=encode;refract.Token.stringify=stringify;function register(a){if(typeof a!="function"||!a.displayName)throw new Error("Expected `function` for `grammar`, got `"+a+"`");refract.languages[a.displayName]===void 0&&a(refract)}function alias(a,i){var _e=refract.languages,pt=a,Lt,Gt,Ct,Rt;i&&(pt={},pt[a]=i);for(Lt in pt)for(Gt=pt[Lt],Gt=typeof Gt=="string"?[Gt]:Gt,Ct=Gt.length,Rt=-1;++Rt code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}};var abap_1,hasRequiredAbap;function requireAbap(){if(hasRequiredAbap)return abap_1;hasRequiredAbap=1,abap_1=a,a.displayName="abap",a.aliases=[];function a(i){i.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:SCIENTIFIC_WITH_LEADING_ZERO|SCALE_PRESERVING_SCIENTIFIC|RMC_COMMUNICATION_FAILURE|END-ENHANCEMENT-SECTION|MULTIPLY-CORRESPONDING|SUBTRACT-CORRESPONDING|VERIFICATION-MESSAGE|DIVIDE-CORRESPONDING|ENHANCEMENT-SECTION|CURRENCY_CONVERSION|RMC_SYSTEM_FAILURE|START-OF-SELECTION|MOVE-CORRESPONDING|RMC_INVALID_STATUS|CUSTOMER-FUNCTION|END-OF-DEFINITION|ENHANCEMENT-POINT|SYSTEM-EXCEPTIONS|ADD-CORRESPONDING|SCALE_PRESERVING|SELECTION-SCREEN|CURSOR-SELECTION|END-OF-SELECTION|LOAD-OF-PROGRAM|SCROLL-BOUNDARY|SELECTION-TABLE|EXCEPTION-TABLE|IMPLEMENTATIONS|PARAMETER-TABLE|RIGHT-JUSTIFIED|UNIT_CONVERSION|AUTHORITY-CHECK|LIST-PROCESSING|SIGN_AS_POSTFIX|COL_BACKGROUND|IMPLEMENTATION|INTERFACE-POOL|TRANSFORMATION|IDENTIFICATION|ENDENHANCEMENT|LINE-SELECTION|INITIALIZATION|LEFT-JUSTIFIED|SELECT-OPTIONS|SELECTION-SETS|COMMUNICATION|CORRESPONDING|DECIMAL_SHIFT|PRINT-CONTROL|VALUE-REQUEST|CHAIN-REQUEST|FUNCTION-POOL|FIELD-SYMBOLS|FUNCTIONALITY|INVERTED-DATE|SELECTION-SET|CLASS-METHODS|OUTPUT-LENGTH|CLASS-CODING|COL_NEGATIVE|ERRORMESSAGE|FIELD-GROUPS|HELP-REQUEST|NO-EXTENSION|NO-TOPOFPAGE|REDEFINITION|DISPLAY-MODE|ENDINTERFACE|EXIT-COMMAND|FIELD-SYMBOL|NO-SCROLLING|SHORTDUMP-ID|ACCESSPOLICY|CLASS-EVENTS|COL_POSITIVE|DECLARATIONS|ENHANCEMENTS|FILTER-TABLE|SWITCHSTATES|SYNTAX-CHECK|TRANSPORTING|ASYNCHRONOUS|SYNTAX-TRACE|TOKENIZATION|USER-COMMAND|WITH-HEADING|ABAP-SOURCE|BREAK-POINT|CHAIN-INPUT|COMPRESSION|FIXED-POINT|NEW-SECTION|NON-UNICODE|OCCURRENCES|RESPONSIBLE|SYSTEM-CALL|TRACE-TABLE|ABBREVIATED|CHAR-TO-HEX|END-OF-FILE|ENDFUNCTION|ENVIRONMENT|ASSOCIATION|COL_HEADING|EDITOR-CALL|END-OF-PAGE|ENGINEERING|IMPLEMENTED|INTENSIFIED|RADIOBUTTON|SYSTEM-EXIT|TOP-OF-PAGE|TRANSACTION|APPLICATION|CONCATENATE|DESTINATION|ENHANCEMENT|IMMEDIATELY|NO-GROUPING|PRECOMPILED|REPLACEMENT|TITLE-LINES|ACTIVATION|BYTE-ORDER|CLASS-POOL|CONNECTION|CONVERSION|DEFINITION|DEPARTMENT|EXPIRATION|INHERITING|MESSAGE-ID|NO-HEADING|PERFORMING|QUEUE-ONLY|RIGHTSPACE|SCIENTIFIC|STATUSINFO|STRUCTURES|SYNCPOINTS|WITH-TITLE|ATTRIBUTES|BOUNDARIES|CLASS-DATA|COL_NORMAL|DD\/MM\/YYYY|DESCENDING|INTERFACES|LINE-COUNT|MM\/DD\/YYYY|NON-UNIQUE|PRESERVING|SELECTIONS|STATEMENTS|SUBROUTINE|TRUNCATION|TYPE-POOLS|ARITHMETIC|BACKGROUND|ENDPROVIDE|EXCEPTIONS|IDENTIFIER|INDEX-LINE|OBLIGATORY|PARAMETERS|PERCENTAGE|PUSHBUTTON|RESOLUTION|COMPONENTS|DEALLOCATE|DISCONNECT|DUPLICATES|FIRST-LINE|HEAD-LINES|NO-DISPLAY|OCCURRENCE|RESPECTING|RETURNCODE|SUBMATCHES|TRACE-FILE|ASCENDING|BYPASSING|ENDMODULE|EXCEPTION|EXCLUDING|EXPORTING|INCREMENT|MATCHCODE|PARAMETER|PARTIALLY|PREFERRED|REFERENCE|REPLACING|RETURNING|SELECTION|SEPARATED|SPECIFIED|STATEMENT|TIMESTAMP|TYPE-POOL|ACCEPTING|APPENDAGE|ASSIGNING|COL_GROUP|COMPARING|CONSTANTS|DANGEROUS|IMPORTING|INSTANCES|LEFTSPACE|LOG-POINT|QUICKINFO|READ-ONLY|SCROLLING|SQLSCRIPT|STEP-LOOP|TOP-LINES|TRANSLATE|APPENDING|AUTHORITY|CHARACTER|COMPONENT|CONDITION|DIRECTORY|DUPLICATE|MESSAGING|RECEIVING|SUBSCREEN|ACCORDING|COL_TOTAL|END-LINES|ENDMETHOD|ENDSELECT|EXPANDING|EXTENSION|INCLUDING|INFOTYPES|INTERFACE|INTERVALS|LINE-SIZE|PF-STATUS|PROCEDURE|PROTECTED|REQUESTED|RESUMABLE|RIGHTPLUS|SAP-SPOOL|SECONDARY|STRUCTURE|SUBSTRING|TABLEVIEW|NUMOFCHAR|ADJACENT|ANALYSIS|ASSIGNED|BACKWARD|CHANNELS|CHECKBOX|CONTINUE|CRITICAL|DATAINFO|DD\/MM\/YY|DURATION|ENCODING|ENDCLASS|FUNCTION|LEFTPLUS|LINEFEED|MM\/DD\/YY|OVERFLOW|RECEIVED|SKIPPING|SORTABLE|STANDARD|SUBTRACT|SUPPRESS|TABSTRIP|TITLEBAR|TRUNCATE|UNASSIGN|WHENEVER|ANALYZER|COALESCE|COMMENTS|CONDENSE|DECIMALS|DEFERRED|ENDWHILE|EXPLICIT|KEYWORDS|MESSAGES|POSITION|PRIORITY|RECEIVER|RENAMING|TIMEZONE|TRAILING|ALLOCATE|CENTERED|CIRCULAR|CONTROLS|CURRENCY|DELETING|DESCRIBE|DISTANCE|ENDCATCH|EXPONENT|EXTENDED|GENERATE|IGNORING|INCLUDES|INTERNAL|MAJOR-ID|MODIFIER|NEW-LINE|OPTIONAL|PROPERTY|ROLLBACK|STARTING|SUPPLIED|ABSTRACT|CHANGING|CONTEXTS|CREATING|CUSTOMER|DATABASE|DAYLIGHT|DEFINING|DISTINCT|DIVISION|ENABLING|ENDCHAIN|ESCAPING|HARMLESS|IMPLICIT|INACTIVE|LANGUAGE|MINOR-ID|MULTIPLY|NEW-PAGE|NO-TITLE|POS_HIGH|SEPARATE|TEXTPOOL|TRANSFER|SELECTOR|DBMAXLEN|ITERATOR|ARCHIVE|BIT-XOR|BYTE-CO|COLLECT|COMMENT|CURRENT|DEFAULT|DISPLAY|ENDFORM|EXTRACT|LEADING|LISTBOX|LOCATOR|MEMBERS|METHODS|NESTING|POS_LOW|PROCESS|PROVIDE|RAISING|RESERVE|SECONDS|SUMMARY|VISIBLE|BETWEEN|BIT-AND|BYTE-CS|CLEANUP|COMPUTE|CONTROL|CONVERT|DATASET|ENDCASE|FORWARD|HEADERS|HOTSPOT|INCLUDE|INVERSE|KEEPING|NO-ZERO|OBJECTS|OVERLAY|PADDING|PATTERN|PROGRAM|REFRESH|SECTION|SUMMING|TESTING|VERSION|WINDOWS|WITHOUT|BIT-NOT|BYTE-CA|BYTE-NA|CASTING|CONTEXT|COUNTRY|DYNAMIC|ENABLED|ENDLOOP|EXECUTE|FRIENDS|HANDLER|HEADING|INITIAL|\*-INPUT|LOGFILE|MAXIMUM|MINIMUM|NO-GAPS|NO-SIGN|PRAGMAS|PRIMARY|PRIVATE|REDUCED|REPLACE|REQUEST|RESULTS|UNICODE|WARNING|ALIASES|BYTE-CN|BYTE-NS|CALLING|COL_KEY|COLUMNS|CONNECT|ENDEXEC|ENTRIES|EXCLUDE|FILTERS|FURTHER|HELP-ID|LOGICAL|MAPPING|MESSAGE|NAMETAB|OPTIONS|PACKAGE|PERFORM|RECEIVE|STATICS|VARYING|BINDING|CHARLEN|GREATER|XSTRLEN|ACCEPT|APPEND|DETAIL|ELSEIF|ENDING|ENDTRY|FORMAT|FRAMES|GIVING|HASHED|HEADER|IMPORT|INSERT|MARGIN|MODULE|NATIVE|OBJECT|OFFSET|REMOTE|RESUME|SAVING|SIMPLE|SUBMIT|TABBED|TOKENS|UNIQUE|UNPACK|UPDATE|WINDOW|YELLOW|ACTUAL|ASPECT|CENTER|CURSOR|DELETE|DIALOG|DIVIDE|DURING|ERRORS|EVENTS|EXTEND|FILTER|HANDLE|HAVING|IGNORE|LITTLE|MEMORY|NO-GAP|OCCURS|OPTION|PERSON|PLACES|PUBLIC|REDUCE|REPORT|RESULT|SINGLE|SORTED|SWITCH|SYNTAX|TARGET|VALUES|WRITER|ASSERT|BLOCKS|BOUNDS|BUFFER|CHANGE|COLUMN|COMMIT|CONCAT|COPIES|CREATE|DDMMYY|DEFINE|ENDIAN|ESCAPE|EXPAND|KERNEL|LAYOUT|LEGACY|LEVELS|MMDDYY|NUMBER|OUTPUT|RANGES|READER|RETURN|SCREEN|SEARCH|SELECT|SHARED|SOURCE|STABLE|STATIC|SUBKEY|SUFFIX|TABLES|UNWIND|YYMMDD|ASSIGN|BACKUP|BEFORE|BINARY|BIT-OR|BLANKS|CLIENT|CODING|COMMON|DEMAND|DYNPRO|EXCEPT|EXISTS|EXPORT|FIELDS|GLOBAL|GROUPS|LENGTH|LOCALE|MEDIUM|METHOD|MODIFY|NESTED|OTHERS|REJECT|SCROLL|SUPPLY|SYMBOL|ENDFOR|STRLEN|ALIGN|BEGIN|BOUND|ENDAT|ENTRY|EVENT|FINAL|FLUSH|GRANT|INNER|SHORT|USING|WRITE|AFTER|BLACK|BLOCK|CLOCK|COLOR|COUNT|DUMMY|EMPTY|ENDDO|ENDON|GREEN|INDEX|INOUT|LEAVE|LEVEL|LINES|MODIF|ORDER|OUTER|RANGE|RESET|RETRY|RIGHT|SMART|SPLIT|STYLE|TABLE|THROW|UNDER|UNTIL|UPPER|UTF-8|WHERE|ALIAS|BLANK|CLEAR|CLOSE|EXACT|FETCH|FIRST|FOUND|GROUP|LLANG|LOCAL|OTHER|REGEX|SPOOL|TITLE|TYPES|VALID|WHILE|ALPHA|BOXED|CATCH|CHAIN|CHECK|CLASS|COVER|ENDIF|EQUIV|FIELD|FLOOR|FRAME|INPUT|LOWER|MATCH|NODES|PAGES|PRINT|RAISE|ROUND|SHIFT|SPACE|SPOTS|STAMP|STATE|TASKS|TIMES|TRMAC|ULINE|UNION|VALUE|WIDTH|EQUAL|LOG10|TRUNC|BLOB|CASE|CEIL|CLOB|COND|EXIT|FILE|GAPS|HOLD|INCL|INTO|KEEP|KEYS|LAST|LINE|LONG|LPAD|MAIL|MODE|OPEN|PINK|READ|ROWS|TEST|THEN|ZERO|AREA|BACK|BADI|BYTE|CAST|EDIT|EXEC|FAIL|FIND|FKEQ|FONT|FREE|GKEQ|HIDE|INIT|ITNO|LATE|LOOP|MAIN|MARK|MOVE|NEXT|NULL|RISK|ROLE|UNIT|WAIT|ZONE|BASE|CALL|CODE|DATA|DATE|FKGE|GKGE|HIGH|KIND|LEFT|LIST|MASK|MESH|NAME|NODE|PACK|PAGE|POOL|SEND|SIGN|SIZE|SOME|STOP|TASK|TEXT|TIME|USER|VARY|WITH|WORD|BLUE|CONV|COPY|DEEP|ELSE|FORM|FROM|HINT|ICON|JOIN|LIKE|LOAD|ONLY|PART|SCAN|SKIP|SORT|TYPE|UNIX|VIEW|WHEN|WORK|ACOS|ASIN|ATAN|COSH|EACH|FRAC|LESS|RTTI|SINH|SQRT|TANH|AVG|BIT|DIV|ISO|LET|OUT|PAD|SQL|ALL|CI_|CPI|END|LOB|LPI|MAX|MIN|NEW|OLE|RUN|SET|\?TO|YES|ABS|ADD|AND|BIG|FOR|HDB|JOB|LOW|NOT|SAP|TRY|VIA|XML|ANY|GET|IDS|KEY|MOD|OFF|PUT|RAW|RED|REF|SUM|TAB|XSD|CNT|COS|EXP|LOG|SIN|TAN|XOR|AT|CO|CP|DO|GT|ID|IF|NS|OR|BT|CA|CS|GE|NA|NB|EQ|IN|LT|NE|NO|OF|ON|PF|TO|AS|BY|CN|IS|LE|NP|UP|E|I|M|O|Z|C|X)\b/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}return abap_1}var abnf_1,hasRequiredAbnf;function requireAbnf(){if(hasRequiredAbnf)return abnf_1;hasRequiredAbnf=1,abnf_1=a,a.displayName="abnf",a.aliases=[];function a(i){(function(_e){var pt="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";_e.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+pt+"|<"+pt+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(i)}return abnf_1}var actionscript_1,hasRequiredActionscript;function requireActionscript(){if(hasRequiredActionscript)return actionscript_1;hasRequiredActionscript=1,actionscript_1=a,a.displayName="actionscript",a.aliases=[];function a(i){i.languages.actionscript=i.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),i.languages.actionscript["class-name"].alias="function",delete i.languages.actionscript.parameter,delete i.languages.actionscript["literal-property"],i.languages.markup&&i.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:i.languages.markup}})}return actionscript_1}var ada_1,hasRequiredAda;function requireAda(){if(hasRequiredAda)return ada_1;hasRequiredAda=1,ada_1=a,a.displayName="ada",a.aliases=[];function a(i){i.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],"attr-name":/\b'\w+/,keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}return ada_1}var agda_1,hasRequiredAgda;function requireAgda(){if(hasRequiredAgda)return agda_1;hasRequiredAgda=1,agda_1=a,a.displayName="agda",a.aliases=[];function a(i){(function(_e){_e.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(i)}return agda_1}var al_1,hasRequiredAl;function requireAl(){if(hasRequiredAl)return al_1;hasRequiredAl=1,al_1=a,a.displayName="al",a.aliases=[];function a(i){i.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}return al_1}var antlr4_1,hasRequiredAntlr4;function requireAntlr4(){if(hasRequiredAntlr4)return antlr4_1;hasRequiredAntlr4=1,antlr4_1=a,a.displayName="antlr4",a.aliases=["g4"];function a(i){i.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},i.languages.g4=i.languages.antlr4}return antlr4_1}var apacheconf_1,hasRequiredApacheconf;function requireApacheconf(){if(hasRequiredApacheconf)return apacheconf_1;hasRequiredApacheconf=1,apacheconf_1=a,a.displayName="apacheconf",a.aliases=[];function a(i){i.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}return apacheconf_1}var sql_1,hasRequiredSql;function requireSql(){if(hasRequiredSql)return sql_1;hasRequiredSql=1,sql_1=a,a.displayName="sql",a.aliases=[];function a(i){i.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}return sql_1}var apex_1,hasRequiredApex;function requireApex(){if(hasRequiredApex)return apex_1;hasRequiredApex=1;var a=requireSql();apex_1=i,i.displayName="apex",i.aliases=[];function i(_e){_e.register(a),function(pt){var Lt=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,Gt=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return Lt.source});function Ct(o){return RegExp(o.replace(//g,function(){return Gt}),"i")}var Rt={keyword:Lt,punctuation:/[()\[\]{};,:.<>]/};pt.languages.apex={comment:pt.languages.clike.comment,string:pt.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:pt.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:Ct(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:Rt},{pattern:Ct(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:Rt},{pattern:Ct(/(?=\s*\w+\s*[;=,(){:])/.source),inside:Rt}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:Lt,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(_e)}return apex_1}var apl_1,hasRequiredApl;function requireApl(){if(hasRequiredApl)return apl_1;hasRequiredApl=1,apl_1=a,a.displayName="apl",a.aliases=[];function a(i){i.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}return apl_1}var applescript_1,hasRequiredApplescript;function requireApplescript(){if(hasRequiredApplescript)return applescript_1;hasRequiredApplescript=1,applescript_1=a,a.displayName="applescript",a.aliases=[];function a(i){i.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}return applescript_1}var aql_1,hasRequiredAql;function requireAql(){if(hasRequiredAql)return aql_1;hasRequiredAql=1,aql_1=a,a.displayName="aql",a.aliases=[];function a(i){i.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}return aql_1}var c_1,hasRequiredC;function requireC(){if(hasRequiredC)return c_1;hasRequiredC=1,c_1=a,a.displayName="c",a.aliases=[];function a(i){i.languages.c=i.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),i.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),i.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},i.languages.c.string],char:i.languages.c.char,comment:i.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:i.languages.c}}}}),i.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete i.languages.c.boolean}return c_1}var cpp_1,hasRequiredCpp;function requireCpp(){if(hasRequiredCpp)return cpp_1;hasRequiredCpp=1;var a=requireC();cpp_1=i,i.displayName="cpp",i.aliases=[];function i(_e){_e.register(a),function(pt){var Lt=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,Gt=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return Lt.source});pt.languages.cpp=pt.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return Lt.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:Lt,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),pt.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return Gt})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),pt.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:pt.languages.cpp}}}}),pt.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),pt.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:pt.languages.extend("cpp",{})}}),pt.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},pt.languages.cpp["base-clause"])}(_e)}return cpp_1}var arduino_1,hasRequiredArduino;function requireArduino(){if(hasRequiredArduino)return arduino_1;hasRequiredArduino=1;var a=requireCpp();arduino_1=i,i.displayName="arduino",i.aliases=["ino"];function i(_e){_e.register(a),_e.languages.arduino=_e.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),_e.languages.ino=_e.languages.arduino}return arduino_1}var arff_1,hasRequiredArff;function requireArff(){if(hasRequiredArff)return arff_1;hasRequiredArff=1,arff_1=a,a.displayName="arff",a.aliases=[];function a(i){i.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}return arff_1}var asciidoc_1,hasRequiredAsciidoc;function requireAsciidoc(){if(hasRequiredAsciidoc)return asciidoc_1;hasRequiredAsciidoc=1,asciidoc_1=a,a.displayName="asciidoc",a.aliases=["adoc"];function a(i){(function(_e){var pt={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},Lt=_e.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:pt,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:pt.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:pt,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function Gt(Ct){Ct=Ct.split(" ");for(var Rt={},o=0,it=Ct.length;o>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}return asmatmel_1}var csharp_1,hasRequiredCsharp;function requireCsharp(){if(hasRequiredCsharp)return csharp_1;hasRequiredCsharp=1,csharp_1=a,a.displayName="csharp",a.aliases=["dotnet","cs"];function a(i){(function(_e){function pt(At,Ot){return At.replace(/<<(\d+)>>/g,function(Pt,zt){return"(?:"+Ot[+zt]+")"})}function Lt(At,Ot,Pt){return RegExp(pt(At,Ot),Pt||"")}function Gt(At,Ot){for(var Pt=0;Pt>/g,function(){return"(?:"+At+")"});return At.replace(/<>/g,"[^\\s\\S]")}var Ct={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function Rt(At){return"\\b(?:"+At.trim().replace(/ /g,"|")+")\\b"}var o=Rt(Ct.typeDeclaration),it=RegExp(Rt(Ct.type+" "+Ct.typeDeclaration+" "+Ct.contextual+" "+Ct.other)),xt=Rt(Ct.typeDeclaration+" "+Ct.contextual+" "+Ct.other),et=Rt(Ct.type+" "+Ct.typeDeclaration+" "+Ct.other),Tt=Gt(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),yt=Gt(/\((?:[^()]|<>)*\)/.source,2),ut=/@?\b[A-Za-z_]\w*\b/.source,ht=pt(/<<0>>(?:\s*<<1>>)?/.source,[ut,Tt]),j=pt(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[xt,ht]),_=/\[\s*(?:,\s*)*\]/.source,rt=pt(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[j,_]),tt=pt(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[Tt,yt,_]),st=pt(/\(<<0>>+(?:,<<0>>+)+\)/.source,[tt]),ot=pt(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[st,j,_]),nt={keyword:it,punctuation:/[<>()?,.:[\]]/},vt=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,dt=/"(?:\\.|[^\\"\r\n])*"/.source,bt=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;_e.languages.csharp=_e.languages.extend("clike",{string:[{pattern:Lt(/(^|[^$\\])<<0>>/.source,[bt]),lookbehind:!0,greedy:!0},{pattern:Lt(/(^|[^@$\\])<<0>>/.source,[dt]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:Lt(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[j]),lookbehind:!0,inside:nt},{pattern:Lt(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[ut,ot]),lookbehind:!0,inside:nt},{pattern:Lt(/(\busing\s+)<<0>>(?=\s*=)/.source,[ut]),lookbehind:!0},{pattern:Lt(/(\b<<0>>\s+)<<1>>/.source,[o,ht]),lookbehind:!0,inside:nt},{pattern:Lt(/(\bcatch\s*\(\s*)<<0>>/.source,[j]),lookbehind:!0,inside:nt},{pattern:Lt(/(\bwhere\s+)<<0>>/.source,[ut]),lookbehind:!0},{pattern:Lt(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[rt]),lookbehind:!0,inside:nt},{pattern:Lt(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[ot,et,ut]),inside:nt}],keyword:it,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),_e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),_e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:Lt(/([(,]\s*)<<0>>(?=\s*:)/.source,[ut]),lookbehind:!0,alias:"punctuation"}}),_e.languages.insertBefore("csharp","class-name",{namespace:{pattern:Lt(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[ut]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:Lt(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[yt]),lookbehind:!0,alias:"class-name",inside:nt},"return-type":{pattern:Lt(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[ot,j]),inside:nt,alias:"class-name"},"constructor-invocation":{pattern:Lt(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[ot]),lookbehind:!0,inside:nt,alias:"class-name"},"generic-method":{pattern:Lt(/<<0>>\s*<<1>>(?=\s*\()/.source,[ut,Tt]),inside:{function:Lt(/^<<0>>/.source,[ut]),generic:{pattern:RegExp(Tt),alias:"class-name",inside:nt}}},"type-list":{pattern:Lt(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[o,ht,ut,ot,it.source,yt,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:Lt(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[ht,yt]),lookbehind:!0,greedy:!0,inside:_e.languages.csharp},keyword:it,"class-name":{pattern:RegExp(ot),greedy:!0,inside:nt},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var ft=dt+"|"+vt,at=pt(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[ft]),mt=Gt(pt(/[^"'/()]|<<0>>|\(<>*\)/.source,[at]),2),St=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,_t=pt(/<<0>>(?:\s*\(<<1>>*\))?/.source,[j,mt]);_e.languages.insertBefore("csharp","class-name",{attribute:{pattern:Lt(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[St,_t]),lookbehind:!0,greedy:!0,inside:{target:{pattern:Lt(/^<<0>>(?=\s*:)/.source,[St]),alias:"keyword"},"attribute-arguments":{pattern:Lt(/\(<<0>>*\)/.source,[mt]),inside:_e.languages.csharp},"class-name":{pattern:RegExp(j),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var Mt=/:[^}\r\n]+/.source,Et=Gt(pt(/[^"'/()]|<<0>>|\(<>*\)/.source,[at]),2),kt=pt(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Et,Mt]),wt=Gt(pt(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[ft]),2),ct=pt(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[wt,Mt]);function It(At,Ot){return{interpolation:{pattern:Lt(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[At]),lookbehind:!0,inside:{"format-string":{pattern:Lt(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[Ot,Mt]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:_e.languages.csharp}}},string:/[\s\S]+/}}_e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:Lt(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[kt]),lookbehind:!0,greedy:!0,inside:It(kt,Et)},{pattern:Lt(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[ct]),lookbehind:!0,greedy:!0,inside:It(ct,wt)}],char:{pattern:RegExp(vt),greedy:!0}}),_e.languages.dotnet=_e.languages.cs=_e.languages.csharp})(i)}return csharp_1}var aspnet_1,hasRequiredAspnet;function requireAspnet(){if(hasRequiredAspnet)return aspnet_1;hasRequiredAspnet=1;var a=requireCsharp();aspnet_1=i,i.displayName="aspnet",i.aliases=[];function i(_e){_e.register(a),_e.languages.aspnet=_e.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:_e.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:_e.languages.csharp}}}),_e.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,_e.languages.insertBefore("inside","punctuation",{directive:_e.languages.aspnet.directive},_e.languages.aspnet.tag.inside["attr-value"]),_e.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),_e.languages.insertBefore("aspnet",_e.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:_e.languages.csharp||{}}})}return aspnet_1}var autohotkey_1,hasRequiredAutohotkey;function requireAutohotkey(){if(hasRequiredAutohotkey)return autohotkey_1;hasRequiredAutohotkey=1,autohotkey_1=a,a.displayName="autohotkey",a.aliases=[];function a(i){i.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,selector:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,important:/#\b(?:AllowSameLineComments|ClipboardTimeout|CommentFlag|DerefChar|ErrorStdOut|EscapeChar|HotkeyInterval|HotkeyModifierTimeout|Hotstring|If|IfTimeout|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Include|IncludeAgain|InputLevel|InstallKeybdHook|InstallMouseHook|KeyHistory|MaxHotkeysPerInterval|MaxMem|MaxThreads|MaxThreadsBuffer|MaxThreadsPerHotkey|MenuMaskKey|NoEnv|NoTrayIcon|Persistent|SingleInstance|UseHook|Warn|WinActivateForce)\b/i,keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}return autohotkey_1}var autoit_1,hasRequiredAutoit;function requireAutoit(){if(hasRequiredAutoit)return autoit_1;hasRequiredAutoit=1,autoit_1=a,a.displayName="autoit",a.aliases=[];function a(i){i.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}return autoit_1}var avisynth_1,hasRequiredAvisynth;function requireAvisynth(){if(hasRequiredAvisynth)return avisynth_1;hasRequiredAvisynth=1,avisynth_1=a,a.displayName="avisynth",a.aliases=["avs"];function a(i){(function(_e){function pt(xt,et){return xt.replace(/<<(\d+)>>/g,function(Tt,yt){return et[+yt]})}function Lt(xt,et,Tt){return RegExp(pt(xt,et),Tt||"")}var Gt=/bool|clip|float|int|string|val/.source,Ct=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),Rt=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),o=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),it=[Ct,Rt,o].join("|");_e.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:Lt(/\b(?:<<0>>)\s+("?)\w+\1/.source,[Gt],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:Lt(/\b(?:<<0>>)\b/.source,[it],"i"),alias:"function"},"type-cast":{pattern:Lt(/\b(?:<<0>>)(?=\s*\()/.source,[Gt],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},_e.languages.avs=_e.languages.avisynth})(i)}return avisynth_1}var avroIdl_1,hasRequiredAvroIdl;function requireAvroIdl(){if(hasRequiredAvroIdl)return avroIdl_1;hasRequiredAvroIdl=1,avroIdl_1=a,a.displayName="avroIdl",a.aliases=[];function a(i){i.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},i.languages.avdl=i.languages["avro-idl"]}return avroIdl_1}var bash_1,hasRequiredBash;function requireBash(){if(hasRequiredBash)return bash_1;hasRequiredBash=1,bash_1=a,a.displayName="bash",a.aliases=["shell"];function a(i){(function(_e){var pt="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",Lt={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},Gt={bash:Lt,environment:{pattern:RegExp("\\$"+pt),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+pt),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};_e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+pt),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:Gt},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:Lt}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:Gt},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:Gt.entity}}],environment:{pattern:RegExp("\\$?"+pt),alias:"constant"},variable:Gt.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},Lt.inside=_e.languages.bash;for(var Ct=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],Rt=Gt.variable[1].inside,o=0;o?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}return basic_1}var batch_1,hasRequiredBatch;function requireBatch(){if(hasRequiredBatch)return batch_1;hasRequiredBatch=1,batch_1=a,a.displayName="batch",a.aliases=[];function a(i){(function(_e){var pt=/%%?[~:\w]+%?|!\S+!/,Lt={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},Gt=/"(?:[\\"]"|[^"])*"(?!")/,Ct=/(?:\b|-)\d+\b/;_e.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:Gt,parameter:Lt,variable:pt,number:Ct,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:Gt,parameter:Lt,variable:pt,number:Ct,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:Gt,parameter:Lt,variable:[pt,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:Ct,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:Gt,parameter:Lt,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:pt,number:Ct,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(i)}return batch_1}var bbcode_1,hasRequiredBbcode;function requireBbcode(){if(hasRequiredBbcode)return bbcode_1;hasRequiredBbcode=1,bbcode_1=a,a.displayName="bbcode",a.aliases=["shortcode"];function a(i){i.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},i.languages.shortcode=i.languages.bbcode}return bbcode_1}var bicep_1,hasRequiredBicep;function requireBicep(){if(hasRequiredBicep)return bicep_1;hasRequiredBicep=1,bicep_1=a,a.displayName="bicep",a.aliases=[];function a(i){i.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},i.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=i.languages.bicep}return bicep_1}var birb_1,hasRequiredBirb;function requireBirb(){if(hasRequiredBirb)return birb_1;hasRequiredBirb=1,birb_1=a,a.displayName="birb",a.aliases=[];function a(i){i.languages.birb=i.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),i.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}return birb_1}var bison_1,hasRequiredBison;function requireBison(){if(hasRequiredBison)return bison_1;hasRequiredBison=1;var a=requireC();bison_1=i,i.displayName="bison",i.aliases=[];function i(_e){_e.register(a),_e.languages.bison=_e.languages.extend("c",{}),_e.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:_e.languages.c}},comment:_e.languages.c.comment,string:_e.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}return bison_1}var bnf_1,hasRequiredBnf;function requireBnf(){if(hasRequiredBnf)return bnf_1;hasRequiredBnf=1,bnf_1=a,a.displayName="bnf",a.aliases=["rbnf"];function a(i){i.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},i.languages.rbnf=i.languages.bnf}return bnf_1}var brainfuck_1,hasRequiredBrainfuck;function requireBrainfuck(){if(hasRequiredBrainfuck)return brainfuck_1;hasRequiredBrainfuck=1,brainfuck_1=a,a.displayName="brainfuck",a.aliases=[];function a(i){i.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}return brainfuck_1}var brightscript_1,hasRequiredBrightscript;function requireBrightscript(){if(hasRequiredBrightscript)return brightscript_1;hasRequiredBrightscript=1,brightscript_1=a,a.displayName="brightscript",a.aliases=[];function a(i){i.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},i.languages.brightscript["directive-statement"].inside.expression.inside=i.languages.brightscript}return brightscript_1}var bro_1,hasRequiredBro;function requireBro(){if(hasRequiredBro)return bro_1;hasRequiredBro=1,bro_1=a,a.displayName="bro",a.aliases=[];function a(i){i.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}return bro_1}var bsl_1,hasRequiredBsl;function requireBsl(){if(hasRequiredBsl)return bsl_1;hasRequiredBsl=1,bsl_1=a,a.displayName="bsl",a.aliases=[];function a(i){i.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},i.languages.oscript=i.languages.bsl}return bsl_1}var cfscript_1,hasRequiredCfscript;function requireCfscript(){if(hasRequiredCfscript)return cfscript_1;hasRequiredCfscript=1,cfscript_1=a,a.displayName="cfscript",a.aliases=[];function a(i){i.languages.cfscript=i.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|<=?|>=?|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|[?:]/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),i.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete i.languages.cfscript["class-name"],i.languages.cfc=i.languages.cfscript}return cfscript_1}var chaiscript_1,hasRequiredChaiscript;function requireChaiscript(){if(hasRequiredChaiscript)return chaiscript_1;hasRequiredChaiscript=1;var a=requireCpp();chaiscript_1=i,i.displayName="chaiscript",i.aliases=[];function i(_e){_e.register(a),_e.languages.chaiscript=_e.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[_e.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),_e.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),_e.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:_e.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}return chaiscript_1}var cil_1,hasRequiredCil;function requireCil(){if(hasRequiredCil)return cil_1;hasRequiredCil=1,cil_1=a,a.displayName="cil",a.aliases=[];function a(i){i.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}return cil_1}var clojure_1,hasRequiredClojure;function requireClojure(){if(hasRequiredClojure)return clojure_1;hasRequiredClojure=1,clojure_1=a,a.displayName="clojure",a.aliases=[];function a(i){i.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}return clojure_1}var cmake_1,hasRequiredCmake;function requireCmake(){if(hasRequiredCmake)return cmake_1;hasRequiredCmake=1,cmake_1=a,a.displayName="cmake",a.aliases=[];function a(i){i.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_(?:BINARY_DIR|DESCRIPTION|HOMEPAGE_URL|NAME|SOURCE_DIR|VERSION|VERSION_(?:MAJOR|MINOR|PATCH|TWEAK))|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE|XCODE_VERSION))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|GLOBAL_KEYWORD|GLOBAL_PROJECT_TYPES|GLOBAL_ROOTNAMESPACE|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}return cmake_1}var cobol_1,hasRequiredCobol;function requireCobol(){if(hasRequiredCobol)return cobol_1;hasRequiredCobol=1,cobol_1=a,a.displayName="cobol",a.aliases=[];function a(i){i.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}return cobol_1}var coffeescript_1,hasRequiredCoffeescript;function requireCoffeescript(){if(hasRequiredCoffeescript)return coffeescript_1;hasRequiredCoffeescript=1,coffeescript_1=a,a.displayName="coffeescript",a.aliases=["coffee"];function a(i){(function(_e){var pt=/#(?!\{).+/,Lt={pattern:/#\{[^}]+\}/,alias:"variable"};_e.languages.coffeescript=_e.languages.extend("javascript",{comment:pt,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:Lt}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),_e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:pt,interpolation:Lt}}}),_e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:_e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:Lt}}]}),_e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete _e.languages.coffeescript["template-string"],_e.languages.coffee=_e.languages.coffeescript})(i)}return coffeescript_1}var concurnas_1,hasRequiredConcurnas;function requireConcurnas(){if(hasRequiredConcurnas)return concurnas_1;hasRequiredConcurnas=1,concurnas_1=a,a.displayName="concurnas",a.aliases=["conc"];function a(i){i.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},i.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:i.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:i.languages.concurnas},string:/[\s\S]+/}}}),i.languages.conc=i.languages.concurnas}return concurnas_1}var coq_1,hasRequiredCoq;function requireCoq(){if(hasRequiredCoq)return coq_1;hasRequiredCoq=1,coq_1=a,a.displayName="coq",a.aliases=[];function a(i){(function(_e){for(var pt=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|)*\*\)/.source,Lt=0;Lt<2;Lt++)pt=pt.replace(//g,function(){return pt});pt=pt.replace(//g,"[]"),_e.languages.coq={comment:RegExp(pt),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|)*\]/.source.replace(//g,function(){return pt})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(pt),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(i)}return coq_1}var ruby_1,hasRequiredRuby;function requireRuby(){if(hasRequiredRuby)return ruby_1;hasRequiredRuby=1,ruby_1=a,a.displayName="ruby",a.aliases=["rb"];function a(i){(function(_e){_e.languages.ruby=_e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),_e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var pt={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:_e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete _e.languages.ruby.function;var Lt="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",Gt=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;_e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+Lt+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:pt,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:pt,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+Gt),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+Gt+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),_e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+Lt),greedy:!0,inside:{interpolation:pt,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:pt,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:pt,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+Lt),greedy:!0,inside:{interpolation:pt,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:pt,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete _e.languages.ruby.string,_e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),_e.languages.rb=_e.languages.ruby})(i)}return ruby_1}var crystal_1,hasRequiredCrystal;function requireCrystal(){if(hasRequiredCrystal)return crystal_1;hasRequiredCrystal=1;var a=requireRuby();crystal_1=i,i.displayName="crystal",i.aliases=[];function i(_e){_e.register(a),function(pt){pt.languages.crystal=pt.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,pt.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),pt.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:pt.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:pt.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(_e)}return crystal_1}var cshtml_1,hasRequiredCshtml;function requireCshtml(){if(hasRequiredCshtml)return cshtml_1;hasRequiredCshtml=1;var a=requireCsharp();cshtml_1=i,i.displayName="cshtml",i.aliases=["razor"];function i(_e){_e.register(a),function(pt){var Lt=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,Gt=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function Ct(j,_){for(var rt=0;rt<_;rt++)j=j.replace(//g,function(){return"(?:"+j+")"});return j.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+Gt+")").replace(//g,"(?:"+Lt+")")}var Rt=Ct(/\((?:[^()'"@/]|||)*\)/.source,2),o=Ct(/\[(?:[^\[\]'"@/]|||)*\]/.source,2),it=Ct(/\{(?:[^{}'"@/]|||)*\}/.source,2),xt=Ct(/<(?:[^<>'"@/]|||)*>/.source,2),et=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,Tt=/(?!\d)[^\s>\/=$<%]+/.source+et+/\s*\/?>/.source,yt=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+et+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+Tt+"|"+Ct(/<\1/.source+et+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+Tt+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/|\+|~|\|\|/,punctuation:/[(),]/}},_e.languages.css.atrule.inside["selector-function-argument"].inside=Lt,_e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var Gt={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},Ct={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};_e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:Gt,number:Ct,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:Gt,number:Ct})})(i)}return cssExtras_1}var csv_1,hasRequiredCsv;function requireCsv(){if(hasRequiredCsv)return csv_1;hasRequiredCsv=1,csv_1=a,a.displayName="csv",a.aliases=[];function a(i){i.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}return csv_1}var cypher_1,hasRequiredCypher;function requireCypher(){if(hasRequiredCypher)return cypher_1;hasRequiredCypher=1,cypher_1=a,a.displayName="cypher",a.aliases=[];function a(i){i.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}return cypher_1}var d_1,hasRequiredD;function requireD(){if(hasRequiredD)return d_1;hasRequiredD=1,d_1=a,a.displayName="d",a.aliases=[];function a(i){i.languages.d=i.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),i.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),i.languages.insertBefore("d","keyword",{property:/\B@\w*/}),i.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}return d_1}var dart_1,hasRequiredDart;function requireDart(){if(hasRequiredDart)return dart_1;hasRequiredDart=1,dart_1=a,a.displayName="dart",a.aliases=[];function a(i){(function(_e){var pt=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],Lt=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,Gt={pattern:RegExp(Lt+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};_e.languages.dart=_e.languages.extend("clike",{"class-name":[Gt,{pattern:RegExp(Lt+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:Gt.inside}],keyword:pt,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),_e.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:_e.languages.dart}}},string:/[\s\S]+/}},string:void 0}),_e.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),_e.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":Gt,keyword:pt,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(i)}return dart_1}var dataweave_1,hasRequiredDataweave;function requireDataweave(){if(hasRequiredDataweave)return dataweave_1;hasRequiredDataweave=1,dataweave_1=a,a.displayName="dataweave",a.aliases=[];function a(i){(function(_e){_e.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(i)}return dataweave_1}var dax_1,hasRequiredDax;function requireDax(){if(hasRequiredDax)return dax_1;hasRequiredDax=1,dax_1=a,a.displayName="dax",a.aliases=[];function a(i){i.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}return dax_1}var dhall_1,hasRequiredDhall;function requireDhall(){if(hasRequiredDhall)return dhall_1;hasRequiredDhall=1,dhall_1=a,a.displayName="dhall",a.aliases=[];function a(i){i.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},i.languages.dhall.string.inside.interpolation.inside.expression.inside=i.languages.dhall}return dhall_1}var diff_1,hasRequiredDiff;function requireDiff(){if(hasRequiredDiff)return diff_1;hasRequiredDiff=1,diff_1=a,a.displayName="diff",a.aliases=[];function a(i){(function(_e){_e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var pt={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(pt).forEach(function(Lt){var Gt=pt[Lt],Ct=[];/^\w+$/.test(Lt)||Ct.push(/\w+/.exec(Lt)[0]),Lt==="diff"&&Ct.push("bold"),_e.languages.diff[Lt]={pattern:RegExp("^(?:["+Gt+`].*(?:\r ?| -|(?![\\s\\S])))+`,"m"),alias:Ct,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(Lt)[0]}}}}),Object.defineProperty(_e.languages.diff,"PREFIXES",{value:pt})})(i)}return diff_1}var markupTemplating_1,hasRequiredMarkupTemplating;function requireMarkupTemplating(){if(hasRequiredMarkupTemplating)return markupTemplating_1;hasRequiredMarkupTemplating=1,markupTemplating_1=a,a.displayName="markupTemplating",a.aliases=[];function a(i){(function(_e){function pt(Lt,Gt){return"___"+Lt.toUpperCase()+Gt+"___"}Object.defineProperties(_e.languages["markup-templating"]={},{buildPlaceholders:{value:function(Lt,Gt,Ct,Rt){if(Lt.language===Gt){var o=Lt.tokenStack=[];Lt.code=Lt.code.replace(Ct,function(it){if(typeof Rt=="function"&&!Rt(it))return it;for(var xt=o.length,et;Lt.code.indexOf(et=pt(Gt,xt))!==-1;)++xt;return o[xt]=it,et}),Lt.grammar=_e.languages.markup}}},tokenizePlaceholders:{value:function(Lt,Gt){if(Lt.language!==Gt||!Lt.tokenStack)return;Lt.grammar=_e.languages[Gt];var Ct=0,Rt=Object.keys(Lt.tokenStack);function o(it){for(var xt=0;xt=Rt.length);xt++){var et=it[xt];if(typeof et=="string"||et.content&&typeof et.content=="string"){var Et=Rt[Ct],mt=Lt.tokenStack[Et],ut=typeof et=="string"?et:et.content,ht=pt(Gt,Et),j=ut.indexOf(ht);if(j>-1){++Ct;var _=ut.substring(0,j),rt=new _e.Token(Gt,_e.tokenize(mt,Lt.grammar),"language-"+Gt,mt),tt=ut.substring(j+ht.length),st=[];_&&st.push.apply(st,o([_])),st.push(rt),tt&&st.push.apply(st,o([tt])),typeof et=="string"?it.splice.apply(it,[xt,1].concat(st)):et.content=st}}else et.content&&o(et.content)}return it}o(Lt.tokens)}}})})(i)}return markupTemplating_1}var django_1,hasRequiredDjango;function requireDjango(){if(hasRequiredDjango)return django_1;hasRequiredDjango=1;var a=requireMarkupTemplating();django_1=i,i.displayName="django",i.aliases=["jinja2"];function i(_e){_e.register(a),function(pt){pt.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var Lt=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,Gt=pt.languages["markup-templating"];pt.hooks.add("before-tokenize",function(Ct){Gt.buildPlaceholders(Ct,"django",Lt)}),pt.hooks.add("after-tokenize",function(Ct){Gt.tokenizePlaceholders(Ct,"django")}),pt.languages.jinja2=pt.languages.django,pt.hooks.add("before-tokenize",function(Ct){Gt.buildPlaceholders(Ct,"jinja2",Lt)}),pt.hooks.add("after-tokenize",function(Ct){Gt.tokenizePlaceholders(Ct,"jinja2")})}(_e)}return django_1}var dnsZoneFile_1,hasRequiredDnsZoneFile;function requireDnsZoneFile(){if(hasRequiredDnsZoneFile)return dnsZoneFile_1;hasRequiredDnsZoneFile=1,dnsZoneFile_1=a,a.displayName="dnsZoneFile",a.aliases=[];function a(i){i.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},i.languages["dns-zone"]=i.languages["dns-zone-file"]}return dnsZoneFile_1}var docker_1,hasRequiredDocker;function requireDocker(){if(hasRequiredDocker)return docker_1;hasRequiredDocker=1,docker_1=a,a.displayName="docker",a.aliases=["dockerfile"];function a(i){(function(_e){var pt=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,Lt=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return pt}),Gt=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,Ct=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return Gt}),Rt={pattern:RegExp(Gt),greedy:!0},o={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function it(xt,et){return xt=xt.replace(//g,function(){return Ct}).replace(//g,function(){return Lt}),RegExp(xt,et)}_e.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:it(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[Rt,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:it(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:it(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:it(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:o,string:Rt,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:o},_e.languages.dockerfile=_e.languages.docker})(i)}return docker_1}var dot_1,hasRequiredDot;function requireDot(){if(hasRequiredDot)return dot_1;hasRequiredDot=1,dot_1=a,a.displayName="dot",a.aliases=["gv"];function a(i){(function(_e){var pt="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",Lt={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:_e.languages.markup}};function Gt(Ct,Rt){return RegExp(Ct.replace(//g,function(){return pt}),Rt)}_e.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:Gt(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:Lt},"attr-value":{pattern:Gt(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:Lt},"attr-name":{pattern:Gt(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:Lt},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:Gt(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:Lt},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},_e.languages.gv=_e.languages.dot})(i)}return dot_1}var ebnf_1,hasRequiredEbnf;function requireEbnf(){if(hasRequiredEbnf)return ebnf_1;hasRequiredEbnf=1,ebnf_1=a,a.displayName="ebnf",a.aliases=[];function a(i){i.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}return ebnf_1}var editorconfig_1,hasRequiredEditorconfig;function requireEditorconfig(){if(hasRequiredEditorconfig)return editorconfig_1;hasRequiredEditorconfig=1,editorconfig_1=a,a.displayName="editorconfig",a.aliases=[];function a(i){i.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}return editorconfig_1}var eiffel_1,hasRequiredEiffel;function requireEiffel(){if(hasRequiredEiffel)return eiffel_1;hasRequiredEiffel=1,eiffel_1=a,a.displayName="eiffel",a.aliases=[];function a(i){i.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}return eiffel_1}var ejs_1,hasRequiredEjs;function requireEjs(){if(hasRequiredEjs)return ejs_1;hasRequiredEjs=1;var a=requireMarkupTemplating();ejs_1=i,i.displayName="ejs",i.aliases=["eta"];function i(_e){_e.register(a),function(pt){pt.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:pt.languages.javascript}},pt.hooks.add("before-tokenize",function(Lt){var Gt=/<%(?!%)[\s\S]+?%>/g;pt.languages["markup-templating"].buildPlaceholders(Lt,"ejs",Gt)}),pt.hooks.add("after-tokenize",function(Lt){pt.languages["markup-templating"].tokenizePlaceholders(Lt,"ejs")}),pt.languages.eta=pt.languages.ejs}(_e)}return ejs_1}var elixir_1,hasRequiredElixir;function requireElixir(){if(hasRequiredElixir)return elixir_1;hasRequiredElixir=1,elixir_1=a,a.displayName="elixir",a.aliases=[];function a(i){i.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},i.languages.elixir.string.forEach(function(_e){_e.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:i.languages.elixir}}}})}return elixir_1}var elm_1,hasRequiredElm;function requireElm(){if(hasRequiredElm)return elm_1;hasRequiredElm=1,elm_1=a,a.displayName="elm",a.aliases=[];function a(i){i.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}return elm_1}var erb_1,hasRequiredErb;function requireErb(){if(hasRequiredErb)return erb_1;hasRequiredErb=1;var a=requireRuby(),i=requireMarkupTemplating();erb_1=_e,_e.displayName="erb",_e.aliases=[];function _e(pt){pt.register(a),pt.register(i),function(Lt){Lt.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:Lt.languages.ruby}},Lt.hooks.add("before-tokenize",function(Gt){var Ct=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;Lt.languages["markup-templating"].buildPlaceholders(Gt,"erb",Ct)}),Lt.hooks.add("after-tokenize",function(Gt){Lt.languages["markup-templating"].tokenizePlaceholders(Gt,"erb")})}(pt)}return erb_1}var erlang_1,hasRequiredErlang;function requireErlang(){if(hasRequiredErlang)return erlang_1;hasRequiredErlang=1,erlang_1=a,a.displayName="erlang",a.aliases=[];function a(i){i.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}return erlang_1}var lua_1,hasRequiredLua;function requireLua(){if(hasRequiredLua)return lua_1;hasRequiredLua=1,lua_1=a,a.displayName="lua",a.aliases=[];function a(i){i.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}return lua_1}var etlua_1,hasRequiredEtlua;function requireEtlua(){if(hasRequiredEtlua)return etlua_1;hasRequiredEtlua=1;var a=requireLua(),i=requireMarkupTemplating();etlua_1=_e,_e.displayName="etlua",_e.aliases=[];function _e(pt){pt.register(a),pt.register(i),function(Lt){Lt.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:Lt.languages.lua}},Lt.hooks.add("before-tokenize",function(Gt){var Ct=/<%[\s\S]+?%>/g;Lt.languages["markup-templating"].buildPlaceholders(Gt,"etlua",Ct)}),Lt.hooks.add("after-tokenize",function(Gt){Lt.languages["markup-templating"].tokenizePlaceholders(Gt,"etlua")})}(pt)}return etlua_1}var excelFormula_1,hasRequiredExcelFormula;function requireExcelFormula(){if(hasRequiredExcelFormula)return excelFormula_1;hasRequiredExcelFormula=1,excelFormula_1=a,a.displayName="excelFormula",a.aliases=[];function a(i){i.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"keyword"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"property",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"property"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},i.languages.xlsx=i.languages.xls=i.languages["excel-formula"]}return excelFormula_1}var factor_1,hasRequiredFactor;function requireFactor(){if(hasRequiredFactor)return factor_1;hasRequiredFactor=1,factor_1=a,a.displayName="factor",a.aliases=[];function a(i){(function(_e){var pt={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},Lt={number:/\\[^\s']|%\w/},Gt={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:pt},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:pt},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:pt}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:Lt.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:Lt},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:Lt}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:Lt}},Ct=function(xt){return(xt+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},Rt=function(xt){return new RegExp("(^|\\s)(?:"+xt.map(Ct).join("|")+")(?=\\s|$)")},o={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(o).forEach(function(xt){Gt[xt].pattern=Rt(o[xt])});var it=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"];Gt.combinators.pattern=Rt(it),_e.languages.factor=Gt})(i)}return factor_1}var _false,hasRequired_false;function require_false(){if(hasRequired_false)return _false;hasRequired_false=1,_false=a,a.displayName="$false",a.aliases=[];function a(i){(function(_e){_e.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete i.languages["firestore-security-rules"]["class-name"],i.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}return firestoreSecurityRules_1}var flow_1,hasRequiredFlow;function requireFlow(){if(hasRequiredFlow)return flow_1;hasRequiredFlow=1,flow_1=a,a.displayName="flow",a.aliases=[];function a(i){(function(_e){_e.languages.flow=_e.languages.extend("javascript",{}),_e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),_e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete _e.languages.flow.parameter,_e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(_e.languages.flow.keyword)||(_e.languages.flow.keyword=[_e.languages.flow.keyword]),_e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(i)}return flow_1}var fortran_1,hasRequiredFortran;function requireFortran(){if(hasRequiredFortran)return fortran_1;hasRequiredFortran=1,fortran_1=a,a.displayName="fortran",a.aliases=[];function a(i){i.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}return fortran_1}var fsharp_1,hasRequiredFsharp;function requireFsharp(){if(hasRequiredFsharp)return fsharp_1;hasRequiredFsharp=1,fsharp_1=a,a.displayName="fsharp",a.aliases=[];function a(i){i.languages.fsharp=i.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),i.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),i.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),i.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:i.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}return fsharp_1}var ftl_1,hasRequiredFtl;function requireFtl(){if(hasRequiredFtl)return ftl_1;hasRequiredFtl=1;var a=requireMarkupTemplating();ftl_1=i,i.displayName="ftl",i.aliases=[];function i(_e){_e.register(a),function(pt){for(var Lt=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,Gt=0;Gt<2;Gt++)Lt=Lt.replace(//g,function(){return Lt});Lt=Lt.replace(//g,/[^\s\S]/.source);var Ct={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return Lt})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return Lt})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};Ct.string[1].inside.interpolation.inside.rest=Ct,pt.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:Ct}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:Ct}}}},pt.hooks.add("before-tokenize",function(Rt){var o=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return Lt}),"gi");pt.languages["markup-templating"].buildPlaceholders(Rt,"ftl",o)}),pt.hooks.add("after-tokenize",function(Rt){pt.languages["markup-templating"].tokenizePlaceholders(Rt,"ftl")})}(_e)}return ftl_1}var gap_1,hasRequiredGap;function requireGap(){if(hasRequiredGap)return gap_1;hasRequiredGap=1,gap_1=a,a.displayName="gap",a.aliases=[];function a(i){i.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},i.languages.gap.shell.inside.gap.inside=i.languages.gap}return gap_1}var gcode_1,hasRequiredGcode;function requireGcode(){if(hasRequiredGcode)return gcode_1;hasRequiredGcode=1,gcode_1=a,a.displayName="gcode",a.aliases=[];function a(i){i.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}return gcode_1}var gdscript_1,hasRequiredGdscript;function requireGdscript(){if(hasRequiredGdscript)return gdscript_1;hasRequiredGdscript=1,gdscript_1=a,a.displayName="gdscript",a.aliases=[];function a(i){i.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}return gdscript_1}var gedcom_1,hasRequiredGedcom;function requireGedcom(){if(hasRequiredGedcom)return gedcom_1;hasRequiredGedcom=1,gedcom_1=a,a.displayName="gedcom",a.aliases=[];function a(i){i.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},tag:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"string"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}return gedcom_1}var gherkin_1,hasRequiredGherkin;function requireGherkin(){if(hasRequiredGherkin)return gherkin_1;hasRequiredGherkin=1,gherkin_1=a,a.displayName="gherkin",a.aliases=[];function a(i){(function(_e){var pt=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;_e.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+pt+")(?:"+pt+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(pt),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(i)}return gherkin_1}var git_1,hasRequiredGit;function requireGit(){if(hasRequiredGit)return git_1;hasRequiredGit=1,git_1=a,a.displayName="git",a.aliases=[];function a(i){i.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}return git_1}var glsl_1,hasRequiredGlsl;function requireGlsl(){if(hasRequiredGlsl)return glsl_1;hasRequiredGlsl=1;var a=requireC();glsl_1=i,i.displayName="glsl",i.aliases=[];function i(_e){_e.register(a),_e.languages.glsl=_e.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}return glsl_1}var gml_1,hasRequiredGml;function requireGml(){if(hasRequiredGml)return gml_1;hasRequiredGml=1,gml_1=a,a.displayName="gml",a.aliases=[];function a(i){i.languages.gamemakerlanguage=i.languages.gml=i.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}return gml_1}var gn_1,hasRequiredGn;function requireGn(){if(hasRequiredGn)return gn_1;hasRequiredGn=1,gn_1=a,a.displayName="gn",a.aliases=["gni"];function a(i){i.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},i.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=i.languages.gn,i.languages.gni=i.languages.gn}return gn_1}var goModule_1,hasRequiredGoModule;function requireGoModule(){if(hasRequiredGoModule)return goModule_1;hasRequiredGoModule=1,goModule_1=a,a.displayName="goModule",a.aliases=[];function a(i){i.languages["go-mod"]=i.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}return goModule_1}var go_1,hasRequiredGo;function requireGo(){if(hasRequiredGo)return go_1;hasRequiredGo=1,go_1=a,a.displayName="go",a.aliases=[];function a(i){i.languages.go=i.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),i.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete i.languages.go["class-name"]}return go_1}var graphql_1,hasRequiredGraphql;function requireGraphql(){if(hasRequiredGraphql)return graphql_1;hasRequiredGraphql=1,graphql_1=a,a.displayName="graphql",a.aliases=[];function a(i){i.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:i.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},i.hooks.add("after-tokenize",function(pt){if(pt.language!=="graphql")return;var Lt=pt.tokens.filter(function(_){return typeof _!="string"&&_.type!=="comment"&&_.type!=="scalar"}),Gt=0;function Ct(_){return Lt[Gt+_]}function Rt(_,rt){rt=rt||0;for(var tt=0;tt<_.length;tt++){var st=Ct(tt+rt);if(!st||st.type!==_[tt])return!1}return!0}function o(_,rt){for(var tt=1,st=Gt;st0)){var ut=o(/^\{$/,/^\}$/);if(ut===-1)continue;for(var ht=Gt;ht=0&&it(j,"variable-input")}}}}})}return graphql_1}var groovy_1,hasRequiredGroovy;function requireGroovy(){if(hasRequiredGroovy)return groovy_1;hasRequiredGroovy=1,groovy_1=a,a.displayName="groovy",a.aliases=[];function a(i){i.languages.groovy=i.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),i.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),i.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),i.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),i.hooks.add("wrap",function(_e){if(_e.language==="groovy"&&_e.type==="string"){var pt=_e.content.value[0];if(pt!="'"){var Lt=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;pt==="$"&&(Lt=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),_e.content.value=_e.content.value.replace(/</g,"<").replace(/&/g,"&"),_e.content=i.highlight(_e.content.value,{expression:{pattern:Lt,lookbehind:!0,inside:i.languages.groovy}}),_e.classes.push(pt==="/"?"regex":"gstring")}}})}return groovy_1}var haml_1,hasRequiredHaml;function requireHaml(){if(hasRequiredHaml)return haml_1;hasRequiredHaml=1;var a=requireRuby();haml_1=i,i.displayName="haml",i.aliases=[];function i(_e){_e.register(a),function(pt){pt.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:pt.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:pt.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:pt.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:pt.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:pt.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:pt.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:pt.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var Lt="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",Gt=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],Ct={},Rt=0,o=Gt.length;Rt@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},pt.hooks.add("before-tokenize",function(Lt){var Gt=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;pt.languages["markup-templating"].buildPlaceholders(Lt,"handlebars",Gt)}),pt.hooks.add("after-tokenize",function(Lt){pt.languages["markup-templating"].tokenizePlaceholders(Lt,"handlebars")}),pt.languages.hbs=pt.languages.handlebars}(_e)}return handlebars_1}var haskell_1,hasRequiredHaskell;function requireHaskell(){if(hasRequiredHaskell)return haskell_1;hasRequiredHaskell=1,haskell_1=a,a.displayName="haskell",a.aliases=["hs"];function a(i){i.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},i.languages.hs=i.languages.haskell}return haskell_1}var haxe_1,hasRequiredHaxe;function requireHaxe(){if(hasRequiredHaxe)return haxe_1;hasRequiredHaxe=1,haxe_1=a,a.displayName="haxe",a.aliases=[];function a(i){i.languages.haxe=i.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<{1,3}|[-+*/%!=&|^])=?|[?:~]/}),i.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:i.languages.haxe}}},string:/[\s\S]+/}}}),i.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:i.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),i.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}return haxe_1}var hcl_1,hasRequiredHcl;function requireHcl(){if(hasRequiredHcl)return hcl_1;hasRequiredHcl=1,hcl_1=a,a.displayName="hcl",a.aliases=[];function a(i){i.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}return hcl_1}var hlsl_1,hasRequiredHlsl;function requireHlsl(){if(hasRequiredHlsl)return hlsl_1;hasRequiredHlsl=1;var a=requireC();hlsl_1=i,i.displayName="hlsl",i.aliases=[];function i(_e){_e.register(a),_e.languages.hlsl=_e.languages.extend("c",{"class-name":[_e.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}return hlsl_1}var hoon_1,hasRequiredHoon;function requireHoon(){if(hasRequiredHoon)return hoon_1;hasRequiredHoon=1,hoon_1=a,a.displayName="hoon",a.aliases=[];function a(i){i.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}return hoon_1}var hpkp_1,hasRequiredHpkp;function requireHpkp(){if(hasRequiredHpkp)return hpkp_1;hasRequiredHpkp=1,hpkp_1=a,a.displayName="hpkp",a.aliases=[];function a(i){i.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return hpkp_1}var hsts_1,hasRequiredHsts;function requireHsts(){if(hasRequiredHsts)return hsts_1;hasRequiredHsts=1,hsts_1=a,a.displayName="hsts",a.aliases=[];function a(i){i.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return hsts_1}var http_1,hasRequiredHttp;function requireHttp(){if(hasRequiredHttp)return http_1;hasRequiredHttp=1,http_1=a,a.displayName="http",a.aliases=[];function a(i){(function(_e){function pt(et){return RegExp("(^(?:"+et+"):[ ]*(?![ ]))[^]+","i")}_e.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:_e.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:pt(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:_e.languages.csp},{pattern:pt(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:_e.languages.hpkp},{pattern:pt(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:_e.languages.hsts},{pattern:pt(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var Lt=_e.languages,Gt={"application/javascript":Lt.javascript,"application/json":Lt.json||Lt.javascript,"application/xml":Lt.xml,"text/xml":Lt.xml,"text/html":Lt.html,"text/css":Lt.css,"text/plain":Lt.plain},Ct={"application/json":!0,"application/xml":!0};function Rt(et){var Et=et.replace(/^[a-z]+\//,""),mt="\\w+/(?:[\\w.-]+\\+)+"+Et+"(?![+\\w.-])";return"(?:"+et+"|"+mt+")"}var o;for(var it in Gt)if(Gt[it]){o=o||{};var xt=Ct[it]?Rt(it):it;o[it.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+xt+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:Gt[it]}}o&&_e.languages.insertBefore("http","header",o)})(i)}return http_1}var ichigojam_1,hasRequiredIchigojam;function requireIchigojam(){if(hasRequiredIchigojam)return ichigojam_1;hasRequiredIchigojam=1,ichigojam_1=a,a.displayName="ichigojam",a.aliases=[];function a(i){i.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}return ichigojam_1}var icon_1,hasRequiredIcon;function requireIcon(){if(hasRequiredIcon)return icon_1;hasRequiredIcon=1,icon_1=a,a.displayName="icon",a.aliases=[];function a(i){i.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}return icon_1}var icuMessageFormat_1,hasRequiredIcuMessageFormat;function requireIcuMessageFormat(){if(hasRequiredIcuMessageFormat)return icuMessageFormat_1;hasRequiredIcuMessageFormat=1,icuMessageFormat_1=a,a.displayName="icuMessageFormat",a.aliases=[];function a(i){(function(_e){function pt(it,xt){return xt<=0?/[]/.source:it.replace(//g,function(){return pt(it,xt-1)})}var Lt=/'[{}:=,](?:[^']|'')*'(?!')/,Gt={pattern:/''/,greedy:!0,alias:"operator"},Ct={pattern:Lt,greedy:!0,inside:{escape:Gt}},Rt=pt(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return Lt.source}),8),o={pattern:RegExp(Rt),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};_e.languages["icu-message-format"]={argument:{pattern:RegExp(Rt),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":o,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":o,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+pt(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:Gt,string:Ct},o.inside.message.inside=_e.languages["icu-message-format"],_e.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=_e.languages["icu-message-format"]})(i)}return icuMessageFormat_1}var idris_1,hasRequiredIdris;function requireIdris(){if(hasRequiredIdris)return idris_1;hasRequiredIdris=1;var a=requireHaskell();idris_1=i,i.displayName="idris",i.aliases=["idr"];function i(_e){_e.register(a),_e.languages.idris=_e.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),_e.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),_e.languages.idr=_e.languages.idris}return idris_1}var iecst_1,hasRequiredIecst;function requireIecst(){if(hasRequiredIecst)return iecst_1;hasRequiredIecst=1,iecst_1=a,a.displayName="iecst",a.aliases=[];function a(i){i.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}return iecst_1}var ignore_1,hasRequiredIgnore;function requireIgnore(){if(hasRequiredIgnore)return ignore_1;hasRequiredIgnore=1,ignore_1=a,a.displayName="ignore",a.aliases=["gitignore","hgignore","npmignore"];function a(i){(function(_e){_e.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},_e.languages.gitignore=_e.languages.ignore,_e.languages.hgignore=_e.languages.ignore,_e.languages.npmignore=_e.languages.ignore})(i)}return ignore_1}var inform7_1,hasRequiredInform7;function requireInform7(){if(hasRequiredInform7)return inform7_1;hasRequiredInform7=1,inform7_1=a,a.displayName="inform7",a.aliases=[];function a(i){i.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},i.languages.inform7.string.inside.substitution.inside.rest=i.languages.inform7,i.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}return inform7_1}var ini_1,hasRequiredIni;function requireIni(){if(hasRequiredIni)return ini_1;hasRequiredIni=1,ini_1=a,a.displayName="ini",a.aliases=[];function a(i){i.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}return ini_1}var io_1,hasRequiredIo;function requireIo(){if(hasRequiredIo)return io_1;hasRequiredIo=1,io_1=a,a.displayName="io",a.aliases=[];function a(i){i.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}return j_1}var java_1,hasRequiredJava;function requireJava(){if(hasRequiredJava)return java_1;hasRequiredJava=1,java_1=a,a.displayName="java",a.aliases=[];function a(i){(function(_e){var pt=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,Lt=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,Gt={pattern:RegExp(Lt+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};_e.languages.java=_e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[Gt,{pattern:RegExp(Lt+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:Gt.inside}],keyword:pt,function:[_e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),_e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),_e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":Gt,keyword:pt,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return pt.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(i)}return java_1}var javadoclike_1,hasRequiredJavadoclike;function requireJavadoclike(){if(hasRequiredJavadoclike)return javadoclike_1;hasRequiredJavadoclike=1,javadoclike_1=a,a.displayName="javadoclike",a.aliases=[];function a(i){(function(_e){var pt=_e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function Lt(Ct,Rt){var o="doc-comment",it=_e.languages[Ct];if(it){var xt=it[o];if(!xt){var et={};et[o]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},it=_e.languages.insertBefore(Ct,"comment",et),xt=it[o]}if(xt instanceof RegExp&&(xt=it[o]={pattern:xt}),Array.isArray(xt))for(var Et=0,mt=xt.length;Et)?|/.source.replace(//g,function(){return Ct});Lt.languages.javadoc=Lt.languages.extend("javadoclike",{}),Lt.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+Rt+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:Lt.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:Gt,lookbehind:!0,inside:Lt.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:Gt,lookbehind:!0,inside:{tag:Lt.languages.markup.tag,entity:Lt.languages.markup.entity,code:{pattern:/.+/,inside:Lt.languages.java,alias:"language-java"}}}}}],tag:Lt.languages.markup.tag,entity:Lt.languages.markup.entity}),Lt.languages.javadoclike.addSupport("java",Lt.languages.javadoc)}(pt)}return javadoc_1}var javastacktrace_1,hasRequiredJavastacktrace;function requireJavastacktrace(){if(hasRequiredJavastacktrace)return javastacktrace_1;hasRequiredJavastacktrace=1,javastacktrace_1=a,a.displayName="javastacktrace",a.aliases=[];function a(i){i.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:|[\w$]+)\()/,function:/(?:|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}return javastacktrace_1}var jexl_1,hasRequiredJexl;function requireJexl(){if(hasRequiredJexl)return jexl_1;hasRequiredJexl=1,jexl_1=a,a.displayName="jexl",a.aliases=[];function a(i){i.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}return jexl_1}var jolie_1,hasRequiredJolie;function requireJolie(){if(hasRequiredJolie)return jolie_1;hasRequiredJolie=1,jolie_1=a,a.displayName="jolie",a.aliases=[];function a(i){i.languages.jolie=i.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),i.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}return jolie_1}var jq_1,hasRequiredJq;function requireJq(){if(hasRequiredJq)return jq_1;hasRequiredJq=1,jq_1=a,a.displayName="jq",a.aliases=[];function a(i){(function(_e){var pt=/\\\((?:[^()]|\([^()]*\))*\)/.source,Lt=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return pt})),Gt={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+pt),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},Ct=_e.languages.jq={comment:/#.*/,property:{pattern:RegExp(Lt.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:Gt},string:{pattern:Lt,lookbehind:!0,greedy:!0,inside:Gt},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};Gt.interpolation.inside.content.inside=Ct})(i)}return jq_1}var jsExtras_1,hasRequiredJsExtras;function requireJsExtras(){if(hasRequiredJsExtras)return jsExtras_1;hasRequiredJsExtras=1,jsExtras_1=a,a.displayName="jsExtras",a.aliases=[];function a(i){(function(_e){_e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+_e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),_e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+_e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),_e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function pt(it,xt){return RegExp(it.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),xt)}_e.languages.insertBefore("javascript","keyword",{imports:{pattern:pt(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:_e.languages.javascript},exports:{pattern:pt(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:_e.languages.javascript}}),_e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),_e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),_e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:pt(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var Lt=["function","function-variable","method","method-variable","property-access"],Gt=0;Gt=vt.length)return;var at=bt[ft];if(typeof at=="string"||typeof at.content=="string"){var yt=vt[tt],St=typeof at=="string"?at:at.content,_t=St.indexOf(yt);if(_t!==-1){++tt;var Mt=St.substring(0,_t),Tt=et(st[yt]),kt=St.substring(_t+yt.length),wt=[];if(Mt&&wt.push(Mt),wt.push(Tt),kt){var ct=[kt];dt(ct),wt.push.apply(wt,ct)}typeof at=="string"?(bt.splice.apply(bt,[ft,1].concat(wt)),ft+=wt.length-1):at.content=wt}}else{var It=at.content;Array.isArray(It)?dt(It):dt([It])}}}return dt(nt),new _e.Token(_,nt,"language-"+_,ht)}var mt={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};_e.hooks.add("after-tokenize",function(ht){if(!(ht.language in mt))return;function j(_){for(var rt=0,tt=_.length;rt]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),_e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete _e.languages.typescript.parameter,delete _e.languages.typescript["literal-property"];var pt=_e.languages.extend("typescript",{});delete pt["class-name"],_e.languages.typescript["class-name"].inside=pt,_e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:pt}}}}),_e.languages.ts=_e.languages.typescript})(i)}return typescript_1}var jsdoc_1,hasRequiredJsdoc;function requireJsdoc(){if(hasRequiredJsdoc)return jsdoc_1;hasRequiredJsdoc=1;var a=requireJavadoclike(),i=requireTypescript();jsdoc_1=_e,_e.displayName="jsdoc",_e.aliases=[];function _e(pt){pt.register(a),pt.register(i),function(Lt){var Gt=Lt.languages.javascript,Ct=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,Rt="(@(?:arg|argument|param|property)\\s+(?:"+Ct+"\\s+)?)";Lt.languages.jsdoc=Lt.languages.extend("javadoclike",{parameter:{pattern:RegExp(Rt+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),Lt.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(Rt+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:Gt,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return Ct})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+Ct),lookbehind:!0,inside:{string:Gt.string,number:Gt.number,boolean:Gt.boolean,keyword:Lt.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:Gt,alias:"language-javascript"}}}}),Lt.languages.javadoclike.addSupport("javascript",Lt.languages.jsdoc)}(pt)}return jsdoc_1}var json_1,hasRequiredJson;function requireJson(){if(hasRequiredJson)return json_1;hasRequiredJson=1,json_1=a,a.displayName="json",a.aliases=["webmanifest"];function a(i){i.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},i.languages.webmanifest=i.languages.json}return json_1}var json5_1,hasRequiredJson5;function requireJson5(){if(hasRequiredJson5)return json5_1;hasRequiredJson5=1;var a=requireJson();json5_1=i,i.displayName="json5",i.aliases=[];function i(_e){_e.register(a),function(pt){var Lt=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;pt.languages.json5=pt.languages.extend("json",{property:[{pattern:RegExp(Lt.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:Lt,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(_e)}return json5_1}var jsonp_1,hasRequiredJsonp;function requireJsonp(){if(hasRequiredJsonp)return jsonp_1;hasRequiredJsonp=1;var a=requireJson();jsonp_1=i,i.displayName="jsonp",i.aliases=[];function i(_e){_e.register(a),_e.languages.jsonp=_e.languages.extend("json",{punctuation:/[{}[\]();,.]/}),_e.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}return jsonp_1}var jsstacktrace_1,hasRequiredJsstacktrace;function requireJsstacktrace(){if(hasRequiredJsstacktrace)return jsstacktrace_1;hasRequiredJsstacktrace=1,jsstacktrace_1=a,a.displayName="jsstacktrace",a.aliases=[];function a(i){i.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js||.*(?:node_modules|\(\)|\(|$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}return jsstacktrace_1}var jsx_1,hasRequiredJsx;function requireJsx(){if(hasRequiredJsx)return jsx_1;hasRequiredJsx=1,jsx_1=a,a.displayName="jsx",a.aliases=[];function a(i){(function(_e){var pt=_e.util.clone(_e.languages.javascript),Lt=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,Gt=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,Ct=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function Rt(xt,et){return xt=xt.replace(//g,function(){return Lt}).replace(//g,function(){return Gt}).replace(//g,function(){return Ct}),RegExp(xt,et)}Ct=Rt(Ct).source,_e.languages.jsx=_e.languages.extend("markup",pt),_e.languages.jsx.tag.pattern=Rt(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),_e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,_e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,_e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,_e.languages.jsx.tag.inside.comment=pt.comment,_e.languages.insertBefore("inside","attr-name",{spread:{pattern:Rt(//.source),inside:_e.languages.jsx}},_e.languages.jsx.tag),_e.languages.insertBefore("inside","special-attr",{script:{pattern:Rt(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:_e.languages.jsx}}},_e.languages.jsx.tag);var o=function(xt){return xt?typeof xt=="string"?xt:typeof xt.content=="string"?xt.content:xt.content.map(o).join(""):""},it=function(xt){for(var et=[],Et=0;Et0&&et[et.length-1].tagName===o(mt.content[0].content[1])&&et.pop():mt.content[mt.content.length-1].content==="/>"||et.push({tagName:o(mt.content[0].content[1]),openedBraces:0}):et.length>0&&mt.type==="punctuation"&&mt.content==="{"?et[et.length-1].openedBraces++:et.length>0&&et[et.length-1].openedBraces>0&&mt.type==="punctuation"&&mt.content==="}"?et[et.length-1].openedBraces--:ut=!0),(ut||typeof mt=="string")&&et.length>0&&et[et.length-1].openedBraces===0){var ht=o(mt);Et0&&(typeof xt[Et-1]=="string"||xt[Et-1].type==="plain-text")&&(ht=o(xt[Et-1])+ht,xt.splice(Et-1,1),Et--),xt[Et]=new _e.Token("plain-text",ht,null,ht)}mt.content&&typeof mt.content!="string"&&it(mt.content)}};_e.hooks.add("after-tokenize",function(xt){xt.language!=="jsx"&&xt.language!=="tsx"||it(xt.tokens)})})(i)}return jsx_1}var julia_1,hasRequiredJulia;function requireJulia(){if(hasRequiredJulia)return julia_1;hasRequiredJulia=1,julia_1=a,a.displayName="julia",a.aliases=[];function a(i){i.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}return julia_1}var keepalived_1,hasRequiredKeepalived;function requireKeepalived(){if(hasRequiredKeepalived)return keepalived_1;hasRequiredKeepalived=1,keepalived_1=a,a.displayName="keepalived",a.aliases=[];function a(i){i.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}|(?:[\da-f]{1,4}:){0,5}:|::(?:[\da-f]{1,4}:){0,5}|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|(?:\/\d{1,2})?)\b/.source.replace(//g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}return keepalived_1}var keyman_1,hasRequiredKeyman;function requireKeyman(){if(hasRequiredKeyman)return keyman_1;hasRequiredKeyman=1,keyman_1=a,a.displayName="keyman",a.aliases=[];function a(i){i.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|nomatch|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}return keyman_1}var kotlin_1,hasRequiredKotlin;function requireKotlin(){if(hasRequiredKotlin)return kotlin_1;hasRequiredKotlin=1,kotlin_1=a,a.displayName="kotlin",a.aliases=["kt","kts"];function a(i){(function(_e){_e.languages.kotlin=_e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete _e.languages.kotlin["class-name"];var pt={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:_e.languages.kotlin}};_e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:pt},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:pt},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete _e.languages.kotlin.string,_e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),_e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),_e.languages.kt=_e.languages.kotlin,_e.languages.kts=_e.languages.kotlin})(i)}return kotlin_1}var kumir_1,hasRequiredKumir;function requireKumir(){if(hasRequiredKumir)return kumir_1;hasRequiredKumir=1,kumir_1=a,a.displayName="kumir",a.aliases=["kum"];function a(i){(function(_e){var pt=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function Lt(Gt,Ct){return RegExp(Gt.replace(//g,pt),Ct)}_e.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:Lt(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:Lt(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:Lt(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:Lt(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:Lt(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:Lt(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:Lt(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:Lt(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},_e.languages.kum=_e.languages.kumir})(i)}return kumir_1}var kusto_1,hasRequiredKusto;function requireKusto(){if(hasRequiredKusto)return kusto_1;hasRequiredKusto=1,kusto_1=a,a.displayName="kusto",a.aliases=[];function a(i){i.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}return kusto_1}var latex_1,hasRequiredLatex;function requireLatex(){if(hasRequiredLatex)return latex_1;hasRequiredLatex=1,latex_1=a,a.displayName="latex",a.aliases=["tex","context"];function a(i){(function(_e){var pt=/\\(?:[^a-z()[\]]|[a-z*]+)/i,Lt={"equation-command":{pattern:pt,alias:"regex"}};_e.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:Lt,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:Lt,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:pt,alias:"selector"},punctuation:/[[\]{}&]/},_e.languages.tex=_e.languages.latex,_e.languages.context=_e.languages.latex})(i)}return latex_1}var php_1,hasRequiredPhp;function requirePhp(){if(hasRequiredPhp)return php_1;hasRequiredPhp=1;var a=requireMarkupTemplating();php_1=i,i.displayName="php",i.aliases=[];function i(_e){_e.register(a),function(pt){var Lt=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,Gt=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],Ct=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,Rt=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,o=/[{}\[\](),:;]/;pt.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:Lt,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:Gt,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:Ct,operator:Rt,punctuation:o};var it={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:pt.languages.php},xt=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:it}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:it}}];pt.languages.insertBefore("php","variable",{string:xt,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:Lt,string:xt,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:Gt,number:Ct,operator:Rt,punctuation:o}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),pt.hooks.add("before-tokenize",function(et){if(/<\?/.test(et.code)){var Et=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;pt.languages["markup-templating"].buildPlaceholders(et,"php",Et)}}),pt.hooks.add("after-tokenize",function(et){pt.languages["markup-templating"].tokenizePlaceholders(et,"php")})}(_e)}return php_1}var latte_1,hasRequiredLatte;function requireLatte(){if(hasRequiredLatte)return latte_1;hasRequiredLatte=1;var a=requireMarkupTemplating(),i=requirePhp();latte_1=_e,_e.displayName="latte",_e.aliases=[];function _e(pt){pt.register(a),pt.register(i),function(Lt){Lt.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:Lt.languages.php}};var Gt=Lt.languages.extend("markup",{});Lt.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:Lt.languages.php}}}}}},Gt.tag),Lt.hooks.add("before-tokenize",function(Ct){if(Ct.language==="latte"){var Rt=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;Lt.languages["markup-templating"].buildPlaceholders(Ct,"latte",Rt),Ct.grammar=Gt}}),Lt.hooks.add("after-tokenize",function(Ct){Lt.languages["markup-templating"].tokenizePlaceholders(Ct,"latte")})}(pt)}return latte_1}var less_1,hasRequiredLess;function requireLess(){if(hasRequiredLess)return less_1;hasRequiredLess=1,less_1=a,a.displayName="less",a.aliases=[];function a(i){i.languages.less=i.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),i.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}return less_1}var scheme_1,hasRequiredScheme;function requireScheme(){if(hasRequiredScheme)return scheme_1;hasRequiredScheme=1,scheme_1=a,a.displayName="scheme",a.aliases=[];function a(i){(function(_e){_e.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(pt({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function pt(Lt){for(var Gt in Lt)Lt[Gt]=Lt[Gt].replace(/<[\w\s]+>/g,function(Ct){return"(?:"+Lt[Ct].trim()+")"});return Lt[Gt]}})(i)}return scheme_1}var lilypond_1,hasRequiredLilypond;function requireLilypond(){if(hasRequiredLilypond)return lilypond_1;hasRequiredLilypond=1;var a=requireScheme();lilypond_1=i,i.displayName="lilypond",i.aliases=[];function i(_e){_e.register(a),function(pt){for(var Lt=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,Gt=5,Ct=0;Ct/g,function(){return Lt});Lt=Lt.replace(//g,/[^\s\S]/.source);var Rt=pt.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return Lt}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:pt.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};Rt["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=Rt,pt.languages.ly=Rt}(_e)}return lilypond_1}var liquid_1,hasRequiredLiquid;function requireLiquid(){if(hasRequiredLiquid)return liquid_1;hasRequiredLiquid=1;var a=requireMarkupTemplating();liquid_1=i,i.displayName="liquid",i.aliases=[];function i(_e){_e.register(a),_e.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},_e.hooks.add("before-tokenize",function(pt){var Lt=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,Gt=!1;_e.languages["markup-templating"].buildPlaceholders(pt,"liquid",Lt,function(Ct){var Rt=/^\{%-?\s*(\w+)/.exec(Ct);if(Rt){var o=Rt[1];if(o==="raw"&&!Gt)return Gt=!0,!0;if(o==="endraw")return Gt=!1,!0}return!Gt})}),_e.hooks.add("after-tokenize",function(pt){_e.languages["markup-templating"].tokenizePlaceholders(pt,"liquid")})}return liquid_1}var lisp_1,hasRequiredLisp;function requireLisp(){if(hasRequiredLisp)return lisp_1;hasRequiredLisp=1,lisp_1=a,a.displayName="lisp",a.aliases=[];function a(i){(function(_e){function pt(ht){return RegExp(/(\()/.source+"(?:"+ht+")"+/(?=[\s\)])/.source)}function Lt(ht){return RegExp(/([\s([])/.source+"(?:"+ht+")"+/(?=[\s)])/.source)}var Gt=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,Ct="&"+Gt,Rt="(\\()",o="(?=\\))",it="(?=\\s)",xt=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,et={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+Gt+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+Gt),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+Gt),alias:"property"},splice:{pattern:RegExp(",@?"+Gt),alias:["symbol","variable"]},keyword:[{pattern:RegExp(Rt+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+it),lookbehind:!0},{pattern:RegExp(Rt+"(?:append|by|collect|concat|do|finally|for|in|return)"+it),lookbehind:!0}],declare:{pattern:pt(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:pt(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:Lt(/nil|t/.source),lookbehind:!0},number:{pattern:Lt(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(Rt+"def(?:const|custom|group|var)\\s+"+Gt),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(Gt)}},defun:{pattern:RegExp(Rt+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+Gt+/\s+\(/.source+xt+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+Gt),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(Rt+"lambda\\s+\\(\\s*(?:&?"+Gt+"(?:\\s+&?"+Gt+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(Rt+Gt),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},Et={"lisp-marker":RegExp(Ct),varform:{pattern:RegExp(/\(/.source+Gt+/\s+(?=\S)/.source+xt+/\)/.source),inside:et},argument:{pattern:RegExp(/(^|[\s(])/.source+Gt),lookbehind:!0,alias:"variable"},rest:et},mt="\\S+(?:\\s+\\S+)*",ut={pattern:RegExp(Rt+xt+o),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+mt),inside:Et},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+mt),inside:Et},keys:{pattern:RegExp("&key\\s+"+mt+"(?:\\s+&allow-other-keys)?"),inside:Et},argument:{pattern:RegExp(Gt),alias:"variable"},punctuation:/[()]/}};et.lambda.inside.arguments=ut,et.defun.inside.arguments=_e.util.clone(ut),et.defun.inside.arguments.inside.sublist=ut,_e.languages.lisp=et,_e.languages.elisp=et,_e.languages.emacs=et,_e.languages["emacs-lisp"]=et})(i)}return lisp_1}var livescript_1,hasRequiredLivescript;function requireLivescript(){if(hasRequiredLivescript)return livescript_1;hasRequiredLivescript=1,livescript_1=a,a.displayName="livescript",a.aliases=[];function a(i){i.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},i.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=i.languages.livescript}return livescript_1}var llvm_1,hasRequiredLlvm;function requireLlvm(){if(hasRequiredLlvm)return llvm_1;hasRequiredLlvm=1,llvm_1=a,a.displayName="llvm",a.aliases=[];function a(i){(function(_e){_e.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(i)}return llvm_1}var log_1,hasRequiredLog;function requireLog(){if(hasRequiredLog)return log_1;hasRequiredLog=1,log_1=a,a.displayName="log",a.aliases=[];function a(i){i.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:i.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}return log_1}var lolcode_1,hasRequiredLolcode;function requireLolcode(){if(hasRequiredLolcode)return lolcode_1;hasRequiredLolcode=1,lolcode_1=a,a.displayName="lolcode",a.aliases=[];function a(i){i.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}return lolcode_1}var magma_1,hasRequiredMagma;function requireMagma(){if(hasRequiredMagma)return magma_1;hasRequiredMagma=1,magma_1=a,a.displayName="magma",a.aliases=[];function a(i){i.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}return magma_1}var makefile_1,hasRequiredMakefile;function requireMakefile(){if(hasRequiredMakefile)return makefile_1;hasRequiredMakefile=1,makefile_1=a,a.displayName="makefile",a.aliases=[];function a(i){i.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}return makefile_1}var markdown_1,hasRequiredMarkdown;function requireMarkdown(){if(hasRequiredMarkdown)return markdown_1;hasRequiredMarkdown=1,markdown_1=a,a.displayName="markdown",a.aliases=["md"];function a(i){(function(_e){var pt=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function Lt(Et){return Et=Et.replace(//g,function(){return pt}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+Et+")")}var Gt=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,Ct=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return Gt}),Rt=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;_e.languages.markdown=_e.languages.extend("markup",{}),_e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:_e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+Ct+Rt+"(?:"+Ct+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+Ct+Rt+")(?:"+Ct+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(Gt),inside:_e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+Ct+")"+Rt+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+Ct+"$"),inside:{"table-header":{pattern:RegExp(Gt),alias:"important",inside:_e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:Lt(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:Lt(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:Lt(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:Lt(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(Et){["url","bold","italic","strike","code-snippet"].forEach(function(mt){Et!==mt&&(_e.languages.markdown[Et].inside.content.inside[mt]=_e.languages.markdown[mt])})}),_e.hooks.add("after-tokenize",function(Et){if(Et.language!=="markdown"&&Et.language!=="md")return;function mt(ut){if(!(!ut||typeof ut=="string"))for(var ht=0,j=ut.length;ht",quot:'"'},xt=String.fromCodePoint||String.fromCharCode;function et(Et){var mt=Et.replace(o,"");return mt=mt.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(ut,ht){if(ht=ht.toLowerCase(),ht[0]==="#"){var j;return ht[1]==="x"?j=parseInt(ht.slice(2),16):j=Number(ht.slice(1)),xt(j)}else{var _=it[ht];return _||ut}}),mt}_e.languages.md=_e.languages.markdown})(i)}return markdown_1}var matlab_1,hasRequiredMatlab;function requireMatlab(){if(hasRequiredMatlab)return matlab_1;hasRequiredMatlab=1,matlab_1=a,a.displayName="matlab",a.aliases=[];function a(i){i.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}return matlab_1}var maxscript_1,hasRequiredMaxscript;function requireMaxscript(){if(hasRequiredMaxscript)return maxscript_1;hasRequiredMaxscript=1,maxscript_1=a,a.displayName="maxscript",a.aliases=[];function a(i){(function(_e){var pt=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;_e.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+pt.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+pt.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:pt,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(i)}return maxscript_1}var mel_1,hasRequiredMel;function requireMel(){if(hasRequiredMel)return mel_1;hasRequiredMel=1,mel_1=a,a.displayName="mel",a.aliases=[];function a(i){i.languages.mel={comment:/\/\/.*/,code:{pattern:/`(?:\\.|[^\\`\r\n])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:/\b\w+(?=\()|\b(?:CBG|HfAddAttractorToAS|HfAssignAS|HfBuildEqualMap|HfBuildFurFiles|HfBuildFurImages|HfCancelAFR|HfConnectASToHF|HfCreateAttractor|HfDeleteAS|HfEditAS|HfPerformCreateAS|HfRemoveAttractorFromAS|HfSelectAttached|HfSelectAttractors|HfUnAssignAS|Mayatomr|about|abs|addAttr|addAttributeEditorNodeHelp|addDynamic|addNewShelfTab|addPP|addPanelCategory|addPrefixToName|advanceToNextDrivenKey|affectedNet|affects|aimConstraint|air|alias|aliasAttr|align|alignCtx|alignCurve|alignSurface|allViewFit|ambientLight|angle|angleBetween|animCone|animCurveEditor|animDisplay|animView|annotate|appendStringArray|applicationName|applyAttrPreset|applyTake|arcLenDimContext|arcLengthDimension|arclen|arrayMapper|art3dPaintCtx|artAttrCtx|artAttrPaintVertexCtx|artAttrSkinPaintCtx|artAttrTool|artBuildPaintMenu|artFluidAttrCtx|artPuttyCtx|artSelectCtx|artSetPaintCtx|artUserPaintCtx|assignCommand|assignInputDevice|assignViewportFactories|attachCurve|attachDeviceAttr|attachSurface|attrColorSliderGrp|attrCompatibility|attrControlGrp|attrEnumOptionMenu|attrEnumOptionMenuGrp|attrFieldGrp|attrFieldSliderGrp|attrNavigationControlGrp|attrPresetEditWin|attributeExists|attributeInfo|attributeMenu|attributeQuery|autoKeyframe|autoPlace|bakeClip|bakeFluidShading|bakePartialHistory|bakeResults|bakeSimulation|basename|basenameEx|batchRender|bessel|bevel|bevelPlus|binMembership|bindSkin|blend2|blendShape|blendShapeEditor|blendShapePanel|blendTwoAttr|blindDataType|boneLattice|boundary|boxDollyCtx|boxZoomCtx|bufferCurve|buildBookmarkMenu|buildKeyframeMenu|button|buttonManip|cacheFile|cacheFileCombine|cacheFileMerge|cacheFileTrack|camera|cameraView|canCreateManip|canvas|capitalizeString|catch|catchQuiet|ceil|changeSubdivComponentDisplayLevel|changeSubdivRegion|channelBox|character|characterMap|characterOutlineEditor|characterize|chdir|checkBox|checkBoxGrp|checkDefaultRenderGlobals|choice|circle|circularFillet|clamp|clear|clearCache|clip|clipEditor|clipEditorCurrentTimeCtx|clipSchedule|clipSchedulerOutliner|clipTrimBefore|closeCurve|closeSurface|cluster|cmdFileOutput|cmdScrollFieldExecuter|cmdScrollFieldReporter|cmdShell|coarsenSubdivSelectionList|collision|color|colorAtPoint|colorEditor|colorIndex|colorIndexSliderGrp|colorSliderButtonGrp|colorSliderGrp|columnLayout|commandEcho|commandLine|commandPort|compactHairSystem|componentEditor|compositingInterop|computePolysetVolume|condition|cone|confirmDialog|connectAttr|connectControl|connectDynamic|connectJoint|connectionInfo|constrain|constrainValue|constructionHistory|container|containsMultibyte|contextInfo|control|convertFromOldLayers|convertIffToPsd|convertLightmap|convertSolidTx|convertTessellation|convertUnit|copyArray|copyFlexor|copyKey|copySkinWeights|cos|cpButton|cpCache|cpClothSet|cpCollision|cpConstraint|cpConvClothToMesh|cpForces|cpGetSolverAttr|cpPanel|cpProperty|cpRigidCollisionFilter|cpSeam|cpSetEdit|cpSetSolverAttr|cpSolver|cpSolverTypes|cpTool|cpUpdateClothUVs|createDisplayLayer|createDrawCtx|createEditor|createLayeredPsdFile|createMotionField|createNewShelf|createNode|createRenderLayer|createSubdivRegion|cross|crossProduct|ctxAbort|ctxCompletion|ctxEditMode|ctxTraverse|currentCtx|currentTime|currentTimeCtx|currentUnit|curve|curveAddPtCtx|curveCVCtx|curveEPCtx|curveEditorCtx|curveIntersect|curveMoveEPCtx|curveOnSurface|curveSketchCtx|cutKey|cycleCheck|cylinder|dagPose|date|defaultLightListCheckBox|defaultNavigation|defineDataServer|defineVirtualDevice|deformer|deg_to_rad|delete|deleteAttr|deleteShadingGroupsAndMaterials|deleteShelfTab|deleteUI|deleteUnusedBrushes|delrandstr|detachCurve|detachDeviceAttr|detachSurface|deviceEditor|devicePanel|dgInfo|dgdirty|dgeval|dgtimer|dimWhen|directKeyCtx|directionalLight|dirmap|dirname|disable|disconnectAttr|disconnectJoint|diskCache|displacementToPoly|displayAffected|displayColor|displayCull|displayLevelOfDetail|displayPref|displayRGBColor|displaySmoothness|displayStats|displayString|displaySurface|distanceDimContext|distanceDimension|doBlur|dolly|dollyCtx|dopeSheetEditor|dot|dotProduct|doubleProfileBirailSurface|drag|dragAttrContext|draggerContext|dropoffLocator|duplicate|duplicateCurve|duplicateSurface|dynCache|dynControl|dynExport|dynExpression|dynGlobals|dynPaintEditor|dynParticleCtx|dynPref|dynRelEdPanel|dynRelEditor|dynamicLoad|editAttrLimits|editDisplayLayerGlobals|editDisplayLayerMembers|editRenderLayerAdjustment|editRenderLayerGlobals|editRenderLayerMembers|editor|editorTemplate|effector|emit|emitter|enableDevice|encodeString|endString|endsWith|env|equivalent|equivalentTol|erf|error|eval|evalDeferred|evalEcho|event|exactWorldBoundingBox|exclusiveLightCheckBox|exec|executeForEachObject|exists|exp|expression|expressionEditorListen|extendCurve|extendSurface|extrude|fcheck|fclose|feof|fflush|fgetline|fgetword|file|fileBrowserDialog|fileDialog|fileExtension|fileInfo|filetest|filletCurve|filter|filterCurve|filterExpand|filterStudioImport|findAllIntersections|findAnimCurves|findKeyframe|findMenuItem|findRelatedSkinCluster|finder|firstParentOf|fitBspline|flexor|floatEq|floatField|floatFieldGrp|floatScrollBar|floatSlider|floatSlider2|floatSliderButtonGrp|floatSliderGrp|floor|flow|fluidCacheInfo|fluidEmitter|fluidVoxelInfo|flushUndo|fmod|fontDialog|fopen|formLayout|format|fprint|frameLayout|fread|freeFormFillet|frewind|fromNativePath|fwrite|gamma|gauss|geometryConstraint|getApplicationVersionAsFloat|getAttr|getClassification|getDefaultBrush|getFileList|getFluidAttr|getInputDeviceRange|getMayaPanelTypes|getModifiers|getPanel|getParticleAttr|getPluginResource|getenv|getpid|glRender|glRenderEditor|globalStitch|gmatch|goal|gotoBindPose|grabColor|gradientControl|gradientControlNoAttr|graphDollyCtx|graphSelectContext|graphTrackCtx|gravity|grid|gridLayout|group|groupObjectsByName|hardenPointCurve|hardware|hardwareRenderPanel|headsUpDisplay|headsUpMessage|help|helpLine|hermite|hide|hilite|hitTest|hotBox|hotkey|hotkeyCheck|hsv_to_rgb|hudButton|hudSlider|hudSliderButton|hwReflectionMap|hwRender|hwRenderLoad|hyperGraph|hyperPanel|hyperShade|hypot|iconTextButton|iconTextCheckBox|iconTextRadioButton|iconTextRadioCollection|iconTextScrollList|iconTextStaticLabel|ikHandle|ikHandleCtx|ikHandleDisplayScale|ikSolver|ikSplineHandleCtx|ikSystem|ikSystemInfo|ikfkDisplayMethod|illustratorCurves|image|imfPlugins|inheritTransform|insertJoint|insertJointCtx|insertKeyCtx|insertKnotCurve|insertKnotSurface|instance|instanceable|instancer|intField|intFieldGrp|intScrollBar|intSlider|intSliderGrp|interToUI|internalVar|intersect|iprEngine|isAnimCurve|isConnected|isDirty|isParentOf|isSameObject|isTrue|isValidObjectName|isValidString|isValidUiName|isolateSelect|itemFilter|itemFilterAttr|itemFilterRender|itemFilterType|joint|jointCluster|jointCtx|jointDisplayScale|jointLattice|keyTangent|keyframe|keyframeOutliner|keyframeRegionCurrentTimeCtx|keyframeRegionDirectKeyCtx|keyframeRegionDollyCtx|keyframeRegionInsertKeyCtx|keyframeRegionMoveKeyCtx|keyframeRegionScaleKeyCtx|keyframeRegionSelectKeyCtx|keyframeRegionSetKeyCtx|keyframeRegionTrackCtx|keyframeStats|lassoContext|lattice|latticeDeformKeyCtx|launch|launchImageEditor|layerButton|layeredShaderPort|layeredTexturePort|layout|layoutDialog|lightList|lightListEditor|lightListPanel|lightlink|lineIntersection|linearPrecision|linstep|listAnimatable|listAttr|listCameras|listConnections|listDeviceAttachments|listHistory|listInputDeviceAxes|listInputDeviceButtons|listInputDevices|listMenuAnnotation|listNodeTypes|listPanelCategories|listRelatives|listSets|listTransforms|listUnselected|listerEditor|loadFluid|loadNewShelf|loadPlugin|loadPluginLanguageResources|loadPrefObjects|localizedPanelLabel|lockNode|loft|log|longNameOf|lookThru|ls|lsThroughFilter|lsType|lsUI|mag|makeIdentity|makeLive|makePaintable|makeRoll|makeSingleSurface|makeTubeOn|makebot|manipMoveContext|manipMoveLimitsCtx|manipOptions|manipRotateContext|manipRotateLimitsCtx|manipScaleContext|manipScaleLimitsCtx|marker|match|max|memory|menu|menuBarLayout|menuEditor|menuItem|menuItemToShelf|menuSet|menuSetPref|messageLine|min|minimizeApp|mirrorJoint|modelCurrentTimeCtx|modelEditor|modelPanel|mouse|movIn|movOut|move|moveIKtoFK|moveKeyCtx|moveVertexAlongDirection|multiProfileBirailSurface|mute|nParticle|nameCommand|nameField|namespace|namespaceInfo|newPanelItems|newton|nodeCast|nodeIconButton|nodeOutliner|nodePreset|nodeType|noise|nonLinear|normalConstraint|normalize|nurbsBoolean|nurbsCopyUVSet|nurbsCube|nurbsEditUV|nurbsPlane|nurbsSelect|nurbsSquare|nurbsToPoly|nurbsToPolygonsPref|nurbsToSubdiv|nurbsToSubdivPref|nurbsUVSet|nurbsViewDirectionVector|objExists|objectCenter|objectLayer|objectType|objectTypeUI|obsoleteProc|oceanNurbsPreviewPlane|offsetCurve|offsetCurveOnSurface|offsetSurface|openGLExtension|openMayaPref|optionMenu|optionMenuGrp|optionVar|orbit|orbitCtx|orientConstraint|outlinerEditor|outlinerPanel|overrideModifier|paintEffectsDisplay|pairBlend|palettePort|paneLayout|panel|panelConfiguration|panelHistory|paramDimContext|paramDimension|paramLocator|parent|parentConstraint|particle|particleExists|particleInstancer|particleRenderInfo|partition|pasteKey|pathAnimation|pause|pclose|percent|performanceOptions|pfxstrokes|pickWalk|picture|pixelMove|planarSrf|plane|play|playbackOptions|playblast|plugAttr|plugNode|pluginInfo|pluginResourceUtil|pointConstraint|pointCurveConstraint|pointLight|pointMatrixMult|pointOnCurve|pointOnSurface|pointPosition|poleVectorConstraint|polyAppend|polyAppendFacetCtx|polyAppendVertex|polyAutoProjection|polyAverageNormal|polyAverageVertex|polyBevel|polyBlendColor|polyBlindData|polyBoolOp|polyBridgeEdge|polyCacheMonitor|polyCheck|polyChipOff|polyClipboard|polyCloseBorder|polyCollapseEdge|polyCollapseFacet|polyColorBlindData|polyColorDel|polyColorPerVertex|polyColorSet|polyCompare|polyCone|polyCopyUV|polyCrease|polyCreaseCtx|polyCreateFacet|polyCreateFacetCtx|polyCube|polyCut|polyCutCtx|polyCylinder|polyCylindricalProjection|polyDelEdge|polyDelFacet|polyDelVertex|polyDuplicateAndConnect|polyDuplicateEdge|polyEditUV|polyEditUVShell|polyEvaluate|polyExtrudeEdge|polyExtrudeFacet|polyExtrudeVertex|polyFlipEdge|polyFlipUV|polyForceUV|polyGeoSampler|polyHelix|polyInfo|polyInstallAction|polyLayoutUV|polyListComponentConversion|polyMapCut|polyMapDel|polyMapSew|polyMapSewMove|polyMergeEdge|polyMergeEdgeCtx|polyMergeFacet|polyMergeFacetCtx|polyMergeUV|polyMergeVertex|polyMirrorFace|polyMoveEdge|polyMoveFacet|polyMoveFacetUV|polyMoveUV|polyMoveVertex|polyNormal|polyNormalPerVertex|polyNormalizeUV|polyOptUvs|polyOptions|polyOutput|polyPipe|polyPlanarProjection|polyPlane|polyPlatonicSolid|polyPoke|polyPrimitive|polyPrism|polyProjection|polyPyramid|polyQuad|polyQueryBlindData|polyReduce|polySelect|polySelectConstraint|polySelectConstraintMonitor|polySelectCtx|polySelectEditCtx|polySeparate|polySetToFaceNormal|polySewEdge|polyShortestPathCtx|polySmooth|polySoftEdge|polySphere|polySphericalProjection|polySplit|polySplitCtx|polySplitEdge|polySplitRing|polySplitVertex|polyStraightenUVBorder|polySubdivideEdge|polySubdivideFacet|polyToSubdiv|polyTorus|polyTransfer|polyTriangulate|polyUVSet|polyUnite|polyWedgeFace|popen|popupMenu|pose|pow|preloadRefEd|print|progressBar|progressWindow|projFileViewer|projectCurve|projectTangent|projectionContext|projectionManip|promptDialog|propModCtx|propMove|psdChannelOutliner|psdEditTextureFile|psdExport|psdTextureFile|putenv|pwd|python|querySubdiv|quit|rad_to_deg|radial|radioButton|radioButtonGrp|radioCollection|radioMenuItemCollection|rampColorPort|rand|randomizeFollicles|randstate|rangeControl|readTake|rebuildCurve|rebuildSurface|recordAttr|recordDevice|redo|reference|referenceEdit|referenceQuery|refineSubdivSelectionList|refresh|refreshAE|registerPluginResource|rehash|reloadImage|removeJoint|removeMultiInstance|removePanelCategory|rename|renameAttr|renameSelectionList|renameUI|render|renderGlobalsNode|renderInfo|renderLayerButton|renderLayerParent|renderLayerPostProcess|renderLayerUnparent|renderManip|renderPartition|renderQualityNode|renderSettings|renderThumbnailUpdate|renderWindowEditor|renderWindowSelectContext|renderer|reorder|reorderDeformers|requires|reroot|resampleFluid|resetAE|resetPfxToPolyCamera|resetTool|resolutionNode|retarget|reverseCurve|reverseSurface|revolve|rgb_to_hsv|rigidBody|rigidSolver|roll|rollCtx|rootOf|rot|rotate|rotationInterpolation|roundConstantRadius|rowColumnLayout|rowLayout|runTimeCommand|runup|sampleImage|saveAllShelves|saveAttrPreset|saveFluid|saveImage|saveInitialState|saveMenu|savePrefObjects|savePrefs|saveShelf|saveToolSettings|scale|scaleBrushBrightness|scaleComponents|scaleConstraint|scaleKey|scaleKeyCtx|sceneEditor|sceneUIReplacement|scmh|scriptCtx|scriptEditorInfo|scriptJob|scriptNode|scriptTable|scriptToShelf|scriptedPanel|scriptedPanelType|scrollField|scrollLayout|sculpt|searchPathArray|seed|selLoadSettings|select|selectContext|selectCurveCV|selectKey|selectKeyCtx|selectKeyframeRegionCtx|selectMode|selectPref|selectPriority|selectType|selectedNodes|selectionConnection|separator|setAttr|setAttrEnumResource|setAttrMapping|setAttrNiceNameResource|setConstraintRestPosition|setDefaultShadingGroup|setDrivenKeyframe|setDynamic|setEditCtx|setEditor|setFluidAttr|setFocus|setInfinity|setInputDeviceMapping|setKeyCtx|setKeyPath|setKeyframe|setKeyframeBlendshapeTargetWts|setMenuMode|setNodeNiceNameResource|setNodeTypeFlag|setParent|setParticleAttr|setPfxToPolyCamera|setPluginResource|setProject|setStampDensity|setStartupMessage|setState|setToolTo|setUITemplate|setXformManip|sets|shadingConnection|shadingGeometryRelCtx|shadingLightRelCtx|shadingNetworkCompare|shadingNode|shapeCompare|shelfButton|shelfLayout|shelfTabLayout|shellField|shortNameOf|showHelp|showHidden|showManipCtx|showSelectionInTitle|showShadingGroupAttrEditor|showWindow|sign|simplify|sin|singleProfileBirailSurface|size|sizeBytes|skinCluster|skinPercent|smoothCurve|smoothTangentSurface|smoothstep|snap2to2|snapKey|snapMode|snapTogetherCtx|snapshot|soft|softMod|softModCtx|sort|sound|soundControl|source|spaceLocator|sphere|sphrand|spotLight|spotLightPreviewPort|spreadSheetEditor|spring|sqrt|squareSurface|srtContext|stackTrace|startString|startsWith|stitchAndExplodeShell|stitchSurface|stitchSurfacePoints|strcmp|stringArrayCatenate|stringArrayContains|stringArrayCount|stringArrayInsertAtIndex|stringArrayIntersector|stringArrayRemove|stringArrayRemoveAtIndex|stringArrayRemoveDuplicates|stringArrayRemoveExact|stringArrayToString|stringToStringArray|strip|stripPrefixFromName|stroke|subdAutoProjection|subdCleanTopology|subdCollapse|subdDuplicateAndConnect|subdEditUV|subdListComponentConversion|subdMapCut|subdMapSewMove|subdMatchTopology|subdMirror|subdToBlind|subdToPoly|subdTransferUVsToCache|subdiv|subdivCrease|subdivDisplaySmoothness|substitute|substituteAllString|substituteGeometry|substring|surface|surfaceSampler|surfaceShaderList|swatchDisplayPort|switchTable|symbolButton|symbolCheckBox|sysFile|system|tabLayout|tan|tangentConstraint|texLatticeDeformContext|texManipContext|texMoveContext|texMoveUVShellContext|texRotateContext|texScaleContext|texSelectContext|texSelectShortestPathCtx|texSmudgeUVContext|texWinToolCtx|text|textCurves|textField|textFieldButtonGrp|textFieldGrp|textManip|textScrollList|textToShelf|textureDisplacePlane|textureHairColor|texturePlacementContext|textureWindow|threadCount|threePointArcCtx|timeControl|timePort|timerX|toNativePath|toggle|toggleAxis|toggleWindowVisibility|tokenize|tokenizeList|tolerance|tolower|toolButton|toolCollection|toolDropped|toolHasOptions|toolPropertyWindow|torus|toupper|trace|track|trackCtx|transferAttributes|transformCompare|transformLimits|translator|trim|trunc|truncateFluidCache|truncateHairCache|tumble|tumbleCtx|turbulence|twoPointArcCtx|uiRes|uiTemplate|unassignInputDevice|undo|undoInfo|ungroup|uniform|unit|unloadPlugin|untangleUV|untitledFileName|untrim|upAxis|updateAE|userCtx|uvLink|uvSnapshot|validateShelfName|vectorize|view2dToolCtx|viewCamera|viewClipPlane|viewFit|viewHeadOn|viewLookAt|viewManip|viewPlace|viewSet|visor|volumeAxis|vortex|waitCursor|warning|webBrowser|webBrowserPrefs|whatIs|window|windowPref|wire|wireContext|workspace|wrinkle|wrinkleContext|writeTake|xbmLangPathList|xform)\b/,operator:[/\+[+=]?|-[-=]?|&&|\|\||[<>]=|[*\/!=]=?|[%^]/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,:;?\[\](){}]/},i.languages.mel.code.inside.rest=i.languages.mel}return mel_1}var mermaid_1,hasRequiredMermaid;function requireMermaid(){if(hasRequiredMermaid)return mermaid_1;hasRequiredMermaid=1,mermaid_1=a,a.displayName="mermaid",a.aliases=[];function a(i){i.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}return mermaid_1}var mizar_1,hasRequiredMizar;function requireMizar(){if(hasRequiredMizar)return mizar_1;hasRequiredMizar=1,mizar_1=a,a.displayName="mizar",a.aliases=[];function a(i){i.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}return mizar_1}var mongodb_1,hasRequiredMongodb;function requireMongodb(){if(hasRequiredMongodb)return mongodb_1;hasRequiredMongodb=1,mongodb_1=a,a.displayName="mongodb",a.aliases=[];function a(i){(function(_e){var pt=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],Lt=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];pt=pt.map(function(Ct){return Ct.replace("$","\\$")});var Gt="(?:"+pt.join("|")+")\\b";_e.languages.mongodb=_e.languages.extend("javascript",{}),_e.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+Gt+"(?:\\1)?$")}}}),_e.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},_e.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+Lt.join("|")+")\\b"),alias:"keyword"}})})(i)}return mongodb_1}var monkey_1,hasRequiredMonkey;function requireMonkey(){if(hasRequiredMonkey)return monkey_1;hasRequiredMonkey=1,monkey_1=a,a.displayName="monkey",a.aliases=[];function a(i){i.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}return monkey_1}var moonscript_1,hasRequiredMoonscript;function requireMoonscript(){if(hasRequiredMoonscript)return moonscript_1;hasRequiredMoonscript=1,moonscript_1=a,a.displayName="moonscript",a.aliases=["moon"];function a(i){i.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},i.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=i.languages.moonscript,i.languages.moon=i.languages.moonscript}return moonscript_1}var n1ql_1,hasRequiredN1ql;function requireN1ql(){if(hasRequiredN1ql)return n1ql_1;hasRequiredN1ql=1,n1ql_1=a,a.displayName="n1ql",a.aliases=[];function a(i){i.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}return n1ql_1}var n4js_1,hasRequiredN4js;function requireN4js(){if(hasRequiredN4js)return n4js_1;hasRequiredN4js=1,n4js_1=a,a.displayName="n4js",a.aliases=["n4jsd"];function a(i){i.languages.n4js=i.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),i.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),i.languages.n4jsd=i.languages.n4js}return n4js_1}var nand2tetrisHdl_1,hasRequiredNand2tetrisHdl;function requireNand2tetrisHdl(){if(hasRequiredNand2tetrisHdl)return nand2tetrisHdl_1;hasRequiredNand2tetrisHdl=1,nand2tetrisHdl_1=a,a.displayName="nand2tetrisHdl",a.aliases=[];function a(i){i.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}return nand2tetrisHdl_1}var naniscript_1,hasRequiredNaniscript;function requireNaniscript(){if(hasRequiredNaniscript)return naniscript_1;hasRequiredNaniscript=1,naniscript_1=a,a.displayName="naniscript",a.aliases=[];function a(i){(function(_e){var pt=/\{[^\r\n\[\]{}]*\}/,Lt={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:pt,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};_e.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:pt,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:Lt}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:pt,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:Lt},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},_e.languages.nani=_e.languages.naniscript,_e.hooks.add("after-tokenize",function(Rt){var o=Rt.tokens;o.forEach(function(it){if(typeof it!="string"&&it.type==="generic-text"){var xt=Ct(it);Gt(xt)||(it.type="bad-line",it.content=xt)}})});function Gt(Rt){for(var o="[]{}",it=[],xt=0;xt=&|$!]/}}return nasm_1}var neon_1,hasRequiredNeon;function requireNeon(){if(hasRequiredNeon)return neon_1;hasRequiredNeon=1,neon_1=a,a.displayName="neon",a.aliases=[];function a(i){i.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"atrule"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}return neon_1}var nevod_1,hasRequiredNevod;function requireNevod(){if(hasRequiredNevod)return nevod_1;hasRequiredNevod=1,nevod_1=a,a.displayName="nevod",a.aliases=[];function a(i){i.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}return nevod_1}var nginx_1,hasRequiredNginx;function requireNginx(){if(hasRequiredNginx)return nginx_1;hasRequiredNginx=1,nginx_1=a,a.displayName="nginx",a.aliases=[];function a(i){(function(_e){var pt=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;_e.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:pt}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:pt}},punctuation:/[{};]/}})(i)}return nginx_1}var nim_1,hasRequiredNim;function requireNim(){if(hasRequiredNim)return nim_1;hasRequiredNim=1,nim_1=a,a.displayName="nim",a.aliases=[];function a(i){i.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}return nim_1}var nix_1,hasRequiredNix;function requireNix(){if(hasRequiredNix)return nix_1;hasRequiredNix=1,nix_1=a,a.displayName="nix",a.aliases=[];function a(i){i.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},i.languages.nix.string.inside.interpolation.inside=i.languages.nix}return nix_1}var nsis_1,hasRequiredNsis;function requireNsis(){if(hasRequiredNsis)return nsis_1;hasRequiredNsis=1,nsis_1=a,a.displayName="nsis",a.aliases=[];function a(i){i.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}return nsis_1}var objectivec_1,hasRequiredObjectivec;function requireObjectivec(){if(hasRequiredObjectivec)return objectivec_1;hasRequiredObjectivec=1;var a=requireC();objectivec_1=i,i.displayName="objectivec",i.aliases=["objc"];function i(_e){_e.register(a),_e.languages.objectivec=_e.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete _e.languages.objectivec["class-name"],_e.languages.objc=_e.languages.objectivec}return objectivec_1}var ocaml_1,hasRequiredOcaml;function requireOcaml(){if(hasRequiredOcaml)return ocaml_1;hasRequiredOcaml=1,ocaml_1=a,a.displayName="ocaml",a.aliases=[];function a(i){i.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}return ocaml_1}var opencl_1,hasRequiredOpencl;function requireOpencl(){if(hasRequiredOpencl)return opencl_1;hasRequiredOpencl=1;var a=requireC();opencl_1=i,i.displayName="opencl",i.aliases=[];function i(_e){_e.register(a),function(pt){pt.languages.opencl=pt.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),pt.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var Lt={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};pt.languages.insertBefore("c","keyword",Lt),pt.languages.cpp&&(Lt["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},pt.languages.insertBefore("cpp","keyword",Lt))}(_e)}return opencl_1}var openqasm_1,hasRequiredOpenqasm;function requireOpenqasm(){if(hasRequiredOpenqasm)return openqasm_1;hasRequiredOpenqasm=1,openqasm_1=a,a.displayName="openqasm",a.aliases=["qasm"];function a(i){i.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},i.languages.qasm=i.languages.openqasm}return openqasm_1}var oz_1,hasRequiredOz;function requireOz(){if(hasRequiredOz)return oz_1;hasRequiredOz=1,oz_1=a,a.displayName="oz",a.aliases=[];function a(i){i.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}return oz_1}var parigp_1,hasRequiredParigp;function requireParigp(){if(hasRequiredParigp)return parigp_1;hasRequiredParigp=1,parigp_1=a,a.displayName="parigp",a.aliases=[];function a(i){i.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var _e=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return _e=_e.map(function(pt){return pt.split("").join(" *")}).join("|"),RegExp("\\b(?:"+_e+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}return parigp_1}var parser_1,hasRequiredParser;function requireParser(){if(hasRequiredParser)return parser_1;hasRequiredParser=1,parser_1=a,a.displayName="parser",a.aliases=[];function a(i){(function(_e){var pt=_e.languages.parser=_e.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});pt=_e.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:pt.keyword,variable:pt.variable,function:pt.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:pt.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:pt.punctuation}}}),_e.languages.insertBefore("inside","punctuation",{expression:pt.expression,keyword:pt.keyword,variable:pt.variable,function:pt.function,escape:pt.escape,"parser-punctuation":{pattern:pt.punctuation,alias:"punctuation"}},pt.tag.inside["attr-value"])})(i)}return parser_1}var pascal_1,hasRequiredPascal;function requirePascal(){if(hasRequiredPascal)return pascal_1;hasRequiredPascal=1,pascal_1=a,a.displayName="pascal",a.aliases=["objectpascal"];function a(i){i.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},i.languages.pascal.asm.inside=i.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),i.languages.objectpascal=i.languages.pascal}return pascal_1}var pascaligo_1,hasRequiredPascaligo;function requirePascaligo(){if(hasRequiredPascaligo)return pascaligo_1;hasRequiredPascaligo=1,pascaligo_1=a,a.displayName="pascaligo",a.aliases=[];function a(i){(function(_e){var pt=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,Lt=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return pt}),Gt=_e.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return Lt}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return Lt}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return Lt})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},Ct=["comment","keyword","builtin","operator","punctuation"].reduce(function(Rt,o){return Rt[o]=Gt[o],Rt},{});Gt["class-name"].forEach(function(Rt){Rt.inside=Ct})})(i)}return pascaligo_1}var pcaxis_1,hasRequiredPcaxis;function requirePcaxis(){if(hasRequiredPcaxis)return pcaxis_1;hasRequiredPcaxis=1,pcaxis_1=a,a.displayName="pcaxis",a.aliases=["px"];function a(i){i.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},i.languages.px=i.languages.pcaxis}return pcaxis_1}var peoplecode_1,hasRequiredPeoplecode;function requirePeoplecode(){if(hasRequiredPeoplecode)return peoplecode_1;hasRequiredPeoplecode=1,peoplecode_1=a,a.displayName="peoplecode",a.aliases=["pcode"];function a(i){i.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},i.languages.pcode=i.languages.peoplecode}return peoplecode_1}var perl_1,hasRequiredPerl;function requirePerl(){if(hasRequiredPerl)return perl_1;hasRequiredPerl=1,perl_1=a,a.displayName="perl",a.aliases=[];function a(i){(function(_e){var pt=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;_e.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,pt].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,pt].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,pt+/\s*/.source+pt].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(i)}return perl_1}var phpExtras_1,hasRequiredPhpExtras;function requirePhpExtras(){if(hasRequiredPhpExtras)return phpExtras_1;hasRequiredPhpExtras=1;var a=requirePhp();phpExtras_1=i,i.displayName="phpExtras",i.aliases=[];function i(_e){_e.register(a),_e.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}return phpExtras_1}var phpdoc_1,hasRequiredPhpdoc;function requirePhpdoc(){if(hasRequiredPhpdoc)return phpdoc_1;hasRequiredPhpdoc=1;var a=requirePhp(),i=requireJavadoclike();phpdoc_1=_e,_e.displayName="phpdoc",_e.aliases=[];function _e(pt){pt.register(a),pt.register(i),function(Lt){var Gt=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;Lt.languages.phpdoc=Lt.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+Gt+"\\s+)?)\\$\\w+"),lookbehind:!0}}),Lt.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+Gt),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),Lt.languages.javadoclike.addSupport("php",Lt.languages.phpdoc)}(pt)}return phpdoc_1}var plsql_1,hasRequiredPlsql;function requirePlsql(){if(hasRequiredPlsql)return plsql_1;hasRequiredPlsql=1;var a=requireSql();plsql_1=i,i.displayName="plsql",i.aliases=[];function i(_e){_e.register(a),_e.languages.plsql=_e.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),_e.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}return plsql_1}var powerquery_1,hasRequiredPowerquery;function requirePowerquery(){if(hasRequiredPowerquery)return powerquery_1;hasRequiredPowerquery=1,powerquery_1=a,a.displayName="powerquery",a.aliases=[];function a(i){i.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},i.languages.pq=i.languages.powerquery,i.languages.mscript=i.languages.powerquery}return powerquery_1}var powershell_1,hasRequiredPowershell;function requirePowershell(){if(hasRequiredPowershell)return powershell_1;hasRequiredPowershell=1,powershell_1=a,a.displayName="powershell",a.aliases=[];function a(i){(function(_e){var pt=_e.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};pt.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:pt},boolean:pt.boolean,variable:pt.variable}})(i)}return powershell_1}var processing_1,hasRequiredProcessing;function requireProcessing(){if(hasRequiredProcessing)return processing_1;hasRequiredProcessing=1,processing_1=a,a.displayName="processing",a.aliases=[];function a(i){i.languages.processing=i.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),i.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}return processing_1}var prolog_1,hasRequiredProlog;function requireProlog(){if(hasRequiredProlog)return prolog_1;hasRequiredProlog=1,prolog_1=a,a.displayName="prolog",a.aliases=[];function a(i){i.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}return prolog_1}var promql_1,hasRequiredPromql;function requirePromql(){if(hasRequiredPromql)return promql_1;hasRequiredPromql=1,promql_1=a,a.displayName="promql",a.aliases=[];function a(i){(function(_e){var pt=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],Lt=["on","ignoring","group_right","group_left","by","without"],Gt=["offset"],Ct=pt.concat(Lt,Gt);_e.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+Lt.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+Ct.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(i)}return promql_1}var properties_1,hasRequiredProperties;function requireProperties(){if(hasRequiredProperties)return properties_1;hasRequiredProperties=1,properties_1=a,a.displayName="properties",a.aliases=[];function a(i){i.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,punctuation:/[=:]/}}return properties_1}var protobuf_1,hasRequiredProtobuf;function requireProtobuf(){if(hasRequiredProtobuf)return protobuf_1;hasRequiredProtobuf=1,protobuf_1=a,a.displayName="protobuf",a.aliases=[];function a(i){(function(_e){var pt=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;_e.languages.protobuf=_e.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),_e.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:pt}},builtin:pt,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(i)}return protobuf_1}var psl_1,hasRequiredPsl;function requirePsl(){if(hasRequiredPsl)return psl_1;hasRequiredPsl=1,psl_1=a,a.displayName="psl",a.aliases=[];function a(i){i.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}return psl_1}var pug_1,hasRequiredPug;function requirePug(){if(hasRequiredPug)return pug_1;hasRequiredPug=1,pug_1=a,a.displayName="pug",a.aliases=[];function a(i){(function(_e){_e.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:_e.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:_e.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:_e.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:_e.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:_e.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:_e.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:_e.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:_e.languages.javascript}],punctuation:/[.\-!=|]+/};for(var pt=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,Lt=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],Gt={},Ct=0,Rt=Lt.length;Ct",function(){return o.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[o.language,"language-"+o.language],inside:_e.languages[o.language]}}})}_e.languages.insertBefore("pug","filter",Gt)})(i)}return pug_1}var puppet_1,hasRequiredPuppet;function requirePuppet(){if(hasRequiredPuppet)return puppet_1;hasRequiredPuppet=1,puppet_1=a,a.displayName="puppet",a.aliases=[];function a(i){(function(_e){_e.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var pt=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:_e.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];_e.languages.puppet.heredoc[0].inside.interpolation=pt,_e.languages.puppet.string.inside["double-quoted"].inside.interpolation=pt})(i)}return puppet_1}var pure_1,hasRequiredPure;function requirePure(){if(hasRequiredPure)return pure_1;hasRequiredPure=1,pure_1=a,a.displayName="pure",a.aliases=[];function a(i){(function(_e){_e.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var pt=["c",{lang:"c++",alias:"cpp"},"fortran"],Lt=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;pt.forEach(function(Gt){var Ct=Gt;if(typeof Gt!="string"&&(Ct=Gt.alias,Gt=Gt.lang),_e.languages[Ct]){var Rt={};Rt["inline-lang-"+Ct]={pattern:RegExp(Lt.replace("",Gt.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:_e.util.clone(_e.languages.pure["inline-lang"].inside)},Rt["inline-lang-"+Ct].inside.rest=_e.util.clone(_e.languages[Ct]),_e.languages.insertBefore("pure","inline-lang",Rt)}}),_e.languages.c&&(_e.languages.pure["inline-lang"].inside.rest=_e.util.clone(_e.languages.c))})(i)}return pure_1}var purebasic_1,hasRequiredPurebasic;function requirePurebasic(){if(hasRequiredPurebasic)return purebasic_1;hasRequiredPurebasic=1,purebasic_1=a,a.displayName="purebasic",a.aliases=[];function a(i){i.languages.purebasic=i.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+|-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*/@]/}),i.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete i.languages.purebasic["class-name"],delete i.languages.purebasic.boolean,i.languages.pbfasm=i.languages.purebasic}return purebasic_1}var purescript_1,hasRequiredPurescript;function requirePurescript(){if(hasRequiredPurescript)return purescript_1;hasRequiredPurescript=1;var a=requireHaskell();purescript_1=i,i.displayName="purescript",i.aliases=["purs"];function i(_e){_e.register(a),_e.languages.purescript=_e.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[_e.languages.haskell.operator[0],_e.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),_e.languages.purs=_e.languages.purescript}return purescript_1}var python_1,hasRequiredPython;function requirePython(){if(hasRequiredPython)return python_1;hasRequiredPython=1,python_1=a,a.displayName="python",a.aliases=["py"];function a(i){i.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},i.languages.python["string-interpolation"].inside.interpolation.inside.rest=i.languages.python,i.languages.py=i.languages.python}return python_1}var q_1,hasRequiredQ;function requireQ(){if(hasRequiredQ)return q_1;hasRequiredQ=1,q_1=a,a.displayName="q",a.aliases=[];function a(i){i.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}return q_1}var qml_1,hasRequiredQml;function requireQml(){if(hasRequiredQml)return qml_1;hasRequiredQml=1,qml_1=a,a.displayName="qml",a.aliases=[];function a(i){(function(_e){for(var pt=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,Lt=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,Gt=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return pt}).replace(//g,function(){return Lt}),Ct=0;Ct<2;Ct++)Gt=Gt.replace(//g,function(){return Gt});Gt=Gt.replace(//g,"[^\\s\\S]"),_e.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return Gt}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:_e.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return Gt}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:_e.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(i)}return qml_1}var qore_1,hasRequiredQore;function requireQore(){if(hasRequiredQore)return qore_1;hasRequiredQore=1,qore_1=a,a.displayName="qore",a.aliases=[];function a(i){i.languages.qore=i.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}return qore_1}var qsharp_1,hasRequiredQsharp;function requireQsharp(){if(hasRequiredQsharp)return qsharp_1;hasRequiredQsharp=1,qsharp_1=a,a.displayName="qsharp",a.aliases=["qs"];function a(i){(function(_e){function pt(ut,ht){return ut.replace(/<<(\d+)>>/g,function(j,_){return"(?:"+ht[+_]+")"})}function Lt(ut,ht,j){return RegExp(pt(ut,ht),j||"")}function Gt(ut,ht){for(var j=0;j>/g,function(){return"(?:"+ut+")"});return ut.replace(/<>/g,"[^\\s\\S]")}var Ct={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function Rt(ut){return"\\b(?:"+ut.trim().replace(/ /g,"|")+")\\b"}var o=RegExp(Rt(Ct.type+" "+Ct.other)),it=/\b[A-Za-z_]\w*\b/.source,xt=pt(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[it]),et={keyword:o,punctuation:/[<>()?,.:[\]]/},Et=/"(?:\\.|[^\\"])*"/.source;_e.languages.qsharp=_e.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:Lt(/(^|[^$\\])<<0>>/.source,[Et]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:Lt(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[xt]),lookbehind:!0,inside:et},{pattern:Lt(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[xt]),lookbehind:!0,inside:et}],keyword:o,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),_e.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var mt=Gt(pt(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[Et]),2);_e.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:Lt(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[mt]),greedy:!0,inside:{interpolation:{pattern:Lt(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[mt]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:_e.languages.qsharp}}},string:/[\s\S]+/}}})})(i),i.languages.qs=i.languages.qsharp}return qsharp_1}var r_1,hasRequiredR;function requireR(){if(hasRequiredR)return r_1;hasRequiredR=1,r_1=a,a.displayName="r",a.aliases=[];function a(i){i.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}return r_1}var racket_1,hasRequiredRacket;function requireRacket(){if(hasRequiredRacket)return racket_1;hasRequiredRacket=1;var a=requireScheme();racket_1=i,i.displayName="racket",i.aliases=["rkt"];function i(_e){_e.register(a),_e.languages.racket=_e.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),_e.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),_e.languages.rkt=_e.languages.racket}return racket_1}var reason_1,hasRequiredReason;function requireReason(){if(hasRequiredReason)return reason_1;hasRequiredReason=1,reason_1=a,a.displayName="reason",a.aliases=[];function a(i){i.languages.reason=i.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),i.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete i.languages.reason.function}return reason_1}var regex_1,hasRequiredRegex;function requireRegex(){if(hasRequiredRegex)return regex_1;hasRequiredRegex=1,regex_1=a,a.displayName="regex",a.aliases=[];function a(i){(function(_e){var pt={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},Lt=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,Gt={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},Ct={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},Rt="(?:[^\\\\-]|"+Lt.source+")",o=RegExp(Rt+"-"+Rt),it={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};_e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:o,inside:{escape:Lt,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":pt,"char-set":Ct,escape:Lt}},"special-escape":pt,"char-set":Gt,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":it}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:Lt,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}return rego_1}var renpy_1,hasRequiredRenpy;function requireRenpy(){if(hasRequiredRenpy)return renpy_1;hasRequiredRenpy=1,renpy_1=a,a.displayName="renpy",a.aliases=["rpy"];function a(i){i.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},i.languages.rpy=i.languages.renpy}return renpy_1}var rest_1,hasRequiredRest;function requireRest(){if(hasRequiredRest)return rest_1;hasRequiredRest=1,rest_1=a,a.displayName="rest",a.aliases=[];function a(i){i.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}return rest_1}var rip_1,hasRequiredRip;function requireRip(){if(hasRequiredRip)return rip_1;hasRequiredRip=1,rip_1=a,a.displayName="rip",a.aliases=[];function a(i){i.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}return rip_1}var roboconf_1,hasRequiredRoboconf;function requireRoboconf(){if(hasRequiredRoboconf)return roboconf_1;hasRequiredRoboconf=1,roboconf_1=a,a.displayName="roboconf",a.aliases=[];function a(i){i.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}return roboconf_1}var robotframework_1,hasRequiredRobotframework;function requireRobotframework(){if(hasRequiredRobotframework)return robotframework_1;hasRequiredRobotframework=1,robotframework_1=a,a.displayName="robotframework",a.aliases=[];function a(i){(function(_e){var pt={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},Lt={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function Gt(it,xt){var et={};et["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var Et in xt)et[Et]=xt[Et];return et.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},et.variable=Lt,et.comment=pt,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return it}),"im"),alias:"section",inside:et}}var Ct={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},Rt={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:Lt}},o={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:Lt}};_e.languages.robotframework={settings:Gt("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:Gt("Variables"),"test-cases":Gt("Test Cases",{"test-name":Rt,documentation:Ct,property:o}),keywords:Gt("Keywords",{"keyword-name":Rt,documentation:Ct,property:o}),tasks:Gt("Tasks",{"task-name":Rt,documentation:Ct,property:o}),comment:pt},_e.languages.robot=_e.languages.robotframework})(i)}return robotframework_1}var rust_1,hasRequiredRust;function requireRust(){if(hasRequiredRust)return rust_1;hasRequiredRust=1,rust_1=a,a.displayName="rust",a.aliases=[];function a(i){(function(_e){for(var pt=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,Lt=0;Lt<2;Lt++)pt=pt.replace(//g,function(){return pt});pt=pt.replace(//g,function(){return/[^\s\S]/.source}),_e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+pt),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},_e.languages.rust["closure-params"].inside.rest=_e.languages.rust,_e.languages.rust.attribute.inside.string=_e.languages.rust.string})(i)}return rust_1}var sas_1,hasRequiredSas;function requireSas(){if(hasRequiredSas)return sas_1;hasRequiredSas=1,sas_1=a,a.displayName="sas",a.aliases=[];function a(i){(function(_e){var pt=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,Lt=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,Gt={pattern:RegExp(pt+"[bx]"),alias:"number"},Ct={pattern:/&[a-z_]\w*/i},Rt={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},o={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},it=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],xt={pattern:RegExp(pt),greedy:!0},et=/[$%@.(){}\[\];,\\]/,Et={pattern:/%?\b\w+(?=\()/,alias:"keyword"},mt={function:Et,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":Ct,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:Lt,"numeric-constant":Gt,punctuation:et,string:xt},ut={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},ht={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},j={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},_={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},rt=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,tt={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return rt}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return rt}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:it,function:Et,"arg-value":mt["arg-value"],operator:mt.operator,argument:mt.arg,number:Lt,"numeric-constant":Gt,punctuation:et,string:xt}},st={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};_e.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return pt}),"im"),alias:"language-sql",inside:_e.languages.sql},"global-statements":j,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:Lt,"numeric-constant":Gt,punctuation:et,string:xt}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:it,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return pt}),"im"),lookbehind:!0,alias:"language-groovy",inside:_e.languages.groovy},keyword:st,"submit-statement":_,"global-statements":j,number:Lt,"numeric-constant":Gt,punctuation:et,string:xt}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:it,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return pt}),"im"),lookbehind:!0,alias:"language-lua",inside:_e.languages.lua},keyword:st,"submit-statement":_,"global-statements":j,number:Lt,"numeric-constant":Gt,punctuation:et,string:xt}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:it,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:mt}},"cas-actions":tt,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:mt},step:o,keyword:st,function:Et,format:ut,altformat:ht,"global-statements":j,number:Lt,"numeric-constant":Gt,punctuation:et,string:xt}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return pt}),"im"),lookbehind:!0,inside:mt},"macro-keyword":Rt,"macro-variable":Ct,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":Rt,"macro-variable":Ct,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:et}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:it,number:Lt,"numeric-constant":Gt}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:mt},"cas-actions":tt,comment:it,function:Et,format:ut,altformat:ht,"numeric-constant":Gt,datetime:{pattern:RegExp(pt+"(?:dt?|t)"),alias:"number"},string:xt,step:o,keyword:st,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:Lt,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:et}})(i)}return sas_1}var sass_1,hasRequiredSass;function requireSass(){if(hasRequiredSass)return sass_1;hasRequiredSass=1,sass_1=a,a.displayName="sass",a.aliases=[];function a(i){(function(_e){_e.languages.sass=_e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),_e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete _e.languages.sass.atrule;var pt=/\$[-\w]+|#\{\$[-\w]+\}/,Lt=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];_e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:pt,operator:Lt}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:pt,operator:Lt,important:_e.languages.sass.important}}}),delete _e.languages.sass.property,delete _e.languages.sass.important,_e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(i)}return sass_1}var scala_1,hasRequiredScala;function requireScala(){if(hasRequiredScala)return scala_1;hasRequiredScala=1;var a=requireJava();scala_1=i,i.displayName="scala",i.aliases=[];function i(_e){_e.register(a),_e.languages.scala=_e.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),_e.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:_e.languages.scala}}},string:/[\s\S]+/}}}),delete _e.languages.scala["class-name"],delete _e.languages.scala.function}return scala_1}var scss_1,hasRequiredScss;function requireScss(){if(hasRequiredScss)return scss_1;hasRequiredScss=1,scss_1=a,a.displayName="scss",a.aliases=[];function a(i){i.languages.scss=i.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),i.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),i.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),i.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),i.languages.scss.atrule.inside.rest=i.languages.scss}return scss_1}var shellSession_1,hasRequiredShellSession;function requireShellSession(){if(hasRequiredShellSession)return shellSession_1;hasRequiredShellSession=1;var a=requireBash();shellSession_1=i,i.displayName="shellSession",i.aliases=[];function i(_e){_e.register(a),function(pt){var Lt=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");pt.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<>)+/.source.replace(/<>/g,function(){return Lt}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:pt.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},pt.languages["sh-session"]=pt.languages.shellsession=pt.languages["shell-session"]}(_e)}return shellSession_1}var smali_1,hasRequiredSmali;function requireSmali(){if(hasRequiredSmali)return smali_1;hasRequiredSmali=1,smali_1=a,a.displayName="smali",a.aliases=[];function a(i){i.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}return smali_1}var smalltalk_1,hasRequiredSmalltalk;function requireSmalltalk(){if(hasRequiredSmalltalk)return smalltalk_1;hasRequiredSmalltalk=1,smalltalk_1=a,a.displayName="smalltalk",a.aliases=[];function a(i){i.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}return smalltalk_1}var smarty_1,hasRequiredSmarty;function requireSmarty(){if(hasRequiredSmarty)return smarty_1;hasRequiredSmarty=1;var a=requireMarkupTemplating();smarty_1=i,i.displayName="smarty",i.aliases=[];function i(_e){_e.register(a),function(pt){pt.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:pt.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},pt.languages.smarty["embedded-php"].inside.smarty.inside=pt.languages.smarty,pt.languages.smarty.string[0].inside.interpolation.inside.expression.inside=pt.languages.smarty;var Lt=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,Gt=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return Lt.source}),"g");pt.hooks.add("before-tokenize",function(Ct){var Rt="{literal}",o="{/literal}",it=!1;pt.languages["markup-templating"].buildPlaceholders(Ct,"smarty",Gt,function(xt){return xt===o&&(it=!1),it?!1:(xt===Rt&&(it=!0),!0)})}),pt.hooks.add("after-tokenize",function(Ct){pt.languages["markup-templating"].tokenizePlaceholders(Ct,"smarty")})}(_e)}return smarty_1}var sml_1,hasRequiredSml;function requireSml(){if(hasRequiredSml)return sml_1;hasRequiredSml=1,sml_1=a,a.displayName="sml",a.aliases=["smlnj"];function a(i){(function(_e){var pt=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;_e.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)(?:\s*(?:(?:\*|->)\s*|,\s*(?:(?=)|(?!)\s+)))*/.source.replace(//g,function(){return/\s*(?:[*,]|->)/.source}).replace(//g,function(){return/(?:'[\w']*||\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+)*/.source}).replace(//g,function(){return/(?!)[a-z\d_][\w'.]*/.source}).replace(//g,function(){return pt.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:pt,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},_e.languages.sml["class-name"][0].inside=_e.languages.sml,_e.languages.smlnj=_e.languages.sml})(i)}return sml_1}var solidity_1,hasRequiredSolidity;function requireSolidity(){if(hasRequiredSolidity)return solidity_1;hasRequiredSolidity=1,solidity_1=a,a.displayName="solidity",a.aliases=["sol"];function a(i){i.languages.solidity=i.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),i.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),i.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),i.languages.sol=i.languages.solidity}return solidity_1}var solutionFile_1,hasRequiredSolutionFile;function requireSolutionFile(){if(hasRequiredSolutionFile)return solutionFile_1;hasRequiredSolutionFile=1,solutionFile_1=a,a.displayName="solutionFile",a.aliases=[];function a(i){(function(_e){var pt={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};_e.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:pt}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:pt}},guid:pt,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},_e.languages.sln=_e.languages["solution-file"]})(i)}return solutionFile_1}var soy_1,hasRequiredSoy;function requireSoy(){if(hasRequiredSoy)return soy_1;hasRequiredSoy=1;var a=requireMarkupTemplating();soy_1=i,i.displayName="soy",i.aliases=[];function i(_e){_e.register(a),function(pt){var Lt=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,Gt=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;pt.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:Lt,greedy:!0},number:Gt,punctuation:/[\[\].?]/}},string:{pattern:Lt,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:Gt,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},pt.hooks.add("before-tokenize",function(Ct){var Rt=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,o="{literal}",it="{/literal}",xt=!1;pt.languages["markup-templating"].buildPlaceholders(Ct,"soy",Rt,function(et){return et===it&&(xt=!1),xt?!1:(et===o&&(xt=!0),!0)})}),pt.hooks.add("after-tokenize",function(Ct){pt.languages["markup-templating"].tokenizePlaceholders(Ct,"soy")})}(_e)}return soy_1}var turtle_1,hasRequiredTurtle;function requireTurtle(){if(hasRequiredTurtle)return turtle_1;hasRequiredTurtle=1,turtle_1=a,a.displayName="turtle",a.aliases=[];function a(i){i.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},i.languages.trig=i.languages.turtle}return turtle_1}var sparql_1,hasRequiredSparql;function requireSparql(){if(hasRequiredSparql)return sparql_1;hasRequiredSparql=1;var a=requireTurtle();sparql_1=i,i.displayName="sparql",i.aliases=["rq"];function i(_e){_e.register(a),_e.languages.sparql=_e.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),_e.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),_e.languages.rq=_e.languages.sparql}return sparql_1}var splunkSpl_1,hasRequiredSplunkSpl;function requireSplunkSpl(){if(hasRequiredSplunkSpl)return splunkSpl_1;hasRequiredSplunkSpl=1,splunkSpl_1=a,a.displayName="splunkSpl",a.aliases=[];function a(i){i.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}return splunkSpl_1}var sqf_1,hasRequiredSqf;function requireSqf(){if(hasRequiredSqf)return sqf_1;hasRequiredSqf=1,sqf_1=a,a.displayName="sqf",a.aliases=[];function a(i){i.languages.sqf=i.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),i.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:i.languages.sqf.comment}}}),delete i.languages.sqf["class-name"]}return sqf_1}var squirrel_1,hasRequiredSquirrel;function requireSquirrel(){if(hasRequiredSquirrel)return squirrel_1;hasRequiredSquirrel=1,squirrel_1=a,a.displayName="squirrel",a.aliases=[];function a(i){i.languages.squirrel=i.languages.extend("clike",{comment:[i.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),i.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),i.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}return squirrel_1}var stan_1,hasRequiredStan;function requireStan(){if(hasRequiredStan)return stan_1;hasRequiredStan=1,stan_1=a,a.displayName="stan",a.aliases=[];function a(i){(function(_e){var pt=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;_e.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+pt.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,pt],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},_e.languages.stan.constraint.inside.expression.inside=_e.languages.stan})(i)}return stan_1}var stylus_1,hasRequiredStylus;function requireStylus(){if(hasRequiredStylus)return stylus_1;hasRequiredStylus=1,stylus_1=a,a.displayName="stylus",a.aliases=[];function a(i){(function(_e){var pt={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},Lt={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},Gt={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:pt,number:Lt,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:pt,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:Lt,punctuation:/[{}()\[\];:,]/};Gt.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:Gt}},Gt.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:Gt}},_e.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:Gt}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:Gt}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:Gt}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:Gt.interpolation}},rest:Gt}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:Gt.interpolation,comment:Gt.comment,punctuation:/[{},]/}},func:Gt.func,string:Gt.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:Gt.interpolation,punctuation:/[{}()\[\];:.]/}})(i)}return stylus_1}var swift_1,hasRequiredSwift;function requireSwift(){if(hasRequiredSwift)return swift_1;hasRequiredSwift=1,swift_1=a,a.displayName="swift",a.aliases=[];function a(i){i.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},i.languages.swift["string-literal"].forEach(function(_e){_e.inside.interpolation.inside=i.languages.swift})}return swift_1}var systemd_1,hasRequiredSystemd;function requireSystemd(){if(hasRequiredSystemd)return systemd_1;hasRequiredSystemd=1,systemd_1=a,a.displayName="systemd",a.aliases=[];function a(i){(function(_e){var pt={pattern:/^[;#].*/m,greedy:!0},Lt=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;_e.languages.systemd={comment:pt,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+Lt+`|(?=[^"\r -]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+Lt+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:pt,quoted:{pattern:RegExp(/(^|\s)/.source+Lt),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(i)}return systemd_1}var t4Templating_1,hasRequiredT4Templating;function requireT4Templating(){if(hasRequiredT4Templating)return t4Templating_1;hasRequiredT4Templating=1,t4Templating_1=a,a.displayName="t4Templating",a.aliases=[];function a(i){(function(_e){function pt(Gt,Ct,Rt){return{pattern:RegExp("<#"+Gt+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+Gt+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:Ct,alias:Rt}}}}function Lt(Gt){var Ct=_e.languages[Gt],Rt="language-"+Gt;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:pt("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:pt("=",Ct,Rt),"class-feature":pt("\\+",Ct,Rt),standard:pt("",Ct,Rt)}}}}_e.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:Lt})})(i)}return t4Templating_1}var t4Cs_1,hasRequiredT4Cs;function requireT4Cs(){if(hasRequiredT4Cs)return t4Cs_1;hasRequiredT4Cs=1;var a=requireT4Templating(),i=requireCsharp();t4Cs_1=_e,_e.displayName="t4Cs",_e.aliases=[];function _e(pt){pt.register(a),pt.register(i),pt.languages.t4=pt.languages["t4-cs"]=pt.languages["t4-templating"].createT4("csharp")}return t4Cs_1}var vbnet_1,hasRequiredVbnet;function requireVbnet(){if(hasRequiredVbnet)return vbnet_1;hasRequiredVbnet=1;var a=requireBasic();vbnet_1=i,i.displayName="vbnet",i.aliases=[];function i(_e){_e.register(a),_e.languages.vbnet=_e.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}return vbnet_1}var t4Vb_1,hasRequiredT4Vb;function requireT4Vb(){if(hasRequiredT4Vb)return t4Vb_1;hasRequiredT4Vb=1;var a=requireT4Templating(),i=requireVbnet();t4Vb_1=_e,_e.displayName="t4Vb",_e.aliases=[];function _e(pt){pt.register(a),pt.register(i),pt.languages["t4-vb"]=pt.languages["t4-templating"].createT4("vbnet")}return t4Vb_1}var yaml_1,hasRequiredYaml;function requireYaml(){if(hasRequiredYaml)return yaml_1;hasRequiredYaml=1,yaml_1=a,a.displayName="yaml",a.aliases=["yml"];function a(i){(function(_e){var pt=/[*&][^\s[\]{},]+/,Lt=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,Gt="(?:"+Lt.source+"(?:[ ]+"+pt.source+")?|"+pt.source+"(?:[ ]+"+Lt.source+")?)",Ct=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),Rt=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(it,xt){xt=(xt||"").replace(/m/g,"")+"m";var et=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return Gt}).replace(/<>/g,function(){return it});return RegExp(et,xt)}_e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return Gt})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return Gt}).replace(/<>/g,function(){return"(?:"+Ct+"|"+Rt+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(Rt),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:Lt,important:pt,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},_e.languages.yml=_e.languages.yaml})(i)}return yaml_1}var tap_1,hasRequiredTap;function requireTap(){if(hasRequiredTap)return tap_1;hasRequiredTap=1;var a=requireYaml();tap_1=i,i.displayName="tap",i.aliases=[];function i(_e){_e.register(a),_e.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:_e.languages.yaml,alias:"language-yaml"}}}return tap_1}var tcl_1,hasRequiredTcl;function requireTcl(){if(hasRequiredTcl)return tcl_1;hasRequiredTcl=1,tcl_1=a,a.displayName="tcl",a.aliases=[];function a(i){i.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}return tcl_1}var textile_1,hasRequiredTextile;function requireTextile(){if(hasRequiredTextile)return textile_1;hasRequiredTextile=1,textile_1=a,a.displayName="textile",a.aliases=[];function a(i){(function(_e){var pt=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,Lt=/\)|\((?![^|()\n]+\))/.source;function Gt(Et,mt){return RegExp(Et.replace(//g,function(){return"(?:"+pt+")"}).replace(//g,function(){return"(?:"+Lt+")"}),mt||"")}var Ct={css:{pattern:/\{[^{}]+\}/,inside:{rest:_e.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},Rt=_e.languages.textile=_e.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:Gt(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:Gt(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:Ct},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:Gt(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:Gt(/(^[*#]+)+/.source),lookbehind:!0,inside:Ct},punctuation:/^[*#]+/}},table:{pattern:Gt(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:Gt(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:Ct},punctuation:/\||^\./}},inline:{pattern:Gt(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:Gt(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:Gt(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:Gt(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:Gt(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:Gt(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:Gt(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:Gt(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:Gt(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:Ct},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:Gt(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:Gt(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:Gt(/(^")+/.source),lookbehind:!0,inside:Ct},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:Gt(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:Gt(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:Gt(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:Ct},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),o=Rt.phrase.inside,it={inline:o.inline,link:o.link,image:o.image,footnote:o.footnote,acronym:o.acronym,mark:o.mark};Rt.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var xt=o.inline.inside;xt.bold.inside=it,xt.italic.inside=it,xt.inserted.inside=it,xt.deleted.inside=it,xt.span.inside=it;var et=o.table.inside;et.inline=it.inline,et.link=it.link,et.image=it.image,et.footnote=it.footnote,et.acronym=it.acronym,et.mark=it.mark})(i)}return textile_1}var toml_1,hasRequiredToml;function requireToml(){if(hasRequiredToml)return toml_1;hasRequiredToml=1,toml_1=a,a.displayName="toml",a.aliases=[];function a(i){(function(_e){var pt=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function Lt(Gt){return Gt.replace(/__/g,function(){return pt})}_e.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(Lt(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(Lt(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(i)}return toml_1}var tremor_1,hasRequiredTremor;function requireTremor(){if(hasRequiredTremor)return tremor_1;hasRequiredTremor=1,tremor_1=a,a.displayName="tremor",a.aliases=[];function a(i){(function(_e){_e.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var pt=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;_e.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+pt+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+pt+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(pt),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:_e.languages.tremor}}},string:/[\s\S]+/}},_e.languages.troy=_e.languages.tremor,_e.languages.trickle=_e.languages.tremor})(i)}return tremor_1}var tsx_1,hasRequiredTsx;function requireTsx(){if(hasRequiredTsx)return tsx_1;hasRequiredTsx=1;var a=requireJsx(),i=requireTypescript();tsx_1=_e,_e.displayName="tsx",_e.aliases=[];function _e(pt){pt.register(a),pt.register(i),function(Lt){var Gt=Lt.util.clone(Lt.languages.typescript);Lt.languages.tsx=Lt.languages.extend("jsx",Gt),delete Lt.languages.tsx.parameter,delete Lt.languages.tsx["literal-property"];var Ct=Lt.languages.tsx.tag;Ct.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+Ct.pattern.source+")",Ct.pattern.flags),Ct.lookbehind=!0}(pt)}return tsx_1}var tt2_1,hasRequiredTt2;function requireTt2(){if(hasRequiredTt2)return tt2_1;hasRequiredTt2=1;var a=requireMarkupTemplating();tt2_1=i,i.displayName="tt2",i.aliases=[];function i(_e){_e.register(a),function(pt){pt.languages.tt2=pt.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),pt.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),pt.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),pt.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete pt.languages.tt2.string,pt.hooks.add("before-tokenize",function(Lt){var Gt=/\[%[\s\S]+?%\]/g;pt.languages["markup-templating"].buildPlaceholders(Lt,"tt2",Gt)}),pt.hooks.add("after-tokenize",function(Lt){pt.languages["markup-templating"].tokenizePlaceholders(Lt,"tt2")})}(_e)}return tt2_1}var twig_1,hasRequiredTwig;function requireTwig(){if(hasRequiredTwig)return twig_1;hasRequiredTwig=1;var a=requireMarkupTemplating();twig_1=i,i.displayName="twig",i.aliases=[];function i(_e){_e.register(a),_e.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},_e.hooks.add("before-tokenize",function(pt){if(pt.language==="twig"){var Lt=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;_e.languages["markup-templating"].buildPlaceholders(pt,"twig",Lt)}}),_e.hooks.add("after-tokenize",function(pt){_e.languages["markup-templating"].tokenizePlaceholders(pt,"twig")})}return twig_1}var typoscript_1,hasRequiredTyposcript;function requireTyposcript(){if(hasRequiredTyposcript)return typoscript_1;hasRequiredTyposcript=1,typoscript_1=a,a.displayName="typoscript",a.aliases=["tsconfig"];function a(i){(function(_e){var pt=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;_e.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:pt}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:pt,number:/^\d+$/,punctuation:/[,|:]/}},keyword:pt,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},_e.languages.tsconfig=_e.languages.typoscript})(i)}return typoscript_1}var unrealscript_1,hasRequiredUnrealscript;function requireUnrealscript(){if(hasRequiredUnrealscript)return unrealscript_1;hasRequiredUnrealscript=1,unrealscript_1=a,a.displayName="unrealscript",a.aliases=["uc","uscript"];function a(i){i.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},i.languages.uc=i.languages.uscript=i.languages.unrealscript}return unrealscript_1}var uorazor_1,hasRequiredUorazor;function requireUorazor(){if(hasRequiredUorazor)return uorazor_1;hasRequiredUorazor=1,uorazor_1=a,a.displayName="uorazor",a.aliases=[];function a(i){i.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}return uorazor_1}var uri_1,hasRequiredUri;function requireUri(){if(hasRequiredUri)return uri_1;hasRequiredUri=1,uri_1=a,a.displayName="uri",a.aliases=["url"];function a(i){i.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},i.languages.url=i.languages.uri}return uri_1}var v_1,hasRequiredV;function requireV(){if(hasRequiredV)return v_1;hasRequiredV=1,v_1=a,a.displayName="v",a.aliases=[];function a(i){(function(_e){var pt={pattern:/[\s\S]+/,inside:null};_e.languages.v=_e.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":pt}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),pt.inside=_e.languages.v,_e.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),_e.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),_e.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:_e.languages.v.generic.inside}}}})})(i)}return v_1}var vala_1,hasRequiredVala;function requireVala(){if(hasRequiredVala)return vala_1;hasRequiredVala=1,vala_1=a,a.displayName="vala",a.aliases=[];function a(i){i.languages.vala=i.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),i.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:i.languages.vala}},string:/[\s\S]+/}}}),i.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:i.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}return vala_1}var velocity_1,hasRequiredVelocity;function requireVelocity(){if(hasRequiredVelocity)return velocity_1;hasRequiredVelocity=1,velocity_1=a,a.displayName="velocity",a.aliases=[];function a(i){(function(_e){_e.languages.velocity=_e.languages.extend("markup",{});var pt={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};pt.variable.inside={string:pt.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:pt.number,boolean:pt.boolean,punctuation:pt.punctuation},_e.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:pt}},variable:pt.variable}),_e.languages.velocity.tag.inside["attr-value"].inside.rest=_e.languages.velocity})(i)}return velocity_1}var verilog_1,hasRequiredVerilog;function requireVerilog(){if(hasRequiredVerilog)return verilog_1;hasRequiredVerilog=1,verilog_1=a,a.displayName="verilog",a.aliases=[];function a(i){i.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}return verilog_1}var vhdl_1,hasRequiredVhdl;function requireVhdl(){if(hasRequiredVhdl)return vhdl_1;hasRequiredVhdl=1,vhdl_1=a,a.displayName="vhdl",a.aliases=[];function a(i){i.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}return vhdl_1}var vim_1,hasRequiredVim;function requireVim(){if(hasRequiredVim)return vim_1;hasRequiredVim=1,vim_1=a,a.displayName="vim",a.aliases=[];function a(i){i.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}return vim_1}var visualBasic_1,hasRequiredVisualBasic;function requireVisualBasic(){if(hasRequiredVisualBasic)return visualBasic_1;hasRequiredVisualBasic=1,visualBasic_1=a,a.displayName="visualBasic",a.aliases=[];function a(i){i.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},i.languages.vb=i.languages["visual-basic"],i.languages.vba=i.languages["visual-basic"]}return visualBasic_1}var warpscript_1,hasRequiredWarpscript;function requireWarpscript(){if(hasRequiredWarpscript)return warpscript_1;hasRequiredWarpscript=1,warpscript_1=a,a.displayName="warpscript",a.aliases=[];function a(i){i.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}return warpscript_1}var wasm_1,hasRequiredWasm;function requireWasm(){if(hasRequiredWasm)return wasm_1;hasRequiredWasm=1,wasm_1=a,a.displayName="wasm",a.aliases=[];function a(i){i.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}return wasm_1}var webIdl_1,hasRequiredWebIdl;function requireWebIdl(){if(hasRequiredWebIdl)return webIdl_1;hasRequiredWebIdl=1,webIdl_1=a,a.displayName="webIdl",a.aliases=[];function a(i){(function(_e){var pt=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,Lt="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+pt+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,Gt={};_e.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+pt),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:Gt},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+Lt),lookbehind:!0,inside:Gt},{pattern:RegExp("("+/\bcallback\s+/.source+pt+/\s*=\s*/.source+")"+Lt),lookbehind:!0,inside:Gt},{pattern:RegExp(/(\btypedef\b\s*)/.source+Lt),lookbehind:!0,inside:Gt},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+pt),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+pt),lookbehind:!0},RegExp(pt+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+pt),lookbehind:!0},{pattern:RegExp(Lt+"(?="+/\s*(?:\.{3}\s*)?/.source+pt+/\s*[(),;=]/.source+")"),inside:Gt}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var Ct in _e.languages["web-idl"])Ct!=="class-name"&&(Gt[Ct]=_e.languages["web-idl"][Ct]);_e.languages.webidl=_e.languages["web-idl"]})(i)}return webIdl_1}var wiki_1,hasRequiredWiki;function requireWiki(){if(hasRequiredWiki)return wiki_1;hasRequiredWiki=1,wiki_1=a,a.displayName="wiki",a.aliases=[];function a(i){i.languages.wiki=i.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:i.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),i.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:i.languages.markup.tag.inside}}}})}return wiki_1}var wolfram_1,hasRequiredWolfram;function requireWolfram(){if(hasRequiredWolfram)return wolfram_1;hasRequiredWolfram=1,wolfram_1=a,a.displayName="wolfram",a.aliases=["mathematica","wl","nb"];function a(i){i.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},i.languages.mathematica=i.languages.wolfram,i.languages.wl=i.languages.wolfram,i.languages.nb=i.languages.wolfram}return wolfram_1}var wren_1,hasRequiredWren;function requireWren(){if(hasRequiredWren)return wren_1;hasRequiredWren=1,wren_1=a,a.displayName="wren",a.aliases=[];function a(i){i.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},i.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:i.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}return wren_1}var xeora_1,hasRequiredXeora;function requireXeora(){if(hasRequiredXeora)return xeora_1;hasRequiredXeora=1,xeora_1=a,a.displayName="xeora",a.aliases=["xeoracube"];function a(i){(function(_e){_e.languages.xeora=_e.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),_e.languages.insertBefore("inside","punctuation",{variable:_e.languages.xeora["function-inline"].inside.variable},_e.languages.xeora["function-block"]),_e.languages.xeoracube=_e.languages.xeora})(i)}return xeora_1}var xmlDoc_1,hasRequiredXmlDoc;function requireXmlDoc(){if(hasRequiredXmlDoc)return xmlDoc_1;hasRequiredXmlDoc=1,xmlDoc_1=a,a.displayName="xmlDoc",a.aliases=[];function a(i){(function(_e){function pt(Rt,o){_e.languages[Rt]&&_e.languages.insertBefore(Rt,"comment",{"doc-comment":o})}var Lt=_e.languages.markup.tag,Gt={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:Lt}},Ct={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:Lt}};pt("csharp",Gt),pt("fsharp",Gt),pt("vbnet",Ct)})(i)}return xmlDoc_1}var xojo_1,hasRequiredXojo;function requireXojo(){if(hasRequiredXojo)return xojo_1;hasRequiredXojo=1,xojo_1=a,a.displayName="xojo",a.aliases=[];function a(i){i.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}return xojo_1}var xquery_1,hasRequiredXquery;function requireXquery(){if(hasRequiredXquery)return xquery_1;hasRequiredXquery=1,xquery_1=a,a.displayName="xquery",a.aliases=[];function a(i){(function(_e){_e.languages.xquery=_e.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),_e.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,_e.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,_e.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,_e.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:_e.languages.xquery,alias:"language-xquery"};var pt=function(Gt){return typeof Gt=="string"?Gt:typeof Gt.content=="string"?Gt.content:Gt.content.map(pt).join("")},Lt=function(Gt){for(var Ct=[],Rt=0;Rt0&&Ct[Ct.length-1].tagName===pt(o.content[0].content[1])&&Ct.pop():o.content[o.content.length-1].content==="/>"||Ct.push({tagName:pt(o.content[0].content[1]),openedBraces:0}):Ct.length>0&&o.type==="punctuation"&&o.content==="{"&&(!Gt[Rt+1]||Gt[Rt+1].type!=="punctuation"||Gt[Rt+1].content!=="{")&&(!Gt[Rt-1]||Gt[Rt-1].type!=="plain-text"||Gt[Rt-1].content!=="{")?Ct[Ct.length-1].openedBraces++:Ct.length>0&&Ct[Ct.length-1].openedBraces>0&&o.type==="punctuation"&&o.content==="}"?Ct[Ct.length-1].openedBraces--:o.type!=="comment"&&(it=!0)),(it||typeof o=="string")&&Ct.length>0&&Ct[Ct.length-1].openedBraces===0){var xt=pt(o);Rt0&&(typeof Gt[Rt-1]=="string"||Gt[Rt-1].type==="plain-text")&&(xt=pt(Gt[Rt-1])+xt,Gt.splice(Rt-1,1),Rt--),/^\s+$/.test(xt)?Gt[Rt]=xt:Gt[Rt]=new _e.Token("plain-text",xt,null,xt)}o.content&&typeof o.content!="string"&&Lt(o.content)}};_e.hooks.add("after-tokenize",function(Gt){Gt.language==="xquery"&&Lt(Gt.tokens)})})(i)}return xquery_1}var yang_1,hasRequiredYang;function requireYang(){if(hasRequiredYang)return yang_1;hasRequiredYang=1,yang_1=a,a.displayName="yang",a.aliases=[];function a(i){i.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}return yang_1}var zig_1,hasRequiredZig;function requireZig(){if(hasRequiredZig)return zig_1;hasRequiredZig=1,zig_1=a,a.displayName="zig",a.aliases=[];function a(i){(function(_e){function pt(xt){return function(){return xt}}var Lt=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,Gt="\\b(?!"+Lt.source+")(?!\\d)\\w+\\b",Ct=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,Rt=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,pt(Ct)),o=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,pt(Gt)),it="(?!\\s)(?:!?\\s*(?:"+Rt+"\\s*)*"+o+")+";_e.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,pt(it)).replace(//g,pt(Ct))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,pt(it)).replace(//g,pt(Ct))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:Lt,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},_e.languages.zig["class-name"].forEach(function(xt){xt.inside===null&&(xt.inside=_e.languages.zig)})})(i)}return zig_1}var refractor=core,refractor_1=refractor;refractor.register(requireAbap());refractor.register(requireAbnf());refractor.register(requireActionscript());refractor.register(requireAda());refractor.register(requireAgda());refractor.register(requireAl());refractor.register(requireAntlr4());refractor.register(requireApacheconf());refractor.register(requireApex());refractor.register(requireApl());refractor.register(requireApplescript());refractor.register(requireAql());refractor.register(requireArduino());refractor.register(requireArff());refractor.register(requireAsciidoc());refractor.register(requireAsm6502());refractor.register(requireAsmatmel());refractor.register(requireAspnet());refractor.register(requireAutohotkey());refractor.register(requireAutoit());refractor.register(requireAvisynth());refractor.register(requireAvroIdl());refractor.register(requireBash());refractor.register(requireBasic());refractor.register(requireBatch());refractor.register(requireBbcode());refractor.register(requireBicep());refractor.register(requireBirb());refractor.register(requireBison());refractor.register(requireBnf());refractor.register(requireBrainfuck());refractor.register(requireBrightscript());refractor.register(requireBro());refractor.register(requireBsl());refractor.register(requireC());refractor.register(requireCfscript());refractor.register(requireChaiscript());refractor.register(requireCil());refractor.register(requireClojure());refractor.register(requireCmake());refractor.register(requireCobol());refractor.register(requireCoffeescript());refractor.register(requireConcurnas());refractor.register(requireCoq());refractor.register(requireCpp());refractor.register(requireCrystal());refractor.register(requireCsharp());refractor.register(requireCshtml());refractor.register(requireCsp());refractor.register(requireCssExtras());refractor.register(requireCsv());refractor.register(requireCypher());refractor.register(requireD());refractor.register(requireDart());refractor.register(requireDataweave());refractor.register(requireDax());refractor.register(requireDhall());refractor.register(requireDiff());refractor.register(requireDjango());refractor.register(requireDnsZoneFile());refractor.register(requireDocker());refractor.register(requireDot());refractor.register(requireEbnf());refractor.register(requireEditorconfig());refractor.register(requireEiffel());refractor.register(requireEjs());refractor.register(requireElixir());refractor.register(requireElm());refractor.register(requireErb());refractor.register(requireErlang());refractor.register(requireEtlua());refractor.register(requireExcelFormula());refractor.register(requireFactor());refractor.register(require_false());refractor.register(requireFirestoreSecurityRules());refractor.register(requireFlow());refractor.register(requireFortran());refractor.register(requireFsharp());refractor.register(requireFtl());refractor.register(requireGap());refractor.register(requireGcode());refractor.register(requireGdscript());refractor.register(requireGedcom());refractor.register(requireGherkin());refractor.register(requireGit());refractor.register(requireGlsl());refractor.register(requireGml());refractor.register(requireGn());refractor.register(requireGoModule());refractor.register(requireGo());refractor.register(requireGraphql());refractor.register(requireGroovy());refractor.register(requireHaml());refractor.register(requireHandlebars());refractor.register(requireHaskell());refractor.register(requireHaxe());refractor.register(requireHcl());refractor.register(requireHlsl());refractor.register(requireHoon());refractor.register(requireHpkp());refractor.register(requireHsts());refractor.register(requireHttp());refractor.register(requireIchigojam());refractor.register(requireIcon());refractor.register(requireIcuMessageFormat());refractor.register(requireIdris());refractor.register(requireIecst());refractor.register(requireIgnore());refractor.register(requireInform7());refractor.register(requireIni());refractor.register(requireIo());refractor.register(requireJ());refractor.register(requireJava());refractor.register(requireJavadoc());refractor.register(requireJavadoclike());refractor.register(requireJavastacktrace());refractor.register(requireJexl());refractor.register(requireJolie());refractor.register(requireJq());refractor.register(requireJsExtras());refractor.register(requireJsTemplates());refractor.register(requireJsdoc());refractor.register(requireJson());refractor.register(requireJson5());refractor.register(requireJsonp());refractor.register(requireJsstacktrace());refractor.register(requireJsx());refractor.register(requireJulia());refractor.register(requireKeepalived());refractor.register(requireKeyman());refractor.register(requireKotlin());refractor.register(requireKumir());refractor.register(requireKusto());refractor.register(requireLatex());refractor.register(requireLatte());refractor.register(requireLess());refractor.register(requireLilypond());refractor.register(requireLiquid());refractor.register(requireLisp());refractor.register(requireLivescript());refractor.register(requireLlvm());refractor.register(requireLog());refractor.register(requireLolcode());refractor.register(requireLua());refractor.register(requireMagma());refractor.register(requireMakefile());refractor.register(requireMarkdown());refractor.register(requireMarkupTemplating());refractor.register(requireMatlab());refractor.register(requireMaxscript());refractor.register(requireMel());refractor.register(requireMermaid());refractor.register(requireMizar());refractor.register(requireMongodb());refractor.register(requireMonkey());refractor.register(requireMoonscript());refractor.register(requireN1ql());refractor.register(requireN4js());refractor.register(requireNand2tetrisHdl());refractor.register(requireNaniscript());refractor.register(requireNasm());refractor.register(requireNeon());refractor.register(requireNevod());refractor.register(requireNginx());refractor.register(requireNim());refractor.register(requireNix());refractor.register(requireNsis());refractor.register(requireObjectivec());refractor.register(requireOcaml());refractor.register(requireOpencl());refractor.register(requireOpenqasm());refractor.register(requireOz());refractor.register(requireParigp());refractor.register(requireParser());refractor.register(requirePascal());refractor.register(requirePascaligo());refractor.register(requirePcaxis());refractor.register(requirePeoplecode());refractor.register(requirePerl());refractor.register(requirePhpExtras());refractor.register(requirePhp());refractor.register(requirePhpdoc());refractor.register(requirePlsql());refractor.register(requirePowerquery());refractor.register(requirePowershell());refractor.register(requireProcessing());refractor.register(requireProlog());refractor.register(requirePromql());refractor.register(requireProperties());refractor.register(requireProtobuf());refractor.register(requirePsl());refractor.register(requirePug());refractor.register(requirePuppet());refractor.register(requirePure());refractor.register(requirePurebasic());refractor.register(requirePurescript());refractor.register(requirePython());refractor.register(requireQ());refractor.register(requireQml());refractor.register(requireQore());refractor.register(requireQsharp());refractor.register(requireR());refractor.register(requireRacket());refractor.register(requireReason());refractor.register(requireRegex());refractor.register(requireRego());refractor.register(requireRenpy());refractor.register(requireRest());refractor.register(requireRip());refractor.register(requireRoboconf());refractor.register(requireRobotframework());refractor.register(requireRuby());refractor.register(requireRust());refractor.register(requireSas());refractor.register(requireSass());refractor.register(requireScala());refractor.register(requireScheme());refractor.register(requireScss());refractor.register(requireShellSession());refractor.register(requireSmali());refractor.register(requireSmalltalk());refractor.register(requireSmarty());refractor.register(requireSml());refractor.register(requireSolidity());refractor.register(requireSolutionFile());refractor.register(requireSoy());refractor.register(requireSparql());refractor.register(requireSplunkSpl());refractor.register(requireSqf());refractor.register(requireSql());refractor.register(requireSquirrel());refractor.register(requireStan());refractor.register(requireStylus());refractor.register(requireSwift());refractor.register(requireSystemd());refractor.register(requireT4Cs());refractor.register(requireT4Templating());refractor.register(requireT4Vb());refractor.register(requireTap());refractor.register(requireTcl());refractor.register(requireTextile());refractor.register(requireToml());refractor.register(requireTremor());refractor.register(requireTsx());refractor.register(requireTt2());refractor.register(requireTurtle());refractor.register(requireTwig());refractor.register(requireTypescript());refractor.register(requireTyposcript());refractor.register(requireUnrealscript());refractor.register(requireUorazor());refractor.register(requireUri());refractor.register(requireV());refractor.register(requireVala());refractor.register(requireVbnet());refractor.register(requireVelocity());refractor.register(requireVerilog());refractor.register(requireVhdl());refractor.register(requireVim());refractor.register(requireVisualBasic());refractor.register(requireWarpscript());refractor.register(requireWasm());refractor.register(requireWebIdl());refractor.register(requireWiki());refractor.register(requireWolfram());refractor.register(requireWren());refractor.register(requireXeora());refractor.register(requireXmlDoc());refractor.register(requireXojo());refractor.register(requireXquery());refractor.register(requireYaml());refractor.register(requireYang());refractor.register(requireZig());var highlighter=highlight$1(refractor_1,defaultStyle);highlighter.supportedLanguages=supportedLanguages;const SyntaxHighlighter=highlighter,nord={'code[class*="language-"]':{color:"#f8f8f2",background:"none",fontFamily:`"Fira Code", Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace`,textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#2E3440",fontFamily:`"Fira Code", Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace`,textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#2E3440",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#636f88"},prolog:{color:"#636f88"},doctype:{color:"#636f88"},cdata:{color:"#636f88"},punctuation:{color:"#81A1C1"},".namespace":{Opacity:".7"},property:{color:"#81A1C1"},tag:{color:"#81A1C1"},constant:{color:"#81A1C1"},symbol:{color:"#81A1C1"},deleted:{color:"#81A1C1"},number:{color:"#B48EAD"},boolean:{color:"#81A1C1"},selector:{color:"#A3BE8C"},"attr-name":{color:"#A3BE8C"},string:{color:"#A3BE8C"},char:{color:"#A3BE8C"},builtin:{color:"#A3BE8C"},inserted:{color:"#A3BE8C"},operator:{color:"#81A1C1"},entity:{color:"#81A1C1",cursor:"help"},url:{color:"#81A1C1"},".language-css .token.string":{color:"#81A1C1"},".style .token.string":{color:"#81A1C1"},variable:{color:"#81A1C1"},atrule:{color:"#88C0D0"},"attr-value":{color:"#88C0D0"},function:{color:"#88C0D0"},"class-name":{color:"#88C0D0"},keyword:{color:"#81A1C1"},regex:{color:"#EBCB8B"},important:{color:"#EBCB8B",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}},container$1="_container_1e2o5_1",chatRoot="_chatRoot_1e2o5_7",chatContainer="_chatContainer_1e2o5_17",chatEmptyState="_chatEmptyState_1e2o5_31",chatEmptyStateTitle="_chatEmptyStateTitle_1e2o5_39",chatEmptyStateSubtitle="_chatEmptyStateSubtitle_1e2o5_51",chatIcon="_chatIcon_1e2o5_65",chatMessageStream="_chatMessageStream_1e2o5_71",chatMessageUser="_chatMessageUser_1e2o5_83",chatMessageUserMessage="_chatMessageUserMessage_1e2o5_89",chatMessageGpt="_chatMessageGpt_1e2o5_110",chatMessageError="_chatMessageError_1e2o5_116",chatMessageErrorContent="_chatMessageErrorContent_1e2o5_130",chatInput="_chatInput_1e2o5_142",clearChatBroom="_clearChatBroom_1e2o5_155",clearChatBroomNoCosmos="_clearChatBroomNoCosmos_1e2o5_171",newChatIcon="_newChatIcon_1e2o5_187",stopGeneratingContainer="_stopGeneratingContainer_1e2o5_203",stopGeneratingIcon="_stopGeneratingIcon_1e2o5_220",stopGeneratingText="_stopGeneratingText_1e2o5_226",citationPanel="_citationPanel_1e2o5_241",citationPanelHeaderContainer="_citationPanelHeaderContainer_1e2o5_261",citationPanelHeader="_citationPanelHeader_1e2o5_261",citationPanelDismiss="_citationPanelDismiss_1e2o5_276",citationPanelTitle="_citationPanelTitle_1e2o5_287",citationPanelContent="_citationPanelContent_1e2o5_302",exectResultList="_exectResultList_1e2o5_314",viewSourceButton="_viewSourceButton_1e2o5_347",chatMessageUserAttachment="_chatMessageUserAttachment_1e2o5_397",userAttachmentDisclaimer="_userAttachmentDisclaimer_1e2o5_401",styles$5={container:container$1,chatRoot,chatContainer,chatEmptyState,chatEmptyStateTitle,chatEmptyStateSubtitle,chatIcon,chatMessageStream,chatMessageUser,chatMessageUserMessage,chatMessageGpt,chatMessageError,chatMessageErrorContent,chatInput,clearChatBroom,clearChatBroomNoCosmos,newChatIcon,stopGeneratingContainer,stopGeneratingIcon,stopGeneratingText,citationPanel,citationPanelHeaderContainer,citationPanelHeader,citationPanelDismiss,citationPanelTitle,citationPanelContent,exectResultList,viewSourceButton,chatMessageUserAttachment,userAttachmentDisclaimer},Contoso="/assets/Contoso-ff70ad88.svg",XSSAllowTags=["iframe","a","img","svg","h1","h2","h3","h4","h5","h6","div","p","span","small","del","img","pictrue","embed","video","audio","i","u","sup","sub","strong","strike","code","pre","body","section","article","footer","table","tr","td","th","thead","tbody","tfooter","ul","ol","li"],XSSAllowAttributes=["href"],ACCEPTED_FILE_TYPES=[".jpg",".png",".gif",".bmp",".tiff",".pdf"];var FileType=(a=>(a[a.Image=0]="Image",a[a.Pdf=1]="Pdf",a))(FileType||{}),CosmosDBStatus=(a=>(a.NotConfigured="CosmosDB is not configured",a.NotWorking="CosmosDB is not working",a.InvalidCredentials="CosmosDB has invalid credentials",a.InvalidDatabase="Invalid CosmosDB database name",a.InvalidContainer="Invalid CosmosDB container name",a.Working="CosmosDB is configured and working",a))(CosmosDBStatus||{}),ChatHistoryLoadingState=(a=>(a.Loading="loading",a.Success="success",a.Fail="fail",a.NotStarted="notStarted",a))(ChatHistoryLoadingState||{}),Feedback=(a=>(a.Neutral="neutral",a.Positive="positive",a.Negative="negative",a.MissingCitation="missing_citation",a.WrongCitation="wrong_citation",a.OutOfScope="out_of_scope",a.InaccurateOrIrrelevant="inaccurate_or_irrelevant",a.OtherUnhelpful="other_unhelpful",a.HateSpeech="hate_speech",a.Violent="violent",a.Sexual="sexual",a.Manipulative="manipulative",a.OtherHarmful="other_harmlful",a))(Feedback||{});async function conversationApi(a,i){const _e=Lt=>{const Gt=structuredClone(Lt),Ct=Gt.uploaded_file;return Ct!=null&&Ct.contents&&(Ct.type===FileType.Image?Gt.content=[{type:"image_url",image_url:{url:Ct.contents}},{type:"text",text:Gt.content}]:Ct.type===FileType.Pdf&&(Gt.content=[{type:"text",text:`Use the following document in your responses: - ---BEGIN DOCUMENT---${Ct.contents}---END DOCUMENT---`},{type:"text",text:Gt.content}])),Gt};return await fetch("/conversation",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:a.messages.map(_e)}),signal:i})}async function getUserInfo(){const a=await fetch("/.auth/me");return a.ok?await a.json():(console.log("No identity provider found. Access to chat will be blocked."),[])}const historyList=async(a=0)=>await fetch(`/history/list?offset=${a}`,{method:"GET"}).then(async _e=>{const pt=await _e.json();return Array.isArray(pt)?await Promise.all(pt.map(async Gt=>{let Ct=[];return Ct=await historyRead(Gt.id).then(o=>o).catch(o=>(console.error("error fetching messages: ",o),[])),{id:Gt.id,title:Gt.title,date:Gt.createdAt,messages:Ct}})):(console.error("There was an issue fetching your data."),null)}).catch(_e=>(console.error("There was an issue fetching your data."),null)),historyRead=async a=>await fetch("/history/read",{method:"POST",body:JSON.stringify({conversation_id:a}),headers:{"Content-Type":"application/json"}}).then(async _e=>{if(!_e)return[];const pt=await _e.json(),Lt=[];return pt!=null&&pt.messages&&pt.messages.forEach(Gt=>{const Ct={id:Gt.id,role:Gt.role,date:Gt.createdAt,content:Gt.content,feedback:Gt.feedback??void 0};Lt.push(Ct)}),Lt}).catch(_e=>(console.error("There was an issue fetching your data."),[])),historyGenerate=async(a,i,_e)=>{let pt;return _e?pt=JSON.stringify({conversation_id:_e,messages:a.messages}):pt=JSON.stringify({messages:a.messages}),await fetch("/history/generate",{method:"POST",headers:{"Content-Type":"application/json"},body:pt,signal:i}).then(Gt=>Gt).catch(Gt=>(console.error("There was an issue fetching your data."),new Response))},historyUpdate=async(a,i)=>await fetch("/history/update",{method:"POST",body:JSON.stringify({conversation_id:i,messages:a}),headers:{"Content-Type":"application/json"}}).then(async pt=>pt).catch(pt=>(console.error("There was an issue fetching your data."),{...new Response,ok:!1,status:500})),historyDelete=async a=>await fetch("/history/delete",{method:"DELETE",body:JSON.stringify({conversation_id:a}),headers:{"Content-Type":"application/json"}}).then(_e=>_e).catch(_e=>(console.error("There was an issue fetching your data."),{...new Response,ok:!1,status:500})),historyDeleteAll=async()=>await fetch("/history/delete_all",{method:"DELETE",body:JSON.stringify({}),headers:{"Content-Type":"application/json"}}).then(i=>i).catch(i=>(console.error("There was an issue fetching your data."),{...new Response,ok:!1,status:500})),historyClear=async a=>await fetch("/history/clear",{method:"POST",body:JSON.stringify({conversation_id:a}),headers:{"Content-Type":"application/json"}}).then(_e=>_e).catch(_e=>(console.error("There was an issue fetching your data."),{...new Response,ok:!1,status:500})),historyRename=async(a,i)=>await fetch("/history/rename",{method:"POST",body:JSON.stringify({conversation_id:a,title:i}),headers:{"Content-Type":"application/json"}}).then(pt=>pt).catch(pt=>(console.error("There was an issue fetching your data."),{...new Response,ok:!1,status:500})),historyEnsure=async()=>({cosmosDB:!1,status:CosmosDBStatus.NotConfigured}),frontendSettings=async()=>await fetch("/frontend_settings",{method:"GET"}).then(i=>i.json()).catch(i=>(console.error("There was an issue fetching your data."),null)),historyMessageFeedback=async(a,i)=>await fetch("/history/message_feedback",{method:"POST",body:JSON.stringify({message_id:a,message_feedback:i}),headers:{"Content-Type":"application/json"}}).then(pt=>pt).catch(pt=>(console.error("There was an issue logging feedback."),{...new Response,ok:!1,status:500}));function supersub(){return a=>{visit(a,["text"],(i,_e,pt)=>{if(i.type!=="text")return;const{value:Lt}=i,Gt=Lt.split(/\^/);if(Gt.length===1||Gt.length%2===0)return;const Ct=Gt.map((Rt,o)=>o%2===0?{type:"text",value:Rt}:{type:"superscript",data:{hName:"sup"},children:[{type:"text",value:Rt}]});pt.children.splice(_e,1,...Ct)}),visit(a,["text"],(i,_e,pt)=>{if(i.type!=="text")return;const{value:Lt}=i,Gt=Lt.split(/\~/);if(Gt.length===1||Gt.length%2===0)return;const Ct=Gt.map((Rt,o)=>o%2===0?{type:"text",value:Rt}:{type:"subscript",data:{hName:"sub"},children:[{type:"text",value:Rt}]});pt.children.splice(_e,1,...Ct)})}}var reactPlotly={},factory={};(function(a){function i(ot){return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(nt){return typeof nt}:function(nt){return nt&&typeof Symbol=="function"&&nt.constructor===Symbol&&nt!==Symbol.prototype?"symbol":typeof nt},i(ot)}Object.defineProperty(a,"__esModule",{value:!0}),a.default=st;var _e=Ct(reactExports),pt=Lt(propTypesExports);function Lt(ot){return ot&&ot.__esModule?ot:{default:ot}}function Gt(ot){if(typeof WeakMap!="function")return null;var nt=new WeakMap,vt=new WeakMap;return(Gt=function(bt){return bt?vt:nt})(ot)}function Ct(ot,nt){if(!nt&&ot&&ot.__esModule)return ot;if(ot===null||i(ot)!=="object"&&typeof ot!="function")return{default:ot};var vt=Gt(nt);if(vt&&vt.has(ot))return vt.get(ot);var dt={},bt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ft in ot)if(ft!=="default"&&Object.prototype.hasOwnProperty.call(ot,ft)){var at=bt?Object.getOwnPropertyDescriptor(ot,ft):null;at&&(at.get||at.set)?Object.defineProperty(dt,ft,at):dt[ft]=ot[ft]}return dt.default=ot,vt&&vt.set(ot,dt),dt}function Rt(ot,nt){if(!(ot instanceof nt))throw new TypeError("Cannot call a class as a function")}function o(ot,nt){for(var vt=0;vt"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 j(ot){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(vt){return vt.__proto__||Object.getPrototypeOf(vt)},j(ot)}var _=["AfterExport","AfterPlot","Animated","AnimatingFrame","AnimationInterrupted","AutoSize","BeforeExport","BeforeHover","ButtonClicked","Click","ClickAnnotation","Deselect","DoubleClick","Framework","Hover","LegendClick","LegendDoubleClick","Relayout","Relayouting","Restyle","Redraw","Selected","Selecting","SliderChange","SliderEnd","SliderStart","SunburstClick","Transitioning","TransitionInterrupted","Unhover","WebGlContextLost"],rt=["plotly_restyle","plotly_redraw","plotly_relayout","plotly_relayouting","plotly_doubleclick","plotly_animated","plotly_sunburstclick"],tt=typeof window<"u";function st(ot){var nt=function(vt){xt(bt,vt);var dt=Et(bt);function bt(ft){var at;return Rt(this,bt),at=dt.call(this,ft),at.p=Promise.resolve(),at.resizeHandler=null,at.handlers={},at.syncWindowResize=at.syncWindowResize.bind(ut(at)),at.syncEventHandlers=at.syncEventHandlers.bind(ut(at)),at.attachUpdateEvents=at.attachUpdateEvents.bind(ut(at)),at.getRef=at.getRef.bind(ut(at)),at.handleUpdate=at.handleUpdate.bind(ut(at)),at.figureCallback=at.figureCallback.bind(ut(at)),at.updatePlotly=at.updatePlotly.bind(ut(at)),at}return it(bt,[{key:"updatePlotly",value:function(at,yt,St){var _t=this;this.p=this.p.then(function(){if(!_t.unmounting){if(!_t.el)throw new Error("Missing element reference");return ot.react(_t.el,{data:_t.props.data,layout:_t.props.layout,config:_t.props.config,frames:_t.props.frames})}}).then(function(){_t.unmounting||(_t.syncWindowResize(at),_t.syncEventHandlers(),_t.figureCallback(yt),St&&_t.attachUpdateEvents())}).catch(function(Mt){_t.props.onError&&_t.props.onError(Mt)})}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(at){this.unmounting=!1;var yt=at.frames&&at.frames.length?at.frames.length:0,St=this.props.frames&&this.props.frames.length?this.props.frames.length:0,_t=!(at.layout===this.props.layout&&at.data===this.props.data&&at.config===this.props.config&&St===yt),Mt=at.revision!==void 0,Tt=at.revision!==this.props.revision;!_t&&(!Mt||Mt&&!Tt)||this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&tt&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),ot.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var at=this;!this.el||!this.el.removeListener||rt.forEach(function(yt){at.el.on(yt,at.handleUpdate)})}},{key:"removeUpdateEvents",value:function(){var at=this;!this.el||!this.el.removeListener||rt.forEach(function(yt){at.el.removeListener(yt,at.handleUpdate)})}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(at){if(typeof at=="function"){var yt=this.el,St=yt.data,_t=yt.layout,Mt=this.el._transitionData?this.el._transitionData._frames:null,Tt={data:St,layout:_t,frames:Mt};at(Tt,this.el)}}},{key:"syncWindowResize",value:function(at){var yt=this;tt&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return ot.Plots.resize(yt.el)},window.addEventListener("resize",this.resizeHandler),at&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(at){this.el=at,this.props.debug&&tt&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var at=this;_.forEach(function(yt){var St=at.props["on"+yt],_t=at.handlers[yt],Mt=Boolean(_t);St&&!Mt?at.addEventHandler(yt,St):!St&&Mt?at.removeEventHandler(yt):St&&Mt&&St!==_t&&(at.removeEventHandler(yt),at.addEventHandler(yt,St))})}},{key:"addEventHandler",value:function(at,yt){this.handlers[at]=yt,this.el.on(this.getPlotlyEventName(at),this.handlers[at])}},{key:"removeEventHandler",value:function(at){this.el.removeListener(this.getPlotlyEventName(at),this.handlers[at]),delete this.handlers[at]}},{key:"getPlotlyEventName",value:function(at){return"plotly_"+at.toLowerCase()}},{key:"render",value:function(){return _e.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}]),bt}(_e.Component);return nt.propTypes={data:pt.default.arrayOf(pt.default.object),config:pt.default.object,layout:pt.default.object,frames:pt.default.arrayOf(pt.default.object),revision:pt.default.number,onInitialized:pt.default.func,onPurge:pt.default.func,onError:pt.default.func,onUpdate:pt.default.func,debug:pt.default.bool,style:pt.default.object,className:pt.default.string,useResizeHandler:pt.default.bool,divId:pt.default.string},_.forEach(function(vt){nt.propTypes["on"+vt]=pt.default.func}),nt.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},nt}})(factory);var plotlyExports={},plotly={get exports(){return plotlyExports},set exports(a){plotlyExports=a}};(function(a,i){(function(pt,Lt){a.exports=Lt()})(self,function(){return function(){var _e={79288:function(Ct,Rt,o){var it=o(3400),xt={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var et in xt){var Et=et.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");it.addStyleRule(Et,xt[et])}},86712:function(Ct,Rt,o){Ct.exports=o(84224)},37240:function(Ct,Rt,o){Ct.exports=o(51132)},29744:function(Ct,Rt,o){Ct.exports=o(94456)},29352:function(Ct,Rt,o){Ct.exports=o(67244)},96144:function(Ct,Rt,o){Ct.exports=o(97776)},53219:function(Ct,Rt,o){Ct.exports=o(61712)},4624:function(Ct,Rt,o){Ct.exports=o(95856)},54543:function(Ct,Rt,o){Ct.exports=o(54272)},45e3:function(Ct,Rt,o){Ct.exports=o(85404)},62300:function(Ct,Rt,o){Ct.exports=o(26048)},6920:function(Ct,Rt,o){Ct.exports=o(66240)},10264:function(Ct,Rt,o){Ct.exports=o(40448)},32016:function(Ct,Rt,o){Ct.exports=o(64884)},27528:function(Ct,Rt,o){Ct.exports=o(15088)},75556:function(Ct,Rt,o){Ct.exports=o(76744)},39204:function(Ct,Rt,o){Ct.exports=o(94704)},73996:function(Ct,Rt,o){Ct.exports=o(62396)},16489:function(Ct,Rt,o){Ct.exports=o(32028)},5e3:function(Ct,Rt,o){Ct.exports=o(81932)},77280:function(Ct,Rt,o){Ct.exports=o(45536)},33992:function(Ct,Rt,o){Ct.exports=o(42600)},17600:function(Ct,Rt,o){Ct.exports=o(21536)},49116:function(Ct,Rt,o){Ct.exports=o(65664)},46808:function(Ct,Rt,o){Ct.exports=o(29044)},36168:function(Ct,Rt,o){Ct.exports=o(48928)},13792:function(Ct,Rt,o){var it=o(32016);it.register([o(37240),o(29352),o(5e3),o(33992),o(17600),o(49116),o(6920),o(67484),o(79440),o(39204),o(83096),o(36168),o(20260),o(63560),o(65832),o(46808),o(73996),o(48824),o(89904),o(25120),o(13752),o(4340),o(62300),o(29800),o(8363),o(54543),o(86636),o(42192),o(32140),o(77280),o(89296),o(56816),o(70192),o(45e3),o(27528),o(84764),o(3920),o(50248),o(4624),o(69967),o(10264),o(86152),o(53219),o(81604),o(63796),o(29744),o(89336),o(86712),o(75556),o(16489),o(97312),o(96144)]),Ct.exports=it},3920:function(Ct,Rt,o){Ct.exports=o(43480)},25120:function(Ct,Rt,o){Ct.exports=o(6296)},4340:function(Ct,Rt,o){Ct.exports=o(7404)},86152:function(Ct,Rt,o){Ct.exports=o(65456)},56816:function(Ct,Rt,o){Ct.exports=o(22020)},89296:function(Ct,Rt,o){Ct.exports=o(29928)},20260:function(Ct,Rt,o){Ct.exports=o(75792)},32140:function(Ct,Rt,o){Ct.exports=o(156)},84764:function(Ct,Rt,o){Ct.exports=o(45499)},48824:function(Ct,Rt,o){Ct.exports=o(3296)},69967:function(Ct,Rt,o){Ct.exports=o(4184)},8363:function(Ct,Rt,o){Ct.exports=o(36952)},86636:function(Ct,Rt,o){Ct.exports=o(38983)},70192:function(Ct,Rt,o){Ct.exports=o(11572)},81604:function(Ct,Rt,o){Ct.exports=o(76924)},63796:function(Ct,Rt,o){Ct.exports=o(62944)},89336:function(Ct,Rt,o){Ct.exports=o(95443)},67484:function(Ct,Rt,o){Ct.exports=o(34864)},97312:function(Ct,Rt,o){Ct.exports=o(76272)},42192:function(Ct,Rt,o){Ct.exports=o(97924)},29800:function(Ct,Rt,o){Ct.exports=o(15436)},63560:function(Ct,Rt,o){Ct.exports=o(5621)},89904:function(Ct,Rt,o){Ct.exports=o(91304)},50248:function(Ct,Rt,o){Ct.exports=o(41724)},65832:function(Ct,Rt,o){Ct.exports=o(31991)},79440:function(Ct,Rt,o){Ct.exports=o(22869)},13752:function(Ct,Rt,o){Ct.exports=o(67776)},83096:function(Ct,Rt,o){Ct.exports=o(95952)},72196:function(Ct){Ct.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},13916:function(Ct,Rt,o){var it=o(72196),xt=o(25376),et=o(33816),Et=o(31780).templatedArray;o(36208),Ct.exports=Et("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:xt({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:it.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:it.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",et.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",et.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",et.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",et.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:xt({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},90272:function(Ct,Rt,o){var it=o(3400),xt=o(54460),et=o(23816).draw;Ct.exports=function(ht){var j=ht._fullLayout,_=it.filterVisible(j.annotations);if(_.length&&ht._fullData.length)return it.syncOrAsync([et,Et],ht)};function Et(ut){var ht=ut._fullLayout;it.filterVisible(ht.annotations).forEach(function(j){var _=xt.getFromId(ut,j.xref),rt=xt.getFromId(ut,j.yref),tt=xt.getRefType(j.xref),st=xt.getRefType(j.yref);j._extremes={},tt==="range"&&mt(j,_),st==="range"&&mt(j,rt)})}function mt(ut,ht){var j=ht._id,_=j.charAt(0),rt=ut[_],tt=ut["a"+_],st=ut[_+"ref"],ot=ut["a"+_+"ref"],nt=ut["_"+_+"padplus"],vt=ut["_"+_+"padminus"],dt={x:1,y:-1}[_]*ut[_+"shift"],bt=3*ut.arrowsize*ut.arrowwidth||0,ft=bt+dt,at=bt-dt,yt=3*ut.startarrowsize*ut.arrowwidth||0,St=yt+dt,_t=yt-dt,Mt;if(ot===st){var Tt=xt.findExtremes(ht,[ht.r2c(rt)],{ppadplus:ft,ppadminus:at}),kt=xt.findExtremes(ht,[ht.r2c(tt)],{ppadplus:Math.max(nt,St),ppadminus:Math.max(vt,_t)});Mt={min:[Tt.min[0],kt.min[0]],max:[Tt.max[0],kt.max[0]]}}else St=tt?St+tt:St,_t=tt?_t-tt:_t,Mt=xt.findExtremes(ht,[ht.r2c(rt)],{ppadplus:Math.max(nt,ft,St),ppadminus:Math.max(vt,at,_t)});ut._extremes[j]=Mt}},42300:function(Ct,Rt,o){var it=o(3400),xt=o(24040),et=o(31780).arrayEditor;Ct.exports={hasClickToShow:Et,onClick:mt};function Et(j,_){var rt=ut(j,_);return rt.on.length>0||rt.explicitOff.length>0}function mt(j,_){var rt=ut(j,_),tt=rt.on,st=rt.off.concat(rt.explicitOff),ot={},nt=j._fullLayout.annotations,vt,dt;if(tt.length||st.length){for(vt=0;vt.6666666666666666?ba="right":ba="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[ba]}for(var Qr=!1,sn=["x","y"],un=0;un1)&&(ln===Xr?(Pr=mn.r2fraction(yt["a"+qr]),(Pr<0||Pr>1)&&(Qr=!0)):Qr=!0),wr=mn._offset+mn.r2p(yt[qr]),Sr=.5}else{var Vr=xr==="domain";qr==="x"?(Dr=yt[qr],wr=Vr?mn._offset+mn._length*Dr:wr=wt.l+wt.w*Dr):(Dr=1-yt[qr],wr=Vr?mn._offset+mn._length*Dr:wr=wt.t+wt.h*Dr),Sr=yt.showarrow?.5:Dr}if(yt.showarrow){Gr.head=wr;var en=yt["a"+qr];if(ur=En*Nr(.5,yt.xanchor)-Jr*Nr(.5,yt.yanchor),ln===Xr){var rn=ut.getRefType(ln);rn==="domain"?(qr==="y"&&(en=1-en),Gr.tail=mn._offset+mn._length*en):rn==="paper"?qr==="y"?(en=1-en,Gr.tail=wt.t+wt.h*en):Gr.tail=wt.l+wt.w*en:Gr.tail=mn._offset+mn.r2p(en),vr=ur}else Gr.tail=wr+en,vr=ur+en;Gr.text=Gr.tail+ur;var Cn=kt[qr==="x"?"width":"height"];if(Xr==="paper"&&(Gr.head=Et.constrain(Gr.head,1,Cn-1)),ln==="pixel"){var xn=-Math.max(Gr.tail-3,Gr.text),fn=Math.min(Gr.tail+3,Gr.text)-Cn;xn>0?(Gr.tail+=xn,Gr.text+=xn):fn>0&&(Gr.tail-=fn,Gr.text-=fn)}Gr.tail+=jr,Gr.head+=jr}else ur=Or*Nr(Sr,Ur),vr=ur,Gr.text=wr+ur;Gr.text+=jr,ur+=jr,vr+=jr,yt["_"+qr+"padplus"]=Or/2+vr,yt["_"+qr+"padminus"]=Or/2-vr,yt["_"+qr+"size"]=Or,yt["_"+qr+"shift"]=ur}if(Qr){lr.remove();return}var bn=0,Un=0;if(yt.align!=="left"&&(bn=(Rr-_r)*(yt.align==="center"?.5:1)),yt.valign!=="top"&&(Un=(zr-Er)*(yt.valign==="middle"?.5:1)),Ir)Tr.select("svg").attr({x:rr+bn-1,y:rr+Un}).call(j.setClipUrl,ar?Nt:null,at);else{var _i=rr+Un-Ar.top,yn=rr+bn-Ar.left;or.call(rt.positionText,yn,_i).call(j.setClipUrl,ar?Nt:null,at)}sr.select("rect").call(j.setRect,rr,rr,Rr,zr),jt.call(j.setRect,Jt/2,Jt/2,Br-Jt,kr-Jt),lr.call(j.setTranslate,Math.round($t.x.text-Br/2),Math.round($t.y.text-kr/2)),Vt.attr({transform:"rotate("+Ut+","+$t.x.text+","+$t.y.text+")"});var Kn=function(so,ba){Ht.selectAll(".annotation-arrow-g").remove();var An=$t.x.head,hn=$t.y.head,wn=$t.x.tail+so,In=$t.y.tail+ba,Ln=$t.x.text+so,Xn=$t.y.text+ba,Wn=Et.rotationXYMatrix(Ut,Ln,Xn),Vn=Et.apply2DTransform(Wn),ga=Et.apply2DTransform2(Wn),fo=+jt.attr("width"),qn=+jt.attr("height"),po=Ln-.5*fo,Yr=po+fo,Wr=Xn-.5*qn,$n=Wr+qn,Bn=[[po,Wr,po,$n],[po,$n,Yr,$n],[Yr,$n,Yr,Wr],[Yr,Wr,po,Wr]].map(ga);if(!Bn.reduce(function(Lo,vs){return Lo^!!Et.segmentsIntersect(An,hn,An+1e6,hn+1e6,vs[0],vs[1],vs[2],vs[3])},!1)){Bn.forEach(function(Lo){var vs=Et.segmentsIntersect(wn,In,An,hn,Lo[0],Lo[1],Lo[2],Lo[3]);vs&&(wn=vs.x,In=vs.y)});var xa=yt.arrowwidth,ro=yt.arrowcolor,io=yt.arrowside,eo=Ht.append("g").style({opacity:ht.opacity(ro)}).classed("annotation-arrow-g",!0),Gn=eo.append("path").attr("d","M"+wn+","+In+"L"+An+","+hn).style("stroke-width",xa+"px").call(ht.stroke,ht.rgb(ro));if(nt(Gn,io,yt),ct.annotationPosition&&Gn.node().parentNode&&!_t){var ho=An,go=hn;if(yt.standoff){var _o=Math.sqrt(Math.pow(An-wn,2)+Math.pow(hn-In,2));ho+=yt.standoff*(wn-An)/_o,go+=yt.standoff*(In-hn)/_o}var co=eo.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(wn-ho)+","+(In-go),transform:mt(ho,go)}).style("stroke-width",xa+6+"px").call(ht.stroke,"rgba(0,0,0,0)").call(ht.fill,"rgba(0,0,0,0)"),zo,Io;st.init({element:co.node(),gd:at,prepFn:function(){var Lo=j.getTranslate(lr);zo=Lo.x,Io=Lo.y,Mt&&Mt.autorange&&Pt(Mt._name+".autorange",!0),Tt&&Tt.autorange&&Pt(Tt._name+".autorange",!0)},moveFn:function(Lo,vs){var Zo=Vn(zo,Io),Ls=Zo[0]+Lo,Ds=Zo[1]+vs;lr.call(j.setTranslate,Ls,Ds),zt("x",bt(Mt,Lo,"x",wt,yt)),zt("y",bt(Tt,vs,"y",wt,yt)),yt.axref===yt.xref&&zt("ax",bt(Mt,Lo,"ax",wt,yt)),yt.ayref===yt.yref&&zt("ay",bt(Tt,vs,"ay",wt,yt)),eo.attr("transform",mt(Lo,vs)),Vt.attr({transform:"rotate("+Ut+","+Ls+","+Ds+")"})},doneFn:function(){xt.call("_guiRelayout",at,Dt());var Lo=document.querySelector(".js-notes-box-panel");Lo&&Lo.redraw(Lo.selectedObj)}})}}};if(yt.showarrow&&Kn(0,0),Xt){var Jn;st.init({element:lr.node(),gd:at,prepFn:function(){Jn=Vt.attr("transform")},moveFn:function(so,ba){var An="pointer";if(yt.showarrow)yt.axref===yt.xref?zt("ax",bt(Mt,so,"ax",wt,yt)):zt("ax",yt.ax+so),yt.ayref===yt.yref?zt("ay",bt(Tt,ba,"ay",wt.w,yt)):zt("ay",yt.ay+ba),Kn(so,ba);else{if(_t)return;var hn,wn;if(Mt)hn=bt(Mt,so,"x",wt,yt);else{var In=yt._xsize/wt.w,Ln=yt.x+(yt._xshift-yt.xshift)/wt.w-In/2;hn=st.align(Ln+so/wt.w,In,0,1,yt.xanchor)}if(Tt)wn=bt(Tt,ba,"y",wt,yt);else{var Xn=yt._ysize/wt.h,Wn=yt.y-(yt._yshift+yt.yshift)/wt.h-Xn/2;wn=st.align(Wn-ba/wt.h,Xn,0,1,yt.yanchor)}zt("x",hn),zt("y",wn),(!Mt||!Tt)&&(An=st.getCursor(Mt?.5:hn,Tt?.5:wn,yt.xanchor,yt.yanchor))}Vt.attr({transform:mt(so,ba)+Jn}),tt(lr,An)},clickFn:function(so,ba){yt.captureevents&&at.emit("plotly_clickannotation",er(ba))},doneFn:function(){tt(lr),xt.call("_guiRelayout",at,Dt());var so=document.querySelector(".js-notes-box-panel");so&&so.redraw(so.selectedObj)}})}}ct.annotationText?or.call(rt.makeEditable,{delegate:lr,gd:at}).call(tr).on("edit",function(hr){yt.text=hr,this.call(tr),zt("text",hr),Mt&&Mt.autorange&&Pt(Mt._name+".autorange",!0),Tt&&Tt.autorange&&Pt(Tt._name+".autorange",!0),xt.call("_guiRelayout",at,Dt())}):or.call(tr)}},33652:function(Ct,Rt,o){var it=o(33428),xt=o(76308),et=o(72196),Et=o(3400),mt=Et.strScale,ut=Et.strRotate,ht=Et.strTranslate;Ct.exports=function(_,rt,tt){var st=_.node(),ot=et[tt.arrowhead||0],nt=et[tt.startarrowhead||0],vt=(tt.arrowwidth||1)*(tt.arrowsize||1),dt=(tt.arrowwidth||1)*(tt.startarrowsize||1),bt=rt.indexOf("start")>=0,ft=rt.indexOf("end")>=0,at=ot.backoff*vt+tt.standoff,yt=nt.backoff*dt+tt.startstandoff,St,_t,Mt,Tt;if(st.nodeName==="line"){St={x:+_.attr("x1"),y:+_.attr("y1")},_t={x:+_.attr("x2"),y:+_.attr("y2")};var kt=St.x-_t.x,wt=St.y-_t.y;if(Mt=Math.atan2(wt,kt),Tt=Mt+Math.PI,at&&yt&&at+yt>Math.sqrt(kt*kt+wt*wt)){Vt();return}if(at){if(at*at>kt*kt+wt*wt){Vt();return}var ct=at*Math.cos(Mt),It=at*Math.sin(Mt);_t.x+=ct,_t.y+=It,_.attr({x2:_t.x,y2:_t.y})}if(yt){if(yt*yt>kt*kt+wt*wt){Vt();return}var At=yt*Math.cos(Mt),Ot=yt*Math.sin(Mt);St.x-=At,St.y-=Ot,_.attr({x1:St.x,y1:St.y})}}else if(st.nodeName==="path"){var Pt=st.getTotalLength(),zt="";if(Pt1){tt=!0;break}}tt?mt.fullLayout._infolayer.select(".annotation-"+mt.id+'[data-index="'+_+'"]').remove():(rt._pdata=xt(mt.glplot.cameraParams,[ut.xaxis.r2l(rt.x)*ht[0],ut.yaxis.r2l(rt.y)*ht[1],ut.zaxis.r2l(rt.z)*ht[2]]),it(mt.graphDiv,rt,_,mt.id,rt._xa,rt._ya))}}},56864:function(Ct,Rt,o){var it=o(24040),xt=o(3400);Ct.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:o(45899)}}},layoutAttributes:o(45899),handleDefaults:o(52808),includeBasePlot:et,convert:o(42456),draw:o(71836)};function et(Et,mt){var ut=it.subplotsRegistry.gl3d;if(ut)for(var ht=ut.attrRegex,j=Object.keys(Et),_=0;_=0)))return _;if(nt===3)st[nt]>1&&(st[nt]=1);else if(st[nt]>=1)return _}var vt=Math.round(st[0]*255)+", "+Math.round(st[1]*255)+", "+Math.round(st[2]*255);return ot?"rgba("+vt+", "+st[3]+")":"rgb("+vt+")"}},42996:function(Ct,Rt,o){var it=o(94724),xt=o(25376),et=o(92880).extendFlat,Et=o(67824).overrideAll;Ct.exports=Et({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:it.linecolor,outlinewidth:it.linewidth,bordercolor:it.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:it.minor.tickmode,nticks:it.nticks,tick0:it.tick0,dtick:it.dtick,tickvals:it.tickvals,ticktext:it.ticktext,ticks:et({},it.ticks,{dflt:""}),ticklabeloverflow:et({},it.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:it.ticklen,tickwidth:it.tickwidth,tickcolor:it.tickcolor,ticklabelstep:it.ticklabelstep,showticklabels:it.showticklabels,labelalias:it.labelalias,tickfont:xt({}),tickangle:it.tickangle,tickformat:it.tickformat,tickformatstops:it.tickformatstops,tickprefix:it.tickprefix,showtickprefix:it.showtickprefix,ticksuffix:it.ticksuffix,showticksuffix:it.showticksuffix,separatethousands:it.separatethousands,exponentformat:it.exponentformat,minexponent:it.minexponent,showexponent:it.showexponent,title:{text:{valType:"string"},font:xt({}),side:{valType:"enumerated",values:["right","top","bottom"]}},_deprecated:{title:{valType:"string"},titlefont:xt({}),titleside:{valType:"enumerated",values:["right","top","bottom"],dflt:"top"}}},"colorbars","from-root")},63964:function(Ct){Ct.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}},64013:function(Ct,Rt,o){var it=o(3400),xt=o(31780),et=o(26332),Et=o(25404),mt=o(95936),ut=o(42568),ht=o(42996);Ct.exports=function(_,rt,tt){var st=xt.newContainer(rt,"colorbar"),ot=_.colorbar||{};function nt($t,Ut){return it.coerce(ot,st,ht,$t,Ut)}var vt=tt.margin||{t:0,b:0,l:0,r:0},dt=tt.width-vt.l-vt.r,bt=tt.height-vt.t-vt.b,ft=nt("orientation"),at=ft==="v",yt=nt("thicknessmode");nt("thickness",yt==="fraction"?30/(at?dt:bt):30);var St=nt("lenmode");nt("len",St==="fraction"?1:at?bt:dt);var _t=nt("yref"),Mt=nt("xref"),Tt=_t==="paper",kt=Mt==="paper",wt,ct,It,At="left";at?(It="middle",At=kt?"left":"right",wt=kt?1.02:1,ct=.5):(It=Tt?"bottom":"top",At="center",wt=.5,ct=Tt?1.02:1),it.coerce(ot,st,{x:{valType:"number",min:kt?-2:0,max:kt?3:1,dflt:wt}},"x"),it.coerce(ot,st,{y:{valType:"number",min:Tt?-2:0,max:Tt?3:1,dflt:ct}},"y"),nt("xanchor",At),nt("xpad"),nt("yanchor",It),nt("ypad"),it.noneOrAll(ot,st,["x","y"]),nt("outlinecolor"),nt("outlinewidth"),nt("bordercolor"),nt("borderwidth"),nt("bgcolor");var Ot=it.coerce(ot,st,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:at?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");nt("ticklabeloverflow",Ot.indexOf("inside")!==-1?"hide past domain":"hide past div"),et(ot,st,nt,"linear");var Pt=tt.font,zt={noAutotickangles:!0,outerTicks:!1,font:Pt};Ot.indexOf("inside")!==-1&&(zt.bgColor="black"),ut(ot,st,nt,"linear",zt),mt(ot,st,nt,"linear",zt),Et(ot,st,nt,"linear",zt),nt("title.text",tt._dfltTitle.colorbar);var Dt=st.showticklabels?st.tickfont:Pt,Nt=it.extendFlat({},Dt,{weight:Pt.weight,style:Pt.style,variant:Pt.variant,color:Pt.color,size:it.bigFont(Dt.size)});it.coerceFont(nt,"title.font",Nt),nt("title.side",at?"top":"right")}},37848:function(Ct,Rt,o){var it=o(33428),xt=o(49760),et=o(7316),Et=o(24040),mt=o(54460),ut=o(86476),ht=o(3400),j=ht.strTranslate,_=o(92880).extendFlat,rt=o(93972),tt=o(43616),st=o(76308),ot=o(81668),nt=o(72736),vt=o(94288).flipScale,dt=o(28336),bt=o(37668),ft=o(94724),at=o(84284),yt=at.LINE_SPACING,St=at.FROM_TL,_t=at.FROM_BR,Mt=o(63964).cn;function Tt(Ot){var Pt=Ot._fullLayout,zt=Pt._infolayer.selectAll("g."+Mt.colorbar).data(kt(Ot),function(Dt){return Dt._id});zt.enter().append("g").attr("class",function(Dt){return Dt._id}).classed(Mt.colorbar,!0),zt.each(function(Dt){var Nt=it.select(this);ht.ensureSingle(Nt,"rect",Mt.cbbg),ht.ensureSingle(Nt,"g",Mt.cbfills),ht.ensureSingle(Nt,"g",Mt.cblines),ht.ensureSingle(Nt,"g",Mt.cbaxis,function(Ut){Ut.classed(Mt.crisp,!0)}),ht.ensureSingle(Nt,"g",Mt.cbtitleunshift,function(Ut){Ut.append("g").classed(Mt.cbtitle,!0)}),ht.ensureSingle(Nt,"rect",Mt.cboutline);var $t=wt(Nt,Dt,Ot);$t&&$t.then&&(Ot._promises||[]).push($t),Ot._context.edits.colorbarPosition&&ct(Nt,Dt,Ot)}),zt.exit().each(function(Dt){et.autoMargin(Ot,Dt._id)}).remove(),zt.order()}function kt(Ot){var Pt=Ot._fullLayout,zt=Ot.calcdata,Dt=[],Nt,$t,Ut,Ht;function Vt(Zt){return _(Zt,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function Xt(){typeof Ht.calc=="function"?Ht.calc(Ot,Ut,Nt):(Nt._fillgradient=$t.reversescale?vt($t.colorscale):$t.colorscale,Nt._zrange=[$t[Ht.min],$t[Ht.max]])}for(var qt=0;qt1){var Gr=Math.pow(10,Math.floor(Math.log(jr)/Math.LN10));Or*=Gr*ht.roundUp(jr/Gr,[2,5,10]),(Math.abs(Ar.start)/Ar.size+1e-6)%1<2e-6&&(En.tick0=0)}En.dtick=Or}En.domain=Dt?[mn+Yt/Kt.h,mn+Nr-Yt/Kt.h]:[mn+Jt/Kt.w,mn+Nr-Jt/Kt.w],En.setScale(),Ot.attr("transform",j(Math.round(Kt.l),Math.round(Kt.t)));var wr=Ot.select("."+Mt.cbtitleunshift).attr("transform",j(-Math.round(Kt.l),-Math.round(Kt.t))),vr=En.ticklabelposition,Dr=En.title.font.size,Sr=Ot.select("."+Mt.cbaxis),ur,xr=0,Pr=0;function Vr(fn,bn){var Un={propContainer:En,propName:Pt._propPrefix+"title",traceIndex:Pt._traceIndex,_meta:Pt._meta,placeholder:Zt._dfltTitle.colorbar,containerGroup:Ot.select("."+Mt.cbtitle)},_i=fn.charAt(0)==="h"?fn.substr(1):"h"+fn;Ot.selectAll("."+_i+",."+_i+"-math-group").remove(),ot.draw(zt,fn,_(Un,bn||{}))}function en(){if(Dt&&Jr||!Dt&&!Jr){var fn,bn;hr==="top"&&(fn=Jt+Kt.l+Qr*rr,bn=Yt+Kt.t+sn*(1-mn-Nr)+3+Dr*.75),hr==="bottom"&&(fn=Jt+Kt.l+Qr*rr,bn=Yt+Kt.t+sn*(1-mn)-3-Dr*.25),hr==="right"&&(bn=Yt+Kt.t+sn*jt+3+Dr*.75,fn=Jt+Kt.l+Qr*mn),Vr(En._id+"title",{attributes:{x:fn,y:bn,"text-anchor":Dt?"start":"middle"}})}}function rn(){if(Dt&&!Jr||!Dt&&Jr){var fn=En.position||0,bn=En._offset+En._length/2,Un,_i;if(hr==="right")_i=bn,Un=Kt.l+Qr*fn+10+Dr*(En.showticklabels?1:.5);else if(Un=bn,hr==="bottom"&&(_i=Kt.t+sn*fn+10+(vr.indexOf("inside")===-1?En.tickfont.size:0)+(En.ticks!=="intside"&&Pt.ticklen||0)),hr==="top"){var yn=cr.text.split("
").length;_i=Kt.t+sn*fn+10-zr-yt*Dr*yn}Vr((Dt?"h":"v")+En._id+"title",{avoid:{selection:it.select(zt).selectAll("g."+En._id+"tick"),side:hr,offsetTop:Dt?0:Kt.t,offsetLeft:Dt?Kt.l:0,maxShift:Dt?Zt.width:Zt.height},attributes:{x:Un,y:_i,"text-anchor":"middle"},transform:{rotate:Dt?-90:0,offset:0}})}}function Cn(){if(!Dt&&!Jr||Dt&&Jr){var fn=Ot.select("."+Mt.cbtitle),bn=fn.select("text"),Un=[-Vt/2,Vt/2],_i=fn.select(".h"+En._id+"title-math-group").node(),yn=15.6;bn.node()&&(yn=parseInt(bn.node().style.fontSize,10)*yt);var Kn;if(_i?(Kn=tt.bBox(_i),Pr=Kn.width,xr=Kn.height,xr>yn&&(Un[1]-=(xr-yn)/2)):bn.node()&&!bn.classed(Mt.jsPlaceholder)&&(Kn=tt.bBox(bn.node()),Pr=Kn.width,xr=Kn.height),Dt){if(xr){if(xr+=5,hr==="top")En.domain[1]-=xr/Kt.h,Un[1]*=-1;else{En.domain[0]+=xr/Kt.h;var Jn=nt.lineCount(bn);Un[1]+=(1-Jn)*yn}fn.attr("transform",j(Un[0],Un[1])),En.setScale()}}else Pr&&(hr==="right"&&(En.domain[0]+=(Pr+Dr/2)/Kt.w),fn.attr("transform",j(Un[0],Un[1])),En.setScale())}Ot.selectAll("."+Mt.cbfills+",."+Mt.cblines).attr("transform",Dt?j(0,Math.round(Kt.h*(1-En.domain[1]))):j(Math.round(Kt.w*En.domain[0]),0)),Sr.attr("transform",Dt?j(0,Math.round(-Kt.t)):j(Math.round(-Kt.l),0));var so=Ot.select("."+Mt.cbfills).selectAll("rect."+Mt.cbfill).attr("style","").data(Er);so.enter().append("rect").classed(Mt.cbfill,!0).attr("style",""),so.exit().remove();var ba=br.map(En.c2p).map(Math.round).sort(function(Ln,Xn){return Ln-Xn});so.each(function(Ln,Xn){var Wn=[Xn===0?br[0]:(Er[Xn]+Er[Xn-1])/2,Xn===Er.length-1?br[1]:(Er[Xn]+Er[Xn+1])/2].map(En.c2p).map(Math.round);Dt&&(Wn[1]=ht.constrain(Wn[1]+(Wn[1]>Wn[0])?1:-1,ba[0],ba[1]));var Vn=it.select(this).attr(Dt?"x":"y",un).attr(Dt?"y":"x",it.min(Wn)).attr(Dt?"width":"height",Math.max(zr,2)).attr(Dt?"height":"width",Math.max(it.max(Wn)-it.min(Wn),2));if(Pt._fillgradient)tt.gradient(Vn,zt,Pt._id,Dt?"vertical":"horizontalreversed",Pt._fillgradient,"fill");else{var ga=Ir(Ln).replace("e-","");Vn.attr("fill",xt(ga).toHexString())}});var An=Ot.select("."+Mt.cblines).selectAll("path."+Mt.cbline).data(tr.color&&tr.width?Rr:[]);An.enter().append("path").classed(Mt.cbline,!0),An.exit().remove(),An.each(function(Ln){var Xn=un,Wn=Math.round(En.c2p(Ln))+tr.width/2%1;it.select(this).attr("d","M"+(Dt?Xn+","+Wn:Wn+","+Xn)+(Dt?"h":"v")+zr).call(tt.lineGroupStyle,tr.width,Tr(Ln),tr.dash)}),Sr.selectAll("g."+En._id+"tick,path").remove();var hn=un+zr+(Vt||0)/2-(Pt.ticks==="outside"?1:0),wn=mt.calcTicks(En),In=mt.getTickSigns(En)[2];return mt.drawTicks(zt,En,{vals:En.ticks==="inside"?mt.clipEnds(En,wn):wn,layer:Sr,path:mt.makeTickPath(En,hn,In),transFn:mt.makeTransTickFn(En)}),mt.drawLabels(zt,En,{vals:wn,layer:Sr,transFn:mt.makeTransTickLabelFn(En),labelFns:mt.makeLabelFns(En,hn)})}function xn(){var fn,bn=zr+Vt/2;vr.indexOf("inside")===-1&&(fn=tt.bBox(Sr.node()),bn+=Dt?fn.width:fn.height),ur=wr.select("text");var Un=0,_i=Dt&&hr==="top",yn=!Dt&&hr==="right",Kn=0;if(ur.node()&&!ur.classed(Mt.jsPlaceholder)){var Jn,so=wr.select(".h"+En._id+"title-math-group").node();so&&(Dt&&Jr||!Dt&&!Jr)?(fn=tt.bBox(so),Un=fn.width,Jn=fn.height):(fn=tt.bBox(wr.node()),Un=fn.right-Kt.l-(Dt?un:pn),Jn=fn.bottom-Kt.t-(Dt?pn:un),!Dt&&hr==="top"&&(bn+=fn.height,Kn=fn.height)),yn&&(ur.attr("transform",j(Un/2+Dr/2,0)),Un*=2),bn=Math.max(bn,Dt?Un:Jn)}var ba=(Dt?Jt:Yt)*2+bn+Xt+Vt/2,An=0;!Dt&&cr.text&&lr==="bottom"&&jt<=0&&(An=ba/2,ba+=An,Kn+=An),Zt._hColorbarMoveTitle=An,Zt._hColorbarMoveCBTitle=Kn;var hn=Xt+Vt,wn=(Dt?un:pn)-hn/2-(Dt?Jt:0),In=(Dt?pn:un)-(Dt?kr:Yt+Kn-An);Ot.select("."+Mt.cbbg).attr("x",wn).attr("y",In).attr(Dt?"width":"height",Math.max(ba-An,2)).attr(Dt?"height":"width",Math.max(kr+hn,2)).call(st.fill,qt).call(st.stroke,Pt.bordercolor).style("stroke-width",Xt);var Ln=yn?Math.max(Un-10,0):0;Ot.selectAll("."+Mt.cboutline).attr("x",(Dt?un:pn+Jt)+Ln).attr("y",(Dt?pn+Yt-kr:un)+(_i?xr:0)).attr(Dt?"width":"height",Math.max(zr,2)).attr(Dt?"height":"width",Math.max(kr-(Dt?2*Yt+xr:2*Jt+Ln),2)).call(st.stroke,Pt.outlinecolor).style({fill:"none","stroke-width":Vt});var Xn=Dt?qr*ba:0,Wn=Dt?0:(1-Xr)*ba-Kn;if(Xn=sr?Kt.l-Xn:-Xn,Wn=ar?Kt.t-Wn:-Wn,Ot.attr("transform",j(Xn,Wn)),!Dt&&(Xt||xt(qt).getAlpha()&&!xt.equals(Zt.paper_bgcolor,qt))){var Vn=Sr.selectAll("text"),ga=Vn[0].length,fo=Ot.select("."+Mt.cbbg).node(),qn=tt.bBox(fo),po=tt.getTranslate(Ot),Yr=2;Vn.each(function(go,_o){var co=0,zo=ga-1;if(_o===co||_o===zo){var Io=tt.bBox(this),Lo=tt.getTranslate(this),vs;if(_o===zo){var Zo=Io.right+Lo.x,Ls=qn.right+po.x+pn-Xt-Yr+rr;vs=Ls-Zo,vs>0&&(vs=0)}else if(_o===co){var Ds=Io.left+Lo.x,bo=qn.left+po.x+pn+Xt+Yr;vs=bo-Ds,vs<0&&(vs=0)}vs&&(ga<3?this.setAttribute("transform","translate("+vs+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Wr={},$n=St[er],Bn=_t[er],xa=St[lr],ro=_t[lr],io=ba-zr;Dt?($t==="pixels"?(Wr.y=jt,Wr.t=kr*xa,Wr.b=kr*ro):(Wr.t=Wr.b=0,Wr.yt=jt+Nt*xa,Wr.yb=jt-Nt*ro),Ht==="pixels"?(Wr.x=rr,Wr.l=ba*$n,Wr.r=ba*Bn):(Wr.l=io*$n,Wr.r=io*Bn,Wr.xl=rr-Ut*$n,Wr.xr=rr+Ut*Bn)):($t==="pixels"?(Wr.x=rr,Wr.l=kr*$n,Wr.r=kr*Bn):(Wr.l=Wr.r=0,Wr.xl=rr+Nt*$n,Wr.xr=rr-Nt*Bn),Ht==="pixels"?(Wr.y=1-jt,Wr.t=ba*xa,Wr.b=ba*ro):(Wr.t=io*xa,Wr.b=io*ro,Wr.yt=jt-Ut*xa,Wr.yb=jt+Ut*ro));var eo=Pt.y<.5?"b":"t",Gn=Pt.x<.5?"l":"r";zt._fullLayout._reservedMargin[Pt._id]={};var ho={r:Zt.width-wn-Xn,l:wn+Wr.r,b:Zt.height-In-Wn,t:In+Wr.b};sr&&ar?et.autoMargin(zt,Pt._id,Wr):sr?zt._fullLayout._reservedMargin[Pt._id][eo]=ho[eo]:ar||Dt?zt._fullLayout._reservedMargin[Pt._id][Gn]=ho[Gn]:zt._fullLayout._reservedMargin[Pt._id][eo]=ho[eo]}return ht.syncOrAsync([et.previousPromises,en,Cn,rn,et.previousPromises,xn],zt)}function ct(Ot,Pt,zt){var Dt=Pt.orientation==="v",Nt=zt._fullLayout,$t=Nt._size,Ut,Ht,Vt;ut.init({element:Ot.node(),gd:zt,prepFn:function(){Ut=Ot.attr("transform"),rt(Ot)},moveFn:function(Xt,qt){Ot.attr("transform",Ut+j(Xt,qt)),Ht=ut.align((Dt?Pt._uFrac:Pt._vFrac)+Xt/$t.w,Dt?Pt._thickFrac:Pt._lenFrac,0,1,Pt.xanchor),Vt=ut.align((Dt?Pt._vFrac:1-Pt._uFrac)-qt/$t.h,Dt?Pt._lenFrac:Pt._thickFrac,0,1,Pt.yanchor);var er=ut.getCursor(Ht,Vt,Pt.xanchor,Pt.yanchor);rt(Ot,er)},doneFn:function(){if(rt(Ot),Ht!==void 0&&Vt!==void 0){var Xt={};Xt[Pt._propPrefix+"x"]=Ht,Xt[Pt._propPrefix+"y"]=Vt,Pt._traceIndex!==void 0?Et.call("_guiRestyle",zt,Xt,Pt._traceIndex):Et.call("_guiRelayout",zt,Xt)}}})}function It(Ot,Pt,zt){var Dt=Pt._levels,Nt=[],$t=[],Ut,Ht,Vt=Dt.end+Dt.size/100,Xt=Dt.size,qt=1.001*zt[0]-.001*zt[1],er=1.001*zt[1]-.001*zt[0];for(Ht=0;Ht<1e5&&(Ut=Dt.start+Ht*Xt,!(Xt>0?Ut>=Vt:Ut<=Vt));Ht++)Ut>qt&&Ut0?Ut>=Vt:Ut<=Vt));Ht++)Ut>zt[0]&&Utdt-nt?nt=dt-(vt-dt):vt-dt=0?at=j.colorscale.sequential:at=j.colorscale.sequentialminus,st._sync("colorscale",at)}}},95504:function(Ct,Rt,o){var it=o(3400),xt=o(94288).hasColorscale,et=o(94288).extractOpts;Ct.exports=function(mt,ut){function ht(nt,vt){var dt=nt["_"+vt];dt!==void 0&&(nt[vt]=dt)}function j(nt,vt){var dt=vt.container?it.nestedProperty(nt,vt.container).get():nt;if(dt)if(dt.coloraxis)dt._colorAx=ut[dt.coloraxis];else{var bt=et(dt),ft=bt.auto;(ft||bt.min===void 0)&&ht(dt,vt.min),(ft||bt.max===void 0)&&ht(dt,vt.max),bt.autocolorscale&&ht(dt,"colorscale")}}for(var _=0;_=0;at--,yt++){var St=dt[at];ft[yt]=[1-St[0],St[1]]}return ft}function ot(dt,bt){bt=bt||{};for(var ft=dt.domain,at=dt.range,yt=at.length,St=new Array(yt),_t=0;_t1.3333333333333333-ht?ut:ht}},67416:function(Ct,Rt,o){var it=o(3400),xt=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];Ct.exports=function(Et,mt,ut,ht){return ut==="left"?Et=0:ut==="center"?Et=1:ut==="right"?Et=2:Et=it.constrain(Math.floor(Et*3),0,2),ht==="bottom"?mt=0:ht==="middle"?mt=1:ht==="top"?mt=2:mt=it.constrain(Math.floor(mt*3),0,2),xt[mt][Et]}},72760:function(Ct,Rt){Rt.selectMode=function(o){return o==="lasso"||o==="select"},Rt.drawMode=function(o){return o==="drawclosedpath"||o==="drawopenpath"||o==="drawline"||o==="drawrect"||o==="drawcircle"},Rt.openMode=function(o){return o==="drawline"||o==="drawopenpath"},Rt.rectMode=function(o){return o==="select"||o==="drawline"||o==="drawrect"||o==="drawcircle"},Rt.freeMode=function(o){return o==="lasso"||o==="drawclosedpath"||o==="drawopenpath"},Rt.selectingOrDrawing=function(o){return Rt.freeMode(o)||Rt.rectMode(o)}},86476:function(Ct,Rt,o){var it=o(29128),xt=o(52264),et=o(89184),Et=o(3400).removeElement,mt=o(33816),ut=Ct.exports={};ut.align=o(78316),ut.getCursor=o(67416);var ht=o(2616);ut.unhover=ht.wrapped,ut.unhoverRaw=ht.raw,ut.init=function(tt){var st=tt.gd,ot=1,nt=st._context.doubleClickDelay,vt=tt.element,dt,bt,ft,at,yt,St,_t,Mt;st._mouseDownTime||(st._mouseDownTime=0),vt.style.pointerEvents="all",vt.onmousedown=wt,et?(vt._ontouchstart&&vt.removeEventListener("touchstart",vt._ontouchstart),vt._ontouchstart=wt,vt.addEventListener("touchstart",wt,{passive:!1})):vt.ontouchstart=wt;function Tt(At,Ot,Pt){return Math.abs(At)"u"&&typeof At.clientY>"u"&&(At.clientX=dt,At.clientY=bt),ft=new Date().getTime(),ft-st._mouseDownTiment&&(ot=Math.max(ot-1,1)),st._dragged)tt.doneFn&&tt.doneFn();else if(tt.clickFn&&tt.clickFn(ot,St),!Mt){var Ot;try{Ot=new MouseEvent("click",At)}catch{var Pt=_(At);Ot=document.createEvent("MouseEvents"),Ot.initMouseEvent("click",At.bubbles,At.cancelable,At.view,At.detail,At.screenX,At.screenY,Pt[0],Pt[1],At.ctrlKey,At.altKey,At.shiftKey,At.metaKey,At.button,At.relatedTarget)}_t.dispatchEvent(Ot)}st._dragging=!1,st._dragged=!1}};function j(){var rt=document.createElement("div");rt.className="dragcover";var tt=rt.style;return tt.position="fixed",tt.left=0,tt.right=0,tt.top=0,tt.bottom=0,tt.zIndex=999999999,tt.background="none",document.body.appendChild(rt),rt}ut.coverSlip=j;function _(rt){return it(rt.changedTouches?rt.changedTouches[0]:rt,document.body)}},2616:function(Ct,Rt,o){var it=o(95924),xt=o(91200),et=o(52200).getGraphDiv,Et=o(92456),mt=Ct.exports={};mt.wrapped=function(ut,ht,j){ut=et(ut),ut._fullLayout&&xt.clear(ut._fullLayout._uid+Et.HOVERID),mt.raw(ut,ht,j)},mt.raw=function(ht,j){var _=ht._fullLayout,rt=ht._hoverdata;j||(j={}),!(j.target&&!ht._dragged&&it.triggerHandler(ht,"plotly_beforehover",j)===!1)&&(_._hoverlayer.selectAll("g").remove(),_._hoverlayer.selectAll("line").remove(),_._hoverlayer.selectAll("circle").remove(),ht._hoverdata=void 0,j.target&&rt&&ht.emit("plotly_unhover",{event:j,points:rt}))}},98192:function(Ct,Rt){Rt.u={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},Rt.c={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},43616:function(Ct,Rt,o){var it=o(33428),xt=o(3400),et=xt.numberFormat,Et=o(38248),mt=o(49760),ut=o(24040),ht=o(76308),j=o(8932),_=xt.strTranslate,rt=o(72736),tt=o(9616),st=o(84284),ot=st.LINE_SPACING,nt=o(13448).DESELECTDIM,vt=o(43028),dt=o(7152),bt=o(10624).appendArrayPointValue,ft=Ct.exports={};ft.font=function(Ar,_r,Er,Rr,zr,Br,kr){xt.isPlainObject(_r)&&(kr=_r.variant,Br=_r.style,zr=_r.weight,Rr=_r.color,Er=_r.size,_r=_r.family),_r&&Ar.style("font-family",_r),Er+1&&Ar.style("font-size",Er+"px"),Rr&&Ar.call(ht.fill,Rr),zr&&Ar.style("font-weight",zr),Br&&Ar.style("font-style",Br),kr&&Ar.style("font-variant",kr)},ft.setPosition=function(Ar,_r,Er){Ar.attr("x",_r).attr("y",Er)},ft.setSize=function(Ar,_r,Er){Ar.attr("width",_r).attr("height",Er)},ft.setRect=function(Ar,_r,Er,Rr,zr){Ar.call(ft.setPosition,_r,Er).call(ft.setSize,Rr,zr)},ft.translatePoint=function(Ar,_r,Er,Rr){var zr=Er.c2p(Ar.x),Br=Rr.c2p(Ar.y);if(Et(zr)&&Et(Br)&&_r.node())_r.node().nodeName==="text"?_r.attr("x",zr).attr("y",Br):_r.attr("transform",_(zr,Br));else return!1;return!0},ft.translatePoints=function(Ar,_r,Er){Ar.each(function(Rr){var zr=it.select(this);ft.translatePoint(Rr,zr,_r,Er)})},ft.hideOutsideRangePoint=function(Ar,_r,Er,Rr,zr,Br){_r.attr("display",Er.isPtWithinRange(Ar,zr)&&Rr.isPtWithinRange(Ar,Br)?null:"none")},ft.hideOutsideRangePoints=function(Ar,_r){if(_r._hasClipOnAxisFalse){var Er=_r.xaxis,Rr=_r.yaxis;Ar.each(function(zr){var Br=zr[0].trace,kr=Br.xcalendar,Nr=Br.ycalendar,Qr=ut.traceIs(Br,"bar-like")?".bartext":".point,.textpoint";Ar.selectAll(Qr).each(function(sn){ft.hideOutsideRangePoint(sn,it.select(this),Er,Rr,kr,Nr)})})}},ft.crispRound=function(Ar,_r,Er){return!_r||!Et(_r)?Er||0:Ar._context.staticPlot?_r:_r<1?1:Math.round(_r)},ft.singleLineStyle=function(Ar,_r,Er,Rr,zr){_r.style("fill","none");var Br=(((Ar||[])[0]||{}).trace||{}).line||{},kr=Er||Br.width||0,Nr=zr||Br.dash||"";ht.stroke(_r,Rr||Br.color),ft.dashLine(_r,Nr,kr)},ft.lineGroupStyle=function(Ar,_r,Er,Rr){Ar.style("fill","none").each(function(zr){var Br=(((zr||[])[0]||{}).trace||{}).line||{},kr=_r||Br.width||0,Nr=Rr||Br.dash||"";it.select(this).call(ht.stroke,Er||Br.color).call(ft.dashLine,Nr,kr)})},ft.dashLine=function(Ar,_r,Er){Er=+Er||0,_r=ft.dashStyle(_r,Er),Ar.style({"stroke-dasharray":_r,"stroke-width":Er+"px"})},ft.dashStyle=function(Ar,_r){_r=+_r||1;var Er=Math.max(_r,3);return Ar==="solid"?Ar="":Ar==="dot"?Ar=Er+"px,"+Er+"px":Ar==="dash"?Ar=3*Er+"px,"+3*Er+"px":Ar==="longdash"?Ar=5*Er+"px,"+5*Er+"px":Ar==="dashdot"?Ar=3*Er+"px,"+Er+"px,"+Er+"px,"+Er+"px":Ar==="longdashdot"&&(Ar=5*Er+"px,"+2*Er+"px,"+Er+"px,"+2*Er+"px"),Ar};function at(Ar,_r,Er,Rr){var zr=_r.fillpattern,Br=_r.fillgradient,kr=zr&&ft.getPatternAttr(zr.shape,0,"");if(kr){var Nr=ft.getPatternAttr(zr.bgcolor,0,null),Qr=ft.getPatternAttr(zr.fgcolor,0,null),sn=zr.fgopacity,un=ft.getPatternAttr(zr.size,0,8),qr=ft.getPatternAttr(zr.solidity,0,.3),Xr=_r.uid;ft.pattern(Ar,"point",Er,Xr,kr,un,qr,void 0,zr.fillmode,Nr,Qr,sn)}else if(Br&&Br.type!=="none"){var ln=Br.type,mn="scatterfill-"+_r.uid;if(Rr&&(mn="legendfill-"+_r.uid),!Rr&&(Br.start!==void 0||Br.stop!==void 0)){var pn,En;ln==="horizontal"?(pn={x:Br.start,y:0},En={x:Br.stop,y:0}):ln==="vertical"&&(pn={x:0,y:Br.start},En={x:0,y:Br.stop}),pn.x=_r._xA.c2p(pn.x===void 0?_r._extremes.x.min[0].val:pn.x,!0),pn.y=_r._yA.c2p(pn.y===void 0?_r._extremes.y.min[0].val:pn.y,!0),En.x=_r._xA.c2p(En.x===void 0?_r._extremes.x.max[0].val:En.x,!0),En.y=_r._yA.c2p(En.y===void 0?_r._extremes.y.max[0].val:En.y,!0),Ar.call(wt,Er,mn,"linear",Br.colorscale,"fill",pn,En,!0,!1)}else ln==="horizontal"&&(ln=ln+"reversed"),Ar.call(ft.gradient,Er,mn,ln,Br.colorscale,"fill")}else _r.fillcolor&&Ar.call(ht.fill,_r.fillcolor)}ft.singleFillStyle=function(Ar,_r){var Er=it.select(Ar.node()),Rr=Er.data(),zr=((Rr[0]||[])[0]||{}).trace||{};at(Ar,zr,_r,!1)},ft.fillGroupStyle=function(Ar,_r,Er){Ar.style("stroke-width",0).each(function(Rr){var zr=it.select(this);Rr[0].trace&&at(zr,Rr[0].trace,_r,Er)})};var yt=o(71984);ft.symbolNames=[],ft.symbolFuncs=[],ft.symbolBackOffs=[],ft.symbolNeedLines={},ft.symbolNoDot={},ft.symbolNoFill={},ft.symbolList=[],Object.keys(yt).forEach(function(Ar){var _r=yt[Ar],Er=_r.n;ft.symbolList.push(Er,String(Er),Ar,Er+100,String(Er+100),Ar+"-open"),ft.symbolNames[Er]=Ar,ft.symbolFuncs[Er]=_r.f,ft.symbolBackOffs[Er]=_r.backoff||0,_r.needLine&&(ft.symbolNeedLines[Er]=!0),_r.noDot?ft.symbolNoDot[Er]=!0:ft.symbolList.push(Er+200,String(Er+200),Ar+"-dot",Er+300,String(Er+300),Ar+"-open-dot"),_r.noFill&&(ft.symbolNoFill[Er]=!0)});var St=ft.symbolNames.length,_t="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";ft.symbolNumber=function(Ar){if(Et(Ar))Ar=+Ar;else if(typeof Ar=="string"){var _r=0;Ar.indexOf("-open")>0&&(_r=100,Ar=Ar.replace("-open","")),Ar.indexOf("-dot")>0&&(_r+=200,Ar=Ar.replace("-dot","")),Ar=ft.symbolNames.indexOf(Ar),Ar>=0&&(Ar+=_r)}return Ar%100>=St||Ar>=400?0:Math.floor(Math.max(Ar,0))};function Mt(Ar,_r,Er,Rr){var zr=Ar%100;return ft.symbolFuncs[zr](_r,Er,Rr)+(Ar>=200?_t:"")}var Tt=et("~f"),kt={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};ft.gradient=function(Ar,_r,Er,Rr,zr,Br){var kr=kt[Rr];return wt(Ar,_r,Er,kr.type,zr,Br,kr.start,kr.stop,!1,kr.reversed)};function wt(Ar,_r,Er,Rr,zr,Br,kr,Nr,Qr,sn){var un=zr.length,qr;Rr==="linear"?qr={node:"linearGradient",attrs:{x1:kr.x,y1:kr.y,x2:Nr.x,y2:Nr.y,gradientUnits:Qr?"userSpaceOnUse":"objectBoundingBox"},reversed:sn}:Rr==="radial"&&(qr={node:"radialGradient",reversed:sn});for(var Xr=new Array(un),ln=0;ln=0&&Ar.i===void 0&&(Ar.i=Br.i),_r.style("opacity",Rr.selectedOpacityFn?Rr.selectedOpacityFn(Ar):Ar.mo===void 0?kr.opacity:Ar.mo),Rr.ms2mrc){var Qr;Ar.ms==="various"||kr.size==="various"?Qr=3:Qr=Rr.ms2mrc(Ar.ms),Ar.mrc=Qr,Rr.selectedSizeFn&&(Qr=Ar.mrc=Rr.selectedSizeFn(Ar));var sn=ft.symbolNumber(Ar.mx||kr.symbol)||0;Ar.om=sn%200>=100;var un=Ir(Ar,Er),qr=jt(Ar,Er);_r.attr("d",Mt(sn,Qr,un,qr))}var Xr=!1,ln,mn,pn;if(Ar.so)pn=Nr.outlierwidth,mn=Nr.outliercolor,ln=kr.outliercolor;else{var En=(Nr||{}).width;pn=(Ar.mlw+1||En+1||(Ar.trace?(Ar.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in Ar?mn=Ar.mlcc=Rr.lineScale(Ar.mlc):xt.isArrayOrTypedArray(Nr.color)?mn=ht.defaultLine:mn=Nr.color,xt.isArrayOrTypedArray(kr.color)&&(ln=ht.defaultLine,Xr=!0),"mc"in Ar?ln=Ar.mcc=Rr.markerScale(Ar.mc):ln=kr.color||kr.colors||"rgba(0,0,0,0)",Rr.selectedColorFn&&(ln=Rr.selectedColorFn(Ar))}if(Ar.om)_r.call(ht.stroke,ln).style({"stroke-width":(pn||1)+"px",fill:"none"});else{_r.style("stroke-width",(Ar.isBlank?0:pn)+"px");var Jr=kr.gradient,Or=Ar.mgt;Or?Xr=!0:Or=Jr&&Jr.type,xt.isArrayOrTypedArray(Or)&&(Or=Or[0],kt[Or]||(Or=0));var Ur=kr.pattern,jr=Ur&&ft.getPatternAttr(Ur.shape,Ar.i,"");if(Or&&Or!=="none"){var Gr=Ar.mgc;Gr?Xr=!0:Gr=Jr.color;var wr=Er.uid;Xr&&(wr+="-"+Ar.i),ft.gradient(_r,zr,wr,Or,[[0,Gr],[1,ln]],"fill")}else if(jr){var vr=!1,Dr=Ur.fgcolor;!Dr&&Br&&Br.color&&(Dr=Br.color,vr=!0);var Sr=ft.getPatternAttr(Dr,Ar.i,Br&&Br.color||null),ur=ft.getPatternAttr(Ur.bgcolor,Ar.i,null),xr=Ur.fgopacity,Pr=ft.getPatternAttr(Ur.size,Ar.i,8),Vr=ft.getPatternAttr(Ur.solidity,Ar.i,.3);vr=vr||Ar.mcc||xt.isArrayOrTypedArray(Ur.shape)||xt.isArrayOrTypedArray(Ur.bgcolor)||xt.isArrayOrTypedArray(Ur.fgcolor)||xt.isArrayOrTypedArray(Ur.size)||xt.isArrayOrTypedArray(Ur.solidity);var en=Er.uid;vr&&(en+="-"+Ar.i),ft.pattern(_r,"point",zr,en,jr,Pr,Vr,Ar.mcc,Ur.fillmode,ur,Sr,xr)}else xt.isArrayOrTypedArray(ln)?ht.fill(_r,ln[Ar.i]):ht.fill(_r,ln);pn&&ht.stroke(_r,mn)}},ft.makePointStyleFns=function(Ar){var _r={},Er=Ar.marker;return _r.markerScale=ft.tryColorscale(Er,""),_r.lineScale=ft.tryColorscale(Er,"line"),ut.traceIs(Ar,"symbols")&&(_r.ms2mrc=vt.isBubble(Ar)?dt(Ar):function(){return(Er.size||6)/2}),Ar.selectedpoints&&xt.extendFlat(_r,ft.makeSelectedPointStyleFns(Ar)),_r},ft.makeSelectedPointStyleFns=function(Ar){var _r={},Er=Ar.selected||{},Rr=Ar.unselected||{},zr=Ar.marker||{},Br=Er.marker||{},kr=Rr.marker||{},Nr=zr.opacity,Qr=Br.opacity,sn=kr.opacity,un=Qr!==void 0,qr=sn!==void 0;(xt.isArrayOrTypedArray(Nr)||un||qr)&&(_r.selectedOpacityFn=function(jr){var Gr=jr.mo===void 0?zr.opacity:jr.mo;return jr.selected?un?Qr:Gr:qr?sn:nt*Gr});var Xr=zr.color,ln=Br.color,mn=kr.color;(ln||mn)&&(_r.selectedColorFn=function(jr){var Gr=jr.mcc||Xr;return jr.selected?ln||Gr:mn||Gr});var pn=zr.size,En=Br.size,Jr=kr.size,Or=En!==void 0,Ur=Jr!==void 0;return ut.traceIs(Ar,"symbols")&&(Or||Ur)&&(_r.selectedSizeFn=function(jr){var Gr=jr.mrc||pn/2;return jr.selected?Or?En/2:Gr:Ur?Jr/2:Gr}),_r},ft.makeSelectedTextStyleFns=function(Ar){var _r={},Er=Ar.selected||{},Rr=Ar.unselected||{},zr=Ar.textfont||{},Br=Er.textfont||{},kr=Rr.textfont||{},Nr=zr.color,Qr=Br.color,sn=kr.color;return _r.selectedTextColorFn=function(un){var qr=un.tc||Nr;return un.selected?Qr||qr:sn||(Qr?qr:ht.addOpacity(qr,nt))},_r},ft.selectedPointStyle=function(Ar,_r){if(!(!Ar.size()||!_r.selectedpoints)){var Er=ft.makeSelectedPointStyleFns(_r),Rr=_r.marker||{},zr=[];Er.selectedOpacityFn&&zr.push(function(Br,kr){Br.style("opacity",Er.selectedOpacityFn(kr))}),Er.selectedColorFn&&zr.push(function(Br,kr){ht.fill(Br,Er.selectedColorFn(kr))}),Er.selectedSizeFn&&zr.push(function(Br,kr){var Nr=kr.mx||Rr.symbol||0,Qr=Er.selectedSizeFn(kr);Br.attr("d",Mt(ft.symbolNumber(Nr),Qr,Ir(kr,_r),jt(kr,_r))),kr.mrc2=Qr}),zr.length&&Ar.each(function(Br){for(var kr=it.select(this),Nr=0;Nr0?Er:0}ft.textPointStyle=function(Ar,_r,Er){if(Ar.size()){var Rr;if(_r.selectedpoints){var zr=ft.makeSelectedTextStyleFns(_r);Rr=zr.selectedTextColorFn}var Br=_r.texttemplate,kr=Er._fullLayout;Ar.each(function(Nr){var Qr=it.select(this),sn=Br?xt.extractOption(Nr,_r,"txt","texttemplate"):xt.extractOption(Nr,_r,"tx","text");if(!sn&&sn!==0){Qr.remove();return}if(Br){var un=_r._module.formatLabels,qr=un?un(Nr,_r,kr):{},Xr={};bt(Xr,_r,Nr.i);var ln=_r._meta||{};sn=xt.texttemplateString(sn,qr,kr._d3locale,Xr,Nr,ln)}var mn=Nr.tp||_r.textposition,pn=At(Nr,_r),En=Rr?Rr(Nr):Nr.tc||_r.textfont.color;Qr.call(ft.font,{family:Nr.tf||_r.textfont.family,weight:Nr.tw||_r.textfont.weight,style:Nr.ty||_r.textfont.style,variant:Nr.tv||_r.textfont.variant,size:pn,color:En}).text(sn).call(rt.convertToTspans,Er).call(It,mn,pn,Nr.mrc)})}},ft.selectedTextStyle=function(Ar,_r){if(!(!Ar.size()||!_r.selectedpoints)){var Er=ft.makeSelectedTextStyleFns(_r);Ar.each(function(Rr){var zr=it.select(this),Br=Er.selectedTextColorFn(Rr),kr=Rr.tp||_r.textposition,Nr=At(Rr,_r);ht.fill(zr,Br);var Qr=ut.traceIs(_r,"bar-like");It(zr,kr,Nr,Rr.mrc2||Rr.mrc,Qr)})}};var Ot=.5;ft.smoothopen=function(Ar,_r){if(Ar.length<3)return"M"+Ar.join("L");var Er="M"+Ar[0],Rr=[],zr;for(zr=1;zr=Qr||jr>=un&&jr<=Qr)&&(Gr<=qr&&Gr>=sn||Gr>=qr&&Gr<=sn)&&(Ar=[jr,Gr])}return Ar}ft.applyBackoff=Xt,ft.makeTester=function(){var Ar=xt.ensureSingleById(it.select("body"),"svg","js-plotly-tester",function(Er){Er.attr(tt.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),_r=xt.ensureSingle(Ar,"path","js-reference-point",function(Er){Er.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});ft.tester=Ar,ft.testref=_r},ft.savedBBoxes={};var qt=0,er=1e4;ft.bBox=function(Ar,_r,Er){Er||(Er=lr(Ar));var Rr;if(Er){if(Rr=ft.savedBBoxes[Er],Rr)return xt.extendFlat({},Rr)}else if(Ar.childNodes.length===1){var zr=Ar.childNodes[0];if(Er=lr(zr),Er){var Br=+zr.getAttribute("x")||0,kr=+zr.getAttribute("y")||0,Nr=zr.getAttribute("transform");if(!Nr){var Qr=ft.bBox(zr,!1,Er);return Br&&(Qr.left+=Br,Qr.right+=Br),kr&&(Qr.top+=kr,Qr.bottom+=kr),Qr}if(Er+="~"+Br+"~"+kr+"~"+Nr,Rr=ft.savedBBoxes[Er],Rr)return xt.extendFlat({},Rr)}}var sn,un;_r?sn=Ar:(un=ft.tester.node(),sn=Ar.cloneNode(!0),un.appendChild(sn)),it.select(sn).attr("transform",null).call(rt.positionText,0,0);var qr=sn.getBoundingClientRect(),Xr=ft.testref.node().getBoundingClientRect();_r||un.removeChild(sn);var ln={height:qr.height,width:qr.width,left:qr.left-Xr.left,top:qr.top-Xr.top,right:qr.right-Xr.left,bottom:qr.bottom-Xr.top};return qt>=er&&(ft.savedBBoxes={},qt=0),Er&&(ft.savedBBoxes[Er]=ln),qt++,xt.extendFlat({},ln)};function lr(Ar){var _r=Ar.getAttribute("data-unformatted");if(_r!==null)return _r+Ar.getAttribute("data-math")+Ar.getAttribute("text-anchor")+Ar.getAttribute("style")}ft.setClipUrl=function(Ar,_r,Er){Ar.attr("clip-path",Jt(_r,Er))};function Jt(Ar,_r){if(!Ar)return null;var Er=_r._context,Rr=Er._exportedPlot?"":Er._baseUrl||"";return Rr?"url('"+Rr+"#"+Ar+"')":"url(#"+Ar+")"}ft.getTranslate=function(Ar){var _r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,Er=Ar.attr?"attr":"getAttribute",Rr=Ar[Er]("transform")||"",zr=Rr.replace(_r,function(Br,kr,Nr){return[kr,Nr].join(" ")}).split(" ");return{x:+zr[0]||0,y:+zr[1]||0}},ft.setTranslate=function(Ar,_r,Er){var Rr=/(\btranslate\(.*?\);?)/,zr=Ar.attr?"attr":"getAttribute",Br=Ar.attr?"attr":"setAttribute",kr=Ar[zr]("transform")||"";return _r=_r||0,Er=Er||0,kr=kr.replace(Rr,"").trim(),kr+=_(_r,Er),kr=kr.trim(),Ar[Br]("transform",kr),kr},ft.getScale=function(Ar){var _r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,Er=Ar.attr?"attr":"getAttribute",Rr=Ar[Er]("transform")||"",zr=Rr.replace(_r,function(Br,kr,Nr){return[kr,Nr].join(" ")}).split(" ");return{x:+zr[0]||1,y:+zr[1]||1}},ft.setScale=function(Ar,_r,Er){var Rr=/(\bscale\(.*?\);?)/,zr=Ar.attr?"attr":"getAttribute",Br=Ar.attr?"attr":"setAttribute",kr=Ar[zr]("transform")||"";return _r=_r||1,Er=Er||1,kr=kr.replace(Rr,"").trim(),kr+="scale("+_r+","+Er+")",kr=kr.trim(),Ar[Br]("transform",kr),kr};var Yt=/\s*sc.*/;ft.setPointGroupScale=function(Ar,_r,Er){if(_r=_r||1,Er=Er||1,!!Ar){var Rr=_r===1&&Er===1?"":"scale("+_r+","+Er+")";Ar.each(function(){var zr=(this.getAttribute("transform")||"").replace(Yt,"");zr+=Rr,zr=zr.trim(),this.setAttribute("transform",zr)})}};var rr=/translate\([^)]*\)\s*$/;ft.setTextPointsScale=function(Ar,_r,Er){Ar&&Ar.each(function(){var Rr,zr=it.select(this),Br=zr.select("text");if(Br.node()){var kr=parseFloat(Br.attr("x")||0),Nr=parseFloat(Br.attr("y")||0),Qr=(zr.attr("transform")||"").match(rr);_r===1&&Er===1?Rr=[]:Rr=[_(kr,Nr),"scale("+_r+","+Er+")",_(-kr,-Nr)],Qr&&Rr.push(Qr),zr.attr("transform",Rr.join(""))}})};function jt(Ar,_r){var Er;return Ar&&(Er=Ar.mf),Er===void 0&&(Er=_r.marker&&_r.marker.standoff||0),!_r._geo&&!_r._xA?-Er:Er}ft.getMarkerStandoff=jt;var ar=Math.atan2,sr=Math.cos,Zt=Math.sin;function Kt(Ar,_r){var Er=_r[0],Rr=_r[1];return[Er*sr(Ar)-Rr*Zt(Ar),Er*Zt(Ar)+Rr*sr(Ar)]}var or,tr,cr,hr,br,Tr;function Ir(Ar,_r){var Er=Ar.ma;Er===void 0&&(Er=_r.marker.angle,(!Er||xt.isArrayOrTypedArray(Er))&&(Er=0));var Rr,zr,Br=_r.marker.angleref;if(Br==="previous"||Br==="north"){if(_r._geo){var kr=_r._geo.project(Ar.lonlat);Rr=kr[0],zr=kr[1]}else{var Nr=_r._xA,Qr=_r._yA;if(Nr&&Qr)Rr=Nr.c2p(Ar.x),zr=Qr.c2p(Ar.y);else return 90}if(_r._geo){var sn=Ar.lonlat[0],un=Ar.lonlat[1],qr=_r._geo.project([sn,un+1e-5]),Xr=_r._geo.project([sn+1e-5,un]),ln=ar(Xr[1]-zr,Xr[0]-Rr),mn=ar(qr[1]-zr,qr[0]-Rr),pn;if(Br==="north")pn=Er/180*Math.PI;else if(Br==="previous"){var En=sn/180*Math.PI,Jr=un/180*Math.PI,Or=or/180*Math.PI,Ur=tr/180*Math.PI,jr=Or-En,Gr=sr(Ur)*Zt(jr),wr=Zt(Ur)*sr(Jr)-sr(Ur)*Zt(Jr)*sr(jr);pn=-ar(Gr,wr)-Math.PI,or=sn,tr=un}var vr=Kt(ln,[sr(pn),0]),Dr=Kt(mn,[Zt(pn),0]);Er=ar(vr[1]+Dr[1],vr[0]+Dr[0])/Math.PI*180,Br==="previous"&&!(Tr===_r.uid&&Ar.i===br+1)&&(Er=null)}if(Br==="previous"&&!_r._geo)if(Tr===_r.uid&&Ar.i===br+1&&Et(Rr)&&Et(zr)){var Sr=Rr-cr,ur=zr-hr,xr=_r.line&&_r.line.shape||"",Pr=xr.slice(xr.length-1);Pr==="h"&&(ur=0),Pr==="v"&&(Sr=0),Er+=ar(ur,Sr)/Math.PI*180+90}else Er=null}return cr=Rr,hr=zr,br=Ar.i,Tr=_r.uid,Er}ft.getMarkerAngle=Ir},71984:function(Ct,Rt,o){var it=o(21984),xt=o(33428).round,et="M0,0Z",Et=Math.sqrt(2),mt=Math.sqrt(3),ut=Math.PI,ht=Math.cos,j=Math.sin;Ct.exports={circle:{n:0,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt,2),at="M"+ft+",0A"+ft+","+ft+" 0 1,1 0,-"+ft+"A"+ft+","+ft+" 0 0,1 "+ft+",0Z";return bt?nt(dt,bt,at):at}},square:{n:1,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt,2);return nt(dt,bt,"M"+ft+","+ft+"H-"+ft+"V-"+ft+"H"+ft+"Z")}},diamond:{n:2,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*1.3,2);return nt(dt,bt,"M"+ft+",0L0,"+ft+"L-"+ft+",0L0,-"+ft+"Z")}},cross:{n:3,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*.4,2),at=xt(vt*1.2,2);return nt(dt,bt,"M"+at+","+ft+"H"+ft+"V"+at+"H-"+ft+"V"+ft+"H-"+at+"V-"+ft+"H-"+ft+"V-"+at+"H"+ft+"V-"+ft+"H"+at+"Z")}},x:{n:4,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*.8/Et,2),at="l"+ft+","+ft,yt="l"+ft+",-"+ft,St="l-"+ft+",-"+ft,_t="l-"+ft+","+ft;return nt(dt,bt,"M0,"+ft+at+yt+St+yt+St+_t+St+_t+at+_t+at+"Z")}},"triangle-up":{n:5,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*2/mt,2),at=xt(vt/2,2),yt=xt(vt,2);return nt(dt,bt,"M-"+ft+","+at+"H"+ft+"L0,-"+yt+"Z")}},"triangle-down":{n:6,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*2/mt,2),at=xt(vt/2,2),yt=xt(vt,2);return nt(dt,bt,"M-"+ft+",-"+at+"H"+ft+"L0,"+yt+"Z")}},"triangle-left":{n:7,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*2/mt,2),at=xt(vt/2,2),yt=xt(vt,2);return nt(dt,bt,"M"+at+",-"+ft+"V"+ft+"L-"+yt+",0Z")}},"triangle-right":{n:8,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*2/mt,2),at=xt(vt/2,2),yt=xt(vt,2);return nt(dt,bt,"M-"+at+",-"+ft+"V"+ft+"L"+yt+",0Z")}},"triangle-ne":{n:9,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*.6,2),at=xt(vt*1.2,2);return nt(dt,bt,"M-"+at+",-"+ft+"H"+ft+"V"+at+"Z")}},"triangle-se":{n:10,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*.6,2),at=xt(vt*1.2,2);return nt(dt,bt,"M"+ft+",-"+at+"V"+ft+"H-"+at+"Z")}},"triangle-sw":{n:11,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*.6,2),at=xt(vt*1.2,2);return nt(dt,bt,"M"+at+","+ft+"H-"+ft+"V-"+at+"Z")}},"triangle-nw":{n:12,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*.6,2),at=xt(vt*1.2,2);return nt(dt,bt,"M-"+ft+","+at+"V-"+ft+"H"+at+"Z")}},pentagon:{n:13,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*.951,2),at=xt(vt*.588,2),yt=xt(-vt,2),St=xt(vt*-.309,2),_t=xt(vt*.809,2);return nt(dt,bt,"M"+ft+","+St+"L"+at+","+_t+"H-"+at+"L-"+ft+","+St+"L0,"+yt+"Z")}},hexagon:{n:14,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt,2),at=xt(vt/2,2),yt=xt(vt*mt/2,2);return nt(dt,bt,"M"+yt+",-"+at+"V"+at+"L0,"+ft+"L-"+yt+","+at+"V-"+at+"L0,-"+ft+"Z")}},hexagon2:{n:15,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt,2),at=xt(vt/2,2),yt=xt(vt*mt/2,2);return nt(dt,bt,"M-"+at+","+yt+"H"+at+"L"+ft+",0L"+at+",-"+yt+"H-"+at+"L-"+ft+",0Z")}},octagon:{n:16,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*.924,2),at=xt(vt*.383,2);return nt(dt,bt,"M-"+at+",-"+ft+"H"+at+"L"+ft+",-"+at+"V"+at+"L"+at+","+ft+"H-"+at+"L-"+ft+","+at+"V-"+at+"Z")}},star:{n:17,f:function(vt,dt,bt){if(_(dt))return et;var ft=vt*1.4,at=xt(ft*.225,2),yt=xt(ft*.951,2),St=xt(ft*.363,2),_t=xt(ft*.588,2),Mt=xt(-ft,2),Tt=xt(ft*-.309,2),kt=xt(ft*.118,2),wt=xt(ft*.809,2),ct=xt(ft*.382,2);return nt(dt,bt,"M"+at+","+Tt+"H"+yt+"L"+St+","+kt+"L"+_t+","+wt+"L0,"+ct+"L-"+_t+","+wt+"L-"+St+","+kt+"L-"+yt+","+Tt+"H-"+at+"L0,"+Mt+"Z")}},hexagram:{n:18,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*.66,2),at=xt(vt*.38,2),yt=xt(vt*.76,2);return nt(dt,bt,"M-"+yt+",0l-"+at+",-"+ft+"h"+yt+"l"+at+",-"+ft+"l"+at+","+ft+"h"+yt+"l-"+at+","+ft+"l"+at+","+ft+"h-"+yt+"l-"+at+","+ft+"l-"+at+",-"+ft+"h-"+yt+"Z")}},"star-triangle-up":{n:19,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*mt*.8,2),at=xt(vt*.8,2),yt=xt(vt*1.6,2),St=xt(vt*4,2),_t="A "+St+","+St+" 0 0 1 ";return nt(dt,bt,"M-"+ft+","+at+_t+ft+","+at+_t+"0,-"+yt+_t+"-"+ft+","+at+"Z")}},"star-triangle-down":{n:20,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*mt*.8,2),at=xt(vt*.8,2),yt=xt(vt*1.6,2),St=xt(vt*4,2),_t="A "+St+","+St+" 0 0 1 ";return nt(dt,bt,"M"+ft+",-"+at+_t+"-"+ft+",-"+at+_t+"0,"+yt+_t+ft+",-"+at+"Z")}},"star-square":{n:21,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*1.1,2),at=xt(vt*2,2),yt="A "+at+","+at+" 0 0 1 ";return nt(dt,bt,"M-"+ft+",-"+ft+yt+"-"+ft+","+ft+yt+ft+","+ft+yt+ft+",-"+ft+yt+"-"+ft+",-"+ft+"Z")}},"star-diamond":{n:22,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*1.4,2),at=xt(vt*1.9,2),yt="A "+at+","+at+" 0 0 1 ";return nt(dt,bt,"M-"+ft+",0"+yt+"0,"+ft+yt+ft+",0"+yt+"0,-"+ft+yt+"-"+ft+",0Z")}},"diamond-tall":{n:23,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*.7,2),at=xt(vt*1.4,2);return nt(dt,bt,"M0,"+at+"L"+ft+",0L0,-"+at+"L-"+ft+",0Z")}},"diamond-wide":{n:24,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*1.4,2),at=xt(vt*.7,2);return nt(dt,bt,"M0,"+at+"L"+ft+",0L0,-"+at+"L-"+ft+",0Z")}},hourglass:{n:25,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt,2);return nt(dt,bt,"M"+ft+","+ft+"H-"+ft+"L"+ft+",-"+ft+"H-"+ft+"Z")},noDot:!0},bowtie:{n:26,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt,2);return nt(dt,bt,"M"+ft+","+ft+"V-"+ft+"L-"+ft+","+ft+"V-"+ft+"Z")},noDot:!0},"circle-cross":{n:27,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt,2);return nt(dt,bt,"M0,"+ft+"V-"+ft+"M"+ft+",0H-"+ft+"M"+ft+",0A"+ft+","+ft+" 0 1,1 0,-"+ft+"A"+ft+","+ft+" 0 0,1 "+ft+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt,2),at=xt(vt/Et,2);return nt(dt,bt,"M"+at+","+at+"L-"+at+",-"+at+"M"+at+",-"+at+"L-"+at+","+at+"M"+ft+",0A"+ft+","+ft+" 0 1,1 0,-"+ft+"A"+ft+","+ft+" 0 0,1 "+ft+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt,2);return nt(dt,bt,"M0,"+ft+"V-"+ft+"M"+ft+",0H-"+ft+"M"+ft+","+ft+"H-"+ft+"V-"+ft+"H"+ft+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt,2);return nt(dt,bt,"M"+ft+","+ft+"L-"+ft+",-"+ft+"M"+ft+",-"+ft+"L-"+ft+","+ft+"M"+ft+","+ft+"H-"+ft+"V-"+ft+"H"+ft+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*1.3,2);return nt(dt,bt,"M"+ft+",0L0,"+ft+"L-"+ft+",0L0,-"+ft+"ZM0,-"+ft+"V"+ft+"M-"+ft+",0H"+ft)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*1.3,2),at=xt(vt*.65,2);return nt(dt,bt,"M"+ft+",0L0,"+ft+"L-"+ft+",0L0,-"+ft+"ZM-"+at+",-"+at+"L"+at+","+at+"M-"+at+","+at+"L"+at+",-"+at)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*1.4,2);return nt(dt,bt,"M0,"+ft+"V-"+ft+"M"+ft+",0H-"+ft)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt,2);return nt(dt,bt,"M"+ft+","+ft+"L-"+ft+",-"+ft+"M"+ft+",-"+ft+"L-"+ft+","+ft)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*1.2,2),at=xt(vt*.85,2);return nt(dt,bt,"M0,"+ft+"V-"+ft+"M"+ft+",0H-"+ft+"M"+at+","+at+"L-"+at+",-"+at+"M"+at+",-"+at+"L-"+at+","+at)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt/2,2),at=xt(vt,2);return nt(dt,bt,"M"+ft+","+at+"V-"+at+"M"+(ft-at)+",-"+at+"V"+at+"M"+at+","+ft+"H-"+at+"M-"+at+","+(ft-at)+"H"+at)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*1.2,2),at=xt(vt*1.6,2),yt=xt(vt*.8,2);return nt(dt,bt,"M-"+ft+","+yt+"L0,0M"+ft+","+yt+"L0,0M0,-"+at+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*1.2,2),at=xt(vt*1.6,2),yt=xt(vt*.8,2);return nt(dt,bt,"M-"+ft+",-"+yt+"L0,0M"+ft+",-"+yt+"L0,0M0,"+at+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*1.2,2),at=xt(vt*1.6,2),yt=xt(vt*.8,2);return nt(dt,bt,"M"+yt+","+ft+"L0,0M"+yt+",-"+ft+"L0,0M-"+at+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*1.2,2),at=xt(vt*1.6,2),yt=xt(vt*.8,2);return nt(dt,bt,"M-"+yt+","+ft+"L0,0M-"+yt+",-"+ft+"L0,0M"+at+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*1.4,2);return nt(dt,bt,"M"+ft+",0H-"+ft)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*1.4,2);return nt(dt,bt,"M0,"+ft+"V-"+ft)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt,2);return nt(dt,bt,"M"+ft+",-"+ft+"L-"+ft+","+ft)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt,2);return nt(dt,bt,"M"+ft+","+ft+"L-"+ft+",-"+ft)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt,2),at=xt(vt*2,2);return nt(dt,bt,"M0,0L-"+ft+","+at+"H"+ft+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt,2),at=xt(vt*2,2);return nt(dt,bt,"M0,0L-"+ft+",-"+at+"H"+ft+"Z")},noDot:!0},"arrow-left":{n:47,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*2,2),at=xt(vt,2);return nt(dt,bt,"M0,0L"+ft+",-"+at+"V"+at+"Z")},noDot:!0},"arrow-right":{n:48,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*2,2),at=xt(vt,2);return nt(dt,bt,"M0,0L-"+ft+",-"+at+"V"+at+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt,2),at=xt(vt*2,2);return nt(dt,bt,"M-"+ft+",0H"+ft+"M0,0L-"+ft+","+at+"H"+ft+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt,2),at=xt(vt*2,2);return nt(dt,bt,"M-"+ft+",0H"+ft+"M0,0L-"+ft+",-"+at+"H"+ft+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*2,2),at=xt(vt,2);return nt(dt,bt,"M0,-"+at+"V"+at+"M0,0L"+ft+",-"+at+"V"+at+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*2,2),at=xt(vt,2);return nt(dt,bt,"M0,-"+at+"V"+at+"M0,0L-"+ft+",-"+at+"V"+at+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(vt,dt,bt){if(_(dt))return et;var ft=ut/2.5,at=2*vt*ht(ft),yt=2*vt*j(ft);return nt(dt,bt,"M0,0L"+-at+","+yt+"L"+at+","+yt+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(vt,dt,bt){if(_(dt))return et;var ft=ut/4,at=2*vt*ht(ft),yt=2*vt*j(ft);return nt(dt,bt,"M0,0L"+-at+","+yt+"A "+2*vt+","+2*vt+" 0 0 1 "+at+","+yt+"Z")},backoff:.4,noDot:!0}};function _(vt){return vt===null}var rt,tt,st,ot;function nt(vt,dt,bt){if((!vt||vt%360===0)&&!dt)return bt;if(st===vt&&ot===dt&&rt===bt)return tt;st=vt,ot=dt,rt=bt;function ft(Pt,zt){var Dt=ht(Pt),Nt=j(Pt),$t=zt[0],Ut=zt[1]+(dt||0);return[$t*Dt-Ut*Nt,$t*Nt+Ut*Dt]}for(var at=vt/180*ut,yt=0,St=0,_t=it(bt),Mt="",Tt=0;Tt<_t.length;Tt++){var kt=_t[Tt],wt=kt[0],ct=yt,It=St;if(wt==="M"||wt==="L")yt=+kt[1],St=+kt[2];else if(wt==="m"||wt==="l")yt+=+kt[1],St+=+kt[2];else if(wt==="H")yt=+kt[1];else if(wt==="h")yt+=+kt[1];else if(wt==="V")St=+kt[1];else if(wt==="v")St+=+kt[1];else if(wt==="A"){yt=+kt[1],St=+kt[2];var At=ft(at,[+kt[6],+kt[7]]);kt[6]=At[0],kt[7]=At[1],kt[3]=+kt[3]+vt}(wt==="H"||wt==="V")&&(wt="L"),(wt==="h"||wt==="v")&&(wt="l"),(wt==="m"||wt==="l")&&(yt-=ct,St-=It);var Ot=ft(at,[yt,St]);(wt==="H"||wt==="V")&&(wt="L"),(wt==="M"||wt==="L"||wt==="m"||wt==="l")&&(kt[1]=Ot[0],kt[2]=Ot[1]),kt[0]=wt,Mt+=kt[0]+kt.slice(1).join(",")}return tt=Mt,Mt}},97644:function(Ct){Ct.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc",_deprecated:{opacity:{valType:"number",editType:"style"}}}},14880:function(Ct,Rt,o){var it=o(38248),xt=o(24040),et=o(54460),Et=o(3400),mt=o(93792);Ct.exports=function(j){for(var _=j.calcdata,rt=0;rt<_.length;rt++){var tt=_[rt],st=tt[0].trace;if(st.visible===!0&&xt.traceIs(st,"errorBarsOK")){var ot=et.getFromId(j,st.xaxis),nt=et.getFromId(j,st.yaxis);ut(tt,st,ot,"x"),ut(tt,st,nt,"y")}}};function ut(ht,j,_,rt){var tt=j["error_"+rt]||{},st=tt.visible&&["linear","log"].indexOf(_.type)!==-1,ot=[];if(st){for(var nt=mt(tt),vt=0;vt0,vt=ht._context.staticPlot;j.each(function(dt){var bt=dt[0].trace,ft=bt.error_x||{},at=bt.error_y||{},yt;bt.ids&&(yt=function(Tt){return Tt.id});var St=Et.hasMarkers(bt)&&bt.marker.maxdisplayed>0;!at.visible&&!ft.visible&&(dt=[]);var _t=it.select(this).selectAll("g.errorbar").data(dt,yt);if(_t.exit().remove(),!!dt.length){ft.visible||_t.selectAll("path.xerror").remove(),at.visible||_t.selectAll("path.yerror").remove(),_t.style("opacity",1);var Mt=_t.enter().append("g").classed("errorbar",!0);nt&&Mt.style("opacity",0).transition().duration(rt.duration).style("opacity",1),et.setClipUrl(_t,_.layerClipId,ht),_t.each(function(Tt){var kt=it.select(this),wt=mt(Tt,st,ot);if(!(St&&!Tt.vis)){var ct,It=kt.select("path.yerror");if(at.visible&&xt(wt.x)&&xt(wt.yh)&&xt(wt.ys)){var At=at.width;ct="M"+(wt.x-At)+","+wt.yh+"h"+2*At+"m-"+At+",0V"+wt.ys,wt.noYS||(ct+="m-"+At+",0h"+2*At),tt=!It.size(),tt?It=kt.append("path").style("vector-effect",vt?"none":"non-scaling-stroke").classed("yerror",!0):nt&&(It=It.transition().duration(rt.duration).ease(rt.easing)),It.attr("d",ct)}else It.remove();var Ot=kt.select("path.xerror");if(ft.visible&&xt(wt.y)&&xt(wt.xh)&&xt(wt.xs)){var Pt=(ft.copy_ystyle?at:ft).width;ct="M"+wt.xh+","+(wt.y-Pt)+"v"+2*Pt+"m0,-"+Pt+"H"+wt.xs,wt.noXS||(ct+="m0,-"+Pt+"v"+2*Pt),tt=!Ot.size(),tt?Ot=kt.append("path").style("vector-effect",vt?"none":"non-scaling-stroke").classed("xerror",!0):nt&&(Ot=Ot.transition().duration(rt.duration).ease(rt.easing)),Ot.attr("d",ct)}else Ot.remove()}})}})};function mt(ut,ht,j){var _={x:ht.c2p(ut.x),y:j.c2p(ut.y)};return ut.yh!==void 0&&(_.yh=j.c2p(ut.yh),_.ys=j.c2p(ut.ys),xt(_.ys)||(_.noYS=!0,_.ys=j.c2p(ut.ys,!0))),ut.xh!==void 0&&(_.xh=ht.c2p(ut.xh),_.xs=ht.c2p(ut.xs),xt(_.xs)||(_.noXS=!0,_.xs=ht.c2p(ut.xs,!0))),_}},92036:function(Ct,Rt,o){var it=o(33428),xt=o(76308);Ct.exports=function(Et){Et.each(function(mt){var ut=mt[0].trace,ht=ut.error_y||{},j=ut.error_x||{},_=it.select(this);_.selectAll("path.yerror").style("stroke-width",ht.thickness+"px").call(xt.stroke,ht.color),j.copy_ystyle&&(j=ht),_.selectAll("path.xerror").style("stroke-width",j.thickness+"px").call(xt.stroke,j.color)})}},55756:function(Ct,Rt,o){var it=o(25376),xt=o(65460).hoverlabel,et=o(92880).extendFlat;Ct.exports={hoverlabel:{bgcolor:et({},xt.bgcolor,{arrayOk:!0}),bordercolor:et({},xt.bordercolor,{arrayOk:!0}),font:it({arrayOk:!0,editType:"none"}),align:et({},xt.align,{arrayOk:!0}),namelength:et({},xt.namelength,{arrayOk:!0}),editType:"none"}}},55056:function(Ct,Rt,o){var it=o(3400),xt=o(24040);Ct.exports=function(mt){var ut=mt.calcdata,ht=mt._fullLayout;function j(ot){return function(nt){return it.coerceHoverinfo({hoverinfo:nt},{_module:ot._module},ht)}}for(var _=0;_=0&&_.indexmn[0]._length||so<0||so>pn[0]._length)return ot.unhoverRaw(Zt,Kt)}if(Kt.pointerX=Jn+mn[0]._offset,Kt.pointerY=so+pn[0]._offset,"xval"in Kt?vr=dt.flat(hr,Kt.xval):vr=dt.p2c(mn,Jn),"yval"in Kt?Dr=dt.flat(hr,Kt.yval):Dr=dt.p2c(pn,so),!xt(vr[0])||!xt(Dr[0]))return Et.warn("Fx.hover failed",Kt,Zt),ot.unhoverRaw(Zt,Kt)}var hn=1/0;function wn(Zs,xo){for(ur=0;urbn&&(Gr.splice(0,bn),hn=Gr[0].distance),Er&&jr!==0&&Gr.length===0){fn.distance=jr,fn.index=!1;var ws=Pr._module.hoverPoints(fn,Cn,xn,"closest",{hoverLayer:Tr._hoverlayer});if(ws&&(ws=ws.filter(function(yo){return yo.spikeDistance<=jr})),ws&&ws.length){var Is,Xs=ws.filter(function(yo){return yo.xa.showspikes&&yo.xa.spikesnap!=="hovered data"});if(Xs.length){var Cl=Xs[0];xt(Cl.x0)&&xt(Cl.y0)&&(Is=Ln(Cl),(!Un.vLinePoint||Un.vLinePoint.spikeDistance>Is.spikeDistance)&&(Un.vLinePoint=Is))}var Wl=ws.filter(function(yo){return yo.ya.showspikes&&yo.ya.spikesnap!=="hovered data"});if(Wl.length){var yu=Wl[0];xt(yu.x0)&&xt(yu.y0)&&(Is=Ln(yu),(!Un.hLinePoint||Un.hLinePoint.spikeDistance>Is.spikeDistance)&&(Un.hLinePoint=Is))}}}}}wn();function In(Zs,xo,Vo){for(var Go=null,ms=1/0,Ws,ws=0;ws0&&Math.abs(Zs.distance)ro-1;co--)_o(Gr[co]);Gr=Gn,ga()}var zo=Zt._hoverdata,Io=[],Lo=jt(Zt),vs=ar(Zt);for(Sr=0;Sr1||Gr.length>1)||Rr==="closest"&&_i&&Gr.length>1,Fl=st.combine(Tr.plot_bgcolor||st.background,Tr.paper_bgcolor),Jl=Dt(Gr,{gd:Zt,hovermode:Rr,rotateLabels:Qs,bgColor:Fl,container:Tr._hoverlayer,outerContainer:Tr._paper.node(),commonLabelOpts:Tr.hoverlabel,hoverdistance:Tr.hoverdistance}),nu=Jl.hoverLabels;if(dt.isUnifiedHover(Rr)||($t(nu,Qs,Tr,Jl.commonLabelBoundingBox),Vt(nu,Qs,Tr._invScaleX,Tr._invScaleY)),cr&&cr.tagName){var Yl=vt.getComponentMethod("annotations","hasClickToShow")(Zt,Io);rt(it.select(cr),Yl?"pointer":"")}!cr||tr||!er(Zt,Kt,zo)||(zo&&Zt.emit("plotly_unhover",{event:Kt,points:zo}),Zt.emit("plotly_hover",{event:Kt,points:Zt._hoverdata,xaxes:mn,yaxes:pn,xvals:vr,yvals:Dr}))}function Pt(Zt){return[Zt.trace.index,Zt.index,Zt.x0,Zt.y0,Zt.name,Zt.attr,Zt.xa?Zt.xa._id:"",Zt.ya?Zt.ya._id:""].join(",")}var zt=/([\s\S]*)<\/extra>/;function Dt(Zt,Kt){var or=Kt.gd,tr=or._fullLayout,cr=Kt.hovermode,hr=Kt.rotateLabels,br=Kt.bgColor,Tr=Kt.container,Ir=Kt.outerContainer,Ar=Kt.commonLabelOpts||{};if(Zt.length===0)return[[]];var _r=Kt.fontFamily||bt.HOVERFONT,Er=Kt.fontSize||bt.HOVERFONTSIZE,Rr=Kt.fontWeight||tr.font.weight,zr=Kt.fontStyle||tr.font.style,Br=Kt.fontVariant||tr.font.variant,kr=Zt[0],Nr=kr.xa,Qr=kr.ya,sn=cr.charAt(0),un=sn+"Label",qr=kr[un];if(qr===void 0&&Nr.type==="multicategory")for(var Xr=0;Xrtr.width-ho&&(go=tr.width-ho),po.attr("d","M"+(io-go)+",0L"+(io-go+kt)+","+Gn+kt+"H"+ho+"v"+Gn+(wt*2+ro.height)+"H"+-ho+"V"+Gn+kt+"H"+(io-go-kt)+"Z"),io=go,vr.minX=io-ho,vr.maxX=io+ho,Nr.side==="top"?(vr.minY=eo-(wt*2+ro.height),vr.maxY=eo-wt):(vr.minY=eo+wt,vr.maxY=eo+(wt*2+ro.height))}else{var _o,co,zo;Qr.side==="right"?(_o="start",co=1,zo="",io=Nr._offset+Nr._length):(_o="end",co=-1,zo="-",io=Nr._offset),eo=Qr._offset+(kr.y0+kr.y1)/2,Yr.attr("text-anchor",_o),po.attr("d","M0,0L"+zo+kt+","+kt+"V"+(wt+ro.height/2)+"h"+zo+(wt*2+ro.width)+"V-"+(wt+ro.height/2)+"H"+zo+kt+"V-"+kt+"Z"),vr.minY=eo-(wt+ro.height/2),vr.maxY=eo+(wt+ro.height/2),Qr.side==="right"?(vr.minX=io+kt,vr.maxX=io+kt+(wt*2+ro.width)):(vr.minX=io-kt-(wt*2+ro.width),vr.maxX=io-kt);var Io=ro.height/2,Lo=mn-ro.top-Io,vs="clip"+tr._uid+"commonlabel"+Qr._id,Zo;if(io=0?Vn=In:Ln+yn=0?Vn=Ln:Xn+yn=0?ga=hn:wn+Kn=0?ga=wn:Wn+Kn=0,(qn.idealAlign==="top"||!No)&&Yo?(Io-=vs/2,qn.anchor="end"):No?(Io+=vs/2,qn.anchor="start"):qn.anchor="middle",qn.crossPos=Io;else{if(qn.pos=Io,No=zo+Lo/2+bo<=pn,Yo=zo-Lo/2-bo>=0,(qn.idealAlign==="left"||!No)&&Yo)zo-=Lo/2,qn.anchor="end";else if(No)zo+=Lo/2,qn.anchor="start";else{qn.anchor="middle";var Oo=bo/2,ys=zo+Oo-pn,gs=zo-Oo;ys>0&&(zo-=ys),gs<0&&(zo+=-gs)}qn.crossPos=zo}Gn.attr("text-anchor",qn.anchor),go&&ho.attr("text-anchor",qn.anchor),po.attr("transform",ut(zo,Io)+(hr?ht(yt):""))}),{hoverLabels:fo,commonLabelBoundingBox:vr}}function Nt(Zt,Kt,or,tr,cr,hr){var br="",Tr="";Zt.nameOverride!==void 0&&(Zt.name=Zt.nameOverride),Zt.name&&(Zt.trace._meta&&(Zt.name=Et.templateString(Zt.name,Zt.trace._meta)),br=Jt(Zt.name,Zt.nameLength));var Ir=or.charAt(0),Ar=Ir==="x"?"y":"x";Zt.zLabel!==void 0?(Zt.xLabel!==void 0&&(Tr+="x: "+Zt.xLabel+"
"),Zt.yLabel!==void 0&&(Tr+="y: "+Zt.yLabel+"
"),Zt.trace.type!=="choropleth"&&Zt.trace.type!=="choroplethmapbox"&&(Tr+=(Tr?"z: ":"")+Zt.zLabel)):Kt&&Zt[Ir+"Label"]===cr?Tr=Zt[Ar+"Label"]||"":Zt.xLabel===void 0?Zt.yLabel!==void 0&&Zt.trace.type!=="scattercarpet"&&(Tr=Zt.yLabel):Zt.yLabel===void 0?Tr=Zt.xLabel:Tr="("+Zt.xLabel+", "+Zt.yLabel+")",(Zt.text||Zt.text===0)&&!Array.isArray(Zt.text)&&(Tr+=(Tr?"
":"")+Zt.text),Zt.extraText!==void 0&&(Tr+=(Tr?"
":"")+Zt.extraText),hr&&Tr===""&&!Zt.hovertemplate&&(br===""&&hr.remove(),Tr=br);var _r=Zt.hovertemplate||!1;if(_r){var Er=Zt.hovertemplateLabels||Zt;Zt[Ir+"Label"]!==cr&&(Er[Ir+"other"]=Er[Ir+"Val"],Er[Ir+"otherLabel"]=Er[Ir+"Label"]),Tr=Et.hovertemplateString(_r,Er,tr._d3locale,Zt.eventData[0]||{},Zt.trace._meta),Tr=Tr.replace(zt,function(Rr,zr){return br=Jt(zr,Zt.nameLength),""})}return[Tr,br]}function $t(Zt,Kt,or,tr){var cr=Kt?"xa":"ya",hr=Kt?"ya":"xa",br=0,Tr=1,Ir=Zt.size(),Ar=new Array(Ir),_r=0,Er=tr.minX,Rr=tr.maxX,zr=tr.minY,Br=tr.maxY,kr=function(vr){return vr*or._invScaleX},Nr=function(vr){return vr*or._invScaleY};Zt.each(function(vr){var Dr=vr[cr],Sr=vr[hr],ur=Dr._id.charAt(0)==="x",xr=Dr.range;_r===0&&xr&&xr[0]>xr[1]!==ur&&(Tr=-1);var Pr=0,Vr=ur?or.width:or.height;if(or.hovermode==="x"||or.hovermode==="y"){var en=Ut(vr,Kt),rn=vr.anchor,Cn=rn==="end"?-1:1,xn,fn;if(rn==="middle")xn=vr.crossPos+(ur?Nr(en.y-vr.by/2):kr(vr.bx/2+vr.tx2width/2)),fn=xn+(ur?Nr(vr.by):kr(vr.bx));else if(ur)xn=vr.crossPos+Nr(kt+en.y)-Nr(vr.by/2-kt),fn=xn+Nr(vr.by);else{var bn=kr(Cn*kt+en.x),Un=bn+kr(Cn*vr.bx);xn=vr.crossPos+Math.min(bn,Un),fn=vr.crossPos+Math.max(bn,Un)}ur?zr!==void 0&&Br!==void 0&&Math.min(fn,Br)-Math.max(xn,zr)>1&&(Sr.side==="left"?(Pr=Sr._mainLinePosition,Vr=or.width):Vr=Sr._mainLinePosition):Er!==void 0&&Rr!==void 0&&Math.min(fn,Rr)-Math.max(xn,Er)>1&&(Sr.side==="top"?(Pr=Sr._mainLinePosition,Vr=or.height):Vr=Sr._mainLinePosition)}Ar[_r++]=[{datum:vr,traceIndex:vr.trace.index,dp:0,pos:vr.pos,posref:vr.posref,size:vr.by*(ur?_t:1)/2,pmin:Pr,pmax:Vr}]}),Ar.sort(function(vr,Dr){return vr[0].posref-Dr[0].posref||Tr*(Dr[0].traceIndex-vr[0].traceIndex)});var Qr,sn,un,qr,Xr,ln,mn;function pn(vr){var Dr=vr[0],Sr=vr[vr.length-1];if(sn=Dr.pmin-Dr.pos-Dr.dp+Dr.size,un=Sr.pos+Sr.dp+Sr.size-Dr.pmax,sn>.01){for(Xr=vr.length-1;Xr>=0;Xr--)vr[Xr].dp+=sn;Qr=!1}if(!(un<.01)){if(sn<-.01){for(Xr=vr.length-1;Xr>=0;Xr--)vr[Xr].dp-=un;Qr=!1}if(Qr){var ur=0;for(qr=0;qrDr.pmax&&ur++;for(qr=vr.length-1;qr>=0&&!(ur<=0);qr--)ln=vr[qr],ln.pos>Dr.pmax-1&&(ln.del=!0,ur--);for(qr=0;qr=0;Xr--)vr[Xr].dp-=un;for(qr=vr.length-1;qr>=0&&!(ur<=0);qr--)ln=vr[qr],ln.pos+ln.dp+ln.size>Dr.pmax&&(ln.del=!0,ur--)}}}for(;!Qr&&br<=Ir;){for(br++,Qr=!0,qr=0;qr.01&&Or.pmin===Ur.pmin&&Or.pmax===Ur.pmax){for(Xr=Jr.length-1;Xr>=0;Xr--)Jr[Xr].dp+=sn;for(En.push.apply(En,Jr),Ar.splice(qr+1,1),mn=0,Xr=En.length-1;Xr>=0;Xr--)mn+=En[Xr].dp;for(un=mn/En.length,Xr=En.length-1;Xr>=0;Xr--)En[Xr].dp-=un;Qr=!1}else qr++}Ar.forEach(pn)}for(qr=Ar.length-1;qr>=0;qr--){var jr=Ar[qr];for(Xr=jr.length-1;Xr>=0;Xr--){var Gr=jr[Xr],wr=Gr.datum;wr.offset=Gr.dp,wr.del=Gr.del}}}function Ut(Zt,Kt){var or=0,tr=Zt.offset;return Kt&&(tr*=-Tt,or=Zt.offset*Mt),{x:or,y:tr}}function Ht(Zt){var Kt={start:1,end:-1,middle:0}[Zt.anchor],or=Kt*(kt+wt),tr=or+Kt*(Zt.txwidth+wt),cr=Zt.anchor==="middle";return cr&&(or-=Zt.tx2width/2,tr+=Zt.txwidth/2+wt),{alignShift:Kt,textShiftX:or,text2ShiftX:tr}}function Vt(Zt,Kt,or,tr){var cr=function(br){return br*or},hr=function(br){return br*tr};Zt.each(function(br){var Tr=it.select(this);if(br.del)return Tr.remove();var Ir=Tr.select("text.nums"),Ar=br.anchor,_r=Ar==="end"?-1:1,Er=Ht(br),Rr=Ut(br,Kt),zr=Rr.x,Br=Rr.y,kr=Ar==="middle";Tr.select("path").attr("d",kr?"M-"+cr(br.bx/2+br.tx2width/2)+","+hr(Br-br.by/2)+"h"+cr(br.bx)+"v"+hr(br.by)+"h-"+cr(br.bx)+"Z":"M0,0L"+cr(_r*kt+zr)+","+hr(kt+Br)+"v"+hr(br.by/2-kt)+"h"+cr(_r*br.bx)+"v-"+hr(br.by)+"H"+cr(_r*kt+zr)+"V"+hr(Br-kt)+"Z");var Nr=zr+Er.textShiftX,Qr=Br+br.ty0-br.by/2+wt,sn=br.textAlign||"auto";sn!=="auto"&&(sn==="left"&&Ar!=="start"?(Ir.attr("text-anchor","start"),Nr=kr?-br.bx/2-br.tx2width/2+wt:-br.bx-wt):sn==="right"&&Ar!=="end"&&(Ir.attr("text-anchor","end"),Nr=kr?br.bx/2-br.tx2width/2-wt:br.bx+wt)),Ir.call(_.positionText,cr(Nr),hr(Qr)),br.tx2width&&(Tr.select("text.name").call(_.positionText,cr(Er.text2ShiftX+Er.alignShift*wt+zr),hr(Br+br.ty0-br.by/2+wt)),Tr.select("rect").call(tt.setRect,cr(Er.text2ShiftX+(Er.alignShift-1)*br.tx2width/2+zr),hr(Br-br.by/2-1),cr(br.tx2width),hr(br.by+2)))})}function Xt(Zt,Kt){var or=Zt.index,tr=Zt.trace||{},cr=Zt.cd[0],hr=Zt.cd[or]||{};function br(Rr){return Rr||xt(Rr)&&Rr===0}var Tr=Array.isArray(or)?function(Rr,zr){var Br=Et.castOption(cr,or,Rr);return br(Br)?Br:Et.extractOption({},tr,"",zr)}:function(Rr,zr){return Et.extractOption(hr,tr,Rr,zr)};function Ir(Rr,zr,Br){var kr=Tr(zr,Br);br(kr)&&(Zt[Rr]=kr)}if(Ir("hoverinfo","hi","hoverinfo"),Ir("bgcolor","hbg","hoverlabel.bgcolor"),Ir("borderColor","hbc","hoverlabel.bordercolor"),Ir("fontFamily","htf","hoverlabel.font.family"),Ir("fontSize","hts","hoverlabel.font.size"),Ir("fontColor","htc","hoverlabel.font.color"),Ir("fontWeight","htw","hoverlabel.font.weight"),Ir("fontStyle","hty","hoverlabel.font.style"),Ir("fontVariant","htv","hoverlabel.font.variant"),Ir("nameLength","hnl","hoverlabel.namelength"),Ir("textAlign","hta","hoverlabel.align"),Zt.posref=Kt==="y"||Kt==="closest"&&tr.orientation==="h"?Zt.xa._offset+(Zt.x0+Zt.x1)/2:Zt.ya._offset+(Zt.y0+Zt.y1)/2,Zt.x0=Et.constrain(Zt.x0,0,Zt.xa._length),Zt.x1=Et.constrain(Zt.x1,0,Zt.xa._length),Zt.y0=Et.constrain(Zt.y0,0,Zt.ya._length),Zt.y1=Et.constrain(Zt.y1,0,Zt.ya._length),Zt.xLabelVal!==void 0&&(Zt.xLabel="xLabel"in Zt?Zt.xLabel:nt.hoverLabelText(Zt.xa,Zt.xLabelVal,tr.xhoverformat),Zt.xVal=Zt.xa.c2d(Zt.xLabelVal)),Zt.yLabelVal!==void 0&&(Zt.yLabel="yLabel"in Zt?Zt.yLabel:nt.hoverLabelText(Zt.ya,Zt.yLabelVal,tr.yhoverformat),Zt.yVal=Zt.ya.c2d(Zt.yLabelVal)),Zt.zLabelVal!==void 0&&Zt.zLabel===void 0&&(Zt.zLabel=String(Zt.zLabelVal)),!isNaN(Zt.xerr)&&!(Zt.xa.type==="log"&&Zt.xerr<=0)){var Ar=nt.tickText(Zt.xa,Zt.xa.c2l(Zt.xerr),"hover").text;Zt.xerrneg!==void 0?Zt.xLabel+=" +"+Ar+" / -"+nt.tickText(Zt.xa,Zt.xa.c2l(Zt.xerrneg),"hover").text:Zt.xLabel+=" ± "+Ar,Kt==="x"&&(Zt.distance+=1)}if(!isNaN(Zt.yerr)&&!(Zt.ya.type==="log"&&Zt.yerr<=0)){var _r=nt.tickText(Zt.ya,Zt.ya.c2l(Zt.yerr),"hover").text;Zt.yerrneg!==void 0?Zt.yLabel+=" +"+_r+" / -"+nt.tickText(Zt.ya,Zt.ya.c2l(Zt.yerrneg),"hover").text:Zt.yLabel+=" ± "+_r,Kt==="y"&&(Zt.distance+=1)}var Er=Zt.hoverinfo||Zt.trace.hoverinfo;return Er&&Er!=="all"&&(Er=Array.isArray(Er)?Er:Er.split("+"),Er.indexOf("x")===-1&&(Zt.xLabel=void 0),Er.indexOf("y")===-1&&(Zt.yLabel=void 0),Er.indexOf("z")===-1&&(Zt.zLabel=void 0),Er.indexOf("text")===-1&&(Zt.text=void 0),Er.indexOf("name")===-1&&(Zt.name=void 0)),Zt}function qt(Zt,Kt,or){var tr=or.container,cr=or.fullLayout,hr=cr._size,br=or.event,Tr=!!Kt.hLinePoint,Ir=!!Kt.vLinePoint,Ar,_r;if(tr.selectAll(".spikeline").remove(),!!(Ir||Tr)){var Er=st.combine(cr.plot_bgcolor,cr.paper_bgcolor);if(Tr){var Rr=Kt.hLinePoint,zr,Br;Ar=Rr&&Rr.xa,_r=Rr&&Rr.ya;var kr=_r.spikesnap;kr==="cursor"?(zr=br.pointerX,Br=br.pointerY):(zr=Ar._offset+Rr.x,Br=_r._offset+Rr.y);var Nr=et.readability(Rr.color,Er)<1.5?st.contrast(Er):Rr.color,Qr=_r.spikemode,sn=_r.spikethickness,un=_r.spikecolor||Nr,qr=nt.getPxPosition(Zt,_r),Xr,ln;if(Qr.indexOf("toaxis")!==-1||Qr.indexOf("across")!==-1){if(Qr.indexOf("toaxis")!==-1&&(Xr=qr,ln=zr),Qr.indexOf("across")!==-1){var mn=_r._counterDomainMin,pn=_r._counterDomainMax;_r.anchor==="free"&&(mn=Math.min(mn,_r.position),pn=Math.max(pn,_r.position)),Xr=hr.l+mn*hr.w,ln=hr.l+pn*hr.w}tr.insert("line",":first-child").attr({x1:Xr,x2:ln,y1:Br,y2:Br,"stroke-width":sn,stroke:un,"stroke-dasharray":tt.dashStyle(_r.spikedash,sn)}).classed("spikeline",!0).classed("crisp",!0),tr.insert("line",":first-child").attr({x1:Xr,x2:ln,y1:Br,y2:Br,"stroke-width":sn+2,stroke:Er}).classed("spikeline",!0).classed("crisp",!0)}Qr.indexOf("marker")!==-1&&tr.insert("circle",":first-child").attr({cx:qr+(_r.side!=="right"?sn:-sn),cy:Br,r:sn,fill:un}).classed("spikeline",!0)}if(Ir){var En=Kt.vLinePoint,Jr,Or;Ar=En&&En.xa,_r=En&&En.ya;var Ur=Ar.spikesnap;Ur==="cursor"?(Jr=br.pointerX,Or=br.pointerY):(Jr=Ar._offset+En.x,Or=_r._offset+En.y);var jr=et.readability(En.color,Er)<1.5?st.contrast(Er):En.color,Gr=Ar.spikemode,wr=Ar.spikethickness,vr=Ar.spikecolor||jr,Dr=nt.getPxPosition(Zt,Ar),Sr,ur;if(Gr.indexOf("toaxis")!==-1||Gr.indexOf("across")!==-1){if(Gr.indexOf("toaxis")!==-1&&(Sr=Dr,ur=Or),Gr.indexOf("across")!==-1){var xr=Ar._counterDomainMin,Pr=Ar._counterDomainMax;Ar.anchor==="free"&&(xr=Math.min(xr,Ar.position),Pr=Math.max(Pr,Ar.position)),Sr=hr.t+(1-Pr)*hr.h,ur=hr.t+(1-xr)*hr.h}tr.insert("line",":first-child").attr({x1:Jr,x2:Jr,y1:Sr,y2:ur,"stroke-width":wr,stroke:vr,"stroke-dasharray":tt.dashStyle(Ar.spikedash,wr)}).classed("spikeline",!0).classed("crisp",!0),tr.insert("line",":first-child").attr({x1:Jr,x2:Jr,y1:Sr,y2:ur,"stroke-width":wr+2,stroke:Er}).classed("spikeline",!0).classed("crisp",!0)}Gr.indexOf("marker")!==-1&&tr.insert("circle",":first-child").attr({cx:Jr,cy:Dr-(Ar.side!=="top"?wr:-wr),r:wr,fill:vr}).classed("spikeline",!0)}}}function er(Zt,Kt,or){if(!or||or.length!==Zt._hoverdata.length)return!0;for(var tr=or.length-1;tr>=0;tr--){var cr=or[tr],hr=Zt._hoverdata[tr];if(cr.curveNumber!==hr.curveNumber||String(cr.pointNumber)!==String(hr.pointNumber)||String(cr.pointNumbers)!==String(hr.pointNumbers))return!0}return!1}function lr(Zt,Kt){return!Kt||Kt.vLinePoint!==Zt._spikepoints.vLinePoint||Kt.hLinePoint!==Zt._spikepoints.hLinePoint}function Jt(Zt,Kt){return _.plainText(Zt||"",{len:Kt,allowedTags:["br","sub","sup","b","i","em"]})}function Yt(Zt,Kt){for(var or=Kt.charAt(0),tr=[],cr=[],hr=[],br=0;br1)){delete ot.grid;return}if(!bt&&!ft&&!at){var ct=Tt("pattern")==="independent";ct&&(bt=!0)}Mt._hasSubplotGrid=bt;var It=Tt("roworder"),At=It==="top to bottom",Ot=bt?.2:.1,Pt=bt?.3:.1,zt,Dt;yt&&ot._splomGridDflt&&(zt=ot._splomGridDflt.xside,Dt=ot._splomGridDflt.yside),Mt._domains={x:_("x",Tt,Ot,zt,wt),y:_("y",Tt,Pt,Dt,kt,At)}}function _(st,ot,nt,vt,dt,bt){var ft=ot(st+"gap",nt),at=ot("domain."+st);ot(st+"side",vt);for(var yt=new Array(dt),St=at[0],_t=(at[1]-St)/(dt-ft),Mt=_t*(1-ft),Tt=0;Tt(_==="legend"?1:0));if(At===!1&&(tt[_]=void 0),!(At===!1&&!ot.uirevision)&&(vt("uirevision",tt.uirevision),At!==!1)){vt("borderwidth");var Ot=vt("orientation"),Pt=vt("yref"),zt=vt("xref"),Dt=Ot==="h",Nt=Pt==="paper",$t=zt==="paper",Ut,Ht,Vt,Xt="left";Dt?(Ut=0,it.getComponentMethod("rangeslider","isVisible")(rt.xaxis)?Nt?(Ht=1.1,Vt="bottom"):(Ht=1,Vt="top"):Nt?(Ht=-.1,Vt="top"):(Ht=0,Vt="bottom")):(Ht=1,Vt="auto",$t?Ut=1.02:(Ut=1,Xt="right")),xt.coerce(ot,nt,{x:{valType:"number",editType:"legend",min:$t?-2:0,max:$t?3:1,dflt:Ut}},"x"),xt.coerce(ot,nt,{y:{valType:"number",editType:"legend",min:Nt?-2:0,max:Nt?3:1,dflt:Ht}},"y"),vt("traceorder",Tt),ht.isGrouped(tt[_])&&vt("tracegroupgap"),vt("entrywidth"),vt("entrywidthmode"),vt("indentation"),vt("itemsizing"),vt("itemwidth"),vt("itemclick"),vt("itemdoubleclick"),vt("groupclick"),vt("xanchor",Xt),vt("yanchor",Vt),vt("valign"),xt.noneOrAll(ot,nt,["x","y"]);var qt=vt("title.text");if(qt){vt("title.side",Dt?"left":"top");var er=xt.extendFlat({},dt,{size:xt.bigFont(dt.size)});xt.coerceFont(vt,"title.font",er)}}}}Ct.exports=function(rt,tt,st){var ot,nt=st.slice(),vt=tt.shapes;if(vt)for(ot=0;ot1)}var Kt=Xt.hiddenlabels||[];if(!Jt&&(!Xt.showlegend||!Yt.length))return lr.selectAll("."+qt).remove(),Xt._topdefs.select("#"+er).remove(),et.autoMargin(Ut,qt);var or=xt.ensureSingle(lr,"g",qt,function(Er){Jt||Er.attr("pointer-events","all")}),tr=xt.ensureSingleById(Xt._topdefs,"clipPath",er,function(Er){Er.append("rect")}),cr=xt.ensureSingle(or,"rect","bg",function(Er){Er.attr("shape-rendering","crispEdges")});cr.call(j.stroke,Vt.bordercolor).call(j.fill,Vt.bgcolor).style("stroke-width",Vt.borderwidth+"px");var hr=xt.ensureSingle(or,"g","scrollbox"),br=Vt.title;Vt._titleWidth=0,Vt._titleHeight=0;var Tr;br.text?(Tr=xt.ensureSingle(hr,"text",qt+"titletext"),Tr.attr("text-anchor","start").call(ht.font,br.font).text(br.text),It(Tr,hr,Ut,Vt,at)):hr.selectAll("."+qt+"titletext").remove();var Ir=xt.ensureSingle(or,"rect","scrollbar",function(Er){Er.attr(tt.scrollBarEnterAttrs).call(j.fill,tt.scrollBarColor)}),Ar=hr.selectAll("g.groups").data(Yt);Ar.enter().append("g").attr("class","groups"),Ar.exit().remove();var _r=Ar.selectAll("g.traces").data(xt.identity);_r.enter().append("g").attr("class","traces"),_r.exit().remove(),_r.style("opacity",function(Er){var Rr=Er[0].trace;return Et.traceIs(Rr,"pie-like")?Kt.indexOf(Er[0].label)!==-1?.5:1:Rr.visible==="legendonly"?.5:1}).each(function(){it.select(this).call(kt,Ut,Vt)}).call(bt,Ut,Vt).each(function(){Jt||it.select(this).call(ct,Ut,qt)}),xt.syncOrAsync([et.previousPromises,function(){return Pt(Ut,Ar,_r,Vt)},function(){var Er=Xt._size,Rr=Vt.borderwidth,zr=Vt.xref==="paper",Br=Vt.yref==="paper";if(br.text&&St(Tr,Vt,Rr),!Jt){var kr,Nr;zr?kr=Er.l+Er.w*Vt.x-nt[Dt(Vt)]*Vt._width:kr=Xt.width*Vt.x-nt[Dt(Vt)]*Vt._width,Br?Nr=Er.t+Er.h*(1-Vt.y)-nt[Nt(Vt)]*Vt._effHeight:Nr=Xt.height*(1-Vt.y)-nt[Nt(Vt)]*Vt._effHeight;var Qr=zt(Ut,qt,kr,Nr);if(Qr)return;if(Xt.margin.autoexpand){var sn=kr,un=Nr;kr=zr?xt.constrain(kr,0,Xt.width-Vt._width):sn,Nr=Br?xt.constrain(Nr,0,Xt.height-Vt._effHeight):un,kr!==sn&&xt.log("Constrain "+qt+".x to make legend fit inside graph"),Nr!==un&&xt.log("Constrain "+qt+".y to make legend fit inside graph")}ht.setTranslate(or,kr,Nr)}if(Ir.on(".drag",null),or.on("wheel",null),Jt||Vt._height<=Vt._maxHeight||Ut._context.staticPlot){var qr=Vt._effHeight;Jt&&(qr=Vt._height),cr.attr({width:Vt._width-Rr,height:qr-Rr,x:Rr/2,y:Rr/2}),ht.setTranslate(hr,0,0),tr.select("rect").attr({width:Vt._width-2*Rr,height:qr-2*Rr,x:Rr,y:Rr}),ht.setClipUrl(hr,er,Ut),ht.setRect(Ir,0,0,0,0),delete Vt._scrollY}else{var Xr=Math.max(tt.scrollBarMinHeight,Vt._effHeight*Vt._effHeight/Vt._height),ln=Vt._effHeight-Xr-2*tt.scrollBarMargin,mn=Vt._height-Vt._effHeight,pn=ln/mn,En=Math.min(Vt._scrollY||0,mn);cr.attr({width:Vt._width-2*Rr+tt.scrollBarWidth+tt.scrollBarMargin,height:Vt._effHeight-Rr,x:Rr/2,y:Rr/2}),tr.select("rect").attr({width:Vt._width-2*Rr+tt.scrollBarWidth+tt.scrollBarMargin,height:Vt._effHeight-2*Rr,x:Rr,y:Rr+En}),ht.setClipUrl(hr,er,Ut),Dr(En,Xr,pn),or.on("wheel",function(){En=xt.constrain(Vt._scrollY+it.event.deltaY/ln*mn,0,mn),Dr(En,Xr,pn),En!==0&&En!==mn&&it.event.preventDefault()});var Jr,Or,Ur,jr=function(Vr,en,rn){var Cn=(rn-en)/pn+Vr;return xt.constrain(Cn,0,mn)},Gr=function(Vr,en,rn){var Cn=(en-rn)/pn+Vr;return xt.constrain(Cn,0,mn)},wr=it.behavior.drag().on("dragstart",function(){var Vr=it.event.sourceEvent;Vr.type==="touchstart"?Jr=Vr.changedTouches[0].clientY:Jr=Vr.clientY,Ur=En}).on("drag",function(){var Vr=it.event.sourceEvent;Vr.buttons===2||Vr.ctrlKey||(Vr.type==="touchmove"?Or=Vr.changedTouches[0].clientY:Or=Vr.clientY,En=jr(Ur,Jr,Or),Dr(En,Xr,pn))});Ir.call(wr);var vr=it.behavior.drag().on("dragstart",function(){var Vr=it.event.sourceEvent;Vr.type==="touchstart"&&(Jr=Vr.changedTouches[0].clientY,Ur=En)}).on("drag",function(){var Vr=it.event.sourceEvent;Vr.type==="touchmove"&&(Or=Vr.changedTouches[0].clientY,En=Gr(Ur,Jr,Or),Dr(En,Xr,pn))});hr.call(vr)}function Dr(Vr,en,rn){Vt._scrollY=Ut._fullLayout[qt]._scrollY=Vr,ht.setTranslate(hr,0,-Vr),ht.setRect(Ir,Vt._width,tt.scrollBarMargin+Vr*rn,tt.scrollBarWidth,en),tr.select("rect").attr("y",Rr+Vr)}if(Ut._context.edits.legendPosition){var Sr,ur,xr,Pr;or.classed("cursor-move",!0),ut.init({element:or.node(),gd:Ut,prepFn:function(){var Vr=ht.getTranslate(or);xr=Vr.x,Pr=Vr.y},moveFn:function(Vr,en){var rn=xr+Vr,Cn=Pr+en;ht.setTranslate(or,rn,Cn),Sr=ut.align(rn,Vt._width,Er.l,Er.l+Er.w,Vt.xanchor),ur=ut.align(Cn+Vt._height,-Vt._height,Er.t+Er.h,Er.t,Vt.yanchor)},doneFn:function(){if(Sr!==void 0&&ur!==void 0){var Vr={};Vr[qt+".x"]=Sr,Vr[qt+".y"]=ur,Et.call("_guiRelayout",Ut,Vr)}},clickFn:function(Vr,en){var rn=lr.selectAll("g.traces").filter(function(){var Cn=this.getBoundingClientRect();return en.clientX>=Cn.left&&en.clientX<=Cn.right&&en.clientY>=Cn.top&&en.clientY<=Cn.bottom});rn.size()>0&&Tt(Ut,or,rn,Vr,en)}})}}],Ut)}}function Mt(Ut,Ht,Vt){var Xt=Ut[0],qt=Xt.width,er=Ht.entrywidthmode,lr=Xt.trace.legendwidth||Ht.entrywidth;return er==="fraction"?Ht._maxWidth*lr:Vt+(lr||qt)}function Tt(Ut,Ht,Vt,Xt,qt){var er=Vt.data()[0][0].trace,lr={event:qt,node:Vt.node(),curveNumber:er.index,expandedIndex:er._expandedIndex,data:Ut.data,layout:Ut.layout,frames:Ut._transitionData._frames,config:Ut._context,fullData:Ut._fullData,fullLayout:Ut._fullLayout};er._group&&(lr.group=er._group),Et.traceIs(er,"pie-like")&&(lr.label=Vt.datum()[0].label);var Jt=mt.triggerHandler(Ut,"plotly_legendclick",lr);if(Xt===1){if(Jt===!1)return;Ht._clickTimeout=setTimeout(function(){Ut._fullLayout&&rt(Vt,Ut,Xt)},Ut._context.doubleClickDelay)}else if(Xt===2){Ht._clickTimeout&&clearTimeout(Ht._clickTimeout),Ut._legendMouseDownTime=0;var Yt=mt.triggerHandler(Ut,"plotly_legenddoubleclick",lr);Yt!==!1&&Jt!==!1&&rt(Vt,Ut,Xt)}}function kt(Ut,Ht,Vt){var Xt=$t(Vt),qt=Ut.data()[0][0],er=qt.trace,lr=Et.traceIs(er,"pie-like"),Jt=!Vt._inHover&&Ht._context.edits.legendText&&!lr,Yt=Vt._maxNameLength,rr,jt;qt.groupTitle?(rr=qt.groupTitle.text,jt=qt.groupTitle.font):(jt=Vt.font,Vt.entries?rr=qt.text:(rr=lr?qt.label:er.name,er._meta&&(rr=xt.templateString(rr,er._meta))));var ar=xt.ensureSingle(Ut,"text",Xt+"text");ar.attr("text-anchor","start").call(ht.font,jt).text(Jt?wt(rr,Yt):rr);var sr=Vt.indentation+Vt.itemwidth+tt.itemGap*2;_.positionText(ar,sr,0),Jt?ar.call(_.makeEditable,{gd:Ht,text:rr}).call(It,Ut,Ht,Vt).on("edit",function(Zt){this.text(wt(Zt,Yt)).call(It,Ut,Ht,Vt);var Kt=qt.trace._fullInput||{},or={};if(Et.hasTransform(Kt,"groupby")){var tr=Et.getTransformIndices(Kt,"groupby"),cr=tr[tr.length-1],hr=xt.keyedContainer(Kt,"transforms["+cr+"].styles","target","value.name");hr.set(qt.trace._group,Zt),or=hr.constructUpdate()}else or.name=Zt;return Kt._isShape?Et.call("_guiRelayout",Ht,"shapes["+er.index+"].name",or.name):Et.call("_guiRestyle",Ht,or,er.index)}):It(ar,Ut,Ht,Vt)}function wt(Ut,Ht){var Vt=Math.max(4,Ht);if(Ut&&Ut.trim().length>=Vt/2)return Ut;Ut=Ut||"";for(var Xt=Vt-Ut.length;Xt>0;Xt--)Ut+=" ";return Ut}function ct(Ut,Ht,Vt){var Xt=Ht._context.doubleClickDelay,qt,er=1,lr=xt.ensureSingle(Ut,"rect",Vt+"toggle",function(Jt){Ht._context.staticPlot||Jt.style("cursor","pointer").attr("pointer-events","all"),Jt.call(j.fill,"rgba(0,0,0,0)")});Ht._context.staticPlot||(lr.on("mousedown",function(){qt=new Date().getTime(),qt-Ht._legendMouseDownTimeXt&&(er=Math.max(er-1,1)),Tt(Ht,Jt,Ut,er,it.event)}}))}function It(Ut,Ht,Vt,Xt,qt){Xt._inHover&&Ut.attr("data-notex",!0),_.convertToTspans(Ut,Vt,function(){At(Ht,Vt,Xt,qt)})}function At(Ut,Ht,Vt,Xt){var qt=Ut.data()[0][0];if(!Vt._inHover&&qt&&!qt.trace.showlegend){Ut.remove();return}var er=Ut.select("g[class*=math-group]"),lr=er.node(),Jt=$t(Vt);Vt||(Vt=Ht._fullLayout[Jt]);var Yt=Vt.borderwidth,rr;Xt===at?rr=Vt.title.font:qt.groupTitle?rr=qt.groupTitle.font:rr=Vt.font;var jt=rr.size*ot,ar,sr;if(lr){var Zt=ht.bBox(lr);ar=Zt.height,sr=Zt.width,Xt===at?ht.setTranslate(er,Yt,Yt+ar*.75):ht.setTranslate(er,0,ar*.25)}else{var Kt="."+Jt+(Xt===at?"title":"")+"text",or=Ut.select(Kt),tr=_.lineCount(or),cr=or.node();if(ar=jt*tr,sr=cr?ht.bBox(cr).width:0,Xt===at)Vt.title.side==="left"&&(sr+=tt.itemGap*2),_.positionText(or,Yt+tt.titlePad,Yt+jt);else{var hr=tt.itemGap*2+Vt.indentation+Vt.itemwidth;qt.groupTitle&&(hr=tt.itemGap,sr-=Vt.indentation+Vt.itemwidth),_.positionText(or,hr,-jt*((tr-1)/2-.3))}}Xt===at?(Vt._titleWidth=sr,Vt._titleHeight=ar):(qt.lineHeight=jt,qt.height=Math.max(ar,16)+3,qt.width=sr)}function Ot(Ut){var Ht=0,Vt=0,Xt=Ut.title.side;return Xt&&(Xt.indexOf("left")!==-1&&(Ht=Ut._titleWidth),Xt.indexOf("top")!==-1&&(Vt=Ut._titleHeight)),[Ht,Vt]}function Pt(Ut,Ht,Vt,Xt){var qt=Ut._fullLayout,er=$t(Xt);Xt||(Xt=qt[er]);var lr=qt._size,Jt=ft.isVertical(Xt),Yt=ft.isGrouped(Xt),rr=Xt.entrywidthmode==="fraction",jt=Xt.borderwidth,ar=2*jt,sr=tt.itemGap,Zt=Xt.indentation+Xt.itemwidth+sr*2,Kt=2*(jt+sr),or=Nt(Xt),tr=Xt.y<0||Xt.y===0&&or==="top",cr=Xt.y>1||Xt.y===1&&or==="bottom",hr=Xt.tracegroupgap,br={};Xt._maxHeight=Math.max(tr||cr?qt.height/2:lr.h,30);var Tr=0;Xt._width=0,Xt._height=0;var Ir=Ot(Xt);if(Jt)Vt.each(function(Ur){var jr=Ur[0].height;ht.setTranslate(this,jt+Ir[0],jt+Ir[1]+Xt._height+jr/2+sr),Xt._height+=jr,Xt._width=Math.max(Xt._width,Ur[0].width)}),Tr=Zt+Xt._width,Xt._width+=sr+Zt+ar,Xt._height+=Kt,Yt&&(Ht.each(function(Ur,jr){ht.setTranslate(this,0,jr*Xt.tracegroupgap)}),Xt._height+=(Xt._lgroupsLength-1)*Xt.tracegroupgap);else{var Ar=Dt(Xt),_r=Xt.x<0||Xt.x===0&&Ar==="right",Er=Xt.x>1||Xt.x===1&&Ar==="left",Rr=cr||tr,zr=qt.width/2;Xt._maxWidth=Math.max(_r?Rr&&Ar==="left"?lr.l+lr.w:zr:Er?Rr&&Ar==="right"?lr.r+lr.w:zr:lr.w,2*Zt);var Br=0,kr=0;Vt.each(function(Ur){var jr=Mt(Ur,Xt,Zt);Br=Math.max(Br,jr),kr+=jr}),Tr=null;var Nr=0;if(Yt){var Qr=0,sn=0,un=0;Ht.each(function(){var Ur=0,jr=0;it.select(this).selectAll("g.traces").each(function(wr){var vr=Mt(wr,Xt,Zt),Dr=wr[0].height;ht.setTranslate(this,Ir[0],Ir[1]+jt+sr+Dr/2+jr),jr+=Dr,Ur=Math.max(Ur,vr),br[wr[0].trace.legendgroup]=Ur});var Gr=Ur+sr;sn>0&&Gr+jt+sn>Xt._maxWidth?(Nr=Math.max(Nr,sn),sn=0,un+=Qr+hr,Qr=jr):Qr=Math.max(Qr,jr),ht.setTranslate(this,sn,un),sn+=Gr}),Xt._width=Math.max(Nr,sn)+jt,Xt._height=un+Qr+Kt}else{var qr=Vt.size(),Xr=kr+ar+(qr-1)*sr=Xt._maxWidth&&(Nr=Math.max(Nr,En),mn=0,pn+=ln,Xt._height+=ln,ln=0),ht.setTranslate(this,Ir[0]+jt+mn,Ir[1]+jt+pn+jr/2+sr),En=mn+Gr+sr,mn+=wr,ln=Math.max(ln,jr)}),Xr?(Xt._width=mn+ar,Xt._height=ln+Kt):(Xt._width=Math.max(Nr,En)+ar,Xt._height+=ln+Kt)}}Xt._width=Math.ceil(Math.max(Xt._width+Ir[0],Xt._titleWidth+2*(jt+tt.titlePad))),Xt._height=Math.ceil(Math.max(Xt._height+Ir[1],Xt._titleHeight+2*(jt+tt.itemGap))),Xt._effHeight=Math.min(Xt._height,Xt._maxHeight);var Jr=Ut._context.edits,Or=Jr.legendText||Jr.legendPosition;Vt.each(function(Ur){var jr=it.select(this).select("."+er+"toggle"),Gr=Ur[0].height,wr=Ur[0].trace.legendgroup,vr=Mt(Ur,Xt,Zt);Yt&&wr!==""&&(vr=br[wr]);var Dr=Or?Zt:Tr||vr;!Jt&&!rr&&(Dr+=sr/2),ht.setRect(jr,0,-Gr/2,Dr,Gr)})}function zt(Ut,Ht,Vt,Xt){var qt=Ut._fullLayout,er=qt[Ht],lr=Dt(er),Jt=Nt(er),Yt=er.xref==="paper",rr=er.yref==="paper";Ut._fullLayout._reservedMargin[Ht]={};var jt=er.y<.5?"b":"t",ar=er.x<.5?"l":"r",sr={r:qt.width-Vt,l:Vt+er._width,b:qt.height-Xt,t:Xt+er._effHeight};if(Yt&&rr)return et.autoMargin(Ut,Ht,{x:er.x,y:er.y,l:er._width*nt[lr],r:er._width*vt[lr],b:er._effHeight*vt[Jt],t:er._effHeight*nt[Jt]});Yt?Ut._fullLayout._reservedMargin[Ht][jt]=sr[jt]:rr||er.orientation==="v"?Ut._fullLayout._reservedMargin[Ht][ar]=sr[ar]:Ut._fullLayout._reservedMargin[Ht][jt]=sr[jt]}function Dt(Ut){return xt.isRightAnchor(Ut)?"right":xt.isCenterAnchor(Ut)?"center":"left"}function Nt(Ut){return xt.isBottomAnchor(Ut)?"bottom":xt.isMiddleAnchor(Ut)?"middle":"top"}function $t(Ut){return Ut._id||"legend"}},35456:function(Ct,Rt,o){var it=o(24040),xt=o(42451);Ct.exports=function(Et,mt,ut){var ht=mt._inHover,j=xt.isGrouped(mt),_=xt.isReversed(mt),rt={},tt=[],st=!1,ot={},nt=0,vt=0,dt,bt;function ft(Ut,Ht,Vt){if(mt.visible!==!1&&!(ut&&Ut!==mt._id))if(Ht===""||!xt.isGrouped(mt)){var Xt="~~i"+nt;tt.push(Xt),rt[Xt]=[Vt],nt++}else tt.indexOf(Ht)===-1?(tt.push(Ht),st=!0,rt[Ht]=[Vt]):rt[Ht].push(Vt)}for(dt=0;dtAt&&(It=At)}wt[dt][0]._groupMinRank=It,wt[dt][0]._preGroupSort=dt}var Ot=function(Ut,Ht){return Ut[0]._groupMinRank-Ht[0]._groupMinRank||Ut[0]._preGroupSort-Ht[0]._preGroupSort},Pt=function(Ut,Ht){return Ut.trace.legendrank-Ht.trace.legendrank||Ut._preSort-Ht._preSort};for(wt.forEach(function(Ut,Ht){Ut[0]._preGroupSort=Ht}),wt.sort(Ot),dt=0;dt0)ar=Yt.width;else return 0;return kt?jt:Math.min(ar,rr)};St.each(function(Jt){var Yt=it.select(this),rr=et.ensureSingle(Yt,"g","layers");rr.style("opacity",Jt[0].trace.opacity);var jt=Mt.indentation,ar=Mt.valign,sr=Jt[0].lineHeight,Zt=Jt[0].height;if(ar==="middle"&&jt===0||!sr||!Zt)rr.attr("transform",null);else{var Kt={top:1,bottom:-1}[ar],or=Kt*(.5*(sr-Zt+3))||0,tr=Mt.indentation;rr.attr("transform",Et(tr,or))}var cr=rr.selectAll("g.legendfill").data([Jt]);cr.enter().append("g").classed("legendfill",!0);var hr=rr.selectAll("g.legendlines").data([Jt]);hr.enter().append("g").classed("legendlines",!0);var br=rr.selectAll("g.legendsymbols").data([Jt]);br.enter().append("g").classed("legendsymbols",!0),br.selectAll("g.legendpoints").data([Jt]).enter().append("g").classed("legendpoints",!0)}).each(lr).each(zt).each(Nt).each(Dt).each(Ut).each(qt).each(Xt).each(Ot).each(Pt).each(Ht).each(Vt);function Ot(Jt){var Yt=ft(Jt),rr=Yt.showFill,jt=Yt.showLine,ar=Yt.showGradientLine,sr=Yt.showGradientFill,Zt=Yt.anyFill,Kt=Yt.anyLine,or=Jt[0],tr=or.trace,cr,hr,br=ht(tr),Tr=br.colorscale,Ir=br.reversescale,Ar=function(Nr){if(Nr.size())if(rr)mt.fillGroupStyle(Nr,_t,!0);else{var Qr="legendfill-"+tr.uid;mt.gradient(Nr,_t,Qr,bt(Ir),Tr,"fill")}},_r=function(Nr){if(Nr.size()){var Qr="legendline-"+tr.uid;mt.lineGroupStyle(Nr),mt.gradient(Nr,_t,Qr,bt(Ir),Tr,"stroke")}},Er=j.hasMarkers(tr)||!Zt?"M5,0":Kt?"M5,-2":"M5,-3",Rr=it.select(this),zr=Rr.select(".legendfill").selectAll("path").data(rr||sr?[Jt]:[]);if(zr.enter().append("path").classed("js-fill",!0),zr.exit().remove(),zr.attr("d",Er+"h"+wt+"v6h-"+wt+"z").call(Ar),jt||ar){var Br=At(void 0,tr.line,vt,ot);hr=et.minExtend(tr,{line:{width:Br}}),cr=[et.minExtend(or,{trace:hr})]}var kr=Rr.select(".legendlines").selectAll("path").data(jt||ar?[cr]:[]);kr.enter().append("path").classed("js-line",!0),kr.exit().remove(),kr.attr("d",Er+(ar?"l"+wt+",0.0001":"h"+wt)).call(jt?mt.lineGroupStyle:_r)}function Pt(Jt){var Yt=ft(Jt),rr=Yt.anyFill,jt=Yt.anyLine,ar=Yt.showLine,sr=Yt.showMarker,Zt=Jt[0],Kt=Zt.trace,or=!sr&&!jt&&!rr&&j.hasText(Kt),tr,cr;function hr(zr,Br,kr,Nr){var Qr=et.nestedProperty(Kt,zr).get(),sn=et.isArrayOrTypedArray(Qr)&&Br?Br(Qr):Qr;if(kt&&sn&&Nr!==void 0&&(sn=Nr),kr){if(snkr[1])return kr[1]}return sn}function br(zr){return Zt._distinct&&Zt.index&&zr[Zt.index]?zr[Zt.index]:zr[0]}if(sr||or||ar){var Tr={},Ir={};if(sr){Tr.mc=hr("marker.color",br),Tr.mx=hr("marker.symbol",br),Tr.mo=hr("marker.opacity",et.mean,[.2,1]),Tr.mlc=hr("marker.line.color",br),Tr.mlw=hr("marker.line.width",et.mean,[0,5],nt),Ir.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var Ar=hr("marker.size",et.mean,[2,16],st);Tr.ms=Ar,Ir.marker.size=Ar}ar&&(Ir.line={width:hr("line.width",br,[0,10],ot)}),or&&(Tr.tx="Aa",Tr.tp=hr("textposition",br),Tr.ts=10,Tr.tc=hr("textfont.color",br),Tr.tf=hr("textfont.family",br),Tr.tw=hr("textfont.weight",br),Tr.ty=hr("textfont.style",br),Tr.tv=hr("textfont.variant",br)),tr=[et.minExtend(Zt,Tr)],cr=et.minExtend(Kt,Ir),cr.selectedpoints=null,cr.texttemplate=null}var _r=it.select(this).select("g.legendpoints"),Er=_r.selectAll("path.scatterpts").data(sr?tr:[]);Er.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",It),Er.exit().remove(),Er.call(mt.pointStyle,cr,_t),sr&&(tr[0].mrc=3);var Rr=_r.selectAll("g.pointtext").data(or?tr:[]);Rr.enter().append("g").classed("pointtext",!0).append("text").attr("transform",It),Rr.exit().remove(),Rr.selectAll("text").call(mt.textPointStyle,cr,_t)}function zt(Jt){var Yt=Jt[0].trace,rr=Yt.type==="waterfall";if(Jt[0]._distinct&&rr){var jt=Jt[0].trace[Jt[0].dir].marker;return Jt[0].mc=jt.color,Jt[0].mlw=jt.line.width,Jt[0].mlc=jt.line.color,$t(Jt,this,"waterfall")}var ar=[];Yt.visible&&rr&&(ar=Jt[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var sr=it.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(ar);sr.enter().append("path").classed("legendwaterfall",!0).attr("transform",It).style("stroke-miterlimit",1),sr.exit().remove(),sr.each(function(Zt){var Kt=it.select(this),or=Yt[Zt[0]].marker,tr=At(void 0,or.line,dt,nt);Kt.attr("d",Zt[1]).style("stroke-width",tr+"px").call(ut.fill,or.color),tr&&Kt.call(ut.stroke,or.line.color)})}function Dt(Jt){$t(Jt,this)}function Nt(Jt){$t(Jt,this,"funnel")}function $t(Jt,Yt,rr){var jt=Jt[0].trace,ar=jt.marker||{},sr=ar.line||{},Zt=ar.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",Kt=rr?jt.visible&&jt.type===rr:xt.traceIs(jt,"bar"),or=it.select(Yt).select("g.legendpoints").selectAll("path.legend"+rr).data(Kt?[Jt]:[]);or.enter().append("path").classed("legend"+rr,!0).attr("d",Zt).attr("transform",It),or.exit().remove(),or.each(function(tr){var cr=it.select(this),hr=tr[0],br=At(hr.mlw,ar.line,dt,nt);cr.style("stroke-width",br+"px");var Tr=hr.mcc;if(!Mt._inHover&&"mc"in hr){var Ir=ht(ar),Ar=Ir.mid;Ar===void 0&&(Ar=(Ir.max+Ir.min)/2),Tr=mt.tryColorscale(ar,"")(Ar)}var _r=Tr||hr.mc||ar.color,Er=ar.pattern,Rr=Er&&mt.getPatternAttr(Er.shape,0,"");if(Rr){var zr=mt.getPatternAttr(Er.bgcolor,0,null),Br=mt.getPatternAttr(Er.fgcolor,0,null),kr=Er.fgopacity,Nr=at(Er.size,8,10),Qr=at(Er.solidity,.5,1),sn="legend-"+jt.uid;cr.call(mt.pattern,"legend",_t,sn,Rr,Nr,Qr,Tr,Er.fillmode,zr,Br,kr)}else cr.call(ut.fill,_r);br&&ut.stroke(cr,hr.mlc||sr.color)})}function Ut(Jt){var Yt=Jt[0].trace,rr=it.select(this).select("g.legendpoints").selectAll("path.legendbox").data(Yt.visible&&xt.traceIs(Yt,"box-violin")?[Jt]:[]);rr.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",It),rr.exit().remove(),rr.each(function(){var jt=it.select(this);if((Yt.boxpoints==="all"||Yt.points==="all")&&ut.opacity(Yt.fillcolor)===0&&ut.opacity((Yt.line||{}).color)===0){var ar=et.minExtend(Yt,{marker:{size:kt?st:et.constrain(Yt.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});rr.call(mt.pointStyle,ar,_t)}else{var sr=At(void 0,Yt.line,dt,nt);jt.style("stroke-width",sr+"px").call(ut.fill,Yt.fillcolor),sr&&ut.stroke(jt,Yt.line.color)}})}function Ht(Jt){var Yt=Jt[0].trace,rr=it.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(Yt.visible&&Yt.type==="candlestick"?[Jt,Jt]:[]);rr.enter().append("path").classed("legendcandle",!0).attr("d",function(jt,ar){return ar?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",It).style("stroke-miterlimit",1),rr.exit().remove(),rr.each(function(jt,ar){var sr=it.select(this),Zt=Yt[ar?"increasing":"decreasing"],Kt=At(void 0,Zt.line,dt,nt);sr.style("stroke-width",Kt+"px").call(ut.fill,Zt.fillcolor),Kt&&ut.stroke(sr,Zt.line.color)})}function Vt(Jt){var Yt=Jt[0].trace,rr=it.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(Yt.visible&&Yt.type==="ohlc"?[Jt,Jt]:[]);rr.enter().append("path").classed("legendohlc",!0).attr("d",function(jt,ar){return ar?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",It).style("stroke-miterlimit",1),rr.exit().remove(),rr.each(function(jt,ar){var sr=it.select(this),Zt=Yt[ar?"increasing":"decreasing"],Kt=At(void 0,Zt.line,dt,nt);sr.style("fill","none").call(mt.dashLine,Zt.line.dash,Kt),Kt&&ut.stroke(sr,Zt.line.color)})}function Xt(Jt){er(Jt,this,"pie")}function qt(Jt){er(Jt,this,"funnelarea")}function er(Jt,Yt,rr){var jt=Jt[0],ar=jt.trace,sr=rr?ar.visible&&ar.type===rr:xt.traceIs(ar,rr),Zt=it.select(Yt).select("g.legendpoints").selectAll("path.legend"+rr).data(sr?[Jt]:[]);if(Zt.enter().append("path").classed("legend"+rr,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",It),Zt.exit().remove(),Zt.size()){var Kt=ar.marker||{},or=At(rt(Kt.line.width,jt.pts),Kt.line,dt,nt),tr="pieLike",cr=et.minExtend(ar,{marker:{line:{width:or}}},tr),hr=et.minExtend(jt,{trace:cr},tr);_(Zt,hr,cr,_t)}}function lr(Jt){var Yt=Jt[0].trace,rr,jt=[];if(Yt.visible)switch(Yt.type){case"histogram2d":case"heatmap":jt=[["M-15,-2V4H15V-2Z"]],rr=!0;break;case"choropleth":case"choroplethmapbox":jt=[["M-6,-6V6H6V-6Z"]],rr=!0;break;case"densitymapbox":jt=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],rr="radial";break;case"cone":jt=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],rr=!1;break;case"streamtube":jt=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],rr=!1;break;case"surface":jt=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],rr=!0;break;case"mesh3d":jt=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],rr=!1;break;case"volume":jt=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],rr=!0;break;case"isosurface":jt=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],rr=!1;break}var ar=it.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(jt);ar.enter().append("path").classed("legend3dandfriends",!0).attr("transform",It).style("stroke-miterlimit",1),ar.exit().remove(),ar.each(function(sr,Zt){var Kt=it.select(this),or=ht(Yt),tr=or.colorscale,cr=or.reversescale,hr=function(Ar){if(Ar.size()){var _r="legendfill-"+Yt.uid;mt.gradient(Ar,_t,_r,bt(cr,rr==="radial"),tr,"fill")}},br;if(tr){if(!rr){var Ir=tr.length;br=Zt===0?tr[cr?Ir-1:0][1]:Zt===1?tr[cr?0:Ir-1][1]:tr[Math.floor((Ir-1)/2)][1]}}else{var Tr=Yt.vertexcolor||Yt.facecolor||Yt.color;br=et.isArrayOrTypedArray(Tr)?Tr[Zt]||Tr[0]:Tr}Kt.attr("d",sr[0]),br?Kt.call(ut.fill,br):Kt.call(hr)})}};function bt(yt,St){var _t=St?"radial":"horizontal";return _t+(yt?"":"reversed")}function ft(yt){var St=yt[0].trace,_t=St.contours,Mt=j.hasLines(St),Tt=j.hasMarkers(St),kt=St.visible&&St.fill&&St.fill!=="none",wt=!1,ct=!1;if(_t){var It=_t.coloring;It==="lines"?wt=!0:Mt=It==="none"||It==="heatmap"||_t.showlines,_t.type==="constraint"?kt=_t._operation!=="=":(It==="fill"||It==="heatmap")&&(ct=!0)}return{showMarker:Tt,showLine:Mt,showFill:kt,showGradientLine:wt,showGradientFill:ct,anyLine:Mt||wt,anyFill:kt||ct}}function at(yt,St,_t){return yt&&et.isArrayOrTypedArray(yt)?St:yt>_t?_t:yt}},66540:function(Ct,Rt,o){o(76052),Ct.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},44248:function(Ct,Rt,o){var it=o(24040),xt=o(7316),et=o(79811),Et=o(9224),mt=o(4016).eraseActiveShape,ut=o(3400),ht=ut._,j=Ct.exports={};j.toImage={name:"toImage",title:function(yt){var St=yt._context.toImageButtonOptions||{},_t=St.format||"png";return _t==="png"?ht(yt,"Download plot as a png"):ht(yt,"Download plot")},icon:Et.camera,click:function(yt){var St=yt._context.toImageButtonOptions,_t={format:St.format||"png"};ut.notifier(ht(yt,"Taking snapshot - this may take a few seconds"),"long"),_t.format!=="svg"&&ut.isIE()&&(ut.notifier(ht(yt,"IE only supports svg. Changing format to svg."),"long"),_t.format="svg"),["filename","width","height","scale"].forEach(function(Mt){Mt in St&&(_t[Mt]=St[Mt])}),it.call("downloadImage",yt,_t).then(function(Mt){ut.notifier(ht(yt,"Snapshot succeeded")+" - "+Mt,"long")}).catch(function(){ut.notifier(ht(yt,"Sorry, there was a problem downloading your snapshot!"),"long")})}},j.sendDataToCloud={name:"sendDataToCloud",title:function(yt){return ht(yt,"Edit in Chart Studio")},icon:Et.disk,click:function(yt){xt.sendDataToCloud(yt)}},j.editInChartStudio={name:"editInChartStudio",title:function(yt){return ht(yt,"Edit in Chart Studio")},icon:Et.pencil,click:function(yt){xt.sendDataToCloud(yt)}},j.zoom2d={name:"zoom2d",_cat:"zoom",title:function(yt){return ht(yt,"Zoom")},attr:"dragmode",val:"zoom",icon:Et.zoombox,click:_},j.pan2d={name:"pan2d",_cat:"pan",title:function(yt){return ht(yt,"Pan")},attr:"dragmode",val:"pan",icon:Et.pan,click:_},j.select2d={name:"select2d",_cat:"select",title:function(yt){return ht(yt,"Box Select")},attr:"dragmode",val:"select",icon:Et.selectbox,click:_},j.lasso2d={name:"lasso2d",_cat:"lasso",title:function(yt){return ht(yt,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Et.lasso,click:_},j.drawclosedpath={name:"drawclosedpath",title:function(yt){return ht(yt,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Et.drawclosedpath,click:_},j.drawopenpath={name:"drawopenpath",title:function(yt){return ht(yt,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Et.drawopenpath,click:_},j.drawline={name:"drawline",title:function(yt){return ht(yt,"Draw line")},attr:"dragmode",val:"drawline",icon:Et.drawline,click:_},j.drawrect={name:"drawrect",title:function(yt){return ht(yt,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Et.drawrect,click:_},j.drawcircle={name:"drawcircle",title:function(yt){return ht(yt,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Et.drawcircle,click:_},j.eraseshape={name:"eraseshape",title:function(yt){return ht(yt,"Erase active shape")},icon:Et.eraseshape,click:mt},j.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(yt){return ht(yt,"Zoom in")},attr:"zoom",val:"in",icon:Et.zoom_plus,click:_},j.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(yt){return ht(yt,"Zoom out")},attr:"zoom",val:"out",icon:Et.zoom_minus,click:_},j.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(yt){return ht(yt,"Autoscale")},attr:"zoom",val:"auto",icon:Et.autoscale,click:_},j.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(yt){return ht(yt,"Reset axes")},attr:"zoom",val:"reset",icon:Et.home,click:_},j.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(yt){return ht(yt,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Et.tooltip_basic,gravity:"ne",click:_},j.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(yt){return ht(yt,"Compare data on hover")},attr:"hovermode",val:function(yt){return yt._fullLayout._isHoriz?"y":"x"},icon:Et.tooltip_compare,gravity:"ne",click:_};function _(yt,St){var _t=St.currentTarget,Mt=_t.getAttribute("data-attr"),Tt=_t.getAttribute("data-val")||!0,kt=yt._fullLayout,wt={},ct=et.list(yt,null,!0),It=kt._cartesianSpikesEnabled,At,Ot;if(Mt==="zoom"){var Pt=Tt==="in"?.5:2,zt=(1+Pt)/2,Dt=(1-Pt)/2,Nt;for(Ot=0;Ot1?(er=["toggleHover"],lr=["resetViews"]):wt?(qt=["zoomInGeo","zoomOutGeo"],er=["hoverClosestGeo"],lr=["resetGeo"]):kt?(er=["hoverClosest3d"],lr=["resetCameraDefault3d","resetCameraLastSave3d"]):Pt?(qt=["zoomInMapbox","zoomOutMapbox"],er=["toggleHover"],lr=["resetViewMapbox"]):At?er=["hoverClosestGl2d"]:ct?er=["hoverClosestPie"]:Nt?(er=["hoverClosestCartesian","hoverCompareCartesian"],lr=["resetViewSankey"]):er=["toggleHover"],Tt&&(er=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(st(bt)||Ut)&&(er=[]),(Tt||At)&&!$t&&(qt=["zoomIn2d","zoomOut2d","autoScale2d"],lr[0]!=="resetViews"&&(lr=["resetScale2d"])),kt?Jt=["zoom3d","pan3d","orbitRotation","tableRotation"]:(Tt||At)&&!$t||Ot?Jt=["zoom2d","pan2d"]:Pt||wt?Jt=["pan2d"]:zt&&(Jt=["zoom2d"]),tt(bt)&&Jt.push("select2d","lasso2d");var Yt=[],rr=function(Zt){Yt.indexOf(Zt)===-1&&er.indexOf(Zt)!==-1&&Yt.push(Zt)};if(Array.isArray(_t)){for(var jt=[],ar=0;ar<_t.length;ar++){var sr=_t[ar];typeof sr=="string"?(sr=sr.toLowerCase(),ht.indexOf(sr)!==-1?(dt._has("mapbox")||dt._has("cartesian"))&&Jt.push(sr):sr==="togglespikelines"?rr("toggleSpikelines"):sr==="togglehover"?rr("toggleHover"):sr==="hovercompare"?rr("hoverCompareCartesian"):sr==="hoverclosest"?(rr("hoverClosestCartesian"),rr("hoverClosestGeo"),rr("hoverClosest3d"),rr("hoverClosestGl2d"),rr("hoverClosestPie")):sr==="v1hovermode"&&(rr("toggleHover"),rr("hoverClosestCartesian"),rr("hoverCompareCartesian"),rr("hoverClosestGeo"),rr("hoverClosest3d"),rr("hoverClosestGl2d"),rr("hoverClosestPie"))):jt.push(sr)}_t=jt}return Vt(Jt),Vt(qt.concat(lr)),Vt(Yt),ot(Ht,_t)}function rt(vt){for(var dt=it.list({_fullLayout:vt},null,!0),bt=0;bt0);if(at){var yt=j(tt,st,ot);bt("x",yt[0]),bt("y",yt[1]),it.noneOrAll(rt,tt,["x","y"]),bt("xanchor"),bt("yanchor"),it.coerceFont(bt,"font",st.font);var St=bt("bgcolor");bt("activecolor",xt.contrast(St,ut.lightAmount,ut.darkAmount)),bt("bordercolor"),bt("borderwidth")}};function ht(_,rt,tt,st){var ot=st.calendar;function nt(bt,ft){return it.coerce(_,rt,mt.buttons,bt,ft)}var vt=nt("visible");if(vt){var dt=nt("step");dt!=="all"&&(ot&&ot!=="gregorian"&&(dt==="month"||dt==="year")?rt.stepmode="backward":nt("stepmode"),nt("count")),nt("label")}}function j(_,rt,tt){for(var st=tt.filter(function(dt){return rt[dt].anchor===_._id}),ot=0,nt=0;nt=_r.max)Ir=tr[Ar+1];else if(Tr<_r.min)break}return Ir+or*Tr},sr=0;sr=_r.pmax)Ir=tr[Ar+1];else if(Tr<_r.pmin)break}return(Tr-Ir)/or}}}if(Ut.rangemode!=="match"){var cr=$t.r2l(Ut.range[0]),hr=$t.r2l(Ut.range[1]),br=hr-cr;Nt.d2pOppAxis=function(Tr){return(Tr-cr)/br*Nt._height}}Dt.call(ft,kt,zt,Nt).call(at,kt,zt,Nt).call(yt,kt,zt,Nt).call(_t,kt,zt,Nt,Ut).call(Mt,kt,zt,Nt).call(Tt,kt,zt,Nt),vt(Dt,kt,zt,Nt),bt(Dt,kt,zt,Nt,$t,Ut),zt.side==="bottom"&&j.draw(kt,zt._id+"title",{propContainer:zt,propName:zt._name+".title",placeholder:wt._dfltTitle.x,attributes:{x:zt._offset+zt._length/2,y:Jt+Nt._height+Nt._offsetShift+10+1.5*zt.title.font.size,"text-anchor":"middle"}})}))};function nt(kt){return typeof kt.clientX=="number"?kt.clientX:kt.touches&&kt.touches.length>0?kt.touches[0].clientX:0}function vt(kt,wt,ct,It){if(wt._context.staticPlot)return;var At=kt.select("rect."+ot.slideBoxClassName).node(),Ot=kt.select("rect."+ot.grabAreaMinClassName).node(),Pt=kt.select("rect."+ot.grabAreaMaxClassName).node();function zt(){var Dt=it.event,Nt=Dt.target,$t=nt(Dt),Ut=$t-kt.node().getBoundingClientRect().left,Ht=It.d2p(ct._rl[0]),Vt=It.d2p(ct._rl[1]),Xt=tt.coverSlip();this.addEventListener("touchmove",qt),this.addEventListener("touchend",er),Xt.addEventListener("mousemove",qt),Xt.addEventListener("mouseup",er);function qt(lr){var Jt=nt(lr),Yt=+Jt-$t,rr,jt,ar;switch(Nt){case At:if(ar="ew-resize",Ht+Yt>ct._length||Vt+Yt<0)return;rr=Ht+Yt,jt=Vt+Yt;break;case Ot:if(ar="col-resize",Ht+Yt>ct._length)return;rr=Ht+Yt,jt=Vt;break;case Pt:if(ar="col-resize",Vt+Yt<0)return;rr=Ht,jt=Vt+Yt;break;default:ar="ew-resize",rr=Ut,jt=Ut+Yt;break}if(jt=0;zt--){var Dt=_t.append("path").attr(Tt).style("opacity",zt?.1:kt).call(Et.stroke,ct).call(Et.fill,wt).call(mt.dashLine,zt?"solid":At,zt?4+It:It);if(st(Dt,dt,at),Ot){var Nt=ut(dt.layout,"selections",at);Dt.style({cursor:"move"});var $t={element:Dt.node(),plotinfo:yt,gd:dt,editHelpers:Nt,isActiveSelection:!0},Ut=it(Mt,dt);xt(Ut,Dt,$t)}else Dt.style("pointer-events",zt?"all":"none");Pt[zt]=Dt}var Ht=Pt[0],Vt=Pt[1];Vt.node().addEventListener("click",function(){return ot(dt,Ht)})}}function st(dt,bt,ft){var at=ft.xref+ft.yref;mt.setClipUrl(dt,"clip"+bt._fullLayout._uid+at,bt)}function ot(dt,bt){if(rt(dt)){var ft=bt.node(),at=+ft.getAttribute("data-index");if(at>=0){if(at===dt._fullLayout._activeSelectionIndex){vt(dt);return}dt._fullLayout._activeSelectionIndex=at,dt._fullLayout._deactivateSelection=vt,_(dt)}}}function nt(dt){if(rt(dt)){var bt=dt._fullLayout.selections.length-1;dt._fullLayout._activeSelectionIndex=bt,dt._fullLayout._deactivateSelection=vt,_(dt)}}function vt(dt){if(rt(dt)){var bt=dt._fullLayout._activeSelectionIndex;bt>=0&&(et(dt),delete dt._fullLayout._activeSelectionIndex,_(dt))}}},34200:function(Ct,Rt,o){var it=o(98192).u,xt=o(92880).extendFlat;Ct.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:xt({},it,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},81004:function(Ct){Ct.exports=function(o,it,xt){xt("newselection.mode");var et=xt("newselection.line.width");et&&(xt("newselection.line.color"),xt("newselection.line.dash")),xt("activeselection.fillcolor"),xt("activeselection.opacity")}},5968:function(Ct,Rt,o){var it=o(72760),xt=it.selectMode,et=o(1936),Et=et.clearOutline,mt=o(9856),ut=mt.readPaths,ht=mt.writePaths,j=mt.fixDatesForPaths;Ct.exports=function(rt,tt){if(rt.length){var st=rt[0][0];if(st){var ot=st.getAttribute("d"),nt=tt.gd,vt=nt._fullLayout.newselection,dt=tt.plotinfo,bt=dt.xaxis,ft=dt.yaxis,at=tt.isActiveSelection,yt=tt.dragmode,St=(nt.layout||{}).selections||[];if(!xt(yt)&&at!==void 0){var _t=nt._fullLayout._activeSelectionIndex;if(_t=0){bn._fullLayout._deactivateShape(bn);return}if(!en){var Ds=Un.clickmode;ct.done(zo).then(function(){if(ct.clear(zo),Zo===2){for(eo.remove(),xa=0;xa-1&&er(Ls,bn,Dr.xaxes,Dr.yaxes,Dr.subplot,Dr,eo),Ds==="event"&&Ur(bn,void 0);ut.click(bn,Ls,Jn.id)}).catch(Tt.error)}},Dr.doneFn=function(){_o.remove(),ct.done(zo).then(function(){ct.clear(zo),!_i&&Bn&&Dr.selectionDefs&&(Bn.subtract=po,Dr.selectionDefs.push(Bn),Dr.mergedPolygons.length=0,[].push.apply(Dr.mergedPolygons,$n)),(_i||en)&&Zt(Dr,_i),Dr.doneFnCompleted&&Dr.doneFnCompleted(Io),rn&&Ur(bn,io)}).catch(Tt.error)}}function er(Gr,wr,vr,Dr,Sr,ur,xr){var Pr=wr._hoverdata,Vr=wr._fullLayout,en=Vr.clickmode,rn=en.indexOf("event")>-1,Cn=[],xn,fn,bn,Un,_i,yn,Kn,Jn,so,ba;if(cr(Pr)){jt(Gr,wr,ur),xn=or(wr,vr,Dr,Sr);var An=hr(Pr,xn),hn=An.pointNumbers.length>0;if(hn?Tr(xn,An):Ir(xn)&&(Kn=br(An))){for(xr&&xr.remove(),ba=0;ba=0}function sr(Gr){return Gr._fullLayout._activeSelectionIndex>=0}function Zt(Gr,wr){var vr=Gr.dragmode,Dr=Gr.plotinfo,Sr=Gr.gd;ar(Sr)&&Sr._fullLayout._deactivateShape(Sr),sr(Sr)&&Sr._fullLayout._deactivateSelection(Sr);var ur=Sr._fullLayout,xr=ur._zoomlayer,Pr=tt(vr),Vr=ot(vr);if(Pr||Vr){var en=xr.selectAll(".select-outline-"+Dr.id);if(en&&Sr._fullLayout._outlining){var rn;Pr&&(rn=St(en,Gr)),rn&&et.call("_guiRelayout",Sr,{shapes:rn});var Cn;Vr&&!Xt(Gr)&&(Cn=_t(en,Gr)),Cn&&(Sr._fullLayout._noEmitSelectedAtStart=!0,et.call("_guiRelayout",Sr,{selections:Cn}).then(function(){wr&&Mt(Sr)})),Sr._fullLayout._outlining=!1}}Dr.selection={},Dr.selection.selectionDefs=Gr.selectionDefs=[],Dr.selection.mergedPolygons=Gr.mergedPolygons=[]}function Kt(Gr){return Gr._id}function or(Gr,wr,vr,Dr){if(!Gr.calcdata)return[];var Sr=[],ur=wr.map(Kt),xr=vr.map(Kt),Pr,Vr,en;for(en=0;en0,ur=Sr?Dr[0]:vr;return wr.selectedpoints?wr.selectedpoints.indexOf(ur)>-1:!1}function Tr(Gr,wr){var vr=[],Dr,Sr,ur,xr;for(xr=0;xr0&&vr.push(Dr);if(vr.length===1&&(ur=vr[0]===wr.searchInfo,ur&&(Sr=wr.searchInfo.cd[0].trace,Sr.selectedpoints.length===wr.pointNumbers.length))){for(xr=0;xr1||(wr+=Dr.selectedpoints.length,wr>1)))return!1;return wr===1}function Ar(Gr,wr,vr){var Dr;for(Dr=0;Dr-1&≀if(!xr&&wr){var Zo=qr(Gr,!0);if(Zo.length){var Ls=Zo[0].xref,Ds=Zo[0].yref;if(Ls&&Ds){var bo=mn(Zo),No=En([It(Gr,Ls,"x"),It(Gr,Ds,"y")]);No(Io,bo)}}Gr._fullLayout._noEmitSelectedAtStart?Gr._fullLayout._noEmitSelectedAtStart=!1:vs&&Ur(Gr,Io),xn._reselect=!1}if(!xr&&xn._deselect){var Yo=xn._deselect;Pr=Yo.xref,Vr=Yo.yref,Qr(Pr,Vr,rn)||sn(Gr,Pr,Vr,Dr),vs&&(Io.points.length?Ur(Gr,Io):jr(Gr)),xn._deselect=!1}return{eventData:Io,selectionTesters:vr}}function Nr(Gr){var wr=Gr.calcdata;if(wr)for(var vr=0;vr0?ft+vt:vt;return{ppad:vt,ppadplus:dt?yt:St,ppadminus:dt?St:yt}}else return{ppad:vt}}function j(_,rt,tt,st,ot){var nt=_.type==="category"||_.type==="multicategory"?_.r2c:_.d2c;if(rt!==void 0)return[nt(rt),nt(tt)];if(st){var vt=1/0,dt=-1/0,bt=st.match(et.segmentRE),ft,at,yt,St,_t;for(_.type==="date"&&(nt=Et.decodeDate(nt)),ft=0;ftdt&&(dt=_t)));if(dt>=vt)return[vt,dt]}}},85448:function(Ct){Ct.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},43712:function(Ct,Rt,o){var it=o(3400),xt=o(54460),et=o(51272),Et=o(46056),mt=o(65152);Ct.exports=function(_,rt){et(_,rt,{name:"shapes",handleItemDefaults:ht})};function ut(j,_){return j?"bottom":_.indexOf("top")!==-1?"top":_.indexOf("bottom")!==-1?"bottom":"middle"}function ht(j,_,rt){function tt(Jt,Yt){return it.coerce(j,_,Et,Jt,Yt)}_._isShape=!0;var st=tt("visible");if(st){var ot=tt("showlegend");ot&&(tt("legend"),tt("legendwidth"),tt("legendgroup"),tt("legendgrouptitle.text"),it.coerceFont(tt,"legendgrouptitle.font"),tt("legendrank"));var nt=tt("path"),vt=nt?"path":"rect",dt=tt("type",vt),bt=dt!=="path";bt&&delete _.path,tt("editable"),tt("layer"),tt("opacity"),tt("fillcolor"),tt("fillrule");var ft=tt("line.width");ft&&(tt("line.color"),tt("line.dash"));for(var at=tt("xsizemode"),yt=tt("ysizemode"),St=["x","y"],_t=0;_t<2;_t++){var Mt=St[_t],Tt=Mt+"anchor",kt=Mt==="x"?at:yt,wt={_fullLayout:rt},ct,It,At,Ot=xt.coerceRef(j,_,wt,Mt,void 0,"paper"),Pt=xt.getRefType(Ot);if(Pt==="range"?(ct=xt.getFromId(wt,Ot),ct._shapeIndices.push(_._index),At=mt.rangeToShapePosition(ct),It=mt.shapePositionToRange(ct)):It=At=it.identity,bt){var zt=.25,Dt=.75,Nt=Mt+"0",$t=Mt+"1",Ut=j[Nt],Ht=j[$t];j[Nt]=It(j[Nt],!0),j[$t]=It(j[$t],!0),kt==="pixel"?(tt(Nt,0),tt($t,10)):(xt.coercePosition(_,wt,tt,Ot,Nt,zt),xt.coercePosition(_,wt,tt,Ot,$t,Dt)),_[Nt]=At(_[Nt]),_[$t]=At(_[$t]),j[Nt]=Ut,j[$t]=Ht}if(kt==="pixel"){var Vt=j[Tt];j[Tt]=It(j[Tt],!0),xt.coercePosition(_,wt,tt,Ot,Tt,.25),_[Tt]=At(_[Tt]),j[Tt]=Vt}}bt&&it.noneOrAll(j,_,["x0","x1","y0","y1"]);var Xt=dt==="line",qt,er;if(bt&&(qt=tt("label.texttemplate")),qt||(er=tt("label.text")),er||qt){tt("label.textangle");var lr=tt("label.textposition",Xt?"middle":"middle center");tt("label.xanchor"),tt("label.yanchor",ut(Xt,lr)),tt("label.padding"),it.coerceFont(tt,"label.font",rt.font)}}}},60728:function(Ct,Rt,o){var it=o(3400),xt=o(54460),et=o(72736),Et=o(43616),mt=o(9856).readPaths,ut=o(65152),ht=ut.getPathString,j=o(97728),_=o(84284).FROM_TL;Ct.exports=function(ot,nt,vt,dt){if(dt.selectAll(".shape-label").remove(),!!(vt.label.text||vt.label.texttemplate)){var bt;if(vt.label.texttemplate){var ft={};if(vt.type!=="path"){var at=xt.getFromId(ot,vt.xref),yt=xt.getFromId(ot,vt.yref);for(var St in j){var _t=j[St](vt,at,yt);_t!==void 0&&(ft[St]=_t)}}bt=it.texttemplateStringForShapes(vt.label.texttemplate,{},ot._fullLayout._d3locale,ft)}else bt=vt.label.text;var Mt={"data-index":nt},Tt=vt.label.font,kt={"data-notex":1},wt=dt.append("g").attr(Mt).classed("shape-label",!0),ct=wt.append("text").attr(kt).classed("shape-label-text",!0).text(bt),It,At,Ot,Pt;if(vt.path){var zt=ht(ot,vt),Dt=mt(zt,ot);It=1/0,Ot=1/0,At=-1/0,Pt=-1/0;for(var Nt=0;Nt=st?dt=ot-vt:dt=vt-ot,-180/Math.PI*Math.atan2(dt,bt)}function tt(st,ot,nt,vt,dt,bt,ft){var at=dt.label.textposition,yt=dt.label.textangle,St=dt.label.padding,_t=dt.type,Mt=Math.PI/180*bt,Tt=Math.sin(Mt),kt=Math.cos(Mt),wt=dt.label.xanchor,ct=dt.label.yanchor,It,At,Ot,Pt;if(_t==="line"){at==="start"?(It=st,At=ot):at==="end"?(It=nt,At=vt):(It=(st+nt)/2,At=(ot+vt)/2),wt==="auto"&&(at==="start"?yt==="auto"?nt>st?wt="left":ntst?wt="right":ntst?wt="right":ntst?wt="left":nt1&&!(Er.length===2&&Er[1][0]==="Z")&&(Jt===0&&(Er[0][0]="M"),It[lr]=Er,Dt(),Nt())}}function tr(Er,Rr){if(Er===2){lr=+Rr.srcElement.getAttribute("data-i"),Jt=+Rr.srcElement.getAttribute("data-j");var zr=It[lr];!bt(zr)&&!ft(zr)&&or()}}function cr(Er){qt=[];for(var Rr=0;RrDt&&vr>Nt&&!jr.shiftKey?st.getCursor(Dr/wr,1-Sr/vr):"move";ot(It,ur),Qr=ur.split("-")[0]}}function Xr(jr){ft(ct)||($t&&(Yt=Er(At.xanchor)),Ut&&(rr=Rr(At.yanchor)),At.type==="path"?hr=At.path:(qt=$t?At.x0:Er(At.x0),er=Ut?At.y0:Rr(At.y0),lr=$t?At.x1:Er(At.x1),Jt=Ut?At.y1:Rr(At.y1)),qtJt?(jt=er,Kt="y0",ar=Jt,or="y1"):(jt=Jt,Kt="y1",ar=er,or="y0"),qr(jr),Jr(Pt,At),Ur(It,At,ct),Nr.moveFn=Qr==="move"?pn:En,Nr.altKey=jr.altKey)}function ln(){ft(ct)||(ot(It),Or(Pt),St(It,ct,At),xt.call("_guiRelayout",ct,zt.getUpdateObj()))}function mn(){ft(ct)||Or(Pt)}function pn(jr,Gr){if(At.type==="path"){var wr=function(Sr){return Sr},vr=wr,Dr=wr;$t?Xt("xanchor",At.xanchor=zr(Yt+jr)):(vr=function(ur){return zr(Er(ur)+jr)},Tr&&Tr.type==="date"&&(vr=vt.encodeDate(vr))),Ut?Xt("yanchor",At.yanchor=Br(rr+Gr)):(Dr=function(ur){return Br(Rr(ur)+Gr)},Ar&&Ar.type==="date"&&(Dr=vt.encodeDate(Dr))),Xt("path",At.path=Mt(hr,vr,Dr))}else $t?Xt("xanchor",At.xanchor=zr(Yt+jr)):(Xt("x0",At.x0=zr(qt+jr)),Xt("x1",At.x1=zr(lr+jr))),Ut?Xt("yanchor",At.yanchor=Br(rr+Gr)):(Xt("y0",At.y0=Br(er+Gr)),Xt("y1",At.y1=Br(Jt+Gr)));It.attr("d",dt(ct,At)),Jr(Pt,At),ht(ct,Ot,At,br)}function En(jr,Gr){if(Vt){var wr=function(yn){return yn},vr=wr,Dr=wr;$t?Xt("xanchor",At.xanchor=zr(Yt+jr)):(vr=function(Kn){return zr(Er(Kn)+jr)},Tr&&Tr.type==="date"&&(vr=vt.encodeDate(vr))),Ut?Xt("yanchor",At.yanchor=Br(rr+Gr)):(Dr=function(Kn){return Br(Rr(Kn)+Gr)},Ar&&Ar.type==="date"&&(Dr=vt.encodeDate(Dr))),Xt("path",At.path=Mt(hr,vr,Dr))}else if(Ht){if(Qr==="resize-over-start-point"){var Sr=qt+jr,ur=Ut?er-Gr:er+Gr;Xt("x0",At.x0=$t?Sr:zr(Sr)),Xt("y0",At.y0=Ut?ur:Br(ur))}else if(Qr==="resize-over-end-point"){var xr=lr+jr,Pr=Ut?Jt-Gr:Jt+Gr;Xt("x1",At.x1=$t?xr:zr(xr)),Xt("y1",At.y1=Ut?Pr:Br(Pr))}}else{var Vr=function(yn){return Qr.indexOf(yn)!==-1},en=Vr("n"),rn=Vr("s"),Cn=Vr("w"),xn=Vr("e"),fn=en?jt+Gr:jt,bn=rn?ar+Gr:ar,Un=Cn?sr+jr:sr,_i=xn?Zt+jr:Zt;Ut&&(en&&(fn=jt-Gr),rn&&(bn=ar-Gr)),(!Ut&&bn-fn>Nt||Ut&&fn-bn>Nt)&&(Xt(Kt,At[Kt]=Ut?fn:Br(fn)),Xt(or,At[or]=Ut?bn:Br(bn))),_i-Un>Dt&&(Xt(tr,At[tr]=$t?Un:zr(Un)),Xt(cr,At[cr]=$t?_i:zr(_i)))}It.attr("d",dt(ct,At)),Jr(Pt,At),ht(ct,Ot,At,br)}function Jr(jr,Gr){($t||Ut)&&wr();function wr(){var vr=Gr.type!=="path",Dr=jr.selectAll(".visual-cue").data([0]),Sr=1;Dr.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Sr}).classed("visual-cue",!0);var ur=Er($t?Gr.xanchor:et.midRange(vr?[Gr.x0,Gr.x1]:vt.extractPathCoords(Gr.path,nt.paramIsX))),xr=Rr(Ut?Gr.yanchor:et.midRange(vr?[Gr.y0,Gr.y1]:vt.extractPathCoords(Gr.path,nt.paramIsY)));if(ur=vt.roundPositionForSharpStrokeRendering(ur,Sr),xr=vt.roundPositionForSharpStrokeRendering(xr,Sr),$t&&Ut){var Pr="M"+(ur-1-Sr)+","+(xr-1-Sr)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Dr.attr("d",Pr)}else if($t){var Vr="M"+(ur-1-Sr)+","+(xr-9-Sr)+"v18 h2 v-18 Z";Dr.attr("d",Vr)}else{var en="M"+(ur-9-Sr)+","+(xr-1-Sr)+"h18 v2 h-18 Z";Dr.attr("d",en)}}}function Or(jr){jr.selectAll(".visual-cue").remove()}function Ur(jr,Gr,wr){var vr=Gr.xref,Dr=Gr.yref,Sr=Et.getFromId(wr,vr),ur=Et.getFromId(wr,Dr),xr="";vr!=="paper"&&!Sr.autorange&&(xr+=vr),Dr!=="paper"&&!ur.autorange&&(xr+=Dr),rt.setClipUrl(jr,xr?"clip"+wr._fullLayout._uid+xr:null,wr)}}function Mt(ct,It,At){return ct.replace(nt.segmentRE,function(Ot){var Pt=0,zt=Ot.charAt(0),Dt=nt.paramIsX[zt],Nt=nt.paramIsY[zt],$t=nt.numParams[zt],Ut=Ot.substr(1).replace(nt.paramRE,function(Ht){return Pt>=$t||(Dt[Pt]?Ht=It(Ht):Nt[Pt]&&(Ht=At(Ht)),Pt++),Ht});return zt+Ut})}function Tt(ct,It){if(at(ct)){var At=It.node(),Ot=+At.getAttribute("data-index");if(Ot>=0){if(Ot===ct._fullLayout._activeShapeIndex){kt(ct);return}ct._fullLayout._activeShapeIndex=Ot,ct._fullLayout._deactivateShape=kt,bt(ct)}}}function kt(ct){if(at(ct)){var It=ct._fullLayout._activeShapeIndex;It>=0&&(j(ct),delete ct._fullLayout._activeShapeIndex,bt(ct))}}function wt(ct){if(at(ct)){j(ct);var It=ct._fullLayout._activeShapeIndex,At=(ct.layout||{}).shapes||[];if(It0&&ytft&&(yt="X"),yt});return nt>ft&&(at=at.replace(/[\s,]*X.*/,""),xt.log("Ignoring extra params in segment "+ot)),vt+at})}},41592:function(Ct,Rt,o){var it=o(4016);Ct.exports={moduleType:"component",name:"shapes",layoutAttributes:o(46056),supplyLayoutDefaults:o(43712),supplyDrawNewShapeDefaults:o(65144),includeBasePlot:o(36632)("shapes"),calcAutorange:o(96084),draw:it.draw,drawOne:it.drawOne}},97728:function(Ct){function Rt(ot,nt){return nt?nt.d2l(ot):ot}function o(ot,nt){return nt?nt.l2d(ot):ot}function it(ot){return ot.x0}function xt(ot){return ot.x1}function et(ot){return ot.y0}function Et(ot){return ot.y1}function mt(ot,nt){return Rt(ot.x1,nt)-Rt(ot.x0,nt)}function ut(ot,nt,vt){return Rt(ot.y1,vt)-Rt(ot.y0,vt)}function ht(ot,nt){return Math.abs(mt(ot,nt))}function j(ot,nt,vt){return Math.abs(ut(ot,nt,vt))}function _(ot,nt,vt){return ot.type!=="line"?void 0:Math.sqrt(Math.pow(mt(ot,nt),2)+Math.pow(ut(ot,nt,vt),2))}function rt(ot,nt){return o((Rt(ot.x1,nt)+Rt(ot.x0,nt))/2,nt)}function tt(ot,nt,vt){return o((Rt(ot.y1,vt)+Rt(ot.y0,vt))/2,vt)}function st(ot,nt,vt){return ot.type!=="line"?void 0:ut(ot,nt,vt)/mt(ot,nt)}Ct.exports={x0:it,x1:xt,y0:et,y1:Et,slope:st,dx:mt,dy:ut,width:ht,height:j,length:_,xcenter:rt,ycenter:tt}},89861:function(Ct,Rt,o){var it=o(25376),xt=o(66741),et=o(92880).extendDeepAll,Et=o(67824).overrideAll,mt=o(85656),ut=o(31780).templatedArray,ht=o(60876),j=ut("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});Ct.exports=Et(ut("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:j,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:et(xt({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:mt.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:it({})},font:it({}),activebgcolor:{valType:"color",dflt:ht.gripBgActiveColor},bgcolor:{valType:"color",dflt:ht.railBgColor},bordercolor:{valType:"color",dflt:ht.railBorderColor},borderwidth:{valType:"number",min:0,dflt:ht.railBorderWidth},ticklen:{valType:"number",min:0,dflt:ht.tickLength},tickcolor:{valType:"color",dflt:ht.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:ht.minorTickLength}}),"arraydraw","from-root")},60876:function(Ct){Ct.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},8132:function(Ct,Rt,o){var it=o(3400),xt=o(51272),et=o(89861),Et=o(60876),mt=Et.name,ut=et.steps;Ct.exports=function(rt,tt){xt(rt,tt,{name:mt,handleItemDefaults:ht})};function ht(_,rt,tt){function st(yt,St){return it.coerce(_,rt,et,yt,St)}for(var ot=xt(_,rt,{name:"steps",handleItemDefaults:j}),nt=0,vt=0;vt0?[0]:[]);Vt.enter().append("g").classed(_.containerClassName,!0).style("cursor",$t?null:"ew-resize");function Xt(Jt){Jt._commandObserver&&(Jt._commandObserver.remove(),delete Jt._commandObserver),xt.autoMargin(Nt,nt(Jt))}if(Vt.exit().each(function(){it.select(this).selectAll("g."+_.groupClassName).each(Xt)}).remove(),Ht.length!==0){var qt=Vt.selectAll("g."+_.groupClassName).data(Ht,dt);qt.enter().append("g").classed(_.groupClassName,!0),qt.exit().each(Xt).remove();for(var er=0;er0&&(qt=qt.transition().duration(Nt.transition.duration).ease(Nt.transition.easing)),qt.attr("transform",ut(Xt-_.gripWidth*.5,Nt._dims.currentValueTotalHeight))}}function At(Dt,Nt){var $t=Dt._dims;return $t.inputAreaStart+_.stepInset+($t.inputAreaLength-2*_.stepInset)*Math.min(1,Math.max(0,Nt))}function Ot(Dt,Nt){var $t=Dt._dims;return Math.min(1,Math.max(0,(Nt-_.stepInset-$t.inputAreaStart)/($t.inputAreaLength-2*_.stepInset-2*$t.inputAreaStart)))}function Pt(Dt,Nt,$t){var Ut=$t._dims,Ht=mt.ensureSingle(Dt,"rect",_.railTouchRectClass,function(Vt){Vt.call(kt,Nt,Dt,$t).style("pointer-events","all")});Ht.attr({width:Ut.inputAreaLength,height:Math.max(Ut.inputAreaWidth,_.tickOffset+$t.ticklen+Ut.labelHeight)}).call(et.fill,$t.bgcolor).attr("opacity",0),Et.setTranslate(Ht,0,Ut.currentValueTotalHeight)}function zt(Dt,Nt){var $t=Nt._dims,Ut=$t.inputAreaLength-_.railInset*2,Ht=mt.ensureSingle(Dt,"rect",_.railRectClass);Ht.attr({width:Ut,height:_.railWidth,rx:_.railRadius,ry:_.railRadius,"shape-rendering":"crispEdges"}).call(et.stroke,Nt.bordercolor).call(et.fill,Nt.bgcolor).style("stroke-width",Nt.borderwidth+"px"),Et.setTranslate(Ht,_.railInset,($t.inputAreaWidth-_.railWidth)*.5+$t.currentValueTotalHeight)}},97544:function(Ct,Rt,o){var it=o(60876);Ct.exports={moduleType:"component",name:it.name,layoutAttributes:o(89861),supplyLayoutDefaults:o(8132),draw:o(79664)}},81668:function(Ct,Rt,o){var it=o(33428),xt=o(38248),et=o(7316),Et=o(24040),mt=o(3400),ut=mt.strTranslate,ht=o(43616),j=o(76308),_=o(72736),rt=o(13448),tt=o(84284).OPPOSITE_SIDE,st=/ [XY][0-9]* /;function ot(nt,vt,dt){var bt=dt.propContainer,ft=dt.propName,at=dt.placeholder,yt=dt.traceIndex,St=dt.avoid||{},_t=dt.attributes,Mt=dt.transform,Tt=dt.containerGroup,kt=nt._fullLayout,wt=1,ct=!1,It=bt.title,At=(It&&It.text?It.text:"").trim(),Ot=It&&It.font?It.font:{},Pt=Ot.family,zt=Ot.size,Dt=Ot.color,Nt=Ot.weight,$t=Ot.style,Ut=Ot.variant,Ht;ft==="title.text"?Ht="titleText":ft.indexOf("axis")!==-1?Ht="axisTitleText":ft.indexOf("colorbar"!==-1)&&(Ht="colorbarTitleText");var Vt=nt._context.edits[Ht];At===""?wt=0:At.replace(st," % ")===at.replace(st," % ")&&(wt=.2,ct=!0,Vt||(At="")),dt._meta?At=mt.templateString(At,dt._meta):kt._meta&&(At=mt.templateString(At,kt._meta));var Xt=At||Vt,qt;Tt||(Tt=mt.ensureSingle(kt._infolayer,"g","g-"+vt),qt=kt._hColorbarMoveTitle);var er=Tt.selectAll("text").data(Xt?[0]:[]);if(er.enter().append("text"),er.text(At).attr("class",vt),er.exit().remove(),!Xt)return Tt;function lr(jt){mt.syncOrAsync([Jt,Yt],jt)}function Jt(jt){var ar;return!Mt&&qt&&(Mt={}),Mt?(ar="",Mt.rotate&&(ar+="rotate("+[Mt.rotate,_t.x,_t.y]+")"),(Mt.offset||qt)&&(ar+=ut(0,(Mt.offset||0)-(qt||0)))):ar=null,jt.attr("transform",ar),jt.style({"font-family":Pt,"font-size":it.round(zt,2)+"px",fill:j.rgb(Dt),opacity:wt*j.opacity(Dt),"font-weight":Nt,"font-style":$t,"font-variant":Ut}).attr(_t).call(_.convertToTspans,nt),et.previousPromises(nt)}function Yt(jt){var ar=it.select(jt.node().parentNode);if(St&&St.selection&&St.side&&At){ar.attr("transform",null);var sr=tt[St.side],Zt=St.side==="left"||St.side==="top"?-1:1,Kt=xt(St.pad)?St.pad:2,or=ht.bBox(ar.node()),tr={t:0,b:0,l:0,r:0},cr=nt._fullLayout._reservedMargin;for(var hr in cr)for(var br in cr[hr]){var Tr=cr[hr][br];tr[br]=Math.max(tr[br],Tr)}var Ir={left:tr.l,top:tr.t,right:kt.width-tr.r,bottom:kt.height-tr.b},Ar=St.maxShift||Zt*(Ir[St.side]-or[St.side]),_r=0;if(Ar<0)_r=Ar;else{var Er=St.offsetLeft||0,Rr=St.offsetTop||0;or.left-=Er,or.right-=Er,or.top-=Rr,or.bottom-=Rr,St.selection.each(function(){var Br=ht.bBox(this);mt.bBoxIntersect(or,Br,Kt)&&(_r=Math.max(_r,Zt*(Br[St.side]-or[sr])+Kt))}),_r=Math.min(Ar,_r),bt._titleScoot=Math.abs(_r)}if(_r>0||Ar<0){var zr={left:[-_r,0],right:[_r,0],top:[0,-_r],bottom:[0,_r]}[St.side];ar.attr("transform",ut(zr[0],zr[1]))}}}er.call(lr);function rr(){wt=0,ct=!0,er.text(at).on("mouseover.opacity",function(){it.select(this).transition().duration(rt.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){it.select(this).transition().duration(rt.HIDE_PLACEHOLDER).style("opacity",0)})}return Vt&&(At?er.on(".opacity",null):rr(),er.call(_.makeEditable,{gd:nt}).on("edit",function(jt){yt!==void 0?Et.call("_guiRestyle",nt,ft,jt,yt):Et.call("_guiRelayout",nt,ft,jt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(lr)}).on("input",function(jt){this.text(jt||" ").call(_.positionText,_t.x,_t.y)})),er.classed("js-placeholder",ct),Tt}Ct.exports={draw:ot}},88444:function(Ct,Rt,o){var it=o(25376),xt=o(22548),et=o(92880).extendFlat,Et=o(67824).overrideAll,mt=o(66741),ut=o(31780).templatedArray,ht=ut("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});Ct.exports=Et(ut("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:ht,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:et(mt({editType:"arraydraw"}),{}),font:it({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:xt.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},73712:function(Ct){Ct.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},91384:function(Ct,Rt,o){var it=o(3400),xt=o(51272),et=o(88444),Et=o(73712),mt=Et.name,ut=et.buttons;Ct.exports=function(rt,tt){var st={name:mt,handleItemDefaults:ht};xt(rt,tt,st)};function ht(_,rt,tt){function st(vt,dt){return it.coerce(_,rt,et,vt,dt)}var ot=xt(_,rt,{name:"buttons",handleItemDefaults:j}),nt=st("visible",ot.length>0);nt&&(st("active"),st("direction"),st("type"),st("showactive"),st("x"),st("y"),it.noneOrAll(_,rt,["x","y"]),st("xanchor"),st("yanchor"),st("pad.t"),st("pad.r"),st("pad.b"),st("pad.l"),it.coerceFont(st,"font",tt.font),st("bgcolor",tt.paper_bgcolor),st("bordercolor"),st("borderwidth"))}function j(_,rt){function tt(ot,nt){return it.coerce(_,rt,ut,ot,nt)}var st=tt("visible",_.method==="skip"||Array.isArray(_.args));st&&(tt("method"),tt("args"),tt("args2"),tt("label"),tt("execute"))}},14420:function(Ct,Rt,o){var it=o(33428),xt=o(7316),et=o(76308),Et=o(43616),mt=o(3400),ut=o(72736),ht=o(31780).arrayEditor,j=o(84284).LINE_SPACING,_=o(73712),rt=o(37400);Ct.exports=function(Ot){var Pt=Ot._fullLayout,zt=mt.filterVisible(Pt[_.name]);function Dt(er){xt.autoMargin(Ot,wt(er))}var Nt=Pt._menulayer.selectAll("g."+_.containerClassName).data(zt.length>0?[0]:[]);if(Nt.enter().append("g").classed(_.containerClassName,!0).style("cursor","pointer"),Nt.exit().each(function(){it.select(this).selectAll("g."+_.headerGroupClassName).each(Dt)}).remove(),zt.length!==0){var $t=Nt.selectAll("g."+_.headerGroupClassName).data(zt,tt);$t.enter().append("g").classed(_.headerGroupClassName,!0);for(var Ut=mt.ensureSingle(Nt,"g",_.dropdownButtonGroupClassName,function(er){er.style("pointer-events","all")}),Ht=0;Ht_t,Ot=mt.barLength+2*mt.barPad,Pt=mt.barWidth+2*mt.barPad,zt=ot,Dt=vt+dt;Dt+Pt>st&&(Dt=st-Pt);var Nt=this.container.selectAll("rect.scrollbar-horizontal").data(At?[0]:[]);Nt.exit().on(".drag",null).remove(),Nt.enter().append("rect").classed("scrollbar-horizontal",!0).call(xt.fill,mt.barColor),At?(this.hbar=Nt.attr({rx:mt.barRadius,ry:mt.barRadius,x:zt,y:Dt,width:Ot,height:Pt}),this._hbarXMin=zt+Ot/2,this._hbarTranslateMax=_t-Ot):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var $t=dt>Mt,Ut=mt.barWidth+2*mt.barPad,Ht=mt.barLength+2*mt.barPad,Vt=ot+nt,Xt=vt;Vt+Ut>tt&&(Vt=tt-Ut);var qt=this.container.selectAll("rect.scrollbar-vertical").data($t?[0]:[]);qt.exit().on(".drag",null).remove(),qt.enter().append("rect").classed("scrollbar-vertical",!0).call(xt.fill,mt.barColor),$t?(this.vbar=qt.attr({rx:mt.barRadius,ry:mt.barRadius,x:Vt,y:Xt,width:Ut,height:Ht}),this._vbarYMin=Xt+Ht/2,this._vbarTranslateMax=Mt-Ht):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var er=this.id,lr=Tt-.5,Jt=$t?kt+Ut+.5:kt+.5,Yt=wt-.5,rr=At?ct+Pt+.5:ct+.5,jt=rt._topdefs.selectAll("#"+er).data(At||$t?[0]:[]);if(jt.exit().remove(),jt.enter().append("clipPath").attr("id",er).append("rect"),At||$t?(this._clipRect=jt.select("rect").attr({x:Math.floor(lr),y:Math.floor(Yt),width:Math.ceil(Jt)-Math.floor(lr),height:Math.ceil(rr)-Math.floor(Yt)}),this.container.call(et.setClipUrl,er,this.gd),this.bg.attr({x:ot,y:vt,width:nt,height:dt})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(et.setClipUrl,null),delete this._clipRect),At||$t){var ar=it.behavior.drag().on("dragstart",function(){it.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(ar);var sr=it.behavior.drag().on("dragstart",function(){it.event.sourceEvent.preventDefault(),it.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));At&&this.hbar.on(".drag",null).call(sr),$t&&this.vbar.on(".drag",null).call(sr)}this.setTranslate(j,_)},mt.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(et.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},mt.prototype._onBoxDrag=function(){var ht=this.translateX,j=this.translateY;this.hbar&&(ht-=it.event.dx),this.vbar&&(j-=it.event.dy),this.setTranslate(ht,j)},mt.prototype._onBoxWheel=function(){var ht=this.translateX,j=this.translateY;this.hbar&&(ht+=it.event.deltaY),this.vbar&&(j+=it.event.deltaY),this.setTranslate(ht,j)},mt.prototype._onBarDrag=function(){var ht=this.translateX,j=this.translateY;if(this.hbar){var _=ht+this._hbarXMin,rt=_+this._hbarTranslateMax,tt=Et.constrain(it.event.x,_,rt),st=(tt-_)/(rt-_),ot=this.position.w-this._box.w;ht=st*ot}if(this.vbar){var nt=j+this._vbarYMin,vt=nt+this._vbarTranslateMax,dt=Et.constrain(it.event.y,nt,vt),bt=(dt-nt)/(vt-nt),ft=this.position.h-this._box.h;j=bt*ft}this.setTranslate(ht,j)},mt.prototype.setTranslate=function(ht,j){var _=this.position.w-this._box.w,rt=this.position.h-this._box.h;if(ht=Et.constrain(ht||0,0,_),j=Et.constrain(j||0,0,rt),this.translateX=ht,this.translateY=j,this.container.call(et.setTranslate,this._box.l-this.position.l-ht,this._box.t-this.position.t-j),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+ht-.5),y:Math.floor(this.position.t+j-.5)}),this.hbar){var tt=ht/_;this.hbar.call(et.setTranslate,ht+tt*this._hbarTranslateMax,j)}if(this.vbar){var st=j/rt;this.vbar.call(et.setTranslate,ht,j+st*this._vbarTranslateMax)}}},84284:function(Ct){Ct.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},36208:function(Ct){Ct.exports={axisRefDescription:function(Rt,o,it){return["If set to a",Rt,"axis id (e.g. *"+Rt+"* or","*"+Rt+"2*), the `"+Rt+"` position refers to a",Rt,"coordinate. If set to *paper*, the `"+Rt+"`","position refers to the distance from the",o,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",o,"("+it+"). If set to a",Rt,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",o,"of the domain of that axis: e.g.,","*"+Rt+"2 domain* refers to the domain of the second",Rt," axis and a",Rt,"position of 0.5 refers to the","point between the",o,"and the",it,"of the domain of the","second",Rt,"axis."].join(" ")}}},48164:function(Ct){Ct.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"▲"},DECREASING:{COLOR:"#FF4136",SYMBOL:"▼"}}},26880:function(Ct){Ct.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},69104:function(Ct){Ct.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},99168:function(Ct){Ct.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},87792:function(Ct){Ct.exports={circle:"●","circle-open":"○",square:"■","square-open":"□",diamond:"◆","diamond-open":"◇",cross:"+",x:"❌"}},13448:function(Ct){Ct.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},39032:function(Ct){Ct.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},2264:function(Ct,Rt){Rt.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],Rt.STYLE=Rt.CSS_DECLARATIONS.map(function(o){return o.join(": ")+"; "}).join("")},9616:function(Ct,Rt){Rt.xmlns="http://www.w3.org/2000/xmlns/",Rt.svg="http://www.w3.org/2000/svg",Rt.xlink="http://www.w3.org/1999/xlink",Rt.svgAttrs={xmlns:Rt.svg,"xmlns:xlink":Rt.xlink}},64884:function(Ct,Rt,o){Rt.version=o(25788).version,o(88324),o(79288);for(var it=o(24040),xt=Rt.register=it.register,et=o(22448),Et=Object.keys(et),mt=0;mt",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},98308:function(Ct,Rt){Rt.isLeftAnchor=function(it){return it.xanchor==="left"||it.xanchor==="auto"&&it.x<=.3333333333333333},Rt.isCenterAnchor=function(it){return it.xanchor==="center"||it.xanchor==="auto"&&it.x>.3333333333333333&&it.x<.6666666666666666},Rt.isRightAnchor=function(it){return it.xanchor==="right"||it.xanchor==="auto"&&it.x>=.6666666666666666},Rt.isTopAnchor=function(it){return it.yanchor==="top"||it.yanchor==="auto"&&it.y>=.6666666666666666},Rt.isMiddleAnchor=function(it){return it.yanchor==="middle"||it.yanchor==="auto"&&it.y>.3333333333333333&&it.y<.6666666666666666},Rt.isBottomAnchor=function(it){return it.yanchor==="bottom"||it.yanchor==="auto"&&it.y<=.3333333333333333}},11864:function(Ct,Rt,o){var it=o(20435),xt=it.mod,et=it.modHalf,Et=Math.PI,mt=2*Et;function ut(bt){return bt/180*Et}function ht(bt){return bt/Et*180}function j(bt){return Math.abs(bt[1]-bt[0])>mt-1e-14}function _(bt,ft){return et(ft-bt,mt)}function rt(bt,ft){return Math.abs(_(bt,ft))}function tt(bt,ft){if(j(ft))return!0;var at,yt;ft[0]yt&&(yt+=mt);var St=xt(bt,mt),_t=St+mt;return St>=at&&St<=yt||_t>=at&&_t<=yt}function st(bt,ft,at,yt){if(!tt(ft,yt))return!1;var St,_t;return at[0]=St&&bt<=_t}function ot(bt,ft,at,yt,St,_t,Mt){St=St||0,_t=_t||0;var Tt=j([at,yt]),kt,wt,ct,It,At;Tt?(kt=0,wt=Et,ct=mt):at"u"?void 0:Uint8ClampedArray,i1:typeof Int8Array>"u"?void 0:Int8Array,u1:typeof Uint8Array>"u"?void 0:Uint8Array,i2:typeof Int16Array>"u"?void 0:Int16Array,u2:typeof Uint16Array>"u"?void 0:Uint16Array,i4:typeof Int32Array>"u"?void 0:Int32Array,u4:typeof Uint32Array>"u"?void 0:Uint32Array,f4:typeof Float32Array>"u"?void 0:Float32Array,f8:typeof Float64Array>"u"?void 0:Float64Array};_.uint8c=_.u1c,_.uint8=_.u1,_.int8=_.i1,_.uint16=_.u2,_.int16=_.i2,_.uint32=_.u4,_.int32=_.i4,_.float32=_.f4,_.float64=_.f8;function rt(ot){return ot.constructor===ArrayBuffer}Rt.isArrayBuffer=rt,Rt.decodeTypedArraySpec=function(ot){var nt=[],vt=tt(ot),dt=vt.dtype,bt=_[dt];if(!bt)throw new Error('Error in dtype: "'+dt+'"');var ft=bt.BYTES_PER_ELEMENT,at=vt.bdata;rt(at)||(at=it(at));var yt=vt.shape===void 0?[at.byteLength/ft]:(""+vt.shape).split(",");yt.reverse();var St=yt.length,_t,Mt,Tt=+yt[0],kt=ft*Tt,wt=0;if(St===1)nt=new bt(at);else if(St===2)for(_t=+yt[1],Mt=0;Mt<_t;Mt++)nt[Mt]=new bt(at,wt,Tt),wt+=kt;else if(St===3){_t=+yt[1];for(var ct=+yt[2],It=0;Itbt.max?vt.set(dt):vt.set(+nt)}},integer:{coerceFunction:function(nt,vt,dt,bt){nt%1||!it(nt)||bt.min!==void 0&&ntbt.max?vt.set(dt):vt.set(+nt)}},string:{coerceFunction:function(nt,vt,dt,bt){if(typeof nt!="string"){var ft=typeof nt=="number";bt.strict===!0||!ft?vt.set(dt):vt.set(String(nt))}else bt.noBlank&&!nt?vt.set(dt):vt.set(nt)}},color:{coerceFunction:function(nt,vt,dt){xt(nt).isValid()?vt.set(nt):vt.set(dt)}},colorlist:{coerceFunction:function(nt,vt,dt){function bt(ft){return xt(ft).isValid()}!Array.isArray(nt)||!nt.length?vt.set(dt):nt.every(bt)?vt.set(nt):vt.set(dt)}},colorscale:{coerceFunction:function(nt,vt,dt){vt.set(Et.get(nt,dt))}},angle:{coerceFunction:function(nt,vt,dt){nt==="auto"?vt.set("auto"):it(nt)?vt.set(_(+nt,360)):vt.set(dt)}},subplotid:{coerceFunction:function(nt,vt,dt,bt){var ft=bt.regex||j(dt);if(typeof nt=="string"&&ft.test(nt)){vt.set(nt);return}vt.set(dt)},validateFunction:function(nt,vt){var dt=vt.dflt;return nt===dt?!0:typeof nt!="string"?!1:!!j(dt).test(nt)}},flaglist:{coerceFunction:function(nt,vt,dt,bt){if((bt.extras||[]).indexOf(nt)!==-1){vt.set(nt);return}if(typeof nt!="string"){vt.set(dt);return}for(var ft=nt.split("+"),at=0;at=at&&Dt<=yt?Dt:ut}if(typeof Dt!="string"&&typeof Dt!="number")return ut;Dt=String(Dt);var Vt=bt(Nt),Xt=Dt.charAt(0);Vt&&(Xt==="G"||Xt==="g")&&(Dt=Dt.substr(1),Nt="");var qt=Vt&&Nt.substr(0,7)==="chinese",er=Dt.match(qt?vt:nt);if(!er)return ut;var lr=er[1],Jt=er[3]||"1",Yt=Number(er[5]||1),rr=Number(er[7]||0),jt=Number(er[9]||0),ar=Number(er[11]||0);if(Vt){if(lr.length===2)return ut;lr=Number(lr);var sr;try{var Zt=st.getComponentMethod("calendars","getCal")(Nt);if(qt){var Kt=Jt.charAt(Jt.length-1)==="i";Jt=parseInt(Jt,10),sr=Zt.newDate(lr,Zt.toMonthIndex(lr,Jt,Kt),Yt)}else sr=Zt.newDate(lr,Number(Jt),Yt)}catch{return ut}return sr?(sr.toJD()-tt)*ht+rr*j+jt*_+ar*rt:ut}lr.length===2?lr=(Number(lr)+2e3-dt)%100+dt:lr=Number(lr),Jt-=1;var or=new Date(Date.UTC(2e3,Jt,Yt,rr,jt));return or.setUTCFullYear(lr),or.getUTCMonth()!==Jt||or.getUTCDate()!==Yt?ut:or.getTime()+ar*rt},at=Rt.MIN_MS=Rt.dateTime2ms("-9999"),yt=Rt.MAX_MS=Rt.dateTime2ms("9999-12-31 23:59:59.9999"),Rt.isDateTime=function(Dt,Nt){return Rt.dateTime2ms(Dt,Nt)!==ut};function St(Dt,Nt){return String(Dt+Math.pow(10,Nt)).substr(1)}var _t=90*ht,Mt=3*j,Tt=5*_;Rt.ms2DateTime=function(Dt,Nt,$t){if(typeof Dt!="number"||!(Dt>=at&&Dt<=yt))return ut;Nt||(Nt=0);var Ut=Math.floor(Et(Dt+.05,1)*10),Ht=Math.round(Dt-Ut/10),Vt,Xt,qt,er,lr,Jt;if(bt($t)){var Yt=Math.floor(Ht/ht)+tt,rr=Math.floor(Et(Dt,ht));try{Vt=st.getComponentMethod("calendars","getCal")($t).fromJD(Yt).formatDate("yyyy-mm-dd")}catch{Vt=ot("G%Y-%m-%d")(new Date(Ht))}if(Vt.charAt(0)==="-")for(;Vt.length<11;)Vt="-0"+Vt.substr(1);else for(;Vt.length<10;)Vt="0"+Vt;Xt=Nt<_t?Math.floor(rr/j):0,qt=Nt<_t?Math.floor(rr%j/_):0,er=Nt=at+ht&&Dt<=yt-ht))return ut;var Nt=Math.floor(Et(Dt+.05,1)*10),$t=new Date(Math.round(Dt-Nt/10)),Ut=it("%Y-%m-%d")($t),Ht=$t.getHours(),Vt=$t.getMinutes(),Xt=$t.getSeconds(),qt=$t.getUTCMilliseconds()*10+Nt;return kt(Ut,Ht,Vt,Xt,qt)};function kt(Dt,Nt,$t,Ut,Ht){if((Nt||$t||Ut||Ht)&&(Dt+=" "+St(Nt,2)+":"+St($t,2),(Ut||Ht)&&(Dt+=":"+St(Ut,2),Ht))){for(var Vt=4;Ht%10===0;)Vt-=1,Ht/=10;Dt+="."+St(Ht,Vt)}return Dt}Rt.cleanDate=function(Dt,Nt,$t){if(Dt===ut)return Nt;if(Rt.isJSDate(Dt)||typeof Dt=="number"&&isFinite(Dt)){if(bt($t))return et.error("JS Dates and milliseconds are incompatible with world calendars",Dt),Nt;if(Dt=Rt.ms2DateTimeLocal(+Dt),!Dt&&Nt!==void 0)return Nt}else if(!Rt.isDateTime(Dt,$t))return et.error("unrecognized date",Dt),Nt;return Dt};var wt=/%\d?f/g,ct=/%h/g,It={1:"1",2:"1",3:"2",4:"2"};function At(Dt,Nt,$t,Ut){Dt=Dt.replace(wt,function(Vt){var Xt=Math.min(+Vt.charAt(1)||6,6),qt=(Nt/1e3%1+2).toFixed(Xt).substr(2).replace(/0+$/,"")||"0";return qt});var Ht=new Date(Math.floor(Nt+.05));if(Dt=Dt.replace(ct,function(){return It[$t("%q")(Ht)]}),bt(Ut))try{Dt=st.getComponentMethod("calendars","worldCalFmt")(Dt,Nt,Ut)}catch{return"Invalid"}return $t(Dt)(Ht)}var Ot=[59,59.9,59.99,59.999,59.9999];function Pt(Dt,Nt){var $t=Et(Dt+.05,ht),Ut=St(Math.floor($t/j),2)+":"+St(Et(Math.floor($t/_),60),2);if(Nt!=="M"){xt(Nt)||(Nt=0);var Ht=Math.min(Et(Dt/rt,60),Ot[Nt]),Vt=(100+Ht).toFixed(Nt).substr(1);Nt>0&&(Vt=Vt.replace(/0+$/,"").replace(/[\.]$/,"")),Ut+=":"+Vt}return Ut}Rt.formatDate=function(Dt,Nt,$t,Ut,Ht,Vt){if(Ht=bt(Ht)&&Ht,!Nt)if($t==="y")Nt=Vt.year;else if($t==="m")Nt=Vt.month;else if($t==="d")Nt=Vt.dayMonth+` +|(?![\\s\\S])))+`,"m"),alias:Ct,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(Lt)[0]}}}}),Object.defineProperty(_e.languages.diff,"PREFIXES",{value:pt})})(i)}return diff_1}var markupTemplating_1,hasRequiredMarkupTemplating;function requireMarkupTemplating(){if(hasRequiredMarkupTemplating)return markupTemplating_1;hasRequiredMarkupTemplating=1,markupTemplating_1=a,a.displayName="markupTemplating",a.aliases=[];function a(i){(function(_e){function pt(Lt,Gt){return"___"+Lt.toUpperCase()+Gt+"___"}Object.defineProperties(_e.languages["markup-templating"]={},{buildPlaceholders:{value:function(Lt,Gt,Ct,Rt){if(Lt.language===Gt){var o=Lt.tokenStack=[];Lt.code=Lt.code.replace(Ct,function(it){if(typeof Rt=="function"&&!Rt(it))return it;for(var xt=o.length,et;Lt.code.indexOf(et=pt(Gt,xt))!==-1;)++xt;return o[xt]=it,et}),Lt.grammar=_e.languages.markup}}},tokenizePlaceholders:{value:function(Lt,Gt){if(Lt.language!==Gt||!Lt.tokenStack)return;Lt.grammar=_e.languages[Gt];var Ct=0,Rt=Object.keys(Lt.tokenStack);function o(it){for(var xt=0;xt=Rt.length);xt++){var et=it[xt];if(typeof et=="string"||et.content&&typeof et.content=="string"){var Tt=Rt[Ct],yt=Lt.tokenStack[Tt],ut=typeof et=="string"?et:et.content,ht=pt(Gt,Tt),j=ut.indexOf(ht);if(j>-1){++Ct;var _=ut.substring(0,j),rt=new _e.Token(Gt,_e.tokenize(yt,Lt.grammar),"language-"+Gt,yt),tt=ut.substring(j+ht.length),st=[];_&&st.push.apply(st,o([_])),st.push(rt),tt&&st.push.apply(st,o([tt])),typeof et=="string"?it.splice.apply(it,[xt,1].concat(st)):et.content=st}}else et.content&&o(et.content)}return it}o(Lt.tokens)}}})})(i)}return markupTemplating_1}var django_1,hasRequiredDjango;function requireDjango(){if(hasRequiredDjango)return django_1;hasRequiredDjango=1;var a=requireMarkupTemplating();django_1=i,i.displayName="django",i.aliases=["jinja2"];function i(_e){_e.register(a),function(pt){pt.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var Lt=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,Gt=pt.languages["markup-templating"];pt.hooks.add("before-tokenize",function(Ct){Gt.buildPlaceholders(Ct,"django",Lt)}),pt.hooks.add("after-tokenize",function(Ct){Gt.tokenizePlaceholders(Ct,"django")}),pt.languages.jinja2=pt.languages.django,pt.hooks.add("before-tokenize",function(Ct){Gt.buildPlaceholders(Ct,"jinja2",Lt)}),pt.hooks.add("after-tokenize",function(Ct){Gt.tokenizePlaceholders(Ct,"jinja2")})}(_e)}return django_1}var dnsZoneFile_1,hasRequiredDnsZoneFile;function requireDnsZoneFile(){if(hasRequiredDnsZoneFile)return dnsZoneFile_1;hasRequiredDnsZoneFile=1,dnsZoneFile_1=a,a.displayName="dnsZoneFile",a.aliases=[];function a(i){i.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},i.languages["dns-zone"]=i.languages["dns-zone-file"]}return dnsZoneFile_1}var docker_1,hasRequiredDocker;function requireDocker(){if(hasRequiredDocker)return docker_1;hasRequiredDocker=1,docker_1=a,a.displayName="docker",a.aliases=["dockerfile"];function a(i){(function(_e){var pt=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,Lt=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return pt}),Gt=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,Ct=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return Gt}),Rt={pattern:RegExp(Gt),greedy:!0},o={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function it(xt,et){return xt=xt.replace(//g,function(){return Ct}).replace(//g,function(){return Lt}),RegExp(xt,et)}_e.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:it(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[Rt,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:it(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:it(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:it(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:o,string:Rt,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:o},_e.languages.dockerfile=_e.languages.docker})(i)}return docker_1}var dot_1,hasRequiredDot;function requireDot(){if(hasRequiredDot)return dot_1;hasRequiredDot=1,dot_1=a,a.displayName="dot",a.aliases=["gv"];function a(i){(function(_e){var pt="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",Lt={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:_e.languages.markup}};function Gt(Ct,Rt){return RegExp(Ct.replace(//g,function(){return pt}),Rt)}_e.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:Gt(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:Lt},"attr-value":{pattern:Gt(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:Lt},"attr-name":{pattern:Gt(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:Lt},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:Gt(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:Lt},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},_e.languages.gv=_e.languages.dot})(i)}return dot_1}var ebnf_1,hasRequiredEbnf;function requireEbnf(){if(hasRequiredEbnf)return ebnf_1;hasRequiredEbnf=1,ebnf_1=a,a.displayName="ebnf",a.aliases=[];function a(i){i.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}return ebnf_1}var editorconfig_1,hasRequiredEditorconfig;function requireEditorconfig(){if(hasRequiredEditorconfig)return editorconfig_1;hasRequiredEditorconfig=1,editorconfig_1=a,a.displayName="editorconfig",a.aliases=[];function a(i){i.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}return editorconfig_1}var eiffel_1,hasRequiredEiffel;function requireEiffel(){if(hasRequiredEiffel)return eiffel_1;hasRequiredEiffel=1,eiffel_1=a,a.displayName="eiffel",a.aliases=[];function a(i){i.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}return eiffel_1}var ejs_1,hasRequiredEjs;function requireEjs(){if(hasRequiredEjs)return ejs_1;hasRequiredEjs=1;var a=requireMarkupTemplating();ejs_1=i,i.displayName="ejs",i.aliases=["eta"];function i(_e){_e.register(a),function(pt){pt.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:pt.languages.javascript}},pt.hooks.add("before-tokenize",function(Lt){var Gt=/<%(?!%)[\s\S]+?%>/g;pt.languages["markup-templating"].buildPlaceholders(Lt,"ejs",Gt)}),pt.hooks.add("after-tokenize",function(Lt){pt.languages["markup-templating"].tokenizePlaceholders(Lt,"ejs")}),pt.languages.eta=pt.languages.ejs}(_e)}return ejs_1}var elixir_1,hasRequiredElixir;function requireElixir(){if(hasRequiredElixir)return elixir_1;hasRequiredElixir=1,elixir_1=a,a.displayName="elixir",a.aliases=[];function a(i){i.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},i.languages.elixir.string.forEach(function(_e){_e.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:i.languages.elixir}}}})}return elixir_1}var elm_1,hasRequiredElm;function requireElm(){if(hasRequiredElm)return elm_1;hasRequiredElm=1,elm_1=a,a.displayName="elm",a.aliases=[];function a(i){i.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}return elm_1}var erb_1,hasRequiredErb;function requireErb(){if(hasRequiredErb)return erb_1;hasRequiredErb=1;var a=requireRuby(),i=requireMarkupTemplating();erb_1=_e,_e.displayName="erb",_e.aliases=[];function _e(pt){pt.register(a),pt.register(i),function(Lt){Lt.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:Lt.languages.ruby}},Lt.hooks.add("before-tokenize",function(Gt){var Ct=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;Lt.languages["markup-templating"].buildPlaceholders(Gt,"erb",Ct)}),Lt.hooks.add("after-tokenize",function(Gt){Lt.languages["markup-templating"].tokenizePlaceholders(Gt,"erb")})}(pt)}return erb_1}var erlang_1,hasRequiredErlang;function requireErlang(){if(hasRequiredErlang)return erlang_1;hasRequiredErlang=1,erlang_1=a,a.displayName="erlang",a.aliases=[];function a(i){i.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}return erlang_1}var lua_1,hasRequiredLua;function requireLua(){if(hasRequiredLua)return lua_1;hasRequiredLua=1,lua_1=a,a.displayName="lua",a.aliases=[];function a(i){i.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}return lua_1}var etlua_1,hasRequiredEtlua;function requireEtlua(){if(hasRequiredEtlua)return etlua_1;hasRequiredEtlua=1;var a=requireLua(),i=requireMarkupTemplating();etlua_1=_e,_e.displayName="etlua",_e.aliases=[];function _e(pt){pt.register(a),pt.register(i),function(Lt){Lt.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:Lt.languages.lua}},Lt.hooks.add("before-tokenize",function(Gt){var Ct=/<%[\s\S]+?%>/g;Lt.languages["markup-templating"].buildPlaceholders(Gt,"etlua",Ct)}),Lt.hooks.add("after-tokenize",function(Gt){Lt.languages["markup-templating"].tokenizePlaceholders(Gt,"etlua")})}(pt)}return etlua_1}var excelFormula_1,hasRequiredExcelFormula;function requireExcelFormula(){if(hasRequiredExcelFormula)return excelFormula_1;hasRequiredExcelFormula=1,excelFormula_1=a,a.displayName="excelFormula",a.aliases=[];function a(i){i.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"keyword"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"property",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"property"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},i.languages.xlsx=i.languages.xls=i.languages["excel-formula"]}return excelFormula_1}var factor_1,hasRequiredFactor;function requireFactor(){if(hasRequiredFactor)return factor_1;hasRequiredFactor=1,factor_1=a,a.displayName="factor",a.aliases=[];function a(i){(function(_e){var pt={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},Lt={number:/\\[^\s']|%\w/},Gt={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:pt},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:pt},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:pt}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:Lt.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:Lt},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:Lt}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:Lt}},Ct=function(xt){return(xt+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},Rt=function(xt){return new RegExp("(^|\\s)(?:"+xt.map(Ct).join("|")+")(?=\\s|$)")},o={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(o).forEach(function(xt){Gt[xt].pattern=Rt(o[xt])});var it=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"];Gt.combinators.pattern=Rt(it),_e.languages.factor=Gt})(i)}return factor_1}var _false,hasRequired_false;function require_false(){if(hasRequired_false)return _false;hasRequired_false=1,_false=a,a.displayName="$false",a.aliases=[];function a(i){(function(_e){_e.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete i.languages["firestore-security-rules"]["class-name"],i.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}return firestoreSecurityRules_1}var flow_1,hasRequiredFlow;function requireFlow(){if(hasRequiredFlow)return flow_1;hasRequiredFlow=1,flow_1=a,a.displayName="flow",a.aliases=[];function a(i){(function(_e){_e.languages.flow=_e.languages.extend("javascript",{}),_e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),_e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete _e.languages.flow.parameter,_e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(_e.languages.flow.keyword)||(_e.languages.flow.keyword=[_e.languages.flow.keyword]),_e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(i)}return flow_1}var fortran_1,hasRequiredFortran;function requireFortran(){if(hasRequiredFortran)return fortran_1;hasRequiredFortran=1,fortran_1=a,a.displayName="fortran",a.aliases=[];function a(i){i.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}return fortran_1}var fsharp_1,hasRequiredFsharp;function requireFsharp(){if(hasRequiredFsharp)return fsharp_1;hasRequiredFsharp=1,fsharp_1=a,a.displayName="fsharp",a.aliases=[];function a(i){i.languages.fsharp=i.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),i.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),i.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),i.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:i.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}return fsharp_1}var ftl_1,hasRequiredFtl;function requireFtl(){if(hasRequiredFtl)return ftl_1;hasRequiredFtl=1;var a=requireMarkupTemplating();ftl_1=i,i.displayName="ftl",i.aliases=[];function i(_e){_e.register(a),function(pt){for(var Lt=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,Gt=0;Gt<2;Gt++)Lt=Lt.replace(//g,function(){return Lt});Lt=Lt.replace(//g,/[^\s\S]/.source);var Ct={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return Lt})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return Lt})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};Ct.string[1].inside.interpolation.inside.rest=Ct,pt.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:Ct}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:Ct}}}},pt.hooks.add("before-tokenize",function(Rt){var o=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return Lt}),"gi");pt.languages["markup-templating"].buildPlaceholders(Rt,"ftl",o)}),pt.hooks.add("after-tokenize",function(Rt){pt.languages["markup-templating"].tokenizePlaceholders(Rt,"ftl")})}(_e)}return ftl_1}var gap_1,hasRequiredGap;function requireGap(){if(hasRequiredGap)return gap_1;hasRequiredGap=1,gap_1=a,a.displayName="gap",a.aliases=[];function a(i){i.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},i.languages.gap.shell.inside.gap.inside=i.languages.gap}return gap_1}var gcode_1,hasRequiredGcode;function requireGcode(){if(hasRequiredGcode)return gcode_1;hasRequiredGcode=1,gcode_1=a,a.displayName="gcode",a.aliases=[];function a(i){i.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}return gcode_1}var gdscript_1,hasRequiredGdscript;function requireGdscript(){if(hasRequiredGdscript)return gdscript_1;hasRequiredGdscript=1,gdscript_1=a,a.displayName="gdscript",a.aliases=[];function a(i){i.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}return gdscript_1}var gedcom_1,hasRequiredGedcom;function requireGedcom(){if(hasRequiredGedcom)return gedcom_1;hasRequiredGedcom=1,gedcom_1=a,a.displayName="gedcom",a.aliases=[];function a(i){i.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},tag:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"string"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}return gedcom_1}var gherkin_1,hasRequiredGherkin;function requireGherkin(){if(hasRequiredGherkin)return gherkin_1;hasRequiredGherkin=1,gherkin_1=a,a.displayName="gherkin",a.aliases=[];function a(i){(function(_e){var pt=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;_e.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+pt+")(?:"+pt+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(pt),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(i)}return gherkin_1}var git_1,hasRequiredGit;function requireGit(){if(hasRequiredGit)return git_1;hasRequiredGit=1,git_1=a,a.displayName="git",a.aliases=[];function a(i){i.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}return git_1}var glsl_1,hasRequiredGlsl;function requireGlsl(){if(hasRequiredGlsl)return glsl_1;hasRequiredGlsl=1;var a=requireC();glsl_1=i,i.displayName="glsl",i.aliases=[];function i(_e){_e.register(a),_e.languages.glsl=_e.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}return glsl_1}var gml_1,hasRequiredGml;function requireGml(){if(hasRequiredGml)return gml_1;hasRequiredGml=1,gml_1=a,a.displayName="gml",a.aliases=[];function a(i){i.languages.gamemakerlanguage=i.languages.gml=i.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}return gml_1}var gn_1,hasRequiredGn;function requireGn(){if(hasRequiredGn)return gn_1;hasRequiredGn=1,gn_1=a,a.displayName="gn",a.aliases=["gni"];function a(i){i.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},i.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=i.languages.gn,i.languages.gni=i.languages.gn}return gn_1}var goModule_1,hasRequiredGoModule;function requireGoModule(){if(hasRequiredGoModule)return goModule_1;hasRequiredGoModule=1,goModule_1=a,a.displayName="goModule",a.aliases=[];function a(i){i.languages["go-mod"]=i.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}return goModule_1}var go_1,hasRequiredGo;function requireGo(){if(hasRequiredGo)return go_1;hasRequiredGo=1,go_1=a,a.displayName="go",a.aliases=[];function a(i){i.languages.go=i.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),i.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete i.languages.go["class-name"]}return go_1}var graphql_1,hasRequiredGraphql;function requireGraphql(){if(hasRequiredGraphql)return graphql_1;hasRequiredGraphql=1,graphql_1=a,a.displayName="graphql",a.aliases=[];function a(i){i.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:i.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},i.hooks.add("after-tokenize",function(pt){if(pt.language!=="graphql")return;var Lt=pt.tokens.filter(function(_){return typeof _!="string"&&_.type!=="comment"&&_.type!=="scalar"}),Gt=0;function Ct(_){return Lt[Gt+_]}function Rt(_,rt){rt=rt||0;for(var tt=0;tt<_.length;tt++){var st=Ct(tt+rt);if(!st||st.type!==_[tt])return!1}return!0}function o(_,rt){for(var tt=1,st=Gt;st0)){var ut=o(/^\{$/,/^\}$/);if(ut===-1)continue;for(var ht=Gt;ht=0&&it(j,"variable-input")}}}}})}return graphql_1}var groovy_1,hasRequiredGroovy;function requireGroovy(){if(hasRequiredGroovy)return groovy_1;hasRequiredGroovy=1,groovy_1=a,a.displayName="groovy",a.aliases=[];function a(i){i.languages.groovy=i.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),i.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),i.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),i.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),i.hooks.add("wrap",function(_e){if(_e.language==="groovy"&&_e.type==="string"){var pt=_e.content.value[0];if(pt!="'"){var Lt=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;pt==="$"&&(Lt=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),_e.content.value=_e.content.value.replace(/</g,"<").replace(/&/g,"&"),_e.content=i.highlight(_e.content.value,{expression:{pattern:Lt,lookbehind:!0,inside:i.languages.groovy}}),_e.classes.push(pt==="/"?"regex":"gstring")}}})}return groovy_1}var haml_1,hasRequiredHaml;function requireHaml(){if(hasRequiredHaml)return haml_1;hasRequiredHaml=1;var a=requireRuby();haml_1=i,i.displayName="haml",i.aliases=[];function i(_e){_e.register(a),function(pt){pt.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:pt.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:pt.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:pt.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:pt.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:pt.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:pt.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:pt.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var Lt="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",Gt=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],Ct={},Rt=0,o=Gt.length;Rt@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},pt.hooks.add("before-tokenize",function(Lt){var Gt=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;pt.languages["markup-templating"].buildPlaceholders(Lt,"handlebars",Gt)}),pt.hooks.add("after-tokenize",function(Lt){pt.languages["markup-templating"].tokenizePlaceholders(Lt,"handlebars")}),pt.languages.hbs=pt.languages.handlebars}(_e)}return handlebars_1}var haskell_1,hasRequiredHaskell;function requireHaskell(){if(hasRequiredHaskell)return haskell_1;hasRequiredHaskell=1,haskell_1=a,a.displayName="haskell",a.aliases=["hs"];function a(i){i.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},i.languages.hs=i.languages.haskell}return haskell_1}var haxe_1,hasRequiredHaxe;function requireHaxe(){if(hasRequiredHaxe)return haxe_1;hasRequiredHaxe=1,haxe_1=a,a.displayName="haxe",a.aliases=[];function a(i){i.languages.haxe=i.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<{1,3}|[-+*/%!=&|^])=?|[?:~]/}),i.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:i.languages.haxe}}},string:/[\s\S]+/}}}),i.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:i.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),i.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}return haxe_1}var hcl_1,hasRequiredHcl;function requireHcl(){if(hasRequiredHcl)return hcl_1;hasRequiredHcl=1,hcl_1=a,a.displayName="hcl",a.aliases=[];function a(i){i.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}return hcl_1}var hlsl_1,hasRequiredHlsl;function requireHlsl(){if(hasRequiredHlsl)return hlsl_1;hasRequiredHlsl=1;var a=requireC();hlsl_1=i,i.displayName="hlsl",i.aliases=[];function i(_e){_e.register(a),_e.languages.hlsl=_e.languages.extend("c",{"class-name":[_e.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}return hlsl_1}var hoon_1,hasRequiredHoon;function requireHoon(){if(hasRequiredHoon)return hoon_1;hasRequiredHoon=1,hoon_1=a,a.displayName="hoon",a.aliases=[];function a(i){i.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}return hoon_1}var hpkp_1,hasRequiredHpkp;function requireHpkp(){if(hasRequiredHpkp)return hpkp_1;hasRequiredHpkp=1,hpkp_1=a,a.displayName="hpkp",a.aliases=[];function a(i){i.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return hpkp_1}var hsts_1,hasRequiredHsts;function requireHsts(){if(hasRequiredHsts)return hsts_1;hasRequiredHsts=1,hsts_1=a,a.displayName="hsts",a.aliases=[];function a(i){i.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return hsts_1}var http_1,hasRequiredHttp;function requireHttp(){if(hasRequiredHttp)return http_1;hasRequiredHttp=1,http_1=a,a.displayName="http",a.aliases=[];function a(i){(function(_e){function pt(et){return RegExp("(^(?:"+et+"):[ ]*(?![ ]))[^]+","i")}_e.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:_e.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:pt(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:_e.languages.csp},{pattern:pt(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:_e.languages.hpkp},{pattern:pt(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:_e.languages.hsts},{pattern:pt(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var Lt=_e.languages,Gt={"application/javascript":Lt.javascript,"application/json":Lt.json||Lt.javascript,"application/xml":Lt.xml,"text/xml":Lt.xml,"text/html":Lt.html,"text/css":Lt.css,"text/plain":Lt.plain},Ct={"application/json":!0,"application/xml":!0};function Rt(et){var Tt=et.replace(/^[a-z]+\//,""),yt="\\w+/(?:[\\w.-]+\\+)+"+Tt+"(?![+\\w.-])";return"(?:"+et+"|"+yt+")"}var o;for(var it in Gt)if(Gt[it]){o=o||{};var xt=Ct[it]?Rt(it):it;o[it.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+xt+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:Gt[it]}}o&&_e.languages.insertBefore("http","header",o)})(i)}return http_1}var ichigojam_1,hasRequiredIchigojam;function requireIchigojam(){if(hasRequiredIchigojam)return ichigojam_1;hasRequiredIchigojam=1,ichigojam_1=a,a.displayName="ichigojam",a.aliases=[];function a(i){i.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}return ichigojam_1}var icon_1,hasRequiredIcon;function requireIcon(){if(hasRequiredIcon)return icon_1;hasRequiredIcon=1,icon_1=a,a.displayName="icon",a.aliases=[];function a(i){i.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}return icon_1}var icuMessageFormat_1,hasRequiredIcuMessageFormat;function requireIcuMessageFormat(){if(hasRequiredIcuMessageFormat)return icuMessageFormat_1;hasRequiredIcuMessageFormat=1,icuMessageFormat_1=a,a.displayName="icuMessageFormat",a.aliases=[];function a(i){(function(_e){function pt(it,xt){return xt<=0?/[]/.source:it.replace(//g,function(){return pt(it,xt-1)})}var Lt=/'[{}:=,](?:[^']|'')*'(?!')/,Gt={pattern:/''/,greedy:!0,alias:"operator"},Ct={pattern:Lt,greedy:!0,inside:{escape:Gt}},Rt=pt(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return Lt.source}),8),o={pattern:RegExp(Rt),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};_e.languages["icu-message-format"]={argument:{pattern:RegExp(Rt),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":o,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":o,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+pt(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:Gt,string:Ct},o.inside.message.inside=_e.languages["icu-message-format"],_e.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=_e.languages["icu-message-format"]})(i)}return icuMessageFormat_1}var idris_1,hasRequiredIdris;function requireIdris(){if(hasRequiredIdris)return idris_1;hasRequiredIdris=1;var a=requireHaskell();idris_1=i,i.displayName="idris",i.aliases=["idr"];function i(_e){_e.register(a),_e.languages.idris=_e.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),_e.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),_e.languages.idr=_e.languages.idris}return idris_1}var iecst_1,hasRequiredIecst;function requireIecst(){if(hasRequiredIecst)return iecst_1;hasRequiredIecst=1,iecst_1=a,a.displayName="iecst",a.aliases=[];function a(i){i.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}return iecst_1}var ignore_1,hasRequiredIgnore;function requireIgnore(){if(hasRequiredIgnore)return ignore_1;hasRequiredIgnore=1,ignore_1=a,a.displayName="ignore",a.aliases=["gitignore","hgignore","npmignore"];function a(i){(function(_e){_e.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},_e.languages.gitignore=_e.languages.ignore,_e.languages.hgignore=_e.languages.ignore,_e.languages.npmignore=_e.languages.ignore})(i)}return ignore_1}var inform7_1,hasRequiredInform7;function requireInform7(){if(hasRequiredInform7)return inform7_1;hasRequiredInform7=1,inform7_1=a,a.displayName="inform7",a.aliases=[];function a(i){i.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},i.languages.inform7.string.inside.substitution.inside.rest=i.languages.inform7,i.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}return inform7_1}var ini_1,hasRequiredIni;function requireIni(){if(hasRequiredIni)return ini_1;hasRequiredIni=1,ini_1=a,a.displayName="ini",a.aliases=[];function a(i){i.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}return ini_1}var io_1,hasRequiredIo;function requireIo(){if(hasRequiredIo)return io_1;hasRequiredIo=1,io_1=a,a.displayName="io",a.aliases=[];function a(i){i.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}return j_1}var java_1,hasRequiredJava;function requireJava(){if(hasRequiredJava)return java_1;hasRequiredJava=1,java_1=a,a.displayName="java",a.aliases=[];function a(i){(function(_e){var pt=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,Lt=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,Gt={pattern:RegExp(Lt+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};_e.languages.java=_e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[Gt,{pattern:RegExp(Lt+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:Gt.inside}],keyword:pt,function:[_e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),_e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),_e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":Gt,keyword:pt,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return pt.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(i)}return java_1}var javadoclike_1,hasRequiredJavadoclike;function requireJavadoclike(){if(hasRequiredJavadoclike)return javadoclike_1;hasRequiredJavadoclike=1,javadoclike_1=a,a.displayName="javadoclike",a.aliases=[];function a(i){(function(_e){var pt=_e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function Lt(Ct,Rt){var o="doc-comment",it=_e.languages[Ct];if(it){var xt=it[o];if(!xt){var et={};et[o]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},it=_e.languages.insertBefore(Ct,"comment",et),xt=it[o]}if(xt instanceof RegExp&&(xt=it[o]={pattern:xt}),Array.isArray(xt))for(var Tt=0,yt=xt.length;Tt)?|/.source.replace(//g,function(){return Ct});Lt.languages.javadoc=Lt.languages.extend("javadoclike",{}),Lt.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+Rt+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:Lt.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:Gt,lookbehind:!0,inside:Lt.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:Gt,lookbehind:!0,inside:{tag:Lt.languages.markup.tag,entity:Lt.languages.markup.entity,code:{pattern:/.+/,inside:Lt.languages.java,alias:"language-java"}}}}}],tag:Lt.languages.markup.tag,entity:Lt.languages.markup.entity}),Lt.languages.javadoclike.addSupport("java",Lt.languages.javadoc)}(pt)}return javadoc_1}var javastacktrace_1,hasRequiredJavastacktrace;function requireJavastacktrace(){if(hasRequiredJavastacktrace)return javastacktrace_1;hasRequiredJavastacktrace=1,javastacktrace_1=a,a.displayName="javastacktrace",a.aliases=[];function a(i){i.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:|[\w$]+)\()/,function:/(?:|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}return javastacktrace_1}var jexl_1,hasRequiredJexl;function requireJexl(){if(hasRequiredJexl)return jexl_1;hasRequiredJexl=1,jexl_1=a,a.displayName="jexl",a.aliases=[];function a(i){i.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}return jexl_1}var jolie_1,hasRequiredJolie;function requireJolie(){if(hasRequiredJolie)return jolie_1;hasRequiredJolie=1,jolie_1=a,a.displayName="jolie",a.aliases=[];function a(i){i.languages.jolie=i.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),i.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}return jolie_1}var jq_1,hasRequiredJq;function requireJq(){if(hasRequiredJq)return jq_1;hasRequiredJq=1,jq_1=a,a.displayName="jq",a.aliases=[];function a(i){(function(_e){var pt=/\\\((?:[^()]|\([^()]*\))*\)/.source,Lt=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return pt})),Gt={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+pt),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},Ct=_e.languages.jq={comment:/#.*/,property:{pattern:RegExp(Lt.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:Gt},string:{pattern:Lt,lookbehind:!0,greedy:!0,inside:Gt},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};Gt.interpolation.inside.content.inside=Ct})(i)}return jq_1}var jsExtras_1,hasRequiredJsExtras;function requireJsExtras(){if(hasRequiredJsExtras)return jsExtras_1;hasRequiredJsExtras=1,jsExtras_1=a,a.displayName="jsExtras",a.aliases=[];function a(i){(function(_e){_e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+_e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),_e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+_e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),_e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function pt(it,xt){return RegExp(it.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),xt)}_e.languages.insertBefore("javascript","keyword",{imports:{pattern:pt(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:_e.languages.javascript},exports:{pattern:pt(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:_e.languages.javascript}}),_e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),_e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),_e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:pt(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var Lt=["function","function-variable","method","method-variable","property-access"],Gt=0;Gt=vt.length)return;var at=bt[ft];if(typeof at=="string"||typeof at.content=="string"){var mt=vt[tt],St=typeof at=="string"?at:at.content,_t=St.indexOf(mt);if(_t!==-1){++tt;var Mt=St.substring(0,_t),Et=et(st[mt]),kt=St.substring(_t+mt.length),wt=[];if(Mt&&wt.push(Mt),wt.push(Et),kt){var ct=[kt];dt(ct),wt.push.apply(wt,ct)}typeof at=="string"?(bt.splice.apply(bt,[ft,1].concat(wt)),ft+=wt.length-1):at.content=wt}}else{var It=at.content;Array.isArray(It)?dt(It):dt([It])}}}return dt(nt),new _e.Token(_,nt,"language-"+_,ht)}var yt={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};_e.hooks.add("after-tokenize",function(ht){if(!(ht.language in yt))return;function j(_){for(var rt=0,tt=_.length;rt]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),_e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete _e.languages.typescript.parameter,delete _e.languages.typescript["literal-property"];var pt=_e.languages.extend("typescript",{});delete pt["class-name"],_e.languages.typescript["class-name"].inside=pt,_e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:pt}}}}),_e.languages.ts=_e.languages.typescript})(i)}return typescript_1}var jsdoc_1,hasRequiredJsdoc;function requireJsdoc(){if(hasRequiredJsdoc)return jsdoc_1;hasRequiredJsdoc=1;var a=requireJavadoclike(),i=requireTypescript();jsdoc_1=_e,_e.displayName="jsdoc",_e.aliases=[];function _e(pt){pt.register(a),pt.register(i),function(Lt){var Gt=Lt.languages.javascript,Ct=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,Rt="(@(?:arg|argument|param|property)\\s+(?:"+Ct+"\\s+)?)";Lt.languages.jsdoc=Lt.languages.extend("javadoclike",{parameter:{pattern:RegExp(Rt+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),Lt.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(Rt+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:Gt,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return Ct})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+Ct),lookbehind:!0,inside:{string:Gt.string,number:Gt.number,boolean:Gt.boolean,keyword:Lt.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:Gt,alias:"language-javascript"}}}}),Lt.languages.javadoclike.addSupport("javascript",Lt.languages.jsdoc)}(pt)}return jsdoc_1}var json_1,hasRequiredJson;function requireJson(){if(hasRequiredJson)return json_1;hasRequiredJson=1,json_1=a,a.displayName="json",a.aliases=["webmanifest"];function a(i){i.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},i.languages.webmanifest=i.languages.json}return json_1}var json5_1,hasRequiredJson5;function requireJson5(){if(hasRequiredJson5)return json5_1;hasRequiredJson5=1;var a=requireJson();json5_1=i,i.displayName="json5",i.aliases=[];function i(_e){_e.register(a),function(pt){var Lt=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;pt.languages.json5=pt.languages.extend("json",{property:[{pattern:RegExp(Lt.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:Lt,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(_e)}return json5_1}var jsonp_1,hasRequiredJsonp;function requireJsonp(){if(hasRequiredJsonp)return jsonp_1;hasRequiredJsonp=1;var a=requireJson();jsonp_1=i,i.displayName="jsonp",i.aliases=[];function i(_e){_e.register(a),_e.languages.jsonp=_e.languages.extend("json",{punctuation:/[{}[\]();,.]/}),_e.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}return jsonp_1}var jsstacktrace_1,hasRequiredJsstacktrace;function requireJsstacktrace(){if(hasRequiredJsstacktrace)return jsstacktrace_1;hasRequiredJsstacktrace=1,jsstacktrace_1=a,a.displayName="jsstacktrace",a.aliases=[];function a(i){i.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js||.*(?:node_modules|\(\)|\(|$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}return jsstacktrace_1}var jsx_1,hasRequiredJsx;function requireJsx(){if(hasRequiredJsx)return jsx_1;hasRequiredJsx=1,jsx_1=a,a.displayName="jsx",a.aliases=[];function a(i){(function(_e){var pt=_e.util.clone(_e.languages.javascript),Lt=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,Gt=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,Ct=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function Rt(xt,et){return xt=xt.replace(//g,function(){return Lt}).replace(//g,function(){return Gt}).replace(//g,function(){return Ct}),RegExp(xt,et)}Ct=Rt(Ct).source,_e.languages.jsx=_e.languages.extend("markup",pt),_e.languages.jsx.tag.pattern=Rt(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),_e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,_e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,_e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,_e.languages.jsx.tag.inside.comment=pt.comment,_e.languages.insertBefore("inside","attr-name",{spread:{pattern:Rt(//.source),inside:_e.languages.jsx}},_e.languages.jsx.tag),_e.languages.insertBefore("inside","special-attr",{script:{pattern:Rt(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:_e.languages.jsx}}},_e.languages.jsx.tag);var o=function(xt){return xt?typeof xt=="string"?xt:typeof xt.content=="string"?xt.content:xt.content.map(o).join(""):""},it=function(xt){for(var et=[],Tt=0;Tt0&&et[et.length-1].tagName===o(yt.content[0].content[1])&&et.pop():yt.content[yt.content.length-1].content==="/>"||et.push({tagName:o(yt.content[0].content[1]),openedBraces:0}):et.length>0&&yt.type==="punctuation"&&yt.content==="{"?et[et.length-1].openedBraces++:et.length>0&&et[et.length-1].openedBraces>0&&yt.type==="punctuation"&&yt.content==="}"?et[et.length-1].openedBraces--:ut=!0),(ut||typeof yt=="string")&&et.length>0&&et[et.length-1].openedBraces===0){var ht=o(yt);Tt0&&(typeof xt[Tt-1]=="string"||xt[Tt-1].type==="plain-text")&&(ht=o(xt[Tt-1])+ht,xt.splice(Tt-1,1),Tt--),xt[Tt]=new _e.Token("plain-text",ht,null,ht)}yt.content&&typeof yt.content!="string"&&it(yt.content)}};_e.hooks.add("after-tokenize",function(xt){xt.language!=="jsx"&&xt.language!=="tsx"||it(xt.tokens)})})(i)}return jsx_1}var julia_1,hasRequiredJulia;function requireJulia(){if(hasRequiredJulia)return julia_1;hasRequiredJulia=1,julia_1=a,a.displayName="julia",a.aliases=[];function a(i){i.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}return julia_1}var keepalived_1,hasRequiredKeepalived;function requireKeepalived(){if(hasRequiredKeepalived)return keepalived_1;hasRequiredKeepalived=1,keepalived_1=a,a.displayName="keepalived",a.aliases=[];function a(i){i.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}|(?:[\da-f]{1,4}:){0,5}:|::(?:[\da-f]{1,4}:){0,5}|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|(?:\/\d{1,2})?)\b/.source.replace(//g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}return keepalived_1}var keyman_1,hasRequiredKeyman;function requireKeyman(){if(hasRequiredKeyman)return keyman_1;hasRequiredKeyman=1,keyman_1=a,a.displayName="keyman",a.aliases=[];function a(i){i.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|nomatch|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}return keyman_1}var kotlin_1,hasRequiredKotlin;function requireKotlin(){if(hasRequiredKotlin)return kotlin_1;hasRequiredKotlin=1,kotlin_1=a,a.displayName="kotlin",a.aliases=["kt","kts"];function a(i){(function(_e){_e.languages.kotlin=_e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete _e.languages.kotlin["class-name"];var pt={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:_e.languages.kotlin}};_e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:pt},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:pt},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete _e.languages.kotlin.string,_e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),_e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),_e.languages.kt=_e.languages.kotlin,_e.languages.kts=_e.languages.kotlin})(i)}return kotlin_1}var kumir_1,hasRequiredKumir;function requireKumir(){if(hasRequiredKumir)return kumir_1;hasRequiredKumir=1,kumir_1=a,a.displayName="kumir",a.aliases=["kum"];function a(i){(function(_e){var pt=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function Lt(Gt,Ct){return RegExp(Gt.replace(//g,pt),Ct)}_e.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:Lt(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:Lt(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:Lt(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:Lt(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:Lt(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:Lt(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:Lt(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:Lt(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},_e.languages.kum=_e.languages.kumir})(i)}return kumir_1}var kusto_1,hasRequiredKusto;function requireKusto(){if(hasRequiredKusto)return kusto_1;hasRequiredKusto=1,kusto_1=a,a.displayName="kusto",a.aliases=[];function a(i){i.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}return kusto_1}var latex_1,hasRequiredLatex;function requireLatex(){if(hasRequiredLatex)return latex_1;hasRequiredLatex=1,latex_1=a,a.displayName="latex",a.aliases=["tex","context"];function a(i){(function(_e){var pt=/\\(?:[^a-z()[\]]|[a-z*]+)/i,Lt={"equation-command":{pattern:pt,alias:"regex"}};_e.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:Lt,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:Lt,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:pt,alias:"selector"},punctuation:/[[\]{}&]/},_e.languages.tex=_e.languages.latex,_e.languages.context=_e.languages.latex})(i)}return latex_1}var php_1,hasRequiredPhp;function requirePhp(){if(hasRequiredPhp)return php_1;hasRequiredPhp=1;var a=requireMarkupTemplating();php_1=i,i.displayName="php",i.aliases=[];function i(_e){_e.register(a),function(pt){var Lt=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,Gt=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],Ct=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,Rt=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,o=/[{}\[\](),:;]/;pt.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:Lt,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:Gt,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:Ct,operator:Rt,punctuation:o};var it={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:pt.languages.php},xt=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:it}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:it}}];pt.languages.insertBefore("php","variable",{string:xt,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:Lt,string:xt,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:Gt,number:Ct,operator:Rt,punctuation:o}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),pt.hooks.add("before-tokenize",function(et){if(/<\?/.test(et.code)){var Tt=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;pt.languages["markup-templating"].buildPlaceholders(et,"php",Tt)}}),pt.hooks.add("after-tokenize",function(et){pt.languages["markup-templating"].tokenizePlaceholders(et,"php")})}(_e)}return php_1}var latte_1,hasRequiredLatte;function requireLatte(){if(hasRequiredLatte)return latte_1;hasRequiredLatte=1;var a=requireMarkupTemplating(),i=requirePhp();latte_1=_e,_e.displayName="latte",_e.aliases=[];function _e(pt){pt.register(a),pt.register(i),function(Lt){Lt.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:Lt.languages.php}};var Gt=Lt.languages.extend("markup",{});Lt.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:Lt.languages.php}}}}}},Gt.tag),Lt.hooks.add("before-tokenize",function(Ct){if(Ct.language==="latte"){var Rt=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;Lt.languages["markup-templating"].buildPlaceholders(Ct,"latte",Rt),Ct.grammar=Gt}}),Lt.hooks.add("after-tokenize",function(Ct){Lt.languages["markup-templating"].tokenizePlaceholders(Ct,"latte")})}(pt)}return latte_1}var less_1,hasRequiredLess;function requireLess(){if(hasRequiredLess)return less_1;hasRequiredLess=1,less_1=a,a.displayName="less",a.aliases=[];function a(i){i.languages.less=i.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),i.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}return less_1}var scheme_1,hasRequiredScheme;function requireScheme(){if(hasRequiredScheme)return scheme_1;hasRequiredScheme=1,scheme_1=a,a.displayName="scheme",a.aliases=[];function a(i){(function(_e){_e.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(pt({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function pt(Lt){for(var Gt in Lt)Lt[Gt]=Lt[Gt].replace(/<[\w\s]+>/g,function(Ct){return"(?:"+Lt[Ct].trim()+")"});return Lt[Gt]}})(i)}return scheme_1}var lilypond_1,hasRequiredLilypond;function requireLilypond(){if(hasRequiredLilypond)return lilypond_1;hasRequiredLilypond=1;var a=requireScheme();lilypond_1=i,i.displayName="lilypond",i.aliases=[];function i(_e){_e.register(a),function(pt){for(var Lt=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,Gt=5,Ct=0;Ct/g,function(){return Lt});Lt=Lt.replace(//g,/[^\s\S]/.source);var Rt=pt.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return Lt}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:pt.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};Rt["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=Rt,pt.languages.ly=Rt}(_e)}return lilypond_1}var liquid_1,hasRequiredLiquid;function requireLiquid(){if(hasRequiredLiquid)return liquid_1;hasRequiredLiquid=1;var a=requireMarkupTemplating();liquid_1=i,i.displayName="liquid",i.aliases=[];function i(_e){_e.register(a),_e.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},_e.hooks.add("before-tokenize",function(pt){var Lt=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,Gt=!1;_e.languages["markup-templating"].buildPlaceholders(pt,"liquid",Lt,function(Ct){var Rt=/^\{%-?\s*(\w+)/.exec(Ct);if(Rt){var o=Rt[1];if(o==="raw"&&!Gt)return Gt=!0,!0;if(o==="endraw")return Gt=!1,!0}return!Gt})}),_e.hooks.add("after-tokenize",function(pt){_e.languages["markup-templating"].tokenizePlaceholders(pt,"liquid")})}return liquid_1}var lisp_1,hasRequiredLisp;function requireLisp(){if(hasRequiredLisp)return lisp_1;hasRequiredLisp=1,lisp_1=a,a.displayName="lisp",a.aliases=[];function a(i){(function(_e){function pt(ht){return RegExp(/(\()/.source+"(?:"+ht+")"+/(?=[\s\)])/.source)}function Lt(ht){return RegExp(/([\s([])/.source+"(?:"+ht+")"+/(?=[\s)])/.source)}var Gt=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,Ct="&"+Gt,Rt="(\\()",o="(?=\\))",it="(?=\\s)",xt=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,et={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+Gt+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+Gt),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+Gt),alias:"property"},splice:{pattern:RegExp(",@?"+Gt),alias:["symbol","variable"]},keyword:[{pattern:RegExp(Rt+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+it),lookbehind:!0},{pattern:RegExp(Rt+"(?:append|by|collect|concat|do|finally|for|in|return)"+it),lookbehind:!0}],declare:{pattern:pt(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:pt(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:Lt(/nil|t/.source),lookbehind:!0},number:{pattern:Lt(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(Rt+"def(?:const|custom|group|var)\\s+"+Gt),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(Gt)}},defun:{pattern:RegExp(Rt+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+Gt+/\s+\(/.source+xt+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+Gt),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(Rt+"lambda\\s+\\(\\s*(?:&?"+Gt+"(?:\\s+&?"+Gt+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(Rt+Gt),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},Tt={"lisp-marker":RegExp(Ct),varform:{pattern:RegExp(/\(/.source+Gt+/\s+(?=\S)/.source+xt+/\)/.source),inside:et},argument:{pattern:RegExp(/(^|[\s(])/.source+Gt),lookbehind:!0,alias:"variable"},rest:et},yt="\\S+(?:\\s+\\S+)*",ut={pattern:RegExp(Rt+xt+o),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+yt),inside:Tt},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+yt),inside:Tt},keys:{pattern:RegExp("&key\\s+"+yt+"(?:\\s+&allow-other-keys)?"),inside:Tt},argument:{pattern:RegExp(Gt),alias:"variable"},punctuation:/[()]/}};et.lambda.inside.arguments=ut,et.defun.inside.arguments=_e.util.clone(ut),et.defun.inside.arguments.inside.sublist=ut,_e.languages.lisp=et,_e.languages.elisp=et,_e.languages.emacs=et,_e.languages["emacs-lisp"]=et})(i)}return lisp_1}var livescript_1,hasRequiredLivescript;function requireLivescript(){if(hasRequiredLivescript)return livescript_1;hasRequiredLivescript=1,livescript_1=a,a.displayName="livescript",a.aliases=[];function a(i){i.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},i.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=i.languages.livescript}return livescript_1}var llvm_1,hasRequiredLlvm;function requireLlvm(){if(hasRequiredLlvm)return llvm_1;hasRequiredLlvm=1,llvm_1=a,a.displayName="llvm",a.aliases=[];function a(i){(function(_e){_e.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(i)}return llvm_1}var log_1,hasRequiredLog;function requireLog(){if(hasRequiredLog)return log_1;hasRequiredLog=1,log_1=a,a.displayName="log",a.aliases=[];function a(i){i.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:i.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}return log_1}var lolcode_1,hasRequiredLolcode;function requireLolcode(){if(hasRequiredLolcode)return lolcode_1;hasRequiredLolcode=1,lolcode_1=a,a.displayName="lolcode",a.aliases=[];function a(i){i.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}return lolcode_1}var magma_1,hasRequiredMagma;function requireMagma(){if(hasRequiredMagma)return magma_1;hasRequiredMagma=1,magma_1=a,a.displayName="magma",a.aliases=[];function a(i){i.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}return magma_1}var makefile_1,hasRequiredMakefile;function requireMakefile(){if(hasRequiredMakefile)return makefile_1;hasRequiredMakefile=1,makefile_1=a,a.displayName="makefile",a.aliases=[];function a(i){i.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}return makefile_1}var markdown_1,hasRequiredMarkdown;function requireMarkdown(){if(hasRequiredMarkdown)return markdown_1;hasRequiredMarkdown=1,markdown_1=a,a.displayName="markdown",a.aliases=["md"];function a(i){(function(_e){var pt=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function Lt(Tt){return Tt=Tt.replace(//g,function(){return pt}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+Tt+")")}var Gt=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,Ct=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return Gt}),Rt=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;_e.languages.markdown=_e.languages.extend("markup",{}),_e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:_e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+Ct+Rt+"(?:"+Ct+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+Ct+Rt+")(?:"+Ct+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(Gt),inside:_e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+Ct+")"+Rt+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+Ct+"$"),inside:{"table-header":{pattern:RegExp(Gt),alias:"important",inside:_e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:Lt(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:Lt(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:Lt(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:Lt(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(Tt){["url","bold","italic","strike","code-snippet"].forEach(function(yt){Tt!==yt&&(_e.languages.markdown[Tt].inside.content.inside[yt]=_e.languages.markdown[yt])})}),_e.hooks.add("after-tokenize",function(Tt){if(Tt.language!=="markdown"&&Tt.language!=="md")return;function yt(ut){if(!(!ut||typeof ut=="string"))for(var ht=0,j=ut.length;ht",quot:'"'},xt=String.fromCodePoint||String.fromCharCode;function et(Tt){var yt=Tt.replace(o,"");return yt=yt.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(ut,ht){if(ht=ht.toLowerCase(),ht[0]==="#"){var j;return ht[1]==="x"?j=parseInt(ht.slice(2),16):j=Number(ht.slice(1)),xt(j)}else{var _=it[ht];return _||ut}}),yt}_e.languages.md=_e.languages.markdown})(i)}return markdown_1}var matlab_1,hasRequiredMatlab;function requireMatlab(){if(hasRequiredMatlab)return matlab_1;hasRequiredMatlab=1,matlab_1=a,a.displayName="matlab",a.aliases=[];function a(i){i.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}return matlab_1}var maxscript_1,hasRequiredMaxscript;function requireMaxscript(){if(hasRequiredMaxscript)return maxscript_1;hasRequiredMaxscript=1,maxscript_1=a,a.displayName="maxscript",a.aliases=[];function a(i){(function(_e){var pt=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;_e.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+pt.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+pt.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:pt,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(i)}return maxscript_1}var mel_1,hasRequiredMel;function requireMel(){if(hasRequiredMel)return mel_1;hasRequiredMel=1,mel_1=a,a.displayName="mel",a.aliases=[];function a(i){i.languages.mel={comment:/\/\/.*/,code:{pattern:/`(?:\\.|[^\\`\r\n])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:/\b\w+(?=\()|\b(?:CBG|HfAddAttractorToAS|HfAssignAS|HfBuildEqualMap|HfBuildFurFiles|HfBuildFurImages|HfCancelAFR|HfConnectASToHF|HfCreateAttractor|HfDeleteAS|HfEditAS|HfPerformCreateAS|HfRemoveAttractorFromAS|HfSelectAttached|HfSelectAttractors|HfUnAssignAS|Mayatomr|about|abs|addAttr|addAttributeEditorNodeHelp|addDynamic|addNewShelfTab|addPP|addPanelCategory|addPrefixToName|advanceToNextDrivenKey|affectedNet|affects|aimConstraint|air|alias|aliasAttr|align|alignCtx|alignCurve|alignSurface|allViewFit|ambientLight|angle|angleBetween|animCone|animCurveEditor|animDisplay|animView|annotate|appendStringArray|applicationName|applyAttrPreset|applyTake|arcLenDimContext|arcLengthDimension|arclen|arrayMapper|art3dPaintCtx|artAttrCtx|artAttrPaintVertexCtx|artAttrSkinPaintCtx|artAttrTool|artBuildPaintMenu|artFluidAttrCtx|artPuttyCtx|artSelectCtx|artSetPaintCtx|artUserPaintCtx|assignCommand|assignInputDevice|assignViewportFactories|attachCurve|attachDeviceAttr|attachSurface|attrColorSliderGrp|attrCompatibility|attrControlGrp|attrEnumOptionMenu|attrEnumOptionMenuGrp|attrFieldGrp|attrFieldSliderGrp|attrNavigationControlGrp|attrPresetEditWin|attributeExists|attributeInfo|attributeMenu|attributeQuery|autoKeyframe|autoPlace|bakeClip|bakeFluidShading|bakePartialHistory|bakeResults|bakeSimulation|basename|basenameEx|batchRender|bessel|bevel|bevelPlus|binMembership|bindSkin|blend2|blendShape|blendShapeEditor|blendShapePanel|blendTwoAttr|blindDataType|boneLattice|boundary|boxDollyCtx|boxZoomCtx|bufferCurve|buildBookmarkMenu|buildKeyframeMenu|button|buttonManip|cacheFile|cacheFileCombine|cacheFileMerge|cacheFileTrack|camera|cameraView|canCreateManip|canvas|capitalizeString|catch|catchQuiet|ceil|changeSubdivComponentDisplayLevel|changeSubdivRegion|channelBox|character|characterMap|characterOutlineEditor|characterize|chdir|checkBox|checkBoxGrp|checkDefaultRenderGlobals|choice|circle|circularFillet|clamp|clear|clearCache|clip|clipEditor|clipEditorCurrentTimeCtx|clipSchedule|clipSchedulerOutliner|clipTrimBefore|closeCurve|closeSurface|cluster|cmdFileOutput|cmdScrollFieldExecuter|cmdScrollFieldReporter|cmdShell|coarsenSubdivSelectionList|collision|color|colorAtPoint|colorEditor|colorIndex|colorIndexSliderGrp|colorSliderButtonGrp|colorSliderGrp|columnLayout|commandEcho|commandLine|commandPort|compactHairSystem|componentEditor|compositingInterop|computePolysetVolume|condition|cone|confirmDialog|connectAttr|connectControl|connectDynamic|connectJoint|connectionInfo|constrain|constrainValue|constructionHistory|container|containsMultibyte|contextInfo|control|convertFromOldLayers|convertIffToPsd|convertLightmap|convertSolidTx|convertTessellation|convertUnit|copyArray|copyFlexor|copyKey|copySkinWeights|cos|cpButton|cpCache|cpClothSet|cpCollision|cpConstraint|cpConvClothToMesh|cpForces|cpGetSolverAttr|cpPanel|cpProperty|cpRigidCollisionFilter|cpSeam|cpSetEdit|cpSetSolverAttr|cpSolver|cpSolverTypes|cpTool|cpUpdateClothUVs|createDisplayLayer|createDrawCtx|createEditor|createLayeredPsdFile|createMotionField|createNewShelf|createNode|createRenderLayer|createSubdivRegion|cross|crossProduct|ctxAbort|ctxCompletion|ctxEditMode|ctxTraverse|currentCtx|currentTime|currentTimeCtx|currentUnit|curve|curveAddPtCtx|curveCVCtx|curveEPCtx|curveEditorCtx|curveIntersect|curveMoveEPCtx|curveOnSurface|curveSketchCtx|cutKey|cycleCheck|cylinder|dagPose|date|defaultLightListCheckBox|defaultNavigation|defineDataServer|defineVirtualDevice|deformer|deg_to_rad|delete|deleteAttr|deleteShadingGroupsAndMaterials|deleteShelfTab|deleteUI|deleteUnusedBrushes|delrandstr|detachCurve|detachDeviceAttr|detachSurface|deviceEditor|devicePanel|dgInfo|dgdirty|dgeval|dgtimer|dimWhen|directKeyCtx|directionalLight|dirmap|dirname|disable|disconnectAttr|disconnectJoint|diskCache|displacementToPoly|displayAffected|displayColor|displayCull|displayLevelOfDetail|displayPref|displayRGBColor|displaySmoothness|displayStats|displayString|displaySurface|distanceDimContext|distanceDimension|doBlur|dolly|dollyCtx|dopeSheetEditor|dot|dotProduct|doubleProfileBirailSurface|drag|dragAttrContext|draggerContext|dropoffLocator|duplicate|duplicateCurve|duplicateSurface|dynCache|dynControl|dynExport|dynExpression|dynGlobals|dynPaintEditor|dynParticleCtx|dynPref|dynRelEdPanel|dynRelEditor|dynamicLoad|editAttrLimits|editDisplayLayerGlobals|editDisplayLayerMembers|editRenderLayerAdjustment|editRenderLayerGlobals|editRenderLayerMembers|editor|editorTemplate|effector|emit|emitter|enableDevice|encodeString|endString|endsWith|env|equivalent|equivalentTol|erf|error|eval|evalDeferred|evalEcho|event|exactWorldBoundingBox|exclusiveLightCheckBox|exec|executeForEachObject|exists|exp|expression|expressionEditorListen|extendCurve|extendSurface|extrude|fcheck|fclose|feof|fflush|fgetline|fgetword|file|fileBrowserDialog|fileDialog|fileExtension|fileInfo|filetest|filletCurve|filter|filterCurve|filterExpand|filterStudioImport|findAllIntersections|findAnimCurves|findKeyframe|findMenuItem|findRelatedSkinCluster|finder|firstParentOf|fitBspline|flexor|floatEq|floatField|floatFieldGrp|floatScrollBar|floatSlider|floatSlider2|floatSliderButtonGrp|floatSliderGrp|floor|flow|fluidCacheInfo|fluidEmitter|fluidVoxelInfo|flushUndo|fmod|fontDialog|fopen|formLayout|format|fprint|frameLayout|fread|freeFormFillet|frewind|fromNativePath|fwrite|gamma|gauss|geometryConstraint|getApplicationVersionAsFloat|getAttr|getClassification|getDefaultBrush|getFileList|getFluidAttr|getInputDeviceRange|getMayaPanelTypes|getModifiers|getPanel|getParticleAttr|getPluginResource|getenv|getpid|glRender|glRenderEditor|globalStitch|gmatch|goal|gotoBindPose|grabColor|gradientControl|gradientControlNoAttr|graphDollyCtx|graphSelectContext|graphTrackCtx|gravity|grid|gridLayout|group|groupObjectsByName|hardenPointCurve|hardware|hardwareRenderPanel|headsUpDisplay|headsUpMessage|help|helpLine|hermite|hide|hilite|hitTest|hotBox|hotkey|hotkeyCheck|hsv_to_rgb|hudButton|hudSlider|hudSliderButton|hwReflectionMap|hwRender|hwRenderLoad|hyperGraph|hyperPanel|hyperShade|hypot|iconTextButton|iconTextCheckBox|iconTextRadioButton|iconTextRadioCollection|iconTextScrollList|iconTextStaticLabel|ikHandle|ikHandleCtx|ikHandleDisplayScale|ikSolver|ikSplineHandleCtx|ikSystem|ikSystemInfo|ikfkDisplayMethod|illustratorCurves|image|imfPlugins|inheritTransform|insertJoint|insertJointCtx|insertKeyCtx|insertKnotCurve|insertKnotSurface|instance|instanceable|instancer|intField|intFieldGrp|intScrollBar|intSlider|intSliderGrp|interToUI|internalVar|intersect|iprEngine|isAnimCurve|isConnected|isDirty|isParentOf|isSameObject|isTrue|isValidObjectName|isValidString|isValidUiName|isolateSelect|itemFilter|itemFilterAttr|itemFilterRender|itemFilterType|joint|jointCluster|jointCtx|jointDisplayScale|jointLattice|keyTangent|keyframe|keyframeOutliner|keyframeRegionCurrentTimeCtx|keyframeRegionDirectKeyCtx|keyframeRegionDollyCtx|keyframeRegionInsertKeyCtx|keyframeRegionMoveKeyCtx|keyframeRegionScaleKeyCtx|keyframeRegionSelectKeyCtx|keyframeRegionSetKeyCtx|keyframeRegionTrackCtx|keyframeStats|lassoContext|lattice|latticeDeformKeyCtx|launch|launchImageEditor|layerButton|layeredShaderPort|layeredTexturePort|layout|layoutDialog|lightList|lightListEditor|lightListPanel|lightlink|lineIntersection|linearPrecision|linstep|listAnimatable|listAttr|listCameras|listConnections|listDeviceAttachments|listHistory|listInputDeviceAxes|listInputDeviceButtons|listInputDevices|listMenuAnnotation|listNodeTypes|listPanelCategories|listRelatives|listSets|listTransforms|listUnselected|listerEditor|loadFluid|loadNewShelf|loadPlugin|loadPluginLanguageResources|loadPrefObjects|localizedPanelLabel|lockNode|loft|log|longNameOf|lookThru|ls|lsThroughFilter|lsType|lsUI|mag|makeIdentity|makeLive|makePaintable|makeRoll|makeSingleSurface|makeTubeOn|makebot|manipMoveContext|manipMoveLimitsCtx|manipOptions|manipRotateContext|manipRotateLimitsCtx|manipScaleContext|manipScaleLimitsCtx|marker|match|max|memory|menu|menuBarLayout|menuEditor|menuItem|menuItemToShelf|menuSet|menuSetPref|messageLine|min|minimizeApp|mirrorJoint|modelCurrentTimeCtx|modelEditor|modelPanel|mouse|movIn|movOut|move|moveIKtoFK|moveKeyCtx|moveVertexAlongDirection|multiProfileBirailSurface|mute|nParticle|nameCommand|nameField|namespace|namespaceInfo|newPanelItems|newton|nodeCast|nodeIconButton|nodeOutliner|nodePreset|nodeType|noise|nonLinear|normalConstraint|normalize|nurbsBoolean|nurbsCopyUVSet|nurbsCube|nurbsEditUV|nurbsPlane|nurbsSelect|nurbsSquare|nurbsToPoly|nurbsToPolygonsPref|nurbsToSubdiv|nurbsToSubdivPref|nurbsUVSet|nurbsViewDirectionVector|objExists|objectCenter|objectLayer|objectType|objectTypeUI|obsoleteProc|oceanNurbsPreviewPlane|offsetCurve|offsetCurveOnSurface|offsetSurface|openGLExtension|openMayaPref|optionMenu|optionMenuGrp|optionVar|orbit|orbitCtx|orientConstraint|outlinerEditor|outlinerPanel|overrideModifier|paintEffectsDisplay|pairBlend|palettePort|paneLayout|panel|panelConfiguration|panelHistory|paramDimContext|paramDimension|paramLocator|parent|parentConstraint|particle|particleExists|particleInstancer|particleRenderInfo|partition|pasteKey|pathAnimation|pause|pclose|percent|performanceOptions|pfxstrokes|pickWalk|picture|pixelMove|planarSrf|plane|play|playbackOptions|playblast|plugAttr|plugNode|pluginInfo|pluginResourceUtil|pointConstraint|pointCurveConstraint|pointLight|pointMatrixMult|pointOnCurve|pointOnSurface|pointPosition|poleVectorConstraint|polyAppend|polyAppendFacetCtx|polyAppendVertex|polyAutoProjection|polyAverageNormal|polyAverageVertex|polyBevel|polyBlendColor|polyBlindData|polyBoolOp|polyBridgeEdge|polyCacheMonitor|polyCheck|polyChipOff|polyClipboard|polyCloseBorder|polyCollapseEdge|polyCollapseFacet|polyColorBlindData|polyColorDel|polyColorPerVertex|polyColorSet|polyCompare|polyCone|polyCopyUV|polyCrease|polyCreaseCtx|polyCreateFacet|polyCreateFacetCtx|polyCube|polyCut|polyCutCtx|polyCylinder|polyCylindricalProjection|polyDelEdge|polyDelFacet|polyDelVertex|polyDuplicateAndConnect|polyDuplicateEdge|polyEditUV|polyEditUVShell|polyEvaluate|polyExtrudeEdge|polyExtrudeFacet|polyExtrudeVertex|polyFlipEdge|polyFlipUV|polyForceUV|polyGeoSampler|polyHelix|polyInfo|polyInstallAction|polyLayoutUV|polyListComponentConversion|polyMapCut|polyMapDel|polyMapSew|polyMapSewMove|polyMergeEdge|polyMergeEdgeCtx|polyMergeFacet|polyMergeFacetCtx|polyMergeUV|polyMergeVertex|polyMirrorFace|polyMoveEdge|polyMoveFacet|polyMoveFacetUV|polyMoveUV|polyMoveVertex|polyNormal|polyNormalPerVertex|polyNormalizeUV|polyOptUvs|polyOptions|polyOutput|polyPipe|polyPlanarProjection|polyPlane|polyPlatonicSolid|polyPoke|polyPrimitive|polyPrism|polyProjection|polyPyramid|polyQuad|polyQueryBlindData|polyReduce|polySelect|polySelectConstraint|polySelectConstraintMonitor|polySelectCtx|polySelectEditCtx|polySeparate|polySetToFaceNormal|polySewEdge|polyShortestPathCtx|polySmooth|polySoftEdge|polySphere|polySphericalProjection|polySplit|polySplitCtx|polySplitEdge|polySplitRing|polySplitVertex|polyStraightenUVBorder|polySubdivideEdge|polySubdivideFacet|polyToSubdiv|polyTorus|polyTransfer|polyTriangulate|polyUVSet|polyUnite|polyWedgeFace|popen|popupMenu|pose|pow|preloadRefEd|print|progressBar|progressWindow|projFileViewer|projectCurve|projectTangent|projectionContext|projectionManip|promptDialog|propModCtx|propMove|psdChannelOutliner|psdEditTextureFile|psdExport|psdTextureFile|putenv|pwd|python|querySubdiv|quit|rad_to_deg|radial|radioButton|radioButtonGrp|radioCollection|radioMenuItemCollection|rampColorPort|rand|randomizeFollicles|randstate|rangeControl|readTake|rebuildCurve|rebuildSurface|recordAttr|recordDevice|redo|reference|referenceEdit|referenceQuery|refineSubdivSelectionList|refresh|refreshAE|registerPluginResource|rehash|reloadImage|removeJoint|removeMultiInstance|removePanelCategory|rename|renameAttr|renameSelectionList|renameUI|render|renderGlobalsNode|renderInfo|renderLayerButton|renderLayerParent|renderLayerPostProcess|renderLayerUnparent|renderManip|renderPartition|renderQualityNode|renderSettings|renderThumbnailUpdate|renderWindowEditor|renderWindowSelectContext|renderer|reorder|reorderDeformers|requires|reroot|resampleFluid|resetAE|resetPfxToPolyCamera|resetTool|resolutionNode|retarget|reverseCurve|reverseSurface|revolve|rgb_to_hsv|rigidBody|rigidSolver|roll|rollCtx|rootOf|rot|rotate|rotationInterpolation|roundConstantRadius|rowColumnLayout|rowLayout|runTimeCommand|runup|sampleImage|saveAllShelves|saveAttrPreset|saveFluid|saveImage|saveInitialState|saveMenu|savePrefObjects|savePrefs|saveShelf|saveToolSettings|scale|scaleBrushBrightness|scaleComponents|scaleConstraint|scaleKey|scaleKeyCtx|sceneEditor|sceneUIReplacement|scmh|scriptCtx|scriptEditorInfo|scriptJob|scriptNode|scriptTable|scriptToShelf|scriptedPanel|scriptedPanelType|scrollField|scrollLayout|sculpt|searchPathArray|seed|selLoadSettings|select|selectContext|selectCurveCV|selectKey|selectKeyCtx|selectKeyframeRegionCtx|selectMode|selectPref|selectPriority|selectType|selectedNodes|selectionConnection|separator|setAttr|setAttrEnumResource|setAttrMapping|setAttrNiceNameResource|setConstraintRestPosition|setDefaultShadingGroup|setDrivenKeyframe|setDynamic|setEditCtx|setEditor|setFluidAttr|setFocus|setInfinity|setInputDeviceMapping|setKeyCtx|setKeyPath|setKeyframe|setKeyframeBlendshapeTargetWts|setMenuMode|setNodeNiceNameResource|setNodeTypeFlag|setParent|setParticleAttr|setPfxToPolyCamera|setPluginResource|setProject|setStampDensity|setStartupMessage|setState|setToolTo|setUITemplate|setXformManip|sets|shadingConnection|shadingGeometryRelCtx|shadingLightRelCtx|shadingNetworkCompare|shadingNode|shapeCompare|shelfButton|shelfLayout|shelfTabLayout|shellField|shortNameOf|showHelp|showHidden|showManipCtx|showSelectionInTitle|showShadingGroupAttrEditor|showWindow|sign|simplify|sin|singleProfileBirailSurface|size|sizeBytes|skinCluster|skinPercent|smoothCurve|smoothTangentSurface|smoothstep|snap2to2|snapKey|snapMode|snapTogetherCtx|snapshot|soft|softMod|softModCtx|sort|sound|soundControl|source|spaceLocator|sphere|sphrand|spotLight|spotLightPreviewPort|spreadSheetEditor|spring|sqrt|squareSurface|srtContext|stackTrace|startString|startsWith|stitchAndExplodeShell|stitchSurface|stitchSurfacePoints|strcmp|stringArrayCatenate|stringArrayContains|stringArrayCount|stringArrayInsertAtIndex|stringArrayIntersector|stringArrayRemove|stringArrayRemoveAtIndex|stringArrayRemoveDuplicates|stringArrayRemoveExact|stringArrayToString|stringToStringArray|strip|stripPrefixFromName|stroke|subdAutoProjection|subdCleanTopology|subdCollapse|subdDuplicateAndConnect|subdEditUV|subdListComponentConversion|subdMapCut|subdMapSewMove|subdMatchTopology|subdMirror|subdToBlind|subdToPoly|subdTransferUVsToCache|subdiv|subdivCrease|subdivDisplaySmoothness|substitute|substituteAllString|substituteGeometry|substring|surface|surfaceSampler|surfaceShaderList|swatchDisplayPort|switchTable|symbolButton|symbolCheckBox|sysFile|system|tabLayout|tan|tangentConstraint|texLatticeDeformContext|texManipContext|texMoveContext|texMoveUVShellContext|texRotateContext|texScaleContext|texSelectContext|texSelectShortestPathCtx|texSmudgeUVContext|texWinToolCtx|text|textCurves|textField|textFieldButtonGrp|textFieldGrp|textManip|textScrollList|textToShelf|textureDisplacePlane|textureHairColor|texturePlacementContext|textureWindow|threadCount|threePointArcCtx|timeControl|timePort|timerX|toNativePath|toggle|toggleAxis|toggleWindowVisibility|tokenize|tokenizeList|tolerance|tolower|toolButton|toolCollection|toolDropped|toolHasOptions|toolPropertyWindow|torus|toupper|trace|track|trackCtx|transferAttributes|transformCompare|transformLimits|translator|trim|trunc|truncateFluidCache|truncateHairCache|tumble|tumbleCtx|turbulence|twoPointArcCtx|uiRes|uiTemplate|unassignInputDevice|undo|undoInfo|ungroup|uniform|unit|unloadPlugin|untangleUV|untitledFileName|untrim|upAxis|updateAE|userCtx|uvLink|uvSnapshot|validateShelfName|vectorize|view2dToolCtx|viewCamera|viewClipPlane|viewFit|viewHeadOn|viewLookAt|viewManip|viewPlace|viewSet|visor|volumeAxis|vortex|waitCursor|warning|webBrowser|webBrowserPrefs|whatIs|window|windowPref|wire|wireContext|workspace|wrinkle|wrinkleContext|writeTake|xbmLangPathList|xform)\b/,operator:[/\+[+=]?|-[-=]?|&&|\|\||[<>]=|[*\/!=]=?|[%^]/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,:;?\[\](){}]/},i.languages.mel.code.inside.rest=i.languages.mel}return mel_1}var mermaid_1,hasRequiredMermaid;function requireMermaid(){if(hasRequiredMermaid)return mermaid_1;hasRequiredMermaid=1,mermaid_1=a,a.displayName="mermaid",a.aliases=[];function a(i){i.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}return mermaid_1}var mizar_1,hasRequiredMizar;function requireMizar(){if(hasRequiredMizar)return mizar_1;hasRequiredMizar=1,mizar_1=a,a.displayName="mizar",a.aliases=[];function a(i){i.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}return mizar_1}var mongodb_1,hasRequiredMongodb;function requireMongodb(){if(hasRequiredMongodb)return mongodb_1;hasRequiredMongodb=1,mongodb_1=a,a.displayName="mongodb",a.aliases=[];function a(i){(function(_e){var pt=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],Lt=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];pt=pt.map(function(Ct){return Ct.replace("$","\\$")});var Gt="(?:"+pt.join("|")+")\\b";_e.languages.mongodb=_e.languages.extend("javascript",{}),_e.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+Gt+"(?:\\1)?$")}}}),_e.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},_e.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+Lt.join("|")+")\\b"),alias:"keyword"}})})(i)}return mongodb_1}var monkey_1,hasRequiredMonkey;function requireMonkey(){if(hasRequiredMonkey)return monkey_1;hasRequiredMonkey=1,monkey_1=a,a.displayName="monkey",a.aliases=[];function a(i){i.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}return monkey_1}var moonscript_1,hasRequiredMoonscript;function requireMoonscript(){if(hasRequiredMoonscript)return moonscript_1;hasRequiredMoonscript=1,moonscript_1=a,a.displayName="moonscript",a.aliases=["moon"];function a(i){i.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},i.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=i.languages.moonscript,i.languages.moon=i.languages.moonscript}return moonscript_1}var n1ql_1,hasRequiredN1ql;function requireN1ql(){if(hasRequiredN1ql)return n1ql_1;hasRequiredN1ql=1,n1ql_1=a,a.displayName="n1ql",a.aliases=[];function a(i){i.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}return n1ql_1}var n4js_1,hasRequiredN4js;function requireN4js(){if(hasRequiredN4js)return n4js_1;hasRequiredN4js=1,n4js_1=a,a.displayName="n4js",a.aliases=["n4jsd"];function a(i){i.languages.n4js=i.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),i.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),i.languages.n4jsd=i.languages.n4js}return n4js_1}var nand2tetrisHdl_1,hasRequiredNand2tetrisHdl;function requireNand2tetrisHdl(){if(hasRequiredNand2tetrisHdl)return nand2tetrisHdl_1;hasRequiredNand2tetrisHdl=1,nand2tetrisHdl_1=a,a.displayName="nand2tetrisHdl",a.aliases=[];function a(i){i.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}return nand2tetrisHdl_1}var naniscript_1,hasRequiredNaniscript;function requireNaniscript(){if(hasRequiredNaniscript)return naniscript_1;hasRequiredNaniscript=1,naniscript_1=a,a.displayName="naniscript",a.aliases=[];function a(i){(function(_e){var pt=/\{[^\r\n\[\]{}]*\}/,Lt={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:pt,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};_e.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:pt,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:Lt}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:pt,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:Lt},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},_e.languages.nani=_e.languages.naniscript,_e.hooks.add("after-tokenize",function(Rt){var o=Rt.tokens;o.forEach(function(it){if(typeof it!="string"&&it.type==="generic-text"){var xt=Ct(it);Gt(xt)||(it.type="bad-line",it.content=xt)}})});function Gt(Rt){for(var o="[]{}",it=[],xt=0;xt=&|$!]/}}return nasm_1}var neon_1,hasRequiredNeon;function requireNeon(){if(hasRequiredNeon)return neon_1;hasRequiredNeon=1,neon_1=a,a.displayName="neon",a.aliases=[];function a(i){i.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"atrule"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}return neon_1}var nevod_1,hasRequiredNevod;function requireNevod(){if(hasRequiredNevod)return nevod_1;hasRequiredNevod=1,nevod_1=a,a.displayName="nevod",a.aliases=[];function a(i){i.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}return nevod_1}var nginx_1,hasRequiredNginx;function requireNginx(){if(hasRequiredNginx)return nginx_1;hasRequiredNginx=1,nginx_1=a,a.displayName="nginx",a.aliases=[];function a(i){(function(_e){var pt=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;_e.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:pt}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:pt}},punctuation:/[{};]/}})(i)}return nginx_1}var nim_1,hasRequiredNim;function requireNim(){if(hasRequiredNim)return nim_1;hasRequiredNim=1,nim_1=a,a.displayName="nim",a.aliases=[];function a(i){i.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}return nim_1}var nix_1,hasRequiredNix;function requireNix(){if(hasRequiredNix)return nix_1;hasRequiredNix=1,nix_1=a,a.displayName="nix",a.aliases=[];function a(i){i.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},i.languages.nix.string.inside.interpolation.inside=i.languages.nix}return nix_1}var nsis_1,hasRequiredNsis;function requireNsis(){if(hasRequiredNsis)return nsis_1;hasRequiredNsis=1,nsis_1=a,a.displayName="nsis",a.aliases=[];function a(i){i.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}return nsis_1}var objectivec_1,hasRequiredObjectivec;function requireObjectivec(){if(hasRequiredObjectivec)return objectivec_1;hasRequiredObjectivec=1;var a=requireC();objectivec_1=i,i.displayName="objectivec",i.aliases=["objc"];function i(_e){_e.register(a),_e.languages.objectivec=_e.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete _e.languages.objectivec["class-name"],_e.languages.objc=_e.languages.objectivec}return objectivec_1}var ocaml_1,hasRequiredOcaml;function requireOcaml(){if(hasRequiredOcaml)return ocaml_1;hasRequiredOcaml=1,ocaml_1=a,a.displayName="ocaml",a.aliases=[];function a(i){i.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}return ocaml_1}var opencl_1,hasRequiredOpencl;function requireOpencl(){if(hasRequiredOpencl)return opencl_1;hasRequiredOpencl=1;var a=requireC();opencl_1=i,i.displayName="opencl",i.aliases=[];function i(_e){_e.register(a),function(pt){pt.languages.opencl=pt.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),pt.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var Lt={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};pt.languages.insertBefore("c","keyword",Lt),pt.languages.cpp&&(Lt["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},pt.languages.insertBefore("cpp","keyword",Lt))}(_e)}return opencl_1}var openqasm_1,hasRequiredOpenqasm;function requireOpenqasm(){if(hasRequiredOpenqasm)return openqasm_1;hasRequiredOpenqasm=1,openqasm_1=a,a.displayName="openqasm",a.aliases=["qasm"];function a(i){i.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},i.languages.qasm=i.languages.openqasm}return openqasm_1}var oz_1,hasRequiredOz;function requireOz(){if(hasRequiredOz)return oz_1;hasRequiredOz=1,oz_1=a,a.displayName="oz",a.aliases=[];function a(i){i.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}return oz_1}var parigp_1,hasRequiredParigp;function requireParigp(){if(hasRequiredParigp)return parigp_1;hasRequiredParigp=1,parigp_1=a,a.displayName="parigp",a.aliases=[];function a(i){i.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var _e=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return _e=_e.map(function(pt){return pt.split("").join(" *")}).join("|"),RegExp("\\b(?:"+_e+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}return parigp_1}var parser_1,hasRequiredParser;function requireParser(){if(hasRequiredParser)return parser_1;hasRequiredParser=1,parser_1=a,a.displayName="parser",a.aliases=[];function a(i){(function(_e){var pt=_e.languages.parser=_e.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});pt=_e.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:pt.keyword,variable:pt.variable,function:pt.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:pt.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:pt.punctuation}}}),_e.languages.insertBefore("inside","punctuation",{expression:pt.expression,keyword:pt.keyword,variable:pt.variable,function:pt.function,escape:pt.escape,"parser-punctuation":{pattern:pt.punctuation,alias:"punctuation"}},pt.tag.inside["attr-value"])})(i)}return parser_1}var pascal_1,hasRequiredPascal;function requirePascal(){if(hasRequiredPascal)return pascal_1;hasRequiredPascal=1,pascal_1=a,a.displayName="pascal",a.aliases=["objectpascal"];function a(i){i.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},i.languages.pascal.asm.inside=i.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),i.languages.objectpascal=i.languages.pascal}return pascal_1}var pascaligo_1,hasRequiredPascaligo;function requirePascaligo(){if(hasRequiredPascaligo)return pascaligo_1;hasRequiredPascaligo=1,pascaligo_1=a,a.displayName="pascaligo",a.aliases=[];function a(i){(function(_e){var pt=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,Lt=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return pt}),Gt=_e.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return Lt}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return Lt}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return Lt})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},Ct=["comment","keyword","builtin","operator","punctuation"].reduce(function(Rt,o){return Rt[o]=Gt[o],Rt},{});Gt["class-name"].forEach(function(Rt){Rt.inside=Ct})})(i)}return pascaligo_1}var pcaxis_1,hasRequiredPcaxis;function requirePcaxis(){if(hasRequiredPcaxis)return pcaxis_1;hasRequiredPcaxis=1,pcaxis_1=a,a.displayName="pcaxis",a.aliases=["px"];function a(i){i.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},i.languages.px=i.languages.pcaxis}return pcaxis_1}var peoplecode_1,hasRequiredPeoplecode;function requirePeoplecode(){if(hasRequiredPeoplecode)return peoplecode_1;hasRequiredPeoplecode=1,peoplecode_1=a,a.displayName="peoplecode",a.aliases=["pcode"];function a(i){i.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},i.languages.pcode=i.languages.peoplecode}return peoplecode_1}var perl_1,hasRequiredPerl;function requirePerl(){if(hasRequiredPerl)return perl_1;hasRequiredPerl=1,perl_1=a,a.displayName="perl",a.aliases=[];function a(i){(function(_e){var pt=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;_e.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,pt].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,pt].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,pt+/\s*/.source+pt].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(i)}return perl_1}var phpExtras_1,hasRequiredPhpExtras;function requirePhpExtras(){if(hasRequiredPhpExtras)return phpExtras_1;hasRequiredPhpExtras=1;var a=requirePhp();phpExtras_1=i,i.displayName="phpExtras",i.aliases=[];function i(_e){_e.register(a),_e.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}return phpExtras_1}var phpdoc_1,hasRequiredPhpdoc;function requirePhpdoc(){if(hasRequiredPhpdoc)return phpdoc_1;hasRequiredPhpdoc=1;var a=requirePhp(),i=requireJavadoclike();phpdoc_1=_e,_e.displayName="phpdoc",_e.aliases=[];function _e(pt){pt.register(a),pt.register(i),function(Lt){var Gt=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;Lt.languages.phpdoc=Lt.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+Gt+"\\s+)?)\\$\\w+"),lookbehind:!0}}),Lt.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+Gt),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),Lt.languages.javadoclike.addSupport("php",Lt.languages.phpdoc)}(pt)}return phpdoc_1}var plsql_1,hasRequiredPlsql;function requirePlsql(){if(hasRequiredPlsql)return plsql_1;hasRequiredPlsql=1;var a=requireSql();plsql_1=i,i.displayName="plsql",i.aliases=[];function i(_e){_e.register(a),_e.languages.plsql=_e.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),_e.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}return plsql_1}var powerquery_1,hasRequiredPowerquery;function requirePowerquery(){if(hasRequiredPowerquery)return powerquery_1;hasRequiredPowerquery=1,powerquery_1=a,a.displayName="powerquery",a.aliases=[];function a(i){i.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},i.languages.pq=i.languages.powerquery,i.languages.mscript=i.languages.powerquery}return powerquery_1}var powershell_1,hasRequiredPowershell;function requirePowershell(){if(hasRequiredPowershell)return powershell_1;hasRequiredPowershell=1,powershell_1=a,a.displayName="powershell",a.aliases=[];function a(i){(function(_e){var pt=_e.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};pt.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:pt},boolean:pt.boolean,variable:pt.variable}})(i)}return powershell_1}var processing_1,hasRequiredProcessing;function requireProcessing(){if(hasRequiredProcessing)return processing_1;hasRequiredProcessing=1,processing_1=a,a.displayName="processing",a.aliases=[];function a(i){i.languages.processing=i.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),i.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}return processing_1}var prolog_1,hasRequiredProlog;function requireProlog(){if(hasRequiredProlog)return prolog_1;hasRequiredProlog=1,prolog_1=a,a.displayName="prolog",a.aliases=[];function a(i){i.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}return prolog_1}var promql_1,hasRequiredPromql;function requirePromql(){if(hasRequiredPromql)return promql_1;hasRequiredPromql=1,promql_1=a,a.displayName="promql",a.aliases=[];function a(i){(function(_e){var pt=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],Lt=["on","ignoring","group_right","group_left","by","without"],Gt=["offset"],Ct=pt.concat(Lt,Gt);_e.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+Lt.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+Ct.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(i)}return promql_1}var properties_1,hasRequiredProperties;function requireProperties(){if(hasRequiredProperties)return properties_1;hasRequiredProperties=1,properties_1=a,a.displayName="properties",a.aliases=[];function a(i){i.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,punctuation:/[=:]/}}return properties_1}var protobuf_1,hasRequiredProtobuf;function requireProtobuf(){if(hasRequiredProtobuf)return protobuf_1;hasRequiredProtobuf=1,protobuf_1=a,a.displayName="protobuf",a.aliases=[];function a(i){(function(_e){var pt=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;_e.languages.protobuf=_e.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),_e.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:pt}},builtin:pt,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(i)}return protobuf_1}var psl_1,hasRequiredPsl;function requirePsl(){if(hasRequiredPsl)return psl_1;hasRequiredPsl=1,psl_1=a,a.displayName="psl",a.aliases=[];function a(i){i.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}return psl_1}var pug_1,hasRequiredPug;function requirePug(){if(hasRequiredPug)return pug_1;hasRequiredPug=1,pug_1=a,a.displayName="pug",a.aliases=[];function a(i){(function(_e){_e.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:_e.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:_e.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:_e.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:_e.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:_e.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:_e.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:_e.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:_e.languages.javascript}],punctuation:/[.\-!=|]+/};for(var pt=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,Lt=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],Gt={},Ct=0,Rt=Lt.length;Ct",function(){return o.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[o.language,"language-"+o.language],inside:_e.languages[o.language]}}})}_e.languages.insertBefore("pug","filter",Gt)})(i)}return pug_1}var puppet_1,hasRequiredPuppet;function requirePuppet(){if(hasRequiredPuppet)return puppet_1;hasRequiredPuppet=1,puppet_1=a,a.displayName="puppet",a.aliases=[];function a(i){(function(_e){_e.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var pt=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:_e.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];_e.languages.puppet.heredoc[0].inside.interpolation=pt,_e.languages.puppet.string.inside["double-quoted"].inside.interpolation=pt})(i)}return puppet_1}var pure_1,hasRequiredPure;function requirePure(){if(hasRequiredPure)return pure_1;hasRequiredPure=1,pure_1=a,a.displayName="pure",a.aliases=[];function a(i){(function(_e){_e.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var pt=["c",{lang:"c++",alias:"cpp"},"fortran"],Lt=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;pt.forEach(function(Gt){var Ct=Gt;if(typeof Gt!="string"&&(Ct=Gt.alias,Gt=Gt.lang),_e.languages[Ct]){var Rt={};Rt["inline-lang-"+Ct]={pattern:RegExp(Lt.replace("",Gt.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:_e.util.clone(_e.languages.pure["inline-lang"].inside)},Rt["inline-lang-"+Ct].inside.rest=_e.util.clone(_e.languages[Ct]),_e.languages.insertBefore("pure","inline-lang",Rt)}}),_e.languages.c&&(_e.languages.pure["inline-lang"].inside.rest=_e.util.clone(_e.languages.c))})(i)}return pure_1}var purebasic_1,hasRequiredPurebasic;function requirePurebasic(){if(hasRequiredPurebasic)return purebasic_1;hasRequiredPurebasic=1,purebasic_1=a,a.displayName="purebasic",a.aliases=[];function a(i){i.languages.purebasic=i.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+|-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*/@]/}),i.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete i.languages.purebasic["class-name"],delete i.languages.purebasic.boolean,i.languages.pbfasm=i.languages.purebasic}return purebasic_1}var purescript_1,hasRequiredPurescript;function requirePurescript(){if(hasRequiredPurescript)return purescript_1;hasRequiredPurescript=1;var a=requireHaskell();purescript_1=i,i.displayName="purescript",i.aliases=["purs"];function i(_e){_e.register(a),_e.languages.purescript=_e.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[_e.languages.haskell.operator[0],_e.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),_e.languages.purs=_e.languages.purescript}return purescript_1}var python_1,hasRequiredPython;function requirePython(){if(hasRequiredPython)return python_1;hasRequiredPython=1,python_1=a,a.displayName="python",a.aliases=["py"];function a(i){i.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},i.languages.python["string-interpolation"].inside.interpolation.inside.rest=i.languages.python,i.languages.py=i.languages.python}return python_1}var q_1,hasRequiredQ;function requireQ(){if(hasRequiredQ)return q_1;hasRequiredQ=1,q_1=a,a.displayName="q",a.aliases=[];function a(i){i.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}return q_1}var qml_1,hasRequiredQml;function requireQml(){if(hasRequiredQml)return qml_1;hasRequiredQml=1,qml_1=a,a.displayName="qml",a.aliases=[];function a(i){(function(_e){for(var pt=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,Lt=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,Gt=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return pt}).replace(//g,function(){return Lt}),Ct=0;Ct<2;Ct++)Gt=Gt.replace(//g,function(){return Gt});Gt=Gt.replace(//g,"[^\\s\\S]"),_e.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return Gt}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:_e.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return Gt}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:_e.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(i)}return qml_1}var qore_1,hasRequiredQore;function requireQore(){if(hasRequiredQore)return qore_1;hasRequiredQore=1,qore_1=a,a.displayName="qore",a.aliases=[];function a(i){i.languages.qore=i.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}return qore_1}var qsharp_1,hasRequiredQsharp;function requireQsharp(){if(hasRequiredQsharp)return qsharp_1;hasRequiredQsharp=1,qsharp_1=a,a.displayName="qsharp",a.aliases=["qs"];function a(i){(function(_e){function pt(ut,ht){return ut.replace(/<<(\d+)>>/g,function(j,_){return"(?:"+ht[+_]+")"})}function Lt(ut,ht,j){return RegExp(pt(ut,ht),j||"")}function Gt(ut,ht){for(var j=0;j>/g,function(){return"(?:"+ut+")"});return ut.replace(/<>/g,"[^\\s\\S]")}var Ct={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function Rt(ut){return"\\b(?:"+ut.trim().replace(/ /g,"|")+")\\b"}var o=RegExp(Rt(Ct.type+" "+Ct.other)),it=/\b[A-Za-z_]\w*\b/.source,xt=pt(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[it]),et={keyword:o,punctuation:/[<>()?,.:[\]]/},Tt=/"(?:\\.|[^\\"])*"/.source;_e.languages.qsharp=_e.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:Lt(/(^|[^$\\])<<0>>/.source,[Tt]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:Lt(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[xt]),lookbehind:!0,inside:et},{pattern:Lt(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[xt]),lookbehind:!0,inside:et}],keyword:o,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),_e.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var yt=Gt(pt(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[Tt]),2);_e.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:Lt(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[yt]),greedy:!0,inside:{interpolation:{pattern:Lt(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[yt]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:_e.languages.qsharp}}},string:/[\s\S]+/}}})})(i),i.languages.qs=i.languages.qsharp}return qsharp_1}var r_1,hasRequiredR;function requireR(){if(hasRequiredR)return r_1;hasRequiredR=1,r_1=a,a.displayName="r",a.aliases=[];function a(i){i.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}return r_1}var racket_1,hasRequiredRacket;function requireRacket(){if(hasRequiredRacket)return racket_1;hasRequiredRacket=1;var a=requireScheme();racket_1=i,i.displayName="racket",i.aliases=["rkt"];function i(_e){_e.register(a),_e.languages.racket=_e.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),_e.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),_e.languages.rkt=_e.languages.racket}return racket_1}var reason_1,hasRequiredReason;function requireReason(){if(hasRequiredReason)return reason_1;hasRequiredReason=1,reason_1=a,a.displayName="reason",a.aliases=[];function a(i){i.languages.reason=i.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),i.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete i.languages.reason.function}return reason_1}var regex_1,hasRequiredRegex;function requireRegex(){if(hasRequiredRegex)return regex_1;hasRequiredRegex=1,regex_1=a,a.displayName="regex",a.aliases=[];function a(i){(function(_e){var pt={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},Lt=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,Gt={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},Ct={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},Rt="(?:[^\\\\-]|"+Lt.source+")",o=RegExp(Rt+"-"+Rt),it={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};_e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:o,inside:{escape:Lt,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":pt,"char-set":Ct,escape:Lt}},"special-escape":pt,"char-set":Gt,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":it}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:Lt,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}return rego_1}var renpy_1,hasRequiredRenpy;function requireRenpy(){if(hasRequiredRenpy)return renpy_1;hasRequiredRenpy=1,renpy_1=a,a.displayName="renpy",a.aliases=["rpy"];function a(i){i.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},i.languages.rpy=i.languages.renpy}return renpy_1}var rest_1,hasRequiredRest;function requireRest(){if(hasRequiredRest)return rest_1;hasRequiredRest=1,rest_1=a,a.displayName="rest",a.aliases=[];function a(i){i.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}return rest_1}var rip_1,hasRequiredRip;function requireRip(){if(hasRequiredRip)return rip_1;hasRequiredRip=1,rip_1=a,a.displayName="rip",a.aliases=[];function a(i){i.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}return rip_1}var roboconf_1,hasRequiredRoboconf;function requireRoboconf(){if(hasRequiredRoboconf)return roboconf_1;hasRequiredRoboconf=1,roboconf_1=a,a.displayName="roboconf",a.aliases=[];function a(i){i.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}return roboconf_1}var robotframework_1,hasRequiredRobotframework;function requireRobotframework(){if(hasRequiredRobotframework)return robotframework_1;hasRequiredRobotframework=1,robotframework_1=a,a.displayName="robotframework",a.aliases=[];function a(i){(function(_e){var pt={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},Lt={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function Gt(it,xt){var et={};et["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var Tt in xt)et[Tt]=xt[Tt];return et.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},et.variable=Lt,et.comment=pt,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return it}),"im"),alias:"section",inside:et}}var Ct={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},Rt={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:Lt}},o={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:Lt}};_e.languages.robotframework={settings:Gt("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:Gt("Variables"),"test-cases":Gt("Test Cases",{"test-name":Rt,documentation:Ct,property:o}),keywords:Gt("Keywords",{"keyword-name":Rt,documentation:Ct,property:o}),tasks:Gt("Tasks",{"task-name":Rt,documentation:Ct,property:o}),comment:pt},_e.languages.robot=_e.languages.robotframework})(i)}return robotframework_1}var rust_1,hasRequiredRust;function requireRust(){if(hasRequiredRust)return rust_1;hasRequiredRust=1,rust_1=a,a.displayName="rust",a.aliases=[];function a(i){(function(_e){for(var pt=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,Lt=0;Lt<2;Lt++)pt=pt.replace(//g,function(){return pt});pt=pt.replace(//g,function(){return/[^\s\S]/.source}),_e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+pt),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},_e.languages.rust["closure-params"].inside.rest=_e.languages.rust,_e.languages.rust.attribute.inside.string=_e.languages.rust.string})(i)}return rust_1}var sas_1,hasRequiredSas;function requireSas(){if(hasRequiredSas)return sas_1;hasRequiredSas=1,sas_1=a,a.displayName="sas",a.aliases=[];function a(i){(function(_e){var pt=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,Lt=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,Gt={pattern:RegExp(pt+"[bx]"),alias:"number"},Ct={pattern:/&[a-z_]\w*/i},Rt={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},o={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},it=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],xt={pattern:RegExp(pt),greedy:!0},et=/[$%@.(){}\[\];,\\]/,Tt={pattern:/%?\b\w+(?=\()/,alias:"keyword"},yt={function:Tt,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":Ct,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:Lt,"numeric-constant":Gt,punctuation:et,string:xt},ut={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},ht={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},j={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},_={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},rt=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,tt={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return rt}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return rt}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:it,function:Tt,"arg-value":yt["arg-value"],operator:yt.operator,argument:yt.arg,number:Lt,"numeric-constant":Gt,punctuation:et,string:xt}},st={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};_e.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return pt}),"im"),alias:"language-sql",inside:_e.languages.sql},"global-statements":j,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:Lt,"numeric-constant":Gt,punctuation:et,string:xt}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:it,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return pt}),"im"),lookbehind:!0,alias:"language-groovy",inside:_e.languages.groovy},keyword:st,"submit-statement":_,"global-statements":j,number:Lt,"numeric-constant":Gt,punctuation:et,string:xt}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:it,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return pt}),"im"),lookbehind:!0,alias:"language-lua",inside:_e.languages.lua},keyword:st,"submit-statement":_,"global-statements":j,number:Lt,"numeric-constant":Gt,punctuation:et,string:xt}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:it,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:yt}},"cas-actions":tt,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:yt},step:o,keyword:st,function:Tt,format:ut,altformat:ht,"global-statements":j,number:Lt,"numeric-constant":Gt,punctuation:et,string:xt}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return pt}),"im"),lookbehind:!0,inside:yt},"macro-keyword":Rt,"macro-variable":Ct,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":Rt,"macro-variable":Ct,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:et}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:it,number:Lt,"numeric-constant":Gt}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:yt},"cas-actions":tt,comment:it,function:Tt,format:ut,altformat:ht,"numeric-constant":Gt,datetime:{pattern:RegExp(pt+"(?:dt?|t)"),alias:"number"},string:xt,step:o,keyword:st,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:Lt,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:et}})(i)}return sas_1}var sass_1,hasRequiredSass;function requireSass(){if(hasRequiredSass)return sass_1;hasRequiredSass=1,sass_1=a,a.displayName="sass",a.aliases=[];function a(i){(function(_e){_e.languages.sass=_e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),_e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete _e.languages.sass.atrule;var pt=/\$[-\w]+|#\{\$[-\w]+\}/,Lt=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];_e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:pt,operator:Lt}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:pt,operator:Lt,important:_e.languages.sass.important}}}),delete _e.languages.sass.property,delete _e.languages.sass.important,_e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(i)}return sass_1}var scala_1,hasRequiredScala;function requireScala(){if(hasRequiredScala)return scala_1;hasRequiredScala=1;var a=requireJava();scala_1=i,i.displayName="scala",i.aliases=[];function i(_e){_e.register(a),_e.languages.scala=_e.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),_e.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:_e.languages.scala}}},string:/[\s\S]+/}}}),delete _e.languages.scala["class-name"],delete _e.languages.scala.function}return scala_1}var scss_1,hasRequiredScss;function requireScss(){if(hasRequiredScss)return scss_1;hasRequiredScss=1,scss_1=a,a.displayName="scss",a.aliases=[];function a(i){i.languages.scss=i.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),i.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),i.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),i.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),i.languages.scss.atrule.inside.rest=i.languages.scss}return scss_1}var shellSession_1,hasRequiredShellSession;function requireShellSession(){if(hasRequiredShellSession)return shellSession_1;hasRequiredShellSession=1;var a=requireBash();shellSession_1=i,i.displayName="shellSession",i.aliases=[];function i(_e){_e.register(a),function(pt){var Lt=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");pt.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<>)+/.source.replace(/<>/g,function(){return Lt}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:pt.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},pt.languages["sh-session"]=pt.languages.shellsession=pt.languages["shell-session"]}(_e)}return shellSession_1}var smali_1,hasRequiredSmali;function requireSmali(){if(hasRequiredSmali)return smali_1;hasRequiredSmali=1,smali_1=a,a.displayName="smali",a.aliases=[];function a(i){i.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}return smali_1}var smalltalk_1,hasRequiredSmalltalk;function requireSmalltalk(){if(hasRequiredSmalltalk)return smalltalk_1;hasRequiredSmalltalk=1,smalltalk_1=a,a.displayName="smalltalk",a.aliases=[];function a(i){i.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}return smalltalk_1}var smarty_1,hasRequiredSmarty;function requireSmarty(){if(hasRequiredSmarty)return smarty_1;hasRequiredSmarty=1;var a=requireMarkupTemplating();smarty_1=i,i.displayName="smarty",i.aliases=[];function i(_e){_e.register(a),function(pt){pt.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:pt.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},pt.languages.smarty["embedded-php"].inside.smarty.inside=pt.languages.smarty,pt.languages.smarty.string[0].inside.interpolation.inside.expression.inside=pt.languages.smarty;var Lt=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,Gt=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return Lt.source}),"g");pt.hooks.add("before-tokenize",function(Ct){var Rt="{literal}",o="{/literal}",it=!1;pt.languages["markup-templating"].buildPlaceholders(Ct,"smarty",Gt,function(xt){return xt===o&&(it=!1),it?!1:(xt===Rt&&(it=!0),!0)})}),pt.hooks.add("after-tokenize",function(Ct){pt.languages["markup-templating"].tokenizePlaceholders(Ct,"smarty")})}(_e)}return smarty_1}var sml_1,hasRequiredSml;function requireSml(){if(hasRequiredSml)return sml_1;hasRequiredSml=1,sml_1=a,a.displayName="sml",a.aliases=["smlnj"];function a(i){(function(_e){var pt=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;_e.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)(?:\s*(?:(?:\*|->)\s*|,\s*(?:(?=)|(?!)\s+)))*/.source.replace(//g,function(){return/\s*(?:[*,]|->)/.source}).replace(//g,function(){return/(?:'[\w']*||\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+)*/.source}).replace(//g,function(){return/(?!)[a-z\d_][\w'.]*/.source}).replace(//g,function(){return pt.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:pt,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},_e.languages.sml["class-name"][0].inside=_e.languages.sml,_e.languages.smlnj=_e.languages.sml})(i)}return sml_1}var solidity_1,hasRequiredSolidity;function requireSolidity(){if(hasRequiredSolidity)return solidity_1;hasRequiredSolidity=1,solidity_1=a,a.displayName="solidity",a.aliases=["sol"];function a(i){i.languages.solidity=i.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),i.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),i.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),i.languages.sol=i.languages.solidity}return solidity_1}var solutionFile_1,hasRequiredSolutionFile;function requireSolutionFile(){if(hasRequiredSolutionFile)return solutionFile_1;hasRequiredSolutionFile=1,solutionFile_1=a,a.displayName="solutionFile",a.aliases=[];function a(i){(function(_e){var pt={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};_e.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:pt}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:pt}},guid:pt,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},_e.languages.sln=_e.languages["solution-file"]})(i)}return solutionFile_1}var soy_1,hasRequiredSoy;function requireSoy(){if(hasRequiredSoy)return soy_1;hasRequiredSoy=1;var a=requireMarkupTemplating();soy_1=i,i.displayName="soy",i.aliases=[];function i(_e){_e.register(a),function(pt){var Lt=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,Gt=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;pt.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:Lt,greedy:!0},number:Gt,punctuation:/[\[\].?]/}},string:{pattern:Lt,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:Gt,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},pt.hooks.add("before-tokenize",function(Ct){var Rt=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,o="{literal}",it="{/literal}",xt=!1;pt.languages["markup-templating"].buildPlaceholders(Ct,"soy",Rt,function(et){return et===it&&(xt=!1),xt?!1:(et===o&&(xt=!0),!0)})}),pt.hooks.add("after-tokenize",function(Ct){pt.languages["markup-templating"].tokenizePlaceholders(Ct,"soy")})}(_e)}return soy_1}var turtle_1,hasRequiredTurtle;function requireTurtle(){if(hasRequiredTurtle)return turtle_1;hasRequiredTurtle=1,turtle_1=a,a.displayName="turtle",a.aliases=[];function a(i){i.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},i.languages.trig=i.languages.turtle}return turtle_1}var sparql_1,hasRequiredSparql;function requireSparql(){if(hasRequiredSparql)return sparql_1;hasRequiredSparql=1;var a=requireTurtle();sparql_1=i,i.displayName="sparql",i.aliases=["rq"];function i(_e){_e.register(a),_e.languages.sparql=_e.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),_e.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),_e.languages.rq=_e.languages.sparql}return sparql_1}var splunkSpl_1,hasRequiredSplunkSpl;function requireSplunkSpl(){if(hasRequiredSplunkSpl)return splunkSpl_1;hasRequiredSplunkSpl=1,splunkSpl_1=a,a.displayName="splunkSpl",a.aliases=[];function a(i){i.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}return splunkSpl_1}var sqf_1,hasRequiredSqf;function requireSqf(){if(hasRequiredSqf)return sqf_1;hasRequiredSqf=1,sqf_1=a,a.displayName="sqf",a.aliases=[];function a(i){i.languages.sqf=i.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),i.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:i.languages.sqf.comment}}}),delete i.languages.sqf["class-name"]}return sqf_1}var squirrel_1,hasRequiredSquirrel;function requireSquirrel(){if(hasRequiredSquirrel)return squirrel_1;hasRequiredSquirrel=1,squirrel_1=a,a.displayName="squirrel",a.aliases=[];function a(i){i.languages.squirrel=i.languages.extend("clike",{comment:[i.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),i.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),i.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}return squirrel_1}var stan_1,hasRequiredStan;function requireStan(){if(hasRequiredStan)return stan_1;hasRequiredStan=1,stan_1=a,a.displayName="stan",a.aliases=[];function a(i){(function(_e){var pt=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;_e.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+pt.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,pt],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},_e.languages.stan.constraint.inside.expression.inside=_e.languages.stan})(i)}return stan_1}var stylus_1,hasRequiredStylus;function requireStylus(){if(hasRequiredStylus)return stylus_1;hasRequiredStylus=1,stylus_1=a,a.displayName="stylus",a.aliases=[];function a(i){(function(_e){var pt={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},Lt={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},Gt={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:pt,number:Lt,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:pt,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:Lt,punctuation:/[{}()\[\];:,]/};Gt.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:Gt}},Gt.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:Gt}},_e.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:Gt}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:Gt}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:Gt}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:Gt.interpolation}},rest:Gt}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:Gt.interpolation,comment:Gt.comment,punctuation:/[{},]/}},func:Gt.func,string:Gt.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:Gt.interpolation,punctuation:/[{}()\[\];:.]/}})(i)}return stylus_1}var swift_1,hasRequiredSwift;function requireSwift(){if(hasRequiredSwift)return swift_1;hasRequiredSwift=1,swift_1=a,a.displayName="swift",a.aliases=[];function a(i){i.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},i.languages.swift["string-literal"].forEach(function(_e){_e.inside.interpolation.inside=i.languages.swift})}return swift_1}var systemd_1,hasRequiredSystemd;function requireSystemd(){if(hasRequiredSystemd)return systemd_1;hasRequiredSystemd=1,systemd_1=a,a.displayName="systemd",a.aliases=[];function a(i){(function(_e){var pt={pattern:/^[;#].*/m,greedy:!0},Lt=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;_e.languages.systemd={comment:pt,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+Lt+`|(?=[^"\r +]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+Lt+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:pt,quoted:{pattern:RegExp(/(^|\s)/.source+Lt),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(i)}return systemd_1}var t4Templating_1,hasRequiredT4Templating;function requireT4Templating(){if(hasRequiredT4Templating)return t4Templating_1;hasRequiredT4Templating=1,t4Templating_1=a,a.displayName="t4Templating",a.aliases=[];function a(i){(function(_e){function pt(Gt,Ct,Rt){return{pattern:RegExp("<#"+Gt+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+Gt+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:Ct,alias:Rt}}}}function Lt(Gt){var Ct=_e.languages[Gt],Rt="language-"+Gt;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:pt("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:pt("=",Ct,Rt),"class-feature":pt("\\+",Ct,Rt),standard:pt("",Ct,Rt)}}}}_e.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:Lt})})(i)}return t4Templating_1}var t4Cs_1,hasRequiredT4Cs;function requireT4Cs(){if(hasRequiredT4Cs)return t4Cs_1;hasRequiredT4Cs=1;var a=requireT4Templating(),i=requireCsharp();t4Cs_1=_e,_e.displayName="t4Cs",_e.aliases=[];function _e(pt){pt.register(a),pt.register(i),pt.languages.t4=pt.languages["t4-cs"]=pt.languages["t4-templating"].createT4("csharp")}return t4Cs_1}var vbnet_1,hasRequiredVbnet;function requireVbnet(){if(hasRequiredVbnet)return vbnet_1;hasRequiredVbnet=1;var a=requireBasic();vbnet_1=i,i.displayName="vbnet",i.aliases=[];function i(_e){_e.register(a),_e.languages.vbnet=_e.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}return vbnet_1}var t4Vb_1,hasRequiredT4Vb;function requireT4Vb(){if(hasRequiredT4Vb)return t4Vb_1;hasRequiredT4Vb=1;var a=requireT4Templating(),i=requireVbnet();t4Vb_1=_e,_e.displayName="t4Vb",_e.aliases=[];function _e(pt){pt.register(a),pt.register(i),pt.languages["t4-vb"]=pt.languages["t4-templating"].createT4("vbnet")}return t4Vb_1}var yaml_1,hasRequiredYaml;function requireYaml(){if(hasRequiredYaml)return yaml_1;hasRequiredYaml=1,yaml_1=a,a.displayName="yaml",a.aliases=["yml"];function a(i){(function(_e){var pt=/[*&][^\s[\]{},]+/,Lt=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,Gt="(?:"+Lt.source+"(?:[ ]+"+pt.source+")?|"+pt.source+"(?:[ ]+"+Lt.source+")?)",Ct=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),Rt=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(it,xt){xt=(xt||"").replace(/m/g,"")+"m";var et=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return Gt}).replace(/<>/g,function(){return it});return RegExp(et,xt)}_e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return Gt})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return Gt}).replace(/<>/g,function(){return"(?:"+Ct+"|"+Rt+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(Rt),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:Lt,important:pt,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},_e.languages.yml=_e.languages.yaml})(i)}return yaml_1}var tap_1,hasRequiredTap;function requireTap(){if(hasRequiredTap)return tap_1;hasRequiredTap=1;var a=requireYaml();tap_1=i,i.displayName="tap",i.aliases=[];function i(_e){_e.register(a),_e.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:_e.languages.yaml,alias:"language-yaml"}}}return tap_1}var tcl_1,hasRequiredTcl;function requireTcl(){if(hasRequiredTcl)return tcl_1;hasRequiredTcl=1,tcl_1=a,a.displayName="tcl",a.aliases=[];function a(i){i.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}return tcl_1}var textile_1,hasRequiredTextile;function requireTextile(){if(hasRequiredTextile)return textile_1;hasRequiredTextile=1,textile_1=a,a.displayName="textile",a.aliases=[];function a(i){(function(_e){var pt=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,Lt=/\)|\((?![^|()\n]+\))/.source;function Gt(Tt,yt){return RegExp(Tt.replace(//g,function(){return"(?:"+pt+")"}).replace(//g,function(){return"(?:"+Lt+")"}),yt||"")}var Ct={css:{pattern:/\{[^{}]+\}/,inside:{rest:_e.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},Rt=_e.languages.textile=_e.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:Gt(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:Gt(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:Ct},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:Gt(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:Gt(/(^[*#]+)+/.source),lookbehind:!0,inside:Ct},punctuation:/^[*#]+/}},table:{pattern:Gt(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:Gt(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:Ct},punctuation:/\||^\./}},inline:{pattern:Gt(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:Gt(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:Gt(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:Gt(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:Gt(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:Gt(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:Gt(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:Gt(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:Gt(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:Ct},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:Gt(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:Gt(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:Gt(/(^")+/.source),lookbehind:!0,inside:Ct},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:Gt(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:Gt(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:Gt(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:Ct},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),o=Rt.phrase.inside,it={inline:o.inline,link:o.link,image:o.image,footnote:o.footnote,acronym:o.acronym,mark:o.mark};Rt.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var xt=o.inline.inside;xt.bold.inside=it,xt.italic.inside=it,xt.inserted.inside=it,xt.deleted.inside=it,xt.span.inside=it;var et=o.table.inside;et.inline=it.inline,et.link=it.link,et.image=it.image,et.footnote=it.footnote,et.acronym=it.acronym,et.mark=it.mark})(i)}return textile_1}var toml_1,hasRequiredToml;function requireToml(){if(hasRequiredToml)return toml_1;hasRequiredToml=1,toml_1=a,a.displayName="toml",a.aliases=[];function a(i){(function(_e){var pt=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function Lt(Gt){return Gt.replace(/__/g,function(){return pt})}_e.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(Lt(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(Lt(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(i)}return toml_1}var tremor_1,hasRequiredTremor;function requireTremor(){if(hasRequiredTremor)return tremor_1;hasRequiredTremor=1,tremor_1=a,a.displayName="tremor",a.aliases=[];function a(i){(function(_e){_e.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var pt=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;_e.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+pt+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+pt+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(pt),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:_e.languages.tremor}}},string:/[\s\S]+/}},_e.languages.troy=_e.languages.tremor,_e.languages.trickle=_e.languages.tremor})(i)}return tremor_1}var tsx_1,hasRequiredTsx;function requireTsx(){if(hasRequiredTsx)return tsx_1;hasRequiredTsx=1;var a=requireJsx(),i=requireTypescript();tsx_1=_e,_e.displayName="tsx",_e.aliases=[];function _e(pt){pt.register(a),pt.register(i),function(Lt){var Gt=Lt.util.clone(Lt.languages.typescript);Lt.languages.tsx=Lt.languages.extend("jsx",Gt),delete Lt.languages.tsx.parameter,delete Lt.languages.tsx["literal-property"];var Ct=Lt.languages.tsx.tag;Ct.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+Ct.pattern.source+")",Ct.pattern.flags),Ct.lookbehind=!0}(pt)}return tsx_1}var tt2_1,hasRequiredTt2;function requireTt2(){if(hasRequiredTt2)return tt2_1;hasRequiredTt2=1;var a=requireMarkupTemplating();tt2_1=i,i.displayName="tt2",i.aliases=[];function i(_e){_e.register(a),function(pt){pt.languages.tt2=pt.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),pt.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),pt.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),pt.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete pt.languages.tt2.string,pt.hooks.add("before-tokenize",function(Lt){var Gt=/\[%[\s\S]+?%\]/g;pt.languages["markup-templating"].buildPlaceholders(Lt,"tt2",Gt)}),pt.hooks.add("after-tokenize",function(Lt){pt.languages["markup-templating"].tokenizePlaceholders(Lt,"tt2")})}(_e)}return tt2_1}var twig_1,hasRequiredTwig;function requireTwig(){if(hasRequiredTwig)return twig_1;hasRequiredTwig=1;var a=requireMarkupTemplating();twig_1=i,i.displayName="twig",i.aliases=[];function i(_e){_e.register(a),_e.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},_e.hooks.add("before-tokenize",function(pt){if(pt.language==="twig"){var Lt=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;_e.languages["markup-templating"].buildPlaceholders(pt,"twig",Lt)}}),_e.hooks.add("after-tokenize",function(pt){_e.languages["markup-templating"].tokenizePlaceholders(pt,"twig")})}return twig_1}var typoscript_1,hasRequiredTyposcript;function requireTyposcript(){if(hasRequiredTyposcript)return typoscript_1;hasRequiredTyposcript=1,typoscript_1=a,a.displayName="typoscript",a.aliases=["tsconfig"];function a(i){(function(_e){var pt=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;_e.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:pt}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:pt,number:/^\d+$/,punctuation:/[,|:]/}},keyword:pt,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},_e.languages.tsconfig=_e.languages.typoscript})(i)}return typoscript_1}var unrealscript_1,hasRequiredUnrealscript;function requireUnrealscript(){if(hasRequiredUnrealscript)return unrealscript_1;hasRequiredUnrealscript=1,unrealscript_1=a,a.displayName="unrealscript",a.aliases=["uc","uscript"];function a(i){i.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},i.languages.uc=i.languages.uscript=i.languages.unrealscript}return unrealscript_1}var uorazor_1,hasRequiredUorazor;function requireUorazor(){if(hasRequiredUorazor)return uorazor_1;hasRequiredUorazor=1,uorazor_1=a,a.displayName="uorazor",a.aliases=[];function a(i){i.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}return uorazor_1}var uri_1,hasRequiredUri;function requireUri(){if(hasRequiredUri)return uri_1;hasRequiredUri=1,uri_1=a,a.displayName="uri",a.aliases=["url"];function a(i){i.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},i.languages.url=i.languages.uri}return uri_1}var v_1,hasRequiredV;function requireV(){if(hasRequiredV)return v_1;hasRequiredV=1,v_1=a,a.displayName="v",a.aliases=[];function a(i){(function(_e){var pt={pattern:/[\s\S]+/,inside:null};_e.languages.v=_e.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":pt}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),pt.inside=_e.languages.v,_e.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),_e.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),_e.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:_e.languages.v.generic.inside}}}})})(i)}return v_1}var vala_1,hasRequiredVala;function requireVala(){if(hasRequiredVala)return vala_1;hasRequiredVala=1,vala_1=a,a.displayName="vala",a.aliases=[];function a(i){i.languages.vala=i.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),i.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:i.languages.vala}},string:/[\s\S]+/}}}),i.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:i.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}return vala_1}var velocity_1,hasRequiredVelocity;function requireVelocity(){if(hasRequiredVelocity)return velocity_1;hasRequiredVelocity=1,velocity_1=a,a.displayName="velocity",a.aliases=[];function a(i){(function(_e){_e.languages.velocity=_e.languages.extend("markup",{});var pt={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};pt.variable.inside={string:pt.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:pt.number,boolean:pt.boolean,punctuation:pt.punctuation},_e.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:pt}},variable:pt.variable}),_e.languages.velocity.tag.inside["attr-value"].inside.rest=_e.languages.velocity})(i)}return velocity_1}var verilog_1,hasRequiredVerilog;function requireVerilog(){if(hasRequiredVerilog)return verilog_1;hasRequiredVerilog=1,verilog_1=a,a.displayName="verilog",a.aliases=[];function a(i){i.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}return verilog_1}var vhdl_1,hasRequiredVhdl;function requireVhdl(){if(hasRequiredVhdl)return vhdl_1;hasRequiredVhdl=1,vhdl_1=a,a.displayName="vhdl",a.aliases=[];function a(i){i.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}return vhdl_1}var vim_1,hasRequiredVim;function requireVim(){if(hasRequiredVim)return vim_1;hasRequiredVim=1,vim_1=a,a.displayName="vim",a.aliases=[];function a(i){i.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}return vim_1}var visualBasic_1,hasRequiredVisualBasic;function requireVisualBasic(){if(hasRequiredVisualBasic)return visualBasic_1;hasRequiredVisualBasic=1,visualBasic_1=a,a.displayName="visualBasic",a.aliases=[];function a(i){i.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},i.languages.vb=i.languages["visual-basic"],i.languages.vba=i.languages["visual-basic"]}return visualBasic_1}var warpscript_1,hasRequiredWarpscript;function requireWarpscript(){if(hasRequiredWarpscript)return warpscript_1;hasRequiredWarpscript=1,warpscript_1=a,a.displayName="warpscript",a.aliases=[];function a(i){i.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}return warpscript_1}var wasm_1,hasRequiredWasm;function requireWasm(){if(hasRequiredWasm)return wasm_1;hasRequiredWasm=1,wasm_1=a,a.displayName="wasm",a.aliases=[];function a(i){i.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}return wasm_1}var webIdl_1,hasRequiredWebIdl;function requireWebIdl(){if(hasRequiredWebIdl)return webIdl_1;hasRequiredWebIdl=1,webIdl_1=a,a.displayName="webIdl",a.aliases=[];function a(i){(function(_e){var pt=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,Lt="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+pt+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,Gt={};_e.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+pt),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:Gt},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+Lt),lookbehind:!0,inside:Gt},{pattern:RegExp("("+/\bcallback\s+/.source+pt+/\s*=\s*/.source+")"+Lt),lookbehind:!0,inside:Gt},{pattern:RegExp(/(\btypedef\b\s*)/.source+Lt),lookbehind:!0,inside:Gt},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+pt),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+pt),lookbehind:!0},RegExp(pt+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+pt),lookbehind:!0},{pattern:RegExp(Lt+"(?="+/\s*(?:\.{3}\s*)?/.source+pt+/\s*[(),;=]/.source+")"),inside:Gt}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var Ct in _e.languages["web-idl"])Ct!=="class-name"&&(Gt[Ct]=_e.languages["web-idl"][Ct]);_e.languages.webidl=_e.languages["web-idl"]})(i)}return webIdl_1}var wiki_1,hasRequiredWiki;function requireWiki(){if(hasRequiredWiki)return wiki_1;hasRequiredWiki=1,wiki_1=a,a.displayName="wiki",a.aliases=[];function a(i){i.languages.wiki=i.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:i.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),i.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:i.languages.markup.tag.inside}}}})}return wiki_1}var wolfram_1,hasRequiredWolfram;function requireWolfram(){if(hasRequiredWolfram)return wolfram_1;hasRequiredWolfram=1,wolfram_1=a,a.displayName="wolfram",a.aliases=["mathematica","wl","nb"];function a(i){i.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},i.languages.mathematica=i.languages.wolfram,i.languages.wl=i.languages.wolfram,i.languages.nb=i.languages.wolfram}return wolfram_1}var wren_1,hasRequiredWren;function requireWren(){if(hasRequiredWren)return wren_1;hasRequiredWren=1,wren_1=a,a.displayName="wren",a.aliases=[];function a(i){i.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},i.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:i.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}return wren_1}var xeora_1,hasRequiredXeora;function requireXeora(){if(hasRequiredXeora)return xeora_1;hasRequiredXeora=1,xeora_1=a,a.displayName="xeora",a.aliases=["xeoracube"];function a(i){(function(_e){_e.languages.xeora=_e.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),_e.languages.insertBefore("inside","punctuation",{variable:_e.languages.xeora["function-inline"].inside.variable},_e.languages.xeora["function-block"]),_e.languages.xeoracube=_e.languages.xeora})(i)}return xeora_1}var xmlDoc_1,hasRequiredXmlDoc;function requireXmlDoc(){if(hasRequiredXmlDoc)return xmlDoc_1;hasRequiredXmlDoc=1,xmlDoc_1=a,a.displayName="xmlDoc",a.aliases=[];function a(i){(function(_e){function pt(Rt,o){_e.languages[Rt]&&_e.languages.insertBefore(Rt,"comment",{"doc-comment":o})}var Lt=_e.languages.markup.tag,Gt={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:Lt}},Ct={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:Lt}};pt("csharp",Gt),pt("fsharp",Gt),pt("vbnet",Ct)})(i)}return xmlDoc_1}var xojo_1,hasRequiredXojo;function requireXojo(){if(hasRequiredXojo)return xojo_1;hasRequiredXojo=1,xojo_1=a,a.displayName="xojo",a.aliases=[];function a(i){i.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}return xojo_1}var xquery_1,hasRequiredXquery;function requireXquery(){if(hasRequiredXquery)return xquery_1;hasRequiredXquery=1,xquery_1=a,a.displayName="xquery",a.aliases=[];function a(i){(function(_e){_e.languages.xquery=_e.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),_e.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,_e.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,_e.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,_e.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:_e.languages.xquery,alias:"language-xquery"};var pt=function(Gt){return typeof Gt=="string"?Gt:typeof Gt.content=="string"?Gt.content:Gt.content.map(pt).join("")},Lt=function(Gt){for(var Ct=[],Rt=0;Rt0&&Ct[Ct.length-1].tagName===pt(o.content[0].content[1])&&Ct.pop():o.content[o.content.length-1].content==="/>"||Ct.push({tagName:pt(o.content[0].content[1]),openedBraces:0}):Ct.length>0&&o.type==="punctuation"&&o.content==="{"&&(!Gt[Rt+1]||Gt[Rt+1].type!=="punctuation"||Gt[Rt+1].content!=="{")&&(!Gt[Rt-1]||Gt[Rt-1].type!=="plain-text"||Gt[Rt-1].content!=="{")?Ct[Ct.length-1].openedBraces++:Ct.length>0&&Ct[Ct.length-1].openedBraces>0&&o.type==="punctuation"&&o.content==="}"?Ct[Ct.length-1].openedBraces--:o.type!=="comment"&&(it=!0)),(it||typeof o=="string")&&Ct.length>0&&Ct[Ct.length-1].openedBraces===0){var xt=pt(o);Rt0&&(typeof Gt[Rt-1]=="string"||Gt[Rt-1].type==="plain-text")&&(xt=pt(Gt[Rt-1])+xt,Gt.splice(Rt-1,1),Rt--),/^\s+$/.test(xt)?Gt[Rt]=xt:Gt[Rt]=new _e.Token("plain-text",xt,null,xt)}o.content&&typeof o.content!="string"&&Lt(o.content)}};_e.hooks.add("after-tokenize",function(Gt){Gt.language==="xquery"&&Lt(Gt.tokens)})})(i)}return xquery_1}var yang_1,hasRequiredYang;function requireYang(){if(hasRequiredYang)return yang_1;hasRequiredYang=1,yang_1=a,a.displayName="yang",a.aliases=[];function a(i){i.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}return yang_1}var zig_1,hasRequiredZig;function requireZig(){if(hasRequiredZig)return zig_1;hasRequiredZig=1,zig_1=a,a.displayName="zig",a.aliases=[];function a(i){(function(_e){function pt(xt){return function(){return xt}}var Lt=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,Gt="\\b(?!"+Lt.source+")(?!\\d)\\w+\\b",Ct=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,Rt=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,pt(Ct)),o=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,pt(Gt)),it="(?!\\s)(?:!?\\s*(?:"+Rt+"\\s*)*"+o+")+";_e.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,pt(it)).replace(//g,pt(Ct))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,pt(it)).replace(//g,pt(Ct))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:Lt,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},_e.languages.zig["class-name"].forEach(function(xt){xt.inside===null&&(xt.inside=_e.languages.zig)})})(i)}return zig_1}var refractor=core,refractor_1=refractor;refractor.register(requireAbap());refractor.register(requireAbnf());refractor.register(requireActionscript());refractor.register(requireAda());refractor.register(requireAgda());refractor.register(requireAl());refractor.register(requireAntlr4());refractor.register(requireApacheconf());refractor.register(requireApex());refractor.register(requireApl());refractor.register(requireApplescript());refractor.register(requireAql());refractor.register(requireArduino());refractor.register(requireArff());refractor.register(requireAsciidoc());refractor.register(requireAsm6502());refractor.register(requireAsmatmel());refractor.register(requireAspnet());refractor.register(requireAutohotkey());refractor.register(requireAutoit());refractor.register(requireAvisynth());refractor.register(requireAvroIdl());refractor.register(requireBash());refractor.register(requireBasic());refractor.register(requireBatch());refractor.register(requireBbcode());refractor.register(requireBicep());refractor.register(requireBirb());refractor.register(requireBison());refractor.register(requireBnf());refractor.register(requireBrainfuck());refractor.register(requireBrightscript());refractor.register(requireBro());refractor.register(requireBsl());refractor.register(requireC());refractor.register(requireCfscript());refractor.register(requireChaiscript());refractor.register(requireCil());refractor.register(requireClojure());refractor.register(requireCmake());refractor.register(requireCobol());refractor.register(requireCoffeescript());refractor.register(requireConcurnas());refractor.register(requireCoq());refractor.register(requireCpp());refractor.register(requireCrystal());refractor.register(requireCsharp());refractor.register(requireCshtml());refractor.register(requireCsp());refractor.register(requireCssExtras());refractor.register(requireCsv());refractor.register(requireCypher());refractor.register(requireD());refractor.register(requireDart());refractor.register(requireDataweave());refractor.register(requireDax());refractor.register(requireDhall());refractor.register(requireDiff());refractor.register(requireDjango());refractor.register(requireDnsZoneFile());refractor.register(requireDocker());refractor.register(requireDot());refractor.register(requireEbnf());refractor.register(requireEditorconfig());refractor.register(requireEiffel());refractor.register(requireEjs());refractor.register(requireElixir());refractor.register(requireElm());refractor.register(requireErb());refractor.register(requireErlang());refractor.register(requireEtlua());refractor.register(requireExcelFormula());refractor.register(requireFactor());refractor.register(require_false());refractor.register(requireFirestoreSecurityRules());refractor.register(requireFlow());refractor.register(requireFortran());refractor.register(requireFsharp());refractor.register(requireFtl());refractor.register(requireGap());refractor.register(requireGcode());refractor.register(requireGdscript());refractor.register(requireGedcom());refractor.register(requireGherkin());refractor.register(requireGit());refractor.register(requireGlsl());refractor.register(requireGml());refractor.register(requireGn());refractor.register(requireGoModule());refractor.register(requireGo());refractor.register(requireGraphql());refractor.register(requireGroovy());refractor.register(requireHaml());refractor.register(requireHandlebars());refractor.register(requireHaskell());refractor.register(requireHaxe());refractor.register(requireHcl());refractor.register(requireHlsl());refractor.register(requireHoon());refractor.register(requireHpkp());refractor.register(requireHsts());refractor.register(requireHttp());refractor.register(requireIchigojam());refractor.register(requireIcon());refractor.register(requireIcuMessageFormat());refractor.register(requireIdris());refractor.register(requireIecst());refractor.register(requireIgnore());refractor.register(requireInform7());refractor.register(requireIni());refractor.register(requireIo());refractor.register(requireJ());refractor.register(requireJava());refractor.register(requireJavadoc());refractor.register(requireJavadoclike());refractor.register(requireJavastacktrace());refractor.register(requireJexl());refractor.register(requireJolie());refractor.register(requireJq());refractor.register(requireJsExtras());refractor.register(requireJsTemplates());refractor.register(requireJsdoc());refractor.register(requireJson());refractor.register(requireJson5());refractor.register(requireJsonp());refractor.register(requireJsstacktrace());refractor.register(requireJsx());refractor.register(requireJulia());refractor.register(requireKeepalived());refractor.register(requireKeyman());refractor.register(requireKotlin());refractor.register(requireKumir());refractor.register(requireKusto());refractor.register(requireLatex());refractor.register(requireLatte());refractor.register(requireLess());refractor.register(requireLilypond());refractor.register(requireLiquid());refractor.register(requireLisp());refractor.register(requireLivescript());refractor.register(requireLlvm());refractor.register(requireLog());refractor.register(requireLolcode());refractor.register(requireLua());refractor.register(requireMagma());refractor.register(requireMakefile());refractor.register(requireMarkdown());refractor.register(requireMarkupTemplating());refractor.register(requireMatlab());refractor.register(requireMaxscript());refractor.register(requireMel());refractor.register(requireMermaid());refractor.register(requireMizar());refractor.register(requireMongodb());refractor.register(requireMonkey());refractor.register(requireMoonscript());refractor.register(requireN1ql());refractor.register(requireN4js());refractor.register(requireNand2tetrisHdl());refractor.register(requireNaniscript());refractor.register(requireNasm());refractor.register(requireNeon());refractor.register(requireNevod());refractor.register(requireNginx());refractor.register(requireNim());refractor.register(requireNix());refractor.register(requireNsis());refractor.register(requireObjectivec());refractor.register(requireOcaml());refractor.register(requireOpencl());refractor.register(requireOpenqasm());refractor.register(requireOz());refractor.register(requireParigp());refractor.register(requireParser());refractor.register(requirePascal());refractor.register(requirePascaligo());refractor.register(requirePcaxis());refractor.register(requirePeoplecode());refractor.register(requirePerl());refractor.register(requirePhpExtras());refractor.register(requirePhp());refractor.register(requirePhpdoc());refractor.register(requirePlsql());refractor.register(requirePowerquery());refractor.register(requirePowershell());refractor.register(requireProcessing());refractor.register(requireProlog());refractor.register(requirePromql());refractor.register(requireProperties());refractor.register(requireProtobuf());refractor.register(requirePsl());refractor.register(requirePug());refractor.register(requirePuppet());refractor.register(requirePure());refractor.register(requirePurebasic());refractor.register(requirePurescript());refractor.register(requirePython());refractor.register(requireQ());refractor.register(requireQml());refractor.register(requireQore());refractor.register(requireQsharp());refractor.register(requireR());refractor.register(requireRacket());refractor.register(requireReason());refractor.register(requireRegex());refractor.register(requireRego());refractor.register(requireRenpy());refractor.register(requireRest());refractor.register(requireRip());refractor.register(requireRoboconf());refractor.register(requireRobotframework());refractor.register(requireRuby());refractor.register(requireRust());refractor.register(requireSas());refractor.register(requireSass());refractor.register(requireScala());refractor.register(requireScheme());refractor.register(requireScss());refractor.register(requireShellSession());refractor.register(requireSmali());refractor.register(requireSmalltalk());refractor.register(requireSmarty());refractor.register(requireSml());refractor.register(requireSolidity());refractor.register(requireSolutionFile());refractor.register(requireSoy());refractor.register(requireSparql());refractor.register(requireSplunkSpl());refractor.register(requireSqf());refractor.register(requireSql());refractor.register(requireSquirrel());refractor.register(requireStan());refractor.register(requireStylus());refractor.register(requireSwift());refractor.register(requireSystemd());refractor.register(requireT4Cs());refractor.register(requireT4Templating());refractor.register(requireT4Vb());refractor.register(requireTap());refractor.register(requireTcl());refractor.register(requireTextile());refractor.register(requireToml());refractor.register(requireTremor());refractor.register(requireTsx());refractor.register(requireTt2());refractor.register(requireTurtle());refractor.register(requireTwig());refractor.register(requireTypescript());refractor.register(requireTyposcript());refractor.register(requireUnrealscript());refractor.register(requireUorazor());refractor.register(requireUri());refractor.register(requireV());refractor.register(requireVala());refractor.register(requireVbnet());refractor.register(requireVelocity());refractor.register(requireVerilog());refractor.register(requireVhdl());refractor.register(requireVim());refractor.register(requireVisualBasic());refractor.register(requireWarpscript());refractor.register(requireWasm());refractor.register(requireWebIdl());refractor.register(requireWiki());refractor.register(requireWolfram());refractor.register(requireWren());refractor.register(requireXeora());refractor.register(requireXmlDoc());refractor.register(requireXojo());refractor.register(requireXquery());refractor.register(requireYaml());refractor.register(requireYang());refractor.register(requireZig());var highlighter=highlight$1(refractor_1,defaultStyle);highlighter.supportedLanguages=supportedLanguages;const SyntaxHighlighter=highlighter,nord={'code[class*="language-"]':{color:"#f8f8f2",background:"none",fontFamily:`"Fira Code", Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace`,textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#2E3440",fontFamily:`"Fira Code", Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace`,textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#2E3440",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#636f88"},prolog:{color:"#636f88"},doctype:{color:"#636f88"},cdata:{color:"#636f88"},punctuation:{color:"#81A1C1"},".namespace":{Opacity:".7"},property:{color:"#81A1C1"},tag:{color:"#81A1C1"},constant:{color:"#81A1C1"},symbol:{color:"#81A1C1"},deleted:{color:"#81A1C1"},number:{color:"#B48EAD"},boolean:{color:"#81A1C1"},selector:{color:"#A3BE8C"},"attr-name":{color:"#A3BE8C"},string:{color:"#A3BE8C"},char:{color:"#A3BE8C"},builtin:{color:"#A3BE8C"},inserted:{color:"#A3BE8C"},operator:{color:"#81A1C1"},entity:{color:"#81A1C1",cursor:"help"},url:{color:"#81A1C1"},".language-css .token.string":{color:"#81A1C1"},".style .token.string":{color:"#81A1C1"},variable:{color:"#81A1C1"},atrule:{color:"#88C0D0"},"attr-value":{color:"#88C0D0"},function:{color:"#88C0D0"},"class-name":{color:"#88C0D0"},keyword:{color:"#81A1C1"},regex:{color:"#EBCB8B"},important:{color:"#EBCB8B",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}},container$1="_container_17869_1",chatRoot="_chatRoot_17869_7",chatContainer="_chatContainer_17869_17",chatEmptyState="_chatEmptyState_17869_31",chatEmptyStateTitle="_chatEmptyStateTitle_17869_39",chatEmptyStateSubtitle="_chatEmptyStateSubtitle_17869_51",chatIcon="_chatIcon_17869_65",chatMessageStream="_chatMessageStream_17869_71",chatMessageUser="_chatMessageUser_17869_83",chatMessageUserMessage="_chatMessageUserMessage_17869_89",chatMessageGpt="_chatMessageGpt_17869_110",chatMessageError="_chatMessageError_17869_116",chatMessageErrorContent="_chatMessageErrorContent_17869_130",chatInput="_chatInput_17869_142",clearChatBroom="_clearChatBroom_17869_155",clearChatBroomNoCosmos="_clearChatBroomNoCosmos_17869_171",newChatIcon="_newChatIcon_17869_187",stopGeneratingContainer="_stopGeneratingContainer_17869_203",stopGeneratingIcon="_stopGeneratingIcon_17869_220",stopGeneratingText="_stopGeneratingText_17869_226",citationPanel="_citationPanel_17869_241",citationPanelHeaderContainer="_citationPanelHeaderContainer_17869_261",citationPanelHeader="_citationPanelHeader_17869_261",citationPanelDismiss="_citationPanelDismiss_17869_276",citationPanelTitle="_citationPanelTitle_17869_287",citationPanelContent="_citationPanelContent_17869_302",exectResultList="_exectResultList_17869_314",viewSourceButton="_viewSourceButton_17869_347",chatMessageUserAttachment="_chatMessageUserAttachment_17869_397",userAttachmentDisclaimer="_userAttachmentDisclaimer_17869_401",styles$5={container:container$1,chatRoot,chatContainer,chatEmptyState,chatEmptyStateTitle,chatEmptyStateSubtitle,chatIcon,chatMessageStream,chatMessageUser,chatMessageUserMessage,chatMessageGpt,chatMessageError,chatMessageErrorContent,chatInput,clearChatBroom,clearChatBroomNoCosmos,newChatIcon,stopGeneratingContainer,stopGeneratingIcon,stopGeneratingText,citationPanel,citationPanelHeaderContainer,citationPanelHeader,citationPanelDismiss,citationPanelTitle,citationPanelContent,exectResultList,viewSourceButton,chatMessageUserAttachment,userAttachmentDisclaimer},Contoso="/assets/Contoso-ff70ad88.svg",XSSAllowTags=["iframe","a","img","svg","h1","h2","h3","h4","h5","h6","div","p","span","small","del","img","pictrue","embed","video","audio","i","u","sup","sub","strong","strike","code","pre","body","section","article","footer","table","tr","td","th","thead","tbody","tfooter","ul","ol","li"],XSSAllowAttributes=["href"],ACCEPTED_FILE_TYPES=["image/jpeg","image/png","image/gif","image/bmp","image/tiff","application/pdf"];var FileType=(a=>(a[a.Image=0]="Image",a[a.Pdf=1]="Pdf",a))(FileType||{}),CosmosDBStatus=(a=>(a.NotConfigured="CosmosDB is not configured",a.NotWorking="CosmosDB is not working",a.InvalidCredentials="CosmosDB has invalid credentials",a.InvalidDatabase="Invalid CosmosDB database name",a.InvalidContainer="Invalid CosmosDB container name",a.Working="CosmosDB is configured and working",a))(CosmosDBStatus||{}),ChatHistoryLoadingState=(a=>(a.Loading="loading",a.Success="success",a.Fail="fail",a.NotStarted="notStarted",a))(ChatHistoryLoadingState||{}),Feedback=(a=>(a.Neutral="neutral",a.Positive="positive",a.Negative="negative",a.MissingCitation="missing_citation",a.WrongCitation="wrong_citation",a.OutOfScope="out_of_scope",a.InaccurateOrIrrelevant="inaccurate_or_irrelevant",a.OtherUnhelpful="other_unhelpful",a.HateSpeech="hate_speech",a.Violent="violent",a.Sexual="sexual",a.Manipulative="manipulative",a.OtherHarmful="other_harmlful",a))(Feedback||{});async function conversationApi(a,i,_e){const pt=Gt=>{const Ct=structuredClone(Gt),Rt=Ct.uploaded_file;return Rt!=null&&Rt.contents&&(Rt.type===FileType.Image?Ct.content=[{type:"image_url",image_url:{url:Rt.contents}},{type:"text",text:Ct.content}]:Rt.type===FileType.Pdf&&(Ct.content=[{type:"text",text:`Use the following document in your responses: + ---BEGIN DOCUMENT---${Rt.contents}---END DOCUMENT---`},{type:"text",text:Ct.content}])),Ct};return await fetch("/conversation",{method:"POST",headers:{"Content-Type":"application/json","conversation-id":_e??""},body:JSON.stringify({messages:a.messages.map(pt)}),signal:i})}async function getUserInfo(){const a=await fetch("/.auth/me");return a.ok?await a.json():(console.log("No identity provider found. Access to chat will be blocked."),[])}const historyList=async(a=0)=>await fetch(`/history/list?offset=${a}`,{method:"GET"}).then(async _e=>{const pt=await _e.json();return Array.isArray(pt)?await Promise.all(pt.map(async Gt=>{let Ct=[];return Ct=await historyRead(Gt.id).then(o=>o).catch(o=>(console.error("error fetching messages: ",o),[])),{id:Gt.id,title:Gt.title,date:Gt.createdAt,messages:Ct}})):(console.error("There was an issue fetching your data."),null)}).catch(_e=>(console.error("There was an issue fetching your data."),null)),historyRead=async a=>await fetch("/history/read",{method:"POST",body:JSON.stringify({conversation_id:a}),headers:{"Content-Type":"application/json"}}).then(async _e=>{if(!_e)return[];const pt=await _e.json(),Lt=[];return pt!=null&&pt.messages&&pt.messages.forEach(Gt=>{const Ct={id:Gt.id,role:Gt.role,date:Gt.createdAt,content:Gt.content,feedback:Gt.feedback??void 0};Lt.push(Ct)}),Lt}).catch(_e=>(console.error("There was an issue fetching your data."),[])),historyGenerate=async(a,i,_e)=>{let pt;return _e?pt=JSON.stringify({conversation_id:_e,messages:a.messages}):pt=JSON.stringify({messages:a.messages}),await fetch("/history/generate",{method:"POST",headers:{"Content-Type":"application/json"},body:pt,signal:i}).then(Gt=>Gt).catch(Gt=>(console.error("There was an issue fetching your data."),new Response))},historyUpdate=async(a,i)=>await fetch("/history/update",{method:"POST",body:JSON.stringify({conversation_id:i,messages:a}),headers:{"Content-Type":"application/json"}}).then(async pt=>pt).catch(pt=>(console.error("There was an issue fetching your data."),{...new Response,ok:!1,status:500})),historyDelete=async a=>await fetch("/history/delete",{method:"DELETE",body:JSON.stringify({conversation_id:a}),headers:{"Content-Type":"application/json"}}).then(_e=>_e).catch(_e=>(console.error("There was an issue fetching your data."),{...new Response,ok:!1,status:500})),historyDeleteAll=async()=>await fetch("/history/delete_all",{method:"DELETE",body:JSON.stringify({}),headers:{"Content-Type":"application/json"}}).then(i=>i).catch(i=>(console.error("There was an issue fetching your data."),{...new Response,ok:!1,status:500})),historyClear=async a=>await fetch("/history/clear",{method:"POST",body:JSON.stringify({conversation_id:a}),headers:{"Content-Type":"application/json"}}).then(_e=>_e).catch(_e=>(console.error("There was an issue fetching your data."),{...new Response,ok:!1,status:500})),historyRename=async(a,i)=>await fetch("/history/rename",{method:"POST",body:JSON.stringify({conversation_id:a,title:i}),headers:{"Content-Type":"application/json"}}).then(pt=>pt).catch(pt=>(console.error("There was an issue fetching your data."),{...new Response,ok:!1,status:500})),historyEnsure=async()=>({cosmosDB:!1,status:CosmosDBStatus.NotConfigured}),frontendSettings=async()=>await fetch("/frontend_settings",{method:"GET"}).then(i=>i.json()).catch(i=>(console.error("There was an issue fetching your data."),null)),historyMessageFeedback=async(a,i)=>await fetch("/history/message_feedback",{method:"POST",body:JSON.stringify({message_id:a,message_feedback:i}),headers:{"Content-Type":"application/json"}}).then(pt=>pt).catch(pt=>(console.error("There was an issue logging feedback."),{...new Response,ok:!1,status:500}));function supersub(){return a=>{visit(a,["text"],(i,_e,pt)=>{if(i.type!=="text")return;const{value:Lt}=i,Gt=Lt.split(/\^/);if(Gt.length===1||Gt.length%2===0)return;const Ct=Gt.map((Rt,o)=>o%2===0?{type:"text",value:Rt}:{type:"superscript",data:{hName:"sup"},children:[{type:"text",value:Rt}]});pt.children.splice(_e,1,...Ct)}),visit(a,["text"],(i,_e,pt)=>{if(i.type!=="text")return;const{value:Lt}=i,Gt=Lt.split(/\~/);if(Gt.length===1||Gt.length%2===0)return;const Ct=Gt.map((Rt,o)=>o%2===0?{type:"text",value:Rt}:{type:"subscript",data:{hName:"sub"},children:[{type:"text",value:Rt}]});pt.children.splice(_e,1,...Ct)})}}var reactPlotly={},factory={};(function(a){function i(ot){return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(nt){return typeof nt}:function(nt){return nt&&typeof Symbol=="function"&&nt.constructor===Symbol&&nt!==Symbol.prototype?"symbol":typeof nt},i(ot)}Object.defineProperty(a,"__esModule",{value:!0}),a.default=st;var _e=Ct(reactExports),pt=Lt(propTypesExports);function Lt(ot){return ot&&ot.__esModule?ot:{default:ot}}function Gt(ot){if(typeof WeakMap!="function")return null;var nt=new WeakMap,vt=new WeakMap;return(Gt=function(bt){return bt?vt:nt})(ot)}function Ct(ot,nt){if(!nt&&ot&&ot.__esModule)return ot;if(ot===null||i(ot)!=="object"&&typeof ot!="function")return{default:ot};var vt=Gt(nt);if(vt&&vt.has(ot))return vt.get(ot);var dt={},bt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ft in ot)if(ft!=="default"&&Object.prototype.hasOwnProperty.call(ot,ft)){var at=bt?Object.getOwnPropertyDescriptor(ot,ft):null;at&&(at.get||at.set)?Object.defineProperty(dt,ft,at):dt[ft]=ot[ft]}return dt.default=ot,vt&&vt.set(ot,dt),dt}function Rt(ot,nt){if(!(ot instanceof nt))throw new TypeError("Cannot call a class as a function")}function o(ot,nt){for(var vt=0;vt"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 j(ot){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(vt){return vt.__proto__||Object.getPrototypeOf(vt)},j(ot)}var _=["AfterExport","AfterPlot","Animated","AnimatingFrame","AnimationInterrupted","AutoSize","BeforeExport","BeforeHover","ButtonClicked","Click","ClickAnnotation","Deselect","DoubleClick","Framework","Hover","LegendClick","LegendDoubleClick","Relayout","Relayouting","Restyle","Redraw","Selected","Selecting","SliderChange","SliderEnd","SliderStart","SunburstClick","Transitioning","TransitionInterrupted","Unhover","WebGlContextLost"],rt=["plotly_restyle","plotly_redraw","plotly_relayout","plotly_relayouting","plotly_doubleclick","plotly_animated","plotly_sunburstclick"],tt=typeof window<"u";function st(ot){var nt=function(vt){xt(bt,vt);var dt=Tt(bt);function bt(ft){var at;return Rt(this,bt),at=dt.call(this,ft),at.p=Promise.resolve(),at.resizeHandler=null,at.handlers={},at.syncWindowResize=at.syncWindowResize.bind(ut(at)),at.syncEventHandlers=at.syncEventHandlers.bind(ut(at)),at.attachUpdateEvents=at.attachUpdateEvents.bind(ut(at)),at.getRef=at.getRef.bind(ut(at)),at.handleUpdate=at.handleUpdate.bind(ut(at)),at.figureCallback=at.figureCallback.bind(ut(at)),at.updatePlotly=at.updatePlotly.bind(ut(at)),at}return it(bt,[{key:"updatePlotly",value:function(at,mt,St){var _t=this;this.p=this.p.then(function(){if(!_t.unmounting){if(!_t.el)throw new Error("Missing element reference");return ot.react(_t.el,{data:_t.props.data,layout:_t.props.layout,config:_t.props.config,frames:_t.props.frames})}}).then(function(){_t.unmounting||(_t.syncWindowResize(at),_t.syncEventHandlers(),_t.figureCallback(mt),St&&_t.attachUpdateEvents())}).catch(function(Mt){_t.props.onError&&_t.props.onError(Mt)})}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(at){this.unmounting=!1;var mt=at.frames&&at.frames.length?at.frames.length:0,St=this.props.frames&&this.props.frames.length?this.props.frames.length:0,_t=!(at.layout===this.props.layout&&at.data===this.props.data&&at.config===this.props.config&&St===mt),Mt=at.revision!==void 0,Et=at.revision!==this.props.revision;!_t&&(!Mt||Mt&&!Et)||this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&tt&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),ot.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var at=this;!this.el||!this.el.removeListener||rt.forEach(function(mt){at.el.on(mt,at.handleUpdate)})}},{key:"removeUpdateEvents",value:function(){var at=this;!this.el||!this.el.removeListener||rt.forEach(function(mt){at.el.removeListener(mt,at.handleUpdate)})}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(at){if(typeof at=="function"){var mt=this.el,St=mt.data,_t=mt.layout,Mt=this.el._transitionData?this.el._transitionData._frames:null,Et={data:St,layout:_t,frames:Mt};at(Et,this.el)}}},{key:"syncWindowResize",value:function(at){var mt=this;tt&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return ot.Plots.resize(mt.el)},window.addEventListener("resize",this.resizeHandler),at&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(at){this.el=at,this.props.debug&&tt&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var at=this;_.forEach(function(mt){var St=at.props["on"+mt],_t=at.handlers[mt],Mt=Boolean(_t);St&&!Mt?at.addEventHandler(mt,St):!St&&Mt?at.removeEventHandler(mt):St&&Mt&&St!==_t&&(at.removeEventHandler(mt),at.addEventHandler(mt,St))})}},{key:"addEventHandler",value:function(at,mt){this.handlers[at]=mt,this.el.on(this.getPlotlyEventName(at),this.handlers[at])}},{key:"removeEventHandler",value:function(at){this.el.removeListener(this.getPlotlyEventName(at),this.handlers[at]),delete this.handlers[at]}},{key:"getPlotlyEventName",value:function(at){return"plotly_"+at.toLowerCase()}},{key:"render",value:function(){return _e.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}]),bt}(_e.Component);return nt.propTypes={data:pt.default.arrayOf(pt.default.object),config:pt.default.object,layout:pt.default.object,frames:pt.default.arrayOf(pt.default.object),revision:pt.default.number,onInitialized:pt.default.func,onPurge:pt.default.func,onError:pt.default.func,onUpdate:pt.default.func,debug:pt.default.bool,style:pt.default.object,className:pt.default.string,useResizeHandler:pt.default.bool,divId:pt.default.string},_.forEach(function(vt){nt.propTypes["on"+vt]=pt.default.func}),nt.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},nt}})(factory);var plotlyExports={},plotly={get exports(){return plotlyExports},set exports(a){plotlyExports=a}};(function(a,i){(function(pt,Lt){a.exports=Lt()})(self,function(){return function(){var _e={79288:function(Ct,Rt,o){var it=o(3400),xt={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var et in xt){var Tt=et.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");it.addStyleRule(Tt,xt[et])}},86712:function(Ct,Rt,o){Ct.exports=o(84224)},37240:function(Ct,Rt,o){Ct.exports=o(51132)},29744:function(Ct,Rt,o){Ct.exports=o(94456)},29352:function(Ct,Rt,o){Ct.exports=o(67244)},96144:function(Ct,Rt,o){Ct.exports=o(97776)},53219:function(Ct,Rt,o){Ct.exports=o(61712)},4624:function(Ct,Rt,o){Ct.exports=o(95856)},54543:function(Ct,Rt,o){Ct.exports=o(54272)},45e3:function(Ct,Rt,o){Ct.exports=o(85404)},62300:function(Ct,Rt,o){Ct.exports=o(26048)},6920:function(Ct,Rt,o){Ct.exports=o(66240)},10264:function(Ct,Rt,o){Ct.exports=o(40448)},32016:function(Ct,Rt,o){Ct.exports=o(64884)},27528:function(Ct,Rt,o){Ct.exports=o(15088)},75556:function(Ct,Rt,o){Ct.exports=o(76744)},39204:function(Ct,Rt,o){Ct.exports=o(94704)},73996:function(Ct,Rt,o){Ct.exports=o(62396)},16489:function(Ct,Rt,o){Ct.exports=o(32028)},5e3:function(Ct,Rt,o){Ct.exports=o(81932)},77280:function(Ct,Rt,o){Ct.exports=o(45536)},33992:function(Ct,Rt,o){Ct.exports=o(42600)},17600:function(Ct,Rt,o){Ct.exports=o(21536)},49116:function(Ct,Rt,o){Ct.exports=o(65664)},46808:function(Ct,Rt,o){Ct.exports=o(29044)},36168:function(Ct,Rt,o){Ct.exports=o(48928)},13792:function(Ct,Rt,o){var it=o(32016);it.register([o(37240),o(29352),o(5e3),o(33992),o(17600),o(49116),o(6920),o(67484),o(79440),o(39204),o(83096),o(36168),o(20260),o(63560),o(65832),o(46808),o(73996),o(48824),o(89904),o(25120),o(13752),o(4340),o(62300),o(29800),o(8363),o(54543),o(86636),o(42192),o(32140),o(77280),o(89296),o(56816),o(70192),o(45e3),o(27528),o(84764),o(3920),o(50248),o(4624),o(69967),o(10264),o(86152),o(53219),o(81604),o(63796),o(29744),o(89336),o(86712),o(75556),o(16489),o(97312),o(96144)]),Ct.exports=it},3920:function(Ct,Rt,o){Ct.exports=o(43480)},25120:function(Ct,Rt,o){Ct.exports=o(6296)},4340:function(Ct,Rt,o){Ct.exports=o(7404)},86152:function(Ct,Rt,o){Ct.exports=o(65456)},56816:function(Ct,Rt,o){Ct.exports=o(22020)},89296:function(Ct,Rt,o){Ct.exports=o(29928)},20260:function(Ct,Rt,o){Ct.exports=o(75792)},32140:function(Ct,Rt,o){Ct.exports=o(156)},84764:function(Ct,Rt,o){Ct.exports=o(45499)},48824:function(Ct,Rt,o){Ct.exports=o(3296)},69967:function(Ct,Rt,o){Ct.exports=o(4184)},8363:function(Ct,Rt,o){Ct.exports=o(36952)},86636:function(Ct,Rt,o){Ct.exports=o(38983)},70192:function(Ct,Rt,o){Ct.exports=o(11572)},81604:function(Ct,Rt,o){Ct.exports=o(76924)},63796:function(Ct,Rt,o){Ct.exports=o(62944)},89336:function(Ct,Rt,o){Ct.exports=o(95443)},67484:function(Ct,Rt,o){Ct.exports=o(34864)},97312:function(Ct,Rt,o){Ct.exports=o(76272)},42192:function(Ct,Rt,o){Ct.exports=o(97924)},29800:function(Ct,Rt,o){Ct.exports=o(15436)},63560:function(Ct,Rt,o){Ct.exports=o(5621)},89904:function(Ct,Rt,o){Ct.exports=o(91304)},50248:function(Ct,Rt,o){Ct.exports=o(41724)},65832:function(Ct,Rt,o){Ct.exports=o(31991)},79440:function(Ct,Rt,o){Ct.exports=o(22869)},13752:function(Ct,Rt,o){Ct.exports=o(67776)},83096:function(Ct,Rt,o){Ct.exports=o(95952)},72196:function(Ct){Ct.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},13916:function(Ct,Rt,o){var it=o(72196),xt=o(25376),et=o(33816),Tt=o(31780).templatedArray;o(36208),Ct.exports=Tt("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:xt({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:it.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:it.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",et.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",et.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",et.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",et.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:xt({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},90272:function(Ct,Rt,o){var it=o(3400),xt=o(54460),et=o(23816).draw;Ct.exports=function(ht){var j=ht._fullLayout,_=it.filterVisible(j.annotations);if(_.length&&ht._fullData.length)return it.syncOrAsync([et,Tt],ht)};function Tt(ut){var ht=ut._fullLayout;it.filterVisible(ht.annotations).forEach(function(j){var _=xt.getFromId(ut,j.xref),rt=xt.getFromId(ut,j.yref),tt=xt.getRefType(j.xref),st=xt.getRefType(j.yref);j._extremes={},tt==="range"&&yt(j,_),st==="range"&&yt(j,rt)})}function yt(ut,ht){var j=ht._id,_=j.charAt(0),rt=ut[_],tt=ut["a"+_],st=ut[_+"ref"],ot=ut["a"+_+"ref"],nt=ut["_"+_+"padplus"],vt=ut["_"+_+"padminus"],dt={x:1,y:-1}[_]*ut[_+"shift"],bt=3*ut.arrowsize*ut.arrowwidth||0,ft=bt+dt,at=bt-dt,mt=3*ut.startarrowsize*ut.arrowwidth||0,St=mt+dt,_t=mt-dt,Mt;if(ot===st){var Et=xt.findExtremes(ht,[ht.r2c(rt)],{ppadplus:ft,ppadminus:at}),kt=xt.findExtremes(ht,[ht.r2c(tt)],{ppadplus:Math.max(nt,St),ppadminus:Math.max(vt,_t)});Mt={min:[Et.min[0],kt.min[0]],max:[Et.max[0],kt.max[0]]}}else St=tt?St+tt:St,_t=tt?_t-tt:_t,Mt=xt.findExtremes(ht,[ht.r2c(rt)],{ppadplus:Math.max(nt,ft,St),ppadminus:Math.max(vt,at,_t)});ut._extremes[j]=Mt}},42300:function(Ct,Rt,o){var it=o(3400),xt=o(24040),et=o(31780).arrayEditor;Ct.exports={hasClickToShow:Tt,onClick:yt};function Tt(j,_){var rt=ut(j,_);return rt.on.length>0||rt.explicitOff.length>0}function yt(j,_){var rt=ut(j,_),tt=rt.on,st=rt.off.concat(rt.explicitOff),ot={},nt=j._fullLayout.annotations,vt,dt;if(tt.length||st.length){for(vt=0;vt.6666666666666666?ba="right":ba="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[ba]}for(var Qr=!1,sn=["x","y"],un=0;un1)&&(ln===Xr?(Pr=mn.r2fraction(mt["a"+en]),(Pr<0||Pr>1)&&(Qr=!0)):Qr=!0),wr=mn._offset+mn.r2p(mt[en]),Sr=.5}else{var Vr=xr==="domain";en==="x"?(Dr=mt[en],wr=Vr?mn._offset+mn._length*Dr:wr=wt.l+wt.w*Dr):(Dr=1-mt[en],wr=Vr?mn._offset+mn._length*Dr:wr=wt.t+wt.h*Dr),Sr=mt.showarrow?.5:Dr}if(mt.showarrow){Gr.head=wr;var qr=mt["a"+en];if(ur=Tn*Nr(.5,mt.xanchor)-Zr*Nr(.5,mt.yanchor),ln===Xr){var rn=ut.getRefType(ln);rn==="domain"?(en==="y"&&(qr=1-qr),Gr.tail=mn._offset+mn._length*qr):rn==="paper"?en==="y"?(qr=1-qr,Gr.tail=wt.t+wt.h*qr):Gr.tail=wt.l+wt.w*qr:Gr.tail=mn._offset+mn.r2p(qr),pr=ur}else Gr.tail=wr+qr,pr=ur+qr;Gr.text=Gr.tail+ur;var Cn=kt[en==="x"?"width":"height"];if(Xr==="paper"&&(Gr.head=Tt.constrain(Gr.head,1,Cn-1)),ln==="pixel"){var xn=-Math.max(Gr.tail-3,Gr.text),fn=Math.min(Gr.tail+3,Gr.text)-Cn;xn>0?(Gr.tail+=xn,Gr.text+=xn):fn>0&&(Gr.tail-=fn,Gr.text-=fn)}Gr.tail+=Wr,Gr.head+=Wr}else ur=Fr*Nr(Sr,Ur),pr=ur,Gr.text=wr+ur;Gr.text+=Wr,ur+=Wr,pr+=Wr,mt["_"+en+"padplus"]=Fr/2+pr,mt["_"+en+"padminus"]=Fr/2-pr,mt["_"+en+"size"]=Fr,mt["_"+en+"shift"]=ur}if(Qr){lr.remove();return}var bn=0,Un=0;if(mt.align!=="left"&&(bn=(Rr-_r)*(mt.align==="center"?.5:1)),mt.valign!=="top"&&(Un=(zr-Er)*(mt.valign==="middle"?.5:1)),Ir)br.select("svg").attr({x:rr+bn-1,y:rr+Un}).call(j.setClipUrl,ar?Nt:null,at);else{var _i=rr+Un-Tr.top,yn=rr+bn-Tr.left;or.call(rt.positionText,yn,_i).call(j.setClipUrl,ar?Nt:null,at)}sr.select("rect").call(j.setRect,rr,rr,Rr,zr),jt.call(j.setRect,Jt/2,Jt/2,Or-Jt,kr-Jt),lr.call(j.setTranslate,Math.round($t.x.text-Or/2),Math.round($t.y.text-kr/2)),Vt.attr({transform:"rotate("+Ut+","+$t.x.text+","+$t.y.text+")"});var Kn=function(so,ba){Ht.selectAll(".annotation-arrow-g").remove();var An=$t.x.head,hn=$t.y.head,wn=$t.x.tail+so,In=$t.y.tail+ba,Ln=$t.x.text+so,Xn=$t.y.text+ba,Wn=Tt.rotationXYMatrix(Ut,Ln,Xn),Vn=Tt.apply2DTransform(Wn),ga=Tt.apply2DTransform2(Wn),fo=+jt.attr("width"),qn=+jt.attr("height"),po=Ln-.5*fo,Yr=po+fo,jr=Xn-.5*qn,$n=jr+qn,Bn=[[po,jr,po,$n],[po,$n,Yr,$n],[Yr,$n,Yr,jr],[Yr,jr,po,jr]].map(ga);if(!Bn.reduce(function(Lo,vs){return Lo^!!Tt.segmentsIntersect(An,hn,An+1e6,hn+1e6,vs[0],vs[1],vs[2],vs[3])},!1)){Bn.forEach(function(Lo){var vs=Tt.segmentsIntersect(wn,In,An,hn,Lo[0],Lo[1],Lo[2],Lo[3]);vs&&(wn=vs.x,In=vs.y)});var xa=mt.arrowwidth,ro=mt.arrowcolor,io=mt.arrowside,eo=Ht.append("g").style({opacity:ht.opacity(ro)}).classed("annotation-arrow-g",!0),Gn=eo.append("path").attr("d","M"+wn+","+In+"L"+An+","+hn).style("stroke-width",xa+"px").call(ht.stroke,ht.rgb(ro));if(nt(Gn,io,mt),ct.annotationPosition&&Gn.node().parentNode&&!_t){var ho=An,go=hn;if(mt.standoff){var _o=Math.sqrt(Math.pow(An-wn,2)+Math.pow(hn-In,2));ho+=mt.standoff*(wn-An)/_o,go+=mt.standoff*(In-hn)/_o}var co=eo.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(wn-ho)+","+(In-go),transform:yt(ho,go)}).style("stroke-width",xa+6+"px").call(ht.stroke,"rgba(0,0,0,0)").call(ht.fill,"rgba(0,0,0,0)"),zo,Io;st.init({element:co.node(),gd:at,prepFn:function(){var Lo=j.getTranslate(lr);zo=Lo.x,Io=Lo.y,Mt&&Mt.autorange&&Pt(Mt._name+".autorange",!0),Et&&Et.autorange&&Pt(Et._name+".autorange",!0)},moveFn:function(Lo,vs){var Zo=Vn(zo,Io),Ls=Zo[0]+Lo,Ds=Zo[1]+vs;lr.call(j.setTranslate,Ls,Ds),zt("x",bt(Mt,Lo,"x",wt,mt)),zt("y",bt(Et,vs,"y",wt,mt)),mt.axref===mt.xref&&zt("ax",bt(Mt,Lo,"ax",wt,mt)),mt.ayref===mt.yref&&zt("ay",bt(Et,vs,"ay",wt,mt)),eo.attr("transform",yt(Lo,vs)),Vt.attr({transform:"rotate("+Ut+","+Ls+","+Ds+")"})},doneFn:function(){xt.call("_guiRelayout",at,Dt());var Lo=document.querySelector(".js-notes-box-panel");Lo&&Lo.redraw(Lo.selectedObj)}})}}};if(mt.showarrow&&Kn(0,0),Xt){var Jn;st.init({element:lr.node(),gd:at,prepFn:function(){Jn=Vt.attr("transform")},moveFn:function(so,ba){var An="pointer";if(mt.showarrow)mt.axref===mt.xref?zt("ax",bt(Mt,so,"ax",wt,mt)):zt("ax",mt.ax+so),mt.ayref===mt.yref?zt("ay",bt(Et,ba,"ay",wt.w,mt)):zt("ay",mt.ay+ba),Kn(so,ba);else{if(_t)return;var hn,wn;if(Mt)hn=bt(Mt,so,"x",wt,mt);else{var In=mt._xsize/wt.w,Ln=mt.x+(mt._xshift-mt.xshift)/wt.w-In/2;hn=st.align(Ln+so/wt.w,In,0,1,mt.xanchor)}if(Et)wn=bt(Et,ba,"y",wt,mt);else{var Xn=mt._ysize/wt.h,Wn=mt.y-(mt._yshift+mt.yshift)/wt.h-Xn/2;wn=st.align(Wn-ba/wt.h,Xn,0,1,mt.yanchor)}zt("x",hn),zt("y",wn),(!Mt||!Et)&&(An=st.getCursor(Mt?.5:hn,Et?.5:wn,mt.xanchor,mt.yanchor))}Vt.attr({transform:yt(so,ba)+Jn}),tt(lr,An)},clickFn:function(so,ba){mt.captureevents&&at.emit("plotly_clickannotation",er(ba))},doneFn:function(){tt(lr),xt.call("_guiRelayout",at,Dt());var so=document.querySelector(".js-notes-box-panel");so&&so.redraw(so.selectedObj)}})}}ct.annotationText?or.call(rt.makeEditable,{delegate:lr,gd:at}).call(tr).on("edit",function(mr){mt.text=mr,this.call(tr),zt("text",mr),Mt&&Mt.autorange&&Pt(Mt._name+".autorange",!0),Et&&Et.autorange&&Pt(Et._name+".autorange",!0),xt.call("_guiRelayout",at,Dt())}):or.call(tr)}},33652:function(Ct,Rt,o){var it=o(33428),xt=o(76308),et=o(72196),Tt=o(3400),yt=Tt.strScale,ut=Tt.strRotate,ht=Tt.strTranslate;Ct.exports=function(_,rt,tt){var st=_.node(),ot=et[tt.arrowhead||0],nt=et[tt.startarrowhead||0],vt=(tt.arrowwidth||1)*(tt.arrowsize||1),dt=(tt.arrowwidth||1)*(tt.startarrowsize||1),bt=rt.indexOf("start")>=0,ft=rt.indexOf("end")>=0,at=ot.backoff*vt+tt.standoff,mt=nt.backoff*dt+tt.startstandoff,St,_t,Mt,Et;if(st.nodeName==="line"){St={x:+_.attr("x1"),y:+_.attr("y1")},_t={x:+_.attr("x2"),y:+_.attr("y2")};var kt=St.x-_t.x,wt=St.y-_t.y;if(Mt=Math.atan2(wt,kt),Et=Mt+Math.PI,at&&mt&&at+mt>Math.sqrt(kt*kt+wt*wt)){Vt();return}if(at){if(at*at>kt*kt+wt*wt){Vt();return}var ct=at*Math.cos(Mt),It=at*Math.sin(Mt);_t.x+=ct,_t.y+=It,_.attr({x2:_t.x,y2:_t.y})}if(mt){if(mt*mt>kt*kt+wt*wt){Vt();return}var At=mt*Math.cos(Mt),Ot=mt*Math.sin(Mt);St.x-=At,St.y-=Ot,_.attr({x1:St.x,y1:St.y})}}else if(st.nodeName==="path"){var Pt=st.getTotalLength(),zt="";if(Pt1){tt=!0;break}}tt?yt.fullLayout._infolayer.select(".annotation-"+yt.id+'[data-index="'+_+'"]').remove():(rt._pdata=xt(yt.glplot.cameraParams,[ut.xaxis.r2l(rt.x)*ht[0],ut.yaxis.r2l(rt.y)*ht[1],ut.zaxis.r2l(rt.z)*ht[2]]),it(yt.graphDiv,rt,_,yt.id,rt._xa,rt._ya))}}},56864:function(Ct,Rt,o){var it=o(24040),xt=o(3400);Ct.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:o(45899)}}},layoutAttributes:o(45899),handleDefaults:o(52808),includeBasePlot:et,convert:o(42456),draw:o(71836)};function et(Tt,yt){var ut=it.subplotsRegistry.gl3d;if(ut)for(var ht=ut.attrRegex,j=Object.keys(Tt),_=0;_=0)))return _;if(nt===3)st[nt]>1&&(st[nt]=1);else if(st[nt]>=1)return _}var vt=Math.round(st[0]*255)+", "+Math.round(st[1]*255)+", "+Math.round(st[2]*255);return ot?"rgba("+vt+", "+st[3]+")":"rgb("+vt+")"}},42996:function(Ct,Rt,o){var it=o(94724),xt=o(25376),et=o(92880).extendFlat,Tt=o(67824).overrideAll;Ct.exports=Tt({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:it.linecolor,outlinewidth:it.linewidth,bordercolor:it.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:it.minor.tickmode,nticks:it.nticks,tick0:it.tick0,dtick:it.dtick,tickvals:it.tickvals,ticktext:it.ticktext,ticks:et({},it.ticks,{dflt:""}),ticklabeloverflow:et({},it.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:it.ticklen,tickwidth:it.tickwidth,tickcolor:it.tickcolor,ticklabelstep:it.ticklabelstep,showticklabels:it.showticklabels,labelalias:it.labelalias,tickfont:xt({}),tickangle:it.tickangle,tickformat:it.tickformat,tickformatstops:it.tickformatstops,tickprefix:it.tickprefix,showtickprefix:it.showtickprefix,ticksuffix:it.ticksuffix,showticksuffix:it.showticksuffix,separatethousands:it.separatethousands,exponentformat:it.exponentformat,minexponent:it.minexponent,showexponent:it.showexponent,title:{text:{valType:"string"},font:xt({}),side:{valType:"enumerated",values:["right","top","bottom"]}},_deprecated:{title:{valType:"string"},titlefont:xt({}),titleside:{valType:"enumerated",values:["right","top","bottom"],dflt:"top"}}},"colorbars","from-root")},63964:function(Ct){Ct.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}},64013:function(Ct,Rt,o){var it=o(3400),xt=o(31780),et=o(26332),Tt=o(25404),yt=o(95936),ut=o(42568),ht=o(42996);Ct.exports=function(_,rt,tt){var st=xt.newContainer(rt,"colorbar"),ot=_.colorbar||{};function nt($t,Ut){return it.coerce(ot,st,ht,$t,Ut)}var vt=tt.margin||{t:0,b:0,l:0,r:0},dt=tt.width-vt.l-vt.r,bt=tt.height-vt.t-vt.b,ft=nt("orientation"),at=ft==="v",mt=nt("thicknessmode");nt("thickness",mt==="fraction"?30/(at?dt:bt):30);var St=nt("lenmode");nt("len",St==="fraction"?1:at?bt:dt);var _t=nt("yref"),Mt=nt("xref"),Et=_t==="paper",kt=Mt==="paper",wt,ct,It,At="left";at?(It="middle",At=kt?"left":"right",wt=kt?1.02:1,ct=.5):(It=Et?"bottom":"top",At="center",wt=.5,ct=Et?1.02:1),it.coerce(ot,st,{x:{valType:"number",min:kt?-2:0,max:kt?3:1,dflt:wt}},"x"),it.coerce(ot,st,{y:{valType:"number",min:Et?-2:0,max:Et?3:1,dflt:ct}},"y"),nt("xanchor",At),nt("xpad"),nt("yanchor",It),nt("ypad"),it.noneOrAll(ot,st,["x","y"]),nt("outlinecolor"),nt("outlinewidth"),nt("bordercolor"),nt("borderwidth"),nt("bgcolor");var Ot=it.coerce(ot,st,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:at?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");nt("ticklabeloverflow",Ot.indexOf("inside")!==-1?"hide past domain":"hide past div"),et(ot,st,nt,"linear");var Pt=tt.font,zt={noAutotickangles:!0,outerTicks:!1,font:Pt};Ot.indexOf("inside")!==-1&&(zt.bgColor="black"),ut(ot,st,nt,"linear",zt),yt(ot,st,nt,"linear",zt),Tt(ot,st,nt,"linear",zt),nt("title.text",tt._dfltTitle.colorbar);var Dt=st.showticklabels?st.tickfont:Pt,Nt=it.extendFlat({},Dt,{weight:Pt.weight,style:Pt.style,variant:Pt.variant,color:Pt.color,size:it.bigFont(Dt.size)});it.coerceFont(nt,"title.font",Nt),nt("title.side",at?"top":"right")}},37848:function(Ct,Rt,o){var it=o(33428),xt=o(49760),et=o(7316),Tt=o(24040),yt=o(54460),ut=o(86476),ht=o(3400),j=ht.strTranslate,_=o(92880).extendFlat,rt=o(93972),tt=o(43616),st=o(76308),ot=o(81668),nt=o(72736),vt=o(94288).flipScale,dt=o(28336),bt=o(37668),ft=o(94724),at=o(84284),mt=at.LINE_SPACING,St=at.FROM_TL,_t=at.FROM_BR,Mt=o(63964).cn;function Et(Ot){var Pt=Ot._fullLayout,zt=Pt._infolayer.selectAll("g."+Mt.colorbar).data(kt(Ot),function(Dt){return Dt._id});zt.enter().append("g").attr("class",function(Dt){return Dt._id}).classed(Mt.colorbar,!0),zt.each(function(Dt){var Nt=it.select(this);ht.ensureSingle(Nt,"rect",Mt.cbbg),ht.ensureSingle(Nt,"g",Mt.cbfills),ht.ensureSingle(Nt,"g",Mt.cblines),ht.ensureSingle(Nt,"g",Mt.cbaxis,function(Ut){Ut.classed(Mt.crisp,!0)}),ht.ensureSingle(Nt,"g",Mt.cbtitleunshift,function(Ut){Ut.append("g").classed(Mt.cbtitle,!0)}),ht.ensureSingle(Nt,"rect",Mt.cboutline);var $t=wt(Nt,Dt,Ot);$t&&$t.then&&(Ot._promises||[]).push($t),Ot._context.edits.colorbarPosition&&ct(Nt,Dt,Ot)}),zt.exit().each(function(Dt){et.autoMargin(Ot,Dt._id)}).remove(),zt.order()}function kt(Ot){var Pt=Ot._fullLayout,zt=Ot.calcdata,Dt=[],Nt,$t,Ut,Ht;function Vt(Zt){return _(Zt,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function Xt(){typeof Ht.calc=="function"?Ht.calc(Ot,Ut,Nt):(Nt._fillgradient=$t.reversescale?vt($t.colorscale):$t.colorscale,Nt._zrange=[$t[Ht.min],$t[Ht.max]])}for(var qt=0;qt1){var Gr=Math.pow(10,Math.floor(Math.log(Wr)/Math.LN10));Fr*=Gr*ht.roundUp(Wr/Gr,[2,5,10]),(Math.abs(Tr.start)/Tr.size+1e-6)%1<2e-6&&(Tn.tick0=0)}Tn.dtick=Fr}Tn.domain=Dt?[mn+Yt/Kt.h,mn+Nr-Yt/Kt.h]:[mn+Jt/Kt.w,mn+Nr-Jt/Kt.w],Tn.setScale(),Ot.attr("transform",j(Math.round(Kt.l),Math.round(Kt.t)));var wr=Ot.select("."+Mt.cbtitleunshift).attr("transform",j(-Math.round(Kt.l),-Math.round(Kt.t))),pr=Tn.ticklabelposition,Dr=Tn.title.font.size,Sr=Ot.select("."+Mt.cbaxis),ur,xr=0,Pr=0;function Vr(fn,bn){var Un={propContainer:Tn,propName:Pt._propPrefix+"title",traceIndex:Pt._traceIndex,_meta:Pt._meta,placeholder:Zt._dfltTitle.colorbar,containerGroup:Ot.select("."+Mt.cbtitle)},_i=fn.charAt(0)==="h"?fn.substr(1):"h"+fn;Ot.selectAll("."+_i+",."+_i+"-math-group").remove(),ot.draw(zt,fn,_(Un,bn||{}))}function qr(){if(Dt&&Zr||!Dt&&!Zr){var fn,bn;mr==="top"&&(fn=Jt+Kt.l+Qr*rr,bn=Yt+Kt.t+sn*(1-mn-Nr)+3+Dr*.75),mr==="bottom"&&(fn=Jt+Kt.l+Qr*rr,bn=Yt+Kt.t+sn*(1-mn)-3-Dr*.25),mr==="right"&&(bn=Yt+Kt.t+sn*jt+3+Dr*.75,fn=Jt+Kt.l+Qr*mn),Vr(Tn._id+"title",{attributes:{x:fn,y:bn,"text-anchor":Dt?"start":"middle"}})}}function rn(){if(Dt&&!Zr||!Dt&&Zr){var fn=Tn.position||0,bn=Tn._offset+Tn._length/2,Un,_i;if(mr==="right")_i=bn,Un=Kt.l+Qr*fn+10+Dr*(Tn.showticklabels?1:.5);else if(Un=bn,mr==="bottom"&&(_i=Kt.t+sn*fn+10+(pr.indexOf("inside")===-1?Tn.tickfont.size:0)+(Tn.ticks!=="intside"&&Pt.ticklen||0)),mr==="top"){var yn=cr.text.split("
").length;_i=Kt.t+sn*fn+10-zr-mt*Dr*yn}Vr((Dt?"h":"v")+Tn._id+"title",{avoid:{selection:it.select(zt).selectAll("g."+Tn._id+"tick"),side:mr,offsetTop:Dt?0:Kt.t,offsetLeft:Dt?Kt.l:0,maxShift:Dt?Zt.width:Zt.height},attributes:{x:Un,y:_i,"text-anchor":"middle"},transform:{rotate:Dt?-90:0,offset:0}})}}function Cn(){if(!Dt&&!Zr||Dt&&Zr){var fn=Ot.select("."+Mt.cbtitle),bn=fn.select("text"),Un=[-Vt/2,Vt/2],_i=fn.select(".h"+Tn._id+"title-math-group").node(),yn=15.6;bn.node()&&(yn=parseInt(bn.node().style.fontSize,10)*mt);var Kn;if(_i?(Kn=tt.bBox(_i),Pr=Kn.width,xr=Kn.height,xr>yn&&(Un[1]-=(xr-yn)/2)):bn.node()&&!bn.classed(Mt.jsPlaceholder)&&(Kn=tt.bBox(bn.node()),Pr=Kn.width,xr=Kn.height),Dt){if(xr){if(xr+=5,mr==="top")Tn.domain[1]-=xr/Kt.h,Un[1]*=-1;else{Tn.domain[0]+=xr/Kt.h;var Jn=nt.lineCount(bn);Un[1]+=(1-Jn)*yn}fn.attr("transform",j(Un[0],Un[1])),Tn.setScale()}}else Pr&&(mr==="right"&&(Tn.domain[0]+=(Pr+Dr/2)/Kt.w),fn.attr("transform",j(Un[0],Un[1])),Tn.setScale())}Ot.selectAll("."+Mt.cbfills+",."+Mt.cblines).attr("transform",Dt?j(0,Math.round(Kt.h*(1-Tn.domain[1]))):j(Math.round(Kt.w*Tn.domain[0]),0)),Sr.attr("transform",Dt?j(0,Math.round(-Kt.t)):j(Math.round(-Kt.l),0));var so=Ot.select("."+Mt.cbfills).selectAll("rect."+Mt.cbfill).attr("style","").data(Er);so.enter().append("rect").classed(Mt.cbfill,!0).attr("style",""),so.exit().remove();var ba=Ar.map(Tn.c2p).map(Math.round).sort(function(Ln,Xn){return Ln-Xn});so.each(function(Ln,Xn){var Wn=[Xn===0?Ar[0]:(Er[Xn]+Er[Xn-1])/2,Xn===Er.length-1?Ar[1]:(Er[Xn]+Er[Xn+1])/2].map(Tn.c2p).map(Math.round);Dt&&(Wn[1]=ht.constrain(Wn[1]+(Wn[1]>Wn[0])?1:-1,ba[0],ba[1]));var Vn=it.select(this).attr(Dt?"x":"y",un).attr(Dt?"y":"x",it.min(Wn)).attr(Dt?"width":"height",Math.max(zr,2)).attr(Dt?"height":"width",Math.max(it.max(Wn)-it.min(Wn),2));if(Pt._fillgradient)tt.gradient(Vn,zt,Pt._id,Dt?"vertical":"horizontalreversed",Pt._fillgradient,"fill");else{var ga=Ir(Ln).replace("e-","");Vn.attr("fill",xt(ga).toHexString())}});var An=Ot.select("."+Mt.cblines).selectAll("path."+Mt.cbline).data(tr.color&&tr.width?Rr:[]);An.enter().append("path").classed(Mt.cbline,!0),An.exit().remove(),An.each(function(Ln){var Xn=un,Wn=Math.round(Tn.c2p(Ln))+tr.width/2%1;it.select(this).attr("d","M"+(Dt?Xn+","+Wn:Wn+","+Xn)+(Dt?"h":"v")+zr).call(tt.lineGroupStyle,tr.width,br(Ln),tr.dash)}),Sr.selectAll("g."+Tn._id+"tick,path").remove();var hn=un+zr+(Vt||0)/2-(Pt.ticks==="outside"?1:0),wn=yt.calcTicks(Tn),In=yt.getTickSigns(Tn)[2];return yt.drawTicks(zt,Tn,{vals:Tn.ticks==="inside"?yt.clipEnds(Tn,wn):wn,layer:Sr,path:yt.makeTickPath(Tn,hn,In),transFn:yt.makeTransTickFn(Tn)}),yt.drawLabels(zt,Tn,{vals:wn,layer:Sr,transFn:yt.makeTransTickLabelFn(Tn),labelFns:yt.makeLabelFns(Tn,hn)})}function xn(){var fn,bn=zr+Vt/2;pr.indexOf("inside")===-1&&(fn=tt.bBox(Sr.node()),bn+=Dt?fn.width:fn.height),ur=wr.select("text");var Un=0,_i=Dt&&mr==="top",yn=!Dt&&mr==="right",Kn=0;if(ur.node()&&!ur.classed(Mt.jsPlaceholder)){var Jn,so=wr.select(".h"+Tn._id+"title-math-group").node();so&&(Dt&&Zr||!Dt&&!Zr)?(fn=tt.bBox(so),Un=fn.width,Jn=fn.height):(fn=tt.bBox(wr.node()),Un=fn.right-Kt.l-(Dt?un:pn),Jn=fn.bottom-Kt.t-(Dt?pn:un),!Dt&&mr==="top"&&(bn+=fn.height,Kn=fn.height)),yn&&(ur.attr("transform",j(Un/2+Dr/2,0)),Un*=2),bn=Math.max(bn,Dt?Un:Jn)}var ba=(Dt?Jt:Yt)*2+bn+Xt+Vt/2,An=0;!Dt&&cr.text&&lr==="bottom"&&jt<=0&&(An=ba/2,ba+=An,Kn+=An),Zt._hColorbarMoveTitle=An,Zt._hColorbarMoveCBTitle=Kn;var hn=Xt+Vt,wn=(Dt?un:pn)-hn/2-(Dt?Jt:0),In=(Dt?pn:un)-(Dt?kr:Yt+Kn-An);Ot.select("."+Mt.cbbg).attr("x",wn).attr("y",In).attr(Dt?"width":"height",Math.max(ba-An,2)).attr(Dt?"height":"width",Math.max(kr+hn,2)).call(st.fill,qt).call(st.stroke,Pt.bordercolor).style("stroke-width",Xt);var Ln=yn?Math.max(Un-10,0):0;Ot.selectAll("."+Mt.cboutline).attr("x",(Dt?un:pn+Jt)+Ln).attr("y",(Dt?pn+Yt-kr:un)+(_i?xr:0)).attr(Dt?"width":"height",Math.max(zr,2)).attr(Dt?"height":"width",Math.max(kr-(Dt?2*Yt+xr:2*Jt+Ln),2)).call(st.stroke,Pt.outlinecolor).style({fill:"none","stroke-width":Vt});var Xn=Dt?en*ba:0,Wn=Dt?0:(1-Xr)*ba-Kn;if(Xn=sr?Kt.l-Xn:-Xn,Wn=ar?Kt.t-Wn:-Wn,Ot.attr("transform",j(Xn,Wn)),!Dt&&(Xt||xt(qt).getAlpha()&&!xt.equals(Zt.paper_bgcolor,qt))){var Vn=Sr.selectAll("text"),ga=Vn[0].length,fo=Ot.select("."+Mt.cbbg).node(),qn=tt.bBox(fo),po=tt.getTranslate(Ot),Yr=2;Vn.each(function(go,_o){var co=0,zo=ga-1;if(_o===co||_o===zo){var Io=tt.bBox(this),Lo=tt.getTranslate(this),vs;if(_o===zo){var Zo=Io.right+Lo.x,Ls=qn.right+po.x+pn-Xt-Yr+rr;vs=Ls-Zo,vs>0&&(vs=0)}else if(_o===co){var Ds=Io.left+Lo.x,bo=qn.left+po.x+pn+Xt+Yr;vs=bo-Ds,vs<0&&(vs=0)}vs&&(ga<3?this.setAttribute("transform","translate("+vs+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var jr={},$n=St[er],Bn=_t[er],xa=St[lr],ro=_t[lr],io=ba-zr;Dt?($t==="pixels"?(jr.y=jt,jr.t=kr*xa,jr.b=kr*ro):(jr.t=jr.b=0,jr.yt=jt+Nt*xa,jr.yb=jt-Nt*ro),Ht==="pixels"?(jr.x=rr,jr.l=ba*$n,jr.r=ba*Bn):(jr.l=io*$n,jr.r=io*Bn,jr.xl=rr-Ut*$n,jr.xr=rr+Ut*Bn)):($t==="pixels"?(jr.x=rr,jr.l=kr*$n,jr.r=kr*Bn):(jr.l=jr.r=0,jr.xl=rr+Nt*$n,jr.xr=rr-Nt*Bn),Ht==="pixels"?(jr.y=1-jt,jr.t=ba*xa,jr.b=ba*ro):(jr.t=io*xa,jr.b=io*ro,jr.yt=jt-Ut*xa,jr.yb=jt+Ut*ro));var eo=Pt.y<.5?"b":"t",Gn=Pt.x<.5?"l":"r";zt._fullLayout._reservedMargin[Pt._id]={};var ho={r:Zt.width-wn-Xn,l:wn+jr.r,b:Zt.height-In-Wn,t:In+jr.b};sr&&ar?et.autoMargin(zt,Pt._id,jr):sr?zt._fullLayout._reservedMargin[Pt._id][eo]=ho[eo]:ar||Dt?zt._fullLayout._reservedMargin[Pt._id][Gn]=ho[Gn]:zt._fullLayout._reservedMargin[Pt._id][eo]=ho[eo]}return ht.syncOrAsync([et.previousPromises,qr,Cn,rn,et.previousPromises,xn],zt)}function ct(Ot,Pt,zt){var Dt=Pt.orientation==="v",Nt=zt._fullLayout,$t=Nt._size,Ut,Ht,Vt;ut.init({element:Ot.node(),gd:zt,prepFn:function(){Ut=Ot.attr("transform"),rt(Ot)},moveFn:function(Xt,qt){Ot.attr("transform",Ut+j(Xt,qt)),Ht=ut.align((Dt?Pt._uFrac:Pt._vFrac)+Xt/$t.w,Dt?Pt._thickFrac:Pt._lenFrac,0,1,Pt.xanchor),Vt=ut.align((Dt?Pt._vFrac:1-Pt._uFrac)-qt/$t.h,Dt?Pt._lenFrac:Pt._thickFrac,0,1,Pt.yanchor);var er=ut.getCursor(Ht,Vt,Pt.xanchor,Pt.yanchor);rt(Ot,er)},doneFn:function(){if(rt(Ot),Ht!==void 0&&Vt!==void 0){var Xt={};Xt[Pt._propPrefix+"x"]=Ht,Xt[Pt._propPrefix+"y"]=Vt,Pt._traceIndex!==void 0?Tt.call("_guiRestyle",zt,Xt,Pt._traceIndex):Tt.call("_guiRelayout",zt,Xt)}}})}function It(Ot,Pt,zt){var Dt=Pt._levels,Nt=[],$t=[],Ut,Ht,Vt=Dt.end+Dt.size/100,Xt=Dt.size,qt=1.001*zt[0]-.001*zt[1],er=1.001*zt[1]-.001*zt[0];for(Ht=0;Ht<1e5&&(Ut=Dt.start+Ht*Xt,!(Xt>0?Ut>=Vt:Ut<=Vt));Ht++)Ut>qt&&Ut0?Ut>=Vt:Ut<=Vt));Ht++)Ut>zt[0]&&Utdt-nt?nt=dt-(vt-dt):vt-dt=0?at=j.colorscale.sequential:at=j.colorscale.sequentialminus,st._sync("colorscale",at)}}},95504:function(Ct,Rt,o){var it=o(3400),xt=o(94288).hasColorscale,et=o(94288).extractOpts;Ct.exports=function(yt,ut){function ht(nt,vt){var dt=nt["_"+vt];dt!==void 0&&(nt[vt]=dt)}function j(nt,vt){var dt=vt.container?it.nestedProperty(nt,vt.container).get():nt;if(dt)if(dt.coloraxis)dt._colorAx=ut[dt.coloraxis];else{var bt=et(dt),ft=bt.auto;(ft||bt.min===void 0)&&ht(dt,vt.min),(ft||bt.max===void 0)&&ht(dt,vt.max),bt.autocolorscale&&ht(dt,"colorscale")}}for(var _=0;_=0;at--,mt++){var St=dt[at];ft[mt]=[1-St[0],St[1]]}return ft}function ot(dt,bt){bt=bt||{};for(var ft=dt.domain,at=dt.range,mt=at.length,St=new Array(mt),_t=0;_t1.3333333333333333-ht?ut:ht}},67416:function(Ct,Rt,o){var it=o(3400),xt=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];Ct.exports=function(Tt,yt,ut,ht){return ut==="left"?Tt=0:ut==="center"?Tt=1:ut==="right"?Tt=2:Tt=it.constrain(Math.floor(Tt*3),0,2),ht==="bottom"?yt=0:ht==="middle"?yt=1:ht==="top"?yt=2:yt=it.constrain(Math.floor(yt*3),0,2),xt[yt][Tt]}},72760:function(Ct,Rt){Rt.selectMode=function(o){return o==="lasso"||o==="select"},Rt.drawMode=function(o){return o==="drawclosedpath"||o==="drawopenpath"||o==="drawline"||o==="drawrect"||o==="drawcircle"},Rt.openMode=function(o){return o==="drawline"||o==="drawopenpath"},Rt.rectMode=function(o){return o==="select"||o==="drawline"||o==="drawrect"||o==="drawcircle"},Rt.freeMode=function(o){return o==="lasso"||o==="drawclosedpath"||o==="drawopenpath"},Rt.selectingOrDrawing=function(o){return Rt.freeMode(o)||Rt.rectMode(o)}},86476:function(Ct,Rt,o){var it=o(29128),xt=o(52264),et=o(89184),Tt=o(3400).removeElement,yt=o(33816),ut=Ct.exports={};ut.align=o(78316),ut.getCursor=o(67416);var ht=o(2616);ut.unhover=ht.wrapped,ut.unhoverRaw=ht.raw,ut.init=function(tt){var st=tt.gd,ot=1,nt=st._context.doubleClickDelay,vt=tt.element,dt,bt,ft,at,mt,St,_t,Mt;st._mouseDownTime||(st._mouseDownTime=0),vt.style.pointerEvents="all",vt.onmousedown=wt,et?(vt._ontouchstart&&vt.removeEventListener("touchstart",vt._ontouchstart),vt._ontouchstart=wt,vt.addEventListener("touchstart",wt,{passive:!1})):vt.ontouchstart=wt;function Et(At,Ot,Pt){return Math.abs(At)"u"&&typeof At.clientY>"u"&&(At.clientX=dt,At.clientY=bt),ft=new Date().getTime(),ft-st._mouseDownTiment&&(ot=Math.max(ot-1,1)),st._dragged)tt.doneFn&&tt.doneFn();else if(tt.clickFn&&tt.clickFn(ot,St),!Mt){var Ot;try{Ot=new MouseEvent("click",At)}catch{var Pt=_(At);Ot=document.createEvent("MouseEvents"),Ot.initMouseEvent("click",At.bubbles,At.cancelable,At.view,At.detail,At.screenX,At.screenY,Pt[0],Pt[1],At.ctrlKey,At.altKey,At.shiftKey,At.metaKey,At.button,At.relatedTarget)}_t.dispatchEvent(Ot)}st._dragging=!1,st._dragged=!1}};function j(){var rt=document.createElement("div");rt.className="dragcover";var tt=rt.style;return tt.position="fixed",tt.left=0,tt.right=0,tt.top=0,tt.bottom=0,tt.zIndex=999999999,tt.background="none",document.body.appendChild(rt),rt}ut.coverSlip=j;function _(rt){return it(rt.changedTouches?rt.changedTouches[0]:rt,document.body)}},2616:function(Ct,Rt,o){var it=o(95924),xt=o(91200),et=o(52200).getGraphDiv,Tt=o(92456),yt=Ct.exports={};yt.wrapped=function(ut,ht,j){ut=et(ut),ut._fullLayout&&xt.clear(ut._fullLayout._uid+Tt.HOVERID),yt.raw(ut,ht,j)},yt.raw=function(ht,j){var _=ht._fullLayout,rt=ht._hoverdata;j||(j={}),!(j.target&&!ht._dragged&&it.triggerHandler(ht,"plotly_beforehover",j)===!1)&&(_._hoverlayer.selectAll("g").remove(),_._hoverlayer.selectAll("line").remove(),_._hoverlayer.selectAll("circle").remove(),ht._hoverdata=void 0,j.target&&rt&&ht.emit("plotly_unhover",{event:j,points:rt}))}},98192:function(Ct,Rt){Rt.u={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},Rt.c={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},43616:function(Ct,Rt,o){var it=o(33428),xt=o(3400),et=xt.numberFormat,Tt=o(38248),yt=o(49760),ut=o(24040),ht=o(76308),j=o(8932),_=xt.strTranslate,rt=o(72736),tt=o(9616),st=o(84284),ot=st.LINE_SPACING,nt=o(13448).DESELECTDIM,vt=o(43028),dt=o(7152),bt=o(10624).appendArrayPointValue,ft=Ct.exports={};ft.font=function(Tr,_r,Er,Rr,zr,Or,kr){xt.isPlainObject(_r)&&(kr=_r.variant,Or=_r.style,zr=_r.weight,Rr=_r.color,Er=_r.size,_r=_r.family),_r&&Tr.style("font-family",_r),Er+1&&Tr.style("font-size",Er+"px"),Rr&&Tr.call(ht.fill,Rr),zr&&Tr.style("font-weight",zr),Or&&Tr.style("font-style",Or),kr&&Tr.style("font-variant",kr)},ft.setPosition=function(Tr,_r,Er){Tr.attr("x",_r).attr("y",Er)},ft.setSize=function(Tr,_r,Er){Tr.attr("width",_r).attr("height",Er)},ft.setRect=function(Tr,_r,Er,Rr,zr){Tr.call(ft.setPosition,_r,Er).call(ft.setSize,Rr,zr)},ft.translatePoint=function(Tr,_r,Er,Rr){var zr=Er.c2p(Tr.x),Or=Rr.c2p(Tr.y);if(Tt(zr)&&Tt(Or)&&_r.node())_r.node().nodeName==="text"?_r.attr("x",zr).attr("y",Or):_r.attr("transform",_(zr,Or));else return!1;return!0},ft.translatePoints=function(Tr,_r,Er){Tr.each(function(Rr){var zr=it.select(this);ft.translatePoint(Rr,zr,_r,Er)})},ft.hideOutsideRangePoint=function(Tr,_r,Er,Rr,zr,Or){_r.attr("display",Er.isPtWithinRange(Tr,zr)&&Rr.isPtWithinRange(Tr,Or)?null:"none")},ft.hideOutsideRangePoints=function(Tr,_r){if(_r._hasClipOnAxisFalse){var Er=_r.xaxis,Rr=_r.yaxis;Tr.each(function(zr){var Or=zr[0].trace,kr=Or.xcalendar,Nr=Or.ycalendar,Qr=ut.traceIs(Or,"bar-like")?".bartext":".point,.textpoint";Tr.selectAll(Qr).each(function(sn){ft.hideOutsideRangePoint(sn,it.select(this),Er,Rr,kr,Nr)})})}},ft.crispRound=function(Tr,_r,Er){return!_r||!Tt(_r)?Er||0:Tr._context.staticPlot?_r:_r<1?1:Math.round(_r)},ft.singleLineStyle=function(Tr,_r,Er,Rr,zr){_r.style("fill","none");var Or=(((Tr||[])[0]||{}).trace||{}).line||{},kr=Er||Or.width||0,Nr=zr||Or.dash||"";ht.stroke(_r,Rr||Or.color),ft.dashLine(_r,Nr,kr)},ft.lineGroupStyle=function(Tr,_r,Er,Rr){Tr.style("fill","none").each(function(zr){var Or=(((zr||[])[0]||{}).trace||{}).line||{},kr=_r||Or.width||0,Nr=Rr||Or.dash||"";it.select(this).call(ht.stroke,Er||Or.color).call(ft.dashLine,Nr,kr)})},ft.dashLine=function(Tr,_r,Er){Er=+Er||0,_r=ft.dashStyle(_r,Er),Tr.style({"stroke-dasharray":_r,"stroke-width":Er+"px"})},ft.dashStyle=function(Tr,_r){_r=+_r||1;var Er=Math.max(_r,3);return Tr==="solid"?Tr="":Tr==="dot"?Tr=Er+"px,"+Er+"px":Tr==="dash"?Tr=3*Er+"px,"+3*Er+"px":Tr==="longdash"?Tr=5*Er+"px,"+5*Er+"px":Tr==="dashdot"?Tr=3*Er+"px,"+Er+"px,"+Er+"px,"+Er+"px":Tr==="longdashdot"&&(Tr=5*Er+"px,"+2*Er+"px,"+Er+"px,"+2*Er+"px"),Tr};function at(Tr,_r,Er,Rr){var zr=_r.fillpattern,Or=_r.fillgradient,kr=zr&&ft.getPatternAttr(zr.shape,0,"");if(kr){var Nr=ft.getPatternAttr(zr.bgcolor,0,null),Qr=ft.getPatternAttr(zr.fgcolor,0,null),sn=zr.fgopacity,un=ft.getPatternAttr(zr.size,0,8),en=ft.getPatternAttr(zr.solidity,0,.3),Xr=_r.uid;ft.pattern(Tr,"point",Er,Xr,kr,un,en,void 0,zr.fillmode,Nr,Qr,sn)}else if(Or&&Or.type!=="none"){var ln=Or.type,mn="scatterfill-"+_r.uid;if(Rr&&(mn="legendfill-"+_r.uid),!Rr&&(Or.start!==void 0||Or.stop!==void 0)){var pn,Tn;ln==="horizontal"?(pn={x:Or.start,y:0},Tn={x:Or.stop,y:0}):ln==="vertical"&&(pn={x:0,y:Or.start},Tn={x:0,y:Or.stop}),pn.x=_r._xA.c2p(pn.x===void 0?_r._extremes.x.min[0].val:pn.x,!0),pn.y=_r._yA.c2p(pn.y===void 0?_r._extremes.y.min[0].val:pn.y,!0),Tn.x=_r._xA.c2p(Tn.x===void 0?_r._extremes.x.max[0].val:Tn.x,!0),Tn.y=_r._yA.c2p(Tn.y===void 0?_r._extremes.y.max[0].val:Tn.y,!0),Tr.call(wt,Er,mn,"linear",Or.colorscale,"fill",pn,Tn,!0,!1)}else ln==="horizontal"&&(ln=ln+"reversed"),Tr.call(ft.gradient,Er,mn,ln,Or.colorscale,"fill")}else _r.fillcolor&&Tr.call(ht.fill,_r.fillcolor)}ft.singleFillStyle=function(Tr,_r){var Er=it.select(Tr.node()),Rr=Er.data(),zr=((Rr[0]||[])[0]||{}).trace||{};at(Tr,zr,_r,!1)},ft.fillGroupStyle=function(Tr,_r,Er){Tr.style("stroke-width",0).each(function(Rr){var zr=it.select(this);Rr[0].trace&&at(zr,Rr[0].trace,_r,Er)})};var mt=o(71984);ft.symbolNames=[],ft.symbolFuncs=[],ft.symbolBackOffs=[],ft.symbolNeedLines={},ft.symbolNoDot={},ft.symbolNoFill={},ft.symbolList=[],Object.keys(mt).forEach(function(Tr){var _r=mt[Tr],Er=_r.n;ft.symbolList.push(Er,String(Er),Tr,Er+100,String(Er+100),Tr+"-open"),ft.symbolNames[Er]=Tr,ft.symbolFuncs[Er]=_r.f,ft.symbolBackOffs[Er]=_r.backoff||0,_r.needLine&&(ft.symbolNeedLines[Er]=!0),_r.noDot?ft.symbolNoDot[Er]=!0:ft.symbolList.push(Er+200,String(Er+200),Tr+"-dot",Er+300,String(Er+300),Tr+"-open-dot"),_r.noFill&&(ft.symbolNoFill[Er]=!0)});var St=ft.symbolNames.length,_t="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";ft.symbolNumber=function(Tr){if(Tt(Tr))Tr=+Tr;else if(typeof Tr=="string"){var _r=0;Tr.indexOf("-open")>0&&(_r=100,Tr=Tr.replace("-open","")),Tr.indexOf("-dot")>0&&(_r+=200,Tr=Tr.replace("-dot","")),Tr=ft.symbolNames.indexOf(Tr),Tr>=0&&(Tr+=_r)}return Tr%100>=St||Tr>=400?0:Math.floor(Math.max(Tr,0))};function Mt(Tr,_r,Er,Rr){var zr=Tr%100;return ft.symbolFuncs[zr](_r,Er,Rr)+(Tr>=200?_t:"")}var Et=et("~f"),kt={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};ft.gradient=function(Tr,_r,Er,Rr,zr,Or){var kr=kt[Rr];return wt(Tr,_r,Er,kr.type,zr,Or,kr.start,kr.stop,!1,kr.reversed)};function wt(Tr,_r,Er,Rr,zr,Or,kr,Nr,Qr,sn){var un=zr.length,en;Rr==="linear"?en={node:"linearGradient",attrs:{x1:kr.x,y1:kr.y,x2:Nr.x,y2:Nr.y,gradientUnits:Qr?"userSpaceOnUse":"objectBoundingBox"},reversed:sn}:Rr==="radial"&&(en={node:"radialGradient",reversed:sn});for(var Xr=new Array(un),ln=0;ln=0&&Tr.i===void 0&&(Tr.i=Or.i),_r.style("opacity",Rr.selectedOpacityFn?Rr.selectedOpacityFn(Tr):Tr.mo===void 0?kr.opacity:Tr.mo),Rr.ms2mrc){var Qr;Tr.ms==="various"||kr.size==="various"?Qr=3:Qr=Rr.ms2mrc(Tr.ms),Tr.mrc=Qr,Rr.selectedSizeFn&&(Qr=Tr.mrc=Rr.selectedSizeFn(Tr));var sn=ft.symbolNumber(Tr.mx||kr.symbol)||0;Tr.om=sn%200>=100;var un=Ir(Tr,Er),en=jt(Tr,Er);_r.attr("d",Mt(sn,Qr,un,en))}var Xr=!1,ln,mn,pn;if(Tr.so)pn=Nr.outlierwidth,mn=Nr.outliercolor,ln=kr.outliercolor;else{var Tn=(Nr||{}).width;pn=(Tr.mlw+1||Tn+1||(Tr.trace?(Tr.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in Tr?mn=Tr.mlcc=Rr.lineScale(Tr.mlc):xt.isArrayOrTypedArray(Nr.color)?mn=ht.defaultLine:mn=Nr.color,xt.isArrayOrTypedArray(kr.color)&&(ln=ht.defaultLine,Xr=!0),"mc"in Tr?ln=Tr.mcc=Rr.markerScale(Tr.mc):ln=kr.color||kr.colors||"rgba(0,0,0,0)",Rr.selectedColorFn&&(ln=Rr.selectedColorFn(Tr))}if(Tr.om)_r.call(ht.stroke,ln).style({"stroke-width":(pn||1)+"px",fill:"none"});else{_r.style("stroke-width",(Tr.isBlank?0:pn)+"px");var Zr=kr.gradient,Fr=Tr.mgt;Fr?Xr=!0:Fr=Zr&&Zr.type,xt.isArrayOrTypedArray(Fr)&&(Fr=Fr[0],kt[Fr]||(Fr=0));var Ur=kr.pattern,Wr=Ur&&ft.getPatternAttr(Ur.shape,Tr.i,"");if(Fr&&Fr!=="none"){var Gr=Tr.mgc;Gr?Xr=!0:Gr=Zr.color;var wr=Er.uid;Xr&&(wr+="-"+Tr.i),ft.gradient(_r,zr,wr,Fr,[[0,Gr],[1,ln]],"fill")}else if(Wr){var pr=!1,Dr=Ur.fgcolor;!Dr&&Or&&Or.color&&(Dr=Or.color,pr=!0);var Sr=ft.getPatternAttr(Dr,Tr.i,Or&&Or.color||null),ur=ft.getPatternAttr(Ur.bgcolor,Tr.i,null),xr=Ur.fgopacity,Pr=ft.getPatternAttr(Ur.size,Tr.i,8),Vr=ft.getPatternAttr(Ur.solidity,Tr.i,.3);pr=pr||Tr.mcc||xt.isArrayOrTypedArray(Ur.shape)||xt.isArrayOrTypedArray(Ur.bgcolor)||xt.isArrayOrTypedArray(Ur.fgcolor)||xt.isArrayOrTypedArray(Ur.size)||xt.isArrayOrTypedArray(Ur.solidity);var qr=Er.uid;pr&&(qr+="-"+Tr.i),ft.pattern(_r,"point",zr,qr,Wr,Pr,Vr,Tr.mcc,Ur.fillmode,ur,Sr,xr)}else xt.isArrayOrTypedArray(ln)?ht.fill(_r,ln[Tr.i]):ht.fill(_r,ln);pn&&ht.stroke(_r,mn)}},ft.makePointStyleFns=function(Tr){var _r={},Er=Tr.marker;return _r.markerScale=ft.tryColorscale(Er,""),_r.lineScale=ft.tryColorscale(Er,"line"),ut.traceIs(Tr,"symbols")&&(_r.ms2mrc=vt.isBubble(Tr)?dt(Tr):function(){return(Er.size||6)/2}),Tr.selectedpoints&&xt.extendFlat(_r,ft.makeSelectedPointStyleFns(Tr)),_r},ft.makeSelectedPointStyleFns=function(Tr){var _r={},Er=Tr.selected||{},Rr=Tr.unselected||{},zr=Tr.marker||{},Or=Er.marker||{},kr=Rr.marker||{},Nr=zr.opacity,Qr=Or.opacity,sn=kr.opacity,un=Qr!==void 0,en=sn!==void 0;(xt.isArrayOrTypedArray(Nr)||un||en)&&(_r.selectedOpacityFn=function(Wr){var Gr=Wr.mo===void 0?zr.opacity:Wr.mo;return Wr.selected?un?Qr:Gr:en?sn:nt*Gr});var Xr=zr.color,ln=Or.color,mn=kr.color;(ln||mn)&&(_r.selectedColorFn=function(Wr){var Gr=Wr.mcc||Xr;return Wr.selected?ln||Gr:mn||Gr});var pn=zr.size,Tn=Or.size,Zr=kr.size,Fr=Tn!==void 0,Ur=Zr!==void 0;return ut.traceIs(Tr,"symbols")&&(Fr||Ur)&&(_r.selectedSizeFn=function(Wr){var Gr=Wr.mrc||pn/2;return Wr.selected?Fr?Tn/2:Gr:Ur?Zr/2:Gr}),_r},ft.makeSelectedTextStyleFns=function(Tr){var _r={},Er=Tr.selected||{},Rr=Tr.unselected||{},zr=Tr.textfont||{},Or=Er.textfont||{},kr=Rr.textfont||{},Nr=zr.color,Qr=Or.color,sn=kr.color;return _r.selectedTextColorFn=function(un){var en=un.tc||Nr;return un.selected?Qr||en:sn||(Qr?en:ht.addOpacity(en,nt))},_r},ft.selectedPointStyle=function(Tr,_r){if(!(!Tr.size()||!_r.selectedpoints)){var Er=ft.makeSelectedPointStyleFns(_r),Rr=_r.marker||{},zr=[];Er.selectedOpacityFn&&zr.push(function(Or,kr){Or.style("opacity",Er.selectedOpacityFn(kr))}),Er.selectedColorFn&&zr.push(function(Or,kr){ht.fill(Or,Er.selectedColorFn(kr))}),Er.selectedSizeFn&&zr.push(function(Or,kr){var Nr=kr.mx||Rr.symbol||0,Qr=Er.selectedSizeFn(kr);Or.attr("d",Mt(ft.symbolNumber(Nr),Qr,Ir(kr,_r),jt(kr,_r))),kr.mrc2=Qr}),zr.length&&Tr.each(function(Or){for(var kr=it.select(this),Nr=0;Nr0?Er:0}ft.textPointStyle=function(Tr,_r,Er){if(Tr.size()){var Rr;if(_r.selectedpoints){var zr=ft.makeSelectedTextStyleFns(_r);Rr=zr.selectedTextColorFn}var Or=_r.texttemplate,kr=Er._fullLayout;Tr.each(function(Nr){var Qr=it.select(this),sn=Or?xt.extractOption(Nr,_r,"txt","texttemplate"):xt.extractOption(Nr,_r,"tx","text");if(!sn&&sn!==0){Qr.remove();return}if(Or){var un=_r._module.formatLabels,en=un?un(Nr,_r,kr):{},Xr={};bt(Xr,_r,Nr.i);var ln=_r._meta||{};sn=xt.texttemplateString(sn,en,kr._d3locale,Xr,Nr,ln)}var mn=Nr.tp||_r.textposition,pn=At(Nr,_r),Tn=Rr?Rr(Nr):Nr.tc||_r.textfont.color;Qr.call(ft.font,{family:Nr.tf||_r.textfont.family,weight:Nr.tw||_r.textfont.weight,style:Nr.ty||_r.textfont.style,variant:Nr.tv||_r.textfont.variant,size:pn,color:Tn}).text(sn).call(rt.convertToTspans,Er).call(It,mn,pn,Nr.mrc)})}},ft.selectedTextStyle=function(Tr,_r){if(!(!Tr.size()||!_r.selectedpoints)){var Er=ft.makeSelectedTextStyleFns(_r);Tr.each(function(Rr){var zr=it.select(this),Or=Er.selectedTextColorFn(Rr),kr=Rr.tp||_r.textposition,Nr=At(Rr,_r);ht.fill(zr,Or);var Qr=ut.traceIs(_r,"bar-like");It(zr,kr,Nr,Rr.mrc2||Rr.mrc,Qr)})}};var Ot=.5;ft.smoothopen=function(Tr,_r){if(Tr.length<3)return"M"+Tr.join("L");var Er="M"+Tr[0],Rr=[],zr;for(zr=1;zr=Qr||Wr>=un&&Wr<=Qr)&&(Gr<=en&&Gr>=sn||Gr>=en&&Gr<=sn)&&(Tr=[Wr,Gr])}return Tr}ft.applyBackoff=Xt,ft.makeTester=function(){var Tr=xt.ensureSingleById(it.select("body"),"svg","js-plotly-tester",function(Er){Er.attr(tt.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),_r=xt.ensureSingle(Tr,"path","js-reference-point",function(Er){Er.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});ft.tester=Tr,ft.testref=_r},ft.savedBBoxes={};var qt=0,er=1e4;ft.bBox=function(Tr,_r,Er){Er||(Er=lr(Tr));var Rr;if(Er){if(Rr=ft.savedBBoxes[Er],Rr)return xt.extendFlat({},Rr)}else if(Tr.childNodes.length===1){var zr=Tr.childNodes[0];if(Er=lr(zr),Er){var Or=+zr.getAttribute("x")||0,kr=+zr.getAttribute("y")||0,Nr=zr.getAttribute("transform");if(!Nr){var Qr=ft.bBox(zr,!1,Er);return Or&&(Qr.left+=Or,Qr.right+=Or),kr&&(Qr.top+=kr,Qr.bottom+=kr),Qr}if(Er+="~"+Or+"~"+kr+"~"+Nr,Rr=ft.savedBBoxes[Er],Rr)return xt.extendFlat({},Rr)}}var sn,un;_r?sn=Tr:(un=ft.tester.node(),sn=Tr.cloneNode(!0),un.appendChild(sn)),it.select(sn).attr("transform",null).call(rt.positionText,0,0);var en=sn.getBoundingClientRect(),Xr=ft.testref.node().getBoundingClientRect();_r||un.removeChild(sn);var ln={height:en.height,width:en.width,left:en.left-Xr.left,top:en.top-Xr.top,right:en.right-Xr.left,bottom:en.bottom-Xr.top};return qt>=er&&(ft.savedBBoxes={},qt=0),Er&&(ft.savedBBoxes[Er]=ln),qt++,xt.extendFlat({},ln)};function lr(Tr){var _r=Tr.getAttribute("data-unformatted");if(_r!==null)return _r+Tr.getAttribute("data-math")+Tr.getAttribute("text-anchor")+Tr.getAttribute("style")}ft.setClipUrl=function(Tr,_r,Er){Tr.attr("clip-path",Jt(_r,Er))};function Jt(Tr,_r){if(!Tr)return null;var Er=_r._context,Rr=Er._exportedPlot?"":Er._baseUrl||"";return Rr?"url('"+Rr+"#"+Tr+"')":"url(#"+Tr+")"}ft.getTranslate=function(Tr){var _r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,Er=Tr.attr?"attr":"getAttribute",Rr=Tr[Er]("transform")||"",zr=Rr.replace(_r,function(Or,kr,Nr){return[kr,Nr].join(" ")}).split(" ");return{x:+zr[0]||0,y:+zr[1]||0}},ft.setTranslate=function(Tr,_r,Er){var Rr=/(\btranslate\(.*?\);?)/,zr=Tr.attr?"attr":"getAttribute",Or=Tr.attr?"attr":"setAttribute",kr=Tr[zr]("transform")||"";return _r=_r||0,Er=Er||0,kr=kr.replace(Rr,"").trim(),kr+=_(_r,Er),kr=kr.trim(),Tr[Or]("transform",kr),kr},ft.getScale=function(Tr){var _r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,Er=Tr.attr?"attr":"getAttribute",Rr=Tr[Er]("transform")||"",zr=Rr.replace(_r,function(Or,kr,Nr){return[kr,Nr].join(" ")}).split(" ");return{x:+zr[0]||1,y:+zr[1]||1}},ft.setScale=function(Tr,_r,Er){var Rr=/(\bscale\(.*?\);?)/,zr=Tr.attr?"attr":"getAttribute",Or=Tr.attr?"attr":"setAttribute",kr=Tr[zr]("transform")||"";return _r=_r||1,Er=Er||1,kr=kr.replace(Rr,"").trim(),kr+="scale("+_r+","+Er+")",kr=kr.trim(),Tr[Or]("transform",kr),kr};var Yt=/\s*sc.*/;ft.setPointGroupScale=function(Tr,_r,Er){if(_r=_r||1,Er=Er||1,!!Tr){var Rr=_r===1&&Er===1?"":"scale("+_r+","+Er+")";Tr.each(function(){var zr=(this.getAttribute("transform")||"").replace(Yt,"");zr+=Rr,zr=zr.trim(),this.setAttribute("transform",zr)})}};var rr=/translate\([^)]*\)\s*$/;ft.setTextPointsScale=function(Tr,_r,Er){Tr&&Tr.each(function(){var Rr,zr=it.select(this),Or=zr.select("text");if(Or.node()){var kr=parseFloat(Or.attr("x")||0),Nr=parseFloat(Or.attr("y")||0),Qr=(zr.attr("transform")||"").match(rr);_r===1&&Er===1?Rr=[]:Rr=[_(kr,Nr),"scale("+_r+","+Er+")",_(-kr,-Nr)],Qr&&Rr.push(Qr),zr.attr("transform",Rr.join(""))}})};function jt(Tr,_r){var Er;return Tr&&(Er=Tr.mf),Er===void 0&&(Er=_r.marker&&_r.marker.standoff||0),!_r._geo&&!_r._xA?-Er:Er}ft.getMarkerStandoff=jt;var ar=Math.atan2,sr=Math.cos,Zt=Math.sin;function Kt(Tr,_r){var Er=_r[0],Rr=_r[1];return[Er*sr(Tr)-Rr*Zt(Tr),Er*Zt(Tr)+Rr*sr(Tr)]}var or,tr,cr,mr,Ar,br;function Ir(Tr,_r){var Er=Tr.ma;Er===void 0&&(Er=_r.marker.angle,(!Er||xt.isArrayOrTypedArray(Er))&&(Er=0));var Rr,zr,Or=_r.marker.angleref;if(Or==="previous"||Or==="north"){if(_r._geo){var kr=_r._geo.project(Tr.lonlat);Rr=kr[0],zr=kr[1]}else{var Nr=_r._xA,Qr=_r._yA;if(Nr&&Qr)Rr=Nr.c2p(Tr.x),zr=Qr.c2p(Tr.y);else return 90}if(_r._geo){var sn=Tr.lonlat[0],un=Tr.lonlat[1],en=_r._geo.project([sn,un+1e-5]),Xr=_r._geo.project([sn+1e-5,un]),ln=ar(Xr[1]-zr,Xr[0]-Rr),mn=ar(en[1]-zr,en[0]-Rr),pn;if(Or==="north")pn=Er/180*Math.PI;else if(Or==="previous"){var Tn=sn/180*Math.PI,Zr=un/180*Math.PI,Fr=or/180*Math.PI,Ur=tr/180*Math.PI,Wr=Fr-Tn,Gr=sr(Ur)*Zt(Wr),wr=Zt(Ur)*sr(Zr)-sr(Ur)*Zt(Zr)*sr(Wr);pn=-ar(Gr,wr)-Math.PI,or=sn,tr=un}var pr=Kt(ln,[sr(pn),0]),Dr=Kt(mn,[Zt(pn),0]);Er=ar(pr[1]+Dr[1],pr[0]+Dr[0])/Math.PI*180,Or==="previous"&&!(br===_r.uid&&Tr.i===Ar+1)&&(Er=null)}if(Or==="previous"&&!_r._geo)if(br===_r.uid&&Tr.i===Ar+1&&Tt(Rr)&&Tt(zr)){var Sr=Rr-cr,ur=zr-mr,xr=_r.line&&_r.line.shape||"",Pr=xr.slice(xr.length-1);Pr==="h"&&(ur=0),Pr==="v"&&(Sr=0),Er+=ar(ur,Sr)/Math.PI*180+90}else Er=null}return cr=Rr,mr=zr,Ar=Tr.i,br=_r.uid,Er}ft.getMarkerAngle=Ir},71984:function(Ct,Rt,o){var it=o(21984),xt=o(33428).round,et="M0,0Z",Tt=Math.sqrt(2),yt=Math.sqrt(3),ut=Math.PI,ht=Math.cos,j=Math.sin;Ct.exports={circle:{n:0,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt,2),at="M"+ft+",0A"+ft+","+ft+" 0 1,1 0,-"+ft+"A"+ft+","+ft+" 0 0,1 "+ft+",0Z";return bt?nt(dt,bt,at):at}},square:{n:1,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt,2);return nt(dt,bt,"M"+ft+","+ft+"H-"+ft+"V-"+ft+"H"+ft+"Z")}},diamond:{n:2,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*1.3,2);return nt(dt,bt,"M"+ft+",0L0,"+ft+"L-"+ft+",0L0,-"+ft+"Z")}},cross:{n:3,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*.4,2),at=xt(vt*1.2,2);return nt(dt,bt,"M"+at+","+ft+"H"+ft+"V"+at+"H-"+ft+"V"+ft+"H-"+at+"V-"+ft+"H-"+ft+"V-"+at+"H"+ft+"V-"+ft+"H"+at+"Z")}},x:{n:4,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*.8/Tt,2),at="l"+ft+","+ft,mt="l"+ft+",-"+ft,St="l-"+ft+",-"+ft,_t="l-"+ft+","+ft;return nt(dt,bt,"M0,"+ft+at+mt+St+mt+St+_t+St+_t+at+_t+at+"Z")}},"triangle-up":{n:5,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*2/yt,2),at=xt(vt/2,2),mt=xt(vt,2);return nt(dt,bt,"M-"+ft+","+at+"H"+ft+"L0,-"+mt+"Z")}},"triangle-down":{n:6,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*2/yt,2),at=xt(vt/2,2),mt=xt(vt,2);return nt(dt,bt,"M-"+ft+",-"+at+"H"+ft+"L0,"+mt+"Z")}},"triangle-left":{n:7,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*2/yt,2),at=xt(vt/2,2),mt=xt(vt,2);return nt(dt,bt,"M"+at+",-"+ft+"V"+ft+"L-"+mt+",0Z")}},"triangle-right":{n:8,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*2/yt,2),at=xt(vt/2,2),mt=xt(vt,2);return nt(dt,bt,"M-"+at+",-"+ft+"V"+ft+"L"+mt+",0Z")}},"triangle-ne":{n:9,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*.6,2),at=xt(vt*1.2,2);return nt(dt,bt,"M-"+at+",-"+ft+"H"+ft+"V"+at+"Z")}},"triangle-se":{n:10,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*.6,2),at=xt(vt*1.2,2);return nt(dt,bt,"M"+ft+",-"+at+"V"+ft+"H-"+at+"Z")}},"triangle-sw":{n:11,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*.6,2),at=xt(vt*1.2,2);return nt(dt,bt,"M"+at+","+ft+"H-"+ft+"V-"+at+"Z")}},"triangle-nw":{n:12,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*.6,2),at=xt(vt*1.2,2);return nt(dt,bt,"M-"+ft+","+at+"V-"+ft+"H"+at+"Z")}},pentagon:{n:13,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*.951,2),at=xt(vt*.588,2),mt=xt(-vt,2),St=xt(vt*-.309,2),_t=xt(vt*.809,2);return nt(dt,bt,"M"+ft+","+St+"L"+at+","+_t+"H-"+at+"L-"+ft+","+St+"L0,"+mt+"Z")}},hexagon:{n:14,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt,2),at=xt(vt/2,2),mt=xt(vt*yt/2,2);return nt(dt,bt,"M"+mt+",-"+at+"V"+at+"L0,"+ft+"L-"+mt+","+at+"V-"+at+"L0,-"+ft+"Z")}},hexagon2:{n:15,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt,2),at=xt(vt/2,2),mt=xt(vt*yt/2,2);return nt(dt,bt,"M-"+at+","+mt+"H"+at+"L"+ft+",0L"+at+",-"+mt+"H-"+at+"L-"+ft+",0Z")}},octagon:{n:16,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*.924,2),at=xt(vt*.383,2);return nt(dt,bt,"M-"+at+",-"+ft+"H"+at+"L"+ft+",-"+at+"V"+at+"L"+at+","+ft+"H-"+at+"L-"+ft+","+at+"V-"+at+"Z")}},star:{n:17,f:function(vt,dt,bt){if(_(dt))return et;var ft=vt*1.4,at=xt(ft*.225,2),mt=xt(ft*.951,2),St=xt(ft*.363,2),_t=xt(ft*.588,2),Mt=xt(-ft,2),Et=xt(ft*-.309,2),kt=xt(ft*.118,2),wt=xt(ft*.809,2),ct=xt(ft*.382,2);return nt(dt,bt,"M"+at+","+Et+"H"+mt+"L"+St+","+kt+"L"+_t+","+wt+"L0,"+ct+"L-"+_t+","+wt+"L-"+St+","+kt+"L-"+mt+","+Et+"H-"+at+"L0,"+Mt+"Z")}},hexagram:{n:18,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*.66,2),at=xt(vt*.38,2),mt=xt(vt*.76,2);return nt(dt,bt,"M-"+mt+",0l-"+at+",-"+ft+"h"+mt+"l"+at+",-"+ft+"l"+at+","+ft+"h"+mt+"l-"+at+","+ft+"l"+at+","+ft+"h-"+mt+"l-"+at+","+ft+"l-"+at+",-"+ft+"h-"+mt+"Z")}},"star-triangle-up":{n:19,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*yt*.8,2),at=xt(vt*.8,2),mt=xt(vt*1.6,2),St=xt(vt*4,2),_t="A "+St+","+St+" 0 0 1 ";return nt(dt,bt,"M-"+ft+","+at+_t+ft+","+at+_t+"0,-"+mt+_t+"-"+ft+","+at+"Z")}},"star-triangle-down":{n:20,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*yt*.8,2),at=xt(vt*.8,2),mt=xt(vt*1.6,2),St=xt(vt*4,2),_t="A "+St+","+St+" 0 0 1 ";return nt(dt,bt,"M"+ft+",-"+at+_t+"-"+ft+",-"+at+_t+"0,"+mt+_t+ft+",-"+at+"Z")}},"star-square":{n:21,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*1.1,2),at=xt(vt*2,2),mt="A "+at+","+at+" 0 0 1 ";return nt(dt,bt,"M-"+ft+",-"+ft+mt+"-"+ft+","+ft+mt+ft+","+ft+mt+ft+",-"+ft+mt+"-"+ft+",-"+ft+"Z")}},"star-diamond":{n:22,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*1.4,2),at=xt(vt*1.9,2),mt="A "+at+","+at+" 0 0 1 ";return nt(dt,bt,"M-"+ft+",0"+mt+"0,"+ft+mt+ft+",0"+mt+"0,-"+ft+mt+"-"+ft+",0Z")}},"diamond-tall":{n:23,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*.7,2),at=xt(vt*1.4,2);return nt(dt,bt,"M0,"+at+"L"+ft+",0L0,-"+at+"L-"+ft+",0Z")}},"diamond-wide":{n:24,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*1.4,2),at=xt(vt*.7,2);return nt(dt,bt,"M0,"+at+"L"+ft+",0L0,-"+at+"L-"+ft+",0Z")}},hourglass:{n:25,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt,2);return nt(dt,bt,"M"+ft+","+ft+"H-"+ft+"L"+ft+",-"+ft+"H-"+ft+"Z")},noDot:!0},bowtie:{n:26,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt,2);return nt(dt,bt,"M"+ft+","+ft+"V-"+ft+"L-"+ft+","+ft+"V-"+ft+"Z")},noDot:!0},"circle-cross":{n:27,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt,2);return nt(dt,bt,"M0,"+ft+"V-"+ft+"M"+ft+",0H-"+ft+"M"+ft+",0A"+ft+","+ft+" 0 1,1 0,-"+ft+"A"+ft+","+ft+" 0 0,1 "+ft+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt,2),at=xt(vt/Tt,2);return nt(dt,bt,"M"+at+","+at+"L-"+at+",-"+at+"M"+at+",-"+at+"L-"+at+","+at+"M"+ft+",0A"+ft+","+ft+" 0 1,1 0,-"+ft+"A"+ft+","+ft+" 0 0,1 "+ft+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt,2);return nt(dt,bt,"M0,"+ft+"V-"+ft+"M"+ft+",0H-"+ft+"M"+ft+","+ft+"H-"+ft+"V-"+ft+"H"+ft+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt,2);return nt(dt,bt,"M"+ft+","+ft+"L-"+ft+",-"+ft+"M"+ft+",-"+ft+"L-"+ft+","+ft+"M"+ft+","+ft+"H-"+ft+"V-"+ft+"H"+ft+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*1.3,2);return nt(dt,bt,"M"+ft+",0L0,"+ft+"L-"+ft+",0L0,-"+ft+"ZM0,-"+ft+"V"+ft+"M-"+ft+",0H"+ft)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*1.3,2),at=xt(vt*.65,2);return nt(dt,bt,"M"+ft+",0L0,"+ft+"L-"+ft+",0L0,-"+ft+"ZM-"+at+",-"+at+"L"+at+","+at+"M-"+at+","+at+"L"+at+",-"+at)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*1.4,2);return nt(dt,bt,"M0,"+ft+"V-"+ft+"M"+ft+",0H-"+ft)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt,2);return nt(dt,bt,"M"+ft+","+ft+"L-"+ft+",-"+ft+"M"+ft+",-"+ft+"L-"+ft+","+ft)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*1.2,2),at=xt(vt*.85,2);return nt(dt,bt,"M0,"+ft+"V-"+ft+"M"+ft+",0H-"+ft+"M"+at+","+at+"L-"+at+",-"+at+"M"+at+",-"+at+"L-"+at+","+at)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt/2,2),at=xt(vt,2);return nt(dt,bt,"M"+ft+","+at+"V-"+at+"M"+(ft-at)+",-"+at+"V"+at+"M"+at+","+ft+"H-"+at+"M-"+at+","+(ft-at)+"H"+at)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*1.2,2),at=xt(vt*1.6,2),mt=xt(vt*.8,2);return nt(dt,bt,"M-"+ft+","+mt+"L0,0M"+ft+","+mt+"L0,0M0,-"+at+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*1.2,2),at=xt(vt*1.6,2),mt=xt(vt*.8,2);return nt(dt,bt,"M-"+ft+",-"+mt+"L0,0M"+ft+",-"+mt+"L0,0M0,"+at+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*1.2,2),at=xt(vt*1.6,2),mt=xt(vt*.8,2);return nt(dt,bt,"M"+mt+","+ft+"L0,0M"+mt+",-"+ft+"L0,0M-"+at+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*1.2,2),at=xt(vt*1.6,2),mt=xt(vt*.8,2);return nt(dt,bt,"M-"+mt+","+ft+"L0,0M-"+mt+",-"+ft+"L0,0M"+at+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*1.4,2);return nt(dt,bt,"M"+ft+",0H-"+ft)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*1.4,2);return nt(dt,bt,"M0,"+ft+"V-"+ft)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt,2);return nt(dt,bt,"M"+ft+",-"+ft+"L-"+ft+","+ft)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt,2);return nt(dt,bt,"M"+ft+","+ft+"L-"+ft+",-"+ft)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt,2),at=xt(vt*2,2);return nt(dt,bt,"M0,0L-"+ft+","+at+"H"+ft+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt,2),at=xt(vt*2,2);return nt(dt,bt,"M0,0L-"+ft+",-"+at+"H"+ft+"Z")},noDot:!0},"arrow-left":{n:47,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*2,2),at=xt(vt,2);return nt(dt,bt,"M0,0L"+ft+",-"+at+"V"+at+"Z")},noDot:!0},"arrow-right":{n:48,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*2,2),at=xt(vt,2);return nt(dt,bt,"M0,0L-"+ft+",-"+at+"V"+at+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt,2),at=xt(vt*2,2);return nt(dt,bt,"M-"+ft+",0H"+ft+"M0,0L-"+ft+","+at+"H"+ft+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt,2),at=xt(vt*2,2);return nt(dt,bt,"M-"+ft+",0H"+ft+"M0,0L-"+ft+",-"+at+"H"+ft+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*2,2),at=xt(vt,2);return nt(dt,bt,"M0,-"+at+"V"+at+"M0,0L"+ft+",-"+at+"V"+at+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(vt,dt,bt){if(_(dt))return et;var ft=xt(vt*2,2),at=xt(vt,2);return nt(dt,bt,"M0,-"+at+"V"+at+"M0,0L-"+ft+",-"+at+"V"+at+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(vt,dt,bt){if(_(dt))return et;var ft=ut/2.5,at=2*vt*ht(ft),mt=2*vt*j(ft);return nt(dt,bt,"M0,0L"+-at+","+mt+"L"+at+","+mt+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(vt,dt,bt){if(_(dt))return et;var ft=ut/4,at=2*vt*ht(ft),mt=2*vt*j(ft);return nt(dt,bt,"M0,0L"+-at+","+mt+"A "+2*vt+","+2*vt+" 0 0 1 "+at+","+mt+"Z")},backoff:.4,noDot:!0}};function _(vt){return vt===null}var rt,tt,st,ot;function nt(vt,dt,bt){if((!vt||vt%360===0)&&!dt)return bt;if(st===vt&&ot===dt&&rt===bt)return tt;st=vt,ot=dt,rt=bt;function ft(Pt,zt){var Dt=ht(Pt),Nt=j(Pt),$t=zt[0],Ut=zt[1]+(dt||0);return[$t*Dt-Ut*Nt,$t*Nt+Ut*Dt]}for(var at=vt/180*ut,mt=0,St=0,_t=it(bt),Mt="",Et=0;Et<_t.length;Et++){var kt=_t[Et],wt=kt[0],ct=mt,It=St;if(wt==="M"||wt==="L")mt=+kt[1],St=+kt[2];else if(wt==="m"||wt==="l")mt+=+kt[1],St+=+kt[2];else if(wt==="H")mt=+kt[1];else if(wt==="h")mt+=+kt[1];else if(wt==="V")St=+kt[1];else if(wt==="v")St+=+kt[1];else if(wt==="A"){mt=+kt[1],St=+kt[2];var At=ft(at,[+kt[6],+kt[7]]);kt[6]=At[0],kt[7]=At[1],kt[3]=+kt[3]+vt}(wt==="H"||wt==="V")&&(wt="L"),(wt==="h"||wt==="v")&&(wt="l"),(wt==="m"||wt==="l")&&(mt-=ct,St-=It);var Ot=ft(at,[mt,St]);(wt==="H"||wt==="V")&&(wt="L"),(wt==="M"||wt==="L"||wt==="m"||wt==="l")&&(kt[1]=Ot[0],kt[2]=Ot[1]),kt[0]=wt,Mt+=kt[0]+kt.slice(1).join(",")}return tt=Mt,Mt}},97644:function(Ct){Ct.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc",_deprecated:{opacity:{valType:"number",editType:"style"}}}},14880:function(Ct,Rt,o){var it=o(38248),xt=o(24040),et=o(54460),Tt=o(3400),yt=o(93792);Ct.exports=function(j){for(var _=j.calcdata,rt=0;rt<_.length;rt++){var tt=_[rt],st=tt[0].trace;if(st.visible===!0&&xt.traceIs(st,"errorBarsOK")){var ot=et.getFromId(j,st.xaxis),nt=et.getFromId(j,st.yaxis);ut(tt,st,ot,"x"),ut(tt,st,nt,"y")}}};function ut(ht,j,_,rt){var tt=j["error_"+rt]||{},st=tt.visible&&["linear","log"].indexOf(_.type)!==-1,ot=[];if(st){for(var nt=yt(tt),vt=0;vt0,vt=ht._context.staticPlot;j.each(function(dt){var bt=dt[0].trace,ft=bt.error_x||{},at=bt.error_y||{},mt;bt.ids&&(mt=function(Et){return Et.id});var St=Tt.hasMarkers(bt)&&bt.marker.maxdisplayed>0;!at.visible&&!ft.visible&&(dt=[]);var _t=it.select(this).selectAll("g.errorbar").data(dt,mt);if(_t.exit().remove(),!!dt.length){ft.visible||_t.selectAll("path.xerror").remove(),at.visible||_t.selectAll("path.yerror").remove(),_t.style("opacity",1);var Mt=_t.enter().append("g").classed("errorbar",!0);nt&&Mt.style("opacity",0).transition().duration(rt.duration).style("opacity",1),et.setClipUrl(_t,_.layerClipId,ht),_t.each(function(Et){var kt=it.select(this),wt=yt(Et,st,ot);if(!(St&&!Et.vis)){var ct,It=kt.select("path.yerror");if(at.visible&&xt(wt.x)&&xt(wt.yh)&&xt(wt.ys)){var At=at.width;ct="M"+(wt.x-At)+","+wt.yh+"h"+2*At+"m-"+At+",0V"+wt.ys,wt.noYS||(ct+="m-"+At+",0h"+2*At),tt=!It.size(),tt?It=kt.append("path").style("vector-effect",vt?"none":"non-scaling-stroke").classed("yerror",!0):nt&&(It=It.transition().duration(rt.duration).ease(rt.easing)),It.attr("d",ct)}else It.remove();var Ot=kt.select("path.xerror");if(ft.visible&&xt(wt.y)&&xt(wt.xh)&&xt(wt.xs)){var Pt=(ft.copy_ystyle?at:ft).width;ct="M"+wt.xh+","+(wt.y-Pt)+"v"+2*Pt+"m0,-"+Pt+"H"+wt.xs,wt.noXS||(ct+="m0,-"+Pt+"v"+2*Pt),tt=!Ot.size(),tt?Ot=kt.append("path").style("vector-effect",vt?"none":"non-scaling-stroke").classed("xerror",!0):nt&&(Ot=Ot.transition().duration(rt.duration).ease(rt.easing)),Ot.attr("d",ct)}else Ot.remove()}})}})};function yt(ut,ht,j){var _={x:ht.c2p(ut.x),y:j.c2p(ut.y)};return ut.yh!==void 0&&(_.yh=j.c2p(ut.yh),_.ys=j.c2p(ut.ys),xt(_.ys)||(_.noYS=!0,_.ys=j.c2p(ut.ys,!0))),ut.xh!==void 0&&(_.xh=ht.c2p(ut.xh),_.xs=ht.c2p(ut.xs),xt(_.xs)||(_.noXS=!0,_.xs=ht.c2p(ut.xs,!0))),_}},92036:function(Ct,Rt,o){var it=o(33428),xt=o(76308);Ct.exports=function(Tt){Tt.each(function(yt){var ut=yt[0].trace,ht=ut.error_y||{},j=ut.error_x||{},_=it.select(this);_.selectAll("path.yerror").style("stroke-width",ht.thickness+"px").call(xt.stroke,ht.color),j.copy_ystyle&&(j=ht),_.selectAll("path.xerror").style("stroke-width",j.thickness+"px").call(xt.stroke,j.color)})}},55756:function(Ct,Rt,o){var it=o(25376),xt=o(65460).hoverlabel,et=o(92880).extendFlat;Ct.exports={hoverlabel:{bgcolor:et({},xt.bgcolor,{arrayOk:!0}),bordercolor:et({},xt.bordercolor,{arrayOk:!0}),font:it({arrayOk:!0,editType:"none"}),align:et({},xt.align,{arrayOk:!0}),namelength:et({},xt.namelength,{arrayOk:!0}),editType:"none"}}},55056:function(Ct,Rt,o){var it=o(3400),xt=o(24040);Ct.exports=function(yt){var ut=yt.calcdata,ht=yt._fullLayout;function j(ot){return function(nt){return it.coerceHoverinfo({hoverinfo:nt},{_module:ot._module},ht)}}for(var _=0;_=0&&_.indexmn[0]._length||so<0||so>pn[0]._length)return ot.unhoverRaw(Zt,Kt)}if(Kt.pointerX=Jn+mn[0]._offset,Kt.pointerY=so+pn[0]._offset,"xval"in Kt?pr=dt.flat(mr,Kt.xval):pr=dt.p2c(mn,Jn),"yval"in Kt?Dr=dt.flat(mr,Kt.yval):Dr=dt.p2c(pn,so),!xt(pr[0])||!xt(Dr[0]))return Tt.warn("Fx.hover failed",Kt,Zt),ot.unhoverRaw(Zt,Kt)}var hn=1/0;function wn(Zs,xo){for(ur=0;urbn&&(Gr.splice(0,bn),hn=Gr[0].distance),Er&&Wr!==0&&Gr.length===0){fn.distance=Wr,fn.index=!1;var ws=Pr._module.hoverPoints(fn,Cn,xn,"closest",{hoverLayer:br._hoverlayer});if(ws&&(ws=ws.filter(function(yo){return yo.spikeDistance<=Wr})),ws&&ws.length){var Is,Xs=ws.filter(function(yo){return yo.xa.showspikes&&yo.xa.spikesnap!=="hovered data"});if(Xs.length){var Cl=Xs[0];xt(Cl.x0)&&xt(Cl.y0)&&(Is=Ln(Cl),(!Un.vLinePoint||Un.vLinePoint.spikeDistance>Is.spikeDistance)&&(Un.vLinePoint=Is))}var Wl=ws.filter(function(yo){return yo.ya.showspikes&&yo.ya.spikesnap!=="hovered data"});if(Wl.length){var yu=Wl[0];xt(yu.x0)&&xt(yu.y0)&&(Is=Ln(yu),(!Un.hLinePoint||Un.hLinePoint.spikeDistance>Is.spikeDistance)&&(Un.hLinePoint=Is))}}}}}wn();function In(Zs,xo,Vo){for(var Go=null,ms=1/0,Ws,ws=0;ws0&&Math.abs(Zs.distance)ro-1;co--)_o(Gr[co]);Gr=Gn,ga()}var zo=Zt._hoverdata,Io=[],Lo=jt(Zt),vs=ar(Zt);for(Sr=0;Sr1||Gr.length>1)||Rr==="closest"&&_i&&Gr.length>1,Fl=st.combine(br.plot_bgcolor||st.background,br.paper_bgcolor),Jl=Dt(Gr,{gd:Zt,hovermode:Rr,rotateLabels:Qs,bgColor:Fl,container:br._hoverlayer,outerContainer:br._paper.node(),commonLabelOpts:br.hoverlabel,hoverdistance:br.hoverdistance}),nu=Jl.hoverLabels;if(dt.isUnifiedHover(Rr)||($t(nu,Qs,br,Jl.commonLabelBoundingBox),Vt(nu,Qs,br._invScaleX,br._invScaleY)),cr&&cr.tagName){var Yl=vt.getComponentMethod("annotations","hasClickToShow")(Zt,Io);rt(it.select(cr),Yl?"pointer":"")}!cr||tr||!er(Zt,Kt,zo)||(zo&&Zt.emit("plotly_unhover",{event:Kt,points:zo}),Zt.emit("plotly_hover",{event:Kt,points:Zt._hoverdata,xaxes:mn,yaxes:pn,xvals:pr,yvals:Dr}))}function Pt(Zt){return[Zt.trace.index,Zt.index,Zt.x0,Zt.y0,Zt.name,Zt.attr,Zt.xa?Zt.xa._id:"",Zt.ya?Zt.ya._id:""].join(",")}var zt=/([\s\S]*)<\/extra>/;function Dt(Zt,Kt){var or=Kt.gd,tr=or._fullLayout,cr=Kt.hovermode,mr=Kt.rotateLabels,Ar=Kt.bgColor,br=Kt.container,Ir=Kt.outerContainer,Tr=Kt.commonLabelOpts||{};if(Zt.length===0)return[[]];var _r=Kt.fontFamily||bt.HOVERFONT,Er=Kt.fontSize||bt.HOVERFONTSIZE,Rr=Kt.fontWeight||tr.font.weight,zr=Kt.fontStyle||tr.font.style,Or=Kt.fontVariant||tr.font.variant,kr=Zt[0],Nr=kr.xa,Qr=kr.ya,sn=cr.charAt(0),un=sn+"Label",en=kr[un];if(en===void 0&&Nr.type==="multicategory")for(var Xr=0;Xrtr.width-ho&&(go=tr.width-ho),po.attr("d","M"+(io-go)+",0L"+(io-go+kt)+","+Gn+kt+"H"+ho+"v"+Gn+(wt*2+ro.height)+"H"+-ho+"V"+Gn+kt+"H"+(io-go-kt)+"Z"),io=go,pr.minX=io-ho,pr.maxX=io+ho,Nr.side==="top"?(pr.minY=eo-(wt*2+ro.height),pr.maxY=eo-wt):(pr.minY=eo+wt,pr.maxY=eo+(wt*2+ro.height))}else{var _o,co,zo;Qr.side==="right"?(_o="start",co=1,zo="",io=Nr._offset+Nr._length):(_o="end",co=-1,zo="-",io=Nr._offset),eo=Qr._offset+(kr.y0+kr.y1)/2,Yr.attr("text-anchor",_o),po.attr("d","M0,0L"+zo+kt+","+kt+"V"+(wt+ro.height/2)+"h"+zo+(wt*2+ro.width)+"V-"+(wt+ro.height/2)+"H"+zo+kt+"V-"+kt+"Z"),pr.minY=eo-(wt+ro.height/2),pr.maxY=eo+(wt+ro.height/2),Qr.side==="right"?(pr.minX=io+kt,pr.maxX=io+kt+(wt*2+ro.width)):(pr.minX=io-kt-(wt*2+ro.width),pr.maxX=io-kt);var Io=ro.height/2,Lo=mn-ro.top-Io,vs="clip"+tr._uid+"commonlabel"+Qr._id,Zo;if(io=0?Vn=In:Ln+yn=0?Vn=Ln:Xn+yn=0?ga=hn:wn+Kn=0?ga=wn:Wn+Kn=0,(qn.idealAlign==="top"||!No)&&Yo?(Io-=vs/2,qn.anchor="end"):No?(Io+=vs/2,qn.anchor="start"):qn.anchor="middle",qn.crossPos=Io;else{if(qn.pos=Io,No=zo+Lo/2+bo<=pn,Yo=zo-Lo/2-bo>=0,(qn.idealAlign==="left"||!No)&&Yo)zo-=Lo/2,qn.anchor="end";else if(No)zo+=Lo/2,qn.anchor="start";else{qn.anchor="middle";var Oo=bo/2,ys=zo+Oo-pn,gs=zo-Oo;ys>0&&(zo-=ys),gs<0&&(zo+=-gs)}qn.crossPos=zo}Gn.attr("text-anchor",qn.anchor),go&&ho.attr("text-anchor",qn.anchor),po.attr("transform",ut(zo,Io)+(mr?ht(mt):""))}),{hoverLabels:fo,commonLabelBoundingBox:pr}}function Nt(Zt,Kt,or,tr,cr,mr){var Ar="",br="";Zt.nameOverride!==void 0&&(Zt.name=Zt.nameOverride),Zt.name&&(Zt.trace._meta&&(Zt.name=Tt.templateString(Zt.name,Zt.trace._meta)),Ar=Jt(Zt.name,Zt.nameLength));var Ir=or.charAt(0),Tr=Ir==="x"?"y":"x";Zt.zLabel!==void 0?(Zt.xLabel!==void 0&&(br+="x: "+Zt.xLabel+"
"),Zt.yLabel!==void 0&&(br+="y: "+Zt.yLabel+"
"),Zt.trace.type!=="choropleth"&&Zt.trace.type!=="choroplethmapbox"&&(br+=(br?"z: ":"")+Zt.zLabel)):Kt&&Zt[Ir+"Label"]===cr?br=Zt[Tr+"Label"]||"":Zt.xLabel===void 0?Zt.yLabel!==void 0&&Zt.trace.type!=="scattercarpet"&&(br=Zt.yLabel):Zt.yLabel===void 0?br=Zt.xLabel:br="("+Zt.xLabel+", "+Zt.yLabel+")",(Zt.text||Zt.text===0)&&!Array.isArray(Zt.text)&&(br+=(br?"
":"")+Zt.text),Zt.extraText!==void 0&&(br+=(br?"
":"")+Zt.extraText),mr&&br===""&&!Zt.hovertemplate&&(Ar===""&&mr.remove(),br=Ar);var _r=Zt.hovertemplate||!1;if(_r){var Er=Zt.hovertemplateLabels||Zt;Zt[Ir+"Label"]!==cr&&(Er[Ir+"other"]=Er[Ir+"Val"],Er[Ir+"otherLabel"]=Er[Ir+"Label"]),br=Tt.hovertemplateString(_r,Er,tr._d3locale,Zt.eventData[0]||{},Zt.trace._meta),br=br.replace(zt,function(Rr,zr){return Ar=Jt(zr,Zt.nameLength),""})}return[br,Ar]}function $t(Zt,Kt,or,tr){var cr=Kt?"xa":"ya",mr=Kt?"ya":"xa",Ar=0,br=1,Ir=Zt.size(),Tr=new Array(Ir),_r=0,Er=tr.minX,Rr=tr.maxX,zr=tr.minY,Or=tr.maxY,kr=function(pr){return pr*or._invScaleX},Nr=function(pr){return pr*or._invScaleY};Zt.each(function(pr){var Dr=pr[cr],Sr=pr[mr],ur=Dr._id.charAt(0)==="x",xr=Dr.range;_r===0&&xr&&xr[0]>xr[1]!==ur&&(br=-1);var Pr=0,Vr=ur?or.width:or.height;if(or.hovermode==="x"||or.hovermode==="y"){var qr=Ut(pr,Kt),rn=pr.anchor,Cn=rn==="end"?-1:1,xn,fn;if(rn==="middle")xn=pr.crossPos+(ur?Nr(qr.y-pr.by/2):kr(pr.bx/2+pr.tx2width/2)),fn=xn+(ur?Nr(pr.by):kr(pr.bx));else if(ur)xn=pr.crossPos+Nr(kt+qr.y)-Nr(pr.by/2-kt),fn=xn+Nr(pr.by);else{var bn=kr(Cn*kt+qr.x),Un=bn+kr(Cn*pr.bx);xn=pr.crossPos+Math.min(bn,Un),fn=pr.crossPos+Math.max(bn,Un)}ur?zr!==void 0&&Or!==void 0&&Math.min(fn,Or)-Math.max(xn,zr)>1&&(Sr.side==="left"?(Pr=Sr._mainLinePosition,Vr=or.width):Vr=Sr._mainLinePosition):Er!==void 0&&Rr!==void 0&&Math.min(fn,Rr)-Math.max(xn,Er)>1&&(Sr.side==="top"?(Pr=Sr._mainLinePosition,Vr=or.height):Vr=Sr._mainLinePosition)}Tr[_r++]=[{datum:pr,traceIndex:pr.trace.index,dp:0,pos:pr.pos,posref:pr.posref,size:pr.by*(ur?_t:1)/2,pmin:Pr,pmax:Vr}]}),Tr.sort(function(pr,Dr){return pr[0].posref-Dr[0].posref||br*(Dr[0].traceIndex-pr[0].traceIndex)});var Qr,sn,un,en,Xr,ln,mn;function pn(pr){var Dr=pr[0],Sr=pr[pr.length-1];if(sn=Dr.pmin-Dr.pos-Dr.dp+Dr.size,un=Sr.pos+Sr.dp+Sr.size-Dr.pmax,sn>.01){for(Xr=pr.length-1;Xr>=0;Xr--)pr[Xr].dp+=sn;Qr=!1}if(!(un<.01)){if(sn<-.01){for(Xr=pr.length-1;Xr>=0;Xr--)pr[Xr].dp-=un;Qr=!1}if(Qr){var ur=0;for(en=0;enDr.pmax&&ur++;for(en=pr.length-1;en>=0&&!(ur<=0);en--)ln=pr[en],ln.pos>Dr.pmax-1&&(ln.del=!0,ur--);for(en=0;en=0;Xr--)pr[Xr].dp-=un;for(en=pr.length-1;en>=0&&!(ur<=0);en--)ln=pr[en],ln.pos+ln.dp+ln.size>Dr.pmax&&(ln.del=!0,ur--)}}}for(;!Qr&&Ar<=Ir;){for(Ar++,Qr=!0,en=0;en.01&&Fr.pmin===Ur.pmin&&Fr.pmax===Ur.pmax){for(Xr=Zr.length-1;Xr>=0;Xr--)Zr[Xr].dp+=sn;for(Tn.push.apply(Tn,Zr),Tr.splice(en+1,1),mn=0,Xr=Tn.length-1;Xr>=0;Xr--)mn+=Tn[Xr].dp;for(un=mn/Tn.length,Xr=Tn.length-1;Xr>=0;Xr--)Tn[Xr].dp-=un;Qr=!1}else en++}Tr.forEach(pn)}for(en=Tr.length-1;en>=0;en--){var Wr=Tr[en];for(Xr=Wr.length-1;Xr>=0;Xr--){var Gr=Wr[Xr],wr=Gr.datum;wr.offset=Gr.dp,wr.del=Gr.del}}}function Ut(Zt,Kt){var or=0,tr=Zt.offset;return Kt&&(tr*=-Et,or=Zt.offset*Mt),{x:or,y:tr}}function Ht(Zt){var Kt={start:1,end:-1,middle:0}[Zt.anchor],or=Kt*(kt+wt),tr=or+Kt*(Zt.txwidth+wt),cr=Zt.anchor==="middle";return cr&&(or-=Zt.tx2width/2,tr+=Zt.txwidth/2+wt),{alignShift:Kt,textShiftX:or,text2ShiftX:tr}}function Vt(Zt,Kt,or,tr){var cr=function(Ar){return Ar*or},mr=function(Ar){return Ar*tr};Zt.each(function(Ar){var br=it.select(this);if(Ar.del)return br.remove();var Ir=br.select("text.nums"),Tr=Ar.anchor,_r=Tr==="end"?-1:1,Er=Ht(Ar),Rr=Ut(Ar,Kt),zr=Rr.x,Or=Rr.y,kr=Tr==="middle";br.select("path").attr("d",kr?"M-"+cr(Ar.bx/2+Ar.tx2width/2)+","+mr(Or-Ar.by/2)+"h"+cr(Ar.bx)+"v"+mr(Ar.by)+"h-"+cr(Ar.bx)+"Z":"M0,0L"+cr(_r*kt+zr)+","+mr(kt+Or)+"v"+mr(Ar.by/2-kt)+"h"+cr(_r*Ar.bx)+"v-"+mr(Ar.by)+"H"+cr(_r*kt+zr)+"V"+mr(Or-kt)+"Z");var Nr=zr+Er.textShiftX,Qr=Or+Ar.ty0-Ar.by/2+wt,sn=Ar.textAlign||"auto";sn!=="auto"&&(sn==="left"&&Tr!=="start"?(Ir.attr("text-anchor","start"),Nr=kr?-Ar.bx/2-Ar.tx2width/2+wt:-Ar.bx-wt):sn==="right"&&Tr!=="end"&&(Ir.attr("text-anchor","end"),Nr=kr?Ar.bx/2-Ar.tx2width/2-wt:Ar.bx+wt)),Ir.call(_.positionText,cr(Nr),mr(Qr)),Ar.tx2width&&(br.select("text.name").call(_.positionText,cr(Er.text2ShiftX+Er.alignShift*wt+zr),mr(Or+Ar.ty0-Ar.by/2+wt)),br.select("rect").call(tt.setRect,cr(Er.text2ShiftX+(Er.alignShift-1)*Ar.tx2width/2+zr),mr(Or-Ar.by/2-1),cr(Ar.tx2width),mr(Ar.by+2)))})}function Xt(Zt,Kt){var or=Zt.index,tr=Zt.trace||{},cr=Zt.cd[0],mr=Zt.cd[or]||{};function Ar(Rr){return Rr||xt(Rr)&&Rr===0}var br=Array.isArray(or)?function(Rr,zr){var Or=Tt.castOption(cr,or,Rr);return Ar(Or)?Or:Tt.extractOption({},tr,"",zr)}:function(Rr,zr){return Tt.extractOption(mr,tr,Rr,zr)};function Ir(Rr,zr,Or){var kr=br(zr,Or);Ar(kr)&&(Zt[Rr]=kr)}if(Ir("hoverinfo","hi","hoverinfo"),Ir("bgcolor","hbg","hoverlabel.bgcolor"),Ir("borderColor","hbc","hoverlabel.bordercolor"),Ir("fontFamily","htf","hoverlabel.font.family"),Ir("fontSize","hts","hoverlabel.font.size"),Ir("fontColor","htc","hoverlabel.font.color"),Ir("fontWeight","htw","hoverlabel.font.weight"),Ir("fontStyle","hty","hoverlabel.font.style"),Ir("fontVariant","htv","hoverlabel.font.variant"),Ir("nameLength","hnl","hoverlabel.namelength"),Ir("textAlign","hta","hoverlabel.align"),Zt.posref=Kt==="y"||Kt==="closest"&&tr.orientation==="h"?Zt.xa._offset+(Zt.x0+Zt.x1)/2:Zt.ya._offset+(Zt.y0+Zt.y1)/2,Zt.x0=Tt.constrain(Zt.x0,0,Zt.xa._length),Zt.x1=Tt.constrain(Zt.x1,0,Zt.xa._length),Zt.y0=Tt.constrain(Zt.y0,0,Zt.ya._length),Zt.y1=Tt.constrain(Zt.y1,0,Zt.ya._length),Zt.xLabelVal!==void 0&&(Zt.xLabel="xLabel"in Zt?Zt.xLabel:nt.hoverLabelText(Zt.xa,Zt.xLabelVal,tr.xhoverformat),Zt.xVal=Zt.xa.c2d(Zt.xLabelVal)),Zt.yLabelVal!==void 0&&(Zt.yLabel="yLabel"in Zt?Zt.yLabel:nt.hoverLabelText(Zt.ya,Zt.yLabelVal,tr.yhoverformat),Zt.yVal=Zt.ya.c2d(Zt.yLabelVal)),Zt.zLabelVal!==void 0&&Zt.zLabel===void 0&&(Zt.zLabel=String(Zt.zLabelVal)),!isNaN(Zt.xerr)&&!(Zt.xa.type==="log"&&Zt.xerr<=0)){var Tr=nt.tickText(Zt.xa,Zt.xa.c2l(Zt.xerr),"hover").text;Zt.xerrneg!==void 0?Zt.xLabel+=" +"+Tr+" / -"+nt.tickText(Zt.xa,Zt.xa.c2l(Zt.xerrneg),"hover").text:Zt.xLabel+=" ± "+Tr,Kt==="x"&&(Zt.distance+=1)}if(!isNaN(Zt.yerr)&&!(Zt.ya.type==="log"&&Zt.yerr<=0)){var _r=nt.tickText(Zt.ya,Zt.ya.c2l(Zt.yerr),"hover").text;Zt.yerrneg!==void 0?Zt.yLabel+=" +"+_r+" / -"+nt.tickText(Zt.ya,Zt.ya.c2l(Zt.yerrneg),"hover").text:Zt.yLabel+=" ± "+_r,Kt==="y"&&(Zt.distance+=1)}var Er=Zt.hoverinfo||Zt.trace.hoverinfo;return Er&&Er!=="all"&&(Er=Array.isArray(Er)?Er:Er.split("+"),Er.indexOf("x")===-1&&(Zt.xLabel=void 0),Er.indexOf("y")===-1&&(Zt.yLabel=void 0),Er.indexOf("z")===-1&&(Zt.zLabel=void 0),Er.indexOf("text")===-1&&(Zt.text=void 0),Er.indexOf("name")===-1&&(Zt.name=void 0)),Zt}function qt(Zt,Kt,or){var tr=or.container,cr=or.fullLayout,mr=cr._size,Ar=or.event,br=!!Kt.hLinePoint,Ir=!!Kt.vLinePoint,Tr,_r;if(tr.selectAll(".spikeline").remove(),!!(Ir||br)){var Er=st.combine(cr.plot_bgcolor,cr.paper_bgcolor);if(br){var Rr=Kt.hLinePoint,zr,Or;Tr=Rr&&Rr.xa,_r=Rr&&Rr.ya;var kr=_r.spikesnap;kr==="cursor"?(zr=Ar.pointerX,Or=Ar.pointerY):(zr=Tr._offset+Rr.x,Or=_r._offset+Rr.y);var Nr=et.readability(Rr.color,Er)<1.5?st.contrast(Er):Rr.color,Qr=_r.spikemode,sn=_r.spikethickness,un=_r.spikecolor||Nr,en=nt.getPxPosition(Zt,_r),Xr,ln;if(Qr.indexOf("toaxis")!==-1||Qr.indexOf("across")!==-1){if(Qr.indexOf("toaxis")!==-1&&(Xr=en,ln=zr),Qr.indexOf("across")!==-1){var mn=_r._counterDomainMin,pn=_r._counterDomainMax;_r.anchor==="free"&&(mn=Math.min(mn,_r.position),pn=Math.max(pn,_r.position)),Xr=mr.l+mn*mr.w,ln=mr.l+pn*mr.w}tr.insert("line",":first-child").attr({x1:Xr,x2:ln,y1:Or,y2:Or,"stroke-width":sn,stroke:un,"stroke-dasharray":tt.dashStyle(_r.spikedash,sn)}).classed("spikeline",!0).classed("crisp",!0),tr.insert("line",":first-child").attr({x1:Xr,x2:ln,y1:Or,y2:Or,"stroke-width":sn+2,stroke:Er}).classed("spikeline",!0).classed("crisp",!0)}Qr.indexOf("marker")!==-1&&tr.insert("circle",":first-child").attr({cx:en+(_r.side!=="right"?sn:-sn),cy:Or,r:sn,fill:un}).classed("spikeline",!0)}if(Ir){var Tn=Kt.vLinePoint,Zr,Fr;Tr=Tn&&Tn.xa,_r=Tn&&Tn.ya;var Ur=Tr.spikesnap;Ur==="cursor"?(Zr=Ar.pointerX,Fr=Ar.pointerY):(Zr=Tr._offset+Tn.x,Fr=_r._offset+Tn.y);var Wr=et.readability(Tn.color,Er)<1.5?st.contrast(Er):Tn.color,Gr=Tr.spikemode,wr=Tr.spikethickness,pr=Tr.spikecolor||Wr,Dr=nt.getPxPosition(Zt,Tr),Sr,ur;if(Gr.indexOf("toaxis")!==-1||Gr.indexOf("across")!==-1){if(Gr.indexOf("toaxis")!==-1&&(Sr=Dr,ur=Fr),Gr.indexOf("across")!==-1){var xr=Tr._counterDomainMin,Pr=Tr._counterDomainMax;Tr.anchor==="free"&&(xr=Math.min(xr,Tr.position),Pr=Math.max(Pr,Tr.position)),Sr=mr.t+(1-Pr)*mr.h,ur=mr.t+(1-xr)*mr.h}tr.insert("line",":first-child").attr({x1:Zr,x2:Zr,y1:Sr,y2:ur,"stroke-width":wr,stroke:pr,"stroke-dasharray":tt.dashStyle(Tr.spikedash,wr)}).classed("spikeline",!0).classed("crisp",!0),tr.insert("line",":first-child").attr({x1:Zr,x2:Zr,y1:Sr,y2:ur,"stroke-width":wr+2,stroke:Er}).classed("spikeline",!0).classed("crisp",!0)}Gr.indexOf("marker")!==-1&&tr.insert("circle",":first-child").attr({cx:Zr,cy:Dr-(Tr.side!=="top"?wr:-wr),r:wr,fill:pr}).classed("spikeline",!0)}}}function er(Zt,Kt,or){if(!or||or.length!==Zt._hoverdata.length)return!0;for(var tr=or.length-1;tr>=0;tr--){var cr=or[tr],mr=Zt._hoverdata[tr];if(cr.curveNumber!==mr.curveNumber||String(cr.pointNumber)!==String(mr.pointNumber)||String(cr.pointNumbers)!==String(mr.pointNumbers))return!0}return!1}function lr(Zt,Kt){return!Kt||Kt.vLinePoint!==Zt._spikepoints.vLinePoint||Kt.hLinePoint!==Zt._spikepoints.hLinePoint}function Jt(Zt,Kt){return _.plainText(Zt||"",{len:Kt,allowedTags:["br","sub","sup","b","i","em"]})}function Yt(Zt,Kt){for(var or=Kt.charAt(0),tr=[],cr=[],mr=[],Ar=0;Ar1)){delete ot.grid;return}if(!bt&&!ft&&!at){var ct=Et("pattern")==="independent";ct&&(bt=!0)}Mt._hasSubplotGrid=bt;var It=Et("roworder"),At=It==="top to bottom",Ot=bt?.2:.1,Pt=bt?.3:.1,zt,Dt;mt&&ot._splomGridDflt&&(zt=ot._splomGridDflt.xside,Dt=ot._splomGridDflt.yside),Mt._domains={x:_("x",Et,Ot,zt,wt),y:_("y",Et,Pt,Dt,kt,At)}}function _(st,ot,nt,vt,dt,bt){var ft=ot(st+"gap",nt),at=ot("domain."+st);ot(st+"side",vt);for(var mt=new Array(dt),St=at[0],_t=(at[1]-St)/(dt-ft),Mt=_t*(1-ft),Et=0;Et(_==="legend"?1:0));if(At===!1&&(tt[_]=void 0),!(At===!1&&!ot.uirevision)&&(vt("uirevision",tt.uirevision),At!==!1)){vt("borderwidth");var Ot=vt("orientation"),Pt=vt("yref"),zt=vt("xref"),Dt=Ot==="h",Nt=Pt==="paper",$t=zt==="paper",Ut,Ht,Vt,Xt="left";Dt?(Ut=0,it.getComponentMethod("rangeslider","isVisible")(rt.xaxis)?Nt?(Ht=1.1,Vt="bottom"):(Ht=1,Vt="top"):Nt?(Ht=-.1,Vt="top"):(Ht=0,Vt="bottom")):(Ht=1,Vt="auto",$t?Ut=1.02:(Ut=1,Xt="right")),xt.coerce(ot,nt,{x:{valType:"number",editType:"legend",min:$t?-2:0,max:$t?3:1,dflt:Ut}},"x"),xt.coerce(ot,nt,{y:{valType:"number",editType:"legend",min:Nt?-2:0,max:Nt?3:1,dflt:Ht}},"y"),vt("traceorder",Et),ht.isGrouped(tt[_])&&vt("tracegroupgap"),vt("entrywidth"),vt("entrywidthmode"),vt("indentation"),vt("itemsizing"),vt("itemwidth"),vt("itemclick"),vt("itemdoubleclick"),vt("groupclick"),vt("xanchor",Xt),vt("yanchor",Vt),vt("valign"),xt.noneOrAll(ot,nt,["x","y"]);var qt=vt("title.text");if(qt){vt("title.side",Dt?"left":"top");var er=xt.extendFlat({},dt,{size:xt.bigFont(dt.size)});xt.coerceFont(vt,"title.font",er)}}}}Ct.exports=function(rt,tt,st){var ot,nt=st.slice(),vt=tt.shapes;if(vt)for(ot=0;ot1)}var Kt=Xt.hiddenlabels||[];if(!Jt&&(!Xt.showlegend||!Yt.length))return lr.selectAll("."+qt).remove(),Xt._topdefs.select("#"+er).remove(),et.autoMargin(Ut,qt);var or=xt.ensureSingle(lr,"g",qt,function(Er){Jt||Er.attr("pointer-events","all")}),tr=xt.ensureSingleById(Xt._topdefs,"clipPath",er,function(Er){Er.append("rect")}),cr=xt.ensureSingle(or,"rect","bg",function(Er){Er.attr("shape-rendering","crispEdges")});cr.call(j.stroke,Vt.bordercolor).call(j.fill,Vt.bgcolor).style("stroke-width",Vt.borderwidth+"px");var mr=xt.ensureSingle(or,"g","scrollbox"),Ar=Vt.title;Vt._titleWidth=0,Vt._titleHeight=0;var br;Ar.text?(br=xt.ensureSingle(mr,"text",qt+"titletext"),br.attr("text-anchor","start").call(ht.font,Ar.font).text(Ar.text),It(br,mr,Ut,Vt,at)):mr.selectAll("."+qt+"titletext").remove();var Ir=xt.ensureSingle(or,"rect","scrollbar",function(Er){Er.attr(tt.scrollBarEnterAttrs).call(j.fill,tt.scrollBarColor)}),Tr=mr.selectAll("g.groups").data(Yt);Tr.enter().append("g").attr("class","groups"),Tr.exit().remove();var _r=Tr.selectAll("g.traces").data(xt.identity);_r.enter().append("g").attr("class","traces"),_r.exit().remove(),_r.style("opacity",function(Er){var Rr=Er[0].trace;return Tt.traceIs(Rr,"pie-like")?Kt.indexOf(Er[0].label)!==-1?.5:1:Rr.visible==="legendonly"?.5:1}).each(function(){it.select(this).call(kt,Ut,Vt)}).call(bt,Ut,Vt).each(function(){Jt||it.select(this).call(ct,Ut,qt)}),xt.syncOrAsync([et.previousPromises,function(){return Pt(Ut,Tr,_r,Vt)},function(){var Er=Xt._size,Rr=Vt.borderwidth,zr=Vt.xref==="paper",Or=Vt.yref==="paper";if(Ar.text&&St(br,Vt,Rr),!Jt){var kr,Nr;zr?kr=Er.l+Er.w*Vt.x-nt[Dt(Vt)]*Vt._width:kr=Xt.width*Vt.x-nt[Dt(Vt)]*Vt._width,Or?Nr=Er.t+Er.h*(1-Vt.y)-nt[Nt(Vt)]*Vt._effHeight:Nr=Xt.height*(1-Vt.y)-nt[Nt(Vt)]*Vt._effHeight;var Qr=zt(Ut,qt,kr,Nr);if(Qr)return;if(Xt.margin.autoexpand){var sn=kr,un=Nr;kr=zr?xt.constrain(kr,0,Xt.width-Vt._width):sn,Nr=Or?xt.constrain(Nr,0,Xt.height-Vt._effHeight):un,kr!==sn&&xt.log("Constrain "+qt+".x to make legend fit inside graph"),Nr!==un&&xt.log("Constrain "+qt+".y to make legend fit inside graph")}ht.setTranslate(or,kr,Nr)}if(Ir.on(".drag",null),or.on("wheel",null),Jt||Vt._height<=Vt._maxHeight||Ut._context.staticPlot){var en=Vt._effHeight;Jt&&(en=Vt._height),cr.attr({width:Vt._width-Rr,height:en-Rr,x:Rr/2,y:Rr/2}),ht.setTranslate(mr,0,0),tr.select("rect").attr({width:Vt._width-2*Rr,height:en-2*Rr,x:Rr,y:Rr}),ht.setClipUrl(mr,er,Ut),ht.setRect(Ir,0,0,0,0),delete Vt._scrollY}else{var Xr=Math.max(tt.scrollBarMinHeight,Vt._effHeight*Vt._effHeight/Vt._height),ln=Vt._effHeight-Xr-2*tt.scrollBarMargin,mn=Vt._height-Vt._effHeight,pn=ln/mn,Tn=Math.min(Vt._scrollY||0,mn);cr.attr({width:Vt._width-2*Rr+tt.scrollBarWidth+tt.scrollBarMargin,height:Vt._effHeight-Rr,x:Rr/2,y:Rr/2}),tr.select("rect").attr({width:Vt._width-2*Rr+tt.scrollBarWidth+tt.scrollBarMargin,height:Vt._effHeight-2*Rr,x:Rr,y:Rr+Tn}),ht.setClipUrl(mr,er,Ut),Dr(Tn,Xr,pn),or.on("wheel",function(){Tn=xt.constrain(Vt._scrollY+it.event.deltaY/ln*mn,0,mn),Dr(Tn,Xr,pn),Tn!==0&&Tn!==mn&&it.event.preventDefault()});var Zr,Fr,Ur,Wr=function(Vr,qr,rn){var Cn=(rn-qr)/pn+Vr;return xt.constrain(Cn,0,mn)},Gr=function(Vr,qr,rn){var Cn=(qr-rn)/pn+Vr;return xt.constrain(Cn,0,mn)},wr=it.behavior.drag().on("dragstart",function(){var Vr=it.event.sourceEvent;Vr.type==="touchstart"?Zr=Vr.changedTouches[0].clientY:Zr=Vr.clientY,Ur=Tn}).on("drag",function(){var Vr=it.event.sourceEvent;Vr.buttons===2||Vr.ctrlKey||(Vr.type==="touchmove"?Fr=Vr.changedTouches[0].clientY:Fr=Vr.clientY,Tn=Wr(Ur,Zr,Fr),Dr(Tn,Xr,pn))});Ir.call(wr);var pr=it.behavior.drag().on("dragstart",function(){var Vr=it.event.sourceEvent;Vr.type==="touchstart"&&(Zr=Vr.changedTouches[0].clientY,Ur=Tn)}).on("drag",function(){var Vr=it.event.sourceEvent;Vr.type==="touchmove"&&(Fr=Vr.changedTouches[0].clientY,Tn=Gr(Ur,Zr,Fr),Dr(Tn,Xr,pn))});mr.call(pr)}function Dr(Vr,qr,rn){Vt._scrollY=Ut._fullLayout[qt]._scrollY=Vr,ht.setTranslate(mr,0,-Vr),ht.setRect(Ir,Vt._width,tt.scrollBarMargin+Vr*rn,tt.scrollBarWidth,qr),tr.select("rect").attr("y",Rr+Vr)}if(Ut._context.edits.legendPosition){var Sr,ur,xr,Pr;or.classed("cursor-move",!0),ut.init({element:or.node(),gd:Ut,prepFn:function(){var Vr=ht.getTranslate(or);xr=Vr.x,Pr=Vr.y},moveFn:function(Vr,qr){var rn=xr+Vr,Cn=Pr+qr;ht.setTranslate(or,rn,Cn),Sr=ut.align(rn,Vt._width,Er.l,Er.l+Er.w,Vt.xanchor),ur=ut.align(Cn+Vt._height,-Vt._height,Er.t+Er.h,Er.t,Vt.yanchor)},doneFn:function(){if(Sr!==void 0&&ur!==void 0){var Vr={};Vr[qt+".x"]=Sr,Vr[qt+".y"]=ur,Tt.call("_guiRelayout",Ut,Vr)}},clickFn:function(Vr,qr){var rn=lr.selectAll("g.traces").filter(function(){var Cn=this.getBoundingClientRect();return qr.clientX>=Cn.left&&qr.clientX<=Cn.right&&qr.clientY>=Cn.top&&qr.clientY<=Cn.bottom});rn.size()>0&&Et(Ut,or,rn,Vr,qr)}})}}],Ut)}}function Mt(Ut,Ht,Vt){var Xt=Ut[0],qt=Xt.width,er=Ht.entrywidthmode,lr=Xt.trace.legendwidth||Ht.entrywidth;return er==="fraction"?Ht._maxWidth*lr:Vt+(lr||qt)}function Et(Ut,Ht,Vt,Xt,qt){var er=Vt.data()[0][0].trace,lr={event:qt,node:Vt.node(),curveNumber:er.index,expandedIndex:er._expandedIndex,data:Ut.data,layout:Ut.layout,frames:Ut._transitionData._frames,config:Ut._context,fullData:Ut._fullData,fullLayout:Ut._fullLayout};er._group&&(lr.group=er._group),Tt.traceIs(er,"pie-like")&&(lr.label=Vt.datum()[0].label);var Jt=yt.triggerHandler(Ut,"plotly_legendclick",lr);if(Xt===1){if(Jt===!1)return;Ht._clickTimeout=setTimeout(function(){Ut._fullLayout&&rt(Vt,Ut,Xt)},Ut._context.doubleClickDelay)}else if(Xt===2){Ht._clickTimeout&&clearTimeout(Ht._clickTimeout),Ut._legendMouseDownTime=0;var Yt=yt.triggerHandler(Ut,"plotly_legenddoubleclick",lr);Yt!==!1&&Jt!==!1&&rt(Vt,Ut,Xt)}}function kt(Ut,Ht,Vt){var Xt=$t(Vt),qt=Ut.data()[0][0],er=qt.trace,lr=Tt.traceIs(er,"pie-like"),Jt=!Vt._inHover&&Ht._context.edits.legendText&&!lr,Yt=Vt._maxNameLength,rr,jt;qt.groupTitle?(rr=qt.groupTitle.text,jt=qt.groupTitle.font):(jt=Vt.font,Vt.entries?rr=qt.text:(rr=lr?qt.label:er.name,er._meta&&(rr=xt.templateString(rr,er._meta))));var ar=xt.ensureSingle(Ut,"text",Xt+"text");ar.attr("text-anchor","start").call(ht.font,jt).text(Jt?wt(rr,Yt):rr);var sr=Vt.indentation+Vt.itemwidth+tt.itemGap*2;_.positionText(ar,sr,0),Jt?ar.call(_.makeEditable,{gd:Ht,text:rr}).call(It,Ut,Ht,Vt).on("edit",function(Zt){this.text(wt(Zt,Yt)).call(It,Ut,Ht,Vt);var Kt=qt.trace._fullInput||{},or={};if(Tt.hasTransform(Kt,"groupby")){var tr=Tt.getTransformIndices(Kt,"groupby"),cr=tr[tr.length-1],mr=xt.keyedContainer(Kt,"transforms["+cr+"].styles","target","value.name");mr.set(qt.trace._group,Zt),or=mr.constructUpdate()}else or.name=Zt;return Kt._isShape?Tt.call("_guiRelayout",Ht,"shapes["+er.index+"].name",or.name):Tt.call("_guiRestyle",Ht,or,er.index)}):It(ar,Ut,Ht,Vt)}function wt(Ut,Ht){var Vt=Math.max(4,Ht);if(Ut&&Ut.trim().length>=Vt/2)return Ut;Ut=Ut||"";for(var Xt=Vt-Ut.length;Xt>0;Xt--)Ut+=" ";return Ut}function ct(Ut,Ht,Vt){var Xt=Ht._context.doubleClickDelay,qt,er=1,lr=xt.ensureSingle(Ut,"rect",Vt+"toggle",function(Jt){Ht._context.staticPlot||Jt.style("cursor","pointer").attr("pointer-events","all"),Jt.call(j.fill,"rgba(0,0,0,0)")});Ht._context.staticPlot||(lr.on("mousedown",function(){qt=new Date().getTime(),qt-Ht._legendMouseDownTimeXt&&(er=Math.max(er-1,1)),Et(Ht,Jt,Ut,er,it.event)}}))}function It(Ut,Ht,Vt,Xt,qt){Xt._inHover&&Ut.attr("data-notex",!0),_.convertToTspans(Ut,Vt,function(){At(Ht,Vt,Xt,qt)})}function At(Ut,Ht,Vt,Xt){var qt=Ut.data()[0][0];if(!Vt._inHover&&qt&&!qt.trace.showlegend){Ut.remove();return}var er=Ut.select("g[class*=math-group]"),lr=er.node(),Jt=$t(Vt);Vt||(Vt=Ht._fullLayout[Jt]);var Yt=Vt.borderwidth,rr;Xt===at?rr=Vt.title.font:qt.groupTitle?rr=qt.groupTitle.font:rr=Vt.font;var jt=rr.size*ot,ar,sr;if(lr){var Zt=ht.bBox(lr);ar=Zt.height,sr=Zt.width,Xt===at?ht.setTranslate(er,Yt,Yt+ar*.75):ht.setTranslate(er,0,ar*.25)}else{var Kt="."+Jt+(Xt===at?"title":"")+"text",or=Ut.select(Kt),tr=_.lineCount(or),cr=or.node();if(ar=jt*tr,sr=cr?ht.bBox(cr).width:0,Xt===at)Vt.title.side==="left"&&(sr+=tt.itemGap*2),_.positionText(or,Yt+tt.titlePad,Yt+jt);else{var mr=tt.itemGap*2+Vt.indentation+Vt.itemwidth;qt.groupTitle&&(mr=tt.itemGap,sr-=Vt.indentation+Vt.itemwidth),_.positionText(or,mr,-jt*((tr-1)/2-.3))}}Xt===at?(Vt._titleWidth=sr,Vt._titleHeight=ar):(qt.lineHeight=jt,qt.height=Math.max(ar,16)+3,qt.width=sr)}function Ot(Ut){var Ht=0,Vt=0,Xt=Ut.title.side;return Xt&&(Xt.indexOf("left")!==-1&&(Ht=Ut._titleWidth),Xt.indexOf("top")!==-1&&(Vt=Ut._titleHeight)),[Ht,Vt]}function Pt(Ut,Ht,Vt,Xt){var qt=Ut._fullLayout,er=$t(Xt);Xt||(Xt=qt[er]);var lr=qt._size,Jt=ft.isVertical(Xt),Yt=ft.isGrouped(Xt),rr=Xt.entrywidthmode==="fraction",jt=Xt.borderwidth,ar=2*jt,sr=tt.itemGap,Zt=Xt.indentation+Xt.itemwidth+sr*2,Kt=2*(jt+sr),or=Nt(Xt),tr=Xt.y<0||Xt.y===0&&or==="top",cr=Xt.y>1||Xt.y===1&&or==="bottom",mr=Xt.tracegroupgap,Ar={};Xt._maxHeight=Math.max(tr||cr?qt.height/2:lr.h,30);var br=0;Xt._width=0,Xt._height=0;var Ir=Ot(Xt);if(Jt)Vt.each(function(Ur){var Wr=Ur[0].height;ht.setTranslate(this,jt+Ir[0],jt+Ir[1]+Xt._height+Wr/2+sr),Xt._height+=Wr,Xt._width=Math.max(Xt._width,Ur[0].width)}),br=Zt+Xt._width,Xt._width+=sr+Zt+ar,Xt._height+=Kt,Yt&&(Ht.each(function(Ur,Wr){ht.setTranslate(this,0,Wr*Xt.tracegroupgap)}),Xt._height+=(Xt._lgroupsLength-1)*Xt.tracegroupgap);else{var Tr=Dt(Xt),_r=Xt.x<0||Xt.x===0&&Tr==="right",Er=Xt.x>1||Xt.x===1&&Tr==="left",Rr=cr||tr,zr=qt.width/2;Xt._maxWidth=Math.max(_r?Rr&&Tr==="left"?lr.l+lr.w:zr:Er?Rr&&Tr==="right"?lr.r+lr.w:zr:lr.w,2*Zt);var Or=0,kr=0;Vt.each(function(Ur){var Wr=Mt(Ur,Xt,Zt);Or=Math.max(Or,Wr),kr+=Wr}),br=null;var Nr=0;if(Yt){var Qr=0,sn=0,un=0;Ht.each(function(){var Ur=0,Wr=0;it.select(this).selectAll("g.traces").each(function(wr){var pr=Mt(wr,Xt,Zt),Dr=wr[0].height;ht.setTranslate(this,Ir[0],Ir[1]+jt+sr+Dr/2+Wr),Wr+=Dr,Ur=Math.max(Ur,pr),Ar[wr[0].trace.legendgroup]=Ur});var Gr=Ur+sr;sn>0&&Gr+jt+sn>Xt._maxWidth?(Nr=Math.max(Nr,sn),sn=0,un+=Qr+mr,Qr=Wr):Qr=Math.max(Qr,Wr),ht.setTranslate(this,sn,un),sn+=Gr}),Xt._width=Math.max(Nr,sn)+jt,Xt._height=un+Qr+Kt}else{var en=Vt.size(),Xr=kr+ar+(en-1)*sr=Xt._maxWidth&&(Nr=Math.max(Nr,Tn),mn=0,pn+=ln,Xt._height+=ln,ln=0),ht.setTranslate(this,Ir[0]+jt+mn,Ir[1]+jt+pn+Wr/2+sr),Tn=mn+Gr+sr,mn+=wr,ln=Math.max(ln,Wr)}),Xr?(Xt._width=mn+ar,Xt._height=ln+Kt):(Xt._width=Math.max(Nr,Tn)+ar,Xt._height+=ln+Kt)}}Xt._width=Math.ceil(Math.max(Xt._width+Ir[0],Xt._titleWidth+2*(jt+tt.titlePad))),Xt._height=Math.ceil(Math.max(Xt._height+Ir[1],Xt._titleHeight+2*(jt+tt.itemGap))),Xt._effHeight=Math.min(Xt._height,Xt._maxHeight);var Zr=Ut._context.edits,Fr=Zr.legendText||Zr.legendPosition;Vt.each(function(Ur){var Wr=it.select(this).select("."+er+"toggle"),Gr=Ur[0].height,wr=Ur[0].trace.legendgroup,pr=Mt(Ur,Xt,Zt);Yt&&wr!==""&&(pr=Ar[wr]);var Dr=Fr?Zt:br||pr;!Jt&&!rr&&(Dr+=sr/2),ht.setRect(Wr,0,-Gr/2,Dr,Gr)})}function zt(Ut,Ht,Vt,Xt){var qt=Ut._fullLayout,er=qt[Ht],lr=Dt(er),Jt=Nt(er),Yt=er.xref==="paper",rr=er.yref==="paper";Ut._fullLayout._reservedMargin[Ht]={};var jt=er.y<.5?"b":"t",ar=er.x<.5?"l":"r",sr={r:qt.width-Vt,l:Vt+er._width,b:qt.height-Xt,t:Xt+er._effHeight};if(Yt&&rr)return et.autoMargin(Ut,Ht,{x:er.x,y:er.y,l:er._width*nt[lr],r:er._width*vt[lr],b:er._effHeight*vt[Jt],t:er._effHeight*nt[Jt]});Yt?Ut._fullLayout._reservedMargin[Ht][jt]=sr[jt]:rr||er.orientation==="v"?Ut._fullLayout._reservedMargin[Ht][ar]=sr[ar]:Ut._fullLayout._reservedMargin[Ht][jt]=sr[jt]}function Dt(Ut){return xt.isRightAnchor(Ut)?"right":xt.isCenterAnchor(Ut)?"center":"left"}function Nt(Ut){return xt.isBottomAnchor(Ut)?"bottom":xt.isMiddleAnchor(Ut)?"middle":"top"}function $t(Ut){return Ut._id||"legend"}},35456:function(Ct,Rt,o){var it=o(24040),xt=o(42451);Ct.exports=function(Tt,yt,ut){var ht=yt._inHover,j=xt.isGrouped(yt),_=xt.isReversed(yt),rt={},tt=[],st=!1,ot={},nt=0,vt=0,dt,bt;function ft(Ut,Ht,Vt){if(yt.visible!==!1&&!(ut&&Ut!==yt._id))if(Ht===""||!xt.isGrouped(yt)){var Xt="~~i"+nt;tt.push(Xt),rt[Xt]=[Vt],nt++}else tt.indexOf(Ht)===-1?(tt.push(Ht),st=!0,rt[Ht]=[Vt]):rt[Ht].push(Vt)}for(dt=0;dtAt&&(It=At)}wt[dt][0]._groupMinRank=It,wt[dt][0]._preGroupSort=dt}var Ot=function(Ut,Ht){return Ut[0]._groupMinRank-Ht[0]._groupMinRank||Ut[0]._preGroupSort-Ht[0]._preGroupSort},Pt=function(Ut,Ht){return Ut.trace.legendrank-Ht.trace.legendrank||Ut._preSort-Ht._preSort};for(wt.forEach(function(Ut,Ht){Ut[0]._preGroupSort=Ht}),wt.sort(Ot),dt=0;dt0)ar=Yt.width;else return 0;return kt?jt:Math.min(ar,rr)};St.each(function(Jt){var Yt=it.select(this),rr=et.ensureSingle(Yt,"g","layers");rr.style("opacity",Jt[0].trace.opacity);var jt=Mt.indentation,ar=Mt.valign,sr=Jt[0].lineHeight,Zt=Jt[0].height;if(ar==="middle"&&jt===0||!sr||!Zt)rr.attr("transform",null);else{var Kt={top:1,bottom:-1}[ar],or=Kt*(.5*(sr-Zt+3))||0,tr=Mt.indentation;rr.attr("transform",Tt(tr,or))}var cr=rr.selectAll("g.legendfill").data([Jt]);cr.enter().append("g").classed("legendfill",!0);var mr=rr.selectAll("g.legendlines").data([Jt]);mr.enter().append("g").classed("legendlines",!0);var Ar=rr.selectAll("g.legendsymbols").data([Jt]);Ar.enter().append("g").classed("legendsymbols",!0),Ar.selectAll("g.legendpoints").data([Jt]).enter().append("g").classed("legendpoints",!0)}).each(lr).each(zt).each(Nt).each(Dt).each(Ut).each(qt).each(Xt).each(Ot).each(Pt).each(Ht).each(Vt);function Ot(Jt){var Yt=ft(Jt),rr=Yt.showFill,jt=Yt.showLine,ar=Yt.showGradientLine,sr=Yt.showGradientFill,Zt=Yt.anyFill,Kt=Yt.anyLine,or=Jt[0],tr=or.trace,cr,mr,Ar=ht(tr),br=Ar.colorscale,Ir=Ar.reversescale,Tr=function(Nr){if(Nr.size())if(rr)yt.fillGroupStyle(Nr,_t,!0);else{var Qr="legendfill-"+tr.uid;yt.gradient(Nr,_t,Qr,bt(Ir),br,"fill")}},_r=function(Nr){if(Nr.size()){var Qr="legendline-"+tr.uid;yt.lineGroupStyle(Nr),yt.gradient(Nr,_t,Qr,bt(Ir),br,"stroke")}},Er=j.hasMarkers(tr)||!Zt?"M5,0":Kt?"M5,-2":"M5,-3",Rr=it.select(this),zr=Rr.select(".legendfill").selectAll("path").data(rr||sr?[Jt]:[]);if(zr.enter().append("path").classed("js-fill",!0),zr.exit().remove(),zr.attr("d",Er+"h"+wt+"v6h-"+wt+"z").call(Tr),jt||ar){var Or=At(void 0,tr.line,vt,ot);mr=et.minExtend(tr,{line:{width:Or}}),cr=[et.minExtend(or,{trace:mr})]}var kr=Rr.select(".legendlines").selectAll("path").data(jt||ar?[cr]:[]);kr.enter().append("path").classed("js-line",!0),kr.exit().remove(),kr.attr("d",Er+(ar?"l"+wt+",0.0001":"h"+wt)).call(jt?yt.lineGroupStyle:_r)}function Pt(Jt){var Yt=ft(Jt),rr=Yt.anyFill,jt=Yt.anyLine,ar=Yt.showLine,sr=Yt.showMarker,Zt=Jt[0],Kt=Zt.trace,or=!sr&&!jt&&!rr&&j.hasText(Kt),tr,cr;function mr(zr,Or,kr,Nr){var Qr=et.nestedProperty(Kt,zr).get(),sn=et.isArrayOrTypedArray(Qr)&&Or?Or(Qr):Qr;if(kt&&sn&&Nr!==void 0&&(sn=Nr),kr){if(snkr[1])return kr[1]}return sn}function Ar(zr){return Zt._distinct&&Zt.index&&zr[Zt.index]?zr[Zt.index]:zr[0]}if(sr||or||ar){var br={},Ir={};if(sr){br.mc=mr("marker.color",Ar),br.mx=mr("marker.symbol",Ar),br.mo=mr("marker.opacity",et.mean,[.2,1]),br.mlc=mr("marker.line.color",Ar),br.mlw=mr("marker.line.width",et.mean,[0,5],nt),Ir.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var Tr=mr("marker.size",et.mean,[2,16],st);br.ms=Tr,Ir.marker.size=Tr}ar&&(Ir.line={width:mr("line.width",Ar,[0,10],ot)}),or&&(br.tx="Aa",br.tp=mr("textposition",Ar),br.ts=10,br.tc=mr("textfont.color",Ar),br.tf=mr("textfont.family",Ar),br.tw=mr("textfont.weight",Ar),br.ty=mr("textfont.style",Ar),br.tv=mr("textfont.variant",Ar)),tr=[et.minExtend(Zt,br)],cr=et.minExtend(Kt,Ir),cr.selectedpoints=null,cr.texttemplate=null}var _r=it.select(this).select("g.legendpoints"),Er=_r.selectAll("path.scatterpts").data(sr?tr:[]);Er.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",It),Er.exit().remove(),Er.call(yt.pointStyle,cr,_t),sr&&(tr[0].mrc=3);var Rr=_r.selectAll("g.pointtext").data(or?tr:[]);Rr.enter().append("g").classed("pointtext",!0).append("text").attr("transform",It),Rr.exit().remove(),Rr.selectAll("text").call(yt.textPointStyle,cr,_t)}function zt(Jt){var Yt=Jt[0].trace,rr=Yt.type==="waterfall";if(Jt[0]._distinct&&rr){var jt=Jt[0].trace[Jt[0].dir].marker;return Jt[0].mc=jt.color,Jt[0].mlw=jt.line.width,Jt[0].mlc=jt.line.color,$t(Jt,this,"waterfall")}var ar=[];Yt.visible&&rr&&(ar=Jt[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var sr=it.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(ar);sr.enter().append("path").classed("legendwaterfall",!0).attr("transform",It).style("stroke-miterlimit",1),sr.exit().remove(),sr.each(function(Zt){var Kt=it.select(this),or=Yt[Zt[0]].marker,tr=At(void 0,or.line,dt,nt);Kt.attr("d",Zt[1]).style("stroke-width",tr+"px").call(ut.fill,or.color),tr&&Kt.call(ut.stroke,or.line.color)})}function Dt(Jt){$t(Jt,this)}function Nt(Jt){$t(Jt,this,"funnel")}function $t(Jt,Yt,rr){var jt=Jt[0].trace,ar=jt.marker||{},sr=ar.line||{},Zt=ar.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",Kt=rr?jt.visible&&jt.type===rr:xt.traceIs(jt,"bar"),or=it.select(Yt).select("g.legendpoints").selectAll("path.legend"+rr).data(Kt?[Jt]:[]);or.enter().append("path").classed("legend"+rr,!0).attr("d",Zt).attr("transform",It),or.exit().remove(),or.each(function(tr){var cr=it.select(this),mr=tr[0],Ar=At(mr.mlw,ar.line,dt,nt);cr.style("stroke-width",Ar+"px");var br=mr.mcc;if(!Mt._inHover&&"mc"in mr){var Ir=ht(ar),Tr=Ir.mid;Tr===void 0&&(Tr=(Ir.max+Ir.min)/2),br=yt.tryColorscale(ar,"")(Tr)}var _r=br||mr.mc||ar.color,Er=ar.pattern,Rr=Er&&yt.getPatternAttr(Er.shape,0,"");if(Rr){var zr=yt.getPatternAttr(Er.bgcolor,0,null),Or=yt.getPatternAttr(Er.fgcolor,0,null),kr=Er.fgopacity,Nr=at(Er.size,8,10),Qr=at(Er.solidity,.5,1),sn="legend-"+jt.uid;cr.call(yt.pattern,"legend",_t,sn,Rr,Nr,Qr,br,Er.fillmode,zr,Or,kr)}else cr.call(ut.fill,_r);Ar&&ut.stroke(cr,mr.mlc||sr.color)})}function Ut(Jt){var Yt=Jt[0].trace,rr=it.select(this).select("g.legendpoints").selectAll("path.legendbox").data(Yt.visible&&xt.traceIs(Yt,"box-violin")?[Jt]:[]);rr.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",It),rr.exit().remove(),rr.each(function(){var jt=it.select(this);if((Yt.boxpoints==="all"||Yt.points==="all")&&ut.opacity(Yt.fillcolor)===0&&ut.opacity((Yt.line||{}).color)===0){var ar=et.minExtend(Yt,{marker:{size:kt?st:et.constrain(Yt.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});rr.call(yt.pointStyle,ar,_t)}else{var sr=At(void 0,Yt.line,dt,nt);jt.style("stroke-width",sr+"px").call(ut.fill,Yt.fillcolor),sr&&ut.stroke(jt,Yt.line.color)}})}function Ht(Jt){var Yt=Jt[0].trace,rr=it.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(Yt.visible&&Yt.type==="candlestick"?[Jt,Jt]:[]);rr.enter().append("path").classed("legendcandle",!0).attr("d",function(jt,ar){return ar?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",It).style("stroke-miterlimit",1),rr.exit().remove(),rr.each(function(jt,ar){var sr=it.select(this),Zt=Yt[ar?"increasing":"decreasing"],Kt=At(void 0,Zt.line,dt,nt);sr.style("stroke-width",Kt+"px").call(ut.fill,Zt.fillcolor),Kt&&ut.stroke(sr,Zt.line.color)})}function Vt(Jt){var Yt=Jt[0].trace,rr=it.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(Yt.visible&&Yt.type==="ohlc"?[Jt,Jt]:[]);rr.enter().append("path").classed("legendohlc",!0).attr("d",function(jt,ar){return ar?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",It).style("stroke-miterlimit",1),rr.exit().remove(),rr.each(function(jt,ar){var sr=it.select(this),Zt=Yt[ar?"increasing":"decreasing"],Kt=At(void 0,Zt.line,dt,nt);sr.style("fill","none").call(yt.dashLine,Zt.line.dash,Kt),Kt&&ut.stroke(sr,Zt.line.color)})}function Xt(Jt){er(Jt,this,"pie")}function qt(Jt){er(Jt,this,"funnelarea")}function er(Jt,Yt,rr){var jt=Jt[0],ar=jt.trace,sr=rr?ar.visible&&ar.type===rr:xt.traceIs(ar,rr),Zt=it.select(Yt).select("g.legendpoints").selectAll("path.legend"+rr).data(sr?[Jt]:[]);if(Zt.enter().append("path").classed("legend"+rr,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",It),Zt.exit().remove(),Zt.size()){var Kt=ar.marker||{},or=At(rt(Kt.line.width,jt.pts),Kt.line,dt,nt),tr="pieLike",cr=et.minExtend(ar,{marker:{line:{width:or}}},tr),mr=et.minExtend(jt,{trace:cr},tr);_(Zt,mr,cr,_t)}}function lr(Jt){var Yt=Jt[0].trace,rr,jt=[];if(Yt.visible)switch(Yt.type){case"histogram2d":case"heatmap":jt=[["M-15,-2V4H15V-2Z"]],rr=!0;break;case"choropleth":case"choroplethmapbox":jt=[["M-6,-6V6H6V-6Z"]],rr=!0;break;case"densitymapbox":jt=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],rr="radial";break;case"cone":jt=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],rr=!1;break;case"streamtube":jt=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],rr=!1;break;case"surface":jt=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],rr=!0;break;case"mesh3d":jt=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],rr=!1;break;case"volume":jt=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],rr=!0;break;case"isosurface":jt=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],rr=!1;break}var ar=it.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(jt);ar.enter().append("path").classed("legend3dandfriends",!0).attr("transform",It).style("stroke-miterlimit",1),ar.exit().remove(),ar.each(function(sr,Zt){var Kt=it.select(this),or=ht(Yt),tr=or.colorscale,cr=or.reversescale,mr=function(Tr){if(Tr.size()){var _r="legendfill-"+Yt.uid;yt.gradient(Tr,_t,_r,bt(cr,rr==="radial"),tr,"fill")}},Ar;if(tr){if(!rr){var Ir=tr.length;Ar=Zt===0?tr[cr?Ir-1:0][1]:Zt===1?tr[cr?0:Ir-1][1]:tr[Math.floor((Ir-1)/2)][1]}}else{var br=Yt.vertexcolor||Yt.facecolor||Yt.color;Ar=et.isArrayOrTypedArray(br)?br[Zt]||br[0]:br}Kt.attr("d",sr[0]),Ar?Kt.call(ut.fill,Ar):Kt.call(mr)})}};function bt(mt,St){var _t=St?"radial":"horizontal";return _t+(mt?"":"reversed")}function ft(mt){var St=mt[0].trace,_t=St.contours,Mt=j.hasLines(St),Et=j.hasMarkers(St),kt=St.visible&&St.fill&&St.fill!=="none",wt=!1,ct=!1;if(_t){var It=_t.coloring;It==="lines"?wt=!0:Mt=It==="none"||It==="heatmap"||_t.showlines,_t.type==="constraint"?kt=_t._operation!=="=":(It==="fill"||It==="heatmap")&&(ct=!0)}return{showMarker:Et,showLine:Mt,showFill:kt,showGradientLine:wt,showGradientFill:ct,anyLine:Mt||wt,anyFill:kt||ct}}function at(mt,St,_t){return mt&&et.isArrayOrTypedArray(mt)?St:mt>_t?_t:mt}},66540:function(Ct,Rt,o){o(76052),Ct.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},44248:function(Ct,Rt,o){var it=o(24040),xt=o(7316),et=o(79811),Tt=o(9224),yt=o(4016).eraseActiveShape,ut=o(3400),ht=ut._,j=Ct.exports={};j.toImage={name:"toImage",title:function(mt){var St=mt._context.toImageButtonOptions||{},_t=St.format||"png";return _t==="png"?ht(mt,"Download plot as a png"):ht(mt,"Download plot")},icon:Tt.camera,click:function(mt){var St=mt._context.toImageButtonOptions,_t={format:St.format||"png"};ut.notifier(ht(mt,"Taking snapshot - this may take a few seconds"),"long"),_t.format!=="svg"&&ut.isIE()&&(ut.notifier(ht(mt,"IE only supports svg. Changing format to svg."),"long"),_t.format="svg"),["filename","width","height","scale"].forEach(function(Mt){Mt in St&&(_t[Mt]=St[Mt])}),it.call("downloadImage",mt,_t).then(function(Mt){ut.notifier(ht(mt,"Snapshot succeeded")+" - "+Mt,"long")}).catch(function(){ut.notifier(ht(mt,"Sorry, there was a problem downloading your snapshot!"),"long")})}},j.sendDataToCloud={name:"sendDataToCloud",title:function(mt){return ht(mt,"Edit in Chart Studio")},icon:Tt.disk,click:function(mt){xt.sendDataToCloud(mt)}},j.editInChartStudio={name:"editInChartStudio",title:function(mt){return ht(mt,"Edit in Chart Studio")},icon:Tt.pencil,click:function(mt){xt.sendDataToCloud(mt)}},j.zoom2d={name:"zoom2d",_cat:"zoom",title:function(mt){return ht(mt,"Zoom")},attr:"dragmode",val:"zoom",icon:Tt.zoombox,click:_},j.pan2d={name:"pan2d",_cat:"pan",title:function(mt){return ht(mt,"Pan")},attr:"dragmode",val:"pan",icon:Tt.pan,click:_},j.select2d={name:"select2d",_cat:"select",title:function(mt){return ht(mt,"Box Select")},attr:"dragmode",val:"select",icon:Tt.selectbox,click:_},j.lasso2d={name:"lasso2d",_cat:"lasso",title:function(mt){return ht(mt,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Tt.lasso,click:_},j.drawclosedpath={name:"drawclosedpath",title:function(mt){return ht(mt,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Tt.drawclosedpath,click:_},j.drawopenpath={name:"drawopenpath",title:function(mt){return ht(mt,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Tt.drawopenpath,click:_},j.drawline={name:"drawline",title:function(mt){return ht(mt,"Draw line")},attr:"dragmode",val:"drawline",icon:Tt.drawline,click:_},j.drawrect={name:"drawrect",title:function(mt){return ht(mt,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Tt.drawrect,click:_},j.drawcircle={name:"drawcircle",title:function(mt){return ht(mt,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Tt.drawcircle,click:_},j.eraseshape={name:"eraseshape",title:function(mt){return ht(mt,"Erase active shape")},icon:Tt.eraseshape,click:yt},j.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(mt){return ht(mt,"Zoom in")},attr:"zoom",val:"in",icon:Tt.zoom_plus,click:_},j.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(mt){return ht(mt,"Zoom out")},attr:"zoom",val:"out",icon:Tt.zoom_minus,click:_},j.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(mt){return ht(mt,"Autoscale")},attr:"zoom",val:"auto",icon:Tt.autoscale,click:_},j.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(mt){return ht(mt,"Reset axes")},attr:"zoom",val:"reset",icon:Tt.home,click:_},j.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(mt){return ht(mt,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Tt.tooltip_basic,gravity:"ne",click:_},j.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(mt){return ht(mt,"Compare data on hover")},attr:"hovermode",val:function(mt){return mt._fullLayout._isHoriz?"y":"x"},icon:Tt.tooltip_compare,gravity:"ne",click:_};function _(mt,St){var _t=St.currentTarget,Mt=_t.getAttribute("data-attr"),Et=_t.getAttribute("data-val")||!0,kt=mt._fullLayout,wt={},ct=et.list(mt,null,!0),It=kt._cartesianSpikesEnabled,At,Ot;if(Mt==="zoom"){var Pt=Et==="in"?.5:2,zt=(1+Pt)/2,Dt=(1-Pt)/2,Nt;for(Ot=0;Ot1?(er=["toggleHover"],lr=["resetViews"]):wt?(qt=["zoomInGeo","zoomOutGeo"],er=["hoverClosestGeo"],lr=["resetGeo"]):kt?(er=["hoverClosest3d"],lr=["resetCameraDefault3d","resetCameraLastSave3d"]):Pt?(qt=["zoomInMapbox","zoomOutMapbox"],er=["toggleHover"],lr=["resetViewMapbox"]):At?er=["hoverClosestGl2d"]:ct?er=["hoverClosestPie"]:Nt?(er=["hoverClosestCartesian","hoverCompareCartesian"],lr=["resetViewSankey"]):er=["toggleHover"],Et&&(er=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(st(bt)||Ut)&&(er=[]),(Et||At)&&!$t&&(qt=["zoomIn2d","zoomOut2d","autoScale2d"],lr[0]!=="resetViews"&&(lr=["resetScale2d"])),kt?Jt=["zoom3d","pan3d","orbitRotation","tableRotation"]:(Et||At)&&!$t||Ot?Jt=["zoom2d","pan2d"]:Pt||wt?Jt=["pan2d"]:zt&&(Jt=["zoom2d"]),tt(bt)&&Jt.push("select2d","lasso2d");var Yt=[],rr=function(Zt){Yt.indexOf(Zt)===-1&&er.indexOf(Zt)!==-1&&Yt.push(Zt)};if(Array.isArray(_t)){for(var jt=[],ar=0;ar<_t.length;ar++){var sr=_t[ar];typeof sr=="string"?(sr=sr.toLowerCase(),ht.indexOf(sr)!==-1?(dt._has("mapbox")||dt._has("cartesian"))&&Jt.push(sr):sr==="togglespikelines"?rr("toggleSpikelines"):sr==="togglehover"?rr("toggleHover"):sr==="hovercompare"?rr("hoverCompareCartesian"):sr==="hoverclosest"?(rr("hoverClosestCartesian"),rr("hoverClosestGeo"),rr("hoverClosest3d"),rr("hoverClosestGl2d"),rr("hoverClosestPie")):sr==="v1hovermode"&&(rr("toggleHover"),rr("hoverClosestCartesian"),rr("hoverCompareCartesian"),rr("hoverClosestGeo"),rr("hoverClosest3d"),rr("hoverClosestGl2d"),rr("hoverClosestPie"))):jt.push(sr)}_t=jt}return Vt(Jt),Vt(qt.concat(lr)),Vt(Yt),ot(Ht,_t)}function rt(vt){for(var dt=it.list({_fullLayout:vt},null,!0),bt=0;bt0);if(at){var mt=j(tt,st,ot);bt("x",mt[0]),bt("y",mt[1]),it.noneOrAll(rt,tt,["x","y"]),bt("xanchor"),bt("yanchor"),it.coerceFont(bt,"font",st.font);var St=bt("bgcolor");bt("activecolor",xt.contrast(St,ut.lightAmount,ut.darkAmount)),bt("bordercolor"),bt("borderwidth")}};function ht(_,rt,tt,st){var ot=st.calendar;function nt(bt,ft){return it.coerce(_,rt,yt.buttons,bt,ft)}var vt=nt("visible");if(vt){var dt=nt("step");dt!=="all"&&(ot&&ot!=="gregorian"&&(dt==="month"||dt==="year")?rt.stepmode="backward":nt("stepmode"),nt("count")),nt("label")}}function j(_,rt,tt){for(var st=tt.filter(function(dt){return rt[dt].anchor===_._id}),ot=0,nt=0;nt=_r.max)Ir=tr[Tr+1];else if(br<_r.min)break}return Ir+or*br},sr=0;sr=_r.pmax)Ir=tr[Tr+1];else if(br<_r.pmin)break}return(br-Ir)/or}}}if(Ut.rangemode!=="match"){var cr=$t.r2l(Ut.range[0]),mr=$t.r2l(Ut.range[1]),Ar=mr-cr;Nt.d2pOppAxis=function(br){return(br-cr)/Ar*Nt._height}}Dt.call(ft,kt,zt,Nt).call(at,kt,zt,Nt).call(mt,kt,zt,Nt).call(_t,kt,zt,Nt,Ut).call(Mt,kt,zt,Nt).call(Et,kt,zt,Nt),vt(Dt,kt,zt,Nt),bt(Dt,kt,zt,Nt,$t,Ut),zt.side==="bottom"&&j.draw(kt,zt._id+"title",{propContainer:zt,propName:zt._name+".title",placeholder:wt._dfltTitle.x,attributes:{x:zt._offset+zt._length/2,y:Jt+Nt._height+Nt._offsetShift+10+1.5*zt.title.font.size,"text-anchor":"middle"}})}))};function nt(kt){return typeof kt.clientX=="number"?kt.clientX:kt.touches&&kt.touches.length>0?kt.touches[0].clientX:0}function vt(kt,wt,ct,It){if(wt._context.staticPlot)return;var At=kt.select("rect."+ot.slideBoxClassName).node(),Ot=kt.select("rect."+ot.grabAreaMinClassName).node(),Pt=kt.select("rect."+ot.grabAreaMaxClassName).node();function zt(){var Dt=it.event,Nt=Dt.target,$t=nt(Dt),Ut=$t-kt.node().getBoundingClientRect().left,Ht=It.d2p(ct._rl[0]),Vt=It.d2p(ct._rl[1]),Xt=tt.coverSlip();this.addEventListener("touchmove",qt),this.addEventListener("touchend",er),Xt.addEventListener("mousemove",qt),Xt.addEventListener("mouseup",er);function qt(lr){var Jt=nt(lr),Yt=+Jt-$t,rr,jt,ar;switch(Nt){case At:if(ar="ew-resize",Ht+Yt>ct._length||Vt+Yt<0)return;rr=Ht+Yt,jt=Vt+Yt;break;case Ot:if(ar="col-resize",Ht+Yt>ct._length)return;rr=Ht+Yt,jt=Vt;break;case Pt:if(ar="col-resize",Vt+Yt<0)return;rr=Ht,jt=Vt+Yt;break;default:ar="ew-resize",rr=Ut,jt=Ut+Yt;break}if(jt=0;zt--){var Dt=_t.append("path").attr(Et).style("opacity",zt?.1:kt).call(Tt.stroke,ct).call(Tt.fill,wt).call(yt.dashLine,zt?"solid":At,zt?4+It:It);if(st(Dt,dt,at),Ot){var Nt=ut(dt.layout,"selections",at);Dt.style({cursor:"move"});var $t={element:Dt.node(),plotinfo:mt,gd:dt,editHelpers:Nt,isActiveSelection:!0},Ut=it(Mt,dt);xt(Ut,Dt,$t)}else Dt.style("pointer-events",zt?"all":"none");Pt[zt]=Dt}var Ht=Pt[0],Vt=Pt[1];Vt.node().addEventListener("click",function(){return ot(dt,Ht)})}}function st(dt,bt,ft){var at=ft.xref+ft.yref;yt.setClipUrl(dt,"clip"+bt._fullLayout._uid+at,bt)}function ot(dt,bt){if(rt(dt)){var ft=bt.node(),at=+ft.getAttribute("data-index");if(at>=0){if(at===dt._fullLayout._activeSelectionIndex){vt(dt);return}dt._fullLayout._activeSelectionIndex=at,dt._fullLayout._deactivateSelection=vt,_(dt)}}}function nt(dt){if(rt(dt)){var bt=dt._fullLayout.selections.length-1;dt._fullLayout._activeSelectionIndex=bt,dt._fullLayout._deactivateSelection=vt,_(dt)}}function vt(dt){if(rt(dt)){var bt=dt._fullLayout._activeSelectionIndex;bt>=0&&(et(dt),delete dt._fullLayout._activeSelectionIndex,_(dt))}}},34200:function(Ct,Rt,o){var it=o(98192).u,xt=o(92880).extendFlat;Ct.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:xt({},it,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},81004:function(Ct){Ct.exports=function(o,it,xt){xt("newselection.mode");var et=xt("newselection.line.width");et&&(xt("newselection.line.color"),xt("newselection.line.dash")),xt("activeselection.fillcolor"),xt("activeselection.opacity")}},5968:function(Ct,Rt,o){var it=o(72760),xt=it.selectMode,et=o(1936),Tt=et.clearOutline,yt=o(9856),ut=yt.readPaths,ht=yt.writePaths,j=yt.fixDatesForPaths;Ct.exports=function(rt,tt){if(rt.length){var st=rt[0][0];if(st){var ot=st.getAttribute("d"),nt=tt.gd,vt=nt._fullLayout.newselection,dt=tt.plotinfo,bt=dt.xaxis,ft=dt.yaxis,at=tt.isActiveSelection,mt=tt.dragmode,St=(nt.layout||{}).selections||[];if(!xt(mt)&&at!==void 0){var _t=nt._fullLayout._activeSelectionIndex;if(_t=0){bn._fullLayout._deactivateShape(bn);return}if(!qr){var Ds=Un.clickmode;ct.done(zo).then(function(){if(ct.clear(zo),Zo===2){for(eo.remove(),xa=0;xa-1&&er(Ls,bn,Dr.xaxes,Dr.yaxes,Dr.subplot,Dr,eo),Ds==="event"&&Ur(bn,void 0);ut.click(bn,Ls,Jn.id)}).catch(Et.error)}},Dr.doneFn=function(){_o.remove(),ct.done(zo).then(function(){ct.clear(zo),!_i&&Bn&&Dr.selectionDefs&&(Bn.subtract=po,Dr.selectionDefs.push(Bn),Dr.mergedPolygons.length=0,[].push.apply(Dr.mergedPolygons,$n)),(_i||qr)&&Zt(Dr,_i),Dr.doneFnCompleted&&Dr.doneFnCompleted(Io),rn&&Ur(bn,io)}).catch(Et.error)}}function er(Gr,wr,pr,Dr,Sr,ur,xr){var Pr=wr._hoverdata,Vr=wr._fullLayout,qr=Vr.clickmode,rn=qr.indexOf("event")>-1,Cn=[],xn,fn,bn,Un,_i,yn,Kn,Jn,so,ba;if(cr(Pr)){jt(Gr,wr,ur),xn=or(wr,pr,Dr,Sr);var An=mr(Pr,xn),hn=An.pointNumbers.length>0;if(hn?br(xn,An):Ir(xn)&&(Kn=Ar(An))){for(xr&&xr.remove(),ba=0;ba=0}function sr(Gr){return Gr._fullLayout._activeSelectionIndex>=0}function Zt(Gr,wr){var pr=Gr.dragmode,Dr=Gr.plotinfo,Sr=Gr.gd;ar(Sr)&&Sr._fullLayout._deactivateShape(Sr),sr(Sr)&&Sr._fullLayout._deactivateSelection(Sr);var ur=Sr._fullLayout,xr=ur._zoomlayer,Pr=tt(pr),Vr=ot(pr);if(Pr||Vr){var qr=xr.selectAll(".select-outline-"+Dr.id);if(qr&&Sr._fullLayout._outlining){var rn;Pr&&(rn=St(qr,Gr)),rn&&et.call("_guiRelayout",Sr,{shapes:rn});var Cn;Vr&&!Xt(Gr)&&(Cn=_t(qr,Gr)),Cn&&(Sr._fullLayout._noEmitSelectedAtStart=!0,et.call("_guiRelayout",Sr,{selections:Cn}).then(function(){wr&&Mt(Sr)})),Sr._fullLayout._outlining=!1}}Dr.selection={},Dr.selection.selectionDefs=Gr.selectionDefs=[],Dr.selection.mergedPolygons=Gr.mergedPolygons=[]}function Kt(Gr){return Gr._id}function or(Gr,wr,pr,Dr){if(!Gr.calcdata)return[];var Sr=[],ur=wr.map(Kt),xr=pr.map(Kt),Pr,Vr,qr;for(qr=0;qr0,ur=Sr?Dr[0]:pr;return wr.selectedpoints?wr.selectedpoints.indexOf(ur)>-1:!1}function br(Gr,wr){var pr=[],Dr,Sr,ur,xr;for(xr=0;xr0&&pr.push(Dr);if(pr.length===1&&(ur=pr[0]===wr.searchInfo,ur&&(Sr=wr.searchInfo.cd[0].trace,Sr.selectedpoints.length===wr.pointNumbers.length))){for(xr=0;xr1||(wr+=Dr.selectedpoints.length,wr>1)))return!1;return wr===1}function Tr(Gr,wr,pr){var Dr;for(Dr=0;Dr-1&≀if(!xr&&wr){var Zo=en(Gr,!0);if(Zo.length){var Ls=Zo[0].xref,Ds=Zo[0].yref;if(Ls&&Ds){var bo=mn(Zo),No=Tn([It(Gr,Ls,"x"),It(Gr,Ds,"y")]);No(Io,bo)}}Gr._fullLayout._noEmitSelectedAtStart?Gr._fullLayout._noEmitSelectedAtStart=!1:vs&&Ur(Gr,Io),xn._reselect=!1}if(!xr&&xn._deselect){var Yo=xn._deselect;Pr=Yo.xref,Vr=Yo.yref,Qr(Pr,Vr,rn)||sn(Gr,Pr,Vr,Dr),vs&&(Io.points.length?Ur(Gr,Io):Wr(Gr)),xn._deselect=!1}return{eventData:Io,selectionTesters:pr}}function Nr(Gr){var wr=Gr.calcdata;if(wr)for(var pr=0;pr0?ft+vt:vt;return{ppad:vt,ppadplus:dt?mt:St,ppadminus:dt?St:mt}}else return{ppad:vt}}function j(_,rt,tt,st,ot){var nt=_.type==="category"||_.type==="multicategory"?_.r2c:_.d2c;if(rt!==void 0)return[nt(rt),nt(tt)];if(st){var vt=1/0,dt=-1/0,bt=st.match(et.segmentRE),ft,at,mt,St,_t;for(_.type==="date"&&(nt=Tt.decodeDate(nt)),ft=0;ftdt&&(dt=_t)));if(dt>=vt)return[vt,dt]}}},85448:function(Ct){Ct.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},43712:function(Ct,Rt,o){var it=o(3400),xt=o(54460),et=o(51272),Tt=o(46056),yt=o(65152);Ct.exports=function(_,rt){et(_,rt,{name:"shapes",handleItemDefaults:ht})};function ut(j,_){return j?"bottom":_.indexOf("top")!==-1?"top":_.indexOf("bottom")!==-1?"bottom":"middle"}function ht(j,_,rt){function tt(Jt,Yt){return it.coerce(j,_,Tt,Jt,Yt)}_._isShape=!0;var st=tt("visible");if(st){var ot=tt("showlegend");ot&&(tt("legend"),tt("legendwidth"),tt("legendgroup"),tt("legendgrouptitle.text"),it.coerceFont(tt,"legendgrouptitle.font"),tt("legendrank"));var nt=tt("path"),vt=nt?"path":"rect",dt=tt("type",vt),bt=dt!=="path";bt&&delete _.path,tt("editable"),tt("layer"),tt("opacity"),tt("fillcolor"),tt("fillrule");var ft=tt("line.width");ft&&(tt("line.color"),tt("line.dash"));for(var at=tt("xsizemode"),mt=tt("ysizemode"),St=["x","y"],_t=0;_t<2;_t++){var Mt=St[_t],Et=Mt+"anchor",kt=Mt==="x"?at:mt,wt={_fullLayout:rt},ct,It,At,Ot=xt.coerceRef(j,_,wt,Mt,void 0,"paper"),Pt=xt.getRefType(Ot);if(Pt==="range"?(ct=xt.getFromId(wt,Ot),ct._shapeIndices.push(_._index),At=yt.rangeToShapePosition(ct),It=yt.shapePositionToRange(ct)):It=At=it.identity,bt){var zt=.25,Dt=.75,Nt=Mt+"0",$t=Mt+"1",Ut=j[Nt],Ht=j[$t];j[Nt]=It(j[Nt],!0),j[$t]=It(j[$t],!0),kt==="pixel"?(tt(Nt,0),tt($t,10)):(xt.coercePosition(_,wt,tt,Ot,Nt,zt),xt.coercePosition(_,wt,tt,Ot,$t,Dt)),_[Nt]=At(_[Nt]),_[$t]=At(_[$t]),j[Nt]=Ut,j[$t]=Ht}if(kt==="pixel"){var Vt=j[Et];j[Et]=It(j[Et],!0),xt.coercePosition(_,wt,tt,Ot,Et,.25),_[Et]=At(_[Et]),j[Et]=Vt}}bt&&it.noneOrAll(j,_,["x0","x1","y0","y1"]);var Xt=dt==="line",qt,er;if(bt&&(qt=tt("label.texttemplate")),qt||(er=tt("label.text")),er||qt){tt("label.textangle");var lr=tt("label.textposition",Xt?"middle":"middle center");tt("label.xanchor"),tt("label.yanchor",ut(Xt,lr)),tt("label.padding"),it.coerceFont(tt,"label.font",rt.font)}}}},60728:function(Ct,Rt,o){var it=o(3400),xt=o(54460),et=o(72736),Tt=o(43616),yt=o(9856).readPaths,ut=o(65152),ht=ut.getPathString,j=o(97728),_=o(84284).FROM_TL;Ct.exports=function(ot,nt,vt,dt){if(dt.selectAll(".shape-label").remove(),!!(vt.label.text||vt.label.texttemplate)){var bt;if(vt.label.texttemplate){var ft={};if(vt.type!=="path"){var at=xt.getFromId(ot,vt.xref),mt=xt.getFromId(ot,vt.yref);for(var St in j){var _t=j[St](vt,at,mt);_t!==void 0&&(ft[St]=_t)}}bt=it.texttemplateStringForShapes(vt.label.texttemplate,{},ot._fullLayout._d3locale,ft)}else bt=vt.label.text;var Mt={"data-index":nt},Et=vt.label.font,kt={"data-notex":1},wt=dt.append("g").attr(Mt).classed("shape-label",!0),ct=wt.append("text").attr(kt).classed("shape-label-text",!0).text(bt),It,At,Ot,Pt;if(vt.path){var zt=ht(ot,vt),Dt=yt(zt,ot);It=1/0,Ot=1/0,At=-1/0,Pt=-1/0;for(var Nt=0;Nt=st?dt=ot-vt:dt=vt-ot,-180/Math.PI*Math.atan2(dt,bt)}function tt(st,ot,nt,vt,dt,bt,ft){var at=dt.label.textposition,mt=dt.label.textangle,St=dt.label.padding,_t=dt.type,Mt=Math.PI/180*bt,Et=Math.sin(Mt),kt=Math.cos(Mt),wt=dt.label.xanchor,ct=dt.label.yanchor,It,At,Ot,Pt;if(_t==="line"){at==="start"?(It=st,At=ot):at==="end"?(It=nt,At=vt):(It=(st+nt)/2,At=(ot+vt)/2),wt==="auto"&&(at==="start"?mt==="auto"?nt>st?wt="left":ntst?wt="right":ntst?wt="right":ntst?wt="left":nt1&&!(Er.length===2&&Er[1][0]==="Z")&&(Jt===0&&(Er[0][0]="M"),It[lr]=Er,Dt(),Nt())}}function tr(Er,Rr){if(Er===2){lr=+Rr.srcElement.getAttribute("data-i"),Jt=+Rr.srcElement.getAttribute("data-j");var zr=It[lr];!bt(zr)&&!ft(zr)&&or()}}function cr(Er){qt=[];for(var Rr=0;RrDt&&pr>Nt&&!Wr.shiftKey?st.getCursor(Dr/wr,1-Sr/pr):"move";ot(It,ur),Qr=ur.split("-")[0]}}function Xr(Wr){ft(ct)||($t&&(Yt=Er(At.xanchor)),Ut&&(rr=Rr(At.yanchor)),At.type==="path"?mr=At.path:(qt=$t?At.x0:Er(At.x0),er=Ut?At.y0:Rr(At.y0),lr=$t?At.x1:Er(At.x1),Jt=Ut?At.y1:Rr(At.y1)),qtJt?(jt=er,Kt="y0",ar=Jt,or="y1"):(jt=Jt,Kt="y1",ar=er,or="y0"),en(Wr),Zr(Pt,At),Ur(It,At,ct),Nr.moveFn=Qr==="move"?pn:Tn,Nr.altKey=Wr.altKey)}function ln(){ft(ct)||(ot(It),Fr(Pt),St(It,ct,At),xt.call("_guiRelayout",ct,zt.getUpdateObj()))}function mn(){ft(ct)||Fr(Pt)}function pn(Wr,Gr){if(At.type==="path"){var wr=function(Sr){return Sr},pr=wr,Dr=wr;$t?Xt("xanchor",At.xanchor=zr(Yt+Wr)):(pr=function(ur){return zr(Er(ur)+Wr)},br&&br.type==="date"&&(pr=vt.encodeDate(pr))),Ut?Xt("yanchor",At.yanchor=Or(rr+Gr)):(Dr=function(ur){return Or(Rr(ur)+Gr)},Tr&&Tr.type==="date"&&(Dr=vt.encodeDate(Dr))),Xt("path",At.path=Mt(mr,pr,Dr))}else $t?Xt("xanchor",At.xanchor=zr(Yt+Wr)):(Xt("x0",At.x0=zr(qt+Wr)),Xt("x1",At.x1=zr(lr+Wr))),Ut?Xt("yanchor",At.yanchor=Or(rr+Gr)):(Xt("y0",At.y0=Or(er+Gr)),Xt("y1",At.y1=Or(Jt+Gr)));It.attr("d",dt(ct,At)),Zr(Pt,At),ht(ct,Ot,At,Ar)}function Tn(Wr,Gr){if(Vt){var wr=function(yn){return yn},pr=wr,Dr=wr;$t?Xt("xanchor",At.xanchor=zr(Yt+Wr)):(pr=function(Kn){return zr(Er(Kn)+Wr)},br&&br.type==="date"&&(pr=vt.encodeDate(pr))),Ut?Xt("yanchor",At.yanchor=Or(rr+Gr)):(Dr=function(Kn){return Or(Rr(Kn)+Gr)},Tr&&Tr.type==="date"&&(Dr=vt.encodeDate(Dr))),Xt("path",At.path=Mt(mr,pr,Dr))}else if(Ht){if(Qr==="resize-over-start-point"){var Sr=qt+Wr,ur=Ut?er-Gr:er+Gr;Xt("x0",At.x0=$t?Sr:zr(Sr)),Xt("y0",At.y0=Ut?ur:Or(ur))}else if(Qr==="resize-over-end-point"){var xr=lr+Wr,Pr=Ut?Jt-Gr:Jt+Gr;Xt("x1",At.x1=$t?xr:zr(xr)),Xt("y1",At.y1=Ut?Pr:Or(Pr))}}else{var Vr=function(yn){return Qr.indexOf(yn)!==-1},qr=Vr("n"),rn=Vr("s"),Cn=Vr("w"),xn=Vr("e"),fn=qr?jt+Gr:jt,bn=rn?ar+Gr:ar,Un=Cn?sr+Wr:sr,_i=xn?Zt+Wr:Zt;Ut&&(qr&&(fn=jt-Gr),rn&&(bn=ar-Gr)),(!Ut&&bn-fn>Nt||Ut&&fn-bn>Nt)&&(Xt(Kt,At[Kt]=Ut?fn:Or(fn)),Xt(or,At[or]=Ut?bn:Or(bn))),_i-Un>Dt&&(Xt(tr,At[tr]=$t?Un:zr(Un)),Xt(cr,At[cr]=$t?_i:zr(_i)))}It.attr("d",dt(ct,At)),Zr(Pt,At),ht(ct,Ot,At,Ar)}function Zr(Wr,Gr){($t||Ut)&&wr();function wr(){var pr=Gr.type!=="path",Dr=Wr.selectAll(".visual-cue").data([0]),Sr=1;Dr.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Sr}).classed("visual-cue",!0);var ur=Er($t?Gr.xanchor:et.midRange(pr?[Gr.x0,Gr.x1]:vt.extractPathCoords(Gr.path,nt.paramIsX))),xr=Rr(Ut?Gr.yanchor:et.midRange(pr?[Gr.y0,Gr.y1]:vt.extractPathCoords(Gr.path,nt.paramIsY)));if(ur=vt.roundPositionForSharpStrokeRendering(ur,Sr),xr=vt.roundPositionForSharpStrokeRendering(xr,Sr),$t&&Ut){var Pr="M"+(ur-1-Sr)+","+(xr-1-Sr)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Dr.attr("d",Pr)}else if($t){var Vr="M"+(ur-1-Sr)+","+(xr-9-Sr)+"v18 h2 v-18 Z";Dr.attr("d",Vr)}else{var qr="M"+(ur-9-Sr)+","+(xr-1-Sr)+"h18 v2 h-18 Z";Dr.attr("d",qr)}}}function Fr(Wr){Wr.selectAll(".visual-cue").remove()}function Ur(Wr,Gr,wr){var pr=Gr.xref,Dr=Gr.yref,Sr=Tt.getFromId(wr,pr),ur=Tt.getFromId(wr,Dr),xr="";pr!=="paper"&&!Sr.autorange&&(xr+=pr),Dr!=="paper"&&!ur.autorange&&(xr+=Dr),rt.setClipUrl(Wr,xr?"clip"+wr._fullLayout._uid+xr:null,wr)}}function Mt(ct,It,At){return ct.replace(nt.segmentRE,function(Ot){var Pt=0,zt=Ot.charAt(0),Dt=nt.paramIsX[zt],Nt=nt.paramIsY[zt],$t=nt.numParams[zt],Ut=Ot.substr(1).replace(nt.paramRE,function(Ht){return Pt>=$t||(Dt[Pt]?Ht=It(Ht):Nt[Pt]&&(Ht=At(Ht)),Pt++),Ht});return zt+Ut})}function Et(ct,It){if(at(ct)){var At=It.node(),Ot=+At.getAttribute("data-index");if(Ot>=0){if(Ot===ct._fullLayout._activeShapeIndex){kt(ct);return}ct._fullLayout._activeShapeIndex=Ot,ct._fullLayout._deactivateShape=kt,bt(ct)}}}function kt(ct){if(at(ct)){var It=ct._fullLayout._activeShapeIndex;It>=0&&(j(ct),delete ct._fullLayout._activeShapeIndex,bt(ct))}}function wt(ct){if(at(ct)){j(ct);var It=ct._fullLayout._activeShapeIndex,At=(ct.layout||{}).shapes||[];if(It0&&mtft&&(mt="X"),mt});return nt>ft&&(at=at.replace(/[\s,]*X.*/,""),xt.log("Ignoring extra params in segment "+ot)),vt+at})}},41592:function(Ct,Rt,o){var it=o(4016);Ct.exports={moduleType:"component",name:"shapes",layoutAttributes:o(46056),supplyLayoutDefaults:o(43712),supplyDrawNewShapeDefaults:o(65144),includeBasePlot:o(36632)("shapes"),calcAutorange:o(96084),draw:it.draw,drawOne:it.drawOne}},97728:function(Ct){function Rt(ot,nt){return nt?nt.d2l(ot):ot}function o(ot,nt){return nt?nt.l2d(ot):ot}function it(ot){return ot.x0}function xt(ot){return ot.x1}function et(ot){return ot.y0}function Tt(ot){return ot.y1}function yt(ot,nt){return Rt(ot.x1,nt)-Rt(ot.x0,nt)}function ut(ot,nt,vt){return Rt(ot.y1,vt)-Rt(ot.y0,vt)}function ht(ot,nt){return Math.abs(yt(ot,nt))}function j(ot,nt,vt){return Math.abs(ut(ot,nt,vt))}function _(ot,nt,vt){return ot.type!=="line"?void 0:Math.sqrt(Math.pow(yt(ot,nt),2)+Math.pow(ut(ot,nt,vt),2))}function rt(ot,nt){return o((Rt(ot.x1,nt)+Rt(ot.x0,nt))/2,nt)}function tt(ot,nt,vt){return o((Rt(ot.y1,vt)+Rt(ot.y0,vt))/2,vt)}function st(ot,nt,vt){return ot.type!=="line"?void 0:ut(ot,nt,vt)/yt(ot,nt)}Ct.exports={x0:it,x1:xt,y0:et,y1:Tt,slope:st,dx:yt,dy:ut,width:ht,height:j,length:_,xcenter:rt,ycenter:tt}},89861:function(Ct,Rt,o){var it=o(25376),xt=o(66741),et=o(92880).extendDeepAll,Tt=o(67824).overrideAll,yt=o(85656),ut=o(31780).templatedArray,ht=o(60876),j=ut("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});Ct.exports=Tt(ut("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:j,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:et(xt({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:yt.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:it({})},font:it({}),activebgcolor:{valType:"color",dflt:ht.gripBgActiveColor},bgcolor:{valType:"color",dflt:ht.railBgColor},bordercolor:{valType:"color",dflt:ht.railBorderColor},borderwidth:{valType:"number",min:0,dflt:ht.railBorderWidth},ticklen:{valType:"number",min:0,dflt:ht.tickLength},tickcolor:{valType:"color",dflt:ht.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:ht.minorTickLength}}),"arraydraw","from-root")},60876:function(Ct){Ct.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},8132:function(Ct,Rt,o){var it=o(3400),xt=o(51272),et=o(89861),Tt=o(60876),yt=Tt.name,ut=et.steps;Ct.exports=function(rt,tt){xt(rt,tt,{name:yt,handleItemDefaults:ht})};function ht(_,rt,tt){function st(mt,St){return it.coerce(_,rt,et,mt,St)}for(var ot=xt(_,rt,{name:"steps",handleItemDefaults:j}),nt=0,vt=0;vt0?[0]:[]);Vt.enter().append("g").classed(_.containerClassName,!0).style("cursor",$t?null:"ew-resize");function Xt(Jt){Jt._commandObserver&&(Jt._commandObserver.remove(),delete Jt._commandObserver),xt.autoMargin(Nt,nt(Jt))}if(Vt.exit().each(function(){it.select(this).selectAll("g."+_.groupClassName).each(Xt)}).remove(),Ht.length!==0){var qt=Vt.selectAll("g."+_.groupClassName).data(Ht,dt);qt.enter().append("g").classed(_.groupClassName,!0),qt.exit().each(Xt).remove();for(var er=0;er0&&(qt=qt.transition().duration(Nt.transition.duration).ease(Nt.transition.easing)),qt.attr("transform",ut(Xt-_.gripWidth*.5,Nt._dims.currentValueTotalHeight))}}function At(Dt,Nt){var $t=Dt._dims;return $t.inputAreaStart+_.stepInset+($t.inputAreaLength-2*_.stepInset)*Math.min(1,Math.max(0,Nt))}function Ot(Dt,Nt){var $t=Dt._dims;return Math.min(1,Math.max(0,(Nt-_.stepInset-$t.inputAreaStart)/($t.inputAreaLength-2*_.stepInset-2*$t.inputAreaStart)))}function Pt(Dt,Nt,$t){var Ut=$t._dims,Ht=yt.ensureSingle(Dt,"rect",_.railTouchRectClass,function(Vt){Vt.call(kt,Nt,Dt,$t).style("pointer-events","all")});Ht.attr({width:Ut.inputAreaLength,height:Math.max(Ut.inputAreaWidth,_.tickOffset+$t.ticklen+Ut.labelHeight)}).call(et.fill,$t.bgcolor).attr("opacity",0),Tt.setTranslate(Ht,0,Ut.currentValueTotalHeight)}function zt(Dt,Nt){var $t=Nt._dims,Ut=$t.inputAreaLength-_.railInset*2,Ht=yt.ensureSingle(Dt,"rect",_.railRectClass);Ht.attr({width:Ut,height:_.railWidth,rx:_.railRadius,ry:_.railRadius,"shape-rendering":"crispEdges"}).call(et.stroke,Nt.bordercolor).call(et.fill,Nt.bgcolor).style("stroke-width",Nt.borderwidth+"px"),Tt.setTranslate(Ht,_.railInset,($t.inputAreaWidth-_.railWidth)*.5+$t.currentValueTotalHeight)}},97544:function(Ct,Rt,o){var it=o(60876);Ct.exports={moduleType:"component",name:it.name,layoutAttributes:o(89861),supplyLayoutDefaults:o(8132),draw:o(79664)}},81668:function(Ct,Rt,o){var it=o(33428),xt=o(38248),et=o(7316),Tt=o(24040),yt=o(3400),ut=yt.strTranslate,ht=o(43616),j=o(76308),_=o(72736),rt=o(13448),tt=o(84284).OPPOSITE_SIDE,st=/ [XY][0-9]* /;function ot(nt,vt,dt){var bt=dt.propContainer,ft=dt.propName,at=dt.placeholder,mt=dt.traceIndex,St=dt.avoid||{},_t=dt.attributes,Mt=dt.transform,Et=dt.containerGroup,kt=nt._fullLayout,wt=1,ct=!1,It=bt.title,At=(It&&It.text?It.text:"").trim(),Ot=It&&It.font?It.font:{},Pt=Ot.family,zt=Ot.size,Dt=Ot.color,Nt=Ot.weight,$t=Ot.style,Ut=Ot.variant,Ht;ft==="title.text"?Ht="titleText":ft.indexOf("axis")!==-1?Ht="axisTitleText":ft.indexOf("colorbar"!==-1)&&(Ht="colorbarTitleText");var Vt=nt._context.edits[Ht];At===""?wt=0:At.replace(st," % ")===at.replace(st," % ")&&(wt=.2,ct=!0,Vt||(At="")),dt._meta?At=yt.templateString(At,dt._meta):kt._meta&&(At=yt.templateString(At,kt._meta));var Xt=At||Vt,qt;Et||(Et=yt.ensureSingle(kt._infolayer,"g","g-"+vt),qt=kt._hColorbarMoveTitle);var er=Et.selectAll("text").data(Xt?[0]:[]);if(er.enter().append("text"),er.text(At).attr("class",vt),er.exit().remove(),!Xt)return Et;function lr(jt){yt.syncOrAsync([Jt,Yt],jt)}function Jt(jt){var ar;return!Mt&&qt&&(Mt={}),Mt?(ar="",Mt.rotate&&(ar+="rotate("+[Mt.rotate,_t.x,_t.y]+")"),(Mt.offset||qt)&&(ar+=ut(0,(Mt.offset||0)-(qt||0)))):ar=null,jt.attr("transform",ar),jt.style({"font-family":Pt,"font-size":it.round(zt,2)+"px",fill:j.rgb(Dt),opacity:wt*j.opacity(Dt),"font-weight":Nt,"font-style":$t,"font-variant":Ut}).attr(_t).call(_.convertToTspans,nt),et.previousPromises(nt)}function Yt(jt){var ar=it.select(jt.node().parentNode);if(St&&St.selection&&St.side&&At){ar.attr("transform",null);var sr=tt[St.side],Zt=St.side==="left"||St.side==="top"?-1:1,Kt=xt(St.pad)?St.pad:2,or=ht.bBox(ar.node()),tr={t:0,b:0,l:0,r:0},cr=nt._fullLayout._reservedMargin;for(var mr in cr)for(var Ar in cr[mr]){var br=cr[mr][Ar];tr[Ar]=Math.max(tr[Ar],br)}var Ir={left:tr.l,top:tr.t,right:kt.width-tr.r,bottom:kt.height-tr.b},Tr=St.maxShift||Zt*(Ir[St.side]-or[St.side]),_r=0;if(Tr<0)_r=Tr;else{var Er=St.offsetLeft||0,Rr=St.offsetTop||0;or.left-=Er,or.right-=Er,or.top-=Rr,or.bottom-=Rr,St.selection.each(function(){var Or=ht.bBox(this);yt.bBoxIntersect(or,Or,Kt)&&(_r=Math.max(_r,Zt*(Or[St.side]-or[sr])+Kt))}),_r=Math.min(Tr,_r),bt._titleScoot=Math.abs(_r)}if(_r>0||Tr<0){var zr={left:[-_r,0],right:[_r,0],top:[0,-_r],bottom:[0,_r]}[St.side];ar.attr("transform",ut(zr[0],zr[1]))}}}er.call(lr);function rr(){wt=0,ct=!0,er.text(at).on("mouseover.opacity",function(){it.select(this).transition().duration(rt.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){it.select(this).transition().duration(rt.HIDE_PLACEHOLDER).style("opacity",0)})}return Vt&&(At?er.on(".opacity",null):rr(),er.call(_.makeEditable,{gd:nt}).on("edit",function(jt){mt!==void 0?Tt.call("_guiRestyle",nt,ft,jt,mt):Tt.call("_guiRelayout",nt,ft,jt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(lr)}).on("input",function(jt){this.text(jt||" ").call(_.positionText,_t.x,_t.y)})),er.classed("js-placeholder",ct),Et}Ct.exports={draw:ot}},88444:function(Ct,Rt,o){var it=o(25376),xt=o(22548),et=o(92880).extendFlat,Tt=o(67824).overrideAll,yt=o(66741),ut=o(31780).templatedArray,ht=ut("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});Ct.exports=Tt(ut("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:ht,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:et(yt({editType:"arraydraw"}),{}),font:it({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:xt.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},73712:function(Ct){Ct.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},91384:function(Ct,Rt,o){var it=o(3400),xt=o(51272),et=o(88444),Tt=o(73712),yt=Tt.name,ut=et.buttons;Ct.exports=function(rt,tt){var st={name:yt,handleItemDefaults:ht};xt(rt,tt,st)};function ht(_,rt,tt){function st(vt,dt){return it.coerce(_,rt,et,vt,dt)}var ot=xt(_,rt,{name:"buttons",handleItemDefaults:j}),nt=st("visible",ot.length>0);nt&&(st("active"),st("direction"),st("type"),st("showactive"),st("x"),st("y"),it.noneOrAll(_,rt,["x","y"]),st("xanchor"),st("yanchor"),st("pad.t"),st("pad.r"),st("pad.b"),st("pad.l"),it.coerceFont(st,"font",tt.font),st("bgcolor",tt.paper_bgcolor),st("bordercolor"),st("borderwidth"))}function j(_,rt){function tt(ot,nt){return it.coerce(_,rt,ut,ot,nt)}var st=tt("visible",_.method==="skip"||Array.isArray(_.args));st&&(tt("method"),tt("args"),tt("args2"),tt("label"),tt("execute"))}},14420:function(Ct,Rt,o){var it=o(33428),xt=o(7316),et=o(76308),Tt=o(43616),yt=o(3400),ut=o(72736),ht=o(31780).arrayEditor,j=o(84284).LINE_SPACING,_=o(73712),rt=o(37400);Ct.exports=function(Ot){var Pt=Ot._fullLayout,zt=yt.filterVisible(Pt[_.name]);function Dt(er){xt.autoMargin(Ot,wt(er))}var Nt=Pt._menulayer.selectAll("g."+_.containerClassName).data(zt.length>0?[0]:[]);if(Nt.enter().append("g").classed(_.containerClassName,!0).style("cursor","pointer"),Nt.exit().each(function(){it.select(this).selectAll("g."+_.headerGroupClassName).each(Dt)}).remove(),zt.length!==0){var $t=Nt.selectAll("g."+_.headerGroupClassName).data(zt,tt);$t.enter().append("g").classed(_.headerGroupClassName,!0);for(var Ut=yt.ensureSingle(Nt,"g",_.dropdownButtonGroupClassName,function(er){er.style("pointer-events","all")}),Ht=0;Ht_t,Ot=yt.barLength+2*yt.barPad,Pt=yt.barWidth+2*yt.barPad,zt=ot,Dt=vt+dt;Dt+Pt>st&&(Dt=st-Pt);var Nt=this.container.selectAll("rect.scrollbar-horizontal").data(At?[0]:[]);Nt.exit().on(".drag",null).remove(),Nt.enter().append("rect").classed("scrollbar-horizontal",!0).call(xt.fill,yt.barColor),At?(this.hbar=Nt.attr({rx:yt.barRadius,ry:yt.barRadius,x:zt,y:Dt,width:Ot,height:Pt}),this._hbarXMin=zt+Ot/2,this._hbarTranslateMax=_t-Ot):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var $t=dt>Mt,Ut=yt.barWidth+2*yt.barPad,Ht=yt.barLength+2*yt.barPad,Vt=ot+nt,Xt=vt;Vt+Ut>tt&&(Vt=tt-Ut);var qt=this.container.selectAll("rect.scrollbar-vertical").data($t?[0]:[]);qt.exit().on(".drag",null).remove(),qt.enter().append("rect").classed("scrollbar-vertical",!0).call(xt.fill,yt.barColor),$t?(this.vbar=qt.attr({rx:yt.barRadius,ry:yt.barRadius,x:Vt,y:Xt,width:Ut,height:Ht}),this._vbarYMin=Xt+Ht/2,this._vbarTranslateMax=Mt-Ht):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var er=this.id,lr=Et-.5,Jt=$t?kt+Ut+.5:kt+.5,Yt=wt-.5,rr=At?ct+Pt+.5:ct+.5,jt=rt._topdefs.selectAll("#"+er).data(At||$t?[0]:[]);if(jt.exit().remove(),jt.enter().append("clipPath").attr("id",er).append("rect"),At||$t?(this._clipRect=jt.select("rect").attr({x:Math.floor(lr),y:Math.floor(Yt),width:Math.ceil(Jt)-Math.floor(lr),height:Math.ceil(rr)-Math.floor(Yt)}),this.container.call(et.setClipUrl,er,this.gd),this.bg.attr({x:ot,y:vt,width:nt,height:dt})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(et.setClipUrl,null),delete this._clipRect),At||$t){var ar=it.behavior.drag().on("dragstart",function(){it.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(ar);var sr=it.behavior.drag().on("dragstart",function(){it.event.sourceEvent.preventDefault(),it.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));At&&this.hbar.on(".drag",null).call(sr),$t&&this.vbar.on(".drag",null).call(sr)}this.setTranslate(j,_)},yt.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(et.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},yt.prototype._onBoxDrag=function(){var ht=this.translateX,j=this.translateY;this.hbar&&(ht-=it.event.dx),this.vbar&&(j-=it.event.dy),this.setTranslate(ht,j)},yt.prototype._onBoxWheel=function(){var ht=this.translateX,j=this.translateY;this.hbar&&(ht+=it.event.deltaY),this.vbar&&(j+=it.event.deltaY),this.setTranslate(ht,j)},yt.prototype._onBarDrag=function(){var ht=this.translateX,j=this.translateY;if(this.hbar){var _=ht+this._hbarXMin,rt=_+this._hbarTranslateMax,tt=Tt.constrain(it.event.x,_,rt),st=(tt-_)/(rt-_),ot=this.position.w-this._box.w;ht=st*ot}if(this.vbar){var nt=j+this._vbarYMin,vt=nt+this._vbarTranslateMax,dt=Tt.constrain(it.event.y,nt,vt),bt=(dt-nt)/(vt-nt),ft=this.position.h-this._box.h;j=bt*ft}this.setTranslate(ht,j)},yt.prototype.setTranslate=function(ht,j){var _=this.position.w-this._box.w,rt=this.position.h-this._box.h;if(ht=Tt.constrain(ht||0,0,_),j=Tt.constrain(j||0,0,rt),this.translateX=ht,this.translateY=j,this.container.call(et.setTranslate,this._box.l-this.position.l-ht,this._box.t-this.position.t-j),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+ht-.5),y:Math.floor(this.position.t+j-.5)}),this.hbar){var tt=ht/_;this.hbar.call(et.setTranslate,ht+tt*this._hbarTranslateMax,j)}if(this.vbar){var st=j/rt;this.vbar.call(et.setTranslate,ht,j+st*this._vbarTranslateMax)}}},84284:function(Ct){Ct.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},36208:function(Ct){Ct.exports={axisRefDescription:function(Rt,o,it){return["If set to a",Rt,"axis id (e.g. *"+Rt+"* or","*"+Rt+"2*), the `"+Rt+"` position refers to a",Rt,"coordinate. If set to *paper*, the `"+Rt+"`","position refers to the distance from the",o,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",o,"("+it+"). If set to a",Rt,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",o,"of the domain of that axis: e.g.,","*"+Rt+"2 domain* refers to the domain of the second",Rt," axis and a",Rt,"position of 0.5 refers to the","point between the",o,"and the",it,"of the domain of the","second",Rt,"axis."].join(" ")}}},48164:function(Ct){Ct.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"▲"},DECREASING:{COLOR:"#FF4136",SYMBOL:"▼"}}},26880:function(Ct){Ct.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},69104:function(Ct){Ct.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},99168:function(Ct){Ct.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},87792:function(Ct){Ct.exports={circle:"●","circle-open":"○",square:"■","square-open":"□",diamond:"◆","diamond-open":"◇",cross:"+",x:"❌"}},13448:function(Ct){Ct.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},39032:function(Ct){Ct.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},2264:function(Ct,Rt){Rt.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],Rt.STYLE=Rt.CSS_DECLARATIONS.map(function(o){return o.join(": ")+"; "}).join("")},9616:function(Ct,Rt){Rt.xmlns="http://www.w3.org/2000/xmlns/",Rt.svg="http://www.w3.org/2000/svg",Rt.xlink="http://www.w3.org/1999/xlink",Rt.svgAttrs={xmlns:Rt.svg,"xmlns:xlink":Rt.xlink}},64884:function(Ct,Rt,o){Rt.version=o(25788).version,o(88324),o(79288);for(var it=o(24040),xt=Rt.register=it.register,et=o(22448),Tt=Object.keys(et),yt=0;yt",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},98308:function(Ct,Rt){Rt.isLeftAnchor=function(it){return it.xanchor==="left"||it.xanchor==="auto"&&it.x<=.3333333333333333},Rt.isCenterAnchor=function(it){return it.xanchor==="center"||it.xanchor==="auto"&&it.x>.3333333333333333&&it.x<.6666666666666666},Rt.isRightAnchor=function(it){return it.xanchor==="right"||it.xanchor==="auto"&&it.x>=.6666666666666666},Rt.isTopAnchor=function(it){return it.yanchor==="top"||it.yanchor==="auto"&&it.y>=.6666666666666666},Rt.isMiddleAnchor=function(it){return it.yanchor==="middle"||it.yanchor==="auto"&&it.y>.3333333333333333&&it.y<.6666666666666666},Rt.isBottomAnchor=function(it){return it.yanchor==="bottom"||it.yanchor==="auto"&&it.y<=.3333333333333333}},11864:function(Ct,Rt,o){var it=o(20435),xt=it.mod,et=it.modHalf,Tt=Math.PI,yt=2*Tt;function ut(bt){return bt/180*Tt}function ht(bt){return bt/Tt*180}function j(bt){return Math.abs(bt[1]-bt[0])>yt-1e-14}function _(bt,ft){return et(ft-bt,yt)}function rt(bt,ft){return Math.abs(_(bt,ft))}function tt(bt,ft){if(j(ft))return!0;var at,mt;ft[0]mt&&(mt+=yt);var St=xt(bt,yt),_t=St+yt;return St>=at&&St<=mt||_t>=at&&_t<=mt}function st(bt,ft,at,mt){if(!tt(ft,mt))return!1;var St,_t;return at[0]=St&&bt<=_t}function ot(bt,ft,at,mt,St,_t,Mt){St=St||0,_t=_t||0;var Et=j([at,mt]),kt,wt,ct,It,At;Et?(kt=0,wt=Tt,ct=yt):at"u"?void 0:Uint8ClampedArray,i1:typeof Int8Array>"u"?void 0:Int8Array,u1:typeof Uint8Array>"u"?void 0:Uint8Array,i2:typeof Int16Array>"u"?void 0:Int16Array,u2:typeof Uint16Array>"u"?void 0:Uint16Array,i4:typeof Int32Array>"u"?void 0:Int32Array,u4:typeof Uint32Array>"u"?void 0:Uint32Array,f4:typeof Float32Array>"u"?void 0:Float32Array,f8:typeof Float64Array>"u"?void 0:Float64Array};_.uint8c=_.u1c,_.uint8=_.u1,_.int8=_.i1,_.uint16=_.u2,_.int16=_.i2,_.uint32=_.u4,_.int32=_.i4,_.float32=_.f4,_.float64=_.f8;function rt(ot){return ot.constructor===ArrayBuffer}Rt.isArrayBuffer=rt,Rt.decodeTypedArraySpec=function(ot){var nt=[],vt=tt(ot),dt=vt.dtype,bt=_[dt];if(!bt)throw new Error('Error in dtype: "'+dt+'"');var ft=bt.BYTES_PER_ELEMENT,at=vt.bdata;rt(at)||(at=it(at));var mt=vt.shape===void 0?[at.byteLength/ft]:(""+vt.shape).split(",");mt.reverse();var St=mt.length,_t,Mt,Et=+mt[0],kt=ft*Et,wt=0;if(St===1)nt=new bt(at);else if(St===2)for(_t=+mt[1],Mt=0;Mt<_t;Mt++)nt[Mt]=new bt(at,wt,Et),wt+=kt;else if(St===3){_t=+mt[1];for(var ct=+mt[2],It=0;Itbt.max?vt.set(dt):vt.set(+nt)}},integer:{coerceFunction:function(nt,vt,dt,bt){nt%1||!it(nt)||bt.min!==void 0&&ntbt.max?vt.set(dt):vt.set(+nt)}},string:{coerceFunction:function(nt,vt,dt,bt){if(typeof nt!="string"){var ft=typeof nt=="number";bt.strict===!0||!ft?vt.set(dt):vt.set(String(nt))}else bt.noBlank&&!nt?vt.set(dt):vt.set(nt)}},color:{coerceFunction:function(nt,vt,dt){xt(nt).isValid()?vt.set(nt):vt.set(dt)}},colorlist:{coerceFunction:function(nt,vt,dt){function bt(ft){return xt(ft).isValid()}!Array.isArray(nt)||!nt.length?vt.set(dt):nt.every(bt)?vt.set(nt):vt.set(dt)}},colorscale:{coerceFunction:function(nt,vt,dt){vt.set(Tt.get(nt,dt))}},angle:{coerceFunction:function(nt,vt,dt){nt==="auto"?vt.set("auto"):it(nt)?vt.set(_(+nt,360)):vt.set(dt)}},subplotid:{coerceFunction:function(nt,vt,dt,bt){var ft=bt.regex||j(dt);if(typeof nt=="string"&&ft.test(nt)){vt.set(nt);return}vt.set(dt)},validateFunction:function(nt,vt){var dt=vt.dflt;return nt===dt?!0:typeof nt!="string"?!1:!!j(dt).test(nt)}},flaglist:{coerceFunction:function(nt,vt,dt,bt){if((bt.extras||[]).indexOf(nt)!==-1){vt.set(nt);return}if(typeof nt!="string"){vt.set(dt);return}for(var ft=nt.split("+"),at=0;at=at&&Dt<=mt?Dt:ut}if(typeof Dt!="string"&&typeof Dt!="number")return ut;Dt=String(Dt);var Vt=bt(Nt),Xt=Dt.charAt(0);Vt&&(Xt==="G"||Xt==="g")&&(Dt=Dt.substr(1),Nt="");var qt=Vt&&Nt.substr(0,7)==="chinese",er=Dt.match(qt?vt:nt);if(!er)return ut;var lr=er[1],Jt=er[3]||"1",Yt=Number(er[5]||1),rr=Number(er[7]||0),jt=Number(er[9]||0),ar=Number(er[11]||0);if(Vt){if(lr.length===2)return ut;lr=Number(lr);var sr;try{var Zt=st.getComponentMethod("calendars","getCal")(Nt);if(qt){var Kt=Jt.charAt(Jt.length-1)==="i";Jt=parseInt(Jt,10),sr=Zt.newDate(lr,Zt.toMonthIndex(lr,Jt,Kt),Yt)}else sr=Zt.newDate(lr,Number(Jt),Yt)}catch{return ut}return sr?(sr.toJD()-tt)*ht+rr*j+jt*_+ar*rt:ut}lr.length===2?lr=(Number(lr)+2e3-dt)%100+dt:lr=Number(lr),Jt-=1;var or=new Date(Date.UTC(2e3,Jt,Yt,rr,jt));return or.setUTCFullYear(lr),or.getUTCMonth()!==Jt||or.getUTCDate()!==Yt?ut:or.getTime()+ar*rt},at=Rt.MIN_MS=Rt.dateTime2ms("-9999"),mt=Rt.MAX_MS=Rt.dateTime2ms("9999-12-31 23:59:59.9999"),Rt.isDateTime=function(Dt,Nt){return Rt.dateTime2ms(Dt,Nt)!==ut};function St(Dt,Nt){return String(Dt+Math.pow(10,Nt)).substr(1)}var _t=90*ht,Mt=3*j,Et=5*_;Rt.ms2DateTime=function(Dt,Nt,$t){if(typeof Dt!="number"||!(Dt>=at&&Dt<=mt))return ut;Nt||(Nt=0);var Ut=Math.floor(Tt(Dt+.05,1)*10),Ht=Math.round(Dt-Ut/10),Vt,Xt,qt,er,lr,Jt;if(bt($t)){var Yt=Math.floor(Ht/ht)+tt,rr=Math.floor(Tt(Dt,ht));try{Vt=st.getComponentMethod("calendars","getCal")($t).fromJD(Yt).formatDate("yyyy-mm-dd")}catch{Vt=ot("G%Y-%m-%d")(new Date(Ht))}if(Vt.charAt(0)==="-")for(;Vt.length<11;)Vt="-0"+Vt.substr(1);else for(;Vt.length<10;)Vt="0"+Vt;Xt=Nt<_t?Math.floor(rr/j):0,qt=Nt<_t?Math.floor(rr%j/_):0,er=Nt=at+ht&&Dt<=mt-ht))return ut;var Nt=Math.floor(Tt(Dt+.05,1)*10),$t=new Date(Math.round(Dt-Nt/10)),Ut=it("%Y-%m-%d")($t),Ht=$t.getHours(),Vt=$t.getMinutes(),Xt=$t.getSeconds(),qt=$t.getUTCMilliseconds()*10+Nt;return kt(Ut,Ht,Vt,Xt,qt)};function kt(Dt,Nt,$t,Ut,Ht){if((Nt||$t||Ut||Ht)&&(Dt+=" "+St(Nt,2)+":"+St($t,2),(Ut||Ht)&&(Dt+=":"+St(Ut,2),Ht))){for(var Vt=4;Ht%10===0;)Vt-=1,Ht/=10;Dt+="."+St(Ht,Vt)}return Dt}Rt.cleanDate=function(Dt,Nt,$t){if(Dt===ut)return Nt;if(Rt.isJSDate(Dt)||typeof Dt=="number"&&isFinite(Dt)){if(bt($t))return et.error("JS Dates and milliseconds are incompatible with world calendars",Dt),Nt;if(Dt=Rt.ms2DateTimeLocal(+Dt),!Dt&&Nt!==void 0)return Nt}else if(!Rt.isDateTime(Dt,$t))return et.error("unrecognized date",Dt),Nt;return Dt};var wt=/%\d?f/g,ct=/%h/g,It={1:"1",2:"1",3:"2",4:"2"};function At(Dt,Nt,$t,Ut){Dt=Dt.replace(wt,function(Vt){var Xt=Math.min(+Vt.charAt(1)||6,6),qt=(Nt/1e3%1+2).toFixed(Xt).substr(2).replace(/0+$/,"")||"0";return qt});var Ht=new Date(Math.floor(Nt+.05));if(Dt=Dt.replace(ct,function(){return It[$t("%q")(Ht)]}),bt(Ut))try{Dt=st.getComponentMethod("calendars","worldCalFmt")(Dt,Nt,Ut)}catch{return"Invalid"}return $t(Dt)(Ht)}var Ot=[59,59.9,59.99,59.999,59.9999];function Pt(Dt,Nt){var $t=Tt(Dt+.05,ht),Ut=St(Math.floor($t/j),2)+":"+St(Tt(Math.floor($t/_),60),2);if(Nt!=="M"){xt(Nt)||(Nt=0);var Ht=Math.min(Tt(Dt/rt,60),Ot[Nt]),Vt=(100+Ht).toFixed(Nt).substr(1);Nt>0&&(Vt=Vt.replace(/0+$/,"").replace(/[\.]$/,"")),Ut+=":"+Vt}return Ut}Rt.formatDate=function(Dt,Nt,$t,Ut,Ht,Vt){if(Ht=bt(Ht)&&Ht,!Nt)if($t==="y")Nt=Vt.year;else if($t==="m")Nt=Vt.month;else if($t==="d")Nt=Vt.dayMonth+` `+Vt.year;else return Pt(Dt,$t)+` -`+At(Vt.dayMonthYear,Dt,Ut,Ht);return At(Nt,Dt,Ut,Ht)};var zt=3*ht;Rt.incrementMonth=function(Dt,Nt,$t){$t=bt($t)&&$t;var Ut=Et(Dt,ht);if(Dt=Math.round(Dt-Ut),$t)try{var Ht=Math.round(Dt/ht)+tt,Vt=st.getComponentMethod("calendars","getCal")($t),Xt=Vt.fromJD(Ht);return Nt%12?Vt.add(Xt,Nt,"m"):Vt.add(Xt,Nt/12,"y"),(Xt.toJD()-tt)*ht+Ut}catch{et.error("invalid ms "+Dt+" in calendar "+$t)}var qt=new Date(Dt+zt);return qt.setUTCMonth(qt.getUTCMonth()+Nt)+Ut-zt},Rt.findExactDates=function(Dt,Nt){for(var $t=0,Ut=0,Ht=0,Vt=0,Xt,qt,er=bt(Nt)&&st.getComponentMethod("calendars","getCal")(Nt),lr=0;lr0&&Pt[zt+1][0]<0)return zt;return null}switch(Tt==="RUS"||Tt==="FJI"?wt=function(Pt){var zt;if(Ot(Pt)===null)zt=Pt;else for(zt=new Array(Pt.length),At=0;Atzt?Dt[Nt++]=[Pt[At][0]+360,Pt[At][1]]:At===zt?(Dt[Nt++]=Pt[At],Dt[Nt++]=[Pt[At][0],-90]):Dt[Nt++]=Pt[At];var $t=rt.tester(Dt);$t.pts.pop(),kt.push($t)}:wt=function(Pt){kt.push(rt.tester(Pt))},_t.type){case"MultiPolygon":for(ct=0;ctkt&&(kt=It,Mt=ct)}else Mt=_t;return Et.default(Mt).geometry.coordinates}function at(St){var _t=window.PlotlyGeoAssets||{},Mt=[];function Tt(At){return new Promise(function(Ot,Pt){it.json(At,function(zt,Dt){if(zt){delete _t[At];var Nt=zt.status===404?'GeoJSON at URL "'+At+'" does not exist.':"Unexpected error while fetching from "+At;return Pt(new Error(Nt))}return _t[At]=Dt,Ot(Dt)})})}function kt(At){return new Promise(function(Ot,Pt){var zt=0,Dt=setInterval(function(){if(_t[At]&&_t[At]!=="pending")return clearInterval(Dt),Ot(_t[At]);if(zt>100)return clearInterval(Dt),Pt("Unexpected error while fetching from "+At);zt++},50)})}for(var wt=0;wt0&&(mt.push(ut),ut=[])}return ut.length>0&&mt.push(ut),mt},Rt.makeLine=function(xt){return xt.length===1?{type:"LineString",coordinates:xt[0]}:{type:"MultiLineString",coordinates:xt}},Rt.makePolygon=function(xt){if(xt.length===1)return{type:"Polygon",coordinates:xt};for(var et=new Array(xt.length),Et=0;Et1||_t<0||_t>1?null:{x:ht+vt*_t,y:j+ft*_t}}Rt.segmentDistance=function(j,_,rt,tt,st,ot,nt,vt){if(xt(j,_,rt,tt,st,ot,nt,vt))return 0;var dt=rt-j,bt=tt-_,ft=nt-st,at=vt-ot,yt=dt*dt+bt*bt,St=ft*ft+at*at,_t=Math.min(et(dt,bt,yt,st-j,ot-_),et(dt,bt,yt,nt-j,vt-_),et(ft,at,St,j-st,_-ot),et(ft,at,St,rt-st,tt-ot));return Math.sqrt(_t)};function et(ht,j,_,rt,tt){var st=rt*ht+tt*j;if(st<0)return rt*rt+tt*tt;if(st>_){var ot=rt-ht,nt=tt-j;return ot*ot+nt*nt}else{var vt=rt*j-tt*ht;return vt*vt/_}}var Et,mt,ut;Rt.getTextLocation=function(j,_,rt,tt){if((j!==mt||tt!==ut)&&(Et={},mt=j,ut=tt),Et[rt])return Et[rt];var st=j.getPointAtLength(it(rt-tt/2,_)),ot=j.getPointAtLength(it(rt+tt/2,_)),nt=Math.atan((ot.y-st.y)/(ot.x-st.x)),vt=j.getPointAtLength(it(rt,_)),dt=(vt.x*4+st.x+ot.x)/6,bt=(vt.y*4+st.y+ot.y)/6,ft={x:dt,y:bt,theta:nt};return Et[rt]=ft,ft},Rt.clearLocationCache=function(){mt=null},Rt.getVisibleSegment=function(j,_,rt){var tt=_.left,st=_.right,ot=_.top,nt=_.bottom,vt=0,dt=j.getTotalLength(),bt=dt,ft,at;function yt(_t){var Mt=j.getPointAtLength(_t);_t===0?ft=Mt:_t===dt&&(at=Mt);var Tt=Mt.xst?Mt.x-st:0,kt=Mt.ynt?Mt.y-nt:0;return Math.sqrt(Tt*Tt+kt*kt)}for(var St=yt(vt);St;){if(vt+=St+rt,vt>bt)return;St=yt(vt)}for(St=yt(bt);St;){if(bt-=St+rt,vt>bt)return;St=yt(bt)}return{min:vt,max:bt,len:bt-vt,total:dt,isClosed:vt===0&&bt===dt&&Math.abs(ft.x-at.x)<.1&&Math.abs(ft.y-at.y)<.1}},Rt.findPointOnPath=function(j,_,rt,tt){tt=tt||{};for(var st=tt.pathLength||j.getTotalLength(),ot=tt.tolerance||.001,nt=tt.iterationLimit||30,vt=j.getPointAtLength(0)[rt]>j.getPointAtLength(st)[rt]?-1:1,dt=0,bt=0,ft=st,at,yt,St;dt0?ft=at:bt=at,dt++}return yt}},33040:function(Ct,Rt,o){var it=o(38248),xt=o(49760),et=o(72160),Et=o(8932),mt=o(22548).defaultLine,ut=o(38116).isArrayOrTypedArray,ht=et(mt),j=1;function _(nt,vt){var dt=nt;return dt[3]*=vt,dt}function rt(nt){if(it(nt))return ht;var vt=et(nt);return vt.length?vt:ht}function tt(nt){return it(nt)?nt:j}function st(nt,vt,dt){var bt=nt.color;bt&&bt._inputArray&&(bt=bt._inputArray);var ft=ut(bt),at=ut(vt),yt=Et.extractOpts(nt),St=[],_t,Mt,Tt,kt,wt;if(yt.colorscale!==void 0?_t=Et.makeColorScaleFuncFromTrace(nt):_t=rt,ft?Mt=function(It,At){return It[At]===void 0?ht:et(_t(It[At]))}:Mt=rt,at?Tt=function(It,At){return It[At]===void 0?j:tt(It[At])}:Tt=tt,ft||at)for(var ct=0;ct1?(xt*o+xt*it)/xt:o+it,Et=String(et).length;if(Et>16){var mt=String(it).length,ut=String(o).length;if(Et>=ut+mt){var ht=parseFloat(et).toPrecision(12);ht.indexOf("e+")===-1&&(et=+ht)}}return et}},3400:function(Ct,Rt,o){var it=o(33428),xt=o(94336).E9,et=o(57624).E9,Et=o(38248),mt=o(39032),ut=mt.FP_SAFE,ht=-ut,j=mt.BADNUM,_=Ct.exports={};_.adjustFormat=function(sr){return!sr||/^\d[.]\df/.test(sr)||/[.]\d%/.test(sr)?sr:sr==="0.f"?"~f":/^\d%/.test(sr)?"~%":/^\ds/.test(sr)?"~s":!/^[~,.0$]/.test(sr)&&/[&fps]/.test(sr)?"~"+sr:sr};var rt={};_.warnBadFormat=function(ar){var sr=String(ar);rt[sr]||(rt[sr]=1,_.warn('encountered bad format: "'+sr+'"'))},_.noFormat=function(ar){return String(ar)},_.numberFormat=function(ar){var sr;try{sr=et(_.adjustFormat(ar))}catch{return _.warnBadFormat(ar),_.noFormat}return sr},_.nestedProperty=o(22296),_.keyedContainer=o(37804),_.relativeAttr=o(23193),_.isPlainObject=o(63620),_.toLogRange=o(36896),_.relinkPrivateKeys=o(51528);var tt=o(38116);_.isArrayBuffer=tt.isArrayBuffer,_.isTypedArray=tt.isTypedArray,_.isArrayOrTypedArray=tt.isArrayOrTypedArray,_.isArray1D=tt.isArray1D,_.ensureArray=tt.ensureArray,_.concat=tt.concat,_.maxRowLength=tt.maxRowLength,_.minRowLength=tt.minRowLength;var st=o(20435);_.mod=st.mod,_.modHalf=st.modHalf;var ot=o(63064);_.valObjectMeta=ot.valObjectMeta,_.coerce=ot.coerce,_.coerce2=ot.coerce2,_.coerceFont=ot.coerceFont,_.coercePattern=ot.coercePattern,_.coerceHoverinfo=ot.coerceHoverinfo,_.coerceSelectionMarkerOpacity=ot.coerceSelectionMarkerOpacity,_.validate=ot.validate;var nt=o(67555);_.dateTime2ms=nt.dateTime2ms,_.isDateTime=nt.isDateTime,_.ms2DateTime=nt.ms2DateTime,_.ms2DateTimeLocal=nt.ms2DateTimeLocal,_.cleanDate=nt.cleanDate,_.isJSDate=nt.isJSDate,_.formatDate=nt.formatDate,_.incrementMonth=nt.incrementMonth,_.dateTick0=nt.dateTick0,_.dfltRange=nt.dfltRange,_.findExactDates=nt.findExactDates,_.MIN_MS=nt.MIN_MS,_.MAX_MS=nt.MAX_MS;var vt=o(14952);_.findBin=vt.findBin,_.sorterAsc=vt.sorterAsc,_.sorterDes=vt.sorterDes,_.distinctVals=vt.distinctVals,_.roundUp=vt.roundUp,_.sort=vt.sort,_.findIndexOfMin=vt.findIndexOfMin,_.sortObjectKeys=o(95376);var dt=o(63084);_.aggNums=dt.aggNums,_.len=dt.len,_.mean=dt.mean,_.median=dt.median,_.midRange=dt.midRange,_.variance=dt.variance,_.stdev=dt.stdev,_.interp=dt.interp;var bt=o(52248);_.init2dArray=bt.init2dArray,_.transposeRagged=bt.transposeRagged,_.dot=bt.dot,_.translationMatrix=bt.translationMatrix,_.rotationMatrix=bt.rotationMatrix,_.rotationXYMatrix=bt.rotationXYMatrix,_.apply3DTransform=bt.apply3DTransform,_.apply2DTransform=bt.apply2DTransform,_.apply2DTransform2=bt.apply2DTransform2,_.convertCssMatrix=bt.convertCssMatrix,_.inverseTransformMatrix=bt.inverseTransformMatrix;var ft=o(11864);_.deg2rad=ft.deg2rad,_.rad2deg=ft.rad2deg,_.angleDelta=ft.angleDelta,_.angleDist=ft.angleDist,_.isFullCircle=ft.isFullCircle,_.isAngleInsideSector=ft.isAngleInsideSector,_.isPtInsideSector=ft.isPtInsideSector,_.pathArc=ft.pathArc,_.pathSector=ft.pathSector,_.pathAnnulus=ft.pathAnnulus;var at=o(98308);_.isLeftAnchor=at.isLeftAnchor,_.isCenterAnchor=at.isCenterAnchor,_.isRightAnchor=at.isRightAnchor,_.isTopAnchor=at.isTopAnchor,_.isMiddleAnchor=at.isMiddleAnchor,_.isBottomAnchor=at.isBottomAnchor;var yt=o(92348);_.segmentsIntersect=yt.segmentsIntersect,_.segmentDistance=yt.segmentDistance,_.getTextLocation=yt.getTextLocation,_.clearLocationCache=yt.clearLocationCache,_.getVisibleSegment=yt.getVisibleSegment,_.findPointOnPath=yt.findPointOnPath;var St=o(92880);_.extendFlat=St.extendFlat,_.extendDeep=St.extendDeep,_.extendDeepAll=St.extendDeepAll,_.extendDeepNoArrays=St.extendDeepNoArrays;var _t=o(24248);_.log=_t.log,_.warn=_t.warn,_.error=_t.error;var Mt=o(53756);_.counterRegex=Mt.counter;var Tt=o(91200);_.throttle=Tt.throttle,_.throttleDone=Tt.done,_.clearThrottle=Tt.clear;var kt=o(52200);_.getGraphDiv=kt.getGraphDiv,_.isPlotDiv=kt.isPlotDiv,_.removeElement=kt.removeElement,_.addStyleRule=kt.addStyleRule,_.addRelatedStyleRule=kt.addRelatedStyleRule,_.deleteRelatedStyleRule=kt.deleteRelatedStyleRule,_.getFullTransformMatrix=kt.getFullTransformMatrix,_.getElementTransformMatrix=kt.getElementTransformMatrix,_.getElementAndAncestors=kt.getElementAndAncestors,_.equalDomRects=kt.equalDomRects,_.clearResponsive=o(75352),_.preserveDrawingBuffer=o(34296),_.makeTraceGroups=o(30988),_._=o(98356),_.notifier=o(41792),_.filterUnique=o(68944),_.filterVisible=o(43880),_.pushUnique=o(52416),_.increment=o(1396),_.cleanNumber=o(54037),_.ensureNumber=function(sr){return Et(sr)?(sr=Number(sr),sr>ut||sr=sr?!1:Et(ar)&&ar>=0&&ar%1===0},_.noop=o(16628),_.identity=o(35536),_.repeat=function(ar,sr){for(var Zt=new Array(sr),Kt=0;KtZt?Math.max(Zt,Math.min(sr,ar)):Math.max(sr,Math.min(Zt,ar))},_.bBoxIntersect=function(ar,sr,Zt){return Zt=Zt||0,ar.left<=sr.right+Zt&&sr.left<=ar.right+Zt&&ar.top<=sr.bottom+Zt&&sr.top<=ar.bottom+Zt},_.simpleMap=function(ar,sr,Zt,Kt,or){for(var tr=ar.length,cr=new Array(tr),hr=0;hr=Math.pow(2,Zt)?or>10?(_.warn("randstr failed uniqueness"),cr):ar(sr,Zt,Kt,(or||0)+1):cr},_.OptionControl=function(ar,sr){ar||(ar={}),sr||(sr="opt");var Zt={};return Zt.optionList=[],Zt._newoption=function(Kt){Kt[sr]=ar,Zt[Kt.name]=Kt,Zt.optionList.push(Kt)},Zt["_"+sr]=ar,Zt},_.smooth=function(ar,sr){if(sr=Math.round(sr)||0,sr<2)return ar;var Zt=ar.length,Kt=2*Zt,or=2*sr-1,tr=new Array(or),cr=new Array(Zt),hr,br,Tr,Ir;for(hr=0;hr=Kt&&(Tr-=Kt*Math.floor(Tr/Kt)),Tr<0?Tr=-1-Tr:Tr>=Zt&&(Tr=Kt-1-Tr),Ir+=ar[Tr]*tr[br];cr[hr]=Ir}return cr},_.syncOrAsync=function(ar,sr,Zt){var Kt,or;function tr(){return _.syncOrAsync(ar,sr,Zt)}for(;ar.length;)if(or=ar.splice(0,1)[0],Kt=or(sr),Kt&&Kt.then)return Kt.then(tr);return Zt&&Zt(sr)},_.stripTrailingSlash=function(ar){return ar.substr(-1)==="/"?ar.substr(0,ar.length-1):ar},_.noneOrAll=function(ar,sr,Zt){if(ar){var Kt=!1,or=!0,tr,cr;for(tr=0;tr0?or:0})},_.fillArray=function(ar,sr,Zt,Kt){if(Kt=Kt||_.identity,_.isArrayOrTypedArray(ar))for(var or=0;or1?or+cr[1]:"";if(tr&&(cr.length>1||hr.length>4||Zt))for(;Kt.test(hr);)hr=hr.replace(Kt,"$1"+tr+"$2");return hr+br},_.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var Nt=/^\w*$/;_.templateString=function(ar,sr){var Zt={};return ar.replace(_.TEMPLATE_STRING_REGEX,function(Kt,or){var tr;return Nt.test(or)?tr=sr[or]:(Zt[or]=Zt[or]||_.nestedProperty(sr,or).get,tr=Zt[or]()),_.isValidTextValue(tr)?tr:""})};var $t={max:10,count:0,name:"hovertemplate"};_.hovertemplateString=function(){return er.apply($t,arguments)};var Ut={max:10,count:0,name:"texttemplate"};_.texttemplateString=function(){return er.apply(Ut,arguments)};var Ht=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Vt(ar){var sr=ar.match(Ht);return sr?{key:sr[1],op:sr[2],number:Number(sr[3])}:{key:ar,op:null,number:null}}var Xt={max:10,count:0,name:"texttemplate",parseMultDiv:!0};_.texttemplateStringForShapes=function(){return er.apply(Xt,arguments)};var qt=/^[:|\|]/;function er(ar,sr,Zt){var Kt=this,or=arguments;sr||(sr={});var tr={};return ar.replace(_.TEMPLATE_STRING_REGEX,function(cr,hr,br){var Tr=hr==="xother"||hr==="yother",Ir=hr==="_xother"||hr==="_yother",Ar=hr==="_xother_"||hr==="_yother_",_r=hr==="xother_"||hr==="yother_",Er=Tr||Ir||_r||Ar,Rr=hr;(Ir||Ar)&&(Rr=Rr.substring(1)),(_r||Ar)&&(Rr=Rr.substring(0,Rr.length-1));var zr=null,Br=null;if(Kt.parseMultDiv){var kr=Vt(Rr);Rr=kr.key,zr=kr.op,Br=kr.number}var Nr;if(Er){if(Nr=sr[Rr],Nr===void 0)return""}else{var Qr,sn;for(sn=3;sn=lr&&cr<=Jt,Tr=hr>=lr&&hr<=Jt;if(br&&(Kt=10*Kt+cr-lr),Tr&&(or=10*or+hr-lr),!br||!Tr){if(Kt!==or)return Kt-or;if(cr!==hr)return cr-hr}}return or-Kt};var Yt=2e9;_.seedPseudoRandom=function(){Yt=2e9},_.pseudoRandom=function(){var ar=Yt;return Yt=(69069*Yt+1)%4294967296,Math.abs(Yt-ar)<429496729?_.pseudoRandom():Yt/4294967296},_.fillText=function(ar,sr,Zt){var Kt=Array.isArray(Zt)?function(cr){Zt.push(cr)}:function(cr){Zt.text=cr},or=_.extractOption(ar,sr,"htx","hovertext");if(_.isValidTextValue(or))return Kt(or);var tr=_.extractOption(ar,sr,"tx","text");if(_.isValidTextValue(tr))return Kt(tr)},_.isValidTextValue=function(ar){return ar||ar===0},_.formatPercent=function(ar,sr){sr=sr||0;for(var Zt=(Math.round(100*ar*Math.pow(10,sr))*Math.pow(.1,sr)).toFixed(sr)+"%",Kt=0;Kt1&&(Tr=1):Tr=0,_.strTranslate(or-Tr*(Zt+cr),tr-Tr*(Kt+hr))+_.strScale(Tr)+(br?"rotate("+br+(sr?"":" "+Zt+" "+Kt)+")":"")},_.setTransormAndDisplay=function(ar,sr){ar.attr("transform",_.getTextTransform(sr)),ar.style("display",sr.scale?null:"none")},_.ensureUniformFontSize=function(ar,sr){var Zt=_.extendFlat({},sr);return Zt.size=Math.max(sr.size,ar._fullLayout.uniformtext.minsize||0),Zt},_.join2=function(ar,sr,Zt){var Kt=ar.length;return Kt>1?ar.slice(0,-1).join(sr)+Zt+ar[Kt-1]:ar.join(sr)},_.bigFont=function(ar){return Math.round(1.2*ar)};var rr=_.getFirefoxVersion(),jt=rr!==null&&rr<86;_.getPositionFromD3Event=function(){return jt?[it.event.layerX,it.event.layerY]:[it.event.offsetX,it.event.offsetY]}},63620:function(Ct){Ct.exports=function(o){return window&&window.process&&window.process.versions?Object.prototype.toString.call(o)==="[object Object]":Object.prototype.toString.call(o)==="[object Object]"&&Object.getPrototypeOf(o).hasOwnProperty("hasOwnProperty")}},37804:function(Ct,Rt,o){var it=o(22296),xt=/^\w*$/,et=0,Et=1,mt=2,ut=3,ht=4;Ct.exports=function(_,rt,tt,st){tt=tt||"name",st=st||"value";var ot,nt,vt,dt={};rt&&rt.length?(vt=it(_,rt),nt=vt.get()):nt=_,rt=rt||"";var bt={};if(nt)for(ot=0;ot2)return dt[St]=dt[St]|mt,at.set(yt,null);if(ft){for(ot=St;ot1){var mt=["LOG:"];for(Et=0;Et1){var ut=[];for(Et=0;Et"),"long")}},et.warn=function(){var Et;if(it.logging>0){var mt=["WARN:"];for(Et=0;Et0){var ut=[];for(Et=0;Et"),"stick")}},et.error=function(){var Et;if(it.logging>0){var mt=["ERROR:"];for(Et=0;Et0){var ut=[];for(Et=0;Et"),"stick")}}},30988:function(Ct,Rt,o){var it=o(33428);Ct.exports=function(et,Et,mt){var ut=et.selectAll("g."+mt.replace(/\s/g,".")).data(Et,function(j){return j[0].trace.uid});ut.exit().remove(),ut.enter().append("g").attr("class",mt),ut.order();var ht=et.classed("rangeplot")?"nodeRangePlot3":"node3";return ut.each(function(j){j[0][ht]=it.select(this)}),ut}},52248:function(Ct,Rt,o){var it=o(36524);Rt.init2dArray=function(xt,et){for(var Et=new Array(xt),mt=0;mtxt/2?it-Math.round(it/xt)*xt:it}Ct.exports={mod:Rt,modHalf:o}},22296:function(Ct,Rt,o){var it=o(38248),xt=o(38116).isArrayOrTypedArray;Ct.exports=function(st,ot){if(it(ot))ot=String(ot);else if(typeof ot!="string"||ot.substr(ot.length-4)==="[-1]")throw"bad property string";var nt=ot.split("."),vt,dt,bt,ft;for(ft=0;ft/g),nt=0;ntj||St===xt||St<_||St>rt||at&&ot(ft))}function vt(ft,at){var yt=ft[0],St=ft[1];if(yt===xt||ytj||St===xt||St<_||St>rt)return!1;var _t=ut.length,Mt=ut[0][0],Tt=ut[0][1],kt=0,wt,ct,It,At,Ot;for(wt=1;wt<_t;wt++)if(ct=Mt,It=Tt,Mt=ut[wt][0],Tt=ut[wt][1],At=Math.min(ct,Mt),!(ytMath.max(ct,Mt)||St>Math.max(It,Tt)))if(Sttt||Math.abs(it(vt,ot))>j)return!0;return!1},et.filter=function(mt,ut){var ht=[mt[0]],j=0,_=0;function rt(st){mt.push(st);var ot=ht.length,nt=j;ht.splice(_+1);for(var vt=nt+1;vt1){var tt=mt.pop();rt(tt)}return{addPt:rt,raw:mt,filtered:ht}}},5048:function(Ct,Rt,o){var it=o(16576),xt=o(28624);Ct.exports=function(Et,mt,ut){var ht=Et._fullLayout,j=!0;return ht._glcanvas.each(function(_){if(_.regl){_.regl.preloadCachedCode(ut);return}if(!(_.pick&&!ht._has("parcoords"))){try{_.regl=xt({canvas:this,attributes:{antialias:!_.pick,preserveDrawingBuffer:!0},pixelRatio:Et._context.plotGlPixelRatio||o.g.devicePixelRatio,extensions:mt||[],cachedCode:ut||{}})}catch{j=!1}_.regl||(j=!1),j&&this.addEventListener("webglcontextlost",function(rt){Et&&Et.emit&&Et.emit("plotly_webglcontextlost",{event:rt,layer:_.key})},!1)}}),j||it({container:ht._glcontainer.node()}),j}},34296:function(Ct,Rt,o){var it=o(38248),xt=o(25928);Ct.exports=function(mt){var ut;if(mt&&mt.hasOwnProperty("userAgent")?ut=mt.userAgent:ut=et(),typeof ut!="string")return!0;var ht=xt({ua:{headers:{"user-agent":ut}},tablet:!0,featureDetect:!1});if(!ht)for(var j=ut.split(" "),_=1;_-1;tt--){var st=j[tt];if(st.substr(0,8)==="Version/"){var ot=st.substr(8).split(".")[0];if(it(ot)&&(ot=+ot),ot>=13)return!0}}}return ht};function et(){var Et;return typeof navigator<"u"&&(Et=navigator.userAgent),Et&&Et.headers&&typeof Et.headers["user-agent"]=="string"&&(Et=Et.headers["user-agent"]),Et}},52416:function(Ct){Ct.exports=function(o,it){if(it instanceof RegExp){for(var xt=it.toString(),et=0;etxt.queueLength&&(mt.undoQueue.queue.shift(),mt.undoQueue.index--)},Et.startSequence=function(mt){mt.undoQueue=mt.undoQueue||{index:0,queue:[],sequence:!1},mt.undoQueue.sequence=!0,mt.undoQueue.beginSequence=!0},Et.stopSequence=function(mt){mt.undoQueue=mt.undoQueue||{index:0,queue:[],sequence:!1},mt.undoQueue.sequence=!1,mt.undoQueue.beginSequence=!1},Et.undo=function(ut){var ht,j;if(!(ut.undoQueue===void 0||isNaN(ut.undoQueue.index)||ut.undoQueue.index<=0)){for(ut.undoQueue.index--,ht=ut.undoQueue.queue[ut.undoQueue.index],ut.undoQueue.inSequence=!0,j=0;j=ut.undoQueue.queue.length)){for(ht=ut.undoQueue.queue[ut.undoQueue.index],ut.undoQueue.inSequence=!0,j=0;j1?(tt[nt-1]-tt[0])/(nt-1):1,bt,ft;for(dt>=0?ft=st?ut:ht:ft=st?_:j,rt+=dt*mt*(st?-1:1)*(dt>=0?1:-1);ot90&&xt.log("Long binary search..."),ot-1};function ut(rt,tt){return rttt}function _(rt,tt){return rt>=tt}Rt.sorterAsc=function(rt,tt){return rt-tt},Rt.sorterDes=function(rt,tt){return tt-rt},Rt.distinctVals=function(rt){var tt=rt.slice();tt.sort(Rt.sorterAsc);var st;for(st=tt.length-1;st>-1&&tt[st]===Et;st--);for(var ot=tt[st]-tt[0]||1,nt=ot/(st||1)/1e4,vt=[],dt,bt=0;bt<=st;bt++){var ft=tt[bt],at=ft-dt;dt===void 0?(vt.push(ft),dt=ft):at>nt&&(ot=Math.min(ot,at),vt.push(ft),dt=ft)}return{vals:vt,minDiff:ot}},Rt.roundUp=function(rt,tt,st){for(var ot=0,nt=tt.length-1,vt,dt=0,bt=st?0:1,ft=st?1:0,at=st?Math.ceil:Math.floor;ot0&&(ot=1),st&&ot)return rt.sort(tt)}return ot?rt:rt.reverse()},Rt.findIndexOfMin=function(rt,tt){tt=tt||et;for(var st=1/0,ot,nt=0;ntmt.length)&&(ut=mt.length),it(Et)||(Et=!1),xt(mt[0])){for(j=new Array(ut),ht=0;htet.length-1)return et[et.length-1];var mt=Et%1;return mt*et[Math.ceil(Et)]+(1-mt)*et[Math.floor(Et)]}},43080:function(Ct,Rt,o){var it=o(72160);function xt(et){return et?it(et):[0,0,0,1]}Ct.exports=xt},9188:function(Ct,Rt,o){var it=o(2264),xt=o(43616),et=o(3400),Et=null;function mt(){if(Et!==null)return Et;Et=!1;var ut=et.isIE()||et.isSafari()||et.isIOS();if(window.navigator.userAgent&&!ut){var ht=Array.from(it.CSS_DECLARATIONS).reverse(),j=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof j=="function")Et=ht.some(function(st){return j.apply(null,st)});else{var _=xt.tester.append("image").attr("style",it.STYLE),rt=window.getComputedStyle(_.node()),tt=rt.imageRendering;Et=ht.some(function(st){var ot=st[1];return tt===ot||tt===ot.toLowerCase()}),_.remove()}}return Et}Ct.exports=mt},72736:function(Ct,Rt,o){var it=o(33428),xt=o(3400),et=xt.strTranslate,Et=o(9616),mt=o(84284).LINE_SPACING,ut=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;Rt.convertToTspans=function($t,Ut,Ht){var Vt=$t.text(),Xt=!$t.attr("data-notex")&&Ut&&Ut._context.typesetMath&&typeof MathJax<"u"&&Vt.match(ut),qt=it.select($t.node().parentNode);if(qt.empty())return;var er=$t.attr("class")?$t.attr("class").split(" ")[0]:"text";er+="-math",qt.selectAll("svg."+er).remove(),qt.selectAll("g."+er+"-group").remove(),$t.style("display",null).attr({"data-unformatted":Vt,"data-math":"N"});function lr(){qt.empty()||(er=$t.attr("class")+"-math",qt.select("svg."+er).remove()),$t.text("").style("white-space","pre");var Jt=Pt($t.node(),Vt);Jt&&$t.style("pointer-events","all"),Rt.positionText($t),Ht&&Ht.call($t)}return Xt?(Ut&&Ut._promises||[]).push(new Promise(function(Jt){$t.style("display","none");var Yt=parseInt($t.node().style.fontSize,10),rr={fontSize:Yt};tt(Xt[2],rr,function(jt,ar,sr){qt.selectAll("svg."+er).remove(),qt.selectAll("g."+er+"-group").remove();var Zt=jt&&jt.select("svg");if(!Zt||!Zt.node()){lr(),Jt();return}var Kt=qt.append("g").classed(er+"-group",!0).attr({"pointer-events":"none","data-unformatted":Vt,"data-math":"Y"});Kt.node().appendChild(Zt.node()),ar&&ar.node()&&Zt.node().insertBefore(ar.node().cloneNode(!0),Zt.node().firstChild);var or=sr.width,tr=sr.height;Zt.attr({class:er,height:tr,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var cr=$t.node().style.fill||"black",hr=Zt.select("g");hr.attr({fill:cr,stroke:cr});var br=hr.node().getBoundingClientRect(),Tr=br.width,Ir=br.height;(Tr>or||Ir>tr)&&(Zt.style("overflow","hidden"),br=Zt.node().getBoundingClientRect(),Tr=br.width,Ir=br.height);var Ar=+$t.attr("x"),_r=+$t.attr("y"),Er=Yt||$t.node().getBoundingClientRect().height,Rr=-Er/4;if(er[0]==="y")Kt.attr({transform:"rotate("+[-90,Ar,_r]+")"+et(-Tr/2,Rr-Ir/2)});else if(er[0]==="l")_r=Rr-Ir/2;else if(er[0]==="a"&&er.indexOf("atitle")!==0)Ar=0,_r=Rr;else{var zr=$t.attr("text-anchor");Ar=Ar-Tr*(zr==="middle"?.5:zr==="end"?1:0),_r=_r+Rr-Ir/2}Zt.attr({x:Ar,y:_r}),Ht&&Ht.call($t,Kt),Jt(Kt)})})):lr(),$t};var ht=/(<|<|<)/g,j=/(>|>|>)/g;function _($t){return $t.replace(ht,"\\lt ").replace(j,"\\gt ")}var rt=[["$","$"],["\\(","\\)"]];function tt($t,Ut,Ht){var Vt=parseInt((MathJax.version||"").split(".")[0]);if(Vt!==2&&Vt!==3){xt.warn("No MathJax version:",MathJax.version);return}var Xt,qt,er,lr,Jt=function(){return qt=xt.extendDeepAll({},MathJax.Hub.config),er=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:rt},displayAlign:"left"})},Yt=function(){qt=xt.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=rt},rr=function(){if(Xt=MathJax.Hub.config.menuSettings.renderer,Xt!=="SVG")return MathJax.Hub.setRenderer("SVG")},jt=function(){Xt=MathJax.config.startup.output,Xt!=="svg"&&(MathJax.config.startup.output="svg")},ar=function(){var cr="math-output-"+xt.randstr({},64);lr=it.select("body").append("div").attr({id:cr}).style({visibility:"hidden",position:"absolute","font-size":Ut.fontSize+"px"}).text(_($t));var hr=lr.node();return Vt===2?MathJax.Hub.Typeset(hr):MathJax.typeset([hr])},sr=function(){var cr=lr.select(Vt===2?".MathJax_SVG":".MathJax"),hr=!cr.empty()&&lr.select("svg").node();if(!hr)xt.log("There was an error in the tex syntax.",$t),Ht();else{var br=hr.getBoundingClientRect(),Tr;Vt===2?Tr=it.select("body").select("#MathJax_SVG_glyphs"):Tr=cr.select("defs"),Ht(cr,Tr,br)}lr.remove()},Zt=function(){if(Xt!=="SVG")return MathJax.Hub.setRenderer(Xt)},Kt=function(){Xt!=="svg"&&(MathJax.config.startup.output=Xt)},or=function(){return er!==void 0&&(MathJax.Hub.processSectionDelay=er),MathJax.Hub.Config(qt)},tr=function(){MathJax.config=qt};Vt===2?MathJax.Hub.Queue(Jt,rr,ar,sr,Zt,or):Vt===3&&(Yt(),jt(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){ar(),sr(),Kt(),tr()}))}var st={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},ot={sub:"0.3em",sup:"-0.6em"},nt={sub:"-0.21em",sup:"0.42em"},vt="​",dt=["http:","https:","mailto:","",void 0,":"],bt=Rt.NEWLINES=/(\r\n?|\n)/g,ft=/(<[^<>]*>)/,at=/<(\/?)([^ >]*)(\s+(.*))?>/i,yt=//i;Rt.BR_TAG_ALL=//gi;var St=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,_t=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,Mt=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,Tt=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function kt($t,Ut){if(!$t)return null;var Ht=$t.match(Ut),Vt=Ht&&(Ht[3]||Ht[4]);return Vt&&At(Vt)}var wt=/(^|;)\s*color:/;Rt.plainText=function($t,Ut){Ut=Ut||{};for(var Ht=Ut.len!==void 0&&Ut.len!==-1?Ut.len:1/0,Vt=Ut.allowedTags!==void 0?Ut.allowedTags:["br"],Xt="...",qt=Xt.length,er=$t.split(ft),lr=[],Jt="",Yt=0,rr=0;rrqt?lr.push(jt.substr(0,Kt-qt)+Xt):lr.push(jt.substr(0,Kt));break}Jt=""}}return lr.join("")};var ct={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},It=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function At($t){return $t.replace(It,function(Ut,Ht){var Vt;return Ht.charAt(0)==="#"?Vt=Ot(Ht.charAt(1)==="x"?parseInt(Ht.substr(2),16):parseInt(Ht.substr(1),10)):Vt=ct[Ht],Vt||Ut})}Rt.convertEntities=At;function Ot($t){if(!($t>1114111)){var Ut=String.fromCodePoint;if(Ut)return Ut($t);var Ht=String.fromCharCode;return $t<=65535?Ht($t):Ht(($t>>10)+55232,$t%1024+56320)}}function Pt($t,Ut){Ut=Ut.replace(bt," ");var Ht=!1,Vt=[],Xt,qt=-1;function er(){qt++;var Ir=document.createElementNS(Et.svg,"tspan");it.select(Ir).attr({class:"line",dy:qt*mt+"em"}),$t.appendChild(Ir),Xt=Ir;var Ar=Vt;if(Vt=[{node:Ir}],Ar.length>1)for(var _r=1;_r.",Ut);return}var Ar=Vt.pop();Ir!==Ar.type&&xt.log("Start tag <"+Ar.type+"> doesnt match end tag <"+Ir+">. Pretending it did match.",Ut),Xt=Vt[Vt.length-1].node}var rr=yt.test(Ut);rr?er():(Xt=$t,Vt=[{node:$t}]);for(var jt=Ut.split(ft),ar=0;arut.ts+Et){_();return}ut.timer=setTimeout(function(){_(),ut.timer=null},Et)},Rt.done=function(xt){var et=o[xt];return!et||!et.timer?Promise.resolve():new Promise(function(Et){var mt=et.onDone;et.onDone=function(){mt&&mt(),Et(),et.onDone=null}})},Rt.clear=function(xt){if(xt)it(o[xt]),delete o[xt];else for(var et in o)Rt.clear(et)};function it(xt){xt&&xt.timer!==null&&(clearTimeout(xt.timer),xt.timer=null)}},36896:function(Ct,Rt,o){var it=o(38248);Ct.exports=function(et,Et){if(et>0)return Math.log(et)/Math.LN10;var mt=Math.log(Math.min(Et[0],Et[1]))/Math.LN10;return it(mt)||(mt=Math.log(Math.max(Et[0],Et[1]))/Math.LN10-6),mt}},59972:function(Ct,Rt,o){var it=Ct.exports={},xt=o(79552).locationmodeToLayer,et=o(55712).NO;it.getTopojsonName=function(Et){return[Et.scope.replace(/ /g,"-"),"_",Et.resolution.toString(),"m"].join("")},it.getTopojsonPath=function(Et,mt){return Et+mt+".json"},it.getTopojsonFeatures=function(Et,mt){var ut=xt[Et.locationmode],ht=mt.objects[ut];return et(mt,ht).features}},11680:function(Ct){Ct.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},6580:function(Ct){Ct.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},69820:function(Ct,Rt,o){var it=o(24040);Ct.exports=function(et){for(var Et=it.layoutArrayContainers,mt=it.layoutArrayRegexes,ut=et.split("[")[0],ht,j,_=0;_0&&Et.log("Clearing previous rejected promises from queue."),yt._promises=[]},Rt.cleanLayout=function(yt){var St,_t;yt||(yt={}),yt.xaxis1&&(yt.xaxis||(yt.xaxis=yt.xaxis1),delete yt.xaxis1),yt.yaxis1&&(yt.yaxis||(yt.yaxis=yt.yaxis1),delete yt.yaxis1),yt.scene1&&(yt.scene||(yt.scene=yt.scene1),delete yt.scene1);var Mt=(mt.subplotsRegistry.cartesian||{}).attrRegex,Tt=(mt.subplotsRegistry.polar||{}).attrRegex,kt=(mt.subplotsRegistry.ternary||{}).attrRegex,wt=(mt.subplotsRegistry.gl3d||{}).attrRegex,ct=Object.keys(yt);for(St=0;St3?(rr.x=1.02,rr.xanchor="left"):rr.x<-2&&(rr.x=-.02,rr.xanchor="right"),rr.y>3?(rr.y=1.02,rr.yanchor="bottom"):rr.y<-2&&(rr.y=-.02,rr.yanchor="top")),st(yt),yt.dragmode==="rotate"&&(yt.dragmode="orbit"),ht.clean(yt),yt.template&&yt.template.layout&&Rt.cleanLayout(yt.template.layout),yt};function tt(yt,St){var _t=yt[St],Mt=St.charAt(0);_t&&_t!=="paper"&&(yt[St]=j(_t,Mt,!0))}function st(yt){yt&&((typeof yt.title=="string"||typeof yt.title=="number")&&(yt.title={text:yt.title}),St("titlefont","font"),St("titleposition","position"),St("titleside","side"),St("titleoffset","offset"));function St(_t,Mt){var Tt=yt[_t],kt=yt.title&&yt.title[Mt];Tt&&!kt&&(yt.title||(yt.title={}),yt.title[Mt]=yt[_t],delete yt[_t])}}Rt.cleanData=function(yt){for(var St=0;St0)return yt.substr(0,St)}Rt.hasParent=function(yt,St){for(var _t=ft(St);_t;){if(_t in yt)return!0;_t=ft(_t)}return!1};var at=["x","y","z"];Rt.clearAxisTypes=function(yt,St,_t){for(var Mt=0;Mt1&&et.warn("Full array edits are incompatible with other edits",nt);var St=tt[""][""];if(ht(St))rt.set(null);else if(Array.isArray(St))rt.set(St);else return et.warn("Unrecognized full array edit value",nt,St),!0;return ft?!1:(vt(at,yt),dt(_),!0)}var _t=Object.keys(tt).map(Number).sort(Et),Mt=rt.get(),Tt=Mt||[],kt=ot(yt,nt).get(),wt=[],ct=-1,It=Tt.length,At,Ot,Pt,zt,Dt,Nt,$t,Ut;for(At=0;At<_t.length;At++){if(Pt=_t[At],zt=tt[Pt],Dt=Object.keys(zt),Nt=zt[""],$t=ut(Nt),Pt<0||Pt>Tt.length-($t?0:1)){et.warn("index out of range",nt,Pt);continue}if(Nt!==void 0)Dt.length>1&&et.warn("Insertion & removal are incompatible with edits to the same index.",nt,Pt),ht(Nt)?wt.push(Pt):$t?(Nt==="add"&&(Nt={}),Tt.splice(Pt,0,Nt),kt&&kt.splice(Pt,0,{})):et.warn("Unrecognized full object edit value",nt,Pt,Nt),ct===-1&&(ct=Pt);else for(Ot=0;Ot=0;At--)Tt.splice(wt[At],1),kt&&kt.splice(wt[At],1);if(Tt.length?Mt||rt.set(Tt):rt.set(null),ft)return!1;if(vt(at,yt),bt!==xt){var Ht;if(ct===-1)Ht=_t;else{for(It=Math.max(Tt.length,It),Ht=[],At=0;At<_t.length&&(Pt=_t[At],!(Pt>=ct));At++)Ht.push(Pt);for(At=ct;At=ur.data.length||en<-ur.data.length)throw new Error(Pr+" must be valid indices for gd.data.");if(xr.indexOf(en,Vr+1)>-1||en>=0&&xr.indexOf(-ur.data.length+en)>-1||en<0&&xr.indexOf(ur.data.length+en)>-1)throw new Error("each index in "+Pr+" must be unique.")}}function Ht(ur,xr,Pr){if(!Array.isArray(ur.data))throw new Error("gd.data must be an array.");if(typeof xr>"u")throw new Error("currentIndices is a required argument.");if(Array.isArray(xr)||(xr=[xr]),Ut(ur,xr,"currentIndices"),typeof Pr<"u"&&!Array.isArray(Pr)&&(Pr=[Pr]),typeof Pr<"u"&&Ut(ur,Pr,"newIndices"),typeof Pr<"u"&&xr.length!==Pr.length)throw new Error("current and new indices must be of equal length.")}function Vt(ur,xr,Pr){var Vr,en;if(!Array.isArray(ur.data))throw new Error("gd.data must be an array.");if(typeof xr>"u")throw new Error("traces must be defined.");for(Array.isArray(xr)||(xr=[xr]),Vr=0;Vr"u")throw new Error("indices must be an integer or array of integers");Ut(ur,Pr,"indices");for(var rn in xr){if(!Array.isArray(xr[rn])||xr[rn].length!==Pr.length)throw new Error("attribute "+rn+" must be an array of length equal to indices array length");if(en&&(!(rn in Vr)||!Array.isArray(Vr[rn])||Vr[rn].length!==xr[rn].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}}function qt(ur,xr,Pr,Vr){var en=Et.isPlainObject(Vr),rn=[],Cn,xn,fn,bn,Un;Array.isArray(Pr)||(Pr=[Pr]),Pr=$t(Pr,ur.data.length-1);for(var _i in xr)for(var yn=0;yn=0&&Un<_i.length?_i.splice(0,_i.length-Un):[];return[_i,yn]}var rn=er(ur,xr,Pr,Vr,en),Cn=Rt.redraw(ur),xn=[ur,rn.update,Pr,rn.maxPoints];return ht.add(ur,Rt.prependTraces,xn,Jt,arguments),Cn}function Yt(ur,xr,Pr,Vr){ur=Et.getGraphDiv(ur);function en(fn,bn,Un){var _i,yn;if(Et.isTypedArray(fn))if(Un<=0){var Kn=new fn.constructor(0),Jn=lr(bn,fn);Un<0?(_i=Jn,yn=Kn):(_i=Kn,yn=Jn)}else if(_i=new fn.constructor(Un),yn=new fn.constructor(fn.length+bn.length-Un),Un===bn.length)_i.set(bn),yn.set(fn);else if(Un=0&&Un<_i.length?_i.splice(Un,_i.length):[];return[_i,yn]}var rn=er(ur,xr,Pr,Vr,en),Cn=Rt.redraw(ur),xn=[ur,rn.update,Pr,rn.maxPoints];return ht.add(ur,Rt.extendTraces,xn,Yt,arguments),Cn}function rr(ur,xr,Pr){ur=Et.getGraphDiv(ur);var Vr=[],en=Rt.deleteTraces,rn=rr,Cn=[ur,Vr],xn=[ur,xr],fn,bn;for(Vt(ur,xr,Pr),Array.isArray(xr)||(xr=[xr]),xr=xr.map(function(Un){return Et.extendFlat({},Un)}),St.cleanData(xr),fn=0;fn"u")return bn=Rt.redraw(ur),ht.add(ur,en,Cn,rn,xn),bn;Array.isArray(Pr)||(Pr=[Pr]);try{Ht(ur,Vr,Pr)}catch(Un){throw ur.data.splice(ur.data.length-xr.length,xr.length),Un}return ht.startSequence(ur),ht.add(ur,en,Cn,rn,xn),bn=Rt.moveTraces(ur,Vr,Pr),ht.stopSequence(ur),bn}function jt(ur,xr){ur=Et.getGraphDiv(ur);var Pr=[],Vr=Rt.addTraces,en=jt,rn=[ur,Pr,xr],Cn=[ur,xr],xn,fn;if(typeof xr>"u")throw new Error("indices must be an integer or array of integers.");for(Array.isArray(xr)||(xr=[xr]),Ut(ur,xr,"indices"),xr=$t(xr,ur.data.length-1),xr.sort(Et.sorterDes),xn=0;xn"u")for(Pr=[],bn=0;bn-1&&rn.indexOf("grouptitlefont")===-1?xn(rn,rn.replace("titlefont","title.font")):rn.indexOf("titleposition")>-1?xn(rn,rn.replace("titleposition","title.position")):rn.indexOf("titleside")>-1?xn(rn,rn.replace("titleside","title.side")):rn.indexOf("titleoffset")>-1&&xn(rn,rn.replace("titleoffset","title.offset"));function xn(fn,bn){ur[bn]=ur[fn],delete ur[fn]}}function br(ur,xr,Pr){ur=Et.getGraphDiv(ur),St.clearPromiseQueue(ur);var Vr={};if(typeof xr=="string")Vr[xr]=Pr;else if(Et.isPlainObject(xr))Vr=Et.extendFlat({},xr);else return Et.warn("Relayout fail.",xr,Pr),Promise.reject();Object.keys(Vr).length&&(ur.changed=!0);var en=Rr(ur,Vr),rn=en.flags;rn.calc&&(ur.calcdata=void 0);var Cn=[rt.previousPromises];rn.layoutReplot?Cn.push(_t.layoutReplot):Object.keys(Vr).length&&(Tr(ur,rn,en)||rt.supplyDefaults(ur),rn.legend&&Cn.push(_t.doLegend),rn.layoutstyle&&Cn.push(_t.layoutStyles),rn.axrange&&Ir(Cn,en.rangesAltered),rn.ticks&&Cn.push(_t.doTicksRelayout),rn.modebar&&Cn.push(_t.doModeBar),rn.camera&&Cn.push(_t.doCamera),rn.colorbars&&Cn.push(_t.doColorBars),Cn.push(It)),Cn.push(rt.rehover,rt.redrag,rt.reselect),ht.add(ur,br,[ur,en.undoit],br,[ur,en.redoit]);var xn=Et.syncOrAsync(Cn,ur);return(!xn||!xn.then)&&(xn=Promise.resolve(ur)),xn.then(function(){return ur.emit("plotly_relayout",en.eventData),ur})}function Tr(ur,xr,Pr){var Vr=ur._fullLayout;if(!xr.axrange)return!1;for(var en in xr)if(en!=="axrange"&&xr[en])return!1;var rn,Cn,xn=function(Kn,Jn){return Et.coerce(rn,Cn,ot,Kn,Jn)},fn={};for(var bn in Pr.rangesAltered){var Un=tt.id2name(bn);if(rn=ur.layout[Un],Cn=Vr[Un],st(rn,Cn,xn,fn),Cn._matchGroup){for(var _i in Cn._matchGroup)if(_i!==bn){var yn=Vr[tt.id2name(_i)];yn.autorange=Cn.autorange,yn.range=Cn.range.slice(),yn._input.range=Cn.range.slice()}}}return!0}function Ir(ur,xr){var Pr=xr?function(Vr){var en=[],rn=!0;for(var Cn in xr){var xn=tt.getFromId(Vr,Cn);if(en.push(Cn),(xn.ticklabelposition||"").indexOf("inside")!==-1&&xn._anchorAxis&&en.push(xn._anchorAxis._id),xn._matchGroup)for(var fn in xn._matchGroup)xr[fn]||en.push(fn)}return tt.draw(Vr,en,{skipTitle:rn})}:function(Vr){return tt.draw(Vr,"redraw")};ur.push(ft,_t.doAutoRangeAndConstraints,Pr,_t.drawData,_t.finalDraw)}var Ar=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,_r=/^[xyz]axis[0-9]*\.autorange$/,Er=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function Rr(ur,xr){var Pr=ur.layout,Vr=ur._fullLayout,en=Vr._guiEditing,rn=Kt(Vr._preGUI,en),Cn=Object.keys(xr),xn=tt.list(ur),fn=Et.extendDeepAll({},xr),bn={},Un,_i,yn;for(hr(xr),Cn=Object.keys(xr),_i=0;_i0&&typeof Vn.parts[qn]!="string";)qn--;var po=Vn.parts[qn],Yr=Vn.parts[qn-1]+"."+po,Wr=Vn.parts.slice(0,qn).join("."),$n=mt(ur.layout,Wr).get(),Bn=mt(Vr,Wr).get(),xa=Vn.get();if(ga!==void 0){An[Wn]=ga,hn[Wn]=po==="reverse"?ga:Zt(xa);var ro=_.getLayoutValObject(Vr,Vn.parts);if(ro&&ro.impliedEdits&&ga!==null)for(var io in ro.impliedEdits)wn(Et.relativeAttr(Wn,io),ro.impliedEdits[io]);if(["width","height"].indexOf(Wn)!==-1)if(ga){wn("autosize",null);var eo=Wn==="height"?"width":"height";wn(eo,Vr[eo])}else Vr[Wn]=ur._initialAutoSize[Wn];else if(Wn==="autosize")wn("width",ga?null:Vr.width),wn("height",ga?null:Vr.height);else if(Yr.match(Ar))Xn(Yr),mt(Vr,Wr+"._inputRange").set(null);else if(Yr.match(_r)){Xn(Yr),mt(Vr,Wr+"._inputRange").set(null);var Gn=mt(Vr,Wr).get();Gn._inputDomain&&(Gn._input.domain=Gn._inputDomain.slice())}else Yr.match(Er)&&mt(Vr,Wr+"._inputDomain").set(null);if(po==="type"){Ln=$n;var ho=Bn.type==="linear"&&ga==="log",go=Bn.type==="log"&&ga==="linear";if(ho||go){if(!Ln||!Ln.range)wn(Wr+".autorange",!0);else if(Bn.autorange)ho&&(Ln.range=Ln.range[1]>Ln.range[0]?[1,2]:[2,1]);else{var _o=Ln.range[0],co=Ln.range[1];ho?(_o<=0&&co<=0&&wn(Wr+".autorange",!0),_o<=0?_o=co/1e6:co<=0&&(co=_o/1e6),wn(Wr+".range[0]",Math.log(_o)/Math.LN10),wn(Wr+".range[1]",Math.log(co)/Math.LN10)):(wn(Wr+".range[0]",Math.pow(10,_o)),wn(Wr+".range[1]",Math.pow(10,co)))}Array.isArray(Vr._subplots.polar)&&Vr._subplots.polar.length&&Vr[Vn.parts[0]]&&Vn.parts[1]==="radialaxis"&&delete Vr[Vn.parts[0]]._subplot.viewInitial["radialaxis.range"],j.getComponentMethod("annotations","convertCoords")(ur,Bn,ga,wn),j.getComponentMethod("images","convertCoords")(ur,Bn,ga,wn)}else wn(Wr+".autorange",!0),wn(Wr+".range",null);mt(Vr,Wr+"._inputRange").set(null)}else if(po.match(Tt)){var zo=mt(Vr,Wn).get(),Io=(ga||{}).type;(!Io||Io==="-")&&(Io="linear"),j.getComponentMethod("annotations","convertCoords")(ur,zo,Io,wn),j.getComponentMethod("images","convertCoords")(ur,zo,Io,wn)}var Lo=yt.containerArrayMatch(Wn);if(Lo){Un=Lo.array,_i=Lo.index;var vs=Lo.property,Zo=ro||{editType:"calc"};_i!==""&&vs===""&&(yt.isAddVal(ga)?hn[Wn]=null:yt.isRemoveVal(ga)?hn[Wn]=(mt(Pr,Un).get()||[])[_i]:Et.warn("unrecognized full object value",xr)),Mt.update(ba,Zo),bn[Un]||(bn[Un]={});var Ls=bn[Un][_i];Ls||(Ls=bn[Un][_i]={}),Ls[vs]=ga,delete xr[Wn]}else po==="reverse"?($n.range?$n.range.reverse():(wn(Wr+".autorange",!0),$n.range=[1,0]),Bn.autorange?ba.calc=!0:ba.plot=!0):(Wn==="dragmode"&&(ga===!1&&xa!==!1||ga!==!1&&xa===!1)||Vr._has("scatter-like")&&Vr._has("regl")&&Wn==="dragmode"&&(ga==="lasso"||ga==="select")&&!(xa==="lasso"||xa==="select")||Vr._has("gl2d")?ba.plot=!0:ro?Mt.update(ba,ro):ba.calc=!0,Vn.set(ga))}}for(Un in bn){var Ds=yt.applyContainerArrayChanges(ur,rn(Pr,Un),bn[Un],ba,rn);Ds||(ba.plot=!0)}for(var bo in In){Ln=tt.getFromId(ur,bo);var No=Ln&&Ln._constraintGroup;if(No){ba.calc=!0;for(var Yo in No)In[Yo]||(tt.getFromId(ur,Yo)._constraintShrinkable=!0)}}(zr(ur)||xr.height||xr.width)&&(ba.plot=!0);var Oo=Vr.shapes;for(_i=0;_i1;)if(Vr.pop(),Pr=mt(xr,Vr.join(".")+".uirevision").get(),Pr!==void 0)return Pr;return xr.uirevision}function qr(ur,xr){for(var Pr=0;Pr=en.length?en[0]:en[bn]:en}function xn(bn){return Array.isArray(rn)?bn>=rn.length?rn[0]:rn[bn]:rn}function fn(bn,Un){var _i=0;return function(){if(bn&&++_i===Un)return bn()}}return new Promise(function(bn,Un){function _i(){if(Vr._frameQueue.length!==0){for(;Vr._frameQueue.length;){var po=Vr._frameQueue.pop();po.onInterrupt&&po.onInterrupt()}ur.emit("plotly_animationinterrupted",[])}}function yn(po){if(po.length!==0){for(var Yr=0;YrVr._timeToNext&&Jn()};po()}var ba=0;function An(po){return Array.isArray(en)?ba>=en.length?po.transitionOpts=en[ba]:po.transitionOpts=en[0]:po.transitionOpts=en,ba++,po}var hn,wn,In=[],Ln=xr==null,Xn=Array.isArray(xr),Wn=!Ln&&!Xn&&Et.isPlainObject(xr);if(Wn)In.push({type:"object",data:An(Et.extendFlat({},xr))});else if(Ln||["string","number"].indexOf(typeof xr)!==-1)for(hn=0;hn0&&fofo)&&qn.push(wn);In=qn}}In.length>0?yn(In):(ur.emit("plotly_animated"),bn())})}function Gr(ur,xr,Pr){if(ur=Et.getGraphDiv(ur),xr==null)return Promise.resolve();if(!Et.isPlotDiv(ur))throw new Error("This element is not a Plotly plot: "+ur+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var Vr,en,rn,Cn,xn=ur._transitionData._frames,fn=ur._transitionData._frameHash;if(!Array.isArray(xr))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+xr);var bn=xn.length+xr.length*2,Un=[],_i={};for(Vr=xr.length-1;Vr>=0;Vr--)if(Et.isPlainObject(xr[Vr])){var yn=xr[Vr].name,Kn=(fn[yn]||_i[yn]||{}).name,Jn=xr[Vr].name,so=fn[Kn]||_i[Kn];Kn&&Jn&&typeof Jn=="number"&&so&&ktVn.index?-1:Wn.index=0;Vr--){if(en=Un[Vr].frame,typeof en.name=="number"&&Et.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!en.name)for(;fn[en.name="frame "+ur._transitionData._counter++];);if(fn[en.name]){for(rn=0;rn=0;Pr--)Vr=xr[Pr],rn.push({type:"delete",index:Vr}),Cn.unshift({type:"insert",index:Vr,value:en[Vr]});var xn=rt.modifyFrames,fn=rt.modifyFrames,bn=[ur,Cn],Un=[ur,rn];return ht&&ht.add(ur,xn,bn,fn,Un),rt.modifyFrames(ur,rn)}function vr(ur){ur=Et.getGraphDiv(ur);var xr=ur._fullLayout||{},Pr=ur._fullData||[];return rt.cleanPlot([],{},Pr,xr),rt.purge(ur),ut.purge(ur),xr._container&&xr._container.remove(),delete ur._context,ur}function Dr(ur){var xr=ur._fullLayout,Pr=ur.getBoundingClientRect();if(!Et.equalDomRects(Pr,xr._lastBBox)){var Vr=xr._invTransform=Et.inverseTransformMatrix(Et.getFullTransformMatrix(ur));xr._invScaleX=Math.sqrt(Vr[0][0]*Vr[0][0]+Vr[0][1]*Vr[0][1]+Vr[0][2]*Vr[0][2]),xr._invScaleY=Math.sqrt(Vr[1][0]*Vr[1][0]+Vr[1][1]*Vr[1][1]+Vr[1][2]*Vr[1][2]),xr._lastBBox=Pr}}function Sr(ur){var xr=it.select(ur),Pr=ur._fullLayout;if(Pr._calcInverseTransform=Dr,Pr._calcInverseTransform(ur),Pr._container=xr.selectAll(".plot-container").data([0]),Pr._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0),Pr._paperdiv=Pr._container.selectAll(".svg-container").data([0]),Pr._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),Pr._glcontainer=Pr._paperdiv.selectAll(".gl-container").data([{}]),Pr._glcontainer.enter().append("div").classed("gl-container",!0),Pr._paperdiv.selectAll(".main-svg").remove(),Pr._paperdiv.select(".modebar-container").remove(),Pr._paper=Pr._paperdiv.insert("svg",":first-child").classed("main-svg",!0),Pr._toppaper=Pr._paperdiv.append("svg").classed("main-svg",!0),Pr._modebardiv=Pr._paperdiv.append("div"),delete Pr._modeBar,Pr._hoverpaper=Pr._paperdiv.append("svg").classed("main-svg",!0),!Pr._uid){var Vr={};it.selectAll("defs").each(function(){this.id&&(Vr[this.id.split("-")[1]]=1)}),Pr._uid=Et.randstr(Vr)}Pr._paperdiv.selectAll(".main-svg").attr(bt.svgAttrs),Pr._defs=Pr._paper.append("defs").attr("id","defs-"+Pr._uid),Pr._clips=Pr._defs.append("g").classed("clips",!0),Pr._topdefs=Pr._toppaper.append("defs").attr("id","topdefs-"+Pr._uid),Pr._topclips=Pr._topdefs.append("g").classed("clips",!0),Pr._bgLayer=Pr._paper.append("g").classed("bglayer",!0),Pr._draggers=Pr._paper.append("g").classed("draglayer",!0);var en=Pr._paper.append("g").classed("layer-below",!0);Pr._imageLowerLayer=en.append("g").classed("imagelayer",!0),Pr._shapeLowerLayer=en.append("g").classed("shapelayer",!0),Pr._cartesianlayer=Pr._paper.append("g").classed("cartesianlayer",!0),Pr._polarlayer=Pr._paper.append("g").classed("polarlayer",!0),Pr._smithlayer=Pr._paper.append("g").classed("smithlayer",!0),Pr._ternarylayer=Pr._paper.append("g").classed("ternarylayer",!0),Pr._geolayer=Pr._paper.append("g").classed("geolayer",!0),Pr._funnelarealayer=Pr._paper.append("g").classed("funnelarealayer",!0),Pr._pielayer=Pr._paper.append("g").classed("pielayer",!0),Pr._iciclelayer=Pr._paper.append("g").classed("iciclelayer",!0),Pr._treemaplayer=Pr._paper.append("g").classed("treemaplayer",!0),Pr._sunburstlayer=Pr._paper.append("g").classed("sunburstlayer",!0),Pr._indicatorlayer=Pr._toppaper.append("g").classed("indicatorlayer",!0),Pr._glimages=Pr._paper.append("g").classed("glimages",!0);var rn=Pr._toppaper.append("g").classed("layer-above",!0);Pr._imageUpperLayer=rn.append("g").classed("imagelayer",!0),Pr._shapeUpperLayer=rn.append("g").classed("shapelayer",!0),Pr._selectionLayer=Pr._toppaper.append("g").classed("selectionlayer",!0),Pr._infolayer=Pr._toppaper.append("g").classed("infolayer",!0),Pr._menulayer=Pr._toppaper.append("g").classed("menulayer",!0),Pr._zoomlayer=Pr._toppaper.append("g").classed("zoomlayer",!0),Pr._hoverlayer=Pr._hoverpaper.append("g").classed("hoverlayer",!0),Pr._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),ur.emit("plotly_framework")}Rt.animate=jr,Rt.addFrames=Gr,Rt.deleteFrames=wr,Rt.addTraces=rr,Rt.deleteTraces=jt,Rt.extendTraces=Jt,Rt.moveTraces=ar,Rt.prependTraces=Yt,Rt.newPlot=Nt,Rt._doPlot=ct,Rt.purge=vr,Rt.react=pn,Rt.redraw=Dt,Rt.relayout=br,Rt.restyle=sr,Rt.setPlotConfig=At,Rt.update=Br,Rt._guiRelayout=kr(br),Rt._guiRestyle=kr(sr),Rt._guiUpdate=kr(Br),Rt._storeDirectGUIEdit=tr},20556:function(Ct){var Rt={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox"],extras:[!0,!1],dflt:"gl3d+geo+mapbox"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},globalTransforms:{valType:"any",dflt:[]},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},o={};function it(xt,et){for(var Et in xt){var mt=xt[Et];mt.valType?et[Et]=mt.dflt:(et[Et]||(et[Et]={}),it(mt,et[Et]))}}it(Rt,o),Ct.exports={configAttributes:Rt,dfltConfig:o}},73060:function(Ct,Rt,o){var it=o(24040),xt=o(3400),et=o(45464),Et=o(64859),mt=o(16672),ut=o(85656),ht=o(20556).configAttributes,j=o(67824),_=xt.extendDeepAll,rt=xt.isPlainObject,tt=xt.isArrayOrTypedArray,st=xt.nestedProperty,ot=xt.valObjectMeta,nt="_isSubplotObj",vt="_isLinkedToArray",dt="_arrayAttrRegexps",bt="_deprecated",ft=[nt,vt,dt,bt];Rt.IS_SUBPLOT_OBJ=nt,Rt.IS_LINKED_TO_ARRAY=vt,Rt.DEPRECATED=bt,Rt.UNDERSCORE_ATTRS=ft,Rt.get=function(){var zt={};it.allTypes.forEach(function(Nt){zt[Nt]=_t(Nt)});var Dt={};return Object.keys(it.transformsRegistry).forEach(function(Nt){Dt[Nt]=Tt(Nt)}),{defs:{valObjects:ot,metaKeys:ft.concat(["description","role","editType","impliedEdits"]),editType:{traces:j.traces,layout:j.layout},impliedEdits:{}},traces:zt,layout:Mt(),transforms:Dt,frames:kt(),animation:wt(ut),config:wt(ht)}},Rt.crawl=function(zt,Dt,Nt,$t){var Ut=Nt||0;$t=$t||"",Object.keys(zt).forEach(function(Ht){var Vt=zt[Ht];if(ft.indexOf(Ht)===-1){var Xt=($t?$t+".":"")+Ht;Dt(Vt,Ht,zt,Ut,Xt),!Rt.isValObject(Vt)&&rt(Vt)&&Ht!=="impliedEdits"&&Rt.crawl(Vt,Dt,Ut+1,Xt)}})},Rt.isValObject=function(zt){return zt&&zt.valType!==void 0},Rt.findArrayAttributes=function(zt){var Dt=[],Nt=[],$t=[],Ut,Ht;function Vt(Yt,rr,jt,ar){Nt=Nt.slice(0,ar).concat([rr]),$t=$t.slice(0,ar).concat([Yt&&Yt._isLinkedToArray]);var sr=Yt&&(Yt.valType==="data_array"||Yt.arrayOk===!0)&&!(Nt[ar-1]==="colorbar"&&(rr==="ticktext"||rr==="tickvals"));sr&&Xt(Ut,0,"")}function Xt(Yt,rr,jt){var ar=Yt[Nt[rr]],sr=jt+Nt[rr];if(rr===Nt.length-1)tt(ar)&&Dt.push(Ht+sr);else if($t[rr]){if(Array.isArray(ar))for(var Zt=0;Zt=Vt.length)return!1;Ut=(it.transformsRegistry[Vt[Xt].type]||{}).attributes,Ht=Ut&&Ut[Dt[2]],$t=3}else{var qt=zt._module;if(qt||(qt=(it.modules[zt.type||et.type.dflt]||{})._module),!qt)return!1;if(Ut=qt.attributes,Ht=Ut&&Ut[Nt],!Ht){var er=qt.basePlotModule;er&&er.attributes&&(Ht=er.attributes[Nt])}Ht||(Ht=et[Nt])}return yt(Ht,Dt,$t)},Rt.getLayoutValObject=function(zt,Dt){var Nt=at(zt,Dt[0]);return yt(Nt,Dt,1)};function at(zt,Dt){var Nt,$t,Ut,Ht,Vt=zt._basePlotModules;if(Vt){var Xt;for(Nt=0;Nt=Ht.length)return!1;if(zt.dimensions===2){if(Nt++,Dt.length===Nt)return zt;var Vt=Dt[Nt];if(!St(Vt))return!1;zt=Ht[Ut][Vt]}else zt=Ht[Ut]}else zt=Ht}}return zt}function St(zt){return zt===Math.round(zt)&&zt>=0}function _t(zt){var Dt,Nt;Dt=it.modules[zt]._module,Nt=Dt.basePlotModule;var $t={};$t.type=null;var Ut=_({},et),Ht=_({},Dt.attributes);Rt.crawl(Ht,function(qt,er,lr,Jt,Yt){st(Ut,Yt).set(void 0),qt===void 0&&st(Ht,Yt).set(void 0)}),_($t,Ut),it.traceIs(zt,"noOpacity")&&delete $t.opacity,it.traceIs(zt,"showLegend")||(delete $t.showlegend,delete $t.legendgroup),it.traceIs(zt,"noHover")&&(delete $t.hoverinfo,delete $t.hoverlabel),Dt.selectPoints||delete $t.selectedpoints,_($t,Ht),Nt.attributes&&_($t,Nt.attributes),$t.type=zt;var Vt={meta:Dt.meta||{},categories:Dt.categories||{},animatable:Boolean(Dt.animatable),type:zt,attributes:wt($t)};if(Dt.layoutAttributes){var Xt={};_(Xt,Dt.layoutAttributes),Vt.layoutAttributes=wt(Xt)}return Dt.animatable||Rt.crawl(Vt,function(qt){Rt.isValObject(qt)&&"anim"in qt&&delete qt.anim}),Vt}function Mt(){var zt={},Dt,Nt;_(zt,Et);for(Dt in it.subplotsRegistry)if(Nt=it.subplotsRegistry[Dt],!!Nt.layoutAttributes)if(Array.isArray(Nt.attr))for(var $t=0;$t=rt&&(_._input||{})._templateitemname;st&&(tt=rt);var ot=j+"["+tt+"]",nt;function vt(){nt={},st&&(nt[ot]={},nt[ot][et]=st)}vt();function dt(yt,St){nt[yt]=St}function bt(yt,St){st?it.nestedProperty(nt[ot],yt).set(St):nt[ot+"."+yt]=St}function ft(){var yt=nt;return vt(),yt}function at(yt,St){yt&&bt(yt,St);var _t=ft();for(var Mt in _t)it.nestedProperty(ht,Mt).set(_t[Mt])}return{modifyBase:dt,modifyItem:bt,getUpdateObj:ft,applyUpdate:at}}},39172:function(Ct,Rt,o){var it=o(33428),xt=o(24040),et=o(7316),Et=o(3400),mt=o(72736),ut=o(73696),ht=o(76308),j=o(43616),_=o(81668),rt=o(45460),tt=o(54460),st=o(84284),ot=o(71888),nt=ot.enforce,vt=ot.clean,dt=o(19280).doAutoRange,bt="start",ft="middle",at="end";Rt.layoutStyles=function(Nt){return Et.syncOrAsync([et.doAutoMargin,St],Nt)};function yt(Nt,$t,Ut){for(var Ht=0;Ht=Nt[1]||Vt[1]<=Nt[0])&&Xt[0]<$t[1]&&Xt[1]>$t[0])return!0}return!1}function St(Nt){var $t=Nt._fullLayout,Ut=$t._size,Ht=Ut.p,Vt=tt.list(Nt,"",!0),Xt,qt,er,lr,Jt,Yt;if($t._paperdiv.style({width:Nt._context.responsive&&$t.autosize&&!Nt._context._hasZeroWidth&&!Nt.layout.width?"100%":$t.width+"px",height:Nt._context.responsive&&$t.autosize&&!Nt._context._hasZeroHeight&&!Nt.layout.height?"100%":$t.height+"px"}).selectAll(".main-svg").call(j.setSize,$t.width,$t.height),Nt._context.setBackground(Nt,$t.paper_bgcolor),Rt.drawMainTitle(Nt),rt.manage(Nt),!$t._has("cartesian"))return et.previousPromises(Nt);function rr(vr,Dr,Sr){var ur=vr._lw/2;if(vr._id.charAt(0)==="x"){if(Dr){if(Sr==="top")return Dr._offset-Ht-ur}else return Ut.t+Ut.h*(1-(vr.position||0))+ur%1;return Dr._offset+Dr._length+Ht+ur}if(Dr){if(Sr==="right")return Dr._offset+Dr._length+Ht+ur}else return Ut.l+Ut.w*(vr.position||0)+ur%1;return Dr._offset-Ht-ur}for(Xt=0;Xt0){It(Nt,Xt,Jt,lr),er.attr({x:qt,y:Xt,"text-anchor":Ht,dy:Pt($t.yanchor)}).call(mt.positionText,qt,Xt);var Yt=($t.text.match(mt.BR_TAG_ALL)||[]).length;if(Yt){var rr=st.LINE_SPACING*Yt+st.MID_SHIFT;$t.y===0&&(rr=-rr),er.selectAll(".line").each(function(){var jt=+this.getAttribute("dy").slice(0,-2)-rr+"em";this.setAttribute("dy",jt)})}}}};function kt(Nt,$t,Ut,Ht,Vt){var Xt=$t.yref==="paper"?Nt._fullLayout._size.h:Nt._fullLayout.height,qt=Et.isTopAnchor($t)?Ht:Ht-Vt,er=Ut==="b"?Xt-qt:qt;return Et.isTopAnchor($t)&&Ut==="t"||Et.isBottomAnchor($t)&&Ut==="b"?!1:er.5?"t":"b",qt=Nt._fullLayout.margin[Xt],er=0;return $t.yref==="paper"?er=Ut+$t.pad.t+$t.pad.b:$t.yref==="container"&&(er=wt(Xt,Ht,Vt,Nt._fullLayout.height,Ut)+$t.pad.t+$t.pad.b),er>qt?er:0}function It(Nt,$t,Ut,Ht){var Vt="title.automargin",Xt=Nt._fullLayout.title,qt=Xt.y>.5?"t":"b",er={x:Xt.x,y:Xt.y,t:0,b:0},lr={};Xt.yref==="paper"&&kt(Nt,Xt,qt,$t,Ht)?er[qt]=Ut:Xt.yref==="container"&&(lr[qt]=Ut,Nt._fullLayout._reservedMargin[Vt]=lr),et.allowAutoMargin(Nt,Vt),et.autoMargin(Nt,Vt,er)}function At(Nt,$t){var Ut=Nt.title,Ht=Nt._size,Vt=0;switch($t===bt?Vt=Ut.pad.l:$t===at&&(Vt=-Ut.pad.r),Ut.xref){case"paper":return Ht.l+Ht.w*Ut.x+Vt;case"container":default:return Nt.width*Ut.x+Vt}}function Ot(Nt,$t){var Ut=Nt.title,Ht=Nt._size,Vt=0;if($t==="0em"||!$t?Vt=-Ut.pad.b:$t===st.CAP_SHIFT+"em"&&(Vt=Ut.pad.t),Ut.y==="auto")return Ht.t/2;switch(Ut.yref){case"paper":return Ht.t+Ht.h-Ht.h*Ut.y+Vt;case"container":default:return Nt.height-Nt.height*Ut.y+Vt}}function Pt(Nt){return Nt==="top"?st.CAP_SHIFT+.3+"em":Nt==="bottom"?"-0.3em":st.MID_SHIFT+"em"}function zt(Nt){var $t=Nt.title,Ut=ft;return Et.isRightAnchor($t)?Ut=at:Et.isLeftAnchor($t)&&(Ut=bt),Ut}function Dt(Nt){var $t=Nt.title,Ut="0em";return Et.isTopAnchor($t)?Ut=st.CAP_SHIFT+"em":Et.isMiddleAnchor($t)&&(Ut=st.MID_SHIFT+"em"),Ut}Rt.doTraceStyle=function(Nt){var $t=Nt.calcdata,Ut=[],Ht;for(Ht=0;Ht<$t.length;Ht++){var Vt=$t[Ht],Xt=Vt[0]||{},qt=Xt.trace||{},er=qt._module||{},lr=er.arraysToCalcdata;lr&&lr(Vt,qt);var Jt=er.editStyle;Jt&&Ut.push({fn:Jt,cd0:Xt})}if(Ut.length){for(Ht=0;HtDt?_t.push({code:"unused",traceType:At,templateCount:zt,dataCount:Dt}):Dt>zt&&_t.push({code:"reused",traceType:At,templateCount:zt,dataCount:Dt})}}function Nt($t,Ut){for(var Ht in $t)if(Ht.charAt(0)!=="_"){var Vt=$t[Ht],Xt=ot($t,Ht,Ut);xt(Vt)?(Array.isArray($t)&&Vt._template===!1&&Vt.templateitemname&&_t.push({code:"missing",path:Xt,templateitemname:Vt.templateitemname}),Nt(Vt,Xt)):Array.isArray(Vt)&&nt(Vt)&&Nt(Vt,Xt)}}if(Nt({data:Tt,layout:Mt},""),_t.length)return _t.map(vt)};function nt(dt){for(var bt=0;bt1&&_t.push(st("object","layout"))),xt.supplyDefaults(Mt);for(var wt=Mt._fullData,ct=Tt.length,It=0;ItAt.length&&St.push(st("unused",_t,ct.concat(At.length)));var $t=At.length,Ut=Array.isArray(Nt);Ut&&($t=Math.min($t,Nt.length));var Ht,Vt,Xt,qt,er;if(Ot.dimensions===2)for(Vt=0;Vt<$t;Vt++)if(ut(It[Vt])){It[Vt].length>At[Vt].length&&St.push(st("unused",_t,ct.concat(Vt,At[Vt].length)));var lr=At[Vt].length;for(Ht=0;Ht<(Ut?Math.min(lr,Nt[Vt].length):lr);Ht++)Xt=Ut?Nt[Vt][Ht]:Nt,qt=It[Vt][Ht],er=At[Vt][Ht],it.validate(qt,Xt)?er!==qt&&er!==+qt&&St.push(st("dynamic",_t,ct.concat(Vt,Ht),qt,er)):St.push(st("value",_t,ct.concat(Vt,Ht),qt))}else St.push(st("array",_t,ct.concat(Vt),It[Vt]));else for(Vt=0;Vt<$t;Vt++)Xt=Ut?Nt[Vt]:Nt,qt=It[Vt],er=At[Vt],it.validate(qt,Xt)?er!==qt&&er!==+qt&&St.push(st("dynamic",_t,ct.concat(Vt),qt,er)):St.push(st("value",_t,ct.concat(Vt),qt))}else if(Ot.items&&!zt&&ut(It)){var Jt=Nt[Object.keys(Nt)[0]],Yt=[],rr,jt;for(rr=0;rr0&&Math.round(vt)===vt)nt=vt;else return{vals:tt}}for(var dt=_.calendar,bt=st==="start",ft=st==="end",at=j[rt+"period0"],yt=et(at,dt)||0,St=[],_t=[],Mt=[],Tt=tt.length,kt=0;ktwt;)At=Et(At,-nt,dt);for(;At<=wt;)At=Et(At,nt,dt);It=Et(At,-nt,dt)}else{for(ct=Math.round((wt-yt)/ot),At=yt+ct*ot;At>wt;)At-=ot;for(;At<=wt;)At+=ot;It=At-ot}St[kt]=bt?It:ft?At:(It+At)/2,_t[kt]=It,Mt[kt]=At}return{vals:St,starts:_t,ends:Mt}}},26720:function(Ct){Ct.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},19280:function(Ct,Rt,o){var it=o(33428),xt=o(38248),et=o(3400),Et=o(39032).FP_SAFE,mt=o(24040),ut=o(43616),ht=o(79811),j=ht.getFromId,_=ht.isLinked;Ct.exports={applyAutorangeOptions:ct,getAutoRange:rt,makePadFn:st,doAutoRange:dt,findExtremes:bt,concatExtremes:vt};function rt(It,At){var Ot,Pt,zt=[],Dt=It._fullLayout,Nt=st(Dt,At,0),$t=st(Dt,At,1),Ut=vt(It,At),Ht=Ut.min,Vt=Ut.max;if(Ht.length===0||Vt.length===0)return et.simpleMap(At.range,At.r2l);var Xt=Ht[0].val,qt=Vt[0].val;for(Ot=1;Ot0&&(hr=ar-Nt(Kt)-$t(or),hr>sr?br/hr>Zt&&(tr=Kt,cr=or,Zt=br/hr):br/ar>Zt&&(tr={val:Kt.val,nopad:1},cr={val:or.val,nopad:1},Zt=br/ar));function Tr(Rr,zr){return Math.max(Rr,$t(zr))}if(Xt===qt){var Ir=Xt-1,Ar=Xt+1;if(rr)if(Xt===0)zt=[0,1];else{var _r=(Xt>0?Vt:Ht).reduce(Tr,0),Er=Xt/(1-Math.min(.5,_r/ar));zt=Xt>0?[0,Er]:[Er,0]}else jt?zt=[Math.max(0,Ir),Math.max(1,Ar)]:zt=[Ir,Ar]}else rr?(tr.val>=0&&(tr={val:0,nopad:1}),cr.val<=0&&(cr={val:0,nopad:1})):jt&&(tr.val-Zt*Nt(tr)<0&&(tr={val:0,nopad:1}),cr.val<=0&&(cr={val:1,nopad:1})),Zt=(cr.val-tr.val-tt(At,Kt.val,or.val))/(ar-Nt(tr)-$t(cr)),zt=[tr.val-Zt*Nt(tr),cr.val+Zt*$t(cr)];return zt=ct(zt,At),At.limitRange&&At.limitRange(),lr&&zt.reverse(),et.simpleMap(zt,At.l2r||Number)}function tt(It,At,Ot){var Pt=0;if(It.rangebreaks)for(var zt=It.locateBreaks(At,Ot),Dt=0;Dt0?Ot.ppadplus:Ot.ppadminus)||Ot.ppad||0),Kt=sr((It._m>0?Ot.ppadminus:Ot.ppadplus)||Ot.ppad||0),or=sr(Ot.vpadplus||Ot.vpad),tr=sr(Ot.vpadminus||Ot.vpad);if(!Ht){if(jt=1/0,ar=-1/0,Ut)for(Xt=0;Xt0&&(jt=qt),qt>ar&&qt-Et&&(jt=qt),qt>ar&&qt=br;Xt--)hr(Xt);return{min:Pt,max:zt,opts:Ot}}function ft(It,At,Ot,Pt){yt(It,At,Ot,Pt,_t)}function at(It,At,Ot,Pt){yt(It,At,Ot,Pt,Mt)}function yt(It,At,Ot,Pt,zt){for(var Dt=Pt.tozero,Nt=Pt.extrapad,$t=!0,Ut=0;Ut=Ot&&(Ht.extrapad||!Nt)){$t=!1;break}else zt(At,Ht.val)&&Ht.pad<=Ot&&(Nt||!Ht.extrapad)&&(It.splice(Ut,1),Ut--)}if($t){var Vt=Dt&&At===0;It.push({val:At,pad:Vt?0:Ot,extrapad:Vt?!1:Nt})}}function St(It){return xt(It)&&Math.abs(It)=At}function Tt(It,At){var Ot=At.autorangeoptions;return Ot&&Ot.minallowed!==void 0&&wt(At,Ot.minallowed,Ot.maxallowed)?Ot.minallowed:Ot&&Ot.clipmin!==void 0&&wt(At,Ot.clipmin,Ot.clipmax)?Math.max(It,At.d2l(Ot.clipmin)):It}function kt(It,At){var Ot=At.autorangeoptions;return Ot&&Ot.maxallowed!==void 0&&wt(At,Ot.minallowed,Ot.maxallowed)?Ot.maxallowed:Ot&&Ot.clipmax!==void 0&&wt(At,Ot.clipmin,Ot.clipmax)?Math.min(It,At.d2l(Ot.clipmax)):It}function wt(It,At,Ot){return At!==void 0&&Ot!==void 0?(At=It.d2l(At),Ot=It.d2l(Ot),At=Ut&&(Dt=Ut,Ot=Ut),Nt<=Ut&&(Nt=Ut,Pt=Ut)}}return Ot=Tt(Ot,At),Pt=kt(Pt,At),[Ot,Pt]}},76808:function(Ct){Ct.exports=function(o,it,xt){var et,Et;if(xt){var mt=it==="reversed"||it==="min reversed"||it==="max reversed";et=xt[mt?1:0],Et=xt[mt?0:1]}var ut=o("autorangeoptions.minallowed",Et===null?et:void 0),ht=o("autorangeoptions.maxallowed",et===null?Et:void 0);ut===void 0&&o("autorangeoptions.clipmin"),ht===void 0&&o("autorangeoptions.clipmax"),o("autorangeoptions.include")}},54460:function(Ct,Rt,o){var it=o(33428),xt=o(38248),et=o(7316),Et=o(24040),mt=o(3400),ut=mt.strTranslate,ht=o(72736),j=o(81668),_=o(76308),rt=o(43616),tt=o(94724),st=o(98728),ot=o(39032),nt=ot.ONEMAXYEAR,vt=ot.ONEAVGYEAR,dt=ot.ONEMINYEAR,bt=ot.ONEMAXQUARTER,ft=ot.ONEAVGQUARTER,at=ot.ONEMINQUARTER,yt=ot.ONEMAXMONTH,St=ot.ONEAVGMONTH,_t=ot.ONEMINMONTH,Mt=ot.ONEWEEK,Tt=ot.ONEDAY,kt=Tt/2,wt=ot.ONEHOUR,ct=ot.ONEMIN,It=ot.ONESEC,At=ot.MINUS_SIGN,Ot=ot.BADNUM,Pt={K:"zeroline"},zt={K:"gridline",L:"path"},Dt={K:"minor-gridline",L:"path"},Nt={K:"tick",L:"path"},$t={K:"tick",L:"text"},Ut={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},Ht=o(84284),Vt=Ht.MID_SHIFT,Xt=Ht.CAP_SHIFT,qt=Ht.LINE_SPACING,er=Ht.OPPOSITE_SIDE,lr=3,Jt=Ct.exports={};Jt.setConvert=o(78344);var Yt=o(52976),rr=o(79811),jt=rr.idSort,ar=rr.isLinked;Jt.id2name=rr.id2name,Jt.name2id=rr.name2id,Jt.cleanId=rr.cleanId,Jt.list=rr.list,Jt.listIds=rr.listIds,Jt.getFromId=rr.getFromId,Jt.getFromTrace=rr.getFromTrace;var sr=o(19280);Jt.getAutoRange=sr.getAutoRange,Jt.findExtremes=sr.findExtremes;var Zt=1e-4;function Kt(Yr){var Wr=(Yr[1]-Yr[0])*Zt;return[Yr[0]-Wr,Yr[1]+Wr]}Jt.coerceRef=function(Yr,Wr,$n,Bn,xa,ro){var io=Bn.charAt(Bn.length-1),eo=$n._fullLayout._subplots[io+"axis"],Gn=Bn+"ref",ho={};return xa||(xa=eo[0]||(typeof ro=="string"?ro:ro[0])),ro||(ro=xa),eo=eo.concat(eo.map(function(go){return go+" domain"})),ho[Gn]={valType:"enumerated",values:eo.concat(ro?typeof ro=="string"?[ro]:ro:[]),dflt:xa},mt.coerce(Yr,Wr,ho,Gn)},Jt.getRefType=function(Yr){return Yr===void 0?Yr:Yr==="paper"?"paper":Yr==="pixel"?"pixel":/( domain)$/.test(Yr)?"domain":"range"},Jt.coercePosition=function(Yr,Wr,$n,Bn,xa,ro){var io,eo,Gn=Jt.getRefType(Bn);if(Gn!=="range")io=mt.ensureNumber,eo=$n(xa,ro);else{var ho=Jt.getFromId(Wr,Bn);ro=ho.fraction2r(ro),eo=$n(xa,ro),io=ho.cleanPos}Yr[xa]=io(eo)},Jt.cleanPosition=function(Yr,Wr,$n){var Bn=$n==="paper"||$n==="pixel"?mt.ensureNumber:Jt.getFromId(Wr,$n).cleanPos;return Bn(Yr)},Jt.redrawComponents=function(Yr,Wr){Wr=Wr||Jt.listIds(Yr);var $n=Yr._fullLayout;function Bn(xa,ro,io,eo){for(var Gn=Et.getComponentMethod(xa,ro),ho={},go=0;go2e-6||(($n-Yr._forceTick0)/Yr._minDtick%1+1.000001)%1>2e-6)&&(Yr._minDtick=0))},Jt.saveRangeInitial=function(Yr,Wr){for(var $n=Jt.list(Yr,"",!0),Bn=!1,xa=0;xa<$n.length;xa++){var ro=$n[xa],io=ro._rangeInitial0===void 0&&ro._rangeInitial1===void 0,eo=io||ro.range[0]!==ro._rangeInitial0||ro.range[1]!==ro._rangeInitial1,Gn=ro.autorange;(io&&Gn!==!0||Wr&&eo)&&(ro._rangeInitial0=Gn==="min"||Gn==="max reversed"?void 0:ro.range[0],ro._rangeInitial1=Gn==="max"||Gn==="min reversed"?void 0:ro.range[1],ro._autorangeInitial=Gn,Bn=!0)}return Bn},Jt.saveShowSpikeInitial=function(Yr,Wr){for(var $n=Jt.list(Yr,"",!0),Bn=!1,xa="on",ro=0;ro<$n.length;ro++){var io=$n[ro],eo=io._showSpikeInitial===void 0,Gn=eo||io.showspikes!==io._showspikes;(eo||Wr&&Gn)&&(io._showSpikeInitial=io.showspikes,Bn=!0),xa==="on"&&!io.showspikes&&(xa="off")}return Yr._fullLayout._cartesianSpikesEnabled=xa,Bn},Jt.autoBin=function(Yr,Wr,$n,Bn,xa,ro){var io=mt.aggNums(Math.min,null,Yr),eo=mt.aggNums(Math.max,null,Yr);if(Wr.type==="category"||Wr.type==="multicategory")return{start:io-.5,end:eo+.5,size:Math.max(1,Math.round(ro)||1),_dataSpan:eo-io};xa||(xa=Wr.calendar);var Gn;if(Wr.type==="log"?Gn={type:"linear",range:[io,eo]}:Gn={type:Wr.type,range:mt.simpleMap([io,eo],Wr.c2r,0,xa),calendar:xa},Jt.setConvert(Gn),ro=ro&&st.dtick(ro,Gn.type),ro)Gn.dtick=ro,Gn.tick0=st.tick0(void 0,Gn.type,xa);else{var ho;if($n)ho=(eo-io)/$n;else{var go=mt.distinctVals(Yr),_o=Math.pow(10,Math.floor(Math.log(go.minDiff)/Math.LN10)),co=_o*mt.roundUp(go.minDiff/_o,[.9,1.9,4.9,9.9],!0);ho=Math.max(co,2*mt.stdev(Yr)/Math.pow(Yr.length,Bn?.25:.4)),xt(ho)||(ho=1)}Jt.autoTicks(Gn,ho)}var zo=Gn.dtick,Io=Jt.tickIncrement(Jt.tickFirst(Gn),zo,"reverse",xa),Lo,vs;if(typeof zo=="number")Io=hr(Io,Yr,Gn,io,eo),vs=1+Math.floor((eo-Io)/zo),Lo=Io+vs*zo;else for(Gn.dtick.charAt(0)==="M"&&(Io=br(Io,Yr,zo,io,xa)),Lo=Io,vs=0;Lo<=eo;)Lo=Jt.tickIncrement(Lo,zo,!1,xa),vs++;return{start:Wr.c2r(Io,0,xa),end:Wr.c2r(Lo,0,xa),size:zo,_dataSpan:eo-io}};function hr(Yr,Wr,$n,Bn,xa){var ro=0,io=0,eo=0,Gn=0;function ho(zo){return(1+(zo-Yr)*100/$n.dtick)%100<2}for(var go=0;go_o*.3||ho(Bn)||ho(xa))){var co=$n.dtick/2;Yr+=Yr+coio){var eo=Number($n.substr(1));ro.exactYears>io&&eo%12===0?Yr=Jt.tickIncrement(Yr,"M6","reverse")+Tt*1.5:ro.exactMonths>io?Yr=Jt.tickIncrement(Yr,"M1","reverse")+Tt*15.5:Yr-=kt;var Gn=Jt.tickIncrement(Yr,$n);if(Gn<=Bn)return Gn}return Yr}Jt.prepMinorTicks=function(Yr,Wr,$n){if(!Wr.minor.dtick){delete Yr.dtick;var Bn=Wr.dtick&&xt(Wr._tmin),xa;if(Bn){var ro=Jt.tickIncrement(Wr._tmin,Wr.dtick,!0);xa=[Wr._tmin,ro*.99+Wr._tmin*.01]}else{var io=mt.simpleMap(Wr.range,Wr.r2l);xa=[io[0],.8*io[0]+.2*io[1]]}if(Yr.range=mt.simpleMap(xa,Wr.l2r),Yr._isMinor=!0,Jt.prepTicks(Yr,$n),Bn){var eo=xt(Wr.dtick),Gn=xt(Yr.dtick),ho=eo?Wr.dtick:+Wr.dtick.substring(1),go=Gn?Yr.dtick:+Yr.dtick.substring(1);eo&&Gn?Tr(ho,go)?ho===2*Mt&&go===2*Tt&&(Yr.dtick=Mt):ho===2*Mt&&go===3*Tt?Yr.dtick=Mt:ho===Mt&&!(Wr._input.minor||{}).nticks?Yr.dtick=Tt:Ir(ho/go,2.5)?Yr.dtick=ho/2:Yr.dtick=ho:String(Wr.dtick).charAt(0)==="M"?Gn?Yr.dtick="M1":Tr(ho,go)?ho>=12&&go===2&&(Yr.dtick="M3"):Yr.dtick=Wr.dtick:String(Yr.dtick).charAt(0)==="L"?String(Wr.dtick).charAt(0)==="L"?Tr(ho,go)||(Yr.dtick=Ir(ho/go,2.5)?Wr.dtick/2:Wr.dtick):Yr.dtick="D1":Yr.dtick==="D2"&&+Wr.dtick>1&&(Yr.dtick=1)}Yr.range=Wr.range}Wr.minor._tick0Init===void 0&&(Yr.tick0=Wr.tick0)};function Tr(Yr,Wr){return Math.abs((Yr/Wr+.5)%1-.5)<.001}function Ir(Yr,Wr){return Math.abs(Yr/Wr-1)<.001}Jt.prepTicks=function(Yr,Wr){var $n=mt.simpleMap(Yr.range,Yr.r2l,void 0,void 0,Wr);if(Yr.tickmode==="auto"||!Yr.dtick){var Bn=Yr.nticks,xa;Bn||(Yr.type==="category"||Yr.type==="multicategory"?(xa=Yr.tickfont?mt.bigFont(Yr.tickfont.size||12):15,Bn=Yr._length/xa):(xa=Yr._id.charAt(0)==="y"?40:80,Bn=mt.constrain(Yr._length/xa,4,9)+1),Yr._name==="radialaxis"&&(Bn*=2)),Yr.minor&&Yr.minor.tickmode!=="array"||Yr.tickmode==="array"&&(Bn*=100),Yr._roughDTick=Math.abs($n[1]-$n[0])/Bn,Jt.autoTicks(Yr,Yr._roughDTick),Yr._minDtick>0&&Yr.dtick0?(ro=Bn-1,io=Bn):(ro=Bn,io=Bn);var eo=Yr[ro].value,Gn=Yr[io].value,ho=Math.abs(Gn-eo),go=$n||ho,_o=0;go>=dt?ho>=dt&&ho<=nt?_o=ho:_o=vt:$n===ft&&go>=at?ho>=at&&ho<=bt?_o=ho:_o=ft:go>=_t?ho>=_t&&ho<=yt?_o=ho:_o=St:$n===Mt&&go>=Mt?_o=Mt:go>=Tt?_o=Tt:$n===kt&&go>=kt?_o=kt:$n===wt&&go>=wt&&(_o=wt);var co;_o>=ho&&(_o=ho,co=!0);var zo=xa+_o;if(Wr.rangebreaks&&_o>0){for(var Io=84,Lo=0,vs=0;vsMt&&(_o=ho)}(_o>0||Bn===0)&&(Yr[Bn].periodX=xa+_o/2)}}Jt.calcTicks=function(Wr,$n){for(var Bn=Wr.type,xa=Wr.calendar,ro=Wr.ticklabelstep,io=Wr.ticklabelmode==="period",eo=mt.simpleMap(Wr.range,Wr.r2l,void 0,void 0,$n),Gn=eo[1]=(vs?0:1);Zo--){var Ls=!Zo;Zo?(Wr._dtickInit=Wr.dtick,Wr._tick0Init=Wr.tick0):(Wr.minor._dtickInit=Wr.minor.dtick,Wr.minor._tick0Init=Wr.minor.tick0);var Ds=Zo?Wr:mt.extendFlat({},Wr,Wr.minor);if(Ls?Jt.prepMinorTicks(Ds,Wr,$n):Jt.prepTicks(Ds,$n),Ds.tickmode==="array"){Zo?(Io=[],co=Br(Wr,!Ls)):(Lo=[],zo=Br(Wr,!Ls));continue}if(Ds.tickmode==="sync"){Io=[],co=zr(Wr);continue}var bo=Kt(eo),No=bo[0],Yo=bo[1],Oo=xt(Ds.dtick),ys=Bn==="log"&&!(Oo||Ds.dtick.charAt(0)==="L"),gs=Jt.tickFirst(Ds,$n);if(Zo){if(Wr._tmin=gs,gs=Yo:Us<=Yo;Us=Jt.tickIncrement(Us,Jl,Gn,xa)){if(Zo&&Qs++,Ds.rangebreaks&&!Gn){if(Us=go)break}if(Io.length>_o||Us===zs)break;zs=Us;var nu={value:Us};Zo?(ys&&Us!==(Us|0)&&(nu.simpleLabel=!0),ro>1&&Qs%ro&&(nu.skipLabel=!0),Io.push(nu)):(nu.minor=!0,Lo.push(nu))}}if(vs){var Yl=Wr.minor.ticks==="inside"&&Wr.ticks==="outside"||Wr.minor.ticks==="outside"&&Wr.ticks==="inside";if(!Yl){for(var Zs=Io.map(function(xs){return xs.value}),xo=[],Vo=0;Vo-1;Is--){if(Io[Is].drop){Io.splice(Is,1);continue}Io[Is].value=Vn(Io[Is].value,Wr);var yu=Wr.c2p(Io[Is].value);(Xs?Wl>yu-Cl:Wlgo||Bogo&&(To.periodX=go),Boxa&&covt)Wr/=vt,Bn=xa(10),Yr.dtick="M"+12*ln(Wr,Bn,kr);else if(ro>St)Wr/=St,Yr.dtick="M"+ln(Wr,1,Nr);else if(ro>Tt){if(Yr.dtick=ln(Wr,Tt,Yr._hasDayOfWeekBreaks?[1,2,7,14]:sn),!$n){var io=Jt.getTickFormat(Yr),eo=Yr.ticklabelmode==="period";eo&&(Yr._rawTick0=Yr.tick0),/%[uVW]/.test(io)?Yr.tick0=mt.dateTick0(Yr.calendar,2):Yr.tick0=mt.dateTick0(Yr.calendar,1),eo&&(Yr._dowTick0=Yr.tick0)}}else ro>wt?Yr.dtick=ln(Wr,wt,Nr):ro>ct?Yr.dtick=ln(Wr,ct,Qr):ro>It?Yr.dtick=ln(Wr,It,Qr):(Bn=xa(10),Yr.dtick=ln(Wr,Bn,kr))}else if(Yr.type==="log"){Yr.tick0=0;var Gn=mt.simpleMap(Yr.range,Yr.r2l);if(Yr._isMinor&&(Wr*=1.5),Wr>.7)Yr.dtick=Math.ceil(Wr);else if(Math.abs(Gn[1]-Gn[0])<1){var ho=1.5*Math.abs((Gn[1]-Gn[0])/Wr);Wr=Math.abs(Math.pow(10,Gn[1])-Math.pow(10,Gn[0]))/ho,Bn=xa(10),Yr.dtick="L"+ln(Wr,Bn,kr)}else Yr.dtick=Wr>.3?"D2":"D1"}else Yr.type==="category"||Yr.type==="multicategory"?(Yr.tick0=0,Yr.dtick=Math.ceil(Math.max(Wr,1))):Wn(Yr)?(Yr.tick0=0,Bn=1,Yr.dtick=ln(Wr,Bn,Xr)):(Yr.tick0=0,Bn=xa(10),Yr.dtick=ln(Wr,Bn,kr));if(Yr.dtick===0&&(Yr.dtick=1),!xt(Yr.dtick)&&typeof Yr.dtick!="string"){var go=Yr.dtick;throw Yr.dtick=1,"ax.dtick error: "+String(go)}};function mn(Yr){var Wr=Yr.dtick;if(Yr._tickexponent=0,!xt(Wr)&&typeof Wr!="string"&&(Wr=1),(Yr.type==="category"||Yr.type==="multicategory")&&(Yr._tickround=null),Yr.type==="date"){var $n=Yr.r2l(Yr.tick0),Bn=Yr.l2r($n).replace(/(^-|i)/g,""),xa=Bn.length;if(String(Wr).charAt(0)==="M")xa>10||Bn.substr(5)!=="01-01"?Yr._tickround="d":Yr._tickround=+Wr.substr(1)%12===0?"y":"m";else if(Wr>=Tt&&xa<=10||Wr>=Tt*15)Yr._tickround="d";else if(Wr>=ct&&xa<=16||Wr>=wt)Yr._tickround="M";else if(Wr>=It&&xa<=19||Wr>=ct)Yr._tickround="S";else{var ro=Yr.l2r($n+Wr).replace(/^-/,"").length;Yr._tickround=Math.max(xa,ro)-20,Yr._tickround<0&&(Yr._tickround=4)}}else if(xt(Wr)||Wr.charAt(0)==="L"){var io=Yr.range.map(Yr.r2d||Number);xt(Wr)||(Wr=Number(Wr.substr(1))),Yr._tickround=2-Math.floor(Math.log(Wr)/Math.LN10+.01);var eo=Math.max(Math.abs(io[0]),Math.abs(io[1])),Gn=Math.floor(Math.log(eo)/Math.LN10+.01),ho=Yr.minexponent===void 0?3:Yr.minexponent;Math.abs(Gn)>ho&&(Dr(Yr.exponentformat)&&!Sr(Gn)?Yr._tickexponent=3*Math.round((Gn-1)/3):Yr._tickexponent=Gn)}else Yr._tickround=null}Jt.tickIncrement=function(Yr,Wr,$n,Bn){var xa=$n?-1:1;if(xt(Wr))return mt.increment(Yr,xa*Wr);var ro=Wr.charAt(0),io=xa*Number(Wr.substr(1));if(ro==="M")return mt.incrementMonth(Yr,io,Bn);if(ro==="L")return Math.log(Math.pow(10,Yr)+io)/Math.LN10;if(ro==="D"){var eo=Wr==="D2"?qr:un,Gn=Yr+xa*.01,ho=mt.roundUp(mt.mod(Gn,1),eo,$n);return Math.floor(Gn)+Math.log(it.round(Math.pow(10,ho),1))/Math.LN10}throw"unrecognized dtick "+String(Wr)},Jt.tickFirst=function(Yr,Wr){var $n=Yr.r2l||Number,Bn=mt.simpleMap(Yr.range,$n,void 0,void 0,Wr),xa=Bn[1]=0&&Zo<=Yr._length?vs:null};if(ro&&mt.isArrayOrTypedArray(Yr.ticktext)){var _o=mt.simpleMap(Yr.range,Yr.r2l),co=(Math.abs(_o[1]-_o[0])-(Yr._lBreaks||0))/1e4;for(ho=0;ho"+eo;else{var ho=ga(Yr),go=Yr._trueSide||Yr.side;(!ho&&go==="top"||ho&&go==="bottom")&&(io+="
")}Wr.text=io}function Jr(Yr,Wr,$n,Bn,xa){var ro=Yr.dtick,io=Wr.x,eo=Yr.tickformat,Gn=typeof ro=="string"&&ro.charAt(0);if(xa==="never"&&(xa=""),Bn&&Gn!=="L"&&(ro="L3",Gn="L"),eo||Gn==="L")Wr.text=ur(Math.pow(10,io),Yr,xa,Bn);else if(xt(ro)||Gn==="D"&&mt.mod(io+.01,1)<.1){var ho=Math.round(io),go=Math.abs(ho),_o=Yr.exponentformat;_o==="power"||Dr(_o)&&Sr(ho)?(ho===0?Wr.text=1:ho===1?Wr.text="10":Wr.text="10"+(ho>1?"":At)+go+"",Wr.fontSize*=1.25):(_o==="e"||_o==="E")&&go>2?Wr.text="1"+_o+(ho>0?"+":At)+go:(Wr.text=ur(Math.pow(10,io),Yr,"","fakehover"),ro==="D1"&&Yr._id.charAt(0)==="y"&&(Wr.dy-=Wr.fontSize/6))}else if(Gn==="D")Wr.text=String(Math.round(Math.pow(10,mt.mod(io,1)))),Wr.fontSize*=.75;else throw"unrecognized dtick "+String(ro);if(Yr.dtick==="D1"){var co=String(Wr.text).charAt(0);(co==="0"||co==="1")&&(Yr._id.charAt(0)==="y"?Wr.dx-=Wr.fontSize/4:(Wr.dy+=Wr.fontSize/2,Wr.dx+=(Yr.range[1]>Yr.range[0]?1:-1)*Wr.fontSize*(io<0?.5:.25)))}}function Or(Yr,Wr){var $n=Yr._categories[Math.round(Wr.x)];$n===void 0&&($n=""),Wr.text=String($n)}function Ur(Yr,Wr,$n){var Bn=Math.round(Wr.x),xa=Yr._categories[Bn]||[],ro=xa[1]===void 0?"":String(xa[1]),io=xa[0]===void 0?"":String(xa[0]);$n?Wr.text=io+" - "+ro:(Wr.text=ro,Wr.text2=io)}function jr(Yr,Wr,$n,Bn,xa){xa==="never"?xa="":Yr.showexponent==="all"&&Math.abs(Wr.x/Yr.dtick)<1e-6&&(xa="hide"),Wr.text=ur(Wr.x,Yr,xa,Bn)}function Gr(Yr,Wr,$n,Bn,xa){if(Yr.thetaunit==="radians"&&!$n){var ro=Wr.x/180;if(ro===0)Wr.text="0";else{var io=wr(ro);if(io[1]>=100)Wr.text=ur(mt.deg2rad(Wr.x),Yr,xa,Bn);else{var eo=Wr.x<0;io[1]===1?io[0]===1?Wr.text="π":Wr.text=io[0]+"π":Wr.text=["",io[0],"","⁄","",io[1],"","π"].join(""),eo&&(Wr.text=At+Wr.text)}}}else Wr.text=ur(Wr.x,Yr,xa,Bn)}function wr(Yr){function Wr(eo,Gn){return Math.abs(eo-Gn)<=1e-6}function $n(eo,Gn){return Wr(Gn,0)?eo:$n(Gn,eo%Gn)}function Bn(eo){for(var Gn=1;!Wr(Math.round(eo*Gn)/Gn,eo);)Gn*=10;return Gn}var xa=Bn(Yr),ro=Yr*xa,io=Math.abs($n(ro,xa));return[Math.round(ro/io),Math.round(xa/io)]}var vr=["f","p","n","μ","m","","k","M","G","T"];function Dr(Yr){return Yr==="SI"||Yr==="B"}function Sr(Yr){return Yr>14||Yr<-15}function ur(Yr,Wr,$n,Bn){var xa=Yr<0,ro=Wr._tickround,io=$n||Wr.exponentformat||"B",eo=Wr._tickexponent,Gn=Jt.getTickFormat(Wr),ho=Wr.separatethousands;if(Bn){var go={exponentformat:io,minexponent:Wr.minexponent,dtick:Wr.showexponent==="none"?Wr.dtick:xt(Yr)&&Math.abs(Yr)||1,range:Wr.showexponent==="none"?Wr.range.map(Wr.r2d):[0,Yr||1]};mn(go),ro=(Number(go._tickround)||0)+4,eo=go._tickexponent,Wr.hoverformat&&(Gn=Wr.hoverformat)}if(Gn)return Wr._numFormat(Gn)(Yr).replace(/-/g,At);var _o=Math.pow(10,-ro)/2;if(io==="none"&&(eo=0),Yr=Math.abs(Yr),Yr<_o)Yr="0",xa=!1;else{if(Yr+=_o,eo&&(Yr*=Math.pow(10,-eo),ro+=eo),ro===0)Yr=String(Math.floor(Yr));else if(ro<0){Yr=String(Math.round(Yr)),Yr=Yr.substr(0,Yr.length+ro);for(var co=ro;co<0;co++)Yr+="0"}else{Yr=String(Yr);var zo=Yr.indexOf(".")+1;zo&&(Yr=Yr.substr(0,zo+ro).replace(/\.?0+$/,""))}Yr=mt.numSeparate(Yr,Wr._separators,ho)}if(eo&&io!=="hide"){Dr(io)&&Sr(eo)&&(io="power");var Io;eo<0?Io=At+-eo:io!=="power"?Io="+"+eo:Io=String(eo),io==="e"||io==="E"?Yr+=io+Io:io==="power"?Yr+="×10"+Io+"":io==="B"&&eo===9?Yr+="B":Dr(io)&&(Yr+=vr[eo/3+5])}return xa?At+Yr:Yr}Jt.getTickFormat=function(Yr){var Wr;function $n(Gn){return typeof Gn!="string"?Gn:Number(Gn.replace("M",""))*St}function Bn(Gn,ho){var go=["L","D"];if(typeof Gn==typeof ho){if(typeof Gn=="number")return Gn-ho;var _o=go.indexOf(Gn.charAt(0)),co=go.indexOf(ho.charAt(0));return _o===co?Number(Gn.replace(/(L|D)/g,""))-Number(ho.replace(/(L|D)/g,"")):_o-co}else return typeof Gn=="number"?1:-1}function xa(Gn,ho,go){var _o=go||function(Io){return Io},co=ho[0],zo=ho[1];return(!co&&typeof co!="number"||_o(co)<=_o(Gn))&&(!zo&&typeof zo!="number"||_o(zo)>=_o(Gn))}function ro(Gn,ho){var go=ho[0]===null,_o=ho[1]===null,co=Bn(Gn,ho[0])>=0,zo=Bn(Gn,ho[1])<=0;return(go||co)&&(_o||zo)}var io,eo;if(Yr.tickformatstops&&Yr.tickformatstops.length>0)switch(Yr.type){case"date":case"linear":{for(Wr=0;Wr=0&&xa.unshift(xa.splice(go,1).shift())}});var eo={false:{left:0,right:0}};return mt.syncOrAsync(xa.map(function(Gn){return function(){if(Gn){var ho=Jt.getFromId(Yr,Gn);$n||($n={}),$n.axShifts=eo,$n.overlayingShiftedAx=io;var go=Jt.drawOne(Yr,ho,$n);return ho._shiftPusher&&qn(ho,ho._fullDepth||0,eo,!0),ho._r=ho.range.slice(),ho._rl=mt.simpleMap(ho._r,ho.r2l),go}}}))},Jt.drawOne=function(Yr,Wr,$n){$n=$n||{};var Bn=$n.axShifts||{},xa=$n.overlayingShiftedAx||[],ro,io,eo;Wr.setScale();var Gn=Yr._fullLayout,ho=Wr._id,go=ho.charAt(0),_o=Jt.counterLetter(ho),co=Gn._plots[Wr._mainSubplot];if(!co)return;if(Wr._shiftPusher=Wr.autoshift||xa.indexOf(Wr._id)!==-1||xa.indexOf(Wr.overlaying)!==-1,Wr._shiftPusher&Wr.anchor==="free"){var zo=Wr.linewidth/2||0;Wr.ticks==="inside"&&(zo+=Wr.ticklen),qn(Wr,zo,Bn,!0),qn(Wr,Wr.shift||0,Bn,!1)}($n.skipTitle!==!0||Wr._shift===void 0)&&(Wr._shift=po(Wr,Bn));var Io=co[go+"axislayer"],Lo=Wr._mainLinePosition,vs=Lo+=Wr._shift,Zo=Wr._mainMirrorPosition,Ls=Wr._vals=Jt.calcTicks(Wr),Ds=[Wr.mirror,vs,Zo].join("_");for(ro=0;ro0?Cs.bottom-_s:0,Gs))));var zl=0,Xl=0;if(Wr._shiftPusher&&(zl=Math.max(Gs,Cs.height>0?Wo==="l"?_s-Cs.left:Cs.right-_s:0),Wr.title.text!==Gn._dfltTitle[go]&&(Xl=(Wr._titleStandoff||0)+(Wr._titleScoot||0),Wo==="l"&&(Xl+=Un(Wr))),Wr._fullDepth=Math.max(zl,Xl)),Wr.automargin){Ks={x:0,y:0,r:0,l:0,t:0,b:0};var Zl=[0,1],ju=typeof Wr._shift=="number"?Wr._shift:0;if(go==="x"){if(Wo==="b"?Ks[Wo]=Wr._depth:(Ks[Wo]=Wr._depth=Math.max(Cs.width>0?_s-Cs.top:0,Gs),Zl.reverse()),Cs.width>0){var Vu=Cs.right-(Wr._offset+Wr._length);Vu>0&&(Ks.xr=1,Ks.r=Vu);var Sv=Wr._offset-Cs.left;Sv>0&&(Ks.xl=0,Ks.l=Sv)}}else if(Wo==="l"?(Wr._depth=Math.max(Cs.height>0?_s-Cs.left:0,Gs),Ks[Wo]=Wr._depth-ju):(Wr._depth=Math.max(Cs.height>0?Cs.right-_s:0,Gs),Ks[Wo]=Wr._depth+ju,Zl.reverse()),Cs.height>0){var nv=Cs.bottom-(Wr._offset+Wr._length);nv>0&&(Ks.yb=0,Ks.b=nv);var Kp=Wr._offset-Cs.top;Kp>0&&(Ks.yt=1,Ks.t=Kp)}Ks[_o]=Wr.anchor==="free"?Wr.position:Wr._anchorAxis.domain[Zl[0]],Wr.title.text!==Gn._dfltTitle[go]&&(Ks[Wo]+=Un(Wr)+(Wr.title.standoff||0)),Wr.mirror&&Wr.anchor!=="free"&&(Ys={x:0,y:0,r:0,l:0,t:0,b:0},Ys[rs]=Wr.linewidth,Wr.mirror&&Wr.mirror!==!0&&(Ys[rs]+=Gs),Wr.mirror===!0||Wr.mirror==="ticks"?Ys[_o]=Wr._anchorAxis.domain[Zl[1]]:(Wr.mirror==="all"||Wr.mirror==="allticks")&&(Ys[_o]=[Wr._counterDomainMin,Wr._counterDomainMax][Zl[1]]))}Qo&&(Bl=Et.getComponentMethod("rangeslider","autoMarginOpts")(Yr,Wr)),typeof Wr.automargin=="string"&&(xr(Ks,Wr.automargin),xr(Ys,Wr.automargin)),et.autoMargin(Yr,ba(Wr),Ks),et.autoMargin(Yr,An(Wr),Ys),et.autoMargin(Yr,hn(Wr),Bl)}),mt.syncOrAsync(us)}};function xr(Yr,Wr){if(Yr){var $n=Object.keys(Ut).reduce(function(Bn,xa){return Wr.indexOf(xa)!==-1&&Ut[xa].forEach(function(ro){Bn[ro]=1}),Bn},{});Object.keys(Yr).forEach(function(Bn){$n[Bn]||(Bn.length===1?Yr[Bn]=0:delete Yr[Bn])})}}function Pr(Yr,Wr){var $n=[],Bn,xa=function(ro,io){var eo=ro.xbnd[io];eo!==null&&$n.push(mt.extendFlat({},ro,{x:eo}))};if(Wr.length){for(Bn=0;Bn60?-.5*Jl:Yr.side==="top"!==go?-Jl:0};else if(Oo==="y"){if(gs=!go&&Yo==="left"||go&&Yo==="right",bo=gs?1:-1,go&&(bo*=-1),Zo=co,Ls=zo*bo,Ds=0,!go&&Math.abs(ys)===90&&(ys===-90&&Yo==="left"||ys===90&&Yo==="right"?Ds=Xt:Ds=.5),go){var zs=xt(ys)?+ys:0;if(zs!==0){var Us=mt.deg2rad(zs);No=Math.abs(Math.sin(Us))*Xt*bo,Ds=0}}vs.xFn=function(Qs){return Qs.dx+Wr-(Zo+Qs.fontSize*Ds)*bo+No*Qs.fontSize},vs.yFn=function(Qs){return Qs.dy+Ls+Qs.fontSize*Vt},vs.anchorFn=function(Qs,Fl){return xt(Fl)&&Math.abs(Fl)===90?"middle":gs?"end":"start"},vs.heightFn=function(Qs,Fl,Jl){return Yr.side==="right"&&(Fl*=-1),Fl<-30?-Jl:Fl<30?-.5*Jl:0}}return vs};function fn(Yr){return[Yr.text,Yr.x,Yr.axInfo,Yr.font,Yr.fontSize,Yr.fontColor].join("_")}Jt.drawTicks=function(Yr,Wr,$n){$n=$n||{};var Bn=Wr._id+"tick",xa=[].concat(Wr.minor&&Wr.minor.ticks?$n.vals.filter(function(io){return io.minor&&!io.noTick}):[]).concat(Wr.ticks?$n.vals.filter(function(io){return!io.minor&&!io.noTick}):[]),ro=$n.layer.selectAll("path."+Bn).data(xa,fn);ro.exit().remove(),ro.enter().append("path").classed(Bn,1).classed("ticks",1).classed("crisp",$n.crisp!==!1).each(function(io){return _.stroke(it.select(this),io.minor?Wr.minor.tickcolor:Wr.tickcolor)}).style("stroke-width",function(io){return rt.crispRound(Yr,io.minor?Wr.minor.tickwidth:Wr.tickwidth,1)+"px"}).attr("d",$n.path).style("display",null),fo(Wr,[Nt]),ro.attr("transform",$n.transFn)},Jt.drawGrid=function(Yr,Wr,$n){if($n=$n||{},Wr.tickmode!=="sync"){var Bn=Wr._id+"grid",xa=Wr.minor&&Wr.minor.showgrid,ro=xa?$n.vals.filter(function(Zo){return Zo.minor}):[],io=Wr.showgrid?$n.vals.filter(function(Zo){return!Zo.minor}):[],eo=$n.counterAxis;if(eo&&Jt.shouldShowZeroLine(Yr,Wr,eo))for(var Gn=Wr.tickmode==="array",ho=0;ho=0;Io--){var Lo=Io?co:zo;if(Lo){var vs=Lo.selectAll("path."+Bn).data(Io?io:ro,fn);vs.exit().remove(),vs.enter().append("path").classed(Bn,1).classed("crisp",$n.crisp!==!1),vs.attr("transform",$n.transFn).attr("d",$n.path).each(function(Zo){return _.stroke(it.select(this),Zo.minor?Wr.minor.gridcolor:Wr.gridcolor||"#ddd")}).style("stroke-dasharray",function(Zo){return rt.dashStyle(Zo.minor?Wr.minor.griddash:Wr.griddash,Zo.minor?Wr.minor.gridwidth:Wr.gridwidth)}).style("stroke-width",function(Zo){return(Zo.minor?_o:Wr._gw)+"px"}).style("display",null),typeof $n.path=="function"&&vs.attr("d",$n.path)}}fo(Wr,[zt,Dt])}},Jt.drawZeroLine=function(Yr,Wr,$n){$n=$n||$n;var Bn=Wr._id+"zl",xa=Jt.shouldShowZeroLine(Yr,Wr,$n.counterAxis),ro=$n.layer.selectAll("path."+Bn).data(xa?[{x:0,id:Wr._id}]:[]);ro.exit().remove(),ro.enter().append("path").classed(Bn,1).classed("zl",1).classed("crisp",$n.crisp!==!1).each(function(){$n.layer.selectAll("path").sort(function(io,eo){return jt(io.id,eo.id)})}),ro.attr("transform",$n.transFn).attr("d",$n.path).call(_.stroke,Wr.zerolinecolor||_.defaultLine).style("stroke-width",rt.crispRound(Yr,Wr.zerolinewidth,Wr._gw||1)+"px").style("display",null),fo(Wr,[Pt])},Jt.drawLabels=function(Yr,Wr,$n){$n=$n||{};var Bn=Yr._fullLayout,xa=Wr._id,ro=$n.cls||xa+"tick",io=$n.vals.filter(function(xo){return xo.text}),eo=$n.labelFns,Gn=$n.secondary?0:Wr.tickangle,ho=(Wr._prevTickAngles||{})[ro],go=$n.layer.selectAll("g."+ro).data(Wr.showticklabels?io:[],fn),_o=[];go.enter().append("g").classed(ro,1).append("text").attr("text-anchor","middle").each(function(xo){var Vo=it.select(this),Go=Yr._promises.length;Vo.call(ht.positionText,eo.xFn(xo),eo.yFn(xo)).call(rt.font,{family:xo.font,size:xo.fontSize,color:xo.fontColor,weight:xo.fontWeight,style:xo.fontStyle,variant:xo.fontVariant}).text(xo.text).call(ht.convertToTspans,Yr),Yr._promises[Go]?_o.push(Yr._promises.pop().then(function(){co(Vo,Gn)})):co(Vo,Gn)}),fo(Wr,[$t]),go.exit().remove(),$n.repositionOnUpdate&&go.each(function(xo){it.select(this).select("text").call(ht.positionText,eo.xFn(xo),eo.yFn(xo))});function co(xo,Vo){xo.each(function(Go){var ms=it.select(this),Ws=ms.select(".text-math-group"),ws=eo.anchorFn(Go,Vo),Is=$n.transFn.call(ms.node(),Go)+(xt(Vo)&&+Vo!=0?" rotate("+Vo+","+eo.xFn(Go)+","+(eo.yFn(Go)-Go.fontSize/2)+")":""),Xs=ht.lineCount(ms),Cl=qt*Go.fontSize,Wl=eo.heightFn(Go,xt(Vo)?+Vo:0,(Xs-1)*Cl);if(Wl&&(Is+=ut(0,Wl)),Ws.empty()){var yu=ms.select("text");yu.attr({transform:Is,"text-anchor":ws}),yu.style("opacity",1),Wr._adjustTickLabelsOverflow&&Wr._adjustTickLabelsOverflow()}else{var yo=rt.bBox(Ws.node()).width,Fo=yo*{end:-.5,start:.5}[ws];Ws.attr("transform",Is+ut(Fo,0))}})}Wr._adjustTickLabelsOverflow=function(){var xo=Wr.ticklabeloverflow;if(!(!xo||xo==="allow")){var Vo=xo.indexOf("hide")!==-1,Go=Wr._id.charAt(0)==="x",ms=0,Ws=Go?Yr._fullLayout.width:Yr._fullLayout.height;if(xo.indexOf("domain")!==-1){var ws=mt.simpleMap(Wr.range,Wr.r2l);ms=Wr.l2p(ws[0])+Wr._offset,Ws=Wr.l2p(ws[1])+Wr._offset}var Is=Math.min(ms,Ws),Xs=Math.max(ms,Ws),Cl=Wr.side,Wl=1/0,yu=-1/0;go.each(function(Bo){var Es=it.select(this),Ps=Es.select(".text-math-group");if(Ps.empty()){var xs=rt.bBox(Es.node()),us=0;Go?(xs.right>Xs||xs.leftXs||xs.top+(Wr.tickangle?0:Bo.fontSize/4)Wr["_visibleLabelMin_"+ws._id]?Bo.style("display","none"):Xs.K==="tick"&&!Is&&Bo.style("display",null)})})})})},co(go,ho+1?ho:Gn);function zo(){return _o.length&&Promise.all(_o)}var Io=null;function Lo(){if(co(go,Gn),io.length&&Wr.autotickangles&&(Wr.type!=="log"||String(Wr.dtick).charAt(0)!=="D")){Io=Wr.autotickangles[0];var xo=0,Vo=[],Go,ms=1;go.each(function(Cs){xo=Math.max(xo,Cs.fontSize);var Ks=Wr.l2p(Cs.x),Ys=so(this),Bl=rt.bBox(Ys.node());ms=Math.max(ms,ht.lineCount(Ys)),Vo.push({top:0,bottom:10,height:10,left:Ks-Bl.width/2,right:Ks+Bl.width/2+2,width:Bl.width+2})});var Ws=(Wr.tickson==="boundaries"||Wr.showdividers)&&!$n.secondary,ws=io.length,Is=Math.abs((io[ws-1].x-io[0].x)*Wr._m)/(ws-1),Xs=Ws?Is/2:Is,Cl=Ws?Wr.ticklen:xo*1.25*ms,Wl=Math.sqrt(Math.pow(Xs,2)+Math.pow(Cl,2)),yu=Xs/Wl,yo=Wr.autotickangles.map(function(Cs){return Cs*Math.PI/180}),Fo=yo.find(function(Cs){return Math.abs(Math.cos(Cs))<=yu});Fo===void 0&&(Fo=yo.reduce(function(Cs,Ks){return Math.abs(Math.cos(Cs))nu*Jl&&(Us=Jl,ys[Oo]=gs[Oo]=Qs[Oo])}var Yl=Math.abs(Us-zs);Yl-bo>0?(Yl-=bo,bo*=1+bo/Yl):bo=0,Wr._id.charAt(0)!=="y"&&(bo=-bo),ys[Yo]=Ls.p2r(Ls.r2p(gs[Yo])+No*bo),Ls.autorange==="min"||Ls.autorange==="max reversed"?(ys[0]=null,Ls._rangeInitial0=void 0,Ls._rangeInitial1=void 0):(Ls.autorange==="max"||Ls.autorange==="min reversed")&&(ys[1]=null,Ls._rangeInitial0=void 0,Ls._rangeInitial1=void 0),Bn._insideTickLabelsUpdaterange[Ls._name+".range"]=ys}var Zs=mt.syncOrAsync(vs);return Zs&&Zs.then&&Yr._promises.push(Zs),Zs};function bn(Yr,Wr,$n){var Bn=Wr._id+"divider",xa=$n.vals,ro=$n.layer.selectAll("path."+Bn).data(xa,fn);ro.exit().remove(),ro.enter().insert("path",":first-child").classed(Bn,1).classed("crisp",1).call(_.stroke,Wr.dividercolor).style("stroke-width",rt.crispRound(Yr,Wr.dividerwidth,1)+"px"),ro.attr("transform",$n.transFn).attr("d",$n.path)}Jt.getPxPosition=function(Yr,Wr){var $n=Yr._fullLayout._size,Bn=Wr._id.charAt(0),xa=Wr.side,ro;if(Wr.anchor!=="free"?ro=Wr._anchorAxis:Bn==="x"?ro={_offset:$n.t+(1-(Wr.position||0))*$n.h,_length:0}:Bn==="y"&&(ro={_offset:$n.l+(Wr.position||0)*$n.w+Wr._shift,_length:0}),xa==="top"||xa==="left")return ro._offset;if(xa==="bottom"||xa==="right")return ro._offset+ro._length};function Un(Yr){var Wr=Yr.title.font.size,$n=(Yr.title.text.match(ht.BR_TAG_ALL)||[]).length;return Yr.title.hasOwnProperty("standoff")?Wr*(Xt+$n*qt):$n?Wr*($n+1)*qt:Wr}function _i(Yr,Wr){var $n=Yr._fullLayout,Bn=Wr._id,xa=Bn.charAt(0),ro=Wr.title.font.size,io,eo=(Wr.title.text.match(ht.BR_TAG_ALL)||[]).length;if(Wr.title.hasOwnProperty("standoff"))Wr.side==="bottom"||Wr.side==="right"?io=Wr._depth+Wr.title.standoff+ro*Xt:(Wr.side==="top"||Wr.side==="left")&&(io=Wr._depth+Wr.title.standoff+ro*(Vt+eo*qt));else{var Gn=ga(Wr);if(Wr.type==="multicategory")io=Wr._depth;else{var ho=1.5*ro;Gn&&(ho=.5*ro,Wr.ticks==="outside"&&(ho+=Wr.ticklen)),io=10+ho+(Wr.linewidth?Wr.linewidth-1:0)}Gn||(xa==="x"?io+=Wr.side==="top"?ro*(Wr.showticklabels?1:0):ro*(Wr.showticklabels?1.5:.5):io+=Wr.side==="right"?ro*(Wr.showticklabels?1:.5):ro*(Wr.showticklabels?.5:0))}var go=Jt.getPxPosition(Yr,Wr),_o,co,zo;xa==="x"?(co=Wr._offset+Wr._length/2,zo=Wr.side==="top"?go-io:go+io):(zo=Wr._offset+Wr._length/2,co=Wr.side==="right"?go+io:go-io,_o={rotate:"-90",offset:0});var Io;if(Wr.type!=="multicategory"){var Lo=Wr._selections[Wr._id+"tick"];if(Io={selection:Lo,side:Wr.side},Lo&&Lo.node()&&Lo.node().parentNode){var vs=rt.getTranslate(Lo.node().parentNode);Io.offsetLeft=vs.x,Io.offsetTop=vs.y}Wr.title.hasOwnProperty("standoff")&&(Io.pad=0)}return Wr._titleStandoff=io,j.draw(Yr,Bn+"title",{propContainer:Wr,propName:Wr._name+".title.text",placeholder:$n._dfltTitle[xa],avoid:Io,transform:_o,attributes:{x:co,y:zo,"text-anchor":"middle"}})}Jt.shouldShowZeroLine=function(Yr,Wr,$n){var Bn=mt.simpleMap(Wr.range,Wr.r2l);return Bn[0]*Bn[1]<=0&&Wr.zeroline&&(Wr.type==="linear"||Wr.type==="-")&&!(Wr.rangebreaks&&Wr.maskBreaks(0)===Ot)&&(yn(Wr,0)||!Kn(Yr,Wr,$n,Bn)||Jn(Yr,Wr))},Jt.clipEnds=function(Yr,Wr){return Wr.filter(function($n){return yn(Yr,$n.x)})};function yn(Yr,Wr){var $n=Yr.l2p(Wr);return $n>1&&$n1)for(xa=1;xa=xa.min&&Yrat*2}function tt(nt){return Math.max(1,(nt-1)/1e3)}function st(nt,vt){for(var dt=nt.length,bt=tt(dt),ft=0,at=0,yt={},St=0;Stft*2}function ot(nt){return Et(nt[0])&&Et(nt[1])}},28336:function(Ct,Rt,o){var it=o(38248),xt=o(24040),et=o(3400),Et=o(31780),mt=o(51272),ut=o(94724),ht=o(26332),j=o(25404),_=o(95936),rt=o(42568),tt=o(22416),st=o(42136),ot=o(96312),nt=o(78344),vt=o(33816).WEEKDAY_PATTERN,dt=o(33816).HOUR_PATTERN;Ct.exports=function(St,_t,Mt,Tt,kt){var wt=Tt.letter,ct=Tt.font||{},It=Tt.splomStash||{},At=Mt("visible",!Tt.visibleDflt),Ot=_t._template||{},Pt=_t.type||Ot.type||"-",zt;if(Pt==="date"){var Dt=xt.getComponentMethod("calendars","handleDefaults");Dt(St,_t,"calendar",Tt.calendar),Tt.noTicklabelmode||(zt=Mt("ticklabelmode"))}var Nt="";(!Tt.noTicklabelposition||Pt==="multicategory")&&(Nt=et.coerce(St,_t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:zt==="period"?["outside","inside"]:wt==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),Tt.noTicklabeloverflow||Mt("ticklabeloverflow",Nt.indexOf("inside")!==-1?"hide past domain":Pt==="category"||Pt==="multicategory"?"allow":"hide past div"),nt(_t,kt),ot(St,_t,Mt,Tt),tt(St,_t,Mt,Tt),Pt!=="category"&&!Tt.noHover&&Mt("hoverformat");var $t=Mt("color"),Ut=$t!==ut.color.dflt?$t:ct.color,Ht=It.label||kt._dfltTitle[wt];if(rt(St,_t,Mt,Pt,Tt),!At)return _t;Mt("title.text",Ht),et.coerceFont(Mt,"title.font",{family:ct.family,weight:ct.weight,style:ct.style,variant:ct.variant,size:et.bigFont(ct.size),color:Ut}),ht(St,_t,Mt,Pt);var Vt=Tt.hasMinor;if(Vt&&(Et.newContainer(_t,"minor"),ht(St,_t,Mt,Pt,{isMinor:!0})),_(St,_t,Mt,Pt,Tt),j(St,_t,Mt,Tt),Vt){var Xt=Tt.isMinor;Tt.isMinor=!0,j(St,_t,Mt,Tt),Tt.isMinor=Xt}st(St,_t,Mt,{dfltColor:$t,bgColor:Tt.bgColor,showGrid:Tt.showGrid,hasMinor:Vt,attributes:ut}),Vt&&!_t.minor.ticks&&!_t.minor.showgrid&&delete _t.minor,(_t.showline||_t.ticks)&&Mt("mirror");var qt=Pt==="multicategory";if(!Tt.noTickson&&(Pt==="category"||qt)&&(_t.ticks||_t.showgrid)){var er;qt&&(er="boundaries");var lr=Mt("tickson",er);lr==="boundaries"&&delete _t.ticklabelposition}if(qt){var Jt=Mt("showdividers");Jt&&(Mt("dividercolor"),Mt("dividerwidth"))}if(Pt==="date")if(mt(St,_t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:bt}),!_t.rangebreaks.length)delete _t.rangebreaks;else{for(var Yt=0;Yt<_t.rangebreaks.length;Yt++)if(_t.rangebreaks[Yt].pattern===vt){_t._hasDayOfWeekBreaks=!0;break}if(nt(_t,kt),kt._has("scattergl")||kt._has("splom"))for(var rr=0;rr=2){var wt="",ct,It;if(kt.length===2){for(ct=0;ct<2;ct++)if(It=at(kt[ct]),It){wt=vt;break}}var At=Mt("pattern",wt);if(At===vt)for(ct=0;ct<2;ct++)It=at(kt[ct]),It&&(St.bounds[ct]=kt[ct]=It-1);if(At)for(ct=0;ct<2;ct++)switch(It=kt[ct],At){case vt:if(!it(It)){St.enabled=!1;return}if(It=+It,It!==Math.floor(It)||It<0||It>=7){St.enabled=!1;return}St.bounds[ct]=kt[ct]=It;break;case dt:if(!it(It)){St.enabled=!1;return}if(It=+It,It<0||It>24){St.enabled=!1;return}St.bounds[ct]=kt[ct]=It;break}if(_t.autorange===!1){var Ot=_t.range;if(Ot[0]Ot[1]){St.enabled=!1;return}}else if(kt[0]>Ot[0]&&kt[1]ht?1:-1:+(Et.substr(1)||1)-+(mt.substr(1)||1)},Rt.ref2id=function(Et){return/^[xyz]/.test(Et)?Et.split(" ")[0]:!1};function et(Et,mt){if(mt&&mt.length){for(var ut=0;ut0||it(j),rt;_&&(rt="array");var tt=ut("categoryorder",rt),st;tt==="array"&&(st=ut("categoryarray")),!_&&tt==="array"&&(tt=mt.categoryorder="trace"),tt==="trace"?mt._initialCategories=[]:tt==="array"?mt._initialCategories=st.slice():(st=xt(mt,ht).sort(),tt==="category ascending"?mt._initialCategories=st:tt==="category descending"&&(mt._initialCategories=st.reverse()))}}},98728:function(Ct,Rt,o){var it=o(38248),xt=o(3400),et=o(39032),Et=et.ONEDAY,mt=et.ONEWEEK;Rt.dtick=function(ut,ht){var j=ht==="log",_=ht==="date",rt=ht==="category",tt=_?Et:1;if(!ut)return tt;if(it(ut))return ut=Number(ut),ut<=0?tt:rt?Math.max(1,Math.round(ut)):_?Math.max(.1,ut):ut;if(typeof ut!="string"||!(_||j))return tt;var st=ut.charAt(0),ot=ut.substr(1);return ot=it(ot)?Number(ot):0,ot<=0||!(_&&st==="M"&&ot===Math.round(ot)||j&&st==="L"||j&&st==="D"&&(ot===1||ot===2))?tt:ut},Rt.tick0=function(ut,ht,j,_){if(ht==="date")return xt.cleanDate(ut,xt.dateTick0(j,_%mt===0?1:0));if(!(_==="D1"||_==="D2"))return it(ut)?Number(ut):0}},33816:function(Ct,Rt,o){var it=o(53756).counter;Ct.exports={idRegex:{x:it("x","( domain)?"),y:it("y","( domain)?")},attrRegex:it("[xy]axis"),xAxisMatch:it("xaxis"),yAxisMatch:it("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"}}},71888:function(Ct,Rt,o){var it=o(3400),xt=o(19280),et=o(79811).id2name,Et=o(94724),mt=o(21160),ut=o(78344),ht=o(39032).ALMOST_EQUAL,j=o(84284).FROM_BL;Rt.handleDefaults=function(dt,bt,ft){var at=ft.axIds,yt=ft.axHasImage,St=bt._axisConstraintGroups=[],_t=bt._axisMatchGroups=[],Mt,Tt,kt,wt,ct,It,At,Ot;for(Mt=0;MtSt?ft.substr(St):at.substr(yt))+_t}function nt(dt,bt){for(var ft=bt._size,at=ft.h/ft.w,yt={},St=Object.keys(dt),_t=0;_tht*Ot&&!Nt)){for(St=0;StYt&&trlr&&(lr=tr);var hr=(lr-er)/(2*Jt);ct/=hr,er=Tt.l2r(er),lr=Tt.l2r(lr),Tt.range=Tt._input.range=Vt=0){ho._fullLayout._deactivateShape(ho);return}var go=ho._fullLayout.clickmode;if(Yt(ho),eo===2&&!zr&&Wr(),Rr)go.indexOf("select")>-1&&kt(Gn,ho,sn,un,cr.id,rn),go.indexOf("event")>-1&&tt.click(ho,Gn,cr.id);else if(eo===1&&zr){var _o=Ar?kr:Br,co=Ar==="s"||_r==="w"?0:1,zo=_o._name+".range["+co+"]",Io=$t(_o,co),Lo="left",vs="middle";if(_o.fixedrange)return;Ar?(vs=Ar==="n"?"top":"bottom",_o.side==="right"&&(Lo="right")):_r==="e"&&(Lo="right"),ho._context.showAxisRangeEntryBoxes&&it.select(en).call(j.makeEditable,{gd:ho,immediate:!0,background:ho._fullLayout.paper_bgcolor,text:String(Io),fill:_o.tickfont?_o.tickfont.color:"#444",horizontalAlign:Lo,verticalAlign:vs}).on("edit",function(Zo){var Ls=_o.d2r(Zo);Ls!==void 0&&ut.call("_guiRelayout",ho,zo,Ls)})}}nt.init(rn);var fn,bn,Un,_i,yn,Kn,Jn,so,ba,An;function hn(eo,Gn,ho){var go=en.getBoundingClientRect();fn=Gn-go.left,bn=ho-go.top,tr._fullLayout._calcInverseTransform(tr);var _o=xt.apply3DTransform(tr._fullLayout._invTransform)(fn,bn);fn=_o[0],bn=_o[1],Un={l:fn,r:fn,w:0,t:bn,b:bn,h:0},_i=tr._hmpixcount?tr._hmlumcount/tr._hmpixcount:Et(tr._fullLayout.plot_bgcolor).getLuminance(),yn="M0,0H"+ln+"V"+mn+"H0V0",Kn=!1,Jn="xy",An=!1,so=qt(Er,_i,qr,Xr,yn),ba=er(Er,qr,Xr)}function wn(eo,Gn){if(tr._transitioningWithDuration)return!1;var ho=Math.max(0,Math.min(ln,ur*eo+fn)),go=Math.max(0,Math.min(mn,xr*Gn+bn)),_o=Math.abs(ho-fn),co=Math.abs(go-bn);Un.l=Math.min(fn,ho),Un.r=Math.max(fn,ho),Un.t=Math.min(bn,go),Un.b=Math.max(bn,go);function zo(){Jn="",Un.r=Un.l,Un.t=Un.b,ba.attr("d","M0,0Z")}if(pn.isSubplotConstrained)_o>At||co>At?(Jn="xy",_o/ln>co/mn?(co=_o*mn/ln,bn>go?Un.t=bn-co:Un.b=bn+co):(_o=co*ln/mn,fn>ho?Un.l=fn-_o:Un.r=fn+_o),ba.attr("d",sr(Un))):zo();else if(En.isSubplotConstrained)if(_o>At||co>At){Jn="xy";var Io=Math.min(Un.l/ln,(mn-Un.b)/mn),Lo=Math.max(Un.r/ln,(mn-Un.t)/mn);Un.l=Io*ln,Un.r=Lo*ln,Un.b=(1-Io)*mn,Un.t=(1-Lo)*mn,ba.attr("d",sr(Un))}else zo();else!Or||co0){var Zo;if(En.isSubplotConstrained||!Jr&&Or.length===1){for(Zo=0;Zo1&&(zo.maxallowed!==void 0&&jr===(zo.range[0]1&&(Io.maxallowed!==void 0&&Gr===(Io.range[0]=0?Math.min(tr,.9):1/(1/Math.max(tr,-.3)+3.222))}function Xt(tr,cr,hr){return tr?tr==="nsew"?hr?"":cr==="pan"?"move":"crosshair":tr.toLowerCase()+"-resize":"pointer"}function qt(tr,cr,hr,br,Tr){return tr.append("path").attr("class","zoombox").style({fill:cr>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",ht(hr,br)).attr("d",Tr+"Z")}function er(tr,cr,hr){return tr.append("path").attr("class","zoombox-corners").style({fill:_.background,stroke:_.defaultLine,"stroke-width":1,opacity:0}).attr("transform",ht(cr,hr)).attr("d","M0,0Z")}function lr(tr,cr,hr,br,Tr,Ir){tr.attr("d",br+"M"+hr.l+","+hr.t+"v"+hr.h+"h"+hr.w+"v-"+hr.h+"h-"+hr.w+"Z"),Jt(tr,cr,Tr,Ir)}function Jt(tr,cr,hr,br){hr||(tr.transition().style("fill",br>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),cr.transition().style("opacity",1).duration(200))}function Yt(tr){it.select(tr).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function rr(tr){Ot&&tr.data&&tr._context.showTips&&(xt.notifier(xt._(tr,"Double-click to zoom back out"),"long"),Ot=!1)}function jt(tr,cr){return"M"+(tr.l-.5)+","+(cr-At-.5)+"h-3v"+(2*At+1)+"h3ZM"+(tr.r+.5)+","+(cr-At-.5)+"h3v"+(2*At+1)+"h-3Z"}function ar(tr,cr){return"M"+(cr-At-.5)+","+(tr.t-.5)+"v-3h"+(2*At+1)+"v3ZM"+(cr-At-.5)+","+(tr.b+.5)+"v3h"+(2*At+1)+"v-3Z"}function sr(tr){var cr=Math.floor(Math.min(tr.b-tr.t,tr.r-tr.l,At)/2);return"M"+(tr.l-3.5)+","+(tr.t-.5+cr)+"h3v"+-cr+"h"+cr+"v-3h-"+(cr+3)+"ZM"+(tr.r+3.5)+","+(tr.t-.5+cr)+"h-3v"+-cr+"h"+-cr+"v-3h"+(cr+3)+"ZM"+(tr.r+3.5)+","+(tr.b+.5-cr)+"h-3v"+cr+"h"+-cr+"v3h"+(cr+3)+"ZM"+(tr.l-3.5)+","+(tr.b+.5-cr)+"h3v"+cr+"h"+cr+"v3h-"+(cr+3)+"Z"}function Zt(tr,cr,hr,br,Tr){for(var Ir=!1,Ar={},_r={},Er,Rr,zr,Br,kr=(Tr||{}).xaHash,Nr=(Tr||{}).yaHash,Qr=0;QrMt[1]-.000244140625&&(mt.domain=nt),xt.noneOrAll(Et.domain,mt.domain,nt),mt.tickmode==="sync"&&(mt.tickmode="auto")}return ut("layer"),mt}},42568:function(Ct,Rt,o){var it=o(85024);Ct.exports=function(et,Et,mt,ut,ht){ht||(ht={});var j=ht.tickSuffixDflt,_=it(et),rt=mt("tickprefix");rt&&mt("showtickprefix",_);var tt=mt("ticksuffix",j);tt&&mt("showticksuffix",_)}},96312:function(Ct,Rt,o){var it=o(76808);Ct.exports=function(et,Et,mt,ut){var ht=Et._template||{},j=Et.type||ht.type||"-";mt("minallowed"),mt("maxallowed");var _=mt("range");if(!_){var rt;!ut.noInsiderange&&j!=="log"&&(rt=mt("insiderange"),rt&&(rt[0]===null||rt[1]===null)&&(Et.insiderange=!1,rt=void 0),rt&&(_=mt("range",rt)))}var tt=Et.getAutorangeDflt(_,ut),st=mt("autorange",tt),ot;_&&(_[0]===null&&_[1]===null||(_[0]===null||_[1]===null)&&(st==="reversed"||st===!0)||_[0]!==null&&(st==="min"||st==="max reversed")||_[1]!==null&&(st==="max"||st==="min reversed"))&&(_=void 0,delete Et.range,Et.autorange=!0,ot=!0),ot||(tt=Et.getAutorangeDflt(_,ut),st=mt("autorange",tt)),st&&(it(mt,st,_),(j==="linear"||j==="-")&&mt("rangemode")),Et.cleanRange()}},21160:function(Ct,Rt,o){var it=o(84284).FROM_BL;Ct.exports=function(et,Et,mt){mt===void 0&&(mt=it[et.constraintoward||"center"]);var ut=[et.r2l(et.range[0]),et.r2l(et.range[1])],ht=ut[0]+(ut[1]-ut[0])*mt;et.range=et._input.range=[et.l2r(ht+(ut[0]-ht)*Et),et.l2r(ht+(ut[1]-ht)*Et)],et.setScale()}},78344:function(Ct,Rt,o){var it=o(33428),xt=o(94336).E9,et=o(3400),Et=et.numberFormat,mt=o(38248),ut=et.cleanNumber,ht=et.ms2DateTime,j=et.dateTime2ms,_=et.ensureNumber,rt=et.isArrayOrTypedArray,tt=o(39032),st=tt.FP_SAFE,ot=tt.BADNUM,nt=tt.LOG_CLIP,vt=tt.ONEWEEK,dt=tt.ONEDAY,bt=tt.ONEHOUR,ft=tt.ONEMIN,at=tt.ONESEC,yt=o(79811),St=o(33816),_t=St.HOUR_PATTERN,Mt=St.WEEKDAY_PATTERN;function Tt(wt){return Math.pow(10,wt)}function kt(wt){return wt!=null}Ct.exports=function(ct,It){It=It||{};var At=ct._id||"x",Ot=At.charAt(0);function Pt(jt,ar){if(jt>0)return Math.log(jt)/Math.LN10;if(jt<=0&&ar&&ct.range&&ct.range.length===2){var sr=ct.range[0],Zt=ct.range[1];return .5*(sr+Zt-2*nt*Math.abs(sr-Zt))}else return ot}function zt(jt,ar,sr,Zt){if((Zt||{}).msUTC&&mt(jt))return+jt;var Kt=j(jt,sr||ct.calendar);if(Kt===ot)if(mt(jt)){jt=+jt;var or=Math.floor(et.mod(jt+.05,1)*10),tr=Math.round(jt-or/10);Kt=j(new Date(tr))+or/10}else return ot;return Kt}function Dt(jt,ar,sr){return ht(jt,ar,sr||ct.calendar)}function Nt(jt){return ct._categories[Math.round(jt)]}function $t(jt){if(kt(jt)){if(ct._categoriesMap===void 0&&(ct._categoriesMap={}),ct._categoriesMap[jt]!==void 0)return ct._categoriesMap[jt];ct._categories.push(typeof jt=="number"?String(jt):jt);var ar=ct._categories.length-1;return ct._categoriesMap[jt]=ar,ar}return ot}function Ut(jt,ar){for(var sr=new Array(ar),Zt=0;Ztct.range[1]&&(sr=!sr);for(var Zt=sr?-1:1,Kt=Zt*jt,or=0,tr=0;trhr)or=tr+1;else{or=Kt<(cr+hr)/2?tr:tr+1;break}}var br=ct._B[or]||0;return isFinite(br)?qt(jt,ct._m2,br):0},Jt=function(jt){var ar=ct._rangebreaks.length;if(!ar)return er(jt,ct._m,ct._b);for(var sr=0,Zt=0;Ztct._rangebreaks[Zt].pmax&&(sr=Zt+1);return er(jt,ct._m2,ct._B[sr])}}ct.c2l=ct.type==="log"?Pt:_,ct.l2c=ct.type==="log"?Tt:_,ct.l2p=lr,ct.p2l=Jt,ct.c2p=ct.type==="log"?function(jt,ar){return lr(Pt(jt,ar))}:lr,ct.p2c=ct.type==="log"?function(jt){return Tt(Jt(jt))}:Jt,["linear","-"].indexOf(ct.type)!==-1?(ct.d2r=ct.r2d=ct.d2c=ct.r2c=ct.d2l=ct.r2l=ut,ct.c2d=ct.c2r=ct.l2d=ct.l2r=_,ct.d2p=ct.r2p=function(jt){return ct.l2p(ut(jt))},ct.p2d=ct.p2r=Jt,ct.cleanPos=_):ct.type==="log"?(ct.d2r=ct.d2l=function(jt,ar){return Pt(ut(jt),ar)},ct.r2d=ct.r2c=function(jt){return Tt(ut(jt))},ct.d2c=ct.r2l=ut,ct.c2d=ct.l2r=_,ct.c2r=Pt,ct.l2d=Tt,ct.d2p=function(jt,ar){return ct.l2p(ct.d2r(jt,ar))},ct.p2d=function(jt){return Tt(Jt(jt))},ct.r2p=function(jt){return ct.l2p(ut(jt))},ct.p2r=Jt,ct.cleanPos=_):ct.type==="date"?(ct.d2r=ct.r2d=et.identity,ct.d2c=ct.r2c=ct.d2l=ct.r2l=zt,ct.c2d=ct.c2r=ct.l2d=ct.l2r=Dt,ct.d2p=ct.r2p=function(jt,ar,sr){return ct.l2p(zt(jt,0,sr))},ct.p2d=ct.p2r=function(jt,ar,sr){return Dt(Jt(jt),ar,sr)},ct.cleanPos=function(jt){return et.cleanDate(jt,ot,ct.calendar)}):ct.type==="category"?(ct.d2c=ct.d2l=$t,ct.r2d=ct.c2d=ct.l2d=Nt,ct.d2r=ct.d2l_noadd=Vt,ct.r2c=function(jt){var ar=Xt(jt);return ar!==void 0?ar:ct.fraction2r(.5)},ct.l2r=ct.c2r=_,ct.r2l=Xt,ct.d2p=function(jt){return ct.l2p(ct.r2c(jt))},ct.p2d=function(jt){return Nt(Jt(jt))},ct.r2p=ct.d2p,ct.p2r=Jt,ct.cleanPos=function(jt){return typeof jt=="string"&&jt!==""?jt:_(jt)}):ct.type==="multicategory"&&(ct.r2d=ct.c2d=ct.l2d=Nt,ct.d2r=ct.d2l_noadd=Vt,ct.r2c=function(jt){var ar=Vt(jt);return ar!==void 0?ar:ct.fraction2r(.5)},ct.r2c_just_indices=Ht,ct.l2r=ct.c2r=_,ct.r2l=Vt,ct.d2p=function(jt){return ct.l2p(ct.r2c(jt))},ct.p2d=function(jt){return Nt(Jt(jt))},ct.r2p=ct.d2p,ct.p2r=Jt,ct.cleanPos=function(jt){return Array.isArray(jt)||typeof jt=="string"&&jt!==""?jt:_(jt)},ct.setupMultiCategory=function(jt){var ar=ct._traceIndices,sr,Zt,Kt=ct._matchGroup;if(Kt&&ct._categories.length===0){for(var or in Kt)if(or!==At){var tr=It[yt.id2name(or)];ar=ar.concat(tr._traceIndices)}}var cr=[[0,{}],[0,{}]],hr=[];for(sr=0;srtr[1]&&(Zt[or?0:1]=sr),Zt[0]===Zt[1]){var cr=ct.l2r(ar),hr=ct.l2r(sr);if(ar!==void 0){var br=cr+1;sr!==void 0&&(br=Math.min(br,hr)),Zt[or?1:0]=br}if(sr!==void 0){var Tr=hr+1;ar!==void 0&&(Tr=Math.max(Tr,cr)),Zt[or?0:1]=Tr}}}},ct.cleanRange=function(jt,ar){ct._cleanRange(jt,ar),ct.limitRange(jt)},ct._cleanRange=function(jt,ar){ar||(ar={}),jt||(jt="range");var sr=et.nestedProperty(ct,jt).get(),Zt,Kt;if(ct.type==="date"?Kt=et.dfltRange(ct.calendar):Ot==="y"?Kt=St.DFLTRANGEY:ct._name==="realaxis"?Kt=[0,1]:Kt=ar.dfltRange||St.DFLTRANGEX,Kt=Kt.slice(),(ct.rangemode==="tozero"||ct.rangemode==="nonnegative")&&(Kt[0]=0),!sr||sr.length!==2){et.nestedProperty(ct,jt).set(Kt);return}var or=sr[0]===null,tr=sr[1]===null;for(ct.type==="date"&&!ct.autorange&&(sr[0]=et.cleanDate(sr[0],ot,ct.calendar),sr[1]=et.cleanDate(sr[1],ot,ct.calendar)),Zt=0;Zt<2;Zt++)if(ct.type==="date"){if(!et.isDateTime(sr[Zt],ct.calendar)){ct[jt]=Kt;break}if(ct.r2l(sr[0])===ct.r2l(sr[1])){var cr=et.constrain(ct.r2l(sr[0]),et.MIN_MS+1e3,et.MAX_MS-1e3);sr[0]=ct.l2r(cr-1e3),sr[1]=ct.l2r(cr+1e3);break}}else{if(!mt(sr[Zt]))if(!(or||tr)&&mt(sr[1-Zt]))sr[Zt]=sr[1-Zt]*(Zt?10:.1);else{ct[jt]=Kt;break}if(sr[Zt]<-st?sr[Zt]=-st:sr[Zt]>st&&(sr[Zt]=st),sr[0]===sr[1]){var hr=Math.max(1,Math.abs(sr[0]*1e-6));sr[0]-=hr,sr[1]+=hr}}},ct.setScale=function(jt){var ar=It._size;if(ct.overlaying){var sr=yt.getFromId({_fullLayout:It},ct.overlaying);ct.domain=sr.domain}var Zt=jt&&ct._r?"_r":"range",Kt=ct.calendar;ct.cleanRange(Zt);var or=ct.r2l(ct[Zt][0],Kt),tr=ct.r2l(ct[Zt][1],Kt),cr=Ot==="y";if(cr?(ct._offset=ar.t+(1-ct.domain[1])*ar.h,ct._length=ar.h*(ct.domain[1]-ct.domain[0]),ct._m=ct._length/(or-tr),ct._b=-ct._m*tr):(ct._offset=ar.l+ct.domain[0]*ar.w,ct._length=ar.w*(ct.domain[1]-ct.domain[0]),ct._m=ct._length/(tr-or),ct._b=-ct._m*or),ct._rangebreaks=[],ct._lBreaks=0,ct._m2=0,ct._B=[],ct.rangebreaks){var hr,br;if(ct._rangebreaks=ct.locateBreaks(Math.min(or,tr),Math.max(or,tr)),ct._rangebreaks.length){for(hr=0;hrtr&&(Tr=!Tr),Tr&&ct._rangebreaks.reverse();var Ir=Tr?-1:1;for(ct._m2=Ir*ct._length/(Math.abs(tr-or)-ct._lBreaks),ct._B.push(-ct._m2*(cr?tr:or)),hr=0;hrKt&&(Kt+=7,orKt&&(Kt+=24,or=Zt&&or=Zt&&jt=un.min&&(krun.max&&(un.max=Nr),Qr=!1)}Qr&&tr.push({min:kr,max:Nr})}};for(sr=0;sr rect").call(Et.setTranslate,0,0).call(Et.setScale,1,1),_t.plot.call(Et.setTranslate,Mt._offset,Tt._offset).call(Et.setScale,1,1);var kt=_t.plot.selectAll(".scatterlayer .trace");kt.selectAll(".point").call(Et.setPointGroupScale,1,1),kt.selectAll(".textpoint").call(Et.setTextPointsScale,1,1),kt.call(Et.hideOutsideRangePoints,_t)}function ot(_t,Mt){var Tt=_t.plotinfo,kt=Tt.xaxis,wt=Tt.yaxis,ct=kt._length,It=wt._length,At=!!_t.xr1,Ot=!!_t.yr1,Pt=[];if(At){var zt=et.simpleMap(_t.xr0,kt.r2l),Dt=et.simpleMap(_t.xr1,kt.r2l),Nt=zt[1]-zt[0],$t=Dt[1]-Dt[0];Pt[0]=(zt[0]*(1-Mt)+Mt*Dt[0]-zt[0])/(zt[1]-zt[0])*ct,Pt[2]=ct*(1-Mt+Mt*$t/Nt),kt.range[0]=kt.l2r(zt[0]*(1-Mt)+Mt*Dt[0]),kt.range[1]=kt.l2r(zt[1]*(1-Mt)+Mt*Dt[1])}else Pt[0]=0,Pt[2]=ct;if(Ot){var Ut=et.simpleMap(_t.yr0,wt.r2l),Ht=et.simpleMap(_t.yr1,wt.r2l),Vt=Ut[1]-Ut[0],Xt=Ht[1]-Ht[0];Pt[1]=(Ut[1]*(1-Mt)+Mt*Ht[1]-Ut[1])/(Ut[0]-Ut[1])*It,Pt[3]=It*(1-Mt+Mt*Xt/Vt),wt.range[0]=kt.l2r(Ut[0]*(1-Mt)+Mt*Ht[0]),wt.range[1]=wt.l2r(Ut[1]*(1-Mt)+Mt*Ht[1])}else Pt[1]=0,Pt[3]=It;mt.drawOne(ht,kt,{skipTitle:!0}),mt.drawOne(ht,wt,{skipTitle:!0}),mt.redrawComponents(ht,[kt._id,wt._id]);var qt=At?ct/Pt[2]:1,er=Ot?It/Pt[3]:1,lr=At?Pt[0]:0,Jt=Ot?Pt[1]:0,Yt=At?Pt[0]/Pt[2]*ct:0,rr=Ot?Pt[1]/Pt[3]*It:0,jt=kt._offset-Yt,ar=wt._offset-rr;Tt.clipRect.call(Et.setTranslate,lr,Jt).call(Et.setScale,1/qt,1/er),Tt.plot.call(Et.setTranslate,jt,ar).call(Et.setScale,qt,er),Et.setPointGroupScale(Tt.zoomScalePts,1/qt,1/er),Et.setTextPointsScale(Tt.zoomScaleTxt,1/qt,1/er)}var nt;rt&&(nt=rt());function vt(){for(var _t={},Mt=0;Mt_.duration?(vt(),at=window.cancelAnimationFrame(St)):at=window.requestAnimationFrame(St)}return bt=Date.now(),at=window.requestAnimationFrame(St),Promise.resolve()}},14944:function(Ct,Rt,o){var it=o(24040).traceIs,xt=o(52976);Ct.exports=function(j,_,rt,tt){rt("autotypenumbers",tt.autotypenumbersDflt);var st=rt("type",(tt.splomStash||{}).type);st==="-"&&(et(_,tt.data),_.type==="-"?_.type="linear":j.type=_.type)};function et(ht,j){if(ht.type==="-"){var _=ht._id,rt=_.charAt(0),tt;_.indexOf("scene")!==-1&&(_=rt);var st=Et(j,_,rt);if(st){if(st.type==="histogram"&&rt==={v:"y",h:"x"}[st.orientation||"v"]){ht.type="linear";return}var ot=rt+"calendar",nt=st[ot],vt={noMultiCategory:!it(st,"cartesian")||it(st,"noMultiCategory")};if(st.type==="box"&&st._hasPreCompStats&&rt==={h:"x",v:"y"}[st.orientation||"v"]&&(vt.noMultiCategory=!0),vt.autotypenumbers=ht.autotypenumbers,ut(st,rt)){var dt=mt(st),bt=[];for(tt=0;tt0&&(tt["_"+_+"axes"]||{})[j])return tt;if((tt[_+"axis"]||_)===j){if(ut(tt,_))return tt;if((tt[_]||[]).length||tt[_+"0"])return tt}}}function mt(ht){return{v:"x",h:"y"}[ht.orientation||"v"]}function ut(ht,j){var _=mt(ht),rt=it(ht,"box-violin"),tt=it(ht._fullInput||{},"candlestick");return rt&&!tt&&j===_&&ht[_]===void 0&&ht[_+"0"]===void 0}},62460:function(Ct,Rt,o){var it=o(24040),xt=o(3400);Rt.manageCommandObserver=function(j,_,rt,tt){var st={},ot=!0;_&&_._commandObserver&&(st=_._commandObserver),st.cache||(st.cache={}),st.lookupTable={};var nt=Rt.hasSimpleAPICommandBindings(j,rt,st.lookupTable);if(_&&_._commandObserver){if(nt)return st;if(_._commandObserver.remove)return _._commandObserver.remove(),_._commandObserver=null,st}if(nt){et(j,nt,st.cache),st.check=function(){if(ot){var ft=et(j,nt,st.cache);return ft.changed&&tt&&st.lookupTable[ft.value]!==void 0&&(st.disable(),Promise.resolve(tt({value:ft.value,type:nt.type,prop:nt.prop,traces:nt.traces,index:st.lookupTable[ft.value]})).then(st.enable,st.enable)),ft.changed}};for(var vt=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],dt=0;dt0?".":"")+st;xt.isPlainObject(ot)?ht(ot,_,nt,tt+1):_(nt,st,ot)}})}},86968:function(Ct,Rt,o){var it=o(92880).extendFlat;Rt.u=function(xt,et){xt=xt||{},et=et||{};var Et={valType:"info_array",editType:xt.editType,items:[{valType:"number",min:0,max:1,editType:xt.editType},{valType:"number",min:0,max:1,editType:xt.editType}],dflt:[0,1]};xt.name&&xt.name+"",xt.trace,et.description&&""+et.description;var mt={x:it({},Et,{}),y:it({},Et,{}),editType:xt.editType};return xt.noGridCell||(mt.row={valType:"integer",min:0,dflt:0,editType:xt.editType},mt.column={valType:"integer",min:0,dflt:0,editType:xt.editType}),mt},Rt.Q=function(xt,et,Et,mt){var ut=mt&&mt.x||[0,1],ht=mt&&mt.y||[0,1],j=et.grid;if(j){var _=Et("domain.column");_!==void 0&&(_0&&$t._module.calcGeoJSON(Nt,Ot)}if(!Pt){var Ut=this.updateProjection(At,Ot);if(Ut)return;(!this.viewInitial||this.scope!==zt.scope)&&this.saveViewInitial(zt)}this.scope=zt.scope,this.updateBaseLayers(Ot,zt),this.updateDims(Ot,zt),this.updateFx(Ot,zt),st.generalUpdatePerTraceModule(this.graphDiv,this,At,zt);var Ht=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=Ht.selectAll(".point"),this.dataPoints.text=Ht.selectAll("text"),this.dataPaths.line=Ht.selectAll(".js-line");var Vt=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=Vt.selectAll("path"),this._render()},kt.updateProjection=function(At,Ot){var Pt=this.graphDiv,zt=Ot[this.id],Dt=Ot._size,Nt=zt.domain,$t=zt.projection,Ut=zt.lonaxis,Ht=zt.lataxis,Vt=Ut._ax,Xt=Ht._ax,qt=this.projection=wt(zt),er=[[Dt.l+Dt.w*Nt.x[0],Dt.t+Dt.h*(1-Nt.y[1])],[Dt.l+Dt.w*Nt.x[1],Dt.t+Dt.h*(1-Nt.y[0])]],lr=zt.center||{},Jt=$t.rotation||{},Yt=Ut.range||[],rr=Ht.range||[];if(zt.fitbounds){Vt._length=er[1][0]-er[0][0],Xt._length=er[1][1]-er[0][1],Vt.range=nt(Pt,Vt),Xt.range=nt(Pt,Xt);var jt=(Vt.range[0]+Vt.range[1])/2,ar=(Xt.range[0]+Xt.range[1])/2;if(zt._isScoped)lr={lon:jt,lat:ar};else if(zt._isClipped){lr={lon:jt,lat:ar},Jt={lon:jt,lat:ar,roll:Jt.roll};var sr=$t.type,Zt=yt.lonaxisSpan[sr]/2||180,Kt=yt.lataxisSpan[sr]/2||90;Yt=[jt-Zt,jt+Zt],rr=[ar-Kt,ar+Kt]}else lr={lon:jt,lat:ar},Jt={lon:jt,lat:Jt.lat,roll:Jt.roll}}qt.center([lr.lon-Jt.lon,lr.lat-Jt.lat]).rotate([-Jt.lon,-Jt.lat,Jt.roll]).parallels($t.parallels);var or=It(Yt,rr);qt.fitExtent(er,or);var tr=this.bounds=qt.getBounds(or),cr=this.fitScale=qt.scale(),hr=qt.translate();if(zt.fitbounds){var br=qt.getBounds(It(Vt.range,Xt.range)),Tr=Math.min((tr[1][0]-tr[0][0])/(br[1][0]-br[0][0]),(tr[1][1]-tr[0][1])/(br[1][1]-br[0][1]));isFinite(Tr)?qt.scale(Tr*cr):ht.warn("Something went wrong during"+this.id+"fitbounds computations.")}else qt.scale($t.scale*cr);var Ir=this.midPt=[(tr[0][0]+tr[1][0])/2,(tr[0][1]+tr[1][1])/2];if(qt.translate([hr[0]+(Ir[0]-hr[0]),hr[1]+(Ir[1]-hr[1])]).clipExtent(tr),zt._isAlbersUsa){var Ar=qt([lr.lon,lr.lat]),_r=qt.translate();qt.translate([_r[0]-(Ar[0]-_r[0]),_r[1]-(Ar[1]-_r[1])])}},kt.updateBaseLayers=function(At,Ot){var Pt=this,zt=Pt.topojson,Dt=Pt.layers,Nt=Pt.basePaths;function $t(er){return er==="lonaxis"||er==="lataxis"}function Ut(er){return Boolean(yt.lineLayers[er])}function Ht(er){return Boolean(yt.fillLayers[er])}var Vt=this.hasChoropleth?yt.layersForChoropleth:yt.layers,Xt=Vt.filter(function(er){return Ut(er)||Ht(er)?Ot["show"+er]:$t(er)?Ot[er].showgrid:!0}),qt=Pt.framework.selectAll(".layer").data(Xt,String);qt.exit().each(function(er){delete Dt[er],delete Nt[er],it.select(this).remove()}),qt.enter().append("g").attr("class",function(er){return"layer "+er}).each(function(er){var lr=Dt[er]=it.select(this);er==="bg"?Pt.bgRect=lr.append("rect").style("pointer-events","all"):$t(er)?Nt[er]=lr.append("path").style("fill","none"):er==="backplot"?lr.append("g").classed("choroplethlayer",!0):er==="frontplot"?lr.append("g").classed("scatterlayer",!0):Ut(er)?Nt[er]=lr.append("path").style("fill","none").style("stroke-miterlimit",2):Ht(er)&&(Nt[er]=lr.append("path").style("stroke","none"))}),qt.order(),qt.each(function(er){var lr=Nt[er],Jt=yt.layerNameToAdjective[er];er==="frame"?lr.datum(yt.sphereSVG):Ut(er)||Ht(er)?lr.datum(Mt(zt,zt.objects[er])):$t(er)&&lr.datum(ct(er,Ot,At)).call(_.stroke,Ot[er].gridcolor).call(rt.dashLine,Ot[er].griddash,Ot[er].gridwidth),Ut(er)?lr.call(_.stroke,Ot[Jt+"color"]).call(rt.dashLine,"",Ot[Jt+"width"]):Ht(er)&&lr.call(_.fill,Ot[Jt+"color"])})},kt.updateDims=function(At,Ot){var Pt=this.bounds,zt=(Ot.framewidth||0)/2,Dt=Pt[0][0]-zt,Nt=Pt[0][1]-zt,$t=Pt[1][0]-Dt+zt,Ut=Pt[1][1]-Nt+zt;rt.setRect(this.clipRect,Dt,Nt,$t,Ut),this.bgRect.call(rt.setRect,Dt,Nt,$t,Ut).call(_.fill,Ot.bgcolor),this.xaxis._offset=Dt,this.xaxis._length=$t,this.yaxis._offset=Nt,this.yaxis._length=Ut},kt.updateFx=function(At,Ot){var Pt=this,zt=Pt.graphDiv,Dt=Pt.bgRect,Nt=At.dragmode,$t=At.clickmode;if(Pt.isStatic)return;function Ut(){var qt=Pt.viewInitial,er={};for(var lr in qt)er[Pt.id+"."+lr]=qt[lr];ut.call("_guiRelayout",zt,er),zt.emit("plotly_doubleclick",null)}function Ht(qt){return Pt.projection.invert([qt[0]+Pt.xaxis._offset,qt[1]+Pt.yaxis._offset])}var Vt=function(qt,er){if(er.isRect){var lr=qt.range={};lr[Pt.id]=[Ht([er.xmin,er.ymin]),Ht([er.xmax,er.ymax])]}else{var Jt=qt.lassoPoints={};Jt[Pt.id]=er.map(Ht)}},Xt={element:Pt.bgRect.node(),gd:zt,plotinfo:{id:Pt.id,xaxis:Pt.xaxis,yaxis:Pt.yaxis,fillRangeItems:Vt},xaxes:[Pt.xaxis],yaxes:[Pt.yaxis],subplot:Pt.id,clickFn:function(qt){qt===2&&bt(zt)}};Nt==="pan"?(Dt.node().onmousedown=null,Dt.call(at(Pt,Ot)),Dt.on("dblclick.zoom",Ut),zt._context._scrollZoom.geo||Dt.on("wheel.zoom",null)):(Nt==="select"||Nt==="lasso")&&(Dt.on(".zoom",null),Xt.prepFn=function(qt,er,lr){dt(qt,er,lr,Xt,Nt)},vt.init(Xt)),Dt.on("mousemove",function(){var qt=Pt.projection.invert(ht.getPositionFromD3Event());if(!qt)return vt.unhover(zt,it.event);Pt.xaxis.p2c=function(){return qt[0]},Pt.yaxis.p2c=function(){return qt[1]},tt.hover(zt,it.event,Pt.id)}),Dt.on("mouseout",function(){zt._dragging||vt.unhover(zt,it.event)}),Dt.on("click",function(){Nt!=="select"&&Nt!=="lasso"&&($t.indexOf("select")>-1&&ft(it.event,zt,[Pt.xaxis],[Pt.yaxis],Pt.id,Xt),$t.indexOf("event")>-1&&tt.click(zt,it.event))})},kt.makeFramework=function(){var At=this,Ot=At.graphDiv,Pt=Ot._fullLayout,zt="clip"+Pt._uid+At.id;At.clipDef=Pt._clips.append("clipPath").attr("id",zt),At.clipRect=At.clipDef.append("rect"),At.framework=it.select(At.container).append("g").attr("class","geo "+At.id).call(rt.setClipUrl,zt,Ot),At.project=function(Dt){var Nt=At.projection(Dt);return Nt?[Nt[0]-At.xaxis._offset,Nt[1]-At.yaxis._offset]:[null,null]},At.xaxis={_id:"x",c2p:function(Dt){return At.project(Dt)[0]}},At.yaxis={_id:"y",c2p:function(Dt){return At.project(Dt)[1]}},At.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},ot.setConvert(At.mockAxis,Pt)},kt.saveViewInitial=function(At){var Ot=At.center||{},Pt=At.projection,zt=Pt.rotation||{};this.viewInitial={fitbounds:At.fitbounds,"projection.scale":Pt.scale};var Dt;At._isScoped?Dt={"center.lon":Ot.lon,"center.lat":Ot.lat}:At._isClipped?Dt={"projection.rotation.lon":zt.lon,"projection.rotation.lat":zt.lat}:Dt={"center.lon":Ot.lon,"center.lat":Ot.lat,"projection.rotation.lon":zt.lon},ht.extendFlat(this.viewInitial,Dt)},kt.render=function(At){this._hasMarkerAngles&&At?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()},kt._render=function(){var At=this.projection,Ot=At.getPath(),Pt;function zt(Nt){var $t=At(Nt.lonlat);return $t?j($t[0],$t[1]):null}function Dt(Nt){return At.isLonLatOverEdges(Nt.lonlat)?"none":null}for(Pt in this.basePaths)this.basePaths[Pt].attr("d",Ot);for(Pt in this.dataPaths)this.dataPaths[Pt].attr("d",function(Nt){return Ot(Nt.geojson)});for(Pt in this.dataPoints)this.dataPoints[Pt].attr("display",Dt).attr("transform",zt)};function wt(At){var Ot=At.projection,Pt=Ot.type,zt=yt.projNames[Pt];zt="geo"+ht.titleCase(zt);for(var Dt=xt[zt]||mt[zt],Nt=Dt(),$t=At._isSatellite?Math.acos(1/Ot.distance)*180/Math.PI:At._isClipped?yt.lonaxisSpan[Pt]/2:null,Ut=["center","rotate","parallels","clipExtent"],Ht=function(qt){return qt?Nt:[]},Vt=0;VtJt}else return!1},Nt.getPath=function(){return et().projection(Nt)},Nt.getBounds=function(qt){return Nt.getPath().bounds(qt)},Nt.precision(yt.precision),At._isSatellite&&Nt.tilt(Ot.tilt).distance(Ot.distance),$t&&Nt.clipAngle($t-yt.clipPad),Nt}function ct(At,Ot,Pt){var zt=1e-6,Dt=2.5,Nt=Ot[At],$t=yt.scopeDefaults[Ot.scope],Ut,Ht,Vt;At==="lonaxis"?(Ut=$t.lonaxisRange,Ht=$t.lataxisRange,Vt=function(ar,sr){return[ar,sr]}):At==="lataxis"&&(Ut=$t.lataxisRange,Ht=$t.lonaxisRange,Vt=function(ar,sr){return[sr,ar]});var Xt={type:"linear",range:[Ut[0],Ut[1]-zt],tick0:Nt.tick0,dtick:Nt.dtick};ot.setConvert(Xt,Pt);var qt=ot.calcTicks(Xt);!Ot.isScoped&&At==="lonaxis"&&qt.pop();for(var er=qt.length,lr=new Array(er),Jt=0;Jt0&&Dt<0&&(Dt+=360);var Ut=(Dt-zt)/4;return{type:"Polygon",coordinates:[[[zt,Nt],[zt,$t],[zt+Ut,$t],[zt+2*Ut,$t],[zt+3*Ut,$t],[Dt,$t],[Dt,Nt],[Dt-Ut,Nt],[Dt-2*Ut,Nt],[Dt-3*Ut,Nt],[zt,Nt]]]}}},10816:function(Ct,Rt,o){var it=o(84888).KY,xt=o(3400).counterRegex,et=o(43520),Et="geo",mt=xt(Et),ut={};ut[Et]={valType:"subplotid",dflt:Et,editType:"calc"};function ht(rt){for(var tt=rt._fullLayout,st=rt.calcdata,ot=tt._subplots[Et],nt=0;nt0&&Ht<0&&(Ht+=360);var Vt=(Ut+Ht)/2,Xt;if(!ft){var qt=at?dt.projRotate:[Vt,0,0];Xt=rt("projection.rotation.lon",qt[0]),rt("projection.rotation.lat",qt[1]),rt("projection.rotation.roll",qt[2]),kt=rt("showcoastlines",!at&&Tt),kt&&(rt("coastlinecolor"),rt("coastlinewidth")),kt=rt("showocean",Tt?void 0:!1),kt&&rt("oceancolor")}var er,lr;if(ft?(er=-96.6,lr=38.7):(er=at?Vt:Xt,lr=($t[0]+$t[1])/2),rt("center.lon",er),rt("center.lat",lr),yt&&(rt("projection.tilt"),rt("projection.distance")),St){var Jt=dt.projParallels||[0,60];rt("projection.parallels",Jt)}rt("projection.scale"),kt=rt("showland",Tt?void 0:!1),kt&&rt("landcolor"),kt=rt("showlakes",Tt?void 0:!1),kt&&rt("lakecolor"),kt=rt("showrivers",Tt?void 0:!1),kt&&(rt("rivercolor"),rt("riverwidth")),kt=rt("showcountries",at&&vt!=="usa"&&Tt),kt&&(rt("countrycolor"),rt("countrywidth")),(vt==="usa"||vt==="north america"&&nt===50)&&(rt("showsubunits",Tt),rt("subunitcolor"),rt("subunitwidth")),at||(kt=rt("showframe",Tt),kt&&(rt("framecolor"),rt("framewidth"))),rt("bgcolor");var Yt=rt("fitbounds");Yt&&(delete _.projection.scale,at?(delete _.center.lon,delete _.center.lat):_t?(delete _.center.lon,delete _.center.lat,delete _.projection.rotation.lon,delete _.projection.rotation.lat,delete _.lonaxis.range,delete _.lataxis.range):(delete _.center.lon,delete _.center.lat,delete _.projection.rotation.lon))}},79248:function(Ct,Rt,o){var it=o(33428),xt=o(3400),et=o(24040),Et=Math.PI/180,mt=180/Math.PI,ut={cursor:"pointer"},ht={cursor:"auto"};function j(ct,It){var At=ct.projection,Ot;return It._isScoped?Ot=tt:It._isClipped?Ot=ot:Ot=st,Ot(ct,At)}Ct.exports=j;function _(ct,It){return it.behavior.zoom().translate(It.translate()).scale(It.scale())}function rt(ct,It,At){var Ot=ct.id,Pt=ct.graphDiv,zt=Pt.layout,Dt=zt[Ot],Nt=Pt._fullLayout,$t=Nt[Ot],Ut={},Ht={};function Vt(Xt,qt){Ut[Ot+"."+Xt]=xt.nestedProperty(Dt,Xt).get(),et.call("_storeDirectGUIEdit",zt,Nt._preGUI,Ut);var er=xt.nestedProperty($t,Xt);er.get()!==qt&&(er.set(qt),xt.nestedProperty(Dt,Xt).set(qt),Ht[Ot+"."+Xt]=qt)}At(Vt),Vt("projection.scale",It.scale()/ct.fitScale),Vt("fitbounds",!1),Pt.emit("plotly_relayout",Ht)}function tt(ct,It){var At=_(ct,It);function Ot(){it.select(this).style(ut)}function Pt(){It.scale(it.event.scale).translate(it.event.translate),ct.render(!0);var Nt=It.invert(ct.midPt);ct.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":It.scale()/ct.fitScale,"geo.center.lon":Nt[0],"geo.center.lat":Nt[1]})}function zt(Nt){var $t=It.invert(ct.midPt);Nt("center.lon",$t[0]),Nt("center.lat",$t[1])}function Dt(){it.select(this).style(ht),rt(ct,It,zt)}return At.on("zoomstart",Ot).on("zoom",Pt).on("zoomend",Dt),At}function st(ct,It){var At=_(ct,It),Ot=2,Pt,zt,Dt,Nt,$t,Ut,Ht,Vt,Xt;function qt(jt){return It.invert(jt)}function er(jt){var ar=qt(jt);if(!ar)return!0;var sr=It(ar);return Math.abs(sr[0]-jt[0])>Ot||Math.abs(sr[1]-jt[1])>Ot}function lr(){it.select(this).style(ut),Pt=it.mouse(this),zt=It.rotate(),Dt=It.translate(),Nt=zt,$t=qt(Pt)}function Jt(){if(Ut=it.mouse(this),er(Pt)){At.scale(It.scale()),At.translate(It.translate());return}It.scale(it.event.scale),It.translate([Dt[0],it.event.translate[1]]),$t?qt(Ut)&&(Vt=qt(Ut),Ht=[Nt[0]+(Vt[0]-$t[0]),zt[1],zt[2]],It.rotate(Ht),Nt=Ht):(Pt=Ut,$t=qt(Pt)),Xt=!0,ct.render(!0);var jt=It.rotate(),ar=It.invert(ct.midPt);ct.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":It.scale()/ct.fitScale,"geo.center.lon":ar[0],"geo.center.lat":ar[1],"geo.projection.rotation.lon":-jt[0]})}function Yt(){it.select(this).style(ht),Xt&&rt(ct,It,rr)}function rr(jt){var ar=It.rotate(),sr=It.invert(ct.midPt);jt("projection.rotation.lon",-ar[0]),jt("center.lon",sr[0]),jt("center.lat",sr[1])}return At.on("zoomstart",lr).on("zoom",Jt).on("zoomend",Yt),At}function ot(ct,It){It.rotate(),It.scale();var At=_(ct,It),Ot=wt(At,"zoomstart","zoom","zoomend"),Pt=0,zt=At.on,Dt;At.on("zoomstart",function(){it.select(this).style(ut);var Vt=it.mouse(this),Xt=It.rotate(),qt=Xt,er=It.translate(),lr=vt(Xt);Dt=nt(It,Vt),zt.call(At,"zoom",function(){var Jt=it.mouse(this);if(It.scale(it.event.scale),!Dt)Vt=Jt,Dt=nt(It,Vt);else if(nt(It,Jt)){It.rotate(Xt).translate(er);var Yt=nt(It,Jt),rr=bt(Dt,Yt),jt=_t(dt(lr,rr)),ar=ft(jt,Dt,qt);(!isFinite(ar[0])||!isFinite(ar[1])||!isFinite(ar[2]))&&(ar=qt),It.rotate(ar),qt=ar}$t(Ot.of(this,arguments))}),Nt(Ot.of(this,arguments))}).on("zoomend",function(){it.select(this).style(ht),zt.call(At,"zoom",null),Ut(Ot.of(this,arguments)),rt(ct,It,Ht)}).on("zoom.redraw",function(){ct.render(!0);var Vt=It.rotate();ct.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":It.scale()/ct.fitScale,"geo.projection.rotation.lon":-Vt[0],"geo.projection.rotation.lat":-Vt[1]})});function Nt(Vt){Pt++||Vt({type:"zoomstart"})}function $t(Vt){Vt({type:"zoom"})}function Ut(Vt){--Pt||Vt({type:"zoomend"})}function Ht(Vt){var Xt=It.rotate();Vt("projection.rotation.lon",-Xt[0]),Vt("projection.rotation.lat",-Xt[1])}return it.rebind(At,Ot,"on")}function nt(ct,It){var At=ct.invert(It);return At&&isFinite(At[0])&&isFinite(At[1])&&Mt(At)}function vt(ct){var It=.5*ct[0]*Et,At=.5*ct[1]*Et,Ot=.5*ct[2]*Et,Pt=Math.sin(It),zt=Math.cos(It),Dt=Math.sin(At),Nt=Math.cos(At),$t=Math.sin(Ot),Ut=Math.cos(Ot);return[zt*Nt*Ut+Pt*Dt*$t,Pt*Nt*Ut-zt*Dt*$t,zt*Dt*Ut+Pt*Nt*$t,zt*Nt*$t-Pt*Dt*Ut]}function dt(ct,It){var At=ct[0],Ot=ct[1],Pt=ct[2],zt=ct[3],Dt=It[0],Nt=It[1],$t=It[2],Ut=It[3];return[At*Dt-Ot*Nt-Pt*$t-zt*Ut,At*Nt+Ot*Dt+Pt*Ut-zt*$t,At*$t-Ot*Ut+Pt*Dt+zt*Nt,At*Ut+Ot*$t-Pt*Nt+zt*Dt]}function bt(ct,It){if(!(!ct||!It)){var At=kt(ct,It),Ot=Math.sqrt(Tt(At,At)),Pt=.5*Math.acos(Math.max(-1,Math.min(1,Tt(ct,It)))),zt=Math.sin(Pt)/Ot;return Ot&&[Math.cos(Pt),At[2]*zt,-At[1]*zt,At[0]*zt]}}function ft(ct,It,At){var Ot=St(It,2,ct[0]);Ot=St(Ot,1,ct[1]),Ot=St(Ot,0,ct[2]-At[2]);var Pt=It[0],zt=It[1],Dt=It[2],Nt=Ot[0],$t=Ot[1],Ut=Ot[2],Ht=Math.atan2(zt,Pt)*mt,Vt=Math.sqrt(Pt*Pt+zt*zt),Xt,qt;Math.abs($t)>Vt?(qt=($t>0?90:-90)-Ht,Xt=0):(qt=Math.asin($t/Vt)*mt-Ht,Xt=Math.sqrt(Vt*Vt-$t*$t));var er=180-qt-2*Ht,lr=(Math.atan2(Ut,Nt)-Math.atan2(Dt,Xt))*mt,Jt=(Math.atan2(Ut,Nt)-Math.atan2(Dt,-Xt))*mt,Yt=at(At[0],At[1],qt,lr),rr=at(At[0],At[1],er,Jt);return Yt<=rr?[qt,lr,At[2]]:[er,Jt,At[2]]}function at(ct,It,At,Ot){var Pt=yt(At-ct),zt=yt(Ot-It);return Math.sqrt(Pt*Pt+zt*zt)}function yt(ct){return(ct%360+540)%360-180}function St(ct,It,At){var Ot=At*Et,Pt=ct.slice(),zt=It===0?1:0,Dt=It===2?1:2,Nt=Math.cos(Ot),$t=Math.sin(Ot);return Pt[zt]=ct[zt]*Nt-ct[Dt]*$t,Pt[Dt]=ct[Dt]*Nt+ct[zt]*$t,Pt}function _t(ct){return[Math.atan2(2*(ct[0]*ct[1]+ct[2]*ct[3]),1-2*(ct[1]*ct[1]+ct[2]*ct[2]))*mt,Math.asin(Math.max(-1,Math.min(1,2*(ct[0]*ct[2]-ct[3]*ct[1]))))*mt,Math.atan2(2*(ct[0]*ct[3]+ct[1]*ct[2]),1-2*(ct[2]*ct[2]+ct[3]*ct[3]))*mt]}function Mt(ct){var It=ct[0]*Et,At=ct[1]*Et,Ot=Math.cos(At);return[Ot*Math.cos(It),Ot*Math.sin(It),Math.sin(At)]}function Tt(ct,It){for(var At=0,Ot=0,Pt=ct.length;OtMath.abs(kt)?(tt.boxEnd[1]=tt.boxStart[1]+Math.abs(Tt)*Pt*(kt>=0?1:-1),tt.boxEnd[1]ft[3]&&(tt.boxEnd[1]=ft[3],tt.boxEnd[0]=tt.boxStart[0]+(ft[3]-tt.boxStart[1])/Math.abs(Pt))):(tt.boxEnd[0]=tt.boxStart[0]+Math.abs(kt)/Pt*(Tt>=0?1:-1),tt.boxEnd[0]ft[2]&&(tt.boxEnd[0]=ft[2],tt.boxEnd[1]=tt.boxStart[1]+(ft[2]-tt.boxStart[0])*Math.abs(Pt)))}else At&&(tt.boxEnd[0]=tt.boxStart[0]),Ot&&(tt.boxEnd[1]=tt.boxStart[1])}else tt.boxEnabled?(Tt=tt.boxStart[0]!==tt.boxEnd[0],kt=tt.boxStart[1]!==tt.boxEnd[1],Tt||kt?(Tt&&(wt(0,tt.boxStart[0],tt.boxEnd[0]),j.xaxis.autorange=!1),kt&&(wt(1,tt.boxStart[1],tt.boxEnd[1]),j.yaxis.autorange=!1),j.relayoutCallback()):j.glplot.setDirty(),tt.boxEnabled=!1,tt.boxInited=!1):tt.boxInited&&(tt.boxInited=!1);break;case"pan":tt.boxEnabled=!1,tt.boxInited=!1,vt?(tt.panning||(tt.dragStart[0]=dt,tt.dragStart[1]=bt),Math.abs(tt.dragStart[0]-dt)<_t&&(dt=tt.dragStart[0]),Math.abs(tt.dragStart[1]-bt)<_t&&(bt=tt.dragStart[1]),Tt=(yt-dt)*(ft[2]-ft[0])/(rt.viewBox[2]-rt.viewBox[0]),kt=(St-bt)*(ft[3]-ft[1])/(rt.viewBox[3]-rt.viewBox[1]),ft[0]+=Tt,ft[2]+=Tt,ft[1]+=kt,ft[3]+=kt,j.setRanges(ft),tt.panning=!0,tt.lastInputTime=Date.now(),st(),j.cameraChanged(),j.handleAnnotations()):tt.panning&&(tt.panning=!1,j.relayoutCallback());break}tt.lastPos[0]=dt,tt.lastPos[1]=bt}return tt.wheelListener=xt(_,function(vt,dt){if(!j.scrollZoom)return!1;var bt=j.calcDataBox(),ft=rt.viewBox,at=tt.lastPos[0],yt=tt.lastPos[1],St=Math.exp(5*dt/(ft[3]-ft[1])),_t=at/(ft[2]-ft[0])*(bt[2]-bt[0])+bt[0],Mt=yt/(ft[3]-ft[1])*(bt[3]-bt[1])+bt[1];return bt[0]=(bt[0]-_t)*St+_t,bt[2]=(bt[2]-_t)*St+_t,bt[1]=(bt[1]-Mt)*St+Mt,bt[3]=(bt[3]-Mt)*St+Mt,j.setRanges(bt),tt.lastInputTime=Date.now(),st(),j.cameraChanged(),j.handleAnnotations(),j.relayoutCallback(),!0},!0),tt}},92568:function(Ct,Rt,o){var it=o(54460),xt=o(43080);function et(ht){this.scene=ht,this.gl=ht.gl,this.pixelRatio=ht.pixelRatio,this.screenBox=[0,0,1,1],this.viewBox=[0,0,1,1],this.dataBox=[-1,-1,1,1],this.borderLineEnable=[!1,!1,!1,!1],this.borderLineWidth=[1,1,1,1],this.borderLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.ticks=[[],[]],this.tickEnable=[!0,!0,!1,!1],this.tickPad=[15,15,15,15],this.tickAngle=[0,0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickMarkLength=[0,0,0,0],this.tickMarkWidth=[0,0,0,0],this.tickMarkColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labels=["x","y"],this.labelEnable=[!0,!0,!1,!1],this.labelAngle=[0,Math.PI/2,0,3*Math.PI/2],this.labelPad=[15,15,15,15],this.labelSize=[12,12],this.labelFont=["sans-serif","sans-serif"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.title="",this.titleEnable=!0,this.titleCenter=[0,0,0,0],this.titleAngle=0,this.titleColor=[0,0,0,1],this.titleFont="sans-serif",this.titleSize=18,this.gridLineEnable=[!0,!0],this.gridLineColor=[[0,0,0,.5],[0,0,0,.5]],this.gridLineWidth=[1,1],this.zeroLineEnable=[!0,!0],this.zeroLineWidth=[1,1],this.zeroLineColor=[[0,0,0,1],[0,0,0,1]],this.borderColor=[0,0,0,0],this.backgroundColor=[0,0,0,0],this.static=this.scene.staticPlot}var Et=et.prototype,mt=["xaxis","yaxis"];Et.merge=function(ht){this.titleEnable=!1,this.backgroundColor=xt(ht.plot_bgcolor);var j,_,rt,tt,st,ot,nt,vt,dt,bt,ft;for(bt=0;bt<2;++bt){j=mt[bt];var at=j.charAt(0);for(_=ht[this.scene[j]._name],rt=_.title.text===this.scene.fullLayout._dfltTitle[at]?"":_.title.text,ft=0;ft<=2;ft+=2)this.labelEnable[bt+ft]=!1,this.labels[bt+ft]=rt,this.labelColor[bt+ft]=xt(_.title.font.color),this.labelFont[bt+ft]=_.title.font.family,this.labelSize[bt+ft]=_.title.font.size,this.labelPad[bt+ft]=this.getLabelPad(j,_),this.tickEnable[bt+ft]=!1,this.tickColor[bt+ft]=xt((_.tickfont||{}).color),this.tickAngle[bt+ft]=_.tickangle==="auto"?0:Math.PI*-_.tickangle/180,this.tickPad[bt+ft]=this.getTickPad(_),this.tickMarkLength[bt+ft]=0,this.tickMarkWidth[bt+ft]=_.tickwidth||0,this.tickMarkColor[bt+ft]=xt(_.tickcolor),this.borderLineEnable[bt+ft]=!1,this.borderLineColor[bt+ft]=xt(_.linecolor),this.borderLineWidth[bt+ft]=_.linewidth||0;nt=this.hasSharedAxis(_),st=this.hasAxisInDfltPos(j,_)&&!nt,ot=this.hasAxisInAltrPos(j,_)&&!nt,tt=_.mirror||!1,vt=nt?String(tt).indexOf("all")!==-1:!!tt,dt=nt?tt==="allticks":String(tt).indexOf("ticks")!==-1,st?this.labelEnable[bt]=!0:ot&&(this.labelEnable[bt+2]=!0),st?this.tickEnable[bt]=_.showticklabels:ot&&(this.tickEnable[bt+2]=_.showticklabels),(st||vt)&&(this.borderLineEnable[bt]=_.showline),(ot||vt)&&(this.borderLineEnable[bt+2]=_.showline),(st||dt)&&(this.tickMarkLength[bt]=this.getTickMarkLength(_)),(ot||dt)&&(this.tickMarkLength[bt+2]=this.getTickMarkLength(_)),this.gridLineEnable[bt]=_.showgrid,this.gridLineColor[bt]=xt(_.gridcolor),this.gridLineWidth[bt]=_.gridwidth,this.zeroLineEnable[bt]=_.zeroline,this.zeroLineColor[bt]=xt(_.zerolinecolor),this.zeroLineWidth[bt]=_.zerolinewidth}},Et.hasSharedAxis=function(ht){var j=this.scene,_=j.fullLayout._subplots.gl2d,rt=it.findSubplotsWithAxis(_,ht);return rt.indexOf(j.id)!==0},Et.hasAxisInDfltPos=function(ht,j){var _=j.side;if(ht==="xaxis")return _==="bottom";if(ht==="yaxis")return _==="left"},Et.hasAxisInAltrPos=function(ht,j){var _=j.side;if(ht==="xaxis")return _==="top";if(ht==="yaxis")return _==="right"},Et.getLabelPad=function(ht,j){var _=1.5,rt=j.title.font.size,tt=j.showticklabels;if(ht==="xaxis")return j.side==="top"?-10+rt*(_+(tt?1:0)):-10+rt*(_+(tt?.5:0));if(ht==="yaxis")return j.side==="right"?10+rt*(_+(tt?1:.5)):10+rt*(_+(tt?.5:0))},Et.getTickPad=function(ht){return ht.ticks==="outside"?10+ht.ticklen:15},Et.getTickMarkLength=function(ht){if(!ht.ticks)return 0;var j=ht.ticklen;return ht.ticks==="inside"?-j:j};function ut(ht){return new et(ht)}Ct.exports=ut},39952:function(Ct,Rt,o){var it=o(67824).overrideAll,xt=o(17188),et=o(64859),Et=o(9616),mt=o(33816),ut=o(57952),ht=o(65460),j=o(84888).op;Rt.name="gl2d",Rt.attr=["xaxis","yaxis"],Rt.idRoot=["x","y"],Rt.idRegex=mt.idRegex,Rt.attrRegex=mt.attrRegex,Rt.attributes=o(26720),Rt.supplyLayoutDefaults=function(_,rt,tt){rt._has("cartesian")||ut.supplyLayoutDefaults(_,rt,tt)},Rt.layoutAttrOverrides=it(ut.layoutAttributes,"plot","from-root"),Rt.baseLayoutAttrOverrides=it({plot_bgcolor:et.plot_bgcolor,hoverlabel:ht.hoverlabel},"plot","nested"),Rt.plot=function(rt){for(var tt=rt._fullLayout,st=rt._fullData,ot=tt._subplots.gl2d,nt=0;nt1;function vt(dt){if(!nt){var bt=it.validate(tt[dt],ut[dt]);if(bt)return tt[dt]}}Et(tt,st,ot,{type:j,attributes:ut,handleDefaults:_,fullLayout:st,font:st.font,fullData:ot,getDfltFromLayout:vt,autotypenumbersDflt:st.autotypenumbers,paper_bgcolor:st.paper_bgcolor,calendar:st.calendar})};function _(rt,tt,st,ot){for(var nt=st("bgcolor"),vt=xt.combine(nt,ot.paper_bgcolor),dt=["up","center","eye"],bt=0;bt.999)&&(_t="turntable")}else _t="turntable";st("dragmode",_t),st("hovermode",ot.getDfltFromLayout("hovermode"))}},346:function(Ct,Rt,o){var it=o(86140),xt=o(86968).u,et=o(92880).extendFlat,Et=o(3400).counterRegex;function mt(ut,ht,j){return{x:{valType:"number",dflt:ut,editType:"camera"},y:{valType:"number",dflt:ht,editType:"camera"},z:{valType:"number",dflt:j,editType:"camera"},editType:"camera"}}Ct.exports={_arrayAttrRegexps:[Et("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:et(mt(0,0,1),{}),center:et(mt(0,0,0),{}),eye:et(mt(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:xt({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:it,yaxis:it,zaxis:it,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot",_deprecated:{cameraposition:{valType:"info_array",editType:"camera"}}}},9020:function(Ct,Rt,o){var it=o(43080),xt=["xaxis","yaxis","zaxis"];function et(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}var Et=et.prototype;Et.merge=function(ut){for(var ht=0;ht<3;++ht){var j=ut[xt[ht]];if(!j.visible){this.enabled[ht]=!1,this.drawSides[ht]=!1;continue}this.enabled[ht]=j.showspikes,this.colors[ht]=it(j.spikecolor),this.drawSides[ht]=j.spikesides,this.lineWidth[ht]=j.spikethickness}};function mt(ut){var ht=new et;return ht.merge(ut),ht}Ct.exports=mt},87152:function(Ct,Rt,o){Ct.exports=mt;var it=o(54460),xt=o(3400),et=["xaxis","yaxis","zaxis"];function Et(ut){for(var ht=new Array(3),j=0;j<3;++j){for(var _=ut[j],rt=new Array(_.length),tt=0;tt<_.length;++tt)rt[tt]=_[tt].x;ht[j]=rt}return ht}function mt(ut){for(var ht=ut.axesOptions,j=ut.glplot.axesPixels,_=ut.fullSceneLayout,rt=[[],[],[]],tt=0;tt<3;++tt){var st=_[et[tt]];if(st._length=(j[tt].hi-j[tt].lo)*j[tt].pixelsPerDataUnit/ut.dataScale[tt],Math.abs(st._length)===1/0||isNaN(st._length))rt[tt]=[];else{st._input_range=st.range.slice(),st.range[0]=j[tt].lo/ut.dataScale[tt],st.range[1]=j[tt].hi/ut.dataScale[tt],st._m=1/(ut.dataScale[tt]*j[tt].pixelsPerDataUnit),st.range[0]===st.range[1]&&(st.range[0]-=1,st.range[1]+=1);var ot=st.tickmode;if(st.tickmode==="auto"){st.tickmode="linear";var nt=st.nticks||xt.constrain(st._length/40,4,9);it.autoTicks(st,Math.abs(st.range[1]-st.range[0])/nt)}for(var vt=it.calcTicks(st,{msUTC:!0}),dt=0;dt/g," "));rt[tt]=vt,st.tickmode=ot}}ht.ticks=rt;for(var tt=0;tt<3;++tt){.5*(ut.glplot.bounds[0][tt]+ut.glplot.bounds[1][tt]);for(var dt=0;dt<2;++dt)ht.bounds[dt][tt]=ut.glplot.bounds[dt][tt]}ut.contourLevels=Et(rt)}},94424:function(Ct){function Rt(it,xt){var et=[0,0,0,0],Et,mt;for(Et=0;Et<4;++Et)for(mt=0;mt<4;++mt)et[mt]+=it[4*Et+mt]*xt[Et];return et}function o(it,xt){var et=Rt(it.projection,Rt(it.view,Rt(it.model,[xt[0],xt[1],xt[2],1])));return et}Ct.exports=o},98432:function(Ct,Rt,o){var it=o(67792).gl_plot3d,xt=it.createCamera,et=it.createScene,Et=o(5408),mt=o(89184),ut=o(24040),ht=o(3400),j=ht.preserveDrawingBuffer(),_=o(54460),rt=o(93024),tt=o(43080),st=o(16576),ot=o(94424),nt=o(44728),vt=o(9020),dt=o(87152),bt=o(19280).applyAutorangeOptions,ft,at,yt=!1;function St(Pt,zt){var Dt=document.createElement("div"),Nt=Pt.container;this.graphDiv=Pt.graphDiv;var $t=document.createElementNS("http://www.w3.org/2000/svg","svg");$t.style.position="absolute",$t.style.top=$t.style.left="0px",$t.style.width=$t.style.height="100%",$t.style["z-index"]=20,$t.style["pointer-events"]="none",Dt.appendChild($t),this.svgContainer=$t,Dt.id=Pt.id,Dt.style.position="absolute",Dt.style.top=Dt.style.left="0px",Dt.style.width=Dt.style.height="100%",Nt.appendChild(Dt),this.fullLayout=zt,this.id=Pt.id||"scene",this.fullSceneLayout=zt[this.id],this.plotArgs=[[],{},{}],this.axesOptions=nt(zt,zt[this.id]),this.spikeOptions=vt(zt[this.id]),this.container=Dt,this.staticMode=!!Pt.staticPlot,this.pixelRatio=this.pixelRatio||Pt.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=ut.getComponentMethod("annotations3d","convert"),this.drawAnnotations=ut.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var _t=St.prototype;_t.prepareOptions=function(){var Pt=this,zt={canvas:Pt.canvas,gl:Pt.gl,glOptions:{preserveDrawingBuffer:j,premultipliedAlpha:!0,antialias:!0},container:Pt.container,axes:Pt.axesOptions,spikes:Pt.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:Pt.camera,pixelRatio:Pt.pixelRatio};if(Pt.staticMode){if(!at&&(ft=document.createElement("canvas"),at=Et({canvas:ft,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!at))throw new Error("error creating static canvas/context for image server");zt.gl=at,zt.canvas=ft}return zt};var Mt=!0;_t.tryCreatePlot=function(){var Pt=this,zt=Pt.prepareOptions(),Dt=!0;try{Pt.glplot=et(zt)}catch{if(Pt.staticMode||!Mt||j)Dt=!1;else{ht.warn(["webgl setup failed possibly due to","false preserveDrawingBuffer config.","The mobile/tablet device may not be detected by is-mobile module.","Enabling preserveDrawingBuffer in second attempt to create webgl scene..."].join(" "));try{j=zt.glOptions.preserveDrawingBuffer=!0,Pt.glplot=et(zt)}catch{j=zt.glOptions.preserveDrawingBuffer=!1,Dt=!1}}}return Mt=!1,Dt},_t.initializeGLCamera=function(){var Pt=this,zt=Pt.fullSceneLayout.camera,Dt=zt.projection.type==="orthographic";Pt.camera=xt(Pt.container,{center:[zt.center.x,zt.center.y,zt.center.z],eye:[zt.eye.x,zt.eye.y,zt.eye.z],up:[zt.up.x,zt.up.y,zt.up.z],_ortho:Dt,zoomMin:.01,zoomMax:100,mode:"orbit"})},_t.initializeGLPlot=function(){var Pt=this;Pt.initializeGLCamera();var zt=Pt.tryCreatePlot();if(!zt)return st(Pt);Pt.traces={},Pt.make4thDimension();var Dt=Pt.graphDiv,Nt=Dt.layout,$t=function(){var Ht={};return Pt.isCameraChanged(Nt)&&(Ht[Pt.id+".camera"]=Pt.getCamera()),Pt.isAspectChanged(Nt)&&(Ht[Pt.id+".aspectratio"]=Pt.glplot.getAspectratio(),Nt[Pt.id].aspectmode!=="manual"&&(Pt.fullSceneLayout.aspectmode=Nt[Pt.id].aspectmode=Ht[Pt.id+".aspectmode"]="manual")),Ht},Ut=function(Ht){if(Ht.fullSceneLayout.dragmode!==!1){var Vt=$t();Ht.saveLayout(Nt),Ht.graphDiv.emit("plotly_relayout",Vt)}};return Pt.glplot.canvas&&(Pt.glplot.canvas.addEventListener("mouseup",function(){Ut(Pt)}),Pt.glplot.canvas.addEventListener("touchstart",function(){yt=!0}),Pt.glplot.canvas.addEventListener("wheel",function(Ht){if(Dt._context._scrollZoom.gl3d){if(Pt.camera._ortho){var Vt=Ht.deltaX>Ht.deltaY?1.1:.9090909090909091,Xt=Pt.glplot.getAspectratio();Pt.glplot.setAspectratio({x:Vt*Xt.x,y:Vt*Xt.y,z:Vt*Xt.z})}Ut(Pt)}},mt?{passive:!1}:!1),Pt.glplot.canvas.addEventListener("mousemove",function(){if(Pt.fullSceneLayout.dragmode!==!1&&Pt.camera.mouseListener.buttons!==0){var Ht=$t();Pt.graphDiv.emit("plotly_relayouting",Ht)}}),Pt.staticMode||Pt.glplot.canvas.addEventListener("webglcontextlost",function(Ht){Dt&&Dt.emit&&Dt.emit("plotly_webglcontextlost",{event:Ht,layer:Pt.id})},!1)),Pt.glplot.oncontextloss=function(){Pt.recoverContext()},Pt.glplot.onrender=function(){Pt.render()},!0},_t.render=function(){var Pt=this,zt=Pt.graphDiv,Dt,Nt=Pt.svgContainer,$t=Pt.container.getBoundingClientRect();zt._fullLayout._calcInverseTransform(zt);var Ut=zt._fullLayout._invScaleX,Ht=zt._fullLayout._invScaleY,Vt=$t.width*Ut,Xt=$t.height*Ht;Nt.setAttributeNS(null,"viewBox","0 0 "+Vt+" "+Xt),Nt.setAttributeNS(null,"width",Vt),Nt.setAttributeNS(null,"height",Xt),dt(Pt),Pt.glplot.axes.update(Pt.axesOptions);for(var qt=Object.keys(Pt.traces),er=null,lr=Pt.glplot.selection,Jt=0;Jt")):Dt.type==="isosurface"||Dt.type==="volume"?(sr.valueLabel=_.hoverLabelText(Pt._mockAxis,Pt._mockAxis.d2l(lr.traceCoordinate[3]),Dt.valuehoverformat),cr.push("value: "+sr.valueLabel),lr.textLabel&&cr.push(lr.textLabel),tr=cr.join("
")):tr=lr.textLabel;var hr={x:lr.traceCoordinate[0],y:lr.traceCoordinate[1],z:lr.traceCoordinate[2],data:jt._input,fullData:jt,curveNumber:jt.index,pointNumber:ar};rt.appendArrayPointValue(hr,jt,ar),Dt._module.eventData&&(hr=jt._module.eventData(hr,lr,jt,{},ar));var br={points:[hr]};if(Pt.fullSceneLayout.hovermode){var Tr=[];rt.loneHover({trace:jt,x:(.5+.5*rr[0]/rr[3])*Vt,y:(.5-.5*rr[1]/rr[3])*Xt,xLabel:sr.xLabel,yLabel:sr.yLabel,zLabel:sr.zLabel,text:tr,name:er.name,color:rt.castHoverOption(jt,ar,"bgcolor")||er.color,borderColor:rt.castHoverOption(jt,ar,"bordercolor"),fontFamily:rt.castHoverOption(jt,ar,"font.family"),fontSize:rt.castHoverOption(jt,ar,"font.size"),fontColor:rt.castHoverOption(jt,ar,"font.color"),nameLength:rt.castHoverOption(jt,ar,"namelength"),textAlign:rt.castHoverOption(jt,ar,"align"),hovertemplate:ht.castOption(jt,ar,"hovertemplate"),hovertemplateLabels:ht.extendFlat({},hr,sr),eventData:[hr]},{container:Nt,gd:zt,inOut_bbox:Tr}),hr.bbox=Tr[0]}lr.distance<5&&(lr.buttons||yt)?zt.emit("plotly_click",br):zt.emit("plotly_hover",br),this.oldEventData=br}else rt.loneUnhover(Nt),this.oldEventData&&zt.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;Pt.drawAnnotations(Pt)},_t.recoverContext=function(){var Pt=this;Pt.glplot.dispose();var zt=function(){if(Pt.glplot.gl.isContextLost()){requestAnimationFrame(zt);return}if(!Pt.initializeGLPlot()){ht.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}Pt.plot.apply(Pt,Pt.plotArgs)};requestAnimationFrame(zt)};var Tt=["xaxis","yaxis","zaxis"];function kt(Pt,zt,Dt){for(var Nt=Pt.fullSceneLayout,$t=0;$t<3;$t++){var Ut=Tt[$t],Ht=Ut.charAt(0),Vt=Nt[Ut],Xt=zt[Ht],qt=zt[Ht+"calendar"],er=zt["_"+Ht+"length"];if(!ht.isArrayOrTypedArray(Xt))Dt[0][$t]=Math.min(Dt[0][$t],0),Dt[1][$t]=Math.max(Dt[1][$t],er-1);else for(var lr,Jt=0;Jt<(er||Xt.length);Jt++)if(ht.isArrayOrTypedArray(Xt[Jt]))for(var Yt=0;Ytjt[1][Ht])jt[0][Ht]=-1,jt[1][Ht]=1;else{var Ir=jt[1][Ht]-jt[0][Ht];jt[0][Ht]-=Ir/32,jt[1][Ht]+=Ir/32}if(sr=[jt[0][Ht],jt[1][Ht]],sr=bt(sr,Xt),jt[0][Ht]=sr[0],jt[1][Ht]=sr[1],Xt.isReversed()){var Ar=jt[0][Ht];jt[0][Ht]=jt[1][Ht],jt[1][Ht]=Ar}}else sr=Xt.range,jt[0][Ht]=Xt.r2l(sr[0]),jt[1][Ht]=Xt.r2l(sr[1]);jt[0][Ht]===jt[1][Ht]&&(jt[0][Ht]-=1,jt[1][Ht]+=1),Xt.range=[jt[0][Ht],jt[1][Ht]],Xt.limitRange(),Nt.glplot.setBounds(Ht,{min:Xt.range[0]*Yt[Ht],max:Xt.range[1]*Yt[Ht]})}var _r,Er=er.aspectmode;if(Er==="cube")_r=[1,1,1];else if(Er==="manual"){var Rr=er.aspectratio;_r=[Rr.x,Rr.y,Rr.z]}else if(Er==="auto"||Er==="data"){var zr=[1,1,1];for(Ht=0;Ht<3;++Ht){Xt=er[Tt[Ht]],qt=Xt.type;var Br=ar[qt];zr[Ht]=Math.pow(Br.acc,1/Br.count)/Yt[Ht]}Er==="data"||Math.max.apply(null,zr)/Math.min.apply(null,zr)<=4?_r=zr:_r=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");er.aspectratio.x=lr.aspectratio.x=_r[0],er.aspectratio.y=lr.aspectratio.y=_r[1],er.aspectratio.z=lr.aspectratio.z=_r[2],Nt.glplot.setAspectratio(er.aspectratio),Nt.viewInitial.aspectratio||(Nt.viewInitial.aspectratio={x:er.aspectratio.x,y:er.aspectratio.y,z:er.aspectratio.z}),Nt.viewInitial.aspectmode||(Nt.viewInitial.aspectmode=er.aspectmode);var kr=er.domain||null,Nr=zt._size||null;if(kr&&Nr){var Qr=Nt.container.style;Qr.position="absolute",Qr.left=Nr.l+kr.x[0]*Nr.w+"px",Qr.top=Nr.t+(1-kr.y[1])*Nr.h+"px",Qr.width=Nr.w*(kr.x[1]-kr.x[0])+"px",Qr.height=Nr.h*(kr.y[1]-kr.y[0])+"px"}Nt.glplot.redraw()},_t.destroy=function(){var Pt=this;Pt.glplot&&(Pt.camera.mouseListener.enabled=!1,Pt.container.removeEventListener("wheel",Pt.camera.wheelListener),Pt.camera=null,Pt.glplot.dispose(),Pt.container.parentNode.removeChild(Pt.container),Pt.glplot=null)};function ct(Pt){return[[Pt.eye.x,Pt.eye.y,Pt.eye.z],[Pt.center.x,Pt.center.y,Pt.center.z],[Pt.up.x,Pt.up.y,Pt.up.z]]}function It(Pt){return{up:{x:Pt.up[0],y:Pt.up[1],z:Pt.up[2]},center:{x:Pt.center[0],y:Pt.center[1],z:Pt.center[2]},eye:{x:Pt.eye[0],y:Pt.eye[1],z:Pt.eye[2]},projection:{type:Pt._ortho===!0?"orthographic":"perspective"}}}_t.getCamera=function(){var Pt=this;return Pt.camera.view.recalcMatrix(Pt.camera.view.lastT()),It(Pt.camera)},_t.setViewport=function(Pt){var zt=this,Dt=Pt.camera;zt.camera.lookAt.apply(this,ct(Dt)),zt.glplot.setAspectratio(Pt.aspectratio);var Nt=Dt.projection.type==="orthographic",$t=zt.camera._ortho;Nt!==$t&&(zt.glplot.redraw(),zt.glplot.clearRGBA(),zt.glplot.dispose(),zt.initializeGLPlot())},_t.isCameraChanged=function(Pt){var zt=this,Dt=zt.getCamera(),Nt=ht.nestedProperty(Pt,zt.id+".camera"),$t=Nt.get();function Ut(qt,er,lr,Jt){var Yt=["up","center","eye"],rr=["x","y","z"];return er[Yt[lr]]&&qt[Yt[lr]][rr[Jt]]===er[Yt[lr]][rr[Jt]]}var Ht=!1;if($t===void 0)Ht=!0;else{for(var Vt=0;Vt<3;Vt++)for(var Xt=0;Xt<3;Xt++)if(!Ut(Dt,$t,Vt,Xt)){Ht=!0;break}(!$t.projection||Dt.projection&&Dt.projection.type!==$t.projection.type)&&(Ht=!0)}return Ht},_t.isAspectChanged=function(Pt){var zt=this,Dt=zt.glplot.getAspectratio(),Nt=ht.nestedProperty(Pt,zt.id+".aspectratio"),$t=Nt.get();return $t===void 0||$t.x!==Dt.x||$t.y!==Dt.y||$t.z!==Dt.z},_t.saveLayout=function(Pt){var zt=this,Dt=zt.fullLayout,Nt,$t,Ut,Ht,Vt,Xt,qt=zt.isCameraChanged(Pt),er=zt.isAspectChanged(Pt),lr=qt||er;if(lr){var Jt={};if(qt&&(Nt=zt.getCamera(),$t=ht.nestedProperty(Pt,zt.id+".camera"),Ut=$t.get(),Jt[zt.id+".camera"]=Ut),er&&(Ht=zt.glplot.getAspectratio(),Vt=ht.nestedProperty(Pt,zt.id+".aspectratio"),Xt=Vt.get(),Jt[zt.id+".aspectratio"]=Xt),ut.call("_storeDirectGUIEdit",Pt,Dt._preGUI,Jt),qt){$t.set(Nt);var Yt=ht.nestedProperty(Dt,zt.id+".camera");Yt.set(Nt)}if(er){Vt.set(Ht);var rr=ht.nestedProperty(Dt,zt.id+".aspectratio");rr.set(Ht),zt.glplot.redraw()}}return lr},_t.updateFx=function(Pt,zt){var Dt=this,Nt=Dt.camera;if(Nt)if(Pt==="orbit")Nt.mode="orbit",Nt.keyBindingMode="rotate";else if(Pt==="turntable"){Nt.up=[0,0,1],Nt.mode="turntable",Nt.keyBindingMode="rotate";var $t=Dt.graphDiv,Ut=$t._fullLayout,Ht=Dt.fullSceneLayout.camera,Vt=Ht.up.x,Xt=Ht.up.y,qt=Ht.up.z;if(qt/Math.sqrt(Vt*Vt+Xt*Xt+qt*qt)<.999){var er=Dt.id+".camera.up",lr={x:0,y:0,z:1},Jt={};Jt[er]=lr;var Yt=$t.layout;ut.call("_storeDirectGUIEdit",Yt,Ut._preGUI,Jt),Ht.up=lr,ht.nestedProperty(Yt,er).set(lr)}}else Nt.keyBindingMode=Pt;Dt.fullSceneLayout.hovermode=zt};function At(Pt,zt,Dt){for(var Nt=0,$t=Dt-1;Nt<$t;++Nt,--$t)for(var Ut=0;Ut0)for(var Vt=255/Ht,Xt=0;Xt<3;++Xt)Pt[Ut+Xt]=Math.min(Vt*Pt[Ut+Xt],255)}}_t.toImage=function(Pt){var zt=this;Pt||(Pt="png"),zt.staticMode&&zt.container.appendChild(ft),zt.glplot.redraw();var Dt=zt.glplot.gl,Nt=Dt.drawingBufferWidth,$t=Dt.drawingBufferHeight;Dt.bindFramebuffer(Dt.FRAMEBUFFER,null);var Ut=new Uint8Array(Nt*$t*4);Dt.readPixels(0,0,Nt,$t,Dt.RGBA,Dt.UNSIGNED_BYTE,Ut),At(Ut,Nt,$t),Ot(Ut,Nt,$t);var Ht=document.createElement("canvas");Ht.width=Nt,Ht.height=$t;var Vt=Ht.getContext("2d",{willReadFrequently:!0}),Xt=Vt.createImageData(Nt,$t);Xt.data.set(Ut),Vt.putImageData(Xt,0,0);var qt;switch(Pt){case"jpeg":qt=Ht.toDataURL("image/jpeg");break;case"webp":qt=Ht.toDataURL("image/webp");break;default:qt=Ht.toDataURL("image/png")}return zt.staticMode&&zt.container.removeChild(ft),qt},_t.setConvert=function(){for(var Pt=this,zt=0;zt<3;zt++){var Dt=Pt.fullSceneLayout[Tt[zt]];_.setConvert(Dt,Pt.fullLayout),Dt.setScale=ht.noop}},_t.make4thDimension=function(){var Pt=this,zt=Pt.graphDiv,Dt=zt._fullLayout;Pt._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},_.setConvert(Pt._mockAxis,Dt)},Ct.exports=St},52094:function(Ct){Ct.exports=function(o,it,xt,et){et=et||o.length;for(var Et=new Array(et),mt=0;mtOpenStreetMap contributors',Et=['© Carto',et].join(" "),mt=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),ut=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),ht={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:et,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:Et,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:Et,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:mt,tiles:["https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:mt,tiles:["https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:ut,tiles:["https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},j=it(ht);Ct.exports={requiredVersion:xt,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:ht,styleValuesNonMapbox:j,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install @plotly/mapbox-gl@"+xt+"."].join(` +`+At(Vt.dayMonthYear,Dt,Ut,Ht);return At(Nt,Dt,Ut,Ht)};var zt=3*ht;Rt.incrementMonth=function(Dt,Nt,$t){$t=bt($t)&&$t;var Ut=Tt(Dt,ht);if(Dt=Math.round(Dt-Ut),$t)try{var Ht=Math.round(Dt/ht)+tt,Vt=st.getComponentMethod("calendars","getCal")($t),Xt=Vt.fromJD(Ht);return Nt%12?Vt.add(Xt,Nt,"m"):Vt.add(Xt,Nt/12,"y"),(Xt.toJD()-tt)*ht+Ut}catch{et.error("invalid ms "+Dt+" in calendar "+$t)}var qt=new Date(Dt+zt);return qt.setUTCMonth(qt.getUTCMonth()+Nt)+Ut-zt},Rt.findExactDates=function(Dt,Nt){for(var $t=0,Ut=0,Ht=0,Vt=0,Xt,qt,er=bt(Nt)&&st.getComponentMethod("calendars","getCal")(Nt),lr=0;lr0&&Pt[zt+1][0]<0)return zt;return null}switch(Et==="RUS"||Et==="FJI"?wt=function(Pt){var zt;if(Ot(Pt)===null)zt=Pt;else for(zt=new Array(Pt.length),At=0;Atzt?Dt[Nt++]=[Pt[At][0]+360,Pt[At][1]]:At===zt?(Dt[Nt++]=Pt[At],Dt[Nt++]=[Pt[At][0],-90]):Dt[Nt++]=Pt[At];var $t=rt.tester(Dt);$t.pts.pop(),kt.push($t)}:wt=function(Pt){kt.push(rt.tester(Pt))},_t.type){case"MultiPolygon":for(ct=0;ctkt&&(kt=It,Mt=ct)}else Mt=_t;return Tt.default(Mt).geometry.coordinates}function at(St){var _t=window.PlotlyGeoAssets||{},Mt=[];function Et(At){return new Promise(function(Ot,Pt){it.json(At,function(zt,Dt){if(zt){delete _t[At];var Nt=zt.status===404?'GeoJSON at URL "'+At+'" does not exist.':"Unexpected error while fetching from "+At;return Pt(new Error(Nt))}return _t[At]=Dt,Ot(Dt)})})}function kt(At){return new Promise(function(Ot,Pt){var zt=0,Dt=setInterval(function(){if(_t[At]&&_t[At]!=="pending")return clearInterval(Dt),Ot(_t[At]);if(zt>100)return clearInterval(Dt),Pt("Unexpected error while fetching from "+At);zt++},50)})}for(var wt=0;wt0&&(yt.push(ut),ut=[])}return ut.length>0&&yt.push(ut),yt},Rt.makeLine=function(xt){return xt.length===1?{type:"LineString",coordinates:xt[0]}:{type:"MultiLineString",coordinates:xt}},Rt.makePolygon=function(xt){if(xt.length===1)return{type:"Polygon",coordinates:xt};for(var et=new Array(xt.length),Tt=0;Tt1||_t<0||_t>1?null:{x:ht+vt*_t,y:j+ft*_t}}Rt.segmentDistance=function(j,_,rt,tt,st,ot,nt,vt){if(xt(j,_,rt,tt,st,ot,nt,vt))return 0;var dt=rt-j,bt=tt-_,ft=nt-st,at=vt-ot,mt=dt*dt+bt*bt,St=ft*ft+at*at,_t=Math.min(et(dt,bt,mt,st-j,ot-_),et(dt,bt,mt,nt-j,vt-_),et(ft,at,St,j-st,_-ot),et(ft,at,St,rt-st,tt-ot));return Math.sqrt(_t)};function et(ht,j,_,rt,tt){var st=rt*ht+tt*j;if(st<0)return rt*rt+tt*tt;if(st>_){var ot=rt-ht,nt=tt-j;return ot*ot+nt*nt}else{var vt=rt*j-tt*ht;return vt*vt/_}}var Tt,yt,ut;Rt.getTextLocation=function(j,_,rt,tt){if((j!==yt||tt!==ut)&&(Tt={},yt=j,ut=tt),Tt[rt])return Tt[rt];var st=j.getPointAtLength(it(rt-tt/2,_)),ot=j.getPointAtLength(it(rt+tt/2,_)),nt=Math.atan((ot.y-st.y)/(ot.x-st.x)),vt=j.getPointAtLength(it(rt,_)),dt=(vt.x*4+st.x+ot.x)/6,bt=(vt.y*4+st.y+ot.y)/6,ft={x:dt,y:bt,theta:nt};return Tt[rt]=ft,ft},Rt.clearLocationCache=function(){yt=null},Rt.getVisibleSegment=function(j,_,rt){var tt=_.left,st=_.right,ot=_.top,nt=_.bottom,vt=0,dt=j.getTotalLength(),bt=dt,ft,at;function mt(_t){var Mt=j.getPointAtLength(_t);_t===0?ft=Mt:_t===dt&&(at=Mt);var Et=Mt.xst?Mt.x-st:0,kt=Mt.ynt?Mt.y-nt:0;return Math.sqrt(Et*Et+kt*kt)}for(var St=mt(vt);St;){if(vt+=St+rt,vt>bt)return;St=mt(vt)}for(St=mt(bt);St;){if(bt-=St+rt,vt>bt)return;St=mt(bt)}return{min:vt,max:bt,len:bt-vt,total:dt,isClosed:vt===0&&bt===dt&&Math.abs(ft.x-at.x)<.1&&Math.abs(ft.y-at.y)<.1}},Rt.findPointOnPath=function(j,_,rt,tt){tt=tt||{};for(var st=tt.pathLength||j.getTotalLength(),ot=tt.tolerance||.001,nt=tt.iterationLimit||30,vt=j.getPointAtLength(0)[rt]>j.getPointAtLength(st)[rt]?-1:1,dt=0,bt=0,ft=st,at,mt,St;dt0?ft=at:bt=at,dt++}return mt}},33040:function(Ct,Rt,o){var it=o(38248),xt=o(49760),et=o(72160),Tt=o(8932),yt=o(22548).defaultLine,ut=o(38116).isArrayOrTypedArray,ht=et(yt),j=1;function _(nt,vt){var dt=nt;return dt[3]*=vt,dt}function rt(nt){if(it(nt))return ht;var vt=et(nt);return vt.length?vt:ht}function tt(nt){return it(nt)?nt:j}function st(nt,vt,dt){var bt=nt.color;bt&&bt._inputArray&&(bt=bt._inputArray);var ft=ut(bt),at=ut(vt),mt=Tt.extractOpts(nt),St=[],_t,Mt,Et,kt,wt;if(mt.colorscale!==void 0?_t=Tt.makeColorScaleFuncFromTrace(nt):_t=rt,ft?Mt=function(It,At){return It[At]===void 0?ht:et(_t(It[At]))}:Mt=rt,at?Et=function(It,At){return It[At]===void 0?j:tt(It[At])}:Et=tt,ft||at)for(var ct=0;ct1?(xt*o+xt*it)/xt:o+it,Tt=String(et).length;if(Tt>16){var yt=String(it).length,ut=String(o).length;if(Tt>=ut+yt){var ht=parseFloat(et).toPrecision(12);ht.indexOf("e+")===-1&&(et=+ht)}}return et}},3400:function(Ct,Rt,o){var it=o(33428),xt=o(94336).E9,et=o(57624).E9,Tt=o(38248),yt=o(39032),ut=yt.FP_SAFE,ht=-ut,j=yt.BADNUM,_=Ct.exports={};_.adjustFormat=function(sr){return!sr||/^\d[.]\df/.test(sr)||/[.]\d%/.test(sr)?sr:sr==="0.f"?"~f":/^\d%/.test(sr)?"~%":/^\ds/.test(sr)?"~s":!/^[~,.0$]/.test(sr)&&/[&fps]/.test(sr)?"~"+sr:sr};var rt={};_.warnBadFormat=function(ar){var sr=String(ar);rt[sr]||(rt[sr]=1,_.warn('encountered bad format: "'+sr+'"'))},_.noFormat=function(ar){return String(ar)},_.numberFormat=function(ar){var sr;try{sr=et(_.adjustFormat(ar))}catch{return _.warnBadFormat(ar),_.noFormat}return sr},_.nestedProperty=o(22296),_.keyedContainer=o(37804),_.relativeAttr=o(23193),_.isPlainObject=o(63620),_.toLogRange=o(36896),_.relinkPrivateKeys=o(51528);var tt=o(38116);_.isArrayBuffer=tt.isArrayBuffer,_.isTypedArray=tt.isTypedArray,_.isArrayOrTypedArray=tt.isArrayOrTypedArray,_.isArray1D=tt.isArray1D,_.ensureArray=tt.ensureArray,_.concat=tt.concat,_.maxRowLength=tt.maxRowLength,_.minRowLength=tt.minRowLength;var st=o(20435);_.mod=st.mod,_.modHalf=st.modHalf;var ot=o(63064);_.valObjectMeta=ot.valObjectMeta,_.coerce=ot.coerce,_.coerce2=ot.coerce2,_.coerceFont=ot.coerceFont,_.coercePattern=ot.coercePattern,_.coerceHoverinfo=ot.coerceHoverinfo,_.coerceSelectionMarkerOpacity=ot.coerceSelectionMarkerOpacity,_.validate=ot.validate;var nt=o(67555);_.dateTime2ms=nt.dateTime2ms,_.isDateTime=nt.isDateTime,_.ms2DateTime=nt.ms2DateTime,_.ms2DateTimeLocal=nt.ms2DateTimeLocal,_.cleanDate=nt.cleanDate,_.isJSDate=nt.isJSDate,_.formatDate=nt.formatDate,_.incrementMonth=nt.incrementMonth,_.dateTick0=nt.dateTick0,_.dfltRange=nt.dfltRange,_.findExactDates=nt.findExactDates,_.MIN_MS=nt.MIN_MS,_.MAX_MS=nt.MAX_MS;var vt=o(14952);_.findBin=vt.findBin,_.sorterAsc=vt.sorterAsc,_.sorterDes=vt.sorterDes,_.distinctVals=vt.distinctVals,_.roundUp=vt.roundUp,_.sort=vt.sort,_.findIndexOfMin=vt.findIndexOfMin,_.sortObjectKeys=o(95376);var dt=o(63084);_.aggNums=dt.aggNums,_.len=dt.len,_.mean=dt.mean,_.median=dt.median,_.midRange=dt.midRange,_.variance=dt.variance,_.stdev=dt.stdev,_.interp=dt.interp;var bt=o(52248);_.init2dArray=bt.init2dArray,_.transposeRagged=bt.transposeRagged,_.dot=bt.dot,_.translationMatrix=bt.translationMatrix,_.rotationMatrix=bt.rotationMatrix,_.rotationXYMatrix=bt.rotationXYMatrix,_.apply3DTransform=bt.apply3DTransform,_.apply2DTransform=bt.apply2DTransform,_.apply2DTransform2=bt.apply2DTransform2,_.convertCssMatrix=bt.convertCssMatrix,_.inverseTransformMatrix=bt.inverseTransformMatrix;var ft=o(11864);_.deg2rad=ft.deg2rad,_.rad2deg=ft.rad2deg,_.angleDelta=ft.angleDelta,_.angleDist=ft.angleDist,_.isFullCircle=ft.isFullCircle,_.isAngleInsideSector=ft.isAngleInsideSector,_.isPtInsideSector=ft.isPtInsideSector,_.pathArc=ft.pathArc,_.pathSector=ft.pathSector,_.pathAnnulus=ft.pathAnnulus;var at=o(98308);_.isLeftAnchor=at.isLeftAnchor,_.isCenterAnchor=at.isCenterAnchor,_.isRightAnchor=at.isRightAnchor,_.isTopAnchor=at.isTopAnchor,_.isMiddleAnchor=at.isMiddleAnchor,_.isBottomAnchor=at.isBottomAnchor;var mt=o(92348);_.segmentsIntersect=mt.segmentsIntersect,_.segmentDistance=mt.segmentDistance,_.getTextLocation=mt.getTextLocation,_.clearLocationCache=mt.clearLocationCache,_.getVisibleSegment=mt.getVisibleSegment,_.findPointOnPath=mt.findPointOnPath;var St=o(92880);_.extendFlat=St.extendFlat,_.extendDeep=St.extendDeep,_.extendDeepAll=St.extendDeepAll,_.extendDeepNoArrays=St.extendDeepNoArrays;var _t=o(24248);_.log=_t.log,_.warn=_t.warn,_.error=_t.error;var Mt=o(53756);_.counterRegex=Mt.counter;var Et=o(91200);_.throttle=Et.throttle,_.throttleDone=Et.done,_.clearThrottle=Et.clear;var kt=o(52200);_.getGraphDiv=kt.getGraphDiv,_.isPlotDiv=kt.isPlotDiv,_.removeElement=kt.removeElement,_.addStyleRule=kt.addStyleRule,_.addRelatedStyleRule=kt.addRelatedStyleRule,_.deleteRelatedStyleRule=kt.deleteRelatedStyleRule,_.getFullTransformMatrix=kt.getFullTransformMatrix,_.getElementTransformMatrix=kt.getElementTransformMatrix,_.getElementAndAncestors=kt.getElementAndAncestors,_.equalDomRects=kt.equalDomRects,_.clearResponsive=o(75352),_.preserveDrawingBuffer=o(34296),_.makeTraceGroups=o(30988),_._=o(98356),_.notifier=o(41792),_.filterUnique=o(68944),_.filterVisible=o(43880),_.pushUnique=o(52416),_.increment=o(1396),_.cleanNumber=o(54037),_.ensureNumber=function(sr){return Tt(sr)?(sr=Number(sr),sr>ut||sr=sr?!1:Tt(ar)&&ar>=0&&ar%1===0},_.noop=o(16628),_.identity=o(35536),_.repeat=function(ar,sr){for(var Zt=new Array(sr),Kt=0;KtZt?Math.max(Zt,Math.min(sr,ar)):Math.max(sr,Math.min(Zt,ar))},_.bBoxIntersect=function(ar,sr,Zt){return Zt=Zt||0,ar.left<=sr.right+Zt&&sr.left<=ar.right+Zt&&ar.top<=sr.bottom+Zt&&sr.top<=ar.bottom+Zt},_.simpleMap=function(ar,sr,Zt,Kt,or){for(var tr=ar.length,cr=new Array(tr),mr=0;mr=Math.pow(2,Zt)?or>10?(_.warn("randstr failed uniqueness"),cr):ar(sr,Zt,Kt,(or||0)+1):cr},_.OptionControl=function(ar,sr){ar||(ar={}),sr||(sr="opt");var Zt={};return Zt.optionList=[],Zt._newoption=function(Kt){Kt[sr]=ar,Zt[Kt.name]=Kt,Zt.optionList.push(Kt)},Zt["_"+sr]=ar,Zt},_.smooth=function(ar,sr){if(sr=Math.round(sr)||0,sr<2)return ar;var Zt=ar.length,Kt=2*Zt,or=2*sr-1,tr=new Array(or),cr=new Array(Zt),mr,Ar,br,Ir;for(mr=0;mr=Kt&&(br-=Kt*Math.floor(br/Kt)),br<0?br=-1-br:br>=Zt&&(br=Kt-1-br),Ir+=ar[br]*tr[Ar];cr[mr]=Ir}return cr},_.syncOrAsync=function(ar,sr,Zt){var Kt,or;function tr(){return _.syncOrAsync(ar,sr,Zt)}for(;ar.length;)if(or=ar.splice(0,1)[0],Kt=or(sr),Kt&&Kt.then)return Kt.then(tr);return Zt&&Zt(sr)},_.stripTrailingSlash=function(ar){return ar.substr(-1)==="/"?ar.substr(0,ar.length-1):ar},_.noneOrAll=function(ar,sr,Zt){if(ar){var Kt=!1,or=!0,tr,cr;for(tr=0;tr0?or:0})},_.fillArray=function(ar,sr,Zt,Kt){if(Kt=Kt||_.identity,_.isArrayOrTypedArray(ar))for(var or=0;or1?or+cr[1]:"";if(tr&&(cr.length>1||mr.length>4||Zt))for(;Kt.test(mr);)mr=mr.replace(Kt,"$1"+tr+"$2");return mr+Ar},_.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var Nt=/^\w*$/;_.templateString=function(ar,sr){var Zt={};return ar.replace(_.TEMPLATE_STRING_REGEX,function(Kt,or){var tr;return Nt.test(or)?tr=sr[or]:(Zt[or]=Zt[or]||_.nestedProperty(sr,or).get,tr=Zt[or]()),_.isValidTextValue(tr)?tr:""})};var $t={max:10,count:0,name:"hovertemplate"};_.hovertemplateString=function(){return er.apply($t,arguments)};var Ut={max:10,count:0,name:"texttemplate"};_.texttemplateString=function(){return er.apply(Ut,arguments)};var Ht=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Vt(ar){var sr=ar.match(Ht);return sr?{key:sr[1],op:sr[2],number:Number(sr[3])}:{key:ar,op:null,number:null}}var Xt={max:10,count:0,name:"texttemplate",parseMultDiv:!0};_.texttemplateStringForShapes=function(){return er.apply(Xt,arguments)};var qt=/^[:|\|]/;function er(ar,sr,Zt){var Kt=this,or=arguments;sr||(sr={});var tr={};return ar.replace(_.TEMPLATE_STRING_REGEX,function(cr,mr,Ar){var br=mr==="xother"||mr==="yother",Ir=mr==="_xother"||mr==="_yother",Tr=mr==="_xother_"||mr==="_yother_",_r=mr==="xother_"||mr==="yother_",Er=br||Ir||_r||Tr,Rr=mr;(Ir||Tr)&&(Rr=Rr.substring(1)),(_r||Tr)&&(Rr=Rr.substring(0,Rr.length-1));var zr=null,Or=null;if(Kt.parseMultDiv){var kr=Vt(Rr);Rr=kr.key,zr=kr.op,Or=kr.number}var Nr;if(Er){if(Nr=sr[Rr],Nr===void 0)return""}else{var Qr,sn;for(sn=3;sn=lr&&cr<=Jt,br=mr>=lr&&mr<=Jt;if(Ar&&(Kt=10*Kt+cr-lr),br&&(or=10*or+mr-lr),!Ar||!br){if(Kt!==or)return Kt-or;if(cr!==mr)return cr-mr}}return or-Kt};var Yt=2e9;_.seedPseudoRandom=function(){Yt=2e9},_.pseudoRandom=function(){var ar=Yt;return Yt=(69069*Yt+1)%4294967296,Math.abs(Yt-ar)<429496729?_.pseudoRandom():Yt/4294967296},_.fillText=function(ar,sr,Zt){var Kt=Array.isArray(Zt)?function(cr){Zt.push(cr)}:function(cr){Zt.text=cr},or=_.extractOption(ar,sr,"htx","hovertext");if(_.isValidTextValue(or))return Kt(or);var tr=_.extractOption(ar,sr,"tx","text");if(_.isValidTextValue(tr))return Kt(tr)},_.isValidTextValue=function(ar){return ar||ar===0},_.formatPercent=function(ar,sr){sr=sr||0;for(var Zt=(Math.round(100*ar*Math.pow(10,sr))*Math.pow(.1,sr)).toFixed(sr)+"%",Kt=0;Kt1&&(br=1):br=0,_.strTranslate(or-br*(Zt+cr),tr-br*(Kt+mr))+_.strScale(br)+(Ar?"rotate("+Ar+(sr?"":" "+Zt+" "+Kt)+")":"")},_.setTransormAndDisplay=function(ar,sr){ar.attr("transform",_.getTextTransform(sr)),ar.style("display",sr.scale?null:"none")},_.ensureUniformFontSize=function(ar,sr){var Zt=_.extendFlat({},sr);return Zt.size=Math.max(sr.size,ar._fullLayout.uniformtext.minsize||0),Zt},_.join2=function(ar,sr,Zt){var Kt=ar.length;return Kt>1?ar.slice(0,-1).join(sr)+Zt+ar[Kt-1]:ar.join(sr)},_.bigFont=function(ar){return Math.round(1.2*ar)};var rr=_.getFirefoxVersion(),jt=rr!==null&&rr<86;_.getPositionFromD3Event=function(){return jt?[it.event.layerX,it.event.layerY]:[it.event.offsetX,it.event.offsetY]}},63620:function(Ct){Ct.exports=function(o){return window&&window.process&&window.process.versions?Object.prototype.toString.call(o)==="[object Object]":Object.prototype.toString.call(o)==="[object Object]"&&Object.getPrototypeOf(o).hasOwnProperty("hasOwnProperty")}},37804:function(Ct,Rt,o){var it=o(22296),xt=/^\w*$/,et=0,Tt=1,yt=2,ut=3,ht=4;Ct.exports=function(_,rt,tt,st){tt=tt||"name",st=st||"value";var ot,nt,vt,dt={};rt&&rt.length?(vt=it(_,rt),nt=vt.get()):nt=_,rt=rt||"";var bt={};if(nt)for(ot=0;ot2)return dt[St]=dt[St]|yt,at.set(mt,null);if(ft){for(ot=St;ot1){var yt=["LOG:"];for(Tt=0;Tt1){var ut=[];for(Tt=0;Tt"),"long")}},et.warn=function(){var Tt;if(it.logging>0){var yt=["WARN:"];for(Tt=0;Tt0){var ut=[];for(Tt=0;Tt"),"stick")}},et.error=function(){var Tt;if(it.logging>0){var yt=["ERROR:"];for(Tt=0;Tt0){var ut=[];for(Tt=0;Tt"),"stick")}}},30988:function(Ct,Rt,o){var it=o(33428);Ct.exports=function(et,Tt,yt){var ut=et.selectAll("g."+yt.replace(/\s/g,".")).data(Tt,function(j){return j[0].trace.uid});ut.exit().remove(),ut.enter().append("g").attr("class",yt),ut.order();var ht=et.classed("rangeplot")?"nodeRangePlot3":"node3";return ut.each(function(j){j[0][ht]=it.select(this)}),ut}},52248:function(Ct,Rt,o){var it=o(36524);Rt.init2dArray=function(xt,et){for(var Tt=new Array(xt),yt=0;ytxt/2?it-Math.round(it/xt)*xt:it}Ct.exports={mod:Rt,modHalf:o}},22296:function(Ct,Rt,o){var it=o(38248),xt=o(38116).isArrayOrTypedArray;Ct.exports=function(st,ot){if(it(ot))ot=String(ot);else if(typeof ot!="string"||ot.substr(ot.length-4)==="[-1]")throw"bad property string";var nt=ot.split("."),vt,dt,bt,ft;for(ft=0;ft/g),nt=0;ntj||St===xt||St<_||St>rt||at&&ot(ft))}function vt(ft,at){var mt=ft[0],St=ft[1];if(mt===xt||mtj||St===xt||St<_||St>rt)return!1;var _t=ut.length,Mt=ut[0][0],Et=ut[0][1],kt=0,wt,ct,It,At,Ot;for(wt=1;wt<_t;wt++)if(ct=Mt,It=Et,Mt=ut[wt][0],Et=ut[wt][1],At=Math.min(ct,Mt),!(mtMath.max(ct,Mt)||St>Math.max(It,Et)))if(Sttt||Math.abs(it(vt,ot))>j)return!0;return!1},et.filter=function(yt,ut){var ht=[yt[0]],j=0,_=0;function rt(st){yt.push(st);var ot=ht.length,nt=j;ht.splice(_+1);for(var vt=nt+1;vt1){var tt=yt.pop();rt(tt)}return{addPt:rt,raw:yt,filtered:ht}}},5048:function(Ct,Rt,o){var it=o(16576),xt=o(28624);Ct.exports=function(Tt,yt,ut){var ht=Tt._fullLayout,j=!0;return ht._glcanvas.each(function(_){if(_.regl){_.regl.preloadCachedCode(ut);return}if(!(_.pick&&!ht._has("parcoords"))){try{_.regl=xt({canvas:this,attributes:{antialias:!_.pick,preserveDrawingBuffer:!0},pixelRatio:Tt._context.plotGlPixelRatio||o.g.devicePixelRatio,extensions:yt||[],cachedCode:ut||{}})}catch{j=!1}_.regl||(j=!1),j&&this.addEventListener("webglcontextlost",function(rt){Tt&&Tt.emit&&Tt.emit("plotly_webglcontextlost",{event:rt,layer:_.key})},!1)}}),j||it({container:ht._glcontainer.node()}),j}},34296:function(Ct,Rt,o){var it=o(38248),xt=o(25928);Ct.exports=function(yt){var ut;if(yt&&yt.hasOwnProperty("userAgent")?ut=yt.userAgent:ut=et(),typeof ut!="string")return!0;var ht=xt({ua:{headers:{"user-agent":ut}},tablet:!0,featureDetect:!1});if(!ht)for(var j=ut.split(" "),_=1;_-1;tt--){var st=j[tt];if(st.substr(0,8)==="Version/"){var ot=st.substr(8).split(".")[0];if(it(ot)&&(ot=+ot),ot>=13)return!0}}}return ht};function et(){var Tt;return typeof navigator<"u"&&(Tt=navigator.userAgent),Tt&&Tt.headers&&typeof Tt.headers["user-agent"]=="string"&&(Tt=Tt.headers["user-agent"]),Tt}},52416:function(Ct){Ct.exports=function(o,it){if(it instanceof RegExp){for(var xt=it.toString(),et=0;etxt.queueLength&&(yt.undoQueue.queue.shift(),yt.undoQueue.index--)},Tt.startSequence=function(yt){yt.undoQueue=yt.undoQueue||{index:0,queue:[],sequence:!1},yt.undoQueue.sequence=!0,yt.undoQueue.beginSequence=!0},Tt.stopSequence=function(yt){yt.undoQueue=yt.undoQueue||{index:0,queue:[],sequence:!1},yt.undoQueue.sequence=!1,yt.undoQueue.beginSequence=!1},Tt.undo=function(ut){var ht,j;if(!(ut.undoQueue===void 0||isNaN(ut.undoQueue.index)||ut.undoQueue.index<=0)){for(ut.undoQueue.index--,ht=ut.undoQueue.queue[ut.undoQueue.index],ut.undoQueue.inSequence=!0,j=0;j=ut.undoQueue.queue.length)){for(ht=ut.undoQueue.queue[ut.undoQueue.index],ut.undoQueue.inSequence=!0,j=0;j1?(tt[nt-1]-tt[0])/(nt-1):1,bt,ft;for(dt>=0?ft=st?ut:ht:ft=st?_:j,rt+=dt*yt*(st?-1:1)*(dt>=0?1:-1);ot90&&xt.log("Long binary search..."),ot-1};function ut(rt,tt){return rttt}function _(rt,tt){return rt>=tt}Rt.sorterAsc=function(rt,tt){return rt-tt},Rt.sorterDes=function(rt,tt){return tt-rt},Rt.distinctVals=function(rt){var tt=rt.slice();tt.sort(Rt.sorterAsc);var st;for(st=tt.length-1;st>-1&&tt[st]===Tt;st--);for(var ot=tt[st]-tt[0]||1,nt=ot/(st||1)/1e4,vt=[],dt,bt=0;bt<=st;bt++){var ft=tt[bt],at=ft-dt;dt===void 0?(vt.push(ft),dt=ft):at>nt&&(ot=Math.min(ot,at),vt.push(ft),dt=ft)}return{vals:vt,minDiff:ot}},Rt.roundUp=function(rt,tt,st){for(var ot=0,nt=tt.length-1,vt,dt=0,bt=st?0:1,ft=st?1:0,at=st?Math.ceil:Math.floor;ot0&&(ot=1),st&&ot)return rt.sort(tt)}return ot?rt:rt.reverse()},Rt.findIndexOfMin=function(rt,tt){tt=tt||et;for(var st=1/0,ot,nt=0;ntyt.length)&&(ut=yt.length),it(Tt)||(Tt=!1),xt(yt[0])){for(j=new Array(ut),ht=0;htet.length-1)return et[et.length-1];var yt=Tt%1;return yt*et[Math.ceil(Tt)]+(1-yt)*et[Math.floor(Tt)]}},43080:function(Ct,Rt,o){var it=o(72160);function xt(et){return et?it(et):[0,0,0,1]}Ct.exports=xt},9188:function(Ct,Rt,o){var it=o(2264),xt=o(43616),et=o(3400),Tt=null;function yt(){if(Tt!==null)return Tt;Tt=!1;var ut=et.isIE()||et.isSafari()||et.isIOS();if(window.navigator.userAgent&&!ut){var ht=Array.from(it.CSS_DECLARATIONS).reverse(),j=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof j=="function")Tt=ht.some(function(st){return j.apply(null,st)});else{var _=xt.tester.append("image").attr("style",it.STYLE),rt=window.getComputedStyle(_.node()),tt=rt.imageRendering;Tt=ht.some(function(st){var ot=st[1];return tt===ot||tt===ot.toLowerCase()}),_.remove()}}return Tt}Ct.exports=yt},72736:function(Ct,Rt,o){var it=o(33428),xt=o(3400),et=xt.strTranslate,Tt=o(9616),yt=o(84284).LINE_SPACING,ut=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;Rt.convertToTspans=function($t,Ut,Ht){var Vt=$t.text(),Xt=!$t.attr("data-notex")&&Ut&&Ut._context.typesetMath&&typeof MathJax<"u"&&Vt.match(ut),qt=it.select($t.node().parentNode);if(qt.empty())return;var er=$t.attr("class")?$t.attr("class").split(" ")[0]:"text";er+="-math",qt.selectAll("svg."+er).remove(),qt.selectAll("g."+er+"-group").remove(),$t.style("display",null).attr({"data-unformatted":Vt,"data-math":"N"});function lr(){qt.empty()||(er=$t.attr("class")+"-math",qt.select("svg."+er).remove()),$t.text("").style("white-space","pre");var Jt=Pt($t.node(),Vt);Jt&&$t.style("pointer-events","all"),Rt.positionText($t),Ht&&Ht.call($t)}return Xt?(Ut&&Ut._promises||[]).push(new Promise(function(Jt){$t.style("display","none");var Yt=parseInt($t.node().style.fontSize,10),rr={fontSize:Yt};tt(Xt[2],rr,function(jt,ar,sr){qt.selectAll("svg."+er).remove(),qt.selectAll("g."+er+"-group").remove();var Zt=jt&&jt.select("svg");if(!Zt||!Zt.node()){lr(),Jt();return}var Kt=qt.append("g").classed(er+"-group",!0).attr({"pointer-events":"none","data-unformatted":Vt,"data-math":"Y"});Kt.node().appendChild(Zt.node()),ar&&ar.node()&&Zt.node().insertBefore(ar.node().cloneNode(!0),Zt.node().firstChild);var or=sr.width,tr=sr.height;Zt.attr({class:er,height:tr,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var cr=$t.node().style.fill||"black",mr=Zt.select("g");mr.attr({fill:cr,stroke:cr});var Ar=mr.node().getBoundingClientRect(),br=Ar.width,Ir=Ar.height;(br>or||Ir>tr)&&(Zt.style("overflow","hidden"),Ar=Zt.node().getBoundingClientRect(),br=Ar.width,Ir=Ar.height);var Tr=+$t.attr("x"),_r=+$t.attr("y"),Er=Yt||$t.node().getBoundingClientRect().height,Rr=-Er/4;if(er[0]==="y")Kt.attr({transform:"rotate("+[-90,Tr,_r]+")"+et(-br/2,Rr-Ir/2)});else if(er[0]==="l")_r=Rr-Ir/2;else if(er[0]==="a"&&er.indexOf("atitle")!==0)Tr=0,_r=Rr;else{var zr=$t.attr("text-anchor");Tr=Tr-br*(zr==="middle"?.5:zr==="end"?1:0),_r=_r+Rr-Ir/2}Zt.attr({x:Tr,y:_r}),Ht&&Ht.call($t,Kt),Jt(Kt)})})):lr(),$t};var ht=/(<|<|<)/g,j=/(>|>|>)/g;function _($t){return $t.replace(ht,"\\lt ").replace(j,"\\gt ")}var rt=[["$","$"],["\\(","\\)"]];function tt($t,Ut,Ht){var Vt=parseInt((MathJax.version||"").split(".")[0]);if(Vt!==2&&Vt!==3){xt.warn("No MathJax version:",MathJax.version);return}var Xt,qt,er,lr,Jt=function(){return qt=xt.extendDeepAll({},MathJax.Hub.config),er=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:rt},displayAlign:"left"})},Yt=function(){qt=xt.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=rt},rr=function(){if(Xt=MathJax.Hub.config.menuSettings.renderer,Xt!=="SVG")return MathJax.Hub.setRenderer("SVG")},jt=function(){Xt=MathJax.config.startup.output,Xt!=="svg"&&(MathJax.config.startup.output="svg")},ar=function(){var cr="math-output-"+xt.randstr({},64);lr=it.select("body").append("div").attr({id:cr}).style({visibility:"hidden",position:"absolute","font-size":Ut.fontSize+"px"}).text(_($t));var mr=lr.node();return Vt===2?MathJax.Hub.Typeset(mr):MathJax.typeset([mr])},sr=function(){var cr=lr.select(Vt===2?".MathJax_SVG":".MathJax"),mr=!cr.empty()&&lr.select("svg").node();if(!mr)xt.log("There was an error in the tex syntax.",$t),Ht();else{var Ar=mr.getBoundingClientRect(),br;Vt===2?br=it.select("body").select("#MathJax_SVG_glyphs"):br=cr.select("defs"),Ht(cr,br,Ar)}lr.remove()},Zt=function(){if(Xt!=="SVG")return MathJax.Hub.setRenderer(Xt)},Kt=function(){Xt!=="svg"&&(MathJax.config.startup.output=Xt)},or=function(){return er!==void 0&&(MathJax.Hub.processSectionDelay=er),MathJax.Hub.Config(qt)},tr=function(){MathJax.config=qt};Vt===2?MathJax.Hub.Queue(Jt,rr,ar,sr,Zt,or):Vt===3&&(Yt(),jt(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){ar(),sr(),Kt(),tr()}))}var st={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},ot={sub:"0.3em",sup:"-0.6em"},nt={sub:"-0.21em",sup:"0.42em"},vt="​",dt=["http:","https:","mailto:","",void 0,":"],bt=Rt.NEWLINES=/(\r\n?|\n)/g,ft=/(<[^<>]*>)/,at=/<(\/?)([^ >]*)(\s+(.*))?>/i,mt=//i;Rt.BR_TAG_ALL=//gi;var St=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,_t=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,Mt=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,Et=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function kt($t,Ut){if(!$t)return null;var Ht=$t.match(Ut),Vt=Ht&&(Ht[3]||Ht[4]);return Vt&&At(Vt)}var wt=/(^|;)\s*color:/;Rt.plainText=function($t,Ut){Ut=Ut||{};for(var Ht=Ut.len!==void 0&&Ut.len!==-1?Ut.len:1/0,Vt=Ut.allowedTags!==void 0?Ut.allowedTags:["br"],Xt="...",qt=Xt.length,er=$t.split(ft),lr=[],Jt="",Yt=0,rr=0;rrqt?lr.push(jt.substr(0,Kt-qt)+Xt):lr.push(jt.substr(0,Kt));break}Jt=""}}return lr.join("")};var ct={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},It=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function At($t){return $t.replace(It,function(Ut,Ht){var Vt;return Ht.charAt(0)==="#"?Vt=Ot(Ht.charAt(1)==="x"?parseInt(Ht.substr(2),16):parseInt(Ht.substr(1),10)):Vt=ct[Ht],Vt||Ut})}Rt.convertEntities=At;function Ot($t){if(!($t>1114111)){var Ut=String.fromCodePoint;if(Ut)return Ut($t);var Ht=String.fromCharCode;return $t<=65535?Ht($t):Ht(($t>>10)+55232,$t%1024+56320)}}function Pt($t,Ut){Ut=Ut.replace(bt," ");var Ht=!1,Vt=[],Xt,qt=-1;function er(){qt++;var Ir=document.createElementNS(Tt.svg,"tspan");it.select(Ir).attr({class:"line",dy:qt*yt+"em"}),$t.appendChild(Ir),Xt=Ir;var Tr=Vt;if(Vt=[{node:Ir}],Tr.length>1)for(var _r=1;_r.",Ut);return}var Tr=Vt.pop();Ir!==Tr.type&&xt.log("Start tag <"+Tr.type+"> doesnt match end tag <"+Ir+">. Pretending it did match.",Ut),Xt=Vt[Vt.length-1].node}var rr=mt.test(Ut);rr?er():(Xt=$t,Vt=[{node:$t}]);for(var jt=Ut.split(ft),ar=0;arut.ts+Tt){_();return}ut.timer=setTimeout(function(){_(),ut.timer=null},Tt)},Rt.done=function(xt){var et=o[xt];return!et||!et.timer?Promise.resolve():new Promise(function(Tt){var yt=et.onDone;et.onDone=function(){yt&&yt(),Tt(),et.onDone=null}})},Rt.clear=function(xt){if(xt)it(o[xt]),delete o[xt];else for(var et in o)Rt.clear(et)};function it(xt){xt&&xt.timer!==null&&(clearTimeout(xt.timer),xt.timer=null)}},36896:function(Ct,Rt,o){var it=o(38248);Ct.exports=function(et,Tt){if(et>0)return Math.log(et)/Math.LN10;var yt=Math.log(Math.min(Tt[0],Tt[1]))/Math.LN10;return it(yt)||(yt=Math.log(Math.max(Tt[0],Tt[1]))/Math.LN10-6),yt}},59972:function(Ct,Rt,o){var it=Ct.exports={},xt=o(79552).locationmodeToLayer,et=o(55712).NO;it.getTopojsonName=function(Tt){return[Tt.scope.replace(/ /g,"-"),"_",Tt.resolution.toString(),"m"].join("")},it.getTopojsonPath=function(Tt,yt){return Tt+yt+".json"},it.getTopojsonFeatures=function(Tt,yt){var ut=xt[Tt.locationmode],ht=yt.objects[ut];return et(yt,ht).features}},11680:function(Ct){Ct.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},6580:function(Ct){Ct.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},69820:function(Ct,Rt,o){var it=o(24040);Ct.exports=function(et){for(var Tt=it.layoutArrayContainers,yt=it.layoutArrayRegexes,ut=et.split("[")[0],ht,j,_=0;_0&&Tt.log("Clearing previous rejected promises from queue."),mt._promises=[]},Rt.cleanLayout=function(mt){var St,_t;mt||(mt={}),mt.xaxis1&&(mt.xaxis||(mt.xaxis=mt.xaxis1),delete mt.xaxis1),mt.yaxis1&&(mt.yaxis||(mt.yaxis=mt.yaxis1),delete mt.yaxis1),mt.scene1&&(mt.scene||(mt.scene=mt.scene1),delete mt.scene1);var Mt=(yt.subplotsRegistry.cartesian||{}).attrRegex,Et=(yt.subplotsRegistry.polar||{}).attrRegex,kt=(yt.subplotsRegistry.ternary||{}).attrRegex,wt=(yt.subplotsRegistry.gl3d||{}).attrRegex,ct=Object.keys(mt);for(St=0;St3?(rr.x=1.02,rr.xanchor="left"):rr.x<-2&&(rr.x=-.02,rr.xanchor="right"),rr.y>3?(rr.y=1.02,rr.yanchor="bottom"):rr.y<-2&&(rr.y=-.02,rr.yanchor="top")),st(mt),mt.dragmode==="rotate"&&(mt.dragmode="orbit"),ht.clean(mt),mt.template&&mt.template.layout&&Rt.cleanLayout(mt.template.layout),mt};function tt(mt,St){var _t=mt[St],Mt=St.charAt(0);_t&&_t!=="paper"&&(mt[St]=j(_t,Mt,!0))}function st(mt){mt&&((typeof mt.title=="string"||typeof mt.title=="number")&&(mt.title={text:mt.title}),St("titlefont","font"),St("titleposition","position"),St("titleside","side"),St("titleoffset","offset"));function St(_t,Mt){var Et=mt[_t],kt=mt.title&&mt.title[Mt];Et&&!kt&&(mt.title||(mt.title={}),mt.title[Mt]=mt[_t],delete mt[_t])}}Rt.cleanData=function(mt){for(var St=0;St0)return mt.substr(0,St)}Rt.hasParent=function(mt,St){for(var _t=ft(St);_t;){if(_t in mt)return!0;_t=ft(_t)}return!1};var at=["x","y","z"];Rt.clearAxisTypes=function(mt,St,_t){for(var Mt=0;Mt1&&et.warn("Full array edits are incompatible with other edits",nt);var St=tt[""][""];if(ht(St))rt.set(null);else if(Array.isArray(St))rt.set(St);else return et.warn("Unrecognized full array edit value",nt,St),!0;return ft?!1:(vt(at,mt),dt(_),!0)}var _t=Object.keys(tt).map(Number).sort(Tt),Mt=rt.get(),Et=Mt||[],kt=ot(mt,nt).get(),wt=[],ct=-1,It=Et.length,At,Ot,Pt,zt,Dt,Nt,$t,Ut;for(At=0;At<_t.length;At++){if(Pt=_t[At],zt=tt[Pt],Dt=Object.keys(zt),Nt=zt[""],$t=ut(Nt),Pt<0||Pt>Et.length-($t?0:1)){et.warn("index out of range",nt,Pt);continue}if(Nt!==void 0)Dt.length>1&&et.warn("Insertion & removal are incompatible with edits to the same index.",nt,Pt),ht(Nt)?wt.push(Pt):$t?(Nt==="add"&&(Nt={}),Et.splice(Pt,0,Nt),kt&&kt.splice(Pt,0,{})):et.warn("Unrecognized full object edit value",nt,Pt,Nt),ct===-1&&(ct=Pt);else for(Ot=0;Ot=0;At--)Et.splice(wt[At],1),kt&&kt.splice(wt[At],1);if(Et.length?Mt||rt.set(Et):rt.set(null),ft)return!1;if(vt(at,mt),bt!==xt){var Ht;if(ct===-1)Ht=_t;else{for(It=Math.max(Et.length,It),Ht=[],At=0;At<_t.length&&(Pt=_t[At],!(Pt>=ct));At++)Ht.push(Pt);for(At=ct;At=ur.data.length||qr<-ur.data.length)throw new Error(Pr+" must be valid indices for gd.data.");if(xr.indexOf(qr,Vr+1)>-1||qr>=0&&xr.indexOf(-ur.data.length+qr)>-1||qr<0&&xr.indexOf(ur.data.length+qr)>-1)throw new Error("each index in "+Pr+" must be unique.")}}function Ht(ur,xr,Pr){if(!Array.isArray(ur.data))throw new Error("gd.data must be an array.");if(typeof xr>"u")throw new Error("currentIndices is a required argument.");if(Array.isArray(xr)||(xr=[xr]),Ut(ur,xr,"currentIndices"),typeof Pr<"u"&&!Array.isArray(Pr)&&(Pr=[Pr]),typeof Pr<"u"&&Ut(ur,Pr,"newIndices"),typeof Pr<"u"&&xr.length!==Pr.length)throw new Error("current and new indices must be of equal length.")}function Vt(ur,xr,Pr){var Vr,qr;if(!Array.isArray(ur.data))throw new Error("gd.data must be an array.");if(typeof xr>"u")throw new Error("traces must be defined.");for(Array.isArray(xr)||(xr=[xr]),Vr=0;Vr"u")throw new Error("indices must be an integer or array of integers");Ut(ur,Pr,"indices");for(var rn in xr){if(!Array.isArray(xr[rn])||xr[rn].length!==Pr.length)throw new Error("attribute "+rn+" must be an array of length equal to indices array length");if(qr&&(!(rn in Vr)||!Array.isArray(Vr[rn])||Vr[rn].length!==xr[rn].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}}function qt(ur,xr,Pr,Vr){var qr=Tt.isPlainObject(Vr),rn=[],Cn,xn,fn,bn,Un;Array.isArray(Pr)||(Pr=[Pr]),Pr=$t(Pr,ur.data.length-1);for(var _i in xr)for(var yn=0;yn=0&&Un<_i.length?_i.splice(0,_i.length-Un):[];return[_i,yn]}var rn=er(ur,xr,Pr,Vr,qr),Cn=Rt.redraw(ur),xn=[ur,rn.update,Pr,rn.maxPoints];return ht.add(ur,Rt.prependTraces,xn,Jt,arguments),Cn}function Yt(ur,xr,Pr,Vr){ur=Tt.getGraphDiv(ur);function qr(fn,bn,Un){var _i,yn;if(Tt.isTypedArray(fn))if(Un<=0){var Kn=new fn.constructor(0),Jn=lr(bn,fn);Un<0?(_i=Jn,yn=Kn):(_i=Kn,yn=Jn)}else if(_i=new fn.constructor(Un),yn=new fn.constructor(fn.length+bn.length-Un),Un===bn.length)_i.set(bn),yn.set(fn);else if(Un=0&&Un<_i.length?_i.splice(Un,_i.length):[];return[_i,yn]}var rn=er(ur,xr,Pr,Vr,qr),Cn=Rt.redraw(ur),xn=[ur,rn.update,Pr,rn.maxPoints];return ht.add(ur,Rt.extendTraces,xn,Yt,arguments),Cn}function rr(ur,xr,Pr){ur=Tt.getGraphDiv(ur);var Vr=[],qr=Rt.deleteTraces,rn=rr,Cn=[ur,Vr],xn=[ur,xr],fn,bn;for(Vt(ur,xr,Pr),Array.isArray(xr)||(xr=[xr]),xr=xr.map(function(Un){return Tt.extendFlat({},Un)}),St.cleanData(xr),fn=0;fn"u")return bn=Rt.redraw(ur),ht.add(ur,qr,Cn,rn,xn),bn;Array.isArray(Pr)||(Pr=[Pr]);try{Ht(ur,Vr,Pr)}catch(Un){throw ur.data.splice(ur.data.length-xr.length,xr.length),Un}return ht.startSequence(ur),ht.add(ur,qr,Cn,rn,xn),bn=Rt.moveTraces(ur,Vr,Pr),ht.stopSequence(ur),bn}function jt(ur,xr){ur=Tt.getGraphDiv(ur);var Pr=[],Vr=Rt.addTraces,qr=jt,rn=[ur,Pr,xr],Cn=[ur,xr],xn,fn;if(typeof xr>"u")throw new Error("indices must be an integer or array of integers.");for(Array.isArray(xr)||(xr=[xr]),Ut(ur,xr,"indices"),xr=$t(xr,ur.data.length-1),xr.sort(Tt.sorterDes),xn=0;xn"u")for(Pr=[],bn=0;bn-1&&rn.indexOf("grouptitlefont")===-1?xn(rn,rn.replace("titlefont","title.font")):rn.indexOf("titleposition")>-1?xn(rn,rn.replace("titleposition","title.position")):rn.indexOf("titleside")>-1?xn(rn,rn.replace("titleside","title.side")):rn.indexOf("titleoffset")>-1&&xn(rn,rn.replace("titleoffset","title.offset"));function xn(fn,bn){ur[bn]=ur[fn],delete ur[fn]}}function Ar(ur,xr,Pr){ur=Tt.getGraphDiv(ur),St.clearPromiseQueue(ur);var Vr={};if(typeof xr=="string")Vr[xr]=Pr;else if(Tt.isPlainObject(xr))Vr=Tt.extendFlat({},xr);else return Tt.warn("Relayout fail.",xr,Pr),Promise.reject();Object.keys(Vr).length&&(ur.changed=!0);var qr=Rr(ur,Vr),rn=qr.flags;rn.calc&&(ur.calcdata=void 0);var Cn=[rt.previousPromises];rn.layoutReplot?Cn.push(_t.layoutReplot):Object.keys(Vr).length&&(br(ur,rn,qr)||rt.supplyDefaults(ur),rn.legend&&Cn.push(_t.doLegend),rn.layoutstyle&&Cn.push(_t.layoutStyles),rn.axrange&&Ir(Cn,qr.rangesAltered),rn.ticks&&Cn.push(_t.doTicksRelayout),rn.modebar&&Cn.push(_t.doModeBar),rn.camera&&Cn.push(_t.doCamera),rn.colorbars&&Cn.push(_t.doColorBars),Cn.push(It)),Cn.push(rt.rehover,rt.redrag,rt.reselect),ht.add(ur,Ar,[ur,qr.undoit],Ar,[ur,qr.redoit]);var xn=Tt.syncOrAsync(Cn,ur);return(!xn||!xn.then)&&(xn=Promise.resolve(ur)),xn.then(function(){return ur.emit("plotly_relayout",qr.eventData),ur})}function br(ur,xr,Pr){var Vr=ur._fullLayout;if(!xr.axrange)return!1;for(var qr in xr)if(qr!=="axrange"&&xr[qr])return!1;var rn,Cn,xn=function(Kn,Jn){return Tt.coerce(rn,Cn,ot,Kn,Jn)},fn={};for(var bn in Pr.rangesAltered){var Un=tt.id2name(bn);if(rn=ur.layout[Un],Cn=Vr[Un],st(rn,Cn,xn,fn),Cn._matchGroup){for(var _i in Cn._matchGroup)if(_i!==bn){var yn=Vr[tt.id2name(_i)];yn.autorange=Cn.autorange,yn.range=Cn.range.slice(),yn._input.range=Cn.range.slice()}}}return!0}function Ir(ur,xr){var Pr=xr?function(Vr){var qr=[],rn=!0;for(var Cn in xr){var xn=tt.getFromId(Vr,Cn);if(qr.push(Cn),(xn.ticklabelposition||"").indexOf("inside")!==-1&&xn._anchorAxis&&qr.push(xn._anchorAxis._id),xn._matchGroup)for(var fn in xn._matchGroup)xr[fn]||qr.push(fn)}return tt.draw(Vr,qr,{skipTitle:rn})}:function(Vr){return tt.draw(Vr,"redraw")};ur.push(ft,_t.doAutoRangeAndConstraints,Pr,_t.drawData,_t.finalDraw)}var Tr=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,_r=/^[xyz]axis[0-9]*\.autorange$/,Er=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function Rr(ur,xr){var Pr=ur.layout,Vr=ur._fullLayout,qr=Vr._guiEditing,rn=Kt(Vr._preGUI,qr),Cn=Object.keys(xr),xn=tt.list(ur),fn=Tt.extendDeepAll({},xr),bn={},Un,_i,yn;for(mr(xr),Cn=Object.keys(xr),_i=0;_i0&&typeof Vn.parts[qn]!="string";)qn--;var po=Vn.parts[qn],Yr=Vn.parts[qn-1]+"."+po,jr=Vn.parts.slice(0,qn).join("."),$n=yt(ur.layout,jr).get(),Bn=yt(Vr,jr).get(),xa=Vn.get();if(ga!==void 0){An[Wn]=ga,hn[Wn]=po==="reverse"?ga:Zt(xa);var ro=_.getLayoutValObject(Vr,Vn.parts);if(ro&&ro.impliedEdits&&ga!==null)for(var io in ro.impliedEdits)wn(Tt.relativeAttr(Wn,io),ro.impliedEdits[io]);if(["width","height"].indexOf(Wn)!==-1)if(ga){wn("autosize",null);var eo=Wn==="height"?"width":"height";wn(eo,Vr[eo])}else Vr[Wn]=ur._initialAutoSize[Wn];else if(Wn==="autosize")wn("width",ga?null:Vr.width),wn("height",ga?null:Vr.height);else if(Yr.match(Tr))Xn(Yr),yt(Vr,jr+"._inputRange").set(null);else if(Yr.match(_r)){Xn(Yr),yt(Vr,jr+"._inputRange").set(null);var Gn=yt(Vr,jr).get();Gn._inputDomain&&(Gn._input.domain=Gn._inputDomain.slice())}else Yr.match(Er)&&yt(Vr,jr+"._inputDomain").set(null);if(po==="type"){Ln=$n;var ho=Bn.type==="linear"&&ga==="log",go=Bn.type==="log"&&ga==="linear";if(ho||go){if(!Ln||!Ln.range)wn(jr+".autorange",!0);else if(Bn.autorange)ho&&(Ln.range=Ln.range[1]>Ln.range[0]?[1,2]:[2,1]);else{var _o=Ln.range[0],co=Ln.range[1];ho?(_o<=0&&co<=0&&wn(jr+".autorange",!0),_o<=0?_o=co/1e6:co<=0&&(co=_o/1e6),wn(jr+".range[0]",Math.log(_o)/Math.LN10),wn(jr+".range[1]",Math.log(co)/Math.LN10)):(wn(jr+".range[0]",Math.pow(10,_o)),wn(jr+".range[1]",Math.pow(10,co)))}Array.isArray(Vr._subplots.polar)&&Vr._subplots.polar.length&&Vr[Vn.parts[0]]&&Vn.parts[1]==="radialaxis"&&delete Vr[Vn.parts[0]]._subplot.viewInitial["radialaxis.range"],j.getComponentMethod("annotations","convertCoords")(ur,Bn,ga,wn),j.getComponentMethod("images","convertCoords")(ur,Bn,ga,wn)}else wn(jr+".autorange",!0),wn(jr+".range",null);yt(Vr,jr+"._inputRange").set(null)}else if(po.match(Et)){var zo=yt(Vr,Wn).get(),Io=(ga||{}).type;(!Io||Io==="-")&&(Io="linear"),j.getComponentMethod("annotations","convertCoords")(ur,zo,Io,wn),j.getComponentMethod("images","convertCoords")(ur,zo,Io,wn)}var Lo=mt.containerArrayMatch(Wn);if(Lo){Un=Lo.array,_i=Lo.index;var vs=Lo.property,Zo=ro||{editType:"calc"};_i!==""&&vs===""&&(mt.isAddVal(ga)?hn[Wn]=null:mt.isRemoveVal(ga)?hn[Wn]=(yt(Pr,Un).get()||[])[_i]:Tt.warn("unrecognized full object value",xr)),Mt.update(ba,Zo),bn[Un]||(bn[Un]={});var Ls=bn[Un][_i];Ls||(Ls=bn[Un][_i]={}),Ls[vs]=ga,delete xr[Wn]}else po==="reverse"?($n.range?$n.range.reverse():(wn(jr+".autorange",!0),$n.range=[1,0]),Bn.autorange?ba.calc=!0:ba.plot=!0):(Wn==="dragmode"&&(ga===!1&&xa!==!1||ga!==!1&&xa===!1)||Vr._has("scatter-like")&&Vr._has("regl")&&Wn==="dragmode"&&(ga==="lasso"||ga==="select")&&!(xa==="lasso"||xa==="select")||Vr._has("gl2d")?ba.plot=!0:ro?Mt.update(ba,ro):ba.calc=!0,Vn.set(ga))}}for(Un in bn){var Ds=mt.applyContainerArrayChanges(ur,rn(Pr,Un),bn[Un],ba,rn);Ds||(ba.plot=!0)}for(var bo in In){Ln=tt.getFromId(ur,bo);var No=Ln&&Ln._constraintGroup;if(No){ba.calc=!0;for(var Yo in No)In[Yo]||(tt.getFromId(ur,Yo)._constraintShrinkable=!0)}}(zr(ur)||xr.height||xr.width)&&(ba.plot=!0);var Oo=Vr.shapes;for(_i=0;_i1;)if(Vr.pop(),Pr=yt(xr,Vr.join(".")+".uirevision").get(),Pr!==void 0)return Pr;return xr.uirevision}function en(ur,xr){for(var Pr=0;Pr=qr.length?qr[0]:qr[bn]:qr}function xn(bn){return Array.isArray(rn)?bn>=rn.length?rn[0]:rn[bn]:rn}function fn(bn,Un){var _i=0;return function(){if(bn&&++_i===Un)return bn()}}return new Promise(function(bn,Un){function _i(){if(Vr._frameQueue.length!==0){for(;Vr._frameQueue.length;){var po=Vr._frameQueue.pop();po.onInterrupt&&po.onInterrupt()}ur.emit("plotly_animationinterrupted",[])}}function yn(po){if(po.length!==0){for(var Yr=0;YrVr._timeToNext&&Jn()};po()}var ba=0;function An(po){return Array.isArray(qr)?ba>=qr.length?po.transitionOpts=qr[ba]:po.transitionOpts=qr[0]:po.transitionOpts=qr,ba++,po}var hn,wn,In=[],Ln=xr==null,Xn=Array.isArray(xr),Wn=!Ln&&!Xn&&Tt.isPlainObject(xr);if(Wn)In.push({type:"object",data:An(Tt.extendFlat({},xr))});else if(Ln||["string","number"].indexOf(typeof xr)!==-1)for(hn=0;hn0&&fofo)&&qn.push(wn);In=qn}}In.length>0?yn(In):(ur.emit("plotly_animated"),bn())})}function Gr(ur,xr,Pr){if(ur=Tt.getGraphDiv(ur),xr==null)return Promise.resolve();if(!Tt.isPlotDiv(ur))throw new Error("This element is not a Plotly plot: "+ur+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var Vr,qr,rn,Cn,xn=ur._transitionData._frames,fn=ur._transitionData._frameHash;if(!Array.isArray(xr))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+xr);var bn=xn.length+xr.length*2,Un=[],_i={};for(Vr=xr.length-1;Vr>=0;Vr--)if(Tt.isPlainObject(xr[Vr])){var yn=xr[Vr].name,Kn=(fn[yn]||_i[yn]||{}).name,Jn=xr[Vr].name,so=fn[Kn]||_i[Kn];Kn&&Jn&&typeof Jn=="number"&&so&&ktVn.index?-1:Wn.index=0;Vr--){if(qr=Un[Vr].frame,typeof qr.name=="number"&&Tt.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!qr.name)for(;fn[qr.name="frame "+ur._transitionData._counter++];);if(fn[qr.name]){for(rn=0;rn=0;Pr--)Vr=xr[Pr],rn.push({type:"delete",index:Vr}),Cn.unshift({type:"insert",index:Vr,value:qr[Vr]});var xn=rt.modifyFrames,fn=rt.modifyFrames,bn=[ur,Cn],Un=[ur,rn];return ht&&ht.add(ur,xn,bn,fn,Un),rt.modifyFrames(ur,rn)}function pr(ur){ur=Tt.getGraphDiv(ur);var xr=ur._fullLayout||{},Pr=ur._fullData||[];return rt.cleanPlot([],{},Pr,xr),rt.purge(ur),ut.purge(ur),xr._container&&xr._container.remove(),delete ur._context,ur}function Dr(ur){var xr=ur._fullLayout,Pr=ur.getBoundingClientRect();if(!Tt.equalDomRects(Pr,xr._lastBBox)){var Vr=xr._invTransform=Tt.inverseTransformMatrix(Tt.getFullTransformMatrix(ur));xr._invScaleX=Math.sqrt(Vr[0][0]*Vr[0][0]+Vr[0][1]*Vr[0][1]+Vr[0][2]*Vr[0][2]),xr._invScaleY=Math.sqrt(Vr[1][0]*Vr[1][0]+Vr[1][1]*Vr[1][1]+Vr[1][2]*Vr[1][2]),xr._lastBBox=Pr}}function Sr(ur){var xr=it.select(ur),Pr=ur._fullLayout;if(Pr._calcInverseTransform=Dr,Pr._calcInverseTransform(ur),Pr._container=xr.selectAll(".plot-container").data([0]),Pr._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0),Pr._paperdiv=Pr._container.selectAll(".svg-container").data([0]),Pr._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),Pr._glcontainer=Pr._paperdiv.selectAll(".gl-container").data([{}]),Pr._glcontainer.enter().append("div").classed("gl-container",!0),Pr._paperdiv.selectAll(".main-svg").remove(),Pr._paperdiv.select(".modebar-container").remove(),Pr._paper=Pr._paperdiv.insert("svg",":first-child").classed("main-svg",!0),Pr._toppaper=Pr._paperdiv.append("svg").classed("main-svg",!0),Pr._modebardiv=Pr._paperdiv.append("div"),delete Pr._modeBar,Pr._hoverpaper=Pr._paperdiv.append("svg").classed("main-svg",!0),!Pr._uid){var Vr={};it.selectAll("defs").each(function(){this.id&&(Vr[this.id.split("-")[1]]=1)}),Pr._uid=Tt.randstr(Vr)}Pr._paperdiv.selectAll(".main-svg").attr(bt.svgAttrs),Pr._defs=Pr._paper.append("defs").attr("id","defs-"+Pr._uid),Pr._clips=Pr._defs.append("g").classed("clips",!0),Pr._topdefs=Pr._toppaper.append("defs").attr("id","topdefs-"+Pr._uid),Pr._topclips=Pr._topdefs.append("g").classed("clips",!0),Pr._bgLayer=Pr._paper.append("g").classed("bglayer",!0),Pr._draggers=Pr._paper.append("g").classed("draglayer",!0);var qr=Pr._paper.append("g").classed("layer-below",!0);Pr._imageLowerLayer=qr.append("g").classed("imagelayer",!0),Pr._shapeLowerLayer=qr.append("g").classed("shapelayer",!0),Pr._cartesianlayer=Pr._paper.append("g").classed("cartesianlayer",!0),Pr._polarlayer=Pr._paper.append("g").classed("polarlayer",!0),Pr._smithlayer=Pr._paper.append("g").classed("smithlayer",!0),Pr._ternarylayer=Pr._paper.append("g").classed("ternarylayer",!0),Pr._geolayer=Pr._paper.append("g").classed("geolayer",!0),Pr._funnelarealayer=Pr._paper.append("g").classed("funnelarealayer",!0),Pr._pielayer=Pr._paper.append("g").classed("pielayer",!0),Pr._iciclelayer=Pr._paper.append("g").classed("iciclelayer",!0),Pr._treemaplayer=Pr._paper.append("g").classed("treemaplayer",!0),Pr._sunburstlayer=Pr._paper.append("g").classed("sunburstlayer",!0),Pr._indicatorlayer=Pr._toppaper.append("g").classed("indicatorlayer",!0),Pr._glimages=Pr._paper.append("g").classed("glimages",!0);var rn=Pr._toppaper.append("g").classed("layer-above",!0);Pr._imageUpperLayer=rn.append("g").classed("imagelayer",!0),Pr._shapeUpperLayer=rn.append("g").classed("shapelayer",!0),Pr._selectionLayer=Pr._toppaper.append("g").classed("selectionlayer",!0),Pr._infolayer=Pr._toppaper.append("g").classed("infolayer",!0),Pr._menulayer=Pr._toppaper.append("g").classed("menulayer",!0),Pr._zoomlayer=Pr._toppaper.append("g").classed("zoomlayer",!0),Pr._hoverlayer=Pr._hoverpaper.append("g").classed("hoverlayer",!0),Pr._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),ur.emit("plotly_framework")}Rt.animate=Wr,Rt.addFrames=Gr,Rt.deleteFrames=wr,Rt.addTraces=rr,Rt.deleteTraces=jt,Rt.extendTraces=Jt,Rt.moveTraces=ar,Rt.prependTraces=Yt,Rt.newPlot=Nt,Rt._doPlot=ct,Rt.purge=pr,Rt.react=pn,Rt.redraw=Dt,Rt.relayout=Ar,Rt.restyle=sr,Rt.setPlotConfig=At,Rt.update=Or,Rt._guiRelayout=kr(Ar),Rt._guiRestyle=kr(sr),Rt._guiUpdate=kr(Or),Rt._storeDirectGUIEdit=tr},20556:function(Ct){var Rt={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox"],extras:[!0,!1],dflt:"gl3d+geo+mapbox"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},globalTransforms:{valType:"any",dflt:[]},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},o={};function it(xt,et){for(var Tt in xt){var yt=xt[Tt];yt.valType?et[Tt]=yt.dflt:(et[Tt]||(et[Tt]={}),it(yt,et[Tt]))}}it(Rt,o),Ct.exports={configAttributes:Rt,dfltConfig:o}},73060:function(Ct,Rt,o){var it=o(24040),xt=o(3400),et=o(45464),Tt=o(64859),yt=o(16672),ut=o(85656),ht=o(20556).configAttributes,j=o(67824),_=xt.extendDeepAll,rt=xt.isPlainObject,tt=xt.isArrayOrTypedArray,st=xt.nestedProperty,ot=xt.valObjectMeta,nt="_isSubplotObj",vt="_isLinkedToArray",dt="_arrayAttrRegexps",bt="_deprecated",ft=[nt,vt,dt,bt];Rt.IS_SUBPLOT_OBJ=nt,Rt.IS_LINKED_TO_ARRAY=vt,Rt.DEPRECATED=bt,Rt.UNDERSCORE_ATTRS=ft,Rt.get=function(){var zt={};it.allTypes.forEach(function(Nt){zt[Nt]=_t(Nt)});var Dt={};return Object.keys(it.transformsRegistry).forEach(function(Nt){Dt[Nt]=Et(Nt)}),{defs:{valObjects:ot,metaKeys:ft.concat(["description","role","editType","impliedEdits"]),editType:{traces:j.traces,layout:j.layout},impliedEdits:{}},traces:zt,layout:Mt(),transforms:Dt,frames:kt(),animation:wt(ut),config:wt(ht)}},Rt.crawl=function(zt,Dt,Nt,$t){var Ut=Nt||0;$t=$t||"",Object.keys(zt).forEach(function(Ht){var Vt=zt[Ht];if(ft.indexOf(Ht)===-1){var Xt=($t?$t+".":"")+Ht;Dt(Vt,Ht,zt,Ut,Xt),!Rt.isValObject(Vt)&&rt(Vt)&&Ht!=="impliedEdits"&&Rt.crawl(Vt,Dt,Ut+1,Xt)}})},Rt.isValObject=function(zt){return zt&&zt.valType!==void 0},Rt.findArrayAttributes=function(zt){var Dt=[],Nt=[],$t=[],Ut,Ht;function Vt(Yt,rr,jt,ar){Nt=Nt.slice(0,ar).concat([rr]),$t=$t.slice(0,ar).concat([Yt&&Yt._isLinkedToArray]);var sr=Yt&&(Yt.valType==="data_array"||Yt.arrayOk===!0)&&!(Nt[ar-1]==="colorbar"&&(rr==="ticktext"||rr==="tickvals"));sr&&Xt(Ut,0,"")}function Xt(Yt,rr,jt){var ar=Yt[Nt[rr]],sr=jt+Nt[rr];if(rr===Nt.length-1)tt(ar)&&Dt.push(Ht+sr);else if($t[rr]){if(Array.isArray(ar))for(var Zt=0;Zt=Vt.length)return!1;Ut=(it.transformsRegistry[Vt[Xt].type]||{}).attributes,Ht=Ut&&Ut[Dt[2]],$t=3}else{var qt=zt._module;if(qt||(qt=(it.modules[zt.type||et.type.dflt]||{})._module),!qt)return!1;if(Ut=qt.attributes,Ht=Ut&&Ut[Nt],!Ht){var er=qt.basePlotModule;er&&er.attributes&&(Ht=er.attributes[Nt])}Ht||(Ht=et[Nt])}return mt(Ht,Dt,$t)},Rt.getLayoutValObject=function(zt,Dt){var Nt=at(zt,Dt[0]);return mt(Nt,Dt,1)};function at(zt,Dt){var Nt,$t,Ut,Ht,Vt=zt._basePlotModules;if(Vt){var Xt;for(Nt=0;Nt=Ht.length)return!1;if(zt.dimensions===2){if(Nt++,Dt.length===Nt)return zt;var Vt=Dt[Nt];if(!St(Vt))return!1;zt=Ht[Ut][Vt]}else zt=Ht[Ut]}else zt=Ht}}return zt}function St(zt){return zt===Math.round(zt)&&zt>=0}function _t(zt){var Dt,Nt;Dt=it.modules[zt]._module,Nt=Dt.basePlotModule;var $t={};$t.type=null;var Ut=_({},et),Ht=_({},Dt.attributes);Rt.crawl(Ht,function(qt,er,lr,Jt,Yt){st(Ut,Yt).set(void 0),qt===void 0&&st(Ht,Yt).set(void 0)}),_($t,Ut),it.traceIs(zt,"noOpacity")&&delete $t.opacity,it.traceIs(zt,"showLegend")||(delete $t.showlegend,delete $t.legendgroup),it.traceIs(zt,"noHover")&&(delete $t.hoverinfo,delete $t.hoverlabel),Dt.selectPoints||delete $t.selectedpoints,_($t,Ht),Nt.attributes&&_($t,Nt.attributes),$t.type=zt;var Vt={meta:Dt.meta||{},categories:Dt.categories||{},animatable:Boolean(Dt.animatable),type:zt,attributes:wt($t)};if(Dt.layoutAttributes){var Xt={};_(Xt,Dt.layoutAttributes),Vt.layoutAttributes=wt(Xt)}return Dt.animatable||Rt.crawl(Vt,function(qt){Rt.isValObject(qt)&&"anim"in qt&&delete qt.anim}),Vt}function Mt(){var zt={},Dt,Nt;_(zt,Tt);for(Dt in it.subplotsRegistry)if(Nt=it.subplotsRegistry[Dt],!!Nt.layoutAttributes)if(Array.isArray(Nt.attr))for(var $t=0;$t=rt&&(_._input||{})._templateitemname;st&&(tt=rt);var ot=j+"["+tt+"]",nt;function vt(){nt={},st&&(nt[ot]={},nt[ot][et]=st)}vt();function dt(mt,St){nt[mt]=St}function bt(mt,St){st?it.nestedProperty(nt[ot],mt).set(St):nt[ot+"."+mt]=St}function ft(){var mt=nt;return vt(),mt}function at(mt,St){mt&&bt(mt,St);var _t=ft();for(var Mt in _t)it.nestedProperty(ht,Mt).set(_t[Mt])}return{modifyBase:dt,modifyItem:bt,getUpdateObj:ft,applyUpdate:at}}},39172:function(Ct,Rt,o){var it=o(33428),xt=o(24040),et=o(7316),Tt=o(3400),yt=o(72736),ut=o(73696),ht=o(76308),j=o(43616),_=o(81668),rt=o(45460),tt=o(54460),st=o(84284),ot=o(71888),nt=ot.enforce,vt=ot.clean,dt=o(19280).doAutoRange,bt="start",ft="middle",at="end";Rt.layoutStyles=function(Nt){return Tt.syncOrAsync([et.doAutoMargin,St],Nt)};function mt(Nt,$t,Ut){for(var Ht=0;Ht=Nt[1]||Vt[1]<=Nt[0])&&Xt[0]<$t[1]&&Xt[1]>$t[0])return!0}return!1}function St(Nt){var $t=Nt._fullLayout,Ut=$t._size,Ht=Ut.p,Vt=tt.list(Nt,"",!0),Xt,qt,er,lr,Jt,Yt;if($t._paperdiv.style({width:Nt._context.responsive&&$t.autosize&&!Nt._context._hasZeroWidth&&!Nt.layout.width?"100%":$t.width+"px",height:Nt._context.responsive&&$t.autosize&&!Nt._context._hasZeroHeight&&!Nt.layout.height?"100%":$t.height+"px"}).selectAll(".main-svg").call(j.setSize,$t.width,$t.height),Nt._context.setBackground(Nt,$t.paper_bgcolor),Rt.drawMainTitle(Nt),rt.manage(Nt),!$t._has("cartesian"))return et.previousPromises(Nt);function rr(pr,Dr,Sr){var ur=pr._lw/2;if(pr._id.charAt(0)==="x"){if(Dr){if(Sr==="top")return Dr._offset-Ht-ur}else return Ut.t+Ut.h*(1-(pr.position||0))+ur%1;return Dr._offset+Dr._length+Ht+ur}if(Dr){if(Sr==="right")return Dr._offset+Dr._length+Ht+ur}else return Ut.l+Ut.w*(pr.position||0)+ur%1;return Dr._offset-Ht-ur}for(Xt=0;Xt0){It(Nt,Xt,Jt,lr),er.attr({x:qt,y:Xt,"text-anchor":Ht,dy:Pt($t.yanchor)}).call(yt.positionText,qt,Xt);var Yt=($t.text.match(yt.BR_TAG_ALL)||[]).length;if(Yt){var rr=st.LINE_SPACING*Yt+st.MID_SHIFT;$t.y===0&&(rr=-rr),er.selectAll(".line").each(function(){var jt=+this.getAttribute("dy").slice(0,-2)-rr+"em";this.setAttribute("dy",jt)})}}}};function kt(Nt,$t,Ut,Ht,Vt){var Xt=$t.yref==="paper"?Nt._fullLayout._size.h:Nt._fullLayout.height,qt=Tt.isTopAnchor($t)?Ht:Ht-Vt,er=Ut==="b"?Xt-qt:qt;return Tt.isTopAnchor($t)&&Ut==="t"||Tt.isBottomAnchor($t)&&Ut==="b"?!1:er.5?"t":"b",qt=Nt._fullLayout.margin[Xt],er=0;return $t.yref==="paper"?er=Ut+$t.pad.t+$t.pad.b:$t.yref==="container"&&(er=wt(Xt,Ht,Vt,Nt._fullLayout.height,Ut)+$t.pad.t+$t.pad.b),er>qt?er:0}function It(Nt,$t,Ut,Ht){var Vt="title.automargin",Xt=Nt._fullLayout.title,qt=Xt.y>.5?"t":"b",er={x:Xt.x,y:Xt.y,t:0,b:0},lr={};Xt.yref==="paper"&&kt(Nt,Xt,qt,$t,Ht)?er[qt]=Ut:Xt.yref==="container"&&(lr[qt]=Ut,Nt._fullLayout._reservedMargin[Vt]=lr),et.allowAutoMargin(Nt,Vt),et.autoMargin(Nt,Vt,er)}function At(Nt,$t){var Ut=Nt.title,Ht=Nt._size,Vt=0;switch($t===bt?Vt=Ut.pad.l:$t===at&&(Vt=-Ut.pad.r),Ut.xref){case"paper":return Ht.l+Ht.w*Ut.x+Vt;case"container":default:return Nt.width*Ut.x+Vt}}function Ot(Nt,$t){var Ut=Nt.title,Ht=Nt._size,Vt=0;if($t==="0em"||!$t?Vt=-Ut.pad.b:$t===st.CAP_SHIFT+"em"&&(Vt=Ut.pad.t),Ut.y==="auto")return Ht.t/2;switch(Ut.yref){case"paper":return Ht.t+Ht.h-Ht.h*Ut.y+Vt;case"container":default:return Nt.height-Nt.height*Ut.y+Vt}}function Pt(Nt){return Nt==="top"?st.CAP_SHIFT+.3+"em":Nt==="bottom"?"-0.3em":st.MID_SHIFT+"em"}function zt(Nt){var $t=Nt.title,Ut=ft;return Tt.isRightAnchor($t)?Ut=at:Tt.isLeftAnchor($t)&&(Ut=bt),Ut}function Dt(Nt){var $t=Nt.title,Ut="0em";return Tt.isTopAnchor($t)?Ut=st.CAP_SHIFT+"em":Tt.isMiddleAnchor($t)&&(Ut=st.MID_SHIFT+"em"),Ut}Rt.doTraceStyle=function(Nt){var $t=Nt.calcdata,Ut=[],Ht;for(Ht=0;Ht<$t.length;Ht++){var Vt=$t[Ht],Xt=Vt[0]||{},qt=Xt.trace||{},er=qt._module||{},lr=er.arraysToCalcdata;lr&&lr(Vt,qt);var Jt=er.editStyle;Jt&&Ut.push({fn:Jt,cd0:Xt})}if(Ut.length){for(Ht=0;HtDt?_t.push({code:"unused",traceType:At,templateCount:zt,dataCount:Dt}):Dt>zt&&_t.push({code:"reused",traceType:At,templateCount:zt,dataCount:Dt})}}function Nt($t,Ut){for(var Ht in $t)if(Ht.charAt(0)!=="_"){var Vt=$t[Ht],Xt=ot($t,Ht,Ut);xt(Vt)?(Array.isArray($t)&&Vt._template===!1&&Vt.templateitemname&&_t.push({code:"missing",path:Xt,templateitemname:Vt.templateitemname}),Nt(Vt,Xt)):Array.isArray(Vt)&&nt(Vt)&&Nt(Vt,Xt)}}if(Nt({data:Et,layout:Mt},""),_t.length)return _t.map(vt)};function nt(dt){for(var bt=0;bt1&&_t.push(st("object","layout"))),xt.supplyDefaults(Mt);for(var wt=Mt._fullData,ct=Et.length,It=0;ItAt.length&&St.push(st("unused",_t,ct.concat(At.length)));var $t=At.length,Ut=Array.isArray(Nt);Ut&&($t=Math.min($t,Nt.length));var Ht,Vt,Xt,qt,er;if(Ot.dimensions===2)for(Vt=0;Vt<$t;Vt++)if(ut(It[Vt])){It[Vt].length>At[Vt].length&&St.push(st("unused",_t,ct.concat(Vt,At[Vt].length)));var lr=At[Vt].length;for(Ht=0;Ht<(Ut?Math.min(lr,Nt[Vt].length):lr);Ht++)Xt=Ut?Nt[Vt][Ht]:Nt,qt=It[Vt][Ht],er=At[Vt][Ht],it.validate(qt,Xt)?er!==qt&&er!==+qt&&St.push(st("dynamic",_t,ct.concat(Vt,Ht),qt,er)):St.push(st("value",_t,ct.concat(Vt,Ht),qt))}else St.push(st("array",_t,ct.concat(Vt),It[Vt]));else for(Vt=0;Vt<$t;Vt++)Xt=Ut?Nt[Vt]:Nt,qt=It[Vt],er=At[Vt],it.validate(qt,Xt)?er!==qt&&er!==+qt&&St.push(st("dynamic",_t,ct.concat(Vt),qt,er)):St.push(st("value",_t,ct.concat(Vt),qt))}else if(Ot.items&&!zt&&ut(It)){var Jt=Nt[Object.keys(Nt)[0]],Yt=[],rr,jt;for(rr=0;rr0&&Math.round(vt)===vt)nt=vt;else return{vals:tt}}for(var dt=_.calendar,bt=st==="start",ft=st==="end",at=j[rt+"period0"],mt=et(at,dt)||0,St=[],_t=[],Mt=[],Et=tt.length,kt=0;ktwt;)At=Tt(At,-nt,dt);for(;At<=wt;)At=Tt(At,nt,dt);It=Tt(At,-nt,dt)}else{for(ct=Math.round((wt-mt)/ot),At=mt+ct*ot;At>wt;)At-=ot;for(;At<=wt;)At+=ot;It=At-ot}St[kt]=bt?It:ft?At:(It+At)/2,_t[kt]=It,Mt[kt]=At}return{vals:St,starts:_t,ends:Mt}}},26720:function(Ct){Ct.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},19280:function(Ct,Rt,o){var it=o(33428),xt=o(38248),et=o(3400),Tt=o(39032).FP_SAFE,yt=o(24040),ut=o(43616),ht=o(79811),j=ht.getFromId,_=ht.isLinked;Ct.exports={applyAutorangeOptions:ct,getAutoRange:rt,makePadFn:st,doAutoRange:dt,findExtremes:bt,concatExtremes:vt};function rt(It,At){var Ot,Pt,zt=[],Dt=It._fullLayout,Nt=st(Dt,At,0),$t=st(Dt,At,1),Ut=vt(It,At),Ht=Ut.min,Vt=Ut.max;if(Ht.length===0||Vt.length===0)return et.simpleMap(At.range,At.r2l);var Xt=Ht[0].val,qt=Vt[0].val;for(Ot=1;Ot0&&(mr=ar-Nt(Kt)-$t(or),mr>sr?Ar/mr>Zt&&(tr=Kt,cr=or,Zt=Ar/mr):Ar/ar>Zt&&(tr={val:Kt.val,nopad:1},cr={val:or.val,nopad:1},Zt=Ar/ar));function br(Rr,zr){return Math.max(Rr,$t(zr))}if(Xt===qt){var Ir=Xt-1,Tr=Xt+1;if(rr)if(Xt===0)zt=[0,1];else{var _r=(Xt>0?Vt:Ht).reduce(br,0),Er=Xt/(1-Math.min(.5,_r/ar));zt=Xt>0?[0,Er]:[Er,0]}else jt?zt=[Math.max(0,Ir),Math.max(1,Tr)]:zt=[Ir,Tr]}else rr?(tr.val>=0&&(tr={val:0,nopad:1}),cr.val<=0&&(cr={val:0,nopad:1})):jt&&(tr.val-Zt*Nt(tr)<0&&(tr={val:0,nopad:1}),cr.val<=0&&(cr={val:1,nopad:1})),Zt=(cr.val-tr.val-tt(At,Kt.val,or.val))/(ar-Nt(tr)-$t(cr)),zt=[tr.val-Zt*Nt(tr),cr.val+Zt*$t(cr)];return zt=ct(zt,At),At.limitRange&&At.limitRange(),lr&&zt.reverse(),et.simpleMap(zt,At.l2r||Number)}function tt(It,At,Ot){var Pt=0;if(It.rangebreaks)for(var zt=It.locateBreaks(At,Ot),Dt=0;Dt0?Ot.ppadplus:Ot.ppadminus)||Ot.ppad||0),Kt=sr((It._m>0?Ot.ppadminus:Ot.ppadplus)||Ot.ppad||0),or=sr(Ot.vpadplus||Ot.vpad),tr=sr(Ot.vpadminus||Ot.vpad);if(!Ht){if(jt=1/0,ar=-1/0,Ut)for(Xt=0;Xt0&&(jt=qt),qt>ar&&qt-Tt&&(jt=qt),qt>ar&&qt=Ar;Xt--)mr(Xt);return{min:Pt,max:zt,opts:Ot}}function ft(It,At,Ot,Pt){mt(It,At,Ot,Pt,_t)}function at(It,At,Ot,Pt){mt(It,At,Ot,Pt,Mt)}function mt(It,At,Ot,Pt,zt){for(var Dt=Pt.tozero,Nt=Pt.extrapad,$t=!0,Ut=0;Ut=Ot&&(Ht.extrapad||!Nt)){$t=!1;break}else zt(At,Ht.val)&&Ht.pad<=Ot&&(Nt||!Ht.extrapad)&&(It.splice(Ut,1),Ut--)}if($t){var Vt=Dt&&At===0;It.push({val:At,pad:Vt?0:Ot,extrapad:Vt?!1:Nt})}}function St(It){return xt(It)&&Math.abs(It)=At}function Et(It,At){var Ot=At.autorangeoptions;return Ot&&Ot.minallowed!==void 0&&wt(At,Ot.minallowed,Ot.maxallowed)?Ot.minallowed:Ot&&Ot.clipmin!==void 0&&wt(At,Ot.clipmin,Ot.clipmax)?Math.max(It,At.d2l(Ot.clipmin)):It}function kt(It,At){var Ot=At.autorangeoptions;return Ot&&Ot.maxallowed!==void 0&&wt(At,Ot.minallowed,Ot.maxallowed)?Ot.maxallowed:Ot&&Ot.clipmax!==void 0&&wt(At,Ot.clipmin,Ot.clipmax)?Math.min(It,At.d2l(Ot.clipmax)):It}function wt(It,At,Ot){return At!==void 0&&Ot!==void 0?(At=It.d2l(At),Ot=It.d2l(Ot),At=Ut&&(Dt=Ut,Ot=Ut),Nt<=Ut&&(Nt=Ut,Pt=Ut)}}return Ot=Et(Ot,At),Pt=kt(Pt,At),[Ot,Pt]}},76808:function(Ct){Ct.exports=function(o,it,xt){var et,Tt;if(xt){var yt=it==="reversed"||it==="min reversed"||it==="max reversed";et=xt[yt?1:0],Tt=xt[yt?0:1]}var ut=o("autorangeoptions.minallowed",Tt===null?et:void 0),ht=o("autorangeoptions.maxallowed",et===null?Tt:void 0);ut===void 0&&o("autorangeoptions.clipmin"),ht===void 0&&o("autorangeoptions.clipmax"),o("autorangeoptions.include")}},54460:function(Ct,Rt,o){var it=o(33428),xt=o(38248),et=o(7316),Tt=o(24040),yt=o(3400),ut=yt.strTranslate,ht=o(72736),j=o(81668),_=o(76308),rt=o(43616),tt=o(94724),st=o(98728),ot=o(39032),nt=ot.ONEMAXYEAR,vt=ot.ONEAVGYEAR,dt=ot.ONEMINYEAR,bt=ot.ONEMAXQUARTER,ft=ot.ONEAVGQUARTER,at=ot.ONEMINQUARTER,mt=ot.ONEMAXMONTH,St=ot.ONEAVGMONTH,_t=ot.ONEMINMONTH,Mt=ot.ONEWEEK,Et=ot.ONEDAY,kt=Et/2,wt=ot.ONEHOUR,ct=ot.ONEMIN,It=ot.ONESEC,At=ot.MINUS_SIGN,Ot=ot.BADNUM,Pt={K:"zeroline"},zt={K:"gridline",L:"path"},Dt={K:"minor-gridline",L:"path"},Nt={K:"tick",L:"path"},$t={K:"tick",L:"text"},Ut={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},Ht=o(84284),Vt=Ht.MID_SHIFT,Xt=Ht.CAP_SHIFT,qt=Ht.LINE_SPACING,er=Ht.OPPOSITE_SIDE,lr=3,Jt=Ct.exports={};Jt.setConvert=o(78344);var Yt=o(52976),rr=o(79811),jt=rr.idSort,ar=rr.isLinked;Jt.id2name=rr.id2name,Jt.name2id=rr.name2id,Jt.cleanId=rr.cleanId,Jt.list=rr.list,Jt.listIds=rr.listIds,Jt.getFromId=rr.getFromId,Jt.getFromTrace=rr.getFromTrace;var sr=o(19280);Jt.getAutoRange=sr.getAutoRange,Jt.findExtremes=sr.findExtremes;var Zt=1e-4;function Kt(Yr){var jr=(Yr[1]-Yr[0])*Zt;return[Yr[0]-jr,Yr[1]+jr]}Jt.coerceRef=function(Yr,jr,$n,Bn,xa,ro){var io=Bn.charAt(Bn.length-1),eo=$n._fullLayout._subplots[io+"axis"],Gn=Bn+"ref",ho={};return xa||(xa=eo[0]||(typeof ro=="string"?ro:ro[0])),ro||(ro=xa),eo=eo.concat(eo.map(function(go){return go+" domain"})),ho[Gn]={valType:"enumerated",values:eo.concat(ro?typeof ro=="string"?[ro]:ro:[]),dflt:xa},yt.coerce(Yr,jr,ho,Gn)},Jt.getRefType=function(Yr){return Yr===void 0?Yr:Yr==="paper"?"paper":Yr==="pixel"?"pixel":/( domain)$/.test(Yr)?"domain":"range"},Jt.coercePosition=function(Yr,jr,$n,Bn,xa,ro){var io,eo,Gn=Jt.getRefType(Bn);if(Gn!=="range")io=yt.ensureNumber,eo=$n(xa,ro);else{var ho=Jt.getFromId(jr,Bn);ro=ho.fraction2r(ro),eo=$n(xa,ro),io=ho.cleanPos}Yr[xa]=io(eo)},Jt.cleanPosition=function(Yr,jr,$n){var Bn=$n==="paper"||$n==="pixel"?yt.ensureNumber:Jt.getFromId(jr,$n).cleanPos;return Bn(Yr)},Jt.redrawComponents=function(Yr,jr){jr=jr||Jt.listIds(Yr);var $n=Yr._fullLayout;function Bn(xa,ro,io,eo){for(var Gn=Tt.getComponentMethod(xa,ro),ho={},go=0;go2e-6||(($n-Yr._forceTick0)/Yr._minDtick%1+1.000001)%1>2e-6)&&(Yr._minDtick=0))},Jt.saveRangeInitial=function(Yr,jr){for(var $n=Jt.list(Yr,"",!0),Bn=!1,xa=0;xa<$n.length;xa++){var ro=$n[xa],io=ro._rangeInitial0===void 0&&ro._rangeInitial1===void 0,eo=io||ro.range[0]!==ro._rangeInitial0||ro.range[1]!==ro._rangeInitial1,Gn=ro.autorange;(io&&Gn!==!0||jr&&eo)&&(ro._rangeInitial0=Gn==="min"||Gn==="max reversed"?void 0:ro.range[0],ro._rangeInitial1=Gn==="max"||Gn==="min reversed"?void 0:ro.range[1],ro._autorangeInitial=Gn,Bn=!0)}return Bn},Jt.saveShowSpikeInitial=function(Yr,jr){for(var $n=Jt.list(Yr,"",!0),Bn=!1,xa="on",ro=0;ro<$n.length;ro++){var io=$n[ro],eo=io._showSpikeInitial===void 0,Gn=eo||io.showspikes!==io._showspikes;(eo||jr&&Gn)&&(io._showSpikeInitial=io.showspikes,Bn=!0),xa==="on"&&!io.showspikes&&(xa="off")}return Yr._fullLayout._cartesianSpikesEnabled=xa,Bn},Jt.autoBin=function(Yr,jr,$n,Bn,xa,ro){var io=yt.aggNums(Math.min,null,Yr),eo=yt.aggNums(Math.max,null,Yr);if(jr.type==="category"||jr.type==="multicategory")return{start:io-.5,end:eo+.5,size:Math.max(1,Math.round(ro)||1),_dataSpan:eo-io};xa||(xa=jr.calendar);var Gn;if(jr.type==="log"?Gn={type:"linear",range:[io,eo]}:Gn={type:jr.type,range:yt.simpleMap([io,eo],jr.c2r,0,xa),calendar:xa},Jt.setConvert(Gn),ro=ro&&st.dtick(ro,Gn.type),ro)Gn.dtick=ro,Gn.tick0=st.tick0(void 0,Gn.type,xa);else{var ho;if($n)ho=(eo-io)/$n;else{var go=yt.distinctVals(Yr),_o=Math.pow(10,Math.floor(Math.log(go.minDiff)/Math.LN10)),co=_o*yt.roundUp(go.minDiff/_o,[.9,1.9,4.9,9.9],!0);ho=Math.max(co,2*yt.stdev(Yr)/Math.pow(Yr.length,Bn?.25:.4)),xt(ho)||(ho=1)}Jt.autoTicks(Gn,ho)}var zo=Gn.dtick,Io=Jt.tickIncrement(Jt.tickFirst(Gn),zo,"reverse",xa),Lo,vs;if(typeof zo=="number")Io=mr(Io,Yr,Gn,io,eo),vs=1+Math.floor((eo-Io)/zo),Lo=Io+vs*zo;else for(Gn.dtick.charAt(0)==="M"&&(Io=Ar(Io,Yr,zo,io,xa)),Lo=Io,vs=0;Lo<=eo;)Lo=Jt.tickIncrement(Lo,zo,!1,xa),vs++;return{start:jr.c2r(Io,0,xa),end:jr.c2r(Lo,0,xa),size:zo,_dataSpan:eo-io}};function mr(Yr,jr,$n,Bn,xa){var ro=0,io=0,eo=0,Gn=0;function ho(zo){return(1+(zo-Yr)*100/$n.dtick)%100<2}for(var go=0;go_o*.3||ho(Bn)||ho(xa))){var co=$n.dtick/2;Yr+=Yr+coio){var eo=Number($n.substr(1));ro.exactYears>io&&eo%12===0?Yr=Jt.tickIncrement(Yr,"M6","reverse")+Et*1.5:ro.exactMonths>io?Yr=Jt.tickIncrement(Yr,"M1","reverse")+Et*15.5:Yr-=kt;var Gn=Jt.tickIncrement(Yr,$n);if(Gn<=Bn)return Gn}return Yr}Jt.prepMinorTicks=function(Yr,jr,$n){if(!jr.minor.dtick){delete Yr.dtick;var Bn=jr.dtick&&xt(jr._tmin),xa;if(Bn){var ro=Jt.tickIncrement(jr._tmin,jr.dtick,!0);xa=[jr._tmin,ro*.99+jr._tmin*.01]}else{var io=yt.simpleMap(jr.range,jr.r2l);xa=[io[0],.8*io[0]+.2*io[1]]}if(Yr.range=yt.simpleMap(xa,jr.l2r),Yr._isMinor=!0,Jt.prepTicks(Yr,$n),Bn){var eo=xt(jr.dtick),Gn=xt(Yr.dtick),ho=eo?jr.dtick:+jr.dtick.substring(1),go=Gn?Yr.dtick:+Yr.dtick.substring(1);eo&&Gn?br(ho,go)?ho===2*Mt&&go===2*Et&&(Yr.dtick=Mt):ho===2*Mt&&go===3*Et?Yr.dtick=Mt:ho===Mt&&!(jr._input.minor||{}).nticks?Yr.dtick=Et:Ir(ho/go,2.5)?Yr.dtick=ho/2:Yr.dtick=ho:String(jr.dtick).charAt(0)==="M"?Gn?Yr.dtick="M1":br(ho,go)?ho>=12&&go===2&&(Yr.dtick="M3"):Yr.dtick=jr.dtick:String(Yr.dtick).charAt(0)==="L"?String(jr.dtick).charAt(0)==="L"?br(ho,go)||(Yr.dtick=Ir(ho/go,2.5)?jr.dtick/2:jr.dtick):Yr.dtick="D1":Yr.dtick==="D2"&&+jr.dtick>1&&(Yr.dtick=1)}Yr.range=jr.range}jr.minor._tick0Init===void 0&&(Yr.tick0=jr.tick0)};function br(Yr,jr){return Math.abs((Yr/jr+.5)%1-.5)<.001}function Ir(Yr,jr){return Math.abs(Yr/jr-1)<.001}Jt.prepTicks=function(Yr,jr){var $n=yt.simpleMap(Yr.range,Yr.r2l,void 0,void 0,jr);if(Yr.tickmode==="auto"||!Yr.dtick){var Bn=Yr.nticks,xa;Bn||(Yr.type==="category"||Yr.type==="multicategory"?(xa=Yr.tickfont?yt.bigFont(Yr.tickfont.size||12):15,Bn=Yr._length/xa):(xa=Yr._id.charAt(0)==="y"?40:80,Bn=yt.constrain(Yr._length/xa,4,9)+1),Yr._name==="radialaxis"&&(Bn*=2)),Yr.minor&&Yr.minor.tickmode!=="array"||Yr.tickmode==="array"&&(Bn*=100),Yr._roughDTick=Math.abs($n[1]-$n[0])/Bn,Jt.autoTicks(Yr,Yr._roughDTick),Yr._minDtick>0&&Yr.dtick0?(ro=Bn-1,io=Bn):(ro=Bn,io=Bn);var eo=Yr[ro].value,Gn=Yr[io].value,ho=Math.abs(Gn-eo),go=$n||ho,_o=0;go>=dt?ho>=dt&&ho<=nt?_o=ho:_o=vt:$n===ft&&go>=at?ho>=at&&ho<=bt?_o=ho:_o=ft:go>=_t?ho>=_t&&ho<=mt?_o=ho:_o=St:$n===Mt&&go>=Mt?_o=Mt:go>=Et?_o=Et:$n===kt&&go>=kt?_o=kt:$n===wt&&go>=wt&&(_o=wt);var co;_o>=ho&&(_o=ho,co=!0);var zo=xa+_o;if(jr.rangebreaks&&_o>0){for(var Io=84,Lo=0,vs=0;vsMt&&(_o=ho)}(_o>0||Bn===0)&&(Yr[Bn].periodX=xa+_o/2)}}Jt.calcTicks=function(jr,$n){for(var Bn=jr.type,xa=jr.calendar,ro=jr.ticklabelstep,io=jr.ticklabelmode==="period",eo=yt.simpleMap(jr.range,jr.r2l,void 0,void 0,$n),Gn=eo[1]=(vs?0:1);Zo--){var Ls=!Zo;Zo?(jr._dtickInit=jr.dtick,jr._tick0Init=jr.tick0):(jr.minor._dtickInit=jr.minor.dtick,jr.minor._tick0Init=jr.minor.tick0);var Ds=Zo?jr:yt.extendFlat({},jr,jr.minor);if(Ls?Jt.prepMinorTicks(Ds,jr,$n):Jt.prepTicks(Ds,$n),Ds.tickmode==="array"){Zo?(Io=[],co=Or(jr,!Ls)):(Lo=[],zo=Or(jr,!Ls));continue}if(Ds.tickmode==="sync"){Io=[],co=zr(jr);continue}var bo=Kt(eo),No=bo[0],Yo=bo[1],Oo=xt(Ds.dtick),ys=Bn==="log"&&!(Oo||Ds.dtick.charAt(0)==="L"),gs=Jt.tickFirst(Ds,$n);if(Zo){if(jr._tmin=gs,gs=Yo:Us<=Yo;Us=Jt.tickIncrement(Us,Jl,Gn,xa)){if(Zo&&Qs++,Ds.rangebreaks&&!Gn){if(Us=go)break}if(Io.length>_o||Us===zs)break;zs=Us;var nu={value:Us};Zo?(ys&&Us!==(Us|0)&&(nu.simpleLabel=!0),ro>1&&Qs%ro&&(nu.skipLabel=!0),Io.push(nu)):(nu.minor=!0,Lo.push(nu))}}if(vs){var Yl=jr.minor.ticks==="inside"&&jr.ticks==="outside"||jr.minor.ticks==="outside"&&jr.ticks==="inside";if(!Yl){for(var Zs=Io.map(function(xs){return xs.value}),xo=[],Vo=0;Vo-1;Is--){if(Io[Is].drop){Io.splice(Is,1);continue}Io[Is].value=Vn(Io[Is].value,jr);var yu=jr.c2p(Io[Is].value);(Xs?Wl>yu-Cl:Wlgo||Bogo&&(To.periodX=go),Boxa&&covt)jr/=vt,Bn=xa(10),Yr.dtick="M"+12*ln(jr,Bn,kr);else if(ro>St)jr/=St,Yr.dtick="M"+ln(jr,1,Nr);else if(ro>Et){if(Yr.dtick=ln(jr,Et,Yr._hasDayOfWeekBreaks?[1,2,7,14]:sn),!$n){var io=Jt.getTickFormat(Yr),eo=Yr.ticklabelmode==="period";eo&&(Yr._rawTick0=Yr.tick0),/%[uVW]/.test(io)?Yr.tick0=yt.dateTick0(Yr.calendar,2):Yr.tick0=yt.dateTick0(Yr.calendar,1),eo&&(Yr._dowTick0=Yr.tick0)}}else ro>wt?Yr.dtick=ln(jr,wt,Nr):ro>ct?Yr.dtick=ln(jr,ct,Qr):ro>It?Yr.dtick=ln(jr,It,Qr):(Bn=xa(10),Yr.dtick=ln(jr,Bn,kr))}else if(Yr.type==="log"){Yr.tick0=0;var Gn=yt.simpleMap(Yr.range,Yr.r2l);if(Yr._isMinor&&(jr*=1.5),jr>.7)Yr.dtick=Math.ceil(jr);else if(Math.abs(Gn[1]-Gn[0])<1){var ho=1.5*Math.abs((Gn[1]-Gn[0])/jr);jr=Math.abs(Math.pow(10,Gn[1])-Math.pow(10,Gn[0]))/ho,Bn=xa(10),Yr.dtick="L"+ln(jr,Bn,kr)}else Yr.dtick=jr>.3?"D2":"D1"}else Yr.type==="category"||Yr.type==="multicategory"?(Yr.tick0=0,Yr.dtick=Math.ceil(Math.max(jr,1))):Wn(Yr)?(Yr.tick0=0,Bn=1,Yr.dtick=ln(jr,Bn,Xr)):(Yr.tick0=0,Bn=xa(10),Yr.dtick=ln(jr,Bn,kr));if(Yr.dtick===0&&(Yr.dtick=1),!xt(Yr.dtick)&&typeof Yr.dtick!="string"){var go=Yr.dtick;throw Yr.dtick=1,"ax.dtick error: "+String(go)}};function mn(Yr){var jr=Yr.dtick;if(Yr._tickexponent=0,!xt(jr)&&typeof jr!="string"&&(jr=1),(Yr.type==="category"||Yr.type==="multicategory")&&(Yr._tickround=null),Yr.type==="date"){var $n=Yr.r2l(Yr.tick0),Bn=Yr.l2r($n).replace(/(^-|i)/g,""),xa=Bn.length;if(String(jr).charAt(0)==="M")xa>10||Bn.substr(5)!=="01-01"?Yr._tickround="d":Yr._tickround=+jr.substr(1)%12===0?"y":"m";else if(jr>=Et&&xa<=10||jr>=Et*15)Yr._tickround="d";else if(jr>=ct&&xa<=16||jr>=wt)Yr._tickround="M";else if(jr>=It&&xa<=19||jr>=ct)Yr._tickround="S";else{var ro=Yr.l2r($n+jr).replace(/^-/,"").length;Yr._tickround=Math.max(xa,ro)-20,Yr._tickround<0&&(Yr._tickround=4)}}else if(xt(jr)||jr.charAt(0)==="L"){var io=Yr.range.map(Yr.r2d||Number);xt(jr)||(jr=Number(jr.substr(1))),Yr._tickround=2-Math.floor(Math.log(jr)/Math.LN10+.01);var eo=Math.max(Math.abs(io[0]),Math.abs(io[1])),Gn=Math.floor(Math.log(eo)/Math.LN10+.01),ho=Yr.minexponent===void 0?3:Yr.minexponent;Math.abs(Gn)>ho&&(Dr(Yr.exponentformat)&&!Sr(Gn)?Yr._tickexponent=3*Math.round((Gn-1)/3):Yr._tickexponent=Gn)}else Yr._tickround=null}Jt.tickIncrement=function(Yr,jr,$n,Bn){var xa=$n?-1:1;if(xt(jr))return yt.increment(Yr,xa*jr);var ro=jr.charAt(0),io=xa*Number(jr.substr(1));if(ro==="M")return yt.incrementMonth(Yr,io,Bn);if(ro==="L")return Math.log(Math.pow(10,Yr)+io)/Math.LN10;if(ro==="D"){var eo=jr==="D2"?en:un,Gn=Yr+xa*.01,ho=yt.roundUp(yt.mod(Gn,1),eo,$n);return Math.floor(Gn)+Math.log(it.round(Math.pow(10,ho),1))/Math.LN10}throw"unrecognized dtick "+String(jr)},Jt.tickFirst=function(Yr,jr){var $n=Yr.r2l||Number,Bn=yt.simpleMap(Yr.range,$n,void 0,void 0,jr),xa=Bn[1]=0&&Zo<=Yr._length?vs:null};if(ro&&yt.isArrayOrTypedArray(Yr.ticktext)){var _o=yt.simpleMap(Yr.range,Yr.r2l),co=(Math.abs(_o[1]-_o[0])-(Yr._lBreaks||0))/1e4;for(ho=0;ho"+eo;else{var ho=ga(Yr),go=Yr._trueSide||Yr.side;(!ho&&go==="top"||ho&&go==="bottom")&&(io+="
")}jr.text=io}function Zr(Yr,jr,$n,Bn,xa){var ro=Yr.dtick,io=jr.x,eo=Yr.tickformat,Gn=typeof ro=="string"&&ro.charAt(0);if(xa==="never"&&(xa=""),Bn&&Gn!=="L"&&(ro="L3",Gn="L"),eo||Gn==="L")jr.text=ur(Math.pow(10,io),Yr,xa,Bn);else if(xt(ro)||Gn==="D"&&yt.mod(io+.01,1)<.1){var ho=Math.round(io),go=Math.abs(ho),_o=Yr.exponentformat;_o==="power"||Dr(_o)&&Sr(ho)?(ho===0?jr.text=1:ho===1?jr.text="10":jr.text="10"+(ho>1?"":At)+go+"",jr.fontSize*=1.25):(_o==="e"||_o==="E")&&go>2?jr.text="1"+_o+(ho>0?"+":At)+go:(jr.text=ur(Math.pow(10,io),Yr,"","fakehover"),ro==="D1"&&Yr._id.charAt(0)==="y"&&(jr.dy-=jr.fontSize/6))}else if(Gn==="D")jr.text=String(Math.round(Math.pow(10,yt.mod(io,1)))),jr.fontSize*=.75;else throw"unrecognized dtick "+String(ro);if(Yr.dtick==="D1"){var co=String(jr.text).charAt(0);(co==="0"||co==="1")&&(Yr._id.charAt(0)==="y"?jr.dx-=jr.fontSize/4:(jr.dy+=jr.fontSize/2,jr.dx+=(Yr.range[1]>Yr.range[0]?1:-1)*jr.fontSize*(io<0?.5:.25)))}}function Fr(Yr,jr){var $n=Yr._categories[Math.round(jr.x)];$n===void 0&&($n=""),jr.text=String($n)}function Ur(Yr,jr,$n){var Bn=Math.round(jr.x),xa=Yr._categories[Bn]||[],ro=xa[1]===void 0?"":String(xa[1]),io=xa[0]===void 0?"":String(xa[0]);$n?jr.text=io+" - "+ro:(jr.text=ro,jr.text2=io)}function Wr(Yr,jr,$n,Bn,xa){xa==="never"?xa="":Yr.showexponent==="all"&&Math.abs(jr.x/Yr.dtick)<1e-6&&(xa="hide"),jr.text=ur(jr.x,Yr,xa,Bn)}function Gr(Yr,jr,$n,Bn,xa){if(Yr.thetaunit==="radians"&&!$n){var ro=jr.x/180;if(ro===0)jr.text="0";else{var io=wr(ro);if(io[1]>=100)jr.text=ur(yt.deg2rad(jr.x),Yr,xa,Bn);else{var eo=jr.x<0;io[1]===1?io[0]===1?jr.text="π":jr.text=io[0]+"π":jr.text=["",io[0],"","⁄","",io[1],"","π"].join(""),eo&&(jr.text=At+jr.text)}}}else jr.text=ur(jr.x,Yr,xa,Bn)}function wr(Yr){function jr(eo,Gn){return Math.abs(eo-Gn)<=1e-6}function $n(eo,Gn){return jr(Gn,0)?eo:$n(Gn,eo%Gn)}function Bn(eo){for(var Gn=1;!jr(Math.round(eo*Gn)/Gn,eo);)Gn*=10;return Gn}var xa=Bn(Yr),ro=Yr*xa,io=Math.abs($n(ro,xa));return[Math.round(ro/io),Math.round(xa/io)]}var pr=["f","p","n","μ","m","","k","M","G","T"];function Dr(Yr){return Yr==="SI"||Yr==="B"}function Sr(Yr){return Yr>14||Yr<-15}function ur(Yr,jr,$n,Bn){var xa=Yr<0,ro=jr._tickround,io=$n||jr.exponentformat||"B",eo=jr._tickexponent,Gn=Jt.getTickFormat(jr),ho=jr.separatethousands;if(Bn){var go={exponentformat:io,minexponent:jr.minexponent,dtick:jr.showexponent==="none"?jr.dtick:xt(Yr)&&Math.abs(Yr)||1,range:jr.showexponent==="none"?jr.range.map(jr.r2d):[0,Yr||1]};mn(go),ro=(Number(go._tickround)||0)+4,eo=go._tickexponent,jr.hoverformat&&(Gn=jr.hoverformat)}if(Gn)return jr._numFormat(Gn)(Yr).replace(/-/g,At);var _o=Math.pow(10,-ro)/2;if(io==="none"&&(eo=0),Yr=Math.abs(Yr),Yr<_o)Yr="0",xa=!1;else{if(Yr+=_o,eo&&(Yr*=Math.pow(10,-eo),ro+=eo),ro===0)Yr=String(Math.floor(Yr));else if(ro<0){Yr=String(Math.round(Yr)),Yr=Yr.substr(0,Yr.length+ro);for(var co=ro;co<0;co++)Yr+="0"}else{Yr=String(Yr);var zo=Yr.indexOf(".")+1;zo&&(Yr=Yr.substr(0,zo+ro).replace(/\.?0+$/,""))}Yr=yt.numSeparate(Yr,jr._separators,ho)}if(eo&&io!=="hide"){Dr(io)&&Sr(eo)&&(io="power");var Io;eo<0?Io=At+-eo:io!=="power"?Io="+"+eo:Io=String(eo),io==="e"||io==="E"?Yr+=io+Io:io==="power"?Yr+="×10"+Io+"":io==="B"&&eo===9?Yr+="B":Dr(io)&&(Yr+=pr[eo/3+5])}return xa?At+Yr:Yr}Jt.getTickFormat=function(Yr){var jr;function $n(Gn){return typeof Gn!="string"?Gn:Number(Gn.replace("M",""))*St}function Bn(Gn,ho){var go=["L","D"];if(typeof Gn==typeof ho){if(typeof Gn=="number")return Gn-ho;var _o=go.indexOf(Gn.charAt(0)),co=go.indexOf(ho.charAt(0));return _o===co?Number(Gn.replace(/(L|D)/g,""))-Number(ho.replace(/(L|D)/g,"")):_o-co}else return typeof Gn=="number"?1:-1}function xa(Gn,ho,go){var _o=go||function(Io){return Io},co=ho[0],zo=ho[1];return(!co&&typeof co!="number"||_o(co)<=_o(Gn))&&(!zo&&typeof zo!="number"||_o(zo)>=_o(Gn))}function ro(Gn,ho){var go=ho[0]===null,_o=ho[1]===null,co=Bn(Gn,ho[0])>=0,zo=Bn(Gn,ho[1])<=0;return(go||co)&&(_o||zo)}var io,eo;if(Yr.tickformatstops&&Yr.tickformatstops.length>0)switch(Yr.type){case"date":case"linear":{for(jr=0;jr=0&&xa.unshift(xa.splice(go,1).shift())}});var eo={false:{left:0,right:0}};return yt.syncOrAsync(xa.map(function(Gn){return function(){if(Gn){var ho=Jt.getFromId(Yr,Gn);$n||($n={}),$n.axShifts=eo,$n.overlayingShiftedAx=io;var go=Jt.drawOne(Yr,ho,$n);return ho._shiftPusher&&qn(ho,ho._fullDepth||0,eo,!0),ho._r=ho.range.slice(),ho._rl=yt.simpleMap(ho._r,ho.r2l),go}}}))},Jt.drawOne=function(Yr,jr,$n){$n=$n||{};var Bn=$n.axShifts||{},xa=$n.overlayingShiftedAx||[],ro,io,eo;jr.setScale();var Gn=Yr._fullLayout,ho=jr._id,go=ho.charAt(0),_o=Jt.counterLetter(ho),co=Gn._plots[jr._mainSubplot];if(!co)return;if(jr._shiftPusher=jr.autoshift||xa.indexOf(jr._id)!==-1||xa.indexOf(jr.overlaying)!==-1,jr._shiftPusher&jr.anchor==="free"){var zo=jr.linewidth/2||0;jr.ticks==="inside"&&(zo+=jr.ticklen),qn(jr,zo,Bn,!0),qn(jr,jr.shift||0,Bn,!1)}($n.skipTitle!==!0||jr._shift===void 0)&&(jr._shift=po(jr,Bn));var Io=co[go+"axislayer"],Lo=jr._mainLinePosition,vs=Lo+=jr._shift,Zo=jr._mainMirrorPosition,Ls=jr._vals=Jt.calcTicks(jr),Ds=[jr.mirror,vs,Zo].join("_");for(ro=0;ro0?Cs.bottom-_s:0,Gs))));var zl=0,Xl=0;if(jr._shiftPusher&&(zl=Math.max(Gs,Cs.height>0?Wo==="l"?_s-Cs.left:Cs.right-_s:0),jr.title.text!==Gn._dfltTitle[go]&&(Xl=(jr._titleStandoff||0)+(jr._titleScoot||0),Wo==="l"&&(Xl+=Un(jr))),jr._fullDepth=Math.max(zl,Xl)),jr.automargin){Ks={x:0,y:0,r:0,l:0,t:0,b:0};var Zl=[0,1],ju=typeof jr._shift=="number"?jr._shift:0;if(go==="x"){if(Wo==="b"?Ks[Wo]=jr._depth:(Ks[Wo]=jr._depth=Math.max(Cs.width>0?_s-Cs.top:0,Gs),Zl.reverse()),Cs.width>0){var Vu=Cs.right-(jr._offset+jr._length);Vu>0&&(Ks.xr=1,Ks.r=Vu);var Sv=jr._offset-Cs.left;Sv>0&&(Ks.xl=0,Ks.l=Sv)}}else if(Wo==="l"?(jr._depth=Math.max(Cs.height>0?_s-Cs.left:0,Gs),Ks[Wo]=jr._depth-ju):(jr._depth=Math.max(Cs.height>0?Cs.right-_s:0,Gs),Ks[Wo]=jr._depth+ju,Zl.reverse()),Cs.height>0){var nv=Cs.bottom-(jr._offset+jr._length);nv>0&&(Ks.yb=0,Ks.b=nv);var Kp=jr._offset-Cs.top;Kp>0&&(Ks.yt=1,Ks.t=Kp)}Ks[_o]=jr.anchor==="free"?jr.position:jr._anchorAxis.domain[Zl[0]],jr.title.text!==Gn._dfltTitle[go]&&(Ks[Wo]+=Un(jr)+(jr.title.standoff||0)),jr.mirror&&jr.anchor!=="free"&&(Ys={x:0,y:0,r:0,l:0,t:0,b:0},Ys[rs]=jr.linewidth,jr.mirror&&jr.mirror!==!0&&(Ys[rs]+=Gs),jr.mirror===!0||jr.mirror==="ticks"?Ys[_o]=jr._anchorAxis.domain[Zl[1]]:(jr.mirror==="all"||jr.mirror==="allticks")&&(Ys[_o]=[jr._counterDomainMin,jr._counterDomainMax][Zl[1]]))}Qo&&(Bl=Tt.getComponentMethod("rangeslider","autoMarginOpts")(Yr,jr)),typeof jr.automargin=="string"&&(xr(Ks,jr.automargin),xr(Ys,jr.automargin)),et.autoMargin(Yr,ba(jr),Ks),et.autoMargin(Yr,An(jr),Ys),et.autoMargin(Yr,hn(jr),Bl)}),yt.syncOrAsync(us)}};function xr(Yr,jr){if(Yr){var $n=Object.keys(Ut).reduce(function(Bn,xa){return jr.indexOf(xa)!==-1&&Ut[xa].forEach(function(ro){Bn[ro]=1}),Bn},{});Object.keys(Yr).forEach(function(Bn){$n[Bn]||(Bn.length===1?Yr[Bn]=0:delete Yr[Bn])})}}function Pr(Yr,jr){var $n=[],Bn,xa=function(ro,io){var eo=ro.xbnd[io];eo!==null&&$n.push(yt.extendFlat({},ro,{x:eo}))};if(jr.length){for(Bn=0;Bn60?-.5*Jl:Yr.side==="top"!==go?-Jl:0};else if(Oo==="y"){if(gs=!go&&Yo==="left"||go&&Yo==="right",bo=gs?1:-1,go&&(bo*=-1),Zo=co,Ls=zo*bo,Ds=0,!go&&Math.abs(ys)===90&&(ys===-90&&Yo==="left"||ys===90&&Yo==="right"?Ds=Xt:Ds=.5),go){var zs=xt(ys)?+ys:0;if(zs!==0){var Us=yt.deg2rad(zs);No=Math.abs(Math.sin(Us))*Xt*bo,Ds=0}}vs.xFn=function(Qs){return Qs.dx+jr-(Zo+Qs.fontSize*Ds)*bo+No*Qs.fontSize},vs.yFn=function(Qs){return Qs.dy+Ls+Qs.fontSize*Vt},vs.anchorFn=function(Qs,Fl){return xt(Fl)&&Math.abs(Fl)===90?"middle":gs?"end":"start"},vs.heightFn=function(Qs,Fl,Jl){return Yr.side==="right"&&(Fl*=-1),Fl<-30?-Jl:Fl<30?-.5*Jl:0}}return vs};function fn(Yr){return[Yr.text,Yr.x,Yr.axInfo,Yr.font,Yr.fontSize,Yr.fontColor].join("_")}Jt.drawTicks=function(Yr,jr,$n){$n=$n||{};var Bn=jr._id+"tick",xa=[].concat(jr.minor&&jr.minor.ticks?$n.vals.filter(function(io){return io.minor&&!io.noTick}):[]).concat(jr.ticks?$n.vals.filter(function(io){return!io.minor&&!io.noTick}):[]),ro=$n.layer.selectAll("path."+Bn).data(xa,fn);ro.exit().remove(),ro.enter().append("path").classed(Bn,1).classed("ticks",1).classed("crisp",$n.crisp!==!1).each(function(io){return _.stroke(it.select(this),io.minor?jr.minor.tickcolor:jr.tickcolor)}).style("stroke-width",function(io){return rt.crispRound(Yr,io.minor?jr.minor.tickwidth:jr.tickwidth,1)+"px"}).attr("d",$n.path).style("display",null),fo(jr,[Nt]),ro.attr("transform",$n.transFn)},Jt.drawGrid=function(Yr,jr,$n){if($n=$n||{},jr.tickmode!=="sync"){var Bn=jr._id+"grid",xa=jr.minor&&jr.minor.showgrid,ro=xa?$n.vals.filter(function(Zo){return Zo.minor}):[],io=jr.showgrid?$n.vals.filter(function(Zo){return!Zo.minor}):[],eo=$n.counterAxis;if(eo&&Jt.shouldShowZeroLine(Yr,jr,eo))for(var Gn=jr.tickmode==="array",ho=0;ho=0;Io--){var Lo=Io?co:zo;if(Lo){var vs=Lo.selectAll("path."+Bn).data(Io?io:ro,fn);vs.exit().remove(),vs.enter().append("path").classed(Bn,1).classed("crisp",$n.crisp!==!1),vs.attr("transform",$n.transFn).attr("d",$n.path).each(function(Zo){return _.stroke(it.select(this),Zo.minor?jr.minor.gridcolor:jr.gridcolor||"#ddd")}).style("stroke-dasharray",function(Zo){return rt.dashStyle(Zo.minor?jr.minor.griddash:jr.griddash,Zo.minor?jr.minor.gridwidth:jr.gridwidth)}).style("stroke-width",function(Zo){return(Zo.minor?_o:jr._gw)+"px"}).style("display",null),typeof $n.path=="function"&&vs.attr("d",$n.path)}}fo(jr,[zt,Dt])}},Jt.drawZeroLine=function(Yr,jr,$n){$n=$n||$n;var Bn=jr._id+"zl",xa=Jt.shouldShowZeroLine(Yr,jr,$n.counterAxis),ro=$n.layer.selectAll("path."+Bn).data(xa?[{x:0,id:jr._id}]:[]);ro.exit().remove(),ro.enter().append("path").classed(Bn,1).classed("zl",1).classed("crisp",$n.crisp!==!1).each(function(){$n.layer.selectAll("path").sort(function(io,eo){return jt(io.id,eo.id)})}),ro.attr("transform",$n.transFn).attr("d",$n.path).call(_.stroke,jr.zerolinecolor||_.defaultLine).style("stroke-width",rt.crispRound(Yr,jr.zerolinewidth,jr._gw||1)+"px").style("display",null),fo(jr,[Pt])},Jt.drawLabels=function(Yr,jr,$n){$n=$n||{};var Bn=Yr._fullLayout,xa=jr._id,ro=$n.cls||xa+"tick",io=$n.vals.filter(function(xo){return xo.text}),eo=$n.labelFns,Gn=$n.secondary?0:jr.tickangle,ho=(jr._prevTickAngles||{})[ro],go=$n.layer.selectAll("g."+ro).data(jr.showticklabels?io:[],fn),_o=[];go.enter().append("g").classed(ro,1).append("text").attr("text-anchor","middle").each(function(xo){var Vo=it.select(this),Go=Yr._promises.length;Vo.call(ht.positionText,eo.xFn(xo),eo.yFn(xo)).call(rt.font,{family:xo.font,size:xo.fontSize,color:xo.fontColor,weight:xo.fontWeight,style:xo.fontStyle,variant:xo.fontVariant}).text(xo.text).call(ht.convertToTspans,Yr),Yr._promises[Go]?_o.push(Yr._promises.pop().then(function(){co(Vo,Gn)})):co(Vo,Gn)}),fo(jr,[$t]),go.exit().remove(),$n.repositionOnUpdate&&go.each(function(xo){it.select(this).select("text").call(ht.positionText,eo.xFn(xo),eo.yFn(xo))});function co(xo,Vo){xo.each(function(Go){var ms=it.select(this),Ws=ms.select(".text-math-group"),ws=eo.anchorFn(Go,Vo),Is=$n.transFn.call(ms.node(),Go)+(xt(Vo)&&+Vo!=0?" rotate("+Vo+","+eo.xFn(Go)+","+(eo.yFn(Go)-Go.fontSize/2)+")":""),Xs=ht.lineCount(ms),Cl=qt*Go.fontSize,Wl=eo.heightFn(Go,xt(Vo)?+Vo:0,(Xs-1)*Cl);if(Wl&&(Is+=ut(0,Wl)),Ws.empty()){var yu=ms.select("text");yu.attr({transform:Is,"text-anchor":ws}),yu.style("opacity",1),jr._adjustTickLabelsOverflow&&jr._adjustTickLabelsOverflow()}else{var yo=rt.bBox(Ws.node()).width,Fo=yo*{end:-.5,start:.5}[ws];Ws.attr("transform",Is+ut(Fo,0))}})}jr._adjustTickLabelsOverflow=function(){var xo=jr.ticklabeloverflow;if(!(!xo||xo==="allow")){var Vo=xo.indexOf("hide")!==-1,Go=jr._id.charAt(0)==="x",ms=0,Ws=Go?Yr._fullLayout.width:Yr._fullLayout.height;if(xo.indexOf("domain")!==-1){var ws=yt.simpleMap(jr.range,jr.r2l);ms=jr.l2p(ws[0])+jr._offset,Ws=jr.l2p(ws[1])+jr._offset}var Is=Math.min(ms,Ws),Xs=Math.max(ms,Ws),Cl=jr.side,Wl=1/0,yu=-1/0;go.each(function(Bo){var Es=it.select(this),Ps=Es.select(".text-math-group");if(Ps.empty()){var xs=rt.bBox(Es.node()),us=0;Go?(xs.right>Xs||xs.leftXs||xs.top+(jr.tickangle?0:Bo.fontSize/4)jr["_visibleLabelMin_"+ws._id]?Bo.style("display","none"):Xs.K==="tick"&&!Is&&Bo.style("display",null)})})})})},co(go,ho+1?ho:Gn);function zo(){return _o.length&&Promise.all(_o)}var Io=null;function Lo(){if(co(go,Gn),io.length&&jr.autotickangles&&(jr.type!=="log"||String(jr.dtick).charAt(0)!=="D")){Io=jr.autotickangles[0];var xo=0,Vo=[],Go,ms=1;go.each(function(Cs){xo=Math.max(xo,Cs.fontSize);var Ks=jr.l2p(Cs.x),Ys=so(this),Bl=rt.bBox(Ys.node());ms=Math.max(ms,ht.lineCount(Ys)),Vo.push({top:0,bottom:10,height:10,left:Ks-Bl.width/2,right:Ks+Bl.width/2+2,width:Bl.width+2})});var Ws=(jr.tickson==="boundaries"||jr.showdividers)&&!$n.secondary,ws=io.length,Is=Math.abs((io[ws-1].x-io[0].x)*jr._m)/(ws-1),Xs=Ws?Is/2:Is,Cl=Ws?jr.ticklen:xo*1.25*ms,Wl=Math.sqrt(Math.pow(Xs,2)+Math.pow(Cl,2)),yu=Xs/Wl,yo=jr.autotickangles.map(function(Cs){return Cs*Math.PI/180}),Fo=yo.find(function(Cs){return Math.abs(Math.cos(Cs))<=yu});Fo===void 0&&(Fo=yo.reduce(function(Cs,Ks){return Math.abs(Math.cos(Cs))nu*Jl&&(Us=Jl,ys[Oo]=gs[Oo]=Qs[Oo])}var Yl=Math.abs(Us-zs);Yl-bo>0?(Yl-=bo,bo*=1+bo/Yl):bo=0,jr._id.charAt(0)!=="y"&&(bo=-bo),ys[Yo]=Ls.p2r(Ls.r2p(gs[Yo])+No*bo),Ls.autorange==="min"||Ls.autorange==="max reversed"?(ys[0]=null,Ls._rangeInitial0=void 0,Ls._rangeInitial1=void 0):(Ls.autorange==="max"||Ls.autorange==="min reversed")&&(ys[1]=null,Ls._rangeInitial0=void 0,Ls._rangeInitial1=void 0),Bn._insideTickLabelsUpdaterange[Ls._name+".range"]=ys}var Zs=yt.syncOrAsync(vs);return Zs&&Zs.then&&Yr._promises.push(Zs),Zs};function bn(Yr,jr,$n){var Bn=jr._id+"divider",xa=$n.vals,ro=$n.layer.selectAll("path."+Bn).data(xa,fn);ro.exit().remove(),ro.enter().insert("path",":first-child").classed(Bn,1).classed("crisp",1).call(_.stroke,jr.dividercolor).style("stroke-width",rt.crispRound(Yr,jr.dividerwidth,1)+"px"),ro.attr("transform",$n.transFn).attr("d",$n.path)}Jt.getPxPosition=function(Yr,jr){var $n=Yr._fullLayout._size,Bn=jr._id.charAt(0),xa=jr.side,ro;if(jr.anchor!=="free"?ro=jr._anchorAxis:Bn==="x"?ro={_offset:$n.t+(1-(jr.position||0))*$n.h,_length:0}:Bn==="y"&&(ro={_offset:$n.l+(jr.position||0)*$n.w+jr._shift,_length:0}),xa==="top"||xa==="left")return ro._offset;if(xa==="bottom"||xa==="right")return ro._offset+ro._length};function Un(Yr){var jr=Yr.title.font.size,$n=(Yr.title.text.match(ht.BR_TAG_ALL)||[]).length;return Yr.title.hasOwnProperty("standoff")?jr*(Xt+$n*qt):$n?jr*($n+1)*qt:jr}function _i(Yr,jr){var $n=Yr._fullLayout,Bn=jr._id,xa=Bn.charAt(0),ro=jr.title.font.size,io,eo=(jr.title.text.match(ht.BR_TAG_ALL)||[]).length;if(jr.title.hasOwnProperty("standoff"))jr.side==="bottom"||jr.side==="right"?io=jr._depth+jr.title.standoff+ro*Xt:(jr.side==="top"||jr.side==="left")&&(io=jr._depth+jr.title.standoff+ro*(Vt+eo*qt));else{var Gn=ga(jr);if(jr.type==="multicategory")io=jr._depth;else{var ho=1.5*ro;Gn&&(ho=.5*ro,jr.ticks==="outside"&&(ho+=jr.ticklen)),io=10+ho+(jr.linewidth?jr.linewidth-1:0)}Gn||(xa==="x"?io+=jr.side==="top"?ro*(jr.showticklabels?1:0):ro*(jr.showticklabels?1.5:.5):io+=jr.side==="right"?ro*(jr.showticklabels?1:.5):ro*(jr.showticklabels?.5:0))}var go=Jt.getPxPosition(Yr,jr),_o,co,zo;xa==="x"?(co=jr._offset+jr._length/2,zo=jr.side==="top"?go-io:go+io):(zo=jr._offset+jr._length/2,co=jr.side==="right"?go+io:go-io,_o={rotate:"-90",offset:0});var Io;if(jr.type!=="multicategory"){var Lo=jr._selections[jr._id+"tick"];if(Io={selection:Lo,side:jr.side},Lo&&Lo.node()&&Lo.node().parentNode){var vs=rt.getTranslate(Lo.node().parentNode);Io.offsetLeft=vs.x,Io.offsetTop=vs.y}jr.title.hasOwnProperty("standoff")&&(Io.pad=0)}return jr._titleStandoff=io,j.draw(Yr,Bn+"title",{propContainer:jr,propName:jr._name+".title.text",placeholder:$n._dfltTitle[xa],avoid:Io,transform:_o,attributes:{x:co,y:zo,"text-anchor":"middle"}})}Jt.shouldShowZeroLine=function(Yr,jr,$n){var Bn=yt.simpleMap(jr.range,jr.r2l);return Bn[0]*Bn[1]<=0&&jr.zeroline&&(jr.type==="linear"||jr.type==="-")&&!(jr.rangebreaks&&jr.maskBreaks(0)===Ot)&&(yn(jr,0)||!Kn(Yr,jr,$n,Bn)||Jn(Yr,jr))},Jt.clipEnds=function(Yr,jr){return jr.filter(function($n){return yn(Yr,$n.x)})};function yn(Yr,jr){var $n=Yr.l2p(jr);return $n>1&&$n1)for(xa=1;xa=xa.min&&Yrat*2}function tt(nt){return Math.max(1,(nt-1)/1e3)}function st(nt,vt){for(var dt=nt.length,bt=tt(dt),ft=0,at=0,mt={},St=0;Stft*2}function ot(nt){return Tt(nt[0])&&Tt(nt[1])}},28336:function(Ct,Rt,o){var it=o(38248),xt=o(24040),et=o(3400),Tt=o(31780),yt=o(51272),ut=o(94724),ht=o(26332),j=o(25404),_=o(95936),rt=o(42568),tt=o(22416),st=o(42136),ot=o(96312),nt=o(78344),vt=o(33816).WEEKDAY_PATTERN,dt=o(33816).HOUR_PATTERN;Ct.exports=function(St,_t,Mt,Et,kt){var wt=Et.letter,ct=Et.font||{},It=Et.splomStash||{},At=Mt("visible",!Et.visibleDflt),Ot=_t._template||{},Pt=_t.type||Ot.type||"-",zt;if(Pt==="date"){var Dt=xt.getComponentMethod("calendars","handleDefaults");Dt(St,_t,"calendar",Et.calendar),Et.noTicklabelmode||(zt=Mt("ticklabelmode"))}var Nt="";(!Et.noTicklabelposition||Pt==="multicategory")&&(Nt=et.coerce(St,_t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:zt==="period"?["outside","inside"]:wt==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),Et.noTicklabeloverflow||Mt("ticklabeloverflow",Nt.indexOf("inside")!==-1?"hide past domain":Pt==="category"||Pt==="multicategory"?"allow":"hide past div"),nt(_t,kt),ot(St,_t,Mt,Et),tt(St,_t,Mt,Et),Pt!=="category"&&!Et.noHover&&Mt("hoverformat");var $t=Mt("color"),Ut=$t!==ut.color.dflt?$t:ct.color,Ht=It.label||kt._dfltTitle[wt];if(rt(St,_t,Mt,Pt,Et),!At)return _t;Mt("title.text",Ht),et.coerceFont(Mt,"title.font",{family:ct.family,weight:ct.weight,style:ct.style,variant:ct.variant,size:et.bigFont(ct.size),color:Ut}),ht(St,_t,Mt,Pt);var Vt=Et.hasMinor;if(Vt&&(Tt.newContainer(_t,"minor"),ht(St,_t,Mt,Pt,{isMinor:!0})),_(St,_t,Mt,Pt,Et),j(St,_t,Mt,Et),Vt){var Xt=Et.isMinor;Et.isMinor=!0,j(St,_t,Mt,Et),Et.isMinor=Xt}st(St,_t,Mt,{dfltColor:$t,bgColor:Et.bgColor,showGrid:Et.showGrid,hasMinor:Vt,attributes:ut}),Vt&&!_t.minor.ticks&&!_t.minor.showgrid&&delete _t.minor,(_t.showline||_t.ticks)&&Mt("mirror");var qt=Pt==="multicategory";if(!Et.noTickson&&(Pt==="category"||qt)&&(_t.ticks||_t.showgrid)){var er;qt&&(er="boundaries");var lr=Mt("tickson",er);lr==="boundaries"&&delete _t.ticklabelposition}if(qt){var Jt=Mt("showdividers");Jt&&(Mt("dividercolor"),Mt("dividerwidth"))}if(Pt==="date")if(yt(St,_t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:bt}),!_t.rangebreaks.length)delete _t.rangebreaks;else{for(var Yt=0;Yt<_t.rangebreaks.length;Yt++)if(_t.rangebreaks[Yt].pattern===vt){_t._hasDayOfWeekBreaks=!0;break}if(nt(_t,kt),kt._has("scattergl")||kt._has("splom"))for(var rr=0;rr=2){var wt="",ct,It;if(kt.length===2){for(ct=0;ct<2;ct++)if(It=at(kt[ct]),It){wt=vt;break}}var At=Mt("pattern",wt);if(At===vt)for(ct=0;ct<2;ct++)It=at(kt[ct]),It&&(St.bounds[ct]=kt[ct]=It-1);if(At)for(ct=0;ct<2;ct++)switch(It=kt[ct],At){case vt:if(!it(It)){St.enabled=!1;return}if(It=+It,It!==Math.floor(It)||It<0||It>=7){St.enabled=!1;return}St.bounds[ct]=kt[ct]=It;break;case dt:if(!it(It)){St.enabled=!1;return}if(It=+It,It<0||It>24){St.enabled=!1;return}St.bounds[ct]=kt[ct]=It;break}if(_t.autorange===!1){var Ot=_t.range;if(Ot[0]Ot[1]){St.enabled=!1;return}}else if(kt[0]>Ot[0]&&kt[1]ht?1:-1:+(Tt.substr(1)||1)-+(yt.substr(1)||1)},Rt.ref2id=function(Tt){return/^[xyz]/.test(Tt)?Tt.split(" ")[0]:!1};function et(Tt,yt){if(yt&&yt.length){for(var ut=0;ut0||it(j),rt;_&&(rt="array");var tt=ut("categoryorder",rt),st;tt==="array"&&(st=ut("categoryarray")),!_&&tt==="array"&&(tt=yt.categoryorder="trace"),tt==="trace"?yt._initialCategories=[]:tt==="array"?yt._initialCategories=st.slice():(st=xt(yt,ht).sort(),tt==="category ascending"?yt._initialCategories=st:tt==="category descending"&&(yt._initialCategories=st.reverse()))}}},98728:function(Ct,Rt,o){var it=o(38248),xt=o(3400),et=o(39032),Tt=et.ONEDAY,yt=et.ONEWEEK;Rt.dtick=function(ut,ht){var j=ht==="log",_=ht==="date",rt=ht==="category",tt=_?Tt:1;if(!ut)return tt;if(it(ut))return ut=Number(ut),ut<=0?tt:rt?Math.max(1,Math.round(ut)):_?Math.max(.1,ut):ut;if(typeof ut!="string"||!(_||j))return tt;var st=ut.charAt(0),ot=ut.substr(1);return ot=it(ot)?Number(ot):0,ot<=0||!(_&&st==="M"&&ot===Math.round(ot)||j&&st==="L"||j&&st==="D"&&(ot===1||ot===2))?tt:ut},Rt.tick0=function(ut,ht,j,_){if(ht==="date")return xt.cleanDate(ut,xt.dateTick0(j,_%yt===0?1:0));if(!(_==="D1"||_==="D2"))return it(ut)?Number(ut):0}},33816:function(Ct,Rt,o){var it=o(53756).counter;Ct.exports={idRegex:{x:it("x","( domain)?"),y:it("y","( domain)?")},attrRegex:it("[xy]axis"),xAxisMatch:it("xaxis"),yAxisMatch:it("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"}}},71888:function(Ct,Rt,o){var it=o(3400),xt=o(19280),et=o(79811).id2name,Tt=o(94724),yt=o(21160),ut=o(78344),ht=o(39032).ALMOST_EQUAL,j=o(84284).FROM_BL;Rt.handleDefaults=function(dt,bt,ft){var at=ft.axIds,mt=ft.axHasImage,St=bt._axisConstraintGroups=[],_t=bt._axisMatchGroups=[],Mt,Et,kt,wt,ct,It,At,Ot;for(Mt=0;MtSt?ft.substr(St):at.substr(mt))+_t}function nt(dt,bt){for(var ft=bt._size,at=ft.h/ft.w,mt={},St=Object.keys(dt),_t=0;_tht*Ot&&!Nt)){for(St=0;StYt&&trlr&&(lr=tr);var mr=(lr-er)/(2*Jt);ct/=mr,er=Et.l2r(er),lr=Et.l2r(lr),Et.range=Et._input.range=Vt=0){ho._fullLayout._deactivateShape(ho);return}var go=ho._fullLayout.clickmode;if(Yt(ho),eo===2&&!zr&&jr(),Rr)go.indexOf("select")>-1&&kt(Gn,ho,sn,un,cr.id,rn),go.indexOf("event")>-1&&tt.click(ho,Gn,cr.id);else if(eo===1&&zr){var _o=Tr?kr:Or,co=Tr==="s"||_r==="w"?0:1,zo=_o._name+".range["+co+"]",Io=$t(_o,co),Lo="left",vs="middle";if(_o.fixedrange)return;Tr?(vs=Tr==="n"?"top":"bottom",_o.side==="right"&&(Lo="right")):_r==="e"&&(Lo="right"),ho._context.showAxisRangeEntryBoxes&&it.select(qr).call(j.makeEditable,{gd:ho,immediate:!0,background:ho._fullLayout.paper_bgcolor,text:String(Io),fill:_o.tickfont?_o.tickfont.color:"#444",horizontalAlign:Lo,verticalAlign:vs}).on("edit",function(Zo){var Ls=_o.d2r(Zo);Ls!==void 0&&ut.call("_guiRelayout",ho,zo,Ls)})}}nt.init(rn);var fn,bn,Un,_i,yn,Kn,Jn,so,ba,An;function hn(eo,Gn,ho){var go=qr.getBoundingClientRect();fn=Gn-go.left,bn=ho-go.top,tr._fullLayout._calcInverseTransform(tr);var _o=xt.apply3DTransform(tr._fullLayout._invTransform)(fn,bn);fn=_o[0],bn=_o[1],Un={l:fn,r:fn,w:0,t:bn,b:bn,h:0},_i=tr._hmpixcount?tr._hmlumcount/tr._hmpixcount:Tt(tr._fullLayout.plot_bgcolor).getLuminance(),yn="M0,0H"+ln+"V"+mn+"H0V0",Kn=!1,Jn="xy",An=!1,so=qt(Er,_i,en,Xr,yn),ba=er(Er,en,Xr)}function wn(eo,Gn){if(tr._transitioningWithDuration)return!1;var ho=Math.max(0,Math.min(ln,ur*eo+fn)),go=Math.max(0,Math.min(mn,xr*Gn+bn)),_o=Math.abs(ho-fn),co=Math.abs(go-bn);Un.l=Math.min(fn,ho),Un.r=Math.max(fn,ho),Un.t=Math.min(bn,go),Un.b=Math.max(bn,go);function zo(){Jn="",Un.r=Un.l,Un.t=Un.b,ba.attr("d","M0,0Z")}if(pn.isSubplotConstrained)_o>At||co>At?(Jn="xy",_o/ln>co/mn?(co=_o*mn/ln,bn>go?Un.t=bn-co:Un.b=bn+co):(_o=co*ln/mn,fn>ho?Un.l=fn-_o:Un.r=fn+_o),ba.attr("d",sr(Un))):zo();else if(Tn.isSubplotConstrained)if(_o>At||co>At){Jn="xy";var Io=Math.min(Un.l/ln,(mn-Un.b)/mn),Lo=Math.max(Un.r/ln,(mn-Un.t)/mn);Un.l=Io*ln,Un.r=Lo*ln,Un.b=(1-Io)*mn,Un.t=(1-Lo)*mn,ba.attr("d",sr(Un))}else zo();else!Fr||co0){var Zo;if(Tn.isSubplotConstrained||!Zr&&Fr.length===1){for(Zo=0;Zo1&&(zo.maxallowed!==void 0&&Wr===(zo.range[0]1&&(Io.maxallowed!==void 0&&Gr===(Io.range[0]=0?Math.min(tr,.9):1/(1/Math.max(tr,-.3)+3.222))}function Xt(tr,cr,mr){return tr?tr==="nsew"?mr?"":cr==="pan"?"move":"crosshair":tr.toLowerCase()+"-resize":"pointer"}function qt(tr,cr,mr,Ar,br){return tr.append("path").attr("class","zoombox").style({fill:cr>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",ht(mr,Ar)).attr("d",br+"Z")}function er(tr,cr,mr){return tr.append("path").attr("class","zoombox-corners").style({fill:_.background,stroke:_.defaultLine,"stroke-width":1,opacity:0}).attr("transform",ht(cr,mr)).attr("d","M0,0Z")}function lr(tr,cr,mr,Ar,br,Ir){tr.attr("d",Ar+"M"+mr.l+","+mr.t+"v"+mr.h+"h"+mr.w+"v-"+mr.h+"h-"+mr.w+"Z"),Jt(tr,cr,br,Ir)}function Jt(tr,cr,mr,Ar){mr||(tr.transition().style("fill",Ar>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),cr.transition().style("opacity",1).duration(200))}function Yt(tr){it.select(tr).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function rr(tr){Ot&&tr.data&&tr._context.showTips&&(xt.notifier(xt._(tr,"Double-click to zoom back out"),"long"),Ot=!1)}function jt(tr,cr){return"M"+(tr.l-.5)+","+(cr-At-.5)+"h-3v"+(2*At+1)+"h3ZM"+(tr.r+.5)+","+(cr-At-.5)+"h3v"+(2*At+1)+"h-3Z"}function ar(tr,cr){return"M"+(cr-At-.5)+","+(tr.t-.5)+"v-3h"+(2*At+1)+"v3ZM"+(cr-At-.5)+","+(tr.b+.5)+"v3h"+(2*At+1)+"v-3Z"}function sr(tr){var cr=Math.floor(Math.min(tr.b-tr.t,tr.r-tr.l,At)/2);return"M"+(tr.l-3.5)+","+(tr.t-.5+cr)+"h3v"+-cr+"h"+cr+"v-3h-"+(cr+3)+"ZM"+(tr.r+3.5)+","+(tr.t-.5+cr)+"h-3v"+-cr+"h"+-cr+"v-3h"+(cr+3)+"ZM"+(tr.r+3.5)+","+(tr.b+.5-cr)+"h-3v"+cr+"h"+-cr+"v3h"+(cr+3)+"ZM"+(tr.l-3.5)+","+(tr.b+.5-cr)+"h3v"+cr+"h"+cr+"v3h-"+(cr+3)+"Z"}function Zt(tr,cr,mr,Ar,br){for(var Ir=!1,Tr={},_r={},Er,Rr,zr,Or,kr=(br||{}).xaHash,Nr=(br||{}).yaHash,Qr=0;QrMt[1]-.000244140625&&(yt.domain=nt),xt.noneOrAll(Tt.domain,yt.domain,nt),yt.tickmode==="sync"&&(yt.tickmode="auto")}return ut("layer"),yt}},42568:function(Ct,Rt,o){var it=o(85024);Ct.exports=function(et,Tt,yt,ut,ht){ht||(ht={});var j=ht.tickSuffixDflt,_=it(et),rt=yt("tickprefix");rt&&yt("showtickprefix",_);var tt=yt("ticksuffix",j);tt&&yt("showticksuffix",_)}},96312:function(Ct,Rt,o){var it=o(76808);Ct.exports=function(et,Tt,yt,ut){var ht=Tt._template||{},j=Tt.type||ht.type||"-";yt("minallowed"),yt("maxallowed");var _=yt("range");if(!_){var rt;!ut.noInsiderange&&j!=="log"&&(rt=yt("insiderange"),rt&&(rt[0]===null||rt[1]===null)&&(Tt.insiderange=!1,rt=void 0),rt&&(_=yt("range",rt)))}var tt=Tt.getAutorangeDflt(_,ut),st=yt("autorange",tt),ot;_&&(_[0]===null&&_[1]===null||(_[0]===null||_[1]===null)&&(st==="reversed"||st===!0)||_[0]!==null&&(st==="min"||st==="max reversed")||_[1]!==null&&(st==="max"||st==="min reversed"))&&(_=void 0,delete Tt.range,Tt.autorange=!0,ot=!0),ot||(tt=Tt.getAutorangeDflt(_,ut),st=yt("autorange",tt)),st&&(it(yt,st,_),(j==="linear"||j==="-")&&yt("rangemode")),Tt.cleanRange()}},21160:function(Ct,Rt,o){var it=o(84284).FROM_BL;Ct.exports=function(et,Tt,yt){yt===void 0&&(yt=it[et.constraintoward||"center"]);var ut=[et.r2l(et.range[0]),et.r2l(et.range[1])],ht=ut[0]+(ut[1]-ut[0])*yt;et.range=et._input.range=[et.l2r(ht+(ut[0]-ht)*Tt),et.l2r(ht+(ut[1]-ht)*Tt)],et.setScale()}},78344:function(Ct,Rt,o){var it=o(33428),xt=o(94336).E9,et=o(3400),Tt=et.numberFormat,yt=o(38248),ut=et.cleanNumber,ht=et.ms2DateTime,j=et.dateTime2ms,_=et.ensureNumber,rt=et.isArrayOrTypedArray,tt=o(39032),st=tt.FP_SAFE,ot=tt.BADNUM,nt=tt.LOG_CLIP,vt=tt.ONEWEEK,dt=tt.ONEDAY,bt=tt.ONEHOUR,ft=tt.ONEMIN,at=tt.ONESEC,mt=o(79811),St=o(33816),_t=St.HOUR_PATTERN,Mt=St.WEEKDAY_PATTERN;function Et(wt){return Math.pow(10,wt)}function kt(wt){return wt!=null}Ct.exports=function(ct,It){It=It||{};var At=ct._id||"x",Ot=At.charAt(0);function Pt(jt,ar){if(jt>0)return Math.log(jt)/Math.LN10;if(jt<=0&&ar&&ct.range&&ct.range.length===2){var sr=ct.range[0],Zt=ct.range[1];return .5*(sr+Zt-2*nt*Math.abs(sr-Zt))}else return ot}function zt(jt,ar,sr,Zt){if((Zt||{}).msUTC&&yt(jt))return+jt;var Kt=j(jt,sr||ct.calendar);if(Kt===ot)if(yt(jt)){jt=+jt;var or=Math.floor(et.mod(jt+.05,1)*10),tr=Math.round(jt-or/10);Kt=j(new Date(tr))+or/10}else return ot;return Kt}function Dt(jt,ar,sr){return ht(jt,ar,sr||ct.calendar)}function Nt(jt){return ct._categories[Math.round(jt)]}function $t(jt){if(kt(jt)){if(ct._categoriesMap===void 0&&(ct._categoriesMap={}),ct._categoriesMap[jt]!==void 0)return ct._categoriesMap[jt];ct._categories.push(typeof jt=="number"?String(jt):jt);var ar=ct._categories.length-1;return ct._categoriesMap[jt]=ar,ar}return ot}function Ut(jt,ar){for(var sr=new Array(ar),Zt=0;Ztct.range[1]&&(sr=!sr);for(var Zt=sr?-1:1,Kt=Zt*jt,or=0,tr=0;trmr)or=tr+1;else{or=Kt<(cr+mr)/2?tr:tr+1;break}}var Ar=ct._B[or]||0;return isFinite(Ar)?qt(jt,ct._m2,Ar):0},Jt=function(jt){var ar=ct._rangebreaks.length;if(!ar)return er(jt,ct._m,ct._b);for(var sr=0,Zt=0;Ztct._rangebreaks[Zt].pmax&&(sr=Zt+1);return er(jt,ct._m2,ct._B[sr])}}ct.c2l=ct.type==="log"?Pt:_,ct.l2c=ct.type==="log"?Et:_,ct.l2p=lr,ct.p2l=Jt,ct.c2p=ct.type==="log"?function(jt,ar){return lr(Pt(jt,ar))}:lr,ct.p2c=ct.type==="log"?function(jt){return Et(Jt(jt))}:Jt,["linear","-"].indexOf(ct.type)!==-1?(ct.d2r=ct.r2d=ct.d2c=ct.r2c=ct.d2l=ct.r2l=ut,ct.c2d=ct.c2r=ct.l2d=ct.l2r=_,ct.d2p=ct.r2p=function(jt){return ct.l2p(ut(jt))},ct.p2d=ct.p2r=Jt,ct.cleanPos=_):ct.type==="log"?(ct.d2r=ct.d2l=function(jt,ar){return Pt(ut(jt),ar)},ct.r2d=ct.r2c=function(jt){return Et(ut(jt))},ct.d2c=ct.r2l=ut,ct.c2d=ct.l2r=_,ct.c2r=Pt,ct.l2d=Et,ct.d2p=function(jt,ar){return ct.l2p(ct.d2r(jt,ar))},ct.p2d=function(jt){return Et(Jt(jt))},ct.r2p=function(jt){return ct.l2p(ut(jt))},ct.p2r=Jt,ct.cleanPos=_):ct.type==="date"?(ct.d2r=ct.r2d=et.identity,ct.d2c=ct.r2c=ct.d2l=ct.r2l=zt,ct.c2d=ct.c2r=ct.l2d=ct.l2r=Dt,ct.d2p=ct.r2p=function(jt,ar,sr){return ct.l2p(zt(jt,0,sr))},ct.p2d=ct.p2r=function(jt,ar,sr){return Dt(Jt(jt),ar,sr)},ct.cleanPos=function(jt){return et.cleanDate(jt,ot,ct.calendar)}):ct.type==="category"?(ct.d2c=ct.d2l=$t,ct.r2d=ct.c2d=ct.l2d=Nt,ct.d2r=ct.d2l_noadd=Vt,ct.r2c=function(jt){var ar=Xt(jt);return ar!==void 0?ar:ct.fraction2r(.5)},ct.l2r=ct.c2r=_,ct.r2l=Xt,ct.d2p=function(jt){return ct.l2p(ct.r2c(jt))},ct.p2d=function(jt){return Nt(Jt(jt))},ct.r2p=ct.d2p,ct.p2r=Jt,ct.cleanPos=function(jt){return typeof jt=="string"&&jt!==""?jt:_(jt)}):ct.type==="multicategory"&&(ct.r2d=ct.c2d=ct.l2d=Nt,ct.d2r=ct.d2l_noadd=Vt,ct.r2c=function(jt){var ar=Vt(jt);return ar!==void 0?ar:ct.fraction2r(.5)},ct.r2c_just_indices=Ht,ct.l2r=ct.c2r=_,ct.r2l=Vt,ct.d2p=function(jt){return ct.l2p(ct.r2c(jt))},ct.p2d=function(jt){return Nt(Jt(jt))},ct.r2p=ct.d2p,ct.p2r=Jt,ct.cleanPos=function(jt){return Array.isArray(jt)||typeof jt=="string"&&jt!==""?jt:_(jt)},ct.setupMultiCategory=function(jt){var ar=ct._traceIndices,sr,Zt,Kt=ct._matchGroup;if(Kt&&ct._categories.length===0){for(var or in Kt)if(or!==At){var tr=It[mt.id2name(or)];ar=ar.concat(tr._traceIndices)}}var cr=[[0,{}],[0,{}]],mr=[];for(sr=0;srtr[1]&&(Zt[or?0:1]=sr),Zt[0]===Zt[1]){var cr=ct.l2r(ar),mr=ct.l2r(sr);if(ar!==void 0){var Ar=cr+1;sr!==void 0&&(Ar=Math.min(Ar,mr)),Zt[or?1:0]=Ar}if(sr!==void 0){var br=mr+1;ar!==void 0&&(br=Math.max(br,cr)),Zt[or?0:1]=br}}}},ct.cleanRange=function(jt,ar){ct._cleanRange(jt,ar),ct.limitRange(jt)},ct._cleanRange=function(jt,ar){ar||(ar={}),jt||(jt="range");var sr=et.nestedProperty(ct,jt).get(),Zt,Kt;if(ct.type==="date"?Kt=et.dfltRange(ct.calendar):Ot==="y"?Kt=St.DFLTRANGEY:ct._name==="realaxis"?Kt=[0,1]:Kt=ar.dfltRange||St.DFLTRANGEX,Kt=Kt.slice(),(ct.rangemode==="tozero"||ct.rangemode==="nonnegative")&&(Kt[0]=0),!sr||sr.length!==2){et.nestedProperty(ct,jt).set(Kt);return}var or=sr[0]===null,tr=sr[1]===null;for(ct.type==="date"&&!ct.autorange&&(sr[0]=et.cleanDate(sr[0],ot,ct.calendar),sr[1]=et.cleanDate(sr[1],ot,ct.calendar)),Zt=0;Zt<2;Zt++)if(ct.type==="date"){if(!et.isDateTime(sr[Zt],ct.calendar)){ct[jt]=Kt;break}if(ct.r2l(sr[0])===ct.r2l(sr[1])){var cr=et.constrain(ct.r2l(sr[0]),et.MIN_MS+1e3,et.MAX_MS-1e3);sr[0]=ct.l2r(cr-1e3),sr[1]=ct.l2r(cr+1e3);break}}else{if(!yt(sr[Zt]))if(!(or||tr)&&yt(sr[1-Zt]))sr[Zt]=sr[1-Zt]*(Zt?10:.1);else{ct[jt]=Kt;break}if(sr[Zt]<-st?sr[Zt]=-st:sr[Zt]>st&&(sr[Zt]=st),sr[0]===sr[1]){var mr=Math.max(1,Math.abs(sr[0]*1e-6));sr[0]-=mr,sr[1]+=mr}}},ct.setScale=function(jt){var ar=It._size;if(ct.overlaying){var sr=mt.getFromId({_fullLayout:It},ct.overlaying);ct.domain=sr.domain}var Zt=jt&&ct._r?"_r":"range",Kt=ct.calendar;ct.cleanRange(Zt);var or=ct.r2l(ct[Zt][0],Kt),tr=ct.r2l(ct[Zt][1],Kt),cr=Ot==="y";if(cr?(ct._offset=ar.t+(1-ct.domain[1])*ar.h,ct._length=ar.h*(ct.domain[1]-ct.domain[0]),ct._m=ct._length/(or-tr),ct._b=-ct._m*tr):(ct._offset=ar.l+ct.domain[0]*ar.w,ct._length=ar.w*(ct.domain[1]-ct.domain[0]),ct._m=ct._length/(tr-or),ct._b=-ct._m*or),ct._rangebreaks=[],ct._lBreaks=0,ct._m2=0,ct._B=[],ct.rangebreaks){var mr,Ar;if(ct._rangebreaks=ct.locateBreaks(Math.min(or,tr),Math.max(or,tr)),ct._rangebreaks.length){for(mr=0;mrtr&&(br=!br),br&&ct._rangebreaks.reverse();var Ir=br?-1:1;for(ct._m2=Ir*ct._length/(Math.abs(tr-or)-ct._lBreaks),ct._B.push(-ct._m2*(cr?tr:or)),mr=0;mrKt&&(Kt+=7,orKt&&(Kt+=24,or=Zt&&or=Zt&&jt=un.min&&(krun.max&&(un.max=Nr),Qr=!1)}Qr&&tr.push({min:kr,max:Nr})}};for(sr=0;sr rect").call(Tt.setTranslate,0,0).call(Tt.setScale,1,1),_t.plot.call(Tt.setTranslate,Mt._offset,Et._offset).call(Tt.setScale,1,1);var kt=_t.plot.selectAll(".scatterlayer .trace");kt.selectAll(".point").call(Tt.setPointGroupScale,1,1),kt.selectAll(".textpoint").call(Tt.setTextPointsScale,1,1),kt.call(Tt.hideOutsideRangePoints,_t)}function ot(_t,Mt){var Et=_t.plotinfo,kt=Et.xaxis,wt=Et.yaxis,ct=kt._length,It=wt._length,At=!!_t.xr1,Ot=!!_t.yr1,Pt=[];if(At){var zt=et.simpleMap(_t.xr0,kt.r2l),Dt=et.simpleMap(_t.xr1,kt.r2l),Nt=zt[1]-zt[0],$t=Dt[1]-Dt[0];Pt[0]=(zt[0]*(1-Mt)+Mt*Dt[0]-zt[0])/(zt[1]-zt[0])*ct,Pt[2]=ct*(1-Mt+Mt*$t/Nt),kt.range[0]=kt.l2r(zt[0]*(1-Mt)+Mt*Dt[0]),kt.range[1]=kt.l2r(zt[1]*(1-Mt)+Mt*Dt[1])}else Pt[0]=0,Pt[2]=ct;if(Ot){var Ut=et.simpleMap(_t.yr0,wt.r2l),Ht=et.simpleMap(_t.yr1,wt.r2l),Vt=Ut[1]-Ut[0],Xt=Ht[1]-Ht[0];Pt[1]=(Ut[1]*(1-Mt)+Mt*Ht[1]-Ut[1])/(Ut[0]-Ut[1])*It,Pt[3]=It*(1-Mt+Mt*Xt/Vt),wt.range[0]=kt.l2r(Ut[0]*(1-Mt)+Mt*Ht[0]),wt.range[1]=wt.l2r(Ut[1]*(1-Mt)+Mt*Ht[1])}else Pt[1]=0,Pt[3]=It;yt.drawOne(ht,kt,{skipTitle:!0}),yt.drawOne(ht,wt,{skipTitle:!0}),yt.redrawComponents(ht,[kt._id,wt._id]);var qt=At?ct/Pt[2]:1,er=Ot?It/Pt[3]:1,lr=At?Pt[0]:0,Jt=Ot?Pt[1]:0,Yt=At?Pt[0]/Pt[2]*ct:0,rr=Ot?Pt[1]/Pt[3]*It:0,jt=kt._offset-Yt,ar=wt._offset-rr;Et.clipRect.call(Tt.setTranslate,lr,Jt).call(Tt.setScale,1/qt,1/er),Et.plot.call(Tt.setTranslate,jt,ar).call(Tt.setScale,qt,er),Tt.setPointGroupScale(Et.zoomScalePts,1/qt,1/er),Tt.setTextPointsScale(Et.zoomScaleTxt,1/qt,1/er)}var nt;rt&&(nt=rt());function vt(){for(var _t={},Mt=0;Mt_.duration?(vt(),at=window.cancelAnimationFrame(St)):at=window.requestAnimationFrame(St)}return bt=Date.now(),at=window.requestAnimationFrame(St),Promise.resolve()}},14944:function(Ct,Rt,o){var it=o(24040).traceIs,xt=o(52976);Ct.exports=function(j,_,rt,tt){rt("autotypenumbers",tt.autotypenumbersDflt);var st=rt("type",(tt.splomStash||{}).type);st==="-"&&(et(_,tt.data),_.type==="-"?_.type="linear":j.type=_.type)};function et(ht,j){if(ht.type==="-"){var _=ht._id,rt=_.charAt(0),tt;_.indexOf("scene")!==-1&&(_=rt);var st=Tt(j,_,rt);if(st){if(st.type==="histogram"&&rt==={v:"y",h:"x"}[st.orientation||"v"]){ht.type="linear";return}var ot=rt+"calendar",nt=st[ot],vt={noMultiCategory:!it(st,"cartesian")||it(st,"noMultiCategory")};if(st.type==="box"&&st._hasPreCompStats&&rt==={h:"x",v:"y"}[st.orientation||"v"]&&(vt.noMultiCategory=!0),vt.autotypenumbers=ht.autotypenumbers,ut(st,rt)){var dt=yt(st),bt=[];for(tt=0;tt0&&(tt["_"+_+"axes"]||{})[j])return tt;if((tt[_+"axis"]||_)===j){if(ut(tt,_))return tt;if((tt[_]||[]).length||tt[_+"0"])return tt}}}function yt(ht){return{v:"x",h:"y"}[ht.orientation||"v"]}function ut(ht,j){var _=yt(ht),rt=it(ht,"box-violin"),tt=it(ht._fullInput||{},"candlestick");return rt&&!tt&&j===_&&ht[_]===void 0&&ht[_+"0"]===void 0}},62460:function(Ct,Rt,o){var it=o(24040),xt=o(3400);Rt.manageCommandObserver=function(j,_,rt,tt){var st={},ot=!0;_&&_._commandObserver&&(st=_._commandObserver),st.cache||(st.cache={}),st.lookupTable={};var nt=Rt.hasSimpleAPICommandBindings(j,rt,st.lookupTable);if(_&&_._commandObserver){if(nt)return st;if(_._commandObserver.remove)return _._commandObserver.remove(),_._commandObserver=null,st}if(nt){et(j,nt,st.cache),st.check=function(){if(ot){var ft=et(j,nt,st.cache);return ft.changed&&tt&&st.lookupTable[ft.value]!==void 0&&(st.disable(),Promise.resolve(tt({value:ft.value,type:nt.type,prop:nt.prop,traces:nt.traces,index:st.lookupTable[ft.value]})).then(st.enable,st.enable)),ft.changed}};for(var vt=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],dt=0;dt0?".":"")+st;xt.isPlainObject(ot)?ht(ot,_,nt,tt+1):_(nt,st,ot)}})}},86968:function(Ct,Rt,o){var it=o(92880).extendFlat;Rt.u=function(xt,et){xt=xt||{},et=et||{};var Tt={valType:"info_array",editType:xt.editType,items:[{valType:"number",min:0,max:1,editType:xt.editType},{valType:"number",min:0,max:1,editType:xt.editType}],dflt:[0,1]};xt.name&&xt.name+"",xt.trace,et.description&&""+et.description;var yt={x:it({},Tt,{}),y:it({},Tt,{}),editType:xt.editType};return xt.noGridCell||(yt.row={valType:"integer",min:0,dflt:0,editType:xt.editType},yt.column={valType:"integer",min:0,dflt:0,editType:xt.editType}),yt},Rt.Q=function(xt,et,Tt,yt){var ut=yt&&yt.x||[0,1],ht=yt&&yt.y||[0,1],j=et.grid;if(j){var _=Tt("domain.column");_!==void 0&&(_0&&$t._module.calcGeoJSON(Nt,Ot)}if(!Pt){var Ut=this.updateProjection(At,Ot);if(Ut)return;(!this.viewInitial||this.scope!==zt.scope)&&this.saveViewInitial(zt)}this.scope=zt.scope,this.updateBaseLayers(Ot,zt),this.updateDims(Ot,zt),this.updateFx(Ot,zt),st.generalUpdatePerTraceModule(this.graphDiv,this,At,zt);var Ht=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=Ht.selectAll(".point"),this.dataPoints.text=Ht.selectAll("text"),this.dataPaths.line=Ht.selectAll(".js-line");var Vt=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=Vt.selectAll("path"),this._render()},kt.updateProjection=function(At,Ot){var Pt=this.graphDiv,zt=Ot[this.id],Dt=Ot._size,Nt=zt.domain,$t=zt.projection,Ut=zt.lonaxis,Ht=zt.lataxis,Vt=Ut._ax,Xt=Ht._ax,qt=this.projection=wt(zt),er=[[Dt.l+Dt.w*Nt.x[0],Dt.t+Dt.h*(1-Nt.y[1])],[Dt.l+Dt.w*Nt.x[1],Dt.t+Dt.h*(1-Nt.y[0])]],lr=zt.center||{},Jt=$t.rotation||{},Yt=Ut.range||[],rr=Ht.range||[];if(zt.fitbounds){Vt._length=er[1][0]-er[0][0],Xt._length=er[1][1]-er[0][1],Vt.range=nt(Pt,Vt),Xt.range=nt(Pt,Xt);var jt=(Vt.range[0]+Vt.range[1])/2,ar=(Xt.range[0]+Xt.range[1])/2;if(zt._isScoped)lr={lon:jt,lat:ar};else if(zt._isClipped){lr={lon:jt,lat:ar},Jt={lon:jt,lat:ar,roll:Jt.roll};var sr=$t.type,Zt=mt.lonaxisSpan[sr]/2||180,Kt=mt.lataxisSpan[sr]/2||90;Yt=[jt-Zt,jt+Zt],rr=[ar-Kt,ar+Kt]}else lr={lon:jt,lat:ar},Jt={lon:jt,lat:Jt.lat,roll:Jt.roll}}qt.center([lr.lon-Jt.lon,lr.lat-Jt.lat]).rotate([-Jt.lon,-Jt.lat,Jt.roll]).parallels($t.parallels);var or=It(Yt,rr);qt.fitExtent(er,or);var tr=this.bounds=qt.getBounds(or),cr=this.fitScale=qt.scale(),mr=qt.translate();if(zt.fitbounds){var Ar=qt.getBounds(It(Vt.range,Xt.range)),br=Math.min((tr[1][0]-tr[0][0])/(Ar[1][0]-Ar[0][0]),(tr[1][1]-tr[0][1])/(Ar[1][1]-Ar[0][1]));isFinite(br)?qt.scale(br*cr):ht.warn("Something went wrong during"+this.id+"fitbounds computations.")}else qt.scale($t.scale*cr);var Ir=this.midPt=[(tr[0][0]+tr[1][0])/2,(tr[0][1]+tr[1][1])/2];if(qt.translate([mr[0]+(Ir[0]-mr[0]),mr[1]+(Ir[1]-mr[1])]).clipExtent(tr),zt._isAlbersUsa){var Tr=qt([lr.lon,lr.lat]),_r=qt.translate();qt.translate([_r[0]-(Tr[0]-_r[0]),_r[1]-(Tr[1]-_r[1])])}},kt.updateBaseLayers=function(At,Ot){var Pt=this,zt=Pt.topojson,Dt=Pt.layers,Nt=Pt.basePaths;function $t(er){return er==="lonaxis"||er==="lataxis"}function Ut(er){return Boolean(mt.lineLayers[er])}function Ht(er){return Boolean(mt.fillLayers[er])}var Vt=this.hasChoropleth?mt.layersForChoropleth:mt.layers,Xt=Vt.filter(function(er){return Ut(er)||Ht(er)?Ot["show"+er]:$t(er)?Ot[er].showgrid:!0}),qt=Pt.framework.selectAll(".layer").data(Xt,String);qt.exit().each(function(er){delete Dt[er],delete Nt[er],it.select(this).remove()}),qt.enter().append("g").attr("class",function(er){return"layer "+er}).each(function(er){var lr=Dt[er]=it.select(this);er==="bg"?Pt.bgRect=lr.append("rect").style("pointer-events","all"):$t(er)?Nt[er]=lr.append("path").style("fill","none"):er==="backplot"?lr.append("g").classed("choroplethlayer",!0):er==="frontplot"?lr.append("g").classed("scatterlayer",!0):Ut(er)?Nt[er]=lr.append("path").style("fill","none").style("stroke-miterlimit",2):Ht(er)&&(Nt[er]=lr.append("path").style("stroke","none"))}),qt.order(),qt.each(function(er){var lr=Nt[er],Jt=mt.layerNameToAdjective[er];er==="frame"?lr.datum(mt.sphereSVG):Ut(er)||Ht(er)?lr.datum(Mt(zt,zt.objects[er])):$t(er)&&lr.datum(ct(er,Ot,At)).call(_.stroke,Ot[er].gridcolor).call(rt.dashLine,Ot[er].griddash,Ot[er].gridwidth),Ut(er)?lr.call(_.stroke,Ot[Jt+"color"]).call(rt.dashLine,"",Ot[Jt+"width"]):Ht(er)&&lr.call(_.fill,Ot[Jt+"color"])})},kt.updateDims=function(At,Ot){var Pt=this.bounds,zt=(Ot.framewidth||0)/2,Dt=Pt[0][0]-zt,Nt=Pt[0][1]-zt,$t=Pt[1][0]-Dt+zt,Ut=Pt[1][1]-Nt+zt;rt.setRect(this.clipRect,Dt,Nt,$t,Ut),this.bgRect.call(rt.setRect,Dt,Nt,$t,Ut).call(_.fill,Ot.bgcolor),this.xaxis._offset=Dt,this.xaxis._length=$t,this.yaxis._offset=Nt,this.yaxis._length=Ut},kt.updateFx=function(At,Ot){var Pt=this,zt=Pt.graphDiv,Dt=Pt.bgRect,Nt=At.dragmode,$t=At.clickmode;if(Pt.isStatic)return;function Ut(){var qt=Pt.viewInitial,er={};for(var lr in qt)er[Pt.id+"."+lr]=qt[lr];ut.call("_guiRelayout",zt,er),zt.emit("plotly_doubleclick",null)}function Ht(qt){return Pt.projection.invert([qt[0]+Pt.xaxis._offset,qt[1]+Pt.yaxis._offset])}var Vt=function(qt,er){if(er.isRect){var lr=qt.range={};lr[Pt.id]=[Ht([er.xmin,er.ymin]),Ht([er.xmax,er.ymax])]}else{var Jt=qt.lassoPoints={};Jt[Pt.id]=er.map(Ht)}},Xt={element:Pt.bgRect.node(),gd:zt,plotinfo:{id:Pt.id,xaxis:Pt.xaxis,yaxis:Pt.yaxis,fillRangeItems:Vt},xaxes:[Pt.xaxis],yaxes:[Pt.yaxis],subplot:Pt.id,clickFn:function(qt){qt===2&&bt(zt)}};Nt==="pan"?(Dt.node().onmousedown=null,Dt.call(at(Pt,Ot)),Dt.on("dblclick.zoom",Ut),zt._context._scrollZoom.geo||Dt.on("wheel.zoom",null)):(Nt==="select"||Nt==="lasso")&&(Dt.on(".zoom",null),Xt.prepFn=function(qt,er,lr){dt(qt,er,lr,Xt,Nt)},vt.init(Xt)),Dt.on("mousemove",function(){var qt=Pt.projection.invert(ht.getPositionFromD3Event());if(!qt)return vt.unhover(zt,it.event);Pt.xaxis.p2c=function(){return qt[0]},Pt.yaxis.p2c=function(){return qt[1]},tt.hover(zt,it.event,Pt.id)}),Dt.on("mouseout",function(){zt._dragging||vt.unhover(zt,it.event)}),Dt.on("click",function(){Nt!=="select"&&Nt!=="lasso"&&($t.indexOf("select")>-1&&ft(it.event,zt,[Pt.xaxis],[Pt.yaxis],Pt.id,Xt),$t.indexOf("event")>-1&&tt.click(zt,it.event))})},kt.makeFramework=function(){var At=this,Ot=At.graphDiv,Pt=Ot._fullLayout,zt="clip"+Pt._uid+At.id;At.clipDef=Pt._clips.append("clipPath").attr("id",zt),At.clipRect=At.clipDef.append("rect"),At.framework=it.select(At.container).append("g").attr("class","geo "+At.id).call(rt.setClipUrl,zt,Ot),At.project=function(Dt){var Nt=At.projection(Dt);return Nt?[Nt[0]-At.xaxis._offset,Nt[1]-At.yaxis._offset]:[null,null]},At.xaxis={_id:"x",c2p:function(Dt){return At.project(Dt)[0]}},At.yaxis={_id:"y",c2p:function(Dt){return At.project(Dt)[1]}},At.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},ot.setConvert(At.mockAxis,Pt)},kt.saveViewInitial=function(At){var Ot=At.center||{},Pt=At.projection,zt=Pt.rotation||{};this.viewInitial={fitbounds:At.fitbounds,"projection.scale":Pt.scale};var Dt;At._isScoped?Dt={"center.lon":Ot.lon,"center.lat":Ot.lat}:At._isClipped?Dt={"projection.rotation.lon":zt.lon,"projection.rotation.lat":zt.lat}:Dt={"center.lon":Ot.lon,"center.lat":Ot.lat,"projection.rotation.lon":zt.lon},ht.extendFlat(this.viewInitial,Dt)},kt.render=function(At){this._hasMarkerAngles&&At?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()},kt._render=function(){var At=this.projection,Ot=At.getPath(),Pt;function zt(Nt){var $t=At(Nt.lonlat);return $t?j($t[0],$t[1]):null}function Dt(Nt){return At.isLonLatOverEdges(Nt.lonlat)?"none":null}for(Pt in this.basePaths)this.basePaths[Pt].attr("d",Ot);for(Pt in this.dataPaths)this.dataPaths[Pt].attr("d",function(Nt){return Ot(Nt.geojson)});for(Pt in this.dataPoints)this.dataPoints[Pt].attr("display",Dt).attr("transform",zt)};function wt(At){var Ot=At.projection,Pt=Ot.type,zt=mt.projNames[Pt];zt="geo"+ht.titleCase(zt);for(var Dt=xt[zt]||yt[zt],Nt=Dt(),$t=At._isSatellite?Math.acos(1/Ot.distance)*180/Math.PI:At._isClipped?mt.lonaxisSpan[Pt]/2:null,Ut=["center","rotate","parallels","clipExtent"],Ht=function(qt){return qt?Nt:[]},Vt=0;VtJt}else return!1},Nt.getPath=function(){return et().projection(Nt)},Nt.getBounds=function(qt){return Nt.getPath().bounds(qt)},Nt.precision(mt.precision),At._isSatellite&&Nt.tilt(Ot.tilt).distance(Ot.distance),$t&&Nt.clipAngle($t-mt.clipPad),Nt}function ct(At,Ot,Pt){var zt=1e-6,Dt=2.5,Nt=Ot[At],$t=mt.scopeDefaults[Ot.scope],Ut,Ht,Vt;At==="lonaxis"?(Ut=$t.lonaxisRange,Ht=$t.lataxisRange,Vt=function(ar,sr){return[ar,sr]}):At==="lataxis"&&(Ut=$t.lataxisRange,Ht=$t.lonaxisRange,Vt=function(ar,sr){return[sr,ar]});var Xt={type:"linear",range:[Ut[0],Ut[1]-zt],tick0:Nt.tick0,dtick:Nt.dtick};ot.setConvert(Xt,Pt);var qt=ot.calcTicks(Xt);!Ot.isScoped&&At==="lonaxis"&&qt.pop();for(var er=qt.length,lr=new Array(er),Jt=0;Jt0&&Dt<0&&(Dt+=360);var Ut=(Dt-zt)/4;return{type:"Polygon",coordinates:[[[zt,Nt],[zt,$t],[zt+Ut,$t],[zt+2*Ut,$t],[zt+3*Ut,$t],[Dt,$t],[Dt,Nt],[Dt-Ut,Nt],[Dt-2*Ut,Nt],[Dt-3*Ut,Nt],[zt,Nt]]]}}},10816:function(Ct,Rt,o){var it=o(84888).KY,xt=o(3400).counterRegex,et=o(43520),Tt="geo",yt=xt(Tt),ut={};ut[Tt]={valType:"subplotid",dflt:Tt,editType:"calc"};function ht(rt){for(var tt=rt._fullLayout,st=rt.calcdata,ot=tt._subplots[Tt],nt=0;nt0&&Ht<0&&(Ht+=360);var Vt=(Ut+Ht)/2,Xt;if(!ft){var qt=at?dt.projRotate:[Vt,0,0];Xt=rt("projection.rotation.lon",qt[0]),rt("projection.rotation.lat",qt[1]),rt("projection.rotation.roll",qt[2]),kt=rt("showcoastlines",!at&&Et),kt&&(rt("coastlinecolor"),rt("coastlinewidth")),kt=rt("showocean",Et?void 0:!1),kt&&rt("oceancolor")}var er,lr;if(ft?(er=-96.6,lr=38.7):(er=at?Vt:Xt,lr=($t[0]+$t[1])/2),rt("center.lon",er),rt("center.lat",lr),mt&&(rt("projection.tilt"),rt("projection.distance")),St){var Jt=dt.projParallels||[0,60];rt("projection.parallels",Jt)}rt("projection.scale"),kt=rt("showland",Et?void 0:!1),kt&&rt("landcolor"),kt=rt("showlakes",Et?void 0:!1),kt&&rt("lakecolor"),kt=rt("showrivers",Et?void 0:!1),kt&&(rt("rivercolor"),rt("riverwidth")),kt=rt("showcountries",at&&vt!=="usa"&&Et),kt&&(rt("countrycolor"),rt("countrywidth")),(vt==="usa"||vt==="north america"&&nt===50)&&(rt("showsubunits",Et),rt("subunitcolor"),rt("subunitwidth")),at||(kt=rt("showframe",Et),kt&&(rt("framecolor"),rt("framewidth"))),rt("bgcolor");var Yt=rt("fitbounds");Yt&&(delete _.projection.scale,at?(delete _.center.lon,delete _.center.lat):_t?(delete _.center.lon,delete _.center.lat,delete _.projection.rotation.lon,delete _.projection.rotation.lat,delete _.lonaxis.range,delete _.lataxis.range):(delete _.center.lon,delete _.center.lat,delete _.projection.rotation.lon))}},79248:function(Ct,Rt,o){var it=o(33428),xt=o(3400),et=o(24040),Tt=Math.PI/180,yt=180/Math.PI,ut={cursor:"pointer"},ht={cursor:"auto"};function j(ct,It){var At=ct.projection,Ot;return It._isScoped?Ot=tt:It._isClipped?Ot=ot:Ot=st,Ot(ct,At)}Ct.exports=j;function _(ct,It){return it.behavior.zoom().translate(It.translate()).scale(It.scale())}function rt(ct,It,At){var Ot=ct.id,Pt=ct.graphDiv,zt=Pt.layout,Dt=zt[Ot],Nt=Pt._fullLayout,$t=Nt[Ot],Ut={},Ht={};function Vt(Xt,qt){Ut[Ot+"."+Xt]=xt.nestedProperty(Dt,Xt).get(),et.call("_storeDirectGUIEdit",zt,Nt._preGUI,Ut);var er=xt.nestedProperty($t,Xt);er.get()!==qt&&(er.set(qt),xt.nestedProperty(Dt,Xt).set(qt),Ht[Ot+"."+Xt]=qt)}At(Vt),Vt("projection.scale",It.scale()/ct.fitScale),Vt("fitbounds",!1),Pt.emit("plotly_relayout",Ht)}function tt(ct,It){var At=_(ct,It);function Ot(){it.select(this).style(ut)}function Pt(){It.scale(it.event.scale).translate(it.event.translate),ct.render(!0);var Nt=It.invert(ct.midPt);ct.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":It.scale()/ct.fitScale,"geo.center.lon":Nt[0],"geo.center.lat":Nt[1]})}function zt(Nt){var $t=It.invert(ct.midPt);Nt("center.lon",$t[0]),Nt("center.lat",$t[1])}function Dt(){it.select(this).style(ht),rt(ct,It,zt)}return At.on("zoomstart",Ot).on("zoom",Pt).on("zoomend",Dt),At}function st(ct,It){var At=_(ct,It),Ot=2,Pt,zt,Dt,Nt,$t,Ut,Ht,Vt,Xt;function qt(jt){return It.invert(jt)}function er(jt){var ar=qt(jt);if(!ar)return!0;var sr=It(ar);return Math.abs(sr[0]-jt[0])>Ot||Math.abs(sr[1]-jt[1])>Ot}function lr(){it.select(this).style(ut),Pt=it.mouse(this),zt=It.rotate(),Dt=It.translate(),Nt=zt,$t=qt(Pt)}function Jt(){if(Ut=it.mouse(this),er(Pt)){At.scale(It.scale()),At.translate(It.translate());return}It.scale(it.event.scale),It.translate([Dt[0],it.event.translate[1]]),$t?qt(Ut)&&(Vt=qt(Ut),Ht=[Nt[0]+(Vt[0]-$t[0]),zt[1],zt[2]],It.rotate(Ht),Nt=Ht):(Pt=Ut,$t=qt(Pt)),Xt=!0,ct.render(!0);var jt=It.rotate(),ar=It.invert(ct.midPt);ct.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":It.scale()/ct.fitScale,"geo.center.lon":ar[0],"geo.center.lat":ar[1],"geo.projection.rotation.lon":-jt[0]})}function Yt(){it.select(this).style(ht),Xt&&rt(ct,It,rr)}function rr(jt){var ar=It.rotate(),sr=It.invert(ct.midPt);jt("projection.rotation.lon",-ar[0]),jt("center.lon",sr[0]),jt("center.lat",sr[1])}return At.on("zoomstart",lr).on("zoom",Jt).on("zoomend",Yt),At}function ot(ct,It){It.rotate(),It.scale();var At=_(ct,It),Ot=wt(At,"zoomstart","zoom","zoomend"),Pt=0,zt=At.on,Dt;At.on("zoomstart",function(){it.select(this).style(ut);var Vt=it.mouse(this),Xt=It.rotate(),qt=Xt,er=It.translate(),lr=vt(Xt);Dt=nt(It,Vt),zt.call(At,"zoom",function(){var Jt=it.mouse(this);if(It.scale(it.event.scale),!Dt)Vt=Jt,Dt=nt(It,Vt);else if(nt(It,Jt)){It.rotate(Xt).translate(er);var Yt=nt(It,Jt),rr=bt(Dt,Yt),jt=_t(dt(lr,rr)),ar=ft(jt,Dt,qt);(!isFinite(ar[0])||!isFinite(ar[1])||!isFinite(ar[2]))&&(ar=qt),It.rotate(ar),qt=ar}$t(Ot.of(this,arguments))}),Nt(Ot.of(this,arguments))}).on("zoomend",function(){it.select(this).style(ht),zt.call(At,"zoom",null),Ut(Ot.of(this,arguments)),rt(ct,It,Ht)}).on("zoom.redraw",function(){ct.render(!0);var Vt=It.rotate();ct.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":It.scale()/ct.fitScale,"geo.projection.rotation.lon":-Vt[0],"geo.projection.rotation.lat":-Vt[1]})});function Nt(Vt){Pt++||Vt({type:"zoomstart"})}function $t(Vt){Vt({type:"zoom"})}function Ut(Vt){--Pt||Vt({type:"zoomend"})}function Ht(Vt){var Xt=It.rotate();Vt("projection.rotation.lon",-Xt[0]),Vt("projection.rotation.lat",-Xt[1])}return it.rebind(At,Ot,"on")}function nt(ct,It){var At=ct.invert(It);return At&&isFinite(At[0])&&isFinite(At[1])&&Mt(At)}function vt(ct){var It=.5*ct[0]*Tt,At=.5*ct[1]*Tt,Ot=.5*ct[2]*Tt,Pt=Math.sin(It),zt=Math.cos(It),Dt=Math.sin(At),Nt=Math.cos(At),$t=Math.sin(Ot),Ut=Math.cos(Ot);return[zt*Nt*Ut+Pt*Dt*$t,Pt*Nt*Ut-zt*Dt*$t,zt*Dt*Ut+Pt*Nt*$t,zt*Nt*$t-Pt*Dt*Ut]}function dt(ct,It){var At=ct[0],Ot=ct[1],Pt=ct[2],zt=ct[3],Dt=It[0],Nt=It[1],$t=It[2],Ut=It[3];return[At*Dt-Ot*Nt-Pt*$t-zt*Ut,At*Nt+Ot*Dt+Pt*Ut-zt*$t,At*$t-Ot*Ut+Pt*Dt+zt*Nt,At*Ut+Ot*$t-Pt*Nt+zt*Dt]}function bt(ct,It){if(!(!ct||!It)){var At=kt(ct,It),Ot=Math.sqrt(Et(At,At)),Pt=.5*Math.acos(Math.max(-1,Math.min(1,Et(ct,It)))),zt=Math.sin(Pt)/Ot;return Ot&&[Math.cos(Pt),At[2]*zt,-At[1]*zt,At[0]*zt]}}function ft(ct,It,At){var Ot=St(It,2,ct[0]);Ot=St(Ot,1,ct[1]),Ot=St(Ot,0,ct[2]-At[2]);var Pt=It[0],zt=It[1],Dt=It[2],Nt=Ot[0],$t=Ot[1],Ut=Ot[2],Ht=Math.atan2(zt,Pt)*yt,Vt=Math.sqrt(Pt*Pt+zt*zt),Xt,qt;Math.abs($t)>Vt?(qt=($t>0?90:-90)-Ht,Xt=0):(qt=Math.asin($t/Vt)*yt-Ht,Xt=Math.sqrt(Vt*Vt-$t*$t));var er=180-qt-2*Ht,lr=(Math.atan2(Ut,Nt)-Math.atan2(Dt,Xt))*yt,Jt=(Math.atan2(Ut,Nt)-Math.atan2(Dt,-Xt))*yt,Yt=at(At[0],At[1],qt,lr),rr=at(At[0],At[1],er,Jt);return Yt<=rr?[qt,lr,At[2]]:[er,Jt,At[2]]}function at(ct,It,At,Ot){var Pt=mt(At-ct),zt=mt(Ot-It);return Math.sqrt(Pt*Pt+zt*zt)}function mt(ct){return(ct%360+540)%360-180}function St(ct,It,At){var Ot=At*Tt,Pt=ct.slice(),zt=It===0?1:0,Dt=It===2?1:2,Nt=Math.cos(Ot),$t=Math.sin(Ot);return Pt[zt]=ct[zt]*Nt-ct[Dt]*$t,Pt[Dt]=ct[Dt]*Nt+ct[zt]*$t,Pt}function _t(ct){return[Math.atan2(2*(ct[0]*ct[1]+ct[2]*ct[3]),1-2*(ct[1]*ct[1]+ct[2]*ct[2]))*yt,Math.asin(Math.max(-1,Math.min(1,2*(ct[0]*ct[2]-ct[3]*ct[1]))))*yt,Math.atan2(2*(ct[0]*ct[3]+ct[1]*ct[2]),1-2*(ct[2]*ct[2]+ct[3]*ct[3]))*yt]}function Mt(ct){var It=ct[0]*Tt,At=ct[1]*Tt,Ot=Math.cos(At);return[Ot*Math.cos(It),Ot*Math.sin(It),Math.sin(At)]}function Et(ct,It){for(var At=0,Ot=0,Pt=ct.length;OtMath.abs(kt)?(tt.boxEnd[1]=tt.boxStart[1]+Math.abs(Et)*Pt*(kt>=0?1:-1),tt.boxEnd[1]ft[3]&&(tt.boxEnd[1]=ft[3],tt.boxEnd[0]=tt.boxStart[0]+(ft[3]-tt.boxStart[1])/Math.abs(Pt))):(tt.boxEnd[0]=tt.boxStart[0]+Math.abs(kt)/Pt*(Et>=0?1:-1),tt.boxEnd[0]ft[2]&&(tt.boxEnd[0]=ft[2],tt.boxEnd[1]=tt.boxStart[1]+(ft[2]-tt.boxStart[0])*Math.abs(Pt)))}else At&&(tt.boxEnd[0]=tt.boxStart[0]),Ot&&(tt.boxEnd[1]=tt.boxStart[1])}else tt.boxEnabled?(Et=tt.boxStart[0]!==tt.boxEnd[0],kt=tt.boxStart[1]!==tt.boxEnd[1],Et||kt?(Et&&(wt(0,tt.boxStart[0],tt.boxEnd[0]),j.xaxis.autorange=!1),kt&&(wt(1,tt.boxStart[1],tt.boxEnd[1]),j.yaxis.autorange=!1),j.relayoutCallback()):j.glplot.setDirty(),tt.boxEnabled=!1,tt.boxInited=!1):tt.boxInited&&(tt.boxInited=!1);break;case"pan":tt.boxEnabled=!1,tt.boxInited=!1,vt?(tt.panning||(tt.dragStart[0]=dt,tt.dragStart[1]=bt),Math.abs(tt.dragStart[0]-dt)<_t&&(dt=tt.dragStart[0]),Math.abs(tt.dragStart[1]-bt)<_t&&(bt=tt.dragStart[1]),Et=(mt-dt)*(ft[2]-ft[0])/(rt.viewBox[2]-rt.viewBox[0]),kt=(St-bt)*(ft[3]-ft[1])/(rt.viewBox[3]-rt.viewBox[1]),ft[0]+=Et,ft[2]+=Et,ft[1]+=kt,ft[3]+=kt,j.setRanges(ft),tt.panning=!0,tt.lastInputTime=Date.now(),st(),j.cameraChanged(),j.handleAnnotations()):tt.panning&&(tt.panning=!1,j.relayoutCallback());break}tt.lastPos[0]=dt,tt.lastPos[1]=bt}return tt.wheelListener=xt(_,function(vt,dt){if(!j.scrollZoom)return!1;var bt=j.calcDataBox(),ft=rt.viewBox,at=tt.lastPos[0],mt=tt.lastPos[1],St=Math.exp(5*dt/(ft[3]-ft[1])),_t=at/(ft[2]-ft[0])*(bt[2]-bt[0])+bt[0],Mt=mt/(ft[3]-ft[1])*(bt[3]-bt[1])+bt[1];return bt[0]=(bt[0]-_t)*St+_t,bt[2]=(bt[2]-_t)*St+_t,bt[1]=(bt[1]-Mt)*St+Mt,bt[3]=(bt[3]-Mt)*St+Mt,j.setRanges(bt),tt.lastInputTime=Date.now(),st(),j.cameraChanged(),j.handleAnnotations(),j.relayoutCallback(),!0},!0),tt}},92568:function(Ct,Rt,o){var it=o(54460),xt=o(43080);function et(ht){this.scene=ht,this.gl=ht.gl,this.pixelRatio=ht.pixelRatio,this.screenBox=[0,0,1,1],this.viewBox=[0,0,1,1],this.dataBox=[-1,-1,1,1],this.borderLineEnable=[!1,!1,!1,!1],this.borderLineWidth=[1,1,1,1],this.borderLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.ticks=[[],[]],this.tickEnable=[!0,!0,!1,!1],this.tickPad=[15,15,15,15],this.tickAngle=[0,0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickMarkLength=[0,0,0,0],this.tickMarkWidth=[0,0,0,0],this.tickMarkColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labels=["x","y"],this.labelEnable=[!0,!0,!1,!1],this.labelAngle=[0,Math.PI/2,0,3*Math.PI/2],this.labelPad=[15,15,15,15],this.labelSize=[12,12],this.labelFont=["sans-serif","sans-serif"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.title="",this.titleEnable=!0,this.titleCenter=[0,0,0,0],this.titleAngle=0,this.titleColor=[0,0,0,1],this.titleFont="sans-serif",this.titleSize=18,this.gridLineEnable=[!0,!0],this.gridLineColor=[[0,0,0,.5],[0,0,0,.5]],this.gridLineWidth=[1,1],this.zeroLineEnable=[!0,!0],this.zeroLineWidth=[1,1],this.zeroLineColor=[[0,0,0,1],[0,0,0,1]],this.borderColor=[0,0,0,0],this.backgroundColor=[0,0,0,0],this.static=this.scene.staticPlot}var Tt=et.prototype,yt=["xaxis","yaxis"];Tt.merge=function(ht){this.titleEnable=!1,this.backgroundColor=xt(ht.plot_bgcolor);var j,_,rt,tt,st,ot,nt,vt,dt,bt,ft;for(bt=0;bt<2;++bt){j=yt[bt];var at=j.charAt(0);for(_=ht[this.scene[j]._name],rt=_.title.text===this.scene.fullLayout._dfltTitle[at]?"":_.title.text,ft=0;ft<=2;ft+=2)this.labelEnable[bt+ft]=!1,this.labels[bt+ft]=rt,this.labelColor[bt+ft]=xt(_.title.font.color),this.labelFont[bt+ft]=_.title.font.family,this.labelSize[bt+ft]=_.title.font.size,this.labelPad[bt+ft]=this.getLabelPad(j,_),this.tickEnable[bt+ft]=!1,this.tickColor[bt+ft]=xt((_.tickfont||{}).color),this.tickAngle[bt+ft]=_.tickangle==="auto"?0:Math.PI*-_.tickangle/180,this.tickPad[bt+ft]=this.getTickPad(_),this.tickMarkLength[bt+ft]=0,this.tickMarkWidth[bt+ft]=_.tickwidth||0,this.tickMarkColor[bt+ft]=xt(_.tickcolor),this.borderLineEnable[bt+ft]=!1,this.borderLineColor[bt+ft]=xt(_.linecolor),this.borderLineWidth[bt+ft]=_.linewidth||0;nt=this.hasSharedAxis(_),st=this.hasAxisInDfltPos(j,_)&&!nt,ot=this.hasAxisInAltrPos(j,_)&&!nt,tt=_.mirror||!1,vt=nt?String(tt).indexOf("all")!==-1:!!tt,dt=nt?tt==="allticks":String(tt).indexOf("ticks")!==-1,st?this.labelEnable[bt]=!0:ot&&(this.labelEnable[bt+2]=!0),st?this.tickEnable[bt]=_.showticklabels:ot&&(this.tickEnable[bt+2]=_.showticklabels),(st||vt)&&(this.borderLineEnable[bt]=_.showline),(ot||vt)&&(this.borderLineEnable[bt+2]=_.showline),(st||dt)&&(this.tickMarkLength[bt]=this.getTickMarkLength(_)),(ot||dt)&&(this.tickMarkLength[bt+2]=this.getTickMarkLength(_)),this.gridLineEnable[bt]=_.showgrid,this.gridLineColor[bt]=xt(_.gridcolor),this.gridLineWidth[bt]=_.gridwidth,this.zeroLineEnable[bt]=_.zeroline,this.zeroLineColor[bt]=xt(_.zerolinecolor),this.zeroLineWidth[bt]=_.zerolinewidth}},Tt.hasSharedAxis=function(ht){var j=this.scene,_=j.fullLayout._subplots.gl2d,rt=it.findSubplotsWithAxis(_,ht);return rt.indexOf(j.id)!==0},Tt.hasAxisInDfltPos=function(ht,j){var _=j.side;if(ht==="xaxis")return _==="bottom";if(ht==="yaxis")return _==="left"},Tt.hasAxisInAltrPos=function(ht,j){var _=j.side;if(ht==="xaxis")return _==="top";if(ht==="yaxis")return _==="right"},Tt.getLabelPad=function(ht,j){var _=1.5,rt=j.title.font.size,tt=j.showticklabels;if(ht==="xaxis")return j.side==="top"?-10+rt*(_+(tt?1:0)):-10+rt*(_+(tt?.5:0));if(ht==="yaxis")return j.side==="right"?10+rt*(_+(tt?1:.5)):10+rt*(_+(tt?.5:0))},Tt.getTickPad=function(ht){return ht.ticks==="outside"?10+ht.ticklen:15},Tt.getTickMarkLength=function(ht){if(!ht.ticks)return 0;var j=ht.ticklen;return ht.ticks==="inside"?-j:j};function ut(ht){return new et(ht)}Ct.exports=ut},39952:function(Ct,Rt,o){var it=o(67824).overrideAll,xt=o(17188),et=o(64859),Tt=o(9616),yt=o(33816),ut=o(57952),ht=o(65460),j=o(84888).op;Rt.name="gl2d",Rt.attr=["xaxis","yaxis"],Rt.idRoot=["x","y"],Rt.idRegex=yt.idRegex,Rt.attrRegex=yt.attrRegex,Rt.attributes=o(26720),Rt.supplyLayoutDefaults=function(_,rt,tt){rt._has("cartesian")||ut.supplyLayoutDefaults(_,rt,tt)},Rt.layoutAttrOverrides=it(ut.layoutAttributes,"plot","from-root"),Rt.baseLayoutAttrOverrides=it({plot_bgcolor:et.plot_bgcolor,hoverlabel:ht.hoverlabel},"plot","nested"),Rt.plot=function(rt){for(var tt=rt._fullLayout,st=rt._fullData,ot=tt._subplots.gl2d,nt=0;nt1;function vt(dt){if(!nt){var bt=it.validate(tt[dt],ut[dt]);if(bt)return tt[dt]}}Tt(tt,st,ot,{type:j,attributes:ut,handleDefaults:_,fullLayout:st,font:st.font,fullData:ot,getDfltFromLayout:vt,autotypenumbersDflt:st.autotypenumbers,paper_bgcolor:st.paper_bgcolor,calendar:st.calendar})};function _(rt,tt,st,ot){for(var nt=st("bgcolor"),vt=xt.combine(nt,ot.paper_bgcolor),dt=["up","center","eye"],bt=0;bt.999)&&(_t="turntable")}else _t="turntable";st("dragmode",_t),st("hovermode",ot.getDfltFromLayout("hovermode"))}},346:function(Ct,Rt,o){var it=o(86140),xt=o(86968).u,et=o(92880).extendFlat,Tt=o(3400).counterRegex;function yt(ut,ht,j){return{x:{valType:"number",dflt:ut,editType:"camera"},y:{valType:"number",dflt:ht,editType:"camera"},z:{valType:"number",dflt:j,editType:"camera"},editType:"camera"}}Ct.exports={_arrayAttrRegexps:[Tt("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:et(yt(0,0,1),{}),center:et(yt(0,0,0),{}),eye:et(yt(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:xt({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:it,yaxis:it,zaxis:it,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot",_deprecated:{cameraposition:{valType:"info_array",editType:"camera"}}}},9020:function(Ct,Rt,o){var it=o(43080),xt=["xaxis","yaxis","zaxis"];function et(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}var Tt=et.prototype;Tt.merge=function(ut){for(var ht=0;ht<3;++ht){var j=ut[xt[ht]];if(!j.visible){this.enabled[ht]=!1,this.drawSides[ht]=!1;continue}this.enabled[ht]=j.showspikes,this.colors[ht]=it(j.spikecolor),this.drawSides[ht]=j.spikesides,this.lineWidth[ht]=j.spikethickness}};function yt(ut){var ht=new et;return ht.merge(ut),ht}Ct.exports=yt},87152:function(Ct,Rt,o){Ct.exports=yt;var it=o(54460),xt=o(3400),et=["xaxis","yaxis","zaxis"];function Tt(ut){for(var ht=new Array(3),j=0;j<3;++j){for(var _=ut[j],rt=new Array(_.length),tt=0;tt<_.length;++tt)rt[tt]=_[tt].x;ht[j]=rt}return ht}function yt(ut){for(var ht=ut.axesOptions,j=ut.glplot.axesPixels,_=ut.fullSceneLayout,rt=[[],[],[]],tt=0;tt<3;++tt){var st=_[et[tt]];if(st._length=(j[tt].hi-j[tt].lo)*j[tt].pixelsPerDataUnit/ut.dataScale[tt],Math.abs(st._length)===1/0||isNaN(st._length))rt[tt]=[];else{st._input_range=st.range.slice(),st.range[0]=j[tt].lo/ut.dataScale[tt],st.range[1]=j[tt].hi/ut.dataScale[tt],st._m=1/(ut.dataScale[tt]*j[tt].pixelsPerDataUnit),st.range[0]===st.range[1]&&(st.range[0]-=1,st.range[1]+=1);var ot=st.tickmode;if(st.tickmode==="auto"){st.tickmode="linear";var nt=st.nticks||xt.constrain(st._length/40,4,9);it.autoTicks(st,Math.abs(st.range[1]-st.range[0])/nt)}for(var vt=it.calcTicks(st,{msUTC:!0}),dt=0;dt/g," "));rt[tt]=vt,st.tickmode=ot}}ht.ticks=rt;for(var tt=0;tt<3;++tt){.5*(ut.glplot.bounds[0][tt]+ut.glplot.bounds[1][tt]);for(var dt=0;dt<2;++dt)ht.bounds[dt][tt]=ut.glplot.bounds[dt][tt]}ut.contourLevels=Tt(rt)}},94424:function(Ct){function Rt(it,xt){var et=[0,0,0,0],Tt,yt;for(Tt=0;Tt<4;++Tt)for(yt=0;yt<4;++yt)et[yt]+=it[4*Tt+yt]*xt[Tt];return et}function o(it,xt){var et=Rt(it.projection,Rt(it.view,Rt(it.model,[xt[0],xt[1],xt[2],1])));return et}Ct.exports=o},98432:function(Ct,Rt,o){var it=o(67792).gl_plot3d,xt=it.createCamera,et=it.createScene,Tt=o(5408),yt=o(89184),ut=o(24040),ht=o(3400),j=ht.preserveDrawingBuffer(),_=o(54460),rt=o(93024),tt=o(43080),st=o(16576),ot=o(94424),nt=o(44728),vt=o(9020),dt=o(87152),bt=o(19280).applyAutorangeOptions,ft,at,mt=!1;function St(Pt,zt){var Dt=document.createElement("div"),Nt=Pt.container;this.graphDiv=Pt.graphDiv;var $t=document.createElementNS("http://www.w3.org/2000/svg","svg");$t.style.position="absolute",$t.style.top=$t.style.left="0px",$t.style.width=$t.style.height="100%",$t.style["z-index"]=20,$t.style["pointer-events"]="none",Dt.appendChild($t),this.svgContainer=$t,Dt.id=Pt.id,Dt.style.position="absolute",Dt.style.top=Dt.style.left="0px",Dt.style.width=Dt.style.height="100%",Nt.appendChild(Dt),this.fullLayout=zt,this.id=Pt.id||"scene",this.fullSceneLayout=zt[this.id],this.plotArgs=[[],{},{}],this.axesOptions=nt(zt,zt[this.id]),this.spikeOptions=vt(zt[this.id]),this.container=Dt,this.staticMode=!!Pt.staticPlot,this.pixelRatio=this.pixelRatio||Pt.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=ut.getComponentMethod("annotations3d","convert"),this.drawAnnotations=ut.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var _t=St.prototype;_t.prepareOptions=function(){var Pt=this,zt={canvas:Pt.canvas,gl:Pt.gl,glOptions:{preserveDrawingBuffer:j,premultipliedAlpha:!0,antialias:!0},container:Pt.container,axes:Pt.axesOptions,spikes:Pt.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:Pt.camera,pixelRatio:Pt.pixelRatio};if(Pt.staticMode){if(!at&&(ft=document.createElement("canvas"),at=Tt({canvas:ft,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!at))throw new Error("error creating static canvas/context for image server");zt.gl=at,zt.canvas=ft}return zt};var Mt=!0;_t.tryCreatePlot=function(){var Pt=this,zt=Pt.prepareOptions(),Dt=!0;try{Pt.glplot=et(zt)}catch{if(Pt.staticMode||!Mt||j)Dt=!1;else{ht.warn(["webgl setup failed possibly due to","false preserveDrawingBuffer config.","The mobile/tablet device may not be detected by is-mobile module.","Enabling preserveDrawingBuffer in second attempt to create webgl scene..."].join(" "));try{j=zt.glOptions.preserveDrawingBuffer=!0,Pt.glplot=et(zt)}catch{j=zt.glOptions.preserveDrawingBuffer=!1,Dt=!1}}}return Mt=!1,Dt},_t.initializeGLCamera=function(){var Pt=this,zt=Pt.fullSceneLayout.camera,Dt=zt.projection.type==="orthographic";Pt.camera=xt(Pt.container,{center:[zt.center.x,zt.center.y,zt.center.z],eye:[zt.eye.x,zt.eye.y,zt.eye.z],up:[zt.up.x,zt.up.y,zt.up.z],_ortho:Dt,zoomMin:.01,zoomMax:100,mode:"orbit"})},_t.initializeGLPlot=function(){var Pt=this;Pt.initializeGLCamera();var zt=Pt.tryCreatePlot();if(!zt)return st(Pt);Pt.traces={},Pt.make4thDimension();var Dt=Pt.graphDiv,Nt=Dt.layout,$t=function(){var Ht={};return Pt.isCameraChanged(Nt)&&(Ht[Pt.id+".camera"]=Pt.getCamera()),Pt.isAspectChanged(Nt)&&(Ht[Pt.id+".aspectratio"]=Pt.glplot.getAspectratio(),Nt[Pt.id].aspectmode!=="manual"&&(Pt.fullSceneLayout.aspectmode=Nt[Pt.id].aspectmode=Ht[Pt.id+".aspectmode"]="manual")),Ht},Ut=function(Ht){if(Ht.fullSceneLayout.dragmode!==!1){var Vt=$t();Ht.saveLayout(Nt),Ht.graphDiv.emit("plotly_relayout",Vt)}};return Pt.glplot.canvas&&(Pt.glplot.canvas.addEventListener("mouseup",function(){Ut(Pt)}),Pt.glplot.canvas.addEventListener("touchstart",function(){mt=!0}),Pt.glplot.canvas.addEventListener("wheel",function(Ht){if(Dt._context._scrollZoom.gl3d){if(Pt.camera._ortho){var Vt=Ht.deltaX>Ht.deltaY?1.1:.9090909090909091,Xt=Pt.glplot.getAspectratio();Pt.glplot.setAspectratio({x:Vt*Xt.x,y:Vt*Xt.y,z:Vt*Xt.z})}Ut(Pt)}},yt?{passive:!1}:!1),Pt.glplot.canvas.addEventListener("mousemove",function(){if(Pt.fullSceneLayout.dragmode!==!1&&Pt.camera.mouseListener.buttons!==0){var Ht=$t();Pt.graphDiv.emit("plotly_relayouting",Ht)}}),Pt.staticMode||Pt.glplot.canvas.addEventListener("webglcontextlost",function(Ht){Dt&&Dt.emit&&Dt.emit("plotly_webglcontextlost",{event:Ht,layer:Pt.id})},!1)),Pt.glplot.oncontextloss=function(){Pt.recoverContext()},Pt.glplot.onrender=function(){Pt.render()},!0},_t.render=function(){var Pt=this,zt=Pt.graphDiv,Dt,Nt=Pt.svgContainer,$t=Pt.container.getBoundingClientRect();zt._fullLayout._calcInverseTransform(zt);var Ut=zt._fullLayout._invScaleX,Ht=zt._fullLayout._invScaleY,Vt=$t.width*Ut,Xt=$t.height*Ht;Nt.setAttributeNS(null,"viewBox","0 0 "+Vt+" "+Xt),Nt.setAttributeNS(null,"width",Vt),Nt.setAttributeNS(null,"height",Xt),dt(Pt),Pt.glplot.axes.update(Pt.axesOptions);for(var qt=Object.keys(Pt.traces),er=null,lr=Pt.glplot.selection,Jt=0;Jt")):Dt.type==="isosurface"||Dt.type==="volume"?(sr.valueLabel=_.hoverLabelText(Pt._mockAxis,Pt._mockAxis.d2l(lr.traceCoordinate[3]),Dt.valuehoverformat),cr.push("value: "+sr.valueLabel),lr.textLabel&&cr.push(lr.textLabel),tr=cr.join("
")):tr=lr.textLabel;var mr={x:lr.traceCoordinate[0],y:lr.traceCoordinate[1],z:lr.traceCoordinate[2],data:jt._input,fullData:jt,curveNumber:jt.index,pointNumber:ar};rt.appendArrayPointValue(mr,jt,ar),Dt._module.eventData&&(mr=jt._module.eventData(mr,lr,jt,{},ar));var Ar={points:[mr]};if(Pt.fullSceneLayout.hovermode){var br=[];rt.loneHover({trace:jt,x:(.5+.5*rr[0]/rr[3])*Vt,y:(.5-.5*rr[1]/rr[3])*Xt,xLabel:sr.xLabel,yLabel:sr.yLabel,zLabel:sr.zLabel,text:tr,name:er.name,color:rt.castHoverOption(jt,ar,"bgcolor")||er.color,borderColor:rt.castHoverOption(jt,ar,"bordercolor"),fontFamily:rt.castHoverOption(jt,ar,"font.family"),fontSize:rt.castHoverOption(jt,ar,"font.size"),fontColor:rt.castHoverOption(jt,ar,"font.color"),nameLength:rt.castHoverOption(jt,ar,"namelength"),textAlign:rt.castHoverOption(jt,ar,"align"),hovertemplate:ht.castOption(jt,ar,"hovertemplate"),hovertemplateLabels:ht.extendFlat({},mr,sr),eventData:[mr]},{container:Nt,gd:zt,inOut_bbox:br}),mr.bbox=br[0]}lr.distance<5&&(lr.buttons||mt)?zt.emit("plotly_click",Ar):zt.emit("plotly_hover",Ar),this.oldEventData=Ar}else rt.loneUnhover(Nt),this.oldEventData&&zt.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;Pt.drawAnnotations(Pt)},_t.recoverContext=function(){var Pt=this;Pt.glplot.dispose();var zt=function(){if(Pt.glplot.gl.isContextLost()){requestAnimationFrame(zt);return}if(!Pt.initializeGLPlot()){ht.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}Pt.plot.apply(Pt,Pt.plotArgs)};requestAnimationFrame(zt)};var Et=["xaxis","yaxis","zaxis"];function kt(Pt,zt,Dt){for(var Nt=Pt.fullSceneLayout,$t=0;$t<3;$t++){var Ut=Et[$t],Ht=Ut.charAt(0),Vt=Nt[Ut],Xt=zt[Ht],qt=zt[Ht+"calendar"],er=zt["_"+Ht+"length"];if(!ht.isArrayOrTypedArray(Xt))Dt[0][$t]=Math.min(Dt[0][$t],0),Dt[1][$t]=Math.max(Dt[1][$t],er-1);else for(var lr,Jt=0;Jt<(er||Xt.length);Jt++)if(ht.isArrayOrTypedArray(Xt[Jt]))for(var Yt=0;Ytjt[1][Ht])jt[0][Ht]=-1,jt[1][Ht]=1;else{var Ir=jt[1][Ht]-jt[0][Ht];jt[0][Ht]-=Ir/32,jt[1][Ht]+=Ir/32}if(sr=[jt[0][Ht],jt[1][Ht]],sr=bt(sr,Xt),jt[0][Ht]=sr[0],jt[1][Ht]=sr[1],Xt.isReversed()){var Tr=jt[0][Ht];jt[0][Ht]=jt[1][Ht],jt[1][Ht]=Tr}}else sr=Xt.range,jt[0][Ht]=Xt.r2l(sr[0]),jt[1][Ht]=Xt.r2l(sr[1]);jt[0][Ht]===jt[1][Ht]&&(jt[0][Ht]-=1,jt[1][Ht]+=1),Xt.range=[jt[0][Ht],jt[1][Ht]],Xt.limitRange(),Nt.glplot.setBounds(Ht,{min:Xt.range[0]*Yt[Ht],max:Xt.range[1]*Yt[Ht]})}var _r,Er=er.aspectmode;if(Er==="cube")_r=[1,1,1];else if(Er==="manual"){var Rr=er.aspectratio;_r=[Rr.x,Rr.y,Rr.z]}else if(Er==="auto"||Er==="data"){var zr=[1,1,1];for(Ht=0;Ht<3;++Ht){Xt=er[Et[Ht]],qt=Xt.type;var Or=ar[qt];zr[Ht]=Math.pow(Or.acc,1/Or.count)/Yt[Ht]}Er==="data"||Math.max.apply(null,zr)/Math.min.apply(null,zr)<=4?_r=zr:_r=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");er.aspectratio.x=lr.aspectratio.x=_r[0],er.aspectratio.y=lr.aspectratio.y=_r[1],er.aspectratio.z=lr.aspectratio.z=_r[2],Nt.glplot.setAspectratio(er.aspectratio),Nt.viewInitial.aspectratio||(Nt.viewInitial.aspectratio={x:er.aspectratio.x,y:er.aspectratio.y,z:er.aspectratio.z}),Nt.viewInitial.aspectmode||(Nt.viewInitial.aspectmode=er.aspectmode);var kr=er.domain||null,Nr=zt._size||null;if(kr&&Nr){var Qr=Nt.container.style;Qr.position="absolute",Qr.left=Nr.l+kr.x[0]*Nr.w+"px",Qr.top=Nr.t+(1-kr.y[1])*Nr.h+"px",Qr.width=Nr.w*(kr.x[1]-kr.x[0])+"px",Qr.height=Nr.h*(kr.y[1]-kr.y[0])+"px"}Nt.glplot.redraw()},_t.destroy=function(){var Pt=this;Pt.glplot&&(Pt.camera.mouseListener.enabled=!1,Pt.container.removeEventListener("wheel",Pt.camera.wheelListener),Pt.camera=null,Pt.glplot.dispose(),Pt.container.parentNode.removeChild(Pt.container),Pt.glplot=null)};function ct(Pt){return[[Pt.eye.x,Pt.eye.y,Pt.eye.z],[Pt.center.x,Pt.center.y,Pt.center.z],[Pt.up.x,Pt.up.y,Pt.up.z]]}function It(Pt){return{up:{x:Pt.up[0],y:Pt.up[1],z:Pt.up[2]},center:{x:Pt.center[0],y:Pt.center[1],z:Pt.center[2]},eye:{x:Pt.eye[0],y:Pt.eye[1],z:Pt.eye[2]},projection:{type:Pt._ortho===!0?"orthographic":"perspective"}}}_t.getCamera=function(){var Pt=this;return Pt.camera.view.recalcMatrix(Pt.camera.view.lastT()),It(Pt.camera)},_t.setViewport=function(Pt){var zt=this,Dt=Pt.camera;zt.camera.lookAt.apply(this,ct(Dt)),zt.glplot.setAspectratio(Pt.aspectratio);var Nt=Dt.projection.type==="orthographic",$t=zt.camera._ortho;Nt!==$t&&(zt.glplot.redraw(),zt.glplot.clearRGBA(),zt.glplot.dispose(),zt.initializeGLPlot())},_t.isCameraChanged=function(Pt){var zt=this,Dt=zt.getCamera(),Nt=ht.nestedProperty(Pt,zt.id+".camera"),$t=Nt.get();function Ut(qt,er,lr,Jt){var Yt=["up","center","eye"],rr=["x","y","z"];return er[Yt[lr]]&&qt[Yt[lr]][rr[Jt]]===er[Yt[lr]][rr[Jt]]}var Ht=!1;if($t===void 0)Ht=!0;else{for(var Vt=0;Vt<3;Vt++)for(var Xt=0;Xt<3;Xt++)if(!Ut(Dt,$t,Vt,Xt)){Ht=!0;break}(!$t.projection||Dt.projection&&Dt.projection.type!==$t.projection.type)&&(Ht=!0)}return Ht},_t.isAspectChanged=function(Pt){var zt=this,Dt=zt.glplot.getAspectratio(),Nt=ht.nestedProperty(Pt,zt.id+".aspectratio"),$t=Nt.get();return $t===void 0||$t.x!==Dt.x||$t.y!==Dt.y||$t.z!==Dt.z},_t.saveLayout=function(Pt){var zt=this,Dt=zt.fullLayout,Nt,$t,Ut,Ht,Vt,Xt,qt=zt.isCameraChanged(Pt),er=zt.isAspectChanged(Pt),lr=qt||er;if(lr){var Jt={};if(qt&&(Nt=zt.getCamera(),$t=ht.nestedProperty(Pt,zt.id+".camera"),Ut=$t.get(),Jt[zt.id+".camera"]=Ut),er&&(Ht=zt.glplot.getAspectratio(),Vt=ht.nestedProperty(Pt,zt.id+".aspectratio"),Xt=Vt.get(),Jt[zt.id+".aspectratio"]=Xt),ut.call("_storeDirectGUIEdit",Pt,Dt._preGUI,Jt),qt){$t.set(Nt);var Yt=ht.nestedProperty(Dt,zt.id+".camera");Yt.set(Nt)}if(er){Vt.set(Ht);var rr=ht.nestedProperty(Dt,zt.id+".aspectratio");rr.set(Ht),zt.glplot.redraw()}}return lr},_t.updateFx=function(Pt,zt){var Dt=this,Nt=Dt.camera;if(Nt)if(Pt==="orbit")Nt.mode="orbit",Nt.keyBindingMode="rotate";else if(Pt==="turntable"){Nt.up=[0,0,1],Nt.mode="turntable",Nt.keyBindingMode="rotate";var $t=Dt.graphDiv,Ut=$t._fullLayout,Ht=Dt.fullSceneLayout.camera,Vt=Ht.up.x,Xt=Ht.up.y,qt=Ht.up.z;if(qt/Math.sqrt(Vt*Vt+Xt*Xt+qt*qt)<.999){var er=Dt.id+".camera.up",lr={x:0,y:0,z:1},Jt={};Jt[er]=lr;var Yt=$t.layout;ut.call("_storeDirectGUIEdit",Yt,Ut._preGUI,Jt),Ht.up=lr,ht.nestedProperty(Yt,er).set(lr)}}else Nt.keyBindingMode=Pt;Dt.fullSceneLayout.hovermode=zt};function At(Pt,zt,Dt){for(var Nt=0,$t=Dt-1;Nt<$t;++Nt,--$t)for(var Ut=0;Ut0)for(var Vt=255/Ht,Xt=0;Xt<3;++Xt)Pt[Ut+Xt]=Math.min(Vt*Pt[Ut+Xt],255)}}_t.toImage=function(Pt){var zt=this;Pt||(Pt="png"),zt.staticMode&&zt.container.appendChild(ft),zt.glplot.redraw();var Dt=zt.glplot.gl,Nt=Dt.drawingBufferWidth,$t=Dt.drawingBufferHeight;Dt.bindFramebuffer(Dt.FRAMEBUFFER,null);var Ut=new Uint8Array(Nt*$t*4);Dt.readPixels(0,0,Nt,$t,Dt.RGBA,Dt.UNSIGNED_BYTE,Ut),At(Ut,Nt,$t),Ot(Ut,Nt,$t);var Ht=document.createElement("canvas");Ht.width=Nt,Ht.height=$t;var Vt=Ht.getContext("2d",{willReadFrequently:!0}),Xt=Vt.createImageData(Nt,$t);Xt.data.set(Ut),Vt.putImageData(Xt,0,0);var qt;switch(Pt){case"jpeg":qt=Ht.toDataURL("image/jpeg");break;case"webp":qt=Ht.toDataURL("image/webp");break;default:qt=Ht.toDataURL("image/png")}return zt.staticMode&&zt.container.removeChild(ft),qt},_t.setConvert=function(){for(var Pt=this,zt=0;zt<3;zt++){var Dt=Pt.fullSceneLayout[Et[zt]];_.setConvert(Dt,Pt.fullLayout),Dt.setScale=ht.noop}},_t.make4thDimension=function(){var Pt=this,zt=Pt.graphDiv,Dt=zt._fullLayout;Pt._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},_.setConvert(Pt._mockAxis,Dt)},Ct.exports=St},52094:function(Ct){Ct.exports=function(o,it,xt,et){et=et||o.length;for(var Tt=new Array(et),yt=0;ytOpenStreetMap contributors',Tt=['© Carto',et].join(" "),yt=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),ut=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),ht={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:et,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:Tt,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:Tt,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:yt,tiles:["https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:yt,tiles:["https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:ut,tiles:["https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},j=it(ht);Ct.exports={requiredVersion:xt,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:ht,styleValuesNonMapbox:j,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install @plotly/mapbox-gl@"+xt+"."].join(` `),noAccessTokenErrorMsg:["Missing Mapbox access token.","Mapbox trace type require a Mapbox access token to be registered.","For example:"," Plotly.newPlot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });","More info here: https://www.mapbox.com/help/define-access-token/"].join(` `),missingStyleErrorMsg:["No valid mapbox style found, please set `mapbox.style` to one of:",j.join(", "),"or register a Mapbox access token to use a Mapbox-served style."].join(` `),multipleTokensErrorMsg:["Set multiple mapbox access token across different mapbox subplot,","using first token found as mapbox-gl does not allow multipleaccess tokens on the same page."].join(` -`),mapOnErrorMsg:"Mapbox error.",mapboxLogo:{path0:"m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z",path1:"M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z",path2:"M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z",polygon:"11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34"},styleRules:{map:"overflow:hidden;position:relative;","missing-css":"display:none;",canary:"background-color:salmon;","ctrl-bottom-left":"position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;","ctrl-bottom-right":"position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;",ctrl:"clear: both; pointer-events: auto; transform: translate(0, 0);","ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner":"display: none;","ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner":"display: block; margin-top:2px","ctrl-attrib.mapboxgl-compact:hover":"padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;","ctrl-attrib.mapboxgl-compact::after":`content: ""; cursor: pointer; position: absolute; background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E %3Cpath fill="%23333333" fill-rule="evenodd" d="M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0"/%3E %3C/svg%3E'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;`,"ctrl-attrib.mapboxgl-compact":"min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;","ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":`display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')`}}},89032:function(Ct,Rt,o){var it=o(3400);Ct.exports=function(et,Et){var mt=et.split(" "),ut=mt[0],ht=mt[1],j=it.isArrayOrTypedArray(Et)?it.mean(Et):Et,_=.5+j/100,rt=1.5+j/100,tt=["",""],st=[0,0];switch(ut){case"top":tt[0]="top",st[1]=-rt;break;case"bottom":tt[0]="bottom",st[1]=rt;break}switch(ht){case"left":tt[1]="right",st[0]=-_;break;case"right":tt[1]="left",st[0]=_;break}var ot;return tt[0]&&tt[1]?ot=tt.join("-"):tt[0]?ot=tt[0]:tt[1]?ot=tt[1]:ot="center",{anchor:ot,offset:st}}},33688:function(Ct,Rt,o){var it=o(3480),xt=o(3400),et=xt.strTranslate,Et=xt.strScale,mt=o(84888).KY,ut=o(9616),ht=o(33428),j=o(43616),_=o(72736),rt=o(14440),tt="mapbox",st=Rt.constants=o(47552);Rt.name=tt,Rt.attr="subplot",Rt.idRoot=tt,Rt.idRegex=Rt.attrRegex=xt.counterRegex(tt),Rt.attributes={subplot:{valType:"subplotid",dflt:"mapbox",editType:"calc"}},Rt.layoutAttributes=o(5232),Rt.supplyLayoutDefaults=o(5976),Rt.plot=function(dt){var bt=dt._fullLayout,ft=dt.calcdata,at=bt._subplots[tt];if(it.version!==st.requiredVersion)throw new Error(st.wrongVersionErrorMsg);var yt=ot(dt,at);it.accessToken=yt;for(var St=0;Stzt/2){var Dt=It.split("|").join("
");Ot.text(Dt).attr("data-unformatted",Dt).call(_.convertToTspans,vt),Pt=j.bBox(Ot.node())}Ot.attr("transform",et(-3,-Pt.height+8)),At.insert("rect",".static-attribution").attr({x:-Pt.width-6,y:-Pt.height-3,width:Pt.width+6,height:Pt.height+3,fill:"rgba(255, 255, 255, 0.75)"});var Nt=1;Pt.width+6>zt&&(Nt=zt/(Pt.width+6));var $t=[ft.l+ft.w*St.x[1],ft.t+ft.h*(1-St.y[0])];At.attr("transform",et($t[0],$t[1])+Et(Nt))}};function ot(vt,dt){var bt=vt._fullLayout,ft=vt._context;if(ft.mapboxAccessToken==="")return"";for(var at=[],yt=[],St=!1,_t=!1,Mt=0;Mt1&&xt.warn(st.multipleTokensErrorMsg),at[0]):(yt.length&&xt.log(["Listed mapbox access token(s)",yt.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}function nt(vt){return typeof vt=="string"&&(st.styleValuesMapbox.indexOf(vt)!==-1||vt.indexOf("mapbox://")===0||vt.indexOf("stamen")===0)}Rt.updateFx=function(vt){for(var dt=vt._fullLayout,bt=dt._subplots[tt],ft=0;ft0){for(var st=0;st0}function j(rt){var tt={},st={};switch(rt.type){case"circle":it.extendFlat(st,{"circle-radius":rt.circle.radius,"circle-color":rt.color,"circle-opacity":rt.opacity});break;case"line":it.extendFlat(st,{"line-width":rt.line.width,"line-color":rt.color,"line-opacity":rt.opacity,"line-dasharray":rt.line.dash});break;case"fill":it.extendFlat(st,{"fill-color":rt.color,"fill-outline-color":rt.fill.outlinecolor,"fill-opacity":rt.opacity});break;case"symbol":var ot=rt.symbol,nt=et(ot.textposition,ot.iconsize);it.extendFlat(tt,{"icon-image":ot.icon+"-15","icon-size":ot.iconsize/10,"text-field":ot.text,"text-size":ot.textfont.size,"text-anchor":nt.anchor,"text-offset":nt.offset,"symbol-placement":ot.placement}),it.extendFlat(st,{"icon-color":rt.color,"text-color":ot.textfont.color,"text-opacity":rt.opacity});break;case"raster":it.extendFlat(st,{"raster-fade-duration":0,"raster-opacity":rt.opacity});break}return{layout:tt,paint:st}}function _(rt){var tt=rt.sourcetype,st=rt.source,ot={type:tt},nt;return tt==="geojson"?nt="data":tt==="vector"?nt=typeof st=="string"?"url":"tiles":tt==="raster"?(nt="tiles",ot.tileSize=256):tt==="image"&&(nt="url",ot.coordinates=rt.coordinates),ot[nt]=st,rt.sourceattribution&&(ot.attribution=xt(rt.sourceattribution)),ot}Ct.exports=function(tt,st,ot){var nt=new mt(tt,st);return nt.update(ot),nt}},5232:function(Ct,Rt,o){var it=o(3400),xt=o(76308).defaultLine,et=o(86968).u,Et=o(25376),mt=o(52904).textposition,ut=o(67824).overrideAll,ht=o(31780).templatedArray,j=o(47552),_=Et({noFontVariant:!0});_.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var rt=Ct.exports=ut({_arrayAttrRegexps:[it.counterRegex("mapbox",".layers",!0)],domain:et({name:"mapbox"}),accesstoken:{valType:"string",noBlank:!0,strict:!0},style:{valType:"any",values:j.styleValuesMapbox.concat(j.styleValuesNonMapbox),dflt:j.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:ht("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:xt},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:xt}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:_,textposition:it.extendFlat({},mt,{arrayOk:!1})}})},"plot","from-root");rt.uirevision={valType:"any",editType:"none"}},5976:function(Ct,Rt,o){var it=o(3400),xt=o(168),et=o(51272),Et=o(5232);Ct.exports=function(j,_,rt){xt(j,_,rt,{type:"mapbox",attributes:Et,handleDefaults:mt,partition:"y",accessToken:_._mapboxAccessToken})};function mt(ht,j,_,rt){_("accesstoken",rt.accessToken),_("style"),_("center.lon"),_("center.lat"),_("zoom"),_("bearing"),_("pitch");var tt=_("bounds.west"),st=_("bounds.east"),ot=_("bounds.south"),nt=_("bounds.north");(tt===void 0||st===void 0||ot===void 0||nt===void 0)&&delete j.bounds,et(ht,j,{name:"layers",handleItemDefaults:ut}),j._input=ht}function ut(ht,j){function _(vt,dt){return it.coerce(ht,j,Et.layers,vt,dt)}var rt=_("visible");if(rt){var tt=_("sourcetype"),st=tt==="raster"||tt==="image";_("source"),_("sourceattribution"),tt==="vector"&&_("sourcelayer"),tt==="image"&&_("coordinates");var ot;st&&(ot="raster");var nt=_("type",ot);st&&nt!=="raster"&&(nt=j.type="raster",it.log("Source types *raster* and *image* must drawn *raster* layer type.")),_("below"),_("color"),_("opacity"),_("minzoom"),_("maxzoom"),nt==="circle"&&_("circle.radius"),nt==="line"&&(_("line.width"),_("line.dash")),nt==="fill"&&_("fill.outlinecolor"),nt==="symbol"&&(_("symbol.icon"),_("symbol.iconsize"),_("symbol.text"),it.coerceFont(_,"symbol.textfont",void 0,{noFontVariant:!0}),_("symbol.textposition"),_("symbol.placement"))}}},14440:function(Ct,Rt,o){var it=o(3480),xt=o(3400),et=o(27144),Et=o(24040),mt=o(54460),ut=o(86476),ht=o(93024),j=o(72760),_=j.drawMode,rt=j.selectMode,tt=o(22676).prepSelect,st=o(22676).clearOutline,ot=o(22676).clearSelectionsCache,nt=o(22676).selectOnClick,vt=o(47552),dt=o(22360);function bt(Mt,Tt){this.id=Tt,this.gd=Mt;var kt=Mt._fullLayout,wt=Mt._context;this.container=kt._glcontainer.node(),this.isStatic=wt.staticPlot,this.uid=kt._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(kt),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var ft=bt.prototype;ft.plot=function(Mt,Tt,kt){var wt=this,ct=Tt[wt.id];wt.map&&ct.accesstoken!==wt.accessToken&&(wt.map.remove(),wt.map=null,wt.styleObj=null,wt.traceHash={},wt.layerList=[]);var It;wt.map?It=new Promise(function(At,Ot){wt.updateMap(Mt,Tt,At,Ot)}):It=new Promise(function(At,Ot){wt.createMap(Mt,Tt,At,Ot)}),kt.push(It)},ft.createMap=function(Mt,Tt,kt,wt){var ct=this,It=Tt[ct.id],At=ct.styleObj=yt(It.style,Tt);ct.accessToken=It.accesstoken;var Ot=It.bounds,Pt=Ot?[[Ot.west,Ot.south],[Ot.east,Ot.north]]:null,zt=ct.map=new it.Map({container:ct.div,style:At.style,center:_t(It.center),zoom:It.zoom,bearing:It.bearing,pitch:It.pitch,maxBounds:Pt,interactive:!ct.isStatic,preserveDrawingBuffer:ct.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new it.AttributionControl({compact:!0}));zt._canvas.style.left="0px",zt._canvas.style.top="0px",ct.rejectOnError(wt),ct.isStatic||ct.initFx(Mt,Tt);var Dt=[];Dt.push(new Promise(function(Nt){zt.once("load",Nt)})),Dt=Dt.concat(et.fetchTraceGeoData(Mt)),Promise.all(Dt).then(function(){ct.fillBelowLookup(Mt,Tt),ct.updateData(Mt),ct.updateLayout(Tt),ct.resolveOnRender(kt)}).catch(wt)},ft.updateMap=function(Mt,Tt,kt,wt){var ct=this,It=ct.map,At=Tt[this.id];ct.rejectOnError(wt);var Ot=[],Pt=yt(At.style,Tt);JSON.stringify(ct.styleObj)!==JSON.stringify(Pt)&&(ct.styleObj=Pt,It.setStyle(Pt.style),ct.traceHash={},Ot.push(new Promise(function(zt){It.once("styledata",zt)}))),Ot=Ot.concat(et.fetchTraceGeoData(Mt)),Promise.all(Ot).then(function(){ct.fillBelowLookup(Mt,Tt),ct.updateData(Mt),ct.updateLayout(Tt),ct.resolveOnRender(kt)}).catch(wt)},ft.fillBelowLookup=function(Mt,Tt){var kt=Tt[this.id],wt=kt.layers,ct,It,At=this.belowLookup={},Ot=!1;for(ct=0;ct1)for(ct=0;ct-1&&nt(Pt.originalEvent,wt,[kt.xaxis],[kt.yaxis],kt.id,Ot),zt.indexOf("event")>-1&&ht.click(wt,Pt.originalEvent)}}},ft.updateFx=function(Mt){var Tt=this,kt=Tt.map,wt=Tt.gd;if(Tt.isStatic)return;function ct(Pt){var zt=Tt.map.unproject(Pt);return[zt.lng,zt.lat]}var It=Mt.dragmode,At;At=function(Pt,zt){if(zt.isRect){var Dt=Pt.range={};Dt[Tt.id]=[ct([zt.xmin,zt.ymin]),ct([zt.xmax,zt.ymax])]}else{var Nt=Pt.lassoPoints={};Nt[Tt.id]=zt.map(ct)}};var Ot=Tt.dragOptions;Tt.dragOptions=xt.extendDeep(Ot||{},{dragmode:Mt.dragmode,element:Tt.div,gd:wt,plotinfo:{id:Tt.id,domain:Mt[Tt.id].domain,xaxis:Tt.xaxis,yaxis:Tt.yaxis,fillRangeItems:At},xaxes:[Tt.xaxis],yaxes:[Tt.yaxis],subplot:Tt.id}),kt.off("click",Tt.onClickInPanHandler),rt(It)||_(It)?(kt.dragPan.disable(),kt.on("zoomstart",Tt.clearOutline),Tt.dragOptions.prepFn=function(Pt,zt,Dt){tt(Pt,zt,Dt,Tt.dragOptions,It)},ut.init(Tt.dragOptions)):(kt.dragPan.enable(),kt.off("zoomstart",Tt.clearOutline),Tt.div.onmousedown=null,Tt.div.ontouchstart=null,Tt.div.removeEventListener("touchstart",Tt.div._ontouchstart),Tt.onClickInPanHandler=Tt.onClickInPanFn(Tt.dragOptions),kt.on("click",Tt.onClickInPanHandler))},ft.updateFramework=function(Mt){var Tt=Mt[this.id].domain,kt=Mt._size,wt=this.div.style;wt.width=kt.w*(Tt.x[1]-Tt.x[0])+"px",wt.height=kt.h*(Tt.y[1]-Tt.y[0])+"px",wt.left=kt.l+Tt.x[0]*kt.w+"px",wt.top=kt.t+(1-Tt.y[1])*kt.h+"px",this.xaxis._offset=kt.l+Tt.x[0]*kt.w,this.xaxis._length=kt.w*(Tt.x[1]-Tt.x[0]),this.yaxis._offset=kt.t+(1-Tt.y[1])*kt.h,this.yaxis._length=kt.h*(Tt.y[1]-Tt.y[0])},ft.updateLayers=function(Mt){var Tt=Mt[this.id],kt=Tt.layers,wt=this.layerList,ct;if(kt.length!==wt.length){for(ct=0;ct=ar.width-20?(Kt["text-anchor"]="start",Kt.x=5):(Kt["text-anchor"]="end",Kt.x=ar._paper.attr("width")-7),sr.attr(Kt);var or=sr.select(".js-link-to-tool"),tr=sr.select(".js-link-spacer"),cr=sr.select(".js-sourcelinks");jt._context.showSources&&jt._context.showSources(jt),jt._context.showLink&&Mt(jt,or),tr.text(or.text()&&cr.text()?" - ":"")}};function Mt(jt,ar){ar.text("");var sr=ar.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(jt._context.linkText+" "+String.fromCharCode(187));if(jt._context.sendData)sr.on("click",function(){yt.sendDataToCloud(jt)});else{var Zt=window.location.pathname.split("/"),Kt=window.location.search;sr.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+Zt[2].split(".")[0]+"/"+Zt[1]+Kt})}}yt.sendDataToCloud=function(jt){var ar=(window.PLOTLYENV||{}).BASE_URL||jt._context.plotlyServerURL;if(ar){jt.emit("plotly_beforeexport");var sr=it.select(jt).append("div").attr("id","hiddenform").style("display","none"),Zt=sr.append("form").attr({action:ar+"/external",method:"post",target:"_blank"}),Kt=Zt.append("input").attr({type:"text",name:"data"});return Kt.node().value=yt.graphJson(jt,!1,"keepdata"),Zt.node().submit(),sr.remove(),jt.emit("plotly_afterexport"),!1}};var Tt=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],kt=["year","month","dayMonth","dayMonthYear"];yt.supplyDefaults=function(jt,ar){var sr=ar&&ar.skipUpdateCalc,Zt=jt._fullLayout||{};if(Zt._skipDefaults){delete Zt._skipDefaults;return}var Kt=jt._fullLayout={},or=jt.layout||{},tr=jt._fullData||[],cr=jt._fullData=[],hr=jt.data||[],br=jt.calcdata||[],Tr=jt._context||{},Ir;jt._transitionData||yt.createTransitionData(jt),Kt._dfltTitle={plot:at(jt,"Click to enter Plot title"),x:at(jt,"Click to enter X axis title"),y:at(jt,"Click to enter Y axis title"),colorbar:at(jt,"Click to enter Colorscale title"),annotation:at(jt,"new text")},Kt._traceWord=at(jt,"trace");var Ar=It(jt,Tt);if(Kt._mapboxAccessToken=Tr.mapboxAccessToken,Zt._initialAutoSizeIsDone){var _r=Zt.width,Er=Zt.height;yt.supplyLayoutGlobalDefaults(or,Kt,Ar),or.width||(Kt.width=_r),or.height||(Kt.height=Er),yt.sanitizeMargins(Kt)}else{yt.supplyLayoutGlobalDefaults(or,Kt,Ar);var Rr=!or.width||!or.height,zr=Kt.autosize,Br=Tr.autosizable,kr=Rr&&(zr||Br);kr?yt.plotAutoSize(jt,or,Kt):Rr&&yt.sanitizeMargins(Kt),!zr&&Rr&&(or.width=Kt.width,or.height=Kt.height)}Kt._d3locale=At(Ar,Kt.separators),Kt._extraFormat=It(jt,kt),Kt._initialAutoSizeIsDone=!0,Kt._dataLength=hr.length,Kt._modules=[],Kt._visibleModules=[],Kt._basePlotModules=[];var Nr=Kt._subplots=ct(),Qr=Kt._splomAxes={x:{},y:{}},sn=Kt._splomSubplots={};Kt._splomGridDflt={},Kt._scatterStackOpts={},Kt._firstScatter={},Kt._alignmentOpts={},Kt._colorAxes={},Kt._requestRangeslider={},Kt._traceUids=wt(tr,hr),Kt._globalTransforms=(jt._context||{}).globalTransforms,yt.supplyDataDefaults(hr,cr,or,Kt);var un=Object.keys(Qr.x),qr=Object.keys(Qr.y);if(un.length>1&&qr.length>1){for(ut.getComponentMethod("grid","sizeDefaults")(or,Kt),Ir=0;Ir15&&qr.length>15&&Kt.shapes.length===0&&Kt.images.length===0,yt.linkSubplots(cr,Kt,tr,Zt),yt.cleanPlot(cr,Kt,tr,Zt);var En=!!(Zt._has&&Zt._has("gl2d")),Jr=!!(Kt._has&&Kt._has("gl2d")),Or=!!(Zt._has&&Zt._has("cartesian")),Ur=!!(Kt._has&&Kt._has("cartesian")),jr=Or||En,Gr=Ur||Jr;jr&&!Gr?Zt._bgLayer.remove():Gr&&!jr&&(Kt._shouldCreateBgLayer=!0),Zt._zoomlayer&&!jt._dragging&&ot({_fullLayout:Zt}),Ot(cr,Kt),ft(Kt,Zt),ut.getComponentMethod("colorscale","crossTraceDefaults")(cr,Kt),Kt._preGUI||(Kt._preGUI={}),Kt._tracePreGUI||(Kt._tracePreGUI={});var wr=Kt._tracePreGUI,vr={},Dr;for(Dr in wr)vr[Dr]="old";for(Ir=0;Ir0){var Tr=1-2*or;tr=Math.round(Tr*tr),cr=Math.round(Tr*cr)}}var Ir=yt.layoutAttributes.width.min,Ar=yt.layoutAttributes.height.min;tr1,Er=!sr.height&&Math.abs(Zt.height-cr)>1;(Er||_r)&&(_r&&(Zt.width=tr),Er&&(Zt.height=cr)),ar._initialAutoSize||(ar._initialAutoSize={width:tr,height:cr}),yt.sanitizeMargins(Zt)},yt.supplyLayoutModuleDefaults=function(jt,ar,sr,Zt){var Kt=ut.componentsRegistry,or=ar._basePlotModules,tr,cr,hr,br=ut.subplotsRegistry.cartesian;for(tr in Kt)hr=Kt[tr],hr.includeBasePlot&&hr.includeBasePlot(jt,ar);or.length||or.push(br),ar._has("cartesian")&&(ut.getComponentMethod("grid","contentDefaults")(jt,ar),br.finalizeSubplots(jt,ar));for(var Tr in ar._subplots)ar._subplots[Tr].sort(_.subplotSort);for(cr=0;cr1&&(sr.l/=zr,sr.r/=zr)}if(Ar){var Br=(sr.t+sr.b)/Ar;Br>1&&(sr.t/=Br,sr.b/=Br)}var kr=sr.xl!==void 0?sr.xl:sr.x,Nr=sr.xr!==void 0?sr.xr:sr.x,Qr=sr.yt!==void 0?sr.yt:sr.y,sn=sr.yb!==void 0?sr.yb:sr.y;_r[ar]={l:{val:kr,size:sr.l+Rr},r:{val:Nr,size:sr.r+Rr},b:{val:sn,size:sr.b+Rr},t:{val:Qr,size:sr.t+Rr}},Er[ar]=1}if(!Zt._replotting)return yt.doAutoMargin(jt)}};function Vt(jt){if("_redrawFromAutoMarginCount"in jt._fullLayout)return!1;var ar=st.list(jt,"",!0);for(var sr in ar)if(ar[sr].autoshift||ar[sr].shift)return!0;return!1}yt.doAutoMargin=function(jt){var ar=jt._fullLayout,sr=ar.width,Zt=ar.height;ar._size||(ar._size={}),$t(ar);var Kt=ar._size,or=ar.margin,tr={t:0,b:0,l:0,r:0},cr=_.extendFlat({},Kt),hr=or.l,br=or.r,Tr=or.t,Ir=or.b,Ar=ar._pushmargin,_r=ar._pushmarginIds,Er=ar.minreducedwidth,Rr=ar.minreducedheight;if(or.autoexpand!==!1){for(var zr in Ar)_r[zr]||delete Ar[zr];var Br=jt._fullLayout._reservedMargin;for(var kr in Br)for(var Nr in Br[kr]){var Qr=Br[kr][Nr];tr[Nr]=Math.max(tr[Nr],Qr)}Ar.base={l:{val:0,size:hr},r:{val:1,size:br},t:{val:1,size:Tr},b:{val:0,size:Ir}};for(var sn in tr){var un=0;for(var qr in Ar)qr!=="base"&&Et(Ar[qr][sn].size)&&(un=Ar[qr][sn].size>un?Ar[qr][sn].size:un);var Xr=Math.max(0,or[sn]-un);tr[sn]=Math.max(0,tr[sn]-Xr)}for(var ln in Ar){var mn=Ar[ln].l||{},pn=Ar[ln].b||{},En=mn.val,Jr=mn.size,Or=pn.val,Ur=pn.size,jr=sr-tr.r-tr.l,Gr=Zt-tr.t-tr.b;for(var wr in Ar){if(Et(Jr)&&Ar[wr].r){var vr=Ar[wr].r.val,Dr=Ar[wr].r.size;if(vr>En){var Sr=(Jr*vr+(Dr-jr)*En)/(vr-En),ur=(Dr*(1-En)+(Jr-jr)*(1-vr))/(vr-En);Sr+ur>hr+br&&(hr=Sr,br=ur)}}if(Et(Ur)&&Ar[wr].t){var xr=Ar[wr].t.val,Pr=Ar[wr].t.size;if(xr>Or){var Vr=(Ur*xr+(Pr-Gr)*Or)/(xr-Or),en=(Pr*(1-Or)+(Ur-Gr)*(1-xr))/(xr-Or);Vr+en>Ir+Tr&&(Ir=Vr,Tr=en)}}}}}var rn=_.constrain(sr-or.l-or.r,Ut,Er),Cn=_.constrain(Zt-or.t-or.b,Ht,Rr),xn=Math.max(0,sr-rn),fn=Math.max(0,Zt-Cn);if(xn){var bn=(hr+br)/xn;bn>1&&(hr/=bn,br/=bn)}if(fn){var Un=(Ir+Tr)/fn;Un>1&&(Ir/=Un,Tr/=Un)}if(Kt.l=Math.round(hr)+tr.l,Kt.r=Math.round(br)+tr.r,Kt.t=Math.round(Tr)+tr.t,Kt.b=Math.round(Ir)+tr.b,Kt.p=Math.round(or.pad),Kt.w=Math.round(sr)-Kt.l-Kt.r,Kt.h=Math.round(Zt)-Kt.t-Kt.b,!ar._replotting&&(yt.didMarginChange(cr,Kt)||Vt(jt))){"_redrawFromAutoMarginCount"in ar?ar._redrawFromAutoMarginCount++:ar._redrawFromAutoMarginCount=1;var _i=3*(1+Object.keys(_r).length);if(ar._redrawFromAutoMarginCount<_i)return ut.call("_doPlot",jt);ar._size=cr,_.warn("Too many auto-margin redraws.")}Xt(jt)};function Xt(jt){var ar=st.list(jt,"",!0);["_adjustTickLabelsOverflow","_hideCounterAxisInsideTickLabels"].forEach(function(sr){for(var Zt=0;Zt1)return!0}return!1},yt.graphJson=function(jt,ar,sr,Zt,Kt,or){(Kt&&ar&&!jt._fullData||Kt&&!ar&&!jt._fullLayout)&&yt.supplyDefaults(jt);var tr=Kt?jt._fullData:jt.data,cr=Kt?jt._fullLayout:jt.layout,hr=(jt._transitionData||{})._frames;function br(Ar,_r){if(typeof Ar=="function")return _r?"_function_":null;if(_.isPlainObject(Ar)){var Er={},Rr;return Object.keys(Ar).sort().forEach(function(Nr){if(["_","["].indexOf(Nr.charAt(0))===-1){if(typeof Ar[Nr]=="function"){_r&&(Er[Nr]="_function");return}if(sr==="keepdata"){if(Nr.substr(Nr.length-3)==="src")return}else if(sr==="keepstream"){if(Rr=Ar[Nr+"src"],typeof Rr=="string"&&Rr.indexOf(":")>0&&!_.isPlainObject(Ar.stream))return}else if(sr!=="keepall"&&(Rr=Ar[Nr+"src"],typeof Rr=="string"&&Rr.indexOf(":")>0))return;Er[Nr]=br(Ar[Nr],_r)}}),Er}var zr=Array.isArray(Ar),Br=_.isTypedArray(Ar);if((zr||Br)&&Ar.dtype&&Ar.shape){var kr=Ar.bdata;return br({dtype:Ar.dtype,shape:Ar.shape,bdata:_.isArrayBuffer(kr)?mt.encode(kr):kr},_r)}return zr?Ar.map(function(Nr){return br(Nr,_r)}):Br?_.simpleMap(Ar,_.identity):_.isJSDate(Ar)?_.ms2DateTimeLocal(+Ar):Ar}var Tr={data:(tr||[]).map(function(Ar){var _r=br(Ar);return ar&&delete _r.fit,_r})};if(!ar&&(Tr.layout=br(cr),Kt)){var Ir=cr._size;Tr.layout.computed={margin:{b:Ir.b,l:Ir.l,r:Ir.r,t:Ir.t}}}return hr&&(Tr.frames=br(hr)),or&&(Tr.config=br(jt._context,!0)),Zt==="object"?Tr:JSON.stringify(Tr)},yt.modifyFrames=function(jt,ar){var sr,Zt,Kt,or=jt._transitionData._frames,tr=jt._transitionData._frameHash;for(sr=0;sr0&&(jt._transitioningWithDuration=!0),jt._transitionData._interruptCallbacks.push(function(){Zt=!0}),sr.redraw&&jt._transitionData._interruptCallbacks.push(function(){return ut.call("redraw",jt)}),jt._transitionData._interruptCallbacks.push(function(){jt.emit("plotly_transitioninterrupted",[])});var Ar=0,_r=0;function Er(){return Ar++,function(){_r++,!Zt&&_r===Ar&&cr(Ir)}}sr.runFn(Er),setTimeout(Er())})}function cr(Ir){if(jt._transitionData)return or(jt._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(sr.redraw)return ut.call("redraw",jt)}).then(function(){jt._transitioning=!1,jt._transitioningWithDuration=!1,jt.emit("plotly_transitioned",[])}).then(Ir)}function hr(){if(jt._transitionData)return jt._transitioning=!1,Kt(jt._transitionData._interruptCallbacks)}var br=[yt.previousPromises,hr,sr.prepareFn,yt.rehover,yt.reselect,tr],Tr=_.syncOrAsync(br,jt);return(!Tr||!Tr.then)&&(Tr=Promise.resolve()),Tr.then(function(){return jt})}yt.doCalcdata=function(jt,ar){var sr=st.list(jt),Zt=jt._fullData,Kt=jt._fullLayout,or,tr,cr,hr,br=new Array(Zt.length),Tr=(jt.calcdata||[]).slice();for(jt.calcdata=br,Kt._numBoxes=0,Kt._numViolins=0,Kt._violinScaleGroupStats={},jt._hmpixcount=0,jt._hmlumcount=0,Kt._piecolormap={},Kt._sunburstcolormap={},Kt._treemapcolormap={},Kt._iciclecolormap={},Kt._funnelareacolormap={},cr=0;cr=0;hr--)if(sn[hr].enabled){or._indexToPoints=sn[hr]._indexToPoints;break}tr&&tr.calc&&(Qr=tr.calc(jt,or))}(!Array.isArray(Qr)||!Qr[0])&&(Qr=[{x:tt,y:tt}]),Qr[0].t||(Qr[0].t={}),Qr[0].trace=or,br[kr]=Qr}}for(Yt(sr,Zt,Kt),cr=0;cr0?kt:1/0},_t=et(yt,St),Mt=it.mod(_t+1,yt.length);return[yt[_t],yt[Mt]]}function vt(at){return Math.abs(at)>1e-10?at:0}function dt(at,yt,St){yt=yt||0,St=St||0;for(var _t=at.length,Mt=new Array(_t),Tt=0;Tt<_t;Tt++){var kt=at[Tt];Mt[Tt]=[yt+kt[0],St-kt[1]]}return Mt}function bt(at,yt,St,_t,Mt,Tt){var kt=st(at,yt,St,_t);return"M"+dt(kt,Mt,Tt).join("L")}function ft(at,yt,St,_t,Mt,Tt,kt){var wt,ct;atAr?(_r=or,Er=or*Ar,Br=(tr-Er)/jt.h/2,Rr=[Zt[0],Zt[1]],zr=[Kt[0]+Br,Kt[1]-Br]):(_r=tr/Ar,Er=tr,Br=(or-_r)/jt.w/2,Rr=[Zt[0]+Br,Zt[1]-Br],zr=[Kt[0],Kt[1]]),Yt.xLength2=_r,Yt.yLength2=Er,Yt.xDomain2=Rr,Yt.yDomain2=zr;var kr=Yt.xOffset2=jt.l+jt.w*Rr[0],Nr=Yt.yOffset2=jt.t+jt.h*(1-zr[1]),Qr=Yt.radius=_r/br,sn=Yt.innerRadius=Yt.getHole(Jt)*Qr,un=Yt.cx=kr-Qr*hr[0],qr=Yt.cy=Nr+Qr*hr[3],Xr=Yt.cxx=un-kr,ln=Yt.cyy=qr-Nr,mn=ar.side,pn;mn==="counterclockwise"?(pn=mn,mn="top"):mn==="clockwise"&&(pn=mn,mn="bottom"),Yt.radialAxis=Yt.mockAxis(lr,Jt,ar,{_id:"x",side:mn,_trueSide:pn,domain:[sn/jt.w,Qr/jt.w]}),Yt.angularAxis=Yt.mockAxis(lr,Jt,sr,{side:"right",domain:[0,Math.PI],autorange:!1}),Yt.doAutoRange(lr,Jt),Yt.updateAngularAxis(lr,Jt),Yt.updateRadialAxis(lr,Jt),Yt.updateRadialAxisTitle(lr,Jt),Yt.xaxis=Yt.mockCartesianAxis(lr,Jt,{_id:"x",domain:Rr}),Yt.yaxis=Yt.mockCartesianAxis(lr,Jt,{_id:"y",domain:zr});var En=Yt.pathSubplot();Yt.clipPaths.forTraces.select("path").attr("d",En).attr("transform",ut(Xr,ln)),rr.frontplot.attr("transform",ut(kr,Nr)).call(j.setClipUrl,Yt._hasClipOnAxisFalse?null:Yt.clipIds.forTraces,Yt.gd),rr.bg.attr("d",En).attr("transform",ut(un,qr)).call(ht.fill,Jt.bgcolor)},Ht.mockAxis=function(lr,Jt,Yt,rr){var jt=Et.extendFlat({},Yt,rr);return st(jt,Jt,lr),jt},Ht.mockCartesianAxis=function(lr,Jt,Yt){var rr=this,jt=rr.isSmith,ar=Yt._id,sr=Et.extendFlat({type:"linear"},Yt);tt(sr,lr);var Zt={x:[0,2],y:[1,3]};return sr.setRange=function(){var Kt=rr.sectorBBox,or=Zt[ar],tr=rr.radialAxis._rl,cr=(tr[1]-tr[0])/(1-rr.getHole(Jt));sr.range=[Kt[or[0]]*cr,Kt[or[1]]*cr]},sr.isPtWithinRange=ar==="x"&&!jt?function(Kt){return rr.isPtInside(Kt)}:function(){return!0},sr.setRange(),sr.setScale(),sr},Ht.doAutoRange=function(lr,Jt){var Yt=this,rr=Yt.gd,jt=Yt.radialAxis,ar=Yt.getRadial(Jt);ot(rr,jt);var sr=jt.range;if(ar.range=sr.slice(),ar._input.range=sr.slice(),jt._rl=[jt.r2l(sr[0],null,"gregorian"),jt.r2l(sr[1],null,"gregorian")],jt.minallowed!==void 0){var Zt=jt.r2l(jt.minallowed);jt._rl[0]>jt._rl[1]?jt._rl[1]=Math.max(jt._rl[1],Zt):jt._rl[0]=Math.max(jt._rl[0],Zt)}if(jt.maxallowed!==void 0){var Kt=jt.r2l(jt.maxallowed);jt._rl[0]90&&tr<=270&&(cr.tickangle=180);var Tr=br?function(Qr){var sn=Pt(Yt,It([Qr.x,0]));return ut(sn[0]-Zt,sn[1]-Kt)}:function(Qr){return ut(cr.l2p(Qr.x)+sr,0)},Ir=br?function(Qr){return Ot(Yt,Qr.x,-1/0,1/0)}:function(Qr){return Yt.pathArc(cr.r2p(Qr.x)+sr)},Ar=Vt(or);if(Yt.radialTickLayout!==Ar&&(jt["radial-axis"].selectAll(".xtick").remove(),Yt.radialTickLayout=Ar),hr){cr.setScale();var _r=0,Er=br?(cr.tickvals||[]).filter(function(Qr){return Qr>=0}).map(function(Qr){return rt.tickText(cr,Qr,!0,!1)}):rt.calcTicks(cr),Rr=br?Er:rt.clipEnds(cr,Er),zr=rt.getTickSigns(cr)[2];br&&((cr.ticks==="top"&&cr.side==="bottom"||cr.ticks==="bottom"&&cr.side==="top")&&(zr=-zr),cr.ticks==="top"&&cr.side==="top"&&(_r=-cr.ticklen),cr.ticks==="bottom"&&cr.side==="bottom"&&(_r=cr.ticklen)),rt.drawTicks(rr,cr,{vals:Er,layer:jt["radial-axis"],path:rt.makeTickPath(cr,0,zr),transFn:Tr,crisp:!1}),rt.drawGrid(rr,cr,{vals:Rr,layer:jt["radial-grid"],path:Ir,transFn:Et.noop,crisp:!1}),rt.drawLabels(rr,cr,{vals:Er,layer:jt["radial-axis"],transFn:Tr,labelFns:rt.makeLabelFns(cr,_r)})}var Br=Yt.radialAxisAngle=Yt.vangles?$t(qt(Nt(or.angle),Yt.vangles)):or.angle,kr=ut(Zt,Kt),Nr=kr+mt(-Br);er(jt["radial-axis"],hr&&(or.showticklabels||or.ticks),{transform:Nr}),er(jt["radial-grid"],hr&&or.showgrid,{transform:br?"":kr}),er(jt["radial-line"].select("line"),hr&&or.showline,{x1:br?-ar:sr,y1:0,x2:ar,y2:0,transform:Nr}).attr("stroke-width",or.linewidth).call(ht.stroke,or.linecolor)},Ht.updateRadialAxisTitle=function(lr,Jt,Yt){if(!this.isSmith){var rr=this,jt=rr.gd,ar=rr.radius,sr=rr.cx,Zt=rr.cy,Kt=rr.getRadial(Jt),or=rr.id+"title",tr=0;if(Kt.title){var cr=j.bBox(rr.layers["radial-axis"].node()).height,hr=Kt.title.font.size,br=Kt.side;tr=br==="top"?hr:br==="counterclockwise"?-(cr+hr*.4):cr+hr*.8}var Tr=Yt!==void 0?Yt:rr.radialAxisAngle,Ir=Nt(Tr),Ar=Math.cos(Ir),_r=Math.sin(Ir),Er=sr+ar/2*Ar+tr*_r,Rr=Zt-ar/2*_r+tr*Ar;rr.layers["radial-axis-title"]=bt.draw(jt,or,{propContainer:Kt,propName:rr.id+".radialaxis.title",placeholder:zt(jt,"Click to enter radial axis title"),attributes:{x:Er,y:Rr,"text-anchor":"middle"},transform:{rotate:-Tr}})}},Ht.updateAngularAxis=function(lr,Jt){var Yt=this,rr=Yt.gd,jt=Yt.layers,ar=Yt.radius,sr=Yt.innerRadius,Zt=Yt.cx,Kt=Yt.cy,or=Yt.getAngular(Jt),tr=Yt.angularAxis,cr=Yt.isSmith;cr||(Yt.fillViewInitialKey("angularaxis.rotation",or.rotation),tr.setGeometry(),tr.setScale());var hr=cr?function(sn){var un=Pt(Yt,It([0,sn.x]));return Math.atan2(un[0]-Zt,un[1]-Kt)-Math.PI/2}:function(sn){return tr.t2g(sn.x)};tr.type==="linear"&&tr.thetaunit==="radians"&&(tr.tick0=$t(tr.tick0),tr.dtick=$t(tr.dtick));var br=function(sn){return ut(Zt+ar*Math.cos(sn),Kt-ar*Math.sin(sn))},Tr=cr?function(sn){var un=Pt(Yt,It([0,sn.x]));return ut(un[0],un[1])}:function(sn){return br(hr(sn))},Ir=cr?function(sn){var un=Pt(Yt,It([0,sn.x])),qr=Math.atan2(un[0]-Zt,un[1]-Kt)-Math.PI/2;return ut(un[0],un[1])+mt(-$t(qr))}:function(sn){var un=hr(sn);return br(un)+mt(-$t(un))},Ar=cr?function(sn){return At(Yt,sn.x,0,1/0)}:function(sn){var un=hr(sn),qr=Math.cos(un),Xr=Math.sin(un);return"M"+[Zt+sr*qr,Kt-sr*Xr]+"L"+[Zt+ar*qr,Kt-ar*Xr]},_r=rt.makeLabelFns(tr,0),Er=_r.labelStandoff,Rr={};Rr.xFn=function(sn){var un=hr(sn);return Math.cos(un)*Er},Rr.yFn=function(sn){var un=hr(sn),qr=Math.sin(un)>0?.2:1;return-Math.sin(un)*(Er+sn.fontSize*qr)+Math.abs(Math.cos(un))*(sn.fontSize*Tt)},Rr.anchorFn=function(sn){var un=hr(sn),qr=Math.cos(un);return Math.abs(qr)<.1?"middle":qr>0?"start":"end"},Rr.heightFn=function(sn,un,qr){var Xr=hr(sn);return-.5*(1+Math.sin(Xr))*qr};var zr=Vt(or);Yt.angularTickLayout!==zr&&(jt["angular-axis"].selectAll("."+tr._id+"tick").remove(),Yt.angularTickLayout=zr);var Br=cr?[1/0].concat(tr.tickvals||[]).map(function(sn){return rt.tickText(tr,sn,!0,!1)}):rt.calcTicks(tr);cr&&(Br[0].text="∞",Br[0].fontSize*=1.75);var kr;if(Jt.gridshape==="linear"?(kr=Br.map(hr),Et.angleDelta(kr[0],kr[1])<0&&(kr=kr.slice().reverse())):kr=null,Yt.vangles=kr,tr.type==="category"&&(Br=Br.filter(function(sn){return Et.isAngleInsideSector(hr(sn),Yt.sectorInRad)})),tr.visible){var Nr=tr.ticks==="inside"?-1:1,Qr=(tr.linewidth||1)/2;rt.drawTicks(rr,tr,{vals:Br,layer:jt["angular-axis"],path:"M"+Nr*Qr+",0h"+Nr*tr.ticklen,transFn:Ir,crisp:!1}),rt.drawGrid(rr,tr,{vals:Br,layer:jt["angular-grid"],path:Ar,transFn:Et.noop,crisp:!1}),rt.drawLabels(rr,tr,{vals:Br,layer:jt["angular-axis"],repositionOnUpdate:!0,transFn:Tr,labelFns:Rr})}er(jt["angular-line"].select("path"),or.showline,{d:Yt.pathSubplot(),transform:ut(Zt,Kt)}).attr("stroke-width",or.linewidth).call(ht.stroke,or.linecolor)},Ht.updateFx=function(lr,Jt){if(!this.gd._context.staticPlot){var Yt=!this.isSmith;Yt&&(this.updateAngularDrag(lr),this.updateRadialDrag(lr,Jt,0),this.updateRadialDrag(lr,Jt,1)),this.updateHoverAndMainDrag(lr)}},Ht.updateHoverAndMainDrag=function(lr){var Jt=this,Yt=Jt.isSmith,rr=Jt.gd,jt=Jt.layers,ar=lr._zoomlayer,sr=kt.MINZOOM,Zt=kt.OFFEDGE,Kt=Jt.radius,or=Jt.innerRadius,tr=Jt.cx,cr=Jt.cy,hr=Jt.cxx,br=Jt.cyy,Tr=Jt.sectorInRad,Ir=Jt.vangles,Ar=Jt.radialAxis,_r=wt.clampTiny,Er=wt.findXYatLength,Rr=wt.findEnclosingVertexAngles,zr=kt.cornerHalfWidth,Br=kt.cornerLen/2,kr,Nr,Qr=nt.makeDragger(jt,"path","maindrag",lr.dragmode===!1?"none":"crosshair");it.select(Qr).attr("d",Jt.pathSubplot()).attr("transform",ut(tr,cr)),Qr.onmousemove=function(fn){dt.hover(rr,fn,Jt.id),rr._fullLayout._lasthover=Qr,rr._fullLayout._hoversubplot=Jt.id},Qr.onmouseout=function(fn){rr._dragging||vt.unhover(rr,fn)};var sn={element:Qr,gd:rr,subplot:Jt.id,plotinfo:{id:Jt.id,xaxis:Jt.xaxis,yaxis:Jt.yaxis},xaxes:[Jt.xaxis],yaxes:[Jt.yaxis]},un,qr,Xr,ln,mn,pn,En,Jr,Or;function Ur(fn,bn){return Math.sqrt(fn*fn+bn*bn)}function jr(fn,bn){return Ur(fn-hr,bn-br)}function Gr(fn,bn){return Math.atan2(br-bn,fn-hr)}function wr(fn,bn){return[fn*Math.cos(bn),fn*Math.sin(-bn)]}function vr(fn,bn){if(fn===0)return Jt.pathSector(2*zr);var Un=Br/fn,_i=bn-Un,yn=bn+Un,Kn=Math.max(0,Math.min(fn,Kt)),Jn=Kn-zr,so=Kn+zr;return"M"+wr(Jn,_i)+"A"+[Jn,Jn]+" 0,0,0 "+wr(Jn,yn)+"L"+wr(so,yn)+"A"+[so,so]+" 0,0,1 "+wr(so,_i)+"Z"}function Dr(fn,bn,Un){if(fn===0)return Jt.pathSector(2*zr);var _i=wr(fn,bn),yn=wr(fn,Un),Kn=_r((_i[0]+yn[0])/2),Jn=_r((_i[1]+yn[1])/2),so,ba;if(Kn&&Jn){var An=Jn/Kn,hn=-1/An,wn=Er(zr,An,Kn,Jn);so=Er(Br,hn,wn[0][0],wn[0][1]),ba=Er(Br,hn,wn[1][0],wn[1][1])}else{var In,Ln;Jn?(In=Br,Ln=zr):(In=zr,Ln=Br),so=[[Kn-In,Jn-Ln],[Kn+In,Jn-Ln]],ba=[[Kn-In,Jn+Ln],[Kn+In,Jn+Ln]]}return"M"+so.join("L")+"L"+ba.reverse().join("L")+"Z"}function Sr(){Xr=null,ln=null,mn=Jt.pathSubplot(),pn=!1;var fn=rr._fullLayout[Jt.id];En=xt(fn.bgcolor).getLuminance(),Jr=nt.makeZoombox(ar,En,tr,cr,mn),Jr.attr("fill-rule","evenodd"),Or=nt.makeCorners(ar,tr,cr),yt(rr)}function ur(fn,bn){return bn=Math.max(Math.min(bn,Kt),or),fnsr?(fn-1&&fn===1&&at(bn,rr,[Jt.xaxis],[Jt.yaxis],Jt.id,sn),Un.indexOf("event")>-1&&dt.click(rr,bn,Jt.id)}sn.prepFn=function(fn,bn,Un){var _i=rr._fullLayout.dragmode,yn=Qr.getBoundingClientRect();rr._fullLayout._calcInverseTransform(rr);var Kn=rr._fullLayout._invTransform;kr=rr._fullLayout._invScaleX,Nr=rr._fullLayout._invScaleY;var Jn=Et.apply3DTransform(Kn)(bn-yn.left,Un-yn.top);if(un=Jn[0],qr=Jn[1],Ir){var so=wt.findPolygonOffset(Kt,Tr[0],Tr[1],Ir);un+=hr+so[0],qr+=br+so[1]}switch(_i){case"zoom":sn.clickFn=xn,Yt||(Ir?sn.moveFn=en:sn.moveFn=Pr,sn.doneFn=rn,Sr());break;case"select":case"lasso":ft(fn,bn,Un,sn,_i);break}},vt.init(sn)},Ht.updateRadialDrag=function(lr,Jt,Yt){var rr=this,jt=rr.gd,ar=rr.layers,sr=rr.radius,Zt=rr.innerRadius,Kt=rr.cx,or=rr.cy,tr=rr.radialAxis,cr=kt.radialDragBoxSize,hr=cr/2;if(!tr.visible)return;var br=Nt(rr.radialAxisAngle),Tr=tr._rl,Ir=Tr[0],Ar=Tr[1],_r=Tr[Yt],Er=.75*(Tr[1]-Tr[0])/(1-rr.getHole(Jt))/sr,Rr,zr,Br;Yt?(Rr=Kt+(sr+hr)*Math.cos(br),zr=or-(sr+hr)*Math.sin(br),Br="radialdrag"):(Rr=Kt+(Zt-hr)*Math.cos(br),zr=or-(Zt-hr)*Math.sin(br),Br="radialdrag-inner");var kr=nt.makeRectDragger(ar,Br,"crosshair",-hr,-hr,cr,cr),Nr={element:kr,gd:jt};lr.dragmode===!1&&(Nr.dragmode=!1),er(it.select(kr),tr.visible&&Zt0!=(Yt?un>Ir:un=90||jt>90&&ar>=450?br=1:Zt<=0&&or<=0?br=0:br=Math.max(Zt,or),jt<=180&&ar>=180||jt>180&&ar>=540?tr=-1:sr>=0&&Kt>=0?tr=0:tr=Math.min(sr,Kt),jt<=270&&ar>=270||jt>270&&ar>=630?cr=-1:Zt>=0&&or>=0?cr=0:cr=Math.min(Zt,or),ar>=360?hr=1:sr<=0&&Kt<=0?hr=0:hr=Math.max(sr,Kt),[tr,cr,hr,br]}function qt(lr,Jt){var Yt=function(jt){return Et.angleDist(lr,jt)},rr=Et.findIndexOfMin(Jt,Yt);return Jt[rr]}function er(lr,Jt,Yt){return Jt?(lr.attr("display",null),lr.attr(Yt)):lr&&lr.attr("display","none"),lr}},57696:function(Ct,Rt,o){var it=o(3400),xt=o(78344),et=it.deg2rad,Et=it.rad2deg;Ct.exports=function(rt,tt,st){switch(xt(rt,st),rt._id){case"x":case"radialaxis":mt(rt,tt);break;case"angularaxis":j(rt,tt);break}};function mt(_,rt){var tt=rt._subplot;_.setGeometry=function(){var st=_._rl[0],ot=_._rl[1],nt=tt.innerRadius,vt=(tt.radius-nt)/(ot-st),dt=nt/vt,bt=st>ot?function(ft){return ft<=0}:function(ft){return ft>=0};_.c2g=function(ft){var at=_.c2l(ft)-st;return(bt(at)?at:0)+dt},_.g2c=function(ft){return _.l2c(ft+st-dt)},_.g2p=function(ft){return ft*vt},_.c2p=function(ft){return _.g2p(_.c2g(ft))}}}function ut(_,rt){return rt==="degrees"?et(_):_}function ht(_,rt){return rt==="degrees"?Et(_):_}function j(_,rt){var tt=_.type;if(tt==="linear"){var st=_.d2c,ot=_.c2d;_.d2c=function(nt,vt){return ut(st(nt),vt)},_.c2d=function(nt,vt){return ot(ht(nt,vt))}}_.makeCalcdata=function(nt,vt){var dt=nt[vt],bt=nt._length,ft,at,yt=function(kt){return _.d2c(kt,nt.thetaunit)};if(dt)for(ft=new Array(bt),at=0;at0?1:0}function o(mt){var ut=mt[0],ht=mt[1];if(!isFinite(ut)||!isFinite(ht))return[1,0];var j=(ut+1)*(ut+1)+ht*ht;return[(ut*ut+ht*ht-1)/j,2*ht/j]}function it(mt,ut){var ht=ut[0],j=ut[1];return[ht*mt.radius+mt.cx,-j*mt.radius+mt.cy]}function xt(mt,ut){return ut*mt.radius}function et(mt,ut,ht,j){var _=it(mt,o([ht,ut])),rt=_[0],tt=_[1],st=it(mt,o([j,ut])),ot=st[0],nt=st[1];if(ut===0)return["M"+rt+","+tt,"L"+ot+","+nt].join(" ");var vt=xt(mt,1/Math.abs(ut));return["M"+rt+","+tt,"A"+vt+","+vt+" 0 0,"+(ut<0?1:0)+" "+ot+","+nt].join(" ")}function Et(mt,ut,ht,j){var _=xt(mt,1/(ut+1)),rt=it(mt,o([ut,ht])),tt=rt[0],st=rt[1],ot=it(mt,o([ut,j])),nt=ot[0],vt=ot[1];if(Rt(ht)!==Rt(j)){var dt=it(mt,o([ut,0])),bt=dt[0],ft=dt[1];return["M"+tt+","+st,"A"+_+","+_+" 0 0,"+(00){for(var ut=[],ht=0;ht=at&&(Tt.min=0,kt.min=0,wt.min=0,nt.aaxis&&delete nt.aaxis.min,nt.baxis&&delete nt.baxis.min,nt.caxis&&delete nt.caxis.min)}function ot(nt,vt,dt,bt){var ft=rt[vt._name];function at(ct,It){return et.coerce(nt,vt,ft,ct,It)}at("uirevision",bt.uirevision),vt.type="linear";var yt=at("color"),St=yt!==ft.color.dflt?yt:dt.font.color,_t=vt._name,Mt=_t.charAt(0).toUpperCase(),Tt="Component "+Mt,kt=at("title.text",Tt);vt._hovertitle=kt===Tt?kt:Mt,et.coerceFont(at,"title.font",{weight:dt.font.weight,style:dt.font.style,variant:dt.font.variant,family:dt.font.family,size:et.bigFont(dt.font.size),color:St}),at("min"),j(nt,vt,at,"linear"),ut(nt,vt,at,"linear"),mt(nt,vt,at,"linear",{noAutotickangles:!0}),ht(nt,vt,at,{outerTicks:!0});var wt=at("showticklabels");wt&&(et.coerceFont(at,"tickfont",{weight:dt.font.weight,style:dt.font.style,variant:dt.font.variant,family:dt.font.family,size:dt.font.size,color:St}),at("tickangle"),at("tickformat")),_(nt,vt,at,{dfltColor:yt,bgColor:dt.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:ft}),at("hoverformat"),at("layer")}},24696:function(Ct,Rt,o){var it=o(33428),xt=o(49760),et=o(24040),Et=o(3400),mt=Et.strTranslate,ut=Et._,ht=o(76308),j=o(43616),_=o(78344),rt=o(92880).extendFlat,tt=o(7316),st=o(54460),ot=o(86476),nt=o(93024),vt=o(72760),dt=vt.freeMode,bt=vt.rectMode,ft=o(81668),at=o(22676).prepSelect,yt=o(22676).selectOnClick,St=o(22676).clearOutline,_t=o(22676).clearSelectionsCache,Mt=o(33816);function Tt($t,Ut){this.id=$t.id,this.graphDiv=$t.graphDiv,this.init(Ut),this.makeFramework(Ut),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}Ct.exports=Tt;var kt=Tt.prototype;kt.init=function($t){this.container=$t._ternarylayer,this.defs=$t._defs,this.layoutId=$t._uid,this.traceHash={},this.layers={}},kt.plot=function($t,Ut){var Ht=this,Vt=Ut[Ht.id],Xt=Ut._size;Ht._hasClipOnAxisFalse=!1;for(var qt=0;qt<$t.length;qt++){var er=$t[qt][0].trace;if(er.cliponaxis===!1){Ht._hasClipOnAxisFalse=!0;break}}Ht.updateLayers(Vt),Ht.adjustLayout(Vt,Xt),tt.generalUpdatePerTraceModule(Ht.graphDiv,Ht,$t,Vt),Ht.layers.plotbg.select("path").call(ht.fill,Vt.bgcolor)},kt.makeFramework=function($t){var Ut=this,Ht=Ut.graphDiv,Vt=$t[Ut.id],Xt=Ut.clipId="clip"+Ut.layoutId+Ut.id,qt=Ut.clipIdRelative="clip-relative"+Ut.layoutId+Ut.id;Ut.clipDef=Et.ensureSingleById($t._clips,"clipPath",Xt,function(er){er.append("path").attr("d","M0,0Z")}),Ut.clipDefRelative=Et.ensureSingleById($t._clips,"clipPath",qt,function(er){er.append("path").attr("d","M0,0Z")}),Ut.plotContainer=Et.ensureSingle(Ut.container,"g",Ut.id),Ut.updateLayers(Vt),j.setClipUrl(Ut.layers.backplot,Xt,Ht),j.setClipUrl(Ut.layers.grids,Xt,Ht)},kt.updateLayers=function($t){var Ut=this,Ht=Ut.layers,Vt=["draglayer","plotbg","backplot","grids"];$t.aaxis.layer==="below traces"&&Vt.push("aaxis","aline"),$t.baxis.layer==="below traces"&&Vt.push("baxis","bline"),$t.caxis.layer==="below traces"&&Vt.push("caxis","cline"),Vt.push("frontplot"),$t.aaxis.layer==="above traces"&&Vt.push("aaxis","aline"),$t.baxis.layer==="above traces"&&Vt.push("baxis","bline"),$t.caxis.layer==="above traces"&&Vt.push("caxis","cline");var Xt=Ut.plotContainer.selectAll("g.toplevel").data(Vt,String),qt=["agrid","bgrid","cgrid"];Xt.enter().append("g").attr("class",function(er){return"toplevel "+er}).each(function(er){var lr=it.select(this);Ht[er]=lr,er==="frontplot"?lr.append("g").classed("scatterlayer",!0):er==="backplot"?lr.append("g").classed("maplayer",!0):er==="plotbg"?lr.append("path").attr("d","M0,0Z"):er==="aline"||er==="bline"||er==="cline"?lr.append("path"):er==="grids"&&qt.forEach(function(Jt){Ht[Jt]=lr.append("g").classed("grid "+Jt,!0)})}),Xt.order()};var wt=Math.sqrt(4/3);kt.adjustLayout=function($t,Ut){var Ht=this,Vt=$t.domain,Xt=(Vt.x[0]+Vt.x[1])/2,qt=(Vt.y[0]+Vt.y[1])/2,er=Vt.x[1]-Vt.x[0],lr=Vt.y[1]-Vt.y[0],Jt=er*Ut.w,Yt=lr*Ut.h,rr=$t.sum,jt=$t.aaxis.min,ar=$t.baxis.min,sr=$t.caxis.min,Zt,Kt,or,tr,cr,hr;Jt>wt*Yt?(tr=Yt,or=tr*wt):(or=Jt,tr=or/wt),cr=er*or/Jt,hr=lr*tr/Yt,Zt=Ut.l+Ut.w*Xt-or/2,Kt=Ut.t+Ut.h*(1-qt)-tr/2,Ht.x0=Zt,Ht.y0=Kt,Ht.w=or,Ht.h=tr,Ht.sum=rr,Ht.xaxis={type:"linear",range:[jt+2*sr-rr,rr-jt-2*ar],domain:[Xt-cr/2,Xt+cr/2],_id:"x"},_(Ht.xaxis,Ht.graphDiv._fullLayout),Ht.xaxis.setScale(),Ht.xaxis.isPtWithinRange=function(Nr){return Nr.a>=Ht.aaxis.range[0]&&Nr.a<=Ht.aaxis.range[1]&&Nr.b>=Ht.baxis.range[1]&&Nr.b<=Ht.baxis.range[0]&&Nr.c>=Ht.caxis.range[1]&&Nr.c<=Ht.caxis.range[0]},Ht.yaxis={type:"linear",range:[jt,rr-ar-sr],domain:[qt-hr/2,qt+hr/2],_id:"y"},_(Ht.yaxis,Ht.graphDiv._fullLayout),Ht.yaxis.setScale(),Ht.yaxis.isPtWithinRange=function(){return!0};var br=Ht.yaxis.domain[0],Tr=Ht.aaxis=rt({},$t.aaxis,{range:[jt,rr-ar-sr],side:"left",tickangle:(+$t.aaxis.tickangle||0)-30,domain:[br,br+hr*wt],anchor:"free",position:0,_id:"y",_length:or});_(Tr,Ht.graphDiv._fullLayout),Tr.setScale();var Ir=Ht.baxis=rt({},$t.baxis,{range:[rr-jt-sr,ar],side:"bottom",domain:Ht.xaxis.domain,anchor:"free",position:0,_id:"x",_length:or});_(Ir,Ht.graphDiv._fullLayout),Ir.setScale();var Ar=Ht.caxis=rt({},$t.caxis,{range:[rr-jt-ar,sr],side:"right",tickangle:(+$t.caxis.tickangle||0)+30,domain:[br,br+hr*wt],anchor:"free",position:0,_id:"y",_length:or});_(Ar,Ht.graphDiv._fullLayout),Ar.setScale();var _r="M"+Zt+","+(Kt+tr)+"h"+or+"l-"+or/2+",-"+tr+"Z";Ht.clipDef.select("path").attr("d",_r),Ht.layers.plotbg.select("path").attr("d",_r);var Er="M0,"+tr+"h"+or+"l-"+or/2+",-"+tr+"Z";Ht.clipDefRelative.select("path").attr("d",Er);var Rr=mt(Zt,Kt);Ht.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Rr),Ht.clipDefRelative.select("path").attr("transform",null);var zr=mt(Zt-Ir._offset,Kt+tr);Ht.layers.baxis.attr("transform",zr),Ht.layers.bgrid.attr("transform",zr);var Br=mt(Zt+or/2,Kt)+"rotate(30)"+mt(0,-Tr._offset);Ht.layers.aaxis.attr("transform",Br),Ht.layers.agrid.attr("transform",Br);var kr=mt(Zt+or/2,Kt)+"rotate(-30)"+mt(0,-Ar._offset);Ht.layers.caxis.attr("transform",kr),Ht.layers.cgrid.attr("transform",kr),Ht.drawAxes(!0),Ht.layers.aline.select("path").attr("d",Tr.showline?"M"+Zt+","+(Kt+tr)+"l"+or/2+",-"+tr:"M0,0").call(ht.stroke,Tr.linecolor||"#000").style("stroke-width",(Tr.linewidth||0)+"px"),Ht.layers.bline.select("path").attr("d",Ir.showline?"M"+Zt+","+(Kt+tr)+"h"+or:"M0,0").call(ht.stroke,Ir.linecolor||"#000").style("stroke-width",(Ir.linewidth||0)+"px"),Ht.layers.cline.select("path").attr("d",Ar.showline?"M"+(Zt+or/2)+","+Kt+"l"+or/2+","+tr:"M0,0").call(ht.stroke,Ar.linecolor||"#000").style("stroke-width",(Ar.linewidth||0)+"px"),Ht.graphDiv._context.staticPlot||Ht.initInteractions(),j.setClipUrl(Ht.layers.frontplot,Ht._hasClipOnAxisFalse?null:Ht.clipId,Ht.graphDiv)},kt.drawAxes=function($t){var Ut=this,Ht=Ut.graphDiv,Vt=Ut.id.substr(7)+"title",Xt=Ut.layers,qt=Ut.aaxis,er=Ut.baxis,lr=Ut.caxis;if(Ut.drawAx(qt),Ut.drawAx(er),Ut.drawAx(lr),$t){var Jt=Math.max(qt.showticklabels?qt.tickfont.size/2:0,(lr.showticklabels?lr.tickfont.size*.75:0)+(lr.ticks==="outside"?lr.ticklen*.87:0)),Yt=(er.showticklabels?er.tickfont.size:0)+(er.ticks==="outside"?er.ticklen:0)+3;Xt["a-title"]=ft.draw(Ht,"a"+Vt,{propContainer:qt,propName:Ut.id+".aaxis.title",placeholder:ut(Ht,"Click to enter Component A title"),attributes:{x:Ut.x0+Ut.w/2,y:Ut.y0-qt.title.font.size/3-Jt,"text-anchor":"middle"}}),Xt["b-title"]=ft.draw(Ht,"b"+Vt,{propContainer:er,propName:Ut.id+".baxis.title",placeholder:ut(Ht,"Click to enter Component B title"),attributes:{x:Ut.x0-Yt,y:Ut.y0+Ut.h+er.title.font.size*.83+Yt,"text-anchor":"middle"}}),Xt["c-title"]=ft.draw(Ht,"c"+Vt,{propContainer:lr,propName:Ut.id+".caxis.title",placeholder:ut(Ht,"Click to enter Component C title"),attributes:{x:Ut.x0+Ut.w+Yt,y:Ut.y0+Ut.h+lr.title.font.size*.83+Yt,"text-anchor":"middle"}})}},kt.drawAx=function($t){var Ut=this,Ht=Ut.graphDiv,Vt=$t._name,Xt=Vt.charAt(0),qt=$t._id,er=Ut.layers[Vt],lr=30,Jt=Xt+"tickLayout",Yt=ct($t);Ut[Jt]!==Yt&&(er.selectAll("."+qt+"tick").remove(),Ut[Jt]=Yt),$t.setScale();var rr=st.calcTicks($t),jt=st.clipEnds($t,rr),ar=st.makeTransTickFn($t),sr=st.getTickSigns($t)[2],Zt=Et.deg2rad(lr),Kt=sr*($t.linewidth||1)/2,or=sr*$t.ticklen,tr=Ut.w,cr=Ut.h,hr=Xt==="b"?"M0,"+Kt+"l"+Math.sin(Zt)*or+","+Math.cos(Zt)*or:"M"+Kt+",0l"+Math.cos(Zt)*or+","+-Math.sin(Zt)*or,br={a:"M0,0l"+cr+",-"+tr/2,b:"M0,0l-"+tr/2+",-"+cr,c:"M0,0l-"+cr+","+tr/2}[Xt];st.drawTicks(Ht,$t,{vals:$t.ticks==="inside"?jt:rr,layer:er,path:hr,transFn:ar,crisp:!1}),st.drawGrid(Ht,$t,{vals:jt,layer:Ut.layers[Xt+"grid"],path:br,transFn:ar,crisp:!1}),st.drawLabels(Ht,$t,{vals:rr,layer:er,transFn:ar,labelFns:st.makeLabelFns($t,0,lr)})};function ct($t){return $t.ticks+String($t.ticklen)+String($t.showticklabels)}var It=Mt.MINZOOM/2+.87,At="m-0.87,.5h"+It+"v3h-"+(It+5.2)+"l"+(It/2+2.6)+",-"+(It*.87+4.5)+"l2.6,1.5l-"+It/2+","+It*.87+"Z",Ot="m0.87,.5h-"+It+"v3h"+(It+5.2)+"l-"+(It/2+2.6)+",-"+(It*.87+4.5)+"l-2.6,1.5l"+It/2+","+It*.87+"Z",Pt="m0,1l"+It/2+","+It*.87+"l2.6,-1.5l-"+(It/2+2.6)+",-"+(It*.87+4.5)+"l-"+(It/2+2.6)+","+(It*.87+4.5)+"l2.6,1.5l"+It/2+",-"+It*.87+"Z",zt="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",Dt=!0;kt.clearOutline=function(){_t(this.dragOptions),St(this.dragOptions.gd)},kt.initInteractions=function(){var $t=this,Ut=$t.layers.plotbg.select("path").node(),Ht=$t.graphDiv,Vt=Ht._fullLayout._zoomlayer,Xt,qt;this.dragOptions={element:Ut,gd:Ht,plotinfo:{id:$t.id,domain:Ht._fullLayout[$t.id].domain,xaxis:$t.xaxis,yaxis:$t.yaxis},subplot:$t.id,prepFn:function(zr,Br,kr){$t.dragOptions.xaxes=[$t.xaxis],$t.dragOptions.yaxes=[$t.yaxis],Xt=Ht._fullLayout._invScaleX,qt=Ht._fullLayout._invScaleY;var Nr=$t.dragOptions.dragmode=Ht._fullLayout.dragmode;dt(Nr)?$t.dragOptions.minDrag=1:$t.dragOptions.minDrag=void 0,Nr==="zoom"?($t.dragOptions.moveFn=Ir,$t.dragOptions.clickFn=tr,$t.dragOptions.doneFn=Ar,cr(zr,Br,kr)):Nr==="pan"?($t.dragOptions.moveFn=Er,$t.dragOptions.clickFn=tr,$t.dragOptions.doneFn=Rr,_r(),$t.clearOutline(Ht)):(bt(Nr)||dt(Nr))&&at(zr,Br,kr,$t.dragOptions,Nr)}};var er,lr,Jt,Yt,rr,jt,ar,sr,Zt,Kt;function or(zr){var Br={};return Br[$t.id+".aaxis.min"]=zr.a,Br[$t.id+".baxis.min"]=zr.b,Br[$t.id+".caxis.min"]=zr.c,Br}function tr(zr,Br){var kr=Ht._fullLayout.clickmode;Nt(Ht),zr===2&&(Ht.emit("plotly_doubleclick",null),et.call("_guiRelayout",Ht,or({a:0,b:0,c:0}))),kr.indexOf("select")>-1&&zr===1&&yt(Br,Ht,[$t.xaxis],[$t.yaxis],$t.id,$t.dragOptions),kr.indexOf("event")>-1&&nt.click(Ht,Br,$t.id)}function cr(zr,Br,kr){var Nr=Ut.getBoundingClientRect();er=Br-Nr.left,lr=kr-Nr.top,Ht._fullLayout._calcInverseTransform(Ht);var Qr=Ht._fullLayout._invTransform,sn=Et.apply3DTransform(Qr)(er,lr);er=sn[0],lr=sn[1],Jt={a:$t.aaxis.range[0],b:$t.baxis.range[1],c:$t.caxis.range[1]},rr=Jt,Yt=$t.aaxis.range[1]-Jt.a,jt=xt($t.graphDiv._fullLayout[$t.id].bgcolor).getLuminance(),ar="M0,"+$t.h+"L"+$t.w/2+", 0L"+$t.w+","+$t.h+"Z",sr=!1,Zt=Vt.append("path").attr("class","zoombox").attr("transform",mt($t.x0,$t.y0)).style({fill:jt>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",ar),Kt=Vt.append("path").attr("class","zoombox-corners").attr("transform",mt($t.x0,$t.y0)).style({fill:ht.background,stroke:ht.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),$t.clearOutline(Ht)}function hr(zr,Br){return 1-Br/$t.h}function br(zr,Br){return 1-(zr+($t.h-Br)/Math.sqrt(3))/$t.w}function Tr(zr,Br){return(zr-($t.h-Br)/Math.sqrt(3))/$t.w}function Ir(zr,Br){var kr=er+zr*Xt,Nr=lr+Br*qt,Qr=Math.max(0,Math.min(1,hr(er,lr),hr(kr,Nr))),sn=Math.max(0,Math.min(1,br(er,lr),br(kr,Nr))),un=Math.max(0,Math.min(1,Tr(er,lr),Tr(kr,Nr))),qr=(Qr/2+un)*$t.w,Xr=(1-Qr/2-sn)*$t.w,ln=(qr+Xr)/2,mn=Xr-qr,pn=(1-Qr)*$t.h,En=pn-mn/wt;mn.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),Kt.transition().style("opacity",1).duration(200),sr=!0),Ht.emit("plotly_relayouting",or(rr))}function Ar(){Nt(Ht),rr!==Jt&&(et.call("_guiRelayout",Ht,or(rr)),Dt&&Ht.data&&Ht._context.showTips&&(Et.notifier(ut(Ht,"Double-click to zoom back out"),"long"),Dt=!1))}function _r(){Jt={a:$t.aaxis.range[0],b:$t.baxis.range[1],c:$t.caxis.range[1]},rr=Jt}function Er(zr,Br){var kr=zr/$t.xaxis._m,Nr=Br/$t.yaxis._m;rr={a:Jt.a-Nr,b:Jt.b+(kr+Nr)/2,c:Jt.c-(kr-Nr)/2};var Qr=[rr.a,rr.b,rr.c].sort(Et.sorterAsc),sn={a:Qr.indexOf(rr.a),b:Qr.indexOf(rr.b),c:Qr.indexOf(rr.c)};Qr[0]<0&&(Qr[1]+Qr[0]/2<0?(Qr[2]+=Qr[0]+Qr[1],Qr[0]=Qr[1]=0):(Qr[2]+=Qr[0]/2,Qr[1]+=Qr[0]/2,Qr[0]=0),rr={a:Qr[sn.a],b:Qr[sn.b],c:Qr[sn.c]},Br=(Jt.a-rr.a)*$t.yaxis._m,zr=(Jt.c-rr.c-Jt.b+rr.b)*$t.xaxis._m);var un=mt($t.x0+zr,$t.y0+Br);$t.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",un);var qr=mt(-zr,-Br);$t.clipDefRelative.select("path").attr("transform",qr),$t.aaxis.range=[rr.a,$t.sum-rr.b-rr.c],$t.baxis.range=[$t.sum-rr.a-rr.c,rr.b],$t.caxis.range=[$t.sum-rr.a-rr.b,rr.c],$t.drawAxes(!1),$t._hasClipOnAxisFalse&&$t.plotContainer.select(".scatterlayer").selectAll(".trace").call(j.hideOutsideRangePoints,$t),Ht.emit("plotly_relayouting",or(rr))}function Rr(){et.call("_guiRelayout",Ht,or(rr))}Ut.onmousemove=function(zr){nt.hover(Ht,zr,$t.id),Ht._fullLayout._lasthover=Ut,Ht._fullLayout._hoversubplot=$t.id},Ut.onmouseout=function(zr){Ht._dragging||ot.unhover(Ht,zr)},ot.init(this.dragOptions)};function Nt($t){it.select($t).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}},24040:function(Ct,Rt,o){var it=o(24248),xt=o(16628),et=o(52416),Et=o(63620),mt=o(52200).addStyleRule,ut=o(92880),ht=o(45464),j=o(64859),_=ut.extendFlat,rt=ut.extendDeepAll;Rt.modules={},Rt.allCategories={},Rt.allTypes=[],Rt.subplotsRegistry={},Rt.transformsRegistry={},Rt.componentsRegistry={},Rt.layoutArrayContainers=[],Rt.layoutArrayRegexes=[],Rt.traceLayoutAttributes={},Rt.localeRegistry={},Rt.apiMethodRegistry={},Rt.collectableSubplotTypes=null,Rt.register=function(_t){if(Rt.collectableSubplotTypes=null,_t)_t&&!Array.isArray(_t)&&(_t=[_t]);else throw new Error("No argument passed to Plotly.register.");for(var Mt=0;Mt<_t.length;Mt++){var Tt=_t[Mt];if(!Tt)throw new Error("Invalid module was attempted to be registered!");switch(Tt.moduleType){case"trace":tt(Tt);break;case"transform":nt(Tt);break;case"component":ot(Tt);break;case"locale":vt(Tt);break;case"apiMethod":var kt=Tt.name;Rt.apiMethodRegistry[kt]=Tt.fn;break;default:throw new Error("Invalid module was attempted to be registered!")}}},Rt.getModule=function(St){var _t=Rt.modules[yt(St)];return _t?_t._module:!1},Rt.traceIs=function(St,_t){if(St=yt(St),St==="various")return!1;var Mt=Rt.modules[St];return Mt||(St&&it.log("Unrecognized trace type "+St+"."),Mt=Rt.modules[ht.type.dflt]),!!Mt.categories[_t]},Rt.getTransformIndices=function(St,_t){for(var Mt=[],Tt=St.transforms||[],kt=0;kt-1}Ct.exports=function(j,_){var rt,tt=j.data,st=j.layout,ot=Et([],tt),nt=Et({},st,mt(_.tileClass)),vt=j._context||{};if(_.width&&(nt.width=_.width),_.height&&(nt.height=_.height),_.tileClass==="thumbnail"||_.tileClass==="themes__thumb"){nt.annotations=[];var dt=Object.keys(nt);for(rt=0;rt")!==-1?"":st.html(nt).text()});return st.remove(),ot}function rt(tt){return tt.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}Ct.exports=function(st,ot,nt){var vt=st._fullLayout,dt=vt._paper,bt=vt._toppaper,ft=vt.width,at=vt.height,yt;dt.insert("rect",":first-child").call(et.setRect,0,0,ft,at).call(Et.fill,vt.paper_bgcolor);var St=vt._basePlotModules||[];for(yt=0;ytHt+$t||!it(Ut))}for(var Xt=0;Xt=0)return vt}else if(typeof vt=="string"&&(vt=vt.trim(),vt.slice(-1)==="%"&&it(vt.slice(0,-1))&&(vt=+vt.slice(0,-1),vt>=0)))return vt+"%"}function nt(vt,dt,bt,ft,at,yt){yt=yt||{};var St=yt.moduleHasSelected!==!1,_t=yt.moduleHasUnselected!==!1,Mt=yt.moduleHasConstrain!==!1,Tt=yt.moduleHasCliponaxis!==!1,kt=yt.moduleHasTextangle!==!1,wt=yt.moduleHasInsideanchor!==!1,ct=!!yt.hasPathbar,It=Array.isArray(at)||at==="auto",At=It||at==="inside",Ot=It||at==="outside";if(At||Ot){var Pt=rt(ft,"textfont",bt.font),zt=xt.extendFlat({},Pt),Dt=vt.textfont&&vt.textfont.color,Nt=!Dt;if(Nt&&delete zt.color,rt(ft,"insidetextfont",zt),ct){var $t=xt.extendFlat({},Pt);Nt&&delete $t.color,rt(ft,"pathbar.textfont",$t)}Ot&&rt(ft,"outsidetextfont",Pt),St&&ft("selected.textfont.color"),_t&&ft("unselected.textfont.color"),Mt&&ft("constraintext"),Tt&&ft("cliponaxis"),kt&&ft("textangle"),ft("texttemplate")}At&&wt&&ft("insidetextanchor")}Ct.exports={supplyDefaults:tt,crossTraceDefaults:st,handleText:nt,validateCornerradius:ot}},52160:function(Ct){Ct.exports=function(o,it,xt){return o.x="xVal"in it?it.xVal:it.x,o.y="yVal"in it?it.yVal:it.y,it.xa&&(o.xaxis=it.xa),it.ya&&(o.yaxis=it.ya),xt.orientation==="h"?(o.label=o.y,o.value=o.x):(o.label=o.x,o.value=o.y),o}},60444:function(Ct,Rt,o){var it=o(38248),xt=o(49760),et=o(3400).isArrayOrTypedArray;Rt.coerceString=function(Et,mt,ut){if(typeof mt=="string"){if(mt||!Et.noBlank)return mt}else if((typeof mt=="number"||mt===!0)&&!Et.strict)return String(mt);return ut!==void 0?ut:Et.dflt},Rt.coerceNumber=function(Et,mt,ut){if(it(mt)){mt=+mt;var ht=Et.min,j=Et.max,_=ht!==void 0&&mtj;if(!_)return mt}return ut!==void 0?ut:Et.dflt},Rt.coerceColor=function(Et,mt,ut){return xt(mt).isValid()?mt:ut!==void 0?ut:Et.dflt},Rt.coerceEnumerated=function(Et,mt,ut){return Et.coerceNumber&&(mt=+mt),Et.values.indexOf(mt)!==-1?mt:ut!==void 0?ut:Et.dflt},Rt.getValue=function(Et,mt){var ut;return et(Et)?mt0?hr+=br:Tt<0&&(hr-=br)}return hr}function lr(cr){var hr=Tt,br=cr.b,Tr=er(cr);return it.inbox(br-hr,Tr-hr,St+(Tr-hr)/(Tr-br)-1)}function Jt(cr){var hr=Tt,br=cr.b,Tr=er(cr);return it.inbox(br-hr,Tr-hr,_t+(Tr-hr)/(Tr-br)-1)}var Yt=tt[kt+"a"],rr=tt[wt+"a"];At=Math.abs(Yt.r2c(Yt.range[1])-Yt.r2c(Yt.range[0]));function jt(cr){return(ct(cr)+It(cr))/2}var ar=it.getDistanceFunction(nt,ct,It,jt);if(it.getClosest(dt,ar,tt),tt.index!==!1&&dt[tt.index].p!==ht){Pt||(Ut=function(cr){return Math.min(zt(cr),cr.p-ft.bargroupwidth/2)},Ht=function(cr){return Math.max(Dt(cr),cr.p+ft.bargroupwidth/2)});var sr=tt.index,Zt=dt[sr],Kt=bt.base?Zt.b+Zt.s:Zt.s;tt[wt+"0"]=tt[wt+"1"]=rr.c2p(Zt[wt],!0),tt[wt+"LabelVal"]=Kt;var or=ft.extents[ft.extents.round(Zt.p)];tt[kt+"0"]=Yt.c2p(at?Ut(Zt):or[0],!0),tt[kt+"1"]=Yt.c2p(at?Ht(Zt):or[1],!0);var tr=Zt.orig_p!==void 0;return tt[kt+"LabelVal"]=tr?Zt.orig_p:Zt.p,tt.labelLabel=ut(Yt,tt[kt+"LabelVal"],bt[kt+"hoverformat"]),tt.valueLabel=ut(rr,tt[wt+"LabelVal"],bt[wt+"hoverformat"]),tt.baseLabel=ut(rr,Zt.b,bt[wt+"hoverformat"]),tt.spikeDistance=(Jt(Zt)+qt(Zt))/2,tt[kt+"Spike"]=Yt.c2p(Zt.p,!0),Et(Zt,bt,tt),tt.hovertemplate=bt.hovertemplate,tt}}function rt(tt,st){var ot=st.mcc||tt.marker.color,nt=st.mlcc||tt.marker.line.color,vt=mt(tt,st);if(et.opacity(ot))return ot;if(et.opacity(nt)&&vt)return nt}Ct.exports={hoverPoints:j,hoverOnBars:_,getTraceColor:rt}},51132:function(Ct,Rt,o){Ct.exports={attributes:o(20832),layoutAttributes:o(39324),supplyDefaults:o(31508).supplyDefaults,crossTraceDefaults:o(31508).crossTraceDefaults,supplyLayoutDefaults:o(37156),calc:o(71820),crossTraceCalc:o(96376).crossTraceCalc,colorbar:o(5528),arraysToCalcdata:o(84664),plot:o(98184).plot,style:o(60100).style,styleOnSelect:o(60100).styleOnSelect,hoverPoints:o(63400).hoverPoints,eventData:o(52160),selectPoints:o(45784),moduleType:"trace",name:"bar",basePlotModule:o(57952),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}},39324:function(Ct){Ct.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}},37156:function(Ct,Rt,o){var it=o(24040),xt=o(54460),et=o(3400),Et=o(39324),mt=o(31508).validateCornerradius;Ct.exports=function(ut,ht,j){function _(yt,St){return et.coerce(ut,ht,Et,yt,St)}for(var rt=!1,tt=!1,st=!1,ot={},nt=_("barmode"),vt=0;vt0)-(Xt<0)}function Mt(Xt,qt){return Xt0}function ct(Xt,qt,er,lr,Jt,Yt){var rr=qt.xaxis,jt=qt.yaxis,ar=Xt._fullLayout,sr=Xt._context.staticPlot;Jt||(Jt={mode:ar.barmode,norm:ar.barmode,gap:ar.bargap,groupgap:ar.bargroupgap},tt("bar",ar));var Zt=et.makeTraceGroups(lr,er,"trace bars").each(function(Kt){var or=it.select(this),tr=Kt[0].trace,cr=Kt[0].t,hr=tr.type==="waterfall",br=tr.type==="funnel",Tr=tr.type==="histogram",Ir=tr.type==="bar",Ar=Ir||br,_r=0;hr&&tr.connector.visible&&tr.connector.mode==="between"&&(_r=tr.connector.line.width/2);var Er=tr.orientation==="h",Rr=wt(Jt),zr=et.ensureSingle(or,"g","points"),Br=St(tr),kr=zr.selectAll("g.point").data(et.identity,Br);kr.enter().append("g").classed("point",!0),kr.exit().remove(),kr.each(function(Qr,sn){var un=it.select(this),qr=Tt(Qr,rr,jt,Er),Xr=qr[0][0],ln=qr[0][1],mn=qr[1][0],pn=qr[1][1],En=(Er?ln-Xr:pn-mn)===0;En&&Ar&&ot.getLineWidth(tr,Qr)&&(En=!1),En||(En=!xt(Xr)||!xt(ln)||!xt(mn)||!xt(pn)),Qr.isBlank=En,En&&(Er?ln=Xr:pn=mn),_r&&!En&&(Er?(Xr-=Mt(Xr,ln)*_r,ln+=Mt(Xr,ln)*_r):(mn-=Mt(mn,pn)*_r,pn+=Mt(mn,pn)*_r));var Jr,Or;if(tr.type==="waterfall"){if(!En){var Ur=tr[Qr.dir].marker;Jr=Ur.line.width,Or=Ur.color}}else Jr=ot.getLineWidth(tr,Qr),Or=Qr.mc||tr.marker.color;function jr(hn){var wn=it.round(Jr/2%1,2);return Jt.gap===0&&Jt.groupgap===0?it.round(Math.round(hn)-wn,2):hn}function Gr(hn,wn,In){return In&&hn===wn?hn:Math.abs(hn-wn)>=2?jr(hn):hn>wn?Math.ceil(hn):Math.floor(hn)}var wr=mt.opacity(Or),vr=wr<1||Jr>.01?jr:Gr;Xt._context.staticPlot||(Xr=vr(Xr,ln,Er),ln=vr(ln,Xr,Er),mn=vr(mn,pn,!Er),pn=vr(pn,mn,!Er));var Dr=Er?rr.c2p:jt.c2p,Sr;Qr.s0>0?Sr=Qr._sMax:Qr.s0<0?Sr=Qr._sMin:Sr=Qr.s1>0?Qr._sMax:Qr._sMin;function ur(hn,wn){if(!hn)return 0;var In=Math.abs(Er?pn-mn:ln-Xr),Ln=Math.abs(Er?ln-Xr:pn-mn),Xn=vr(Math.abs(Dr(Sr,!0)-Dr(0,!0))),Wn=Qr.hasB?Math.min(In/2,Ln/2):Math.min(In/2,Xn),Vn;if(wn==="%"){var ga=Math.min(50,hn);Vn=In*(ga/100)}else Vn=hn;return vr(Math.max(Math.min(Vn,Wn),0))}var xr=Ir||Tr?ur(cr.cornerradiusvalue,cr.cornerradiusform):0,Pr,Vr,en="M"+Xr+","+mn+"V"+pn+"H"+ln+"V"+mn+"Z",rn=0;if(xr&&Qr.s){var Cn=_t(Qr.s0)===0||_t(Qr.s)===_t(Qr.s0)?Qr.s1:Qr.s0;if(rn=vr(Qr.hasB?0:Math.abs(Dr(Sr,!0)-Dr(Cn,!0))),rn0?Math.sqrt(rn*(2*xr-rn)):0,yn=xn>0?Math.max:Math.min;Pr="M"+Xr+","+mn+"V"+(pn-Un*fn)+"H"+yn(ln-(xr-rn)*xn,Xr)+"A "+xr+","+xr+" 0 0 "+bn+" "+ln+","+(pn-xr*fn-_i)+"V"+(mn+xr*fn+_i)+"A "+xr+","+xr+" 0 0 "+bn+" "+yn(ln-(xr-rn)*xn,Xr)+","+(mn+Un*fn)+"Z"}else if(Qr.hasB)Pr="M"+(Xr+xr*xn)+","+mn+"A "+xr+","+xr+" 0 0 "+bn+" "+Xr+","+(mn+xr*fn)+"V"+(pn-xr*fn)+"A "+xr+","+xr+" 0 0 "+bn+" "+(Xr+xr*xn)+","+pn+"H"+(ln-xr*xn)+"A "+xr+","+xr+" 0 0 "+bn+" "+ln+","+(pn-xr*fn)+"V"+(mn+xr*fn)+"A "+xr+","+xr+" 0 0 "+bn+" "+(ln-xr*xn)+","+mn+"Z";else{Vr=Math.abs(pn-mn)+rn;var Kn=Vr0?Math.sqrt(rn*(2*xr-rn)):0,so=fn>0?Math.max:Math.min;Pr="M"+(Xr+Kn*xn)+","+mn+"V"+so(pn-(xr-rn)*fn,mn)+"A "+xr+","+xr+" 0 0 "+bn+" "+(Xr+xr*xn-Jn)+","+pn+"H"+(ln-xr*xn+Jn)+"A "+xr+","+xr+" 0 0 "+bn+" "+(ln-Kn*xn)+","+so(pn-(xr-rn)*fn,mn)+"V"+mn+"Z"}}else Pr=en}else Pr=en;var ba=kt(et.ensureSingle(un,"path"),ar,Jt,Yt);if(ba.style("vector-effect",sr?"none":"non-scaling-stroke").attr("d",isNaN((ln-Xr)*(pn-mn))||En&&Xt._context.staticPlot?"M0,0Z":Pr).call(ut.setClipUrl,qt.layerClipId,Xt),!ar.uniformtext.mode&&Rr){var An=ut.makePointStyleFns(tr);ut.singlePointStyle(Qr,ba,tr,An,Xt)}It(Xt,qt,un,Kt,sn,Xr,ln,mn,pn,xr,rn,Jt,Yt),qt.layerClipId&&ut.hideOutsideRangePoint(Qr,un.select("text"),rr,jt,tr.xcalendar,tr.ycalendar)});var Nr=tr.cliponaxis===!1;ut.setClipUrl(or,Nr?null:qt.layerClipId,Xt)});ht.getComponentMethod("errorbars","plot")(Xt,Zt,qt,Jt)}function It(Xt,qt,er,lr,Jt,Yt,rr,jt,ar,sr,Zt,Kt,or){var tr=qt.xaxis,cr=qt.yaxis,hr=Xt._fullLayout,br;function Tr(Vr,en,rn){var Cn=et.ensureSingle(Vr,"text").text(en).attr({class:"bartext bartext-"+br,"text-anchor":"middle","data-notex":1}).call(ut.font,rn).call(Et.convertToTspans,Xt);return Cn}var Ir=lr[0].trace,Ar=Ir.orientation==="h",_r=$t(hr,lr,Jt,tr,cr);br=Ut(Ir,Jt);var Er=Kt.mode==="stack"||Kt.mode==="relative",Rr=lr[Jt],zr=!Er||Rr._outmost,Br=Rr.hasB,kr=sr&&sr-Zt>at;if(!_r||br==="none"||(Rr.isBlank||Yt===rr||jt===ar)&&(br==="auto"||br==="inside")){er.select("text").remove();return}var Nr=hr.font,Qr=st.getBarColor(lr[Jt],Ir),sn=st.getInsideTextFont(Ir,Jt,Nr,Qr),un=st.getOutsideTextFont(Ir,Jt,Nr),qr=Ir.insidetextanchor||"end",Xr=er.datum();Ar?tr.type==="log"&&Xr.s0<=0&&(tr.range[0]0&&jr>0,vr;kr?Br?vr=At(pn-2*sr,En,Ur,jr,Ar)||At(pn,En-2*sr,Ur,jr,Ar):Ar?vr=At(pn-(sr-Zt),En,Ur,jr,Ar)||At(pn,En-2*(sr-Zt),Ur,jr,Ar):vr=At(pn,En-(sr-Zt),Ur,jr,Ar)||At(pn-2*(sr-Zt),En,Ur,jr,Ar):vr=At(pn,En,Ur,jr,Ar),wr&&vr?br="inside":(br="outside",Jr.remove(),Jr=null)}else br="inside";if(!Jr){Gr=et.ensureUniformFontSize(Xt,br==="outside"?un:sn),Jr=Tr(er,_r,Gr);var Dr=Jr.attr("transform");if(Jr.attr("transform",""),Or=ut.bBox(Jr.node()),Ur=Or.width,jr=Or.height,Jr.attr("transform",Dr),Ur<=0||jr<=0){Jr.remove();return}}var Sr=Ir.textangle,ur,xr;br==="outside"?(xr=Ir.constraintext==="both"||Ir.constraintext==="outside",ur=Nt(Yt,rr,jt,ar,Or,{isHorizontal:Ar,constrained:xr,angle:Sr})):(xr=Ir.constraintext==="both"||Ir.constraintext==="inside",ur=zt(Yt,rr,jt,ar,Or,{isHorizontal:Ar,constrained:xr,angle:Sr,anchor:qr,hasB:Br,r:sr,overhead:Zt})),ur.fontSize=Gr.size,rt(Ir.type==="histogram"?"bar":Ir.type,ur,hr),Rr.transform=ur;var Pr=kt(Jr,hr,Kt,or);et.setTransormAndDisplay(Pr,ur)}function At(Xt,qt,er,lr,Jt){if(Xt<0||qt<0)return!1;var Yt=er<=Xt&&lr<=qt,rr=er<=qt&&lr<=Xt,jt=Jt?Xt>=er*(qt/lr):qt>=lr*(Xt/er);return Yt||rr||jt}function Ot(Xt){return Xt==="auto"?0:Xt}function Pt(Xt,qt){var er=Math.PI/180*qt,lr=Math.abs(Math.sin(er)),Jt=Math.abs(Math.cos(er));return{x:Xt.width*Jt+Xt.height*lr,y:Xt.width*lr+Xt.height*Jt}}function zt(Xt,qt,er,lr,Jt,Yt){var rr=!!Yt.isHorizontal,jt=!!Yt.constrained,ar=Yt.angle||0,sr=Yt.anchor,Zt=sr==="end",Kt=sr==="start",or=Yt.leftToRight||0,tr=(or+1)/2,cr=1-tr,hr=Yt.hasB,br=Yt.r,Tr=Yt.overhead,Ir=Jt.width,Ar=Jt.height,_r=Math.abs(qt-Xt),Er=Math.abs(lr-er),Rr=_r>2*at&&Er>2*at?at:0;_r-=2*Rr,Er-=2*Rr;var zr=Ot(ar);ar==="auto"&&!(Ir<=_r&&Ar<=Er)&&(Ir>_r||Ar>Er)&&(!(Ir>Er||Ar>_r)||Irat){var Qr=Dt(Xt,qt,er,lr,Br,br,Tr,rr,hr);kr=Qr.scale,Nr=Qr.pad}else kr=1,jt&&(kr=Math.min(1,_r/Br.x,Er/Br.y)),Nr=0;var sn=Jt.left*cr+Jt.right*tr,un=(Jt.top+Jt.bottom)/2,qr=(Xt+at)*cr+(qt-at)*tr,Xr=(er+lr)/2,ln=0,mn=0;if(Kt||Zt){var pn=(rr?Br.x:Br.y)/2;br&&(Zt||hr)&&(Rr+=Nr);var En=rr?Mt(Xt,qt):Mt(er,lr);rr?Kt?(qr=Xt+En*Rr,ln=-En*pn):(qr=qt-En*Rr,ln=En*pn):Kt?(Xr=er+En*Rr,mn=-En*pn):(Xr=lr-En*Rr,mn=En*pn)}return{textX:sn,textY:un,targetX:qr,targetY:Xr,anchorX:ln,anchorY:mn,scale:kr,rotate:zr}}function Dt(Xt,qt,er,lr,Jt,Yt,rr,jt,ar){var sr=Math.max(0,Math.abs(qt-Xt)-2*at),Zt=Math.max(0,Math.abs(lr-er)-2*at),Kt=Yt-at,or=rr?Kt-Math.sqrt(Kt*Kt-(Kt-rr)*(Kt-rr)):Kt,tr=ar?Kt*2:jt?Kt-rr:2*or,cr=ar?Kt*2:jt?2*or:Kt-rr,hr,br,Tr,Ir,Ar;return Jt.y/Jt.x>=Zt/(sr-tr)?Ir=Zt/Jt.y:Jt.y/Jt.x<=(Zt-cr)/sr?Ir=sr/Jt.x:!ar&&jt?(hr=Jt.x*Jt.x+Jt.y*Jt.y/4,br=-2*Jt.x*(sr-Kt)-Jt.y*(Zt/2-Kt),Tr=(sr-Kt)*(sr-Kt)+(Zt/2-Kt)*(Zt/2-Kt)-Kt*Kt,Ir=(-br+Math.sqrt(br*br-4*hr*Tr))/(2*hr)):ar?(hr=(Jt.x*Jt.x+Jt.y*Jt.y)/4,br=-Jt.x*(sr/2-Kt)-Jt.y*(Zt/2-Kt),Tr=(sr/2-Kt)*(sr/2-Kt)+(Zt/2-Kt)*(Zt/2-Kt)-Kt*Kt,Ir=(-br+Math.sqrt(br*br-4*hr*Tr))/(2*hr)):(hr=Jt.x*Jt.x/4+Jt.y*Jt.y,br=-Jt.x*(sr/2-Kt)-2*Jt.y*(Zt-Kt),Tr=(sr/2-Kt)*(sr/2-Kt)+(Zt-Kt)*(Zt-Kt)-Kt*Kt,Ir=(-br+Math.sqrt(br*br-4*hr*Tr))/(2*hr)),Ir=Math.min(1,Ir),jt?Ar=Math.max(0,Kt-Math.sqrt(Math.max(0,Kt*Kt-(Kt-(Zt-Jt.y*Ir)/2)*(Kt-(Zt-Jt.y*Ir)/2)))-rr):Ar=Math.max(0,Kt-Math.sqrt(Math.max(0,Kt*Kt-(Kt-(sr-Jt.x*Ir)/2)*(Kt-(sr-Jt.x*Ir)/2)))-rr),{scale:Ir,pad:Ar}}function Nt(Xt,qt,er,lr,Jt,Yt){var rr=!!Yt.isHorizontal,jt=!!Yt.constrained,ar=Yt.angle||0,sr=Jt.width,Zt=Jt.height,Kt=Math.abs(qt-Xt),or=Math.abs(lr-er),tr;rr?tr=or>2*at?at:0:tr=Kt>2*at?at:0;var cr=1;jt&&(cr=rr?Math.min(1,or/Zt):Math.min(1,Kt/sr));var hr=Ot(ar),br=Pt(Jt,hr),Tr=(rr?br.x:br.y)/2,Ir=(Jt.left+Jt.right)/2,Ar=(Jt.top+Jt.bottom)/2,_r=(Xt+qt)/2,Er=(er+lr)/2,Rr=0,zr=0,Br=rr?Mt(qt,Xt):Mt(er,lr);return rr?(_r=qt-Br*tr,Rr=Br*Tr):(Er=lr+Br*tr,zr=-Br*Tr),{textX:Ir,textY:Ar,targetX:_r,targetY:Er,anchorX:Rr,anchorY:zr,scale:cr,rotate:hr}}function $t(Xt,qt,er,lr,Jt){var Yt=qt[0].trace,rr=Yt.texttemplate,jt;return rr?jt=Ht(Xt,qt,er,lr,Jt):Yt.textinfo?jt=Vt(qt,er,lr,Jt):jt=ot.getValue(Yt.text,er),ot.coerceString(dt,jt)}function Ut(Xt,qt){var er=ot.getValue(Xt.textposition,qt);return ot.coerceEnumerated(bt,er)}function Ht(Xt,qt,er,lr,Jt){var Yt=qt[0].trace,rr=et.castOption(Yt,er,"texttemplate");if(!rr)return"";var jt=Yt.type==="histogram",ar=Yt.type==="waterfall",sr=Yt.type==="funnel",Zt=Yt.orientation==="h",Kt,or,tr,cr;Zt?(Kt="y",or=Jt,tr="x",cr=lr):(Kt="x",or=lr,tr="y",cr=Jt);function hr(Rr){return j(or,or.c2l(Rr),!0).text}function br(Rr){return j(cr,cr.c2l(Rr),!0).text}var Tr=qt[er],Ir={};Ir.label=Tr.p,Ir.labelLabel=Ir[Kt+"Label"]=hr(Tr.p);var Ar=et.castOption(Yt,Tr.i,"text");(Ar===0||Ar)&&(Ir.text=Ar),Ir.value=Tr.s,Ir.valueLabel=Ir[tr+"Label"]=br(Tr.s);var _r={};ft(_r,Yt,Tr.i),(jt||_r.x===void 0)&&(_r.x=Zt?Ir.value:Ir.label),(jt||_r.y===void 0)&&(_r.y=Zt?Ir.label:Ir.value),(jt||_r.xLabel===void 0)&&(_r.xLabel=Zt?Ir.valueLabel:Ir.labelLabel),(jt||_r.yLabel===void 0)&&(_r.yLabel=Zt?Ir.labelLabel:Ir.valueLabel),ar&&(Ir.delta=+Tr.rawS||Tr.s,Ir.deltaLabel=br(Ir.delta),Ir.final=Tr.v,Ir.finalLabel=br(Ir.final),Ir.initial=Ir.final-Ir.delta,Ir.initialLabel=br(Ir.initial)),sr&&(Ir.value=Tr.s,Ir.valueLabel=br(Ir.value),Ir.percentInitial=Tr.begR,Ir.percentInitialLabel=et.formatPercent(Tr.begR),Ir.percentPrevious=Tr.difR,Ir.percentPreviousLabel=et.formatPercent(Tr.difR),Ir.percentTotal=Tr.sumR,Ir.percenTotalLabel=et.formatPercent(Tr.sumR));var Er=et.castOption(Yt,Tr.i,"customdata");return Er&&(Ir.customdata=Er),et.texttemplateString(rr,Ir,Xt._d3locale,_r,Ir,Yt._meta||{})}function Vt(Xt,qt,er,lr){var Jt=Xt[0].trace,Yt=Jt.orientation==="h",rr=Jt.type==="waterfall",jt=Jt.type==="funnel";function ar(Er){var Rr=Yt?lr:er;return j(Rr,Er,!0).text}function sr(Er){var Rr=Yt?er:lr;return j(Rr,+Er,!0).text}var Zt=Jt.textinfo,Kt=Xt[qt],or=Zt.split("+"),tr=[],cr,hr=function(Er){return or.indexOf(Er)!==-1};if(hr("label")&&tr.push(ar(Xt[qt].p)),hr("text")&&(cr=et.castOption(Jt,Kt.i,"text"),(cr===0||cr)&&tr.push(cr)),rr){var br=+Kt.rawS||Kt.s,Tr=Kt.v,Ir=Tr-br;hr("initial")&&tr.push(sr(Ir)),hr("delta")&&tr.push(sr(br)),hr("final")&&tr.push(sr(Tr))}if(jt){hr("value")&&tr.push(sr(Kt.s));var Ar=0;hr("percent initial")&&Ar++,hr("percent previous")&&Ar++,hr("percent total")&&Ar++;var _r=Ar>1;hr("percent initial")&&(cr=et.formatPercent(Kt.begR),_r&&(cr+=" of initial"),tr.push(cr)),hr("percent previous")&&(cr=et.formatPercent(Kt.difR),_r&&(cr+=" of previous"),tr.push(cr)),hr("percent total")&&(cr=et.formatPercent(Kt.sumR),_r&&(cr+=" of total"),tr.push(cr))}return tr.join("
")}Ct.exports={plot:ct,toMoveInsideBar:zt}},45784:function(Ct){Ct.exports=function(it,xt){var et=it.cd,Et=it.xaxis,mt=it.yaxis,ut=et[0].trace,ht=ut.type==="funnel",j=ut.orientation==="h",_=[],rt;if(xt===!1)for(rt=0;rt1||ct.bargap===0&&ct.bargroupgap===0&&!It[0].trace.marker.line.width)&&it.select(this).attr("shape-rendering","crispEdges")}),kt.selectAll("g.points").each(function(It){var At=it.select(this),Ot=It[0].trace;ot(At,Ot,Tt)}),mt.getComponentMethod("errorbars","style")(kt)}function ot(Tt,kt,wt){et.pointStyle(Tt.selectAll("path"),kt,wt),nt(Tt,kt,wt)}function nt(Tt,kt,wt){Tt.selectAll("text").each(function(ct){var It=it.select(this),At=Et.ensureUniformFontSize(wt,ft(It,ct,kt,wt));et.font(It,At)})}function vt(Tt,kt,wt){var ct=kt[0].trace;ct.selectedpoints?dt(wt,ct,Tt):(ot(wt,ct,Tt),mt.getComponentMethod("errorbars","style")(wt))}function dt(Tt,kt,wt){et.selectedPointStyle(Tt.selectAll("path"),kt),bt(Tt.selectAll("text"),kt,wt)}function bt(Tt,kt,wt){Tt.each(function(ct){var It=it.select(this),At;if(ct.selected){At=Et.ensureUniformFontSize(wt,ft(It,ct,kt,wt));var Ot=kt.selected.textfont&&kt.selected.textfont.color;Ot&&(At.color=Ot),et.font(It,At)}else et.selectedTextStyle(It,kt)})}function ft(Tt,kt,wt,ct){var It=ct._fullLayout.font,At=wt.textfont;if(Tt.classed("bartext-inside")){var Ot=Mt(kt,wt);At=yt(wt,kt.i,It,Ot)}else Tt.classed("bartext-outside")&&(At=St(wt,kt.i,It));return At}function at(Tt,kt,wt){return _t(j,Tt.textfont,kt,wt)}function yt(Tt,kt,wt,ct){var It=at(Tt,kt,wt),At=Tt._input.textfont===void 0||Tt._input.textfont.color===void 0||Array.isArray(Tt.textfont.color)&&Tt.textfont.color[kt]===void 0;return At&&(It={color:xt.contrast(ct),family:It.family,size:It.size,weight:It.weight,style:It.style,variant:It.variant}),_t(_,Tt.insidetextfont,kt,It)}function St(Tt,kt,wt){var ct=at(Tt,kt,wt);return _t(rt,Tt.outsidetextfont,kt,ct)}function _t(Tt,kt,wt,ct){kt=kt||{};var It=tt.getValue(kt.family,wt),At=tt.getValue(kt.size,wt),Ot=tt.getValue(kt.color,wt),Pt=tt.getValue(kt.weight,wt),zt=tt.getValue(kt.style,wt),Dt=tt.getValue(kt.variant,wt);return{family:tt.coerceString(Tt.family,It,ct.family),size:tt.coerceNumber(Tt.size,At,ct.size),color:tt.coerceColor(Tt.color,Ot,ct.color),weight:tt.coerceString(Tt.weight,Pt,ct.weight),style:tt.coerceString(Tt.style,zt,ct.style),variant:tt.coerceString(Tt.variant,Dt,ct.variant)}}function Mt(Tt,kt){return kt.type==="waterfall"?kt[Tt.dir].marker.color:Tt.mcc||Tt.mc||kt.marker.color}Ct.exports={style:st,styleTextPoints:nt,styleOnSelect:vt,getInsideTextFont:yt,getOutsideTextFont:St,getBarColor:Mt,resizeText:ut}},55592:function(Ct,Rt,o){var it=o(76308),xt=o(94288).hasColorscale,et=o(27260),Et=o(3400).coercePattern;Ct.exports=function(ut,ht,j,_,rt){var tt=j("marker.color",_),st=xt(ut,"marker");st&&et(ut,ht,rt,j,{prefix:"marker.",cLetter:"c"}),j("marker.line.color",it.defaultLine),xt(ut,"marker.line")&&et(ut,ht,rt,j,{prefix:"marker.line.",cLetter:"c"}),j("marker.line.width"),j("marker.opacity"),Et(j,"marker.pattern",tt,st),j("selected.marker.color"),j("unselected.marker.color")}},82744:function(Ct,Rt,o){var it=o(33428),xt=o(3400);function et(ht,j,_){var rt=ht._fullLayout,tt=rt["_"+_+"Text_minsize"];if(tt){var st=rt.uniformtext.mode==="hide",ot;switch(_){case"funnelarea":case"pie":case"sunburst":ot="g.slice";break;case"treemap":case"icicle":ot="g.slice, g.pathbar";break;default:ot="g.points > g.point"}j.selectAll(ot).each(function(nt){var vt=nt.transform;if(vt){vt.scale=st&&vt.hide?0:tt/vt.fontSize;var dt=it.select(this).select("text");xt.setTransormAndDisplay(dt,vt)}})}}function Et(ht,j,_){if(_.uniformtext.mode){var rt=ut(ht),tt=_.uniformtext.minsize,st=j.scale*j.fontSize;j.hide=stnt.range[1]&&(St+=Math.PI);var _t=function(wt){return bt(yt,St,[wt.rp0,wt.rp1],[wt.thetag0,wt.thetag1],dt)?ft+Math.min(1,Math.abs(wt.thetag1-wt.thetag0)/at)-1+(wt.rp1-yt)/(wt.rp1-wt.rp0)-1:1/0};if(it.getClosest(tt,_t,j),j.index!==!1){var Mt=j.index,Tt=tt[Mt];j.x0=j.x1=Tt.ct[0],j.y0=j.y1=Tt.ct[1];var kt=xt.extendFlat({},Tt,{r:Tt.s,theta:Tt.p});return Et(Tt,st,j),mt(kt,st,ot,j),j.hovertemplate=st.hovertemplate,j.color=et(st,Tt),j.xLabelVal=j.yLabelVal=void 0,Tt.s<0&&(j.idealAlign="left"),[j]}}},94456:function(Ct,Rt,o){Ct.exports={moduleType:"trace",name:"barpolar",basePlotModule:o(40872),categories:["polar","bar","showLegend"],attributes:o(78100),layoutAttributes:o(9320),supplyDefaults:o(70384),supplyLayoutDefaults:o(89580),calc:o(47056).calc,crossTraceCalc:o(47056).crossTraceCalc,plot:o(42040),colorbar:o(5528),formatLabels:o(22852),style:o(60100).style,styleOnSelect:o(60100).styleOnSelect,hoverPoints:o(68896),selectPoints:o(45784),meta:{}}},9320:function(Ct){Ct.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc"},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc"}}},89580:function(Ct,Rt,o){var it=o(3400),xt=o(9320);Ct.exports=function(et,Et,mt){var ut={},ht;function j(tt,st){return it.coerce(et[ht]||{},Et[ht],xt,tt,st)}for(var _=0;_0?(nt=st,vt=ot):(nt=ot,vt=st);var dt=mt.findEnclosingVertexAngles(nt,ht.vangles)[0],bt=mt.findEnclosingVertexAngles(vt,ht.vangles)[1],ft=[dt,(nt+vt)/2,bt];return mt.pathPolygonAnnulus(rt,tt,nt,vt,ft,j,_)}:function(rt,tt,st,ot){return et.pathAnnulus(rt,tt,st,ot,j,_)}}},63188:function(Ct,Rt,o){var it=o(98304),xt=o(52904),et=o(20832),Et=o(22548),mt=o(29736).axisHoverFormat,ut=o(21776).Ks,ht=o(92880).extendFlat,j=xt.marker,_=j.line;Ct.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:xt.xperiod,yperiod:xt.yperiod,xperiod0:xt.xperiod0,yperiod0:xt.yperiod0,xperiodalignment:xt.xperiodalignment,yperiodalignment:xt.yperiodalignment,xhoverformat:mt("x"),yhoverformat:mt("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:ht({},j.symbol,{arrayOk:!1,editType:"plot"}),opacity:ht({},j.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:ht({},j.angle,{arrayOk:!1,editType:"calc"}),size:ht({},j.size,{arrayOk:!1,editType:"calc"}),color:ht({},j.color,{arrayOk:!1,editType:"style"}),line:{color:ht({},_.color,{arrayOk:!1,dflt:Et.defaultLine,editType:"style"}),width:ht({},_.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:it(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:et.offsetgroup,alignmentgroup:et.alignmentgroup,selected:{marker:xt.selected.marker,editType:"style"},unselected:{marker:xt.unselected.marker,editType:"style"},text:ht({},xt.text,{}),hovertext:ht({},xt.hovertext,{}),hovertemplate:ut({}),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:xt.zorder}},62555:function(Ct,Rt,o){var it=o(38248),xt=o(54460),et=o(1220),Et=o(3400),mt=o(39032).BADNUM,ut=Et._;Ct.exports=function(St,_t){var Mt=St._fullLayout,Tt=xt.getFromId(St,_t.xaxis||"x"),kt=xt.getFromId(St,_t.yaxis||"y"),wt=[],ct=_t.type==="violin"?"_numViolins":"_numBoxes",It,At,Ot,Pt,zt,Dt,Nt;_t.orientation==="h"?(Ot=Tt,Pt="x",zt=kt,Dt="y",Nt=!!_t.yperiodalignment):(Ot=kt,Pt="y",zt=Tt,Dt="x",Nt=!!_t.xperiodalignment);var $t=ht(_t,Dt,zt,Mt[ct]),Ut=$t[0],Ht=$t[1],Vt=Et.distinctVals(Ut,zt),Xt=Vt.vals,qt=Vt.minDiff/2,er,lr,Jt,Yt,rr,jt,ar=(_t.boxpoints||_t.points)==="all"?Et.identity:function(En){return En.ver.uf};if(_t._hasPreCompStats){var sr=_t[Pt],Zt=function(En){return Ot.d2c((_t[En]||[])[It])},Kt=1/0,or=-1/0;for(It=0;It<_t._length;It++){var tr=Ut[It];if(it(tr)){if(er={},er.pos=er[Dt]=tr,Nt&&Ht&&(er.orig_p=Ht[It]),er.q1=Zt("q1"),er.med=Zt("median"),er.q3=Zt("q3"),lr=[],sr&&Et.isArrayOrTypedArray(sr[It]))for(At=0;At=er.q1&&er.q3>=er.med){var cr=Zt("lowerfence");er.lf=cr!==mt&&cr<=er.q1?cr:vt(er,Jt,Yt);var hr=Zt("upperfence");er.uf=hr!==mt&&hr>=er.q3?hr:dt(er,Jt,Yt);var br=Zt("mean");er.mean=br!==mt?br:Yt?Et.mean(Jt,Yt):(er.q1+er.q3)/2;var Tr=Zt("sd");er.sd=br!==mt&&Tr>=0?Tr:Yt?Et.stdev(Jt,Yt,er.mean):er.q3-er.q1,er.lo=bt(er),er.uo=ft(er);var Ir=Zt("notchspan");Ir=Ir!==mt&&Ir>0?Ir:at(er,Yt),er.ln=er.med-Ir,er.un=er.med+Ir;var Ar=er.lf,_r=er.uf;_t.boxpoints&&Jt.length&&(Ar=Math.min(Ar,Jt[0]),_r=Math.max(_r,Jt[Yt-1])),_t.notched&&(Ar=Math.min(Ar,er.ln),_r=Math.max(_r,er.un)),er.min=Ar,er.max=_r}else{Et.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+er.q1,"median = "+er.med,"q3 = "+er.q3].join(` -`));var Er;er.med!==mt?Er=er.med:er.q1!==mt?er.q3!==mt?Er=(er.q1+er.q3)/2:Er=er.q1:er.q3!==mt?Er=er.q3:Er=0,er.med=Er,er.q1=er.q3=Er,er.lf=er.uf=Er,er.mean=er.sd=Er,er.ln=er.un=Er,er.min=er.max=Er}Kt=Math.min(Kt,er.min),or=Math.max(or,er.max),er.pts2=lr.filter(ar),wt.push(er)}}_t._extremes[Ot._id]=xt.findExtremes(Ot,[Kt,or],{padded:!0})}else{var Rr=Ot.makeCalcdata(_t,Pt),zr=j(Xt,qt),Br=Xt.length,kr=_(Br);for(It=0;It<_t._length;It++)if(jt=Rr[It],!!it(jt)){var Nr=Et.findBin(Ut[It],zr);Nr>=0&&Nr0){if(er={},er.pos=er[Dt]=Xt[It],lr=er.pts=kr[It].sort(ot),Jt=er[Pt]=lr.map(nt),Yt=Jt.length,er.min=Jt[0],er.max=Jt[Yt-1],er.mean=Et.mean(Jt,Yt),er.sd=Et.stdev(Jt,Yt,er.mean)*_t.sdmultiple,er.med=Et.interp(Jt,.5),Yt%2&&(qr||Xr)){var ln,mn;qr?(ln=Jt.slice(0,Yt/2),mn=Jt.slice(Yt/2+1)):Xr&&(ln=Jt.slice(0,Yt/2+1),mn=Jt.slice(Yt/2)),er.q1=Et.interp(ln,.5),er.q3=Et.interp(mn,.5)}else er.q1=Et.interp(Jt,.25),er.q3=Et.interp(Jt,.75);er.lf=vt(er,Jt,Yt),er.uf=dt(er,Jt,Yt),er.lo=bt(er),er.uo=ft(er);var pn=at(er,Yt);er.ln=er.med-pn,er.un=er.med+pn,Qr=Math.min(Qr,er.ln),sn=Math.max(sn,er.un),er.pts2=lr.filter(ar),wt.push(er)}_t.notched&&Et.isTypedArray(Rr)&&(Rr=Array.from(Rr)),_t._extremes[Ot._id]=xt.findExtremes(Ot,_t.notched?Rr.concat([Qr,sn]):Rr,{padded:!0})}return st(wt,_t),wt.length>0?(wt[0].t={num:Mt[ct],dPos:qt,posLetter:Dt,valLetter:Pt,labels:{med:ut(St,"median:"),min:ut(St,"min:"),q1:ut(St,"q1:"),q3:ut(St,"q3:"),max:ut(St,"max:"),mean:_t.boxmean==="sd"||_t.sizemode==="sd"?ut(St,"mean ± σ:").replace("σ",_t.sdmultiple===1?"σ":_t.sdmultiple+"σ"):ut(St,"mean:"),lf:ut(St,"lower fence:"),uf:ut(St,"upper fence:")}},Mt[ct]++,wt):[{t:{empty:!0}}]};function ht(yt,St,_t,Mt){var Tt=St in yt,kt=St+"0"in yt,wt="d"+St in yt;if(Tt||kt&&wt){var ct=_t.makeCalcdata(yt,St),It=et(yt,_t,St,ct).vals;return[It,ct]}var At;kt?At=yt[St+"0"]:"name"in yt&&(_t.type==="category"||it(yt.name)&&["linear","log"].indexOf(_t.type)!==-1||Et.isDateTime(yt.name)&&_t.type==="date")?At=yt.name:At=Mt;for(var Ot=_t.type==="multicategory"?_t.r2c_just_indices(At):_t.d2c(At,0,yt[St+"calendar"]),Pt=yt._length,zt=new Array(Pt),Dt=0;Dt1,kt=1-st[ht+"gap"],wt=1-st[ht+"groupgap"];for(vt=0;vt<_.length;vt++){bt=tt[_[vt]];var ct=bt[0].trace,It=bt[0].t,At=ct.width,Ot=ct.side,Pt,zt,Dt,Nt;if(At)Pt=zt=Nt=At/2,Dt=0;else if(Pt=St,Tt){var $t=et(st,rt._id)+ct.orientation,Ut=st._alignmentOpts[$t]||{},Ht=Ut[ct.alignmentgroup]||{},Vt=Object.keys(Ht.offsetGroups||{}).length,Xt=Vt||Mt,qt=Vt?ct._offsetIndex:It.num;zt=Pt*kt*wt/Xt,Dt=2*Pt*(-.5+(qt+.5)/Xt)*kt,Nt=Pt*kt/Xt}else zt=Pt*kt*wt,Dt=0,Nt=Pt;It.dPos=Pt,It.bPos=Dt,It.bdPos=zt,It.wHover=Nt;var er,lr,Jt=Dt+zt,Yt,rr,jt,ar,sr,Zt,Kt=Boolean(At),or=(ct.boxpoints||ct.points)&&at>0;if(Ot==="positive"?(er=Pt*(At?1:.5),Yt=Jt,lr=Yt=Dt):Ot==="negative"?(er=Yt=Dt,lr=Pt*(At?1:.5),rr=Jt):(er=lr=Pt,Yt=rr=Jt),or){var tr=ct.pointpos,cr=ct.jitter,hr=ct.marker.size/2,br=0;tr+cr>=0&&(br=Jt*(tr+cr),br>er?(Kt=!0,sr=hr,jt=br):br>Yt&&(sr=hr,jt=er)),br<=er&&(jt=er);var Tr=0;tr-cr<=0&&(Tr=-Jt*(tr-cr),Tr>lr?(Kt=!0,Zt=hr,ar=Tr):Tr>rr&&(Zt=hr,ar=lr)),Tr<=lr&&(ar=lr)}else jt=er,ar=lr;var Ir=new Array(bt.length);for(dt=0;dt0?(Ot="v",kt>0?Pt=Math.min(ct,wt):Pt=Math.min(wt)):kt>0?(Ot="h",Pt=Math.min(ct)):Pt=0;if(!Pt){ot.visible=!1;return}ot._length=Pt;var Ut=nt("orientation",Ot);ot._hasPreCompStats?Ut==="v"&&kt===0?(nt("x0",0),nt("dx",1)):Ut==="h"&&Tt===0&&(nt("y0",0),nt("dy",1)):Ut==="v"&&kt===0?nt("x0"):Ut==="h"&&Tt===0&&nt("y0");var Ht=xt.getComponentMethod("calendars","handleTraceDefaults");Ht(st,ot,["x","y"],vt)}function rt(st,ot,nt,vt){var dt=vt.prefix,bt=it.coerce2(st,ot,ht,"marker.outliercolor"),ft=nt("marker.line.outliercolor"),at="outliers";ot._hasPreCompStats?at="all":(bt||ft)&&(at="suspectedoutliers");var yt=nt(dt+"points",at);yt?(nt("jitter",yt==="all"?.3:0),nt("pointpos",yt==="all"?-1.5:0),nt("marker.symbol"),nt("marker.opacity"),nt("marker.size"),nt("marker.angle"),nt("marker.color",ot.line.color),nt("marker.line.color"),nt("marker.line.width"),yt==="suspectedoutliers"&&(nt("marker.line.outliercolor",ot.marker.color),nt("marker.line.outlierwidth")),nt("selected.marker.color"),nt("unselected.marker.color"),nt("selected.marker.size"),nt("unselected.marker.size"),nt("text"),nt("hovertext")):delete ot.marker;var St=nt("hoveron");(St==="all"||St.indexOf("points")!==-1)&&nt("hovertemplate"),it.coerceSelectionMarkerOpacity(ot,nt)}function tt(st,ot){var nt,vt;function dt(at){return it.coerce(vt._input,vt,ht,at)}for(var bt=0;bt_t.lo&&(Ut.so=!0)}return Tt});St.enter().append("path").classed("point",!0),St.exit().remove(),St.call(et.translatePoints,nt,vt)}function _(rt,tt,st,ot){var nt=tt.val,vt=tt.pos,dt=!!vt.rangebreaks,bt=ot.bPos,ft=ot.bPosPxOffset||0,at=st.boxmean||(st.meanline||{}).visible,yt,St;Array.isArray(ot.bdPos)?(yt=ot.bdPos[0],St=ot.bdPos[1]):(yt=ot.bdPos,St=ot.bdPos);var _t=rt.selectAll("path.mean").data(st.type==="box"&&st.boxmean||st.type==="violin"&&st.box.visible&&st.meanline.visible?xt.identity:[]);_t.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),_t.exit().remove(),_t.each(function(Mt){var Tt=vt.c2l(Mt.pos+bt,!0),kt=vt.l2p(Tt-yt)+ft,wt=vt.l2p(Tt+St)+ft,ct=dt?(kt+wt)/2:vt.l2p(Tt)+ft,It=nt.c2p(Mt.mean,!0),At=nt.c2p(Mt.mean-Mt.sd,!0),Ot=nt.c2p(Mt.mean+Mt.sd,!0);st.orientation==="h"?it.select(this).attr("d","M"+It+","+kt+"V"+wt+(at==="sd"?"m0,0L"+At+","+ct+"L"+It+","+kt+"L"+Ot+","+ct+"Z":"")):it.select(this).attr("d","M"+kt+","+It+"H"+wt+(at==="sd"?"m0,0L"+ct+","+At+"L"+kt+","+It+"L"+ct+","+Ot+"Z":""))})}Ct.exports={plot:ut,plotBoxAndWhiskers:ht,plotPoints:j,plotBoxMean:_}},8264:function(Ct){Ct.exports=function(o,it){var xt=o.cd,et=o.xaxis,Et=o.yaxis,mt=[],ut,ht;if(it===!1)for(ut=0;ut=10)return null;for(var mt=1/0,ut=-1/0,ht=et.length,j=0;j0?Math.floor:Math.ceil,Nt=Pt>0?Math.ceil:Math.floor,$t=Pt>0?Math.min:Math.max,Ut=Pt>0?Math.max:Math.min,Ht=Dt(At+zt),Vt=Nt(Ot-zt);st=It(At);var Xt=[[st]];for(ut=Ht;ut*Pt=0;Et--)mt[rt-Et]=o[tt][Et],ut[rt-Et]=it[tt][Et];for(ht.push({x:mt,y:ut,bicubic:j}),Et=tt,mt=[],ut=[];Et>=0;Et--)mt[tt-Et]=o[Et][0],ut[tt-Et]=it[Et][0];return ht.push({x:mt,y:ut,bicubic:_}),ht}},19216:function(Ct,Rt,o){var it=o(54460),xt=o(92880).extendFlat;Ct.exports=function(Et,mt,ut){var ht,j,_,rt,tt,st,ot,nt,vt,dt,bt,ft,at,yt,St=Et["_"+mt],_t=Et[mt+"axis"],Mt=_t._gridlines=[],Tt=_t._minorgridlines=[],kt=_t._boundarylines=[],wt=Et["_"+ut],ct=Et[ut+"axis"];_t.tickmode==="array"&&(_t.tickvals=St.slice());var It=Et._xctrl,At=Et._yctrl,Ot=It[0].length,Pt=It.length,zt=Et._a.length,Dt=Et._b.length;it.prepTicks(_t),_t.tickmode==="array"&&delete _t.tickvals;var Nt=_t.smoothing?3:1;function $t(Ht){var Vt,Xt,qt,er,lr,Jt,Yt,rr,jt,ar,sr,Zt,Kt=[],or=[],tr={};if(mt==="b")for(Xt=Et.b2j(Ht),qt=Math.floor(Math.max(0,Math.min(Dt-2,Xt))),er=Xt-qt,tr.length=Dt,tr.crossLength=zt,tr.xy=function(cr){return Et.evalxy([],cr,Xt)},tr.dxy=function(cr,hr){return Et.dxydi([],cr,qt,hr,er)},Vt=0;Vt0&&(jt=Et.dxydi([],Vt-1,qt,0,er),Kt.push(lr[0]+jt[0]/3),or.push(lr[1]+jt[1]/3),ar=Et.dxydi([],Vt-1,qt,1,er),Kt.push(rr[0]-ar[0]/3),or.push(rr[1]-ar[1]/3)),Kt.push(rr[0]),or.push(rr[1]),lr=rr;else for(Vt=Et.a2i(Ht),Jt=Math.floor(Math.max(0,Math.min(zt-2,Vt))),Yt=Vt-Jt,tr.length=zt,tr.crossLength=Dt,tr.xy=function(cr){return Et.evalxy([],Vt,cr)},tr.dxy=function(cr,hr){return Et.dxydj([],Jt,cr,Yt,hr)},Xt=0;Xt0&&(sr=Et.dxydj([],Jt,Xt-1,Yt,0),Kt.push(lr[0]+sr[0]/3),or.push(lr[1]+sr[1]/3),Zt=Et.dxydj([],Jt,Xt-1,Yt,1),Kt.push(rr[0]-Zt[0]/3),or.push(rr[1]-Zt[1]/3)),Kt.push(rr[0]),or.push(rr[1]),lr=rr;return tr.axisLetter=mt,tr.axis=_t,tr.crossAxis=ct,tr.value=Ht,tr.constvar=ut,tr.index=nt,tr.x=Kt,tr.y=or,tr.smoothing=ct.smoothing,tr}function Ut(Ht){var Vt,Xt,qt,er,lr,Jt=[],Yt=[],rr={};if(rr.length=St.length,rr.crossLength=wt.length,mt==="b")for(qt=Math.max(0,Math.min(Dt-2,Ht)),lr=Math.min(1,Math.max(0,Ht-qt)),rr.xy=function(jt){return Et.evalxy([],jt,Ht)},rr.dxy=function(jt,ar){return Et.dxydi([],jt,qt,ar,lr)},Vt=0;VtSt.length-1)&&Mt.push(xt(Ut(j),{color:_t.gridcolor,width:_t.gridwidth,dash:_t.griddash}));for(nt=st;ntSt.length-1)&&!(bt<0||bt>St.length-1))for(ft=St[_],at=St[bt],ht=0;ht<_t.minorgridcount;ht++)yt=bt-_,!(yt<=0)&&(dt=ft+(at-ft)*(ht+1)/(_t.minorgridcount+1)*(_t.arraydtick/yt),!(dtSt[St.length-1])&&Tt.push(xt($t(dt),{color:_t.minorgridcolor,width:_t.minorgridwidth,dash:_t.minorgriddash})));_t.startline&&kt.push(xt(Ut(0),{color:_t.startlinecolor,width:_t.startlinewidth})),_t.endline&&kt.push(xt(Ut(St.length-1),{color:_t.endlinecolor,width:_t.endlinewidth}))}else{for(rt=5e-15,tt=[Math.floor((St[St.length-1]-_t.tick0)/_t.dtick*(1+rt)),Math.ceil((St[0]-_t.tick0)/_t.dtick/(1+rt))].sort(function(Ht,Vt){return Ht-Vt}),st=tt[0],ot=tt[1],nt=st;nt<=ot;nt++)vt=_t.tick0+_t.dtick*nt,Mt.push(xt($t(vt),{color:_t.gridcolor,width:_t.gridwidth,dash:_t.griddash}));for(nt=st-1;ntSt[St.length-1])&&Tt.push(xt($t(dt),{color:_t.minorgridcolor,width:_t.minorgridwidth,dash:_t.minorgriddash}));_t.startline&&kt.push(xt($t(St[0]),{color:_t.startlinecolor,width:_t.startlinewidth})),_t.endline&&kt.push(xt($t(St[St.length-1]),{color:_t.endlinecolor,width:_t.endlinewidth}))}}},14724:function(Ct,Rt,o){var it=o(54460),xt=o(92880).extendFlat;Ct.exports=function(Et,mt){var ut,ht,j,_,rt,tt=mt._labels=[],st=mt._gridlines;for(ut=0;utEt.length&&(et=et.slice(0,Et.length)):et=[],ut=0;ut90&&(ot-=180,j=-j),{angle:ot,flip:j,p:o.c2p(et,it,xt),offsetMultplier:_}}},164:function(Ct,Rt,o){var it=o(33428),xt=o(43616),et=o(87072),Et=o(53416),mt=o(15584),ut=o(72736),ht=o(3400),j=ht.strRotate,_=ht.strTranslate,rt=o(84284);Ct.exports=function(at,yt,St,_t){var Mt=at._context.staticPlot,Tt=yt.xaxis,kt=yt.yaxis,wt=at._fullLayout,ct=wt._clips;ht.makeTraceGroups(_t,St,"trace").each(function(It){var At=it.select(this),Ot=It[0],Pt=Ot.trace,zt=Pt.aaxis,Dt=Pt.baxis,Nt=ht.ensureSingle(At,"g","minorlayer"),$t=ht.ensureSingle(At,"g","majorlayer"),Ut=ht.ensureSingle(At,"g","boundarylayer"),Ht=ht.ensureSingle(At,"g","labellayer");At.style("opacity",Pt.opacity),st(Tt,kt,$t,zt,"a",zt._gridlines,!0),st(Tt,kt,$t,Dt,"b",Dt._gridlines,!0),st(Tt,kt,Nt,zt,"a",zt._minorgridlines,!0),st(Tt,kt,Nt,Dt,"b",Dt._minorgridlines,!0),st(Tt,kt,Ut,zt,"a-boundary",zt._boundarylines,Mt),st(Tt,kt,Ut,Dt,"b-boundary",Dt._boundarylines,Mt);var Vt=ot(at,Tt,kt,Pt,Ot,Ht,zt._labels,"a-label"),Xt=ot(at,Tt,kt,Pt,Ot,Ht,Dt._labels,"b-label");nt(at,Ht,Pt,Ot,Tt,kt,Vt,Xt),tt(Pt,Ot,ct,Tt,kt)})};function tt(ft,at,yt,St,_t){var Mt,Tt,kt,wt,ct=yt.select("#"+ft._clipPathId);ct.size()||(ct=yt.append("clipPath").classed("carpetclip",!0));var It=ht.ensureSingle(ct,"path","carpetboundary"),At=at.clipsegments,Ot=[];for(wt=0;wt0?"start":"end","data-notex":1}).call(xt.font,At.font).text(At.text).call(ut.convertToTspans,ft),$t=xt.bBox(this);Nt.attr("transform",_(Pt.p[0],Pt.p[1])+j(Pt.angle)+_(At.axis.labelpadding*Dt,$t.height*.3)),ct=Math.max(ct,$t.width+At.axis.labelpadding)}),wt.exit().remove(),It.maxExtent=ct,It}function nt(ft,at,yt,St,_t,Mt,Tt,kt){var wt,ct,It,At,Ot=ht.aggNums(Math.min,null,yt.a),Pt=ht.aggNums(Math.max,null,yt.a),zt=ht.aggNums(Math.min,null,yt.b),Dt=ht.aggNums(Math.max,null,yt.b);wt=.5*(Ot+Pt),ct=zt,It=yt.ab2xy(wt,ct,!0),At=yt.dxyda_rough(wt,ct),Tt.angle===void 0&&ht.extendFlat(Tt,mt(yt,_t,Mt,It,yt.dxydb_rough(wt,ct))),bt(ft,at,yt,St,It,At,yt.aaxis,_t,Mt,Tt,"a-title"),wt=Ot,ct=.5*(zt+Dt),It=yt.ab2xy(wt,ct,!0),At=yt.dxydb_rough(wt,ct),kt.angle===void 0&&ht.extendFlat(kt,mt(yt,_t,Mt,It,yt.dxyda_rough(wt,ct))),bt(ft,at,yt,St,It,At,yt.baxis,_t,Mt,kt,"b-title")}var vt=rt.LINE_SPACING,dt=(1-rt.MID_SHIFT)/vt+1;function bt(ft,at,yt,St,_t,Mt,Tt,kt,wt,ct,It){var At=[];Tt.title.text&&At.push(Tt.title.text);var Ot=at.selectAll("text."+It).data(At),Pt=ct.maxExtent;Ot.enter().append("text").classed(It,!0),Ot.each(function(){var zt=mt(yt,kt,wt,_t,Mt);["start","both"].indexOf(Tt.showticklabels)===-1&&(Pt=0);var Dt=Tt.title.font.size;Pt+=Dt+Tt.title.offset;var Nt=ct.angle+(ct.flip<0?180:0),$t=(Nt-zt.angle+450)%360,Ut=$t>90&&$t<270,Ht=it.select(this);Ht.text(Tt.title.text).call(ut.convertToTspans,ft),Ut&&(Pt=(-ut.lineCount(Ht)+dt)*vt*Dt-Pt),Ht.attr("transform",_(zt.p[0],zt.p[1])+j(zt.angle)+_(0,Pt)).attr("text-anchor","middle").call(xt.font,Tt.title.font)}),Ot.exit().remove()}},81e3:function(Ct,Rt,o){var it=o(24588),xt=o(14952).findBin,et=o(30180),Et=o(29056),mt=o(26435),ut=o(24464);Ct.exports=function(j){var _=j._a,rt=j._b,tt=_.length,st=rt.length,ot=j.aaxis,nt=j.baxis,vt=_[0],dt=_[tt-1],bt=rt[0],ft=rt[st-1],at=_[_.length-1]-_[0],yt=rt[rt.length-1]-rt[0],St=at*it.RELATIVE_CULL_TOLERANCE,_t=yt*it.RELATIVE_CULL_TOLERANCE;vt-=St,dt+=St,bt-=_t,ft+=_t,j.isVisible=function(Mt,Tt){return Mt>vt&&Mtbt&&Ttdt||Ttft},j.setScale=function(){var Mt=j._x,Tt=j._y,kt=et(j._xctrl,j._yctrl,Mt,Tt,ot.smoothing,nt.smoothing);j._xctrl=kt[0],j._yctrl=kt[1],j.evalxy=Et([j._xctrl,j._yctrl],tt,st,ot.smoothing,nt.smoothing),j.dxydi=mt([j._xctrl,j._yctrl],ot.smoothing,nt.smoothing),j.dxydj=ut([j._xctrl,j._yctrl],ot.smoothing,nt.smoothing)},j.i2a=function(Mt){var Tt=Math.max(0,Math.floor(Mt[0]),tt-2),kt=Mt[0]-Tt;return(1-kt)*_[Tt]+kt*_[Tt+1]},j.j2b=function(Mt){var Tt=Math.max(0,Math.floor(Mt[1]),tt-2),kt=Mt[1]-Tt;return(1-kt)*rt[Tt]+kt*rt[Tt+1]},j.ij2ab=function(Mt){return[j.i2a(Mt[0]),j.j2b(Mt[1])]},j.a2i=function(Mt){var Tt=Math.max(0,Math.min(xt(Mt,_),tt-2)),kt=_[Tt],wt=_[Tt+1];return Math.max(0,Math.min(tt-1,Tt+(Mt-kt)/(wt-kt)))},j.b2j=function(Mt){var Tt=Math.max(0,Math.min(xt(Mt,rt),st-2)),kt=rt[Tt],wt=rt[Tt+1];return Math.max(0,Math.min(st-1,Tt+(Mt-kt)/(wt-kt)))},j.ab2ij=function(Mt){return[j.a2i(Mt[0]),j.b2j(Mt[1])]},j.i2c=function(Mt,Tt){return j.evalxy([],Mt,Tt)},j.ab2xy=function(Mt,Tt,kt){if(!kt&&(Mt<_[0]||Mt>_[tt-1]|Ttrt[st-1]))return[!1,!1];var wt=j.a2i(Mt),ct=j.b2j(Tt),It=j.evalxy([],wt,ct);if(kt){var At=0,Ot=0,Pt=[],zt,Dt,Nt,$t;Mt<_[0]?(zt=0,Dt=0,At=(Mt-_[0])/(_[1]-_[0])):Mt>_[tt-1]?(zt=tt-2,Dt=1,At=(Mt-_[tt-1])/(_[tt-1]-_[tt-2])):(zt=Math.max(0,Math.min(tt-2,Math.floor(wt))),Dt=wt-zt),Ttrt[st-1]?(Nt=st-2,$t=1,Ot=(Tt-rt[st-1])/(rt[st-1]-rt[st-2])):(Nt=Math.max(0,Math.min(st-2,Math.floor(ct))),$t=ct-Nt),At&&(j.dxydi(Pt,zt,Nt,Dt,$t),It[0]+=Pt[0]*At,It[1]+=Pt[1]*At),Ot&&(j.dxydj(Pt,zt,Nt,Dt,$t),It[0]+=Pt[0]*Ot,It[1]+=Pt[1]*Ot)}return It},j.c2p=function(Mt,Tt,kt){return[Tt.c2p(Mt[0]),kt.c2p(Mt[1])]},j.p2x=function(Mt,Tt,kt){return[Tt.p2c(Mt[0]),kt.p2c(Mt[1])]},j.dadi=function(Mt){var Tt=Math.max(0,Math.min(_.length-2,Mt));return _[Tt+1]-_[Tt]},j.dbdj=function(Mt){var Tt=Math.max(0,Math.min(rt.length-2,Mt));return rt[Tt+1]-rt[Tt]},j.dxyda=function(Mt,Tt,kt,wt){var ct=j.dxydi(null,Mt,Tt,kt,wt),It=j.dadi(Mt,kt);return[ct[0]/It,ct[1]/It]},j.dxydb=function(Mt,Tt,kt,wt){var ct=j.dxydj(null,Mt,Tt,kt,wt),It=j.dbdj(Tt,wt);return[ct[0]/It,ct[1]/It]},j.dxyda_rough=function(Mt,Tt,kt){var wt=at*(kt||.1),ct=j.ab2xy(Mt+wt,Tt,!0),It=j.ab2xy(Mt-wt,Tt,!0);return[(ct[0]-It[0])*.5/wt,(ct[1]-It[1])*.5/wt]},j.dxydb_rough=function(Mt,Tt,kt){var wt=yt*(kt||.1),ct=j.ab2xy(Mt,Tt+wt,!0),It=j.ab2xy(Mt,Tt-wt,!0);return[(ct[0]-It[0])*.5/wt,(ct[1]-It[1])*.5/wt]},j.dpdx=function(Mt){return Mt._m},j.dpdy=function(Mt){return Mt._m}}},51512:function(Ct,Rt,o){var it=o(3400);Ct.exports=function(et,Et,mt){var ut,ht,j,_=[],rt=[],tt=et[0].length,st=et.length;function ot(Xt,qt){var er=0,lr,Jt=0;return Xt>0&&(lr=et[qt][Xt-1])!==void 0&&(Jt++,er+=lr),Xt0&&(lr=et[qt-1][Xt])!==void 0&&(Jt++,er+=lr),qt0&&ht0&&utwt);return it.log("Smoother converged to",ct,"after",At,"iterations"),et}},86411:function(Ct,Rt,o){var it=o(3400).isArray1D;Ct.exports=function(et,Et,mt){var ut=mt("x"),ht=ut&&ut.length,j=mt("y"),_=j&&j.length;if(!ht&&!_)return!1;if(Et._cheater=!ut,(!ht||it(ut))&&(!_||it(j))){var rt=ht?ut.length:1/0;_&&(rt=Math.min(rt,j.length)),Et.a&&Et.a.length&&(rt=Math.min(rt,Et.a.length)),Et.b&&Et.b.length&&(rt=Math.min(rt,Et.b.length)),Et._length=rt}else Et._length=null;return!0}},83372:function(Ct,Rt,o){var it=o(21776).Ks,xt=o(6096),et=o(49084),Et=o(45464),mt=o(22548).defaultLine,ut=o(92880).extendFlat,ht=xt.marker.line;Ct.exports=ut({locations:{valType:"data_array",editType:"calc"},locationmode:xt.locationmode,z:{valType:"data_array",editType:"calc"},geojson:ut({},xt.geojson,{}),featureidkey:xt.featureidkey,text:ut({},xt.text,{}),hovertext:ut({},xt.hovertext,{}),marker:{line:{color:ut({},ht.color,{dflt:mt}),width:ut({},ht.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:xt.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:xt.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:ut({},Et.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:it(),showlegend:ut({},Et.showlegend,{dflt:!1})},et("",{cLetter:"z",editTypeOverride:"calc"}))},7924:function(Ct,Rt,o){var it=o(38248),xt=o(39032).BADNUM,et=o(47128),Et=o(20148),mt=o(4500);function ut(ht){return ht&&typeof ht=="string"}Ct.exports=function(j,_){var rt=_._length,tt=new Array(rt),st;_.geojson?st=function(bt){return ut(bt)||it(bt)}:st=ut;for(var ot=0;ot")}}},54272:function(Ct,Rt,o){Ct.exports={attributes:o(83372),supplyDefaults:o(30972),colorbar:o(96288),calc:o(7924),calcGeoJSON:o(88364).calcGeoJSON,plot:o(88364).plot,style:o(7947).style,styleOnSelect:o(7947).styleOnSelect,hoverPoints:o(69224),eventData:o(52428),selectPoints:o(17328),moduleType:"trace",name:"choropleth",basePlotModule:o(10816),categories:["geo","noOpacity","showLegend"],meta:{}}},88364:function(Ct,Rt,o){var it=o(33428),xt=o(3400),et=o(27144),Et=o(59972).getTopojsonFeatures,mt=o(19280).findExtremes,ut=o(7947).style;function ht(_,rt,tt){var st=rt.layers.backplot.select(".choroplethlayer");xt.makeTraceGroups(st,tt,"trace choropleth").each(function(ot){var nt=it.select(this),vt=nt.selectAll("path.choroplethlocation").data(xt.identity);vt.enter().append("path").classed("choroplethlocation",!0),vt.exit().remove(),ut(_,ot)})}function j(_,rt){for(var tt=_[0].trace,st=rt[tt.geo],ot=st._subplot,nt=tt.locationmode,vt=tt._length,dt=nt==="geojson-id"?et.extractTraceFeature(_):Et(tt,ot.topojson),bt=[],ft=[],at=0;at=0;Et--){var mt=et[Et].id;if(typeof mt=="string"&&mt.indexOf("water")===0){for(var ut=Et+1;ut=0;j--)ut.removeLayer(ht[j][1])},mt.dispose=function(){var ut=this.subplot.map;this._removeLayers(),ut.removeSource(this.sourceId)},Ct.exports=function(ht,j){var _=j[0].trace,rt=new Et(ht,_.uid),tt=rt.sourceId,st=it(j),ot=rt.below=ht.belowLookup["trace-"+_.uid];return ht.map.addSource(tt,{type:"geojson",data:st.geojson}),rt._addLayers(st,ot),j[0].trace._glTrace=rt,rt}},86040:function(Ct,Rt,o){var it=o(49084),xt=o(29736).axisHoverFormat,et=o(21776).Ks,Et=o(52948),mt=o(45464),ut=o(92880).extendFlat,ht={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},sizemode:{valType:"enumerated",values:["scaled","absolute","raw"],editType:"calc",dflt:"scaled"},sizeref:{valType:"number",editType:"calc",min:0},anchor:{valType:"enumerated",editType:"calc",values:["tip","tail","cm","center"],dflt:"cm"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:et({editType:"calc"},{keys:["norm"]}),uhoverformat:xt("u",1),vhoverformat:xt("v",1),whoverformat:xt("w",1),xhoverformat:xt("x"),yhoverformat:xt("y"),zhoverformat:xt("z"),showlegend:ut({},mt.showlegend,{dflt:!1})};ut(ht,it("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var j=["opacity","lightposition","lighting"];j.forEach(function(_){ht[_]=Et[_]}),ht.hoverinfo=ut({},mt.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"}),ht.transforms=void 0,Ct.exports=ht},83344:function(Ct,Rt,o){var it=o(47128);Ct.exports=function(et,Et){for(var mt=Et.u,ut=Et.v,ht=Et.w,j=Math.min(Et.x.length,Et.y.length,Et.z.length,mt.length,ut.length,ht.length),_=-1/0,rt=1/0,tt=0;ttmt.level||mt.starts.length&&Et===mt.level)}break;case"constraint":if(it.prefixBoundary=!1,it.edgepaths.length)return;var ut=it.x.length,ht=it.y.length,j=-1/0,_=1/0;for(et=0;et":rt>j&&(it.prefixBoundary=!0);break;case"<":(rt<_||it.starts.length&&rt===_)&&(it.prefixBoundary=!0);break;case"[]":tt=Math.min(rt[0],rt[1]),st=Math.max(rt[0],rt[1]),(st<_||tt>j||it.starts.length&&st===_)&&(it.prefixBoundary=!0);break;case"][":tt=Math.min(rt[0],rt[1]),st=Math.max(rt[0],rt[1]),tt<_&&st>j&&(it.prefixBoundary=!0);break}break}}},55296:function(Ct,Rt,o){var it=o(8932),xt=o(41076),et=o(46960);function Et(mt,ut,ht){var j=ut.contours,_=ut.line,rt=j.size||1,tt=j.coloring,st=xt(ut,{isColorbar:!0});if(tt==="heatmap"){var ot=it.extractOpts(ut);ht._fillgradient=ot.reversescale?it.flipScale(ot.colorscale):ot.colorscale,ht._zrange=[ot.min,ot.max]}else tt==="fill"&&(ht._fillcolor=st);ht._line={color:tt==="lines"?st:_.color,width:j.showlines!==!1?_.width:0,dash:_.dash},ht._levels={start:j.start,end:et(j),size:rt}}Ct.exports={min:"zmin",max:"zmax",calc:Et}},93252:function(Ct){Ct.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},95536:function(Ct,Rt,o){var it=o(38248),xt=o(17428),et=o(76308),Et=et.addOpacity,mt=et.opacity,ut=o(69104),ht=o(3400).isArrayOrTypedArray,j=ut.CONSTRAINT_REDUCTION,_=ut.COMPARISON_OPS2;Ct.exports=function(st,ot,nt,vt,dt,bt){var ft=ot.contours,at,yt,St,_t=nt("contours.operation");if(ft._operation=j[_t],rt(nt,ft),_t==="="?at=ft.showlines=!0:(at=nt("contours.showlines"),St=nt("fillcolor",Et((st.line||{}).color||dt,.5))),at){var Mt=St&&mt(St)?Et(ot.fillcolor,1):dt;yt=nt("line.color",Mt),nt("line.width",2),nt("line.dash")}nt("line.smoothing"),xt(nt,vt,yt,bt)};function rt(tt,st){var ot;_.indexOf(st.operation)===-1?(tt("contours.value",[0,1]),ht(st.value)?st.value.length>2?st.value=st.value.slice(2):st.length===0?st.value=[0,1]:st.length<2?(ot=parseFloat(st.value[0]),st.value=[ot,ot+1]):st.value=[parseFloat(st.value[0]),parseFloat(st.value[1])]:it(st.value)&&(ot=parseFloat(st.value),st.value=[ot,ot+1])):(tt("contours.value",0),it(st.value)||(ht(st.value)?st.value=parseFloat(st.value[0]):st.value=0))}},3212:function(Ct,Rt,o){var it=o(69104),xt=o(38248);Ct.exports={"[]":Et("[]"),"][":Et("]["),">":mt(">"),"<":mt("<"),"=":mt("=")};function et(ut,ht){var j=Array.isArray(ht),_;function rt(tt){return xt(tt)?+tt:null}return it.COMPARISON_OPS2.indexOf(ut)!==-1?_=rt(j?ht[0]:ht):it.INTERVAL_OPS.indexOf(ut)!==-1?_=j?[rt(ht[0]),rt(ht[1])]:[rt(ht),rt(ht)]:it.SET_OPS.indexOf(ut)!==-1&&(_=j?ht.map(rt):[rt(ht)]),_}function Et(ut){return function(ht){ht=et(ut,ht);var j=Math.min(ht[0],ht[1]),_=Math.max(ht[0],ht[1]);return{start:j,end:_,size:_-j}}}function mt(ut){return function(ht){return ht=et(ut,ht),{start:ht,end:1/0,size:1/0}}}},84952:function(Ct){Ct.exports=function(o,it,xt,et){var Et=et("contours.start"),mt=et("contours.end"),ut=Et===!1||mt===!1,ht=xt("contours.size"),j;ut?j=it.autocontour=!0:j=xt("autocontour",!1),(j||!ht)&&xt("ncontours")}},82172:function(Ct,Rt,o){var it=o(3400);Ct.exports=function(et,Et){var mt,ut,ht,j=function(tt){return tt.reverse()},_=function(tt){return tt};switch(Et){case"=":case"<":return et;case">":for(et.length!==1&&it.warn("Contour data invalid for the specified inequality operation."),ut=et[0],mt=0;mt1e3){it.warn("Too many contours, clipping at 1000",mt);break}return rt}},46960:function(Ct){Ct.exports=function(o){return o.end+o.size/1e6}},88748:function(Ct,Rt,o){var it=o(3400),xt=o(93252);Ct.exports=function(_,rt,tt){var st,ot,nt,vt,dt;for(rt=rt||.01,tt=tt||.01,nt=0;nt<_.length;nt++){for(vt=_[nt],dt=0;dt20?(nt=xt.CHOOSESADDLE[nt][(vt[0]||vt[1])<0?0:1],j.crossings[ot]=xt.SADDLEREMAINDER[nt]):delete j.crossings[ot],vt=xt.NEWDELTA[nt],!vt){it.log("Found bad marching index:",nt,_,j.level);break}dt.push(ht(j,_,vt)),_[0]+=vt[0],_[1]+=vt[1],ot=_.join(","),et(dt[dt.length-1],dt[dt.length-2],tt,st)&&dt.pop();var _t=vt[0]&&(_[0]<0||_[0]>ft-2)||vt[1]&&(_[1]<0||_[1]>bt-2),Mt=_[0]===at[0]&&_[1]===at[1]&&vt[0]===yt[0]&&vt[1]===yt[1];if(Mt||rt&&_t)break;nt=j.crossings[ot]}St===1e4&&it.log("Infinite loop in contour?");var Tt=et(dt[0],dt[dt.length-1],tt,st),kt=0,wt=.2*j.smoothing,ct=[],It=0,At,Ot,Pt,zt,Dt,Nt,$t,Ut,Ht,Vt,Xt;for(St=1;St=It;St--)if(At=ct[St],At=It&&At+ct[Ot]Ut&&Ht--,j.edgepaths[Ht]=Xt.concat(dt,Vt));break}Jt||(j.edgepaths[Ut]=dt.concat(Vt))}for(Ut=0;Ut20&&_?j===208||j===1114?tt=rt[0]===0?1:-1:st=rt[1]===0?1:-1:xt.BOTTOMSTART.indexOf(j)!==-1?st=1:xt.LEFTSTART.indexOf(j)!==-1?tt=1:xt.TOPSTART.indexOf(j)!==-1?st=-1:tt=-1,[tt,st]}function ht(j,_,rt){var tt=_[0]+Math.max(rt[0],0),st=_[1]+Math.max(rt[1],0),ot=j.z[st][tt],nt=j.xaxis,vt=j.yaxis;if(rt[1]){var dt=(j.level-ot)/(j.z[st][tt+1]-ot),bt=(dt!==1?(1-dt)*nt.c2l(j.x[tt]):0)+(dt!==0?dt*nt.c2l(j.x[tt+1]):0);return[nt.c2p(nt.l2c(bt),!0),vt.c2p(j.y[st],!0),tt+dt,st]}else{var ft=(j.level-ot)/(j.z[st+1][tt]-ot),at=(ft!==1?(1-ft)*vt.c2l(j.y[st]):0)+(ft!==0?ft*vt.c2l(j.y[st+1]):0);return[nt.c2p(j.x[tt],!0),vt.c2p(vt.l2c(at),!0),tt,st+ft]}}},38200:function(Ct,Rt,o){var it=o(76308),xt=o(55512);Ct.exports=function(Et,mt,ut,ht,j){j||(j={}),j.isContour=!0;var _=xt(Et,mt,ut,ht,j);return _&&_.forEach(function(rt){var tt=rt.trace;tt.contours.type==="constraint"&&(tt.fillcolor&&it.opacity(tt.fillcolor)?rt.color=it.addOpacity(tt.fillcolor,1):tt.contours.showlines&&it.opacity(tt.line.color)&&(rt.color=it.addOpacity(tt.line.color,1)))}),_}},66240:function(Ct,Rt,o){Ct.exports={attributes:o(67104),supplyDefaults:o(57004),calc:o(20688),plot:o(23676).plot,style:o(52440),colorbar:o(55296),hoverPoints:o(38200),moduleType:"trace",name:"contour",basePlotModule:o(57952),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}},17428:function(Ct,Rt,o){var it=o(3400);Ct.exports=function(et,Et,mt,ut){ut||(ut={});var ht=et("contours.showlabels");if(ht){var j=Et.font;it.coerceFont(et,"contours.labelfont",{weight:j.weight,style:j.style,variant:j.variant,family:j.family,size:j.size,color:mt}),et("contours.labelformat")}ut.hasHover!==!1&&et("zhoverformat")}},41076:function(Ct,Rt,o){var it=o(33428),xt=o(8932),et=o(46960);Ct.exports=function(mt){var ut=mt.contours,ht=ut.start,j=et(ut),_=ut.size||1,rt=Math.floor((j-ht)/_)+1,tt=ut.coloring==="lines"?0:1,st=xt.extractOpts(mt);isFinite(_)||(_=1,rt=1);var ot=st.reversescale?xt.flipScale(st.colorscale):st.colorscale,nt=ot.length,vt=new Array(nt),dt=new Array(nt),bt,ft,at=st.min,yt=st.max;if(ut.coloring==="heatmap"){for(ft=0;ft=yt)&&(ht<=at&&(ht=at),j>=yt&&(j=yt),rt=Math.floor((j-ht)/_)+1,tt=0),ft=0;ftat&&(vt.unshift(at),dt.unshift(dt[0])),vt[vt.length-1]et?0:1)+(Et[0][1]>et?0:2)+(Et[1][1]>et?0:4)+(Et[1][0]>et?0:8);if(mt===5||mt===10){var ut=(Et[0][0]+Et[0][1]+Et[1][0]+Et[1][1])/4;return et>ut?mt===5?713:1114:mt===5?104:208}return mt===15?0:mt}},23676:function(Ct,Rt,o){var it=o(33428),xt=o(3400),et=o(43616),Et=o(8932),mt=o(72736),ut=o(54460),ht=o(78344),j=o(41420),_=o(72424),rt=o(88748),tt=o(61512),st=o(82172),ot=o(56008),nt=o(93252),vt=nt.LABELOPTIMIZER;Rt.plot=function(Tt,kt,wt,ct){var It=kt.xaxis,At=kt.yaxis;xt.makeTraceGroups(ct,wt,"contour").each(function(Ot){var Pt=it.select(this),zt=Ot[0],Dt=zt.trace,Nt=zt.x,$t=zt.y,Ut=Dt.contours,Ht=tt(Ut,kt,zt),Vt=xt.ensureSingle(Pt,"g","heatmapcoloring"),Xt=[];Ut.coloring==="heatmap"&&(Xt=[Ot]),j(Tt,kt,Xt,Vt),_(Ht),rt(Ht);var qt=It.c2p(Nt[0],!0),er=It.c2p(Nt[Nt.length-1],!0),lr=At.c2p($t[0],!0),Jt=At.c2p($t[$t.length-1],!0),Yt=[[qt,Jt],[er,Jt],[er,lr],[qt,lr]],rr=Ht;Ut.type==="constraint"&&(rr=st(Ht,Ut._operation)),dt(Pt,Yt,Ut),bt(Pt,rr,Yt,Ut),at(Pt,Ht,Tt,zt,Ut),St(Pt,kt,Tt,zt,Yt)})};function dt(Mt,Tt,kt){var wt=xt.ensureSingle(Mt,"g","contourbg"),ct=wt.selectAll("path").data(kt.coloring==="fill"?[0]:[]);ct.enter().append("path"),ct.exit().remove(),ct.attr("d","M"+Tt.join("L")+"Z").style("stroke","none")}function bt(Mt,Tt,kt,wt){var ct=wt.coloring==="fill"||wt.type==="constraint"&&wt._operation!=="=",It="M"+kt.join("L")+"Z";ct&&ot(Tt,wt);var At=xt.ensureSingle(Mt,"g","contourfill"),Ot=At.selectAll("path").data(ct?Tt:[]);Ot.enter().append("path"),Ot.exit().remove(),Ot.each(function(Pt){var zt=(Pt.prefixBoundary?It:"")+ft(Pt,kt);zt?it.select(this).attr("d",zt).style("stroke","none"):it.select(this).remove()})}function ft(Mt,Tt){var kt="",wt=0,ct=Mt.edgepaths.map(function(qt,er){return er}),It=!0,At,Ot,Pt,zt,Dt,Nt;function $t(qt){return Math.abs(qt[1]-Tt[0][1])<.01}function Ut(qt){return Math.abs(qt[1]-Tt[2][1])<.01}function Ht(qt){return Math.abs(qt[0]-Tt[0][0])<.01}function Vt(qt){return Math.abs(qt[0]-Tt[2][0])<.01}for(;ct.length;){for(Nt=et.smoothopen(Mt.edgepaths[wt],Mt.smoothing),kt+=It?Nt:Nt.replace(/^M/,"L"),ct.splice(ct.indexOf(wt),1),At=Mt.edgepaths[wt][Mt.edgepaths[wt].length-1],zt=-1,Pt=0;Pt<4;Pt++){if(!At){xt.log("Missing end?",wt,Mt);break}for($t(At)&&!Vt(At)?Ot=Tt[1]:Ht(At)?Ot=Tt[0]:Ut(At)?Ot=Tt[3]:Vt(At)&&(Ot=Tt[2]),Dt=0;Dt=0&&(Ot=Xt,zt=Dt):Math.abs(At[1]-Ot[1])<.01?Math.abs(At[1]-Xt[1])<.01&&(Xt[0]-At[0])*(Ot[0]-Xt[0])>=0&&(Ot=Xt,zt=Dt):xt.log("endpt to newendpt is not vert. or horz.",At,Ot,Xt)}if(At=Ot,zt>=0)break;kt+="L"+Ot}if(zt===Mt.edgepaths.length){xt.log("unclosed perimeter path");break}wt=zt,It=ct.indexOf(wt)===-1,It&&(wt=ct[0],kt+="Z")}for(wt=0;wtvt.MAXCOST*2)break;$t&&(Ot/=2),At=zt-Ot/2,Pt=At+Ot*1.5}if(Nt<=vt.MAXCOST)return Dt};function yt(Mt,Tt,kt,wt){var ct=Tt.width/2,It=Tt.height/2,At=Mt.x,Ot=Mt.y,Pt=Mt.theta,zt=Math.cos(Pt)*ct,Dt=Math.sin(Pt)*ct,Nt=(At>wt.center?wt.right-At:At-wt.left)/(zt+Math.abs(Math.sin(Pt)*It)),$t=(Ot>wt.middle?wt.bottom-Ot:Ot-wt.top)/(Math.abs(Dt)+Math.cos(Pt)*It);if(Nt<1||$t<1)return 1/0;var Ut=vt.EDGECOST*(1/(Nt-1)+1/($t-1));Ut+=vt.ANGLECOST*Pt*Pt;for(var Ht=At-zt,Vt=Ot-Dt,Xt=At+zt,qt=Ot+Dt,er=0;erht.end&&(ht.start=ht.end=(ht.start+ht.end)/2),mt._input.contours||(mt._input.contours={}),xt.extendFlat(mt._input.contours,{start:ht.start,end:ht.end,size:ht.size}),mt._input.autocontour=!0}else if(ht.type!=="constraint"){var tt=ht.start,st=ht.end,ot=mt._input.contours;if(tt>st&&(ht.start=ot.start=st,st=ht.end=ot.end=tt,tt=ht.start),!(ht.size>0)){var nt;tt===st?nt=1:nt=et(tt,st,mt.ncontours).dtick,ot.size=ht.size=nt}}};function et(Et,mt,ut){var ht={type:"linear",range:[Et,mt]};return it.autoTicks(ht,(mt-Et)/(ut||15)),ht}},52440:function(Ct,Rt,o){var it=o(33428),xt=o(43616),et=o(41648),Et=o(41076);Ct.exports=function(ut){var ht=it.select(ut).selectAll("g.contour");ht.style("opacity",function(j){return j[0].trace.opacity}),ht.each(function(j){var _=it.select(this),rt=j[0].trace,tt=rt.contours,st=rt.line,ot=tt.size||1,nt=tt.start,vt=tt.type==="constraint",dt=!vt&&tt.coloring==="lines",bt=!vt&&tt.coloring==="fill",ft=dt||bt?Et(rt):null;_.selectAll("g.contourlevel").each(function(St){it.select(this).selectAll("path").call(xt.lineGroupStyle,st.width,dt?ft(St.level):st.color,st.dash)});var at=tt.labelfont;if(_.selectAll("g.contourlabels text").each(function(St){xt.font(it.select(this),{weight:at.weight,style:at.style,variant:at.variant,family:at.family,size:at.size,color:at.color||(dt?ft(St.level):st.color)})}),vt)_.selectAll("g.contourfill path").style("fill",rt.fillcolor);else if(bt){var yt;_.selectAll("g.contourfill path").style("fill",function(St){return yt===void 0&&(yt=St.level),ft(St.level+.5*ot)}),yt===void 0&&(yt=nt),_.selectAll("g.contourbg path").style("fill",ft(yt-.5*ot))}}),et(ut)}},97680:function(Ct,Rt,o){var it=o(27260),xt=o(17428);Ct.exports=function(Et,mt,ut,ht,j){var _=ut("contours.coloring"),rt,tt="";_==="fill"&&(rt=ut("contours.showlines")),rt!==!1&&(_!=="lines"&&(tt=ut("line.color","#000")),ut("line.width",.5),ut("line.dash")),_!=="none"&&(Et.showlegend!==!0&&(mt.showlegend=!1),mt._dfltShowLegend=!1,it(Et,mt,ht,ut,{prefix:"",cLetter:"z"})),ut("line.smoothing"),xt(ut,ht,tt,j)}},37960:function(Ct,Rt,o){var it=o(83328),xt=o(67104),et=o(49084),Et=o(92880).extendFlat,mt=xt.contours;Ct.exports=Et({carpet:{valType:"string",editType:"calc"},z:it.z,a:it.x,a0:it.x0,da:it.dx,b:it.y,b0:it.y0,db:it.dy,text:it.text,hovertext:it.hovertext,transpose:it.transpose,atype:it.xtype,btype:it.ytype,fillcolor:xt.fillcolor,autocontour:xt.autocontour,ncontours:xt.ncontours,contours:{type:mt.type,start:mt.start,end:mt.end,size:mt.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:mt.showlines,showlabels:mt.showlabels,labelfont:mt.labelfont,labelformat:mt.labelformat,operation:mt.operation,value:mt.value,editType:"calc",impliedEdits:{autocontour:!1}},line:{color:xt.line.color,width:xt.line.width,dash:xt.line.dash,smoothing:xt.line.smoothing,editType:"plot"},zorder:xt.zorder,transforms:void 0},et("",{cLetter:"z",autoColorDflt:!1}))},30572:function(Ct,Rt,o){var it=o(47128),xt=o(3400),et=o(2872),Et=o(26136),mt=o(70448),ut=o(11240),ht=o(35744),j=o(3252),_=o(50948),rt=o(54444);Ct.exports=function(ot,nt){var vt=nt._carpetTrace=_(ot,nt);if(!(!vt||!vt.visible||vt.visible==="legendonly")){if(!nt.a||!nt.b){var dt=ot.data[vt.index],bt=ot.data[nt.index];bt.a||(bt.a=dt.a),bt.b||(bt.b=dt.b),j(bt,nt,nt._defaultColor,ot._fullLayout)}var ft=tt(ot,nt);return rt(nt,nt._z),ft}};function tt(st,ot){var nt=ot._carpetTrace,vt=nt.aaxis,dt=nt.baxis,bt,ft,at,yt,St,_t,Mt;vt._minDtick=0,dt._minDtick=0,xt.isArray1D(ot.z)&&et(ot,vt,dt,"a","b",["z"]),bt=ot._a=ot._a||ot.a,yt=ot._b=ot._b||ot.b,bt=bt?vt.makeCalcdata(ot,"_a"):[],yt=yt?dt.makeCalcdata(ot,"_b"):[],ft=ot.a0||0,at=ot.da||1,St=ot.b0||0,_t=ot.db||1,Mt=ot._z=Et(ot._z||ot.z,ot.transpose),ot._emptypoints=ut(Mt),mt(Mt,ot._emptypoints);var Tt=xt.maxRowLength(Mt),kt=ot.xtype==="scaled"?"":bt,wt=ht(ot,kt,ft,at,Tt,vt),ct=ot.ytype==="scaled"?"":yt,It=ht(ot,ct,St,_t,Mt.length,dt),At={a:wt,b:It,z:Mt};return ot.contours.type==="levels"&&ot.contours.coloring!=="none"&&it(st,ot,{vals:Mt,containerStr:"",cLetter:"z"}),[At]}},3252:function(Ct,Rt,o){var it=o(3400),xt=o(51264),et=o(37960),Et=o(95536),mt=o(84952),ut=o(97680);Ct.exports=function(j,_,rt,tt){function st(dt,bt){return it.coerce(j,_,et,dt,bt)}function ot(dt){return it.coerce2(j,_,et,dt)}if(st("carpet"),j.a&&j.b){var nt=xt(j,_,st,tt,"a","b");if(!nt){_.visible=!1;return}st("text");var vt=st("contours.type")==="constraint";vt?Et(j,_,st,tt,rt,{hasHover:!1}):(mt(j,_,st,ot),ut(j,_,st,tt,{hasHover:!1}))}else _._defaultColor=rt,_._length=null;st("zorder")}},40448:function(Ct,Rt,o){Ct.exports={attributes:o(37960),supplyDefaults:o(3252),colorbar:o(55296),calc:o(30572),plot:o(94440),style:o(52440),moduleType:"trace",name:"contourcarpet",basePlotModule:o(57952),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}},94440:function(Ct,Rt,o){var it=o(33428),xt=o(87072),et=o(53416),Et=o(43616),mt=o(3400),ut=o(72424),ht=o(88748),j=o(23676),_=o(93252),rt=o(82172),tt=o(61512),st=o(56008),ot=o(50948),nt=o(77712);Ct.exports=function(kt,wt,ct,It){var At=wt.xaxis,Ot=wt.yaxis;mt.makeTraceGroups(It,ct,"contour").each(function(Pt){var zt=it.select(this),Dt=Pt[0],Nt=Dt.trace,$t=Nt._carpetTrace=ot(kt,Nt),Ut=kt.calcdata[$t.index][0];if(!$t.visible||$t.visible==="legendonly")return;var Ht=Dt.a,Vt=Dt.b,Xt=Nt.contours,qt=tt(Xt,wt,Dt),er=Xt.type==="constraint",lr=Xt._operation,Jt=er?lr==="="?"lines":"fill":Xt.coloring;function Yt(br){var Tr=$t.ab2xy(br[0],br[1],!0);return[At.c2p(Tr[0]),Ot.c2p(Tr[1])]}var rr=[[Ht[0],Vt[Vt.length-1]],[Ht[Ht.length-1],Vt[Vt.length-1]],[Ht[Ht.length-1],Vt[0]],[Ht[0],Vt[0]]];ut(qt);var jt=(Ht[Ht.length-1]-Ht[0])*1e-8,ar=(Vt[Vt.length-1]-Vt[0])*1e-8;ht(qt,jt,ar);var sr=qt;Xt.type==="constraint"&&(sr=rt(qt,lr)),vt(qt,Yt);var Zt,Kt,or,tr,cr=[];for(tr=Ut.clipsegments.length-1;tr>=0;tr--)Zt=Ut.clipsegments[tr],Kt=xt([],Zt.x,At.c2p),or=xt([],Zt.y,Ot.c2p),Kt.reverse(),or.reverse(),cr.push(et(Kt,or,Zt.bicubic));var hr="M"+cr.join("L")+"Z";St(zt,Ut.clipsegments,At,Ot,er,Jt),_t(Nt,zt,At,Ot,sr,rr,Yt,$t,Ut,Jt,hr),dt(zt,qt,kt,Dt,Xt,wt,$t),Et.setClipUrl(zt,$t._clipPathId,kt)})};function vt(Tt,kt){var wt,ct,It,At,Ot,Pt,zt,Dt,Nt;for(wt=0;wtqt&&(ct.max=qt),ct.len=ct.max-ct.min}function ft(Tt,kt,wt){var ct=Tt.getPointAtLength(kt),It=Tt.getPointAtLength(wt),At=It.x-ct.x,Ot=It.y-ct.y,Pt=Math.sqrt(At*At+Ot*Ot);return[At/Pt,Ot/Pt]}function at(Tt){var kt=Math.sqrt(Tt[0]*Tt[0]+Tt[1]*Tt[1]);return[Tt[0]/kt,Tt[1]/kt]}function yt(Tt,kt){var wt=Math.abs(Tt[0]*kt[0]+Tt[1]*kt[1]),ct=Math.sqrt(1-wt*wt);return ct/wt}function St(Tt,kt,wt,ct,It,At){var Ot,Pt,zt,Dt,Nt=mt.ensureSingle(Tt,"g","contourbg"),$t=Nt.selectAll("path").data(At==="fill"&&!It?[0]:[]);$t.enter().append("path"),$t.exit().remove();var Ut=[];for(Dt=0;Dt=0&&(Ht=Kt,Xt=qt):Math.abs(Ut[1]-Ht[1])=0&&(Ht=Kt,Xt=qt):mt.log("endpt to newendpt is not vert. or horz.",Ut,Ht,Kt)}if(Xt>=0)break;Dt+=sr(Ut,Ht),Ut=Ht}if(Xt===kt.edgepaths.length){mt.log("unclosed perimeter path");break}zt=Xt,$t=Nt.indexOf(zt)===-1,$t&&(zt=Nt[0],Dt+=sr(Ut,Ht)+"Z",Ut=null)}for(zt=0;zt0?+dt[nt]:0),ot.push({type:"Feature",geometry:{type:"Point",coordinates:yt},properties:St})}}var Mt=Et.extractOpts(_),Tt=Mt.reversescale?Et.flipScale(Mt.colorscale):Mt.colorscale,kt=Tt[0][1],wt=et.opacity(kt)<1?kt:et.addOpacity(kt,0),ct=["interpolate",["linear"],["heatmap-density"],0,wt];for(nt=1;nt=0;ht--)mt.removeLayer(ut[ht][1])},Et.dispose=function(){var mt=this.subplot.map;this._removeLayers(),mt.removeSource(this.sourceId)},Ct.exports=function(ut,ht){var j=ht[0].trace,_=new et(ut,j.uid),rt=_.sourceId,tt=it(ht),st=_.below=ut.belowLookup["trace-"+j.uid];return ut.map.addSource(rt,{type:"geojson",data:tt.geojson}),_._addLayers(tt,st),_}},74248:function(Ct,Rt,o){var it=o(3400);Ct.exports=function(et,Et){for(var mt=0;mt"),tt.color=Et(ot,dt),[tt]}};function Et(mt,ut){var ht=mt.marker,j=ut.mc||ht.color,_=ut.mlc||ht.line.color,rt=ut.mlw||ht.line.width;if(it(j))return j;if(it(_)&&rt)return _}},94704:function(Ct,Rt,o){Ct.exports={attributes:o(20088),layoutAttributes:o(7076),supplyDefaults:o(45432).supplyDefaults,crossTraceDefaults:o(45432).crossTraceDefaults,supplyLayoutDefaults:o(11631),calc:o(23096),crossTraceCalc:o(4804),plot:o(42200),style:o(44544).style,hoverPoints:o(31488),eventData:o(34580),selectPoints:o(45784),moduleType:"trace",name:"funnel",basePlotModule:o(57952),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}},7076:function(Ct){Ct.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc"},funnelgap:{valType:"number",min:0,max:1,editType:"calc"},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},11631:function(Ct,Rt,o){var it=o(3400),xt=o(7076);Ct.exports=function(et,Et,mt){var ut=!1;function ht(rt,tt){return it.coerce(et,Et,xt,rt,tt)}for(var j=0;j path").each(function(dt){if(!dt.isBlank){var bt=vt.marker;it.select(this).call(et.fill,dt.mc||bt.color).call(et.stroke,dt.mlc||bt.line.color).call(xt.dashLine,bt.line.dash,dt.mlw||bt.line.width).style("opacity",vt.selectedpoints&&!dt.selected?Et:1)}}),ht(nt,vt,_),nt.selectAll(".regions").each(function(){it.select(this).selectAll("path").style("stroke-width",0).call(et.fill,vt.connector.fillcolor)}),nt.selectAll(".lines").each(function(){var dt=vt.connector.line;xt.lineGroupStyle(it.select(this).selectAll("path"),dt.width,dt.color,dt.dash)})})}Ct.exports={style:j}},22332:function(Ct,Rt,o){var it=o(74996),xt=o(45464),et=o(86968).u,Et=o(21776).Ks,mt=o(21776).Gw,ut=o(92880).extendFlat;Ct.exports={labels:it.labels,label0:it.label0,dlabel:it.dlabel,values:it.values,marker:{colors:it.marker.colors,line:{color:ut({},it.marker.line.color,{dflt:null}),width:ut({},it.marker.line.width,{dflt:1}),editType:"calc"},pattern:it.marker.pattern,editType:"calc"},text:it.text,hovertext:it.hovertext,scalegroup:ut({},it.scalegroup,{}),textinfo:ut({},it.textinfo,{flags:["label","text","value","percent"]}),texttemplate:mt({editType:"plot"},{keys:["label","color","value","text","percent"]}),hoverinfo:ut({},xt.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:Et({},{keys:["label","color","value","text","percent"]}),textposition:ut({},it.textposition,{values:["inside","none"],dflt:"inside"}),textfont:it.textfont,insidetextfont:it.insidetextfont,title:{text:it.title.text,font:it.title.font,position:ut({},it.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:et({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot"},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot"}}},91248:function(Ct,Rt,o){var it=o(7316);Rt.name="funnelarea",Rt.plot=function(xt,et,Et,mt){it.plotBasePlot(Rt.name,xt,et,Et,mt)},Rt.clean=function(xt,et,Et,mt){it.cleanBasePlot(Rt.name,xt,et,Et,mt)}},54e3:function(Ct,Rt,o){var it=o(45768);function xt(Et,mt){return it.calc(Et,mt)}function et(Et){it.crossTraceCalc(Et,{type:"funnelarea"})}Ct.exports={calc:xt,crossTraceCalc:et}},92688:function(Ct,Rt,o){var it=o(3400),xt=o(22332),et=o(86968).Q,Et=o(31508).handleText,mt=o(74174).handleLabelsAndValues,ut=o(74174).handleMarkerDefaults;Ct.exports=function(j,_,rt,tt){function st(_t,Mt){return it.coerce(j,_,xt,_t,Mt)}var ot=st("labels"),nt=st("values"),vt=mt(ot,nt),dt=vt.len;if(_._hasLabels=vt.hasLabels,_._hasValues=vt.hasValues,!_._hasLabels&&_._hasValues&&(st("label0"),st("dlabel")),!dt){_.visible=!1;return}_._length=dt,ut(j,_,tt,st),st("scalegroup");var bt=st("text"),ft=st("texttemplate"),at;if(ft||(at=st("textinfo",Array.isArray(bt)?"text+percent":"percent")),st("hovertext"),st("hovertemplate"),ft||at&&at!=="none"){var yt=st("textposition");Et(j,_,tt,st,yt,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else at==="none"&&st("textposition","none");et(_,tt,st);var St=st("title.text");St&&(st("title.position"),it.coerceFont(st,"title.font",tt.font)),st("aspectratio"),st("baseratio")}},62396:function(Ct,Rt,o){Ct.exports={moduleType:"trace",name:"funnelarea",basePlotModule:o(91248),categories:["pie-like","funnelarea","showLegend"],attributes:o(22332),layoutAttributes:o(61280),supplyDefaults:o(92688),supplyLayoutDefaults:o(35384),calc:o(54e3).calc,crossTraceCalc:o(54e3).crossTraceCalc,plot:o(39472),style:o(62096),styleOne:o(10528),meta:{}}},61280:function(Ct,Rt,o){var it=o(85204).hiddenlabels;Ct.exports={hiddenlabels:it,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}},35384:function(Ct,Rt,o){var it=o(3400),xt=o(61280);Ct.exports=function(Et,mt){function ut(ht,j){return it.coerce(Et,mt,xt,ht,j)}ut("hiddenlabels"),ut("funnelareacolorway",mt.colorway),ut("extendfunnelareacolors")}},39472:function(Ct,Rt,o){var it=o(33428),xt=o(43616),et=o(3400),Et=et.strScale,mt=et.strTranslate,ut=o(72736),ht=o(98184),j=ht.toMoveInsideBar,_=o(82744),rt=_.recordMinTextSize,tt=_.clearMinTextSize,st=o(69656),ot=o(37820),nt=ot.attachFxHandlers,vt=ot.determineInsideTextFont,dt=ot.layoutAreas,bt=ot.prerenderTitles,ft=ot.positionTitleOutside,at=ot.formatSliceLabel;Ct.exports=function(Tt,kt){var wt=Tt._context.staticPlot,ct=Tt._fullLayout;tt("funnelarea",ct),bt(kt,Tt),dt(kt,ct._size),et.makeTraceGroups(ct._funnelarealayer,kt,"trace").each(function(It){var At=it.select(this),Ot=It[0],Pt=Ot.trace;_t(It),At.each(function(){var zt=it.select(this).selectAll("g.slice").data(It);zt.enter().append("g").classed("slice",!0),zt.exit().remove(),zt.each(function(Nt,$t){if(Nt.hidden){it.select(this).selectAll("path,g").remove();return}Nt.pointNumber=Nt.i,Nt.curveNumber=Pt.index;var Ut=Ot.cx,Ht=Ot.cy,Vt=it.select(this),Xt=Vt.selectAll("path.surface").data([Nt]);Xt.enter().append("path").classed("surface",!0).style({"pointer-events":wt?"none":"all"}),Vt.call(nt,Tt,It);var qt="M"+(Ut+Nt.TR[0])+","+(Ht+Nt.TR[1])+yt(Nt.TR,Nt.BR)+yt(Nt.BR,Nt.BL)+yt(Nt.BL,Nt.TL)+"Z";Xt.attr("d",qt),at(Tt,Nt,Ot);var er=st.castOption(Pt.textposition,Nt.pts),lr=Vt.selectAll("g.slicetext").data(Nt.text&&er!=="none"?[0]:[]);lr.enter().append("g").classed("slicetext",!0),lr.exit().remove(),lr.each(function(){var Jt=et.ensureSingle(it.select(this),"text","",function(or){or.attr("data-notex",1)}),Yt=et.ensureUniformFontSize(Tt,vt(Pt,Nt,ct.font));Jt.text(Nt.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(xt.font,Yt).call(ut.convertToTspans,Tt);var rr=xt.bBox(Jt.node()),jt,ar,sr,Zt=Math.min(Nt.BL[1],Nt.BR[1])+Ht,Kt=Math.max(Nt.TL[1],Nt.TR[1])+Ht;ar=Math.max(Nt.TL[0],Nt.BL[0])+Ut,sr=Math.min(Nt.TR[0],Nt.BR[0])+Ut,jt=j(ar,sr,Zt,Kt,rr,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),jt.fontSize=Yt.size,rt(Pt.type,jt,ct),It[$t].transform=jt,et.setTransormAndDisplay(Jt,jt)})});var Dt=it.select(this).selectAll("g.titletext").data(Pt.title.text?[0]:[]);Dt.enter().append("g").classed("titletext",!0),Dt.exit().remove(),Dt.each(function(){var Nt=et.ensureSingle(it.select(this),"text","",function(Ht){Ht.attr("data-notex",1)}),$t=Pt.title.text;Pt._meta&&($t=et.templateString($t,Pt._meta)),Nt.text($t).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(xt.font,Pt.title.font).call(ut.convertToTspans,Tt);var Ut=ft(Ot,ct._size);Nt.attr("transform",mt(Ut.x,Ut.y)+Et(Math.min(1,Ut.scale))+mt(Ut.tx,Ut.ty))})})})};function yt(Mt,Tt){var kt=Tt[0]-Mt[0],wt=Tt[1]-Mt[1];return"l"+kt+","+wt}function St(Mt,Tt){return[.5*(Mt[0]+Tt[0]),.5*(Mt[1]+Tt[1])]}function _t(Mt){if(!Mt.length)return;var Tt=Mt[0],kt=Tt.trace,wt=kt.aspectratio,ct=kt.baseratio;ct>.999&&(ct=.999);var It=Math.pow(ct,2),At=Tt.vTotal,Ot=At*It/(1-It),Pt=At,zt=Ot/At;function Dt(){var tr=Math.sqrt(zt);return{x:tr,y:-tr}}function Nt(){var tr=Dt();return[tr.x,tr.y]}var $t,Ut=[];Ut.push(Nt());var Ht,Vt;for(Ht=Mt.length-1;Ht>-1;Ht--)if(Vt=Mt[Ht],!Vt.hidden){var Xt=Vt.v/Pt;zt+=Xt,Ut.push(Nt())}var qt=1/0,er=-1/0;for(Ht=0;Ht-1;Ht--)if(Vt=Mt[Ht],!Vt.hidden){Zt+=1;var Kt=Ut[Zt][0],or=Ut[Zt][1];Vt.TL=[-Kt,or],Vt.TR=[Kt,or],Vt.BL=ar,Vt.BR=sr,Vt.pxmid=St(Vt.TR,Vt.BR),ar=Vt.TL,sr=Vt.TR}}},62096:function(Ct,Rt,o){var it=o(33428),xt=o(10528),et=o(82744).resizeText;Ct.exports=function(mt){var ut=mt._fullLayout._funnelarealayer.selectAll(".trace");et(mt,ut,"funnelarea"),ut.each(function(ht){var j=ht[0],_=j.trace,rt=it.select(this);rt.style({opacity:_.opacity}),rt.selectAll("path.surface").each(function(tt){it.select(this).call(xt,tt,_,mt)})})}},83328:function(Ct,Rt,o){var it=o(52904),xt=o(45464),et=o(25376),Et=o(29736).axisHoverFormat,mt=o(21776).Ks,ut=o(21776).Gw,ht=o(49084),j=o(92880).extendFlat;Ct.exports=j({z:{valType:"data_array",editType:"calc"},x:j({},it.x,{impliedEdits:{xtype:"array"}}),x0:j({},it.x0,{impliedEdits:{xtype:"scaled"}}),dx:j({},it.dx,{impliedEdits:{xtype:"scaled"}}),y:j({},it.y,{impliedEdits:{ytype:"array"}}),y0:j({},it.y0,{impliedEdits:{ytype:"scaled"}}),dy:j({},it.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:j({},it.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:j({},it.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:j({},it.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:j({},it.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:j({},it.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:j({},it.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:Et("x"),yhoverformat:Et("y"),zhoverformat:Et("z",1),hovertemplate:mt(),texttemplate:ut({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:et({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:j({},xt.showlegend,{dflt:!1}),zorder:it.zorder},{transforms:void 0},ht("",{cLetter:"z",autoColorDflt:!1}))},19512:function(Ct,Rt,o){var it=o(24040),xt=o(3400),et=o(54460),Et=o(1220),mt=o(55480),ut=o(47128),ht=o(2872),j=o(26136),_=o(70448),rt=o(11240),tt=o(35744),st=o(39032).BADNUM;Ct.exports=function(dt,bt){var ft=et.getFromId(dt,bt.xaxis||"x"),at=et.getFromId(dt,bt.yaxis||"y"),yt=it.traceIs(bt,"contour"),St=it.traceIs(bt,"histogram"),_t=it.traceIs(bt,"gl2d"),Mt=yt?"best":bt.zsmooth,Tt,kt,wt,ct,It,At,Ot,Pt,zt,Dt,Nt;if(ft._minDtick=0,at._minDtick=0,St)Nt=mt(dt,bt),ct=Nt.orig_x,Tt=Nt.x,kt=Nt.x0,wt=Nt.dx,Pt=Nt.orig_y,It=Nt.y,At=Nt.y0,Ot=Nt.dy,zt=Nt.z;else{var $t=bt.z;xt.isArray1D($t)?(ht(bt,ft,at,"x","y",["z"]),Tt=bt._x,It=bt._y,$t=bt._z):(ct=bt.x?ft.makeCalcdata(bt,"x"):[],Pt=bt.y?at.makeCalcdata(bt,"y"):[],Tt=Et(bt,ft,"x",ct).vals,It=Et(bt,at,"y",Pt).vals,bt._x=Tt,bt._y=It),kt=bt.x0,wt=bt.dx,At=bt.y0,Ot=bt.dy,zt=j($t,bt,ft,at)}(ft.rangebreaks||at.rangebreaks)&&(zt=nt(Tt,It,zt),St||(Tt=ot(Tt),It=ot(It),bt._x=Tt,bt._y=It)),!St&&(yt||bt.connectgaps)&&(bt._emptypoints=rt(zt),_(zt,bt._emptypoints));function Ut(rr){Mt=bt._input.zsmooth=bt.zsmooth=!1,xt.warn('cannot use zsmooth: "fast": '+rr)}function Ht(rr){if(rr.length>1){var jt=(rr[rr.length-1]-rr[0])/(rr.length-1),ar=Math.abs(jt/100);for(Dt=0;Dtar)return!1}return!0}bt._islinear=!1,ft.type==="log"||at.type==="log"?Mt==="fast"&&Ut("log axis found"):Ht(Tt)?Ht(It)?bt._islinear=!0:Mt==="fast"&&Ut("y scale is not linear"):Mt==="fast"&&Ut("x scale is not linear");var Vt=xt.maxRowLength(zt),Xt=bt.xtype==="scaled"?"":Tt,qt=tt(bt,Xt,kt,wt,Vt,ft),er=bt.ytype==="scaled"?"":It,lr=tt(bt,er,At,Ot,zt.length,at);_t||(bt._extremes[ft._id]=et.findExtremes(ft,qt),bt._extremes[at._id]=et.findExtremes(at,lr));var Jt={x:qt,y:lr,z:zt,text:bt._text||bt.text,hovertext:bt._hovertext||bt.hovertext};if(bt.xperiodalignment&&ct&&(Jt.orig_x=ct),bt.yperiodalignment&&Pt&&(Jt.orig_y=Pt),Xt&&Xt.length===qt.length-1&&(Jt.xCenter=Xt),er&&er.length===lr.length-1&&(Jt.yCenter=er),St&&(Jt.xRanges=Nt.xRanges,Jt.yRanges=Nt.yRanges,Jt.pts=Nt.pts),yt||ut(dt,bt,{vals:zt,cLetter:"z"}),yt&&bt.contours&&bt.contours.coloring==="heatmap"){var Yt={type:bt.type==="contour"?"heatmap":"histogram2d",xcalendar:bt.xcalendar,ycalendar:bt.ycalendar};Jt.xfill=tt(Yt,Xt,kt,wt,Vt,ft),Jt.yfill=tt(Yt,er,At,Ot,zt.length,at)}return[Jt]};function ot(vt){for(var dt=[],bt=vt.length,ft=0;ft=0;vt--)nt=ut[vt],st=nt[0],ot=nt[1],dt=((mt[[st-1,ot]]||_)[2]+(mt[[st+1,ot]]||_)[2]+(mt[[st,ot-1]]||_)[2]+(mt[[st,ot+1]]||_)[2])/20,dt&&(bt[nt]=[st,ot,dt],ut.splice(vt,1),ft=!0);if(!ft)throw"findEmpties iterated with no new neighbors";for(nt in bt)mt[nt]=bt[nt],Et.push(bt[nt])}return Et.sort(function(at,yt){return yt[2]-at[2]})}},55512:function(Ct,Rt,o){var it=o(93024),xt=o(3400),et=xt.isArrayOrTypedArray,Et=o(54460),mt=o(8932).extractOpts;Ct.exports=function(ht,j,_,rt,tt){tt||(tt={});var st=tt.isContour,ot=ht.cd[0],nt=ot.trace,vt=ht.xa,dt=ht.ya,bt=ot.x,ft=ot.y,at=ot.z,yt=ot.xCenter,St=ot.yCenter,_t=ot.zmask,Mt=nt.zhoverformat,Tt=bt,kt=ft,wt,ct,It,At;if(ht.index!==!1){try{It=Math.round(ht.index[1]),At=Math.round(ht.index[0])}catch{xt.error("Error hovering on heatmap, pointNumber must be [row,col], found:",ht.index);return}if(It<0||It>=at[0].length||At<0||At>at.length)return}else{if(it.inbox(j-bt[0],j-bt[bt.length-1],0)>0||it.inbox(_-ft[0],_-ft[ft.length-1],0)>0)return;if(st){var Ot;for(Tt=[2*bt[0]-bt[1]],Ot=1;Otxt;rt++)_=mt(ht,j,Et(_));return _>xt&&it.log("interp2d didn't converge quickly",_),ht};function mt(ut,ht,j){var _=0,rt,tt,st,ot,nt,vt,dt,bt,ft,at,yt,St,_t;for(ot=0;otSt&&(_=Math.max(_,Math.abs(ut[tt][st]-yt)/(_t-St))))}return _}},39096:function(Ct,Rt,o){var it=o(3400);Ct.exports=function(et,Et){et("texttemplate");var mt=it.extendFlat({},Et.font,{color:"auto",size:"auto"});it.coerceFont(et,"textfont",mt)}},35744:function(Ct,Rt,o){var it=o(24040),xt=o(3400).isArrayOrTypedArray;Ct.exports=function(Et,mt,ut,ht,j,_){var rt=[],tt=it.traceIs(Et,"contour"),st=it.traceIs(Et,"histogram"),ot=it.traceIs(Et,"gl2d"),nt,vt,dt,bt=xt(mt)&&mt.length>1;if(bt&&!st&&_.type!=="category"){var ft=mt.length;if(ft<=j){if(tt||ot)rt=Array.from(mt).slice(0,j);else if(j===1)_.type==="log"?rt=[.5*mt[0],2*mt[0]]:rt=[mt[0]-.5,mt[0]+.5];else if(_.type==="log"){for(rt=[Math.pow(mt[0],1.5)/Math.pow(mt[1],.5)],dt=1;dt0;)ar=ct.c2p(Ut[or]),or--;for(ar0;)Kt=It.c2p(Ht[or]),or--;Kt=ct._length||ar<=0||Zt>=It._length||Kt<=0;if(Ar){var _r=Ot.selectAll("image").data([]);_r.exit().remove(),at(Ot);return}var Er,Rr;hr==="fast"?(Er=Jt,Rr=lr):(Er=Tr,Rr=Ir);var zr=document.createElement("canvas");zr.width=Er,zr.height=Rr;var Br=zr.getContext("2d",{willReadFrequently:!0}),kr=tt(zt,{noNumericCheck:!0,returnArray:!0}),Nr,Qr;hr==="fast"?(Nr=Yt?function(Oo){return Jt-1-Oo}:ut.identity,Qr=rr?function(Oo){return lr-1-Oo}:ut.identity):(Nr=function(Oo){return ut.constrain(Math.round(ct.c2p(Ut[Oo])-jt),0,Tr)},Qr=function(Oo){return ut.constrain(Math.round(It.c2p(Ht[Oo])-Zt),0,Ir)});var sn=Qr(0),un=[sn,sn],qr=Yt?0:1,Xr=rr?0:1,ln=0,mn=0,pn=0,En=0,Jr,Or,Ur,jr,Gr;function wr(Oo,ys){if(Oo!==void 0){var gs=kr(Oo);return gs[0]=Math.round(gs[0]),gs[1]=Math.round(gs[1]),gs[2]=Math.round(gs[2]),ln+=ys,mn+=gs[0]*ys,pn+=gs[1]*ys,En+=gs[2]*ys,gs}return[0,0,0,0]}function vr(Oo,ys,gs,zs){var Us=Oo[gs.bin0];if(Us===void 0)return wr(void 0,1);var Qs=Oo[gs.bin1],Fl=ys[gs.bin0],Jl=ys[gs.bin1],nu=Qs-Us||0,Yl=Fl-Us||0,Zs;return Qs===void 0?Jl===void 0?Zs=0:Fl===void 0?Zs=2*(Jl-Us):Zs=(2*Jl-Fl-Us)*2/3:Jl===void 0?Fl===void 0?Zs=0:Zs=(2*Us-Qs-Fl)*2/3:Fl===void 0?Zs=(2*Jl-Qs-Us)*2/3:Zs=Jl+Us-Qs-Fl,wr(Us+gs.frac*nu+zs.frac*(Yl+gs.frac*Zs))}if(hr!=="default"){var Dr=0,Sr;try{Sr=new Uint8Array(Er*Rr*4)}catch{Sr=new Array(Er*Rr*4)}if(hr==="smooth"){var ur=Vt||Ut,xr=Xt||Ht,Pr=new Array(ur.length),Vr=new Array(xr.length),en=new Array(Tr),rn=Vt?St:yt,Cn=Xt?St:yt,xn,fn,bn;for(or=0;orpo||po>It._length))for(tr=Vn;trWr||Wr>ct._length)){var $n=j({x:Yr,y:qn},zt,Mt._fullLayout);$n.x=Yr,$n.y=qn;var Bn=Pt.z[or][tr];Bn===void 0?($n.z="",$n.zLabel=""):($n.z=Bn,$n.zLabel=mt.tickText(wn,Bn,"hover").text);var xa=Pt.text&&Pt.text[or]&&Pt.text[or][tr];(xa===void 0||xa===!1)&&(xa=""),$n.text=xa;var ro=ut.texttemplateString(An,$n,Mt._fullLayout._d3locale,$n,zt._meta||{});if(ro){var io=ro.split("
"),eo=io.length,Gn=0;for(cr=0;cr0&&(j=!0);for(var st=0;stut){var ht=ut-Et[xt];return Et[xt]=ut,ht}}else return Et[xt]=ut,ut;return 0},max:function(xt,et,Et,mt){var ut=mt[et];if(it(ut))if(ut=Number(ut),it(Et[xt])){if(Et[xt]kt&&ktEt){var It=wt===xt?1:6,At=wt===xt?"M12":"M1";return function(Ot,Pt){var zt=bt.c2d(Ot,xt,ft),Dt=zt.indexOf("-",It);Dt>0&&(zt=zt.substr(0,Dt));var Nt=bt.d2c(zt,0,ft);if(Ntht?ot>Et?ot>xt*1.1?xt:ot>et*1.1?et:Et:ot>mt?mt:ot>ut?ut:ht:Math.pow(10,Math.floor(Math.log(ot)/Math.LN10))}function tt(ot,nt,vt,dt,bt,ft){if(dt&&ot>Et){var at=st(nt,bt,ft),yt=st(vt,bt,ft),St=ot===xt?0:1;return at[St]!==yt[St]}return Math.floor(vt/ot)-Math.floor(nt/ot)>.1}function st(ot,nt,vt){var dt=nt.c2d(ot,xt,vt).split("-");return dt[0]===""&&(dt.unshift(),dt[0]="-"+dt[0]),dt}},35852:function(Ct,Rt,o){var it=o(38248),xt=o(3400),et=o(24040),Et=o(54460),mt=o(84664),ut=o(16964),ht=o(10648),j=o(2e3),_=o(67712);function rt(vt,dt){var bt=[],ft=[],at=dt.orientation==="h",yt=Et.getFromId(vt,at?dt.yaxis:dt.xaxis),St=at?"y":"x",_t={x:"y",y:"x"}[St],Mt=dt[St+"calendar"],Tt=dt.cumulative,kt,wt=tt(vt,dt,yt,St),ct=wt[0],It=wt[1],At=typeof ct.size=="string",Ot=[],Pt=At?Ot:ct,zt=[],Dt=[],Nt=[],$t=0,Ut=dt.histnorm,Ht=dt.histfunc,Vt=Ut.indexOf("density")!==-1,Xt,qt,er;Tt.enabled&&Vt&&(Ut=Ut.replace(/ ?density$/,""),Vt=!1);var lr=Ht==="max"||Ht==="min",Jt=lr?null:0,Yt=ut.count,rr=ht[Ut],jt=!1,ar=function(Br){return yt.r2c(Br,0,Mt)},sr;for(xt.isArrayOrTypedArray(dt[_t])&&Ht!=="count"&&(sr=dt[_t],jt=Ht==="avg",Yt=ut[Ht]),kt=ar(ct.start),qt=ar(ct.end)+(kt-Et.tickIncrement(kt,ct.size,!1,Mt))/1e6;kt=0&&er=Er;kt--)if(ft[kt]){Rr=kt;break}for(kt=Er;kt<=Rr;kt++)if(it(bt[kt])&&it(ft[kt])){var zr={p:bt[kt],s:ft[kt],b:0};Tt.enabled||(zr.pts=Nt[kt],tr?zr.ph0=zr.ph1=Nt[kt].length?It[Nt[kt][0]]:bt[kt]:(dt._computePh=!0,zr.ph0=Ir(Ot[kt]),zr.ph1=Ir(Ot[kt+1],!0))),_r.push(zr)}return _r.length===1&&(_r[0].width1=Et.tickIncrement(_r[0].p,ct.size,!1,Mt)-_r[0].p),mt(_r,dt),xt.isArrayOrTypedArray(dt.selectedpoints)&&xt.tagSelected(_r,dt,br),_r}function tt(vt,dt,bt,ft,at){var yt=ft+"bins",St=vt._fullLayout,_t=dt["_"+ft+"bingroup"],Mt=St._histogramBinOpts[_t],Tt=St.barmode==="overlay",kt,wt,ct,It,At,Ot,Pt,zt=function(Tr){return bt.r2c(Tr,0,It)},Dt=function(Tr){return bt.c2r(Tr,0,It)},Nt=bt.type==="date"?function(Tr){return Tr||Tr===0?xt.cleanDate(Tr,null,It):null}:function(Tr){return it(Tr)?Number(Tr):null};function $t(Tr,Ir,Ar){Ir[Tr+"Found"]?(Ir[Tr]=Nt(Ir[Tr]),Ir[Tr]===null&&(Ir[Tr]=Ar[Tr])):(Ot[Tr]=Ir[Tr]=Ar[Tr],xt.nestedProperty(wt[0],yt+"."+Tr).set(Ar[Tr]))}if(dt["_"+ft+"autoBinFinished"])delete dt["_"+ft+"autoBinFinished"];else{wt=Mt.traces;var Ut=[],Ht=!0,Vt=!1,Xt=!1;for(kt=0;kt"u"){if(at)return[er,At,!0];er=st(vt,dt,bt,ft,yt)}Pt=ct.cumulative||{},Pt.enabled&&Pt.currentbin!=="include"&&(Pt.direction==="decreasing"?er.start=Dt(Et.tickIncrement(zt(er.start),er.size,!0,It)):er.end=Dt(Et.tickIncrement(zt(er.end),er.size,!1,It))),Mt.size=er.size,Mt.sizeFound||(Ot.size=er.size,xt.nestedProperty(wt[0],yt+".size").set(er.size)),$t("start",Mt,er),$t("end",Mt,er)}At=dt["_"+ft+"pos0"],delete dt["_"+ft+"pos0"];var Jt=dt._input[yt]||{},Yt=xt.extendFlat({},Mt),rr=Mt.start,jt=bt.r2l(Jt.start),ar=jt!==void 0;if((Mt.startFound||ar)&&jt!==bt.r2l(rr)){var sr=ar?jt:xt.aggNums(Math.min,null,At),Zt={type:bt.type==="category"||bt.type==="multicategory"?"linear":bt.type,r2l:bt.r2l,dtick:Mt.size,tick0:rr,calendar:It,range:[sr,Et.tickIncrement(sr,Mt.size,!1,It)].map(bt.l2r)},Kt=Et.tickFirst(Zt);Kt>bt.r2l(sr)&&(Kt=Et.tickIncrement(Kt,Mt.size,!0,It)),Yt.start=bt.l2r(Kt),ar||xt.nestedProperty(dt,yt+".start").set(Yt.start)}var or=Mt.end,tr=bt.r2l(Jt.end),cr=tr!==void 0;if((Mt.endFound||cr)&&tr!==bt.r2l(or)){var hr=cr?tr:xt.aggNums(Math.max,null,At);Yt.end=bt.l2r(hr),cr||xt.nestedProperty(dt,yt+".start").set(Yt.end)}var br="autobin"+ft;return dt._input[br]===!1&&(dt._input[yt]=xt.extendFlat({},dt[yt]||{}),delete dt._input[br],delete dt[br]),[Yt,At]}function st(vt,dt,bt,ft,at){var yt=vt._fullLayout,St=ot(vt,dt),_t=!1,Mt=1/0,Tt=[dt],kt,wt,ct;for(kt=0;kt=0;ft--)_t(ft);else if(dt==="increasing"){for(ft=1;ft=0;ft--)vt[ft]+=vt[ft+1];bt==="exclude"&&(vt.push(0),vt.shift())}}Ct.exports={calc:rt,calcAllAutoBins:tt}},73316:function(Ct){Ct.exports={eventDataKeys:["binNumber"]}},80536:function(Ct,Rt,o){var it=o(3400),xt=o(79811),et=o(24040).traceIs,Et=o(20011),mt=o(31508).validateCornerradius,ut=it.nestedProperty,ht=o(71888).getAxisGroup,j=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],_=["x","y"];Ct.exports=function(tt,st){var ot=st._histogramBinOpts={},nt=[],vt={},dt=[],bt,ft,at,yt,St,_t,Mt;function Tt(er,lr){return it.coerce(bt._input,bt,bt._module.attributes,er,lr)}function kt(er){return er.orientation==="v"?"x":"y"}function wt(er,lr){var Jt=xt.getFromTrace({_fullLayout:st},er,lr);return Jt.type}function ct(er,lr,Jt){var Yt=er.uid+"__"+Jt;lr||(lr=Yt);var rr=wt(er,Jt),jt=er[Jt+"calendar"]||"",ar=ot[lr],sr=!0;ar&&(rr===ar.axType&&jt===ar.calendar?(sr=!1,ar.traces.push(er),ar.dirs.push(Jt)):(lr=Yt,rr!==ar.axType&&it.warn(["Attempted to group the bins of trace",er.index,"set on a","type:"+rr,"axis","with bins on","type:"+ar.axType,"axis."].join(" ")),jt!==ar.calendar&&it.warn(["Attempted to group the bins of trace",er.index,"set with a",jt,"calendar","with bins",ar.calendar?"on a "+ar.calendar+" calendar":"w/o a set calendar"].join(" ")))),sr&&(ot[lr]={traces:[er],dirs:[Jt],axType:rr,calendar:er[Jt+"calendar"]||""}),er["_"+Jt+"bingroup"]=lr}for(St=0;Stzt&&It.splice(zt,It.length-zt),Pt.length>zt&&Pt.splice(zt,Pt.length-zt);var Dt=[],Nt=[],$t=[],Ut=typeof ct.size=="string",Ht=typeof Ot.size=="string",Vt=[],Xt=[],qt=Ut?Vt:ct,er=Ht?Xt:Ot,lr=0,Jt=[],Yt=[],rr=ot.histnorm,jt=ot.histfunc,ar=rr.indexOf("density")!==-1,sr=jt==="max"||jt==="min",Zt=sr?null:0,Kt=et.count,or=Et[rr],tr=!1,cr=[],hr=[],br="z"in ot?ot.z:"marker"in ot&&Array.isArray(ot.marker.color)?ot.marker.color:"";br&&jt!=="count"&&(tr=jt==="avg",Kt=et[jt]);var Tr=ct.size,Ir=ft(ct.start),Ar=ft(ct.end)+(Ir-xt.tickIncrement(Ir,Tr,!1,dt))/1e6;for(_t=Ir;_t=0&&Tt<_r&&kt>=0&&kt-1,flipY:Nt.tiling.flip.indexOf("y")>-1,orientation:Nt.tiling.orientation,pad:{inner:Nt.tiling.pad},maxDepth:Nt._maxDepth}),Xt=Vt.descendants(),qt=1/0,er=-1/0;Xt.forEach(function(jt){var ar=jt.depth;ar>=Nt._maxDepth?(jt.x0=jt.x1=(jt.x0+jt.x1)/2,jt.y0=jt.y1=(jt.y0+jt.y1)/2):(qt=Math.min(qt,ar),er=Math.max(er,ar))}),dt=dt.data(Xt,j.getPtId),Nt._maxVisibleLayers=isFinite(er)?er-qt+1:0,dt.enter().append("g").classed("slice",!0),wt(dt,tt,Ot,[ft,at],_t),dt.order();var lr=null;if(kt&&At){var Jt=j.getPtId(At);dt.each(function(jt){lr===null&&j.getPtId(jt)===Jt&&(lr={x0:jt.x0,x1:jt.x1,y0:jt.y0,y1:jt.y1})})}var Yt=function(){return lr||{x0:0,x1:ft,y0:0,y1:at}},rr=dt;return kt&&(rr=rr.transition().each("end",function(){var jt=it.select(this);j.setSliceCursor(jt,ot,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),rr.each(function(jt){jt._x0=yt(jt.x0),jt._x1=yt(jt.x1),jt._y0=St(jt.y0),jt._y1=St(jt.y1),jt._hoverX=yt(jt.x1-Nt.tiling.pad),jt._hoverY=St(Ht?jt.y1-Nt.tiling.pad/2:jt.y0+Nt.tiling.pad/2);var ar=it.select(this),sr=xt.ensureSingle(ar,"path","surface",function(tr){tr.style("pointer-events",Pt?"none":"all")});kt?sr.transition().attrTween("d",function(tr){var cr=ct(tr,tt,Yt(),[ft,at],{orientation:Nt.tiling.orientation,flipX:Nt.tiling.flip.indexOf("x")>-1,flipY:Nt.tiling.flip.indexOf("y")>-1});return function(hr){return _t(cr(hr))}}):sr.attr("d",_t),ar.call(_,vt,ot,nt,{styleOne:ut,eventDataKeys:ht.eventDataKeys,transitionTime:ht.CLICK_TRANSITION_TIME,transitionEasing:ht.CLICK_TRANSITION_EASING}).call(j.setSliceCursor,ot,{isTransitioning:ot._transitioning}),sr.call(ut,jt,Nt,ot,{hovered:!1}),jt.x0===jt.x1||jt.y0===jt.y1?jt._text="":jt._text=rt(jt,vt,Nt,nt,zt)||"";var Zt=xt.ensureSingle(ar,"g","slicetext"),Kt=xt.ensureSingle(Zt,"text","",function(tr){tr.attr("data-notex",1)}),or=xt.ensureUniformFontSize(ot,j.determineTextFont(Nt,jt,zt.font));Kt.text(jt._text||" ").classed("slicetext",!0).attr("text-anchor",Ut?"end":$t?"start":"middle").call(et.font,or).call(Et.convertToTspans,ot),jt.textBB=et.bBox(Kt.node()),jt.transform=Mt(jt,{fontSize:or.size}),jt.transform.fontSize=or.size,kt?Kt.transition().attrTween("transform",function(tr){var cr=It(tr,tt,Yt(),[ft,at]);return function(hr){return Tt(cr(hr))}}):Kt.attr("transform",Tt(jt))}),lr}},29044:function(Ct,Rt,o){Ct.exports={moduleType:"trace",name:"icicle",basePlotModule:o(59564),categories:[],animatable:!0,attributes:o(97376),layoutAttributes:o(90676),supplyDefaults:o(7045),supplyLayoutDefaults:o(4304),calc:o(73876).r,crossTraceCalc:o(73876).q,plot:o(38364),style:o(47192).style,colorbar:o(5528),meta:{}}},90676:function(Ct){Ct.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}},4304:function(Ct,Rt,o){var it=o(3400),xt=o(90676);Ct.exports=function(Et,mt){function ut(ht,j){return it.coerce(Et,mt,xt,ht,j)}ut("iciclecolorway",mt.colorway),ut("extendiciclecolors")}},25132:function(Ct,Rt,o){var it=o(74148),xt=o(83024);Ct.exports=function(Et,mt,ut){var ht=ut.flipX,j=ut.flipY,_=ut.orientation==="h",rt=ut.maxDepth,tt=mt[0],st=mt[1];rt&&(tt=(Et.height+1)*mt[0]/Math.min(Et.height+1,rt),st=(Et.height+1)*mt[1]/Math.min(Et.height+1,rt));var ot=it.partition().padding(ut.pad.inner).size(_?[mt[1],tt]:[mt[0],st])(Et);return(_||ht||j)&&xt(ot,mt,{swapXY:_,flipX:ht,flipY:j}),ot}},38364:function(Ct,Rt,o){var it=o(95808),xt=o(67880);Ct.exports=function(Et,mt,ut,ht){return it(Et,mt,ut,ht,{type:"icicle",drawDescendants:xt})}},47192:function(Ct,Rt,o){var it=o(33428),xt=o(76308),et=o(3400),Et=o(82744).resizeText,mt=o(60404);function ut(j){var _=j._fullLayout._iciclelayer.selectAll(".trace");Et(j,_,"icicle"),_.each(function(rt){var tt=it.select(this),st=rt[0],ot=st.trace;tt.style("opacity",ot.opacity),tt.selectAll("path.surface").each(function(nt){it.select(this).call(ht,nt,ot,j)})})}function ht(j,_,rt,tt){var st=_.data.data,ot=!_.children,nt=st.i,vt=et.castOption(rt,nt,"marker.line.color")||xt.defaultLine,dt=et.castOption(rt,nt,"marker.line.width")||0;j.call(mt,_,rt,tt).style("stroke-width",dt).call(xt.stroke,vt).style("opacity",ot?rt.leaf.opacity:null)}Ct.exports={style:ut,styleOne:ht}},95188:function(Ct,Rt,o){for(var it=o(45464),xt=o(52904).zorder,et=o(21776).Ks,Et=o(92880).extendFlat,mt=o(47797).colormodel,ut=["rgb","rgba","rgba256","hsl","hsla"],ht=[],j=[],_=0;_0||it.inbox(j-_.y0,j-(_.y0+_.h*rt.dy),0)>0)){var ot=Math.floor((ht-_.x0)/rt.dx),nt=Math.floor(Math.abs(j-_.y0)/rt.dy),vt;if(rt._hasZ?vt=_.z[nt][ot]:rt._hasSource&&(vt=rt._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(ot,nt,1,1).data),!!vt){var dt=_.hi||rt.hoverinfo,bt;if(dt){var ft=dt.split("+");ft.indexOf("all")!==-1&&(ft=["color"]),ft.indexOf("color")!==-1&&(bt=!0)}var at=Et.colormodel[rt.colormodel],yt=at.colormodel||rt.colormodel,St=yt.length,_t=rt._scaler(vt),Mt=at.suffix,Tt=[];(rt.hovertemplate||bt)&&(Tt.push("["+[_t[0]+Mt[0],_t[1]+Mt[1],_t[2]+Mt[2]].join(", ")),St===4&&Tt.push(", "+_t[3]+Mt[3]),Tt.push("]"),Tt=Tt.join(""),ut.extraText=yt.toUpperCase()+": "+Tt);var kt;et(rt.hovertext)&&et(rt.hovertext[nt])?kt=rt.hovertext[nt][ot]:et(rt.text)&&et(rt.text[nt])&&(kt=rt.text[nt][ot]);var wt=st.c2p(_.y0+(nt+.5)*rt.dy),ct=_.x0+(ot+.5)*rt.dx,It=_.y0+(nt+.5)*rt.dy,At="["+vt.slice(0,rt.colormodel.length).join(", ")+"]";return[xt.extendFlat(ut,{index:[nt,ot],x0:tt.c2p(_.x0+ot*rt.dx),x1:tt.c2p(_.x0+(ot+1)*rt.dx),y0:wt,y1:wt,color:_t,xVal:ct,xLabelVal:ct,yVal:It,yLabelVal:It,zLabelVal:At,text:kt,hovertemplateLabels:{zLabel:At,colorLabel:Tt,"color[0]Label":_t[0]+Mt[0],"color[1]Label":_t[1]+Mt[1],"color[2]Label":_t[2]+Mt[2],"color[3]Label":_t[3]+Mt[3]}})]}}}},48928:function(Ct,Rt,o){Ct.exports={attributes:o(95188),supplyDefaults:o(13188),calc:o(93336),plot:o(63715),style:o(28576),hoverPoints:o(24892),eventData:o(79972),moduleType:"trace",name:"image",basePlotModule:o(57952),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}},63715:function(Ct,Rt,o){var it=o(33428),xt=o(3400),et=xt.strTranslate,Et=o(9616),mt=o(47797),ut=o(9188),ht=o(2264).STYLE;Ct.exports=function(_,rt,tt,st){var ot=rt.xaxis,nt=rt.yaxis,vt=!_._context._exportedPlot&&ut();xt.makeTraceGroups(st,tt,"im").each(function(dt){var bt=it.select(this),ft=dt[0],at=ft.trace,yt=(at.zsmooth==="fast"||at.zsmooth===!1&&vt)&&!at._hasZ&&at._hasSource&&ot.type==="linear"&&nt.type==="linear";at._realImage=yt;var St=ft.z,_t=ft.x0,Mt=ft.y0,Tt=ft.w,kt=ft.h,wt=at.dx,ct=at.dy,It,At,Ot,Pt,zt,Dt;for(Dt=0;It===void 0&&Dt0;)At=ot.c2p(_t+Dt*wt),Dt--;for(Dt=0;Pt===void 0&&Dt0;)zt=nt.c2p(Mt+Dt*ct),Dt--;if(AtJt[0];if(Yt||rr){var jt=It+$t/2,ar=Pt+Ut/2;er+="transform:"+et(jt+"px",ar+"px")+"scale("+(Yt?-1:1)+","+(rr?-1:1)+")"+et(-jt+"px",-ar+"px")+";"}}qt.attr("style",er);var sr=new Promise(function(Zt){if(at._hasZ)Zt();else if(at._hasSource)if(at._canvas&&at._canvas.el.width===Tt&&at._canvas.el.height===kt&&at._canvas.source===at.source)Zt();else{var Kt=document.createElement("canvas");Kt.width=Tt,Kt.height=kt;var or=Kt.getContext("2d",{willReadFrequently:!0});at._image=at._image||new Image;var tr=at._image;tr.onload=function(){or.drawImage(tr,0,0),at._canvas={el:Kt,source:at.source},Zt()},tr.setAttribute("src",at.source)}}).then(function(){var Zt,Kt;if(at._hasZ)Kt=Xt(function(cr,hr){var br=St[hr][cr];return xt.isTypedArray(br)&&(br=Array.from(br)),br}),Zt=Kt.toDataURL("image/png");else if(at._hasSource)if(yt)Zt=at.source;else{var or=at._canvas.el.getContext("2d",{willReadFrequently:!0}),tr=or.getImageData(0,0,Tt,kt).data;Kt=Xt(function(cr,hr){var br=4*(hr*Tt+cr);return[tr[br],tr[br+1],tr[br+2],tr[br+3]]}),Zt=Kt.toDataURL("image/png")}qt.attr({"xlink:href":Zt,height:Ut,width:$t,x:It,y:Pt})});_._promises.push(sr)})}},28576:function(Ct,Rt,o){var it=o(33428);Ct.exports=function(et){it.select(et).selectAll(".im image").style("opacity",function(Et){return Et[0].trace.opacity})}},89864:function(Ct,Rt,o){var it=o(92880).extendFlat,xt=o(92880).extendDeep,et=o(67824).overrideAll,Et=o(25376),mt=o(22548),ut=o(86968).u,ht=o(94724),j=o(31780).templatedArray,_=o(48164),rt=o(29736).descriptionOnlyNumbers,tt=Et({editType:"plot",colorEditType:"plot"}),st={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:mt.defaultLine,editType:"plot"},width:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},thickness:{valType:"number",min:0,max:1,dflt:1,editType:"plot"},editType:"calc"},ot={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},nt=j("step",xt({},st,{range:ot}));Ct.exports={mode:{valType:"flaglist",editType:"calc",flags:["number","delta","gauge"],dflt:"number"},value:{valType:"number",editType:"calc",anim:!0},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},domain:ut({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:it({},tt,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:rt("value")},font:it({},tt,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"plot"},delta:{reference:{valType:"number",editType:"calc"},position:{valType:"enumerated",values:["top","bottom","left","right"],dflt:"bottom",editType:"plot"},relative:{valType:"boolean",editType:"plot",dflt:!1},valueformat:{valType:"string",editType:"plot",description:rt("value")},increasing:{symbol:{valType:"string",dflt:_.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:_.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:_.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:_.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:it({},tt,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"calc"},gauge:{shape:{valType:"enumerated",editType:"plot",dflt:"angular",values:["angular","bullet"]},bar:xt({},st,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:mt.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:et({range:ot,visible:it({},ht.visible,{dflt:!0}),tickmode:ht.minor.tickmode,nticks:ht.nticks,tick0:ht.tick0,dtick:ht.dtick,tickvals:ht.tickvals,ticktext:ht.ticktext,ticks:it({},ht.ticks,{dflt:"outside"}),ticklen:ht.ticklen,tickwidth:ht.tickwidth,tickcolor:ht.tickcolor,ticklabelstep:ht.ticklabelstep,showticklabels:ht.showticklabels,labelalias:ht.labelalias,tickfont:Et({}),tickangle:ht.tickangle,tickformat:ht.tickformat,tickformatstops:ht.tickformatstops,tickprefix:ht.tickprefix,showtickprefix:ht.showtickprefix,ticksuffix:ht.ticksuffix,showticksuffix:ht.showticksuffix,separatethousands:ht.separatethousands,exponentformat:ht.exponentformat,minexponent:ht.minexponent,showexponent:ht.showexponent,editType:"plot"},"plot"),steps:nt,threshold:{line:{color:it({},st.line.color,{}),width:it({},st.line.width,{dflt:1}),editType:"plot"},thickness:it({},st.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}},92728:function(Ct,Rt,o){var it=o(7316);Rt.name="indicator",Rt.plot=function(xt,et,Et,mt){it.plotBasePlot(Rt.name,xt,et,Et,mt)},Rt.clean=function(xt,et,Et,mt){it.cleanBasePlot(Rt.name,xt,et,Et,mt)}},79136:function(Ct){function Rt(o,it){var xt=[],et=it.value;typeof it._lastValue!="number"&&(it._lastValue=it.value);var Et=it._lastValue,mt=Et;return it._hasDelta&&typeof it.delta.reference=="number"&&(mt=it.delta.reference),xt[0]={y:et,lastY:Et,delta:et-mt,relativeDelta:(et-mt)/mt},xt}Ct.exports={calc:Rt}},12096:function(Ct){Ct.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}},20424:function(Ct,Rt,o){var it=o(3400),xt=o(89864),et=o(86968).Q,Et=o(31780),mt=o(51272),ut=o(12096),ht=o(26332),j=o(25404),_=o(95936),rt=o(42568);function tt(ot,nt,vt,dt){function bt($t,Ut){return it.coerce(ot,nt,xt,$t,Ut)}et(nt,dt,bt),bt("mode"),nt._hasNumber=nt.mode.indexOf("number")!==-1,nt._hasDelta=nt.mode.indexOf("delta")!==-1,nt._hasGauge=nt.mode.indexOf("gauge")!==-1;var ft=bt("value");nt._range=[0,typeof ft=="number"?1.5*ft:1];var at=new Array(2),yt;if(nt._hasNumber){bt("number.valueformat");var St=it.extendFlat({},dt.font);St.size=void 0,it.coerceFont(bt,"number.font",St),nt.number.font.size===void 0&&(nt.number.font.size=ut.defaultNumberFontSize,at[0]=!0),bt("number.prefix"),bt("number.suffix"),yt=nt.number.font.size}var _t;if(nt._hasDelta){var Mt=it.extendFlat({},dt.font);Mt.size=void 0,it.coerceFont(bt,"delta.font",Mt),nt.delta.font.size===void 0&&(nt.delta.font.size=(nt._hasNumber?.5:1)*(yt||ut.defaultNumberFontSize),at[1]=!0),bt("delta.reference",nt.value),bt("delta.relative"),bt("delta.valueformat",nt.delta.relative?"2%":""),bt("delta.increasing.symbol"),bt("delta.increasing.color"),bt("delta.decreasing.symbol"),bt("delta.decreasing.color"),bt("delta.position"),bt("delta.prefix"),bt("delta.suffix"),_t=nt.delta.font.size}nt._scaleNumbers=(!nt._hasNumber||at[0])&&(!nt._hasDelta||at[1])||!1;var Tt=it.extendFlat({},dt.font);Tt.size=.25*(yt||_t||ut.defaultNumberFontSize),it.coerceFont(bt,"title.font",Tt),bt("title.text");var kt,wt,ct,It;function At($t,Ut){return it.coerce(kt,wt,xt.gauge,$t,Ut)}function Ot($t,Ut){return it.coerce(ct,It,xt.gauge.axis,$t,Ut)}if(nt._hasGauge){kt=ot.gauge,kt||(kt={}),wt=Et.newContainer(nt,"gauge"),At("shape");var Pt=nt._isBullet=nt.gauge.shape==="bullet";Pt||bt("title.align","center");var zt=nt._isAngular=nt.gauge.shape==="angular";zt||bt("align","center"),At("bgcolor",dt.paper_bgcolor),At("borderwidth"),At("bordercolor"),At("bar.color"),At("bar.line.color"),At("bar.line.width");var Dt=ut.valueThickness*(nt.gauge.shape==="bullet"?.5:1);At("bar.thickness",Dt),mt(kt,wt,{name:"steps",handleItemDefaults:st}),At("threshold.value"),At("threshold.thickness"),At("threshold.line.width"),At("threshold.line.color"),ct={},kt&&(ct=kt.axis||{}),It=Et.newContainer(wt,"axis"),Ot("visible"),nt._range=Ot("range",nt._range);var Nt={font:dt.font,noAutotickangles:!0,outerTicks:!0};ht(ct,It,Ot,"linear"),rt(ct,It,Ot,"linear",Nt),_(ct,It,Ot,"linear",Nt),j(ct,It,Ot,Nt)}else bt("title.align","center"),bt("align","center"),nt._isAngular=nt._isBullet=!1;nt._length=null}function st(ot,nt){function vt(dt,bt){return it.coerce(ot,nt,xt.gauge.steps,dt,bt)}vt("color"),vt("line.color"),vt("line.width"),vt("range"),vt("thickness")}Ct.exports={supplyDefaults:tt}},43480:function(Ct,Rt,o){Ct.exports={moduleType:"trace",name:"indicator",basePlotModule:o(92728),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:o(89864),supplyDefaults:o(20424).supplyDefaults,calc:o(79136).calc,plot:o(97864),meta:{}}},97864:function(Ct,Rt,o){var it=o(33428),xt=o(67756).qy,et=o(67756).Gz,Et=o(3400),mt=Et.strScale,ut=Et.strTranslate,ht=Et.rad2deg,j=o(84284).MID_SHIFT,_=o(43616),rt=o(12096),tt=o(72736),st=o(54460),ot=o(28336),nt=o(37668),vt=o(94724),dt=o(76308),bt={left:"start",center:"middle",right:"end"},ft={left:0,center:.5,right:1},at=/[yzafpnµmkMGTPEZY]/;function yt(Pt){return Pt&&Pt.duration>0}Ct.exports=function(zt,Dt,Nt,$t){var Ut=zt._fullLayout,Ht;yt(Nt)&&$t&&(Ht=$t()),Et.makeTraceGroups(Ut._indicatorlayer,Dt,"trace").each(function(Vt){var Xt=Vt[0],qt=Xt.trace,er=it.select(this),lr=qt._hasGauge,Jt=qt._isAngular,Yt=qt._isBullet,rr=qt.domain,jt={w:Ut._size.w*(rr.x[1]-rr.x[0]),h:Ut._size.h*(rr.y[1]-rr.y[0]),l:Ut._size.l+Ut._size.w*rr.x[0],r:Ut._size.r+Ut._size.w*(1-rr.x[1]),t:Ut._size.t+Ut._size.h*(1-rr.y[1]),b:Ut._size.b+Ut._size.h*rr.y[0]},ar=jt.l+jt.w/2,sr=jt.t+jt.h/2,Zt=Math.min(jt.w/2,jt.h),Kt=rt.innerRadius*Zt,or,tr,cr,hr=qt.align||"center";if(tr=sr,!lr)or=jt.l+ft[hr]*jt.w,cr=function(kr){return ct(kr,jt.w,jt.h)};else if(Jt&&(or=ar,tr=sr+Zt/2,cr=function(kr){return It(kr,.9*Kt)}),Yt){var br=rt.bulletPadding,Tr=1-rt.bulletNumberDomainSize+br;or=jt.l+(Tr+(1-Tr)*ft[hr])*jt.w,cr=function(kr){return ct(kr,(rt.bulletNumberDomainSize-br)*jt.w,jt.h)}}Mt(zt,er,Vt,{numbersX:or,numbersY:tr,numbersScaler:cr,transitionOpts:Nt,onComplete:Ht});var Ir,Ar;lr&&(Ir={range:qt.gauge.axis.range,color:qt.gauge.bgcolor,line:{color:qt.gauge.bordercolor,width:0},thickness:1},Ar={range:qt.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:qt.gauge.bordercolor,width:qt.gauge.borderwidth},thickness:1});var _r=er.selectAll("g.angular").data(Jt?Vt:[]);_r.exit().remove();var Er=er.selectAll("g.angularaxis").data(Jt?Vt:[]);Er.exit().remove(),Jt&&_t(zt,er,Vt,{radius:Zt,innerRadius:Kt,gauge:_r,layer:Er,size:jt,gaugeBg:Ir,gaugeOutline:Ar,transitionOpts:Nt,onComplete:Ht});var Rr=er.selectAll("g.bullet").data(Yt?Vt:[]);Rr.exit().remove();var zr=er.selectAll("g.bulletaxis").data(Yt?Vt:[]);zr.exit().remove(),Yt&&St(zt,er,Vt,{gauge:Rr,layer:zr,size:jt,gaugeBg:Ir,gaugeOutline:Ar,transitionOpts:Nt,onComplete:Ht});var Br=er.selectAll("text.title").data(Vt);Br.exit().remove(),Br.enter().append("text").classed("title",!0),Br.attr("text-anchor",function(){return Yt?bt.right:bt[qt.title.align]}).text(qt.title.text).call(_.font,qt.title.font).call(tt.convertToTspans,zt),Br.attr("transform",function(){var kr=jt.l+jt.w*ft[qt.title.align],Nr,Qr=rt.titlePadding,sn=_.bBox(Br.node());if(lr){if(Jt)if(qt.gauge.axis.visible){var un=_.bBox(Er.node());Nr=un.top-Qr-sn.bottom}else Nr=jt.t+jt.h/2-Zt/2-sn.bottom-Qr;Yt&&(Nr=tr-(sn.top+sn.bottom)/2,kr=jt.l-rt.bulletPadding*jt.w)}else Nr=qt._numbersTop-Qr-sn.bottom;return ut(kr,Nr)})})};function St(Pt,zt,Dt,Nt){var $t=Dt[0].trace,Ut=Nt.gauge,Ht=Nt.layer,Vt=Nt.gaugeBg,Xt=Nt.gaugeOutline,qt=Nt.size,er=$t.domain,lr=Nt.transitionOpts,Jt=Nt.onComplete,Yt,rr,jt,ar,sr;Ut.enter().append("g").classed("bullet",!0),Ut.attr("transform",ut(qt.l,qt.t)),Ht.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),Ht.selectAll("g.xbulletaxistick,path,text").remove();var Zt=qt.h,Kt=$t.gauge.bar.thickness*Zt,or=er.x[0],tr=er.x[0]+(er.x[1]-er.x[0])*($t._hasNumber||$t._hasDelta?1-rt.bulletNumberDomainSize:1);Yt=wt(Pt,$t.gauge.axis),Yt._id="xbulletaxis",Yt.domain=[or,tr],Yt.setScale(),rr=st.calcTicks(Yt),jt=st.makeTransTickFn(Yt),ar=st.getTickSigns(Yt)[2],sr=qt.t+qt.h,Yt.visible&&(st.drawTicks(Pt,Yt,{vals:Yt.ticks==="inside"?st.clipEnds(Yt,rr):rr,layer:Ht,path:st.makeTickPath(Yt,sr,ar),transFn:jt}),st.drawLabels(Pt,Yt,{vals:rr,layer:Ht,transFn:jt,labelFns:st.makeLabelFns(Yt,sr)}));function cr(Er){Er.attr("width",function(Rr){return Math.max(0,Yt.c2p(Rr.range[1])-Yt.c2p(Rr.range[0]))}).attr("x",function(Rr){return Yt.c2p(Rr.range[0])}).attr("y",function(Rr){return .5*(1-Rr.thickness)*Zt}).attr("height",function(Rr){return Rr.thickness*Zt})}var hr=[Vt].concat($t.gauge.steps),br=Ut.selectAll("g.bg-bullet").data(hr);br.enter().append("g").classed("bg-bullet",!0).append("rect"),br.select("rect").call(cr).call(Tt),br.exit().remove();var Tr=Ut.selectAll("g.value-bullet").data([$t.gauge.bar]);Tr.enter().append("g").classed("value-bullet",!0).append("rect"),Tr.select("rect").attr("height",Kt).attr("y",(Zt-Kt)/2).call(Tt),yt(lr)?Tr.select("rect").transition().duration(lr.duration).ease(lr.easing).each("end",function(){Jt&&Jt()}).each("interrupt",function(){Jt&&Jt()}).attr("width",Math.max(0,Yt.c2p(Math.min($t.gauge.axis.range[1],Dt[0].y)))):Tr.select("rect").attr("width",typeof Dt[0].y=="number"?Math.max(0,Yt.c2p(Math.min($t.gauge.axis.range[1],Dt[0].y))):0),Tr.exit().remove();var Ir=Dt.filter(function(){return $t.gauge.threshold.value||$t.gauge.threshold.value===0}),Ar=Ut.selectAll("g.threshold-bullet").data(Ir);Ar.enter().append("g").classed("threshold-bullet",!0).append("line"),Ar.select("line").attr("x1",Yt.c2p($t.gauge.threshold.value)).attr("x2",Yt.c2p($t.gauge.threshold.value)).attr("y1",(1-$t.gauge.threshold.thickness)/2*Zt).attr("y2",(1-(1-$t.gauge.threshold.thickness)/2)*Zt).call(dt.stroke,$t.gauge.threshold.line.color).style("stroke-width",$t.gauge.threshold.line.width),Ar.exit().remove();var _r=Ut.selectAll("g.gauge-outline").data([Xt]);_r.enter().append("g").classed("gauge-outline",!0).append("rect"),_r.select("rect").call(cr).call(Tt),_r.exit().remove()}function _t(Pt,zt,Dt,Nt){var $t=Dt[0].trace,Ut=Nt.size,Ht=Nt.radius,Vt=Nt.innerRadius,Xt=Nt.gaugeBg,qt=Nt.gaugeOutline,er=[Ut.l+Ut.w/2,Ut.t+Ut.h/2+Ht/2],lr=Nt.gauge,Jt=Nt.layer,Yt=Nt.transitionOpts,rr=Nt.onComplete,jt=Math.PI/2;function ar(qr){var Xr=$t.gauge.axis.range[0],ln=$t.gauge.axis.range[1],mn=(qr-Xr)/(ln-Xr)*Math.PI-jt;return mn<-jt?-jt:mn>jt?jt:mn}function sr(qr){return it.svg.arc().innerRadius((Vt+Ht)/2-qr/2*(Ht-Vt)).outerRadius((Vt+Ht)/2+qr/2*(Ht-Vt)).startAngle(-jt)}function Zt(qr){qr.attr("d",function(Xr){return sr(Xr.thickness).startAngle(ar(Xr.range[0])).endAngle(ar(Xr.range[1]))()})}var Kt,or,tr,cr;lr.enter().append("g").classed("angular",!0),lr.attr("transform",ut(er[0],er[1])),Jt.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),Jt.selectAll("g.xangularaxistick,path,text").remove(),Kt=wt(Pt,$t.gauge.axis),Kt.type="linear",Kt.range=$t.gauge.axis.range,Kt._id="xangularaxis",Kt.ticklabeloverflow="allow",Kt.setScale();var hr=function(qr){return(Kt.range[0]-qr.x)/(Kt.range[1]-Kt.range[0])*Math.PI+Math.PI},br={},Tr=st.makeLabelFns(Kt,0),Ir=Tr.labelStandoff;br.xFn=function(qr){var Xr=hr(qr);return Math.cos(Xr)*Ir},br.yFn=function(qr){var Xr=hr(qr),ln=Math.sin(Xr)>0?.2:1;return-Math.sin(Xr)*(Ir+qr.fontSize*ln)+Math.abs(Math.cos(Xr))*(qr.fontSize*j)},br.anchorFn=function(qr){var Xr=hr(qr),ln=Math.cos(Xr);return Math.abs(ln)<.1?"middle":ln>0?"start":"end"},br.heightFn=function(qr,Xr,ln){var mn=hr(qr);return-.5*(1+Math.sin(mn))*ln};var Ar=function(qr){return ut(er[0]+Ht*Math.cos(qr),er[1]-Ht*Math.sin(qr))};tr=function(qr){return Ar(hr(qr))};var _r=function(qr){var Xr=hr(qr);return Ar(Xr)+"rotate("+-ht(Xr)+")"};if(or=st.calcTicks(Kt),cr=st.getTickSigns(Kt)[2],Kt.visible){cr=Kt.ticks==="inside"?-1:1;var Er=(Kt.linewidth||1)/2;st.drawTicks(Pt,Kt,{vals:or,layer:Jt,path:"M"+cr*Er+",0h"+cr*Kt.ticklen,transFn:_r}),st.drawLabels(Pt,Kt,{vals:or,layer:Jt,transFn:tr,labelFns:br})}var Rr=[Xt].concat($t.gauge.steps),zr=lr.selectAll("g.bg-arc").data(Rr);zr.enter().append("g").classed("bg-arc",!0).append("path"),zr.select("path").call(Zt).call(Tt),zr.exit().remove();var Br=sr($t.gauge.bar.thickness),kr=lr.selectAll("g.value-arc").data([$t.gauge.bar]);kr.enter().append("g").classed("value-arc",!0).append("path");var Nr=kr.select("path");yt(Yt)?(Nr.transition().duration(Yt.duration).ease(Yt.easing).each("end",function(){rr&&rr()}).each("interrupt",function(){rr&&rr()}).attrTween("d",kt(Br,ar(Dt[0].lastY),ar(Dt[0].y))),$t._lastValue=Dt[0].y):Nr.attr("d",typeof Dt[0].y=="number"?Br.endAngle(ar(Dt[0].y)):"M0,0Z"),Nr.call(Tt),kr.exit().remove(),Rr=[];var Qr=$t.gauge.threshold.value;(Qr||Qr===0)&&Rr.push({range:[Qr,Qr],color:$t.gauge.threshold.color,line:{color:$t.gauge.threshold.line.color,width:$t.gauge.threshold.line.width},thickness:$t.gauge.threshold.thickness});var sn=lr.selectAll("g.threshold-arc").data(Rr);sn.enter().append("g").classed("threshold-arc",!0).append("path"),sn.select("path").call(Zt).call(Tt),sn.exit().remove();var un=lr.selectAll("g.gauge-outline").data([qt]);un.enter().append("g").classed("gauge-outline",!0).append("path"),un.select("path").call(Zt).call(Tt),un.exit().remove()}function Mt(Pt,zt,Dt,Nt){var $t=Dt[0].trace,Ut=Nt.numbersX,Ht=Nt.numbersY,Vt=$t.align||"center",Xt=bt[Vt],qt=Nt.transitionOpts,er=Nt.onComplete,lr=Et.ensureSingle(zt,"g","numbers"),Jt,Yt,rr,jt=[];$t._hasNumber&&jt.push("number"),$t._hasDelta&&(jt.push("delta"),$t.delta.position==="left"&&jt.reverse());var ar=lr.selectAll("text").data(jt);ar.enter().append("text"),ar.attr("text-anchor",function(){return Xt}).attr("class",function(Ar){return Ar}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),ar.exit().remove();function sr(Ar,_r,Er,Rr){if(Ar.match("s")&&Er>=0!=Rr>=0&&!_r(Er).slice(-1).match(at)&&!_r(Rr).slice(-1).match(at)){var zr=Ar.slice().replace("s","f").replace(/\d+/,function(kr){return parseInt(kr)-1}),Br=wt(Pt,{tickformat:zr});return function(kr){return Math.abs(kr)<1?st.tickText(Br,kr).text:_r(kr)}}else return _r}function Zt(){var Ar=wt(Pt,{tickformat:$t.number.valueformat},$t._range);Ar.setScale(),st.prepTicks(Ar);var _r=function(kr){return st.tickText(Ar,kr).text},Er=$t.number.suffix,Rr=$t.number.prefix,zr=lr.select("text.number");function Br(){var kr=typeof Dt[0].y=="number"?Rr+_r(Dt[0].y)+Er:"-";zr.text(kr).call(_.font,$t.number.font).call(tt.convertToTspans,Pt)}return yt(qt)?zr.transition().duration(qt.duration).ease(qt.easing).each("end",function(){Br(),er&&er()}).each("interrupt",function(){Br(),er&&er()}).attrTween("text",function(){var kr=it.select(this),Nr=et(Dt[0].lastY,Dt[0].y);$t._lastValue=Dt[0].y;var Qr=sr($t.number.valueformat,_r,Dt[0].lastY,Dt[0].y);return function(sn){kr.text(Rr+Qr(Nr(sn))+Er)}}):Br(),Jt=At(Rr+_r(Dt[0].y)+Er,$t.number.font,Xt,Pt),zr}function Kt(){var Ar=wt(Pt,{tickformat:$t.delta.valueformat},$t._range);Ar.setScale(),st.prepTicks(Ar);var _r=function(sn){return st.tickText(Ar,sn).text},Er=$t.delta.suffix,Rr=$t.delta.prefix,zr=function(sn){var un=$t.delta.relative?sn.relativeDelta:sn.delta;return un},Br=function(sn,un){return sn===0||typeof sn!="number"||isNaN(sn)?"-":(sn>0?$t.delta.increasing.symbol:$t.delta.decreasing.symbol)+Rr+un(sn)+Er},kr=function(sn){return sn.delta>=0?$t.delta.increasing.color:$t.delta.decreasing.color};$t._deltaLastValue===void 0&&($t._deltaLastValue=zr(Dt[0]));var Nr=lr.select("text.delta");Nr.call(_.font,$t.delta.font).call(dt.fill,kr({delta:$t._deltaLastValue}));function Qr(){Nr.text(Br(zr(Dt[0]),_r)).call(dt.fill,kr(Dt[0])).call(tt.convertToTspans,Pt)}return yt(qt)?Nr.transition().duration(qt.duration).ease(qt.easing).tween("text",function(){var sn=it.select(this),un=zr(Dt[0]),qr=$t._deltaLastValue,Xr=sr($t.delta.valueformat,_r,qr,un),ln=et(qr,un);return $t._deltaLastValue=un,function(mn){sn.text(Br(ln(mn),Xr)),sn.call(dt.fill,kr({delta:ln(mn)}))}}).each("end",function(){Qr(),er&&er()}).each("interrupt",function(){Qr(),er&&er()}):Qr(),Yt=At(Br(zr(Dt[0]),_r),$t.delta.font,Xt,Pt),Nr}var or=$t.mode+$t.align,tr;if($t._hasDelta&&(tr=Kt(),or+=$t.delta.position+$t.delta.font.size+$t.delta.font.family+$t.delta.valueformat,or+=$t.delta.increasing.symbol+$t.delta.decreasing.symbol,rr=Yt),$t._hasNumber&&(Zt(),or+=$t.number.font.size+$t.number.font.family+$t.number.valueformat+$t.number.suffix+$t.number.prefix,rr=Jt),$t._hasDelta&&$t._hasNumber){var cr=[(Jt.left+Jt.right)/2,(Jt.top+Jt.bottom)/2],hr=[(Yt.left+Yt.right)/2,(Yt.top+Yt.bottom)/2],br,Tr,Ir=.75*$t.delta.font.size;$t.delta.position==="left"&&(br=Ot($t,"deltaPos",0,-1*(Jt.width*ft[$t.align]+Yt.width*(1-ft[$t.align])+Ir),or,Math.min),Tr=cr[1]-hr[1],rr={width:Jt.width+Yt.width+Ir,height:Math.max(Jt.height,Yt.height),left:Yt.left+br,right:Jt.right,top:Math.min(Jt.top,Yt.top+Tr),bottom:Math.max(Jt.bottom,Yt.bottom+Tr)}),$t.delta.position==="right"&&(br=Ot($t,"deltaPos",0,Jt.width*(1-ft[$t.align])+Yt.width*ft[$t.align]+Ir,or,Math.max),Tr=cr[1]-hr[1],rr={width:Jt.width+Yt.width+Ir,height:Math.max(Jt.height,Yt.height),left:Jt.left,right:Yt.right+br,top:Math.min(Jt.top,Yt.top+Tr),bottom:Math.max(Jt.bottom,Yt.bottom+Tr)}),$t.delta.position==="bottom"&&(br=null,Tr=Yt.height,rr={width:Math.max(Jt.width,Yt.width),height:Jt.height+Yt.height,left:Math.min(Jt.left,Yt.left),right:Math.max(Jt.right,Yt.right),top:Jt.bottom-Jt.height,bottom:Jt.bottom+Yt.height}),$t.delta.position==="top"&&(br=null,Tr=Jt.top,rr={width:Math.max(Jt.width,Yt.width),height:Jt.height+Yt.height,left:Math.min(Jt.left,Yt.left),right:Math.max(Jt.right,Yt.right),top:Jt.bottom-Jt.height-Yt.height,bottom:Jt.bottom}),tr.attr({dx:br,dy:Tr})}($t._hasNumber||$t._hasDelta)&&lr.attr("transform",function(){var Ar=Nt.numbersScaler(rr);or+=Ar[2];var _r=Ot($t,"numbersScale",1,Ar[0],or,Math.min),Er;$t._scaleNumbers||(_r=1),$t._isAngular?Er=Ht-_r*rr.bottom:Er=Ht-_r*(rr.top+rr.bottom)/2,$t._numbersTop=_r*rr.top+Er;var Rr=rr[Vt];Vt==="center"&&(Rr=(rr.left+rr.right)/2);var zr=Ut-_r*Rr;return zr=Ot($t,"numbersTranslate",0,zr,or,Math.max),ut(zr,Er)+mt(_r)})}function Tt(Pt){Pt.each(function(zt){dt.stroke(it.select(this),zt.line.color)}).each(function(zt){dt.fill(it.select(this),zt.color)}).style("stroke-width",function(zt){return zt.line.width})}function kt(Pt,zt,Dt){return function(){var Nt=xt(zt,Dt);return function($t){return Pt.endAngle(Nt($t))()}}}function wt(Pt,zt,Dt){var Nt=Pt._fullLayout,$t=Et.extendFlat({type:"linear",ticks:"outside",range:Dt,showline:!0},zt),Ut={type:"linear",_id:"x"+zt._id},Ht={letter:"x",font:Nt.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function Vt(Xt,qt){return Et.coerce($t,Ut,vt,Xt,qt)}return ot($t,Ut,Vt,Ht,Nt),nt($t,Ut,Vt,Ht),Ut}function ct(Pt,zt,Dt){var Nt=Math.min(zt/Pt.width,Dt/Pt.height);return[Nt,Pt,zt+"x"+Dt]}function It(Pt,zt){var Dt=Math.sqrt(Pt.width/2*(Pt.width/2)+Pt.height*Pt.height),Nt=zt/Dt;return[Nt,Pt,zt]}function At(Pt,zt,Dt,Nt){var $t=document.createElementNS("http://www.w3.org/2000/svg","text"),Ut=it.select($t);return Ut.text(Pt).attr("x",0).attr("y",0).attr("text-anchor",Dt).attr("data-unformatted",Pt).call(tt.convertToTspans,Nt).call(_.font,zt),_.bBox(Ut.node())}function Ot(Pt,zt,Dt,Nt,$t,Ut){var Ht="_cache"+zt;Pt[Ht]&&Pt[Ht].key===$t||(Pt[Ht]={key:$t,value:Dt});var Vt=Et.aggNums(Ut,null,[Pt[Ht].value,Nt],2);return Pt[Ht].value=Vt,Vt}},50048:function(Ct,Rt,o){var it=o(49084),xt=o(29736).axisHoverFormat,et=o(21776).Ks,Et=o(52948),mt=o(45464),ut=o(92880).extendFlat,ht=o(67824).overrideAll;function j(tt){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function _(tt){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var rt=Ct.exports=ht(ut({x:{valType:"data_array"},y:{valType:"data_array"},z:{valType:"data_array"},value:{valType:"data_array"},isomin:{valType:"number"},isomax:{valType:"number"},surface:{show:{valType:"boolean",dflt:!0},count:{valType:"integer",dflt:2,min:1},fill:{valType:"number",min:0,max:1,dflt:1},pattern:{valType:"flaglist",flags:["A","B","C","D","E"],extras:["all","odd","even"],dflt:"all"}},spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:.15}},slices:{x:j(),y:j(),z:j()},caps:{x:_(),y:_(),z:_()},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:et(),xhoverformat:xt("x"),yhoverformat:xt("y"),zhoverformat:xt("z"),valuehoverformat:xt("value",1),showlegend:ut({},mt.showlegend,{dflt:!1})},it("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:Et.opacity,lightposition:Et.lightposition,lighting:Et.lighting,flatshading:Et.flatshading,contour:Et.contour,hoverinfo:ut({},mt.hoverinfo)}),"calc","nested");rt.flatshading.dflt=!0,rt.lighting.facenormalsepsilon.dflt=0,rt.x.editType=rt.y.editType=rt.z.editType=rt.value.editType="calc+clearAxisTypes",rt.transforms=void 0},62624:function(Ct,Rt,o){var it=o(47128),xt=o(3832).processGrid,et=o(3832).filter;Ct.exports=function(mt,ut){ut._len=Math.min(ut.x.length,ut.y.length,ut.z.length,ut.value.length),ut._x=et(ut.x,ut._len),ut._y=et(ut.y,ut._len),ut._z=et(ut.z,ut._len),ut._value=et(ut.value,ut._len);var ht=xt(ut);ut._gridFill=ht.fill,ut._Xs=ht.Xs,ut._Ys=ht.Ys,ut._Zs=ht.Zs,ut._len=ht.len;for(var j=1/0,_=-1/0,rt=0;rt0;vt--){var dt=Math.min(nt[vt],nt[vt-1]),bt=Math.max(nt[vt],nt[vt-1]);if(bt>dt&&dt-1}function Kt(jr,Gr){return jr===null?Gr:jr}function or(jr,Gr,wr){qt();var vr=[Gr],Dr=[wr];if(jt>=1)vr=[Gr],Dr=[wr];else if(jt>0){var Sr=sr(Gr,wr);vr=Sr.xyzv,Dr=Sr.abc}for(var ur=0;ur-1?wr[Pr]:Xt(Vr,en,rn);xn>-1?xr[Pr]=xn:xr[Pr]=lr(Vr,en,rn,Kt(jr,Cn))}Jt(xr[0],xr[1],xr[2])}}function tr(jr,Gr,wr){var vr=function(Dr,Sr,ur){or(jr,[Gr[Dr],Gr[Sr],Gr[ur]],[wr[Dr],wr[Sr],wr[ur]])};vr(0,1,2),vr(2,3,0)}function cr(jr,Gr,wr){var vr=function(Dr,Sr,ur){or(jr,[Gr[Dr],Gr[Sr],Gr[ur]],[wr[Dr],wr[Sr],wr[ur]])};vr(0,1,2),vr(3,0,1),vr(2,3,0),vr(1,2,3)}function hr(jr,Gr,wr,vr){var Dr=jr[3];Drvr&&(Dr=vr);for(var Sr=(jr[3]-Dr)/(jr[3]-Gr[3]+1e-9),ur=[],xr=0;xr<4;xr++)ur[xr]=(1-Sr)*jr[xr]+Sr*Gr[xr];return ur}function br(jr,Gr,wr){return jr>=Gr&&jr<=wr}function Tr(jr){var Gr=.001*(Nt-Dt);return jr>=Dt-Gr&&jr<=Nt+Gr}function Ir(jr){for(var Gr=[],wr=0;wr<4;wr++){var vr=jr[wr];Gr.push([ot._x[vr],ot._y[vr],ot._z[vr],ot._value[vr]])}return Gr}var Ar=3;function _r(jr,Gr,wr,vr,Dr,Sr){Sr||(Sr=1),wr=[-1,-1,-1];var ur=!1,xr=[br(Gr[0][3],vr,Dr),br(Gr[1][3],vr,Dr),br(Gr[2][3],vr,Dr)];if(!xr[0]&&!xr[1]&&!xr[2])return!1;var Pr=function(en,rn,Cn){return Tr(rn[0][3])&&Tr(rn[1][3])&&Tr(rn[2][3])?(or(en,rn,Cn),!0):Srxr?[Pt,Sr]:[Sr,zt];ln(Gr,Pr[0],Pr[1])}}var Vr=[[Math.min(Dt,zt),Math.max(Dt,zt)],[Math.min(Pt,Nt),Math.max(Pt,Nt)]];["x","y","z"].forEach(function(en){for(var rn=[],Cn=0;Cn0&&(yn.push(so.id),en==="x"?Kn.push([so.distRatio,0,0]):en==="y"?Kn.push([0,so.distRatio,0]):Kn.push([0,0,so.distRatio]))}else en==="x"?_i=Jr(1,wt-1):en==="y"?_i=Jr(1,ct-1):_i=Jr(1,It-1);yn.length>0&&(en==="x"?rn[xn]=mn(jr,yn,fn,bn,Kn,rn[xn]):en==="y"?rn[xn]=pn(jr,yn,fn,bn,Kn,rn[xn]):rn[xn]=En(jr,yn,fn,bn,Kn,rn[xn]),xn++),_i.length>0&&(en==="x"?rn[xn]=Qr(jr,_i,fn,bn,rn[xn]):en==="y"?rn[xn]=sn(jr,_i,fn,bn,rn[xn]):rn[xn]=un(jr,_i,fn,bn,rn[xn]),xn++)}var ba=ot.caps[en];ba.show&&ba.fill&&(ar(ba.fill),en==="x"?rn[xn]=Qr(jr,[0,wt-1],fn,bn,rn[xn]):en==="y"?rn[xn]=sn(jr,[0,ct-1],fn,bn,rn[xn]):rn[xn]=un(jr,[0,It-1],fn,bn,rn[xn]),xn++)}}),yt===0&&er(),ot._meshX=$t,ot._meshY=Ut,ot._meshZ=Ht,ot._meshIntensity=Vt,ot._Xs=Mt,ot._Ys=Tt,ot._Zs=kt}return Ur(),ot}function st(ot,nt){var vt=ot.glplot.gl,dt=it({gl:vt}),bt=new j(ot,dt,nt.uid);return dt._trace=bt,bt.update(nt),ot.glplot.add(dt),bt}Ct.exports={findNearestOnAxis:ht,generateIsoMeshes:tt,createIsosurfaceTrace:st}},70548:function(Ct,Rt,o){var it=o(3400),xt=o(24040),et=o(50048),Et=o(27260);function mt(ht,j,_,rt){function tt(st,ot){return it.coerce(ht,j,et,st,ot)}ut(ht,j,_,rt,tt)}function ut(ht,j,_,rt,tt){var st=tt("isomin"),ot=tt("isomax");ot!=null&&st!==void 0&&st!==null&&st>ot&&(j.isomin=null,j.isomax=null);var nt=tt("x"),vt=tt("y"),dt=tt("z"),bt=tt("value");if(!nt||!nt.length||!vt||!vt.length||!dt||!dt.length||!bt||!bt.length){j.visible=!1;return}var ft=xt.getComponentMethod("calendars","handleTraceDefaults");ft(ht,j,["x","y","z"],rt),tt("valuehoverformat"),["x","y","z"].forEach(function(_t){tt(_t+"hoverformat");var Mt="caps."+_t,Tt=tt(Mt+".show");Tt&&tt(Mt+".fill");var kt="slices."+_t,wt=tt(kt+".show");wt&&(tt(kt+".fill"),tt(kt+".locations"))});var at=tt("spaceframe.show");at&&tt("spaceframe.fill");var yt=tt("surface.show");yt&&(tt("surface.count"),tt("surface.fill"),tt("surface.pattern"));var St=tt("contour.show");St&&(tt("contour.color"),tt("contour.width")),["text","hovertext","hovertemplate","lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","opacity"].forEach(function(_t){tt(_t)}),Et(ht,j,rt,tt,{prefix:"",cLetter:"c"}),j._length=null}Ct.exports={supplyDefaults:mt,supplyIsoDefaults:ut}},6296:function(Ct,Rt,o){Ct.exports={attributes:o(50048),supplyDefaults:o(70548).supplyDefaults,calc:o(62624),colorbar:{min:"cmin",max:"cmax"},plot:o(31460).createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:o(12536),categories:["gl3d","showLegend"],meta:{}}},52948:function(Ct,Rt,o){var it=o(49084),xt=o(29736).axisHoverFormat,et=o(21776).Ks,Et=o(16716),mt=o(45464),ut=o(92880).extendFlat;Ct.exports=ut({x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},i:{valType:"data_array",editType:"calc"},j:{valType:"data_array",editType:"calc"},k:{valType:"data_array",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:et({editType:"calc"}),xhoverformat:xt("x"),yhoverformat:xt("y"),zhoverformat:xt("z"),delaunayaxis:{valType:"enumerated",values:["x","y","z"],dflt:"z",editType:"calc"},alphahull:{valType:"number",dflt:-1,editType:"calc"},intensity:{valType:"data_array",editType:"calc"},intensitymode:{valType:"enumerated",values:["vertex","cell"],dflt:"vertex",editType:"calc"},color:{valType:"color",editType:"calc"},vertexcolor:{valType:"data_array",editType:"calc"},facecolor:{valType:"data_array",editType:"calc"},transforms:void 0},it("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:Et.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:ut({},Et.contours.x.show,{}),color:Et.contours.x.color,width:Et.contours.x.width,editType:"calc"},lightposition:{x:ut({},Et.lightposition.x,{dflt:1e5}),y:ut({},Et.lightposition.y,{dflt:1e5}),z:ut({},Et.lightposition.z,{dflt:0}),editType:"calc"},lighting:ut({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc"},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc"},editType:"calc"},Et.lighting),hoverinfo:ut({},mt.hoverinfo,{editType:"calc"}),showlegend:ut({},mt.showlegend,{dflt:!1})})},1876:function(Ct,Rt,o){var it=o(47128);Ct.exports=function(et,Et){Et.intensity&&it(et,Et,{vals:Et.intensity,containerStr:"",cLetter:"c"})}},576:function(Ct,Rt,o){var it=o(67792).gl_mesh3d,xt=o(67792).delaunay_triangulate,et=o(67792).alpha_shape,Et=o(67792).convex_hull,mt=o(33040).parseColorScale,ut=o(3400).isArrayOrTypedArray,ht=o(43080),j=o(8932).extractOpts,_=o(52094);function rt(ft,at,yt){this.scene=ft,this.uid=yt,this.mesh=at,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var tt=rt.prototype;tt.handlePick=function(ft){if(ft.object===this.mesh){var at=ft.index=ft.data.index;ft.data._cellCenter?ft.traceCoordinate=ft.data.dataCoordinate:ft.traceCoordinate=[this.data.x[at],this.data.y[at],this.data.z[at]];var yt=this.data.hovertext||this.data.text;return ut(yt)&&yt[at]!==void 0?ft.textLabel=yt[at]:yt&&(ft.textLabel=yt),!0}};function st(ft){for(var at=[],yt=ft.length,St=0;St=at-.5)return!1;return!0}tt.update=function(ft){var at=this.scene,yt=at.fullSceneLayout;this.data=ft;var St=ft.x.length,_t=_(ot(yt.xaxis,ft.x,at.dataScale[0],ft.xcalendar),ot(yt.yaxis,ft.y,at.dataScale[1],ft.ycalendar),ot(yt.zaxis,ft.z,at.dataScale[2],ft.zcalendar)),Mt;if(ft.i&&ft.j&&ft.k){if(ft.i.length!==ft.j.length||ft.j.length!==ft.k.length||!dt(ft.i,St)||!dt(ft.j,St)||!dt(ft.k,St))return;Mt=_(nt(ft.i),nt(ft.j),nt(ft.k))}else ft.alphahull===0?Mt=Et(_t):ft.alphahull>0?Mt=et(ft.alphahull,_t):Mt=vt(ft.delaunayaxis,_t);var Tt={positions:_t,cells:Mt,lightPosition:[ft.lightposition.x,ft.lightposition.y,ft.lightposition.z],ambient:ft.lighting.ambient,diffuse:ft.lighting.diffuse,specular:ft.lighting.specular,roughness:ft.lighting.roughness,fresnel:ft.lighting.fresnel,vertexNormalsEpsilon:ft.lighting.vertexnormalsepsilon,faceNormalsEpsilon:ft.lighting.facenormalsepsilon,opacity:ft.opacity,contourEnable:ft.contour.show,contourColor:ht(ft.contour.color).slice(0,3),contourWidth:ft.contour.width,useFacetNormals:ft.flatshading};if(ft.intensity){var kt=j(ft);this.color="#fff";var wt=ft.intensitymode;Tt[wt+"Intensity"]=ft.intensity,Tt[wt+"IntensityBounds"]=[kt.min,kt.max],Tt.colormap=mt(ft)}else ft.vertexcolor?(this.color=ft.vertexcolor[0],Tt.vertexColors=st(ft.vertexcolor)):ft.facecolor?(this.color=ft.facecolor[0],Tt.cellColors=st(ft.facecolor)):(this.color=ft.color,Tt.meshColor=ht(ft.color));this.mesh.update(Tt)},tt.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function bt(ft,at){var yt=ft.glplot.gl,St=it({gl:yt}),_t=new rt(ft,St,at.uid);return St._trace=_t,_t.update(at),ft.glplot.add(St),_t}Ct.exports=bt},74212:function(Ct,Rt,o){var it=o(24040),xt=o(3400),et=o(27260),Et=o(52948);Ct.exports=function(ut,ht,j,_){function rt(vt,dt){return xt.coerce(ut,ht,Et,vt,dt)}function tt(vt){var dt=vt.map(function(bt){var ft=rt(bt);return ft&&xt.isArrayOrTypedArray(ft)?ft:null});return dt.every(function(bt){return bt&&bt.length===dt[0].length})&&dt}var st=tt(["x","y","z"]);if(!st){ht.visible=!1;return}if(tt(["i","j","k"]),ht.i&&(!ht.j||!ht.k)||ht.j&&(!ht.k||!ht.i)||ht.k&&(!ht.i||!ht.j)){ht.visible=!1;return}var ot=it.getComponentMethod("calendars","handleTraceDefaults");ot(ut,ht,["x","y","z"],_),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","alphahull","delaunayaxis","opacity"].forEach(function(vt){rt(vt)});var nt=rt("contour.show");nt&&(rt("contour.color"),rt("contour.width")),"intensity"in ut?(rt("intensity"),rt("intensitymode"),et(ut,ht,_,rt,{prefix:"",cLetter:"c"})):(ht.showscale=!1,"facecolor"in ut?rt("facecolor"):"vertexcolor"in ut?rt("vertexcolor"):rt("color",j)),rt("text"),rt("hovertext"),rt("hovertemplate"),rt("xhoverformat"),rt("yhoverformat"),rt("zhoverformat"),ht._length=null}},7404:function(Ct,Rt,o){Ct.exports={attributes:o(52948),supplyDefaults:o(74212),calc:o(1876),colorbar:{min:"cmin",max:"cmax"},plot:o(576),moduleType:"trace",name:"mesh3d",basePlotModule:o(12536),categories:["gl3d","showLegend"],meta:{}}},20279:function(Ct,Rt,o){var it=o(3400).extendFlat,xt=o(52904),et=o(29736).axisHoverFormat,Et=o(98192).u,mt=o(55756),ut=o(48164),ht=ut.INCREASING.COLOR,j=ut.DECREASING.COLOR,_=xt.line;function rt(tt){return{line:{color:it({},_.color,{dflt:tt}),width:_.width,dash:Et,editType:"style"},editType:"style"}}Ct.exports={xperiod:xt.xperiod,xperiod0:xt.xperiod0,xperiodalignment:xt.xperiodalignment,xhoverformat:et("x"),yhoverformat:et("y"),x:{valType:"data_array",editType:"calc+clearAxisTypes"},open:{valType:"data_array",editType:"calc"},high:{valType:"data_array",editType:"calc"},low:{valType:"data_array",editType:"calc"},close:{valType:"data_array",editType:"calc"},line:{width:it({},_.width,{}),dash:it({},Et,{}),editType:"style"},increasing:rt(ht),decreasing:rt(j),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:it({},mt.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:xt.zorder}},42812:function(Ct,Rt,o){var it=o(3400),xt=it._,et=o(54460),Et=o(1220),mt=o(39032).BADNUM;function ut(rt,tt){var st=et.getFromId(rt,tt.xaxis),ot=et.getFromId(rt,tt.yaxis),nt=_(rt,st,tt),vt=tt._minDiff;tt._minDiff=null;var dt=tt._origX;tt._origX=null;var bt=tt._xcalc;tt._xcalc=null;var ft=j(rt,tt,dt,bt,ot,ht);return tt._extremes[st._id]=et.findExtremes(st,bt,{vpad:vt/2}),ft.length?(it.extendFlat(ft[0].t,{wHover:vt/2,tickLen:nt}),ft):[{t:{empty:!0}}]}function ht(rt,tt,st,ot){return{o:rt,h:tt,l:st,c:ot}}function j(rt,tt,st,ot,nt,vt){for(var dt=nt.makeCalcdata(tt,"open"),bt=nt.makeCalcdata(tt,"high"),ft=nt.makeCalcdata(tt,"low"),at=nt.makeCalcdata(tt,"close"),yt=it.isArrayOrTypedArray(tt.text),St=it.isArrayOrTypedArray(tt.hovertext),_t=!0,Mt=null,Tt=!!tt.xperiodalignment,kt=[],wt=0;wtMt):_t=Pt>It,Mt=Pt;var zt=vt(It,At,Ot,Pt);zt.pos=ct,zt.yc=(It+Pt)/2,zt.i=wt,zt.dir=_t?"increasing":"decreasing",zt.x=zt.pos,zt.y=[Ot,At],Tt&&(zt.orig_p=st[wt]),yt&&(zt.tx=tt.text[wt]),St&&(zt.htx=tt.hovertext[wt]),kt.push(zt)}else kt.push({pos:ct,empty:!0})}return tt._extremes[nt._id]=et.findExtremes(nt,it.concat(ft,bt),{padded:!0}),kt.length&&(kt[0].t={labels:{open:xt(rt,"open:")+" ",high:xt(rt,"high:")+" ",low:xt(rt,"low:")+" ",close:xt(rt,"close:")+" "}}),kt}function _(rt,tt,st){var ot=st._minDiff;if(!ot){var nt=rt._fullData,vt=[];ot=1/0;var dt;for(dt=0;dt"+at.labels[Pt]+it.hoverLabelText(bt,zt,ft.yhoverformat)):(Nt=xt.extendFlat({},St),Nt.y0=Nt.y1=Dt,Nt.yLabelVal=zt,Nt.yLabel=at.labels[Pt]+it.hoverLabelText(bt,zt,ft.yhoverformat),Nt.name="",yt.push(Nt),At[zt]=Nt)}return yt}function tt(st,ot,nt,vt){var dt=st.cd,bt=st.ya,ft=dt[0].trace,at=dt[0].t,yt=_(st,ot,nt,vt);if(!yt)return[];var St=yt.index,_t=dt[St],Mt=yt.index=_t.i,Tt=_t.dir;function kt(zt){return at.labels[zt]+it.hoverLabelText(bt,ft[zt][Mt],ft.yhoverformat)}var wt=_t.hi||ft.hoverinfo,ct=wt.split("+"),It=wt==="all",At=It||ct.indexOf("y")!==-1,Ot=It||ct.indexOf("text")!==-1,Pt=At?[kt("open"),kt("high"),kt("low"),kt("close")+" "+ht[Tt]]:[];return Ot&&mt(_t,ft,Pt),yt.extraText=Pt.join("
"),yt.y0=yt.y1=bt.c2p(_t.yc,!0),[yt]}Ct.exports={hoverPoints:j,hoverSplit:rt,hoverOnPoints:tt}},65456:function(Ct,Rt,o){Ct.exports={moduleType:"trace",name:"ohlc",basePlotModule:o(57952),categories:["cartesian","svg","showLegend"],meta:{},attributes:o(20279),supplyDefaults:o(23860),calc:o(42812).calc,plot:o(36664),style:o(14008),hoverPoints:o(18720).hoverPoints,selectPoints:o(97384)}},52744:function(Ct,Rt,o){var it=o(24040),xt=o(3400);Ct.exports=function(Et,mt,ut,ht){var j=ut("x"),_=ut("open"),rt=ut("high"),tt=ut("low"),st=ut("close");ut("hoverlabel.split");var ot=it.getComponentMethod("calendars","handleTraceDefaults");if(ot(Et,mt,["x"],ht),!!(_&&rt&&tt&&st)){var nt=Math.min(_.length,rt.length,tt.length,st.length);return j&&(nt=Math.min(nt,xt.minRowLength(j))),mt._length=nt,nt}}},36664:function(Ct,Rt,o){var it=o(33428),xt=o(3400);Ct.exports=function(Et,mt,ut,ht){var j=mt.yaxis,_=mt.xaxis,rt=!!_.rangebreaks;xt.makeTraceGroups(ht,ut,"trace ohlc").each(function(tt){var st=it.select(this),ot=tt[0],nt=ot.t,vt=ot.trace;if(vt.visible!==!0||nt.empty){st.remove();return}var dt=nt.tickLen,bt=st.selectAll("path").data(xt.identity);bt.enter().append("path"),bt.exit().remove(),bt.attr("d",function(ft){if(ft.empty)return"M0,0Z";var at=_.c2p(ft.pos-dt,!0),yt=_.c2p(ft.pos+dt,!0),St=rt?(at+yt)/2:_.c2p(ft.pos,!0),_t=j.c2p(ft.o,!0),Mt=j.c2p(ft.h,!0),Tt=j.c2p(ft.l,!0),kt=j.c2p(ft.c,!0);return"M"+at+","+_t+"H"+St+"M"+St+","+Mt+"V"+Tt+"M"+yt+","+kt+"H"+St})})}},97384:function(Ct){Ct.exports=function(o,it){var xt=o.cd,et=o.xaxis,Et=o.yaxis,mt=[],ut,ht=xt[0].t.bPos||0;if(it===!1)for(ut=0;ut=ft.length||at[ft[yt]]!==void 0)return!1;at[ft[yt]]=!0}return!0}},76671:function(Ct,Rt,o){var it=o(3400),xt=o(94288).hasColorscale,et=o(27260),Et=o(86968).Q,mt=o(51272),ut=o(72140),ht=o(26284),j=o(38116).isTypedArraySpec;function _(tt,st,ot,nt,vt){vt("line.shape"),vt("line.hovertemplate");var dt=vt("line.color",nt.colorway[0]);if(xt(tt,"line")&&it.isArrayOrTypedArray(dt)){if(dt.length)return vt("line.colorscale"),et(tt,st,nt,vt,{prefix:"line.",cLetter:"c"}),dt.length;st.line.color=ot}return 1/0}function rt(tt,st){function ot(yt,St){return it.coerce(tt,st,ut.dimensions,yt,St)}var nt=ot("values"),vt=ot("visible");if(nt&&nt.length||(vt=st.visible=!1),vt){ot("label"),ot("displayindex",st._index);var dt=tt.categoryarray,bt=it.isArrayOrTypedArray(dt)&&dt.length>0||j(dt),ft;bt&&(ft="array");var at=ot("categoryorder",ft);at==="array"?(ot("categoryarray"),ot("ticktext")):(delete tt.categoryarray,delete tt.ticktext),!bt&&at==="array"&&(st.categoryorder="trace")}}Ct.exports=function(st,ot,nt,vt){function dt(St,_t){return it.coerce(st,ot,ut,St,_t)}var bt=mt(st,ot,{name:"dimensions",handleItemDefaults:rt}),ft=_(st,ot,nt,vt,dt);Et(ot,vt,dt),(!Array.isArray(bt)||!bt.length)&&(ot.visible=!1),ht(ot,bt,"values",ft),dt("hoveron"),dt("hovertemplate"),dt("arrangement"),dt("bundlecolors"),dt("sortpaths"),dt("counts");var at={weight:vt.font.weight,style:vt.font.style,variant:vt.font.variant,family:vt.font.family,size:Math.round(vt.font.size),color:vt.font.color};it.coerceFont(dt,"labelfont",at);var yt={weight:vt.font.weight,style:vt.font.style,variant:vt.font.variant,family:vt.font.family,size:Math.round(vt.font.size/1.2),color:vt.font.color};it.coerceFont(dt,"tickfont",yt)}},22020:function(Ct,Rt,o){Ct.exports={attributes:o(72140),supplyDefaults:o(76671),calc:o(69136),plot:o(60268),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:o(91800),categories:["noOpacity"],meta:{}}},51036:function(Ct,Rt,o){var it=o(33428),xt=o(67756).Gz,et=o(36424),Et=o(93024),mt=o(3400),ut=mt.strTranslate,ht=o(43616),j=o(49760),_=o(72736);function rt(jt,ar,sr,Zt){var Kt=ar._context.staticPlot,or=jt.map(er.bind(0,ar,sr)),tr=Zt.selectAll("g.parcatslayer").data([null]);tr.enter().append("g").attr("class","parcatslayer").style("pointer-events",Kt?"none":"all");var cr=tr.selectAll("g.trace.parcats").data(or,tt),hr=cr.enter().append("g").attr("class","trace parcats");cr.attr("transform",function(Nr){return ut(Nr.x,Nr.y)}),hr.append("g").attr("class","paths");var br=cr.select("g.paths"),Tr=br.selectAll("path.path").data(function(Nr){return Nr.paths},tt);Tr.attr("fill",function(Nr){return Nr.model.color});var Ir=Tr.enter().append("path").attr("class","path").attr("stroke-opacity",0).attr("fill",function(Nr){return Nr.model.color}).attr("fill-opacity",0);at(Ir),Tr.attr("d",function(Nr){return Nr.svgD}),Ir.empty()||Tr.sort(ot),Tr.exit().remove(),Tr.on("mouseover",nt).on("mouseout",vt).on("click",ft),hr.append("g").attr("class","dimensions");var Ar=cr.select("g.dimensions"),_r=Ar.selectAll("g.dimension").data(function(Nr){return Nr.dimensions},tt);_r.enter().append("g").attr("class","dimension"),_r.attr("transform",function(Nr){return ut(Nr.x,0)}),_r.exit().remove();var Er=_r.selectAll("g.category").data(function(Nr){return Nr.categories},tt),Rr=Er.enter().append("g").attr("class","category");Er.attr("transform",function(Nr){return ut(0,Nr.y)}),Rr.append("rect").attr("class","catrect").attr("pointer-events","none"),Er.select("rect.catrect").attr("fill","none").attr("width",function(Nr){return Nr.width}).attr("height",function(Nr){return Nr.height}),_t(Rr);var zr=Er.selectAll("rect.bandrect").data(function(Nr){return Nr.bands},tt);zr.each(function(){mt.raiseToTop(this)}),zr.attr("fill",function(Nr){return Nr.color});var Br=zr.enter().append("rect").attr("class","bandrect").attr("stroke-opacity",0).attr("fill",function(Nr){return Nr.color}).attr("fill-opacity",0);zr.attr("fill",function(Nr){return Nr.color}).attr("width",function(Nr){return Nr.width}).attr("height",function(Nr){return Nr.height}).attr("y",function(Nr){return Nr.y}).attr("cursor",function(Nr){return Nr.parcatsViewModel.arrangement==="fixed"?"default":Nr.parcatsViewModel.arrangement==="perpendicular"?"ns-resize":"move"}),Tt(Br),zr.exit().remove(),Rr.append("text").attr("class","catlabel").attr("pointer-events","none");var kr=ar._fullLayout.paper_bgcolor;Er.select("text.catlabel").attr("text-anchor",function(Nr){return st(Nr)?"start":"end"}).attr("alignment-baseline","middle").style("text-shadow",_.makeTextShadow(kr)).style("fill","rgb(0, 0, 0)").attr("x",function(Nr){return st(Nr)?Nr.width+5:-5}).attr("y",function(Nr){return Nr.height/2}).text(function(Nr){return Nr.model.categoryLabel}).each(function(Nr){ht.font(it.select(this),Nr.parcatsViewModel.categorylabelfont),_.convertToTspans(it.select(this),ar)}),Rr.append("text").attr("class","dimlabel"),Er.select("text.dimlabel").attr("text-anchor","middle").attr("alignment-baseline","baseline").attr("cursor",function(Nr){return Nr.parcatsViewModel.arrangement==="fixed"?"default":"ew-resize"}).attr("x",function(Nr){return Nr.width/2}).attr("y",-5).text(function(Nr,Qr){return Qr===0?Nr.parcatsViewModel.model.dimensions[Nr.model.dimensionInd].dimensionLabel:null}).each(function(Nr){ht.font(it.select(this),Nr.parcatsViewModel.labelfont)}),Er.selectAll("rect.bandrect").on("mouseover",Dt).on("mouseout",Nt),Er.exit().remove(),_r.call(it.behavior.drag().origin(function(Nr){return{x:Nr.x,y:0}}).on("dragstart",$t).on("drag",Ut).on("dragend",Ht)),cr.each(function(Nr){Nr.traceSelection=it.select(this),Nr.pathSelection=it.select(this).selectAll("g.paths").selectAll("path.path"),Nr.dimensionSelection=it.select(this).selectAll("g.dimensions").selectAll("g.dimension")}),cr.exit().remove()}Ct.exports=function(jt,ar,sr,Zt){rt(sr,jt,Zt,ar)};function tt(jt){return jt.key}function st(jt){var ar=jt.parcatsViewModel.dimensions.length,sr=jt.parcatsViewModel.dimensions[ar-1].model.dimensionInd;return jt.model.dimensionInd===sr}function ot(jt,ar){return jt.model.rawColor>ar.model.rawColor?1:jt.model.rawColor"),un=it.mouse(Kt)[0];Et.loneHover({trace:or,x:Er-cr.left+hr.left,y:Rr-cr.top+hr.top,text:sn,color:jt.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:zr,idealAlign:un1&&br.displayInd===hr.dimensions.length-1?(Ar=tr.left,_r="left"):(Ar=tr.left+tr.width,_r="right");var Er=cr.model.count,Rr=cr.model.categoryLabel,zr=Er/cr.parcatsViewModel.model.count,Br={countLabel:Er,categoryLabel:Rr,probabilityLabel:zr.toFixed(3)},kr=[];cr.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&kr.push(["Count:",Br.countLabel].join(" ")),cr.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&kr.push(["P("+Br.categoryLabel+"):",Br.probabilityLabel].join(" "));var Nr=kr.join("
");return{trace:Tr,x:Zt*(Ar-ar.left),y:Kt*(Ir-ar.top),text:Nr,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:_r,hovertemplate:Tr.hovertemplate,hovertemplateLabels:Br,eventData:[{data:Tr._input,fullData:Tr,count:Er,category:Rr,probability:zr}]}}function Pt(jt,ar,sr){var Zt=[];return it.select(sr.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each(function(){var Kt=this;Zt.push(Ot(jt,ar,Kt))}),Zt}function zt(jt,ar,sr){jt._fullLayout._calcInverseTransform(jt);var Zt=jt._fullLayout._invScaleX,Kt=jt._fullLayout._invScaleY,or=sr.getBoundingClientRect(),tr=it.select(sr).datum(),cr=tr.categoryViewModel,hr=cr.parcatsViewModel,br=hr.model.dimensions[cr.model.dimensionInd],Tr=hr.trace,Ir=or.y+or.height/2,Ar,_r;hr.dimensions.length>1&&br.displayInd===hr.dimensions.length-1?(Ar=or.left,_r="left"):(Ar=or.left+or.width,_r="right");var Er=cr.model.categoryLabel,Rr=tr.parcatsViewModel.model.count,zr=0;tr.categoryViewModel.bands.forEach(function(mn){mn.color===tr.color&&(zr+=mn.count)});var Br=cr.model.count,kr=0;hr.pathSelection.each(function(mn){mn.model.color===tr.color&&(kr+=mn.model.count)});var Nr=zr/Rr,Qr=zr/kr,sn=zr/Br,un={countLabel:zr,categoryLabel:Er,probabilityLabel:Nr.toFixed(3)},qr=[];cr.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&qr.push(["Count:",un.countLabel].join(" ")),cr.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&(qr.push("P(color ∩ "+Er+"): "+un.probabilityLabel),qr.push("P("+Er+" | color): "+Qr.toFixed(3)),qr.push("P(color | "+Er+"): "+sn.toFixed(3)));var Xr=qr.join("
"),ln=j.mostReadable(tr.color,["black","white"]);return{trace:Tr,x:Zt*(Ar-ar.left),y:Kt*(Ir-ar.top),text:Xr,color:tr.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:ln,fontSize:10,idealAlign:_r,hovertemplate:Tr.hovertemplate,hovertemplateLabels:un,eventData:[{data:Tr._input,fullData:Tr,category:Er,count:Rr,probability:Nr,categorycount:Br,colorcount:kr,bandcolorcount:zr}]}}function Dt(jt){if(!jt.parcatsViewModel.dragDimension&&jt.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1){var ar=it.mouse(this)[1];if(ar<-1)return;var sr=jt.parcatsViewModel.graphDiv,Zt=sr._fullLayout,Kt=Zt._paperdiv.node().getBoundingClientRect(),or=jt.parcatsViewModel.hoveron,tr=this;if(or==="color"?(ct(tr),At(tr,"plotly_hover",it.event)):(wt(tr),It(tr,"plotly_hover",it.event)),jt.parcatsViewModel.hoverinfoItems.indexOf("none")===-1){var cr;or==="category"?cr=Ot(sr,Kt,tr):or==="color"?cr=zt(sr,Kt,tr):or==="dimension"&&(cr=Pt(sr,Kt,tr)),cr&&Et.loneHover(cr,{container:Zt._hoverlayer.node(),outerContainer:Zt._paper.node(),gd:sr})}}}function Nt(jt){var ar=jt.parcatsViewModel;if(!ar.dragDimension&&(at(ar.pathSelection),_t(ar.dimensionSelection.selectAll("g.category")),Tt(ar.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),Et.loneUnhover(ar.graphDiv._fullLayout._hoverlayer.node()),ar.pathSelection.sort(ot),ar.hoverinfoItems.indexOf("skip")===-1)){var sr=jt.parcatsViewModel.hoveron,Zt=this;sr==="color"?At(Zt,"plotly_unhover",it.event):It(Zt,"plotly_unhover",it.event)}}function $t(jt){jt.parcatsViewModel.arrangement!=="fixed"&&(jt.dragDimensionDisplayInd=jt.model.displayInd,jt.initialDragDimensionDisplayInds=jt.parcatsViewModel.model.dimensions.map(function(ar){return ar.displayInd}),jt.dragHasMoved=!1,jt.dragCategoryDisplayInd=null,it.select(this).selectAll("g.category").select("rect.catrect").each(function(ar){var sr=it.mouse(this)[0],Zt=it.mouse(this)[1];-2<=sr&&sr<=ar.width+2&&-2<=Zt&&Zt<=ar.height+2&&(jt.dragCategoryDisplayInd=ar.model.displayInd,jt.initialDragCategoryDisplayInds=jt.model.categories.map(function(Kt){return Kt.displayInd}),ar.model.dragY=ar.y,mt.raiseToTop(this.parentNode),it.select(this.parentNode).selectAll("rect.bandrect").each(function(Kt){Kt.yTr.y+Tr.height/2&&(or.model.displayInd=Tr.model.displayInd,Tr.model.displayInd=cr),jt.dragCategoryDisplayInd=or.model.displayInd}if(jt.dragCategoryDisplayInd===null||jt.parcatsViewModel.arrangement==="freeform"){Kt.model.dragX=it.event.x;var Ir=jt.parcatsViewModel.dimensions[sr],Ar=jt.parcatsViewModel.dimensions[Zt];Ir!==void 0&&Kt.model.dragXAr.x&&(Kt.model.displayInd=Ar.model.displayInd,Ar.model.displayInd=jt.dragDimensionDisplayInd),jt.dragDimensionDisplayInd=Kt.model.displayInd}Yt(jt.parcatsViewModel),Jt(jt.parcatsViewModel),qt(jt.parcatsViewModel),Xt(jt.parcatsViewModel)}}function Ht(jt){if(jt.parcatsViewModel.arrangement!=="fixed"&&jt.dragDimensionDisplayInd!==null){it.select(this).selectAll("text").attr("font-weight","normal");var ar={},sr=Vt(jt.parcatsViewModel),Zt=jt.parcatsViewModel.model.dimensions.map(function(Ar){return Ar.displayInd}),Kt=jt.initialDragDimensionDisplayInds.some(function(Ar,_r){return Ar!==Zt[_r]});Kt&&Zt.forEach(function(Ar,_r){var Er=jt.parcatsViewModel.model.dimensions[_r].containerInd;ar["dimensions["+Er+"].displayindex"]=Ar});var or=!1;if(jt.dragCategoryDisplayInd!==null){var tr=jt.model.categories.map(function(Ar){return Ar.displayInd});if(or=jt.initialDragCategoryDisplayInds.some(function(Ar,_r){return Ar!==tr[_r]}),or){var cr=jt.model.categories.slice().sort(function(Ar,_r){return Ar.displayInd-_r.displayInd}),hr=cr.map(function(Ar){return Ar.categoryValue}),br=cr.map(function(Ar){return Ar.categoryLabel});ar["dimensions["+jt.model.containerInd+"].categoryarray"]=[hr],ar["dimensions["+jt.model.containerInd+"].ticktext"]=[br],ar["dimensions["+jt.model.containerInd+"].categoryorder"]="array"}}if(jt.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1&&!jt.dragHasMoved&&jt.potentialClickBand&&(jt.parcatsViewModel.hoveron==="color"?At(jt.potentialClickBand,"plotly_click",it.event.sourceEvent):It(jt.potentialClickBand,"plotly_click",it.event.sourceEvent)),jt.model.dragX=null,jt.dragCategoryDisplayInd!==null){var Tr=jt.parcatsViewModel.dimensions[jt.dragDimensionDisplayInd].categories[jt.dragCategoryDisplayInd];Tr.model.dragY=null,jt.dragCategoryDisplayInd=null}jt.dragDimensionDisplayInd=null,jt.parcatsViewModel.dragDimension=null,jt.dragHasMoved=null,jt.potentialClickBand=null,Yt(jt.parcatsViewModel),Jt(jt.parcatsViewModel);var Ir=it.transition().duration(300).ease("cubic-in-out");Ir.each(function(){qt(jt.parcatsViewModel,!0),Xt(jt.parcatsViewModel,!0)}).each("end",function(){(Kt||or)&&et.restyle(jt.parcatsViewModel.graphDiv,ar,[sr])})}}function Vt(jt){for(var ar,sr=jt.graphDiv._fullData,Zt=0;Zt=0;hr--)br+="C"+tr[hr]+","+(ar[hr+1]+Zt)+" "+or[hr]+","+(ar[hr]+Zt)+" "+(jt[hr]+sr[hr])+","+(ar[hr]+Zt),br+="l-"+sr[hr]+",0 ";return br+="Z",br}function Jt(jt){var ar=jt.dimensions,sr=jt.model,Zt=ar.map(function(Jr){return Jr.categories.map(function(Or){return Or.y})}),Kt=jt.model.dimensions.map(function(Jr){return Jr.categories.map(function(Or){return Or.displayInd})}),or=jt.model.dimensions.map(function(Jr){return Jr.displayInd}),tr=jt.dimensions.map(function(Jr){return Jr.model.dimensionInd}),cr=ar.map(function(Jr){return Jr.x}),hr=ar.map(function(Jr){return Jr.width}),br=[];for(var Tr in sr.paths)sr.paths.hasOwnProperty(Tr)&&br.push(sr.paths[Tr]);function Ir(Jr){var Or=Jr.categoryInds.map(function(jr,Gr){return Kt[Gr][jr]}),Ur=tr.map(function(jr){return Or[jr]});return Ur}br.sort(function(Jr,Or){var Ur=Ir(Jr),jr=Ir(Or);return jt.sortpaths==="backward"&&(Ur.reverse(),jr.reverse()),Ur.push(Jr.valueInds[0]),jr.push(Or.valueInds[0]),jt.bundlecolors&&(Ur.unshift(Jr.rawColor),jr.unshift(Or.rawColor)),Urjr?1:0});for(var Ar=new Array(br.length),_r=ar[0].model.count,Er=ar[0].categories.map(function(Jr){return Jr.height}).reduce(function(Jr,Or){return Jr+Or}),Rr=0;Rr0?Br=Er*(zr.count/_r):Br=0;for(var kr=new Array(Zt.length),Nr=0;Nr1?tr=(jt.width-2*sr-Zt)/(Kt-1):tr=0,cr=sr,hr=cr+tr*or;var br=[],Tr=jt.model.maxCats,Ir=ar.categories.length,Ar=8,_r=ar.count,Er=jt.height-Ar*(Tr-1),Rr,zr,Br,kr,Nr,Qr=(Tr-Ir)*Ar/2,sn=ar.categories.map(function(un){return{displayInd:un.displayInd,categoryInd:un.categoryInd}});for(sn.sort(function(un,qr){return un.displayInd-qr.displayInd}),Nr=0;Nr0?Rr=zr.count/_r*Er:Rr=0,Br={key:zr.valueInds[0],model:zr,width:Zt,height:Rr,y:zr.dragY!==null?zr.dragY:Qr,bands:[],parcatsViewModel:jt},Qr=Qr+Rr+Ar,br.push(Br);return{key:ar.dimensionInd,x:ar.dragX!==null?ar.dragX:hr,y:0,width:Zt,model:ar,categories:br,parcatsViewModel:jt,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}},60268:function(Ct,Rt,o){var it=o(51036);Ct.exports=function(et,Et,mt,ut){var ht=et._fullLayout,j=ht._paper,_=ht._size;it(et,j,Et,{width:_.w,height:_.h,margin:{t:_.t,r:_.r,b:_.b,l:_.l}},mt,ut)}},82296:function(Ct,Rt,o){var it=o(49084),xt=o(94724),et=o(25376),Et=o(86968).u,mt=o(92880).extendFlat,ut=o(31780).templatedArray;Ct.exports={domain:Et({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:et({editType:"plot"}),tickfont:et({editType:"plot"}),rangefont:et({editType:"plot"}),dimensions:ut("dimension",{label:{valType:"string",editType:"plot"},tickvals:mt({},xt.tickvals,{editType:"plot"}),ticktext:mt({},xt.ticktext,{editType:"plot"}),tickformat:mt({},xt.tickformat,{editType:"plot"}),visible:{valType:"boolean",dflt:!0,editType:"plot"},range:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},constraintrange:{valType:"info_array",freeLength:!0,dimensions:"1-2",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},multiselect:{valType:"boolean",dflt:!0,editType:"plot"},values:{valType:"data_array",editType:"calc"},editType:"calc"}),line:mt({editType:"calc"},it("line",{colorscaleDflt:"Viridis",autoColorDflt:!1,editTypeOverride:"calc"})),unselected:{line:{color:{valType:"color",dflt:"#7f7f7f",editType:"plot"},opacity:{valType:"number",min:0,max:1,dflt:"auto",editType:"plot"},editType:"plot"},editType:"plot"}}},71864:function(Ct,Rt,o){var it=o(30140),xt=o(33428),et=o(71688).keyFun,Et=o(71688).repeat,mt=o(3400).sorterAsc,ut=o(3400).strTranslate,ht=it.bar.snapRatio;function j(Ht,Vt){return Ht*(1-ht)+Vt*ht}var _=it.bar.snapClose;function rt(Ht,Vt){return Ht*(1-_)+Vt*_}function tt(Ht,Vt,Xt,qt){if(st(Xt,qt))return Xt;var er=Ht?-1:1,lr=0,Jt=Vt.length-1;if(er<0){var Yt=lr;lr=Jt,Jt=Yt}for(var rr=Vt[lr],jt=rr,ar=lr;er*ar=Vt[Xt][0]&&Ht<=Vt[Xt][1])return!0;return!1}function ot(Ht){Ht.attr("x",-it.bar.captureWidth/2).attr("width",it.bar.captureWidth)}function nt(Ht){Ht.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function vt(Ht){if(!Ht.brush.filterSpecified)return"0,"+Ht.height;for(var Vt=dt(Ht.brush.filter.getConsolidated(),Ht.height),Xt=[0],qt,er,lr,Jt=Vt.length?Vt[0][0]:null,Yt=0;YtHt[1]+Xt||Vt=.9*Ht[1]+.1*Ht[0]?"n":Vt<=.9*Ht[0]+.1*Ht[1]?"s":"ns"}function ft(){xt.select(document.body).style("cursor",null)}function at(Ht){Ht.attr("stroke-dasharray",vt)}function yt(Ht,Vt){var Xt=xt.select(Ht).selectAll(".highlight, .highlight-shadow"),qt=Vt?Xt.transition().duration(it.bar.snapDuration).each("end",Vt):Xt;at(qt)}function St(Ht,Vt){var Xt=Ht.brush,qt=Xt.filterSpecified,er=NaN,lr={},Jt;if(qt){var Yt=Ht.height,rr=Xt.filter.getConsolidated(),jt=dt(rr,Yt),ar=NaN,sr=NaN,Zt=NaN;for(Jt=0;Jt<=jt.length;Jt++){var Kt=jt[Jt];if(Kt&&Kt[0]<=Vt&&Vt<=Kt[1]){ar=Jt;break}else if(sr=Jt?Jt-1:NaN,Kt&&Kt[0]>Vt){Zt=Jt;break}}if(er=ar,isNaN(er)&&(isNaN(sr)||isNaN(Zt)?er=isNaN(sr)?Zt:sr:er=Vt-jt[sr][1]=br[0]&&hr<=br[1]){lr.clickableOrdinalRange=br;break}}}return lr}function _t(Ht,Vt){xt.event.sourceEvent.stopPropagation();var Xt=Vt.height-xt.mouse(Ht)[1]-2*it.verticalPadding,qt=Vt.unitToPaddedPx.invert(Xt),er=Vt.brush,lr=St(Vt,Xt),Jt=lr.interval,Yt=er.svgBrush;if(Yt.wasDragged=!1,Yt.grabbingBar=lr.region==="ns",Yt.grabbingBar){var rr=Jt.map(Vt.unitToPaddedPx);Yt.grabPoint=Xt-rr[0]-it.verticalPadding,Yt.barLength=rr[1]-rr[0]}Yt.clickableOrdinalRange=lr.clickableOrdinalRange,Yt.stayingIntervals=Vt.multiselect&&er.filterSpecified?er.filter.getConsolidated():[],Jt&&(Yt.stayingIntervals=Yt.stayingIntervals.filter(function(jt){return jt[0]!==Jt[0]&&jt[1]!==Jt[1]})),Yt.startExtent=lr.region?Jt[lr.region==="s"?1:0]:qt,Vt.parent.inBrushDrag=!0,Yt.brushStartCallback()}function Mt(Ht,Vt){xt.event.sourceEvent.stopPropagation();var Xt=Vt.height-xt.mouse(Ht)[1]-2*it.verticalPadding,qt=Vt.brush.svgBrush;qt.wasDragged=!0,qt._dragging=!0,qt.grabbingBar?qt.newExtent=[Xt-qt.grabPoint,Xt+qt.barLength-qt.grabPoint].map(Vt.unitToPaddedPx.invert):qt.newExtent=[qt.startExtent,Vt.unitToPaddedPx.invert(Xt)].sort(mt),Vt.brush.filterSpecified=!0,qt.extent=qt.stayingIntervals.concat([qt.newExtent]),qt.brushCallback(Vt),yt(Ht.parentNode)}function Tt(Ht,Vt){var Xt=Vt.brush,qt=Xt.filter,er=Xt.svgBrush;er._dragging||(kt(Ht,Vt),Mt(Ht,Vt),Vt.brush.svgBrush.wasDragged=!1),er._dragging=!1;var lr=xt.event;lr.sourceEvent.stopPropagation();var Jt=er.grabbingBar;if(er.grabbingBar=!1,er.grabLocation=void 0,Vt.parent.inBrushDrag=!1,ft(),!er.wasDragged){er.wasDragged=void 0,er.clickableOrdinalRange?Xt.filterSpecified&&Vt.multiselect?er.extent.push(er.clickableOrdinalRange):(er.extent=[er.clickableOrdinalRange],Xt.filterSpecified=!0):Jt?(er.extent=er.stayingIntervals,er.extent.length===0&&Pt(Xt)):Pt(Xt),er.brushCallback(Vt),yt(Ht.parentNode),er.brushEndCallback(Xt.filterSpecified?qt.getConsolidated():[]);return}var Yt=function(){qt.set(qt.getConsolidated())};if(Vt.ordinal){var rr=Vt.unitTickvals;rr[rr.length-1]er.newExtent[0];er.extent=er.stayingIntervals.concat(jt?[er.newExtent]:[]),er.extent.length||Pt(Xt),er.brushCallback(Vt),jt?yt(Ht.parentNode,Yt):(Yt(),yt(Ht.parentNode))}else Yt();er.brushEndCallback(Xt.filterSpecified?qt.getConsolidated():[])}function kt(Ht,Vt){var Xt=Vt.height-xt.mouse(Ht)[1]-2*it.verticalPadding,qt=St(Vt,Xt),er="crosshair";qt.clickableOrdinalRange?er="pointer":qt.region&&(er=qt.region+"-resize"),xt.select(document.body).style("cursor",er)}function wt(Ht){Ht.on("mousemove",function(Vt){xt.event.preventDefault(),Vt.parent.inBrushDrag||kt(this,Vt)}).on("mouseleave",function(Vt){Vt.parent.inBrushDrag||ft()}).call(xt.behavior.drag().on("dragstart",function(Vt){_t(this,Vt)}).on("drag",function(Vt){Mt(this,Vt)}).on("dragend",function(Vt){Tt(this,Vt)}))}function ct(Ht,Vt){return Ht[0]-Vt[0]}function It(Ht,Vt,Xt){var qt=Xt._context.staticPlot,er=Ht.selectAll(".background").data(Et);er.enter().append("rect").classed("background",!0).call(ot).call(nt).style("pointer-events",qt?"none":"auto").attr("transform",ut(0,it.verticalPadding)),er.call(wt).attr("height",function(Yt){return Yt.height-it.verticalPadding});var lr=Ht.selectAll(".highlight-shadow").data(Et);lr.enter().append("line").classed("highlight-shadow",!0).attr("x",-it.bar.width/2).attr("stroke-width",it.bar.width+it.bar.strokeWidth).attr("stroke",Vt).attr("opacity",it.bar.strokeOpacity).attr("stroke-linecap","butt"),lr.attr("y1",function(Yt){return Yt.height}).call(at);var Jt=Ht.selectAll(".highlight").data(Et);Jt.enter().append("line").classed("highlight",!0).attr("x",-it.bar.width/2).attr("stroke-width",it.bar.width-it.bar.strokeWidth).attr("stroke",it.bar.fillColor).attr("opacity",it.bar.fillOpacity).attr("stroke-linecap","butt"),Jt.attr("y1",function(Yt){return Yt.height}).call(at)}function At(Ht,Vt,Xt){var qt=Ht.selectAll("."+it.cn.axisBrush).data(Et,et);qt.enter().append("g").classed(it.cn.axisBrush,!0),It(qt,Vt,Xt)}function Ot(Ht){return Ht.svgBrush.extent.map(function(Vt){return Vt.slice()})}function Pt(Ht){Ht.filterSpecified=!1,Ht.svgBrush.extent=[[-1/0,1/0]]}function zt(Ht){return function(Xt){var qt=Xt.brush,er=Ot(qt),lr=er.slice();qt.filter.set(lr),Ht()}}function Dt(Ht){for(var Vt=Ht.slice(),Xt=[],qt,er=Vt.shift();er;){for(qt=er.slice();(er=Vt.shift())&&er[0]<=qt[1];)qt[1]=Math.max(qt[1],er[1]);Xt.push(qt)}return Xt.length===1&&Xt[0][0]>Xt[0][1]&&(Xt=[]),Xt}function Nt(){var Ht=[],Vt,Xt;return{set:function(qt){Ht=qt.map(function(er){return er.slice().sort(mt)}).sort(ct),Ht.length===1&&Ht[0][0]===-1/0&&Ht[0][1]===1/0&&(Ht=[[0,-1]]),Vt=Dt(Ht),Xt=Ht.reduce(function(er,lr){return[Math.min(er[0],lr[0]),Math.max(er[1],lr[1])]},[1/0,-1/0])},get:function(){return Ht.slice()},getConsolidated:function(){return Vt},getBounds:function(){return Xt}}}function $t(Ht,Vt,Xt,qt,er,lr){var Jt=Nt();return Jt.set(Xt),{filter:Jt,filterSpecified:Vt,svgBrush:{extent:[],brushStartCallback:qt,brushCallback:zt(er),brushEndCallback:lr}}}function Ut(Ht,Vt){if(Array.isArray(Ht[0])?(Ht=Ht.map(function(qt){return qt.sort(mt)}),Vt.multiselect?Ht=Dt(Ht.sort(ct)):Ht=[Ht[0]]):Ht=[Ht.sort(mt)],Vt.tickvals){var Xt=Vt.tickvals.slice().sort(mt);if(Ht=Ht.map(function(qt){var er=[tt(0,Xt,qt[0],[]),tt(1,Xt,qt[1],[])];if(er[1]>er[0])return er}).filter(function(qt){return qt}),!Ht.length)return}return Ht.length>1?Ht:Ht[0]}Ct.exports={makeBrush:$t,ensureAxisBrush:At,cleanRanges:Ut}},61664:function(Ct,Rt,o){Ct.exports={attributes:o(82296),supplyDefaults:o(60664),calc:o(95044),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:o(19976),categories:["gl","regl","noOpacity","noHover"],meta:{}}},19976:function(Ct,Rt,o){var it=o(33428),xt=o(84888)._M,et=o(24196),Et=o(9616);Rt.name="parcoords",Rt.plot=function(mt){var ut=xt(mt.calcdata,"parcoords")[0];ut.length&&et(mt,ut)},Rt.clean=function(mt,ut,ht,j){var _=j._has&&j._has("parcoords"),rt=ut._has&&ut._has("parcoords");_&&!rt&&(j._paperdiv.selectAll(".parcoords").remove(),j._glimages.selectAll("*").remove())},Rt.toSVG=function(mt){var ut=mt._fullLayout._glimages,ht=it.select(mt).selectAll(".svg-container"),j=ht.filter(function(rt,tt){return tt===ht.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function _(){var rt=this,tt=rt.toDataURL("image/png"),st=ut.append("svg:image");st.attr({xmlns:Et.svg,"xlink:href":tt,preserveAspectRatio:"none",x:0,y:0,width:rt.style.width,height:rt.style.height})}j.each(_),window.setTimeout(function(){it.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}},95044:function(Ct,Rt,o){var it=o(3400).isArrayOrTypedArray,xt=o(8932),et=o(71688).wrap;Ct.exports=function(ut,ht){var j,_;return xt.hasColorscale(ht,"line")&&it(ht.line.color)?(j=ht.line.color,_=xt.extractOpts(ht.line).colorscale,xt.calc(ut,ht,{vals:j,containerStr:"line",cLetter:"c"})):(j=Et(ht._length),_=[[0,ht.line.color],[1,ht.line.color]]),et({lineColor:j,cscale:_})};function Et(mt){for(var ut=new Array(mt),ht=0;ht_&&(it.log("parcoords traces support up to "+_+" dimensions at the moment"),at.splice(_));var yt=mt(nt,vt,{name:"dimensions",layout:bt,handleItemDefaults:st}),St=tt(nt,vt,dt,bt,ft);Et(vt,bt,ft),(!Array.isArray(yt)||!yt.length)&&(vt.visible=!1),rt(vt,yt,"values",St);var _t={weight:bt.font.weight,style:bt.font.style,variant:bt.font.variant,family:bt.font.family,size:Math.round(bt.font.size/1.2),color:bt.font.color};it.coerceFont(ft,"labelfont",_t),it.coerceFont(ft,"tickfont",_t),it.coerceFont(ft,"rangefont",_t),ft("labelangle"),ft("labelside"),ft("unselected.line.color"),ft("unselected.line.opacity")}},95724:function(Ct,Rt,o){var it=o(3400).isTypedArray;Rt.convertTypedArray=function(xt){return it(xt)?Array.prototype.slice.call(xt):xt},Rt.isOrdinal=function(xt){return!!xt.tickvals},Rt.isVisible=function(xt){return xt.visible||!("visible"in xt)}},29928:function(Ct,Rt,o){var it=o(61664);it.plot=o(24196),Ct.exports=it},51352:function(Ct,Rt,o){var it=["precision highp float;","","varying vec4 fragColor;","","attribute vec4 p01_04, p05_08, p09_12, p13_16,"," p17_20, p21_24, p25_28, p29_32,"," p33_36, p37_40, p41_44, p45_48,"," p49_52, p53_56, p57_60, colors;","","uniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,"," loA, hiA, loB, hiB, loC, hiC, loD, hiD;","","uniform vec2 resolution, viewBoxPos, viewBoxSize;","uniform float maskHeight;","uniform float drwLayer; // 0: context, 1: focus, 2: pick","uniform vec4 contextColor;","uniform sampler2D maskTexture, palette;","","bool isPick = (drwLayer > 1.5);","bool isContext = (drwLayer < 0.5);","","const vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);","const vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);","","float val(mat4 p, mat4 v) {"," return dot(matrixCompMult(p, v) * UNITS, UNITS);","}","","float axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {"," float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);"," float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);"," return y1 * (1.0 - ratio) + y2 * ratio;","}","","int iMod(int a, int b) {"," return a - b * (a / b);","}","","bool fOutside(float p, float lo, float hi) {"," return (lo < hi) && (lo > p || p > hi);","}","","bool vOutside(vec4 p, vec4 lo, vec4 hi) {"," return ("," fOutside(p[0], lo[0], hi[0]) ||"," fOutside(p[1], lo[1], hi[1]) ||"," fOutside(p[2], lo[2], hi[2]) ||"," fOutside(p[3], lo[3], hi[3])"," );","}","","bool mOutside(mat4 p, mat4 lo, mat4 hi) {"," return ("," vOutside(p[0], lo[0], hi[0]) ||"," vOutside(p[1], lo[1], hi[1]) ||"," vOutside(p[2], lo[2], hi[2]) ||"," vOutside(p[3], lo[3], hi[3])"," );","}","","bool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {"," return mOutside(A, loA, hiA) ||"," mOutside(B, loB, hiB) ||"," mOutside(C, loC, hiC) ||"," mOutside(D, loD, hiD);","}","","bool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {"," mat4 pnts[4];"," pnts[0] = A;"," pnts[1] = B;"," pnts[2] = C;"," pnts[3] = D;",""," for(int i = 0; i < 4; ++i) {"," for(int j = 0; j < 4; ++j) {"," for(int k = 0; k < 4; ++k) {"," if(0 == iMod("," int(255.0 * texture2D(maskTexture,"," vec2("," (float(i * 2 + j / 2) + 0.5) / 8.0,"," (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight"," ))[3]"," ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),"," 2"," )) return true;"," }"," }"," }"," return false;","}","","vec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {"," float x = 0.5 * sign(v) + 0.5;"," float y = axisY(x, A, B, C, D);"," float z = 1.0 - abs(v);",""," z += isContext ? 0.0 : 2.0 * float("," outsideBoundingBox(A, B, C, D) ||"," outsideRasterMask(A, B, C, D)"," );",""," return vec4("," 2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,"," z,"," 1.0"," );","}","","void main() {"," mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);"," mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);"," mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);"," mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);",""," float v = colors[3];",""," gl_Position = position(isContext, v, A, B, C, D);",""," fragColor ="," isContext ? vec4(contextColor) :"," isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));","}"].join(` +`),mapOnErrorMsg:"Mapbox error.",mapboxLogo:{path0:"m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z",path1:"M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z",path2:"M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z",polygon:"11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34"},styleRules:{map:"overflow:hidden;position:relative;","missing-css":"display:none;",canary:"background-color:salmon;","ctrl-bottom-left":"position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;","ctrl-bottom-right":"position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;",ctrl:"clear: both; pointer-events: auto; transform: translate(0, 0);","ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner":"display: none;","ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner":"display: block; margin-top:2px","ctrl-attrib.mapboxgl-compact:hover":"padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;","ctrl-attrib.mapboxgl-compact::after":`content: ""; cursor: pointer; position: absolute; background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E %3Cpath fill="%23333333" fill-rule="evenodd" d="M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0"/%3E %3C/svg%3E'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;`,"ctrl-attrib.mapboxgl-compact":"min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;","ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":`display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')`}}},89032:function(Ct,Rt,o){var it=o(3400);Ct.exports=function(et,Tt){var yt=et.split(" "),ut=yt[0],ht=yt[1],j=it.isArrayOrTypedArray(Tt)?it.mean(Tt):Tt,_=.5+j/100,rt=1.5+j/100,tt=["",""],st=[0,0];switch(ut){case"top":tt[0]="top",st[1]=-rt;break;case"bottom":tt[0]="bottom",st[1]=rt;break}switch(ht){case"left":tt[1]="right",st[0]=-_;break;case"right":tt[1]="left",st[0]=_;break}var ot;return tt[0]&&tt[1]?ot=tt.join("-"):tt[0]?ot=tt[0]:tt[1]?ot=tt[1]:ot="center",{anchor:ot,offset:st}}},33688:function(Ct,Rt,o){var it=o(3480),xt=o(3400),et=xt.strTranslate,Tt=xt.strScale,yt=o(84888).KY,ut=o(9616),ht=o(33428),j=o(43616),_=o(72736),rt=o(14440),tt="mapbox",st=Rt.constants=o(47552);Rt.name=tt,Rt.attr="subplot",Rt.idRoot=tt,Rt.idRegex=Rt.attrRegex=xt.counterRegex(tt),Rt.attributes={subplot:{valType:"subplotid",dflt:"mapbox",editType:"calc"}},Rt.layoutAttributes=o(5232),Rt.supplyLayoutDefaults=o(5976),Rt.plot=function(dt){var bt=dt._fullLayout,ft=dt.calcdata,at=bt._subplots[tt];if(it.version!==st.requiredVersion)throw new Error(st.wrongVersionErrorMsg);var mt=ot(dt,at);it.accessToken=mt;for(var St=0;Stzt/2){var Dt=It.split("|").join("
");Ot.text(Dt).attr("data-unformatted",Dt).call(_.convertToTspans,vt),Pt=j.bBox(Ot.node())}Ot.attr("transform",et(-3,-Pt.height+8)),At.insert("rect",".static-attribution").attr({x:-Pt.width-6,y:-Pt.height-3,width:Pt.width+6,height:Pt.height+3,fill:"rgba(255, 255, 255, 0.75)"});var Nt=1;Pt.width+6>zt&&(Nt=zt/(Pt.width+6));var $t=[ft.l+ft.w*St.x[1],ft.t+ft.h*(1-St.y[0])];At.attr("transform",et($t[0],$t[1])+Tt(Nt))}};function ot(vt,dt){var bt=vt._fullLayout,ft=vt._context;if(ft.mapboxAccessToken==="")return"";for(var at=[],mt=[],St=!1,_t=!1,Mt=0;Mt1&&xt.warn(st.multipleTokensErrorMsg),at[0]):(mt.length&&xt.log(["Listed mapbox access token(s)",mt.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}function nt(vt){return typeof vt=="string"&&(st.styleValuesMapbox.indexOf(vt)!==-1||vt.indexOf("mapbox://")===0||vt.indexOf("stamen")===0)}Rt.updateFx=function(vt){for(var dt=vt._fullLayout,bt=dt._subplots[tt],ft=0;ft0){for(var st=0;st0}function j(rt){var tt={},st={};switch(rt.type){case"circle":it.extendFlat(st,{"circle-radius":rt.circle.radius,"circle-color":rt.color,"circle-opacity":rt.opacity});break;case"line":it.extendFlat(st,{"line-width":rt.line.width,"line-color":rt.color,"line-opacity":rt.opacity,"line-dasharray":rt.line.dash});break;case"fill":it.extendFlat(st,{"fill-color":rt.color,"fill-outline-color":rt.fill.outlinecolor,"fill-opacity":rt.opacity});break;case"symbol":var ot=rt.symbol,nt=et(ot.textposition,ot.iconsize);it.extendFlat(tt,{"icon-image":ot.icon+"-15","icon-size":ot.iconsize/10,"text-field":ot.text,"text-size":ot.textfont.size,"text-anchor":nt.anchor,"text-offset":nt.offset,"symbol-placement":ot.placement}),it.extendFlat(st,{"icon-color":rt.color,"text-color":ot.textfont.color,"text-opacity":rt.opacity});break;case"raster":it.extendFlat(st,{"raster-fade-duration":0,"raster-opacity":rt.opacity});break}return{layout:tt,paint:st}}function _(rt){var tt=rt.sourcetype,st=rt.source,ot={type:tt},nt;return tt==="geojson"?nt="data":tt==="vector"?nt=typeof st=="string"?"url":"tiles":tt==="raster"?(nt="tiles",ot.tileSize=256):tt==="image"&&(nt="url",ot.coordinates=rt.coordinates),ot[nt]=st,rt.sourceattribution&&(ot.attribution=xt(rt.sourceattribution)),ot}Ct.exports=function(tt,st,ot){var nt=new yt(tt,st);return nt.update(ot),nt}},5232:function(Ct,Rt,o){var it=o(3400),xt=o(76308).defaultLine,et=o(86968).u,Tt=o(25376),yt=o(52904).textposition,ut=o(67824).overrideAll,ht=o(31780).templatedArray,j=o(47552),_=Tt({noFontVariant:!0});_.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var rt=Ct.exports=ut({_arrayAttrRegexps:[it.counterRegex("mapbox",".layers",!0)],domain:et({name:"mapbox"}),accesstoken:{valType:"string",noBlank:!0,strict:!0},style:{valType:"any",values:j.styleValuesMapbox.concat(j.styleValuesNonMapbox),dflt:j.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:ht("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:xt},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:xt}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:_,textposition:it.extendFlat({},yt,{arrayOk:!1})}})},"plot","from-root");rt.uirevision={valType:"any",editType:"none"}},5976:function(Ct,Rt,o){var it=o(3400),xt=o(168),et=o(51272),Tt=o(5232);Ct.exports=function(j,_,rt){xt(j,_,rt,{type:"mapbox",attributes:Tt,handleDefaults:yt,partition:"y",accessToken:_._mapboxAccessToken})};function yt(ht,j,_,rt){_("accesstoken",rt.accessToken),_("style"),_("center.lon"),_("center.lat"),_("zoom"),_("bearing"),_("pitch");var tt=_("bounds.west"),st=_("bounds.east"),ot=_("bounds.south"),nt=_("bounds.north");(tt===void 0||st===void 0||ot===void 0||nt===void 0)&&delete j.bounds,et(ht,j,{name:"layers",handleItemDefaults:ut}),j._input=ht}function ut(ht,j){function _(vt,dt){return it.coerce(ht,j,Tt.layers,vt,dt)}var rt=_("visible");if(rt){var tt=_("sourcetype"),st=tt==="raster"||tt==="image";_("source"),_("sourceattribution"),tt==="vector"&&_("sourcelayer"),tt==="image"&&_("coordinates");var ot;st&&(ot="raster");var nt=_("type",ot);st&&nt!=="raster"&&(nt=j.type="raster",it.log("Source types *raster* and *image* must drawn *raster* layer type.")),_("below"),_("color"),_("opacity"),_("minzoom"),_("maxzoom"),nt==="circle"&&_("circle.radius"),nt==="line"&&(_("line.width"),_("line.dash")),nt==="fill"&&_("fill.outlinecolor"),nt==="symbol"&&(_("symbol.icon"),_("symbol.iconsize"),_("symbol.text"),it.coerceFont(_,"symbol.textfont",void 0,{noFontVariant:!0}),_("symbol.textposition"),_("symbol.placement"))}}},14440:function(Ct,Rt,o){var it=o(3480),xt=o(3400),et=o(27144),Tt=o(24040),yt=o(54460),ut=o(86476),ht=o(93024),j=o(72760),_=j.drawMode,rt=j.selectMode,tt=o(22676).prepSelect,st=o(22676).clearOutline,ot=o(22676).clearSelectionsCache,nt=o(22676).selectOnClick,vt=o(47552),dt=o(22360);function bt(Mt,Et){this.id=Et,this.gd=Mt;var kt=Mt._fullLayout,wt=Mt._context;this.container=kt._glcontainer.node(),this.isStatic=wt.staticPlot,this.uid=kt._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(kt),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var ft=bt.prototype;ft.plot=function(Mt,Et,kt){var wt=this,ct=Et[wt.id];wt.map&&ct.accesstoken!==wt.accessToken&&(wt.map.remove(),wt.map=null,wt.styleObj=null,wt.traceHash={},wt.layerList=[]);var It;wt.map?It=new Promise(function(At,Ot){wt.updateMap(Mt,Et,At,Ot)}):It=new Promise(function(At,Ot){wt.createMap(Mt,Et,At,Ot)}),kt.push(It)},ft.createMap=function(Mt,Et,kt,wt){var ct=this,It=Et[ct.id],At=ct.styleObj=mt(It.style,Et);ct.accessToken=It.accesstoken;var Ot=It.bounds,Pt=Ot?[[Ot.west,Ot.south],[Ot.east,Ot.north]]:null,zt=ct.map=new it.Map({container:ct.div,style:At.style,center:_t(It.center),zoom:It.zoom,bearing:It.bearing,pitch:It.pitch,maxBounds:Pt,interactive:!ct.isStatic,preserveDrawingBuffer:ct.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new it.AttributionControl({compact:!0}));zt._canvas.style.left="0px",zt._canvas.style.top="0px",ct.rejectOnError(wt),ct.isStatic||ct.initFx(Mt,Et);var Dt=[];Dt.push(new Promise(function(Nt){zt.once("load",Nt)})),Dt=Dt.concat(et.fetchTraceGeoData(Mt)),Promise.all(Dt).then(function(){ct.fillBelowLookup(Mt,Et),ct.updateData(Mt),ct.updateLayout(Et),ct.resolveOnRender(kt)}).catch(wt)},ft.updateMap=function(Mt,Et,kt,wt){var ct=this,It=ct.map,At=Et[this.id];ct.rejectOnError(wt);var Ot=[],Pt=mt(At.style,Et);JSON.stringify(ct.styleObj)!==JSON.stringify(Pt)&&(ct.styleObj=Pt,It.setStyle(Pt.style),ct.traceHash={},Ot.push(new Promise(function(zt){It.once("styledata",zt)}))),Ot=Ot.concat(et.fetchTraceGeoData(Mt)),Promise.all(Ot).then(function(){ct.fillBelowLookup(Mt,Et),ct.updateData(Mt),ct.updateLayout(Et),ct.resolveOnRender(kt)}).catch(wt)},ft.fillBelowLookup=function(Mt,Et){var kt=Et[this.id],wt=kt.layers,ct,It,At=this.belowLookup={},Ot=!1;for(ct=0;ct1)for(ct=0;ct-1&&nt(Pt.originalEvent,wt,[kt.xaxis],[kt.yaxis],kt.id,Ot),zt.indexOf("event")>-1&&ht.click(wt,Pt.originalEvent)}}},ft.updateFx=function(Mt){var Et=this,kt=Et.map,wt=Et.gd;if(Et.isStatic)return;function ct(Pt){var zt=Et.map.unproject(Pt);return[zt.lng,zt.lat]}var It=Mt.dragmode,At;At=function(Pt,zt){if(zt.isRect){var Dt=Pt.range={};Dt[Et.id]=[ct([zt.xmin,zt.ymin]),ct([zt.xmax,zt.ymax])]}else{var Nt=Pt.lassoPoints={};Nt[Et.id]=zt.map(ct)}};var Ot=Et.dragOptions;Et.dragOptions=xt.extendDeep(Ot||{},{dragmode:Mt.dragmode,element:Et.div,gd:wt,plotinfo:{id:Et.id,domain:Mt[Et.id].domain,xaxis:Et.xaxis,yaxis:Et.yaxis,fillRangeItems:At},xaxes:[Et.xaxis],yaxes:[Et.yaxis],subplot:Et.id}),kt.off("click",Et.onClickInPanHandler),rt(It)||_(It)?(kt.dragPan.disable(),kt.on("zoomstart",Et.clearOutline),Et.dragOptions.prepFn=function(Pt,zt,Dt){tt(Pt,zt,Dt,Et.dragOptions,It)},ut.init(Et.dragOptions)):(kt.dragPan.enable(),kt.off("zoomstart",Et.clearOutline),Et.div.onmousedown=null,Et.div.ontouchstart=null,Et.div.removeEventListener("touchstart",Et.div._ontouchstart),Et.onClickInPanHandler=Et.onClickInPanFn(Et.dragOptions),kt.on("click",Et.onClickInPanHandler))},ft.updateFramework=function(Mt){var Et=Mt[this.id].domain,kt=Mt._size,wt=this.div.style;wt.width=kt.w*(Et.x[1]-Et.x[0])+"px",wt.height=kt.h*(Et.y[1]-Et.y[0])+"px",wt.left=kt.l+Et.x[0]*kt.w+"px",wt.top=kt.t+(1-Et.y[1])*kt.h+"px",this.xaxis._offset=kt.l+Et.x[0]*kt.w,this.xaxis._length=kt.w*(Et.x[1]-Et.x[0]),this.yaxis._offset=kt.t+(1-Et.y[1])*kt.h,this.yaxis._length=kt.h*(Et.y[1]-Et.y[0])},ft.updateLayers=function(Mt){var Et=Mt[this.id],kt=Et.layers,wt=this.layerList,ct;if(kt.length!==wt.length){for(ct=0;ct=ar.width-20?(Kt["text-anchor"]="start",Kt.x=5):(Kt["text-anchor"]="end",Kt.x=ar._paper.attr("width")-7),sr.attr(Kt);var or=sr.select(".js-link-to-tool"),tr=sr.select(".js-link-spacer"),cr=sr.select(".js-sourcelinks");jt._context.showSources&&jt._context.showSources(jt),jt._context.showLink&&Mt(jt,or),tr.text(or.text()&&cr.text()?" - ":"")}};function Mt(jt,ar){ar.text("");var sr=ar.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(jt._context.linkText+" "+String.fromCharCode(187));if(jt._context.sendData)sr.on("click",function(){mt.sendDataToCloud(jt)});else{var Zt=window.location.pathname.split("/"),Kt=window.location.search;sr.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+Zt[2].split(".")[0]+"/"+Zt[1]+Kt})}}mt.sendDataToCloud=function(jt){var ar=(window.PLOTLYENV||{}).BASE_URL||jt._context.plotlyServerURL;if(ar){jt.emit("plotly_beforeexport");var sr=it.select(jt).append("div").attr("id","hiddenform").style("display","none"),Zt=sr.append("form").attr({action:ar+"/external",method:"post",target:"_blank"}),Kt=Zt.append("input").attr({type:"text",name:"data"});return Kt.node().value=mt.graphJson(jt,!1,"keepdata"),Zt.node().submit(),sr.remove(),jt.emit("plotly_afterexport"),!1}};var Et=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],kt=["year","month","dayMonth","dayMonthYear"];mt.supplyDefaults=function(jt,ar){var sr=ar&&ar.skipUpdateCalc,Zt=jt._fullLayout||{};if(Zt._skipDefaults){delete Zt._skipDefaults;return}var Kt=jt._fullLayout={},or=jt.layout||{},tr=jt._fullData||[],cr=jt._fullData=[],mr=jt.data||[],Ar=jt.calcdata||[],br=jt._context||{},Ir;jt._transitionData||mt.createTransitionData(jt),Kt._dfltTitle={plot:at(jt,"Click to enter Plot title"),x:at(jt,"Click to enter X axis title"),y:at(jt,"Click to enter Y axis title"),colorbar:at(jt,"Click to enter Colorscale title"),annotation:at(jt,"new text")},Kt._traceWord=at(jt,"trace");var Tr=It(jt,Et);if(Kt._mapboxAccessToken=br.mapboxAccessToken,Zt._initialAutoSizeIsDone){var _r=Zt.width,Er=Zt.height;mt.supplyLayoutGlobalDefaults(or,Kt,Tr),or.width||(Kt.width=_r),or.height||(Kt.height=Er),mt.sanitizeMargins(Kt)}else{mt.supplyLayoutGlobalDefaults(or,Kt,Tr);var Rr=!or.width||!or.height,zr=Kt.autosize,Or=br.autosizable,kr=Rr&&(zr||Or);kr?mt.plotAutoSize(jt,or,Kt):Rr&&mt.sanitizeMargins(Kt),!zr&&Rr&&(or.width=Kt.width,or.height=Kt.height)}Kt._d3locale=At(Tr,Kt.separators),Kt._extraFormat=It(jt,kt),Kt._initialAutoSizeIsDone=!0,Kt._dataLength=mr.length,Kt._modules=[],Kt._visibleModules=[],Kt._basePlotModules=[];var Nr=Kt._subplots=ct(),Qr=Kt._splomAxes={x:{},y:{}},sn=Kt._splomSubplots={};Kt._splomGridDflt={},Kt._scatterStackOpts={},Kt._firstScatter={},Kt._alignmentOpts={},Kt._colorAxes={},Kt._requestRangeslider={},Kt._traceUids=wt(tr,mr),Kt._globalTransforms=(jt._context||{}).globalTransforms,mt.supplyDataDefaults(mr,cr,or,Kt);var un=Object.keys(Qr.x),en=Object.keys(Qr.y);if(un.length>1&&en.length>1){for(ut.getComponentMethod("grid","sizeDefaults")(or,Kt),Ir=0;Ir15&&en.length>15&&Kt.shapes.length===0&&Kt.images.length===0,mt.linkSubplots(cr,Kt,tr,Zt),mt.cleanPlot(cr,Kt,tr,Zt);var Tn=!!(Zt._has&&Zt._has("gl2d")),Zr=!!(Kt._has&&Kt._has("gl2d")),Fr=!!(Zt._has&&Zt._has("cartesian")),Ur=!!(Kt._has&&Kt._has("cartesian")),Wr=Fr||Tn,Gr=Ur||Zr;Wr&&!Gr?Zt._bgLayer.remove():Gr&&!Wr&&(Kt._shouldCreateBgLayer=!0),Zt._zoomlayer&&!jt._dragging&&ot({_fullLayout:Zt}),Ot(cr,Kt),ft(Kt,Zt),ut.getComponentMethod("colorscale","crossTraceDefaults")(cr,Kt),Kt._preGUI||(Kt._preGUI={}),Kt._tracePreGUI||(Kt._tracePreGUI={});var wr=Kt._tracePreGUI,pr={},Dr;for(Dr in wr)pr[Dr]="old";for(Ir=0;Ir0){var br=1-2*or;tr=Math.round(br*tr),cr=Math.round(br*cr)}}var Ir=mt.layoutAttributes.width.min,Tr=mt.layoutAttributes.height.min;tr1,Er=!sr.height&&Math.abs(Zt.height-cr)>1;(Er||_r)&&(_r&&(Zt.width=tr),Er&&(Zt.height=cr)),ar._initialAutoSize||(ar._initialAutoSize={width:tr,height:cr}),mt.sanitizeMargins(Zt)},mt.supplyLayoutModuleDefaults=function(jt,ar,sr,Zt){var Kt=ut.componentsRegistry,or=ar._basePlotModules,tr,cr,mr,Ar=ut.subplotsRegistry.cartesian;for(tr in Kt)mr=Kt[tr],mr.includeBasePlot&&mr.includeBasePlot(jt,ar);or.length||or.push(Ar),ar._has("cartesian")&&(ut.getComponentMethod("grid","contentDefaults")(jt,ar),Ar.finalizeSubplots(jt,ar));for(var br in ar._subplots)ar._subplots[br].sort(_.subplotSort);for(cr=0;cr1&&(sr.l/=zr,sr.r/=zr)}if(Tr){var Or=(sr.t+sr.b)/Tr;Or>1&&(sr.t/=Or,sr.b/=Or)}var kr=sr.xl!==void 0?sr.xl:sr.x,Nr=sr.xr!==void 0?sr.xr:sr.x,Qr=sr.yt!==void 0?sr.yt:sr.y,sn=sr.yb!==void 0?sr.yb:sr.y;_r[ar]={l:{val:kr,size:sr.l+Rr},r:{val:Nr,size:sr.r+Rr},b:{val:sn,size:sr.b+Rr},t:{val:Qr,size:sr.t+Rr}},Er[ar]=1}if(!Zt._replotting)return mt.doAutoMargin(jt)}};function Vt(jt){if("_redrawFromAutoMarginCount"in jt._fullLayout)return!1;var ar=st.list(jt,"",!0);for(var sr in ar)if(ar[sr].autoshift||ar[sr].shift)return!0;return!1}mt.doAutoMargin=function(jt){var ar=jt._fullLayout,sr=ar.width,Zt=ar.height;ar._size||(ar._size={}),$t(ar);var Kt=ar._size,or=ar.margin,tr={t:0,b:0,l:0,r:0},cr=_.extendFlat({},Kt),mr=or.l,Ar=or.r,br=or.t,Ir=or.b,Tr=ar._pushmargin,_r=ar._pushmarginIds,Er=ar.minreducedwidth,Rr=ar.minreducedheight;if(or.autoexpand!==!1){for(var zr in Tr)_r[zr]||delete Tr[zr];var Or=jt._fullLayout._reservedMargin;for(var kr in Or)for(var Nr in Or[kr]){var Qr=Or[kr][Nr];tr[Nr]=Math.max(tr[Nr],Qr)}Tr.base={l:{val:0,size:mr},r:{val:1,size:Ar},t:{val:1,size:br},b:{val:0,size:Ir}};for(var sn in tr){var un=0;for(var en in Tr)en!=="base"&&Tt(Tr[en][sn].size)&&(un=Tr[en][sn].size>un?Tr[en][sn].size:un);var Xr=Math.max(0,or[sn]-un);tr[sn]=Math.max(0,tr[sn]-Xr)}for(var ln in Tr){var mn=Tr[ln].l||{},pn=Tr[ln].b||{},Tn=mn.val,Zr=mn.size,Fr=pn.val,Ur=pn.size,Wr=sr-tr.r-tr.l,Gr=Zt-tr.t-tr.b;for(var wr in Tr){if(Tt(Zr)&&Tr[wr].r){var pr=Tr[wr].r.val,Dr=Tr[wr].r.size;if(pr>Tn){var Sr=(Zr*pr+(Dr-Wr)*Tn)/(pr-Tn),ur=(Dr*(1-Tn)+(Zr-Wr)*(1-pr))/(pr-Tn);Sr+ur>mr+Ar&&(mr=Sr,Ar=ur)}}if(Tt(Ur)&&Tr[wr].t){var xr=Tr[wr].t.val,Pr=Tr[wr].t.size;if(xr>Fr){var Vr=(Ur*xr+(Pr-Gr)*Fr)/(xr-Fr),qr=(Pr*(1-Fr)+(Ur-Gr)*(1-xr))/(xr-Fr);Vr+qr>Ir+br&&(Ir=Vr,br=qr)}}}}}var rn=_.constrain(sr-or.l-or.r,Ut,Er),Cn=_.constrain(Zt-or.t-or.b,Ht,Rr),xn=Math.max(0,sr-rn),fn=Math.max(0,Zt-Cn);if(xn){var bn=(mr+Ar)/xn;bn>1&&(mr/=bn,Ar/=bn)}if(fn){var Un=(Ir+br)/fn;Un>1&&(Ir/=Un,br/=Un)}if(Kt.l=Math.round(mr)+tr.l,Kt.r=Math.round(Ar)+tr.r,Kt.t=Math.round(br)+tr.t,Kt.b=Math.round(Ir)+tr.b,Kt.p=Math.round(or.pad),Kt.w=Math.round(sr)-Kt.l-Kt.r,Kt.h=Math.round(Zt)-Kt.t-Kt.b,!ar._replotting&&(mt.didMarginChange(cr,Kt)||Vt(jt))){"_redrawFromAutoMarginCount"in ar?ar._redrawFromAutoMarginCount++:ar._redrawFromAutoMarginCount=1;var _i=3*(1+Object.keys(_r).length);if(ar._redrawFromAutoMarginCount<_i)return ut.call("_doPlot",jt);ar._size=cr,_.warn("Too many auto-margin redraws.")}Xt(jt)};function Xt(jt){var ar=st.list(jt,"",!0);["_adjustTickLabelsOverflow","_hideCounterAxisInsideTickLabels"].forEach(function(sr){for(var Zt=0;Zt1)return!0}return!1},mt.graphJson=function(jt,ar,sr,Zt,Kt,or){(Kt&&ar&&!jt._fullData||Kt&&!ar&&!jt._fullLayout)&&mt.supplyDefaults(jt);var tr=Kt?jt._fullData:jt.data,cr=Kt?jt._fullLayout:jt.layout,mr=(jt._transitionData||{})._frames;function Ar(Tr,_r){if(typeof Tr=="function")return _r?"_function_":null;if(_.isPlainObject(Tr)){var Er={},Rr;return Object.keys(Tr).sort().forEach(function(Nr){if(["_","["].indexOf(Nr.charAt(0))===-1){if(typeof Tr[Nr]=="function"){_r&&(Er[Nr]="_function");return}if(sr==="keepdata"){if(Nr.substr(Nr.length-3)==="src")return}else if(sr==="keepstream"){if(Rr=Tr[Nr+"src"],typeof Rr=="string"&&Rr.indexOf(":")>0&&!_.isPlainObject(Tr.stream))return}else if(sr!=="keepall"&&(Rr=Tr[Nr+"src"],typeof Rr=="string"&&Rr.indexOf(":")>0))return;Er[Nr]=Ar(Tr[Nr],_r)}}),Er}var zr=Array.isArray(Tr),Or=_.isTypedArray(Tr);if((zr||Or)&&Tr.dtype&&Tr.shape){var kr=Tr.bdata;return Ar({dtype:Tr.dtype,shape:Tr.shape,bdata:_.isArrayBuffer(kr)?yt.encode(kr):kr},_r)}return zr?Tr.map(function(Nr){return Ar(Nr,_r)}):Or?_.simpleMap(Tr,_.identity):_.isJSDate(Tr)?_.ms2DateTimeLocal(+Tr):Tr}var br={data:(tr||[]).map(function(Tr){var _r=Ar(Tr);return ar&&delete _r.fit,_r})};if(!ar&&(br.layout=Ar(cr),Kt)){var Ir=cr._size;br.layout.computed={margin:{b:Ir.b,l:Ir.l,r:Ir.r,t:Ir.t}}}return mr&&(br.frames=Ar(mr)),or&&(br.config=Ar(jt._context,!0)),Zt==="object"?br:JSON.stringify(br)},mt.modifyFrames=function(jt,ar){var sr,Zt,Kt,or=jt._transitionData._frames,tr=jt._transitionData._frameHash;for(sr=0;sr0&&(jt._transitioningWithDuration=!0),jt._transitionData._interruptCallbacks.push(function(){Zt=!0}),sr.redraw&&jt._transitionData._interruptCallbacks.push(function(){return ut.call("redraw",jt)}),jt._transitionData._interruptCallbacks.push(function(){jt.emit("plotly_transitioninterrupted",[])});var Tr=0,_r=0;function Er(){return Tr++,function(){_r++,!Zt&&_r===Tr&&cr(Ir)}}sr.runFn(Er),setTimeout(Er())})}function cr(Ir){if(jt._transitionData)return or(jt._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(sr.redraw)return ut.call("redraw",jt)}).then(function(){jt._transitioning=!1,jt._transitioningWithDuration=!1,jt.emit("plotly_transitioned",[])}).then(Ir)}function mr(){if(jt._transitionData)return jt._transitioning=!1,Kt(jt._transitionData._interruptCallbacks)}var Ar=[mt.previousPromises,mr,sr.prepareFn,mt.rehover,mt.reselect,tr],br=_.syncOrAsync(Ar,jt);return(!br||!br.then)&&(br=Promise.resolve()),br.then(function(){return jt})}mt.doCalcdata=function(jt,ar){var sr=st.list(jt),Zt=jt._fullData,Kt=jt._fullLayout,or,tr,cr,mr,Ar=new Array(Zt.length),br=(jt.calcdata||[]).slice();for(jt.calcdata=Ar,Kt._numBoxes=0,Kt._numViolins=0,Kt._violinScaleGroupStats={},jt._hmpixcount=0,jt._hmlumcount=0,Kt._piecolormap={},Kt._sunburstcolormap={},Kt._treemapcolormap={},Kt._iciclecolormap={},Kt._funnelareacolormap={},cr=0;cr=0;mr--)if(sn[mr].enabled){or._indexToPoints=sn[mr]._indexToPoints;break}tr&&tr.calc&&(Qr=tr.calc(jt,or))}(!Array.isArray(Qr)||!Qr[0])&&(Qr=[{x:tt,y:tt}]),Qr[0].t||(Qr[0].t={}),Qr[0].trace=or,Ar[kr]=Qr}}for(Yt(sr,Zt,Kt),cr=0;cr0?kt:1/0},_t=et(mt,St),Mt=it.mod(_t+1,mt.length);return[mt[_t],mt[Mt]]}function vt(at){return Math.abs(at)>1e-10?at:0}function dt(at,mt,St){mt=mt||0,St=St||0;for(var _t=at.length,Mt=new Array(_t),Et=0;Et<_t;Et++){var kt=at[Et];Mt[Et]=[mt+kt[0],St-kt[1]]}return Mt}function bt(at,mt,St,_t,Mt,Et){var kt=st(at,mt,St,_t);return"M"+dt(kt,Mt,Et).join("L")}function ft(at,mt,St,_t,Mt,Et,kt){var wt,ct;atTr?(_r=or,Er=or*Tr,Or=(tr-Er)/jt.h/2,Rr=[Zt[0],Zt[1]],zr=[Kt[0]+Or,Kt[1]-Or]):(_r=tr/Tr,Er=tr,Or=(or-_r)/jt.w/2,Rr=[Zt[0]+Or,Zt[1]-Or],zr=[Kt[0],Kt[1]]),Yt.xLength2=_r,Yt.yLength2=Er,Yt.xDomain2=Rr,Yt.yDomain2=zr;var kr=Yt.xOffset2=jt.l+jt.w*Rr[0],Nr=Yt.yOffset2=jt.t+jt.h*(1-zr[1]),Qr=Yt.radius=_r/Ar,sn=Yt.innerRadius=Yt.getHole(Jt)*Qr,un=Yt.cx=kr-Qr*mr[0],en=Yt.cy=Nr+Qr*mr[3],Xr=Yt.cxx=un-kr,ln=Yt.cyy=en-Nr,mn=ar.side,pn;mn==="counterclockwise"?(pn=mn,mn="top"):mn==="clockwise"&&(pn=mn,mn="bottom"),Yt.radialAxis=Yt.mockAxis(lr,Jt,ar,{_id:"x",side:mn,_trueSide:pn,domain:[sn/jt.w,Qr/jt.w]}),Yt.angularAxis=Yt.mockAxis(lr,Jt,sr,{side:"right",domain:[0,Math.PI],autorange:!1}),Yt.doAutoRange(lr,Jt),Yt.updateAngularAxis(lr,Jt),Yt.updateRadialAxis(lr,Jt),Yt.updateRadialAxisTitle(lr,Jt),Yt.xaxis=Yt.mockCartesianAxis(lr,Jt,{_id:"x",domain:Rr}),Yt.yaxis=Yt.mockCartesianAxis(lr,Jt,{_id:"y",domain:zr});var Tn=Yt.pathSubplot();Yt.clipPaths.forTraces.select("path").attr("d",Tn).attr("transform",ut(Xr,ln)),rr.frontplot.attr("transform",ut(kr,Nr)).call(j.setClipUrl,Yt._hasClipOnAxisFalse?null:Yt.clipIds.forTraces,Yt.gd),rr.bg.attr("d",Tn).attr("transform",ut(un,en)).call(ht.fill,Jt.bgcolor)},Ht.mockAxis=function(lr,Jt,Yt,rr){var jt=Tt.extendFlat({},Yt,rr);return st(jt,Jt,lr),jt},Ht.mockCartesianAxis=function(lr,Jt,Yt){var rr=this,jt=rr.isSmith,ar=Yt._id,sr=Tt.extendFlat({type:"linear"},Yt);tt(sr,lr);var Zt={x:[0,2],y:[1,3]};return sr.setRange=function(){var Kt=rr.sectorBBox,or=Zt[ar],tr=rr.radialAxis._rl,cr=(tr[1]-tr[0])/(1-rr.getHole(Jt));sr.range=[Kt[or[0]]*cr,Kt[or[1]]*cr]},sr.isPtWithinRange=ar==="x"&&!jt?function(Kt){return rr.isPtInside(Kt)}:function(){return!0},sr.setRange(),sr.setScale(),sr},Ht.doAutoRange=function(lr,Jt){var Yt=this,rr=Yt.gd,jt=Yt.radialAxis,ar=Yt.getRadial(Jt);ot(rr,jt);var sr=jt.range;if(ar.range=sr.slice(),ar._input.range=sr.slice(),jt._rl=[jt.r2l(sr[0],null,"gregorian"),jt.r2l(sr[1],null,"gregorian")],jt.minallowed!==void 0){var Zt=jt.r2l(jt.minallowed);jt._rl[0]>jt._rl[1]?jt._rl[1]=Math.max(jt._rl[1],Zt):jt._rl[0]=Math.max(jt._rl[0],Zt)}if(jt.maxallowed!==void 0){var Kt=jt.r2l(jt.maxallowed);jt._rl[0]90&&tr<=270&&(cr.tickangle=180);var br=Ar?function(Qr){var sn=Pt(Yt,It([Qr.x,0]));return ut(sn[0]-Zt,sn[1]-Kt)}:function(Qr){return ut(cr.l2p(Qr.x)+sr,0)},Ir=Ar?function(Qr){return Ot(Yt,Qr.x,-1/0,1/0)}:function(Qr){return Yt.pathArc(cr.r2p(Qr.x)+sr)},Tr=Vt(or);if(Yt.radialTickLayout!==Tr&&(jt["radial-axis"].selectAll(".xtick").remove(),Yt.radialTickLayout=Tr),mr){cr.setScale();var _r=0,Er=Ar?(cr.tickvals||[]).filter(function(Qr){return Qr>=0}).map(function(Qr){return rt.tickText(cr,Qr,!0,!1)}):rt.calcTicks(cr),Rr=Ar?Er:rt.clipEnds(cr,Er),zr=rt.getTickSigns(cr)[2];Ar&&((cr.ticks==="top"&&cr.side==="bottom"||cr.ticks==="bottom"&&cr.side==="top")&&(zr=-zr),cr.ticks==="top"&&cr.side==="top"&&(_r=-cr.ticklen),cr.ticks==="bottom"&&cr.side==="bottom"&&(_r=cr.ticklen)),rt.drawTicks(rr,cr,{vals:Er,layer:jt["radial-axis"],path:rt.makeTickPath(cr,0,zr),transFn:br,crisp:!1}),rt.drawGrid(rr,cr,{vals:Rr,layer:jt["radial-grid"],path:Ir,transFn:Tt.noop,crisp:!1}),rt.drawLabels(rr,cr,{vals:Er,layer:jt["radial-axis"],transFn:br,labelFns:rt.makeLabelFns(cr,_r)})}var Or=Yt.radialAxisAngle=Yt.vangles?$t(qt(Nt(or.angle),Yt.vangles)):or.angle,kr=ut(Zt,Kt),Nr=kr+yt(-Or);er(jt["radial-axis"],mr&&(or.showticklabels||or.ticks),{transform:Nr}),er(jt["radial-grid"],mr&&or.showgrid,{transform:Ar?"":kr}),er(jt["radial-line"].select("line"),mr&&or.showline,{x1:Ar?-ar:sr,y1:0,x2:ar,y2:0,transform:Nr}).attr("stroke-width",or.linewidth).call(ht.stroke,or.linecolor)},Ht.updateRadialAxisTitle=function(lr,Jt,Yt){if(!this.isSmith){var rr=this,jt=rr.gd,ar=rr.radius,sr=rr.cx,Zt=rr.cy,Kt=rr.getRadial(Jt),or=rr.id+"title",tr=0;if(Kt.title){var cr=j.bBox(rr.layers["radial-axis"].node()).height,mr=Kt.title.font.size,Ar=Kt.side;tr=Ar==="top"?mr:Ar==="counterclockwise"?-(cr+mr*.4):cr+mr*.8}var br=Yt!==void 0?Yt:rr.radialAxisAngle,Ir=Nt(br),Tr=Math.cos(Ir),_r=Math.sin(Ir),Er=sr+ar/2*Tr+tr*_r,Rr=Zt-ar/2*_r+tr*Tr;rr.layers["radial-axis-title"]=bt.draw(jt,or,{propContainer:Kt,propName:rr.id+".radialaxis.title",placeholder:zt(jt,"Click to enter radial axis title"),attributes:{x:Er,y:Rr,"text-anchor":"middle"},transform:{rotate:-br}})}},Ht.updateAngularAxis=function(lr,Jt){var Yt=this,rr=Yt.gd,jt=Yt.layers,ar=Yt.radius,sr=Yt.innerRadius,Zt=Yt.cx,Kt=Yt.cy,or=Yt.getAngular(Jt),tr=Yt.angularAxis,cr=Yt.isSmith;cr||(Yt.fillViewInitialKey("angularaxis.rotation",or.rotation),tr.setGeometry(),tr.setScale());var mr=cr?function(sn){var un=Pt(Yt,It([0,sn.x]));return Math.atan2(un[0]-Zt,un[1]-Kt)-Math.PI/2}:function(sn){return tr.t2g(sn.x)};tr.type==="linear"&&tr.thetaunit==="radians"&&(tr.tick0=$t(tr.tick0),tr.dtick=$t(tr.dtick));var Ar=function(sn){return ut(Zt+ar*Math.cos(sn),Kt-ar*Math.sin(sn))},br=cr?function(sn){var un=Pt(Yt,It([0,sn.x]));return ut(un[0],un[1])}:function(sn){return Ar(mr(sn))},Ir=cr?function(sn){var un=Pt(Yt,It([0,sn.x])),en=Math.atan2(un[0]-Zt,un[1]-Kt)-Math.PI/2;return ut(un[0],un[1])+yt(-$t(en))}:function(sn){var un=mr(sn);return Ar(un)+yt(-$t(un))},Tr=cr?function(sn){return At(Yt,sn.x,0,1/0)}:function(sn){var un=mr(sn),en=Math.cos(un),Xr=Math.sin(un);return"M"+[Zt+sr*en,Kt-sr*Xr]+"L"+[Zt+ar*en,Kt-ar*Xr]},_r=rt.makeLabelFns(tr,0),Er=_r.labelStandoff,Rr={};Rr.xFn=function(sn){var un=mr(sn);return Math.cos(un)*Er},Rr.yFn=function(sn){var un=mr(sn),en=Math.sin(un)>0?.2:1;return-Math.sin(un)*(Er+sn.fontSize*en)+Math.abs(Math.cos(un))*(sn.fontSize*Et)},Rr.anchorFn=function(sn){var un=mr(sn),en=Math.cos(un);return Math.abs(en)<.1?"middle":en>0?"start":"end"},Rr.heightFn=function(sn,un,en){var Xr=mr(sn);return-.5*(1+Math.sin(Xr))*en};var zr=Vt(or);Yt.angularTickLayout!==zr&&(jt["angular-axis"].selectAll("."+tr._id+"tick").remove(),Yt.angularTickLayout=zr);var Or=cr?[1/0].concat(tr.tickvals||[]).map(function(sn){return rt.tickText(tr,sn,!0,!1)}):rt.calcTicks(tr);cr&&(Or[0].text="∞",Or[0].fontSize*=1.75);var kr;if(Jt.gridshape==="linear"?(kr=Or.map(mr),Tt.angleDelta(kr[0],kr[1])<0&&(kr=kr.slice().reverse())):kr=null,Yt.vangles=kr,tr.type==="category"&&(Or=Or.filter(function(sn){return Tt.isAngleInsideSector(mr(sn),Yt.sectorInRad)})),tr.visible){var Nr=tr.ticks==="inside"?-1:1,Qr=(tr.linewidth||1)/2;rt.drawTicks(rr,tr,{vals:Or,layer:jt["angular-axis"],path:"M"+Nr*Qr+",0h"+Nr*tr.ticklen,transFn:Ir,crisp:!1}),rt.drawGrid(rr,tr,{vals:Or,layer:jt["angular-grid"],path:Tr,transFn:Tt.noop,crisp:!1}),rt.drawLabels(rr,tr,{vals:Or,layer:jt["angular-axis"],repositionOnUpdate:!0,transFn:br,labelFns:Rr})}er(jt["angular-line"].select("path"),or.showline,{d:Yt.pathSubplot(),transform:ut(Zt,Kt)}).attr("stroke-width",or.linewidth).call(ht.stroke,or.linecolor)},Ht.updateFx=function(lr,Jt){if(!this.gd._context.staticPlot){var Yt=!this.isSmith;Yt&&(this.updateAngularDrag(lr),this.updateRadialDrag(lr,Jt,0),this.updateRadialDrag(lr,Jt,1)),this.updateHoverAndMainDrag(lr)}},Ht.updateHoverAndMainDrag=function(lr){var Jt=this,Yt=Jt.isSmith,rr=Jt.gd,jt=Jt.layers,ar=lr._zoomlayer,sr=kt.MINZOOM,Zt=kt.OFFEDGE,Kt=Jt.radius,or=Jt.innerRadius,tr=Jt.cx,cr=Jt.cy,mr=Jt.cxx,Ar=Jt.cyy,br=Jt.sectorInRad,Ir=Jt.vangles,Tr=Jt.radialAxis,_r=wt.clampTiny,Er=wt.findXYatLength,Rr=wt.findEnclosingVertexAngles,zr=kt.cornerHalfWidth,Or=kt.cornerLen/2,kr,Nr,Qr=nt.makeDragger(jt,"path","maindrag",lr.dragmode===!1?"none":"crosshair");it.select(Qr).attr("d",Jt.pathSubplot()).attr("transform",ut(tr,cr)),Qr.onmousemove=function(fn){dt.hover(rr,fn,Jt.id),rr._fullLayout._lasthover=Qr,rr._fullLayout._hoversubplot=Jt.id},Qr.onmouseout=function(fn){rr._dragging||vt.unhover(rr,fn)};var sn={element:Qr,gd:rr,subplot:Jt.id,plotinfo:{id:Jt.id,xaxis:Jt.xaxis,yaxis:Jt.yaxis},xaxes:[Jt.xaxis],yaxes:[Jt.yaxis]},un,en,Xr,ln,mn,pn,Tn,Zr,Fr;function Ur(fn,bn){return Math.sqrt(fn*fn+bn*bn)}function Wr(fn,bn){return Ur(fn-mr,bn-Ar)}function Gr(fn,bn){return Math.atan2(Ar-bn,fn-mr)}function wr(fn,bn){return[fn*Math.cos(bn),fn*Math.sin(-bn)]}function pr(fn,bn){if(fn===0)return Jt.pathSector(2*zr);var Un=Or/fn,_i=bn-Un,yn=bn+Un,Kn=Math.max(0,Math.min(fn,Kt)),Jn=Kn-zr,so=Kn+zr;return"M"+wr(Jn,_i)+"A"+[Jn,Jn]+" 0,0,0 "+wr(Jn,yn)+"L"+wr(so,yn)+"A"+[so,so]+" 0,0,1 "+wr(so,_i)+"Z"}function Dr(fn,bn,Un){if(fn===0)return Jt.pathSector(2*zr);var _i=wr(fn,bn),yn=wr(fn,Un),Kn=_r((_i[0]+yn[0])/2),Jn=_r((_i[1]+yn[1])/2),so,ba;if(Kn&&Jn){var An=Jn/Kn,hn=-1/An,wn=Er(zr,An,Kn,Jn);so=Er(Or,hn,wn[0][0],wn[0][1]),ba=Er(Or,hn,wn[1][0],wn[1][1])}else{var In,Ln;Jn?(In=Or,Ln=zr):(In=zr,Ln=Or),so=[[Kn-In,Jn-Ln],[Kn+In,Jn-Ln]],ba=[[Kn-In,Jn+Ln],[Kn+In,Jn+Ln]]}return"M"+so.join("L")+"L"+ba.reverse().join("L")+"Z"}function Sr(){Xr=null,ln=null,mn=Jt.pathSubplot(),pn=!1;var fn=rr._fullLayout[Jt.id];Tn=xt(fn.bgcolor).getLuminance(),Zr=nt.makeZoombox(ar,Tn,tr,cr,mn),Zr.attr("fill-rule","evenodd"),Fr=nt.makeCorners(ar,tr,cr),mt(rr)}function ur(fn,bn){return bn=Math.max(Math.min(bn,Kt),or),fnsr?(fn-1&&fn===1&&at(bn,rr,[Jt.xaxis],[Jt.yaxis],Jt.id,sn),Un.indexOf("event")>-1&&dt.click(rr,bn,Jt.id)}sn.prepFn=function(fn,bn,Un){var _i=rr._fullLayout.dragmode,yn=Qr.getBoundingClientRect();rr._fullLayout._calcInverseTransform(rr);var Kn=rr._fullLayout._invTransform;kr=rr._fullLayout._invScaleX,Nr=rr._fullLayout._invScaleY;var Jn=Tt.apply3DTransform(Kn)(bn-yn.left,Un-yn.top);if(un=Jn[0],en=Jn[1],Ir){var so=wt.findPolygonOffset(Kt,br[0],br[1],Ir);un+=mr+so[0],en+=Ar+so[1]}switch(_i){case"zoom":sn.clickFn=xn,Yt||(Ir?sn.moveFn=qr:sn.moveFn=Pr,sn.doneFn=rn,Sr());break;case"select":case"lasso":ft(fn,bn,Un,sn,_i);break}},vt.init(sn)},Ht.updateRadialDrag=function(lr,Jt,Yt){var rr=this,jt=rr.gd,ar=rr.layers,sr=rr.radius,Zt=rr.innerRadius,Kt=rr.cx,or=rr.cy,tr=rr.radialAxis,cr=kt.radialDragBoxSize,mr=cr/2;if(!tr.visible)return;var Ar=Nt(rr.radialAxisAngle),br=tr._rl,Ir=br[0],Tr=br[1],_r=br[Yt],Er=.75*(br[1]-br[0])/(1-rr.getHole(Jt))/sr,Rr,zr,Or;Yt?(Rr=Kt+(sr+mr)*Math.cos(Ar),zr=or-(sr+mr)*Math.sin(Ar),Or="radialdrag"):(Rr=Kt+(Zt-mr)*Math.cos(Ar),zr=or-(Zt-mr)*Math.sin(Ar),Or="radialdrag-inner");var kr=nt.makeRectDragger(ar,Or,"crosshair",-mr,-mr,cr,cr),Nr={element:kr,gd:jt};lr.dragmode===!1&&(Nr.dragmode=!1),er(it.select(kr),tr.visible&&Zt0!=(Yt?un>Ir:un=90||jt>90&&ar>=450?Ar=1:Zt<=0&&or<=0?Ar=0:Ar=Math.max(Zt,or),jt<=180&&ar>=180||jt>180&&ar>=540?tr=-1:sr>=0&&Kt>=0?tr=0:tr=Math.min(sr,Kt),jt<=270&&ar>=270||jt>270&&ar>=630?cr=-1:Zt>=0&&or>=0?cr=0:cr=Math.min(Zt,or),ar>=360?mr=1:sr<=0&&Kt<=0?mr=0:mr=Math.max(sr,Kt),[tr,cr,mr,Ar]}function qt(lr,Jt){var Yt=function(jt){return Tt.angleDist(lr,jt)},rr=Tt.findIndexOfMin(Jt,Yt);return Jt[rr]}function er(lr,Jt,Yt){return Jt?(lr.attr("display",null),lr.attr(Yt)):lr&&lr.attr("display","none"),lr}},57696:function(Ct,Rt,o){var it=o(3400),xt=o(78344),et=it.deg2rad,Tt=it.rad2deg;Ct.exports=function(rt,tt,st){switch(xt(rt,st),rt._id){case"x":case"radialaxis":yt(rt,tt);break;case"angularaxis":j(rt,tt);break}};function yt(_,rt){var tt=rt._subplot;_.setGeometry=function(){var st=_._rl[0],ot=_._rl[1],nt=tt.innerRadius,vt=(tt.radius-nt)/(ot-st),dt=nt/vt,bt=st>ot?function(ft){return ft<=0}:function(ft){return ft>=0};_.c2g=function(ft){var at=_.c2l(ft)-st;return(bt(at)?at:0)+dt},_.g2c=function(ft){return _.l2c(ft+st-dt)},_.g2p=function(ft){return ft*vt},_.c2p=function(ft){return _.g2p(_.c2g(ft))}}}function ut(_,rt){return rt==="degrees"?et(_):_}function ht(_,rt){return rt==="degrees"?Tt(_):_}function j(_,rt){var tt=_.type;if(tt==="linear"){var st=_.d2c,ot=_.c2d;_.d2c=function(nt,vt){return ut(st(nt),vt)},_.c2d=function(nt,vt){return ot(ht(nt,vt))}}_.makeCalcdata=function(nt,vt){var dt=nt[vt],bt=nt._length,ft,at,mt=function(kt){return _.d2c(kt,nt.thetaunit)};if(dt)for(ft=new Array(bt),at=0;at0?1:0}function o(yt){var ut=yt[0],ht=yt[1];if(!isFinite(ut)||!isFinite(ht))return[1,0];var j=(ut+1)*(ut+1)+ht*ht;return[(ut*ut+ht*ht-1)/j,2*ht/j]}function it(yt,ut){var ht=ut[0],j=ut[1];return[ht*yt.radius+yt.cx,-j*yt.radius+yt.cy]}function xt(yt,ut){return ut*yt.radius}function et(yt,ut,ht,j){var _=it(yt,o([ht,ut])),rt=_[0],tt=_[1],st=it(yt,o([j,ut])),ot=st[0],nt=st[1];if(ut===0)return["M"+rt+","+tt,"L"+ot+","+nt].join(" ");var vt=xt(yt,1/Math.abs(ut));return["M"+rt+","+tt,"A"+vt+","+vt+" 0 0,"+(ut<0?1:0)+" "+ot+","+nt].join(" ")}function Tt(yt,ut,ht,j){var _=xt(yt,1/(ut+1)),rt=it(yt,o([ut,ht])),tt=rt[0],st=rt[1],ot=it(yt,o([ut,j])),nt=ot[0],vt=ot[1];if(Rt(ht)!==Rt(j)){var dt=it(yt,o([ut,0])),bt=dt[0],ft=dt[1];return["M"+tt+","+st,"A"+_+","+_+" 0 0,"+(00){for(var ut=[],ht=0;ht=at&&(Et.min=0,kt.min=0,wt.min=0,nt.aaxis&&delete nt.aaxis.min,nt.baxis&&delete nt.baxis.min,nt.caxis&&delete nt.caxis.min)}function ot(nt,vt,dt,bt){var ft=rt[vt._name];function at(ct,It){return et.coerce(nt,vt,ft,ct,It)}at("uirevision",bt.uirevision),vt.type="linear";var mt=at("color"),St=mt!==ft.color.dflt?mt:dt.font.color,_t=vt._name,Mt=_t.charAt(0).toUpperCase(),Et="Component "+Mt,kt=at("title.text",Et);vt._hovertitle=kt===Et?kt:Mt,et.coerceFont(at,"title.font",{weight:dt.font.weight,style:dt.font.style,variant:dt.font.variant,family:dt.font.family,size:et.bigFont(dt.font.size),color:St}),at("min"),j(nt,vt,at,"linear"),ut(nt,vt,at,"linear"),yt(nt,vt,at,"linear",{noAutotickangles:!0}),ht(nt,vt,at,{outerTicks:!0});var wt=at("showticklabels");wt&&(et.coerceFont(at,"tickfont",{weight:dt.font.weight,style:dt.font.style,variant:dt.font.variant,family:dt.font.family,size:dt.font.size,color:St}),at("tickangle"),at("tickformat")),_(nt,vt,at,{dfltColor:mt,bgColor:dt.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:ft}),at("hoverformat"),at("layer")}},24696:function(Ct,Rt,o){var it=o(33428),xt=o(49760),et=o(24040),Tt=o(3400),yt=Tt.strTranslate,ut=Tt._,ht=o(76308),j=o(43616),_=o(78344),rt=o(92880).extendFlat,tt=o(7316),st=o(54460),ot=o(86476),nt=o(93024),vt=o(72760),dt=vt.freeMode,bt=vt.rectMode,ft=o(81668),at=o(22676).prepSelect,mt=o(22676).selectOnClick,St=o(22676).clearOutline,_t=o(22676).clearSelectionsCache,Mt=o(33816);function Et($t,Ut){this.id=$t.id,this.graphDiv=$t.graphDiv,this.init(Ut),this.makeFramework(Ut),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}Ct.exports=Et;var kt=Et.prototype;kt.init=function($t){this.container=$t._ternarylayer,this.defs=$t._defs,this.layoutId=$t._uid,this.traceHash={},this.layers={}},kt.plot=function($t,Ut){var Ht=this,Vt=Ut[Ht.id],Xt=Ut._size;Ht._hasClipOnAxisFalse=!1;for(var qt=0;qt<$t.length;qt++){var er=$t[qt][0].trace;if(er.cliponaxis===!1){Ht._hasClipOnAxisFalse=!0;break}}Ht.updateLayers(Vt),Ht.adjustLayout(Vt,Xt),tt.generalUpdatePerTraceModule(Ht.graphDiv,Ht,$t,Vt),Ht.layers.plotbg.select("path").call(ht.fill,Vt.bgcolor)},kt.makeFramework=function($t){var Ut=this,Ht=Ut.graphDiv,Vt=$t[Ut.id],Xt=Ut.clipId="clip"+Ut.layoutId+Ut.id,qt=Ut.clipIdRelative="clip-relative"+Ut.layoutId+Ut.id;Ut.clipDef=Tt.ensureSingleById($t._clips,"clipPath",Xt,function(er){er.append("path").attr("d","M0,0Z")}),Ut.clipDefRelative=Tt.ensureSingleById($t._clips,"clipPath",qt,function(er){er.append("path").attr("d","M0,0Z")}),Ut.plotContainer=Tt.ensureSingle(Ut.container,"g",Ut.id),Ut.updateLayers(Vt),j.setClipUrl(Ut.layers.backplot,Xt,Ht),j.setClipUrl(Ut.layers.grids,Xt,Ht)},kt.updateLayers=function($t){var Ut=this,Ht=Ut.layers,Vt=["draglayer","plotbg","backplot","grids"];$t.aaxis.layer==="below traces"&&Vt.push("aaxis","aline"),$t.baxis.layer==="below traces"&&Vt.push("baxis","bline"),$t.caxis.layer==="below traces"&&Vt.push("caxis","cline"),Vt.push("frontplot"),$t.aaxis.layer==="above traces"&&Vt.push("aaxis","aline"),$t.baxis.layer==="above traces"&&Vt.push("baxis","bline"),$t.caxis.layer==="above traces"&&Vt.push("caxis","cline");var Xt=Ut.plotContainer.selectAll("g.toplevel").data(Vt,String),qt=["agrid","bgrid","cgrid"];Xt.enter().append("g").attr("class",function(er){return"toplevel "+er}).each(function(er){var lr=it.select(this);Ht[er]=lr,er==="frontplot"?lr.append("g").classed("scatterlayer",!0):er==="backplot"?lr.append("g").classed("maplayer",!0):er==="plotbg"?lr.append("path").attr("d","M0,0Z"):er==="aline"||er==="bline"||er==="cline"?lr.append("path"):er==="grids"&&qt.forEach(function(Jt){Ht[Jt]=lr.append("g").classed("grid "+Jt,!0)})}),Xt.order()};var wt=Math.sqrt(4/3);kt.adjustLayout=function($t,Ut){var Ht=this,Vt=$t.domain,Xt=(Vt.x[0]+Vt.x[1])/2,qt=(Vt.y[0]+Vt.y[1])/2,er=Vt.x[1]-Vt.x[0],lr=Vt.y[1]-Vt.y[0],Jt=er*Ut.w,Yt=lr*Ut.h,rr=$t.sum,jt=$t.aaxis.min,ar=$t.baxis.min,sr=$t.caxis.min,Zt,Kt,or,tr,cr,mr;Jt>wt*Yt?(tr=Yt,or=tr*wt):(or=Jt,tr=or/wt),cr=er*or/Jt,mr=lr*tr/Yt,Zt=Ut.l+Ut.w*Xt-or/2,Kt=Ut.t+Ut.h*(1-qt)-tr/2,Ht.x0=Zt,Ht.y0=Kt,Ht.w=or,Ht.h=tr,Ht.sum=rr,Ht.xaxis={type:"linear",range:[jt+2*sr-rr,rr-jt-2*ar],domain:[Xt-cr/2,Xt+cr/2],_id:"x"},_(Ht.xaxis,Ht.graphDiv._fullLayout),Ht.xaxis.setScale(),Ht.xaxis.isPtWithinRange=function(Nr){return Nr.a>=Ht.aaxis.range[0]&&Nr.a<=Ht.aaxis.range[1]&&Nr.b>=Ht.baxis.range[1]&&Nr.b<=Ht.baxis.range[0]&&Nr.c>=Ht.caxis.range[1]&&Nr.c<=Ht.caxis.range[0]},Ht.yaxis={type:"linear",range:[jt,rr-ar-sr],domain:[qt-mr/2,qt+mr/2],_id:"y"},_(Ht.yaxis,Ht.graphDiv._fullLayout),Ht.yaxis.setScale(),Ht.yaxis.isPtWithinRange=function(){return!0};var Ar=Ht.yaxis.domain[0],br=Ht.aaxis=rt({},$t.aaxis,{range:[jt,rr-ar-sr],side:"left",tickangle:(+$t.aaxis.tickangle||0)-30,domain:[Ar,Ar+mr*wt],anchor:"free",position:0,_id:"y",_length:or});_(br,Ht.graphDiv._fullLayout),br.setScale();var Ir=Ht.baxis=rt({},$t.baxis,{range:[rr-jt-sr,ar],side:"bottom",domain:Ht.xaxis.domain,anchor:"free",position:0,_id:"x",_length:or});_(Ir,Ht.graphDiv._fullLayout),Ir.setScale();var Tr=Ht.caxis=rt({},$t.caxis,{range:[rr-jt-ar,sr],side:"right",tickangle:(+$t.caxis.tickangle||0)+30,domain:[Ar,Ar+mr*wt],anchor:"free",position:0,_id:"y",_length:or});_(Tr,Ht.graphDiv._fullLayout),Tr.setScale();var _r="M"+Zt+","+(Kt+tr)+"h"+or+"l-"+or/2+",-"+tr+"Z";Ht.clipDef.select("path").attr("d",_r),Ht.layers.plotbg.select("path").attr("d",_r);var Er="M0,"+tr+"h"+or+"l-"+or/2+",-"+tr+"Z";Ht.clipDefRelative.select("path").attr("d",Er);var Rr=yt(Zt,Kt);Ht.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Rr),Ht.clipDefRelative.select("path").attr("transform",null);var zr=yt(Zt-Ir._offset,Kt+tr);Ht.layers.baxis.attr("transform",zr),Ht.layers.bgrid.attr("transform",zr);var Or=yt(Zt+or/2,Kt)+"rotate(30)"+yt(0,-br._offset);Ht.layers.aaxis.attr("transform",Or),Ht.layers.agrid.attr("transform",Or);var kr=yt(Zt+or/2,Kt)+"rotate(-30)"+yt(0,-Tr._offset);Ht.layers.caxis.attr("transform",kr),Ht.layers.cgrid.attr("transform",kr),Ht.drawAxes(!0),Ht.layers.aline.select("path").attr("d",br.showline?"M"+Zt+","+(Kt+tr)+"l"+or/2+",-"+tr:"M0,0").call(ht.stroke,br.linecolor||"#000").style("stroke-width",(br.linewidth||0)+"px"),Ht.layers.bline.select("path").attr("d",Ir.showline?"M"+Zt+","+(Kt+tr)+"h"+or:"M0,0").call(ht.stroke,Ir.linecolor||"#000").style("stroke-width",(Ir.linewidth||0)+"px"),Ht.layers.cline.select("path").attr("d",Tr.showline?"M"+(Zt+or/2)+","+Kt+"l"+or/2+","+tr:"M0,0").call(ht.stroke,Tr.linecolor||"#000").style("stroke-width",(Tr.linewidth||0)+"px"),Ht.graphDiv._context.staticPlot||Ht.initInteractions(),j.setClipUrl(Ht.layers.frontplot,Ht._hasClipOnAxisFalse?null:Ht.clipId,Ht.graphDiv)},kt.drawAxes=function($t){var Ut=this,Ht=Ut.graphDiv,Vt=Ut.id.substr(7)+"title",Xt=Ut.layers,qt=Ut.aaxis,er=Ut.baxis,lr=Ut.caxis;if(Ut.drawAx(qt),Ut.drawAx(er),Ut.drawAx(lr),$t){var Jt=Math.max(qt.showticklabels?qt.tickfont.size/2:0,(lr.showticklabels?lr.tickfont.size*.75:0)+(lr.ticks==="outside"?lr.ticklen*.87:0)),Yt=(er.showticklabels?er.tickfont.size:0)+(er.ticks==="outside"?er.ticklen:0)+3;Xt["a-title"]=ft.draw(Ht,"a"+Vt,{propContainer:qt,propName:Ut.id+".aaxis.title",placeholder:ut(Ht,"Click to enter Component A title"),attributes:{x:Ut.x0+Ut.w/2,y:Ut.y0-qt.title.font.size/3-Jt,"text-anchor":"middle"}}),Xt["b-title"]=ft.draw(Ht,"b"+Vt,{propContainer:er,propName:Ut.id+".baxis.title",placeholder:ut(Ht,"Click to enter Component B title"),attributes:{x:Ut.x0-Yt,y:Ut.y0+Ut.h+er.title.font.size*.83+Yt,"text-anchor":"middle"}}),Xt["c-title"]=ft.draw(Ht,"c"+Vt,{propContainer:lr,propName:Ut.id+".caxis.title",placeholder:ut(Ht,"Click to enter Component C title"),attributes:{x:Ut.x0+Ut.w+Yt,y:Ut.y0+Ut.h+lr.title.font.size*.83+Yt,"text-anchor":"middle"}})}},kt.drawAx=function($t){var Ut=this,Ht=Ut.graphDiv,Vt=$t._name,Xt=Vt.charAt(0),qt=$t._id,er=Ut.layers[Vt],lr=30,Jt=Xt+"tickLayout",Yt=ct($t);Ut[Jt]!==Yt&&(er.selectAll("."+qt+"tick").remove(),Ut[Jt]=Yt),$t.setScale();var rr=st.calcTicks($t),jt=st.clipEnds($t,rr),ar=st.makeTransTickFn($t),sr=st.getTickSigns($t)[2],Zt=Tt.deg2rad(lr),Kt=sr*($t.linewidth||1)/2,or=sr*$t.ticklen,tr=Ut.w,cr=Ut.h,mr=Xt==="b"?"M0,"+Kt+"l"+Math.sin(Zt)*or+","+Math.cos(Zt)*or:"M"+Kt+",0l"+Math.cos(Zt)*or+","+-Math.sin(Zt)*or,Ar={a:"M0,0l"+cr+",-"+tr/2,b:"M0,0l-"+tr/2+",-"+cr,c:"M0,0l-"+cr+","+tr/2}[Xt];st.drawTicks(Ht,$t,{vals:$t.ticks==="inside"?jt:rr,layer:er,path:mr,transFn:ar,crisp:!1}),st.drawGrid(Ht,$t,{vals:jt,layer:Ut.layers[Xt+"grid"],path:Ar,transFn:ar,crisp:!1}),st.drawLabels(Ht,$t,{vals:rr,layer:er,transFn:ar,labelFns:st.makeLabelFns($t,0,lr)})};function ct($t){return $t.ticks+String($t.ticklen)+String($t.showticklabels)}var It=Mt.MINZOOM/2+.87,At="m-0.87,.5h"+It+"v3h-"+(It+5.2)+"l"+(It/2+2.6)+",-"+(It*.87+4.5)+"l2.6,1.5l-"+It/2+","+It*.87+"Z",Ot="m0.87,.5h-"+It+"v3h"+(It+5.2)+"l-"+(It/2+2.6)+",-"+(It*.87+4.5)+"l-2.6,1.5l"+It/2+","+It*.87+"Z",Pt="m0,1l"+It/2+","+It*.87+"l2.6,-1.5l-"+(It/2+2.6)+",-"+(It*.87+4.5)+"l-"+(It/2+2.6)+","+(It*.87+4.5)+"l2.6,1.5l"+It/2+",-"+It*.87+"Z",zt="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",Dt=!0;kt.clearOutline=function(){_t(this.dragOptions),St(this.dragOptions.gd)},kt.initInteractions=function(){var $t=this,Ut=$t.layers.plotbg.select("path").node(),Ht=$t.graphDiv,Vt=Ht._fullLayout._zoomlayer,Xt,qt;this.dragOptions={element:Ut,gd:Ht,plotinfo:{id:$t.id,domain:Ht._fullLayout[$t.id].domain,xaxis:$t.xaxis,yaxis:$t.yaxis},subplot:$t.id,prepFn:function(zr,Or,kr){$t.dragOptions.xaxes=[$t.xaxis],$t.dragOptions.yaxes=[$t.yaxis],Xt=Ht._fullLayout._invScaleX,qt=Ht._fullLayout._invScaleY;var Nr=$t.dragOptions.dragmode=Ht._fullLayout.dragmode;dt(Nr)?$t.dragOptions.minDrag=1:$t.dragOptions.minDrag=void 0,Nr==="zoom"?($t.dragOptions.moveFn=Ir,$t.dragOptions.clickFn=tr,$t.dragOptions.doneFn=Tr,cr(zr,Or,kr)):Nr==="pan"?($t.dragOptions.moveFn=Er,$t.dragOptions.clickFn=tr,$t.dragOptions.doneFn=Rr,_r(),$t.clearOutline(Ht)):(bt(Nr)||dt(Nr))&&at(zr,Or,kr,$t.dragOptions,Nr)}};var er,lr,Jt,Yt,rr,jt,ar,sr,Zt,Kt;function or(zr){var Or={};return Or[$t.id+".aaxis.min"]=zr.a,Or[$t.id+".baxis.min"]=zr.b,Or[$t.id+".caxis.min"]=zr.c,Or}function tr(zr,Or){var kr=Ht._fullLayout.clickmode;Nt(Ht),zr===2&&(Ht.emit("plotly_doubleclick",null),et.call("_guiRelayout",Ht,or({a:0,b:0,c:0}))),kr.indexOf("select")>-1&&zr===1&&mt(Or,Ht,[$t.xaxis],[$t.yaxis],$t.id,$t.dragOptions),kr.indexOf("event")>-1&&nt.click(Ht,Or,$t.id)}function cr(zr,Or,kr){var Nr=Ut.getBoundingClientRect();er=Or-Nr.left,lr=kr-Nr.top,Ht._fullLayout._calcInverseTransform(Ht);var Qr=Ht._fullLayout._invTransform,sn=Tt.apply3DTransform(Qr)(er,lr);er=sn[0],lr=sn[1],Jt={a:$t.aaxis.range[0],b:$t.baxis.range[1],c:$t.caxis.range[1]},rr=Jt,Yt=$t.aaxis.range[1]-Jt.a,jt=xt($t.graphDiv._fullLayout[$t.id].bgcolor).getLuminance(),ar="M0,"+$t.h+"L"+$t.w/2+", 0L"+$t.w+","+$t.h+"Z",sr=!1,Zt=Vt.append("path").attr("class","zoombox").attr("transform",yt($t.x0,$t.y0)).style({fill:jt>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",ar),Kt=Vt.append("path").attr("class","zoombox-corners").attr("transform",yt($t.x0,$t.y0)).style({fill:ht.background,stroke:ht.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),$t.clearOutline(Ht)}function mr(zr,Or){return 1-Or/$t.h}function Ar(zr,Or){return 1-(zr+($t.h-Or)/Math.sqrt(3))/$t.w}function br(zr,Or){return(zr-($t.h-Or)/Math.sqrt(3))/$t.w}function Ir(zr,Or){var kr=er+zr*Xt,Nr=lr+Or*qt,Qr=Math.max(0,Math.min(1,mr(er,lr),mr(kr,Nr))),sn=Math.max(0,Math.min(1,Ar(er,lr),Ar(kr,Nr))),un=Math.max(0,Math.min(1,br(er,lr),br(kr,Nr))),en=(Qr/2+un)*$t.w,Xr=(1-Qr/2-sn)*$t.w,ln=(en+Xr)/2,mn=Xr-en,pn=(1-Qr)*$t.h,Tn=pn-mn/wt;mn.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),Kt.transition().style("opacity",1).duration(200),sr=!0),Ht.emit("plotly_relayouting",or(rr))}function Tr(){Nt(Ht),rr!==Jt&&(et.call("_guiRelayout",Ht,or(rr)),Dt&&Ht.data&&Ht._context.showTips&&(Tt.notifier(ut(Ht,"Double-click to zoom back out"),"long"),Dt=!1))}function _r(){Jt={a:$t.aaxis.range[0],b:$t.baxis.range[1],c:$t.caxis.range[1]},rr=Jt}function Er(zr,Or){var kr=zr/$t.xaxis._m,Nr=Or/$t.yaxis._m;rr={a:Jt.a-Nr,b:Jt.b+(kr+Nr)/2,c:Jt.c-(kr-Nr)/2};var Qr=[rr.a,rr.b,rr.c].sort(Tt.sorterAsc),sn={a:Qr.indexOf(rr.a),b:Qr.indexOf(rr.b),c:Qr.indexOf(rr.c)};Qr[0]<0&&(Qr[1]+Qr[0]/2<0?(Qr[2]+=Qr[0]+Qr[1],Qr[0]=Qr[1]=0):(Qr[2]+=Qr[0]/2,Qr[1]+=Qr[0]/2,Qr[0]=0),rr={a:Qr[sn.a],b:Qr[sn.b],c:Qr[sn.c]},Or=(Jt.a-rr.a)*$t.yaxis._m,zr=(Jt.c-rr.c-Jt.b+rr.b)*$t.xaxis._m);var un=yt($t.x0+zr,$t.y0+Or);$t.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",un);var en=yt(-zr,-Or);$t.clipDefRelative.select("path").attr("transform",en),$t.aaxis.range=[rr.a,$t.sum-rr.b-rr.c],$t.baxis.range=[$t.sum-rr.a-rr.c,rr.b],$t.caxis.range=[$t.sum-rr.a-rr.b,rr.c],$t.drawAxes(!1),$t._hasClipOnAxisFalse&&$t.plotContainer.select(".scatterlayer").selectAll(".trace").call(j.hideOutsideRangePoints,$t),Ht.emit("plotly_relayouting",or(rr))}function Rr(){et.call("_guiRelayout",Ht,or(rr))}Ut.onmousemove=function(zr){nt.hover(Ht,zr,$t.id),Ht._fullLayout._lasthover=Ut,Ht._fullLayout._hoversubplot=$t.id},Ut.onmouseout=function(zr){Ht._dragging||ot.unhover(Ht,zr)},ot.init(this.dragOptions)};function Nt($t){it.select($t).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}},24040:function(Ct,Rt,o){var it=o(24248),xt=o(16628),et=o(52416),Tt=o(63620),yt=o(52200).addStyleRule,ut=o(92880),ht=o(45464),j=o(64859),_=ut.extendFlat,rt=ut.extendDeepAll;Rt.modules={},Rt.allCategories={},Rt.allTypes=[],Rt.subplotsRegistry={},Rt.transformsRegistry={},Rt.componentsRegistry={},Rt.layoutArrayContainers=[],Rt.layoutArrayRegexes=[],Rt.traceLayoutAttributes={},Rt.localeRegistry={},Rt.apiMethodRegistry={},Rt.collectableSubplotTypes=null,Rt.register=function(_t){if(Rt.collectableSubplotTypes=null,_t)_t&&!Array.isArray(_t)&&(_t=[_t]);else throw new Error("No argument passed to Plotly.register.");for(var Mt=0;Mt<_t.length;Mt++){var Et=_t[Mt];if(!Et)throw new Error("Invalid module was attempted to be registered!");switch(Et.moduleType){case"trace":tt(Et);break;case"transform":nt(Et);break;case"component":ot(Et);break;case"locale":vt(Et);break;case"apiMethod":var kt=Et.name;Rt.apiMethodRegistry[kt]=Et.fn;break;default:throw new Error("Invalid module was attempted to be registered!")}}},Rt.getModule=function(St){var _t=Rt.modules[mt(St)];return _t?_t._module:!1},Rt.traceIs=function(St,_t){if(St=mt(St),St==="various")return!1;var Mt=Rt.modules[St];return Mt||(St&&it.log("Unrecognized trace type "+St+"."),Mt=Rt.modules[ht.type.dflt]),!!Mt.categories[_t]},Rt.getTransformIndices=function(St,_t){for(var Mt=[],Et=St.transforms||[],kt=0;kt-1}Ct.exports=function(j,_){var rt,tt=j.data,st=j.layout,ot=Tt([],tt),nt=Tt({},st,yt(_.tileClass)),vt=j._context||{};if(_.width&&(nt.width=_.width),_.height&&(nt.height=_.height),_.tileClass==="thumbnail"||_.tileClass==="themes__thumb"){nt.annotations=[];var dt=Object.keys(nt);for(rt=0;rt")!==-1?"":st.html(nt).text()});return st.remove(),ot}function rt(tt){return tt.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}Ct.exports=function(st,ot,nt){var vt=st._fullLayout,dt=vt._paper,bt=vt._toppaper,ft=vt.width,at=vt.height,mt;dt.insert("rect",":first-child").call(et.setRect,0,0,ft,at).call(Tt.fill,vt.paper_bgcolor);var St=vt._basePlotModules||[];for(mt=0;mtHt+$t||!it(Ut))}for(var Xt=0;Xt=0)return vt}else if(typeof vt=="string"&&(vt=vt.trim(),vt.slice(-1)==="%"&&it(vt.slice(0,-1))&&(vt=+vt.slice(0,-1),vt>=0)))return vt+"%"}function nt(vt,dt,bt,ft,at,mt){mt=mt||{};var St=mt.moduleHasSelected!==!1,_t=mt.moduleHasUnselected!==!1,Mt=mt.moduleHasConstrain!==!1,Et=mt.moduleHasCliponaxis!==!1,kt=mt.moduleHasTextangle!==!1,wt=mt.moduleHasInsideanchor!==!1,ct=!!mt.hasPathbar,It=Array.isArray(at)||at==="auto",At=It||at==="inside",Ot=It||at==="outside";if(At||Ot){var Pt=rt(ft,"textfont",bt.font),zt=xt.extendFlat({},Pt),Dt=vt.textfont&&vt.textfont.color,Nt=!Dt;if(Nt&&delete zt.color,rt(ft,"insidetextfont",zt),ct){var $t=xt.extendFlat({},Pt);Nt&&delete $t.color,rt(ft,"pathbar.textfont",$t)}Ot&&rt(ft,"outsidetextfont",Pt),St&&ft("selected.textfont.color"),_t&&ft("unselected.textfont.color"),Mt&&ft("constraintext"),Et&&ft("cliponaxis"),kt&&ft("textangle"),ft("texttemplate")}At&&wt&&ft("insidetextanchor")}Ct.exports={supplyDefaults:tt,crossTraceDefaults:st,handleText:nt,validateCornerradius:ot}},52160:function(Ct){Ct.exports=function(o,it,xt){return o.x="xVal"in it?it.xVal:it.x,o.y="yVal"in it?it.yVal:it.y,it.xa&&(o.xaxis=it.xa),it.ya&&(o.yaxis=it.ya),xt.orientation==="h"?(o.label=o.y,o.value=o.x):(o.label=o.x,o.value=o.y),o}},60444:function(Ct,Rt,o){var it=o(38248),xt=o(49760),et=o(3400).isArrayOrTypedArray;Rt.coerceString=function(Tt,yt,ut){if(typeof yt=="string"){if(yt||!Tt.noBlank)return yt}else if((typeof yt=="number"||yt===!0)&&!Tt.strict)return String(yt);return ut!==void 0?ut:Tt.dflt},Rt.coerceNumber=function(Tt,yt,ut){if(it(yt)){yt=+yt;var ht=Tt.min,j=Tt.max,_=ht!==void 0&&ytj;if(!_)return yt}return ut!==void 0?ut:Tt.dflt},Rt.coerceColor=function(Tt,yt,ut){return xt(yt).isValid()?yt:ut!==void 0?ut:Tt.dflt},Rt.coerceEnumerated=function(Tt,yt,ut){return Tt.coerceNumber&&(yt=+yt),Tt.values.indexOf(yt)!==-1?yt:ut!==void 0?ut:Tt.dflt},Rt.getValue=function(Tt,yt){var ut;return et(Tt)?yt0?mr+=Ar:Et<0&&(mr-=Ar)}return mr}function lr(cr){var mr=Et,Ar=cr.b,br=er(cr);return it.inbox(Ar-mr,br-mr,St+(br-mr)/(br-Ar)-1)}function Jt(cr){var mr=Et,Ar=cr.b,br=er(cr);return it.inbox(Ar-mr,br-mr,_t+(br-mr)/(br-Ar)-1)}var Yt=tt[kt+"a"],rr=tt[wt+"a"];At=Math.abs(Yt.r2c(Yt.range[1])-Yt.r2c(Yt.range[0]));function jt(cr){return(ct(cr)+It(cr))/2}var ar=it.getDistanceFunction(nt,ct,It,jt);if(it.getClosest(dt,ar,tt),tt.index!==!1&&dt[tt.index].p!==ht){Pt||(Ut=function(cr){return Math.min(zt(cr),cr.p-ft.bargroupwidth/2)},Ht=function(cr){return Math.max(Dt(cr),cr.p+ft.bargroupwidth/2)});var sr=tt.index,Zt=dt[sr],Kt=bt.base?Zt.b+Zt.s:Zt.s;tt[wt+"0"]=tt[wt+"1"]=rr.c2p(Zt[wt],!0),tt[wt+"LabelVal"]=Kt;var or=ft.extents[ft.extents.round(Zt.p)];tt[kt+"0"]=Yt.c2p(at?Ut(Zt):or[0],!0),tt[kt+"1"]=Yt.c2p(at?Ht(Zt):or[1],!0);var tr=Zt.orig_p!==void 0;return tt[kt+"LabelVal"]=tr?Zt.orig_p:Zt.p,tt.labelLabel=ut(Yt,tt[kt+"LabelVal"],bt[kt+"hoverformat"]),tt.valueLabel=ut(rr,tt[wt+"LabelVal"],bt[wt+"hoverformat"]),tt.baseLabel=ut(rr,Zt.b,bt[wt+"hoverformat"]),tt.spikeDistance=(Jt(Zt)+qt(Zt))/2,tt[kt+"Spike"]=Yt.c2p(Zt.p,!0),Tt(Zt,bt,tt),tt.hovertemplate=bt.hovertemplate,tt}}function rt(tt,st){var ot=st.mcc||tt.marker.color,nt=st.mlcc||tt.marker.line.color,vt=yt(tt,st);if(et.opacity(ot))return ot;if(et.opacity(nt)&&vt)return nt}Ct.exports={hoverPoints:j,hoverOnBars:_,getTraceColor:rt}},51132:function(Ct,Rt,o){Ct.exports={attributes:o(20832),layoutAttributes:o(39324),supplyDefaults:o(31508).supplyDefaults,crossTraceDefaults:o(31508).crossTraceDefaults,supplyLayoutDefaults:o(37156),calc:o(71820),crossTraceCalc:o(96376).crossTraceCalc,colorbar:o(5528),arraysToCalcdata:o(84664),plot:o(98184).plot,style:o(60100).style,styleOnSelect:o(60100).styleOnSelect,hoverPoints:o(63400).hoverPoints,eventData:o(52160),selectPoints:o(45784),moduleType:"trace",name:"bar",basePlotModule:o(57952),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}},39324:function(Ct){Ct.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}},37156:function(Ct,Rt,o){var it=o(24040),xt=o(54460),et=o(3400),Tt=o(39324),yt=o(31508).validateCornerradius;Ct.exports=function(ut,ht,j){function _(mt,St){return et.coerce(ut,ht,Tt,mt,St)}for(var rt=!1,tt=!1,st=!1,ot={},nt=_("barmode"),vt=0;vt0)-(Xt<0)}function Mt(Xt,qt){return Xt0}function ct(Xt,qt,er,lr,Jt,Yt){var rr=qt.xaxis,jt=qt.yaxis,ar=Xt._fullLayout,sr=Xt._context.staticPlot;Jt||(Jt={mode:ar.barmode,norm:ar.barmode,gap:ar.bargap,groupgap:ar.bargroupgap},tt("bar",ar));var Zt=et.makeTraceGroups(lr,er,"trace bars").each(function(Kt){var or=it.select(this),tr=Kt[0].trace,cr=Kt[0].t,mr=tr.type==="waterfall",Ar=tr.type==="funnel",br=tr.type==="histogram",Ir=tr.type==="bar",Tr=Ir||Ar,_r=0;mr&&tr.connector.visible&&tr.connector.mode==="between"&&(_r=tr.connector.line.width/2);var Er=tr.orientation==="h",Rr=wt(Jt),zr=et.ensureSingle(or,"g","points"),Or=St(tr),kr=zr.selectAll("g.point").data(et.identity,Or);kr.enter().append("g").classed("point",!0),kr.exit().remove(),kr.each(function(Qr,sn){var un=it.select(this),en=Et(Qr,rr,jt,Er),Xr=en[0][0],ln=en[0][1],mn=en[1][0],pn=en[1][1],Tn=(Er?ln-Xr:pn-mn)===0;Tn&&Tr&&ot.getLineWidth(tr,Qr)&&(Tn=!1),Tn||(Tn=!xt(Xr)||!xt(ln)||!xt(mn)||!xt(pn)),Qr.isBlank=Tn,Tn&&(Er?ln=Xr:pn=mn),_r&&!Tn&&(Er?(Xr-=Mt(Xr,ln)*_r,ln+=Mt(Xr,ln)*_r):(mn-=Mt(mn,pn)*_r,pn+=Mt(mn,pn)*_r));var Zr,Fr;if(tr.type==="waterfall"){if(!Tn){var Ur=tr[Qr.dir].marker;Zr=Ur.line.width,Fr=Ur.color}}else Zr=ot.getLineWidth(tr,Qr),Fr=Qr.mc||tr.marker.color;function Wr(hn){var wn=it.round(Zr/2%1,2);return Jt.gap===0&&Jt.groupgap===0?it.round(Math.round(hn)-wn,2):hn}function Gr(hn,wn,In){return In&&hn===wn?hn:Math.abs(hn-wn)>=2?Wr(hn):hn>wn?Math.ceil(hn):Math.floor(hn)}var wr=yt.opacity(Fr),pr=wr<1||Zr>.01?Wr:Gr;Xt._context.staticPlot||(Xr=pr(Xr,ln,Er),ln=pr(ln,Xr,Er),mn=pr(mn,pn,!Er),pn=pr(pn,mn,!Er));var Dr=Er?rr.c2p:jt.c2p,Sr;Qr.s0>0?Sr=Qr._sMax:Qr.s0<0?Sr=Qr._sMin:Sr=Qr.s1>0?Qr._sMax:Qr._sMin;function ur(hn,wn){if(!hn)return 0;var In=Math.abs(Er?pn-mn:ln-Xr),Ln=Math.abs(Er?ln-Xr:pn-mn),Xn=pr(Math.abs(Dr(Sr,!0)-Dr(0,!0))),Wn=Qr.hasB?Math.min(In/2,Ln/2):Math.min(In/2,Xn),Vn;if(wn==="%"){var ga=Math.min(50,hn);Vn=In*(ga/100)}else Vn=hn;return pr(Math.max(Math.min(Vn,Wn),0))}var xr=Ir||br?ur(cr.cornerradiusvalue,cr.cornerradiusform):0,Pr,Vr,qr="M"+Xr+","+mn+"V"+pn+"H"+ln+"V"+mn+"Z",rn=0;if(xr&&Qr.s){var Cn=_t(Qr.s0)===0||_t(Qr.s)===_t(Qr.s0)?Qr.s1:Qr.s0;if(rn=pr(Qr.hasB?0:Math.abs(Dr(Sr,!0)-Dr(Cn,!0))),rn0?Math.sqrt(rn*(2*xr-rn)):0,yn=xn>0?Math.max:Math.min;Pr="M"+Xr+","+mn+"V"+(pn-Un*fn)+"H"+yn(ln-(xr-rn)*xn,Xr)+"A "+xr+","+xr+" 0 0 "+bn+" "+ln+","+(pn-xr*fn-_i)+"V"+(mn+xr*fn+_i)+"A "+xr+","+xr+" 0 0 "+bn+" "+yn(ln-(xr-rn)*xn,Xr)+","+(mn+Un*fn)+"Z"}else if(Qr.hasB)Pr="M"+(Xr+xr*xn)+","+mn+"A "+xr+","+xr+" 0 0 "+bn+" "+Xr+","+(mn+xr*fn)+"V"+(pn-xr*fn)+"A "+xr+","+xr+" 0 0 "+bn+" "+(Xr+xr*xn)+","+pn+"H"+(ln-xr*xn)+"A "+xr+","+xr+" 0 0 "+bn+" "+ln+","+(pn-xr*fn)+"V"+(mn+xr*fn)+"A "+xr+","+xr+" 0 0 "+bn+" "+(ln-xr*xn)+","+mn+"Z";else{Vr=Math.abs(pn-mn)+rn;var Kn=Vr0?Math.sqrt(rn*(2*xr-rn)):0,so=fn>0?Math.max:Math.min;Pr="M"+(Xr+Kn*xn)+","+mn+"V"+so(pn-(xr-rn)*fn,mn)+"A "+xr+","+xr+" 0 0 "+bn+" "+(Xr+xr*xn-Jn)+","+pn+"H"+(ln-xr*xn+Jn)+"A "+xr+","+xr+" 0 0 "+bn+" "+(ln-Kn*xn)+","+so(pn-(xr-rn)*fn,mn)+"V"+mn+"Z"}}else Pr=qr}else Pr=qr;var ba=kt(et.ensureSingle(un,"path"),ar,Jt,Yt);if(ba.style("vector-effect",sr?"none":"non-scaling-stroke").attr("d",isNaN((ln-Xr)*(pn-mn))||Tn&&Xt._context.staticPlot?"M0,0Z":Pr).call(ut.setClipUrl,qt.layerClipId,Xt),!ar.uniformtext.mode&&Rr){var An=ut.makePointStyleFns(tr);ut.singlePointStyle(Qr,ba,tr,An,Xt)}It(Xt,qt,un,Kt,sn,Xr,ln,mn,pn,xr,rn,Jt,Yt),qt.layerClipId&&ut.hideOutsideRangePoint(Qr,un.select("text"),rr,jt,tr.xcalendar,tr.ycalendar)});var Nr=tr.cliponaxis===!1;ut.setClipUrl(or,Nr?null:qt.layerClipId,Xt)});ht.getComponentMethod("errorbars","plot")(Xt,Zt,qt,Jt)}function It(Xt,qt,er,lr,Jt,Yt,rr,jt,ar,sr,Zt,Kt,or){var tr=qt.xaxis,cr=qt.yaxis,mr=Xt._fullLayout,Ar;function br(Vr,qr,rn){var Cn=et.ensureSingle(Vr,"text").text(qr).attr({class:"bartext bartext-"+Ar,"text-anchor":"middle","data-notex":1}).call(ut.font,rn).call(Tt.convertToTspans,Xt);return Cn}var Ir=lr[0].trace,Tr=Ir.orientation==="h",_r=$t(mr,lr,Jt,tr,cr);Ar=Ut(Ir,Jt);var Er=Kt.mode==="stack"||Kt.mode==="relative",Rr=lr[Jt],zr=!Er||Rr._outmost,Or=Rr.hasB,kr=sr&&sr-Zt>at;if(!_r||Ar==="none"||(Rr.isBlank||Yt===rr||jt===ar)&&(Ar==="auto"||Ar==="inside")){er.select("text").remove();return}var Nr=mr.font,Qr=st.getBarColor(lr[Jt],Ir),sn=st.getInsideTextFont(Ir,Jt,Nr,Qr),un=st.getOutsideTextFont(Ir,Jt,Nr),en=Ir.insidetextanchor||"end",Xr=er.datum();Tr?tr.type==="log"&&Xr.s0<=0&&(tr.range[0]0&&Wr>0,pr;kr?Or?pr=At(pn-2*sr,Tn,Ur,Wr,Tr)||At(pn,Tn-2*sr,Ur,Wr,Tr):Tr?pr=At(pn-(sr-Zt),Tn,Ur,Wr,Tr)||At(pn,Tn-2*(sr-Zt),Ur,Wr,Tr):pr=At(pn,Tn-(sr-Zt),Ur,Wr,Tr)||At(pn-2*(sr-Zt),Tn,Ur,Wr,Tr):pr=At(pn,Tn,Ur,Wr,Tr),wr&&pr?Ar="inside":(Ar="outside",Zr.remove(),Zr=null)}else Ar="inside";if(!Zr){Gr=et.ensureUniformFontSize(Xt,Ar==="outside"?un:sn),Zr=br(er,_r,Gr);var Dr=Zr.attr("transform");if(Zr.attr("transform",""),Fr=ut.bBox(Zr.node()),Ur=Fr.width,Wr=Fr.height,Zr.attr("transform",Dr),Ur<=0||Wr<=0){Zr.remove();return}}var Sr=Ir.textangle,ur,xr;Ar==="outside"?(xr=Ir.constraintext==="both"||Ir.constraintext==="outside",ur=Nt(Yt,rr,jt,ar,Fr,{isHorizontal:Tr,constrained:xr,angle:Sr})):(xr=Ir.constraintext==="both"||Ir.constraintext==="inside",ur=zt(Yt,rr,jt,ar,Fr,{isHorizontal:Tr,constrained:xr,angle:Sr,anchor:en,hasB:Or,r:sr,overhead:Zt})),ur.fontSize=Gr.size,rt(Ir.type==="histogram"?"bar":Ir.type,ur,mr),Rr.transform=ur;var Pr=kt(Zr,mr,Kt,or);et.setTransormAndDisplay(Pr,ur)}function At(Xt,qt,er,lr,Jt){if(Xt<0||qt<0)return!1;var Yt=er<=Xt&&lr<=qt,rr=er<=qt&&lr<=Xt,jt=Jt?Xt>=er*(qt/lr):qt>=lr*(Xt/er);return Yt||rr||jt}function Ot(Xt){return Xt==="auto"?0:Xt}function Pt(Xt,qt){var er=Math.PI/180*qt,lr=Math.abs(Math.sin(er)),Jt=Math.abs(Math.cos(er));return{x:Xt.width*Jt+Xt.height*lr,y:Xt.width*lr+Xt.height*Jt}}function zt(Xt,qt,er,lr,Jt,Yt){var rr=!!Yt.isHorizontal,jt=!!Yt.constrained,ar=Yt.angle||0,sr=Yt.anchor,Zt=sr==="end",Kt=sr==="start",or=Yt.leftToRight||0,tr=(or+1)/2,cr=1-tr,mr=Yt.hasB,Ar=Yt.r,br=Yt.overhead,Ir=Jt.width,Tr=Jt.height,_r=Math.abs(qt-Xt),Er=Math.abs(lr-er),Rr=_r>2*at&&Er>2*at?at:0;_r-=2*Rr,Er-=2*Rr;var zr=Ot(ar);ar==="auto"&&!(Ir<=_r&&Tr<=Er)&&(Ir>_r||Tr>Er)&&(!(Ir>Er||Tr>_r)||Irat){var Qr=Dt(Xt,qt,er,lr,Or,Ar,br,rr,mr);kr=Qr.scale,Nr=Qr.pad}else kr=1,jt&&(kr=Math.min(1,_r/Or.x,Er/Or.y)),Nr=0;var sn=Jt.left*cr+Jt.right*tr,un=(Jt.top+Jt.bottom)/2,en=(Xt+at)*cr+(qt-at)*tr,Xr=(er+lr)/2,ln=0,mn=0;if(Kt||Zt){var pn=(rr?Or.x:Or.y)/2;Ar&&(Zt||mr)&&(Rr+=Nr);var Tn=rr?Mt(Xt,qt):Mt(er,lr);rr?Kt?(en=Xt+Tn*Rr,ln=-Tn*pn):(en=qt-Tn*Rr,ln=Tn*pn):Kt?(Xr=er+Tn*Rr,mn=-Tn*pn):(Xr=lr-Tn*Rr,mn=Tn*pn)}return{textX:sn,textY:un,targetX:en,targetY:Xr,anchorX:ln,anchorY:mn,scale:kr,rotate:zr}}function Dt(Xt,qt,er,lr,Jt,Yt,rr,jt,ar){var sr=Math.max(0,Math.abs(qt-Xt)-2*at),Zt=Math.max(0,Math.abs(lr-er)-2*at),Kt=Yt-at,or=rr?Kt-Math.sqrt(Kt*Kt-(Kt-rr)*(Kt-rr)):Kt,tr=ar?Kt*2:jt?Kt-rr:2*or,cr=ar?Kt*2:jt?2*or:Kt-rr,mr,Ar,br,Ir,Tr;return Jt.y/Jt.x>=Zt/(sr-tr)?Ir=Zt/Jt.y:Jt.y/Jt.x<=(Zt-cr)/sr?Ir=sr/Jt.x:!ar&&jt?(mr=Jt.x*Jt.x+Jt.y*Jt.y/4,Ar=-2*Jt.x*(sr-Kt)-Jt.y*(Zt/2-Kt),br=(sr-Kt)*(sr-Kt)+(Zt/2-Kt)*(Zt/2-Kt)-Kt*Kt,Ir=(-Ar+Math.sqrt(Ar*Ar-4*mr*br))/(2*mr)):ar?(mr=(Jt.x*Jt.x+Jt.y*Jt.y)/4,Ar=-Jt.x*(sr/2-Kt)-Jt.y*(Zt/2-Kt),br=(sr/2-Kt)*(sr/2-Kt)+(Zt/2-Kt)*(Zt/2-Kt)-Kt*Kt,Ir=(-Ar+Math.sqrt(Ar*Ar-4*mr*br))/(2*mr)):(mr=Jt.x*Jt.x/4+Jt.y*Jt.y,Ar=-Jt.x*(sr/2-Kt)-2*Jt.y*(Zt-Kt),br=(sr/2-Kt)*(sr/2-Kt)+(Zt-Kt)*(Zt-Kt)-Kt*Kt,Ir=(-Ar+Math.sqrt(Ar*Ar-4*mr*br))/(2*mr)),Ir=Math.min(1,Ir),jt?Tr=Math.max(0,Kt-Math.sqrt(Math.max(0,Kt*Kt-(Kt-(Zt-Jt.y*Ir)/2)*(Kt-(Zt-Jt.y*Ir)/2)))-rr):Tr=Math.max(0,Kt-Math.sqrt(Math.max(0,Kt*Kt-(Kt-(sr-Jt.x*Ir)/2)*(Kt-(sr-Jt.x*Ir)/2)))-rr),{scale:Ir,pad:Tr}}function Nt(Xt,qt,er,lr,Jt,Yt){var rr=!!Yt.isHorizontal,jt=!!Yt.constrained,ar=Yt.angle||0,sr=Jt.width,Zt=Jt.height,Kt=Math.abs(qt-Xt),or=Math.abs(lr-er),tr;rr?tr=or>2*at?at:0:tr=Kt>2*at?at:0;var cr=1;jt&&(cr=rr?Math.min(1,or/Zt):Math.min(1,Kt/sr));var mr=Ot(ar),Ar=Pt(Jt,mr),br=(rr?Ar.x:Ar.y)/2,Ir=(Jt.left+Jt.right)/2,Tr=(Jt.top+Jt.bottom)/2,_r=(Xt+qt)/2,Er=(er+lr)/2,Rr=0,zr=0,Or=rr?Mt(qt,Xt):Mt(er,lr);return rr?(_r=qt-Or*tr,Rr=Or*br):(Er=lr+Or*tr,zr=-Or*br),{textX:Ir,textY:Tr,targetX:_r,targetY:Er,anchorX:Rr,anchorY:zr,scale:cr,rotate:mr}}function $t(Xt,qt,er,lr,Jt){var Yt=qt[0].trace,rr=Yt.texttemplate,jt;return rr?jt=Ht(Xt,qt,er,lr,Jt):Yt.textinfo?jt=Vt(qt,er,lr,Jt):jt=ot.getValue(Yt.text,er),ot.coerceString(dt,jt)}function Ut(Xt,qt){var er=ot.getValue(Xt.textposition,qt);return ot.coerceEnumerated(bt,er)}function Ht(Xt,qt,er,lr,Jt){var Yt=qt[0].trace,rr=et.castOption(Yt,er,"texttemplate");if(!rr)return"";var jt=Yt.type==="histogram",ar=Yt.type==="waterfall",sr=Yt.type==="funnel",Zt=Yt.orientation==="h",Kt,or,tr,cr;Zt?(Kt="y",or=Jt,tr="x",cr=lr):(Kt="x",or=lr,tr="y",cr=Jt);function mr(Rr){return j(or,or.c2l(Rr),!0).text}function Ar(Rr){return j(cr,cr.c2l(Rr),!0).text}var br=qt[er],Ir={};Ir.label=br.p,Ir.labelLabel=Ir[Kt+"Label"]=mr(br.p);var Tr=et.castOption(Yt,br.i,"text");(Tr===0||Tr)&&(Ir.text=Tr),Ir.value=br.s,Ir.valueLabel=Ir[tr+"Label"]=Ar(br.s);var _r={};ft(_r,Yt,br.i),(jt||_r.x===void 0)&&(_r.x=Zt?Ir.value:Ir.label),(jt||_r.y===void 0)&&(_r.y=Zt?Ir.label:Ir.value),(jt||_r.xLabel===void 0)&&(_r.xLabel=Zt?Ir.valueLabel:Ir.labelLabel),(jt||_r.yLabel===void 0)&&(_r.yLabel=Zt?Ir.labelLabel:Ir.valueLabel),ar&&(Ir.delta=+br.rawS||br.s,Ir.deltaLabel=Ar(Ir.delta),Ir.final=br.v,Ir.finalLabel=Ar(Ir.final),Ir.initial=Ir.final-Ir.delta,Ir.initialLabel=Ar(Ir.initial)),sr&&(Ir.value=br.s,Ir.valueLabel=Ar(Ir.value),Ir.percentInitial=br.begR,Ir.percentInitialLabel=et.formatPercent(br.begR),Ir.percentPrevious=br.difR,Ir.percentPreviousLabel=et.formatPercent(br.difR),Ir.percentTotal=br.sumR,Ir.percenTotalLabel=et.formatPercent(br.sumR));var Er=et.castOption(Yt,br.i,"customdata");return Er&&(Ir.customdata=Er),et.texttemplateString(rr,Ir,Xt._d3locale,_r,Ir,Yt._meta||{})}function Vt(Xt,qt,er,lr){var Jt=Xt[0].trace,Yt=Jt.orientation==="h",rr=Jt.type==="waterfall",jt=Jt.type==="funnel";function ar(Er){var Rr=Yt?lr:er;return j(Rr,Er,!0).text}function sr(Er){var Rr=Yt?er:lr;return j(Rr,+Er,!0).text}var Zt=Jt.textinfo,Kt=Xt[qt],or=Zt.split("+"),tr=[],cr,mr=function(Er){return or.indexOf(Er)!==-1};if(mr("label")&&tr.push(ar(Xt[qt].p)),mr("text")&&(cr=et.castOption(Jt,Kt.i,"text"),(cr===0||cr)&&tr.push(cr)),rr){var Ar=+Kt.rawS||Kt.s,br=Kt.v,Ir=br-Ar;mr("initial")&&tr.push(sr(Ir)),mr("delta")&&tr.push(sr(Ar)),mr("final")&&tr.push(sr(br))}if(jt){mr("value")&&tr.push(sr(Kt.s));var Tr=0;mr("percent initial")&&Tr++,mr("percent previous")&&Tr++,mr("percent total")&&Tr++;var _r=Tr>1;mr("percent initial")&&(cr=et.formatPercent(Kt.begR),_r&&(cr+=" of initial"),tr.push(cr)),mr("percent previous")&&(cr=et.formatPercent(Kt.difR),_r&&(cr+=" of previous"),tr.push(cr)),mr("percent total")&&(cr=et.formatPercent(Kt.sumR),_r&&(cr+=" of total"),tr.push(cr))}return tr.join("
")}Ct.exports={plot:ct,toMoveInsideBar:zt}},45784:function(Ct){Ct.exports=function(it,xt){var et=it.cd,Tt=it.xaxis,yt=it.yaxis,ut=et[0].trace,ht=ut.type==="funnel",j=ut.orientation==="h",_=[],rt;if(xt===!1)for(rt=0;rt1||ct.bargap===0&&ct.bargroupgap===0&&!It[0].trace.marker.line.width)&&it.select(this).attr("shape-rendering","crispEdges")}),kt.selectAll("g.points").each(function(It){var At=it.select(this),Ot=It[0].trace;ot(At,Ot,Et)}),yt.getComponentMethod("errorbars","style")(kt)}function ot(Et,kt,wt){et.pointStyle(Et.selectAll("path"),kt,wt),nt(Et,kt,wt)}function nt(Et,kt,wt){Et.selectAll("text").each(function(ct){var It=it.select(this),At=Tt.ensureUniformFontSize(wt,ft(It,ct,kt,wt));et.font(It,At)})}function vt(Et,kt,wt){var ct=kt[0].trace;ct.selectedpoints?dt(wt,ct,Et):(ot(wt,ct,Et),yt.getComponentMethod("errorbars","style")(wt))}function dt(Et,kt,wt){et.selectedPointStyle(Et.selectAll("path"),kt),bt(Et.selectAll("text"),kt,wt)}function bt(Et,kt,wt){Et.each(function(ct){var It=it.select(this),At;if(ct.selected){At=Tt.ensureUniformFontSize(wt,ft(It,ct,kt,wt));var Ot=kt.selected.textfont&&kt.selected.textfont.color;Ot&&(At.color=Ot),et.font(It,At)}else et.selectedTextStyle(It,kt)})}function ft(Et,kt,wt,ct){var It=ct._fullLayout.font,At=wt.textfont;if(Et.classed("bartext-inside")){var Ot=Mt(kt,wt);At=mt(wt,kt.i,It,Ot)}else Et.classed("bartext-outside")&&(At=St(wt,kt.i,It));return At}function at(Et,kt,wt){return _t(j,Et.textfont,kt,wt)}function mt(Et,kt,wt,ct){var It=at(Et,kt,wt),At=Et._input.textfont===void 0||Et._input.textfont.color===void 0||Array.isArray(Et.textfont.color)&&Et.textfont.color[kt]===void 0;return At&&(It={color:xt.contrast(ct),family:It.family,size:It.size,weight:It.weight,style:It.style,variant:It.variant}),_t(_,Et.insidetextfont,kt,It)}function St(Et,kt,wt){var ct=at(Et,kt,wt);return _t(rt,Et.outsidetextfont,kt,ct)}function _t(Et,kt,wt,ct){kt=kt||{};var It=tt.getValue(kt.family,wt),At=tt.getValue(kt.size,wt),Ot=tt.getValue(kt.color,wt),Pt=tt.getValue(kt.weight,wt),zt=tt.getValue(kt.style,wt),Dt=tt.getValue(kt.variant,wt);return{family:tt.coerceString(Et.family,It,ct.family),size:tt.coerceNumber(Et.size,At,ct.size),color:tt.coerceColor(Et.color,Ot,ct.color),weight:tt.coerceString(Et.weight,Pt,ct.weight),style:tt.coerceString(Et.style,zt,ct.style),variant:tt.coerceString(Et.variant,Dt,ct.variant)}}function Mt(Et,kt){return kt.type==="waterfall"?kt[Et.dir].marker.color:Et.mcc||Et.mc||kt.marker.color}Ct.exports={style:st,styleTextPoints:nt,styleOnSelect:vt,getInsideTextFont:mt,getOutsideTextFont:St,getBarColor:Mt,resizeText:ut}},55592:function(Ct,Rt,o){var it=o(76308),xt=o(94288).hasColorscale,et=o(27260),Tt=o(3400).coercePattern;Ct.exports=function(ut,ht,j,_,rt){var tt=j("marker.color",_),st=xt(ut,"marker");st&&et(ut,ht,rt,j,{prefix:"marker.",cLetter:"c"}),j("marker.line.color",it.defaultLine),xt(ut,"marker.line")&&et(ut,ht,rt,j,{prefix:"marker.line.",cLetter:"c"}),j("marker.line.width"),j("marker.opacity"),Tt(j,"marker.pattern",tt,st),j("selected.marker.color"),j("unselected.marker.color")}},82744:function(Ct,Rt,o){var it=o(33428),xt=o(3400);function et(ht,j,_){var rt=ht._fullLayout,tt=rt["_"+_+"Text_minsize"];if(tt){var st=rt.uniformtext.mode==="hide",ot;switch(_){case"funnelarea":case"pie":case"sunburst":ot="g.slice";break;case"treemap":case"icicle":ot="g.slice, g.pathbar";break;default:ot="g.points > g.point"}j.selectAll(ot).each(function(nt){var vt=nt.transform;if(vt){vt.scale=st&&vt.hide?0:tt/vt.fontSize;var dt=it.select(this).select("text");xt.setTransormAndDisplay(dt,vt)}})}}function Tt(ht,j,_){if(_.uniformtext.mode){var rt=ut(ht),tt=_.uniformtext.minsize,st=j.scale*j.fontSize;j.hide=stnt.range[1]&&(St+=Math.PI);var _t=function(wt){return bt(mt,St,[wt.rp0,wt.rp1],[wt.thetag0,wt.thetag1],dt)?ft+Math.min(1,Math.abs(wt.thetag1-wt.thetag0)/at)-1+(wt.rp1-mt)/(wt.rp1-wt.rp0)-1:1/0};if(it.getClosest(tt,_t,j),j.index!==!1){var Mt=j.index,Et=tt[Mt];j.x0=j.x1=Et.ct[0],j.y0=j.y1=Et.ct[1];var kt=xt.extendFlat({},Et,{r:Et.s,theta:Et.p});return Tt(Et,st,j),yt(kt,st,ot,j),j.hovertemplate=st.hovertemplate,j.color=et(st,Et),j.xLabelVal=j.yLabelVal=void 0,Et.s<0&&(j.idealAlign="left"),[j]}}},94456:function(Ct,Rt,o){Ct.exports={moduleType:"trace",name:"barpolar",basePlotModule:o(40872),categories:["polar","bar","showLegend"],attributes:o(78100),layoutAttributes:o(9320),supplyDefaults:o(70384),supplyLayoutDefaults:o(89580),calc:o(47056).calc,crossTraceCalc:o(47056).crossTraceCalc,plot:o(42040),colorbar:o(5528),formatLabels:o(22852),style:o(60100).style,styleOnSelect:o(60100).styleOnSelect,hoverPoints:o(68896),selectPoints:o(45784),meta:{}}},9320:function(Ct){Ct.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc"},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc"}}},89580:function(Ct,Rt,o){var it=o(3400),xt=o(9320);Ct.exports=function(et,Tt,yt){var ut={},ht;function j(tt,st){return it.coerce(et[ht]||{},Tt[ht],xt,tt,st)}for(var _=0;_0?(nt=st,vt=ot):(nt=ot,vt=st);var dt=yt.findEnclosingVertexAngles(nt,ht.vangles)[0],bt=yt.findEnclosingVertexAngles(vt,ht.vangles)[1],ft=[dt,(nt+vt)/2,bt];return yt.pathPolygonAnnulus(rt,tt,nt,vt,ft,j,_)}:function(rt,tt,st,ot){return et.pathAnnulus(rt,tt,st,ot,j,_)}}},63188:function(Ct,Rt,o){var it=o(98304),xt=o(52904),et=o(20832),Tt=o(22548),yt=o(29736).axisHoverFormat,ut=o(21776).Ks,ht=o(92880).extendFlat,j=xt.marker,_=j.line;Ct.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:xt.xperiod,yperiod:xt.yperiod,xperiod0:xt.xperiod0,yperiod0:xt.yperiod0,xperiodalignment:xt.xperiodalignment,yperiodalignment:xt.yperiodalignment,xhoverformat:yt("x"),yhoverformat:yt("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:ht({},j.symbol,{arrayOk:!1,editType:"plot"}),opacity:ht({},j.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:ht({},j.angle,{arrayOk:!1,editType:"calc"}),size:ht({},j.size,{arrayOk:!1,editType:"calc"}),color:ht({},j.color,{arrayOk:!1,editType:"style"}),line:{color:ht({},_.color,{arrayOk:!1,dflt:Tt.defaultLine,editType:"style"}),width:ht({},_.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:it(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:et.offsetgroup,alignmentgroup:et.alignmentgroup,selected:{marker:xt.selected.marker,editType:"style"},unselected:{marker:xt.unselected.marker,editType:"style"},text:ht({},xt.text,{}),hovertext:ht({},xt.hovertext,{}),hovertemplate:ut({}),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:xt.zorder}},62555:function(Ct,Rt,o){var it=o(38248),xt=o(54460),et=o(1220),Tt=o(3400),yt=o(39032).BADNUM,ut=Tt._;Ct.exports=function(St,_t){var Mt=St._fullLayout,Et=xt.getFromId(St,_t.xaxis||"x"),kt=xt.getFromId(St,_t.yaxis||"y"),wt=[],ct=_t.type==="violin"?"_numViolins":"_numBoxes",It,At,Ot,Pt,zt,Dt,Nt;_t.orientation==="h"?(Ot=Et,Pt="x",zt=kt,Dt="y",Nt=!!_t.yperiodalignment):(Ot=kt,Pt="y",zt=Et,Dt="x",Nt=!!_t.xperiodalignment);var $t=ht(_t,Dt,zt,Mt[ct]),Ut=$t[0],Ht=$t[1],Vt=Tt.distinctVals(Ut,zt),Xt=Vt.vals,qt=Vt.minDiff/2,er,lr,Jt,Yt,rr,jt,ar=(_t.boxpoints||_t.points)==="all"?Tt.identity:function(Tn){return Tn.ver.uf};if(_t._hasPreCompStats){var sr=_t[Pt],Zt=function(Tn){return Ot.d2c((_t[Tn]||[])[It])},Kt=1/0,or=-1/0;for(It=0;It<_t._length;It++){var tr=Ut[It];if(it(tr)){if(er={},er.pos=er[Dt]=tr,Nt&&Ht&&(er.orig_p=Ht[It]),er.q1=Zt("q1"),er.med=Zt("median"),er.q3=Zt("q3"),lr=[],sr&&Tt.isArrayOrTypedArray(sr[It]))for(At=0;At=er.q1&&er.q3>=er.med){var cr=Zt("lowerfence");er.lf=cr!==yt&&cr<=er.q1?cr:vt(er,Jt,Yt);var mr=Zt("upperfence");er.uf=mr!==yt&&mr>=er.q3?mr:dt(er,Jt,Yt);var Ar=Zt("mean");er.mean=Ar!==yt?Ar:Yt?Tt.mean(Jt,Yt):(er.q1+er.q3)/2;var br=Zt("sd");er.sd=Ar!==yt&&br>=0?br:Yt?Tt.stdev(Jt,Yt,er.mean):er.q3-er.q1,er.lo=bt(er),er.uo=ft(er);var Ir=Zt("notchspan");Ir=Ir!==yt&&Ir>0?Ir:at(er,Yt),er.ln=er.med-Ir,er.un=er.med+Ir;var Tr=er.lf,_r=er.uf;_t.boxpoints&&Jt.length&&(Tr=Math.min(Tr,Jt[0]),_r=Math.max(_r,Jt[Yt-1])),_t.notched&&(Tr=Math.min(Tr,er.ln),_r=Math.max(_r,er.un)),er.min=Tr,er.max=_r}else{Tt.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+er.q1,"median = "+er.med,"q3 = "+er.q3].join(` +`));var Er;er.med!==yt?Er=er.med:er.q1!==yt?er.q3!==yt?Er=(er.q1+er.q3)/2:Er=er.q1:er.q3!==yt?Er=er.q3:Er=0,er.med=Er,er.q1=er.q3=Er,er.lf=er.uf=Er,er.mean=er.sd=Er,er.ln=er.un=Er,er.min=er.max=Er}Kt=Math.min(Kt,er.min),or=Math.max(or,er.max),er.pts2=lr.filter(ar),wt.push(er)}}_t._extremes[Ot._id]=xt.findExtremes(Ot,[Kt,or],{padded:!0})}else{var Rr=Ot.makeCalcdata(_t,Pt),zr=j(Xt,qt),Or=Xt.length,kr=_(Or);for(It=0;It<_t._length;It++)if(jt=Rr[It],!!it(jt)){var Nr=Tt.findBin(Ut[It],zr);Nr>=0&&Nr0){if(er={},er.pos=er[Dt]=Xt[It],lr=er.pts=kr[It].sort(ot),Jt=er[Pt]=lr.map(nt),Yt=Jt.length,er.min=Jt[0],er.max=Jt[Yt-1],er.mean=Tt.mean(Jt,Yt),er.sd=Tt.stdev(Jt,Yt,er.mean)*_t.sdmultiple,er.med=Tt.interp(Jt,.5),Yt%2&&(en||Xr)){var ln,mn;en?(ln=Jt.slice(0,Yt/2),mn=Jt.slice(Yt/2+1)):Xr&&(ln=Jt.slice(0,Yt/2+1),mn=Jt.slice(Yt/2)),er.q1=Tt.interp(ln,.5),er.q3=Tt.interp(mn,.5)}else er.q1=Tt.interp(Jt,.25),er.q3=Tt.interp(Jt,.75);er.lf=vt(er,Jt,Yt),er.uf=dt(er,Jt,Yt),er.lo=bt(er),er.uo=ft(er);var pn=at(er,Yt);er.ln=er.med-pn,er.un=er.med+pn,Qr=Math.min(Qr,er.ln),sn=Math.max(sn,er.un),er.pts2=lr.filter(ar),wt.push(er)}_t.notched&&Tt.isTypedArray(Rr)&&(Rr=Array.from(Rr)),_t._extremes[Ot._id]=xt.findExtremes(Ot,_t.notched?Rr.concat([Qr,sn]):Rr,{padded:!0})}return st(wt,_t),wt.length>0?(wt[0].t={num:Mt[ct],dPos:qt,posLetter:Dt,valLetter:Pt,labels:{med:ut(St,"median:"),min:ut(St,"min:"),q1:ut(St,"q1:"),q3:ut(St,"q3:"),max:ut(St,"max:"),mean:_t.boxmean==="sd"||_t.sizemode==="sd"?ut(St,"mean ± σ:").replace("σ",_t.sdmultiple===1?"σ":_t.sdmultiple+"σ"):ut(St,"mean:"),lf:ut(St,"lower fence:"),uf:ut(St,"upper fence:")}},Mt[ct]++,wt):[{t:{empty:!0}}]};function ht(mt,St,_t,Mt){var Et=St in mt,kt=St+"0"in mt,wt="d"+St in mt;if(Et||kt&&wt){var ct=_t.makeCalcdata(mt,St),It=et(mt,_t,St,ct).vals;return[It,ct]}var At;kt?At=mt[St+"0"]:"name"in mt&&(_t.type==="category"||it(mt.name)&&["linear","log"].indexOf(_t.type)!==-1||Tt.isDateTime(mt.name)&&_t.type==="date")?At=mt.name:At=Mt;for(var Ot=_t.type==="multicategory"?_t.r2c_just_indices(At):_t.d2c(At,0,mt[St+"calendar"]),Pt=mt._length,zt=new Array(Pt),Dt=0;Dt1,kt=1-st[ht+"gap"],wt=1-st[ht+"groupgap"];for(vt=0;vt<_.length;vt++){bt=tt[_[vt]];var ct=bt[0].trace,It=bt[0].t,At=ct.width,Ot=ct.side,Pt,zt,Dt,Nt;if(At)Pt=zt=Nt=At/2,Dt=0;else if(Pt=St,Et){var $t=et(st,rt._id)+ct.orientation,Ut=st._alignmentOpts[$t]||{},Ht=Ut[ct.alignmentgroup]||{},Vt=Object.keys(Ht.offsetGroups||{}).length,Xt=Vt||Mt,qt=Vt?ct._offsetIndex:It.num;zt=Pt*kt*wt/Xt,Dt=2*Pt*(-.5+(qt+.5)/Xt)*kt,Nt=Pt*kt/Xt}else zt=Pt*kt*wt,Dt=0,Nt=Pt;It.dPos=Pt,It.bPos=Dt,It.bdPos=zt,It.wHover=Nt;var er,lr,Jt=Dt+zt,Yt,rr,jt,ar,sr,Zt,Kt=Boolean(At),or=(ct.boxpoints||ct.points)&&at>0;if(Ot==="positive"?(er=Pt*(At?1:.5),Yt=Jt,lr=Yt=Dt):Ot==="negative"?(er=Yt=Dt,lr=Pt*(At?1:.5),rr=Jt):(er=lr=Pt,Yt=rr=Jt),or){var tr=ct.pointpos,cr=ct.jitter,mr=ct.marker.size/2,Ar=0;tr+cr>=0&&(Ar=Jt*(tr+cr),Ar>er?(Kt=!0,sr=mr,jt=Ar):Ar>Yt&&(sr=mr,jt=er)),Ar<=er&&(jt=er);var br=0;tr-cr<=0&&(br=-Jt*(tr-cr),br>lr?(Kt=!0,Zt=mr,ar=br):br>rr&&(Zt=mr,ar=lr)),br<=lr&&(ar=lr)}else jt=er,ar=lr;var Ir=new Array(bt.length);for(dt=0;dt0?(Ot="v",kt>0?Pt=Math.min(ct,wt):Pt=Math.min(wt)):kt>0?(Ot="h",Pt=Math.min(ct)):Pt=0;if(!Pt){ot.visible=!1;return}ot._length=Pt;var Ut=nt("orientation",Ot);ot._hasPreCompStats?Ut==="v"&&kt===0?(nt("x0",0),nt("dx",1)):Ut==="h"&&Et===0&&(nt("y0",0),nt("dy",1)):Ut==="v"&&kt===0?nt("x0"):Ut==="h"&&Et===0&&nt("y0");var Ht=xt.getComponentMethod("calendars","handleTraceDefaults");Ht(st,ot,["x","y"],vt)}function rt(st,ot,nt,vt){var dt=vt.prefix,bt=it.coerce2(st,ot,ht,"marker.outliercolor"),ft=nt("marker.line.outliercolor"),at="outliers";ot._hasPreCompStats?at="all":(bt||ft)&&(at="suspectedoutliers");var mt=nt(dt+"points",at);mt?(nt("jitter",mt==="all"?.3:0),nt("pointpos",mt==="all"?-1.5:0),nt("marker.symbol"),nt("marker.opacity"),nt("marker.size"),nt("marker.angle"),nt("marker.color",ot.line.color),nt("marker.line.color"),nt("marker.line.width"),mt==="suspectedoutliers"&&(nt("marker.line.outliercolor",ot.marker.color),nt("marker.line.outlierwidth")),nt("selected.marker.color"),nt("unselected.marker.color"),nt("selected.marker.size"),nt("unselected.marker.size"),nt("text"),nt("hovertext")):delete ot.marker;var St=nt("hoveron");(St==="all"||St.indexOf("points")!==-1)&&nt("hovertemplate"),it.coerceSelectionMarkerOpacity(ot,nt)}function tt(st,ot){var nt,vt;function dt(at){return it.coerce(vt._input,vt,ht,at)}for(var bt=0;bt_t.lo&&(Ut.so=!0)}return Et});St.enter().append("path").classed("point",!0),St.exit().remove(),St.call(et.translatePoints,nt,vt)}function _(rt,tt,st,ot){var nt=tt.val,vt=tt.pos,dt=!!vt.rangebreaks,bt=ot.bPos,ft=ot.bPosPxOffset||0,at=st.boxmean||(st.meanline||{}).visible,mt,St;Array.isArray(ot.bdPos)?(mt=ot.bdPos[0],St=ot.bdPos[1]):(mt=ot.bdPos,St=ot.bdPos);var _t=rt.selectAll("path.mean").data(st.type==="box"&&st.boxmean||st.type==="violin"&&st.box.visible&&st.meanline.visible?xt.identity:[]);_t.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),_t.exit().remove(),_t.each(function(Mt){var Et=vt.c2l(Mt.pos+bt,!0),kt=vt.l2p(Et-mt)+ft,wt=vt.l2p(Et+St)+ft,ct=dt?(kt+wt)/2:vt.l2p(Et)+ft,It=nt.c2p(Mt.mean,!0),At=nt.c2p(Mt.mean-Mt.sd,!0),Ot=nt.c2p(Mt.mean+Mt.sd,!0);st.orientation==="h"?it.select(this).attr("d","M"+It+","+kt+"V"+wt+(at==="sd"?"m0,0L"+At+","+ct+"L"+It+","+kt+"L"+Ot+","+ct+"Z":"")):it.select(this).attr("d","M"+kt+","+It+"H"+wt+(at==="sd"?"m0,0L"+ct+","+At+"L"+kt+","+It+"L"+ct+","+Ot+"Z":""))})}Ct.exports={plot:ut,plotBoxAndWhiskers:ht,plotPoints:j,plotBoxMean:_}},8264:function(Ct){Ct.exports=function(o,it){var xt=o.cd,et=o.xaxis,Tt=o.yaxis,yt=[],ut,ht;if(it===!1)for(ut=0;ut=10)return null;for(var yt=1/0,ut=-1/0,ht=et.length,j=0;j0?Math.floor:Math.ceil,Nt=Pt>0?Math.ceil:Math.floor,$t=Pt>0?Math.min:Math.max,Ut=Pt>0?Math.max:Math.min,Ht=Dt(At+zt),Vt=Nt(Ot-zt);st=It(At);var Xt=[[st]];for(ut=Ht;ut*Pt=0;Tt--)yt[rt-Tt]=o[tt][Tt],ut[rt-Tt]=it[tt][Tt];for(ht.push({x:yt,y:ut,bicubic:j}),Tt=tt,yt=[],ut=[];Tt>=0;Tt--)yt[tt-Tt]=o[Tt][0],ut[tt-Tt]=it[Tt][0];return ht.push({x:yt,y:ut,bicubic:_}),ht}},19216:function(Ct,Rt,o){var it=o(54460),xt=o(92880).extendFlat;Ct.exports=function(Tt,yt,ut){var ht,j,_,rt,tt,st,ot,nt,vt,dt,bt,ft,at,mt,St=Tt["_"+yt],_t=Tt[yt+"axis"],Mt=_t._gridlines=[],Et=_t._minorgridlines=[],kt=_t._boundarylines=[],wt=Tt["_"+ut],ct=Tt[ut+"axis"];_t.tickmode==="array"&&(_t.tickvals=St.slice());var It=Tt._xctrl,At=Tt._yctrl,Ot=It[0].length,Pt=It.length,zt=Tt._a.length,Dt=Tt._b.length;it.prepTicks(_t),_t.tickmode==="array"&&delete _t.tickvals;var Nt=_t.smoothing?3:1;function $t(Ht){var Vt,Xt,qt,er,lr,Jt,Yt,rr,jt,ar,sr,Zt,Kt=[],or=[],tr={};if(yt==="b")for(Xt=Tt.b2j(Ht),qt=Math.floor(Math.max(0,Math.min(Dt-2,Xt))),er=Xt-qt,tr.length=Dt,tr.crossLength=zt,tr.xy=function(cr){return Tt.evalxy([],cr,Xt)},tr.dxy=function(cr,mr){return Tt.dxydi([],cr,qt,mr,er)},Vt=0;Vt0&&(jt=Tt.dxydi([],Vt-1,qt,0,er),Kt.push(lr[0]+jt[0]/3),or.push(lr[1]+jt[1]/3),ar=Tt.dxydi([],Vt-1,qt,1,er),Kt.push(rr[0]-ar[0]/3),or.push(rr[1]-ar[1]/3)),Kt.push(rr[0]),or.push(rr[1]),lr=rr;else for(Vt=Tt.a2i(Ht),Jt=Math.floor(Math.max(0,Math.min(zt-2,Vt))),Yt=Vt-Jt,tr.length=zt,tr.crossLength=Dt,tr.xy=function(cr){return Tt.evalxy([],Vt,cr)},tr.dxy=function(cr,mr){return Tt.dxydj([],Jt,cr,Yt,mr)},Xt=0;Xt0&&(sr=Tt.dxydj([],Jt,Xt-1,Yt,0),Kt.push(lr[0]+sr[0]/3),or.push(lr[1]+sr[1]/3),Zt=Tt.dxydj([],Jt,Xt-1,Yt,1),Kt.push(rr[0]-Zt[0]/3),or.push(rr[1]-Zt[1]/3)),Kt.push(rr[0]),or.push(rr[1]),lr=rr;return tr.axisLetter=yt,tr.axis=_t,tr.crossAxis=ct,tr.value=Ht,tr.constvar=ut,tr.index=nt,tr.x=Kt,tr.y=or,tr.smoothing=ct.smoothing,tr}function Ut(Ht){var Vt,Xt,qt,er,lr,Jt=[],Yt=[],rr={};if(rr.length=St.length,rr.crossLength=wt.length,yt==="b")for(qt=Math.max(0,Math.min(Dt-2,Ht)),lr=Math.min(1,Math.max(0,Ht-qt)),rr.xy=function(jt){return Tt.evalxy([],jt,Ht)},rr.dxy=function(jt,ar){return Tt.dxydi([],jt,qt,ar,lr)},Vt=0;VtSt.length-1)&&Mt.push(xt(Ut(j),{color:_t.gridcolor,width:_t.gridwidth,dash:_t.griddash}));for(nt=st;ntSt.length-1)&&!(bt<0||bt>St.length-1))for(ft=St[_],at=St[bt],ht=0;ht<_t.minorgridcount;ht++)mt=bt-_,!(mt<=0)&&(dt=ft+(at-ft)*(ht+1)/(_t.minorgridcount+1)*(_t.arraydtick/mt),!(dtSt[St.length-1])&&Et.push(xt($t(dt),{color:_t.minorgridcolor,width:_t.minorgridwidth,dash:_t.minorgriddash})));_t.startline&&kt.push(xt(Ut(0),{color:_t.startlinecolor,width:_t.startlinewidth})),_t.endline&&kt.push(xt(Ut(St.length-1),{color:_t.endlinecolor,width:_t.endlinewidth}))}else{for(rt=5e-15,tt=[Math.floor((St[St.length-1]-_t.tick0)/_t.dtick*(1+rt)),Math.ceil((St[0]-_t.tick0)/_t.dtick/(1+rt))].sort(function(Ht,Vt){return Ht-Vt}),st=tt[0],ot=tt[1],nt=st;nt<=ot;nt++)vt=_t.tick0+_t.dtick*nt,Mt.push(xt($t(vt),{color:_t.gridcolor,width:_t.gridwidth,dash:_t.griddash}));for(nt=st-1;ntSt[St.length-1])&&Et.push(xt($t(dt),{color:_t.minorgridcolor,width:_t.minorgridwidth,dash:_t.minorgriddash}));_t.startline&&kt.push(xt($t(St[0]),{color:_t.startlinecolor,width:_t.startlinewidth})),_t.endline&&kt.push(xt($t(St[St.length-1]),{color:_t.endlinecolor,width:_t.endlinewidth}))}}},14724:function(Ct,Rt,o){var it=o(54460),xt=o(92880).extendFlat;Ct.exports=function(Tt,yt){var ut,ht,j,_,rt,tt=yt._labels=[],st=yt._gridlines;for(ut=0;utTt.length&&(et=et.slice(0,Tt.length)):et=[],ut=0;ut90&&(ot-=180,j=-j),{angle:ot,flip:j,p:o.c2p(et,it,xt),offsetMultplier:_}}},164:function(Ct,Rt,o){var it=o(33428),xt=o(43616),et=o(87072),Tt=o(53416),yt=o(15584),ut=o(72736),ht=o(3400),j=ht.strRotate,_=ht.strTranslate,rt=o(84284);Ct.exports=function(at,mt,St,_t){var Mt=at._context.staticPlot,Et=mt.xaxis,kt=mt.yaxis,wt=at._fullLayout,ct=wt._clips;ht.makeTraceGroups(_t,St,"trace").each(function(It){var At=it.select(this),Ot=It[0],Pt=Ot.trace,zt=Pt.aaxis,Dt=Pt.baxis,Nt=ht.ensureSingle(At,"g","minorlayer"),$t=ht.ensureSingle(At,"g","majorlayer"),Ut=ht.ensureSingle(At,"g","boundarylayer"),Ht=ht.ensureSingle(At,"g","labellayer");At.style("opacity",Pt.opacity),st(Et,kt,$t,zt,"a",zt._gridlines,!0),st(Et,kt,$t,Dt,"b",Dt._gridlines,!0),st(Et,kt,Nt,zt,"a",zt._minorgridlines,!0),st(Et,kt,Nt,Dt,"b",Dt._minorgridlines,!0),st(Et,kt,Ut,zt,"a-boundary",zt._boundarylines,Mt),st(Et,kt,Ut,Dt,"b-boundary",Dt._boundarylines,Mt);var Vt=ot(at,Et,kt,Pt,Ot,Ht,zt._labels,"a-label"),Xt=ot(at,Et,kt,Pt,Ot,Ht,Dt._labels,"b-label");nt(at,Ht,Pt,Ot,Et,kt,Vt,Xt),tt(Pt,Ot,ct,Et,kt)})};function tt(ft,at,mt,St,_t){var Mt,Et,kt,wt,ct=mt.select("#"+ft._clipPathId);ct.size()||(ct=mt.append("clipPath").classed("carpetclip",!0));var It=ht.ensureSingle(ct,"path","carpetboundary"),At=at.clipsegments,Ot=[];for(wt=0;wt0?"start":"end","data-notex":1}).call(xt.font,At.font).text(At.text).call(ut.convertToTspans,ft),$t=xt.bBox(this);Nt.attr("transform",_(Pt.p[0],Pt.p[1])+j(Pt.angle)+_(At.axis.labelpadding*Dt,$t.height*.3)),ct=Math.max(ct,$t.width+At.axis.labelpadding)}),wt.exit().remove(),It.maxExtent=ct,It}function nt(ft,at,mt,St,_t,Mt,Et,kt){var wt,ct,It,At,Ot=ht.aggNums(Math.min,null,mt.a),Pt=ht.aggNums(Math.max,null,mt.a),zt=ht.aggNums(Math.min,null,mt.b),Dt=ht.aggNums(Math.max,null,mt.b);wt=.5*(Ot+Pt),ct=zt,It=mt.ab2xy(wt,ct,!0),At=mt.dxyda_rough(wt,ct),Et.angle===void 0&&ht.extendFlat(Et,yt(mt,_t,Mt,It,mt.dxydb_rough(wt,ct))),bt(ft,at,mt,St,It,At,mt.aaxis,_t,Mt,Et,"a-title"),wt=Ot,ct=.5*(zt+Dt),It=mt.ab2xy(wt,ct,!0),At=mt.dxydb_rough(wt,ct),kt.angle===void 0&&ht.extendFlat(kt,yt(mt,_t,Mt,It,mt.dxyda_rough(wt,ct))),bt(ft,at,mt,St,It,At,mt.baxis,_t,Mt,kt,"b-title")}var vt=rt.LINE_SPACING,dt=(1-rt.MID_SHIFT)/vt+1;function bt(ft,at,mt,St,_t,Mt,Et,kt,wt,ct,It){var At=[];Et.title.text&&At.push(Et.title.text);var Ot=at.selectAll("text."+It).data(At),Pt=ct.maxExtent;Ot.enter().append("text").classed(It,!0),Ot.each(function(){var zt=yt(mt,kt,wt,_t,Mt);["start","both"].indexOf(Et.showticklabels)===-1&&(Pt=0);var Dt=Et.title.font.size;Pt+=Dt+Et.title.offset;var Nt=ct.angle+(ct.flip<0?180:0),$t=(Nt-zt.angle+450)%360,Ut=$t>90&&$t<270,Ht=it.select(this);Ht.text(Et.title.text).call(ut.convertToTspans,ft),Ut&&(Pt=(-ut.lineCount(Ht)+dt)*vt*Dt-Pt),Ht.attr("transform",_(zt.p[0],zt.p[1])+j(zt.angle)+_(0,Pt)).attr("text-anchor","middle").call(xt.font,Et.title.font)}),Ot.exit().remove()}},81e3:function(Ct,Rt,o){var it=o(24588),xt=o(14952).findBin,et=o(30180),Tt=o(29056),yt=o(26435),ut=o(24464);Ct.exports=function(j){var _=j._a,rt=j._b,tt=_.length,st=rt.length,ot=j.aaxis,nt=j.baxis,vt=_[0],dt=_[tt-1],bt=rt[0],ft=rt[st-1],at=_[_.length-1]-_[0],mt=rt[rt.length-1]-rt[0],St=at*it.RELATIVE_CULL_TOLERANCE,_t=mt*it.RELATIVE_CULL_TOLERANCE;vt-=St,dt+=St,bt-=_t,ft+=_t,j.isVisible=function(Mt,Et){return Mt>vt&&Mtbt&&Etdt||Etft},j.setScale=function(){var Mt=j._x,Et=j._y,kt=et(j._xctrl,j._yctrl,Mt,Et,ot.smoothing,nt.smoothing);j._xctrl=kt[0],j._yctrl=kt[1],j.evalxy=Tt([j._xctrl,j._yctrl],tt,st,ot.smoothing,nt.smoothing),j.dxydi=yt([j._xctrl,j._yctrl],ot.smoothing,nt.smoothing),j.dxydj=ut([j._xctrl,j._yctrl],ot.smoothing,nt.smoothing)},j.i2a=function(Mt){var Et=Math.max(0,Math.floor(Mt[0]),tt-2),kt=Mt[0]-Et;return(1-kt)*_[Et]+kt*_[Et+1]},j.j2b=function(Mt){var Et=Math.max(0,Math.floor(Mt[1]),tt-2),kt=Mt[1]-Et;return(1-kt)*rt[Et]+kt*rt[Et+1]},j.ij2ab=function(Mt){return[j.i2a(Mt[0]),j.j2b(Mt[1])]},j.a2i=function(Mt){var Et=Math.max(0,Math.min(xt(Mt,_),tt-2)),kt=_[Et],wt=_[Et+1];return Math.max(0,Math.min(tt-1,Et+(Mt-kt)/(wt-kt)))},j.b2j=function(Mt){var Et=Math.max(0,Math.min(xt(Mt,rt),st-2)),kt=rt[Et],wt=rt[Et+1];return Math.max(0,Math.min(st-1,Et+(Mt-kt)/(wt-kt)))},j.ab2ij=function(Mt){return[j.a2i(Mt[0]),j.b2j(Mt[1])]},j.i2c=function(Mt,Et){return j.evalxy([],Mt,Et)},j.ab2xy=function(Mt,Et,kt){if(!kt&&(Mt<_[0]||Mt>_[tt-1]|Etrt[st-1]))return[!1,!1];var wt=j.a2i(Mt),ct=j.b2j(Et),It=j.evalxy([],wt,ct);if(kt){var At=0,Ot=0,Pt=[],zt,Dt,Nt,$t;Mt<_[0]?(zt=0,Dt=0,At=(Mt-_[0])/(_[1]-_[0])):Mt>_[tt-1]?(zt=tt-2,Dt=1,At=(Mt-_[tt-1])/(_[tt-1]-_[tt-2])):(zt=Math.max(0,Math.min(tt-2,Math.floor(wt))),Dt=wt-zt),Etrt[st-1]?(Nt=st-2,$t=1,Ot=(Et-rt[st-1])/(rt[st-1]-rt[st-2])):(Nt=Math.max(0,Math.min(st-2,Math.floor(ct))),$t=ct-Nt),At&&(j.dxydi(Pt,zt,Nt,Dt,$t),It[0]+=Pt[0]*At,It[1]+=Pt[1]*At),Ot&&(j.dxydj(Pt,zt,Nt,Dt,$t),It[0]+=Pt[0]*Ot,It[1]+=Pt[1]*Ot)}return It},j.c2p=function(Mt,Et,kt){return[Et.c2p(Mt[0]),kt.c2p(Mt[1])]},j.p2x=function(Mt,Et,kt){return[Et.p2c(Mt[0]),kt.p2c(Mt[1])]},j.dadi=function(Mt){var Et=Math.max(0,Math.min(_.length-2,Mt));return _[Et+1]-_[Et]},j.dbdj=function(Mt){var Et=Math.max(0,Math.min(rt.length-2,Mt));return rt[Et+1]-rt[Et]},j.dxyda=function(Mt,Et,kt,wt){var ct=j.dxydi(null,Mt,Et,kt,wt),It=j.dadi(Mt,kt);return[ct[0]/It,ct[1]/It]},j.dxydb=function(Mt,Et,kt,wt){var ct=j.dxydj(null,Mt,Et,kt,wt),It=j.dbdj(Et,wt);return[ct[0]/It,ct[1]/It]},j.dxyda_rough=function(Mt,Et,kt){var wt=at*(kt||.1),ct=j.ab2xy(Mt+wt,Et,!0),It=j.ab2xy(Mt-wt,Et,!0);return[(ct[0]-It[0])*.5/wt,(ct[1]-It[1])*.5/wt]},j.dxydb_rough=function(Mt,Et,kt){var wt=mt*(kt||.1),ct=j.ab2xy(Mt,Et+wt,!0),It=j.ab2xy(Mt,Et-wt,!0);return[(ct[0]-It[0])*.5/wt,(ct[1]-It[1])*.5/wt]},j.dpdx=function(Mt){return Mt._m},j.dpdy=function(Mt){return Mt._m}}},51512:function(Ct,Rt,o){var it=o(3400);Ct.exports=function(et,Tt,yt){var ut,ht,j,_=[],rt=[],tt=et[0].length,st=et.length;function ot(Xt,qt){var er=0,lr,Jt=0;return Xt>0&&(lr=et[qt][Xt-1])!==void 0&&(Jt++,er+=lr),Xt0&&(lr=et[qt-1][Xt])!==void 0&&(Jt++,er+=lr),qt0&&ht0&&utwt);return it.log("Smoother converged to",ct,"after",At,"iterations"),et}},86411:function(Ct,Rt,o){var it=o(3400).isArray1D;Ct.exports=function(et,Tt,yt){var ut=yt("x"),ht=ut&&ut.length,j=yt("y"),_=j&&j.length;if(!ht&&!_)return!1;if(Tt._cheater=!ut,(!ht||it(ut))&&(!_||it(j))){var rt=ht?ut.length:1/0;_&&(rt=Math.min(rt,j.length)),Tt.a&&Tt.a.length&&(rt=Math.min(rt,Tt.a.length)),Tt.b&&Tt.b.length&&(rt=Math.min(rt,Tt.b.length)),Tt._length=rt}else Tt._length=null;return!0}},83372:function(Ct,Rt,o){var it=o(21776).Ks,xt=o(6096),et=o(49084),Tt=o(45464),yt=o(22548).defaultLine,ut=o(92880).extendFlat,ht=xt.marker.line;Ct.exports=ut({locations:{valType:"data_array",editType:"calc"},locationmode:xt.locationmode,z:{valType:"data_array",editType:"calc"},geojson:ut({},xt.geojson,{}),featureidkey:xt.featureidkey,text:ut({},xt.text,{}),hovertext:ut({},xt.hovertext,{}),marker:{line:{color:ut({},ht.color,{dflt:yt}),width:ut({},ht.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:xt.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:xt.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:ut({},Tt.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:it(),showlegend:ut({},Tt.showlegend,{dflt:!1})},et("",{cLetter:"z",editTypeOverride:"calc"}))},7924:function(Ct,Rt,o){var it=o(38248),xt=o(39032).BADNUM,et=o(47128),Tt=o(20148),yt=o(4500);function ut(ht){return ht&&typeof ht=="string"}Ct.exports=function(j,_){var rt=_._length,tt=new Array(rt),st;_.geojson?st=function(bt){return ut(bt)||it(bt)}:st=ut;for(var ot=0;ot")}}},54272:function(Ct,Rt,o){Ct.exports={attributes:o(83372),supplyDefaults:o(30972),colorbar:o(96288),calc:o(7924),calcGeoJSON:o(88364).calcGeoJSON,plot:o(88364).plot,style:o(7947).style,styleOnSelect:o(7947).styleOnSelect,hoverPoints:o(69224),eventData:o(52428),selectPoints:o(17328),moduleType:"trace",name:"choropleth",basePlotModule:o(10816),categories:["geo","noOpacity","showLegend"],meta:{}}},88364:function(Ct,Rt,o){var it=o(33428),xt=o(3400),et=o(27144),Tt=o(59972).getTopojsonFeatures,yt=o(19280).findExtremes,ut=o(7947).style;function ht(_,rt,tt){var st=rt.layers.backplot.select(".choroplethlayer");xt.makeTraceGroups(st,tt,"trace choropleth").each(function(ot){var nt=it.select(this),vt=nt.selectAll("path.choroplethlocation").data(xt.identity);vt.enter().append("path").classed("choroplethlocation",!0),vt.exit().remove(),ut(_,ot)})}function j(_,rt){for(var tt=_[0].trace,st=rt[tt.geo],ot=st._subplot,nt=tt.locationmode,vt=tt._length,dt=nt==="geojson-id"?et.extractTraceFeature(_):Tt(tt,ot.topojson),bt=[],ft=[],at=0;at=0;Tt--){var yt=et[Tt].id;if(typeof yt=="string"&&yt.indexOf("water")===0){for(var ut=Tt+1;ut=0;j--)ut.removeLayer(ht[j][1])},yt.dispose=function(){var ut=this.subplot.map;this._removeLayers(),ut.removeSource(this.sourceId)},Ct.exports=function(ht,j){var _=j[0].trace,rt=new Tt(ht,_.uid),tt=rt.sourceId,st=it(j),ot=rt.below=ht.belowLookup["trace-"+_.uid];return ht.map.addSource(tt,{type:"geojson",data:st.geojson}),rt._addLayers(st,ot),j[0].trace._glTrace=rt,rt}},86040:function(Ct,Rt,o){var it=o(49084),xt=o(29736).axisHoverFormat,et=o(21776).Ks,Tt=o(52948),yt=o(45464),ut=o(92880).extendFlat,ht={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},sizemode:{valType:"enumerated",values:["scaled","absolute","raw"],editType:"calc",dflt:"scaled"},sizeref:{valType:"number",editType:"calc",min:0},anchor:{valType:"enumerated",editType:"calc",values:["tip","tail","cm","center"],dflt:"cm"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:et({editType:"calc"},{keys:["norm"]}),uhoverformat:xt("u",1),vhoverformat:xt("v",1),whoverformat:xt("w",1),xhoverformat:xt("x"),yhoverformat:xt("y"),zhoverformat:xt("z"),showlegend:ut({},yt.showlegend,{dflt:!1})};ut(ht,it("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var j=["opacity","lightposition","lighting"];j.forEach(function(_){ht[_]=Tt[_]}),ht.hoverinfo=ut({},yt.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"}),ht.transforms=void 0,Ct.exports=ht},83344:function(Ct,Rt,o){var it=o(47128);Ct.exports=function(et,Tt){for(var yt=Tt.u,ut=Tt.v,ht=Tt.w,j=Math.min(Tt.x.length,Tt.y.length,Tt.z.length,yt.length,ut.length,ht.length),_=-1/0,rt=1/0,tt=0;ttyt.level||yt.starts.length&&Tt===yt.level)}break;case"constraint":if(it.prefixBoundary=!1,it.edgepaths.length)return;var ut=it.x.length,ht=it.y.length,j=-1/0,_=1/0;for(et=0;et":rt>j&&(it.prefixBoundary=!0);break;case"<":(rt<_||it.starts.length&&rt===_)&&(it.prefixBoundary=!0);break;case"[]":tt=Math.min(rt[0],rt[1]),st=Math.max(rt[0],rt[1]),(st<_||tt>j||it.starts.length&&st===_)&&(it.prefixBoundary=!0);break;case"][":tt=Math.min(rt[0],rt[1]),st=Math.max(rt[0],rt[1]),tt<_&&st>j&&(it.prefixBoundary=!0);break}break}}},55296:function(Ct,Rt,o){var it=o(8932),xt=o(41076),et=o(46960);function Tt(yt,ut,ht){var j=ut.contours,_=ut.line,rt=j.size||1,tt=j.coloring,st=xt(ut,{isColorbar:!0});if(tt==="heatmap"){var ot=it.extractOpts(ut);ht._fillgradient=ot.reversescale?it.flipScale(ot.colorscale):ot.colorscale,ht._zrange=[ot.min,ot.max]}else tt==="fill"&&(ht._fillcolor=st);ht._line={color:tt==="lines"?st:_.color,width:j.showlines!==!1?_.width:0,dash:_.dash},ht._levels={start:j.start,end:et(j),size:rt}}Ct.exports={min:"zmin",max:"zmax",calc:Tt}},93252:function(Ct){Ct.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},95536:function(Ct,Rt,o){var it=o(38248),xt=o(17428),et=o(76308),Tt=et.addOpacity,yt=et.opacity,ut=o(69104),ht=o(3400).isArrayOrTypedArray,j=ut.CONSTRAINT_REDUCTION,_=ut.COMPARISON_OPS2;Ct.exports=function(st,ot,nt,vt,dt,bt){var ft=ot.contours,at,mt,St,_t=nt("contours.operation");if(ft._operation=j[_t],rt(nt,ft),_t==="="?at=ft.showlines=!0:(at=nt("contours.showlines"),St=nt("fillcolor",Tt((st.line||{}).color||dt,.5))),at){var Mt=St&&yt(St)?Tt(ot.fillcolor,1):dt;mt=nt("line.color",Mt),nt("line.width",2),nt("line.dash")}nt("line.smoothing"),xt(nt,vt,mt,bt)};function rt(tt,st){var ot;_.indexOf(st.operation)===-1?(tt("contours.value",[0,1]),ht(st.value)?st.value.length>2?st.value=st.value.slice(2):st.length===0?st.value=[0,1]:st.length<2?(ot=parseFloat(st.value[0]),st.value=[ot,ot+1]):st.value=[parseFloat(st.value[0]),parseFloat(st.value[1])]:it(st.value)&&(ot=parseFloat(st.value),st.value=[ot,ot+1])):(tt("contours.value",0),it(st.value)||(ht(st.value)?st.value=parseFloat(st.value[0]):st.value=0))}},3212:function(Ct,Rt,o){var it=o(69104),xt=o(38248);Ct.exports={"[]":Tt("[]"),"][":Tt("]["),">":yt(">"),"<":yt("<"),"=":yt("=")};function et(ut,ht){var j=Array.isArray(ht),_;function rt(tt){return xt(tt)?+tt:null}return it.COMPARISON_OPS2.indexOf(ut)!==-1?_=rt(j?ht[0]:ht):it.INTERVAL_OPS.indexOf(ut)!==-1?_=j?[rt(ht[0]),rt(ht[1])]:[rt(ht),rt(ht)]:it.SET_OPS.indexOf(ut)!==-1&&(_=j?ht.map(rt):[rt(ht)]),_}function Tt(ut){return function(ht){ht=et(ut,ht);var j=Math.min(ht[0],ht[1]),_=Math.max(ht[0],ht[1]);return{start:j,end:_,size:_-j}}}function yt(ut){return function(ht){return ht=et(ut,ht),{start:ht,end:1/0,size:1/0}}}},84952:function(Ct){Ct.exports=function(o,it,xt,et){var Tt=et("contours.start"),yt=et("contours.end"),ut=Tt===!1||yt===!1,ht=xt("contours.size"),j;ut?j=it.autocontour=!0:j=xt("autocontour",!1),(j||!ht)&&xt("ncontours")}},82172:function(Ct,Rt,o){var it=o(3400);Ct.exports=function(et,Tt){var yt,ut,ht,j=function(tt){return tt.reverse()},_=function(tt){return tt};switch(Tt){case"=":case"<":return et;case">":for(et.length!==1&&it.warn("Contour data invalid for the specified inequality operation."),ut=et[0],yt=0;yt1e3){it.warn("Too many contours, clipping at 1000",yt);break}return rt}},46960:function(Ct){Ct.exports=function(o){return o.end+o.size/1e6}},88748:function(Ct,Rt,o){var it=o(3400),xt=o(93252);Ct.exports=function(_,rt,tt){var st,ot,nt,vt,dt;for(rt=rt||.01,tt=tt||.01,nt=0;nt<_.length;nt++){for(vt=_[nt],dt=0;dt20?(nt=xt.CHOOSESADDLE[nt][(vt[0]||vt[1])<0?0:1],j.crossings[ot]=xt.SADDLEREMAINDER[nt]):delete j.crossings[ot],vt=xt.NEWDELTA[nt],!vt){it.log("Found bad marching index:",nt,_,j.level);break}dt.push(ht(j,_,vt)),_[0]+=vt[0],_[1]+=vt[1],ot=_.join(","),et(dt[dt.length-1],dt[dt.length-2],tt,st)&&dt.pop();var _t=vt[0]&&(_[0]<0||_[0]>ft-2)||vt[1]&&(_[1]<0||_[1]>bt-2),Mt=_[0]===at[0]&&_[1]===at[1]&&vt[0]===mt[0]&&vt[1]===mt[1];if(Mt||rt&&_t)break;nt=j.crossings[ot]}St===1e4&&it.log("Infinite loop in contour?");var Et=et(dt[0],dt[dt.length-1],tt,st),kt=0,wt=.2*j.smoothing,ct=[],It=0,At,Ot,Pt,zt,Dt,Nt,$t,Ut,Ht,Vt,Xt;for(St=1;St=It;St--)if(At=ct[St],At=It&&At+ct[Ot]Ut&&Ht--,j.edgepaths[Ht]=Xt.concat(dt,Vt));break}Jt||(j.edgepaths[Ut]=dt.concat(Vt))}for(Ut=0;Ut20&&_?j===208||j===1114?tt=rt[0]===0?1:-1:st=rt[1]===0?1:-1:xt.BOTTOMSTART.indexOf(j)!==-1?st=1:xt.LEFTSTART.indexOf(j)!==-1?tt=1:xt.TOPSTART.indexOf(j)!==-1?st=-1:tt=-1,[tt,st]}function ht(j,_,rt){var tt=_[0]+Math.max(rt[0],0),st=_[1]+Math.max(rt[1],0),ot=j.z[st][tt],nt=j.xaxis,vt=j.yaxis;if(rt[1]){var dt=(j.level-ot)/(j.z[st][tt+1]-ot),bt=(dt!==1?(1-dt)*nt.c2l(j.x[tt]):0)+(dt!==0?dt*nt.c2l(j.x[tt+1]):0);return[nt.c2p(nt.l2c(bt),!0),vt.c2p(j.y[st],!0),tt+dt,st]}else{var ft=(j.level-ot)/(j.z[st+1][tt]-ot),at=(ft!==1?(1-ft)*vt.c2l(j.y[st]):0)+(ft!==0?ft*vt.c2l(j.y[st+1]):0);return[nt.c2p(j.x[tt],!0),vt.c2p(vt.l2c(at),!0),tt,st+ft]}}},38200:function(Ct,Rt,o){var it=o(76308),xt=o(55512);Ct.exports=function(Tt,yt,ut,ht,j){j||(j={}),j.isContour=!0;var _=xt(Tt,yt,ut,ht,j);return _&&_.forEach(function(rt){var tt=rt.trace;tt.contours.type==="constraint"&&(tt.fillcolor&&it.opacity(tt.fillcolor)?rt.color=it.addOpacity(tt.fillcolor,1):tt.contours.showlines&&it.opacity(tt.line.color)&&(rt.color=it.addOpacity(tt.line.color,1)))}),_}},66240:function(Ct,Rt,o){Ct.exports={attributes:o(67104),supplyDefaults:o(57004),calc:o(20688),plot:o(23676).plot,style:o(52440),colorbar:o(55296),hoverPoints:o(38200),moduleType:"trace",name:"contour",basePlotModule:o(57952),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}},17428:function(Ct,Rt,o){var it=o(3400);Ct.exports=function(et,Tt,yt,ut){ut||(ut={});var ht=et("contours.showlabels");if(ht){var j=Tt.font;it.coerceFont(et,"contours.labelfont",{weight:j.weight,style:j.style,variant:j.variant,family:j.family,size:j.size,color:yt}),et("contours.labelformat")}ut.hasHover!==!1&&et("zhoverformat")}},41076:function(Ct,Rt,o){var it=o(33428),xt=o(8932),et=o(46960);Ct.exports=function(yt){var ut=yt.contours,ht=ut.start,j=et(ut),_=ut.size||1,rt=Math.floor((j-ht)/_)+1,tt=ut.coloring==="lines"?0:1,st=xt.extractOpts(yt);isFinite(_)||(_=1,rt=1);var ot=st.reversescale?xt.flipScale(st.colorscale):st.colorscale,nt=ot.length,vt=new Array(nt),dt=new Array(nt),bt,ft,at=st.min,mt=st.max;if(ut.coloring==="heatmap"){for(ft=0;ft=mt)&&(ht<=at&&(ht=at),j>=mt&&(j=mt),rt=Math.floor((j-ht)/_)+1,tt=0),ft=0;ftat&&(vt.unshift(at),dt.unshift(dt[0])),vt[vt.length-1]et?0:1)+(Tt[0][1]>et?0:2)+(Tt[1][1]>et?0:4)+(Tt[1][0]>et?0:8);if(yt===5||yt===10){var ut=(Tt[0][0]+Tt[0][1]+Tt[1][0]+Tt[1][1])/4;return et>ut?yt===5?713:1114:yt===5?104:208}return yt===15?0:yt}},23676:function(Ct,Rt,o){var it=o(33428),xt=o(3400),et=o(43616),Tt=o(8932),yt=o(72736),ut=o(54460),ht=o(78344),j=o(41420),_=o(72424),rt=o(88748),tt=o(61512),st=o(82172),ot=o(56008),nt=o(93252),vt=nt.LABELOPTIMIZER;Rt.plot=function(Et,kt,wt,ct){var It=kt.xaxis,At=kt.yaxis;xt.makeTraceGroups(ct,wt,"contour").each(function(Ot){var Pt=it.select(this),zt=Ot[0],Dt=zt.trace,Nt=zt.x,$t=zt.y,Ut=Dt.contours,Ht=tt(Ut,kt,zt),Vt=xt.ensureSingle(Pt,"g","heatmapcoloring"),Xt=[];Ut.coloring==="heatmap"&&(Xt=[Ot]),j(Et,kt,Xt,Vt),_(Ht),rt(Ht);var qt=It.c2p(Nt[0],!0),er=It.c2p(Nt[Nt.length-1],!0),lr=At.c2p($t[0],!0),Jt=At.c2p($t[$t.length-1],!0),Yt=[[qt,Jt],[er,Jt],[er,lr],[qt,lr]],rr=Ht;Ut.type==="constraint"&&(rr=st(Ht,Ut._operation)),dt(Pt,Yt,Ut),bt(Pt,rr,Yt,Ut),at(Pt,Ht,Et,zt,Ut),St(Pt,kt,Et,zt,Yt)})};function dt(Mt,Et,kt){var wt=xt.ensureSingle(Mt,"g","contourbg"),ct=wt.selectAll("path").data(kt.coloring==="fill"?[0]:[]);ct.enter().append("path"),ct.exit().remove(),ct.attr("d","M"+Et.join("L")+"Z").style("stroke","none")}function bt(Mt,Et,kt,wt){var ct=wt.coloring==="fill"||wt.type==="constraint"&&wt._operation!=="=",It="M"+kt.join("L")+"Z";ct&&ot(Et,wt);var At=xt.ensureSingle(Mt,"g","contourfill"),Ot=At.selectAll("path").data(ct?Et:[]);Ot.enter().append("path"),Ot.exit().remove(),Ot.each(function(Pt){var zt=(Pt.prefixBoundary?It:"")+ft(Pt,kt);zt?it.select(this).attr("d",zt).style("stroke","none"):it.select(this).remove()})}function ft(Mt,Et){var kt="",wt=0,ct=Mt.edgepaths.map(function(qt,er){return er}),It=!0,At,Ot,Pt,zt,Dt,Nt;function $t(qt){return Math.abs(qt[1]-Et[0][1])<.01}function Ut(qt){return Math.abs(qt[1]-Et[2][1])<.01}function Ht(qt){return Math.abs(qt[0]-Et[0][0])<.01}function Vt(qt){return Math.abs(qt[0]-Et[2][0])<.01}for(;ct.length;){for(Nt=et.smoothopen(Mt.edgepaths[wt],Mt.smoothing),kt+=It?Nt:Nt.replace(/^M/,"L"),ct.splice(ct.indexOf(wt),1),At=Mt.edgepaths[wt][Mt.edgepaths[wt].length-1],zt=-1,Pt=0;Pt<4;Pt++){if(!At){xt.log("Missing end?",wt,Mt);break}for($t(At)&&!Vt(At)?Ot=Et[1]:Ht(At)?Ot=Et[0]:Ut(At)?Ot=Et[3]:Vt(At)&&(Ot=Et[2]),Dt=0;Dt=0&&(Ot=Xt,zt=Dt):Math.abs(At[1]-Ot[1])<.01?Math.abs(At[1]-Xt[1])<.01&&(Xt[0]-At[0])*(Ot[0]-Xt[0])>=0&&(Ot=Xt,zt=Dt):xt.log("endpt to newendpt is not vert. or horz.",At,Ot,Xt)}if(At=Ot,zt>=0)break;kt+="L"+Ot}if(zt===Mt.edgepaths.length){xt.log("unclosed perimeter path");break}wt=zt,It=ct.indexOf(wt)===-1,It&&(wt=ct[0],kt+="Z")}for(wt=0;wtvt.MAXCOST*2)break;$t&&(Ot/=2),At=zt-Ot/2,Pt=At+Ot*1.5}if(Nt<=vt.MAXCOST)return Dt};function mt(Mt,Et,kt,wt){var ct=Et.width/2,It=Et.height/2,At=Mt.x,Ot=Mt.y,Pt=Mt.theta,zt=Math.cos(Pt)*ct,Dt=Math.sin(Pt)*ct,Nt=(At>wt.center?wt.right-At:At-wt.left)/(zt+Math.abs(Math.sin(Pt)*It)),$t=(Ot>wt.middle?wt.bottom-Ot:Ot-wt.top)/(Math.abs(Dt)+Math.cos(Pt)*It);if(Nt<1||$t<1)return 1/0;var Ut=vt.EDGECOST*(1/(Nt-1)+1/($t-1));Ut+=vt.ANGLECOST*Pt*Pt;for(var Ht=At-zt,Vt=Ot-Dt,Xt=At+zt,qt=Ot+Dt,er=0;erht.end&&(ht.start=ht.end=(ht.start+ht.end)/2),yt._input.contours||(yt._input.contours={}),xt.extendFlat(yt._input.contours,{start:ht.start,end:ht.end,size:ht.size}),yt._input.autocontour=!0}else if(ht.type!=="constraint"){var tt=ht.start,st=ht.end,ot=yt._input.contours;if(tt>st&&(ht.start=ot.start=st,st=ht.end=ot.end=tt,tt=ht.start),!(ht.size>0)){var nt;tt===st?nt=1:nt=et(tt,st,yt.ncontours).dtick,ot.size=ht.size=nt}}};function et(Tt,yt,ut){var ht={type:"linear",range:[Tt,yt]};return it.autoTicks(ht,(yt-Tt)/(ut||15)),ht}},52440:function(Ct,Rt,o){var it=o(33428),xt=o(43616),et=o(41648),Tt=o(41076);Ct.exports=function(ut){var ht=it.select(ut).selectAll("g.contour");ht.style("opacity",function(j){return j[0].trace.opacity}),ht.each(function(j){var _=it.select(this),rt=j[0].trace,tt=rt.contours,st=rt.line,ot=tt.size||1,nt=tt.start,vt=tt.type==="constraint",dt=!vt&&tt.coloring==="lines",bt=!vt&&tt.coloring==="fill",ft=dt||bt?Tt(rt):null;_.selectAll("g.contourlevel").each(function(St){it.select(this).selectAll("path").call(xt.lineGroupStyle,st.width,dt?ft(St.level):st.color,st.dash)});var at=tt.labelfont;if(_.selectAll("g.contourlabels text").each(function(St){xt.font(it.select(this),{weight:at.weight,style:at.style,variant:at.variant,family:at.family,size:at.size,color:at.color||(dt?ft(St.level):st.color)})}),vt)_.selectAll("g.contourfill path").style("fill",rt.fillcolor);else if(bt){var mt;_.selectAll("g.contourfill path").style("fill",function(St){return mt===void 0&&(mt=St.level),ft(St.level+.5*ot)}),mt===void 0&&(mt=nt),_.selectAll("g.contourbg path").style("fill",ft(mt-.5*ot))}}),et(ut)}},97680:function(Ct,Rt,o){var it=o(27260),xt=o(17428);Ct.exports=function(Tt,yt,ut,ht,j){var _=ut("contours.coloring"),rt,tt="";_==="fill"&&(rt=ut("contours.showlines")),rt!==!1&&(_!=="lines"&&(tt=ut("line.color","#000")),ut("line.width",.5),ut("line.dash")),_!=="none"&&(Tt.showlegend!==!0&&(yt.showlegend=!1),yt._dfltShowLegend=!1,it(Tt,yt,ht,ut,{prefix:"",cLetter:"z"})),ut("line.smoothing"),xt(ut,ht,tt,j)}},37960:function(Ct,Rt,o){var it=o(83328),xt=o(67104),et=o(49084),Tt=o(92880).extendFlat,yt=xt.contours;Ct.exports=Tt({carpet:{valType:"string",editType:"calc"},z:it.z,a:it.x,a0:it.x0,da:it.dx,b:it.y,b0:it.y0,db:it.dy,text:it.text,hovertext:it.hovertext,transpose:it.transpose,atype:it.xtype,btype:it.ytype,fillcolor:xt.fillcolor,autocontour:xt.autocontour,ncontours:xt.ncontours,contours:{type:yt.type,start:yt.start,end:yt.end,size:yt.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:yt.showlines,showlabels:yt.showlabels,labelfont:yt.labelfont,labelformat:yt.labelformat,operation:yt.operation,value:yt.value,editType:"calc",impliedEdits:{autocontour:!1}},line:{color:xt.line.color,width:xt.line.width,dash:xt.line.dash,smoothing:xt.line.smoothing,editType:"plot"},zorder:xt.zorder,transforms:void 0},et("",{cLetter:"z",autoColorDflt:!1}))},30572:function(Ct,Rt,o){var it=o(47128),xt=o(3400),et=o(2872),Tt=o(26136),yt=o(70448),ut=o(11240),ht=o(35744),j=o(3252),_=o(50948),rt=o(54444);Ct.exports=function(ot,nt){var vt=nt._carpetTrace=_(ot,nt);if(!(!vt||!vt.visible||vt.visible==="legendonly")){if(!nt.a||!nt.b){var dt=ot.data[vt.index],bt=ot.data[nt.index];bt.a||(bt.a=dt.a),bt.b||(bt.b=dt.b),j(bt,nt,nt._defaultColor,ot._fullLayout)}var ft=tt(ot,nt);return rt(nt,nt._z),ft}};function tt(st,ot){var nt=ot._carpetTrace,vt=nt.aaxis,dt=nt.baxis,bt,ft,at,mt,St,_t,Mt;vt._minDtick=0,dt._minDtick=0,xt.isArray1D(ot.z)&&et(ot,vt,dt,"a","b",["z"]),bt=ot._a=ot._a||ot.a,mt=ot._b=ot._b||ot.b,bt=bt?vt.makeCalcdata(ot,"_a"):[],mt=mt?dt.makeCalcdata(ot,"_b"):[],ft=ot.a0||0,at=ot.da||1,St=ot.b0||0,_t=ot.db||1,Mt=ot._z=Tt(ot._z||ot.z,ot.transpose),ot._emptypoints=ut(Mt),yt(Mt,ot._emptypoints);var Et=xt.maxRowLength(Mt),kt=ot.xtype==="scaled"?"":bt,wt=ht(ot,kt,ft,at,Et,vt),ct=ot.ytype==="scaled"?"":mt,It=ht(ot,ct,St,_t,Mt.length,dt),At={a:wt,b:It,z:Mt};return ot.contours.type==="levels"&&ot.contours.coloring!=="none"&&it(st,ot,{vals:Mt,containerStr:"",cLetter:"z"}),[At]}},3252:function(Ct,Rt,o){var it=o(3400),xt=o(51264),et=o(37960),Tt=o(95536),yt=o(84952),ut=o(97680);Ct.exports=function(j,_,rt,tt){function st(dt,bt){return it.coerce(j,_,et,dt,bt)}function ot(dt){return it.coerce2(j,_,et,dt)}if(st("carpet"),j.a&&j.b){var nt=xt(j,_,st,tt,"a","b");if(!nt){_.visible=!1;return}st("text");var vt=st("contours.type")==="constraint";vt?Tt(j,_,st,tt,rt,{hasHover:!1}):(yt(j,_,st,ot),ut(j,_,st,tt,{hasHover:!1}))}else _._defaultColor=rt,_._length=null;st("zorder")}},40448:function(Ct,Rt,o){Ct.exports={attributes:o(37960),supplyDefaults:o(3252),colorbar:o(55296),calc:o(30572),plot:o(94440),style:o(52440),moduleType:"trace",name:"contourcarpet",basePlotModule:o(57952),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}},94440:function(Ct,Rt,o){var it=o(33428),xt=o(87072),et=o(53416),Tt=o(43616),yt=o(3400),ut=o(72424),ht=o(88748),j=o(23676),_=o(93252),rt=o(82172),tt=o(61512),st=o(56008),ot=o(50948),nt=o(77712);Ct.exports=function(kt,wt,ct,It){var At=wt.xaxis,Ot=wt.yaxis;yt.makeTraceGroups(It,ct,"contour").each(function(Pt){var zt=it.select(this),Dt=Pt[0],Nt=Dt.trace,$t=Nt._carpetTrace=ot(kt,Nt),Ut=kt.calcdata[$t.index][0];if(!$t.visible||$t.visible==="legendonly")return;var Ht=Dt.a,Vt=Dt.b,Xt=Nt.contours,qt=tt(Xt,wt,Dt),er=Xt.type==="constraint",lr=Xt._operation,Jt=er?lr==="="?"lines":"fill":Xt.coloring;function Yt(Ar){var br=$t.ab2xy(Ar[0],Ar[1],!0);return[At.c2p(br[0]),Ot.c2p(br[1])]}var rr=[[Ht[0],Vt[Vt.length-1]],[Ht[Ht.length-1],Vt[Vt.length-1]],[Ht[Ht.length-1],Vt[0]],[Ht[0],Vt[0]]];ut(qt);var jt=(Ht[Ht.length-1]-Ht[0])*1e-8,ar=(Vt[Vt.length-1]-Vt[0])*1e-8;ht(qt,jt,ar);var sr=qt;Xt.type==="constraint"&&(sr=rt(qt,lr)),vt(qt,Yt);var Zt,Kt,or,tr,cr=[];for(tr=Ut.clipsegments.length-1;tr>=0;tr--)Zt=Ut.clipsegments[tr],Kt=xt([],Zt.x,At.c2p),or=xt([],Zt.y,Ot.c2p),Kt.reverse(),or.reverse(),cr.push(et(Kt,or,Zt.bicubic));var mr="M"+cr.join("L")+"Z";St(zt,Ut.clipsegments,At,Ot,er,Jt),_t(Nt,zt,At,Ot,sr,rr,Yt,$t,Ut,Jt,mr),dt(zt,qt,kt,Dt,Xt,wt,$t),Tt.setClipUrl(zt,$t._clipPathId,kt)})};function vt(Et,kt){var wt,ct,It,At,Ot,Pt,zt,Dt,Nt;for(wt=0;wtqt&&(ct.max=qt),ct.len=ct.max-ct.min}function ft(Et,kt,wt){var ct=Et.getPointAtLength(kt),It=Et.getPointAtLength(wt),At=It.x-ct.x,Ot=It.y-ct.y,Pt=Math.sqrt(At*At+Ot*Ot);return[At/Pt,Ot/Pt]}function at(Et){var kt=Math.sqrt(Et[0]*Et[0]+Et[1]*Et[1]);return[Et[0]/kt,Et[1]/kt]}function mt(Et,kt){var wt=Math.abs(Et[0]*kt[0]+Et[1]*kt[1]),ct=Math.sqrt(1-wt*wt);return ct/wt}function St(Et,kt,wt,ct,It,At){var Ot,Pt,zt,Dt,Nt=yt.ensureSingle(Et,"g","contourbg"),$t=Nt.selectAll("path").data(At==="fill"&&!It?[0]:[]);$t.enter().append("path"),$t.exit().remove();var Ut=[];for(Dt=0;Dt=0&&(Ht=Kt,Xt=qt):Math.abs(Ut[1]-Ht[1])=0&&(Ht=Kt,Xt=qt):yt.log("endpt to newendpt is not vert. or horz.",Ut,Ht,Kt)}if(Xt>=0)break;Dt+=sr(Ut,Ht),Ut=Ht}if(Xt===kt.edgepaths.length){yt.log("unclosed perimeter path");break}zt=Xt,$t=Nt.indexOf(zt)===-1,$t&&(zt=Nt[0],Dt+=sr(Ut,Ht)+"Z",Ut=null)}for(zt=0;zt0?+dt[nt]:0),ot.push({type:"Feature",geometry:{type:"Point",coordinates:mt},properties:St})}}var Mt=Tt.extractOpts(_),Et=Mt.reversescale?Tt.flipScale(Mt.colorscale):Mt.colorscale,kt=Et[0][1],wt=et.opacity(kt)<1?kt:et.addOpacity(kt,0),ct=["interpolate",["linear"],["heatmap-density"],0,wt];for(nt=1;nt=0;ht--)yt.removeLayer(ut[ht][1])},Tt.dispose=function(){var yt=this.subplot.map;this._removeLayers(),yt.removeSource(this.sourceId)},Ct.exports=function(ut,ht){var j=ht[0].trace,_=new et(ut,j.uid),rt=_.sourceId,tt=it(ht),st=_.below=ut.belowLookup["trace-"+j.uid];return ut.map.addSource(rt,{type:"geojson",data:tt.geojson}),_._addLayers(tt,st),_}},74248:function(Ct,Rt,o){var it=o(3400);Ct.exports=function(et,Tt){for(var yt=0;yt"),tt.color=Tt(ot,dt),[tt]}};function Tt(yt,ut){var ht=yt.marker,j=ut.mc||ht.color,_=ut.mlc||ht.line.color,rt=ut.mlw||ht.line.width;if(it(j))return j;if(it(_)&&rt)return _}},94704:function(Ct,Rt,o){Ct.exports={attributes:o(20088),layoutAttributes:o(7076),supplyDefaults:o(45432).supplyDefaults,crossTraceDefaults:o(45432).crossTraceDefaults,supplyLayoutDefaults:o(11631),calc:o(23096),crossTraceCalc:o(4804),plot:o(42200),style:o(44544).style,hoverPoints:o(31488),eventData:o(34580),selectPoints:o(45784),moduleType:"trace",name:"funnel",basePlotModule:o(57952),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}},7076:function(Ct){Ct.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc"},funnelgap:{valType:"number",min:0,max:1,editType:"calc"},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},11631:function(Ct,Rt,o){var it=o(3400),xt=o(7076);Ct.exports=function(et,Tt,yt){var ut=!1;function ht(rt,tt){return it.coerce(et,Tt,xt,rt,tt)}for(var j=0;j path").each(function(dt){if(!dt.isBlank){var bt=vt.marker;it.select(this).call(et.fill,dt.mc||bt.color).call(et.stroke,dt.mlc||bt.line.color).call(xt.dashLine,bt.line.dash,dt.mlw||bt.line.width).style("opacity",vt.selectedpoints&&!dt.selected?Tt:1)}}),ht(nt,vt,_),nt.selectAll(".regions").each(function(){it.select(this).selectAll("path").style("stroke-width",0).call(et.fill,vt.connector.fillcolor)}),nt.selectAll(".lines").each(function(){var dt=vt.connector.line;xt.lineGroupStyle(it.select(this).selectAll("path"),dt.width,dt.color,dt.dash)})})}Ct.exports={style:j}},22332:function(Ct,Rt,o){var it=o(74996),xt=o(45464),et=o(86968).u,Tt=o(21776).Ks,yt=o(21776).Gw,ut=o(92880).extendFlat;Ct.exports={labels:it.labels,label0:it.label0,dlabel:it.dlabel,values:it.values,marker:{colors:it.marker.colors,line:{color:ut({},it.marker.line.color,{dflt:null}),width:ut({},it.marker.line.width,{dflt:1}),editType:"calc"},pattern:it.marker.pattern,editType:"calc"},text:it.text,hovertext:it.hovertext,scalegroup:ut({},it.scalegroup,{}),textinfo:ut({},it.textinfo,{flags:["label","text","value","percent"]}),texttemplate:yt({editType:"plot"},{keys:["label","color","value","text","percent"]}),hoverinfo:ut({},xt.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:Tt({},{keys:["label","color","value","text","percent"]}),textposition:ut({},it.textposition,{values:["inside","none"],dflt:"inside"}),textfont:it.textfont,insidetextfont:it.insidetextfont,title:{text:it.title.text,font:it.title.font,position:ut({},it.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:et({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot"},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot"}}},91248:function(Ct,Rt,o){var it=o(7316);Rt.name="funnelarea",Rt.plot=function(xt,et,Tt,yt){it.plotBasePlot(Rt.name,xt,et,Tt,yt)},Rt.clean=function(xt,et,Tt,yt){it.cleanBasePlot(Rt.name,xt,et,Tt,yt)}},54e3:function(Ct,Rt,o){var it=o(45768);function xt(Tt,yt){return it.calc(Tt,yt)}function et(Tt){it.crossTraceCalc(Tt,{type:"funnelarea"})}Ct.exports={calc:xt,crossTraceCalc:et}},92688:function(Ct,Rt,o){var it=o(3400),xt=o(22332),et=o(86968).Q,Tt=o(31508).handleText,yt=o(74174).handleLabelsAndValues,ut=o(74174).handleMarkerDefaults;Ct.exports=function(j,_,rt,tt){function st(_t,Mt){return it.coerce(j,_,xt,_t,Mt)}var ot=st("labels"),nt=st("values"),vt=yt(ot,nt),dt=vt.len;if(_._hasLabels=vt.hasLabels,_._hasValues=vt.hasValues,!_._hasLabels&&_._hasValues&&(st("label0"),st("dlabel")),!dt){_.visible=!1;return}_._length=dt,ut(j,_,tt,st),st("scalegroup");var bt=st("text"),ft=st("texttemplate"),at;if(ft||(at=st("textinfo",Array.isArray(bt)?"text+percent":"percent")),st("hovertext"),st("hovertemplate"),ft||at&&at!=="none"){var mt=st("textposition");Tt(j,_,tt,st,mt,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else at==="none"&&st("textposition","none");et(_,tt,st);var St=st("title.text");St&&(st("title.position"),it.coerceFont(st,"title.font",tt.font)),st("aspectratio"),st("baseratio")}},62396:function(Ct,Rt,o){Ct.exports={moduleType:"trace",name:"funnelarea",basePlotModule:o(91248),categories:["pie-like","funnelarea","showLegend"],attributes:o(22332),layoutAttributes:o(61280),supplyDefaults:o(92688),supplyLayoutDefaults:o(35384),calc:o(54e3).calc,crossTraceCalc:o(54e3).crossTraceCalc,plot:o(39472),style:o(62096),styleOne:o(10528),meta:{}}},61280:function(Ct,Rt,o){var it=o(85204).hiddenlabels;Ct.exports={hiddenlabels:it,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}},35384:function(Ct,Rt,o){var it=o(3400),xt=o(61280);Ct.exports=function(Tt,yt){function ut(ht,j){return it.coerce(Tt,yt,xt,ht,j)}ut("hiddenlabels"),ut("funnelareacolorway",yt.colorway),ut("extendfunnelareacolors")}},39472:function(Ct,Rt,o){var it=o(33428),xt=o(43616),et=o(3400),Tt=et.strScale,yt=et.strTranslate,ut=o(72736),ht=o(98184),j=ht.toMoveInsideBar,_=o(82744),rt=_.recordMinTextSize,tt=_.clearMinTextSize,st=o(69656),ot=o(37820),nt=ot.attachFxHandlers,vt=ot.determineInsideTextFont,dt=ot.layoutAreas,bt=ot.prerenderTitles,ft=ot.positionTitleOutside,at=ot.formatSliceLabel;Ct.exports=function(Et,kt){var wt=Et._context.staticPlot,ct=Et._fullLayout;tt("funnelarea",ct),bt(kt,Et),dt(kt,ct._size),et.makeTraceGroups(ct._funnelarealayer,kt,"trace").each(function(It){var At=it.select(this),Ot=It[0],Pt=Ot.trace;_t(It),At.each(function(){var zt=it.select(this).selectAll("g.slice").data(It);zt.enter().append("g").classed("slice",!0),zt.exit().remove(),zt.each(function(Nt,$t){if(Nt.hidden){it.select(this).selectAll("path,g").remove();return}Nt.pointNumber=Nt.i,Nt.curveNumber=Pt.index;var Ut=Ot.cx,Ht=Ot.cy,Vt=it.select(this),Xt=Vt.selectAll("path.surface").data([Nt]);Xt.enter().append("path").classed("surface",!0).style({"pointer-events":wt?"none":"all"}),Vt.call(nt,Et,It);var qt="M"+(Ut+Nt.TR[0])+","+(Ht+Nt.TR[1])+mt(Nt.TR,Nt.BR)+mt(Nt.BR,Nt.BL)+mt(Nt.BL,Nt.TL)+"Z";Xt.attr("d",qt),at(Et,Nt,Ot);var er=st.castOption(Pt.textposition,Nt.pts),lr=Vt.selectAll("g.slicetext").data(Nt.text&&er!=="none"?[0]:[]);lr.enter().append("g").classed("slicetext",!0),lr.exit().remove(),lr.each(function(){var Jt=et.ensureSingle(it.select(this),"text","",function(or){or.attr("data-notex",1)}),Yt=et.ensureUniformFontSize(Et,vt(Pt,Nt,ct.font));Jt.text(Nt.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(xt.font,Yt).call(ut.convertToTspans,Et);var rr=xt.bBox(Jt.node()),jt,ar,sr,Zt=Math.min(Nt.BL[1],Nt.BR[1])+Ht,Kt=Math.max(Nt.TL[1],Nt.TR[1])+Ht;ar=Math.max(Nt.TL[0],Nt.BL[0])+Ut,sr=Math.min(Nt.TR[0],Nt.BR[0])+Ut,jt=j(ar,sr,Zt,Kt,rr,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),jt.fontSize=Yt.size,rt(Pt.type,jt,ct),It[$t].transform=jt,et.setTransormAndDisplay(Jt,jt)})});var Dt=it.select(this).selectAll("g.titletext").data(Pt.title.text?[0]:[]);Dt.enter().append("g").classed("titletext",!0),Dt.exit().remove(),Dt.each(function(){var Nt=et.ensureSingle(it.select(this),"text","",function(Ht){Ht.attr("data-notex",1)}),$t=Pt.title.text;Pt._meta&&($t=et.templateString($t,Pt._meta)),Nt.text($t).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(xt.font,Pt.title.font).call(ut.convertToTspans,Et);var Ut=ft(Ot,ct._size);Nt.attr("transform",yt(Ut.x,Ut.y)+Tt(Math.min(1,Ut.scale))+yt(Ut.tx,Ut.ty))})})})};function mt(Mt,Et){var kt=Et[0]-Mt[0],wt=Et[1]-Mt[1];return"l"+kt+","+wt}function St(Mt,Et){return[.5*(Mt[0]+Et[0]),.5*(Mt[1]+Et[1])]}function _t(Mt){if(!Mt.length)return;var Et=Mt[0],kt=Et.trace,wt=kt.aspectratio,ct=kt.baseratio;ct>.999&&(ct=.999);var It=Math.pow(ct,2),At=Et.vTotal,Ot=At*It/(1-It),Pt=At,zt=Ot/At;function Dt(){var tr=Math.sqrt(zt);return{x:tr,y:-tr}}function Nt(){var tr=Dt();return[tr.x,tr.y]}var $t,Ut=[];Ut.push(Nt());var Ht,Vt;for(Ht=Mt.length-1;Ht>-1;Ht--)if(Vt=Mt[Ht],!Vt.hidden){var Xt=Vt.v/Pt;zt+=Xt,Ut.push(Nt())}var qt=1/0,er=-1/0;for(Ht=0;Ht-1;Ht--)if(Vt=Mt[Ht],!Vt.hidden){Zt+=1;var Kt=Ut[Zt][0],or=Ut[Zt][1];Vt.TL=[-Kt,or],Vt.TR=[Kt,or],Vt.BL=ar,Vt.BR=sr,Vt.pxmid=St(Vt.TR,Vt.BR),ar=Vt.TL,sr=Vt.TR}}},62096:function(Ct,Rt,o){var it=o(33428),xt=o(10528),et=o(82744).resizeText;Ct.exports=function(yt){var ut=yt._fullLayout._funnelarealayer.selectAll(".trace");et(yt,ut,"funnelarea"),ut.each(function(ht){var j=ht[0],_=j.trace,rt=it.select(this);rt.style({opacity:_.opacity}),rt.selectAll("path.surface").each(function(tt){it.select(this).call(xt,tt,_,yt)})})}},83328:function(Ct,Rt,o){var it=o(52904),xt=o(45464),et=o(25376),Tt=o(29736).axisHoverFormat,yt=o(21776).Ks,ut=o(21776).Gw,ht=o(49084),j=o(92880).extendFlat;Ct.exports=j({z:{valType:"data_array",editType:"calc"},x:j({},it.x,{impliedEdits:{xtype:"array"}}),x0:j({},it.x0,{impliedEdits:{xtype:"scaled"}}),dx:j({},it.dx,{impliedEdits:{xtype:"scaled"}}),y:j({},it.y,{impliedEdits:{ytype:"array"}}),y0:j({},it.y0,{impliedEdits:{ytype:"scaled"}}),dy:j({},it.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:j({},it.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:j({},it.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:j({},it.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:j({},it.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:j({},it.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:j({},it.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:Tt("x"),yhoverformat:Tt("y"),zhoverformat:Tt("z",1),hovertemplate:yt(),texttemplate:ut({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:et({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:j({},xt.showlegend,{dflt:!1}),zorder:it.zorder},{transforms:void 0},ht("",{cLetter:"z",autoColorDflt:!1}))},19512:function(Ct,Rt,o){var it=o(24040),xt=o(3400),et=o(54460),Tt=o(1220),yt=o(55480),ut=o(47128),ht=o(2872),j=o(26136),_=o(70448),rt=o(11240),tt=o(35744),st=o(39032).BADNUM;Ct.exports=function(dt,bt){var ft=et.getFromId(dt,bt.xaxis||"x"),at=et.getFromId(dt,bt.yaxis||"y"),mt=it.traceIs(bt,"contour"),St=it.traceIs(bt,"histogram"),_t=it.traceIs(bt,"gl2d"),Mt=mt?"best":bt.zsmooth,Et,kt,wt,ct,It,At,Ot,Pt,zt,Dt,Nt;if(ft._minDtick=0,at._minDtick=0,St)Nt=yt(dt,bt),ct=Nt.orig_x,Et=Nt.x,kt=Nt.x0,wt=Nt.dx,Pt=Nt.orig_y,It=Nt.y,At=Nt.y0,Ot=Nt.dy,zt=Nt.z;else{var $t=bt.z;xt.isArray1D($t)?(ht(bt,ft,at,"x","y",["z"]),Et=bt._x,It=bt._y,$t=bt._z):(ct=bt.x?ft.makeCalcdata(bt,"x"):[],Pt=bt.y?at.makeCalcdata(bt,"y"):[],Et=Tt(bt,ft,"x",ct).vals,It=Tt(bt,at,"y",Pt).vals,bt._x=Et,bt._y=It),kt=bt.x0,wt=bt.dx,At=bt.y0,Ot=bt.dy,zt=j($t,bt,ft,at)}(ft.rangebreaks||at.rangebreaks)&&(zt=nt(Et,It,zt),St||(Et=ot(Et),It=ot(It),bt._x=Et,bt._y=It)),!St&&(mt||bt.connectgaps)&&(bt._emptypoints=rt(zt),_(zt,bt._emptypoints));function Ut(rr){Mt=bt._input.zsmooth=bt.zsmooth=!1,xt.warn('cannot use zsmooth: "fast": '+rr)}function Ht(rr){if(rr.length>1){var jt=(rr[rr.length-1]-rr[0])/(rr.length-1),ar=Math.abs(jt/100);for(Dt=0;Dtar)return!1}return!0}bt._islinear=!1,ft.type==="log"||at.type==="log"?Mt==="fast"&&Ut("log axis found"):Ht(Et)?Ht(It)?bt._islinear=!0:Mt==="fast"&&Ut("y scale is not linear"):Mt==="fast"&&Ut("x scale is not linear");var Vt=xt.maxRowLength(zt),Xt=bt.xtype==="scaled"?"":Et,qt=tt(bt,Xt,kt,wt,Vt,ft),er=bt.ytype==="scaled"?"":It,lr=tt(bt,er,At,Ot,zt.length,at);_t||(bt._extremes[ft._id]=et.findExtremes(ft,qt),bt._extremes[at._id]=et.findExtremes(at,lr));var Jt={x:qt,y:lr,z:zt,text:bt._text||bt.text,hovertext:bt._hovertext||bt.hovertext};if(bt.xperiodalignment&&ct&&(Jt.orig_x=ct),bt.yperiodalignment&&Pt&&(Jt.orig_y=Pt),Xt&&Xt.length===qt.length-1&&(Jt.xCenter=Xt),er&&er.length===lr.length-1&&(Jt.yCenter=er),St&&(Jt.xRanges=Nt.xRanges,Jt.yRanges=Nt.yRanges,Jt.pts=Nt.pts),mt||ut(dt,bt,{vals:zt,cLetter:"z"}),mt&&bt.contours&&bt.contours.coloring==="heatmap"){var Yt={type:bt.type==="contour"?"heatmap":"histogram2d",xcalendar:bt.xcalendar,ycalendar:bt.ycalendar};Jt.xfill=tt(Yt,Xt,kt,wt,Vt,ft),Jt.yfill=tt(Yt,er,At,Ot,zt.length,at)}return[Jt]};function ot(vt){for(var dt=[],bt=vt.length,ft=0;ft=0;vt--)nt=ut[vt],st=nt[0],ot=nt[1],dt=((yt[[st-1,ot]]||_)[2]+(yt[[st+1,ot]]||_)[2]+(yt[[st,ot-1]]||_)[2]+(yt[[st,ot+1]]||_)[2])/20,dt&&(bt[nt]=[st,ot,dt],ut.splice(vt,1),ft=!0);if(!ft)throw"findEmpties iterated with no new neighbors";for(nt in bt)yt[nt]=bt[nt],Tt.push(bt[nt])}return Tt.sort(function(at,mt){return mt[2]-at[2]})}},55512:function(Ct,Rt,o){var it=o(93024),xt=o(3400),et=xt.isArrayOrTypedArray,Tt=o(54460),yt=o(8932).extractOpts;Ct.exports=function(ht,j,_,rt,tt){tt||(tt={});var st=tt.isContour,ot=ht.cd[0],nt=ot.trace,vt=ht.xa,dt=ht.ya,bt=ot.x,ft=ot.y,at=ot.z,mt=ot.xCenter,St=ot.yCenter,_t=ot.zmask,Mt=nt.zhoverformat,Et=bt,kt=ft,wt,ct,It,At;if(ht.index!==!1){try{It=Math.round(ht.index[1]),At=Math.round(ht.index[0])}catch{xt.error("Error hovering on heatmap, pointNumber must be [row,col], found:",ht.index);return}if(It<0||It>=at[0].length||At<0||At>at.length)return}else{if(it.inbox(j-bt[0],j-bt[bt.length-1],0)>0||it.inbox(_-ft[0],_-ft[ft.length-1],0)>0)return;if(st){var Ot;for(Et=[2*bt[0]-bt[1]],Ot=1;Otxt;rt++)_=yt(ht,j,Tt(_));return _>xt&&it.log("interp2d didn't converge quickly",_),ht};function yt(ut,ht,j){var _=0,rt,tt,st,ot,nt,vt,dt,bt,ft,at,mt,St,_t;for(ot=0;otSt&&(_=Math.max(_,Math.abs(ut[tt][st]-mt)/(_t-St))))}return _}},39096:function(Ct,Rt,o){var it=o(3400);Ct.exports=function(et,Tt){et("texttemplate");var yt=it.extendFlat({},Tt.font,{color:"auto",size:"auto"});it.coerceFont(et,"textfont",yt)}},35744:function(Ct,Rt,o){var it=o(24040),xt=o(3400).isArrayOrTypedArray;Ct.exports=function(Tt,yt,ut,ht,j,_){var rt=[],tt=it.traceIs(Tt,"contour"),st=it.traceIs(Tt,"histogram"),ot=it.traceIs(Tt,"gl2d"),nt,vt,dt,bt=xt(yt)&&yt.length>1;if(bt&&!st&&_.type!=="category"){var ft=yt.length;if(ft<=j){if(tt||ot)rt=Array.from(yt).slice(0,j);else if(j===1)_.type==="log"?rt=[.5*yt[0],2*yt[0]]:rt=[yt[0]-.5,yt[0]+.5];else if(_.type==="log"){for(rt=[Math.pow(yt[0],1.5)/Math.pow(yt[1],.5)],dt=1;dt0;)ar=ct.c2p(Ut[or]),or--;for(ar0;)Kt=It.c2p(Ht[or]),or--;Kt=ct._length||ar<=0||Zt>=It._length||Kt<=0;if(Tr){var _r=Ot.selectAll("image").data([]);_r.exit().remove(),at(Ot);return}var Er,Rr;mr==="fast"?(Er=Jt,Rr=lr):(Er=br,Rr=Ir);var zr=document.createElement("canvas");zr.width=Er,zr.height=Rr;var Or=zr.getContext("2d",{willReadFrequently:!0}),kr=tt(zt,{noNumericCheck:!0,returnArray:!0}),Nr,Qr;mr==="fast"?(Nr=Yt?function(Oo){return Jt-1-Oo}:ut.identity,Qr=rr?function(Oo){return lr-1-Oo}:ut.identity):(Nr=function(Oo){return ut.constrain(Math.round(ct.c2p(Ut[Oo])-jt),0,br)},Qr=function(Oo){return ut.constrain(Math.round(It.c2p(Ht[Oo])-Zt),0,Ir)});var sn=Qr(0),un=[sn,sn],en=Yt?0:1,Xr=rr?0:1,ln=0,mn=0,pn=0,Tn=0,Zr,Fr,Ur,Wr,Gr;function wr(Oo,ys){if(Oo!==void 0){var gs=kr(Oo);return gs[0]=Math.round(gs[0]),gs[1]=Math.round(gs[1]),gs[2]=Math.round(gs[2]),ln+=ys,mn+=gs[0]*ys,pn+=gs[1]*ys,Tn+=gs[2]*ys,gs}return[0,0,0,0]}function pr(Oo,ys,gs,zs){var Us=Oo[gs.bin0];if(Us===void 0)return wr(void 0,1);var Qs=Oo[gs.bin1],Fl=ys[gs.bin0],Jl=ys[gs.bin1],nu=Qs-Us||0,Yl=Fl-Us||0,Zs;return Qs===void 0?Jl===void 0?Zs=0:Fl===void 0?Zs=2*(Jl-Us):Zs=(2*Jl-Fl-Us)*2/3:Jl===void 0?Fl===void 0?Zs=0:Zs=(2*Us-Qs-Fl)*2/3:Fl===void 0?Zs=(2*Jl-Qs-Us)*2/3:Zs=Jl+Us-Qs-Fl,wr(Us+gs.frac*nu+zs.frac*(Yl+gs.frac*Zs))}if(mr!=="default"){var Dr=0,Sr;try{Sr=new Uint8Array(Er*Rr*4)}catch{Sr=new Array(Er*Rr*4)}if(mr==="smooth"){var ur=Vt||Ut,xr=Xt||Ht,Pr=new Array(ur.length),Vr=new Array(xr.length),qr=new Array(br),rn=Vt?St:mt,Cn=Xt?St:mt,xn,fn,bn;for(or=0;orpo||po>It._length))for(tr=Vn;trjr||jr>ct._length)){var $n=j({x:Yr,y:qn},zt,Mt._fullLayout);$n.x=Yr,$n.y=qn;var Bn=Pt.z[or][tr];Bn===void 0?($n.z="",$n.zLabel=""):($n.z=Bn,$n.zLabel=yt.tickText(wn,Bn,"hover").text);var xa=Pt.text&&Pt.text[or]&&Pt.text[or][tr];(xa===void 0||xa===!1)&&(xa=""),$n.text=xa;var ro=ut.texttemplateString(An,$n,Mt._fullLayout._d3locale,$n,zt._meta||{});if(ro){var io=ro.split("
"),eo=io.length,Gn=0;for(cr=0;cr0&&(j=!0);for(var st=0;stut){var ht=ut-Tt[xt];return Tt[xt]=ut,ht}}else return Tt[xt]=ut,ut;return 0},max:function(xt,et,Tt,yt){var ut=yt[et];if(it(ut))if(ut=Number(ut),it(Tt[xt])){if(Tt[xt]kt&&ktTt){var It=wt===xt?1:6,At=wt===xt?"M12":"M1";return function(Ot,Pt){var zt=bt.c2d(Ot,xt,ft),Dt=zt.indexOf("-",It);Dt>0&&(zt=zt.substr(0,Dt));var Nt=bt.d2c(zt,0,ft);if(Ntht?ot>Tt?ot>xt*1.1?xt:ot>et*1.1?et:Tt:ot>yt?yt:ot>ut?ut:ht:Math.pow(10,Math.floor(Math.log(ot)/Math.LN10))}function tt(ot,nt,vt,dt,bt,ft){if(dt&&ot>Tt){var at=st(nt,bt,ft),mt=st(vt,bt,ft),St=ot===xt?0:1;return at[St]!==mt[St]}return Math.floor(vt/ot)-Math.floor(nt/ot)>.1}function st(ot,nt,vt){var dt=nt.c2d(ot,xt,vt).split("-");return dt[0]===""&&(dt.unshift(),dt[0]="-"+dt[0]),dt}},35852:function(Ct,Rt,o){var it=o(38248),xt=o(3400),et=o(24040),Tt=o(54460),yt=o(84664),ut=o(16964),ht=o(10648),j=o(2e3),_=o(67712);function rt(vt,dt){var bt=[],ft=[],at=dt.orientation==="h",mt=Tt.getFromId(vt,at?dt.yaxis:dt.xaxis),St=at?"y":"x",_t={x:"y",y:"x"}[St],Mt=dt[St+"calendar"],Et=dt.cumulative,kt,wt=tt(vt,dt,mt,St),ct=wt[0],It=wt[1],At=typeof ct.size=="string",Ot=[],Pt=At?Ot:ct,zt=[],Dt=[],Nt=[],$t=0,Ut=dt.histnorm,Ht=dt.histfunc,Vt=Ut.indexOf("density")!==-1,Xt,qt,er;Et.enabled&&Vt&&(Ut=Ut.replace(/ ?density$/,""),Vt=!1);var lr=Ht==="max"||Ht==="min",Jt=lr?null:0,Yt=ut.count,rr=ht[Ut],jt=!1,ar=function(Or){return mt.r2c(Or,0,Mt)},sr;for(xt.isArrayOrTypedArray(dt[_t])&&Ht!=="count"&&(sr=dt[_t],jt=Ht==="avg",Yt=ut[Ht]),kt=ar(ct.start),qt=ar(ct.end)+(kt-Tt.tickIncrement(kt,ct.size,!1,Mt))/1e6;kt=0&&er=Er;kt--)if(ft[kt]){Rr=kt;break}for(kt=Er;kt<=Rr;kt++)if(it(bt[kt])&&it(ft[kt])){var zr={p:bt[kt],s:ft[kt],b:0};Et.enabled||(zr.pts=Nt[kt],tr?zr.ph0=zr.ph1=Nt[kt].length?It[Nt[kt][0]]:bt[kt]:(dt._computePh=!0,zr.ph0=Ir(Ot[kt]),zr.ph1=Ir(Ot[kt+1],!0))),_r.push(zr)}return _r.length===1&&(_r[0].width1=Tt.tickIncrement(_r[0].p,ct.size,!1,Mt)-_r[0].p),yt(_r,dt),xt.isArrayOrTypedArray(dt.selectedpoints)&&xt.tagSelected(_r,dt,Ar),_r}function tt(vt,dt,bt,ft,at){var mt=ft+"bins",St=vt._fullLayout,_t=dt["_"+ft+"bingroup"],Mt=St._histogramBinOpts[_t],Et=St.barmode==="overlay",kt,wt,ct,It,At,Ot,Pt,zt=function(br){return bt.r2c(br,0,It)},Dt=function(br){return bt.c2r(br,0,It)},Nt=bt.type==="date"?function(br){return br||br===0?xt.cleanDate(br,null,It):null}:function(br){return it(br)?Number(br):null};function $t(br,Ir,Tr){Ir[br+"Found"]?(Ir[br]=Nt(Ir[br]),Ir[br]===null&&(Ir[br]=Tr[br])):(Ot[br]=Ir[br]=Tr[br],xt.nestedProperty(wt[0],mt+"."+br).set(Tr[br]))}if(dt["_"+ft+"autoBinFinished"])delete dt["_"+ft+"autoBinFinished"];else{wt=Mt.traces;var Ut=[],Ht=!0,Vt=!1,Xt=!1;for(kt=0;kt"u"){if(at)return[er,At,!0];er=st(vt,dt,bt,ft,mt)}Pt=ct.cumulative||{},Pt.enabled&&Pt.currentbin!=="include"&&(Pt.direction==="decreasing"?er.start=Dt(Tt.tickIncrement(zt(er.start),er.size,!0,It)):er.end=Dt(Tt.tickIncrement(zt(er.end),er.size,!1,It))),Mt.size=er.size,Mt.sizeFound||(Ot.size=er.size,xt.nestedProperty(wt[0],mt+".size").set(er.size)),$t("start",Mt,er),$t("end",Mt,er)}At=dt["_"+ft+"pos0"],delete dt["_"+ft+"pos0"];var Jt=dt._input[mt]||{},Yt=xt.extendFlat({},Mt),rr=Mt.start,jt=bt.r2l(Jt.start),ar=jt!==void 0;if((Mt.startFound||ar)&&jt!==bt.r2l(rr)){var sr=ar?jt:xt.aggNums(Math.min,null,At),Zt={type:bt.type==="category"||bt.type==="multicategory"?"linear":bt.type,r2l:bt.r2l,dtick:Mt.size,tick0:rr,calendar:It,range:[sr,Tt.tickIncrement(sr,Mt.size,!1,It)].map(bt.l2r)},Kt=Tt.tickFirst(Zt);Kt>bt.r2l(sr)&&(Kt=Tt.tickIncrement(Kt,Mt.size,!0,It)),Yt.start=bt.l2r(Kt),ar||xt.nestedProperty(dt,mt+".start").set(Yt.start)}var or=Mt.end,tr=bt.r2l(Jt.end),cr=tr!==void 0;if((Mt.endFound||cr)&&tr!==bt.r2l(or)){var mr=cr?tr:xt.aggNums(Math.max,null,At);Yt.end=bt.l2r(mr),cr||xt.nestedProperty(dt,mt+".start").set(Yt.end)}var Ar="autobin"+ft;return dt._input[Ar]===!1&&(dt._input[mt]=xt.extendFlat({},dt[mt]||{}),delete dt._input[Ar],delete dt[Ar]),[Yt,At]}function st(vt,dt,bt,ft,at){var mt=vt._fullLayout,St=ot(vt,dt),_t=!1,Mt=1/0,Et=[dt],kt,wt,ct;for(kt=0;kt=0;ft--)_t(ft);else if(dt==="increasing"){for(ft=1;ft=0;ft--)vt[ft]+=vt[ft+1];bt==="exclude"&&(vt.push(0),vt.shift())}}Ct.exports={calc:rt,calcAllAutoBins:tt}},73316:function(Ct){Ct.exports={eventDataKeys:["binNumber"]}},80536:function(Ct,Rt,o){var it=o(3400),xt=o(79811),et=o(24040).traceIs,Tt=o(20011),yt=o(31508).validateCornerradius,ut=it.nestedProperty,ht=o(71888).getAxisGroup,j=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],_=["x","y"];Ct.exports=function(tt,st){var ot=st._histogramBinOpts={},nt=[],vt={},dt=[],bt,ft,at,mt,St,_t,Mt;function Et(er,lr){return it.coerce(bt._input,bt,bt._module.attributes,er,lr)}function kt(er){return er.orientation==="v"?"x":"y"}function wt(er,lr){var Jt=xt.getFromTrace({_fullLayout:st},er,lr);return Jt.type}function ct(er,lr,Jt){var Yt=er.uid+"__"+Jt;lr||(lr=Yt);var rr=wt(er,Jt),jt=er[Jt+"calendar"]||"",ar=ot[lr],sr=!0;ar&&(rr===ar.axType&&jt===ar.calendar?(sr=!1,ar.traces.push(er),ar.dirs.push(Jt)):(lr=Yt,rr!==ar.axType&&it.warn(["Attempted to group the bins of trace",er.index,"set on a","type:"+rr,"axis","with bins on","type:"+ar.axType,"axis."].join(" ")),jt!==ar.calendar&&it.warn(["Attempted to group the bins of trace",er.index,"set with a",jt,"calendar","with bins",ar.calendar?"on a "+ar.calendar+" calendar":"w/o a set calendar"].join(" ")))),sr&&(ot[lr]={traces:[er],dirs:[Jt],axType:rr,calendar:er[Jt+"calendar"]||""}),er["_"+Jt+"bingroup"]=lr}for(St=0;Stzt&&It.splice(zt,It.length-zt),Pt.length>zt&&Pt.splice(zt,Pt.length-zt);var Dt=[],Nt=[],$t=[],Ut=typeof ct.size=="string",Ht=typeof Ot.size=="string",Vt=[],Xt=[],qt=Ut?Vt:ct,er=Ht?Xt:Ot,lr=0,Jt=[],Yt=[],rr=ot.histnorm,jt=ot.histfunc,ar=rr.indexOf("density")!==-1,sr=jt==="max"||jt==="min",Zt=sr?null:0,Kt=et.count,or=Tt[rr],tr=!1,cr=[],mr=[],Ar="z"in ot?ot.z:"marker"in ot&&Array.isArray(ot.marker.color)?ot.marker.color:"";Ar&&jt!=="count"&&(tr=jt==="avg",Kt=et[jt]);var br=ct.size,Ir=ft(ct.start),Tr=ft(ct.end)+(Ir-xt.tickIncrement(Ir,br,!1,dt))/1e6;for(_t=Ir;_t=0&&Et<_r&&kt>=0&&kt-1,flipY:Nt.tiling.flip.indexOf("y")>-1,orientation:Nt.tiling.orientation,pad:{inner:Nt.tiling.pad},maxDepth:Nt._maxDepth}),Xt=Vt.descendants(),qt=1/0,er=-1/0;Xt.forEach(function(jt){var ar=jt.depth;ar>=Nt._maxDepth?(jt.x0=jt.x1=(jt.x0+jt.x1)/2,jt.y0=jt.y1=(jt.y0+jt.y1)/2):(qt=Math.min(qt,ar),er=Math.max(er,ar))}),dt=dt.data(Xt,j.getPtId),Nt._maxVisibleLayers=isFinite(er)?er-qt+1:0,dt.enter().append("g").classed("slice",!0),wt(dt,tt,Ot,[ft,at],_t),dt.order();var lr=null;if(kt&&At){var Jt=j.getPtId(At);dt.each(function(jt){lr===null&&j.getPtId(jt)===Jt&&(lr={x0:jt.x0,x1:jt.x1,y0:jt.y0,y1:jt.y1})})}var Yt=function(){return lr||{x0:0,x1:ft,y0:0,y1:at}},rr=dt;return kt&&(rr=rr.transition().each("end",function(){var jt=it.select(this);j.setSliceCursor(jt,ot,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),rr.each(function(jt){jt._x0=mt(jt.x0),jt._x1=mt(jt.x1),jt._y0=St(jt.y0),jt._y1=St(jt.y1),jt._hoverX=mt(jt.x1-Nt.tiling.pad),jt._hoverY=St(Ht?jt.y1-Nt.tiling.pad/2:jt.y0+Nt.tiling.pad/2);var ar=it.select(this),sr=xt.ensureSingle(ar,"path","surface",function(tr){tr.style("pointer-events",Pt?"none":"all")});kt?sr.transition().attrTween("d",function(tr){var cr=ct(tr,tt,Yt(),[ft,at],{orientation:Nt.tiling.orientation,flipX:Nt.tiling.flip.indexOf("x")>-1,flipY:Nt.tiling.flip.indexOf("y")>-1});return function(mr){return _t(cr(mr))}}):sr.attr("d",_t),ar.call(_,vt,ot,nt,{styleOne:ut,eventDataKeys:ht.eventDataKeys,transitionTime:ht.CLICK_TRANSITION_TIME,transitionEasing:ht.CLICK_TRANSITION_EASING}).call(j.setSliceCursor,ot,{isTransitioning:ot._transitioning}),sr.call(ut,jt,Nt,ot,{hovered:!1}),jt.x0===jt.x1||jt.y0===jt.y1?jt._text="":jt._text=rt(jt,vt,Nt,nt,zt)||"";var Zt=xt.ensureSingle(ar,"g","slicetext"),Kt=xt.ensureSingle(Zt,"text","",function(tr){tr.attr("data-notex",1)}),or=xt.ensureUniformFontSize(ot,j.determineTextFont(Nt,jt,zt.font));Kt.text(jt._text||" ").classed("slicetext",!0).attr("text-anchor",Ut?"end":$t?"start":"middle").call(et.font,or).call(Tt.convertToTspans,ot),jt.textBB=et.bBox(Kt.node()),jt.transform=Mt(jt,{fontSize:or.size}),jt.transform.fontSize=or.size,kt?Kt.transition().attrTween("transform",function(tr){var cr=It(tr,tt,Yt(),[ft,at]);return function(mr){return Et(cr(mr))}}):Kt.attr("transform",Et(jt))}),lr}},29044:function(Ct,Rt,o){Ct.exports={moduleType:"trace",name:"icicle",basePlotModule:o(59564),categories:[],animatable:!0,attributes:o(97376),layoutAttributes:o(90676),supplyDefaults:o(7045),supplyLayoutDefaults:o(4304),calc:o(73876).r,crossTraceCalc:o(73876).q,plot:o(38364),style:o(47192).style,colorbar:o(5528),meta:{}}},90676:function(Ct){Ct.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}},4304:function(Ct,Rt,o){var it=o(3400),xt=o(90676);Ct.exports=function(Tt,yt){function ut(ht,j){return it.coerce(Tt,yt,xt,ht,j)}ut("iciclecolorway",yt.colorway),ut("extendiciclecolors")}},25132:function(Ct,Rt,o){var it=o(74148),xt=o(83024);Ct.exports=function(Tt,yt,ut){var ht=ut.flipX,j=ut.flipY,_=ut.orientation==="h",rt=ut.maxDepth,tt=yt[0],st=yt[1];rt&&(tt=(Tt.height+1)*yt[0]/Math.min(Tt.height+1,rt),st=(Tt.height+1)*yt[1]/Math.min(Tt.height+1,rt));var ot=it.partition().padding(ut.pad.inner).size(_?[yt[1],tt]:[yt[0],st])(Tt);return(_||ht||j)&&xt(ot,yt,{swapXY:_,flipX:ht,flipY:j}),ot}},38364:function(Ct,Rt,o){var it=o(95808),xt=o(67880);Ct.exports=function(Tt,yt,ut,ht){return it(Tt,yt,ut,ht,{type:"icicle",drawDescendants:xt})}},47192:function(Ct,Rt,o){var it=o(33428),xt=o(76308),et=o(3400),Tt=o(82744).resizeText,yt=o(60404);function ut(j){var _=j._fullLayout._iciclelayer.selectAll(".trace");Tt(j,_,"icicle"),_.each(function(rt){var tt=it.select(this),st=rt[0],ot=st.trace;tt.style("opacity",ot.opacity),tt.selectAll("path.surface").each(function(nt){it.select(this).call(ht,nt,ot,j)})})}function ht(j,_,rt,tt){var st=_.data.data,ot=!_.children,nt=st.i,vt=et.castOption(rt,nt,"marker.line.color")||xt.defaultLine,dt=et.castOption(rt,nt,"marker.line.width")||0;j.call(yt,_,rt,tt).style("stroke-width",dt).call(xt.stroke,vt).style("opacity",ot?rt.leaf.opacity:null)}Ct.exports={style:ut,styleOne:ht}},95188:function(Ct,Rt,o){for(var it=o(45464),xt=o(52904).zorder,et=o(21776).Ks,Tt=o(92880).extendFlat,yt=o(47797).colormodel,ut=["rgb","rgba","rgba256","hsl","hsla"],ht=[],j=[],_=0;_0||it.inbox(j-_.y0,j-(_.y0+_.h*rt.dy),0)>0)){var ot=Math.floor((ht-_.x0)/rt.dx),nt=Math.floor(Math.abs(j-_.y0)/rt.dy),vt;if(rt._hasZ?vt=_.z[nt][ot]:rt._hasSource&&(vt=rt._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(ot,nt,1,1).data),!!vt){var dt=_.hi||rt.hoverinfo,bt;if(dt){var ft=dt.split("+");ft.indexOf("all")!==-1&&(ft=["color"]),ft.indexOf("color")!==-1&&(bt=!0)}var at=Tt.colormodel[rt.colormodel],mt=at.colormodel||rt.colormodel,St=mt.length,_t=rt._scaler(vt),Mt=at.suffix,Et=[];(rt.hovertemplate||bt)&&(Et.push("["+[_t[0]+Mt[0],_t[1]+Mt[1],_t[2]+Mt[2]].join(", ")),St===4&&Et.push(", "+_t[3]+Mt[3]),Et.push("]"),Et=Et.join(""),ut.extraText=mt.toUpperCase()+": "+Et);var kt;et(rt.hovertext)&&et(rt.hovertext[nt])?kt=rt.hovertext[nt][ot]:et(rt.text)&&et(rt.text[nt])&&(kt=rt.text[nt][ot]);var wt=st.c2p(_.y0+(nt+.5)*rt.dy),ct=_.x0+(ot+.5)*rt.dx,It=_.y0+(nt+.5)*rt.dy,At="["+vt.slice(0,rt.colormodel.length).join(", ")+"]";return[xt.extendFlat(ut,{index:[nt,ot],x0:tt.c2p(_.x0+ot*rt.dx),x1:tt.c2p(_.x0+(ot+1)*rt.dx),y0:wt,y1:wt,color:_t,xVal:ct,xLabelVal:ct,yVal:It,yLabelVal:It,zLabelVal:At,text:kt,hovertemplateLabels:{zLabel:At,colorLabel:Et,"color[0]Label":_t[0]+Mt[0],"color[1]Label":_t[1]+Mt[1],"color[2]Label":_t[2]+Mt[2],"color[3]Label":_t[3]+Mt[3]}})]}}}},48928:function(Ct,Rt,o){Ct.exports={attributes:o(95188),supplyDefaults:o(13188),calc:o(93336),plot:o(63715),style:o(28576),hoverPoints:o(24892),eventData:o(79972),moduleType:"trace",name:"image",basePlotModule:o(57952),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}},63715:function(Ct,Rt,o){var it=o(33428),xt=o(3400),et=xt.strTranslate,Tt=o(9616),yt=o(47797),ut=o(9188),ht=o(2264).STYLE;Ct.exports=function(_,rt,tt,st){var ot=rt.xaxis,nt=rt.yaxis,vt=!_._context._exportedPlot&&ut();xt.makeTraceGroups(st,tt,"im").each(function(dt){var bt=it.select(this),ft=dt[0],at=ft.trace,mt=(at.zsmooth==="fast"||at.zsmooth===!1&&vt)&&!at._hasZ&&at._hasSource&&ot.type==="linear"&&nt.type==="linear";at._realImage=mt;var St=ft.z,_t=ft.x0,Mt=ft.y0,Et=ft.w,kt=ft.h,wt=at.dx,ct=at.dy,It,At,Ot,Pt,zt,Dt;for(Dt=0;It===void 0&&Dt0;)At=ot.c2p(_t+Dt*wt),Dt--;for(Dt=0;Pt===void 0&&Dt0;)zt=nt.c2p(Mt+Dt*ct),Dt--;if(AtJt[0];if(Yt||rr){var jt=It+$t/2,ar=Pt+Ut/2;er+="transform:"+et(jt+"px",ar+"px")+"scale("+(Yt?-1:1)+","+(rr?-1:1)+")"+et(-jt+"px",-ar+"px")+";"}}qt.attr("style",er);var sr=new Promise(function(Zt){if(at._hasZ)Zt();else if(at._hasSource)if(at._canvas&&at._canvas.el.width===Et&&at._canvas.el.height===kt&&at._canvas.source===at.source)Zt();else{var Kt=document.createElement("canvas");Kt.width=Et,Kt.height=kt;var or=Kt.getContext("2d",{willReadFrequently:!0});at._image=at._image||new Image;var tr=at._image;tr.onload=function(){or.drawImage(tr,0,0),at._canvas={el:Kt,source:at.source},Zt()},tr.setAttribute("src",at.source)}}).then(function(){var Zt,Kt;if(at._hasZ)Kt=Xt(function(cr,mr){var Ar=St[mr][cr];return xt.isTypedArray(Ar)&&(Ar=Array.from(Ar)),Ar}),Zt=Kt.toDataURL("image/png");else if(at._hasSource)if(mt)Zt=at.source;else{var or=at._canvas.el.getContext("2d",{willReadFrequently:!0}),tr=or.getImageData(0,0,Et,kt).data;Kt=Xt(function(cr,mr){var Ar=4*(mr*Et+cr);return[tr[Ar],tr[Ar+1],tr[Ar+2],tr[Ar+3]]}),Zt=Kt.toDataURL("image/png")}qt.attr({"xlink:href":Zt,height:Ut,width:$t,x:It,y:Pt})});_._promises.push(sr)})}},28576:function(Ct,Rt,o){var it=o(33428);Ct.exports=function(et){it.select(et).selectAll(".im image").style("opacity",function(Tt){return Tt[0].trace.opacity})}},89864:function(Ct,Rt,o){var it=o(92880).extendFlat,xt=o(92880).extendDeep,et=o(67824).overrideAll,Tt=o(25376),yt=o(22548),ut=o(86968).u,ht=o(94724),j=o(31780).templatedArray,_=o(48164),rt=o(29736).descriptionOnlyNumbers,tt=Tt({editType:"plot",colorEditType:"plot"}),st={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:yt.defaultLine,editType:"plot"},width:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},thickness:{valType:"number",min:0,max:1,dflt:1,editType:"plot"},editType:"calc"},ot={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},nt=j("step",xt({},st,{range:ot}));Ct.exports={mode:{valType:"flaglist",editType:"calc",flags:["number","delta","gauge"],dflt:"number"},value:{valType:"number",editType:"calc",anim:!0},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},domain:ut({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:it({},tt,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:rt("value")},font:it({},tt,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"plot"},delta:{reference:{valType:"number",editType:"calc"},position:{valType:"enumerated",values:["top","bottom","left","right"],dflt:"bottom",editType:"plot"},relative:{valType:"boolean",editType:"plot",dflt:!1},valueformat:{valType:"string",editType:"plot",description:rt("value")},increasing:{symbol:{valType:"string",dflt:_.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:_.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:_.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:_.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:it({},tt,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"calc"},gauge:{shape:{valType:"enumerated",editType:"plot",dflt:"angular",values:["angular","bullet"]},bar:xt({},st,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:yt.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:et({range:ot,visible:it({},ht.visible,{dflt:!0}),tickmode:ht.minor.tickmode,nticks:ht.nticks,tick0:ht.tick0,dtick:ht.dtick,tickvals:ht.tickvals,ticktext:ht.ticktext,ticks:it({},ht.ticks,{dflt:"outside"}),ticklen:ht.ticklen,tickwidth:ht.tickwidth,tickcolor:ht.tickcolor,ticklabelstep:ht.ticklabelstep,showticklabels:ht.showticklabels,labelalias:ht.labelalias,tickfont:Tt({}),tickangle:ht.tickangle,tickformat:ht.tickformat,tickformatstops:ht.tickformatstops,tickprefix:ht.tickprefix,showtickprefix:ht.showtickprefix,ticksuffix:ht.ticksuffix,showticksuffix:ht.showticksuffix,separatethousands:ht.separatethousands,exponentformat:ht.exponentformat,minexponent:ht.minexponent,showexponent:ht.showexponent,editType:"plot"},"plot"),steps:nt,threshold:{line:{color:it({},st.line.color,{}),width:it({},st.line.width,{dflt:1}),editType:"plot"},thickness:it({},st.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}},92728:function(Ct,Rt,o){var it=o(7316);Rt.name="indicator",Rt.plot=function(xt,et,Tt,yt){it.plotBasePlot(Rt.name,xt,et,Tt,yt)},Rt.clean=function(xt,et,Tt,yt){it.cleanBasePlot(Rt.name,xt,et,Tt,yt)}},79136:function(Ct){function Rt(o,it){var xt=[],et=it.value;typeof it._lastValue!="number"&&(it._lastValue=it.value);var Tt=it._lastValue,yt=Tt;return it._hasDelta&&typeof it.delta.reference=="number"&&(yt=it.delta.reference),xt[0]={y:et,lastY:Tt,delta:et-yt,relativeDelta:(et-yt)/yt},xt}Ct.exports={calc:Rt}},12096:function(Ct){Ct.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}},20424:function(Ct,Rt,o){var it=o(3400),xt=o(89864),et=o(86968).Q,Tt=o(31780),yt=o(51272),ut=o(12096),ht=o(26332),j=o(25404),_=o(95936),rt=o(42568);function tt(ot,nt,vt,dt){function bt($t,Ut){return it.coerce(ot,nt,xt,$t,Ut)}et(nt,dt,bt),bt("mode"),nt._hasNumber=nt.mode.indexOf("number")!==-1,nt._hasDelta=nt.mode.indexOf("delta")!==-1,nt._hasGauge=nt.mode.indexOf("gauge")!==-1;var ft=bt("value");nt._range=[0,typeof ft=="number"?1.5*ft:1];var at=new Array(2),mt;if(nt._hasNumber){bt("number.valueformat");var St=it.extendFlat({},dt.font);St.size=void 0,it.coerceFont(bt,"number.font",St),nt.number.font.size===void 0&&(nt.number.font.size=ut.defaultNumberFontSize,at[0]=!0),bt("number.prefix"),bt("number.suffix"),mt=nt.number.font.size}var _t;if(nt._hasDelta){var Mt=it.extendFlat({},dt.font);Mt.size=void 0,it.coerceFont(bt,"delta.font",Mt),nt.delta.font.size===void 0&&(nt.delta.font.size=(nt._hasNumber?.5:1)*(mt||ut.defaultNumberFontSize),at[1]=!0),bt("delta.reference",nt.value),bt("delta.relative"),bt("delta.valueformat",nt.delta.relative?"2%":""),bt("delta.increasing.symbol"),bt("delta.increasing.color"),bt("delta.decreasing.symbol"),bt("delta.decreasing.color"),bt("delta.position"),bt("delta.prefix"),bt("delta.suffix"),_t=nt.delta.font.size}nt._scaleNumbers=(!nt._hasNumber||at[0])&&(!nt._hasDelta||at[1])||!1;var Et=it.extendFlat({},dt.font);Et.size=.25*(mt||_t||ut.defaultNumberFontSize),it.coerceFont(bt,"title.font",Et),bt("title.text");var kt,wt,ct,It;function At($t,Ut){return it.coerce(kt,wt,xt.gauge,$t,Ut)}function Ot($t,Ut){return it.coerce(ct,It,xt.gauge.axis,$t,Ut)}if(nt._hasGauge){kt=ot.gauge,kt||(kt={}),wt=Tt.newContainer(nt,"gauge"),At("shape");var Pt=nt._isBullet=nt.gauge.shape==="bullet";Pt||bt("title.align","center");var zt=nt._isAngular=nt.gauge.shape==="angular";zt||bt("align","center"),At("bgcolor",dt.paper_bgcolor),At("borderwidth"),At("bordercolor"),At("bar.color"),At("bar.line.color"),At("bar.line.width");var Dt=ut.valueThickness*(nt.gauge.shape==="bullet"?.5:1);At("bar.thickness",Dt),yt(kt,wt,{name:"steps",handleItemDefaults:st}),At("threshold.value"),At("threshold.thickness"),At("threshold.line.width"),At("threshold.line.color"),ct={},kt&&(ct=kt.axis||{}),It=Tt.newContainer(wt,"axis"),Ot("visible"),nt._range=Ot("range",nt._range);var Nt={font:dt.font,noAutotickangles:!0,outerTicks:!0};ht(ct,It,Ot,"linear"),rt(ct,It,Ot,"linear",Nt),_(ct,It,Ot,"linear",Nt),j(ct,It,Ot,Nt)}else bt("title.align","center"),bt("align","center"),nt._isAngular=nt._isBullet=!1;nt._length=null}function st(ot,nt){function vt(dt,bt){return it.coerce(ot,nt,xt.gauge.steps,dt,bt)}vt("color"),vt("line.color"),vt("line.width"),vt("range"),vt("thickness")}Ct.exports={supplyDefaults:tt}},43480:function(Ct,Rt,o){Ct.exports={moduleType:"trace",name:"indicator",basePlotModule:o(92728),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:o(89864),supplyDefaults:o(20424).supplyDefaults,calc:o(79136).calc,plot:o(97864),meta:{}}},97864:function(Ct,Rt,o){var it=o(33428),xt=o(67756).qy,et=o(67756).Gz,Tt=o(3400),yt=Tt.strScale,ut=Tt.strTranslate,ht=Tt.rad2deg,j=o(84284).MID_SHIFT,_=o(43616),rt=o(12096),tt=o(72736),st=o(54460),ot=o(28336),nt=o(37668),vt=o(94724),dt=o(76308),bt={left:"start",center:"middle",right:"end"},ft={left:0,center:.5,right:1},at=/[yzafpnµmkMGTPEZY]/;function mt(Pt){return Pt&&Pt.duration>0}Ct.exports=function(zt,Dt,Nt,$t){var Ut=zt._fullLayout,Ht;mt(Nt)&&$t&&(Ht=$t()),Tt.makeTraceGroups(Ut._indicatorlayer,Dt,"trace").each(function(Vt){var Xt=Vt[0],qt=Xt.trace,er=it.select(this),lr=qt._hasGauge,Jt=qt._isAngular,Yt=qt._isBullet,rr=qt.domain,jt={w:Ut._size.w*(rr.x[1]-rr.x[0]),h:Ut._size.h*(rr.y[1]-rr.y[0]),l:Ut._size.l+Ut._size.w*rr.x[0],r:Ut._size.r+Ut._size.w*(1-rr.x[1]),t:Ut._size.t+Ut._size.h*(1-rr.y[1]),b:Ut._size.b+Ut._size.h*rr.y[0]},ar=jt.l+jt.w/2,sr=jt.t+jt.h/2,Zt=Math.min(jt.w/2,jt.h),Kt=rt.innerRadius*Zt,or,tr,cr,mr=qt.align||"center";if(tr=sr,!lr)or=jt.l+ft[mr]*jt.w,cr=function(kr){return ct(kr,jt.w,jt.h)};else if(Jt&&(or=ar,tr=sr+Zt/2,cr=function(kr){return It(kr,.9*Kt)}),Yt){var Ar=rt.bulletPadding,br=1-rt.bulletNumberDomainSize+Ar;or=jt.l+(br+(1-br)*ft[mr])*jt.w,cr=function(kr){return ct(kr,(rt.bulletNumberDomainSize-Ar)*jt.w,jt.h)}}Mt(zt,er,Vt,{numbersX:or,numbersY:tr,numbersScaler:cr,transitionOpts:Nt,onComplete:Ht});var Ir,Tr;lr&&(Ir={range:qt.gauge.axis.range,color:qt.gauge.bgcolor,line:{color:qt.gauge.bordercolor,width:0},thickness:1},Tr={range:qt.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:qt.gauge.bordercolor,width:qt.gauge.borderwidth},thickness:1});var _r=er.selectAll("g.angular").data(Jt?Vt:[]);_r.exit().remove();var Er=er.selectAll("g.angularaxis").data(Jt?Vt:[]);Er.exit().remove(),Jt&&_t(zt,er,Vt,{radius:Zt,innerRadius:Kt,gauge:_r,layer:Er,size:jt,gaugeBg:Ir,gaugeOutline:Tr,transitionOpts:Nt,onComplete:Ht});var Rr=er.selectAll("g.bullet").data(Yt?Vt:[]);Rr.exit().remove();var zr=er.selectAll("g.bulletaxis").data(Yt?Vt:[]);zr.exit().remove(),Yt&&St(zt,er,Vt,{gauge:Rr,layer:zr,size:jt,gaugeBg:Ir,gaugeOutline:Tr,transitionOpts:Nt,onComplete:Ht});var Or=er.selectAll("text.title").data(Vt);Or.exit().remove(),Or.enter().append("text").classed("title",!0),Or.attr("text-anchor",function(){return Yt?bt.right:bt[qt.title.align]}).text(qt.title.text).call(_.font,qt.title.font).call(tt.convertToTspans,zt),Or.attr("transform",function(){var kr=jt.l+jt.w*ft[qt.title.align],Nr,Qr=rt.titlePadding,sn=_.bBox(Or.node());if(lr){if(Jt)if(qt.gauge.axis.visible){var un=_.bBox(Er.node());Nr=un.top-Qr-sn.bottom}else Nr=jt.t+jt.h/2-Zt/2-sn.bottom-Qr;Yt&&(Nr=tr-(sn.top+sn.bottom)/2,kr=jt.l-rt.bulletPadding*jt.w)}else Nr=qt._numbersTop-Qr-sn.bottom;return ut(kr,Nr)})})};function St(Pt,zt,Dt,Nt){var $t=Dt[0].trace,Ut=Nt.gauge,Ht=Nt.layer,Vt=Nt.gaugeBg,Xt=Nt.gaugeOutline,qt=Nt.size,er=$t.domain,lr=Nt.transitionOpts,Jt=Nt.onComplete,Yt,rr,jt,ar,sr;Ut.enter().append("g").classed("bullet",!0),Ut.attr("transform",ut(qt.l,qt.t)),Ht.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),Ht.selectAll("g.xbulletaxistick,path,text").remove();var Zt=qt.h,Kt=$t.gauge.bar.thickness*Zt,or=er.x[0],tr=er.x[0]+(er.x[1]-er.x[0])*($t._hasNumber||$t._hasDelta?1-rt.bulletNumberDomainSize:1);Yt=wt(Pt,$t.gauge.axis),Yt._id="xbulletaxis",Yt.domain=[or,tr],Yt.setScale(),rr=st.calcTicks(Yt),jt=st.makeTransTickFn(Yt),ar=st.getTickSigns(Yt)[2],sr=qt.t+qt.h,Yt.visible&&(st.drawTicks(Pt,Yt,{vals:Yt.ticks==="inside"?st.clipEnds(Yt,rr):rr,layer:Ht,path:st.makeTickPath(Yt,sr,ar),transFn:jt}),st.drawLabels(Pt,Yt,{vals:rr,layer:Ht,transFn:jt,labelFns:st.makeLabelFns(Yt,sr)}));function cr(Er){Er.attr("width",function(Rr){return Math.max(0,Yt.c2p(Rr.range[1])-Yt.c2p(Rr.range[0]))}).attr("x",function(Rr){return Yt.c2p(Rr.range[0])}).attr("y",function(Rr){return .5*(1-Rr.thickness)*Zt}).attr("height",function(Rr){return Rr.thickness*Zt})}var mr=[Vt].concat($t.gauge.steps),Ar=Ut.selectAll("g.bg-bullet").data(mr);Ar.enter().append("g").classed("bg-bullet",!0).append("rect"),Ar.select("rect").call(cr).call(Et),Ar.exit().remove();var br=Ut.selectAll("g.value-bullet").data([$t.gauge.bar]);br.enter().append("g").classed("value-bullet",!0).append("rect"),br.select("rect").attr("height",Kt).attr("y",(Zt-Kt)/2).call(Et),mt(lr)?br.select("rect").transition().duration(lr.duration).ease(lr.easing).each("end",function(){Jt&&Jt()}).each("interrupt",function(){Jt&&Jt()}).attr("width",Math.max(0,Yt.c2p(Math.min($t.gauge.axis.range[1],Dt[0].y)))):br.select("rect").attr("width",typeof Dt[0].y=="number"?Math.max(0,Yt.c2p(Math.min($t.gauge.axis.range[1],Dt[0].y))):0),br.exit().remove();var Ir=Dt.filter(function(){return $t.gauge.threshold.value||$t.gauge.threshold.value===0}),Tr=Ut.selectAll("g.threshold-bullet").data(Ir);Tr.enter().append("g").classed("threshold-bullet",!0).append("line"),Tr.select("line").attr("x1",Yt.c2p($t.gauge.threshold.value)).attr("x2",Yt.c2p($t.gauge.threshold.value)).attr("y1",(1-$t.gauge.threshold.thickness)/2*Zt).attr("y2",(1-(1-$t.gauge.threshold.thickness)/2)*Zt).call(dt.stroke,$t.gauge.threshold.line.color).style("stroke-width",$t.gauge.threshold.line.width),Tr.exit().remove();var _r=Ut.selectAll("g.gauge-outline").data([Xt]);_r.enter().append("g").classed("gauge-outline",!0).append("rect"),_r.select("rect").call(cr).call(Et),_r.exit().remove()}function _t(Pt,zt,Dt,Nt){var $t=Dt[0].trace,Ut=Nt.size,Ht=Nt.radius,Vt=Nt.innerRadius,Xt=Nt.gaugeBg,qt=Nt.gaugeOutline,er=[Ut.l+Ut.w/2,Ut.t+Ut.h/2+Ht/2],lr=Nt.gauge,Jt=Nt.layer,Yt=Nt.transitionOpts,rr=Nt.onComplete,jt=Math.PI/2;function ar(en){var Xr=$t.gauge.axis.range[0],ln=$t.gauge.axis.range[1],mn=(en-Xr)/(ln-Xr)*Math.PI-jt;return mn<-jt?-jt:mn>jt?jt:mn}function sr(en){return it.svg.arc().innerRadius((Vt+Ht)/2-en/2*(Ht-Vt)).outerRadius((Vt+Ht)/2+en/2*(Ht-Vt)).startAngle(-jt)}function Zt(en){en.attr("d",function(Xr){return sr(Xr.thickness).startAngle(ar(Xr.range[0])).endAngle(ar(Xr.range[1]))()})}var Kt,or,tr,cr;lr.enter().append("g").classed("angular",!0),lr.attr("transform",ut(er[0],er[1])),Jt.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),Jt.selectAll("g.xangularaxistick,path,text").remove(),Kt=wt(Pt,$t.gauge.axis),Kt.type="linear",Kt.range=$t.gauge.axis.range,Kt._id="xangularaxis",Kt.ticklabeloverflow="allow",Kt.setScale();var mr=function(en){return(Kt.range[0]-en.x)/(Kt.range[1]-Kt.range[0])*Math.PI+Math.PI},Ar={},br=st.makeLabelFns(Kt,0),Ir=br.labelStandoff;Ar.xFn=function(en){var Xr=mr(en);return Math.cos(Xr)*Ir},Ar.yFn=function(en){var Xr=mr(en),ln=Math.sin(Xr)>0?.2:1;return-Math.sin(Xr)*(Ir+en.fontSize*ln)+Math.abs(Math.cos(Xr))*(en.fontSize*j)},Ar.anchorFn=function(en){var Xr=mr(en),ln=Math.cos(Xr);return Math.abs(ln)<.1?"middle":ln>0?"start":"end"},Ar.heightFn=function(en,Xr,ln){var mn=mr(en);return-.5*(1+Math.sin(mn))*ln};var Tr=function(en){return ut(er[0]+Ht*Math.cos(en),er[1]-Ht*Math.sin(en))};tr=function(en){return Tr(mr(en))};var _r=function(en){var Xr=mr(en);return Tr(Xr)+"rotate("+-ht(Xr)+")"};if(or=st.calcTicks(Kt),cr=st.getTickSigns(Kt)[2],Kt.visible){cr=Kt.ticks==="inside"?-1:1;var Er=(Kt.linewidth||1)/2;st.drawTicks(Pt,Kt,{vals:or,layer:Jt,path:"M"+cr*Er+",0h"+cr*Kt.ticklen,transFn:_r}),st.drawLabels(Pt,Kt,{vals:or,layer:Jt,transFn:tr,labelFns:Ar})}var Rr=[Xt].concat($t.gauge.steps),zr=lr.selectAll("g.bg-arc").data(Rr);zr.enter().append("g").classed("bg-arc",!0).append("path"),zr.select("path").call(Zt).call(Et),zr.exit().remove();var Or=sr($t.gauge.bar.thickness),kr=lr.selectAll("g.value-arc").data([$t.gauge.bar]);kr.enter().append("g").classed("value-arc",!0).append("path");var Nr=kr.select("path");mt(Yt)?(Nr.transition().duration(Yt.duration).ease(Yt.easing).each("end",function(){rr&&rr()}).each("interrupt",function(){rr&&rr()}).attrTween("d",kt(Or,ar(Dt[0].lastY),ar(Dt[0].y))),$t._lastValue=Dt[0].y):Nr.attr("d",typeof Dt[0].y=="number"?Or.endAngle(ar(Dt[0].y)):"M0,0Z"),Nr.call(Et),kr.exit().remove(),Rr=[];var Qr=$t.gauge.threshold.value;(Qr||Qr===0)&&Rr.push({range:[Qr,Qr],color:$t.gauge.threshold.color,line:{color:$t.gauge.threshold.line.color,width:$t.gauge.threshold.line.width},thickness:$t.gauge.threshold.thickness});var sn=lr.selectAll("g.threshold-arc").data(Rr);sn.enter().append("g").classed("threshold-arc",!0).append("path"),sn.select("path").call(Zt).call(Et),sn.exit().remove();var un=lr.selectAll("g.gauge-outline").data([qt]);un.enter().append("g").classed("gauge-outline",!0).append("path"),un.select("path").call(Zt).call(Et),un.exit().remove()}function Mt(Pt,zt,Dt,Nt){var $t=Dt[0].trace,Ut=Nt.numbersX,Ht=Nt.numbersY,Vt=$t.align||"center",Xt=bt[Vt],qt=Nt.transitionOpts,er=Nt.onComplete,lr=Tt.ensureSingle(zt,"g","numbers"),Jt,Yt,rr,jt=[];$t._hasNumber&&jt.push("number"),$t._hasDelta&&(jt.push("delta"),$t.delta.position==="left"&&jt.reverse());var ar=lr.selectAll("text").data(jt);ar.enter().append("text"),ar.attr("text-anchor",function(){return Xt}).attr("class",function(Tr){return Tr}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),ar.exit().remove();function sr(Tr,_r,Er,Rr){if(Tr.match("s")&&Er>=0!=Rr>=0&&!_r(Er).slice(-1).match(at)&&!_r(Rr).slice(-1).match(at)){var zr=Tr.slice().replace("s","f").replace(/\d+/,function(kr){return parseInt(kr)-1}),Or=wt(Pt,{tickformat:zr});return function(kr){return Math.abs(kr)<1?st.tickText(Or,kr).text:_r(kr)}}else return _r}function Zt(){var Tr=wt(Pt,{tickformat:$t.number.valueformat},$t._range);Tr.setScale(),st.prepTicks(Tr);var _r=function(kr){return st.tickText(Tr,kr).text},Er=$t.number.suffix,Rr=$t.number.prefix,zr=lr.select("text.number");function Or(){var kr=typeof Dt[0].y=="number"?Rr+_r(Dt[0].y)+Er:"-";zr.text(kr).call(_.font,$t.number.font).call(tt.convertToTspans,Pt)}return mt(qt)?zr.transition().duration(qt.duration).ease(qt.easing).each("end",function(){Or(),er&&er()}).each("interrupt",function(){Or(),er&&er()}).attrTween("text",function(){var kr=it.select(this),Nr=et(Dt[0].lastY,Dt[0].y);$t._lastValue=Dt[0].y;var Qr=sr($t.number.valueformat,_r,Dt[0].lastY,Dt[0].y);return function(sn){kr.text(Rr+Qr(Nr(sn))+Er)}}):Or(),Jt=At(Rr+_r(Dt[0].y)+Er,$t.number.font,Xt,Pt),zr}function Kt(){var Tr=wt(Pt,{tickformat:$t.delta.valueformat},$t._range);Tr.setScale(),st.prepTicks(Tr);var _r=function(sn){return st.tickText(Tr,sn).text},Er=$t.delta.suffix,Rr=$t.delta.prefix,zr=function(sn){var un=$t.delta.relative?sn.relativeDelta:sn.delta;return un},Or=function(sn,un){return sn===0||typeof sn!="number"||isNaN(sn)?"-":(sn>0?$t.delta.increasing.symbol:$t.delta.decreasing.symbol)+Rr+un(sn)+Er},kr=function(sn){return sn.delta>=0?$t.delta.increasing.color:$t.delta.decreasing.color};$t._deltaLastValue===void 0&&($t._deltaLastValue=zr(Dt[0]));var Nr=lr.select("text.delta");Nr.call(_.font,$t.delta.font).call(dt.fill,kr({delta:$t._deltaLastValue}));function Qr(){Nr.text(Or(zr(Dt[0]),_r)).call(dt.fill,kr(Dt[0])).call(tt.convertToTspans,Pt)}return mt(qt)?Nr.transition().duration(qt.duration).ease(qt.easing).tween("text",function(){var sn=it.select(this),un=zr(Dt[0]),en=$t._deltaLastValue,Xr=sr($t.delta.valueformat,_r,en,un),ln=et(en,un);return $t._deltaLastValue=un,function(mn){sn.text(Or(ln(mn),Xr)),sn.call(dt.fill,kr({delta:ln(mn)}))}}).each("end",function(){Qr(),er&&er()}).each("interrupt",function(){Qr(),er&&er()}):Qr(),Yt=At(Or(zr(Dt[0]),_r),$t.delta.font,Xt,Pt),Nr}var or=$t.mode+$t.align,tr;if($t._hasDelta&&(tr=Kt(),or+=$t.delta.position+$t.delta.font.size+$t.delta.font.family+$t.delta.valueformat,or+=$t.delta.increasing.symbol+$t.delta.decreasing.symbol,rr=Yt),$t._hasNumber&&(Zt(),or+=$t.number.font.size+$t.number.font.family+$t.number.valueformat+$t.number.suffix+$t.number.prefix,rr=Jt),$t._hasDelta&&$t._hasNumber){var cr=[(Jt.left+Jt.right)/2,(Jt.top+Jt.bottom)/2],mr=[(Yt.left+Yt.right)/2,(Yt.top+Yt.bottom)/2],Ar,br,Ir=.75*$t.delta.font.size;$t.delta.position==="left"&&(Ar=Ot($t,"deltaPos",0,-1*(Jt.width*ft[$t.align]+Yt.width*(1-ft[$t.align])+Ir),or,Math.min),br=cr[1]-mr[1],rr={width:Jt.width+Yt.width+Ir,height:Math.max(Jt.height,Yt.height),left:Yt.left+Ar,right:Jt.right,top:Math.min(Jt.top,Yt.top+br),bottom:Math.max(Jt.bottom,Yt.bottom+br)}),$t.delta.position==="right"&&(Ar=Ot($t,"deltaPos",0,Jt.width*(1-ft[$t.align])+Yt.width*ft[$t.align]+Ir,or,Math.max),br=cr[1]-mr[1],rr={width:Jt.width+Yt.width+Ir,height:Math.max(Jt.height,Yt.height),left:Jt.left,right:Yt.right+Ar,top:Math.min(Jt.top,Yt.top+br),bottom:Math.max(Jt.bottom,Yt.bottom+br)}),$t.delta.position==="bottom"&&(Ar=null,br=Yt.height,rr={width:Math.max(Jt.width,Yt.width),height:Jt.height+Yt.height,left:Math.min(Jt.left,Yt.left),right:Math.max(Jt.right,Yt.right),top:Jt.bottom-Jt.height,bottom:Jt.bottom+Yt.height}),$t.delta.position==="top"&&(Ar=null,br=Jt.top,rr={width:Math.max(Jt.width,Yt.width),height:Jt.height+Yt.height,left:Math.min(Jt.left,Yt.left),right:Math.max(Jt.right,Yt.right),top:Jt.bottom-Jt.height-Yt.height,bottom:Jt.bottom}),tr.attr({dx:Ar,dy:br})}($t._hasNumber||$t._hasDelta)&&lr.attr("transform",function(){var Tr=Nt.numbersScaler(rr);or+=Tr[2];var _r=Ot($t,"numbersScale",1,Tr[0],or,Math.min),Er;$t._scaleNumbers||(_r=1),$t._isAngular?Er=Ht-_r*rr.bottom:Er=Ht-_r*(rr.top+rr.bottom)/2,$t._numbersTop=_r*rr.top+Er;var Rr=rr[Vt];Vt==="center"&&(Rr=(rr.left+rr.right)/2);var zr=Ut-_r*Rr;return zr=Ot($t,"numbersTranslate",0,zr,or,Math.max),ut(zr,Er)+yt(_r)})}function Et(Pt){Pt.each(function(zt){dt.stroke(it.select(this),zt.line.color)}).each(function(zt){dt.fill(it.select(this),zt.color)}).style("stroke-width",function(zt){return zt.line.width})}function kt(Pt,zt,Dt){return function(){var Nt=xt(zt,Dt);return function($t){return Pt.endAngle(Nt($t))()}}}function wt(Pt,zt,Dt){var Nt=Pt._fullLayout,$t=Tt.extendFlat({type:"linear",ticks:"outside",range:Dt,showline:!0},zt),Ut={type:"linear",_id:"x"+zt._id},Ht={letter:"x",font:Nt.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function Vt(Xt,qt){return Tt.coerce($t,Ut,vt,Xt,qt)}return ot($t,Ut,Vt,Ht,Nt),nt($t,Ut,Vt,Ht),Ut}function ct(Pt,zt,Dt){var Nt=Math.min(zt/Pt.width,Dt/Pt.height);return[Nt,Pt,zt+"x"+Dt]}function It(Pt,zt){var Dt=Math.sqrt(Pt.width/2*(Pt.width/2)+Pt.height*Pt.height),Nt=zt/Dt;return[Nt,Pt,zt]}function At(Pt,zt,Dt,Nt){var $t=document.createElementNS("http://www.w3.org/2000/svg","text"),Ut=it.select($t);return Ut.text(Pt).attr("x",0).attr("y",0).attr("text-anchor",Dt).attr("data-unformatted",Pt).call(tt.convertToTspans,Nt).call(_.font,zt),_.bBox(Ut.node())}function Ot(Pt,zt,Dt,Nt,$t,Ut){var Ht="_cache"+zt;Pt[Ht]&&Pt[Ht].key===$t||(Pt[Ht]={key:$t,value:Dt});var Vt=Tt.aggNums(Ut,null,[Pt[Ht].value,Nt],2);return Pt[Ht].value=Vt,Vt}},50048:function(Ct,Rt,o){var it=o(49084),xt=o(29736).axisHoverFormat,et=o(21776).Ks,Tt=o(52948),yt=o(45464),ut=o(92880).extendFlat,ht=o(67824).overrideAll;function j(tt){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function _(tt){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var rt=Ct.exports=ht(ut({x:{valType:"data_array"},y:{valType:"data_array"},z:{valType:"data_array"},value:{valType:"data_array"},isomin:{valType:"number"},isomax:{valType:"number"},surface:{show:{valType:"boolean",dflt:!0},count:{valType:"integer",dflt:2,min:1},fill:{valType:"number",min:0,max:1,dflt:1},pattern:{valType:"flaglist",flags:["A","B","C","D","E"],extras:["all","odd","even"],dflt:"all"}},spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:.15}},slices:{x:j(),y:j(),z:j()},caps:{x:_(),y:_(),z:_()},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:et(),xhoverformat:xt("x"),yhoverformat:xt("y"),zhoverformat:xt("z"),valuehoverformat:xt("value",1),showlegend:ut({},yt.showlegend,{dflt:!1})},it("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:Tt.opacity,lightposition:Tt.lightposition,lighting:Tt.lighting,flatshading:Tt.flatshading,contour:Tt.contour,hoverinfo:ut({},yt.hoverinfo)}),"calc","nested");rt.flatshading.dflt=!0,rt.lighting.facenormalsepsilon.dflt=0,rt.x.editType=rt.y.editType=rt.z.editType=rt.value.editType="calc+clearAxisTypes",rt.transforms=void 0},62624:function(Ct,Rt,o){var it=o(47128),xt=o(3832).processGrid,et=o(3832).filter;Ct.exports=function(yt,ut){ut._len=Math.min(ut.x.length,ut.y.length,ut.z.length,ut.value.length),ut._x=et(ut.x,ut._len),ut._y=et(ut.y,ut._len),ut._z=et(ut.z,ut._len),ut._value=et(ut.value,ut._len);var ht=xt(ut);ut._gridFill=ht.fill,ut._Xs=ht.Xs,ut._Ys=ht.Ys,ut._Zs=ht.Zs,ut._len=ht.len;for(var j=1/0,_=-1/0,rt=0;rt0;vt--){var dt=Math.min(nt[vt],nt[vt-1]),bt=Math.max(nt[vt],nt[vt-1]);if(bt>dt&&dt-1}function Kt(Wr,Gr){return Wr===null?Gr:Wr}function or(Wr,Gr,wr){qt();var pr=[Gr],Dr=[wr];if(jt>=1)pr=[Gr],Dr=[wr];else if(jt>0){var Sr=sr(Gr,wr);pr=Sr.xyzv,Dr=Sr.abc}for(var ur=0;ur-1?wr[Pr]:Xt(Vr,qr,rn);xn>-1?xr[Pr]=xn:xr[Pr]=lr(Vr,qr,rn,Kt(Wr,Cn))}Jt(xr[0],xr[1],xr[2])}}function tr(Wr,Gr,wr){var pr=function(Dr,Sr,ur){or(Wr,[Gr[Dr],Gr[Sr],Gr[ur]],[wr[Dr],wr[Sr],wr[ur]])};pr(0,1,2),pr(2,3,0)}function cr(Wr,Gr,wr){var pr=function(Dr,Sr,ur){or(Wr,[Gr[Dr],Gr[Sr],Gr[ur]],[wr[Dr],wr[Sr],wr[ur]])};pr(0,1,2),pr(3,0,1),pr(2,3,0),pr(1,2,3)}function mr(Wr,Gr,wr,pr){var Dr=Wr[3];Drpr&&(Dr=pr);for(var Sr=(Wr[3]-Dr)/(Wr[3]-Gr[3]+1e-9),ur=[],xr=0;xr<4;xr++)ur[xr]=(1-Sr)*Wr[xr]+Sr*Gr[xr];return ur}function Ar(Wr,Gr,wr){return Wr>=Gr&&Wr<=wr}function br(Wr){var Gr=.001*(Nt-Dt);return Wr>=Dt-Gr&&Wr<=Nt+Gr}function Ir(Wr){for(var Gr=[],wr=0;wr<4;wr++){var pr=Wr[wr];Gr.push([ot._x[pr],ot._y[pr],ot._z[pr],ot._value[pr]])}return Gr}var Tr=3;function _r(Wr,Gr,wr,pr,Dr,Sr){Sr||(Sr=1),wr=[-1,-1,-1];var ur=!1,xr=[Ar(Gr[0][3],pr,Dr),Ar(Gr[1][3],pr,Dr),Ar(Gr[2][3],pr,Dr)];if(!xr[0]&&!xr[1]&&!xr[2])return!1;var Pr=function(qr,rn,Cn){return br(rn[0][3])&&br(rn[1][3])&&br(rn[2][3])?(or(qr,rn,Cn),!0):Srxr?[Pt,Sr]:[Sr,zt];ln(Gr,Pr[0],Pr[1])}}var Vr=[[Math.min(Dt,zt),Math.max(Dt,zt)],[Math.min(Pt,Nt),Math.max(Pt,Nt)]];["x","y","z"].forEach(function(qr){for(var rn=[],Cn=0;Cn0&&(yn.push(so.id),qr==="x"?Kn.push([so.distRatio,0,0]):qr==="y"?Kn.push([0,so.distRatio,0]):Kn.push([0,0,so.distRatio]))}else qr==="x"?_i=Zr(1,wt-1):qr==="y"?_i=Zr(1,ct-1):_i=Zr(1,It-1);yn.length>0&&(qr==="x"?rn[xn]=mn(Wr,yn,fn,bn,Kn,rn[xn]):qr==="y"?rn[xn]=pn(Wr,yn,fn,bn,Kn,rn[xn]):rn[xn]=Tn(Wr,yn,fn,bn,Kn,rn[xn]),xn++),_i.length>0&&(qr==="x"?rn[xn]=Qr(Wr,_i,fn,bn,rn[xn]):qr==="y"?rn[xn]=sn(Wr,_i,fn,bn,rn[xn]):rn[xn]=un(Wr,_i,fn,bn,rn[xn]),xn++)}var ba=ot.caps[qr];ba.show&&ba.fill&&(ar(ba.fill),qr==="x"?rn[xn]=Qr(Wr,[0,wt-1],fn,bn,rn[xn]):qr==="y"?rn[xn]=sn(Wr,[0,ct-1],fn,bn,rn[xn]):rn[xn]=un(Wr,[0,It-1],fn,bn,rn[xn]),xn++)}}),mt===0&&er(),ot._meshX=$t,ot._meshY=Ut,ot._meshZ=Ht,ot._meshIntensity=Vt,ot._Xs=Mt,ot._Ys=Et,ot._Zs=kt}return Ur(),ot}function st(ot,nt){var vt=ot.glplot.gl,dt=it({gl:vt}),bt=new j(ot,dt,nt.uid);return dt._trace=bt,bt.update(nt),ot.glplot.add(dt),bt}Ct.exports={findNearestOnAxis:ht,generateIsoMeshes:tt,createIsosurfaceTrace:st}},70548:function(Ct,Rt,o){var it=o(3400),xt=o(24040),et=o(50048),Tt=o(27260);function yt(ht,j,_,rt){function tt(st,ot){return it.coerce(ht,j,et,st,ot)}ut(ht,j,_,rt,tt)}function ut(ht,j,_,rt,tt){var st=tt("isomin"),ot=tt("isomax");ot!=null&&st!==void 0&&st!==null&&st>ot&&(j.isomin=null,j.isomax=null);var nt=tt("x"),vt=tt("y"),dt=tt("z"),bt=tt("value");if(!nt||!nt.length||!vt||!vt.length||!dt||!dt.length||!bt||!bt.length){j.visible=!1;return}var ft=xt.getComponentMethod("calendars","handleTraceDefaults");ft(ht,j,["x","y","z"],rt),tt("valuehoverformat"),["x","y","z"].forEach(function(_t){tt(_t+"hoverformat");var Mt="caps."+_t,Et=tt(Mt+".show");Et&&tt(Mt+".fill");var kt="slices."+_t,wt=tt(kt+".show");wt&&(tt(kt+".fill"),tt(kt+".locations"))});var at=tt("spaceframe.show");at&&tt("spaceframe.fill");var mt=tt("surface.show");mt&&(tt("surface.count"),tt("surface.fill"),tt("surface.pattern"));var St=tt("contour.show");St&&(tt("contour.color"),tt("contour.width")),["text","hovertext","hovertemplate","lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","opacity"].forEach(function(_t){tt(_t)}),Tt(ht,j,rt,tt,{prefix:"",cLetter:"c"}),j._length=null}Ct.exports={supplyDefaults:yt,supplyIsoDefaults:ut}},6296:function(Ct,Rt,o){Ct.exports={attributes:o(50048),supplyDefaults:o(70548).supplyDefaults,calc:o(62624),colorbar:{min:"cmin",max:"cmax"},plot:o(31460).createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:o(12536),categories:["gl3d","showLegend"],meta:{}}},52948:function(Ct,Rt,o){var it=o(49084),xt=o(29736).axisHoverFormat,et=o(21776).Ks,Tt=o(16716),yt=o(45464),ut=o(92880).extendFlat;Ct.exports=ut({x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},i:{valType:"data_array",editType:"calc"},j:{valType:"data_array",editType:"calc"},k:{valType:"data_array",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:et({editType:"calc"}),xhoverformat:xt("x"),yhoverformat:xt("y"),zhoverformat:xt("z"),delaunayaxis:{valType:"enumerated",values:["x","y","z"],dflt:"z",editType:"calc"},alphahull:{valType:"number",dflt:-1,editType:"calc"},intensity:{valType:"data_array",editType:"calc"},intensitymode:{valType:"enumerated",values:["vertex","cell"],dflt:"vertex",editType:"calc"},color:{valType:"color",editType:"calc"},vertexcolor:{valType:"data_array",editType:"calc"},facecolor:{valType:"data_array",editType:"calc"},transforms:void 0},it("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:Tt.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:ut({},Tt.contours.x.show,{}),color:Tt.contours.x.color,width:Tt.contours.x.width,editType:"calc"},lightposition:{x:ut({},Tt.lightposition.x,{dflt:1e5}),y:ut({},Tt.lightposition.y,{dflt:1e5}),z:ut({},Tt.lightposition.z,{dflt:0}),editType:"calc"},lighting:ut({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc"},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc"},editType:"calc"},Tt.lighting),hoverinfo:ut({},yt.hoverinfo,{editType:"calc"}),showlegend:ut({},yt.showlegend,{dflt:!1})})},1876:function(Ct,Rt,o){var it=o(47128);Ct.exports=function(et,Tt){Tt.intensity&&it(et,Tt,{vals:Tt.intensity,containerStr:"",cLetter:"c"})}},576:function(Ct,Rt,o){var it=o(67792).gl_mesh3d,xt=o(67792).delaunay_triangulate,et=o(67792).alpha_shape,Tt=o(67792).convex_hull,yt=o(33040).parseColorScale,ut=o(3400).isArrayOrTypedArray,ht=o(43080),j=o(8932).extractOpts,_=o(52094);function rt(ft,at,mt){this.scene=ft,this.uid=mt,this.mesh=at,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var tt=rt.prototype;tt.handlePick=function(ft){if(ft.object===this.mesh){var at=ft.index=ft.data.index;ft.data._cellCenter?ft.traceCoordinate=ft.data.dataCoordinate:ft.traceCoordinate=[this.data.x[at],this.data.y[at],this.data.z[at]];var mt=this.data.hovertext||this.data.text;return ut(mt)&&mt[at]!==void 0?ft.textLabel=mt[at]:mt&&(ft.textLabel=mt),!0}};function st(ft){for(var at=[],mt=ft.length,St=0;St=at-.5)return!1;return!0}tt.update=function(ft){var at=this.scene,mt=at.fullSceneLayout;this.data=ft;var St=ft.x.length,_t=_(ot(mt.xaxis,ft.x,at.dataScale[0],ft.xcalendar),ot(mt.yaxis,ft.y,at.dataScale[1],ft.ycalendar),ot(mt.zaxis,ft.z,at.dataScale[2],ft.zcalendar)),Mt;if(ft.i&&ft.j&&ft.k){if(ft.i.length!==ft.j.length||ft.j.length!==ft.k.length||!dt(ft.i,St)||!dt(ft.j,St)||!dt(ft.k,St))return;Mt=_(nt(ft.i),nt(ft.j),nt(ft.k))}else ft.alphahull===0?Mt=Tt(_t):ft.alphahull>0?Mt=et(ft.alphahull,_t):Mt=vt(ft.delaunayaxis,_t);var Et={positions:_t,cells:Mt,lightPosition:[ft.lightposition.x,ft.lightposition.y,ft.lightposition.z],ambient:ft.lighting.ambient,diffuse:ft.lighting.diffuse,specular:ft.lighting.specular,roughness:ft.lighting.roughness,fresnel:ft.lighting.fresnel,vertexNormalsEpsilon:ft.lighting.vertexnormalsepsilon,faceNormalsEpsilon:ft.lighting.facenormalsepsilon,opacity:ft.opacity,contourEnable:ft.contour.show,contourColor:ht(ft.contour.color).slice(0,3),contourWidth:ft.contour.width,useFacetNormals:ft.flatshading};if(ft.intensity){var kt=j(ft);this.color="#fff";var wt=ft.intensitymode;Et[wt+"Intensity"]=ft.intensity,Et[wt+"IntensityBounds"]=[kt.min,kt.max],Et.colormap=yt(ft)}else ft.vertexcolor?(this.color=ft.vertexcolor[0],Et.vertexColors=st(ft.vertexcolor)):ft.facecolor?(this.color=ft.facecolor[0],Et.cellColors=st(ft.facecolor)):(this.color=ft.color,Et.meshColor=ht(ft.color));this.mesh.update(Et)},tt.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function bt(ft,at){var mt=ft.glplot.gl,St=it({gl:mt}),_t=new rt(ft,St,at.uid);return St._trace=_t,_t.update(at),ft.glplot.add(St),_t}Ct.exports=bt},74212:function(Ct,Rt,o){var it=o(24040),xt=o(3400),et=o(27260),Tt=o(52948);Ct.exports=function(ut,ht,j,_){function rt(vt,dt){return xt.coerce(ut,ht,Tt,vt,dt)}function tt(vt){var dt=vt.map(function(bt){var ft=rt(bt);return ft&&xt.isArrayOrTypedArray(ft)?ft:null});return dt.every(function(bt){return bt&&bt.length===dt[0].length})&&dt}var st=tt(["x","y","z"]);if(!st){ht.visible=!1;return}if(tt(["i","j","k"]),ht.i&&(!ht.j||!ht.k)||ht.j&&(!ht.k||!ht.i)||ht.k&&(!ht.i||!ht.j)){ht.visible=!1;return}var ot=it.getComponentMethod("calendars","handleTraceDefaults");ot(ut,ht,["x","y","z"],_),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","alphahull","delaunayaxis","opacity"].forEach(function(vt){rt(vt)});var nt=rt("contour.show");nt&&(rt("contour.color"),rt("contour.width")),"intensity"in ut?(rt("intensity"),rt("intensitymode"),et(ut,ht,_,rt,{prefix:"",cLetter:"c"})):(ht.showscale=!1,"facecolor"in ut?rt("facecolor"):"vertexcolor"in ut?rt("vertexcolor"):rt("color",j)),rt("text"),rt("hovertext"),rt("hovertemplate"),rt("xhoverformat"),rt("yhoverformat"),rt("zhoverformat"),ht._length=null}},7404:function(Ct,Rt,o){Ct.exports={attributes:o(52948),supplyDefaults:o(74212),calc:o(1876),colorbar:{min:"cmin",max:"cmax"},plot:o(576),moduleType:"trace",name:"mesh3d",basePlotModule:o(12536),categories:["gl3d","showLegend"],meta:{}}},20279:function(Ct,Rt,o){var it=o(3400).extendFlat,xt=o(52904),et=o(29736).axisHoverFormat,Tt=o(98192).u,yt=o(55756),ut=o(48164),ht=ut.INCREASING.COLOR,j=ut.DECREASING.COLOR,_=xt.line;function rt(tt){return{line:{color:it({},_.color,{dflt:tt}),width:_.width,dash:Tt,editType:"style"},editType:"style"}}Ct.exports={xperiod:xt.xperiod,xperiod0:xt.xperiod0,xperiodalignment:xt.xperiodalignment,xhoverformat:et("x"),yhoverformat:et("y"),x:{valType:"data_array",editType:"calc+clearAxisTypes"},open:{valType:"data_array",editType:"calc"},high:{valType:"data_array",editType:"calc"},low:{valType:"data_array",editType:"calc"},close:{valType:"data_array",editType:"calc"},line:{width:it({},_.width,{}),dash:it({},Tt,{}),editType:"style"},increasing:rt(ht),decreasing:rt(j),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:it({},yt.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:xt.zorder}},42812:function(Ct,Rt,o){var it=o(3400),xt=it._,et=o(54460),Tt=o(1220),yt=o(39032).BADNUM;function ut(rt,tt){var st=et.getFromId(rt,tt.xaxis),ot=et.getFromId(rt,tt.yaxis),nt=_(rt,st,tt),vt=tt._minDiff;tt._minDiff=null;var dt=tt._origX;tt._origX=null;var bt=tt._xcalc;tt._xcalc=null;var ft=j(rt,tt,dt,bt,ot,ht);return tt._extremes[st._id]=et.findExtremes(st,bt,{vpad:vt/2}),ft.length?(it.extendFlat(ft[0].t,{wHover:vt/2,tickLen:nt}),ft):[{t:{empty:!0}}]}function ht(rt,tt,st,ot){return{o:rt,h:tt,l:st,c:ot}}function j(rt,tt,st,ot,nt,vt){for(var dt=nt.makeCalcdata(tt,"open"),bt=nt.makeCalcdata(tt,"high"),ft=nt.makeCalcdata(tt,"low"),at=nt.makeCalcdata(tt,"close"),mt=it.isArrayOrTypedArray(tt.text),St=it.isArrayOrTypedArray(tt.hovertext),_t=!0,Mt=null,Et=!!tt.xperiodalignment,kt=[],wt=0;wtMt):_t=Pt>It,Mt=Pt;var zt=vt(It,At,Ot,Pt);zt.pos=ct,zt.yc=(It+Pt)/2,zt.i=wt,zt.dir=_t?"increasing":"decreasing",zt.x=zt.pos,zt.y=[Ot,At],Et&&(zt.orig_p=st[wt]),mt&&(zt.tx=tt.text[wt]),St&&(zt.htx=tt.hovertext[wt]),kt.push(zt)}else kt.push({pos:ct,empty:!0})}return tt._extremes[nt._id]=et.findExtremes(nt,it.concat(ft,bt),{padded:!0}),kt.length&&(kt[0].t={labels:{open:xt(rt,"open:")+" ",high:xt(rt,"high:")+" ",low:xt(rt,"low:")+" ",close:xt(rt,"close:")+" "}}),kt}function _(rt,tt,st){var ot=st._minDiff;if(!ot){var nt=rt._fullData,vt=[];ot=1/0;var dt;for(dt=0;dt"+at.labels[Pt]+it.hoverLabelText(bt,zt,ft.yhoverformat)):(Nt=xt.extendFlat({},St),Nt.y0=Nt.y1=Dt,Nt.yLabelVal=zt,Nt.yLabel=at.labels[Pt]+it.hoverLabelText(bt,zt,ft.yhoverformat),Nt.name="",mt.push(Nt),At[zt]=Nt)}return mt}function tt(st,ot,nt,vt){var dt=st.cd,bt=st.ya,ft=dt[0].trace,at=dt[0].t,mt=_(st,ot,nt,vt);if(!mt)return[];var St=mt.index,_t=dt[St],Mt=mt.index=_t.i,Et=_t.dir;function kt(zt){return at.labels[zt]+it.hoverLabelText(bt,ft[zt][Mt],ft.yhoverformat)}var wt=_t.hi||ft.hoverinfo,ct=wt.split("+"),It=wt==="all",At=It||ct.indexOf("y")!==-1,Ot=It||ct.indexOf("text")!==-1,Pt=At?[kt("open"),kt("high"),kt("low"),kt("close")+" "+ht[Et]]:[];return Ot&&yt(_t,ft,Pt),mt.extraText=Pt.join("
"),mt.y0=mt.y1=bt.c2p(_t.yc,!0),[mt]}Ct.exports={hoverPoints:j,hoverSplit:rt,hoverOnPoints:tt}},65456:function(Ct,Rt,o){Ct.exports={moduleType:"trace",name:"ohlc",basePlotModule:o(57952),categories:["cartesian","svg","showLegend"],meta:{},attributes:o(20279),supplyDefaults:o(23860),calc:o(42812).calc,plot:o(36664),style:o(14008),hoverPoints:o(18720).hoverPoints,selectPoints:o(97384)}},52744:function(Ct,Rt,o){var it=o(24040),xt=o(3400);Ct.exports=function(Tt,yt,ut,ht){var j=ut("x"),_=ut("open"),rt=ut("high"),tt=ut("low"),st=ut("close");ut("hoverlabel.split");var ot=it.getComponentMethod("calendars","handleTraceDefaults");if(ot(Tt,yt,["x"],ht),!!(_&&rt&&tt&&st)){var nt=Math.min(_.length,rt.length,tt.length,st.length);return j&&(nt=Math.min(nt,xt.minRowLength(j))),yt._length=nt,nt}}},36664:function(Ct,Rt,o){var it=o(33428),xt=o(3400);Ct.exports=function(Tt,yt,ut,ht){var j=yt.yaxis,_=yt.xaxis,rt=!!_.rangebreaks;xt.makeTraceGroups(ht,ut,"trace ohlc").each(function(tt){var st=it.select(this),ot=tt[0],nt=ot.t,vt=ot.trace;if(vt.visible!==!0||nt.empty){st.remove();return}var dt=nt.tickLen,bt=st.selectAll("path").data(xt.identity);bt.enter().append("path"),bt.exit().remove(),bt.attr("d",function(ft){if(ft.empty)return"M0,0Z";var at=_.c2p(ft.pos-dt,!0),mt=_.c2p(ft.pos+dt,!0),St=rt?(at+mt)/2:_.c2p(ft.pos,!0),_t=j.c2p(ft.o,!0),Mt=j.c2p(ft.h,!0),Et=j.c2p(ft.l,!0),kt=j.c2p(ft.c,!0);return"M"+at+","+_t+"H"+St+"M"+St+","+Mt+"V"+Et+"M"+mt+","+kt+"H"+St})})}},97384:function(Ct){Ct.exports=function(o,it){var xt=o.cd,et=o.xaxis,Tt=o.yaxis,yt=[],ut,ht=xt[0].t.bPos||0;if(it===!1)for(ut=0;ut=ft.length||at[ft[mt]]!==void 0)return!1;at[ft[mt]]=!0}return!0}},76671:function(Ct,Rt,o){var it=o(3400),xt=o(94288).hasColorscale,et=o(27260),Tt=o(86968).Q,yt=o(51272),ut=o(72140),ht=o(26284),j=o(38116).isTypedArraySpec;function _(tt,st,ot,nt,vt){vt("line.shape"),vt("line.hovertemplate");var dt=vt("line.color",nt.colorway[0]);if(xt(tt,"line")&&it.isArrayOrTypedArray(dt)){if(dt.length)return vt("line.colorscale"),et(tt,st,nt,vt,{prefix:"line.",cLetter:"c"}),dt.length;st.line.color=ot}return 1/0}function rt(tt,st){function ot(mt,St){return it.coerce(tt,st,ut.dimensions,mt,St)}var nt=ot("values"),vt=ot("visible");if(nt&&nt.length||(vt=st.visible=!1),vt){ot("label"),ot("displayindex",st._index);var dt=tt.categoryarray,bt=it.isArrayOrTypedArray(dt)&&dt.length>0||j(dt),ft;bt&&(ft="array");var at=ot("categoryorder",ft);at==="array"?(ot("categoryarray"),ot("ticktext")):(delete tt.categoryarray,delete tt.ticktext),!bt&&at==="array"&&(st.categoryorder="trace")}}Ct.exports=function(st,ot,nt,vt){function dt(St,_t){return it.coerce(st,ot,ut,St,_t)}var bt=yt(st,ot,{name:"dimensions",handleItemDefaults:rt}),ft=_(st,ot,nt,vt,dt);Tt(ot,vt,dt),(!Array.isArray(bt)||!bt.length)&&(ot.visible=!1),ht(ot,bt,"values",ft),dt("hoveron"),dt("hovertemplate"),dt("arrangement"),dt("bundlecolors"),dt("sortpaths"),dt("counts");var at={weight:vt.font.weight,style:vt.font.style,variant:vt.font.variant,family:vt.font.family,size:Math.round(vt.font.size),color:vt.font.color};it.coerceFont(dt,"labelfont",at);var mt={weight:vt.font.weight,style:vt.font.style,variant:vt.font.variant,family:vt.font.family,size:Math.round(vt.font.size/1.2),color:vt.font.color};it.coerceFont(dt,"tickfont",mt)}},22020:function(Ct,Rt,o){Ct.exports={attributes:o(72140),supplyDefaults:o(76671),calc:o(69136),plot:o(60268),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:o(91800),categories:["noOpacity"],meta:{}}},51036:function(Ct,Rt,o){var it=o(33428),xt=o(67756).Gz,et=o(36424),Tt=o(93024),yt=o(3400),ut=yt.strTranslate,ht=o(43616),j=o(49760),_=o(72736);function rt(jt,ar,sr,Zt){var Kt=ar._context.staticPlot,or=jt.map(er.bind(0,ar,sr)),tr=Zt.selectAll("g.parcatslayer").data([null]);tr.enter().append("g").attr("class","parcatslayer").style("pointer-events",Kt?"none":"all");var cr=tr.selectAll("g.trace.parcats").data(or,tt),mr=cr.enter().append("g").attr("class","trace parcats");cr.attr("transform",function(Nr){return ut(Nr.x,Nr.y)}),mr.append("g").attr("class","paths");var Ar=cr.select("g.paths"),br=Ar.selectAll("path.path").data(function(Nr){return Nr.paths},tt);br.attr("fill",function(Nr){return Nr.model.color});var Ir=br.enter().append("path").attr("class","path").attr("stroke-opacity",0).attr("fill",function(Nr){return Nr.model.color}).attr("fill-opacity",0);at(Ir),br.attr("d",function(Nr){return Nr.svgD}),Ir.empty()||br.sort(ot),br.exit().remove(),br.on("mouseover",nt).on("mouseout",vt).on("click",ft),mr.append("g").attr("class","dimensions");var Tr=cr.select("g.dimensions"),_r=Tr.selectAll("g.dimension").data(function(Nr){return Nr.dimensions},tt);_r.enter().append("g").attr("class","dimension"),_r.attr("transform",function(Nr){return ut(Nr.x,0)}),_r.exit().remove();var Er=_r.selectAll("g.category").data(function(Nr){return Nr.categories},tt),Rr=Er.enter().append("g").attr("class","category");Er.attr("transform",function(Nr){return ut(0,Nr.y)}),Rr.append("rect").attr("class","catrect").attr("pointer-events","none"),Er.select("rect.catrect").attr("fill","none").attr("width",function(Nr){return Nr.width}).attr("height",function(Nr){return Nr.height}),_t(Rr);var zr=Er.selectAll("rect.bandrect").data(function(Nr){return Nr.bands},tt);zr.each(function(){yt.raiseToTop(this)}),zr.attr("fill",function(Nr){return Nr.color});var Or=zr.enter().append("rect").attr("class","bandrect").attr("stroke-opacity",0).attr("fill",function(Nr){return Nr.color}).attr("fill-opacity",0);zr.attr("fill",function(Nr){return Nr.color}).attr("width",function(Nr){return Nr.width}).attr("height",function(Nr){return Nr.height}).attr("y",function(Nr){return Nr.y}).attr("cursor",function(Nr){return Nr.parcatsViewModel.arrangement==="fixed"?"default":Nr.parcatsViewModel.arrangement==="perpendicular"?"ns-resize":"move"}),Et(Or),zr.exit().remove(),Rr.append("text").attr("class","catlabel").attr("pointer-events","none");var kr=ar._fullLayout.paper_bgcolor;Er.select("text.catlabel").attr("text-anchor",function(Nr){return st(Nr)?"start":"end"}).attr("alignment-baseline","middle").style("text-shadow",_.makeTextShadow(kr)).style("fill","rgb(0, 0, 0)").attr("x",function(Nr){return st(Nr)?Nr.width+5:-5}).attr("y",function(Nr){return Nr.height/2}).text(function(Nr){return Nr.model.categoryLabel}).each(function(Nr){ht.font(it.select(this),Nr.parcatsViewModel.categorylabelfont),_.convertToTspans(it.select(this),ar)}),Rr.append("text").attr("class","dimlabel"),Er.select("text.dimlabel").attr("text-anchor","middle").attr("alignment-baseline","baseline").attr("cursor",function(Nr){return Nr.parcatsViewModel.arrangement==="fixed"?"default":"ew-resize"}).attr("x",function(Nr){return Nr.width/2}).attr("y",-5).text(function(Nr,Qr){return Qr===0?Nr.parcatsViewModel.model.dimensions[Nr.model.dimensionInd].dimensionLabel:null}).each(function(Nr){ht.font(it.select(this),Nr.parcatsViewModel.labelfont)}),Er.selectAll("rect.bandrect").on("mouseover",Dt).on("mouseout",Nt),Er.exit().remove(),_r.call(it.behavior.drag().origin(function(Nr){return{x:Nr.x,y:0}}).on("dragstart",$t).on("drag",Ut).on("dragend",Ht)),cr.each(function(Nr){Nr.traceSelection=it.select(this),Nr.pathSelection=it.select(this).selectAll("g.paths").selectAll("path.path"),Nr.dimensionSelection=it.select(this).selectAll("g.dimensions").selectAll("g.dimension")}),cr.exit().remove()}Ct.exports=function(jt,ar,sr,Zt){rt(sr,jt,Zt,ar)};function tt(jt){return jt.key}function st(jt){var ar=jt.parcatsViewModel.dimensions.length,sr=jt.parcatsViewModel.dimensions[ar-1].model.dimensionInd;return jt.model.dimensionInd===sr}function ot(jt,ar){return jt.model.rawColor>ar.model.rawColor?1:jt.model.rawColor"),un=it.mouse(Kt)[0];Tt.loneHover({trace:or,x:Er-cr.left+mr.left,y:Rr-cr.top+mr.top,text:sn,color:jt.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:zr,idealAlign:un1&&Ar.displayInd===mr.dimensions.length-1?(Tr=tr.left,_r="left"):(Tr=tr.left+tr.width,_r="right");var Er=cr.model.count,Rr=cr.model.categoryLabel,zr=Er/cr.parcatsViewModel.model.count,Or={countLabel:Er,categoryLabel:Rr,probabilityLabel:zr.toFixed(3)},kr=[];cr.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&kr.push(["Count:",Or.countLabel].join(" ")),cr.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&kr.push(["P("+Or.categoryLabel+"):",Or.probabilityLabel].join(" "));var Nr=kr.join("
");return{trace:br,x:Zt*(Tr-ar.left),y:Kt*(Ir-ar.top),text:Nr,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:_r,hovertemplate:br.hovertemplate,hovertemplateLabels:Or,eventData:[{data:br._input,fullData:br,count:Er,category:Rr,probability:zr}]}}function Pt(jt,ar,sr){var Zt=[];return it.select(sr.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each(function(){var Kt=this;Zt.push(Ot(jt,ar,Kt))}),Zt}function zt(jt,ar,sr){jt._fullLayout._calcInverseTransform(jt);var Zt=jt._fullLayout._invScaleX,Kt=jt._fullLayout._invScaleY,or=sr.getBoundingClientRect(),tr=it.select(sr).datum(),cr=tr.categoryViewModel,mr=cr.parcatsViewModel,Ar=mr.model.dimensions[cr.model.dimensionInd],br=mr.trace,Ir=or.y+or.height/2,Tr,_r;mr.dimensions.length>1&&Ar.displayInd===mr.dimensions.length-1?(Tr=or.left,_r="left"):(Tr=or.left+or.width,_r="right");var Er=cr.model.categoryLabel,Rr=tr.parcatsViewModel.model.count,zr=0;tr.categoryViewModel.bands.forEach(function(mn){mn.color===tr.color&&(zr+=mn.count)});var Or=cr.model.count,kr=0;mr.pathSelection.each(function(mn){mn.model.color===tr.color&&(kr+=mn.model.count)});var Nr=zr/Rr,Qr=zr/kr,sn=zr/Or,un={countLabel:zr,categoryLabel:Er,probabilityLabel:Nr.toFixed(3)},en=[];cr.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&en.push(["Count:",un.countLabel].join(" ")),cr.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&(en.push("P(color ∩ "+Er+"): "+un.probabilityLabel),en.push("P("+Er+" | color): "+Qr.toFixed(3)),en.push("P(color | "+Er+"): "+sn.toFixed(3)));var Xr=en.join("
"),ln=j.mostReadable(tr.color,["black","white"]);return{trace:br,x:Zt*(Tr-ar.left),y:Kt*(Ir-ar.top),text:Xr,color:tr.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:ln,fontSize:10,idealAlign:_r,hovertemplate:br.hovertemplate,hovertemplateLabels:un,eventData:[{data:br._input,fullData:br,category:Er,count:Rr,probability:Nr,categorycount:Or,colorcount:kr,bandcolorcount:zr}]}}function Dt(jt){if(!jt.parcatsViewModel.dragDimension&&jt.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1){var ar=it.mouse(this)[1];if(ar<-1)return;var sr=jt.parcatsViewModel.graphDiv,Zt=sr._fullLayout,Kt=Zt._paperdiv.node().getBoundingClientRect(),or=jt.parcatsViewModel.hoveron,tr=this;if(or==="color"?(ct(tr),At(tr,"plotly_hover",it.event)):(wt(tr),It(tr,"plotly_hover",it.event)),jt.parcatsViewModel.hoverinfoItems.indexOf("none")===-1){var cr;or==="category"?cr=Ot(sr,Kt,tr):or==="color"?cr=zt(sr,Kt,tr):or==="dimension"&&(cr=Pt(sr,Kt,tr)),cr&&Tt.loneHover(cr,{container:Zt._hoverlayer.node(),outerContainer:Zt._paper.node(),gd:sr})}}}function Nt(jt){var ar=jt.parcatsViewModel;if(!ar.dragDimension&&(at(ar.pathSelection),_t(ar.dimensionSelection.selectAll("g.category")),Et(ar.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),Tt.loneUnhover(ar.graphDiv._fullLayout._hoverlayer.node()),ar.pathSelection.sort(ot),ar.hoverinfoItems.indexOf("skip")===-1)){var sr=jt.parcatsViewModel.hoveron,Zt=this;sr==="color"?At(Zt,"plotly_unhover",it.event):It(Zt,"plotly_unhover",it.event)}}function $t(jt){jt.parcatsViewModel.arrangement!=="fixed"&&(jt.dragDimensionDisplayInd=jt.model.displayInd,jt.initialDragDimensionDisplayInds=jt.parcatsViewModel.model.dimensions.map(function(ar){return ar.displayInd}),jt.dragHasMoved=!1,jt.dragCategoryDisplayInd=null,it.select(this).selectAll("g.category").select("rect.catrect").each(function(ar){var sr=it.mouse(this)[0],Zt=it.mouse(this)[1];-2<=sr&&sr<=ar.width+2&&-2<=Zt&&Zt<=ar.height+2&&(jt.dragCategoryDisplayInd=ar.model.displayInd,jt.initialDragCategoryDisplayInds=jt.model.categories.map(function(Kt){return Kt.displayInd}),ar.model.dragY=ar.y,yt.raiseToTop(this.parentNode),it.select(this.parentNode).selectAll("rect.bandrect").each(function(Kt){Kt.ybr.y+br.height/2&&(or.model.displayInd=br.model.displayInd,br.model.displayInd=cr),jt.dragCategoryDisplayInd=or.model.displayInd}if(jt.dragCategoryDisplayInd===null||jt.parcatsViewModel.arrangement==="freeform"){Kt.model.dragX=it.event.x;var Ir=jt.parcatsViewModel.dimensions[sr],Tr=jt.parcatsViewModel.dimensions[Zt];Ir!==void 0&&Kt.model.dragXTr.x&&(Kt.model.displayInd=Tr.model.displayInd,Tr.model.displayInd=jt.dragDimensionDisplayInd),jt.dragDimensionDisplayInd=Kt.model.displayInd}Yt(jt.parcatsViewModel),Jt(jt.parcatsViewModel),qt(jt.parcatsViewModel),Xt(jt.parcatsViewModel)}}function Ht(jt){if(jt.parcatsViewModel.arrangement!=="fixed"&&jt.dragDimensionDisplayInd!==null){it.select(this).selectAll("text").attr("font-weight","normal");var ar={},sr=Vt(jt.parcatsViewModel),Zt=jt.parcatsViewModel.model.dimensions.map(function(Tr){return Tr.displayInd}),Kt=jt.initialDragDimensionDisplayInds.some(function(Tr,_r){return Tr!==Zt[_r]});Kt&&Zt.forEach(function(Tr,_r){var Er=jt.parcatsViewModel.model.dimensions[_r].containerInd;ar["dimensions["+Er+"].displayindex"]=Tr});var or=!1;if(jt.dragCategoryDisplayInd!==null){var tr=jt.model.categories.map(function(Tr){return Tr.displayInd});if(or=jt.initialDragCategoryDisplayInds.some(function(Tr,_r){return Tr!==tr[_r]}),or){var cr=jt.model.categories.slice().sort(function(Tr,_r){return Tr.displayInd-_r.displayInd}),mr=cr.map(function(Tr){return Tr.categoryValue}),Ar=cr.map(function(Tr){return Tr.categoryLabel});ar["dimensions["+jt.model.containerInd+"].categoryarray"]=[mr],ar["dimensions["+jt.model.containerInd+"].ticktext"]=[Ar],ar["dimensions["+jt.model.containerInd+"].categoryorder"]="array"}}if(jt.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1&&!jt.dragHasMoved&&jt.potentialClickBand&&(jt.parcatsViewModel.hoveron==="color"?At(jt.potentialClickBand,"plotly_click",it.event.sourceEvent):It(jt.potentialClickBand,"plotly_click",it.event.sourceEvent)),jt.model.dragX=null,jt.dragCategoryDisplayInd!==null){var br=jt.parcatsViewModel.dimensions[jt.dragDimensionDisplayInd].categories[jt.dragCategoryDisplayInd];br.model.dragY=null,jt.dragCategoryDisplayInd=null}jt.dragDimensionDisplayInd=null,jt.parcatsViewModel.dragDimension=null,jt.dragHasMoved=null,jt.potentialClickBand=null,Yt(jt.parcatsViewModel),Jt(jt.parcatsViewModel);var Ir=it.transition().duration(300).ease("cubic-in-out");Ir.each(function(){qt(jt.parcatsViewModel,!0),Xt(jt.parcatsViewModel,!0)}).each("end",function(){(Kt||or)&&et.restyle(jt.parcatsViewModel.graphDiv,ar,[sr])})}}function Vt(jt){for(var ar,sr=jt.graphDiv._fullData,Zt=0;Zt=0;mr--)Ar+="C"+tr[mr]+","+(ar[mr+1]+Zt)+" "+or[mr]+","+(ar[mr]+Zt)+" "+(jt[mr]+sr[mr])+","+(ar[mr]+Zt),Ar+="l-"+sr[mr]+",0 ";return Ar+="Z",Ar}function Jt(jt){var ar=jt.dimensions,sr=jt.model,Zt=ar.map(function(Zr){return Zr.categories.map(function(Fr){return Fr.y})}),Kt=jt.model.dimensions.map(function(Zr){return Zr.categories.map(function(Fr){return Fr.displayInd})}),or=jt.model.dimensions.map(function(Zr){return Zr.displayInd}),tr=jt.dimensions.map(function(Zr){return Zr.model.dimensionInd}),cr=ar.map(function(Zr){return Zr.x}),mr=ar.map(function(Zr){return Zr.width}),Ar=[];for(var br in sr.paths)sr.paths.hasOwnProperty(br)&&Ar.push(sr.paths[br]);function Ir(Zr){var Fr=Zr.categoryInds.map(function(Wr,Gr){return Kt[Gr][Wr]}),Ur=tr.map(function(Wr){return Fr[Wr]});return Ur}Ar.sort(function(Zr,Fr){var Ur=Ir(Zr),Wr=Ir(Fr);return jt.sortpaths==="backward"&&(Ur.reverse(),Wr.reverse()),Ur.push(Zr.valueInds[0]),Wr.push(Fr.valueInds[0]),jt.bundlecolors&&(Ur.unshift(Zr.rawColor),Wr.unshift(Fr.rawColor)),UrWr?1:0});for(var Tr=new Array(Ar.length),_r=ar[0].model.count,Er=ar[0].categories.map(function(Zr){return Zr.height}).reduce(function(Zr,Fr){return Zr+Fr}),Rr=0;Rr0?Or=Er*(zr.count/_r):Or=0;for(var kr=new Array(Zt.length),Nr=0;Nr1?tr=(jt.width-2*sr-Zt)/(Kt-1):tr=0,cr=sr,mr=cr+tr*or;var Ar=[],br=jt.model.maxCats,Ir=ar.categories.length,Tr=8,_r=ar.count,Er=jt.height-Tr*(br-1),Rr,zr,Or,kr,Nr,Qr=(br-Ir)*Tr/2,sn=ar.categories.map(function(un){return{displayInd:un.displayInd,categoryInd:un.categoryInd}});for(sn.sort(function(un,en){return un.displayInd-en.displayInd}),Nr=0;Nr0?Rr=zr.count/_r*Er:Rr=0,Or={key:zr.valueInds[0],model:zr,width:Zt,height:Rr,y:zr.dragY!==null?zr.dragY:Qr,bands:[],parcatsViewModel:jt},Qr=Qr+Rr+Tr,Ar.push(Or);return{key:ar.dimensionInd,x:ar.dragX!==null?ar.dragX:mr,y:0,width:Zt,model:ar,categories:Ar,parcatsViewModel:jt,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}},60268:function(Ct,Rt,o){var it=o(51036);Ct.exports=function(et,Tt,yt,ut){var ht=et._fullLayout,j=ht._paper,_=ht._size;it(et,j,Tt,{width:_.w,height:_.h,margin:{t:_.t,r:_.r,b:_.b,l:_.l}},yt,ut)}},82296:function(Ct,Rt,o){var it=o(49084),xt=o(94724),et=o(25376),Tt=o(86968).u,yt=o(92880).extendFlat,ut=o(31780).templatedArray;Ct.exports={domain:Tt({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:et({editType:"plot"}),tickfont:et({editType:"plot"}),rangefont:et({editType:"plot"}),dimensions:ut("dimension",{label:{valType:"string",editType:"plot"},tickvals:yt({},xt.tickvals,{editType:"plot"}),ticktext:yt({},xt.ticktext,{editType:"plot"}),tickformat:yt({},xt.tickformat,{editType:"plot"}),visible:{valType:"boolean",dflt:!0,editType:"plot"},range:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},constraintrange:{valType:"info_array",freeLength:!0,dimensions:"1-2",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},multiselect:{valType:"boolean",dflt:!0,editType:"plot"},values:{valType:"data_array",editType:"calc"},editType:"calc"}),line:yt({editType:"calc"},it("line",{colorscaleDflt:"Viridis",autoColorDflt:!1,editTypeOverride:"calc"})),unselected:{line:{color:{valType:"color",dflt:"#7f7f7f",editType:"plot"},opacity:{valType:"number",min:0,max:1,dflt:"auto",editType:"plot"},editType:"plot"},editType:"plot"}}},71864:function(Ct,Rt,o){var it=o(30140),xt=o(33428),et=o(71688).keyFun,Tt=o(71688).repeat,yt=o(3400).sorterAsc,ut=o(3400).strTranslate,ht=it.bar.snapRatio;function j(Ht,Vt){return Ht*(1-ht)+Vt*ht}var _=it.bar.snapClose;function rt(Ht,Vt){return Ht*(1-_)+Vt*_}function tt(Ht,Vt,Xt,qt){if(st(Xt,qt))return Xt;var er=Ht?-1:1,lr=0,Jt=Vt.length-1;if(er<0){var Yt=lr;lr=Jt,Jt=Yt}for(var rr=Vt[lr],jt=rr,ar=lr;er*ar=Vt[Xt][0]&&Ht<=Vt[Xt][1])return!0;return!1}function ot(Ht){Ht.attr("x",-it.bar.captureWidth/2).attr("width",it.bar.captureWidth)}function nt(Ht){Ht.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function vt(Ht){if(!Ht.brush.filterSpecified)return"0,"+Ht.height;for(var Vt=dt(Ht.brush.filter.getConsolidated(),Ht.height),Xt=[0],qt,er,lr,Jt=Vt.length?Vt[0][0]:null,Yt=0;YtHt[1]+Xt||Vt=.9*Ht[1]+.1*Ht[0]?"n":Vt<=.9*Ht[0]+.1*Ht[1]?"s":"ns"}function ft(){xt.select(document.body).style("cursor",null)}function at(Ht){Ht.attr("stroke-dasharray",vt)}function mt(Ht,Vt){var Xt=xt.select(Ht).selectAll(".highlight, .highlight-shadow"),qt=Vt?Xt.transition().duration(it.bar.snapDuration).each("end",Vt):Xt;at(qt)}function St(Ht,Vt){var Xt=Ht.brush,qt=Xt.filterSpecified,er=NaN,lr={},Jt;if(qt){var Yt=Ht.height,rr=Xt.filter.getConsolidated(),jt=dt(rr,Yt),ar=NaN,sr=NaN,Zt=NaN;for(Jt=0;Jt<=jt.length;Jt++){var Kt=jt[Jt];if(Kt&&Kt[0]<=Vt&&Vt<=Kt[1]){ar=Jt;break}else if(sr=Jt?Jt-1:NaN,Kt&&Kt[0]>Vt){Zt=Jt;break}}if(er=ar,isNaN(er)&&(isNaN(sr)||isNaN(Zt)?er=isNaN(sr)?Zt:sr:er=Vt-jt[sr][1]=Ar[0]&&mr<=Ar[1]){lr.clickableOrdinalRange=Ar;break}}}return lr}function _t(Ht,Vt){xt.event.sourceEvent.stopPropagation();var Xt=Vt.height-xt.mouse(Ht)[1]-2*it.verticalPadding,qt=Vt.unitToPaddedPx.invert(Xt),er=Vt.brush,lr=St(Vt,Xt),Jt=lr.interval,Yt=er.svgBrush;if(Yt.wasDragged=!1,Yt.grabbingBar=lr.region==="ns",Yt.grabbingBar){var rr=Jt.map(Vt.unitToPaddedPx);Yt.grabPoint=Xt-rr[0]-it.verticalPadding,Yt.barLength=rr[1]-rr[0]}Yt.clickableOrdinalRange=lr.clickableOrdinalRange,Yt.stayingIntervals=Vt.multiselect&&er.filterSpecified?er.filter.getConsolidated():[],Jt&&(Yt.stayingIntervals=Yt.stayingIntervals.filter(function(jt){return jt[0]!==Jt[0]&&jt[1]!==Jt[1]})),Yt.startExtent=lr.region?Jt[lr.region==="s"?1:0]:qt,Vt.parent.inBrushDrag=!0,Yt.brushStartCallback()}function Mt(Ht,Vt){xt.event.sourceEvent.stopPropagation();var Xt=Vt.height-xt.mouse(Ht)[1]-2*it.verticalPadding,qt=Vt.brush.svgBrush;qt.wasDragged=!0,qt._dragging=!0,qt.grabbingBar?qt.newExtent=[Xt-qt.grabPoint,Xt+qt.barLength-qt.grabPoint].map(Vt.unitToPaddedPx.invert):qt.newExtent=[qt.startExtent,Vt.unitToPaddedPx.invert(Xt)].sort(yt),Vt.brush.filterSpecified=!0,qt.extent=qt.stayingIntervals.concat([qt.newExtent]),qt.brushCallback(Vt),mt(Ht.parentNode)}function Et(Ht,Vt){var Xt=Vt.brush,qt=Xt.filter,er=Xt.svgBrush;er._dragging||(kt(Ht,Vt),Mt(Ht,Vt),Vt.brush.svgBrush.wasDragged=!1),er._dragging=!1;var lr=xt.event;lr.sourceEvent.stopPropagation();var Jt=er.grabbingBar;if(er.grabbingBar=!1,er.grabLocation=void 0,Vt.parent.inBrushDrag=!1,ft(),!er.wasDragged){er.wasDragged=void 0,er.clickableOrdinalRange?Xt.filterSpecified&&Vt.multiselect?er.extent.push(er.clickableOrdinalRange):(er.extent=[er.clickableOrdinalRange],Xt.filterSpecified=!0):Jt?(er.extent=er.stayingIntervals,er.extent.length===0&&Pt(Xt)):Pt(Xt),er.brushCallback(Vt),mt(Ht.parentNode),er.brushEndCallback(Xt.filterSpecified?qt.getConsolidated():[]);return}var Yt=function(){qt.set(qt.getConsolidated())};if(Vt.ordinal){var rr=Vt.unitTickvals;rr[rr.length-1]er.newExtent[0];er.extent=er.stayingIntervals.concat(jt?[er.newExtent]:[]),er.extent.length||Pt(Xt),er.brushCallback(Vt),jt?mt(Ht.parentNode,Yt):(Yt(),mt(Ht.parentNode))}else Yt();er.brushEndCallback(Xt.filterSpecified?qt.getConsolidated():[])}function kt(Ht,Vt){var Xt=Vt.height-xt.mouse(Ht)[1]-2*it.verticalPadding,qt=St(Vt,Xt),er="crosshair";qt.clickableOrdinalRange?er="pointer":qt.region&&(er=qt.region+"-resize"),xt.select(document.body).style("cursor",er)}function wt(Ht){Ht.on("mousemove",function(Vt){xt.event.preventDefault(),Vt.parent.inBrushDrag||kt(this,Vt)}).on("mouseleave",function(Vt){Vt.parent.inBrushDrag||ft()}).call(xt.behavior.drag().on("dragstart",function(Vt){_t(this,Vt)}).on("drag",function(Vt){Mt(this,Vt)}).on("dragend",function(Vt){Et(this,Vt)}))}function ct(Ht,Vt){return Ht[0]-Vt[0]}function It(Ht,Vt,Xt){var qt=Xt._context.staticPlot,er=Ht.selectAll(".background").data(Tt);er.enter().append("rect").classed("background",!0).call(ot).call(nt).style("pointer-events",qt?"none":"auto").attr("transform",ut(0,it.verticalPadding)),er.call(wt).attr("height",function(Yt){return Yt.height-it.verticalPadding});var lr=Ht.selectAll(".highlight-shadow").data(Tt);lr.enter().append("line").classed("highlight-shadow",!0).attr("x",-it.bar.width/2).attr("stroke-width",it.bar.width+it.bar.strokeWidth).attr("stroke",Vt).attr("opacity",it.bar.strokeOpacity).attr("stroke-linecap","butt"),lr.attr("y1",function(Yt){return Yt.height}).call(at);var Jt=Ht.selectAll(".highlight").data(Tt);Jt.enter().append("line").classed("highlight",!0).attr("x",-it.bar.width/2).attr("stroke-width",it.bar.width-it.bar.strokeWidth).attr("stroke",it.bar.fillColor).attr("opacity",it.bar.fillOpacity).attr("stroke-linecap","butt"),Jt.attr("y1",function(Yt){return Yt.height}).call(at)}function At(Ht,Vt,Xt){var qt=Ht.selectAll("."+it.cn.axisBrush).data(Tt,et);qt.enter().append("g").classed(it.cn.axisBrush,!0),It(qt,Vt,Xt)}function Ot(Ht){return Ht.svgBrush.extent.map(function(Vt){return Vt.slice()})}function Pt(Ht){Ht.filterSpecified=!1,Ht.svgBrush.extent=[[-1/0,1/0]]}function zt(Ht){return function(Xt){var qt=Xt.brush,er=Ot(qt),lr=er.slice();qt.filter.set(lr),Ht()}}function Dt(Ht){for(var Vt=Ht.slice(),Xt=[],qt,er=Vt.shift();er;){for(qt=er.slice();(er=Vt.shift())&&er[0]<=qt[1];)qt[1]=Math.max(qt[1],er[1]);Xt.push(qt)}return Xt.length===1&&Xt[0][0]>Xt[0][1]&&(Xt=[]),Xt}function Nt(){var Ht=[],Vt,Xt;return{set:function(qt){Ht=qt.map(function(er){return er.slice().sort(yt)}).sort(ct),Ht.length===1&&Ht[0][0]===-1/0&&Ht[0][1]===1/0&&(Ht=[[0,-1]]),Vt=Dt(Ht),Xt=Ht.reduce(function(er,lr){return[Math.min(er[0],lr[0]),Math.max(er[1],lr[1])]},[1/0,-1/0])},get:function(){return Ht.slice()},getConsolidated:function(){return Vt},getBounds:function(){return Xt}}}function $t(Ht,Vt,Xt,qt,er,lr){var Jt=Nt();return Jt.set(Xt),{filter:Jt,filterSpecified:Vt,svgBrush:{extent:[],brushStartCallback:qt,brushCallback:zt(er),brushEndCallback:lr}}}function Ut(Ht,Vt){if(Array.isArray(Ht[0])?(Ht=Ht.map(function(qt){return qt.sort(yt)}),Vt.multiselect?Ht=Dt(Ht.sort(ct)):Ht=[Ht[0]]):Ht=[Ht.sort(yt)],Vt.tickvals){var Xt=Vt.tickvals.slice().sort(yt);if(Ht=Ht.map(function(qt){var er=[tt(0,Xt,qt[0],[]),tt(1,Xt,qt[1],[])];if(er[1]>er[0])return er}).filter(function(qt){return qt}),!Ht.length)return}return Ht.length>1?Ht:Ht[0]}Ct.exports={makeBrush:$t,ensureAxisBrush:At,cleanRanges:Ut}},61664:function(Ct,Rt,o){Ct.exports={attributes:o(82296),supplyDefaults:o(60664),calc:o(95044),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:o(19976),categories:["gl","regl","noOpacity","noHover"],meta:{}}},19976:function(Ct,Rt,o){var it=o(33428),xt=o(84888)._M,et=o(24196),Tt=o(9616);Rt.name="parcoords",Rt.plot=function(yt){var ut=xt(yt.calcdata,"parcoords")[0];ut.length&&et(yt,ut)},Rt.clean=function(yt,ut,ht,j){var _=j._has&&j._has("parcoords"),rt=ut._has&&ut._has("parcoords");_&&!rt&&(j._paperdiv.selectAll(".parcoords").remove(),j._glimages.selectAll("*").remove())},Rt.toSVG=function(yt){var ut=yt._fullLayout._glimages,ht=it.select(yt).selectAll(".svg-container"),j=ht.filter(function(rt,tt){return tt===ht.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function _(){var rt=this,tt=rt.toDataURL("image/png"),st=ut.append("svg:image");st.attr({xmlns:Tt.svg,"xlink:href":tt,preserveAspectRatio:"none",x:0,y:0,width:rt.style.width,height:rt.style.height})}j.each(_),window.setTimeout(function(){it.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}},95044:function(Ct,Rt,o){var it=o(3400).isArrayOrTypedArray,xt=o(8932),et=o(71688).wrap;Ct.exports=function(ut,ht){var j,_;return xt.hasColorscale(ht,"line")&&it(ht.line.color)?(j=ht.line.color,_=xt.extractOpts(ht.line).colorscale,xt.calc(ut,ht,{vals:j,containerStr:"line",cLetter:"c"})):(j=Tt(ht._length),_=[[0,ht.line.color],[1,ht.line.color]]),et({lineColor:j,cscale:_})};function Tt(yt){for(var ut=new Array(yt),ht=0;ht_&&(it.log("parcoords traces support up to "+_+" dimensions at the moment"),at.splice(_));var mt=yt(nt,vt,{name:"dimensions",layout:bt,handleItemDefaults:st}),St=tt(nt,vt,dt,bt,ft);Tt(vt,bt,ft),(!Array.isArray(mt)||!mt.length)&&(vt.visible=!1),rt(vt,mt,"values",St);var _t={weight:bt.font.weight,style:bt.font.style,variant:bt.font.variant,family:bt.font.family,size:Math.round(bt.font.size/1.2),color:bt.font.color};it.coerceFont(ft,"labelfont",_t),it.coerceFont(ft,"tickfont",_t),it.coerceFont(ft,"rangefont",_t),ft("labelangle"),ft("labelside"),ft("unselected.line.color"),ft("unselected.line.opacity")}},95724:function(Ct,Rt,o){var it=o(3400).isTypedArray;Rt.convertTypedArray=function(xt){return it(xt)?Array.prototype.slice.call(xt):xt},Rt.isOrdinal=function(xt){return!!xt.tickvals},Rt.isVisible=function(xt){return xt.visible||!("visible"in xt)}},29928:function(Ct,Rt,o){var it=o(61664);it.plot=o(24196),Ct.exports=it},51352:function(Ct,Rt,o){var it=["precision highp float;","","varying vec4 fragColor;","","attribute vec4 p01_04, p05_08, p09_12, p13_16,"," p17_20, p21_24, p25_28, p29_32,"," p33_36, p37_40, p41_44, p45_48,"," p49_52, p53_56, p57_60, colors;","","uniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,"," loA, hiA, loB, hiB, loC, hiC, loD, hiD;","","uniform vec2 resolution, viewBoxPos, viewBoxSize;","uniform float maskHeight;","uniform float drwLayer; // 0: context, 1: focus, 2: pick","uniform vec4 contextColor;","uniform sampler2D maskTexture, palette;","","bool isPick = (drwLayer > 1.5);","bool isContext = (drwLayer < 0.5);","","const vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);","const vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);","","float val(mat4 p, mat4 v) {"," return dot(matrixCompMult(p, v) * UNITS, UNITS);","}","","float axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {"," float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);"," float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);"," return y1 * (1.0 - ratio) + y2 * ratio;","}","","int iMod(int a, int b) {"," return a - b * (a / b);","}","","bool fOutside(float p, float lo, float hi) {"," return (lo < hi) && (lo > p || p > hi);","}","","bool vOutside(vec4 p, vec4 lo, vec4 hi) {"," return ("," fOutside(p[0], lo[0], hi[0]) ||"," fOutside(p[1], lo[1], hi[1]) ||"," fOutside(p[2], lo[2], hi[2]) ||"," fOutside(p[3], lo[3], hi[3])"," );","}","","bool mOutside(mat4 p, mat4 lo, mat4 hi) {"," return ("," vOutside(p[0], lo[0], hi[0]) ||"," vOutside(p[1], lo[1], hi[1]) ||"," vOutside(p[2], lo[2], hi[2]) ||"," vOutside(p[3], lo[3], hi[3])"," );","}","","bool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {"," return mOutside(A, loA, hiA) ||"," mOutside(B, loB, hiB) ||"," mOutside(C, loC, hiC) ||"," mOutside(D, loD, hiD);","}","","bool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {"," mat4 pnts[4];"," pnts[0] = A;"," pnts[1] = B;"," pnts[2] = C;"," pnts[3] = D;",""," for(int i = 0; i < 4; ++i) {"," for(int j = 0; j < 4; ++j) {"," for(int k = 0; k < 4; ++k) {"," if(0 == iMod("," int(255.0 * texture2D(maskTexture,"," vec2("," (float(i * 2 + j / 2) + 0.5) / 8.0,"," (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight"," ))[3]"," ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),"," 2"," )) return true;"," }"," }"," }"," return false;","}","","vec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {"," float x = 0.5 * sign(v) + 0.5;"," float y = axisY(x, A, B, C, D);"," float z = 1.0 - abs(v);",""," z += isContext ? 0.0 : 2.0 * float("," outsideBoundingBox(A, B, C, D) ||"," outsideRasterMask(A, B, C, D)"," );",""," return vec4("," 2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,"," z,"," 1.0"," );","}","","void main() {"," mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);"," mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);"," mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);"," mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);",""," float v = colors[3];",""," gl_Position = position(isContext, v, A, B, C, D);",""," fragColor ="," isContext ? vec4(contextColor) :"," isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));","}"].join(` `),xt=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` -`),et=o(30140).maxDimensionCount,Et=o(3400),mt=1e-6,ut=2048,ht=new Uint8Array(4),j=new Uint8Array(4),_={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function rt(Tt){Tt.read({x:0,y:0,width:1,height:1,data:ht})}function tt(Tt,kt,wt,ct,It){var At=Tt._gl;At.enable(At.SCISSOR_TEST),At.scissor(kt,wt,ct,It),Tt.clear({color:[0,0,0,0],depth:1})}function st(Tt,kt,wt,ct,It,At){var Ot=At.key;function Pt(zt){var Dt=Math.min(ct,It-zt*ct);zt===0&&(window.cancelAnimationFrame(wt.currentRafs[Ot]),delete wt.currentRafs[Ot],tt(Tt,At.scissorX,At.scissorY,At.scissorWidth,At.viewBoxSize[1])),!wt.clearOnly&&(At.count=2*Dt,At.offset=2*zt*ct,kt(At),zt*ct+Dt>>8*kt)%256/255}function dt(Tt,kt,wt){for(var ct=new Array(Tt*(et+4)),It=0,At=0;AtTr&&(Tr=sr[tr].dim1.canvasX,hr=tr);or===0&&tt(It,0,0,Dt.canvasWidth,Dt.canvasHeight);var Ir=Jt(wt);for(tr=0;trtr._length&&(Rr=Rr.slice(0,tr._length));var zr=tr.tickvals,Br;function kr(qr,Xr){return{val:qr,text:Br[Xr]}}function Nr(qr,Xr){return qr.val-Xr.val}if(et(zr)&&zr.length){xt.isTypedArray(zr)&&(zr=Array.from(zr)),Br=tr.ticktext,!et(Br)||!Br.length?Br=zr.map(Et(tr.tickformat)):Br.length>zr.length?Br=Br.slice(0,zr.length):zr.length>Br.length&&(zr=zr.slice(0,Br.length));for(var Qr=1;Qr=Xr||En>=ln)return;var Jr=un.lineLayer.readPixel(pn,ln-1-En),Or=Jr[3]!==0,Ur=Or?Jr[2]+256*(Jr[1]+256*Jr[0]):null,jr={x:pn,y:En,clientX:qr.clientX,clientY:qr.clientY,dataIndex:un.model.key,curveNumber:Ur};Ur!==hr&&(Or?Yt.hover(jr):Yt.unhover&&Yt.unhover(jr),hr=Ur)}}),cr.style("opacity",function(un){return un.pick?0:1}),ar.style("background","rgba(255, 255, 255, 0)");var Tr=ar.selectAll("."+bt.cn.parcoords).data(tr,ot);Tr.exit().remove(),Tr.enter().append("g").classed(bt.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),Tr.attr("transform",function(un){return j(un.model.translateX,un.model.translateY)});var Ir=Tr.selectAll("."+bt.cn.parcoordsControlView).data(nt,ot);Ir.enter().append("g").classed(bt.cn.parcoordsControlView,!0),Ir.attr("transform",function(un){return j(un.model.pad.l,un.model.pad.t)});var Ar=Ir.selectAll("."+bt.cn.yAxis).data(function(un){return un.dimensions},ot);Ar.enter().append("g").classed(bt.cn.yAxis,!0),Ir.each(function(un){Ut(Ar,un,Zt)}),cr.each(function(un){if(un.viewModel){!un.lineLayer||Yt?un.lineLayer=at(this,un):un.lineLayer.update(un),(un.key||un.key===0)&&(un.viewModel[un.key]=un.lineLayer);var qr=!un.context||Yt;un.lineLayer.render(un.viewModel.panels,qr)}}),Ar.attr("transform",function(un){return j(un.xScale(un.xIndex),0)}),Ar.call(it.behavior.drag().origin(function(un){return un}).on("drag",function(un){var qr=un.parent;or.linePickActive(!1),un.x=Math.max(-bt.overdrag,Math.min(un.model.width+bt.overdrag,it.event.x)),un.canvasX=un.x*un.model.canvasPixelRatio,Ar.sort(function(Xr,ln){return Xr.x-ln.x}).each(function(Xr,ln){Xr.xIndex=ln,Xr.x=un===Xr?Xr.x:Xr.xScale(Xr.xIndex),Xr.canvasX=Xr.x*Xr.model.canvasPixelRatio}),Ut(Ar,qr,Zt),Ar.filter(function(Xr){return Math.abs(un.xIndex-Xr.xIndex)!==0}).attr("transform",function(Xr){return j(Xr.xScale(Xr.xIndex),0)}),it.select(this).attr("transform",j(un.x,0)),Ar.each(function(Xr,ln,mn){mn===un.parent.key&&(qr.dimensions[ln]=Xr)}),qr.contextLayer&&qr.contextLayer.render(qr.panels,!1,!Ot(qr)),qr.focusLayer.render&&qr.focusLayer.render(qr.panels)}).on("dragend",function(un){var qr=un.parent;un.x=un.xScale(un.xIndex),un.canvasX=un.x*un.model.canvasPixelRatio,Ut(Ar,qr,Zt),it.select(this).attr("transform",function(Xr){return j(Xr.x,0)}),qr.contextLayer&&qr.contextLayer.render(qr.panels,!1,!Ot(qr)),qr.focusLayer&&qr.focusLayer.render(qr.panels),qr.pickLayer&&qr.pickLayer.render(qr.panels,!0),or.linePickActive(!0),Yt&&Yt.axesMoved&&Yt.axesMoved(qr.key,qr.dimensions.map(function(Xr){return Xr.crossfilterDimensionIndex}))})),Ar.exit().remove();var _r=Ar.selectAll("."+bt.cn.axisOverlays).data(nt,ot);_r.enter().append("g").classed(bt.cn.axisOverlays,!0),_r.selectAll("."+bt.cn.axis).remove();var Er=_r.selectAll("."+bt.cn.axis).data(nt,ot);Er.enter().append("g").classed(bt.cn.axis,!0),Er.each(function(un){var qr=un.model.height/un.model.tickDistance,Xr=un.domainScale,ln=Xr.domain();it.select(this).call(it.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(qr,un.tickFormat).tickValues(un.ordinal?ln:null).tickFormat(function(mn){return dt.isOrdinal(un)?mn:Vt(un.model.dimensions[un.visibleIndex],mn)}).scale(Xr)),rt.font(Er.selectAll("text"),un.model.tickFont)}),Er.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),Er.selectAll("text").style("text-shadow",_.makeTextShadow(Kt)).style("cursor","default");var Rr=_r.selectAll("."+bt.cn.axisHeading).data(nt,ot);Rr.enter().append("g").classed(bt.cn.axisHeading,!0);var zr=Rr.selectAll("."+bt.cn.axisTitle).data(nt,ot);zr.enter().append("text").classed(bt.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events",rr?"none":"auto"),zr.text(function(un){return un.label}).each(function(un){var qr=it.select(this);rt.font(qr,un.model.labelFont),_.convertToTspans(qr,er)}).attr("transform",function(un){var qr=$t(un.model.labelAngle,un.model.labelSide),Xr=bt.axisTitleOffset;return(qr.dir>0?"":j(0,2*Xr+un.model.height))+ht(qr.degrees)+j(-Xr*qr.dx,-Xr*qr.dy)}).attr("text-anchor",function(un){var qr=$t(un.model.labelAngle,un.model.labelSide),Xr=Math.abs(qr.dx),ln=Math.abs(qr.dy);return 2*Xr>ln?qr.dir*qr.dx<0?"start":"end":"middle"});var Br=_r.selectAll("."+bt.cn.axisExtent).data(nt,ot);Br.enter().append("g").classed(bt.cn.axisExtent,!0);var kr=Br.selectAll("."+bt.cn.axisExtentTop).data(nt,ot);kr.enter().append("g").classed(bt.cn.axisExtentTop,!0),kr.attr("transform",j(0,-bt.axisExtentOffset));var Nr=kr.selectAll("."+bt.cn.axisExtentTopText).data(nt,ot);Nr.enter().append("text").classed(bt.cn.axisExtentTopText,!0).call(Dt),Nr.text(function(un){return Xt(un,!0)}).each(function(un){rt.font(it.select(this),un.model.rangeFont)});var Qr=Br.selectAll("."+bt.cn.axisExtentBottom).data(nt,ot);Qr.enter().append("g").classed(bt.cn.axisExtentBottom,!0),Qr.attr("transform",function(un){return j(0,un.model.height+bt.axisExtentOffset)});var sn=Qr.selectAll("."+bt.cn.axisExtentBottomText).data(nt,ot);sn.enter().append("text").classed(bt.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(Dt),sn.text(function(un){return Xt(un,!1)}).each(function(un){rt.font(it.select(this),un.model.rangeFont)}),ft.ensureAxisBrush(_r,Kt,er)}},24196:function(Ct,Rt,o){var it=o(36336),xt=o(5048),et=o(95724).isVisible,Et={};function mt(j,_,rt){var tt=_.indexOf(rt),st=j.indexOf(tt);return st===-1&&(st+=_.length),st}function ut(j,_){return function(tt,st){return mt(j,_,tt)-mt(j,_,st)}}var ht=Ct.exports=function(_,rt){var tt=_._fullLayout,st=xt(_,[],Et);if(st){var ot={},nt={},vt={},dt={},bt=tt._size;rt.forEach(function(_t,Mt){var Tt=_t[0].trace;vt[Mt]=Tt.index;var kt=dt[Mt]=Tt._fullInput.index;ot[Mt]=_.data[kt].dimensions,nt[Mt]=_.data[kt].dimensions.slice()});var ft=function(_t,Mt,Tt){var kt=nt[_t][Mt],wt=Tt.map(function(zt){return zt.slice()}),ct="dimensions["+Mt+"].constraintrange",It=tt._tracePreGUI[_._fullData[vt[_t]]._fullInput.uid];if(It[ct]===void 0){var At=kt.constraintrange;It[ct]=At||null}var Ot=_._fullData[vt[_t]].dimensions[Mt];wt.length?(wt.length===1&&(wt=wt[0]),kt.constraintrange=wt,Ot.constraintrange=wt.slice(),wt=[wt]):(delete kt.constraintrange,delete Ot.constraintrange,wt=null);var Pt={};Pt[ct]=wt,_.emit("plotly_restyle",[Pt,[dt[_t]]])},at=function(_t){_.emit("plotly_hover",_t)},yt=function(_t){_.emit("plotly_unhover",_t)},St=function(_t,Mt){var Tt=ut(Mt,nt[_t].filter(et));ot[_t].sort(Tt),nt[_t].filter(function(kt){return!et(kt)}).sort(function(kt){return nt[_t].indexOf(kt)}).forEach(function(kt){ot[_t].splice(ot[_t].indexOf(kt),1),ot[_t].splice(nt[_t].indexOf(kt),0,kt)}),_.emit("plotly_restyle",[{dimensions:[ot[_t]]},[dt[_t]]])};it(_,rt,{width:bt.w,height:bt.h,margin:{t:bt.t,r:bt.r,b:bt.b,l:bt.l}},{filterChanged:ft,hover:at,unhover:yt,axesMoved:St})}};ht.reglPrecompiled=Et},74996:function(Ct,Rt,o){var it=o(45464),xt=o(86968).u,et=o(25376),Et=o(22548),mt=o(21776).Ks,ut=o(21776).Gw,ht=o(92880).extendFlat,j=o(98192).c,_=et({editType:"plot",arrayOk:!0,colorEditType:"plot"});Ct.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:Et.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:j,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:ht({},it.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:mt({},{keys:["label","color","value","percent","text"]}),texttemplate:ut({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:ht({},_,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:ht({},_,{}),outsidetextfont:ht({},_,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},title:{text:{valType:"string",dflt:"",editType:"plot"},font:ht({},_,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:xt({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"},_deprecated:{title:{valType:"string",dflt:"",editType:"calc"},titlefont:ht({},_,{}),titleposition:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"calc"}}}},80036:function(Ct,Rt,o){var it=o(7316);Rt.name="pie",Rt.plot=function(xt,et,Et,mt){it.plotBasePlot(Rt.name,xt,et,Et,mt)},Rt.clean=function(xt,et,Et,mt){it.cleanBasePlot(Rt.name,xt,et,Et,mt)}},45768:function(Ct,Rt,o){var it=o(38248),xt=o(49760),et=o(76308),Et={};function mt(_,rt){var tt=[],st=_._fullLayout,ot=st.hiddenlabels||[],nt=rt.labels,vt=rt.marker.colors||[],dt=rt.values,bt=rt._length,ft=rt._hasValues&&bt,at,yt;if(rt.dlabel)for(nt=new Array(bt),at=0;at=0});var At=rt.type==="funnelarea"?Tt:rt.sort;return At&&tt.sort(function(Ot,Pt){return Pt.v-Ot.v}),tt[0]&&(tt[0].vTotal=Mt),tt}function ut(_){return function(tt,st){return!tt||(tt=xt(tt),!tt.isValid())?!1:(tt=et.addOpacity(tt,tt.getAlpha()),_[st]||(_[st]=tt),tt)}}function ht(_,rt){var tt=(rt||{}).type;tt||(tt="pie");var st=_._fullLayout,ot=_.calcdata,nt=st[tt+"colorway"],vt=st["_"+tt+"colormap"];st["extend"+tt+"colors"]&&(nt=j(nt,Et));for(var dt=0,bt=0;bt0){vt=!0;break}}vt||(nt=0)}return{hasLabels:st,hasValues:ot,len:nt}}function j(rt,tt,st,ot,nt){var vt=ot("marker.line.width");vt&&ot("marker.line.color",nt?void 0:st.paper_bgcolor);var dt=ot("marker.colors");ut(ot,"marker.pattern",dt),rt.marker&&!tt.marker.pattern.fgcolor&&(tt.marker.pattern.fgcolor=rt.marker.colors),tt.marker.pattern.bgcolor||(tt.marker.pattern.bgcolor=st.paper_bgcolor)}function _(rt,tt,st,ot){function nt(It,At){return xt.coerce(rt,tt,et,It,At)}var vt=nt("labels"),dt=nt("values"),bt=ht(vt,dt),ft=bt.len;if(tt._hasLabels=bt.hasLabels,tt._hasValues=bt.hasValues,!tt._hasLabels&&tt._hasValues&&(nt("label0"),nt("dlabel")),!ft){tt.visible=!1;return}tt._length=ft,j(rt,tt,ot,nt,!0),nt("scalegroup");var at=nt("text"),yt=nt("texttemplate"),St;if(yt||(St=nt("textinfo",xt.isArrayOrTypedArray(at)?"text+percent":"percent")),nt("hovertext"),nt("hovertemplate"),yt||St&&St!=="none"){var _t=nt("textposition");mt(rt,tt,ot,nt,_t,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var Mt=Array.isArray(_t)||_t==="auto",Tt=Mt||_t==="outside";Tt&&nt("automargin"),(_t==="inside"||_t==="auto"||Array.isArray(_t))&&nt("insidetextorientation")}else St==="none"&&nt("textposition","none");Et(tt,ot,nt);var kt=nt("hole"),wt=nt("title.text");if(wt){var ct=nt("title.position",kt?"middle center":"top center");!kt&&ct==="middle center"&&(tt.title.position="top center"),xt.coerceFont(nt,"title.font",ot.font)}nt("sort"),nt("direction"),nt("rotation"),nt("pull")}Ct.exports={handleLabelsAndValues:ht,handleMarkerDefaults:j,supplyDefaults:_}},53644:function(Ct,Rt,o){var it=o(10624).appendArrayMultiPointValues;Ct.exports=function(et,Et){var mt={curveNumber:Et.index,pointNumbers:et.pts,data:Et._input,fullData:Et,label:et.label,color:et.color,value:et.v,percent:et.percent,text:et.text,bbox:et.bbox,v:et.v};return et.pts.length===1&&(mt.pointNumber=mt.i=et.pts[0]),it(mt,Et,et.pts),Et.type==="funnelarea"&&(delete mt.v,delete mt.i),mt}},21552:function(Ct,Rt,o){var it=o(43616),xt=o(76308);Ct.exports=function(Et,mt,ut,ht){var j=ut.marker.pattern;j&&j.shape?it.pointStyle(Et,ut,ht,mt):xt.fill(Et,mt.color)}},69656:function(Ct,Rt,o){var it=o(3400);function xt(et){return et.indexOf("e")!==-1?et.replace(/[.]?0+e/,"e"):et.indexOf(".")!==-1?et.replace(/[.]?0+$/,""):et}Rt.formatPiePercent=function(Et,mt){var ut=xt((Et*100).toPrecision(3));return it.numSeparate(ut,mt)+"%"},Rt.formatPieValue=function(Et,mt){var ut=xt(Et.toPrecision(10));return it.numSeparate(ut,mt)},Rt.getFirstFilled=function(Et,mt){if(it.isArrayOrTypedArray(Et))for(var ut=0;ut0&&(Qr+=Xr*kr.pxmid[0],sn+=Xr*kr.pxmid[1])}kr.cxFinal=Qr,kr.cyFinal=sn;function ln(jr,Gr,wr,vr){var Dr=vr*(Gr[0]-jr[0]),Sr=vr*(Gr[1]-jr[1]);return"a"+vr*tr.r+","+vr*tr.r+" 0 "+kr.largeArc+(wr?" 1 ":" 0 ")+Dr+","+Sr}var mn=cr.hole;if(kr.v===tr.vTotal){var pn="M"+(Qr+kr.px0[0])+","+(sn+kr.px0[1])+ln(kr.px0,kr.pxmid,!0,1)+ln(kr.pxmid,kr.px0,!0,1)+"Z";mn?qr.attr("d","M"+(Qr+mn*kr.px0[0])+","+(sn+mn*kr.px0[1])+ln(kr.px0,kr.pxmid,!1,mn)+ln(kr.pxmid,kr.px0,!1,mn)+"Z"+pn):qr.attr("d",pn)}else{var En=ln(kr.px0,kr.px1,!0,1);if(mn){var Jr=1-mn;qr.attr("d","M"+(Qr+mn*kr.px1[0])+","+(sn+mn*kr.px1[1])+ln(kr.px1,kr.px0,!1,mn)+"l"+Jr*kr.px0[0]+","+Jr*kr.px0[1]+En+"Z")}else qr.attr("d","M"+Qr+","+sn+"l"+kr.px0[0]+","+kr.px0[1]+En+"Z")}lr(Yt,kr,tr);var Or=nt.castOption(cr.textposition,kr.pts),Ur=un.selectAll("g.slicetext").data(kr.text&&Or!=="none"?[0]:[]);Ur.enter().append("g").classed("slicetext",!0),Ur.exit().remove(),Ur.each(function(){var jr=ut.ensureSingle(it.select(this),"text","",function(Pr){Pr.attr("data-notex",1)}),Gr=ut.ensureUniformFontSize(Yt,Or==="outside"?yt(cr,kr,ar.font):St(cr,kr,ar.font));jr.text(kr.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(mt.font,Gr).call(_.convertToTspans,Yt);var wr=mt.bBox(jr.node()),vr;if(Or==="outside")vr=Pt(wr,kr);else if(vr=Mt(wr,kr,tr),Or==="auto"&&vr.scale<1){var Dr=ut.ensureUniformFontSize(Yt,cr.outsidetextfont);jr.call(mt.font,Dr),wr=mt.bBox(jr.node()),vr=Pt(wr,kr)}var Sr=vr.textPosAngle,ur=Sr===void 0?kr.pxmid:er(tr.r,Sr);if(vr.targetX=Qr+ur[0]*vr.rCenter+(vr.x||0),vr.targetY=sn+ur[1]*vr.rCenter+(vr.y||0),Jt(vr,wr),vr.outside){var xr=vr.targetY;kr.yLabelMin=xr-wr.height/2,kr.yLabelMid=xr,kr.yLabelMax=xr+wr.height/2,kr.labelExtraX=0,kr.labelExtraY=0,Tr=!0}vr.fontSize=Gr.size,tt(cr.type,vr,ar),Kt[Nr].transform=vr,ut.setTransormAndDisplay(jr,vr)})});var Ir=it.select(this).selectAll("g.titletext").data(cr.title.text?[0]:[]);if(Ir.enter().append("g").classed("titletext",!0),Ir.exit().remove(),Ir.each(function(){var kr=ut.ensureSingle(it.select(this),"text","",function(sn){sn.attr("data-notex",1)}),Nr=cr.title.text;cr._meta&&(Nr=ut.templateString(Nr,cr._meta)),kr.text(Nr).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(mt.font,cr.title.font).call(_.convertToTspans,Yt);var Qr;cr.title.position==="middle center"?Qr=zt(tr):Qr=Dt(tr,sr),kr.attr("transform",j(Qr.x,Qr.y)+ht(Math.min(1,Qr.scale))+j(Qr.tx,Qr.ty))}),Tr&&Ht(br,cr),ft(hr,cr),Tr&&cr.automargin){var Ar=mt.bBox(or.node()),_r=cr.domain,Er=sr.w*(_r.x[1]-_r.x[0]),Rr=sr.h*(_r.y[1]-_r.y[0]),zr=(.5*Er-tr.r)/sr.w,Br=(.5*Rr-tr.r)/sr.h;xt.autoMargin(Yt,"pie."+cr.uid+".automargin",{xl:_r.x[0]-zr,xr:_r.x[1]+zr,yb:_r.y[0]-Br,yt:_r.y[1]+Br,l:Math.max(tr.cx-tr.r-Ar.left,0),r:Math.max(Ar.right-(tr.cx+tr.r),0),b:Math.max(Ar.bottom-(tr.cy+tr.r),0),t:Math.max(tr.cy-tr.r-Ar.top,0),pad:5})}})});setTimeout(function(){Zt.selectAll("tspan").each(function(){var Kt=it.select(this);Kt.attr("dy")&&Kt.attr("dy",Kt.attr("dy"))})},0)}function ft(Yt,rr){Yt.each(function(jt){var ar=it.select(this);if(!jt.labelExtraX&&!jt.labelExtraY){ar.select("path.textline").remove();return}var sr=ar.select("g.slicetext text");jt.transform.targetX+=jt.labelExtraX,jt.transform.targetY+=jt.labelExtraY,ut.setTransormAndDisplay(sr,jt.transform);var Zt=jt.cxFinal+jt.pxmid[0],Kt=jt.cyFinal+jt.pxmid[1],or="M"+Zt+","+Kt,tr=(jt.yLabelMax-jt.yLabelMin)*(jt.pxmid[0]<0?-1:1)/4;if(jt.labelExtraX){var cr=jt.labelExtraX*jt.pxmid[1]/jt.pxmid[0],hr=jt.yLabelMid+jt.labelExtraY-(jt.cyFinal+jt.pxmid[1]);Math.abs(cr)>Math.abs(hr)?or+="l"+hr*jt.pxmid[0]/jt.pxmid[1]+","+hr+"H"+(Zt+jt.labelExtraX+tr):or+="l"+jt.labelExtraX+","+cr+"v"+(hr-cr)+"h"+tr}else or+="V"+(jt.yLabelMid+jt.labelExtraY)+"h"+tr;ut.ensureSingle(ar,"path","textline").call(Et.stroke,rr.outsidetextfont.color).attr({"stroke-width":Math.min(2,rr.outsidetextfont.size/8),d:or,fill:"none"})})}function at(Yt,rr,jt){var ar=jt[0],sr=ar.cx,Zt=ar.cy,Kt=ar.trace,or=Kt.type==="funnelarea";"_hasHoverLabel"in Kt||(Kt._hasHoverLabel=!1),"_hasHoverEvent"in Kt||(Kt._hasHoverEvent=!1),Yt.on("mouseover",function(tr){var cr=rr._fullLayout,hr=rr._fullData[Kt.index];if(!(rr._dragging||cr.hovermode===!1)){var br=hr.hoverinfo;if(Array.isArray(br)&&(br=et.castHoverinfo({hoverinfo:[nt.castOption(br,tr.pts)],_module:Kt._module},cr,0)),br==="all"&&(br="label+text+value+percent+name"),hr.hovertemplate||br!=="none"&&br!=="skip"&&br){var Tr=tr.rInscribed||0,Ir=sr+tr.pxmid[0]*(1-Tr),Ar=Zt+tr.pxmid[1]*(1-Tr),_r=cr.separators,Er=[];if(br&&br.indexOf("label")!==-1&&Er.push(tr.label),tr.text=nt.castOption(hr.hovertext||hr.text,tr.pts),br&&br.indexOf("text")!==-1){var Rr=tr.text;ut.isValidTextValue(Rr)&&Er.push(Rr)}tr.value=tr.v,tr.valueLabel=nt.formatPieValue(tr.v,_r),br&&br.indexOf("value")!==-1&&Er.push(tr.valueLabel),tr.percent=tr.v/ar.vTotal,tr.percentLabel=nt.formatPiePercent(tr.percent,_r),br&&br.indexOf("percent")!==-1&&Er.push(tr.percentLabel);var zr=hr.hoverlabel,Br=zr.font,kr=[];et.loneHover({trace:Kt,x0:Ir-Tr*ar.r,x1:Ir+Tr*ar.r,y:Ar,_x0:or?sr+tr.TL[0]:Ir-Tr*ar.r,_x1:or?sr+tr.TR[0]:Ir+Tr*ar.r,_y0:or?Zt+tr.TL[1]:Ar-Tr*ar.r,_y1:or?Zt+tr.BL[1]:Ar+Tr*ar.r,text:Er.join("
"),name:hr.hovertemplate||br.indexOf("name")!==-1?hr.name:void 0,idealAlign:tr.pxmid[0]<0?"left":"right",color:nt.castOption(zr.bgcolor,tr.pts)||tr.color,borderColor:nt.castOption(zr.bordercolor,tr.pts),fontFamily:nt.castOption(Br.family,tr.pts),fontSize:nt.castOption(Br.size,tr.pts),fontColor:nt.castOption(Br.color,tr.pts),nameLength:nt.castOption(zr.namelength,tr.pts),textAlign:nt.castOption(zr.align,tr.pts),hovertemplate:nt.castOption(hr.hovertemplate,tr.pts),hovertemplateLabels:tr,eventData:[vt(tr,hr)]},{container:cr._hoverlayer.node(),outerContainer:cr._paper.node(),gd:rr,inOut_bbox:kr}),tr.bbox=kr[0],Kt._hasHoverLabel=!0}Kt._hasHoverEvent=!0,rr.emit("plotly_hover",{points:[vt(tr,hr)],event:it.event})}}),Yt.on("mouseout",function(tr){var cr=rr._fullLayout,hr=rr._fullData[Kt.index],br=it.select(this).datum();Kt._hasHoverEvent&&(tr.originalEvent=it.event,rr.emit("plotly_unhover",{points:[vt(br,hr)],event:it.event}),Kt._hasHoverEvent=!1),Kt._hasHoverLabel&&(et.loneUnhover(cr._hoverlayer.node()),Kt._hasHoverLabel=!1)}),Yt.on("click",function(tr){var cr=rr._fullLayout,hr=rr._fullData[Kt.index];rr._dragging||cr.hovermode===!1||(rr._hoverdata=[vt(tr,hr)],et.click(rr,it.event))})}function yt(Yt,rr,jt){var ar=nt.castOption(Yt.outsidetextfont.color,rr.pts)||nt.castOption(Yt.textfont.color,rr.pts)||jt.color,sr=nt.castOption(Yt.outsidetextfont.family,rr.pts)||nt.castOption(Yt.textfont.family,rr.pts)||jt.family,Zt=nt.castOption(Yt.outsidetextfont.size,rr.pts)||nt.castOption(Yt.textfont.size,rr.pts)||jt.size,Kt=nt.castOption(Yt.outsidetextfont.weight,rr.pts)||nt.castOption(Yt.textfont.weight,rr.pts)||jt.weight,or=nt.castOption(Yt.outsidetextfont.style,rr.pts)||nt.castOption(Yt.textfont.style,rr.pts)||jt.style,tr=nt.castOption(Yt.outsidetextfont.variant,rr.pts)||nt.castOption(Yt.textfont.variant,rr.pts)||jt.variant;return{color:ar,family:sr,size:Zt,weight:Kt,style:or,variant:tr}}function St(Yt,rr,jt){var ar=nt.castOption(Yt.insidetextfont.color,rr.pts);!ar&&Yt._input.textfont&&(ar=nt.castOption(Yt._input.textfont.color,rr.pts));var sr=nt.castOption(Yt.insidetextfont.family,rr.pts)||nt.castOption(Yt.textfont.family,rr.pts)||jt.family,Zt=nt.castOption(Yt.insidetextfont.size,rr.pts)||nt.castOption(Yt.textfont.size,rr.pts)||jt.size,Kt=nt.castOption(Yt.insidetextfont.weight,rr.pts)||nt.castOption(Yt.textfont.weight,rr.pts)||jt.weight,or=nt.castOption(Yt.insidetextfont.style,rr.pts)||nt.castOption(Yt.textfont.style,rr.pts)||jt.style,tr=nt.castOption(Yt.insidetextfont.variant,rr.pts)||nt.castOption(Yt.textfont.variant,rr.pts)||jt.variant;return{color:ar||Et.contrast(rr.color),family:sr,size:Zt,weight:Kt,style:or,variant:tr}}function _t(Yt,rr){for(var jt,ar,sr=0;sr=-4;zr-=2)Rr(Math.PI*zr,"tan");for(zr=4;zr>=-4;zr-=2)Rr(Math.PI*(zr+1),"tan")}if(br||Ir){for(zr=4;zr>=-4;zr-=2)Rr(Math.PI*(zr+1.5),"rad");for(zr=4;zr>=-4;zr-=2)Rr(Math.PI*(zr+.5),"rad")}}if(or||Ar||br){var Br=Math.sqrt(Yt.width*Yt.width+Yt.height*Yt.height);if(Er={scale:sr*ar*2/Br,rCenter:1-sr,rotate:0},Er.textPosAngle=(rr.startangle+rr.stopangle)/2,Er.scale>=1)return Er;_r.push(Er)}(Ar||Ir)&&(Er=kt(Yt,ar,Kt,tr,cr),Er.textPosAngle=(rr.startangle+rr.stopangle)/2,_r.push(Er)),(Ar||Tr)&&(Er=wt(Yt,ar,Kt,tr,cr),Er.textPosAngle=(rr.startangle+rr.stopangle)/2,_r.push(Er));for(var kr=0,Nr=0,Qr=0;Qr<_r.length;Qr++){var sn=_r[Qr].scale;if(Nr=1)break}return _r[kr]}function Tt(Yt,rr){var jt=Yt.startangle,ar=Yt.stopangle;return jt>rr&&rr>ar||jt0?1:-1)/2,y:Zt/(1+jt*jt/(ar*ar)),outside:!0}}function zt(Yt){var rr=Math.sqrt(Yt.titleBox.width*Yt.titleBox.width+Yt.titleBox.height*Yt.titleBox.height);return{x:Yt.cx,y:Yt.cy,scale:Yt.trace.hole*Yt.r*2/rr,tx:0,ty:-Yt.titleBox.height/2+Yt.trace.title.font.size}}function Dt(Yt,rr){var jt=1,ar=1,sr,Zt=Yt.trace,Kt={x:Yt.cx,y:Yt.cy},or={tx:0,ty:0};or.ty+=Zt.title.font.size,sr=Ut(Zt),Zt.title.position.indexOf("top")!==-1?(Kt.y-=(1+sr)*Yt.r,or.ty-=Yt.titleBox.height):Zt.title.position.indexOf("bottom")!==-1&&(Kt.y+=(1+sr)*Yt.r);var tr=Nt(Yt.r,Yt.trace.aspectratio),cr=rr.w*(Zt.domain.x[1]-Zt.domain.x[0])/2;return Zt.title.position.indexOf("left")!==-1?(cr=cr+tr,Kt.x-=(1+sr)*tr,or.tx+=Yt.titleBox.width/2):Zt.title.position.indexOf("center")!==-1?cr*=2:Zt.title.position.indexOf("right")!==-1&&(cr=cr+tr,Kt.x+=(1+sr)*tr,or.tx-=Yt.titleBox.width/2),jt=cr/Yt.titleBox.width,ar=$t(Yt,rr)/Yt.titleBox.height,{x:Kt.x,y:Kt.y,scale:Math.min(jt,ar),tx:or.tx,ty:or.ty}}function Nt(Yt,rr){return Yt/(rr===void 0?1:rr)}function $t(Yt,rr){var jt=Yt.trace,ar=rr.h*(jt.domain.y[1]-jt.domain.y[0]);return Math.min(Yt.titleBox.height,ar/2)}function Ut(Yt){var rr=Yt.pull;if(!rr)return 0;var jt;if(ut.isArrayOrTypedArray(rr))for(rr=0,jt=0;jtrr&&(rr=Yt.pull[jt]);return rr}function Ht(Yt,rr){var jt,ar,sr,Zt,Kt,or,tr,cr,hr,br,Tr,Ir,Ar;function _r(Br,kr){return Br.pxmid[1]-kr.pxmid[1]}function Er(Br,kr){return kr.pxmid[1]-Br.pxmid[1]}function Rr(Br,kr){kr||(kr={});var Nr=kr.labelExtraY+(ar?kr.yLabelMax:kr.yLabelMin),Qr=ar?Br.yLabelMin:Br.yLabelMax,sn=ar?Br.yLabelMax:Br.yLabelMin,un=Br.cyFinal+Kt(Br.px0[1],Br.px1[1]),qr=Nr-Qr,Xr,ln,mn,pn,En,Jr;if(qr*tr>0&&(Br.labelExtraY=qr),!!ut.isArrayOrTypedArray(rr.pull))for(ln=0;ln=(nt.castOption(rr.pull,mn.pts)||0))&&((Br.pxmid[1]-mn.pxmid[1])*tr>0?(pn=mn.cyFinal+Kt(mn.px0[1],mn.px1[1]),qr=pn-Qr-Br.labelExtraY,qr*tr>0&&(Br.labelExtraY+=qr)):(sn+Br.labelExtraY-un)*tr>0&&(Xr=3*or*Math.abs(ln-br.indexOf(Br)),En=mn.cxFinal+Zt(mn.px0[0],mn.px1[0]),Jr=En+Xr-(Br.cxFinal+Br.pxmid[0])-Br.labelExtraX,Jr*or>0&&(Br.labelExtraX+=Jr)))}for(ar=0;ar<2;ar++)for(sr=ar?_r:Er,Kt=ar?Math.max:Math.min,tr=ar?1:-1,jt=0;jt<2;jt++){for(Zt=jt?Math.max:Math.min,or=jt?1:-1,cr=Yt[ar][jt],cr.sort(sr),hr=Yt[1-ar][jt],br=hr.concat(cr),Ir=[],Tr=0;Tr1?(cr=jt.r,hr=cr/sr.aspectratio):(hr=jt.r,cr=hr*sr.aspectratio),cr*=(1+sr.baseratio)/2,tr=cr*hr}Kt=Math.min(Kt,tr/jt.vTotal)}for(ar=0;arrr.vTotal/2?1:0,cr.halfangle=Math.PI*Math.min(cr.v/rr.vTotal,.5),cr.ring=1-ar.hole,cr.rInscribed=Ot(cr,rr))}function er(Yt,rr){return[Yt*Math.sin(rr),-Yt*Math.cos(rr)]}function lr(Yt,rr,jt){var ar=Yt._fullLayout,sr=jt.trace,Zt=sr.texttemplate,Kt=sr.textinfo;if(!Zt&&Kt&&Kt!=="none"){var or=Kt.split("+"),tr=function(kr){return or.indexOf(kr)!==-1},cr=tr("label"),hr=tr("text"),br=tr("value"),Tr=tr("percent"),Ir=ar.separators,Ar;if(Ar=cr?[rr.label]:[],hr){var _r=nt.getFirstFilled(sr.text,rr.pts);dt(_r)&&Ar.push(_r)}br&&Ar.push(nt.formatPieValue(rr.v,Ir)),Tr&&Ar.push(nt.formatPiePercent(rr.v/jt.vTotal,Ir)),rr.text=Ar.join("
")}function Er(kr){return{label:kr.label,value:kr.v,valueLabel:nt.formatPieValue(kr.v,ar.separators),percent:kr.v/jt.vTotal,percentLabel:nt.formatPiePercent(kr.v/jt.vTotal,ar.separators),color:kr.color,text:kr.text,customdata:ut.castOption(sr,kr.i,"customdata")}}if(Zt){var Rr=ut.castOption(sr,rr.i,"texttemplate");if(!Rr)rr.text="";else{var zr=Er(rr),Br=nt.getFirstFilled(sr.text,rr.pts);(dt(Br)||Br==="")&&(zr.text=Br),rr.text=ut.texttemplateString(Rr,zr,Yt._fullLayout._d3locale,zr,sr._meta||{})}}}function Jt(Yt,rr){var jt=Yt.rotate*Math.PI/180,ar=Math.cos(jt),sr=Math.sin(jt),Zt=(rr.left+rr.right)/2,Kt=(rr.top+rr.bottom)/2;Yt.textX=Zt*ar-Kt*sr,Yt.textY=Zt*sr+Kt*ar,Yt.noCenter=!0}Ct.exports={plot:bt,formatSliceLabel:lr,transformInsideText:Mt,determineInsideTextFont:St,positionTitleOutside:Dt,prerenderTitles:_t,layoutAreas:Vt,attachFxHandlers:at,computeTransform:Jt}},22152:function(Ct,Rt,o){var it=o(33428),xt=o(10528),et=o(82744).resizeText;Ct.exports=function(mt){var ut=mt._fullLayout._pielayer.selectAll(".trace");et(mt,ut,"pie"),ut.each(function(ht){var j=ht[0],_=j.trace,rt=it.select(this);rt.style({opacity:_.opacity}),rt.selectAll("path.surface").each(function(tt){it.select(this).call(xt,tt,_,mt)})})}},10528:function(Ct,Rt,o){var it=o(76308),xt=o(69656).castOption,et=o(21552);Ct.exports=function(mt,ut,ht,j){var _=ht.marker.line,rt=xt(_.color,ut.pts)||it.defaultLine,tt=xt(_.width,ut.pts)||0;mt.call(et,ut,ht,j).style("stroke-width",tt).call(it.stroke,rt)}},35484:function(Ct,Rt,o){var it=o(52904);Ct.exports={x:it.x,y:it.y,xy:{valType:"data_array",editType:"calc"},indices:{valType:"data_array",editType:"calc"},xbounds:{valType:"data_array",editType:"calc"},ybounds:{valType:"data_array",editType:"calc"},text:it.text,marker:{color:{valType:"color",arrayOk:!1,editType:"calc"},opacity:{valType:"number",min:0,max:1,dflt:1,arrayOk:!1,editType:"calc"},blend:{valType:"boolean",dflt:null,editType:"calc"},sizemin:{valType:"number",min:.1,max:2,dflt:.5,editType:"calc"},sizemax:{valType:"number",min:.1,dflt:20,editType:"calc"},border:{color:{valType:"color",arrayOk:!1,editType:"calc"},arearatio:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},editType:"calc"},editType:"calc"},transforms:void 0}},11072:function(Ct,Rt,o){var it=o(67792).gl_pointcloud2d,xt=o(3400).isArrayOrTypedArray,et=o(43080),Et=o(19280).findExtremes,mt=o(44928);function ut(_,rt){this.scene=_,this.uid=rt,this.type="pointcloud",this.pickXData=[],this.pickYData=[],this.xData=[],this.yData=[],this.textLabels=[],this.color="rgb(0, 0, 0)",this.name="",this.hoverinfo="all",this.idToIndex=new Int32Array(0),this.bounds=[0,0,0,0],this.pointcloudOptions={positions:new Float32Array(0),idToIndex:this.idToIndex,sizemin:.5,sizemax:12,color:[0,0,0,1],areaRatio:1,borderColor:[0,0,0,1]},this.pointcloud=it(_.glplot,this.pointcloudOptions),this.pointcloud._trace=this}var ht=ut.prototype;ht.handlePick=function(_){var rt=this.idToIndex[_.pointId];return{trace:this,dataCoord:_.dataCoord,traceCoord:this.pickXYData?[this.pickXYData[rt*2],this.pickXYData[rt*2+1]]:[this.pickXData[rt],this.pickYData[rt]],textLabel:xt(this.textLabels)?this.textLabels[rt]:this.textLabels,color:this.color,name:this.name,pointIndex:rt,hoverinfo:this.hoverinfo}},ht.update=function(_){this.index=_.index,this.textLabels=_.text,this.name=_.name,this.hoverinfo=_.hoverinfo,this.bounds=[1/0,1/0,-1/0,-1/0],this.updateFast(_),this.color=mt(_,{})},ht.updateFast=function(_){var rt=this.xData=this.pickXData=_.x,tt=this.yData=this.pickYData=_.y,st=this.pickXYData=_.xy,ot=_.xbounds&&_.ybounds,nt=_.indices,vt,dt,bt,ft=this.bounds,at,yt,St;if(st){if(bt=st,vt=st.length>>>1,ot)ft[0]=_.xbounds[0],ft[2]=_.xbounds[1],ft[1]=_.ybounds[0],ft[3]=_.ybounds[1];else for(St=0;Stft[2]&&(ft[2]=at),ytft[3]&&(ft[3]=yt);if(nt)dt=nt;else for(dt=new Int32Array(vt),St=0;Stft[2]&&(ft[2]=at),ytft[3]&&(ft[3]=yt);this.idToIndex=dt,this.pointcloudOptions.idToIndex=dt,this.pointcloudOptions.positions=bt;var _t=et(_.marker.color),Mt=et(_.marker.border.color),Tt=_.opacity*_.marker.opacity;_t[3]*=Tt,this.pointcloudOptions.color=_t;var kt=_.marker.blend;if(kt===null){var wt=100;kt=rt.lengthMt&&(Mt=tt.source[at]),tt.target[at]>Mt&&(Mt=tt.target[at]);var Tt=Mt+1;_.node._count=Tt;var kt,wt=_.node.groups,ct={};for(at=0;at0&&mt(Dt,Tt)&&mt(Nt,Tt)&&!(ct.hasOwnProperty(Dt)&&ct.hasOwnProperty(Nt)&&ct[Dt]===ct[Nt])){ct.hasOwnProperty(Nt)&&(Nt=ct[Nt]),ct.hasOwnProperty(Dt)&&(Dt=ct[Dt]),Dt=+Dt,Nt=+Nt,dt[Dt]=dt[Nt]=!0;var $t="";tt.label&&tt.label[at]&&($t=tt.label[at]);var Ut=null;$t&&bt.hasOwnProperty($t)&&(Ut=bt[$t]),st.push({pointNumber:at,label:$t,color:ot?tt.color[at]:tt.color,hovercolor:nt?tt.hovercolor[at]:tt.hovercolor,customdata:vt?tt.customdata[at]:tt.customdata,concentrationscale:Ut,source:Dt,target:Nt,value:+zt}),Pt.source.push(Dt),Pt.target.push(Nt)}}var Ht=Tt+wt.length,Vt=Et(rt.color),Xt=Et(rt.customdata),qt=[];for(at=0;atTt-1,childrenNodes:[],pointNumber:at,label:er,color:Vt?rt.color[at]:rt.color,customdata:Xt?rt.customdata[at]:rt.customdata})}var lr=!1;return j(Ht,Pt.source,Pt.target)&&(lr=!0),{circular:lr,links:st,nodes:qt,groups:wt,groupLookup:ct}}function j(_,rt,tt){for(var st=xt.init2dArray(_,0),ot=0;ot1})}Ct.exports=function(rt,tt){var st=ht(tt);return et({circular:st.circular,_nodes:st.nodes,_links:st.links,_groups:st.groups,_groupLookup:st.groupLookup})}},11820:function(Ct){Ct.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:"linear",cn:{sankey:"sankey",sankeyLinks:"sankey-links",sankeyLink:"sankey-link",sankeyNodeSet:"sankey-node-set",sankeyNode:"sankey-node",nodeRect:"node-rect",nodeLabel:"node-label"}}},47140:function(Ct,Rt,o){var it=o(3400),xt=o(41440),et=o(76308),Et=o(49760),mt=o(86968).Q,ut=o(16132),ht=o(31780),j=o(51272);Ct.exports=function(tt,st,ot,nt){function vt(Ot,Pt){return it.coerce(tt,st,xt,Ot,Pt)}var dt=it.extendDeep(nt.hoverlabel,tt.hoverlabel),bt=tt.node,ft=ht.newContainer(st,"node");function at(Ot,Pt){return it.coerce(bt,ft,xt.node,Ot,Pt)}at("label"),at("groups"),at("x"),at("y"),at("pad"),at("thickness"),at("line.color"),at("line.width"),at("hoverinfo",tt.hoverinfo),ut(bt,ft,at,dt),at("hovertemplate"),at("align");var yt=nt.colorway,St=function(Ot){return yt[Ot%yt.length]};at("color",ft.label.map(function(Ot,Pt){return et.addOpacity(St(Pt),.8)})),at("customdata");var _t=tt.link||{},Mt=ht.newContainer(st,"link");function Tt(Ot,Pt){return it.coerce(_t,Mt,xt.link,Ot,Pt)}Tt("label"),Tt("arrowlen"),Tt("source"),Tt("target"),Tt("value"),Tt("line.color"),Tt("line.width"),Tt("hoverinfo",tt.hoverinfo),ut(_t,Mt,Tt,dt),Tt("hovertemplate");var kt=Et(nt.paper_bgcolor).getLuminance()<.333,wt=kt?"rgba(255, 255, 255, 0.6)":"rgba(0, 0, 0, 0.2)",ct=Tt("color",wt);function It(Ot){var Pt=Et(Ot);if(!Pt.isValid())return Ot;var zt=Pt.getAlpha();return zt<=.8?Pt.setAlpha(zt+.2):Pt=kt?Pt.brighten():Pt.darken(),Pt.toRgbString()}Tt("hovercolor",Array.isArray(ct)?ct.map(It):It(ct)),Tt("customdata"),j(_t,Mt,{name:"colorscales",handleItemDefaults:_}),mt(st,nt,vt),vt("orientation"),vt("valueformat"),vt("valuesuffix");var At;ft.x.length&&ft.y.length&&(At="freeform"),vt("arrangement",At),it.coerceFont(vt,"textfont",it.extendFlat({},nt.font)),st._length=null};function _(rt,tt){function st(ot,nt){return it.coerce(rt,tt,xt.link.colorscales,ot,nt)}st("label"),st("cmin"),st("cmax"),st("colorscale")}},45499:function(Ct,Rt,o){Ct.exports={attributes:o(41440),supplyDefaults:o(47140),calc:o(48068),plot:o(59596),moduleType:"trace",name:"sankey",basePlotModule:o(10760),selectPoints:o(81128),categories:["noOpacity"],meta:{}}},59596:function(Ct,Rt,o){var it=o(33428),xt=o(3400),et=xt.numberFormat,Et=o(83248),mt=o(93024),ut=o(76308),ht=o(11820).cn,j=xt._;function _(yt){return yt!==""}function rt(yt,St){return yt.filter(function(_t){return _t.key===St.traceId})}function tt(yt,St){it.select(yt).select("path").style("fill-opacity",St),it.select(yt).select("rect").style("fill-opacity",St)}function st(yt){it.select(yt).select("text.name").style("fill","black")}function ot(yt){return function(St){return yt.node.sourceLinks.indexOf(St.link)!==-1||yt.node.targetLinks.indexOf(St.link)!==-1}}function nt(yt){return function(St){return St.node.sourceLinks.indexOf(yt.link)!==-1||St.node.targetLinks.indexOf(yt.link)!==-1}}function vt(yt,St,_t){St&&_t&&rt(_t,St).selectAll("."+ht.sankeyLink).filter(ot(St)).call(bt.bind(0,St,_t,!1))}function dt(yt,St,_t){St&&_t&&rt(_t,St).selectAll("."+ht.sankeyLink).filter(ot(St)).call(ft.bind(0,St,_t,!1))}function bt(yt,St,_t,Mt){Mt.style("fill",function(Tt){if(!Tt.link.concentrationscale)return Tt.tinyColorHoverHue}).style("fill-opacity",function(Tt){if(!Tt.link.concentrationscale)return Tt.tinyColorHoverAlpha}),Mt.each(function(Tt){var kt=Tt.link.label;kt!==""&&rt(St,yt).selectAll("."+ht.sankeyLink).filter(function(wt){return wt.link.label===kt}).style("fill",function(wt){if(!wt.link.concentrationscale)return wt.tinyColorHoverHue}).style("fill-opacity",function(wt){if(!wt.link.concentrationscale)return wt.tinyColorHoverAlpha})}),_t&&rt(St,yt).selectAll("."+ht.sankeyNode).filter(nt(yt)).call(vt)}function ft(yt,St,_t,Mt){Mt.style("fill",function(Tt){return Tt.tinyColorHue}).style("fill-opacity",function(Tt){return Tt.tinyColorAlpha}),Mt.each(function(Tt){var kt=Tt.link.label;kt!==""&&rt(St,yt).selectAll("."+ht.sankeyLink).filter(function(wt){return wt.link.label===kt}).style("fill",function(wt){return wt.tinyColorHue}).style("fill-opacity",function(wt){return wt.tinyColorAlpha})}),_t&&rt(St,yt).selectAll(ht.sankeyNode).filter(nt(yt)).call(dt)}function at(yt,St){var _t=yt.hoverlabel||{},Mt=xt.nestedProperty(_t,St).get();return Array.isArray(Mt)?!1:Mt}Ct.exports=function(St,_t){for(var Mt=St._fullLayout,Tt=Mt._paper,kt=Mt._size,wt=0;wt"),color:at(Jt,"bgcolor")||ut.addOpacity(sr.color,1),borderColor:at(Jt,"bordercolor"),fontFamily:at(Jt,"font.family"),fontSize:at(Jt,"font.size"),fontColor:at(Jt,"font.color"),fontWeight:at(Jt,"font.weight"),fontStyle:at(Jt,"font.style"),fontVariant:at(Jt,"font.variant"),nameLength:at(Jt,"namelength"),textAlign:at(Jt,"align"),idealAlign:it.event.x"),color:at(Jt,"bgcolor")||lr.tinyColorHue,borderColor:at(Jt,"bordercolor"),fontFamily:at(Jt,"font.family"),fontSize:at(Jt,"font.size"),fontColor:at(Jt,"font.color"),fontWeight:at(Jt,"font.weight"),fontStyle:at(Jt,"font.style"),fontVariant:at(Jt,"font.variant"),nameLength:at(Jt,"namelength"),textAlign:at(Jt,"align"),idealAlign:"left",hovertemplate:Jt.hovertemplate,hovertemplateLabels:Kt,eventData:[lr.node]},{container:Mt._hoverlayer.node(),outerContainer:Mt._paper.node(),gd:St});tt(cr,.85),st(cr)}}},qt=function(er,lr,Jt){St._fullLayout.hovermode!==!1&&(it.select(er).call(dt,lr,Jt),lr.node.trace.node.hoverinfo!=="skip"&&(lr.node.fullData=lr.node.trace,St.emit("plotly_unhover",{event:it.event,points:[lr.node]})),mt.loneUnhover(Mt._hoverlayer.node()))};Et(St,Tt,_t,{width:kt.w,height:kt.h,margin:{t:kt.t,r:kt.r,b:kt.b,l:kt.l}},{linkEvents:{hover:At,follow:$t,unhover:Ut,select:It},nodeEvents:{hover:Vt,follow:Xt,unhover:qt,select:Ht}})}},83248:function(Ct,Rt,o){var it=o(49812),xt=o(67756).Gz,et=o(33428),Et=o(26800),mt=o(48932),ut=o(11820),ht=o(49760),j=o(76308),_=o(43616),rt=o(3400),tt=rt.strTranslate,st=rt.strRotate,ot=o(71688),nt=ot.keyFun,vt=ot.repeat,dt=ot.unwrap,bt=o(72736),ft=o(24040),at=o(84284),yt=at.CAP_SHIFT,St=at.LINE_SPACING,_t=3;function Mt(rr,jt,ar){var sr=dt(jt),Zt=sr.trace,Kt=Zt.domain,or=Zt.orientation==="h",tr=Zt.node.pad,cr=Zt.node.thickness,hr={justify:Et.sankeyJustify,left:Et.sankeyLeft,right:Et.sankeyRight,center:Et.sankeyCenter}[Zt.node.align],br=rr.width*(Kt.x[1]-Kt.x[0]),Tr=rr.height*(Kt.y[1]-Kt.y[0]),Ir=sr._nodes,Ar=sr._links,_r=sr.circular,Er;_r?Er=mt.sankeyCircular().circularLinkGap(0):Er=Et.sankey(),Er.iterations(ut.sankeyIterations).size(or?[br,Tr]:[Tr,br]).nodeWidth(cr).nodePadding(tr).nodeId(function(Jr){return Jr.pointNumber}).nodeAlign(hr).nodes(Ir).links(Ar);var Rr=Er();Er.nodePadding()=Gr||(jr=Gr-Ur.y0,jr>1e-6&&(Ur.y0+=jr,Ur.y1+=jr)),Gr=Ur.y1+tr})}function ln(Jr){var Or=Jr.map(function(Sr,ur){return{x0:Sr.x0,index:ur}}).sort(function(Sr,ur){return Sr.x0-ur.x0}),Ur=[],jr=-1,Gr,wr=-1/0,vr;for(zr=0;zrwr+cr&&(jr+=1,Gr=Dr.x0),wr=Dr.x0,Ur[jr]||(Ur[jr]=[]),Ur[jr].push(Dr),vr=Gr-Dr.x0,Dr.x0+=vr,Dr.x1+=vr}return Ur}if(Zt.node.x.length&&Zt.node.y.length){for(zr=0;zr0?"L"+Zt.targetX+" "+Zt.targetY:"")+"Z":ar="M "+(Zt.targetX-jt)+" "+(Zt.targetY-sr)+" L"+(Zt.rightInnerExtent-jt)+" "+(Zt.targetY-sr)+"A"+(Zt.rightLargeArcRadius+sr)+" "+(Zt.rightSmallArcRadius+sr)+" 0 0 0 "+(Zt.rightFullExtent-sr-jt)+" "+(Zt.targetY+Zt.rightSmallArcRadius)+"L"+(Zt.rightFullExtent-sr-jt)+" "+Zt.verticalRightInnerExtent+"A"+(Zt.rightLargeArcRadius+sr)+" "+(Zt.rightLargeArcRadius+sr)+" 0 0 0 "+(Zt.rightInnerExtent-jt)+" "+(Zt.verticalFullExtent+sr)+"L"+Zt.leftInnerExtent+" "+(Zt.verticalFullExtent+sr)+"A"+(Zt.leftLargeArcRadius+sr)+" "+(Zt.leftLargeArcRadius+sr)+" 0 0 0 "+(Zt.leftFullExtent+sr)+" "+Zt.verticalLeftInnerExtent+"L"+(Zt.leftFullExtent+sr)+" "+(Zt.sourceY+Zt.leftSmallArcRadius)+"A"+(Zt.leftLargeArcRadius+sr)+" "+(Zt.leftSmallArcRadius+sr)+" 0 0 0 "+Zt.leftInnerExtent+" "+(Zt.sourceY-sr)+"L"+Zt.sourceX+" "+(Zt.sourceY-sr)+"L"+Zt.sourceX+" "+(Zt.sourceY+sr)+"L"+Zt.leftInnerExtent+" "+(Zt.sourceY+sr)+"A"+(Zt.leftLargeArcRadius-sr)+" "+(Zt.leftSmallArcRadius-sr)+" 0 0 1 "+(Zt.leftFullExtent-sr)+" "+(Zt.sourceY+Zt.leftSmallArcRadius)+"L"+(Zt.leftFullExtent-sr)+" "+Zt.verticalLeftInnerExtent+"A"+(Zt.leftLargeArcRadius-sr)+" "+(Zt.leftLargeArcRadius-sr)+" 0 0 1 "+Zt.leftInnerExtent+" "+(Zt.verticalFullExtent-sr)+"L"+(Zt.rightInnerExtent-jt)+" "+(Zt.verticalFullExtent-sr)+"A"+(Zt.rightLargeArcRadius-sr)+" "+(Zt.rightLargeArcRadius-sr)+" 0 0 1 "+(Zt.rightFullExtent+sr-jt)+" "+Zt.verticalRightInnerExtent+"L"+(Zt.rightFullExtent+sr-jt)+" "+(Zt.targetY+Zt.rightSmallArcRadius)+"A"+(Zt.rightLargeArcRadius-sr)+" "+(Zt.rightSmallArcRadius-sr)+" 0 0 1 "+(Zt.rightInnerExtent-jt)+" "+(Zt.targetY+sr)+"L"+(Zt.targetX-jt)+" "+(Zt.targetY+sr)+(jt>0?"L"+Zt.targetX+" "+Zt.targetY:"")+"Z",ar}function wt(){var rr=.5;function jt(ar){var sr=ar.linkArrowLength;if(ar.link.circular)return kt(ar.link,sr);var Zt=Math.abs((ar.link.target.x0-ar.link.source.x1)/2);sr>Zt&&(sr=Zt);var Kt=ar.link.source.x1,or=ar.link.target.x0-sr,tr=xt(Kt,or),cr=tr(rr),hr=tr(1-rr),br=ar.link.y0-ar.link.width/2,Tr=ar.link.y0+ar.link.width/2,Ir=ar.link.y1-ar.link.width/2,Ar=ar.link.y1+ar.link.width/2,_r="M"+Kt+","+br,Er="C"+cr+","+br+" "+hr+","+Ir+" "+or+","+Ir,Rr="C"+hr+","+Ar+" "+cr+","+Tr+" "+Kt+","+Tr,zr=sr>0?"L"+(or+sr)+","+(Ir+ar.link.width/2):"";return zr+="L"+or+","+Ar,_r+Er+zr+Rr+"Z"}return jt}function ct(rr,jt){var ar=ht(jt.color),sr=ut.nodePadAcross,Zt=rr.nodePad/2;jt.dx=jt.x1-jt.x0,jt.dy=jt.y1-jt.y0;var Kt=jt.dx,or=Math.max(.5,jt.dy),tr="node_"+jt.pointNumber;return jt.group&&(tr=rt.randstr()),jt.trace=rr.trace,jt.curveNumber=rr.trace.index,{index:jt.pointNumber,key:tr,partOfGroup:jt.partOfGroup||!1,group:jt.group,traceId:rr.key,trace:rr.trace,node:jt,nodePad:rr.nodePad,nodeLineColor:rr.nodeLineColor,nodeLineWidth:rr.nodeLineWidth,textFont:rr.textFont,size:rr.horizontal?rr.height:rr.width,visibleWidth:Math.ceil(Kt),visibleHeight:or,zoneX:-sr,zoneY:-Zt,zoneWidth:Kt+2*sr,zoneHeight:or+2*Zt,labelY:rr.horizontal?jt.dy/2+1:jt.dx/2+1,left:jt.originalLayer===1,sizeAcross:rr.width,forceLayouts:rr.forceLayouts,horizontal:rr.horizontal,darkBackground:ar.getBrightness()<=128,tinyColorHue:j.tinyRGB(ar),tinyColorAlpha:ar.getAlpha(),valueFormat:rr.valueFormat,valueSuffix:rr.valueSuffix,sankey:rr.sankey,graph:rr.graph,arrangement:rr.arrangement,uniqueNodeLabelPathId:[rr.guid,rr.key,tr].join("_"),interactionState:rr.interactionState,figure:rr}}function It(rr){rr.attr("transform",function(jt){return tt(jt.node.x0.toFixed(3),jt.node.y0.toFixed(3))})}function At(rr){rr.call(It)}function Ot(rr,jt){rr.call(At),jt.attr("d",wt())}function Pt(rr){rr.attr("width",function(jt){return jt.node.x1-jt.node.x0}).attr("height",function(jt){return jt.visibleHeight})}function zt(rr){return rr.link.width>1||rr.linkLineWidth>0}function Dt(rr){var jt=tt(rr.translateX,rr.translateY);return jt+(rr.horizontal?"matrix(1 0 0 1 0 0)":"matrix(0 1 1 0 0 0)")}function Nt(rr,jt,ar){rr.on(".basic",null).on("mouseover.basic",function(sr){!sr.interactionState.dragInProgress&&!sr.partOfGroup&&(ar.hover(this,sr,jt),sr.interactionState.hovered=[this,sr])}).on("mousemove.basic",function(sr){!sr.interactionState.dragInProgress&&!sr.partOfGroup&&(ar.follow(this,sr),sr.interactionState.hovered=[this,sr])}).on("mouseout.basic",function(sr){!sr.interactionState.dragInProgress&&!sr.partOfGroup&&(ar.unhover(this,sr,jt),sr.interactionState.hovered=!1)}).on("click.basic",function(sr){sr.interactionState.hovered&&(ar.unhover(this,sr,jt),sr.interactionState.hovered=!1),!sr.interactionState.dragInProgress&&!sr.partOfGroup&&ar.select(this,sr,jt)})}function $t(rr,jt,ar,sr){var Zt=et.behavior.drag().origin(function(Kt){return{x:Kt.node.x0+Kt.visibleWidth/2,y:Kt.node.y0+Kt.visibleHeight/2}}).on("dragstart",function(Kt){if(Kt.arrangement!=="fixed"&&(rt.ensureSingle(sr._fullLayout._infolayer,"g","dragcover",function(tr){sr._fullLayout._dragCover=tr}),rt.raiseToTop(this),Kt.interactionState.dragInProgress=Kt.node,er(Kt.node),Kt.interactionState.hovered&&(ar.nodeEvents.unhover.apply(0,Kt.interactionState.hovered),Kt.interactionState.hovered=!1),Kt.arrangement==="snap")){var or=Kt.traceId+"|"+Kt.key;Kt.forceLayouts[or]?Kt.forceLayouts[or].alpha(1):Ut(rr,or,Kt),Ht(rr,jt,Kt,or,sr)}}).on("drag",function(Kt){if(Kt.arrangement!=="fixed"){var or=et.event.x,tr=et.event.y;Kt.arrangement==="snap"?(Kt.node.x0=or-Kt.visibleWidth/2,Kt.node.x1=or+Kt.visibleWidth/2,Kt.node.y0=tr-Kt.visibleHeight/2,Kt.node.y1=tr+Kt.visibleHeight/2):(Kt.arrangement==="freeform"&&(Kt.node.x0=or-Kt.visibleWidth/2,Kt.node.x1=or+Kt.visibleWidth/2),tr=Math.max(0,Math.min(Kt.size-Kt.visibleHeight/2,tr)),Kt.node.y0=tr-Kt.visibleHeight/2,Kt.node.y1=tr+Kt.visibleHeight/2),er(Kt.node),Kt.arrangement!=="snap"&&(Kt.sankey.update(Kt.graph),Ot(rr.filter(lr(Kt)),jt))}}).on("dragend",function(Kt){if(Kt.arrangement!=="fixed"){Kt.interactionState.dragInProgress=!1;for(var or=0;or0)window.requestAnimationFrame(Kt);else{var cr=ar.node.originalX;ar.node.x0=cr-ar.visibleWidth/2,ar.node.x1=cr+ar.visibleWidth/2,Xt(ar,Zt)}})}function Vt(rr,jt,ar,sr){return function(){for(var Kt=0,or=0;or0&&sr.forceLayouts[jt].alpha(0)}}function Xt(rr,jt){for(var ar=[],sr=[],Zt=0;ZtDt&&It[$t].gap;)$t--;for(Ht=It[$t].s,Nt=It.length-1;Nt>$t;Nt--)It[Nt].s=Ht;for(;Dt<$t;)if(Dt++,It[Dt].gap){for(Nt=Dt+1;It[Nt].gap;)Nt++;for(var ar=It[Dt-1][qt],sr=It[Dt-1].s,Zt=(It[Nt].s-sr)/(It[Nt][qt]-ar);DtPt[dt]&&dt=0;ot--){var nt=mt[ot];if(nt.type==="scatter"&&nt.xaxis===tt.xaxis&&nt.yaxis===tt.yaxis){nt.opacity=void 0;break}}}}}},18800:function(Ct,Rt,o){var it=o(3400),xt=o(24040),et=o(52904),Et=o(88200),mt=o(43028),ut=o(43980),ht=o(31147),j=o(43912),_=o(74428),rt=o(66828),tt=o(11731),st=o(124),ot=o(70840),nt=o(3400).coercePattern;Ct.exports=function(dt,bt,ft,at){function yt(It,At){return it.coerce(dt,bt,et,It,At)}var St=ut(dt,bt,at,yt);if(St||(bt.visible=!1),!!bt.visible){ht(dt,bt,at,yt),yt("xhoverformat"),yt("yhoverformat"),yt("zorder");var _t=j(dt,bt,at,yt);at.scattermode==="group"&&bt.orientation===void 0&&yt("orientation","v");var Mt=!_t&&St=Math.min(er,lr)&&dt<=Math.max(er,lr)?0:1/0}var Jt=Math.max(3,qt.mrc||0),Yt=1-1/Jt,rr=Math.abs(nt.c2p(qt.x)-dt);return rr=Math.min(er,lr)&&bt<=Math.max(er,lr)?0:1/0}var Jt=Math.max(3,qt.mrc||0),Yt=1-1/Jt,rr=Math.abs(vt.c2p(qt.y)-bt);return rrar!=br>=ar&&(tr=Kt[Zt-1][0],cr=Kt[Zt][0],br-hr&&(or=tr+(cr-tr)*(ar-hr)/(br-hr),Jt=Math.min(Jt,or),Yt=Math.max(Yt,or)));return Jt=Math.max(Jt,0),Yt=Math.min(Yt,nt._length),{x0:Jt,x1:Yt,y0:ar,y1:ar}}if(at.indexOf("fills")!==-1&&ot._fillElement){var Ht=$t(ot._fillElement)&&!$t(ot._fillExclusionElement);if(Ht){var Vt=Ut(ot._polygons);Vt===null&&(Vt={x0:ft[0],x1:ft[0],y0:ft[1],y1:ft[1]});var Xt=mt.defaultLine;return mt.opacity(ot.fillcolor)?Xt=ot.fillcolor:mt.opacity((ot.line||{}).color)&&(Xt=ot.line.color),it.extendFlat(j,{distance:j.maxHoverDistance,x0:Vt.x0,x1:Vt.x1,y0:Vt.y0,y1:Vt.y1,color:Xt,hovertemplate:!1}),delete j.index,ot.text&&!it.isArrayOrTypedArray(ot.text)?j.text=String(ot.text):j.text=ot.name,[j]}}}},65875:function(Ct,Rt,o){var it=o(43028);Ct.exports={hasLines:it.hasLines,hasMarkers:it.hasMarkers,hasText:it.hasText,isBubble:it.isBubble,attributes:o(52904),layoutAttributes:o(55308),supplyDefaults:o(18800),crossTraceDefaults:o(35036),supplyLayoutDefaults:o(59748),calc:o(16356).calc,crossTraceCalc:o(96664),arraysToCalcdata:o(20148),plot:o(96504),colorbar:o(5528),formatLabels:o(76688),style:o(49224).style,styleOnSelect:o(49224).styleOnSelect,hoverPoints:o(98723),selectPoints:o(91560),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:o(57952),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}},55308:function(Ct){Ct.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}},59748:function(Ct,Rt,o){var it=o(3400),xt=o(55308);Ct.exports=function(et,Et){function mt(ht,j){return it.coerce(et,Et,xt,ht,j)}var ut=Et.barmode==="group";Et.scattermode==="group"&&mt("scattergap",ut?Et.bargap:.2)}},66828:function(Ct,Rt,o){var it=o(3400).isArrayOrTypedArray,xt=o(94288).hasColorscale,et=o(27260);Ct.exports=function(mt,ut,ht,j,_,rt){rt||(rt={});var tt=(mt.marker||{}).color;if(tt&&tt._inputArray&&(tt=tt._inputArray),_("line.color",ht),xt(mt,"line"))et(mt,ut,j,_,{prefix:"line.",cLetter:"c"});else{var st=(it(tt)?!1:tt)||ht;_("line.color",st)}_("line.width"),rt.noDash||_("line.dash"),rt.backoff&&_("line.backoff")}},52340:function(Ct,Rt,o){var it=o(43616),xt=o(39032),et=xt.BADNUM,Et=xt.LOG_CLIP,mt=Et+.5,ut=Et-.5,ht=o(3400),j=ht.segmentsIntersect,_=ht.constrain,rt=o(88200);Ct.exports=function(st,ot){var nt=ot.trace||{},vt=ot.xaxis,dt=ot.yaxis,bt=vt.type==="log",ft=dt.type==="log",at=vt._length,yt=dt._length,St=ot.backoff,_t=nt.marker,Mt=ot.connectGaps,Tt=ot.baseTolerance,kt=ot.shape,wt=kt==="linear",ct=nt.fill&&nt.fill!=="none",It=[],At=rt.minTolerance,Ot=st.length,Pt=new Array(Ot),zt=0,Dt,Nt,$t,Ut,Ht,Vt,Xt,qt,er,lr,Jt,Yt,rr,jt,ar,sr;function Zt(en){var rn=st[en];if(!rn)return!1;var Cn=ot.linearized?vt.l2p(rn.x):vt.c2p(rn.x),xn=ot.linearized?dt.l2p(rn.y):dt.c2p(rn.y);if(Cn===et){if(bt&&(Cn=vt.c2p(rn.x,!0)),Cn===et)return!1;ft&&xn===et&&(Cn*=Math.abs(vt._m*yt*(vt._m>0?mt:ut)/(dt._m*at*(dt._m>0?mt:ut)))),Cn*=1e3}if(xn===et){if(ft&&(xn=dt.c2p(rn.y,!0)),xn===et)return!1;xn*=1e3}return[Cn,xn]}function Kt(en,rn,Cn,xn){var fn=Cn-en,bn=xn-rn,Un=.5-en,_i=.5-rn,yn=fn*fn+bn*bn,Kn=fn*Un+bn*_i;if(Kn>0&&Kn1||Math.abs(Un.y-Cn[0][1])>1)&&(Un=[Un.x,Un.y],xn&&hr(Un,en)Ir||en[1]_r)return[_(en[0],Tr,Ir),_(en[1],Ar,_r)]}function qr(en,rn){if(en[0]===rn[0]&&(en[0]===Tr||en[0]===Ir)||en[1]===rn[1]&&(en[1]===Ar||en[1]===_r))return!0}function Xr(en,rn){var Cn=[],xn=un(en),fn=un(rn);return xn&&fn&&qr(xn,fn)||(xn&&Cn.push(xn),fn&&Cn.push(fn)),Cn}function ln(en,rn,Cn){return function(xn,fn){var bn=un(xn),Un=un(fn),_i=[];if(bn&&Un&&qr(bn,Un))return _i;bn&&_i.push(bn),Un&&_i.push(Un);var yn=2*ht.constrain((xn[en]+fn[en])/2,rn,Cn)-((bn||xn)[en]+(Un||fn)[en]);if(yn){var Kn;bn&&Un?Kn=yn>0==bn[en]>Un[en]?bn:Un:Kn=bn||Un,Kn[en]+=yn}return _i}}var mn;kt==="linear"||kt==="spline"?mn=sn:kt==="hv"||kt==="vh"?mn=Xr:kt==="hvh"?mn=ln(0,Tr,Ir):kt==="vhv"&&(mn=ln(1,Ar,_r));function pn(en,rn){var Cn=rn[0]-en[0],xn=(rn[1]-en[1])/Cn,fn=(en[1]*rn[0]-rn[1]*en[0])/Cn;return fn>0?[xn>0?Tr:Ir,_r]:[xn>0?Ir:Tr,Ar]}function En(en){var rn=en[0],Cn=en[1],xn=rn===Pt[zt-1][0],fn=Cn===Pt[zt-1][1];if(!(xn&&fn))if(zt>1){var bn=rn===Pt[zt-2][0],Un=Cn===Pt[zt-2][1];xn&&(rn===Tr||rn===Ir)&&bn?Un?zt--:Pt[zt-1]=en:fn&&(Cn===Ar||Cn===_r)&&Un?bn?zt--:Pt[zt-1]=en:Pt[zt++]=en}else Pt[zt++]=en}function Jr(en){Pt[zt-1][0]!==en[0]&&Pt[zt-1][1]!==en[1]&&En([Br,kr]),En(en),Nr=null,Br=kr=0}var Or=ht.isArrayOrTypedArray(_t);function Ur(en){if(en&&St&&(en.i=Dt,en.d=st,en.trace=nt,en.marker=Or?_t[en.i]:_t,en.backoff=St),or=en[0]/at,tr=en[1]/yt,Rr=en[0]Ir?Ir:0,zr=en[1]_r?_r:0,Rr||zr){if(!zt)Pt[zt++]=[Rr||en[0],zr||en[1]];else if(Nr){var rn=mn(Nr,en);rn.length>1&&(Jr(rn[0]),Pt[zt++]=rn[1])}else Qr=mn(Pt[zt-1],en)[0],Pt[zt++]=Qr;var Cn=Pt[zt-1];Rr&&zr&&(Cn[0]!==Rr||Cn[1]!==zr)?(Nr&&(Br!==Rr&&kr!==zr?En(Br&&kr?pn(Nr,en):[Br||Rr,kr||zr]):Br&&kr&&En([Br,kr])),En([Rr,zr])):Br-Rr&&kr-zr&&En([Rr||Br,zr||kr]),Nr=en,Br=Rr,kr=zr}else Nr&&Jr(mn(Nr,en)[0]),Pt[zt++]=en}for(Dt=0;Dtcr(Vt,jr))break;$t=Vt,rr=er[0]*qt[0]+er[1]*qt[1],rr>Jt?(Jt=rr,Ut=Vt,Xt=!1):rr=st.length||!Vt)break;Ur(Vt),Nt=Vt}}Nr&&En([Br||Nr[0],kr||Nr[1]]),It.push(Pt.slice(0,zt))}var Gr=kt.slice(kt.length-1);if(St&&Gr!=="h"&&Gr!=="v"){for(var wr=!1,vr=-1,Dr=[],Sr=0;Sr=0?j=ot:(j=ot=st,st++),j0?Math.max(rt,ht):0}}},5528:function(Ct){Ct.exports={container:"marker",min:"cmin",max:"cmax"}},74428:function(Ct,Rt,o){var it=o(76308),xt=o(94288).hasColorscale,et=o(27260),Et=o(43028);Ct.exports=function(ut,ht,j,_,rt,tt){var st=Et.isBubble(ut),ot=(ut.line||{}).color,nt;if(tt=tt||{},ot&&(j=ot),rt("marker.symbol"),rt("marker.opacity",st?.7:1),rt("marker.size"),tt.noAngle||(rt("marker.angle"),tt.noAngleRef||rt("marker.angleref"),tt.noStandOff||rt("marker.standoff")),rt("marker.color",j),xt(ut,"marker")&&et(ut,ht,_,rt,{prefix:"marker.",cLetter:"c"}),tt.noSelect||(rt("selected.marker.color"),rt("unselected.marker.color"),rt("selected.marker.size"),rt("unselected.marker.size")),tt.noLine||(ot&&!Array.isArray(ot)&&ht.marker.color!==ot?nt=ot:st?nt=it.background:nt=it.defaultLine,rt("marker.line.color",nt),xt(ut,"marker.line")&&et(ut,ht,_,rt,{prefix:"marker.line.",cLetter:"c"}),rt("marker.line.width",st?1:0)),st&&(rt("marker.sizeref"),rt("marker.sizemin"),rt("marker.sizemode")),tt.gradient){var vt=rt("marker.gradient.type");vt!=="none"&&rt("marker.gradient.color")}}},31147:function(Ct,Rt,o){var it=o(3400).dateTick0,xt=o(39032),et=xt.ONEWEEK;function Et(mt,ut){return mt%et===0?it(ut,1):it(ut,0)}Ct.exports=function(ut,ht,j,_,rt){if(rt||(rt={x:!0,y:!0}),rt.x){var tt=_("xperiod");tt&&(_("xperiod0",Et(tt,ht.xcalendar)),_("xperiodalignment"))}if(rt.y){var st=_("yperiod");st&&(_("yperiod0",Et(st,ht.ycalendar)),_("yperiodalignment"))}}},96504:function(Ct,Rt,o){var it=o(33428),xt=o(24040),et=o(3400),Et=et.ensureSingle,mt=et.identity,ut=o(43616),ht=o(43028),j=o(52340),_=o(14328),rt=o(92065).tester;Ct.exports=function(vt,dt,bt,ft,at,yt){var St,_t,Mt=!at,Tt=!!at&&at.duration>0,kt=_(vt,dt,bt);if(St=ft.selectAll("g.trace").data(kt,function(ct){return ct[0].trace.uid}),St.enter().append("g").attr("class",function(ct){return"trace scatter trace"+ct[0].trace.uid}).style("stroke-miterlimit",2),St.order(),tt(vt,St,dt),Tt){yt&&(_t=yt());var wt=it.transition().duration(at.duration).ease(at.easing).each("end",function(){_t&&_t()}).each("interrupt",function(){_t&&_t()});wt.each(function(){ft.selectAll("g.trace").each(function(ct,It){st(vt,It,dt,ct,kt,this,at)})})}else St.each(function(ct,It){st(vt,It,dt,ct,kt,this,at)});Mt&&St.exit().remove(),ft.selectAll("path:not([d])").remove()};function tt(nt,vt,dt){vt.each(function(bt){var ft=Et(it.select(this),"g","fills");ut.setClipUrl(ft,dt.layerClipId,nt);var at=bt[0].trace,yt=[];at._ownfill&&yt.push("_ownFill"),at._nexttrace&&yt.push("_nextFill");var St=ft.selectAll("g").data(yt,mt);St.enter().append("g"),St.exit().each(function(_t){at[_t]=null}).remove(),St.order().each(function(_t){at[_t]=Et(it.select(this),"path","js-fill")})})}function st(nt,vt,dt,bt,ft,at,yt){var St=nt._context.staticPlot,_t;ot(nt,vt,dt,bt,ft);var Mt=!!yt&&yt.duration>0;function Tt(En){return Mt?En.transition():En}var kt=dt.xaxis,wt=dt.yaxis,ct=bt[0].trace,It=ct.line,At=it.select(at),Ot=Et(At,"g","errorbars"),Pt=Et(At,"g","lines"),zt=Et(At,"g","points"),Dt=Et(At,"g","text");if(xt.getComponentMethod("errorbars","plot")(nt,Ot,dt,yt),ct.visible!==!0)return;Tt(At).style("opacity",ct.opacity);var Nt,$t,Ut=ct.fill.charAt(ct.fill.length-1);Ut!=="x"&&Ut!=="y"&&(Ut="");var Ht,Vt;Ut==="y"?(Ht=1,Vt=wt.c2p(0,!0)):Ut==="x"&&(Ht=0,Vt=kt.c2p(0,!0)),bt[0][dt.isRangePlot?"nodeRangePlot3":"node3"]=At;var Xt="",qt=[],er=ct._prevtrace,lr=null,Jt=null;er&&(Xt=er._prevRevpath||"",$t=er._nextFill,qt=er._ownPolygons,lr=er._fillsegments,Jt=er._fillElement);var Yt,rr,jt="",ar="",sr,Zt,Kt,or,tr,cr,hr=[];ct._polygons=[];var br=[],Tr=[],Ir=et.noop;if(Nt=ct._ownFill,ht.hasLines(ct)||ct.fill!=="none"){$t&&$t.datum(bt),["hv","vh","hvh","vhv"].indexOf(It.shape)!==-1?(sr=ut.steps(It.shape),Zt=ut.steps(It.shape.split("").reverse().join(""))):It.shape==="spline"?sr=Zt=function(En){var Jr=En[En.length-1];return En.length>1&&En[0][0]===Jr[0]&&En[0][1]===Jr[1]?ut.smoothclosed(En.slice(1),It.smoothing):ut.smoothopen(En,It.smoothing)}:sr=Zt=function(En){return"M"+En.join("L")},Kt=function(En){return Zt(En.reverse())},Tr=j(bt,{xaxis:kt,yaxis:wt,trace:ct,connectGaps:ct.connectgaps,baseTolerance:Math.max(It.width||1,3)/4,shape:It.shape,backoff:It.backoff,simplify:It.simplify,fill:ct.fill}),br=new Array(Tr.length);var Ar=0;for(_t=0;_t=St[0]&&At.x<=St[1]&&At.y>=_t[0]&&At.y<=_t[1]}),wt=Math.ceil(kt.length/Tt),ct=0;ft.forEach(function(At,Ot){var Pt=At[0].trace;ht.hasMarkers(Pt)&&Pt.marker.maxdisplayed>0&&Ot0){var dt=j.c2l(nt);j._lowerLogErrorBound||(j._lowerLogErrorBound=dt),j._lowerErrorBound=Math.min(j._lowerLogErrorBound,dt)}}else rt[tt]=[-st[0]*ht,st[1]*ht]}return rt}function et(mt){for(var ut=0;ut-1?-1:At.indexOf("right")>-1?1:0}function yt(At){return At==null?0:At.indexOf("top")>-1?-1:At.indexOf("bottom")>-1?1:0}function St(At){var Ot=0,Pt=0,zt=[Ot,Pt];if(Array.isArray(At))for(var Dt=0;Dt=0){var Vt=bt(Ut.position,Ut.delaunayColor,Ut.delaunayAxis);Vt.opacity=At.opacity,this.delaunayMesh?this.delaunayMesh.update(Vt):(Vt.gl=Ot,this.delaunayMesh=Et(Vt),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)},dt.dispose=function(){this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&&(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())};function It(At,Ot){var Pt=new vt(At,Ot.uid);return Pt.update(Ot),Pt}Ct.exports=It},83484:function(Ct,Rt,o){var it=o(24040),xt=o(3400),et=o(43028),Et=o(74428),mt=o(66828),ut=o(124),ht=o(91592);Ct.exports=function(rt,tt,st,ot){function nt(_t,Mt){return xt.coerce(rt,tt,ht,_t,Mt)}var vt=j(rt,tt,nt,ot);if(!vt){tt.visible=!1;return}nt("text"),nt("hovertext"),nt("hovertemplate"),nt("xhoverformat"),nt("yhoverformat"),nt("zhoverformat"),nt("mode"),et.hasMarkers(tt)&&Et(rt,tt,st,ot,nt,{noSelect:!0,noAngle:!0}),et.hasLines(tt)&&(nt("connectgaps"),mt(rt,tt,st,ot,nt)),et.hasText(tt)&&(nt("texttemplate"),ut(rt,tt,ot,nt,{noSelect:!0}));var dt=(tt.line||{}).color,bt=(tt.marker||{}).color;nt("surfaceaxis")>=0&&nt("surfacecolor",dt||bt);for(var ft=["x","y","z"],at=0;at<3;++at){var yt="projection."+ft[at];nt(yt+".show")&&(nt(yt+".opacity"),nt(yt+".scale"))}var St=it.getComponentMethod("errorbars","supplyDefaults");St(rt,tt,dt||bt||st,{axis:"z"}),St(rt,tt,dt||bt||st,{axis:"y",inherit:"z"}),St(rt,tt,dt||bt||st,{axis:"x",inherit:"z"})};function j(_,rt,tt,st){var ot=0,nt=tt("x"),vt=tt("y"),dt=tt("z"),bt=it.getComponentMethod("calendars","handleTraceDefaults");return bt(_,rt,["x","y","z"],st),nt&&vt&&dt&&(ot=Math.min(nt.length,vt.length,dt.length),rt._length=rt._xlength=rt._ylength=rt._zlength=ot),ot}},3296:function(Ct,Rt,o){Ct.exports={plot:o(41064),attributes:o(91592),markerSymbols:o(87792),supplyDefaults:o(83484),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:o(41484),moduleType:"trace",name:"scatter3d",basePlotModule:o(12536),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}},90372:function(Ct,Rt,o){var it=o(98304),xt=o(52904),et=o(45464),Et=o(21776).Ks,mt=o(21776).Gw,ut=o(49084),ht=o(92880).extendFlat,j=xt.marker,_=xt.line,rt=j.line;Ct.exports={carpet:{valType:"string",editType:"calc"},a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},mode:ht({},xt.mode,{dflt:"markers"}),text:ht({},xt.text,{}),texttemplate:mt({editType:"plot"},{keys:["a","b","text"]}),hovertext:ht({},xt.hovertext,{}),line:{color:_.color,width:_.width,dash:_.dash,backoff:_.backoff,shape:ht({},_.shape,{values:["linear","spline"]}),smoothing:_.smoothing,editType:"calc"},connectgaps:xt.connectgaps,fill:ht({},xt.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:it(),marker:ht({symbol:j.symbol,opacity:j.opacity,maxdisplayed:j.maxdisplayed,angle:j.angle,angleref:j.angleref,standoff:j.standoff,size:j.size,sizeref:j.sizeref,sizemin:j.sizemin,sizemode:j.sizemode,line:ht({width:rt.width,editType:"calc"},ut("marker.line")),gradient:j.gradient,editType:"calc"},ut("marker")),textfont:xt.textfont,textposition:xt.textposition,selected:xt.selected,unselected:xt.unselected,hoverinfo:ht({},et.hoverinfo,{flags:["a","b","text","name"]}),hoveron:xt.hoveron,hovertemplate:Et(),zorder:xt.zorder}},48228:function(Ct,Rt,o){var it=o(38248),xt=o(90136),et=o(20148),Et=o(4500),mt=o(16356).calcMarkerSize,ut=o(50948);Ct.exports=function(j,_){var rt=_._carpetTrace=ut(j,_);if(!(!rt||!rt.visible||rt.visible==="legendonly")){var tt;_.xaxis=rt.xaxis,_.yaxis=rt.yaxis;var st=_._length,ot=new Array(st),nt,vt,dt=!1;for(tt=0;tt0?Tt=_t.labelprefix.replace(/ = $/,""):Tt=_t._hovertitle,ft.push(Tt+": "+Mt.toFixed(3)+_t.labelsuffix)}if(!vt.hovertemplate){var yt=nt.hi||vt.hoverinfo,St=yt.split("+");St.indexOf("all")!==-1&&(St=["a","b","text"]),St.indexOf("a")!==-1&&at(dt.aaxis,nt.a),St.indexOf("b")!==-1&&at(dt.baxis,nt.b),ft.push("y: "+_.yLabel),St.indexOf("text")!==-1&&xt(nt,vt,ft),_.extraText=ft.join("
")}return j}},4184:function(Ct,Rt,o){Ct.exports={attributes:o(90372),supplyDefaults:o(6176),colorbar:o(5528),formatLabels:o(52364),calc:o(48228),plot:o(20036),style:o(49224).style,styleOnSelect:o(49224).styleOnSelect,hoverPoints:o(58960),selectPoints:o(91560),eventData:o(89307),moduleType:"trace",name:"scattercarpet",basePlotModule:o(57952),categories:["svg","carpet","symbols","showLegend","carpetDependent","zoomScale"],meta:{}}},20036:function(Ct,Rt,o){var it=o(96504),xt=o(54460),et=o(43616);Ct.exports=function(mt,ut,ht,j){var _,rt,tt,st=ht[0][0].carpet,ot=xt.getFromId(mt,st.xaxis||"x"),nt=xt.getFromId(mt,st.yaxis||"y"),vt={xaxis:ot,yaxis:nt,plot:ut.plot};for(_=0;_")}},36952:function(Ct,Rt,o){Ct.exports={attributes:o(6096),supplyDefaults:o(86188),colorbar:o(5528),formatLabels:o(56696),calc:o(25212),calcGeoJSON:o(48691).calcGeoJSON,plot:o(48691).plot,style:o(25064),styleOnSelect:o(49224).styleOnSelect,hoverPoints:o(64292),eventData:o(58544),selectPoints:o(8796),moduleType:"trace",name:"scattergeo",basePlotModule:o(10816),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}},48691:function(Ct,Rt,o){var it=o(33428),xt=o(3400),et=o(59972).getTopojsonFeatures,Et=o(44808),mt=o(27144),ut=o(19280).findExtremes,ht=o(39032).BADNUM,j=o(16356).calcMarkerSize,_=o(43028),rt=o(25064);function tt(ot,nt,vt){var dt=nt.layers.frontplot.select(".scatterlayer"),bt=xt.makeTraceGroups(dt,vt,"trace scattergeo");function ft(at,yt){at.lonlat[0]===ht&&it.select(yt).remove()}bt.selectAll("*").remove(),bt.each(function(at){var yt=it.select(this),St=at[0].trace;if(_.hasLines(St)||St.fill!=="none"){var _t=Et.calcTraceToLineCoords(at),Mt=St.fill!=="none"?Et.makePolygon(_t):Et.makeLine(_t);yt.selectAll("path.js-line").data([{geojson:Mt,trace:St}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}_.hasMarkers(St)&&yt.selectAll("path.point").data(xt.identity).enter().append("path").classed("point",!0).each(function(Tt){ft(Tt,this)}),_.hasText(St)&&yt.selectAll("g").data(xt.identity).enter().append("g").append("text").each(function(Tt){ft(Tt,this)}),rt(ot,at)})}function st(ot,nt){var vt=ot[0].trace,dt=nt[vt.geo],bt=dt._subplot,ft=vt._length,at,yt;if(xt.isArrayOrTypedArray(vt.locations)){var St=vt.locationmode,_t=St==="geojson-id"?mt.extractTraceFeature(ot):et(vt,bt.topojson);for(at=0;at=nt,wt=Tt*2,ct={},It,At=St.makeCalcdata(at,"x"),Ot=_t.makeCalcdata(at,"y"),Pt=mt(at,St,"x",At),zt=mt(at,_t,"y",Ot),Dt=Pt.vals,Nt=zt.vals;at._x=Dt,at._y=Nt,at.xperiodalignment&&(at._origX=At,at._xStarts=Pt.starts,at._xEnds=Pt.ends),at.yperiodalignment&&(at._origY=Ot,at._yStarts=zt.starts,at._yEnds=zt.ends);var $t=new Array(wt),Ut=new Array(Tt);for(It=0;It1&&xt.extendFlat(Mt.line,tt.linePositions(bt,at,yt)),Mt.errorX||Mt.errorY){var Tt=tt.errorBarPositions(bt,at,yt,St,_t);Mt.errorX&&xt.extendFlat(Mt.errorX,Tt.x),Mt.errorY&&xt.extendFlat(Mt.errorY,Tt.y)}return Mt.text&&(xt.extendFlat(Mt.text,{positions:yt},tt.textPosition(bt,at,Mt.text,Mt.marker)),xt.extendFlat(Mt.textSel,{positions:yt},tt.textPosition(bt,at,Mt.text,Mt.markerSel)),xt.extendFlat(Mt.textUnsel,{positions:yt},tt.textPosition(bt,at,Mt.text,Mt.markerUnsel))),Mt}},67072:function(Ct){var Rt=20;Ct.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:Rt,SYMBOL_STROKE:Rt/20,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}},84236:function(Ct,Rt,o){var it=o(38248),xt=o(20472),et=o(72160),Et=o(24040),mt=o(3400),ut=mt.isArrayOrTypedArray,ht=o(43616),j=o(79811),_=o(33040).formatColor,rt=o(43028),tt=o(7152),st=o(80088),ot=o(67072),nt=o(13448).DESELECTDIM,vt={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},dt=o(10624).appendArrayPointValue;function bt(zt,Dt){var Nt,$t={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0},Ut=zt._context.plotGlPixelRatio;if(Dt.visible!==!0)return $t;if(rt.hasText(Dt)&&($t.text=ft(zt,Dt),$t.textSel=St(zt,Dt,Dt.selected),$t.textUnsel=St(zt,Dt,Dt.unselected)),rt.hasMarkers(Dt)&&($t.marker=at(zt,Dt),$t.markerSel=yt(zt,Dt,Dt.selected),$t.markerUnsel=yt(zt,Dt,Dt.unselected),!Dt.unselected&&ut(Dt.marker.opacity))){var Ht=Dt.marker.opacity;for($t.markerUnsel.opacity=new Array(Ht.length),Nt=0;Ntot.TOO_MANY_POINTS||rt.hasMarkers(Dt)?"rect":"round";if(er&&Dt.connectgaps){var Jt=Ht[0],Yt=Ht[1];for(Vt=0;Vt1?qt[Vt]:qt[0]:qt,rr=ut(er)?er.length>1?er[Vt]:er[0]:er,jt=vt[Yt],ar=vt[rr],sr=lr?lr/.8+1:0,Zt=-ar*sr-ar*.5;Ht.offset[Vt]=[jt*sr/Jt,Zt/Jt]}}return Ht}Ct.exports={style:bt,markerStyle:at,markerSelection:yt,linePositions:At,errorBarPositions:Ot,textPosition:Pt}},80220:function(Ct,Rt,o){var it=o(3400),xt=o(24040),et=o(80088),Et=o(2876),mt=o(88200),ut=o(43028),ht=o(43980),j=o(31147),_=o(74428),rt=o(66828),tt=o(70840),st=o(124);Ct.exports=function(nt,vt,dt,bt){function ft(wt,ct){return it.coerce(nt,vt,Et,wt,ct)}var at=nt.marker?et.isOpenSymbol(nt.marker.symbol):!1,yt=ut.isBubble(nt),St=ht(nt,vt,bt,ft);if(!St){vt.visible=!1;return}j(nt,vt,bt,ft),ft("xhoverformat"),ft("yhoverformat");var _t=St100},Rt.isDotSymbol=function(xt){return typeof xt=="string"?it.DOT_RE.test(xt):xt>200}},41272:function(Ct,Rt,o){var it=o(24040),xt=o(3400),et=o(44928);function Et(ut,ht,j,_){var rt=ut.cd,tt=rt[0].t,st=rt[0].trace,ot=ut.xa,nt=ut.ya,vt=tt.x,dt=tt.y,bt=ot.c2p(ht),ft=nt.c2p(j),at=ut.distance,yt;if(tt.tree){var St=ot.p2c(bt-at),_t=ot.p2c(bt+at),Mt=nt.p2c(ft-at),Tt=nt.p2c(ft+at);_==="x"?yt=tt.tree.range(Math.min(St,_t),Math.min(nt._rl[0],nt._rl[1]),Math.max(St,_t),Math.max(nt._rl[0],nt._rl[1])):yt=tt.tree.range(Math.min(St,_t),Math.min(Mt,Tt),Math.max(St,_t),Math.max(Mt,Tt))}else yt=tt.ids;var kt,wt,ct,It,At,Ot,Pt,zt,Dt,Nt=at;if(_==="x"){var $t=!!st.xperiodalignment,Ut=!!st.yperiodalignment;for(At=0;At=Math.min(Ht,Vt)&&bt<=Math.max(Ht,Vt)?0:1/0}if(Ot=Math.min(Xt,qt)&&ft<=Math.max(Xt,qt)?0:1/0}Dt=Math.sqrt(Ot*Ot+Pt*Pt),wt=yt[At]}}}else for(At=yt.length-1;At>-1;At--)kt=yt[At],ct=vt[kt],It=dt[kt],Ot=ot.c2p(ct)-bt,Pt=nt.c2p(It)-ft,zt=Math.sqrt(Ot*Ot+Pt*Pt),ztat.glText.length){var ct=kt-at.glText.length;for(_t=0;_tor&&(isNaN(Kt[tr])||isNaN(Kt[tr+1]));)tr-=2;Zt.positions=Kt.slice(or,tr+2)}return Zt}),at.line2d.update(at.lineOptions)),at.error2d){var Ot=(at.errorXOptions||[]).concat(at.errorYOptions||[]);at.error2d.update(Ot)}at.scatter2d&&at.scatter2d.update(at.markerOptions),at.fillOrder=mt.repeat(null,kt),at.fill2d&&(at.fillOptions=at.fillOptions.map(function(Zt,Kt){var or=bt[Kt];if(!(!Zt||!or||!or[0]||!or[0].trace)){var tr=or[0],cr=tr.trace,hr=tr.t,br=at.lineOptions[Kt],Tr,Ir,Ar=[];cr._ownfill&&Ar.push(Kt),cr._nexttrace&&Ar.push(Kt+1),Ar.length&&(at.fillOrder[Kt]=Ar);var _r=[],Er=br&&br.positions||hr.positions,Rr,zr;if(cr.fill==="tozeroy"){for(Rr=0;RrRr&&isNaN(Er[zr+1]);)zr-=2;Er[Rr+1]!==0&&(_r=[Er[Rr],0]),_r=_r.concat(Er.slice(Rr,zr+2)),Er[zr+1]!==0&&(_r=_r.concat([Er[zr],0]))}else if(cr.fill==="tozerox"){for(Rr=0;RrRr&&isNaN(Er[zr]);)zr-=2;Er[Rr]!==0&&(_r=[0,Er[Rr+1]]),_r=_r.concat(Er.slice(Rr,zr+2)),Er[zr]!==0&&(_r=_r.concat([0,Er[zr+1]]))}else if(cr.fill==="toself"||cr.fill==="tonext"){for(_r=[],Tr=0,Zt.splitNull=!0,Ir=0;Ir-1;for(_t=0;_t=0?Math.floor((rt+180)/360):Math.ceil((rt-180)/360),_t=St*360,Mt=rt-_t;function Tt(Dt){var Nt=Dt.lonlat;if(Nt[0]===mt||at&&bt.indexOf(Dt.i+1)===-1)return 1/0;var $t=xt.modHalf(Nt[0],360),Ut=Nt[1],Ht=dt.project([$t,Ut]),Vt=Ht.x-nt.c2p([Mt,Ut]),Xt=Ht.y-vt.c2p([$t,tt]),qt=Math.max(3,Dt.mrc||0);return Math.max(Math.sqrt(Vt*Vt+Xt*Xt)-qt,1-3/qt)}if(it.getClosest(st,Tt,_),_.index!==!1){var kt=st[_.index],wt=kt.lonlat,ct=[xt.modHalf(wt[0],360)+_t,wt[1]],It=nt.c2p(ct),At=vt.c2p(ct),Ot=kt.mrc||1;_.x0=It-Ot,_.x1=It+Ot,_.y0=At-Ot,_.y1=At+Ot;var Pt={};Pt[ot.subplot]={_subplot:dt};var zt=ot._module.formatLabels(kt,ot,Pt);return _.lonLabel=zt.lonLabel,_.latLabel=zt.latLabel,_.color=et(ot,kt),_.extraText=j(ot,kt,st[0].t.labels),_.hovertemplate=ot.hovertemplate,[_]}}function j(_,rt,tt){if(_.hovertemplate)return;var st=rt.hi||_.hoverinfo,ot=st.split("+"),nt=ot.indexOf("all")!==-1,vt=ot.indexOf("lon")!==-1,dt=ot.indexOf("lat")!==-1,bt=rt.lonlat,ft=[];function at(yt){return yt+"°"}return nt||vt&&dt?ft.push("("+at(bt[1])+", "+at(bt[0])+")"):vt?ft.push(tt.lon+at(bt[0])):dt&&ft.push(tt.lat+at(bt[1])),(nt||ot.indexOf("text")!==-1)&&Et(rt,_,ft),ft.join("
")}Ct.exports={hoverPoints:ht,getExtraText:j}},11572:function(Ct,Rt,o){Ct.exports={attributes:o(31512),supplyDefaults:o(15752),colorbar:o(5528),formatLabels:o(11960),calc:o(25212),plot:o(9660),hoverPoints:o(63312).hoverPoints,eventData:o(37920),selectPoints:o(404),styleOnSelect:function(it,xt){if(xt){var et=xt[0].trace;et._glTrace.update(xt)}},moduleType:"trace",name:"scattermapbox",basePlotModule:o(33688),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{}}},9660:function(Ct,Rt,o){var it=o(3400),xt=o(59392),et=o(47552).traceLayerPrefix,Et={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function mt(ht,j,_,rt){this.type="scattermapbox",this.subplot=ht,this.uid=j,this.clusterEnabled=_,this.isHidden=rt,this.sourceIds={fill:"source-"+j+"-fill",line:"source-"+j+"-line",circle:"source-"+j+"-circle",symbol:"source-"+j+"-symbol",cluster:"source-"+j+"-circle",clusterCount:"source-"+j+"-circle"},this.layerIds={fill:et+j+"-fill",line:et+j+"-line",circle:et+j+"-circle",symbol:et+j+"-symbol",cluster:et+j+"-cluster",clusterCount:et+j+"-cluster-count"},this.below=null}var ut=mt.prototype;ut.addSource=function(ht,j,_){var rt={type:"geojson",data:j.geojson};_&&_.enabled&&it.extendFlat(rt,{cluster:!0,clusterMaxZoom:_.maxzoom});var tt=this.subplot.map.getSource(this.sourceIds[ht]);tt?tt.setData(j.geojson):this.subplot.map.addSource(this.sourceIds[ht],rt)},ut.setSourceData=function(ht,j){this.subplot.map.getSource(this.sourceIds[ht]).setData(j.geojson)},ut.addLayer=function(ht,j,_){var rt={type:j.type,id:this.layerIds[ht],source:this.sourceIds[ht],layout:j.layout,paint:j.paint};j.filter&&(rt.filter=j.filter);for(var tt=this.layerIds[ht],st,ot=this.subplot.getMapLayers(),nt=0;nt=0;It--){var At=ct[It];tt.removeLayer(dt.layerIds[At])}wt||tt.removeSource(dt.sourceIds.circle)}function at(wt){for(var ct=Et.nonCluster,It=0;It=0;It--){var At=ct[It];tt.removeLayer(dt.layerIds[At]),wt||tt.removeSource(dt.sourceIds[At])}}function St(wt){vt?ft(wt):yt(wt)}function _t(wt){nt?bt(wt):at(wt)}function Mt(){for(var wt=nt?Et.cluster:Et.nonCluster,ct=0;ct=0;rt--){var tt=_[rt];j.removeLayer(this.layerIds[tt]),j.removeSource(this.sourceIds[tt])}},Ct.exports=function(j,_){var rt=_[0].trace,tt=rt.cluster&&rt.cluster.enabled,st=rt.visible!==!0,ot=new mt(j,rt.uid,tt,st),nt=xt(j.gd,_),vt=ot.below=j.belowLookup["trace-"+rt.uid],dt,bt,ft;if(tt)for(ot.addSource("circle",nt.circle,rt.cluster),dt=0;dt")}}Ct.exports={hoverPoints:xt,makeHoverPointText:et}},76924:function(Ct,Rt,o){Ct.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:o(40872),categories:["polar","symbols","showLegend","scatter-like"],attributes:o(8319),supplyDefaults:o(85968).supplyDefaults,colorbar:o(5528),formatLabels:o(22852),calc:o(58320),plot:o(43456),style:o(49224).style,styleOnSelect:o(49224).styleOnSelect,hoverPoints:o(8504).hoverPoints,selectPoints:o(91560),meta:{}}},43456:function(Ct,Rt,o){var it=o(96504),xt=o(39032).BADNUM;Ct.exports=function(Et,mt,ut){for(var ht=mt.layers.frontplot.select("g.scatterlayer"),j=mt.xaxis,_=mt.yaxis,rt={xaxis:j,yaxis:_,plot:mt.framework,layerClipId:mt._hasClipOnAxisFalse?mt.clipIds.forTraces:null},tt=mt.radialAxis,st=mt.angularAxis,ot=0;ot=ht&&(Mt.marker.cluster=at.tree),Mt.marker&&(Mt.markerSel.positions=Mt.markerUnsel.positions=Mt.marker.positions=ct),Mt.line&&ct.length>1&&ut.extendFlat(Mt.line,mt.linePositions(rt,ft,ct)),Mt.text&&(ut.extendFlat(Mt.text,{positions:ct},mt.textPosition(rt,ft,Mt.text,Mt.marker)),ut.extendFlat(Mt.textSel,{positions:ct},mt.textPosition(rt,ft,Mt.text,Mt.markerSel)),ut.extendFlat(Mt.textUnsel,{positions:ct},mt.textPosition(rt,ft,Mt.text,Mt.markerUnsel))),Mt.fill&&!vt.fill2d&&(vt.fill2d=!0),Mt.marker&&!vt.scatter2d&&(vt.scatter2d=!0),Mt.line&&!vt.line2d&&(vt.line2d=!0),Mt.text&&!vt.glText&&(vt.glText=!0),vt.lineOptions.push(Mt.line),vt.fillOptions.push(Mt.fill),vt.markerOptions.push(Mt.marker),vt.markerSelectedOptions.push(Mt.markerSel),vt.markerUnselectedOptions.push(Mt.markerUnsel),vt.textOptions.push(Mt.text),vt.textSelectedOptions.push(Mt.textSel),vt.textUnselectedOptions.push(Mt.textUnsel),vt.selectBatch.push([]),vt.unselectBatch.push([]),at.x=It,at.y=At,at.rawx=It,at.rawy=At,at.r=St,at.theta=_t,at.positions=ct,at._scene=vt,at.index=vt.count,vt.count++}}),et(rt,tt,st)}},Ct.exports.reglPrecompiled=j},69496:function(Ct,Rt,o){var it=o(21776).Ks,xt=o(21776).Gw,et=o(92880).extendFlat,Et=o(98304),mt=o(52904),ut=o(45464),ht=mt.line;Ct.exports={mode:mt.mode,real:{valType:"data_array",editType:"calc+clearAxisTypes"},imag:{valType:"data_array",editType:"calc+clearAxisTypes"},text:mt.text,texttemplate:xt({editType:"plot"},{keys:["real","imag","text"]}),hovertext:mt.hovertext,line:{color:ht.color,width:ht.width,dash:ht.dash,backoff:ht.backoff,shape:et({},ht.shape,{values:["linear","spline"]}),smoothing:ht.smoothing,editType:"calc"},connectgaps:mt.connectgaps,marker:mt.marker,cliponaxis:et({},mt.cliponaxis,{dflt:!1}),textposition:mt.textposition,textfont:mt.textfont,fill:et({},mt.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:Et(),hoverinfo:et({},ut.hoverinfo,{flags:["real","imag","text","name"]}),hoveron:mt.hoveron,hovertemplate:it(),selected:mt.selected,unselected:mt.unselected}},47507:function(Ct,Rt,o){var it=o(38248),xt=o(39032).BADNUM,et=o(90136),Et=o(20148),mt=o(4500),ut=o(16356).calcMarkerSize;Ct.exports=function(j,_){for(var rt=j._fullLayout,tt=_.subplot,st=rt[tt].realaxis,ot=rt[tt].imaginaryaxis,nt=st.makeCalcdata(_,"real"),vt=ot.makeCalcdata(_,"imag"),dt=_._length,bt=new Array(dt),ft=0;ft")}}Ct.exports={hoverPoints:xt,makeHoverPointText:et}},95443:function(Ct,Rt,o){Ct.exports={moduleType:"trace",name:"scattersmith",basePlotModule:o(47788),categories:["smith","symbols","showLegend","scatter-like"],attributes:o(69496),supplyDefaults:o(76716),colorbar:o(5528),formatLabels:o(49504),calc:o(47507),plot:o(34927),style:o(49224).style,styleOnSelect:o(49224).styleOnSelect,hoverPoints:o(25292).hoverPoints,selectPoints:o(91560),meta:{}}},34927:function(Ct,Rt,o){var it=o(96504),xt=o(39032).BADNUM,et=o(36416),Et=et.smith;Ct.exports=function(ut,ht,j){for(var _=ht.layers.frontplot.select("g.scatterlayer"),rt=ht.xaxis,tt=ht.yaxis,st={xaxis:rt,yaxis:tt,plot:ht.framework,layerClipId:ht._hasClipOnAxisFalse?ht.clipIds.forTraces:null},ot=0;ot"),j.hovertemplate=nt.hovertemplate,ht}},34864:function(Ct,Rt,o){Ct.exports={attributes:o(5896),supplyDefaults:o(84256),colorbar:o(5528),formatLabels:o(90404),calc:o(34335),plot:o(88776),style:o(49224).style,styleOnSelect:o(49224).styleOnSelect,hoverPoints:o(26596),selectPoints:o(91560),eventData:o(97476),moduleType:"trace",name:"scatterternary",basePlotModule:o(19352),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}},88776:function(Ct,Rt,o){var it=o(96504);Ct.exports=function(et,Et,mt){var ut=Et.plotContainer;ut.select(".scatterlayer").selectAll("*").remove();for(var ht=Et.xaxis,j=Et.yaxis,_={xaxis:ht,yaxis:j,plot:ut,layerClipId:Et._hasClipOnAxisFalse?Et.clipIdRelative:null},rt=Et.layers.frontplot.select("g.scatterlayer"),tt=0;ttrt,It;for(ct?It=dt.sizeAvg||Math.max(dt.size,3):It=et(ot,vt),St=0;Styt&&dt||at-1,Dt=Et(dt)||!!rt.selectedpoints||zt,Nt=!0;if(Dt){var $t=rt._length;if(rt.selectedpoints){st.selectBatch=rt.selectedpoints;var Ut=rt.selectedpoints,Ht={};for(at=0;at1&&(wt=j[tt-1],It=_[tt-1],Ot=rt[tt-1]),st=0;stwt?"-":"+")+"x"),St=St.replace("y",(ct>It?"-":"+")+"y"),St=St.replace("z",(At>Ot?"-":"+")+"z");var Nt=function(){tt=0,Pt=[],zt=[],Dt=[]};(!tt||tt2?dt=nt.slice(1,vt-1):vt===2?dt=[(nt[0]+nt[1])/2]:dt=nt,dt}function tt(nt){var vt=nt.length;return vt===1?[.5,.5]:[nt[1]-nt[0],nt[vt-1]-nt[vt-2]]}function st(nt,vt){var dt=nt.fullSceneLayout,bt=nt.dataScale,ft=vt._len,at={};function yt(lr,Jt){var Yt=dt[Jt],rr=bt[ht[Jt]];return et.simpleMap(lr,function(jt){return Yt.d2l(jt)*rr})}if(at.vectors=ut(yt(vt._u,"xaxis"),yt(vt._v,"yaxis"),yt(vt._w,"zaxis"),ft),!ft)return{positions:[],cells:[]};var St=yt(vt._Xs,"xaxis"),_t=yt(vt._Ys,"yaxis"),Mt=yt(vt._Zs,"zaxis");at.meshgrid=[St,_t,Mt],at.gridFill=vt._gridFill;var Tt=vt._slen;if(Tt)at.startingPositions=ut(yt(vt._startsX,"xaxis"),yt(vt._startsY,"yaxis"),yt(vt._startsZ,"zaxis"));else{for(var kt=_t[0],wt=rt(St),ct=rt(Mt),It=new Array(wt.length*ct.length),At=0,Ot=0;Ot=0},It,At,Ot;bt?(It=Math.min(dt.length,at.length),At=function(jt){return wt(dt[jt])&&ct(jt)},Ot=function(jt){return String(dt[jt])}):(It=Math.min(ft.length,at.length),At=function(jt){return wt(ft[jt])&&ct(jt)},Ot=function(jt){return String(ft[jt])}),St&&(It=Math.min(It,yt.length));for(var Pt=0;Pt1){for(var Ht=et.randstr(),Vt=0;Vt<_t.length;Vt++)_t[Vt].pid===""&&(_t[Vt].pid=Ht);_t.unshift({hasMultipleRoots:!0,id:Ht,pid:"",label:""})}}else{var $t=[],Ut;for(Ut in Mt)Tt[Ut]||$t.push(Ut);if($t.length===1)Ut=$t[0],_t.unshift({hasImpliedRoot:!0,id:Ut,pid:"",label:Ut});else return et.warn(["Multiple implied roots, cannot build",nt.type,"hierarchy of",nt.name+".","These roots include:",$t.join(", ")].join(" "))}var Xt;try{Xt=it.stratify().id(function(jt){return jt.id}).parentId(function(jt){return jt.pid})(_t)}catch(jt){return et.warn(["Failed to build",nt.type,"hierarchy of",nt.name+".","Error:",jt.message].join(" "))}var qt=it.hierarchy(Xt),er=!1;if(St)switch(nt.branchvalues){case"remainder":qt.sum(function(jt){return jt.data.v});break;case"total":qt.each(function(jt){var ar=jt.data.data,sr=ar.v;if(jt.children){var Zt=jt.children.reduce(function(Kt,or){return Kt+or.data.data.v},0);if((ar.hasImpliedRoot||ar.hasMultipleRoots)&&(sr=Zt),sr>>8*kt)%256/255}function dt(Et,kt,wt){for(var ct=new Array(Et*(et+4)),It=0,At=0;Atbr&&(br=sr[tr].dim1.canvasX,mr=tr);or===0&&tt(It,0,0,Dt.canvasWidth,Dt.canvasHeight);var Ir=Jt(wt);for(tr=0;trtr._length&&(Rr=Rr.slice(0,tr._length));var zr=tr.tickvals,Or;function kr(en,Xr){return{val:en,text:Or[Xr]}}function Nr(en,Xr){return en.val-Xr.val}if(et(zr)&&zr.length){xt.isTypedArray(zr)&&(zr=Array.from(zr)),Or=tr.ticktext,!et(Or)||!Or.length?Or=zr.map(Tt(tr.tickformat)):Or.length>zr.length?Or=Or.slice(0,zr.length):zr.length>Or.length&&(zr=zr.slice(0,Or.length));for(var Qr=1;Qr=Xr||Tn>=ln)return;var Zr=un.lineLayer.readPixel(pn,ln-1-Tn),Fr=Zr[3]!==0,Ur=Fr?Zr[2]+256*(Zr[1]+256*Zr[0]):null,Wr={x:pn,y:Tn,clientX:en.clientX,clientY:en.clientY,dataIndex:un.model.key,curveNumber:Ur};Ur!==mr&&(Fr?Yt.hover(Wr):Yt.unhover&&Yt.unhover(Wr),mr=Ur)}}),cr.style("opacity",function(un){return un.pick?0:1}),ar.style("background","rgba(255, 255, 255, 0)");var br=ar.selectAll("."+bt.cn.parcoords).data(tr,ot);br.exit().remove(),br.enter().append("g").classed(bt.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),br.attr("transform",function(un){return j(un.model.translateX,un.model.translateY)});var Ir=br.selectAll("."+bt.cn.parcoordsControlView).data(nt,ot);Ir.enter().append("g").classed(bt.cn.parcoordsControlView,!0),Ir.attr("transform",function(un){return j(un.model.pad.l,un.model.pad.t)});var Tr=Ir.selectAll("."+bt.cn.yAxis).data(function(un){return un.dimensions},ot);Tr.enter().append("g").classed(bt.cn.yAxis,!0),Ir.each(function(un){Ut(Tr,un,Zt)}),cr.each(function(un){if(un.viewModel){!un.lineLayer||Yt?un.lineLayer=at(this,un):un.lineLayer.update(un),(un.key||un.key===0)&&(un.viewModel[un.key]=un.lineLayer);var en=!un.context||Yt;un.lineLayer.render(un.viewModel.panels,en)}}),Tr.attr("transform",function(un){return j(un.xScale(un.xIndex),0)}),Tr.call(it.behavior.drag().origin(function(un){return un}).on("drag",function(un){var en=un.parent;or.linePickActive(!1),un.x=Math.max(-bt.overdrag,Math.min(un.model.width+bt.overdrag,it.event.x)),un.canvasX=un.x*un.model.canvasPixelRatio,Tr.sort(function(Xr,ln){return Xr.x-ln.x}).each(function(Xr,ln){Xr.xIndex=ln,Xr.x=un===Xr?Xr.x:Xr.xScale(Xr.xIndex),Xr.canvasX=Xr.x*Xr.model.canvasPixelRatio}),Ut(Tr,en,Zt),Tr.filter(function(Xr){return Math.abs(un.xIndex-Xr.xIndex)!==0}).attr("transform",function(Xr){return j(Xr.xScale(Xr.xIndex),0)}),it.select(this).attr("transform",j(un.x,0)),Tr.each(function(Xr,ln,mn){mn===un.parent.key&&(en.dimensions[ln]=Xr)}),en.contextLayer&&en.contextLayer.render(en.panels,!1,!Ot(en)),en.focusLayer.render&&en.focusLayer.render(en.panels)}).on("dragend",function(un){var en=un.parent;un.x=un.xScale(un.xIndex),un.canvasX=un.x*un.model.canvasPixelRatio,Ut(Tr,en,Zt),it.select(this).attr("transform",function(Xr){return j(Xr.x,0)}),en.contextLayer&&en.contextLayer.render(en.panels,!1,!Ot(en)),en.focusLayer&&en.focusLayer.render(en.panels),en.pickLayer&&en.pickLayer.render(en.panels,!0),or.linePickActive(!0),Yt&&Yt.axesMoved&&Yt.axesMoved(en.key,en.dimensions.map(function(Xr){return Xr.crossfilterDimensionIndex}))})),Tr.exit().remove();var _r=Tr.selectAll("."+bt.cn.axisOverlays).data(nt,ot);_r.enter().append("g").classed(bt.cn.axisOverlays,!0),_r.selectAll("."+bt.cn.axis).remove();var Er=_r.selectAll("."+bt.cn.axis).data(nt,ot);Er.enter().append("g").classed(bt.cn.axis,!0),Er.each(function(un){var en=un.model.height/un.model.tickDistance,Xr=un.domainScale,ln=Xr.domain();it.select(this).call(it.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(en,un.tickFormat).tickValues(un.ordinal?ln:null).tickFormat(function(mn){return dt.isOrdinal(un)?mn:Vt(un.model.dimensions[un.visibleIndex],mn)}).scale(Xr)),rt.font(Er.selectAll("text"),un.model.tickFont)}),Er.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),Er.selectAll("text").style("text-shadow",_.makeTextShadow(Kt)).style("cursor","default");var Rr=_r.selectAll("."+bt.cn.axisHeading).data(nt,ot);Rr.enter().append("g").classed(bt.cn.axisHeading,!0);var zr=Rr.selectAll("."+bt.cn.axisTitle).data(nt,ot);zr.enter().append("text").classed(bt.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events",rr?"none":"auto"),zr.text(function(un){return un.label}).each(function(un){var en=it.select(this);rt.font(en,un.model.labelFont),_.convertToTspans(en,er)}).attr("transform",function(un){var en=$t(un.model.labelAngle,un.model.labelSide),Xr=bt.axisTitleOffset;return(en.dir>0?"":j(0,2*Xr+un.model.height))+ht(en.degrees)+j(-Xr*en.dx,-Xr*en.dy)}).attr("text-anchor",function(un){var en=$t(un.model.labelAngle,un.model.labelSide),Xr=Math.abs(en.dx),ln=Math.abs(en.dy);return 2*Xr>ln?en.dir*en.dx<0?"start":"end":"middle"});var Or=_r.selectAll("."+bt.cn.axisExtent).data(nt,ot);Or.enter().append("g").classed(bt.cn.axisExtent,!0);var kr=Or.selectAll("."+bt.cn.axisExtentTop).data(nt,ot);kr.enter().append("g").classed(bt.cn.axisExtentTop,!0),kr.attr("transform",j(0,-bt.axisExtentOffset));var Nr=kr.selectAll("."+bt.cn.axisExtentTopText).data(nt,ot);Nr.enter().append("text").classed(bt.cn.axisExtentTopText,!0).call(Dt),Nr.text(function(un){return Xt(un,!0)}).each(function(un){rt.font(it.select(this),un.model.rangeFont)});var Qr=Or.selectAll("."+bt.cn.axisExtentBottom).data(nt,ot);Qr.enter().append("g").classed(bt.cn.axisExtentBottom,!0),Qr.attr("transform",function(un){return j(0,un.model.height+bt.axisExtentOffset)});var sn=Qr.selectAll("."+bt.cn.axisExtentBottomText).data(nt,ot);sn.enter().append("text").classed(bt.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(Dt),sn.text(function(un){return Xt(un,!1)}).each(function(un){rt.font(it.select(this),un.model.rangeFont)}),ft.ensureAxisBrush(_r,Kt,er)}},24196:function(Ct,Rt,o){var it=o(36336),xt=o(5048),et=o(95724).isVisible,Tt={};function yt(j,_,rt){var tt=_.indexOf(rt),st=j.indexOf(tt);return st===-1&&(st+=_.length),st}function ut(j,_){return function(tt,st){return yt(j,_,tt)-yt(j,_,st)}}var ht=Ct.exports=function(_,rt){var tt=_._fullLayout,st=xt(_,[],Tt);if(st){var ot={},nt={},vt={},dt={},bt=tt._size;rt.forEach(function(_t,Mt){var Et=_t[0].trace;vt[Mt]=Et.index;var kt=dt[Mt]=Et._fullInput.index;ot[Mt]=_.data[kt].dimensions,nt[Mt]=_.data[kt].dimensions.slice()});var ft=function(_t,Mt,Et){var kt=nt[_t][Mt],wt=Et.map(function(zt){return zt.slice()}),ct="dimensions["+Mt+"].constraintrange",It=tt._tracePreGUI[_._fullData[vt[_t]]._fullInput.uid];if(It[ct]===void 0){var At=kt.constraintrange;It[ct]=At||null}var Ot=_._fullData[vt[_t]].dimensions[Mt];wt.length?(wt.length===1&&(wt=wt[0]),kt.constraintrange=wt,Ot.constraintrange=wt.slice(),wt=[wt]):(delete kt.constraintrange,delete Ot.constraintrange,wt=null);var Pt={};Pt[ct]=wt,_.emit("plotly_restyle",[Pt,[dt[_t]]])},at=function(_t){_.emit("plotly_hover",_t)},mt=function(_t){_.emit("plotly_unhover",_t)},St=function(_t,Mt){var Et=ut(Mt,nt[_t].filter(et));ot[_t].sort(Et),nt[_t].filter(function(kt){return!et(kt)}).sort(function(kt){return nt[_t].indexOf(kt)}).forEach(function(kt){ot[_t].splice(ot[_t].indexOf(kt),1),ot[_t].splice(nt[_t].indexOf(kt),0,kt)}),_.emit("plotly_restyle",[{dimensions:[ot[_t]]},[dt[_t]]])};it(_,rt,{width:bt.w,height:bt.h,margin:{t:bt.t,r:bt.r,b:bt.b,l:bt.l}},{filterChanged:ft,hover:at,unhover:mt,axesMoved:St})}};ht.reglPrecompiled=Tt},74996:function(Ct,Rt,o){var it=o(45464),xt=o(86968).u,et=o(25376),Tt=o(22548),yt=o(21776).Ks,ut=o(21776).Gw,ht=o(92880).extendFlat,j=o(98192).c,_=et({editType:"plot",arrayOk:!0,colorEditType:"plot"});Ct.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:Tt.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:j,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:ht({},it.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:yt({},{keys:["label","color","value","percent","text"]}),texttemplate:ut({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:ht({},_,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:ht({},_,{}),outsidetextfont:ht({},_,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},title:{text:{valType:"string",dflt:"",editType:"plot"},font:ht({},_,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:xt({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"},_deprecated:{title:{valType:"string",dflt:"",editType:"calc"},titlefont:ht({},_,{}),titleposition:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"calc"}}}},80036:function(Ct,Rt,o){var it=o(7316);Rt.name="pie",Rt.plot=function(xt,et,Tt,yt){it.plotBasePlot(Rt.name,xt,et,Tt,yt)},Rt.clean=function(xt,et,Tt,yt){it.cleanBasePlot(Rt.name,xt,et,Tt,yt)}},45768:function(Ct,Rt,o){var it=o(38248),xt=o(49760),et=o(76308),Tt={};function yt(_,rt){var tt=[],st=_._fullLayout,ot=st.hiddenlabels||[],nt=rt.labels,vt=rt.marker.colors||[],dt=rt.values,bt=rt._length,ft=rt._hasValues&&bt,at,mt;if(rt.dlabel)for(nt=new Array(bt),at=0;at=0});var At=rt.type==="funnelarea"?Et:rt.sort;return At&&tt.sort(function(Ot,Pt){return Pt.v-Ot.v}),tt[0]&&(tt[0].vTotal=Mt),tt}function ut(_){return function(tt,st){return!tt||(tt=xt(tt),!tt.isValid())?!1:(tt=et.addOpacity(tt,tt.getAlpha()),_[st]||(_[st]=tt),tt)}}function ht(_,rt){var tt=(rt||{}).type;tt||(tt="pie");var st=_._fullLayout,ot=_.calcdata,nt=st[tt+"colorway"],vt=st["_"+tt+"colormap"];st["extend"+tt+"colors"]&&(nt=j(nt,Tt));for(var dt=0,bt=0;bt0){vt=!0;break}}vt||(nt=0)}return{hasLabels:st,hasValues:ot,len:nt}}function j(rt,tt,st,ot,nt){var vt=ot("marker.line.width");vt&&ot("marker.line.color",nt?void 0:st.paper_bgcolor);var dt=ot("marker.colors");ut(ot,"marker.pattern",dt),rt.marker&&!tt.marker.pattern.fgcolor&&(tt.marker.pattern.fgcolor=rt.marker.colors),tt.marker.pattern.bgcolor||(tt.marker.pattern.bgcolor=st.paper_bgcolor)}function _(rt,tt,st,ot){function nt(It,At){return xt.coerce(rt,tt,et,It,At)}var vt=nt("labels"),dt=nt("values"),bt=ht(vt,dt),ft=bt.len;if(tt._hasLabels=bt.hasLabels,tt._hasValues=bt.hasValues,!tt._hasLabels&&tt._hasValues&&(nt("label0"),nt("dlabel")),!ft){tt.visible=!1;return}tt._length=ft,j(rt,tt,ot,nt,!0),nt("scalegroup");var at=nt("text"),mt=nt("texttemplate"),St;if(mt||(St=nt("textinfo",xt.isArrayOrTypedArray(at)?"text+percent":"percent")),nt("hovertext"),nt("hovertemplate"),mt||St&&St!=="none"){var _t=nt("textposition");yt(rt,tt,ot,nt,_t,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var Mt=Array.isArray(_t)||_t==="auto",Et=Mt||_t==="outside";Et&&nt("automargin"),(_t==="inside"||_t==="auto"||Array.isArray(_t))&&nt("insidetextorientation")}else St==="none"&&nt("textposition","none");Tt(tt,ot,nt);var kt=nt("hole"),wt=nt("title.text");if(wt){var ct=nt("title.position",kt?"middle center":"top center");!kt&&ct==="middle center"&&(tt.title.position="top center"),xt.coerceFont(nt,"title.font",ot.font)}nt("sort"),nt("direction"),nt("rotation"),nt("pull")}Ct.exports={handleLabelsAndValues:ht,handleMarkerDefaults:j,supplyDefaults:_}},53644:function(Ct,Rt,o){var it=o(10624).appendArrayMultiPointValues;Ct.exports=function(et,Tt){var yt={curveNumber:Tt.index,pointNumbers:et.pts,data:Tt._input,fullData:Tt,label:et.label,color:et.color,value:et.v,percent:et.percent,text:et.text,bbox:et.bbox,v:et.v};return et.pts.length===1&&(yt.pointNumber=yt.i=et.pts[0]),it(yt,Tt,et.pts),Tt.type==="funnelarea"&&(delete yt.v,delete yt.i),yt}},21552:function(Ct,Rt,o){var it=o(43616),xt=o(76308);Ct.exports=function(Tt,yt,ut,ht){var j=ut.marker.pattern;j&&j.shape?it.pointStyle(Tt,ut,ht,yt):xt.fill(Tt,yt.color)}},69656:function(Ct,Rt,o){var it=o(3400);function xt(et){return et.indexOf("e")!==-1?et.replace(/[.]?0+e/,"e"):et.indexOf(".")!==-1?et.replace(/[.]?0+$/,""):et}Rt.formatPiePercent=function(Tt,yt){var ut=xt((Tt*100).toPrecision(3));return it.numSeparate(ut,yt)+"%"},Rt.formatPieValue=function(Tt,yt){var ut=xt(Tt.toPrecision(10));return it.numSeparate(ut,yt)},Rt.getFirstFilled=function(Tt,yt){if(it.isArrayOrTypedArray(Tt))for(var ut=0;ut0&&(Qr+=Xr*kr.pxmid[0],sn+=Xr*kr.pxmid[1])}kr.cxFinal=Qr,kr.cyFinal=sn;function ln(Wr,Gr,wr,pr){var Dr=pr*(Gr[0]-Wr[0]),Sr=pr*(Gr[1]-Wr[1]);return"a"+pr*tr.r+","+pr*tr.r+" 0 "+kr.largeArc+(wr?" 1 ":" 0 ")+Dr+","+Sr}var mn=cr.hole;if(kr.v===tr.vTotal){var pn="M"+(Qr+kr.px0[0])+","+(sn+kr.px0[1])+ln(kr.px0,kr.pxmid,!0,1)+ln(kr.pxmid,kr.px0,!0,1)+"Z";mn?en.attr("d","M"+(Qr+mn*kr.px0[0])+","+(sn+mn*kr.px0[1])+ln(kr.px0,kr.pxmid,!1,mn)+ln(kr.pxmid,kr.px0,!1,mn)+"Z"+pn):en.attr("d",pn)}else{var Tn=ln(kr.px0,kr.px1,!0,1);if(mn){var Zr=1-mn;en.attr("d","M"+(Qr+mn*kr.px1[0])+","+(sn+mn*kr.px1[1])+ln(kr.px1,kr.px0,!1,mn)+"l"+Zr*kr.px0[0]+","+Zr*kr.px0[1]+Tn+"Z")}else en.attr("d","M"+Qr+","+sn+"l"+kr.px0[0]+","+kr.px0[1]+Tn+"Z")}lr(Yt,kr,tr);var Fr=nt.castOption(cr.textposition,kr.pts),Ur=un.selectAll("g.slicetext").data(kr.text&&Fr!=="none"?[0]:[]);Ur.enter().append("g").classed("slicetext",!0),Ur.exit().remove(),Ur.each(function(){var Wr=ut.ensureSingle(it.select(this),"text","",function(Pr){Pr.attr("data-notex",1)}),Gr=ut.ensureUniformFontSize(Yt,Fr==="outside"?mt(cr,kr,ar.font):St(cr,kr,ar.font));Wr.text(kr.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(yt.font,Gr).call(_.convertToTspans,Yt);var wr=yt.bBox(Wr.node()),pr;if(Fr==="outside")pr=Pt(wr,kr);else if(pr=Mt(wr,kr,tr),Fr==="auto"&&pr.scale<1){var Dr=ut.ensureUniformFontSize(Yt,cr.outsidetextfont);Wr.call(yt.font,Dr),wr=yt.bBox(Wr.node()),pr=Pt(wr,kr)}var Sr=pr.textPosAngle,ur=Sr===void 0?kr.pxmid:er(tr.r,Sr);if(pr.targetX=Qr+ur[0]*pr.rCenter+(pr.x||0),pr.targetY=sn+ur[1]*pr.rCenter+(pr.y||0),Jt(pr,wr),pr.outside){var xr=pr.targetY;kr.yLabelMin=xr-wr.height/2,kr.yLabelMid=xr,kr.yLabelMax=xr+wr.height/2,kr.labelExtraX=0,kr.labelExtraY=0,br=!0}pr.fontSize=Gr.size,tt(cr.type,pr,ar),Kt[Nr].transform=pr,ut.setTransormAndDisplay(Wr,pr)})});var Ir=it.select(this).selectAll("g.titletext").data(cr.title.text?[0]:[]);if(Ir.enter().append("g").classed("titletext",!0),Ir.exit().remove(),Ir.each(function(){var kr=ut.ensureSingle(it.select(this),"text","",function(sn){sn.attr("data-notex",1)}),Nr=cr.title.text;cr._meta&&(Nr=ut.templateString(Nr,cr._meta)),kr.text(Nr).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(yt.font,cr.title.font).call(_.convertToTspans,Yt);var Qr;cr.title.position==="middle center"?Qr=zt(tr):Qr=Dt(tr,sr),kr.attr("transform",j(Qr.x,Qr.y)+ht(Math.min(1,Qr.scale))+j(Qr.tx,Qr.ty))}),br&&Ht(Ar,cr),ft(mr,cr),br&&cr.automargin){var Tr=yt.bBox(or.node()),_r=cr.domain,Er=sr.w*(_r.x[1]-_r.x[0]),Rr=sr.h*(_r.y[1]-_r.y[0]),zr=(.5*Er-tr.r)/sr.w,Or=(.5*Rr-tr.r)/sr.h;xt.autoMargin(Yt,"pie."+cr.uid+".automargin",{xl:_r.x[0]-zr,xr:_r.x[1]+zr,yb:_r.y[0]-Or,yt:_r.y[1]+Or,l:Math.max(tr.cx-tr.r-Tr.left,0),r:Math.max(Tr.right-(tr.cx+tr.r),0),b:Math.max(Tr.bottom-(tr.cy+tr.r),0),t:Math.max(tr.cy-tr.r-Tr.top,0),pad:5})}})});setTimeout(function(){Zt.selectAll("tspan").each(function(){var Kt=it.select(this);Kt.attr("dy")&&Kt.attr("dy",Kt.attr("dy"))})},0)}function ft(Yt,rr){Yt.each(function(jt){var ar=it.select(this);if(!jt.labelExtraX&&!jt.labelExtraY){ar.select("path.textline").remove();return}var sr=ar.select("g.slicetext text");jt.transform.targetX+=jt.labelExtraX,jt.transform.targetY+=jt.labelExtraY,ut.setTransormAndDisplay(sr,jt.transform);var Zt=jt.cxFinal+jt.pxmid[0],Kt=jt.cyFinal+jt.pxmid[1],or="M"+Zt+","+Kt,tr=(jt.yLabelMax-jt.yLabelMin)*(jt.pxmid[0]<0?-1:1)/4;if(jt.labelExtraX){var cr=jt.labelExtraX*jt.pxmid[1]/jt.pxmid[0],mr=jt.yLabelMid+jt.labelExtraY-(jt.cyFinal+jt.pxmid[1]);Math.abs(cr)>Math.abs(mr)?or+="l"+mr*jt.pxmid[0]/jt.pxmid[1]+","+mr+"H"+(Zt+jt.labelExtraX+tr):or+="l"+jt.labelExtraX+","+cr+"v"+(mr-cr)+"h"+tr}else or+="V"+(jt.yLabelMid+jt.labelExtraY)+"h"+tr;ut.ensureSingle(ar,"path","textline").call(Tt.stroke,rr.outsidetextfont.color).attr({"stroke-width":Math.min(2,rr.outsidetextfont.size/8),d:or,fill:"none"})})}function at(Yt,rr,jt){var ar=jt[0],sr=ar.cx,Zt=ar.cy,Kt=ar.trace,or=Kt.type==="funnelarea";"_hasHoverLabel"in Kt||(Kt._hasHoverLabel=!1),"_hasHoverEvent"in Kt||(Kt._hasHoverEvent=!1),Yt.on("mouseover",function(tr){var cr=rr._fullLayout,mr=rr._fullData[Kt.index];if(!(rr._dragging||cr.hovermode===!1)){var Ar=mr.hoverinfo;if(Array.isArray(Ar)&&(Ar=et.castHoverinfo({hoverinfo:[nt.castOption(Ar,tr.pts)],_module:Kt._module},cr,0)),Ar==="all"&&(Ar="label+text+value+percent+name"),mr.hovertemplate||Ar!=="none"&&Ar!=="skip"&&Ar){var br=tr.rInscribed||0,Ir=sr+tr.pxmid[0]*(1-br),Tr=Zt+tr.pxmid[1]*(1-br),_r=cr.separators,Er=[];if(Ar&&Ar.indexOf("label")!==-1&&Er.push(tr.label),tr.text=nt.castOption(mr.hovertext||mr.text,tr.pts),Ar&&Ar.indexOf("text")!==-1){var Rr=tr.text;ut.isValidTextValue(Rr)&&Er.push(Rr)}tr.value=tr.v,tr.valueLabel=nt.formatPieValue(tr.v,_r),Ar&&Ar.indexOf("value")!==-1&&Er.push(tr.valueLabel),tr.percent=tr.v/ar.vTotal,tr.percentLabel=nt.formatPiePercent(tr.percent,_r),Ar&&Ar.indexOf("percent")!==-1&&Er.push(tr.percentLabel);var zr=mr.hoverlabel,Or=zr.font,kr=[];et.loneHover({trace:Kt,x0:Ir-br*ar.r,x1:Ir+br*ar.r,y:Tr,_x0:or?sr+tr.TL[0]:Ir-br*ar.r,_x1:or?sr+tr.TR[0]:Ir+br*ar.r,_y0:or?Zt+tr.TL[1]:Tr-br*ar.r,_y1:or?Zt+tr.BL[1]:Tr+br*ar.r,text:Er.join("
"),name:mr.hovertemplate||Ar.indexOf("name")!==-1?mr.name:void 0,idealAlign:tr.pxmid[0]<0?"left":"right",color:nt.castOption(zr.bgcolor,tr.pts)||tr.color,borderColor:nt.castOption(zr.bordercolor,tr.pts),fontFamily:nt.castOption(Or.family,tr.pts),fontSize:nt.castOption(Or.size,tr.pts),fontColor:nt.castOption(Or.color,tr.pts),nameLength:nt.castOption(zr.namelength,tr.pts),textAlign:nt.castOption(zr.align,tr.pts),hovertemplate:nt.castOption(mr.hovertemplate,tr.pts),hovertemplateLabels:tr,eventData:[vt(tr,mr)]},{container:cr._hoverlayer.node(),outerContainer:cr._paper.node(),gd:rr,inOut_bbox:kr}),tr.bbox=kr[0],Kt._hasHoverLabel=!0}Kt._hasHoverEvent=!0,rr.emit("plotly_hover",{points:[vt(tr,mr)],event:it.event})}}),Yt.on("mouseout",function(tr){var cr=rr._fullLayout,mr=rr._fullData[Kt.index],Ar=it.select(this).datum();Kt._hasHoverEvent&&(tr.originalEvent=it.event,rr.emit("plotly_unhover",{points:[vt(Ar,mr)],event:it.event}),Kt._hasHoverEvent=!1),Kt._hasHoverLabel&&(et.loneUnhover(cr._hoverlayer.node()),Kt._hasHoverLabel=!1)}),Yt.on("click",function(tr){var cr=rr._fullLayout,mr=rr._fullData[Kt.index];rr._dragging||cr.hovermode===!1||(rr._hoverdata=[vt(tr,mr)],et.click(rr,it.event))})}function mt(Yt,rr,jt){var ar=nt.castOption(Yt.outsidetextfont.color,rr.pts)||nt.castOption(Yt.textfont.color,rr.pts)||jt.color,sr=nt.castOption(Yt.outsidetextfont.family,rr.pts)||nt.castOption(Yt.textfont.family,rr.pts)||jt.family,Zt=nt.castOption(Yt.outsidetextfont.size,rr.pts)||nt.castOption(Yt.textfont.size,rr.pts)||jt.size,Kt=nt.castOption(Yt.outsidetextfont.weight,rr.pts)||nt.castOption(Yt.textfont.weight,rr.pts)||jt.weight,or=nt.castOption(Yt.outsidetextfont.style,rr.pts)||nt.castOption(Yt.textfont.style,rr.pts)||jt.style,tr=nt.castOption(Yt.outsidetextfont.variant,rr.pts)||nt.castOption(Yt.textfont.variant,rr.pts)||jt.variant;return{color:ar,family:sr,size:Zt,weight:Kt,style:or,variant:tr}}function St(Yt,rr,jt){var ar=nt.castOption(Yt.insidetextfont.color,rr.pts);!ar&&Yt._input.textfont&&(ar=nt.castOption(Yt._input.textfont.color,rr.pts));var sr=nt.castOption(Yt.insidetextfont.family,rr.pts)||nt.castOption(Yt.textfont.family,rr.pts)||jt.family,Zt=nt.castOption(Yt.insidetextfont.size,rr.pts)||nt.castOption(Yt.textfont.size,rr.pts)||jt.size,Kt=nt.castOption(Yt.insidetextfont.weight,rr.pts)||nt.castOption(Yt.textfont.weight,rr.pts)||jt.weight,or=nt.castOption(Yt.insidetextfont.style,rr.pts)||nt.castOption(Yt.textfont.style,rr.pts)||jt.style,tr=nt.castOption(Yt.insidetextfont.variant,rr.pts)||nt.castOption(Yt.textfont.variant,rr.pts)||jt.variant;return{color:ar||Tt.contrast(rr.color),family:sr,size:Zt,weight:Kt,style:or,variant:tr}}function _t(Yt,rr){for(var jt,ar,sr=0;sr=-4;zr-=2)Rr(Math.PI*zr,"tan");for(zr=4;zr>=-4;zr-=2)Rr(Math.PI*(zr+1),"tan")}if(Ar||Ir){for(zr=4;zr>=-4;zr-=2)Rr(Math.PI*(zr+1.5),"rad");for(zr=4;zr>=-4;zr-=2)Rr(Math.PI*(zr+.5),"rad")}}if(or||Tr||Ar){var Or=Math.sqrt(Yt.width*Yt.width+Yt.height*Yt.height);if(Er={scale:sr*ar*2/Or,rCenter:1-sr,rotate:0},Er.textPosAngle=(rr.startangle+rr.stopangle)/2,Er.scale>=1)return Er;_r.push(Er)}(Tr||Ir)&&(Er=kt(Yt,ar,Kt,tr,cr),Er.textPosAngle=(rr.startangle+rr.stopangle)/2,_r.push(Er)),(Tr||br)&&(Er=wt(Yt,ar,Kt,tr,cr),Er.textPosAngle=(rr.startangle+rr.stopangle)/2,_r.push(Er));for(var kr=0,Nr=0,Qr=0;Qr<_r.length;Qr++){var sn=_r[Qr].scale;if(Nr=1)break}return _r[kr]}function Et(Yt,rr){var jt=Yt.startangle,ar=Yt.stopangle;return jt>rr&&rr>ar||jt0?1:-1)/2,y:Zt/(1+jt*jt/(ar*ar)),outside:!0}}function zt(Yt){var rr=Math.sqrt(Yt.titleBox.width*Yt.titleBox.width+Yt.titleBox.height*Yt.titleBox.height);return{x:Yt.cx,y:Yt.cy,scale:Yt.trace.hole*Yt.r*2/rr,tx:0,ty:-Yt.titleBox.height/2+Yt.trace.title.font.size}}function Dt(Yt,rr){var jt=1,ar=1,sr,Zt=Yt.trace,Kt={x:Yt.cx,y:Yt.cy},or={tx:0,ty:0};or.ty+=Zt.title.font.size,sr=Ut(Zt),Zt.title.position.indexOf("top")!==-1?(Kt.y-=(1+sr)*Yt.r,or.ty-=Yt.titleBox.height):Zt.title.position.indexOf("bottom")!==-1&&(Kt.y+=(1+sr)*Yt.r);var tr=Nt(Yt.r,Yt.trace.aspectratio),cr=rr.w*(Zt.domain.x[1]-Zt.domain.x[0])/2;return Zt.title.position.indexOf("left")!==-1?(cr=cr+tr,Kt.x-=(1+sr)*tr,or.tx+=Yt.titleBox.width/2):Zt.title.position.indexOf("center")!==-1?cr*=2:Zt.title.position.indexOf("right")!==-1&&(cr=cr+tr,Kt.x+=(1+sr)*tr,or.tx-=Yt.titleBox.width/2),jt=cr/Yt.titleBox.width,ar=$t(Yt,rr)/Yt.titleBox.height,{x:Kt.x,y:Kt.y,scale:Math.min(jt,ar),tx:or.tx,ty:or.ty}}function Nt(Yt,rr){return Yt/(rr===void 0?1:rr)}function $t(Yt,rr){var jt=Yt.trace,ar=rr.h*(jt.domain.y[1]-jt.domain.y[0]);return Math.min(Yt.titleBox.height,ar/2)}function Ut(Yt){var rr=Yt.pull;if(!rr)return 0;var jt;if(ut.isArrayOrTypedArray(rr))for(rr=0,jt=0;jtrr&&(rr=Yt.pull[jt]);return rr}function Ht(Yt,rr){var jt,ar,sr,Zt,Kt,or,tr,cr,mr,Ar,br,Ir,Tr;function _r(Or,kr){return Or.pxmid[1]-kr.pxmid[1]}function Er(Or,kr){return kr.pxmid[1]-Or.pxmid[1]}function Rr(Or,kr){kr||(kr={});var Nr=kr.labelExtraY+(ar?kr.yLabelMax:kr.yLabelMin),Qr=ar?Or.yLabelMin:Or.yLabelMax,sn=ar?Or.yLabelMax:Or.yLabelMin,un=Or.cyFinal+Kt(Or.px0[1],Or.px1[1]),en=Nr-Qr,Xr,ln,mn,pn,Tn,Zr;if(en*tr>0&&(Or.labelExtraY=en),!!ut.isArrayOrTypedArray(rr.pull))for(ln=0;ln=(nt.castOption(rr.pull,mn.pts)||0))&&((Or.pxmid[1]-mn.pxmid[1])*tr>0?(pn=mn.cyFinal+Kt(mn.px0[1],mn.px1[1]),en=pn-Qr-Or.labelExtraY,en*tr>0&&(Or.labelExtraY+=en)):(sn+Or.labelExtraY-un)*tr>0&&(Xr=3*or*Math.abs(ln-Ar.indexOf(Or)),Tn=mn.cxFinal+Zt(mn.px0[0],mn.px1[0]),Zr=Tn+Xr-(Or.cxFinal+Or.pxmid[0])-Or.labelExtraX,Zr*or>0&&(Or.labelExtraX+=Zr)))}for(ar=0;ar<2;ar++)for(sr=ar?_r:Er,Kt=ar?Math.max:Math.min,tr=ar?1:-1,jt=0;jt<2;jt++){for(Zt=jt?Math.max:Math.min,or=jt?1:-1,cr=Yt[ar][jt],cr.sort(sr),mr=Yt[1-ar][jt],Ar=mr.concat(cr),Ir=[],br=0;br1?(cr=jt.r,mr=cr/sr.aspectratio):(mr=jt.r,cr=mr*sr.aspectratio),cr*=(1+sr.baseratio)/2,tr=cr*mr}Kt=Math.min(Kt,tr/jt.vTotal)}for(ar=0;arrr.vTotal/2?1:0,cr.halfangle=Math.PI*Math.min(cr.v/rr.vTotal,.5),cr.ring=1-ar.hole,cr.rInscribed=Ot(cr,rr))}function er(Yt,rr){return[Yt*Math.sin(rr),-Yt*Math.cos(rr)]}function lr(Yt,rr,jt){var ar=Yt._fullLayout,sr=jt.trace,Zt=sr.texttemplate,Kt=sr.textinfo;if(!Zt&&Kt&&Kt!=="none"){var or=Kt.split("+"),tr=function(kr){return or.indexOf(kr)!==-1},cr=tr("label"),mr=tr("text"),Ar=tr("value"),br=tr("percent"),Ir=ar.separators,Tr;if(Tr=cr?[rr.label]:[],mr){var _r=nt.getFirstFilled(sr.text,rr.pts);dt(_r)&&Tr.push(_r)}Ar&&Tr.push(nt.formatPieValue(rr.v,Ir)),br&&Tr.push(nt.formatPiePercent(rr.v/jt.vTotal,Ir)),rr.text=Tr.join("
")}function Er(kr){return{label:kr.label,value:kr.v,valueLabel:nt.formatPieValue(kr.v,ar.separators),percent:kr.v/jt.vTotal,percentLabel:nt.formatPiePercent(kr.v/jt.vTotal,ar.separators),color:kr.color,text:kr.text,customdata:ut.castOption(sr,kr.i,"customdata")}}if(Zt){var Rr=ut.castOption(sr,rr.i,"texttemplate");if(!Rr)rr.text="";else{var zr=Er(rr),Or=nt.getFirstFilled(sr.text,rr.pts);(dt(Or)||Or==="")&&(zr.text=Or),rr.text=ut.texttemplateString(Rr,zr,Yt._fullLayout._d3locale,zr,sr._meta||{})}}}function Jt(Yt,rr){var jt=Yt.rotate*Math.PI/180,ar=Math.cos(jt),sr=Math.sin(jt),Zt=(rr.left+rr.right)/2,Kt=(rr.top+rr.bottom)/2;Yt.textX=Zt*ar-Kt*sr,Yt.textY=Zt*sr+Kt*ar,Yt.noCenter=!0}Ct.exports={plot:bt,formatSliceLabel:lr,transformInsideText:Mt,determineInsideTextFont:St,positionTitleOutside:Dt,prerenderTitles:_t,layoutAreas:Vt,attachFxHandlers:at,computeTransform:Jt}},22152:function(Ct,Rt,o){var it=o(33428),xt=o(10528),et=o(82744).resizeText;Ct.exports=function(yt){var ut=yt._fullLayout._pielayer.selectAll(".trace");et(yt,ut,"pie"),ut.each(function(ht){var j=ht[0],_=j.trace,rt=it.select(this);rt.style({opacity:_.opacity}),rt.selectAll("path.surface").each(function(tt){it.select(this).call(xt,tt,_,yt)})})}},10528:function(Ct,Rt,o){var it=o(76308),xt=o(69656).castOption,et=o(21552);Ct.exports=function(yt,ut,ht,j){var _=ht.marker.line,rt=xt(_.color,ut.pts)||it.defaultLine,tt=xt(_.width,ut.pts)||0;yt.call(et,ut,ht,j).style("stroke-width",tt).call(it.stroke,rt)}},35484:function(Ct,Rt,o){var it=o(52904);Ct.exports={x:it.x,y:it.y,xy:{valType:"data_array",editType:"calc"},indices:{valType:"data_array",editType:"calc"},xbounds:{valType:"data_array",editType:"calc"},ybounds:{valType:"data_array",editType:"calc"},text:it.text,marker:{color:{valType:"color",arrayOk:!1,editType:"calc"},opacity:{valType:"number",min:0,max:1,dflt:1,arrayOk:!1,editType:"calc"},blend:{valType:"boolean",dflt:null,editType:"calc"},sizemin:{valType:"number",min:.1,max:2,dflt:.5,editType:"calc"},sizemax:{valType:"number",min:.1,dflt:20,editType:"calc"},border:{color:{valType:"color",arrayOk:!1,editType:"calc"},arearatio:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},editType:"calc"},editType:"calc"},transforms:void 0}},11072:function(Ct,Rt,o){var it=o(67792).gl_pointcloud2d,xt=o(3400).isArrayOrTypedArray,et=o(43080),Tt=o(19280).findExtremes,yt=o(44928);function ut(_,rt){this.scene=_,this.uid=rt,this.type="pointcloud",this.pickXData=[],this.pickYData=[],this.xData=[],this.yData=[],this.textLabels=[],this.color="rgb(0, 0, 0)",this.name="",this.hoverinfo="all",this.idToIndex=new Int32Array(0),this.bounds=[0,0,0,0],this.pointcloudOptions={positions:new Float32Array(0),idToIndex:this.idToIndex,sizemin:.5,sizemax:12,color:[0,0,0,1],areaRatio:1,borderColor:[0,0,0,1]},this.pointcloud=it(_.glplot,this.pointcloudOptions),this.pointcloud._trace=this}var ht=ut.prototype;ht.handlePick=function(_){var rt=this.idToIndex[_.pointId];return{trace:this,dataCoord:_.dataCoord,traceCoord:this.pickXYData?[this.pickXYData[rt*2],this.pickXYData[rt*2+1]]:[this.pickXData[rt],this.pickYData[rt]],textLabel:xt(this.textLabels)?this.textLabels[rt]:this.textLabels,color:this.color,name:this.name,pointIndex:rt,hoverinfo:this.hoverinfo}},ht.update=function(_){this.index=_.index,this.textLabels=_.text,this.name=_.name,this.hoverinfo=_.hoverinfo,this.bounds=[1/0,1/0,-1/0,-1/0],this.updateFast(_),this.color=yt(_,{})},ht.updateFast=function(_){var rt=this.xData=this.pickXData=_.x,tt=this.yData=this.pickYData=_.y,st=this.pickXYData=_.xy,ot=_.xbounds&&_.ybounds,nt=_.indices,vt,dt,bt,ft=this.bounds,at,mt,St;if(st){if(bt=st,vt=st.length>>>1,ot)ft[0]=_.xbounds[0],ft[2]=_.xbounds[1],ft[1]=_.ybounds[0],ft[3]=_.ybounds[1];else for(St=0;Stft[2]&&(ft[2]=at),mtft[3]&&(ft[3]=mt);if(nt)dt=nt;else for(dt=new Int32Array(vt),St=0;Stft[2]&&(ft[2]=at),mtft[3]&&(ft[3]=mt);this.idToIndex=dt,this.pointcloudOptions.idToIndex=dt,this.pointcloudOptions.positions=bt;var _t=et(_.marker.color),Mt=et(_.marker.border.color),Et=_.opacity*_.marker.opacity;_t[3]*=Et,this.pointcloudOptions.color=_t;var kt=_.marker.blend;if(kt===null){var wt=100;kt=rt.lengthMt&&(Mt=tt.source[at]),tt.target[at]>Mt&&(Mt=tt.target[at]);var Et=Mt+1;_.node._count=Et;var kt,wt=_.node.groups,ct={};for(at=0;at0&&yt(Dt,Et)&&yt(Nt,Et)&&!(ct.hasOwnProperty(Dt)&&ct.hasOwnProperty(Nt)&&ct[Dt]===ct[Nt])){ct.hasOwnProperty(Nt)&&(Nt=ct[Nt]),ct.hasOwnProperty(Dt)&&(Dt=ct[Dt]),Dt=+Dt,Nt=+Nt,dt[Dt]=dt[Nt]=!0;var $t="";tt.label&&tt.label[at]&&($t=tt.label[at]);var Ut=null;$t&&bt.hasOwnProperty($t)&&(Ut=bt[$t]),st.push({pointNumber:at,label:$t,color:ot?tt.color[at]:tt.color,hovercolor:nt?tt.hovercolor[at]:tt.hovercolor,customdata:vt?tt.customdata[at]:tt.customdata,concentrationscale:Ut,source:Dt,target:Nt,value:+zt}),Pt.source.push(Dt),Pt.target.push(Nt)}}var Ht=Et+wt.length,Vt=Tt(rt.color),Xt=Tt(rt.customdata),qt=[];for(at=0;atEt-1,childrenNodes:[],pointNumber:at,label:er,color:Vt?rt.color[at]:rt.color,customdata:Xt?rt.customdata[at]:rt.customdata})}var lr=!1;return j(Ht,Pt.source,Pt.target)&&(lr=!0),{circular:lr,links:st,nodes:qt,groups:wt,groupLookup:ct}}function j(_,rt,tt){for(var st=xt.init2dArray(_,0),ot=0;ot1})}Ct.exports=function(rt,tt){var st=ht(tt);return et({circular:st.circular,_nodes:st.nodes,_links:st.links,_groups:st.groups,_groupLookup:st.groupLookup})}},11820:function(Ct){Ct.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:"linear",cn:{sankey:"sankey",sankeyLinks:"sankey-links",sankeyLink:"sankey-link",sankeyNodeSet:"sankey-node-set",sankeyNode:"sankey-node",nodeRect:"node-rect",nodeLabel:"node-label"}}},47140:function(Ct,Rt,o){var it=o(3400),xt=o(41440),et=o(76308),Tt=o(49760),yt=o(86968).Q,ut=o(16132),ht=o(31780),j=o(51272);Ct.exports=function(tt,st,ot,nt){function vt(Ot,Pt){return it.coerce(tt,st,xt,Ot,Pt)}var dt=it.extendDeep(nt.hoverlabel,tt.hoverlabel),bt=tt.node,ft=ht.newContainer(st,"node");function at(Ot,Pt){return it.coerce(bt,ft,xt.node,Ot,Pt)}at("label"),at("groups"),at("x"),at("y"),at("pad"),at("thickness"),at("line.color"),at("line.width"),at("hoverinfo",tt.hoverinfo),ut(bt,ft,at,dt),at("hovertemplate"),at("align");var mt=nt.colorway,St=function(Ot){return mt[Ot%mt.length]};at("color",ft.label.map(function(Ot,Pt){return et.addOpacity(St(Pt),.8)})),at("customdata");var _t=tt.link||{},Mt=ht.newContainer(st,"link");function Et(Ot,Pt){return it.coerce(_t,Mt,xt.link,Ot,Pt)}Et("label"),Et("arrowlen"),Et("source"),Et("target"),Et("value"),Et("line.color"),Et("line.width"),Et("hoverinfo",tt.hoverinfo),ut(_t,Mt,Et,dt),Et("hovertemplate");var kt=Tt(nt.paper_bgcolor).getLuminance()<.333,wt=kt?"rgba(255, 255, 255, 0.6)":"rgba(0, 0, 0, 0.2)",ct=Et("color",wt);function It(Ot){var Pt=Tt(Ot);if(!Pt.isValid())return Ot;var zt=Pt.getAlpha();return zt<=.8?Pt.setAlpha(zt+.2):Pt=kt?Pt.brighten():Pt.darken(),Pt.toRgbString()}Et("hovercolor",Array.isArray(ct)?ct.map(It):It(ct)),Et("customdata"),j(_t,Mt,{name:"colorscales",handleItemDefaults:_}),yt(st,nt,vt),vt("orientation"),vt("valueformat"),vt("valuesuffix");var At;ft.x.length&&ft.y.length&&(At="freeform"),vt("arrangement",At),it.coerceFont(vt,"textfont",it.extendFlat({},nt.font)),st._length=null};function _(rt,tt){function st(ot,nt){return it.coerce(rt,tt,xt.link.colorscales,ot,nt)}st("label"),st("cmin"),st("cmax"),st("colorscale")}},45499:function(Ct,Rt,o){Ct.exports={attributes:o(41440),supplyDefaults:o(47140),calc:o(48068),plot:o(59596),moduleType:"trace",name:"sankey",basePlotModule:o(10760),selectPoints:o(81128),categories:["noOpacity"],meta:{}}},59596:function(Ct,Rt,o){var it=o(33428),xt=o(3400),et=xt.numberFormat,Tt=o(83248),yt=o(93024),ut=o(76308),ht=o(11820).cn,j=xt._;function _(mt){return mt!==""}function rt(mt,St){return mt.filter(function(_t){return _t.key===St.traceId})}function tt(mt,St){it.select(mt).select("path").style("fill-opacity",St),it.select(mt).select("rect").style("fill-opacity",St)}function st(mt){it.select(mt).select("text.name").style("fill","black")}function ot(mt){return function(St){return mt.node.sourceLinks.indexOf(St.link)!==-1||mt.node.targetLinks.indexOf(St.link)!==-1}}function nt(mt){return function(St){return St.node.sourceLinks.indexOf(mt.link)!==-1||St.node.targetLinks.indexOf(mt.link)!==-1}}function vt(mt,St,_t){St&&_t&&rt(_t,St).selectAll("."+ht.sankeyLink).filter(ot(St)).call(bt.bind(0,St,_t,!1))}function dt(mt,St,_t){St&&_t&&rt(_t,St).selectAll("."+ht.sankeyLink).filter(ot(St)).call(ft.bind(0,St,_t,!1))}function bt(mt,St,_t,Mt){Mt.style("fill",function(Et){if(!Et.link.concentrationscale)return Et.tinyColorHoverHue}).style("fill-opacity",function(Et){if(!Et.link.concentrationscale)return Et.tinyColorHoverAlpha}),Mt.each(function(Et){var kt=Et.link.label;kt!==""&&rt(St,mt).selectAll("."+ht.sankeyLink).filter(function(wt){return wt.link.label===kt}).style("fill",function(wt){if(!wt.link.concentrationscale)return wt.tinyColorHoverHue}).style("fill-opacity",function(wt){if(!wt.link.concentrationscale)return wt.tinyColorHoverAlpha})}),_t&&rt(St,mt).selectAll("."+ht.sankeyNode).filter(nt(mt)).call(vt)}function ft(mt,St,_t,Mt){Mt.style("fill",function(Et){return Et.tinyColorHue}).style("fill-opacity",function(Et){return Et.tinyColorAlpha}),Mt.each(function(Et){var kt=Et.link.label;kt!==""&&rt(St,mt).selectAll("."+ht.sankeyLink).filter(function(wt){return wt.link.label===kt}).style("fill",function(wt){return wt.tinyColorHue}).style("fill-opacity",function(wt){return wt.tinyColorAlpha})}),_t&&rt(St,mt).selectAll(ht.sankeyNode).filter(nt(mt)).call(dt)}function at(mt,St){var _t=mt.hoverlabel||{},Mt=xt.nestedProperty(_t,St).get();return Array.isArray(Mt)?!1:Mt}Ct.exports=function(St,_t){for(var Mt=St._fullLayout,Et=Mt._paper,kt=Mt._size,wt=0;wt"),color:at(Jt,"bgcolor")||ut.addOpacity(sr.color,1),borderColor:at(Jt,"bordercolor"),fontFamily:at(Jt,"font.family"),fontSize:at(Jt,"font.size"),fontColor:at(Jt,"font.color"),fontWeight:at(Jt,"font.weight"),fontStyle:at(Jt,"font.style"),fontVariant:at(Jt,"font.variant"),nameLength:at(Jt,"namelength"),textAlign:at(Jt,"align"),idealAlign:it.event.x"),color:at(Jt,"bgcolor")||lr.tinyColorHue,borderColor:at(Jt,"bordercolor"),fontFamily:at(Jt,"font.family"),fontSize:at(Jt,"font.size"),fontColor:at(Jt,"font.color"),fontWeight:at(Jt,"font.weight"),fontStyle:at(Jt,"font.style"),fontVariant:at(Jt,"font.variant"),nameLength:at(Jt,"namelength"),textAlign:at(Jt,"align"),idealAlign:"left",hovertemplate:Jt.hovertemplate,hovertemplateLabels:Kt,eventData:[lr.node]},{container:Mt._hoverlayer.node(),outerContainer:Mt._paper.node(),gd:St});tt(cr,.85),st(cr)}}},qt=function(er,lr,Jt){St._fullLayout.hovermode!==!1&&(it.select(er).call(dt,lr,Jt),lr.node.trace.node.hoverinfo!=="skip"&&(lr.node.fullData=lr.node.trace,St.emit("plotly_unhover",{event:it.event,points:[lr.node]})),yt.loneUnhover(Mt._hoverlayer.node()))};Tt(St,Et,_t,{width:kt.w,height:kt.h,margin:{t:kt.t,r:kt.r,b:kt.b,l:kt.l}},{linkEvents:{hover:At,follow:$t,unhover:Ut,select:It},nodeEvents:{hover:Vt,follow:Xt,unhover:qt,select:Ht}})}},83248:function(Ct,Rt,o){var it=o(49812),xt=o(67756).Gz,et=o(33428),Tt=o(26800),yt=o(48932),ut=o(11820),ht=o(49760),j=o(76308),_=o(43616),rt=o(3400),tt=rt.strTranslate,st=rt.strRotate,ot=o(71688),nt=ot.keyFun,vt=ot.repeat,dt=ot.unwrap,bt=o(72736),ft=o(24040),at=o(84284),mt=at.CAP_SHIFT,St=at.LINE_SPACING,_t=3;function Mt(rr,jt,ar){var sr=dt(jt),Zt=sr.trace,Kt=Zt.domain,or=Zt.orientation==="h",tr=Zt.node.pad,cr=Zt.node.thickness,mr={justify:Tt.sankeyJustify,left:Tt.sankeyLeft,right:Tt.sankeyRight,center:Tt.sankeyCenter}[Zt.node.align],Ar=rr.width*(Kt.x[1]-Kt.x[0]),br=rr.height*(Kt.y[1]-Kt.y[0]),Ir=sr._nodes,Tr=sr._links,_r=sr.circular,Er;_r?Er=yt.sankeyCircular().circularLinkGap(0):Er=Tt.sankey(),Er.iterations(ut.sankeyIterations).size(or?[Ar,br]:[br,Ar]).nodeWidth(cr).nodePadding(tr).nodeId(function(Zr){return Zr.pointNumber}).nodeAlign(mr).nodes(Ir).links(Tr);var Rr=Er();Er.nodePadding()=Gr||(Wr=Gr-Ur.y0,Wr>1e-6&&(Ur.y0+=Wr,Ur.y1+=Wr)),Gr=Ur.y1+tr})}function ln(Zr){var Fr=Zr.map(function(Sr,ur){return{x0:Sr.x0,index:ur}}).sort(function(Sr,ur){return Sr.x0-ur.x0}),Ur=[],Wr=-1,Gr,wr=-1/0,pr;for(zr=0;zrwr+cr&&(Wr+=1,Gr=Dr.x0),wr=Dr.x0,Ur[Wr]||(Ur[Wr]=[]),Ur[Wr].push(Dr),pr=Gr-Dr.x0,Dr.x0+=pr,Dr.x1+=pr}return Ur}if(Zt.node.x.length&&Zt.node.y.length){for(zr=0;zr0?"L"+Zt.targetX+" "+Zt.targetY:"")+"Z":ar="M "+(Zt.targetX-jt)+" "+(Zt.targetY-sr)+" L"+(Zt.rightInnerExtent-jt)+" "+(Zt.targetY-sr)+"A"+(Zt.rightLargeArcRadius+sr)+" "+(Zt.rightSmallArcRadius+sr)+" 0 0 0 "+(Zt.rightFullExtent-sr-jt)+" "+(Zt.targetY+Zt.rightSmallArcRadius)+"L"+(Zt.rightFullExtent-sr-jt)+" "+Zt.verticalRightInnerExtent+"A"+(Zt.rightLargeArcRadius+sr)+" "+(Zt.rightLargeArcRadius+sr)+" 0 0 0 "+(Zt.rightInnerExtent-jt)+" "+(Zt.verticalFullExtent+sr)+"L"+Zt.leftInnerExtent+" "+(Zt.verticalFullExtent+sr)+"A"+(Zt.leftLargeArcRadius+sr)+" "+(Zt.leftLargeArcRadius+sr)+" 0 0 0 "+(Zt.leftFullExtent+sr)+" "+Zt.verticalLeftInnerExtent+"L"+(Zt.leftFullExtent+sr)+" "+(Zt.sourceY+Zt.leftSmallArcRadius)+"A"+(Zt.leftLargeArcRadius+sr)+" "+(Zt.leftSmallArcRadius+sr)+" 0 0 0 "+Zt.leftInnerExtent+" "+(Zt.sourceY-sr)+"L"+Zt.sourceX+" "+(Zt.sourceY-sr)+"L"+Zt.sourceX+" "+(Zt.sourceY+sr)+"L"+Zt.leftInnerExtent+" "+(Zt.sourceY+sr)+"A"+(Zt.leftLargeArcRadius-sr)+" "+(Zt.leftSmallArcRadius-sr)+" 0 0 1 "+(Zt.leftFullExtent-sr)+" "+(Zt.sourceY+Zt.leftSmallArcRadius)+"L"+(Zt.leftFullExtent-sr)+" "+Zt.verticalLeftInnerExtent+"A"+(Zt.leftLargeArcRadius-sr)+" "+(Zt.leftLargeArcRadius-sr)+" 0 0 1 "+Zt.leftInnerExtent+" "+(Zt.verticalFullExtent-sr)+"L"+(Zt.rightInnerExtent-jt)+" "+(Zt.verticalFullExtent-sr)+"A"+(Zt.rightLargeArcRadius-sr)+" "+(Zt.rightLargeArcRadius-sr)+" 0 0 1 "+(Zt.rightFullExtent+sr-jt)+" "+Zt.verticalRightInnerExtent+"L"+(Zt.rightFullExtent+sr-jt)+" "+(Zt.targetY+Zt.rightSmallArcRadius)+"A"+(Zt.rightLargeArcRadius-sr)+" "+(Zt.rightSmallArcRadius-sr)+" 0 0 1 "+(Zt.rightInnerExtent-jt)+" "+(Zt.targetY+sr)+"L"+(Zt.targetX-jt)+" "+(Zt.targetY+sr)+(jt>0?"L"+Zt.targetX+" "+Zt.targetY:"")+"Z",ar}function wt(){var rr=.5;function jt(ar){var sr=ar.linkArrowLength;if(ar.link.circular)return kt(ar.link,sr);var Zt=Math.abs((ar.link.target.x0-ar.link.source.x1)/2);sr>Zt&&(sr=Zt);var Kt=ar.link.source.x1,or=ar.link.target.x0-sr,tr=xt(Kt,or),cr=tr(rr),mr=tr(1-rr),Ar=ar.link.y0-ar.link.width/2,br=ar.link.y0+ar.link.width/2,Ir=ar.link.y1-ar.link.width/2,Tr=ar.link.y1+ar.link.width/2,_r="M"+Kt+","+Ar,Er="C"+cr+","+Ar+" "+mr+","+Ir+" "+or+","+Ir,Rr="C"+mr+","+Tr+" "+cr+","+br+" "+Kt+","+br,zr=sr>0?"L"+(or+sr)+","+(Ir+ar.link.width/2):"";return zr+="L"+or+","+Tr,_r+Er+zr+Rr+"Z"}return jt}function ct(rr,jt){var ar=ht(jt.color),sr=ut.nodePadAcross,Zt=rr.nodePad/2;jt.dx=jt.x1-jt.x0,jt.dy=jt.y1-jt.y0;var Kt=jt.dx,or=Math.max(.5,jt.dy),tr="node_"+jt.pointNumber;return jt.group&&(tr=rt.randstr()),jt.trace=rr.trace,jt.curveNumber=rr.trace.index,{index:jt.pointNumber,key:tr,partOfGroup:jt.partOfGroup||!1,group:jt.group,traceId:rr.key,trace:rr.trace,node:jt,nodePad:rr.nodePad,nodeLineColor:rr.nodeLineColor,nodeLineWidth:rr.nodeLineWidth,textFont:rr.textFont,size:rr.horizontal?rr.height:rr.width,visibleWidth:Math.ceil(Kt),visibleHeight:or,zoneX:-sr,zoneY:-Zt,zoneWidth:Kt+2*sr,zoneHeight:or+2*Zt,labelY:rr.horizontal?jt.dy/2+1:jt.dx/2+1,left:jt.originalLayer===1,sizeAcross:rr.width,forceLayouts:rr.forceLayouts,horizontal:rr.horizontal,darkBackground:ar.getBrightness()<=128,tinyColorHue:j.tinyRGB(ar),tinyColorAlpha:ar.getAlpha(),valueFormat:rr.valueFormat,valueSuffix:rr.valueSuffix,sankey:rr.sankey,graph:rr.graph,arrangement:rr.arrangement,uniqueNodeLabelPathId:[rr.guid,rr.key,tr].join("_"),interactionState:rr.interactionState,figure:rr}}function It(rr){rr.attr("transform",function(jt){return tt(jt.node.x0.toFixed(3),jt.node.y0.toFixed(3))})}function At(rr){rr.call(It)}function Ot(rr,jt){rr.call(At),jt.attr("d",wt())}function Pt(rr){rr.attr("width",function(jt){return jt.node.x1-jt.node.x0}).attr("height",function(jt){return jt.visibleHeight})}function zt(rr){return rr.link.width>1||rr.linkLineWidth>0}function Dt(rr){var jt=tt(rr.translateX,rr.translateY);return jt+(rr.horizontal?"matrix(1 0 0 1 0 0)":"matrix(0 1 1 0 0 0)")}function Nt(rr,jt,ar){rr.on(".basic",null).on("mouseover.basic",function(sr){!sr.interactionState.dragInProgress&&!sr.partOfGroup&&(ar.hover(this,sr,jt),sr.interactionState.hovered=[this,sr])}).on("mousemove.basic",function(sr){!sr.interactionState.dragInProgress&&!sr.partOfGroup&&(ar.follow(this,sr),sr.interactionState.hovered=[this,sr])}).on("mouseout.basic",function(sr){!sr.interactionState.dragInProgress&&!sr.partOfGroup&&(ar.unhover(this,sr,jt),sr.interactionState.hovered=!1)}).on("click.basic",function(sr){sr.interactionState.hovered&&(ar.unhover(this,sr,jt),sr.interactionState.hovered=!1),!sr.interactionState.dragInProgress&&!sr.partOfGroup&&ar.select(this,sr,jt)})}function $t(rr,jt,ar,sr){var Zt=et.behavior.drag().origin(function(Kt){return{x:Kt.node.x0+Kt.visibleWidth/2,y:Kt.node.y0+Kt.visibleHeight/2}}).on("dragstart",function(Kt){if(Kt.arrangement!=="fixed"&&(rt.ensureSingle(sr._fullLayout._infolayer,"g","dragcover",function(tr){sr._fullLayout._dragCover=tr}),rt.raiseToTop(this),Kt.interactionState.dragInProgress=Kt.node,er(Kt.node),Kt.interactionState.hovered&&(ar.nodeEvents.unhover.apply(0,Kt.interactionState.hovered),Kt.interactionState.hovered=!1),Kt.arrangement==="snap")){var or=Kt.traceId+"|"+Kt.key;Kt.forceLayouts[or]?Kt.forceLayouts[or].alpha(1):Ut(rr,or,Kt),Ht(rr,jt,Kt,or,sr)}}).on("drag",function(Kt){if(Kt.arrangement!=="fixed"){var or=et.event.x,tr=et.event.y;Kt.arrangement==="snap"?(Kt.node.x0=or-Kt.visibleWidth/2,Kt.node.x1=or+Kt.visibleWidth/2,Kt.node.y0=tr-Kt.visibleHeight/2,Kt.node.y1=tr+Kt.visibleHeight/2):(Kt.arrangement==="freeform"&&(Kt.node.x0=or-Kt.visibleWidth/2,Kt.node.x1=or+Kt.visibleWidth/2),tr=Math.max(0,Math.min(Kt.size-Kt.visibleHeight/2,tr)),Kt.node.y0=tr-Kt.visibleHeight/2,Kt.node.y1=tr+Kt.visibleHeight/2),er(Kt.node),Kt.arrangement!=="snap"&&(Kt.sankey.update(Kt.graph),Ot(rr.filter(lr(Kt)),jt))}}).on("dragend",function(Kt){if(Kt.arrangement!=="fixed"){Kt.interactionState.dragInProgress=!1;for(var or=0;or0)window.requestAnimationFrame(Kt);else{var cr=ar.node.originalX;ar.node.x0=cr-ar.visibleWidth/2,ar.node.x1=cr+ar.visibleWidth/2,Xt(ar,Zt)}})}function Vt(rr,jt,ar,sr){return function(){for(var Kt=0,or=0;or0&&sr.forceLayouts[jt].alpha(0)}}function Xt(rr,jt){for(var ar=[],sr=[],Zt=0;ZtDt&&It[$t].gap;)$t--;for(Ht=It[$t].s,Nt=It.length-1;Nt>$t;Nt--)It[Nt].s=Ht;for(;Dt<$t;)if(Dt++,It[Dt].gap){for(Nt=Dt+1;It[Nt].gap;)Nt++;for(var ar=It[Dt-1][qt],sr=It[Dt-1].s,Zt=(It[Nt].s-sr)/(It[Nt][qt]-ar);DtPt[dt]&&dt=0;ot--){var nt=yt[ot];if(nt.type==="scatter"&&nt.xaxis===tt.xaxis&&nt.yaxis===tt.yaxis){nt.opacity=void 0;break}}}}}},18800:function(Ct,Rt,o){var it=o(3400),xt=o(24040),et=o(52904),Tt=o(88200),yt=o(43028),ut=o(43980),ht=o(31147),j=o(43912),_=o(74428),rt=o(66828),tt=o(11731),st=o(124),ot=o(70840),nt=o(3400).coercePattern;Ct.exports=function(dt,bt,ft,at){function mt(It,At){return it.coerce(dt,bt,et,It,At)}var St=ut(dt,bt,at,mt);if(St||(bt.visible=!1),!!bt.visible){ht(dt,bt,at,mt),mt("xhoverformat"),mt("yhoverformat"),mt("zorder");var _t=j(dt,bt,at,mt);at.scattermode==="group"&&bt.orientation===void 0&&mt("orientation","v");var Mt=!_t&&St=Math.min(er,lr)&&dt<=Math.max(er,lr)?0:1/0}var Jt=Math.max(3,qt.mrc||0),Yt=1-1/Jt,rr=Math.abs(nt.c2p(qt.x)-dt);return rr=Math.min(er,lr)&&bt<=Math.max(er,lr)?0:1/0}var Jt=Math.max(3,qt.mrc||0),Yt=1-1/Jt,rr=Math.abs(vt.c2p(qt.y)-bt);return rrar!=Ar>=ar&&(tr=Kt[Zt-1][0],cr=Kt[Zt][0],Ar-mr&&(or=tr+(cr-tr)*(ar-mr)/(Ar-mr),Jt=Math.min(Jt,or),Yt=Math.max(Yt,or)));return Jt=Math.max(Jt,0),Yt=Math.min(Yt,nt._length),{x0:Jt,x1:Yt,y0:ar,y1:ar}}if(at.indexOf("fills")!==-1&&ot._fillElement){var Ht=$t(ot._fillElement)&&!$t(ot._fillExclusionElement);if(Ht){var Vt=Ut(ot._polygons);Vt===null&&(Vt={x0:ft[0],x1:ft[0],y0:ft[1],y1:ft[1]});var Xt=yt.defaultLine;return yt.opacity(ot.fillcolor)?Xt=ot.fillcolor:yt.opacity((ot.line||{}).color)&&(Xt=ot.line.color),it.extendFlat(j,{distance:j.maxHoverDistance,x0:Vt.x0,x1:Vt.x1,y0:Vt.y0,y1:Vt.y1,color:Xt,hovertemplate:!1}),delete j.index,ot.text&&!it.isArrayOrTypedArray(ot.text)?j.text=String(ot.text):j.text=ot.name,[j]}}}},65875:function(Ct,Rt,o){var it=o(43028);Ct.exports={hasLines:it.hasLines,hasMarkers:it.hasMarkers,hasText:it.hasText,isBubble:it.isBubble,attributes:o(52904),layoutAttributes:o(55308),supplyDefaults:o(18800),crossTraceDefaults:o(35036),supplyLayoutDefaults:o(59748),calc:o(16356).calc,crossTraceCalc:o(96664),arraysToCalcdata:o(20148),plot:o(96504),colorbar:o(5528),formatLabels:o(76688),style:o(49224).style,styleOnSelect:o(49224).styleOnSelect,hoverPoints:o(98723),selectPoints:o(91560),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:o(57952),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}},55308:function(Ct){Ct.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}},59748:function(Ct,Rt,o){var it=o(3400),xt=o(55308);Ct.exports=function(et,Tt){function yt(ht,j){return it.coerce(et,Tt,xt,ht,j)}var ut=Tt.barmode==="group";Tt.scattermode==="group"&&yt("scattergap",ut?Tt.bargap:.2)}},66828:function(Ct,Rt,o){var it=o(3400).isArrayOrTypedArray,xt=o(94288).hasColorscale,et=o(27260);Ct.exports=function(yt,ut,ht,j,_,rt){rt||(rt={});var tt=(yt.marker||{}).color;if(tt&&tt._inputArray&&(tt=tt._inputArray),_("line.color",ht),xt(yt,"line"))et(yt,ut,j,_,{prefix:"line.",cLetter:"c"});else{var st=(it(tt)?!1:tt)||ht;_("line.color",st)}_("line.width"),rt.noDash||_("line.dash"),rt.backoff&&_("line.backoff")}},52340:function(Ct,Rt,o){var it=o(43616),xt=o(39032),et=xt.BADNUM,Tt=xt.LOG_CLIP,yt=Tt+.5,ut=Tt-.5,ht=o(3400),j=ht.segmentsIntersect,_=ht.constrain,rt=o(88200);Ct.exports=function(st,ot){var nt=ot.trace||{},vt=ot.xaxis,dt=ot.yaxis,bt=vt.type==="log",ft=dt.type==="log",at=vt._length,mt=dt._length,St=ot.backoff,_t=nt.marker,Mt=ot.connectGaps,Et=ot.baseTolerance,kt=ot.shape,wt=kt==="linear",ct=nt.fill&&nt.fill!=="none",It=[],At=rt.minTolerance,Ot=st.length,Pt=new Array(Ot),zt=0,Dt,Nt,$t,Ut,Ht,Vt,Xt,qt,er,lr,Jt,Yt,rr,jt,ar,sr;function Zt(qr){var rn=st[qr];if(!rn)return!1;var Cn=ot.linearized?vt.l2p(rn.x):vt.c2p(rn.x),xn=ot.linearized?dt.l2p(rn.y):dt.c2p(rn.y);if(Cn===et){if(bt&&(Cn=vt.c2p(rn.x,!0)),Cn===et)return!1;ft&&xn===et&&(Cn*=Math.abs(vt._m*mt*(vt._m>0?yt:ut)/(dt._m*at*(dt._m>0?yt:ut)))),Cn*=1e3}if(xn===et){if(ft&&(xn=dt.c2p(rn.y,!0)),xn===et)return!1;xn*=1e3}return[Cn,xn]}function Kt(qr,rn,Cn,xn){var fn=Cn-qr,bn=xn-rn,Un=.5-qr,_i=.5-rn,yn=fn*fn+bn*bn,Kn=fn*Un+bn*_i;if(Kn>0&&Kn1||Math.abs(Un.y-Cn[0][1])>1)&&(Un=[Un.x,Un.y],xn&&mr(Un,qr)Ir||qr[1]_r)return[_(qr[0],br,Ir),_(qr[1],Tr,_r)]}function en(qr,rn){if(qr[0]===rn[0]&&(qr[0]===br||qr[0]===Ir)||qr[1]===rn[1]&&(qr[1]===Tr||qr[1]===_r))return!0}function Xr(qr,rn){var Cn=[],xn=un(qr),fn=un(rn);return xn&&fn&&en(xn,fn)||(xn&&Cn.push(xn),fn&&Cn.push(fn)),Cn}function ln(qr,rn,Cn){return function(xn,fn){var bn=un(xn),Un=un(fn),_i=[];if(bn&&Un&&en(bn,Un))return _i;bn&&_i.push(bn),Un&&_i.push(Un);var yn=2*ht.constrain((xn[qr]+fn[qr])/2,rn,Cn)-((bn||xn)[qr]+(Un||fn)[qr]);if(yn){var Kn;bn&&Un?Kn=yn>0==bn[qr]>Un[qr]?bn:Un:Kn=bn||Un,Kn[qr]+=yn}return _i}}var mn;kt==="linear"||kt==="spline"?mn=sn:kt==="hv"||kt==="vh"?mn=Xr:kt==="hvh"?mn=ln(0,br,Ir):kt==="vhv"&&(mn=ln(1,Tr,_r));function pn(qr,rn){var Cn=rn[0]-qr[0],xn=(rn[1]-qr[1])/Cn,fn=(qr[1]*rn[0]-rn[1]*qr[0])/Cn;return fn>0?[xn>0?br:Ir,_r]:[xn>0?Ir:br,Tr]}function Tn(qr){var rn=qr[0],Cn=qr[1],xn=rn===Pt[zt-1][0],fn=Cn===Pt[zt-1][1];if(!(xn&&fn))if(zt>1){var bn=rn===Pt[zt-2][0],Un=Cn===Pt[zt-2][1];xn&&(rn===br||rn===Ir)&&bn?Un?zt--:Pt[zt-1]=qr:fn&&(Cn===Tr||Cn===_r)&&Un?bn?zt--:Pt[zt-1]=qr:Pt[zt++]=qr}else Pt[zt++]=qr}function Zr(qr){Pt[zt-1][0]!==qr[0]&&Pt[zt-1][1]!==qr[1]&&Tn([Or,kr]),Tn(qr),Nr=null,Or=kr=0}var Fr=ht.isArrayOrTypedArray(_t);function Ur(qr){if(qr&&St&&(qr.i=Dt,qr.d=st,qr.trace=nt,qr.marker=Fr?_t[qr.i]:_t,qr.backoff=St),or=qr[0]/at,tr=qr[1]/mt,Rr=qr[0]Ir?Ir:0,zr=qr[1]_r?_r:0,Rr||zr){if(!zt)Pt[zt++]=[Rr||qr[0],zr||qr[1]];else if(Nr){var rn=mn(Nr,qr);rn.length>1&&(Zr(rn[0]),Pt[zt++]=rn[1])}else Qr=mn(Pt[zt-1],qr)[0],Pt[zt++]=Qr;var Cn=Pt[zt-1];Rr&&zr&&(Cn[0]!==Rr||Cn[1]!==zr)?(Nr&&(Or!==Rr&&kr!==zr?Tn(Or&&kr?pn(Nr,qr):[Or||Rr,kr||zr]):Or&&kr&&Tn([Or,kr])),Tn([Rr,zr])):Or-Rr&&kr-zr&&Tn([Rr||Or,zr||kr]),Nr=qr,Or=Rr,kr=zr}else Nr&&Zr(mn(Nr,qr)[0]),Pt[zt++]=qr}for(Dt=0;Dtcr(Vt,Wr))break;$t=Vt,rr=er[0]*qt[0]+er[1]*qt[1],rr>Jt?(Jt=rr,Ut=Vt,Xt=!1):rr=st.length||!Vt)break;Ur(Vt),Nt=Vt}}Nr&&Tn([Or||Nr[0],kr||Nr[1]]),It.push(Pt.slice(0,zt))}var Gr=kt.slice(kt.length-1);if(St&&Gr!=="h"&&Gr!=="v"){for(var wr=!1,pr=-1,Dr=[],Sr=0;Sr=0?j=ot:(j=ot=st,st++),j0?Math.max(rt,ht):0}}},5528:function(Ct){Ct.exports={container:"marker",min:"cmin",max:"cmax"}},74428:function(Ct,Rt,o){var it=o(76308),xt=o(94288).hasColorscale,et=o(27260),Tt=o(43028);Ct.exports=function(ut,ht,j,_,rt,tt){var st=Tt.isBubble(ut),ot=(ut.line||{}).color,nt;if(tt=tt||{},ot&&(j=ot),rt("marker.symbol"),rt("marker.opacity",st?.7:1),rt("marker.size"),tt.noAngle||(rt("marker.angle"),tt.noAngleRef||rt("marker.angleref"),tt.noStandOff||rt("marker.standoff")),rt("marker.color",j),xt(ut,"marker")&&et(ut,ht,_,rt,{prefix:"marker.",cLetter:"c"}),tt.noSelect||(rt("selected.marker.color"),rt("unselected.marker.color"),rt("selected.marker.size"),rt("unselected.marker.size")),tt.noLine||(ot&&!Array.isArray(ot)&&ht.marker.color!==ot?nt=ot:st?nt=it.background:nt=it.defaultLine,rt("marker.line.color",nt),xt(ut,"marker.line")&&et(ut,ht,_,rt,{prefix:"marker.line.",cLetter:"c"}),rt("marker.line.width",st?1:0)),st&&(rt("marker.sizeref"),rt("marker.sizemin"),rt("marker.sizemode")),tt.gradient){var vt=rt("marker.gradient.type");vt!=="none"&&rt("marker.gradient.color")}}},31147:function(Ct,Rt,o){var it=o(3400).dateTick0,xt=o(39032),et=xt.ONEWEEK;function Tt(yt,ut){return yt%et===0?it(ut,1):it(ut,0)}Ct.exports=function(ut,ht,j,_,rt){if(rt||(rt={x:!0,y:!0}),rt.x){var tt=_("xperiod");tt&&(_("xperiod0",Tt(tt,ht.xcalendar)),_("xperiodalignment"))}if(rt.y){var st=_("yperiod");st&&(_("yperiod0",Tt(st,ht.ycalendar)),_("yperiodalignment"))}}},96504:function(Ct,Rt,o){var it=o(33428),xt=o(24040),et=o(3400),Tt=et.ensureSingle,yt=et.identity,ut=o(43616),ht=o(43028),j=o(52340),_=o(14328),rt=o(92065).tester;Ct.exports=function(vt,dt,bt,ft,at,mt){var St,_t,Mt=!at,Et=!!at&&at.duration>0,kt=_(vt,dt,bt);if(St=ft.selectAll("g.trace").data(kt,function(ct){return ct[0].trace.uid}),St.enter().append("g").attr("class",function(ct){return"trace scatter trace"+ct[0].trace.uid}).style("stroke-miterlimit",2),St.order(),tt(vt,St,dt),Et){mt&&(_t=mt());var wt=it.transition().duration(at.duration).ease(at.easing).each("end",function(){_t&&_t()}).each("interrupt",function(){_t&&_t()});wt.each(function(){ft.selectAll("g.trace").each(function(ct,It){st(vt,It,dt,ct,kt,this,at)})})}else St.each(function(ct,It){st(vt,It,dt,ct,kt,this,at)});Mt&&St.exit().remove(),ft.selectAll("path:not([d])").remove()};function tt(nt,vt,dt){vt.each(function(bt){var ft=Tt(it.select(this),"g","fills");ut.setClipUrl(ft,dt.layerClipId,nt);var at=bt[0].trace,mt=[];at._ownfill&&mt.push("_ownFill"),at._nexttrace&&mt.push("_nextFill");var St=ft.selectAll("g").data(mt,yt);St.enter().append("g"),St.exit().each(function(_t){at[_t]=null}).remove(),St.order().each(function(_t){at[_t]=Tt(it.select(this),"path","js-fill")})})}function st(nt,vt,dt,bt,ft,at,mt){var St=nt._context.staticPlot,_t;ot(nt,vt,dt,bt,ft);var Mt=!!mt&&mt.duration>0;function Et(Tn){return Mt?Tn.transition():Tn}var kt=dt.xaxis,wt=dt.yaxis,ct=bt[0].trace,It=ct.line,At=it.select(at),Ot=Tt(At,"g","errorbars"),Pt=Tt(At,"g","lines"),zt=Tt(At,"g","points"),Dt=Tt(At,"g","text");if(xt.getComponentMethod("errorbars","plot")(nt,Ot,dt,mt),ct.visible!==!0)return;Et(At).style("opacity",ct.opacity);var Nt,$t,Ut=ct.fill.charAt(ct.fill.length-1);Ut!=="x"&&Ut!=="y"&&(Ut="");var Ht,Vt;Ut==="y"?(Ht=1,Vt=wt.c2p(0,!0)):Ut==="x"&&(Ht=0,Vt=kt.c2p(0,!0)),bt[0][dt.isRangePlot?"nodeRangePlot3":"node3"]=At;var Xt="",qt=[],er=ct._prevtrace,lr=null,Jt=null;er&&(Xt=er._prevRevpath||"",$t=er._nextFill,qt=er._ownPolygons,lr=er._fillsegments,Jt=er._fillElement);var Yt,rr,jt="",ar="",sr,Zt,Kt,or,tr,cr,mr=[];ct._polygons=[];var Ar=[],br=[],Ir=et.noop;if(Nt=ct._ownFill,ht.hasLines(ct)||ct.fill!=="none"){$t&&$t.datum(bt),["hv","vh","hvh","vhv"].indexOf(It.shape)!==-1?(sr=ut.steps(It.shape),Zt=ut.steps(It.shape.split("").reverse().join(""))):It.shape==="spline"?sr=Zt=function(Tn){var Zr=Tn[Tn.length-1];return Tn.length>1&&Tn[0][0]===Zr[0]&&Tn[0][1]===Zr[1]?ut.smoothclosed(Tn.slice(1),It.smoothing):ut.smoothopen(Tn,It.smoothing)}:sr=Zt=function(Tn){return"M"+Tn.join("L")},Kt=function(Tn){return Zt(Tn.reverse())},br=j(bt,{xaxis:kt,yaxis:wt,trace:ct,connectGaps:ct.connectgaps,baseTolerance:Math.max(It.width||1,3)/4,shape:It.shape,backoff:It.backoff,simplify:It.simplify,fill:ct.fill}),Ar=new Array(br.length);var Tr=0;for(_t=0;_t=St[0]&&At.x<=St[1]&&At.y>=_t[0]&&At.y<=_t[1]}),wt=Math.ceil(kt.length/Et),ct=0;ft.forEach(function(At,Ot){var Pt=At[0].trace;ht.hasMarkers(Pt)&&Pt.marker.maxdisplayed>0&&Ot0){var dt=j.c2l(nt);j._lowerLogErrorBound||(j._lowerLogErrorBound=dt),j._lowerErrorBound=Math.min(j._lowerLogErrorBound,dt)}}else rt[tt]=[-st[0]*ht,st[1]*ht]}return rt}function et(yt){for(var ut=0;ut-1?-1:At.indexOf("right")>-1?1:0}function mt(At){return At==null?0:At.indexOf("top")>-1?-1:At.indexOf("bottom")>-1?1:0}function St(At){var Ot=0,Pt=0,zt=[Ot,Pt];if(Array.isArray(At))for(var Dt=0;Dt=0){var Vt=bt(Ut.position,Ut.delaunayColor,Ut.delaunayAxis);Vt.opacity=At.opacity,this.delaunayMesh?this.delaunayMesh.update(Vt):(Vt.gl=Ot,this.delaunayMesh=Tt(Vt),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)},dt.dispose=function(){this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&&(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())};function It(At,Ot){var Pt=new vt(At,Ot.uid);return Pt.update(Ot),Pt}Ct.exports=It},83484:function(Ct,Rt,o){var it=o(24040),xt=o(3400),et=o(43028),Tt=o(74428),yt=o(66828),ut=o(124),ht=o(91592);Ct.exports=function(rt,tt,st,ot){function nt(_t,Mt){return xt.coerce(rt,tt,ht,_t,Mt)}var vt=j(rt,tt,nt,ot);if(!vt){tt.visible=!1;return}nt("text"),nt("hovertext"),nt("hovertemplate"),nt("xhoverformat"),nt("yhoverformat"),nt("zhoverformat"),nt("mode"),et.hasMarkers(tt)&&Tt(rt,tt,st,ot,nt,{noSelect:!0,noAngle:!0}),et.hasLines(tt)&&(nt("connectgaps"),yt(rt,tt,st,ot,nt)),et.hasText(tt)&&(nt("texttemplate"),ut(rt,tt,ot,nt,{noSelect:!0}));var dt=(tt.line||{}).color,bt=(tt.marker||{}).color;nt("surfaceaxis")>=0&&nt("surfacecolor",dt||bt);for(var ft=["x","y","z"],at=0;at<3;++at){var mt="projection."+ft[at];nt(mt+".show")&&(nt(mt+".opacity"),nt(mt+".scale"))}var St=it.getComponentMethod("errorbars","supplyDefaults");St(rt,tt,dt||bt||st,{axis:"z"}),St(rt,tt,dt||bt||st,{axis:"y",inherit:"z"}),St(rt,tt,dt||bt||st,{axis:"x",inherit:"z"})};function j(_,rt,tt,st){var ot=0,nt=tt("x"),vt=tt("y"),dt=tt("z"),bt=it.getComponentMethod("calendars","handleTraceDefaults");return bt(_,rt,["x","y","z"],st),nt&&vt&&dt&&(ot=Math.min(nt.length,vt.length,dt.length),rt._length=rt._xlength=rt._ylength=rt._zlength=ot),ot}},3296:function(Ct,Rt,o){Ct.exports={plot:o(41064),attributes:o(91592),markerSymbols:o(87792),supplyDefaults:o(83484),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:o(41484),moduleType:"trace",name:"scatter3d",basePlotModule:o(12536),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}},90372:function(Ct,Rt,o){var it=o(98304),xt=o(52904),et=o(45464),Tt=o(21776).Ks,yt=o(21776).Gw,ut=o(49084),ht=o(92880).extendFlat,j=xt.marker,_=xt.line,rt=j.line;Ct.exports={carpet:{valType:"string",editType:"calc"},a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},mode:ht({},xt.mode,{dflt:"markers"}),text:ht({},xt.text,{}),texttemplate:yt({editType:"plot"},{keys:["a","b","text"]}),hovertext:ht({},xt.hovertext,{}),line:{color:_.color,width:_.width,dash:_.dash,backoff:_.backoff,shape:ht({},_.shape,{values:["linear","spline"]}),smoothing:_.smoothing,editType:"calc"},connectgaps:xt.connectgaps,fill:ht({},xt.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:it(),marker:ht({symbol:j.symbol,opacity:j.opacity,maxdisplayed:j.maxdisplayed,angle:j.angle,angleref:j.angleref,standoff:j.standoff,size:j.size,sizeref:j.sizeref,sizemin:j.sizemin,sizemode:j.sizemode,line:ht({width:rt.width,editType:"calc"},ut("marker.line")),gradient:j.gradient,editType:"calc"},ut("marker")),textfont:xt.textfont,textposition:xt.textposition,selected:xt.selected,unselected:xt.unselected,hoverinfo:ht({},et.hoverinfo,{flags:["a","b","text","name"]}),hoveron:xt.hoveron,hovertemplate:Tt(),zorder:xt.zorder}},48228:function(Ct,Rt,o){var it=o(38248),xt=o(90136),et=o(20148),Tt=o(4500),yt=o(16356).calcMarkerSize,ut=o(50948);Ct.exports=function(j,_){var rt=_._carpetTrace=ut(j,_);if(!(!rt||!rt.visible||rt.visible==="legendonly")){var tt;_.xaxis=rt.xaxis,_.yaxis=rt.yaxis;var st=_._length,ot=new Array(st),nt,vt,dt=!1;for(tt=0;tt0?Et=_t.labelprefix.replace(/ = $/,""):Et=_t._hovertitle,ft.push(Et+": "+Mt.toFixed(3)+_t.labelsuffix)}if(!vt.hovertemplate){var mt=nt.hi||vt.hoverinfo,St=mt.split("+");St.indexOf("all")!==-1&&(St=["a","b","text"]),St.indexOf("a")!==-1&&at(dt.aaxis,nt.a),St.indexOf("b")!==-1&&at(dt.baxis,nt.b),ft.push("y: "+_.yLabel),St.indexOf("text")!==-1&&xt(nt,vt,ft),_.extraText=ft.join("
")}return j}},4184:function(Ct,Rt,o){Ct.exports={attributes:o(90372),supplyDefaults:o(6176),colorbar:o(5528),formatLabels:o(52364),calc:o(48228),plot:o(20036),style:o(49224).style,styleOnSelect:o(49224).styleOnSelect,hoverPoints:o(58960),selectPoints:o(91560),eventData:o(89307),moduleType:"trace",name:"scattercarpet",basePlotModule:o(57952),categories:["svg","carpet","symbols","showLegend","carpetDependent","zoomScale"],meta:{}}},20036:function(Ct,Rt,o){var it=o(96504),xt=o(54460),et=o(43616);Ct.exports=function(yt,ut,ht,j){var _,rt,tt,st=ht[0][0].carpet,ot=xt.getFromId(yt,st.xaxis||"x"),nt=xt.getFromId(yt,st.yaxis||"y"),vt={xaxis:ot,yaxis:nt,plot:ut.plot};for(_=0;_")}},36952:function(Ct,Rt,o){Ct.exports={attributes:o(6096),supplyDefaults:o(86188),colorbar:o(5528),formatLabels:o(56696),calc:o(25212),calcGeoJSON:o(48691).calcGeoJSON,plot:o(48691).plot,style:o(25064),styleOnSelect:o(49224).styleOnSelect,hoverPoints:o(64292),eventData:o(58544),selectPoints:o(8796),moduleType:"trace",name:"scattergeo",basePlotModule:o(10816),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}},48691:function(Ct,Rt,o){var it=o(33428),xt=o(3400),et=o(59972).getTopojsonFeatures,Tt=o(44808),yt=o(27144),ut=o(19280).findExtremes,ht=o(39032).BADNUM,j=o(16356).calcMarkerSize,_=o(43028),rt=o(25064);function tt(ot,nt,vt){var dt=nt.layers.frontplot.select(".scatterlayer"),bt=xt.makeTraceGroups(dt,vt,"trace scattergeo");function ft(at,mt){at.lonlat[0]===ht&&it.select(mt).remove()}bt.selectAll("*").remove(),bt.each(function(at){var mt=it.select(this),St=at[0].trace;if(_.hasLines(St)||St.fill!=="none"){var _t=Tt.calcTraceToLineCoords(at),Mt=St.fill!=="none"?Tt.makePolygon(_t):Tt.makeLine(_t);mt.selectAll("path.js-line").data([{geojson:Mt,trace:St}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}_.hasMarkers(St)&&mt.selectAll("path.point").data(xt.identity).enter().append("path").classed("point",!0).each(function(Et){ft(Et,this)}),_.hasText(St)&&mt.selectAll("g").data(xt.identity).enter().append("g").append("text").each(function(Et){ft(Et,this)}),rt(ot,at)})}function st(ot,nt){var vt=ot[0].trace,dt=nt[vt.geo],bt=dt._subplot,ft=vt._length,at,mt;if(xt.isArrayOrTypedArray(vt.locations)){var St=vt.locationmode,_t=St==="geojson-id"?yt.extractTraceFeature(ot):et(vt,bt.topojson);for(at=0;at=nt,wt=Et*2,ct={},It,At=St.makeCalcdata(at,"x"),Ot=_t.makeCalcdata(at,"y"),Pt=yt(at,St,"x",At),zt=yt(at,_t,"y",Ot),Dt=Pt.vals,Nt=zt.vals;at._x=Dt,at._y=Nt,at.xperiodalignment&&(at._origX=At,at._xStarts=Pt.starts,at._xEnds=Pt.ends),at.yperiodalignment&&(at._origY=Ot,at._yStarts=zt.starts,at._yEnds=zt.ends);var $t=new Array(wt),Ut=new Array(Et);for(It=0;It1&&xt.extendFlat(Mt.line,tt.linePositions(bt,at,mt)),Mt.errorX||Mt.errorY){var Et=tt.errorBarPositions(bt,at,mt,St,_t);Mt.errorX&&xt.extendFlat(Mt.errorX,Et.x),Mt.errorY&&xt.extendFlat(Mt.errorY,Et.y)}return Mt.text&&(xt.extendFlat(Mt.text,{positions:mt},tt.textPosition(bt,at,Mt.text,Mt.marker)),xt.extendFlat(Mt.textSel,{positions:mt},tt.textPosition(bt,at,Mt.text,Mt.markerSel)),xt.extendFlat(Mt.textUnsel,{positions:mt},tt.textPosition(bt,at,Mt.text,Mt.markerUnsel))),Mt}},67072:function(Ct){var Rt=20;Ct.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:Rt,SYMBOL_STROKE:Rt/20,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}},84236:function(Ct,Rt,o){var it=o(38248),xt=o(20472),et=o(72160),Tt=o(24040),yt=o(3400),ut=yt.isArrayOrTypedArray,ht=o(43616),j=o(79811),_=o(33040).formatColor,rt=o(43028),tt=o(7152),st=o(80088),ot=o(67072),nt=o(13448).DESELECTDIM,vt={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},dt=o(10624).appendArrayPointValue;function bt(zt,Dt){var Nt,$t={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0},Ut=zt._context.plotGlPixelRatio;if(Dt.visible!==!0)return $t;if(rt.hasText(Dt)&&($t.text=ft(zt,Dt),$t.textSel=St(zt,Dt,Dt.selected),$t.textUnsel=St(zt,Dt,Dt.unselected)),rt.hasMarkers(Dt)&&($t.marker=at(zt,Dt),$t.markerSel=mt(zt,Dt,Dt.selected),$t.markerUnsel=mt(zt,Dt,Dt.unselected),!Dt.unselected&&ut(Dt.marker.opacity))){var Ht=Dt.marker.opacity;for($t.markerUnsel.opacity=new Array(Ht.length),Nt=0;Ntot.TOO_MANY_POINTS||rt.hasMarkers(Dt)?"rect":"round";if(er&&Dt.connectgaps){var Jt=Ht[0],Yt=Ht[1];for(Vt=0;Vt1?qt[Vt]:qt[0]:qt,rr=ut(er)?er.length>1?er[Vt]:er[0]:er,jt=vt[Yt],ar=vt[rr],sr=lr?lr/.8+1:0,Zt=-ar*sr-ar*.5;Ht.offset[Vt]=[jt*sr/Jt,Zt/Jt]}}return Ht}Ct.exports={style:bt,markerStyle:at,markerSelection:mt,linePositions:At,errorBarPositions:Ot,textPosition:Pt}},80220:function(Ct,Rt,o){var it=o(3400),xt=o(24040),et=o(80088),Tt=o(2876),yt=o(88200),ut=o(43028),ht=o(43980),j=o(31147),_=o(74428),rt=o(66828),tt=o(70840),st=o(124);Ct.exports=function(nt,vt,dt,bt){function ft(wt,ct){return it.coerce(nt,vt,Tt,wt,ct)}var at=nt.marker?et.isOpenSymbol(nt.marker.symbol):!1,mt=ut.isBubble(nt),St=ht(nt,vt,bt,ft);if(!St){vt.visible=!1;return}j(nt,vt,bt,ft),ft("xhoverformat"),ft("yhoverformat");var _t=St100},Rt.isDotSymbol=function(xt){return typeof xt=="string"?it.DOT_RE.test(xt):xt>200}},41272:function(Ct,Rt,o){var it=o(24040),xt=o(3400),et=o(44928);function Tt(ut,ht,j,_){var rt=ut.cd,tt=rt[0].t,st=rt[0].trace,ot=ut.xa,nt=ut.ya,vt=tt.x,dt=tt.y,bt=ot.c2p(ht),ft=nt.c2p(j),at=ut.distance,mt;if(tt.tree){var St=ot.p2c(bt-at),_t=ot.p2c(bt+at),Mt=nt.p2c(ft-at),Et=nt.p2c(ft+at);_==="x"?mt=tt.tree.range(Math.min(St,_t),Math.min(nt._rl[0],nt._rl[1]),Math.max(St,_t),Math.max(nt._rl[0],nt._rl[1])):mt=tt.tree.range(Math.min(St,_t),Math.min(Mt,Et),Math.max(St,_t),Math.max(Mt,Et))}else mt=tt.ids;var kt,wt,ct,It,At,Ot,Pt,zt,Dt,Nt=at;if(_==="x"){var $t=!!st.xperiodalignment,Ut=!!st.yperiodalignment;for(At=0;At=Math.min(Ht,Vt)&&bt<=Math.max(Ht,Vt)?0:1/0}if(Ot=Math.min(Xt,qt)&&ft<=Math.max(Xt,qt)?0:1/0}Dt=Math.sqrt(Ot*Ot+Pt*Pt),wt=mt[At]}}}else for(At=mt.length-1;At>-1;At--)kt=mt[At],ct=vt[kt],It=dt[kt],Ot=ot.c2p(ct)-bt,Pt=nt.c2p(It)-ft,zt=Math.sqrt(Ot*Ot+Pt*Pt),ztat.glText.length){var ct=kt-at.glText.length;for(_t=0;_tor&&(isNaN(Kt[tr])||isNaN(Kt[tr+1]));)tr-=2;Zt.positions=Kt.slice(or,tr+2)}return Zt}),at.line2d.update(at.lineOptions)),at.error2d){var Ot=(at.errorXOptions||[]).concat(at.errorYOptions||[]);at.error2d.update(Ot)}at.scatter2d&&at.scatter2d.update(at.markerOptions),at.fillOrder=yt.repeat(null,kt),at.fill2d&&(at.fillOptions=at.fillOptions.map(function(Zt,Kt){var or=bt[Kt];if(!(!Zt||!or||!or[0]||!or[0].trace)){var tr=or[0],cr=tr.trace,mr=tr.t,Ar=at.lineOptions[Kt],br,Ir,Tr=[];cr._ownfill&&Tr.push(Kt),cr._nexttrace&&Tr.push(Kt+1),Tr.length&&(at.fillOrder[Kt]=Tr);var _r=[],Er=Ar&&Ar.positions||mr.positions,Rr,zr;if(cr.fill==="tozeroy"){for(Rr=0;RrRr&&isNaN(Er[zr+1]);)zr-=2;Er[Rr+1]!==0&&(_r=[Er[Rr],0]),_r=_r.concat(Er.slice(Rr,zr+2)),Er[zr+1]!==0&&(_r=_r.concat([Er[zr],0]))}else if(cr.fill==="tozerox"){for(Rr=0;RrRr&&isNaN(Er[zr]);)zr-=2;Er[Rr]!==0&&(_r=[0,Er[Rr+1]]),_r=_r.concat(Er.slice(Rr,zr+2)),Er[zr]!==0&&(_r=_r.concat([0,Er[zr+1]]))}else if(cr.fill==="toself"||cr.fill==="tonext"){for(_r=[],br=0,Zt.splitNull=!0,Ir=0;Ir-1;for(_t=0;_t=0?Math.floor((rt+180)/360):Math.ceil((rt-180)/360),_t=St*360,Mt=rt-_t;function Et(Dt){var Nt=Dt.lonlat;if(Nt[0]===yt||at&&bt.indexOf(Dt.i+1)===-1)return 1/0;var $t=xt.modHalf(Nt[0],360),Ut=Nt[1],Ht=dt.project([$t,Ut]),Vt=Ht.x-nt.c2p([Mt,Ut]),Xt=Ht.y-vt.c2p([$t,tt]),qt=Math.max(3,Dt.mrc||0);return Math.max(Math.sqrt(Vt*Vt+Xt*Xt)-qt,1-3/qt)}if(it.getClosest(st,Et,_),_.index!==!1){var kt=st[_.index],wt=kt.lonlat,ct=[xt.modHalf(wt[0],360)+_t,wt[1]],It=nt.c2p(ct),At=vt.c2p(ct),Ot=kt.mrc||1;_.x0=It-Ot,_.x1=It+Ot,_.y0=At-Ot,_.y1=At+Ot;var Pt={};Pt[ot.subplot]={_subplot:dt};var zt=ot._module.formatLabels(kt,ot,Pt);return _.lonLabel=zt.lonLabel,_.latLabel=zt.latLabel,_.color=et(ot,kt),_.extraText=j(ot,kt,st[0].t.labels),_.hovertemplate=ot.hovertemplate,[_]}}function j(_,rt,tt){if(_.hovertemplate)return;var st=rt.hi||_.hoverinfo,ot=st.split("+"),nt=ot.indexOf("all")!==-1,vt=ot.indexOf("lon")!==-1,dt=ot.indexOf("lat")!==-1,bt=rt.lonlat,ft=[];function at(mt){return mt+"°"}return nt||vt&&dt?ft.push("("+at(bt[1])+", "+at(bt[0])+")"):vt?ft.push(tt.lon+at(bt[0])):dt&&ft.push(tt.lat+at(bt[1])),(nt||ot.indexOf("text")!==-1)&&Tt(rt,_,ft),ft.join("
")}Ct.exports={hoverPoints:ht,getExtraText:j}},11572:function(Ct,Rt,o){Ct.exports={attributes:o(31512),supplyDefaults:o(15752),colorbar:o(5528),formatLabels:o(11960),calc:o(25212),plot:o(9660),hoverPoints:o(63312).hoverPoints,eventData:o(37920),selectPoints:o(404),styleOnSelect:function(it,xt){if(xt){var et=xt[0].trace;et._glTrace.update(xt)}},moduleType:"trace",name:"scattermapbox",basePlotModule:o(33688),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{}}},9660:function(Ct,Rt,o){var it=o(3400),xt=o(59392),et=o(47552).traceLayerPrefix,Tt={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function yt(ht,j,_,rt){this.type="scattermapbox",this.subplot=ht,this.uid=j,this.clusterEnabled=_,this.isHidden=rt,this.sourceIds={fill:"source-"+j+"-fill",line:"source-"+j+"-line",circle:"source-"+j+"-circle",symbol:"source-"+j+"-symbol",cluster:"source-"+j+"-circle",clusterCount:"source-"+j+"-circle"},this.layerIds={fill:et+j+"-fill",line:et+j+"-line",circle:et+j+"-circle",symbol:et+j+"-symbol",cluster:et+j+"-cluster",clusterCount:et+j+"-cluster-count"},this.below=null}var ut=yt.prototype;ut.addSource=function(ht,j,_){var rt={type:"geojson",data:j.geojson};_&&_.enabled&&it.extendFlat(rt,{cluster:!0,clusterMaxZoom:_.maxzoom});var tt=this.subplot.map.getSource(this.sourceIds[ht]);tt?tt.setData(j.geojson):this.subplot.map.addSource(this.sourceIds[ht],rt)},ut.setSourceData=function(ht,j){this.subplot.map.getSource(this.sourceIds[ht]).setData(j.geojson)},ut.addLayer=function(ht,j,_){var rt={type:j.type,id:this.layerIds[ht],source:this.sourceIds[ht],layout:j.layout,paint:j.paint};j.filter&&(rt.filter=j.filter);for(var tt=this.layerIds[ht],st,ot=this.subplot.getMapLayers(),nt=0;nt=0;It--){var At=ct[It];tt.removeLayer(dt.layerIds[At])}wt||tt.removeSource(dt.sourceIds.circle)}function at(wt){for(var ct=Tt.nonCluster,It=0;It=0;It--){var At=ct[It];tt.removeLayer(dt.layerIds[At]),wt||tt.removeSource(dt.sourceIds[At])}}function St(wt){vt?ft(wt):mt(wt)}function _t(wt){nt?bt(wt):at(wt)}function Mt(){for(var wt=nt?Tt.cluster:Tt.nonCluster,ct=0;ct=0;rt--){var tt=_[rt];j.removeLayer(this.layerIds[tt]),j.removeSource(this.sourceIds[tt])}},Ct.exports=function(j,_){var rt=_[0].trace,tt=rt.cluster&&rt.cluster.enabled,st=rt.visible!==!0,ot=new yt(j,rt.uid,tt,st),nt=xt(j.gd,_),vt=ot.below=j.belowLookup["trace-"+rt.uid],dt,bt,ft;if(tt)for(ot.addSource("circle",nt.circle,rt.cluster),dt=0;dt")}}Ct.exports={hoverPoints:xt,makeHoverPointText:et}},76924:function(Ct,Rt,o){Ct.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:o(40872),categories:["polar","symbols","showLegend","scatter-like"],attributes:o(8319),supplyDefaults:o(85968).supplyDefaults,colorbar:o(5528),formatLabels:o(22852),calc:o(58320),plot:o(43456),style:o(49224).style,styleOnSelect:o(49224).styleOnSelect,hoverPoints:o(8504).hoverPoints,selectPoints:o(91560),meta:{}}},43456:function(Ct,Rt,o){var it=o(96504),xt=o(39032).BADNUM;Ct.exports=function(Tt,yt,ut){for(var ht=yt.layers.frontplot.select("g.scatterlayer"),j=yt.xaxis,_=yt.yaxis,rt={xaxis:j,yaxis:_,plot:yt.framework,layerClipId:yt._hasClipOnAxisFalse?yt.clipIds.forTraces:null},tt=yt.radialAxis,st=yt.angularAxis,ot=0;ot=ht&&(Mt.marker.cluster=at.tree),Mt.marker&&(Mt.markerSel.positions=Mt.markerUnsel.positions=Mt.marker.positions=ct),Mt.line&&ct.length>1&&ut.extendFlat(Mt.line,yt.linePositions(rt,ft,ct)),Mt.text&&(ut.extendFlat(Mt.text,{positions:ct},yt.textPosition(rt,ft,Mt.text,Mt.marker)),ut.extendFlat(Mt.textSel,{positions:ct},yt.textPosition(rt,ft,Mt.text,Mt.markerSel)),ut.extendFlat(Mt.textUnsel,{positions:ct},yt.textPosition(rt,ft,Mt.text,Mt.markerUnsel))),Mt.fill&&!vt.fill2d&&(vt.fill2d=!0),Mt.marker&&!vt.scatter2d&&(vt.scatter2d=!0),Mt.line&&!vt.line2d&&(vt.line2d=!0),Mt.text&&!vt.glText&&(vt.glText=!0),vt.lineOptions.push(Mt.line),vt.fillOptions.push(Mt.fill),vt.markerOptions.push(Mt.marker),vt.markerSelectedOptions.push(Mt.markerSel),vt.markerUnselectedOptions.push(Mt.markerUnsel),vt.textOptions.push(Mt.text),vt.textSelectedOptions.push(Mt.textSel),vt.textUnselectedOptions.push(Mt.textUnsel),vt.selectBatch.push([]),vt.unselectBatch.push([]),at.x=It,at.y=At,at.rawx=It,at.rawy=At,at.r=St,at.theta=_t,at.positions=ct,at._scene=vt,at.index=vt.count,vt.count++}}),et(rt,tt,st)}},Ct.exports.reglPrecompiled=j},69496:function(Ct,Rt,o){var it=o(21776).Ks,xt=o(21776).Gw,et=o(92880).extendFlat,Tt=o(98304),yt=o(52904),ut=o(45464),ht=yt.line;Ct.exports={mode:yt.mode,real:{valType:"data_array",editType:"calc+clearAxisTypes"},imag:{valType:"data_array",editType:"calc+clearAxisTypes"},text:yt.text,texttemplate:xt({editType:"plot"},{keys:["real","imag","text"]}),hovertext:yt.hovertext,line:{color:ht.color,width:ht.width,dash:ht.dash,backoff:ht.backoff,shape:et({},ht.shape,{values:["linear","spline"]}),smoothing:ht.smoothing,editType:"calc"},connectgaps:yt.connectgaps,marker:yt.marker,cliponaxis:et({},yt.cliponaxis,{dflt:!1}),textposition:yt.textposition,textfont:yt.textfont,fill:et({},yt.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:Tt(),hoverinfo:et({},ut.hoverinfo,{flags:["real","imag","text","name"]}),hoveron:yt.hoveron,hovertemplate:it(),selected:yt.selected,unselected:yt.unselected}},47507:function(Ct,Rt,o){var it=o(38248),xt=o(39032).BADNUM,et=o(90136),Tt=o(20148),yt=o(4500),ut=o(16356).calcMarkerSize;Ct.exports=function(j,_){for(var rt=j._fullLayout,tt=_.subplot,st=rt[tt].realaxis,ot=rt[tt].imaginaryaxis,nt=st.makeCalcdata(_,"real"),vt=ot.makeCalcdata(_,"imag"),dt=_._length,bt=new Array(dt),ft=0;ft")}}Ct.exports={hoverPoints:xt,makeHoverPointText:et}},95443:function(Ct,Rt,o){Ct.exports={moduleType:"trace",name:"scattersmith",basePlotModule:o(47788),categories:["smith","symbols","showLegend","scatter-like"],attributes:o(69496),supplyDefaults:o(76716),colorbar:o(5528),formatLabels:o(49504),calc:o(47507),plot:o(34927),style:o(49224).style,styleOnSelect:o(49224).styleOnSelect,hoverPoints:o(25292).hoverPoints,selectPoints:o(91560),meta:{}}},34927:function(Ct,Rt,o){var it=o(96504),xt=o(39032).BADNUM,et=o(36416),Tt=et.smith;Ct.exports=function(ut,ht,j){for(var _=ht.layers.frontplot.select("g.scatterlayer"),rt=ht.xaxis,tt=ht.yaxis,st={xaxis:rt,yaxis:tt,plot:ht.framework,layerClipId:ht._hasClipOnAxisFalse?ht.clipIds.forTraces:null},ot=0;ot"),j.hovertemplate=nt.hovertemplate,ht}},34864:function(Ct,Rt,o){Ct.exports={attributes:o(5896),supplyDefaults:o(84256),colorbar:o(5528),formatLabels:o(90404),calc:o(34335),plot:o(88776),style:o(49224).style,styleOnSelect:o(49224).styleOnSelect,hoverPoints:o(26596),selectPoints:o(91560),eventData:o(97476),moduleType:"trace",name:"scatterternary",basePlotModule:o(19352),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}},88776:function(Ct,Rt,o){var it=o(96504);Ct.exports=function(et,Tt,yt){var ut=Tt.plotContainer;ut.select(".scatterlayer").selectAll("*").remove();for(var ht=Tt.xaxis,j=Tt.yaxis,_={xaxis:ht,yaxis:j,plot:ut,layerClipId:Tt._hasClipOnAxisFalse?Tt.clipIdRelative:null},rt=Tt.layers.frontplot.select("g.scatterlayer"),tt=0;ttrt,It;for(ct?It=dt.sizeAvg||Math.max(dt.size,3):It=et(ot,vt),St=0;Stmt&&dt||at-1,Dt=Tt(dt)||!!rt.selectedpoints||zt,Nt=!0;if(Dt){var $t=rt._length;if(rt.selectedpoints){st.selectBatch=rt.selectedpoints;var Ut=rt.selectedpoints,Ht={};for(at=0;at1&&(wt=j[tt-1],It=_[tt-1],Ot=rt[tt-1]),st=0;stwt?"-":"+")+"x"),St=St.replace("y",(ct>It?"-":"+")+"y"),St=St.replace("z",(At>Ot?"-":"+")+"z");var Nt=function(){tt=0,Pt=[],zt=[],Dt=[]};(!tt||tt2?dt=nt.slice(1,vt-1):vt===2?dt=[(nt[0]+nt[1])/2]:dt=nt,dt}function tt(nt){var vt=nt.length;return vt===1?[.5,.5]:[nt[1]-nt[0],nt[vt-1]-nt[vt-2]]}function st(nt,vt){var dt=nt.fullSceneLayout,bt=nt.dataScale,ft=vt._len,at={};function mt(lr,Jt){var Yt=dt[Jt],rr=bt[ht[Jt]];return et.simpleMap(lr,function(jt){return Yt.d2l(jt)*rr})}if(at.vectors=ut(mt(vt._u,"xaxis"),mt(vt._v,"yaxis"),mt(vt._w,"zaxis"),ft),!ft)return{positions:[],cells:[]};var St=mt(vt._Xs,"xaxis"),_t=mt(vt._Ys,"yaxis"),Mt=mt(vt._Zs,"zaxis");at.meshgrid=[St,_t,Mt],at.gridFill=vt._gridFill;var Et=vt._slen;if(Et)at.startingPositions=ut(mt(vt._startsX,"xaxis"),mt(vt._startsY,"yaxis"),mt(vt._startsZ,"zaxis"));else{for(var kt=_t[0],wt=rt(St),ct=rt(Mt),It=new Array(wt.length*ct.length),At=0,Ot=0;Ot=0},It,At,Ot;bt?(It=Math.min(dt.length,at.length),At=function(jt){return wt(dt[jt])&&ct(jt)},Ot=function(jt){return String(dt[jt])}):(It=Math.min(ft.length,at.length),At=function(jt){return wt(ft[jt])&&ct(jt)},Ot=function(jt){return String(ft[jt])}),St&&(It=Math.min(It,mt.length));for(var Pt=0;Pt1){for(var Ht=et.randstr(),Vt=0;Vt<_t.length;Vt++)_t[Vt].pid===""&&(_t[Vt].pid=Ht);_t.unshift({hasMultipleRoots:!0,id:Ht,pid:"",label:""})}}else{var $t=[],Ut;for(Ut in Mt)Et[Ut]||$t.push(Ut);if($t.length===1)Ut=$t[0],_t.unshift({hasImpliedRoot:!0,id:Ut,pid:"",label:Ut});else return et.warn(["Multiple implied roots, cannot build",nt.type,"hierarchy of",nt.name+".","These roots include:",$t.join(", ")].join(" "))}var Xt;try{Xt=it.stratify().id(function(jt){return jt.id}).parentId(function(jt){return jt.pid})(_t)}catch(jt){return et.warn(["Failed to build",nt.type,"hierarchy of",nt.name+".","Error:",jt.message].join(" "))}var qt=it.hierarchy(Xt),er=!1;if(St)switch(nt.branchvalues){case"remainder":qt.sum(function(jt){return jt.data.v});break;case"total":qt.each(function(jt){var ar=jt.data.data,sr=ar.v;if(jt.children){var Zt=jt.children.reduce(function(Kt,or){return Kt+or.data.data.v},0);if((ar.hasImpliedRoot||ar.hasMultipleRoots)&&(sr=Zt),sr=0){mt.i=_.i;var st=ut.marker;st.pattern?(!st.colors||!st.pattern.shape)&&(st.color=tt,mt.color=tt):(st.color=tt,mt.color=tt),it.pointStyle(Et,ut,ht,mt)}else xt.fill(Et,tt)}},45716:function(Ct,Rt,o){var it=o(33428),xt=o(24040),et=o(10624).appendArrayPointValue,Et=o(93024),mt=o(3400),ut=o(95924),ht=o(78176),j=o(69656),_=j.formatPieValue;Ct.exports=function(st,ot,nt,vt,dt){var bt=vt[0],ft=bt.trace,at=bt.hierarchy,yt=ft.type==="sunburst",St=ft.type==="treemap"||ft.type==="icicle";"_hasHoverLabel"in ft||(ft._hasHoverLabel=!1),"_hasHoverEvent"in ft||(ft._hasHoverEvent=!1);var _t=function(kt){var wt=nt._fullLayout;if(!(nt._dragging||wt.hovermode===!1)){var ct=nt._fullData[ft.index],It=kt.data.data,At=It.i,Ot=ht.isHierarchyRoot(kt),Pt=ht.getParent(at,kt),zt=ht.getValue(kt),Dt=function(Kt){return mt.castOption(ct,At,Kt)},Nt=Dt("hovertemplate"),$t=Et.castHoverinfo(ct,wt,At),Ut=wt.separators,Ht;if(Nt||$t&&$t!=="none"&&$t!=="skip"){var Vt,Xt;yt&&(Vt=bt.cx+kt.pxmid[0]*(1-kt.rInscribed),Xt=bt.cy+kt.pxmid[1]*(1-kt.rInscribed)),St&&(Vt=kt._hoverX,Xt=kt._hoverY);var qt={},er=[],lr=[],Jt=function(Kt){return er.indexOf(Kt)!==-1};$t&&(er=$t==="all"?ct._module.attributes.hoverinfo.flags:$t.split("+")),qt.label=It.label,Jt("label")&&qt.label&&lr.push(qt.label),It.hasOwnProperty("v")&&(qt.value=It.v,qt.valueLabel=_(qt.value,Ut),Jt("value")&&lr.push(qt.valueLabel)),qt.currentPath=kt.currentPath=ht.getPath(kt.data),Jt("current path")&&!Ot&&lr.push(qt.currentPath);var Yt,rr=[],jt=function(){rr.indexOf(Yt)===-1&&(lr.push(Yt),rr.push(Yt))};qt.percentParent=kt.percentParent=zt/ht.getValue(Pt),qt.parent=kt.parentString=ht.getPtLabel(Pt),Jt("percent parent")&&(Yt=ht.formatPercent(qt.percentParent,Ut)+" of "+qt.parent,jt()),qt.percentEntry=kt.percentEntry=zt/ht.getValue(ot),qt.entry=kt.entry=ht.getPtLabel(ot),Jt("percent entry")&&!Ot&&!kt.onPathbar&&(Yt=ht.formatPercent(qt.percentEntry,Ut)+" of "+qt.entry,jt()),qt.percentRoot=kt.percentRoot=zt/ht.getValue(at),qt.root=kt.root=ht.getPtLabel(at),Jt("percent root")&&!Ot&&(Yt=ht.formatPercent(qt.percentRoot,Ut)+" of "+qt.root,jt()),qt.text=Dt("hovertext")||Dt("text"),Jt("text")&&(Yt=qt.text,mt.isValidTextValue(Yt)&&lr.push(Yt)),Ht=[rt(kt,ct,dt.eventDataKeys)];var ar={trace:ct,y:Xt,_x0:kt._x0,_x1:kt._x1,_y0:kt._y0,_y1:kt._y1,text:lr.join("
"),name:Nt||Jt("name")?ct.name:void 0,color:Dt("hoverlabel.bgcolor")||It.color,borderColor:Dt("hoverlabel.bordercolor"),fontFamily:Dt("hoverlabel.font.family"),fontSize:Dt("hoverlabel.font.size"),fontColor:Dt("hoverlabel.font.color"),fontWeight:Dt("hoverlabel.font.weight"),fontStyle:Dt("hoverlabel.font.style"),fontVariant:Dt("hoverlabel.font.variant"),nameLength:Dt("hoverlabel.namelength"),textAlign:Dt("hoverlabel.align"),hovertemplate:Nt,hovertemplateLabels:qt,eventData:Ht};yt&&(ar.x0=Vt-kt.rInscribed*kt.rpx1,ar.x1=Vt+kt.rInscribed*kt.rpx1,ar.idealAlign=kt.pxmid[0]<0?"left":"right"),St&&(ar.x=Vt,ar.idealAlign=Vt<0?"left":"right");var sr=[];Et.loneHover(ar,{container:wt._hoverlayer.node(),outerContainer:wt._paper.node(),gd:nt,inOut_bbox:sr}),Ht[0].bbox=sr[0],ft._hasHoverLabel=!0}if(St){var Zt=st.select("path.surface");dt.styleOne(Zt,kt,ct,nt,{hovered:!0})}ft._hasHoverEvent=!0,nt.emit("plotly_hover",{points:Ht||[rt(kt,ct,dt.eventDataKeys)],event:it.event})}},Mt=function(kt){var wt=nt._fullLayout,ct=nt._fullData[ft.index],It=it.select(this).datum();if(ft._hasHoverEvent&&(kt.originalEvent=it.event,nt.emit("plotly_unhover",{points:[rt(It,ct,dt.eventDataKeys)],event:it.event}),ft._hasHoverEvent=!1),ft._hasHoverLabel&&(Et.loneUnhover(wt._hoverlayer.node()),ft._hasHoverLabel=!1),St){var At=st.select("path.surface");dt.styleOne(At,It,ct,nt,{hovered:!1})}},Tt=function(kt){var wt=nt._fullLayout,ct=nt._fullData[ft.index],It=yt&&(ht.isHierarchyRoot(kt)||ht.isLeaf(kt)),At=ht.getPtId(kt),Ot=ht.isEntry(kt)?ht.findEntryWithChild(at,At):ht.findEntryWithLevel(at,At),Pt=ht.getPtId(Ot),zt={points:[rt(kt,ct,dt.eventDataKeys)],event:it.event};It||(zt.nextLevel=Pt);var Dt=ut.triggerHandler(nt,"plotly_"+ft.type+"click",zt);if(Dt!==!1&&wt.hovermode&&(nt._hoverdata=[rt(kt,ct,dt.eventDataKeys)],Et.click(nt,it.event)),!It&&Dt!==!1&&!nt._dragging&&!nt._transitioning){xt.call("_storeDirectGUIEdit",ct,wt._tracePreGUI[ct.uid],{level:ct.level});var Nt={data:[{level:Pt}],traces:[ft.index]},$t={frame:{redraw:!1,duration:dt.transitionTime},transition:{duration:dt.transitionTime,easing:dt.transitionEasing},mode:"immediate",fromcurrent:!0};Et.loneUnhover(wt._hoverlayer.node()),xt.call("animate",nt,Nt,$t)}};st.on("mouseover",_t),st.on("mouseout",Mt),st.on("click",Tt)};function rt(tt,st,ot){for(var nt=tt.data.data,vt={curveNumber:st.index,pointNumber:nt.i,data:st._input,fullData:st},dt=0;dt0)},Rt.getMaxDepth=function(j){return j.maxdepth>=0?j.maxdepth:1/0},Rt.isHeader=function(j,_){return!(Rt.isLeaf(j)||j.depth===_._maxDepth-1)};function ht(j){return j.data.data.pid}Rt.getParent=function(j,_){return Rt.findEntryWithLevel(j,ht(_))},Rt.listPath=function(j,_){var rt=j.parent;if(!rt)return[];var tt=_?[rt.data[_]]:[rt];return Rt.listPath(rt,_).concat(tt)},Rt.getPath=function(j){return Rt.listPath(j,"label").join("/")+"/"},Rt.formatValue=Et.formatPieValue,Rt.formatPercent=function(j,_){var rt=it.formatPercent(j,0);return rt==="0%"&&(rt=Et.formatPiePercent(j,_)),rt}},5621:function(Ct,Rt,o){Ct.exports={moduleType:"trace",name:"sunburst",basePlotModule:o(54904),categories:[],animatable:!0,attributes:o(424),layoutAttributes:o(84920),supplyDefaults:o(25244),supplyLayoutDefaults:o(28732),calc:o(3776).calc,crossTraceCalc:o(3776).crossTraceCalc,plot:o(96488).plot,style:o(85676).style,colorbar:o(5528),meta:{}}},84920:function(Ct){Ct.exports={sunburstcolorway:{valType:"colorlist",editType:"calc"},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc"}}},28732:function(Ct,Rt,o){var it=o(3400),xt=o(84920);Ct.exports=function(Et,mt){function ut(ht,j){return it.coerce(Et,mt,xt,ht,j)}ut("sunburstcolorway",mt.colorway),ut("extendsunburstcolors")}},96488:function(Ct,Rt,o){var it=o(33428),xt=o(74148),et=o(67756).qy,Et=o(43616),mt=o(3400),ut=o(72736),ht=o(82744),j=ht.recordMinTextSize,_=ht.clearMinTextSize,rt=o(37820),tt=o(69656).getRotationAngle,st=rt.computeTransform,ot=rt.transformInsideText,nt=o(85676).styleOne,vt=o(60100).resizeText,dt=o(45716),bt=o(27328),ft=o(78176);Rt.plot=function(Tt,kt,wt,ct){var It=Tt._fullLayout,At=It._sunburstlayer,Ot,Pt,zt=!wt,Dt=!It.uniformtext.mode&&ft.hasTransition(wt);if(_("sunburst",It),Ot=At.selectAll("g.trace.sunburst").data(kt,function($t){return $t[0].trace.uid}),Ot.enter().append("g").classed("trace",!0).classed("sunburst",!0).attr("stroke-linejoin","round"),Ot.order(),Dt){ct&&(Pt=ct());var Nt=it.transition().duration(wt.duration).ease(wt.easing).each("end",function(){Pt&&Pt()}).each("interrupt",function(){Pt&&Pt()});Nt.each(function(){At.selectAll("g.trace").each(function($t){at(Tt,$t,this,wt)})})}else Ot.each(function($t){at(Tt,$t,this,wt)}),It.uniformtext.mode&&vt(Tt,It._sunburstlayer.selectAll(".trace"),"sunburst");zt&&Ot.exit().remove()};function at(Tt,kt,wt,ct){var It=Tt._context.staticPlot,At=Tt._fullLayout,Ot=!At.uniformtext.mode&&ft.hasTransition(ct),Pt=it.select(wt),zt=Pt.selectAll("g.slice"),Dt=kt[0],Nt=Dt.trace,$t=Dt.hierarchy,Ut=ft.findEntryWithLevel($t,Nt.level),Ht=ft.getMaxDepth(Nt),Vt=At._size,Xt=Nt.domain,qt=Vt.w*(Xt.x[1]-Xt.x[0]),er=Vt.h*(Xt.y[1]-Xt.y[0]),lr=.5*Math.min(qt,er),Jt=Dt.cx=Vt.l+Vt.w*(Xt.x[1]+Xt.x[0])/2,Yt=Dt.cy=Vt.t+Vt.h*(1-Xt.y[0])-er/2;if(!Ut)return zt.remove();var rr=null,jt={};Ot&&zt.each(function(Nr){jt[ft.getPtId(Nr)]={rpx0:Nr.rpx0,rpx1:Nr.rpx1,x0:Nr.x0,x1:Nr.x1,transform:Nr.transform},!rr&&ft.isEntry(Nr)&&(rr=Nr)});var ar=yt(Ut).descendants(),sr=Ut.height+1,Zt=0,Kt=Ht;Dt.hasMultipleRoots&&ft.isHierarchyRoot(Ut)&&(ar=ar.slice(1),sr-=1,Zt=1,Kt+=1),ar=ar.filter(function(Nr){return Nr.y1<=Kt});var or=tt(Nt.rotation);or&&ar.forEach(function(Nr){Nr.x0+=or,Nr.x1+=or});var tr=Math.min(sr,Ht),cr=function(Nr){return(Nr-Zt)/tr*lr},hr=function(Nr,Qr){return[Nr*Math.cos(Qr),-Nr*Math.sin(Qr)]},br=function(Nr){return mt.pathAnnulus(Nr.rpx0,Nr.rpx1,Nr.x0,Nr.x1,Jt,Yt)},Tr=function(Nr){return Jt+_t(Nr)[0]*(Nr.transform.rCenter||0)+(Nr.transform.x||0)},Ir=function(Nr){return Yt+_t(Nr)[1]*(Nr.transform.rCenter||0)+(Nr.transform.y||0)};zt=zt.data(ar,ft.getPtId),zt.enter().append("g").classed("slice",!0),Ot?zt.exit().transition().each(function(){var Nr=it.select(this),Qr=Nr.select("path.surface");Qr.transition().attrTween("d",function(un){var qr=Rr(un);return function(Xr){return br(qr(Xr))}});var sn=Nr.select("g.slicetext");sn.attr("opacity",0)}).remove():zt.exit().remove(),zt.order();var Ar=null;if(Ot&&rr){var _r=ft.getPtId(rr);zt.each(function(Nr){Ar===null&&ft.getPtId(Nr)===_r&&(Ar=Nr.x1)})}var Er=zt;Ot&&(Er=Er.transition().each("end",function(){var Nr=it.select(this);ft.setSliceCursor(Nr,Tt,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})})),Er.each(function(Nr){var Qr=it.select(this),sn=mt.ensureSingle(Qr,"path","surface",function(pn){pn.style("pointer-events",It?"none":"all")});Nr.rpx0=cr(Nr.y0),Nr.rpx1=cr(Nr.y1),Nr.xmid=(Nr.x0+Nr.x1)/2,Nr.pxmid=hr(Nr.rpx1,Nr.xmid),Nr.midangle=-(Nr.xmid-Math.PI/2),Nr.startangle=-(Nr.x0-Math.PI/2),Nr.stopangle=-(Nr.x1-Math.PI/2),Nr.halfangle=.5*Math.min(mt.angleDelta(Nr.x0,Nr.x1)||Math.PI,Math.PI),Nr.ring=1-Nr.rpx0/Nr.rpx1,Nr.rInscribed=St(Nr),Ot?sn.transition().attrTween("d",function(pn){var En=zr(pn);return function(Jr){return br(En(Jr))}}):sn.attr("d",br),Qr.call(dt,Ut,Tt,kt,{eventDataKeys:bt.eventDataKeys,transitionTime:bt.CLICK_TRANSITION_TIME,transitionEasing:bt.CLICK_TRANSITION_EASING}).call(ft.setSliceCursor,Tt,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:Tt._transitioning}),sn.call(nt,Nr,Nt,Tt);var un=mt.ensureSingle(Qr,"g","slicetext"),qr=mt.ensureSingle(un,"text","",function(pn){pn.attr("data-notex",1)}),Xr=mt.ensureUniformFontSize(Tt,ft.determineTextFont(Nt,Nr,At.font));qr.text(Rt.formatSliceLabel(Nr,Ut,Nt,kt,At)).classed("slicetext",!0).attr("text-anchor","middle").call(Et.font,Xr).call(ut.convertToTspans,Tt);var ln=Et.bBox(qr.node());Nr.transform=ot(ln,Nr,Dt),Nr.transform.targetX=Tr(Nr),Nr.transform.targetY=Ir(Nr);var mn=function(pn,En){var Jr=pn.transform;return st(Jr,En),Jr.fontSize=Xr.size,j(Nt.type,Jr,At),mt.getTextTransform(Jr)};Ot?qr.transition().attrTween("transform",function(pn){var En=Br(pn);return function(Jr){return mn(En(Jr),ln)}}):qr.attr("transform",mn(Nr,ln))});function Rr(Nr){var Qr=ft.getPtId(Nr),sn=jt[Qr],un=jt[ft.getPtId(Ut)],qr;if(un){var Xr=(Nr.x1>un.x1?2*Math.PI:0)+or;qr=Nr.rpx1Ar?2*Math.PI:0)+or;sn={x0:qr,x1:qr}}else sn={rpx0:lr,rpx1:lr},mt.extendFlat(sn,kr(Nr));else sn={rpx0:0,rpx1:0};else sn={x0:or,x1:or};return et(sn,un)}function Br(Nr){var Qr=jt[ft.getPtId(Nr)],sn,un=Nr.transform;if(Qr)sn=Qr;else if(sn={rpx1:Nr.rpx1,transform:{textPosAngle:un.textPosAngle,scale:0,rotate:un.rotate,rCenter:un.rCenter,x:un.x,y:un.y}},rr)if(Nr.parent)if(Ar){var qr=Nr.x1>Ar?2*Math.PI:0;sn.x0=sn.x1=qr}else mt.extendFlat(sn,kr(Nr));else sn.x0=sn.x1=or;else sn.x0=sn.x1=or;var Xr=et(sn.transform.textPosAngle,Nr.transform.textPosAngle),ln=et(sn.rpx1,Nr.rpx1),mn=et(sn.x0,Nr.x0),pn=et(sn.x1,Nr.x1),En=et(sn.transform.scale,un.scale),Jr=et(sn.transform.rotate,un.rotate),Or=un.rCenter===0?3:sn.transform.rCenter===0?1/3:1,Ur=et(sn.transform.rCenter,un.rCenter),jr=function(Gr){return Ur(Math.pow(Gr,Or))};return function(Gr){var wr=ln(Gr),vr=mn(Gr),Dr=pn(Gr),Sr=jr(Gr),ur=hr(wr,(vr+Dr)/2),xr=Xr(Gr),Pr={pxmid:ur,rpx1:wr,transform:{textPosAngle:xr,rCenter:Sr,x:un.x,y:un.y}};return j(Nt.type,un,At),{transform:{targetX:Tr(Pr),targetY:Ir(Pr),scale:En(Gr),rotate:Jr(Gr),rCenter:Sr}}}}function kr(Nr){var Qr=Nr.parent,sn=jt[ft.getPtId(Qr)],un={};if(sn){var qr=Qr.children,Xr=qr.indexOf(Nr),ln=qr.length,mn=et(sn.x0,sn.x1);un.x0=mn(Xr/ln),un.x1=mn(Xr/ln)}else un.x0=un.x1=0;return un}}function yt(Tt){return xt.partition().size([2*Math.PI,Tt.height+1])(Tt)}Rt.formatSliceLabel=function(Tt,kt,wt,ct,It){var At=wt.texttemplate,Ot=wt.textinfo;if(!At&&(!Ot||Ot==="none"))return"";var Pt=It.separators,zt=ct[0],Dt=Tt.data.data,Nt=zt.hierarchy,$t=ft.isHierarchyRoot(Tt),Ut=ft.getParent(Nt,Tt),Ht=ft.getValue(Tt);if(!At){var Vt=Ot.split("+"),Xt=function(Zt){return Vt.indexOf(Zt)!==-1},qt=[],er;if(Xt("label")&&Dt.label&&qt.push(Dt.label),Dt.hasOwnProperty("v")&&Xt("value")&&qt.push(ft.formatValue(Dt.v,Pt)),!$t){Xt("current path")&&qt.push(ft.getPath(Tt.data));var lr=0;Xt("percent parent")&&lr++,Xt("percent entry")&&lr++,Xt("percent root")&&lr++;var Jt=lr>1;if(lr){var Yt,rr=function(Zt){er=ft.formatPercent(Yt,Pt),Jt&&(er+=" of "+Zt),qt.push(er)};Xt("percent parent")&&!$t&&(Yt=Ht/ft.getValue(Ut),rr("parent")),Xt("percent entry")&&(Yt=Ht/ft.getValue(kt),rr("entry")),Xt("percent root")&&(Yt=Ht/ft.getValue(Nt),rr("root"))}}return Xt("text")&&(er=mt.castOption(wt,Dt.i,"text"),mt.isValidTextValue(er)&&qt.push(er)),qt.join("
")}var jt=mt.castOption(wt,Dt.i,"texttemplate");if(!jt)return"";var ar={};Dt.label&&(ar.label=Dt.label),Dt.hasOwnProperty("v")&&(ar.value=Dt.v,ar.valueLabel=ft.formatValue(Dt.v,Pt)),ar.currentPath=ft.getPath(Tt.data),$t||(ar.percentParent=Ht/ft.getValue(Ut),ar.percentParentLabel=ft.formatPercent(ar.percentParent,Pt),ar.parent=ft.getPtLabel(Ut)),ar.percentEntry=Ht/ft.getValue(kt),ar.percentEntryLabel=ft.formatPercent(ar.percentEntry,Pt),ar.entry=ft.getPtLabel(kt),ar.percentRoot=Ht/ft.getValue(Nt),ar.percentRootLabel=ft.formatPercent(ar.percentRoot,Pt),ar.root=ft.getPtLabel(Nt),Dt.hasOwnProperty("color")&&(ar.color=Dt.color);var sr=mt.castOption(wt,Dt.i,"text");return(mt.isValidTextValue(sr)||sr==="")&&(ar.text=sr),ar.customdata=mt.castOption(wt,Dt.i,"customdata"),mt.texttemplateString(jt,ar,It._d3locale,ar,wt._meta||{})};function St(Tt){return Tt.rpx0===0&&mt.isFullCircle([Tt.x0,Tt.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(Tt.halfangle)),Tt.ring/2))}function _t(Tt){return Mt(Tt.rpx1,Tt.transform.textPosAngle)}function Mt(Tt,kt){return[Tt*Math.sin(kt),-Tt*Math.cos(kt)]}},85676:function(Ct,Rt,o){var it=o(33428),xt=o(76308),et=o(3400),Et=o(82744).resizeText,mt=o(60404);function ut(j){var _=j._fullLayout._sunburstlayer.selectAll(".trace");Et(j,_,"sunburst"),_.each(function(rt){var tt=it.select(this),st=rt[0],ot=st.trace;tt.style("opacity",ot.opacity),tt.selectAll("path.surface").each(function(nt){it.select(this).call(ht,nt,ot,j)})})}function ht(j,_,rt,tt){var st=_.data.data,ot=!_.children,nt=st.i,vt=et.castOption(rt,nt,"marker.line.color")||xt.defaultLine,dt=et.castOption(rt,nt,"marker.line.width")||0;j.call(mt,_,rt,tt).style("stroke-width",dt).call(xt.stroke,vt).style("opacity",ot?rt.leaf.opacity:null)}Ct.exports={style:ut,styleOne:ht}},16716:function(Ct,Rt,o){var it=o(76308),xt=o(49084),et=o(29736).axisHoverFormat,Et=o(21776).Ks,mt=o(45464),ut=o(92880).extendFlat,ht=o(67824).overrideAll;function j(tt){return{valType:"boolean",dflt:!1}}function _(tt){return{show:{valType:"boolean",dflt:!1},start:{valType:"number",dflt:null,editType:"plot"},end:{valType:"number",dflt:null,editType:"plot"},size:{valType:"number",dflt:null,min:0,editType:"plot"},project:{x:j(),y:j(),z:j()},color:{valType:"color",dflt:it.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:it.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var rt=Ct.exports=ht(ut({z:{valType:"data_array"},x:{valType:"data_array"},y:{valType:"data_array"},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:Et(),xhoverformat:et("x"),yhoverformat:et("y"),zhoverformat:et("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},xt("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:_(),y:_(),z:_()},hidesurface:{valType:"boolean",dflt:!1},lightposition:{x:{valType:"number",min:-1e5,max:1e5,dflt:10},y:{valType:"number",min:-1e5,max:1e5,dflt:1e4},z:{valType:"number",min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:"number",min:0,max:1,dflt:.8},diffuse:{valType:"number",min:0,max:1,dflt:.8},specular:{valType:"number",min:0,max:2,dflt:.05},roughness:{valType:"number",min:0,max:1,dflt:.5},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},_deprecated:{zauto:ut({},xt.zauto,{}),zmin:ut({},xt.zmin,{}),zmax:ut({},xt.zmax,{})},hoverinfo:ut({},mt.hoverinfo),showlegend:ut({},mt.showlegend,{dflt:!1})}),"calc","nested");rt.x.editType=rt.y.editType=rt.z.editType="calc+clearAxisTypes",rt.transforms=void 0},56576:function(Ct,Rt,o){var it=o(47128);Ct.exports=function(et,Et){Et.surfacecolor?it(et,Et,{vals:Et.surfacecolor,containerStr:"",cLetter:"c"}):it(et,Et,{vals:Et.z,containerStr:"",cLetter:"c"})}},79164:function(Ct,Rt,o){var it=o(67792).gl_surface3d,xt=o(67792).ndarray,et=o(67792).ndarray_linear_interpolate.d2,Et=o(70448),mt=o(11240),ut=o(3400).isArrayOrTypedArray,ht=o(33040).parseColorScale,j=o(43080),_=o(8932).extractOpts;function rt(ct,It,At){this.scene=ct,this.uid=At,this.surface=It,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var tt=rt.prototype;tt.getXat=function(ct,It,At,Ot){var Pt=ut(this.data.x)?ut(this.data.x[0])?this.data.x[It][ct]:this.data.x[ct]:ct;return At===void 0?Pt:Ot.d2l(Pt,0,At)},tt.getYat=function(ct,It,At,Ot){var Pt=ut(this.data.y)?ut(this.data.y[0])?this.data.y[It][ct]:this.data.y[It]:It;return At===void 0?Pt:Ot.d2l(Pt,0,At)},tt.getZat=function(ct,It,At,Ot){var Pt=this.data.z[It][ct];return Pt===null&&this.data.connectgaps&&this.data._interpolatedZ&&(Pt=this.data._interpolatedZ[It][ct]),At===void 0?Pt:Ot.d2l(Pt,0,At)},tt.handlePick=function(ct){if(ct.object===this.surface){var It=(ct.data.index[0]-1)/this.dataScaleX-1,At=(ct.data.index[1]-1)/this.dataScaleY-1,Ot=Math.max(Math.min(Math.round(It),this.data.z[0].length-1),0),Pt=Math.max(Math.min(Math.round(At),this.data._ylength-1),0);ct.index=[Ot,Pt],ct.traceCoordinate=[this.getXat(Ot,Pt),this.getYat(Ot,Pt),this.getZat(Ot,Pt)],ct.dataCoordinate=[this.getXat(Ot,Pt,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(Ot,Pt,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(Ot,Pt,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var zt=0;zt<3;zt++){var Dt=ct.dataCoordinate[zt];Dt!=null&&(ct.dataCoordinate[zt]*=this.scene.dataScale[zt])}var Nt=this.data.hovertext||this.data.text;return ut(Nt)&&Nt[Pt]&&Nt[Pt][Ot]!==void 0?ct.textLabel=Nt[Pt][Ot]:Nt?ct.textLabel=Nt:ct.textLabel="",ct.data.dataCoordinate=ct.dataCoordinate.slice(),this.surface.highlight(ct.data),this.scene.glplot.spikes.position=ct.dataCoordinate,!0}};function st(ct){var It=ct[0].rgb,At=ct[ct.length-1].rgb;return It[0]===At[0]&&It[1]===At[1]&&It[2]===At[2]&&It[3]===At[3]}var ot=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function nt(ct,It){if(ct0){At=ot[Ot];break}return At}function bt(ct,It){if(!(ct<1||It<1)){for(var At=vt(ct),Ot=vt(It),Pt=1,zt=0;ztSt;)Ot--,Ot/=dt(Ot),Ot++,Ot1?Pt:1};function _t(ct,It,At){var Ot=At[8]+At[2]*It[0]+At[5]*It[1];return ct[0]=(At[6]+At[0]*It[0]+At[3]*It[1])/Ot,ct[1]=(At[7]+At[1]*It[0]+At[4]*It[1])/Ot,ct}function Mt(ct,It,At){return Tt(ct,It,_t,At),ct}function Tt(ct,It,At,Ot){for(var Pt=[0,0],zt=ct.shape[0],Dt=ct.shape[1],Nt=0;Nt0&&this.contourStart[Ot]!==null&&this.contourEnd[Ot]!==null&&this.contourEnd[Ot]>this.contourStart[Ot]))for(It[Ot]=!0,Pt=this.contourStart[Ot];PtXt&&(this.minValues[Ut]=Xt),this.maxValues[Ut]",maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:"cubic-out",scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:"cubic-out",uplift:5,wrapSpacer:" ",wrapSplitCharacter:" ",cn:{table:"table",tableControlView:"table-control-view",scrollBackground:"scroll-background",yColumn:"y-column",columnBlock:"column-block",scrollAreaClip:"scroll-area-clip",scrollAreaClipRect:"scroll-area-clip-rect",columnBoundary:"column-boundary",columnBoundaryClippath:"column-boundary-clippath",columnBoundaryRect:"column-boundary-rect",columnCells:"column-cells",columnCell:"column-cell",cellRect:"cell-rect",cellText:"cell-text",cellTextHolder:"cell-text-holder",scrollbarKit:"scrollbar-kit",scrollbar:"scrollbar",scrollbarSlider:"scrollbar-slider",scrollbarGlyph:"scrollbar-glyph",scrollbarCaptureZone:"scrollbar-capture-zone"}}},55992:function(Ct,Rt,o){var it=o(23536),xt=o(92880).extendFlat,et=o(38248),Et=o(38116).isTypedArray,mt=o(38116).isArrayOrTypedArray;Ct.exports=function(vt,dt){var bt=j(dt.cells.values),ft=function(Xt){return Xt.slice(dt.header.values.length,Xt.length)},at=j(dt.header.values);at.length&&!at[0].length&&(at[0]=[""],at=j(at));var yt=at.concat(ft(bt).map(function(){return _((at[0]||[""]).length)})),St=dt.domain,_t=Math.floor(vt._fullLayout._size.w*(St.x[1]-St.x[0])),Mt=Math.floor(vt._fullLayout._size.h*(St.y[1]-St.y[0])),Tt=dt.header.values.length?yt[0].map(function(){return dt.header.height}):[it.emptyHeaderHeight],kt=bt.length?bt[0].map(function(){return dt.cells.height}):[],wt=Tt.reduce(ht,0),ct=Mt-wt,It=ct+it.uplift,At=st(kt,It),Ot=st(Tt,wt),Pt=tt(Ot,[]),zt=tt(At,Pt),Dt={},Nt=dt._fullInput.columnorder;mt(Nt)&&(Nt=Array.from(Nt)),Nt=Nt.concat(ft(bt.map(function(Xt,qt){return qt})));var $t=yt.map(function(Xt,qt){var er=mt(dt.columnwidth)?dt.columnwidth[Math.min(qt,dt.columnwidth.length-1)]:dt.columnwidth;return et(er)?Number(er):1}),Ut=$t.reduce(ht,0);$t=$t.map(function(Xt){return Xt/Ut*_t});var Ht=Math.max(ut(dt.header.line.width),ut(dt.cells.line.width)),Vt={key:dt.uid+vt._context.staticPlot,translateX:St.x[0]*vt._fullLayout._size.w,translateY:vt._fullLayout._size.h*(1-St.y[1]),size:vt._fullLayout._size,width:_t,maxLineWidth:Ht,height:Mt,columnOrder:Nt,groupHeight:Mt,rowBlocks:zt,headerRowBlocks:Pt,scrollY:0,cells:xt({},dt.cells,{values:bt}),headerCells:xt({},dt.header,{values:yt}),gdColumns:yt.map(function(Xt){return Xt[0]}),gdColumnsOriginalOrder:yt.map(function(Xt){return Xt[0]}),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:yt.map(function(Xt,qt){var er=Dt[Xt];Dt[Xt]=(er||0)+1;var lr=Xt+"__"+Dt[Xt];return{key:lr,label:Xt,specIndex:qt,xIndex:Nt[qt],xScale:rt,x:void 0,calcdata:void 0,columnWidth:$t[qt]}})};return Vt.columns.forEach(function(Xt){Xt.calcdata=Vt,Xt.x=rt(Xt)}),Vt};function ut(nt){if(mt(nt)){for(var vt=0,dt=0;dt=vt||Mt===nt.length-1)&&(dt[ft]=yt,yt.key=_t++,yt.firstRowIndex=St,yt.lastRowIndex=Mt,yt=ot(),ft+=at,St=Mt+1,at=0);return dt}function ot(){return{firstRowIndex:null,lastRowIndex:null,rows:[]}}},53056:function(Ct,Rt,o){var it=o(92880).extendFlat;Rt.splitToPanels=function(et){var Et=[0,0],mt=it({},et,{key:"header",type:"header",page:0,prevPages:Et,currentRepaint:[null,null],dragHandle:!0,values:et.calcdata.headerCells.values[et.specIndex],rowBlocks:et.calcdata.headerRowBlocks,calcdata:it({},et.calcdata,{cells:et.calcdata.headerCells})}),ut=it({},et,{key:"cells1",type:"cells",page:0,prevPages:Et,currentRepaint:[null,null],dragHandle:!1,values:et.calcdata.cells.values[et.specIndex],rowBlocks:et.calcdata.rowBlocks}),ht=it({},et,{key:"cells2",type:"cells",page:1,prevPages:Et,currentRepaint:[null,null],dragHandle:!1,values:et.calcdata.cells.values[et.specIndex],rowBlocks:et.calcdata.rowBlocks});return[ut,ht,mt]},Rt.splitToCells=function(et){var Et=xt(et);return(et.values||[]).slice(Et[0],Et[1]).map(function(mt,ut){var ht=typeof mt=="string"&&mt.match(/[<$&> ]/)?"_keybuster_"+Math.random():"";return{keyWithinBlock:ut+ht,key:Et[0]+ut,column:et,calcdata:et.calcdata,page:et.page,rowBlocks:et.rowBlocks,value:mt}})};function xt(et){var Et=et.rowBlocks[et.page],mt=Et?Et.rows[0].rowIndex:0,ut=Et?mt+Et.rows.length:0;return[mt,ut]}},53212:function(Ct,Rt,o){var it=o(3400),xt=o(60520),et=o(86968).Q;function Et(mt,ut){for(var ht=mt.columnorder||[],j=mt.header.values.length,_=ht.slice(0,j),rt=_.slice().sort(function(ot,nt){return ot-nt}),tt=_.map(function(ot){return rt.indexOf(ot)}),st=tt.length;st/i),Er=!Ar||_r;hr.mayHaveMarkup=Ar&&Ir.match(/[<&>]/);var Rr=At(Ir);hr.latex=Rr;var zr=Rr?"":zt(hr.calcdata.cells.prefix,br,Tr)||"",Br=Rr?"":zt(hr.calcdata.cells.suffix,br,Tr)||"",kr=Rr?null:zt(hr.calcdata.cells.format,br,Tr)||null,Nr=zr+(kr?Et(kr)(hr.value):hr.value)+Br,Qr;hr.wrappingNeeded=!hr.wrapped&&!Er&&!Rr&&(Qr=Ot(Nr)),hr.cellHeightMayIncrease=_r||Rr||hr.mayHaveMarkup||(Qr===void 0?Ot(Nr):Qr),hr.needsConvertToTspans=hr.mayHaveMarkup||hr.wrappingNeeded||hr.latex;var sn;if(hr.wrappingNeeded){var un=it.wrapSplitCharacter===" "?Nr.replace(/hr&&cr.push(br),hr+=Ar}return cr}function Vt(Kt,or,tr){var cr=bt(or)[0];if(cr!==void 0){var hr=cr.rowBlocks,br=cr.calcdata,Tr=rr(hr,hr.length),Ir=cr.calcdata.groupHeight-Ut(cr),Ar=br.scrollY=Math.max(0,Math.min(Tr-Ir,br.scrollY)),_r=Ht(hr,Ar,Ir);_r.length===1&&(_r[0]===hr.length-1?_r.unshift(_r[0]-1):_r.push(_r[0]+1)),_r[0]%2&&_r.reverse(),or.each(function(Er,Rr){Er.page=_r[Rr],Er.scrollY=Ar}),or.attr("transform",function(Er){var Rr=rr(Er.rowBlocks,Er.page)-Er.scrollY;return _(0,Rr)}),Kt&&(qt(Kt,tr,or,_r,cr.prevPages,cr,0),qt(Kt,tr,or,_r,cr.prevPages,cr,1),ft(tr,Kt))}}function Xt(Kt,or,tr,cr){return function(br){var Tr=br.calcdata?br.calcdata:br,Ir=or.filter(function(Rr){return Tr.key===Rr.key}),Ar=tr||Tr.scrollbarState.dragMultiplier,_r=Tr.scrollY;Tr.scrollY=cr===void 0?Tr.scrollY+Ar*xt.event.dy:cr;var Er=Ir.selectAll("."+it.cn.yColumn).selectAll("."+it.cn.columnBlock).filter(Nt);return Vt(Kt,Er,Ir),Tr.scrollY===_r}}function qt(Kt,or,tr,cr,hr,br,Tr){var Ir=cr[Tr]!==hr[Tr];Ir&&(clearTimeout(br.currentRepaint[Tr]),br.currentRepaint[Tr]=setTimeout(function(){var Ar=tr.filter(function(_r,Er){return Er===Tr&&cr[Er]!==hr[Er]});at(Kt,or,Ar,tr),hr[Tr]=cr[Tr]}))}function er(Kt,or,tr,cr){return function(){var br=xt.select(or.parentNode);br.each(function(Tr){var Ir=Tr.fragments;br.selectAll("tspan.line").each(function(Nr,Qr){Ir[Qr].width=this.getComputedTextLength()});var Ar=Ir[Ir.length-1].width,_r=Ir.slice(0,-1),Er=[],Rr,zr,Br=0,kr=Tr.column.columnWidth-2*it.cellPad;for(Tr.value="";_r.length;)Rr=_r.shift(),zr=Rr.width+Ar,Br+zr>kr&&(Tr.value+=Er.join(it.wrapSpacer)+it.lineBreaker,Er=[],Br=0),Er.push(Rr.text),Br+=zr;Br&&(Tr.value+=Er.join(it.wrapSpacer)),Tr.wrapped=!0}),br.selectAll("tspan.line").remove(),It(br.select("."+it.cn.cellText),tr,Kt,cr),xt.select(or.parentNode.parentNode).call(Yt)}}function lr(Kt,or,tr,cr,hr){return function(){if(!hr.settledY){var Tr=xt.select(or.parentNode),Ir=sr(hr),Ar=hr.key-Ir.firstRowIndex,_r=Ir.rows[Ar].rowHeight,Er=hr.cellHeightMayIncrease?or.parentNode.getBoundingClientRect().height+2*it.cellPad:_r,Rr=Math.max(Er,_r),zr=Rr-Ir.rows[Ar].rowHeight;zr&&(Ir.rows[Ar].rowHeight=Rr,Kt.selectAll("."+it.cn.columnCell).call(Yt),Vt(null,Kt.filter(Nt),0),ft(tr,cr,!0)),Tr.attr("transform",function(){var Br=this,kr=Br.parentNode,Nr=kr.getBoundingClientRect(),Qr=xt.select(Br.parentNode).select("."+it.cn.cellRect).node().getBoundingClientRect(),sn=Br.transform.baseVal.consolidate(),un=Qr.top-Nr.top+(sn?sn.matrix.f:it.cellPad);return _(Jt(hr,xt.select(Br.parentNode).select("."+it.cn.cellTextHolder).node().getBoundingClientRect().width),un)}),hr.settledY=!0}}}function Jt(Kt,or){switch(Kt.align){case"left":return it.cellPad;case"right":return Kt.column.columnWidth-(or||0)-it.cellPad;case"center":return(Kt.column.columnWidth-(or||0))/2;default:return it.cellPad}}function Yt(Kt){Kt.attr("transform",function(or){var tr=or.rowBlocks[0].auxiliaryBlocks.reduce(function(Tr,Ir){return Tr+jt(Ir,1/0)},0),cr=sr(or),hr=jt(cr,or.key),br=hr+tr;return _(0,br)}).selectAll("."+it.cn.cellRect).attr("height",function(or){return Zt(sr(or),or.key).rowHeight})}function rr(Kt,or){for(var tr=0,cr=or-1;cr>=0;cr--)tr+=ar(Kt[cr]);return tr}function jt(Kt,or){for(var tr=0,cr=0;cr","<","|","/","\\"],dflt:">",editType:"plot"},thickness:{valType:"number",min:12,editType:"plot"},textfont:j({},mt.textfont,{}),editType:"calc"},text:mt.text,textinfo:ut.textinfo,texttemplate:xt({editType:"plot"},{keys:ht.eventDataKeys.concat(["label","value"])}),hovertext:mt.hovertext,hoverinfo:ut.hoverinfo,hovertemplate:it({},{keys:ht.eventDataKeys}),textfont:mt.textfont,insidetextfont:mt.insidetextfont,outsidetextfont:j({},mt.outsidetextfont,{}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"top left",editType:"plot"},sort:mt.sort,root:ut.root,domain:Et({name:"treemap",trace:!0,editType:"calc"})}},79516:function(Ct,Rt,o){var it=o(7316);Rt.name="treemap",Rt.plot=function(xt,et,Et,mt){it.plotBasePlot(Rt.name,xt,et,Et,mt)},Rt.clean=function(xt,et,Et,mt){it.cleanBasePlot(Rt.name,xt,et,Et,mt)}},97840:function(Ct,Rt,o){var it=o(3776);Rt.r=function(xt,et){return it.calc(xt,et)},Rt.q=function(xt){return it._runCrossTraceCalc("treemap",xt)}},32984:function(Ct){Ct.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"poly",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"],gapWithPathbar:1}},34092:function(Ct,Rt,o){var it=o(3400),xt=o(40516),et=o(76308),Et=o(86968).Q,mt=o(31508).handleText,ut=o(78048).TEXTPAD,ht=o(74174).handleMarkerDefaults,j=o(8932),_=j.hasColorscale,rt=j.handleDefaults;Ct.exports=function(st,ot,nt,vt){function dt(ct,It){return it.coerce(st,ot,xt,ct,It)}var bt=dt("labels"),ft=dt("parents");if(!bt||!bt.length||!ft||!ft.length){ot.visible=!1;return}var at=dt("values");at&&at.length?dt("branchvalues"):dt("count"),dt("level"),dt("maxdepth");var yt=dt("tiling.packing");yt==="squarify"&&dt("tiling.squarifyratio"),dt("tiling.flip"),dt("tiling.pad");var St=dt("text");dt("texttemplate"),ot.texttemplate||dt("textinfo",it.isArrayOrTypedArray(St)?"text+label":"label"),dt("hovertext"),dt("hovertemplate");var _t=dt("pathbar.visible"),Mt="auto";mt(st,ot,vt,dt,Mt,{hasPathbar:_t,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),dt("textposition");var Tt=ot.textposition.indexOf("bottom")!==-1;ht(st,ot,vt,dt);var kt=ot._hasColorscale=_(st,"marker","colors")||(st.marker||{}).coloraxis;kt?rt(st,ot,vt,dt,{prefix:"marker.",cLetter:"c"}):dt("marker.depthfade",!(ot.marker.colors||[]).length);var wt=ot.textfont.size*2;dt("marker.pad.t",Tt?wt/4:wt),dt("marker.pad.l",wt/4),dt("marker.pad.r",wt/4),dt("marker.pad.b",Tt?wt:wt/4),dt("marker.cornerradius"),ot._hovered={marker:{line:{width:2,color:et.contrast(vt.paper_bgcolor)}}},_t&&(dt("pathbar.thickness",ot.pathbar.textfont.size+2*ut),dt("pathbar.side"),dt("pathbar.edgeshape")),dt("sort"),dt("root.color"),Et(ot,vt,dt),ot._length=null}},95808:function(Ct,Rt,o){var it=o(33428),xt=o(78176),et=o(82744),Et=et.clearMinTextSize,mt=o(60100).resizeText,ut=o(52960);Ct.exports=function(j,_,rt,tt,st){var ot=st.type,nt=st.drawDescendants,vt=j._fullLayout,dt=vt["_"+ot+"layer"],bt,ft,at=!rt;if(Et(ot,vt),bt=dt.selectAll("g.trace."+ot).data(_,function(St){return St[0].trace.uid}),bt.enter().append("g").classed("trace",!0).classed(ot,!0),bt.order(),!vt.uniformtext.mode&&xt.hasTransition(rt)){tt&&(ft=tt());var yt=it.transition().duration(rt.duration).ease(rt.easing).each("end",function(){ft&&ft()}).each("interrupt",function(){ft&&ft()});yt.each(function(){dt.selectAll("g.trace").each(function(St){ut(j,St,this,rt,nt)})})}else bt.each(function(St){ut(j,St,this,rt,nt)}),vt.uniformtext.mode&&mt(j,dt.selectAll(".trace"),ot);at&&bt.exit().remove()}},27336:function(Ct,Rt,o){var it=o(33428),xt=o(3400),et=o(43616),Et=o(72736),mt=o(13832),ut=o(66192).styleOne,ht=o(32984),j=o(78176),_=o(45716),rt=!0;Ct.exports=function(st,ot,nt,vt,dt){var bt=dt.barDifY,ft=dt.width,at=dt.height,yt=dt.viewX,St=dt.viewY,_t=dt.pathSlice,Mt=dt.toMoveInsideSlice,Tt=dt.strTransform,kt=dt.hasTransition,wt=dt.handleSlicesExit,ct=dt.makeUpdateSliceInterpolator,It=dt.makeUpdateTextInterpolator,At={},Ot=st._context.staticPlot,Pt=st._fullLayout,zt=ot[0],Dt=zt.trace,Nt=zt.hierarchy,$t=ft/Dt._entryDepth,Ut=j.listPath(nt.data,"id"),Ht=mt(Nt.copy(),[ft,at],{packing:"dice",pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();Ht=Ht.filter(function(Xt){var qt=Ut.indexOf(Xt.data.id);return qt===-1?!1:(Xt.x0=$t*qt,Xt.x1=$t*(qt+1),Xt.y0=bt,Xt.y1=bt+at,Xt.onPathbar=!0,!0)}),Ht.reverse(),vt=vt.data(Ht,j.getPtId),vt.enter().append("g").classed("pathbar",!0),wt(vt,rt,At,[ft,at],_t),vt.order();var Vt=vt;kt&&(Vt=Vt.transition().each("end",function(){var Xt=it.select(this);j.setSliceCursor(Xt,st,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})})),Vt.each(function(Xt){Xt._x0=yt(Xt.x0),Xt._x1=yt(Xt.x1),Xt._y0=St(Xt.y0),Xt._y1=St(Xt.y1),Xt._hoverX=yt(Xt.x1-Math.min(ft,at)/2),Xt._hoverY=St(Xt.y1-at/2);var qt=it.select(this),er=xt.ensureSingle(qt,"path","surface",function(rr){rr.style("pointer-events",Ot?"none":"all")});kt?er.transition().attrTween("d",function(rr){var jt=ct(rr,rt,At,[ft,at]);return function(ar){return _t(jt(ar))}}):er.attr("d",_t),qt.call(_,nt,st,ot,{styleOne:ut,eventDataKeys:ht.eventDataKeys,transitionTime:ht.CLICK_TRANSITION_TIME,transitionEasing:ht.CLICK_TRANSITION_EASING}).call(j.setSliceCursor,st,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:st._transitioning}),er.call(ut,Xt,Dt,st,{hovered:!1}),Xt._text=(j.getPtLabel(Xt)||"").split("
").join(" ")||"";var lr=xt.ensureSingle(qt,"g","slicetext"),Jt=xt.ensureSingle(lr,"text","",function(rr){rr.attr("data-notex",1)}),Yt=xt.ensureUniformFontSize(st,j.determineTextFont(Dt,Xt,Pt.font,{onPathbar:!0}));Jt.text(Xt._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(et.font,Yt).call(Et.convertToTspans,st),Xt.textBB=et.bBox(Jt.node()),Xt.transform=Mt(Xt,{fontSize:Yt.size,onPathbar:!0}),Xt.transform.fontSize=Yt.size,kt?Jt.transition().attrTween("transform",function(rr){var jt=It(rr,rt,At,[ft,at]);return function(ar){return Tt(jt(ar))}}):Jt.attr("transform",Tt(Xt))})}},76477:function(Ct,Rt,o){var it=o(33428),xt=o(3400),et=o(43616),Et=o(72736),mt=o(13832),ut=o(66192).styleOne,ht=o(32984),j=o(78176),_=o(45716),rt=o(96488).formatSliceLabel,tt=!1;Ct.exports=function(ot,nt,vt,dt,bt){var ft=bt.width,at=bt.height,yt=bt.viewX,St=bt.viewY,_t=bt.pathSlice,Mt=bt.toMoveInsideSlice,Tt=bt.strTransform,kt=bt.hasTransition,wt=bt.handleSlicesExit,ct=bt.makeUpdateSliceInterpolator,It=bt.makeUpdateTextInterpolator,At=bt.prevEntry,Ot={},Pt=ot._context.staticPlot,zt=ot._fullLayout,Dt=nt[0],Nt=Dt.trace,$t=Nt.textposition.indexOf("left")!==-1,Ut=Nt.textposition.indexOf("right")!==-1,Ht=Nt.textposition.indexOf("bottom")!==-1,Vt=!Ht&&!Nt.marker.pad.t||Ht&&!Nt.marker.pad.b,Xt=mt(vt,[ft,at],{packing:Nt.tiling.packing,squarifyratio:Nt.tiling.squarifyratio,flipX:Nt.tiling.flip.indexOf("x")>-1,flipY:Nt.tiling.flip.indexOf("y")>-1,pad:{inner:Nt.tiling.pad,top:Nt.marker.pad.t,left:Nt.marker.pad.l,right:Nt.marker.pad.r,bottom:Nt.marker.pad.b}}),qt=Xt.descendants(),er=1/0,lr=-1/0;qt.forEach(function(ar){var sr=ar.depth;sr>=Nt._maxDepth?(ar.x0=ar.x1=(ar.x0+ar.x1)/2,ar.y0=ar.y1=(ar.y0+ar.y1)/2):(er=Math.min(er,sr),lr=Math.max(lr,sr))}),dt=dt.data(qt,j.getPtId),Nt._maxVisibleLayers=isFinite(lr)?lr-er+1:0,dt.enter().append("g").classed("slice",!0),wt(dt,tt,Ot,[ft,at],_t),dt.order();var Jt=null;if(kt&&At){var Yt=j.getPtId(At);dt.each(function(ar){Jt===null&&j.getPtId(ar)===Yt&&(Jt={x0:ar.x0,x1:ar.x1,y0:ar.y0,y1:ar.y1})})}var rr=function(){return Jt||{x0:0,x1:ft,y0:0,y1:at}},jt=dt;return kt&&(jt=jt.transition().each("end",function(){var ar=it.select(this);j.setSliceCursor(ar,ot,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),jt.each(function(ar){var sr=j.isHeader(ar,Nt);ar._x0=yt(ar.x0),ar._x1=yt(ar.x1),ar._y0=St(ar.y0),ar._y1=St(ar.y1),ar._hoverX=yt(ar.x1-Nt.marker.pad.r),ar._hoverY=St(Ht?ar.y1-Nt.marker.pad.b/2:ar.y0+Nt.marker.pad.t/2);var Zt=it.select(this),Kt=xt.ensureSingle(Zt,"path","surface",function(Tr){Tr.style("pointer-events",Pt?"none":"all")});kt?Kt.transition().attrTween("d",function(Tr){var Ir=ct(Tr,tt,rr(),[ft,at]);return function(Ar){return _t(Ir(Ar))}}):Kt.attr("d",_t),Zt.call(_,vt,ot,nt,{styleOne:ut,eventDataKeys:ht.eventDataKeys,transitionTime:ht.CLICK_TRANSITION_TIME,transitionEasing:ht.CLICK_TRANSITION_EASING}).call(j.setSliceCursor,ot,{isTransitioning:ot._transitioning}),Kt.call(ut,ar,Nt,ot,{hovered:!1}),ar.x0===ar.x1||ar.y0===ar.y1?ar._text="":sr?ar._text=Vt?"":j.getPtLabel(ar)||"":ar._text=rt(ar,vt,Nt,nt,zt)||"";var or=xt.ensureSingle(Zt,"g","slicetext"),tr=xt.ensureSingle(or,"text","",function(Tr){Tr.attr("data-notex",1)}),cr=xt.ensureUniformFontSize(ot,j.determineTextFont(Nt,ar,zt.font)),hr=ar._text||" ",br=sr&&hr.indexOf("
")===-1;tr.text(hr).classed("slicetext",!0).attr("text-anchor",Ut?"end":$t||br?"start":"middle").call(et.font,cr).call(Et.convertToTspans,ot),ar.textBB=et.bBox(tr.node()),ar.transform=Mt(ar,{fontSize:cr.size,isHeader:sr}),ar.transform.fontSize=cr.size,kt?tr.transition().attrTween("transform",function(Tr){var Ir=It(Tr,tt,rr(),[ft,at]);return function(Ar){return Tt(Ir(Ar))}}):tr.attr("transform",Tt(ar))}),Jt}},83024:function(Ct){Ct.exports=function Rt(o,it,xt){var et;xt.swapXY&&(et=o.x0,o.x0=o.y0,o.y0=et,et=o.x1,o.x1=o.y1,o.y1=et),xt.flipX&&(et=o.x0,o.x0=it[0]-o.x1,o.x1=it[0]-et),xt.flipY&&(et=o.y0,o.y0=it[1]-o.y1,o.y1=it[1]-et);var Et=o.children;if(Et)for(var mt=0;mt-1?Ut+Xt:-(Vt+Xt):0,er={x0:Ht,x1:Ht,y0:qt,y1:qt+Vt},lr=function(Or,Ur,jr){var Gr=St.tiling.pad,wr=function(ur){return ur-Gr<=Ur.x0},vr=function(ur){return ur+Gr>=Ur.x1},Dr=function(ur){return ur-Gr<=Ur.y0},Sr=function(ur){return ur+Gr>=Ur.y1};return Or.x0===Ur.x0&&Or.x1===Ur.x1&&Or.y0===Ur.y0&&Or.y1===Ur.y1?{x0:Or.x0,x1:Or.x1,y0:Or.y0,y1:Or.y1}:{x0:wr(Or.x0-Gr)?0:vr(Or.x0-Gr)?jr[0]:Or.x0,x1:wr(Or.x1+Gr)?0:vr(Or.x1+Gr)?jr[0]:Or.x1,y0:Dr(Or.y0-Gr)?0:Sr(Or.y0-Gr)?jr[1]:Or.y0,y1:Dr(Or.y1+Gr)?0:Sr(Or.y1+Gr)?jr[1]:Or.y1}},Jt=null,Yt={},rr={},jt=null,ar=function(Or,Ur){return Ur?Yt[st(Or)]:rr[st(Or)]},sr=function(Or,Ur,jr,Gr){if(Ur)return Yt[st(Tt)]||er;var wr=rr[St.level]||jr;return zt(Or)?lr(Or,wr,Gr):{}};yt.hasMultipleRoots&&At&&Pt++,St._maxDepth=Pt,St._backgroundColor=at.paper_bgcolor,St._entryDepth=kt.data.depth,St._atRootLevel=At;var Zt=-$t/2+Dt.l+Dt.w*(Nt.x[1]+Nt.x[0])/2,Kt=-Ut/2+Dt.t+Dt.h*(1-(Nt.y[1]+Nt.y[0])/2),or=function(Or){return Zt+Or},tr=function(Or){return Kt+Or},cr=tr(0),hr=or(0),br=function(Or){return hr+Or},Tr=function(Or){return cr+Or};function Ir(Or,Ur){return Or+","+Ur}var Ar=br(0),_r=function(Or){Or.x=Math.max(Ar,Or.x)},Er=St.pathbar.edgeshape,Rr=function(Or){var Ur=br(Math.max(Math.min(Or.x0,Or.x0),0)),jr=br(Math.min(Math.max(Or.x1,Or.x1),Ht)),Gr=Tr(Or.y0),wr=Tr(Or.y1),vr=Vt/2,Dr={},Sr={};Dr.x=Ur,Sr.x=jr,Dr.y=Sr.y=(Gr+wr)/2;var ur={x:Ur,y:Gr},xr={x:jr,y:Gr},Pr={x:jr,y:wr},Vr={x:Ur,y:wr};return Er===">"?(ur.x-=vr,xr.x-=vr,Pr.x-=vr,Vr.x-=vr):Er==="/"?(Pr.x-=vr,Vr.x-=vr,Dr.x-=vr/2,Sr.x-=vr/2):Er==="\\"?(ur.x-=vr,xr.x-=vr,Dr.x-=vr/2,Sr.x-=vr/2):Er==="<"&&(Dr.x-=vr,Sr.x-=vr),_r(ur),_r(Vr),_r(Dr),_r(xr),_r(Pr),_r(Sr),"M"+Ir(ur.x,ur.y)+"L"+Ir(xr.x,xr.y)+"L"+Ir(Sr.x,Sr.y)+"L"+Ir(Pr.x,Pr.y)+"L"+Ir(Vr.x,Vr.y)+"L"+Ir(Dr.x,Dr.y)+"Z"},zr=St[Mt?"tiling":"marker"].pad,Br=function(Or){return St.textposition.indexOf(Or)!==-1},kr=Br("top"),Nr=Br("left"),Qr=Br("right"),sn=Br("bottom"),un=function(Or){var Ur=or(Or.x0),jr=or(Or.x1),Gr=tr(Or.y0),wr=tr(Or.y1),vr=jr-Ur,Dr=wr-Gr;if(!vr||!Dr)return"";var Sr=St.marker.cornerradius||0,ur=Math.min(Sr,vr/2,Dr/2);ur&&Or.data&&Or.data.data&&Or.data.data.label&&(kr&&(ur=Math.min(ur,zr.t)),Nr&&(ur=Math.min(ur,zr.l)),Qr&&(ur=Math.min(ur,zr.r)),sn&&(ur=Math.min(ur,zr.b)));var xr=function(Pr,Vr){return ur?"a"+Ir(ur,ur)+" 0 0 1 "+Ir(Pr,Vr):""};return"M"+Ir(Ur,Gr+ur)+xr(ur,-ur)+"L"+Ir(jr-ur,Gr)+xr(ur,ur)+"L"+Ir(jr,wr-ur)+xr(-ur,ur)+"L"+Ir(Ur+ur,wr)+xr(-ur,-ur)+"Z"},qr=function(Or,Ur){var jr=Or.x0,Gr=Or.x1,wr=Or.y0,vr=Or.y1,Dr=Or.textBB,Sr=kr||Ur.isHeader&&!sn,ur=Sr?"start":sn?"end":"middle",xr=Br("right"),Pr=Br("left")||Ur.onPathbar,Vr=Pr?-1:xr?1:0;if(Ur.isHeader){if(jr+=(Mt?zr:zr.l)-mt,Gr-=(Mt?zr:zr.r)-mt,jr>=Gr){var en=(jr+Gr)/2;jr=en,Gr=en}var rn;sn?(rn=vr-(Mt?zr:zr.b),wr0)for(var wt=0;wt0){var _t=ht.xa,Mt=ht.ya,Tt,kt,wt,ct,It;nt.orientation==="h"?(It=j,Tt="y",wt=Mt,kt="x",ct=_t):(It=_,Tt="x",wt=_t,kt="y",ct=Mt);var At=ot[ht.index];if(It>=At.span[0]&&It<=At.span[1]){var Ot=xt.extendFlat({},ht),Pt=ct.c2p(It,!0),zt=mt.getKdeValue(At,nt,It),Dt=mt.getPositionOnKdePath(At,nt,Pt),Nt=wt._offset,$t=wt._length;Ot[Tt+"0"]=Dt[0],Ot[Tt+"1"]=Dt[1],Ot[kt+"0"]=Ot[kt+"1"]=Pt,Ot[kt+"Label"]=kt+": "+et.hoverLabelText(ct,It,nt[kt+"hoverformat"])+", "+ot[0].t.labels.kde+" "+zt.toFixed(3);for(var Ut=0,Ht=0;Ht")),ot.color=ut(vt,St),[ot]};function ut(ht,j){var _=ht[j.dir].marker,rt=_.color,tt=_.line.color,st=_.line.width;if(xt(rt))return rt;if(xt(tt)&&st)return tt}},95952:function(Ct,Rt,o){Ct.exports={attributes:o(65776),layoutAttributes:o(91352),supplyDefaults:o(24224).supplyDefaults,crossTraceDefaults:o(24224).crossTraceDefaults,supplyLayoutDefaults:o(59464),calc:o(73540),crossTraceCalc:o(50152),plot:o(64488),style:o(12252).style,hoverPoints:o(94196),eventData:o(53256),selectPoints:o(45784),moduleType:"trace",name:"waterfall",basePlotModule:o(57952),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}},91352:function(Ct){Ct.exports={waterfallmode:{valType:"enumerated",values:["group","overlay"],dflt:"group",editType:"calc"},waterfallgap:{valType:"number",min:0,max:1,editType:"calc"},waterfallgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},59464:function(Ct,Rt,o){var it=o(3400),xt=o(91352);Ct.exports=function(et,Et,mt){var ut=!1;function ht(rt,tt){return it.coerce(et,Et,xt,rt,tt)}for(var j=0;j0&&(at?It+="M"+wt[0]+","+ct[1]+"V"+ct[0]:It+="M"+wt[1]+","+ct[0]+"H"+wt[0]),yt!=="between"&&(Mt.isSum||Tt<_t-1)&&(at?It+="M"+wt[1]+","+ct[0]+"V"+ct[1]:It+="M"+wt[0]+","+ct[1]+"H"+wt[1]),wt[2]!==Et&&ct[2]!==Et&&(at?It+="M"+wt[1]+","+ct[1]+"V"+ct[2]:It+="M"+wt[1]+","+ct[1]+"H"+wt[2])),It===""&&(It="M0,0Z"),xt.ensureSingle(it.select(this),"path").attr("d",It).call(et.setClipUrl,rt.layerClipId,_)}})})}function j(_,rt,tt,st){var ot=[],nt=[],vt=st?rt:tt,dt=st?tt:rt;return ot[0]=vt.c2p(_.s0,!0),nt[0]=dt.c2p(_.p0,!0),ot[1]=vt.c2p(_.s1,!0),nt[1]=dt.c2p(_.p1,!0),ot[2]=vt.c2p(_.nextS0,!0),nt[2]=dt.c2p(_.nextP0,!0),st?[ot,nt]:[nt,ot]}},12252:function(Ct,Rt,o){var it=o(33428),xt=o(43616),et=o(76308),Et=o(13448).DESELECTDIM,mt=o(60100),ut=o(82744).resizeText,ht=mt.styleTextPoints;function j(_,rt,tt){var st=tt||it.select(_).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");ut(_,st,"waterfall"),st.style("opacity",function(ot){return ot[0].trace.opacity}),st.each(function(ot){var nt=it.select(this),vt=ot[0].trace;nt.selectAll(".point > path").each(function(dt){if(!dt.isBlank){var bt=vt[dt.dir].marker;it.select(this).call(et.fill,bt.color).call(et.stroke,bt.line.color).call(xt.dashLine,bt.line.dash,bt.line.width).style("opacity",vt.selectedpoints&&!dt.selected?Et:1)}}),ht(nt,vt,_),nt.selectAll(".lines").each(function(){var dt=vt.connector.line;xt.lineGroupStyle(it.select(this).selectAll("path"),dt.width,dt.color,dt.dash)})})}Ct.exports={style:j}},84224:function(Ct,Rt,o){var it=o(54460),xt=o(3400),et=o(73060),Et=o(60468).W,mt=o(39032).BADNUM;Rt.moduleType="transform",Rt.name="aggregate";var ut=Rt.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc"},groups:{valType:"string",strict:!0,noBlank:!0,arrayOk:!0,dflt:"x",editType:"calc"},aggregations:{_isLinkedToArray:"aggregation",target:{valType:"string",editType:"calc"},func:{valType:"enumerated",values:["count","sum","avg","median","mode","rms","stddev","min","max","first","last","change","range"],dflt:"first",editType:"calc"},funcmode:{valType:"enumerated",values:["sample","population"],dflt:"sample",editType:"calc"},enabled:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},editType:"calc"},ht=ut.aggregations;Rt.supplyDefaults=function(ot,nt){var vt={},dt;function bt(At,Ot){return xt.coerce(ot,vt,ut,At,Ot)}var ft=bt("enabled");if(!ft)return vt;var at=et.findArrayAttributes(nt),yt={};for(dt=0;dtSt&&(St=kt,_t=Tt)}}return St?bt(_t):mt};case"rms":return function(ft,at){for(var yt=0,St=0,_t=0;_t":return function(yt){return ft(yt)>at};case">=":return function(yt){return ft(yt)>=at};case"[]":return function(yt){var St=ft(yt);return St>=at[0]&&St<=at[1]};case"()":return function(yt){var St=ft(yt);return St>at[0]&&St=at[0]&&Stat[0]&&St<=at[1]};case"][":return function(yt){var St=ft(yt);return St<=at[0]||St>=at[1]};case")(":return function(yt){var St=ft(yt);return Stat[1]};case"](":return function(yt){var St=ft(yt);return St<=at[0]||St>at[1]};case")[":return function(yt){var St=ft(yt);return St=at[1]};case"{}":return function(yt){return at.indexOf(ft(yt))!==-1};case"}{":return function(yt){return at.indexOf(ft(yt))===-1}}}},32028:function(Ct,Rt,o){var it=o(3400),xt=o(73060),et=o(7316),Et=o(60468).W;Rt.moduleType="transform",Rt.name="groupby",Rt.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc"},groups:{valType:"data_array",dflt:[],editType:"calc"},nameformat:{valType:"string",editType:"calc"},styles:{_isLinkedToArray:"style",target:{valType:"string",editType:"calc"},value:{valType:"any",dflt:{},editType:"calc",_compareAsJSON:!0},editType:"calc"},editType:"calc"},Rt.supplyDefaults=function(ut,ht,j){var _,rt={};function tt(bt,ft){return it.coerce(ut,rt,Rt.attributes,bt,ft)}var st=tt("enabled");if(!st)return rt;tt("groups"),tt("nameformat",j._dataLength>1?"%{group} (%{trace})":"%{group}");var ot=ut.styles,nt=rt.styles=[];if(ot)for(_=0;_=0){yt.i=_.i;var st=ut.marker;st.pattern?(!st.colors||!st.pattern.shape)&&(st.color=tt,yt.color=tt):(st.color=tt,yt.color=tt),it.pointStyle(Tt,ut,ht,yt)}else xt.fill(Tt,tt)}},45716:function(Ct,Rt,o){var it=o(33428),xt=o(24040),et=o(10624).appendArrayPointValue,Tt=o(93024),yt=o(3400),ut=o(95924),ht=o(78176),j=o(69656),_=j.formatPieValue;Ct.exports=function(st,ot,nt,vt,dt){var bt=vt[0],ft=bt.trace,at=bt.hierarchy,mt=ft.type==="sunburst",St=ft.type==="treemap"||ft.type==="icicle";"_hasHoverLabel"in ft||(ft._hasHoverLabel=!1),"_hasHoverEvent"in ft||(ft._hasHoverEvent=!1);var _t=function(kt){var wt=nt._fullLayout;if(!(nt._dragging||wt.hovermode===!1)){var ct=nt._fullData[ft.index],It=kt.data.data,At=It.i,Ot=ht.isHierarchyRoot(kt),Pt=ht.getParent(at,kt),zt=ht.getValue(kt),Dt=function(Kt){return yt.castOption(ct,At,Kt)},Nt=Dt("hovertemplate"),$t=Tt.castHoverinfo(ct,wt,At),Ut=wt.separators,Ht;if(Nt||$t&&$t!=="none"&&$t!=="skip"){var Vt,Xt;mt&&(Vt=bt.cx+kt.pxmid[0]*(1-kt.rInscribed),Xt=bt.cy+kt.pxmid[1]*(1-kt.rInscribed)),St&&(Vt=kt._hoverX,Xt=kt._hoverY);var qt={},er=[],lr=[],Jt=function(Kt){return er.indexOf(Kt)!==-1};$t&&(er=$t==="all"?ct._module.attributes.hoverinfo.flags:$t.split("+")),qt.label=It.label,Jt("label")&&qt.label&&lr.push(qt.label),It.hasOwnProperty("v")&&(qt.value=It.v,qt.valueLabel=_(qt.value,Ut),Jt("value")&&lr.push(qt.valueLabel)),qt.currentPath=kt.currentPath=ht.getPath(kt.data),Jt("current path")&&!Ot&&lr.push(qt.currentPath);var Yt,rr=[],jt=function(){rr.indexOf(Yt)===-1&&(lr.push(Yt),rr.push(Yt))};qt.percentParent=kt.percentParent=zt/ht.getValue(Pt),qt.parent=kt.parentString=ht.getPtLabel(Pt),Jt("percent parent")&&(Yt=ht.formatPercent(qt.percentParent,Ut)+" of "+qt.parent,jt()),qt.percentEntry=kt.percentEntry=zt/ht.getValue(ot),qt.entry=kt.entry=ht.getPtLabel(ot),Jt("percent entry")&&!Ot&&!kt.onPathbar&&(Yt=ht.formatPercent(qt.percentEntry,Ut)+" of "+qt.entry,jt()),qt.percentRoot=kt.percentRoot=zt/ht.getValue(at),qt.root=kt.root=ht.getPtLabel(at),Jt("percent root")&&!Ot&&(Yt=ht.formatPercent(qt.percentRoot,Ut)+" of "+qt.root,jt()),qt.text=Dt("hovertext")||Dt("text"),Jt("text")&&(Yt=qt.text,yt.isValidTextValue(Yt)&&lr.push(Yt)),Ht=[rt(kt,ct,dt.eventDataKeys)];var ar={trace:ct,y:Xt,_x0:kt._x0,_x1:kt._x1,_y0:kt._y0,_y1:kt._y1,text:lr.join("
"),name:Nt||Jt("name")?ct.name:void 0,color:Dt("hoverlabel.bgcolor")||It.color,borderColor:Dt("hoverlabel.bordercolor"),fontFamily:Dt("hoverlabel.font.family"),fontSize:Dt("hoverlabel.font.size"),fontColor:Dt("hoverlabel.font.color"),fontWeight:Dt("hoverlabel.font.weight"),fontStyle:Dt("hoverlabel.font.style"),fontVariant:Dt("hoverlabel.font.variant"),nameLength:Dt("hoverlabel.namelength"),textAlign:Dt("hoverlabel.align"),hovertemplate:Nt,hovertemplateLabels:qt,eventData:Ht};mt&&(ar.x0=Vt-kt.rInscribed*kt.rpx1,ar.x1=Vt+kt.rInscribed*kt.rpx1,ar.idealAlign=kt.pxmid[0]<0?"left":"right"),St&&(ar.x=Vt,ar.idealAlign=Vt<0?"left":"right");var sr=[];Tt.loneHover(ar,{container:wt._hoverlayer.node(),outerContainer:wt._paper.node(),gd:nt,inOut_bbox:sr}),Ht[0].bbox=sr[0],ft._hasHoverLabel=!0}if(St){var Zt=st.select("path.surface");dt.styleOne(Zt,kt,ct,nt,{hovered:!0})}ft._hasHoverEvent=!0,nt.emit("plotly_hover",{points:Ht||[rt(kt,ct,dt.eventDataKeys)],event:it.event})}},Mt=function(kt){var wt=nt._fullLayout,ct=nt._fullData[ft.index],It=it.select(this).datum();if(ft._hasHoverEvent&&(kt.originalEvent=it.event,nt.emit("plotly_unhover",{points:[rt(It,ct,dt.eventDataKeys)],event:it.event}),ft._hasHoverEvent=!1),ft._hasHoverLabel&&(Tt.loneUnhover(wt._hoverlayer.node()),ft._hasHoverLabel=!1),St){var At=st.select("path.surface");dt.styleOne(At,It,ct,nt,{hovered:!1})}},Et=function(kt){var wt=nt._fullLayout,ct=nt._fullData[ft.index],It=mt&&(ht.isHierarchyRoot(kt)||ht.isLeaf(kt)),At=ht.getPtId(kt),Ot=ht.isEntry(kt)?ht.findEntryWithChild(at,At):ht.findEntryWithLevel(at,At),Pt=ht.getPtId(Ot),zt={points:[rt(kt,ct,dt.eventDataKeys)],event:it.event};It||(zt.nextLevel=Pt);var Dt=ut.triggerHandler(nt,"plotly_"+ft.type+"click",zt);if(Dt!==!1&&wt.hovermode&&(nt._hoverdata=[rt(kt,ct,dt.eventDataKeys)],Tt.click(nt,it.event)),!It&&Dt!==!1&&!nt._dragging&&!nt._transitioning){xt.call("_storeDirectGUIEdit",ct,wt._tracePreGUI[ct.uid],{level:ct.level});var Nt={data:[{level:Pt}],traces:[ft.index]},$t={frame:{redraw:!1,duration:dt.transitionTime},transition:{duration:dt.transitionTime,easing:dt.transitionEasing},mode:"immediate",fromcurrent:!0};Tt.loneUnhover(wt._hoverlayer.node()),xt.call("animate",nt,Nt,$t)}};st.on("mouseover",_t),st.on("mouseout",Mt),st.on("click",Et)};function rt(tt,st,ot){for(var nt=tt.data.data,vt={curveNumber:st.index,pointNumber:nt.i,data:st._input,fullData:st},dt=0;dt0)},Rt.getMaxDepth=function(j){return j.maxdepth>=0?j.maxdepth:1/0},Rt.isHeader=function(j,_){return!(Rt.isLeaf(j)||j.depth===_._maxDepth-1)};function ht(j){return j.data.data.pid}Rt.getParent=function(j,_){return Rt.findEntryWithLevel(j,ht(_))},Rt.listPath=function(j,_){var rt=j.parent;if(!rt)return[];var tt=_?[rt.data[_]]:[rt];return Rt.listPath(rt,_).concat(tt)},Rt.getPath=function(j){return Rt.listPath(j,"label").join("/")+"/"},Rt.formatValue=Tt.formatPieValue,Rt.formatPercent=function(j,_){var rt=it.formatPercent(j,0);return rt==="0%"&&(rt=Tt.formatPiePercent(j,_)),rt}},5621:function(Ct,Rt,o){Ct.exports={moduleType:"trace",name:"sunburst",basePlotModule:o(54904),categories:[],animatable:!0,attributes:o(424),layoutAttributes:o(84920),supplyDefaults:o(25244),supplyLayoutDefaults:o(28732),calc:o(3776).calc,crossTraceCalc:o(3776).crossTraceCalc,plot:o(96488).plot,style:o(85676).style,colorbar:o(5528),meta:{}}},84920:function(Ct){Ct.exports={sunburstcolorway:{valType:"colorlist",editType:"calc"},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc"}}},28732:function(Ct,Rt,o){var it=o(3400),xt=o(84920);Ct.exports=function(Tt,yt){function ut(ht,j){return it.coerce(Tt,yt,xt,ht,j)}ut("sunburstcolorway",yt.colorway),ut("extendsunburstcolors")}},96488:function(Ct,Rt,o){var it=o(33428),xt=o(74148),et=o(67756).qy,Tt=o(43616),yt=o(3400),ut=o(72736),ht=o(82744),j=ht.recordMinTextSize,_=ht.clearMinTextSize,rt=o(37820),tt=o(69656).getRotationAngle,st=rt.computeTransform,ot=rt.transformInsideText,nt=o(85676).styleOne,vt=o(60100).resizeText,dt=o(45716),bt=o(27328),ft=o(78176);Rt.plot=function(Et,kt,wt,ct){var It=Et._fullLayout,At=It._sunburstlayer,Ot,Pt,zt=!wt,Dt=!It.uniformtext.mode&&ft.hasTransition(wt);if(_("sunburst",It),Ot=At.selectAll("g.trace.sunburst").data(kt,function($t){return $t[0].trace.uid}),Ot.enter().append("g").classed("trace",!0).classed("sunburst",!0).attr("stroke-linejoin","round"),Ot.order(),Dt){ct&&(Pt=ct());var Nt=it.transition().duration(wt.duration).ease(wt.easing).each("end",function(){Pt&&Pt()}).each("interrupt",function(){Pt&&Pt()});Nt.each(function(){At.selectAll("g.trace").each(function($t){at(Et,$t,this,wt)})})}else Ot.each(function($t){at(Et,$t,this,wt)}),It.uniformtext.mode&&vt(Et,It._sunburstlayer.selectAll(".trace"),"sunburst");zt&&Ot.exit().remove()};function at(Et,kt,wt,ct){var It=Et._context.staticPlot,At=Et._fullLayout,Ot=!At.uniformtext.mode&&ft.hasTransition(ct),Pt=it.select(wt),zt=Pt.selectAll("g.slice"),Dt=kt[0],Nt=Dt.trace,$t=Dt.hierarchy,Ut=ft.findEntryWithLevel($t,Nt.level),Ht=ft.getMaxDepth(Nt),Vt=At._size,Xt=Nt.domain,qt=Vt.w*(Xt.x[1]-Xt.x[0]),er=Vt.h*(Xt.y[1]-Xt.y[0]),lr=.5*Math.min(qt,er),Jt=Dt.cx=Vt.l+Vt.w*(Xt.x[1]+Xt.x[0])/2,Yt=Dt.cy=Vt.t+Vt.h*(1-Xt.y[0])-er/2;if(!Ut)return zt.remove();var rr=null,jt={};Ot&&zt.each(function(Nr){jt[ft.getPtId(Nr)]={rpx0:Nr.rpx0,rpx1:Nr.rpx1,x0:Nr.x0,x1:Nr.x1,transform:Nr.transform},!rr&&ft.isEntry(Nr)&&(rr=Nr)});var ar=mt(Ut).descendants(),sr=Ut.height+1,Zt=0,Kt=Ht;Dt.hasMultipleRoots&&ft.isHierarchyRoot(Ut)&&(ar=ar.slice(1),sr-=1,Zt=1,Kt+=1),ar=ar.filter(function(Nr){return Nr.y1<=Kt});var or=tt(Nt.rotation);or&&ar.forEach(function(Nr){Nr.x0+=or,Nr.x1+=or});var tr=Math.min(sr,Ht),cr=function(Nr){return(Nr-Zt)/tr*lr},mr=function(Nr,Qr){return[Nr*Math.cos(Qr),-Nr*Math.sin(Qr)]},Ar=function(Nr){return yt.pathAnnulus(Nr.rpx0,Nr.rpx1,Nr.x0,Nr.x1,Jt,Yt)},br=function(Nr){return Jt+_t(Nr)[0]*(Nr.transform.rCenter||0)+(Nr.transform.x||0)},Ir=function(Nr){return Yt+_t(Nr)[1]*(Nr.transform.rCenter||0)+(Nr.transform.y||0)};zt=zt.data(ar,ft.getPtId),zt.enter().append("g").classed("slice",!0),Ot?zt.exit().transition().each(function(){var Nr=it.select(this),Qr=Nr.select("path.surface");Qr.transition().attrTween("d",function(un){var en=Rr(un);return function(Xr){return Ar(en(Xr))}});var sn=Nr.select("g.slicetext");sn.attr("opacity",0)}).remove():zt.exit().remove(),zt.order();var Tr=null;if(Ot&&rr){var _r=ft.getPtId(rr);zt.each(function(Nr){Tr===null&&ft.getPtId(Nr)===_r&&(Tr=Nr.x1)})}var Er=zt;Ot&&(Er=Er.transition().each("end",function(){var Nr=it.select(this);ft.setSliceCursor(Nr,Et,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})})),Er.each(function(Nr){var Qr=it.select(this),sn=yt.ensureSingle(Qr,"path","surface",function(pn){pn.style("pointer-events",It?"none":"all")});Nr.rpx0=cr(Nr.y0),Nr.rpx1=cr(Nr.y1),Nr.xmid=(Nr.x0+Nr.x1)/2,Nr.pxmid=mr(Nr.rpx1,Nr.xmid),Nr.midangle=-(Nr.xmid-Math.PI/2),Nr.startangle=-(Nr.x0-Math.PI/2),Nr.stopangle=-(Nr.x1-Math.PI/2),Nr.halfangle=.5*Math.min(yt.angleDelta(Nr.x0,Nr.x1)||Math.PI,Math.PI),Nr.ring=1-Nr.rpx0/Nr.rpx1,Nr.rInscribed=St(Nr),Ot?sn.transition().attrTween("d",function(pn){var Tn=zr(pn);return function(Zr){return Ar(Tn(Zr))}}):sn.attr("d",Ar),Qr.call(dt,Ut,Et,kt,{eventDataKeys:bt.eventDataKeys,transitionTime:bt.CLICK_TRANSITION_TIME,transitionEasing:bt.CLICK_TRANSITION_EASING}).call(ft.setSliceCursor,Et,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:Et._transitioning}),sn.call(nt,Nr,Nt,Et);var un=yt.ensureSingle(Qr,"g","slicetext"),en=yt.ensureSingle(un,"text","",function(pn){pn.attr("data-notex",1)}),Xr=yt.ensureUniformFontSize(Et,ft.determineTextFont(Nt,Nr,At.font));en.text(Rt.formatSliceLabel(Nr,Ut,Nt,kt,At)).classed("slicetext",!0).attr("text-anchor","middle").call(Tt.font,Xr).call(ut.convertToTspans,Et);var ln=Tt.bBox(en.node());Nr.transform=ot(ln,Nr,Dt),Nr.transform.targetX=br(Nr),Nr.transform.targetY=Ir(Nr);var mn=function(pn,Tn){var Zr=pn.transform;return st(Zr,Tn),Zr.fontSize=Xr.size,j(Nt.type,Zr,At),yt.getTextTransform(Zr)};Ot?en.transition().attrTween("transform",function(pn){var Tn=Or(pn);return function(Zr){return mn(Tn(Zr),ln)}}):en.attr("transform",mn(Nr,ln))});function Rr(Nr){var Qr=ft.getPtId(Nr),sn=jt[Qr],un=jt[ft.getPtId(Ut)],en;if(un){var Xr=(Nr.x1>un.x1?2*Math.PI:0)+or;en=Nr.rpx1Tr?2*Math.PI:0)+or;sn={x0:en,x1:en}}else sn={rpx0:lr,rpx1:lr},yt.extendFlat(sn,kr(Nr));else sn={rpx0:0,rpx1:0};else sn={x0:or,x1:or};return et(sn,un)}function Or(Nr){var Qr=jt[ft.getPtId(Nr)],sn,un=Nr.transform;if(Qr)sn=Qr;else if(sn={rpx1:Nr.rpx1,transform:{textPosAngle:un.textPosAngle,scale:0,rotate:un.rotate,rCenter:un.rCenter,x:un.x,y:un.y}},rr)if(Nr.parent)if(Tr){var en=Nr.x1>Tr?2*Math.PI:0;sn.x0=sn.x1=en}else yt.extendFlat(sn,kr(Nr));else sn.x0=sn.x1=or;else sn.x0=sn.x1=or;var Xr=et(sn.transform.textPosAngle,Nr.transform.textPosAngle),ln=et(sn.rpx1,Nr.rpx1),mn=et(sn.x0,Nr.x0),pn=et(sn.x1,Nr.x1),Tn=et(sn.transform.scale,un.scale),Zr=et(sn.transform.rotate,un.rotate),Fr=un.rCenter===0?3:sn.transform.rCenter===0?1/3:1,Ur=et(sn.transform.rCenter,un.rCenter),Wr=function(Gr){return Ur(Math.pow(Gr,Fr))};return function(Gr){var wr=ln(Gr),pr=mn(Gr),Dr=pn(Gr),Sr=Wr(Gr),ur=mr(wr,(pr+Dr)/2),xr=Xr(Gr),Pr={pxmid:ur,rpx1:wr,transform:{textPosAngle:xr,rCenter:Sr,x:un.x,y:un.y}};return j(Nt.type,un,At),{transform:{targetX:br(Pr),targetY:Ir(Pr),scale:Tn(Gr),rotate:Zr(Gr),rCenter:Sr}}}}function kr(Nr){var Qr=Nr.parent,sn=jt[ft.getPtId(Qr)],un={};if(sn){var en=Qr.children,Xr=en.indexOf(Nr),ln=en.length,mn=et(sn.x0,sn.x1);un.x0=mn(Xr/ln),un.x1=mn(Xr/ln)}else un.x0=un.x1=0;return un}}function mt(Et){return xt.partition().size([2*Math.PI,Et.height+1])(Et)}Rt.formatSliceLabel=function(Et,kt,wt,ct,It){var At=wt.texttemplate,Ot=wt.textinfo;if(!At&&(!Ot||Ot==="none"))return"";var Pt=It.separators,zt=ct[0],Dt=Et.data.data,Nt=zt.hierarchy,$t=ft.isHierarchyRoot(Et),Ut=ft.getParent(Nt,Et),Ht=ft.getValue(Et);if(!At){var Vt=Ot.split("+"),Xt=function(Zt){return Vt.indexOf(Zt)!==-1},qt=[],er;if(Xt("label")&&Dt.label&&qt.push(Dt.label),Dt.hasOwnProperty("v")&&Xt("value")&&qt.push(ft.formatValue(Dt.v,Pt)),!$t){Xt("current path")&&qt.push(ft.getPath(Et.data));var lr=0;Xt("percent parent")&&lr++,Xt("percent entry")&&lr++,Xt("percent root")&&lr++;var Jt=lr>1;if(lr){var Yt,rr=function(Zt){er=ft.formatPercent(Yt,Pt),Jt&&(er+=" of "+Zt),qt.push(er)};Xt("percent parent")&&!$t&&(Yt=Ht/ft.getValue(Ut),rr("parent")),Xt("percent entry")&&(Yt=Ht/ft.getValue(kt),rr("entry")),Xt("percent root")&&(Yt=Ht/ft.getValue(Nt),rr("root"))}}return Xt("text")&&(er=yt.castOption(wt,Dt.i,"text"),yt.isValidTextValue(er)&&qt.push(er)),qt.join("
")}var jt=yt.castOption(wt,Dt.i,"texttemplate");if(!jt)return"";var ar={};Dt.label&&(ar.label=Dt.label),Dt.hasOwnProperty("v")&&(ar.value=Dt.v,ar.valueLabel=ft.formatValue(Dt.v,Pt)),ar.currentPath=ft.getPath(Et.data),$t||(ar.percentParent=Ht/ft.getValue(Ut),ar.percentParentLabel=ft.formatPercent(ar.percentParent,Pt),ar.parent=ft.getPtLabel(Ut)),ar.percentEntry=Ht/ft.getValue(kt),ar.percentEntryLabel=ft.formatPercent(ar.percentEntry,Pt),ar.entry=ft.getPtLabel(kt),ar.percentRoot=Ht/ft.getValue(Nt),ar.percentRootLabel=ft.formatPercent(ar.percentRoot,Pt),ar.root=ft.getPtLabel(Nt),Dt.hasOwnProperty("color")&&(ar.color=Dt.color);var sr=yt.castOption(wt,Dt.i,"text");return(yt.isValidTextValue(sr)||sr==="")&&(ar.text=sr),ar.customdata=yt.castOption(wt,Dt.i,"customdata"),yt.texttemplateString(jt,ar,It._d3locale,ar,wt._meta||{})};function St(Et){return Et.rpx0===0&&yt.isFullCircle([Et.x0,Et.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(Et.halfangle)),Et.ring/2))}function _t(Et){return Mt(Et.rpx1,Et.transform.textPosAngle)}function Mt(Et,kt){return[Et*Math.sin(kt),-Et*Math.cos(kt)]}},85676:function(Ct,Rt,o){var it=o(33428),xt=o(76308),et=o(3400),Tt=o(82744).resizeText,yt=o(60404);function ut(j){var _=j._fullLayout._sunburstlayer.selectAll(".trace");Tt(j,_,"sunburst"),_.each(function(rt){var tt=it.select(this),st=rt[0],ot=st.trace;tt.style("opacity",ot.opacity),tt.selectAll("path.surface").each(function(nt){it.select(this).call(ht,nt,ot,j)})})}function ht(j,_,rt,tt){var st=_.data.data,ot=!_.children,nt=st.i,vt=et.castOption(rt,nt,"marker.line.color")||xt.defaultLine,dt=et.castOption(rt,nt,"marker.line.width")||0;j.call(yt,_,rt,tt).style("stroke-width",dt).call(xt.stroke,vt).style("opacity",ot?rt.leaf.opacity:null)}Ct.exports={style:ut,styleOne:ht}},16716:function(Ct,Rt,o){var it=o(76308),xt=o(49084),et=o(29736).axisHoverFormat,Tt=o(21776).Ks,yt=o(45464),ut=o(92880).extendFlat,ht=o(67824).overrideAll;function j(tt){return{valType:"boolean",dflt:!1}}function _(tt){return{show:{valType:"boolean",dflt:!1},start:{valType:"number",dflt:null,editType:"plot"},end:{valType:"number",dflt:null,editType:"plot"},size:{valType:"number",dflt:null,min:0,editType:"plot"},project:{x:j(),y:j(),z:j()},color:{valType:"color",dflt:it.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:it.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var rt=Ct.exports=ht(ut({z:{valType:"data_array"},x:{valType:"data_array"},y:{valType:"data_array"},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:Tt(),xhoverformat:et("x"),yhoverformat:et("y"),zhoverformat:et("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},xt("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:_(),y:_(),z:_()},hidesurface:{valType:"boolean",dflt:!1},lightposition:{x:{valType:"number",min:-1e5,max:1e5,dflt:10},y:{valType:"number",min:-1e5,max:1e5,dflt:1e4},z:{valType:"number",min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:"number",min:0,max:1,dflt:.8},diffuse:{valType:"number",min:0,max:1,dflt:.8},specular:{valType:"number",min:0,max:2,dflt:.05},roughness:{valType:"number",min:0,max:1,dflt:.5},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},_deprecated:{zauto:ut({},xt.zauto,{}),zmin:ut({},xt.zmin,{}),zmax:ut({},xt.zmax,{})},hoverinfo:ut({},yt.hoverinfo),showlegend:ut({},yt.showlegend,{dflt:!1})}),"calc","nested");rt.x.editType=rt.y.editType=rt.z.editType="calc+clearAxisTypes",rt.transforms=void 0},56576:function(Ct,Rt,o){var it=o(47128);Ct.exports=function(et,Tt){Tt.surfacecolor?it(et,Tt,{vals:Tt.surfacecolor,containerStr:"",cLetter:"c"}):it(et,Tt,{vals:Tt.z,containerStr:"",cLetter:"c"})}},79164:function(Ct,Rt,o){var it=o(67792).gl_surface3d,xt=o(67792).ndarray,et=o(67792).ndarray_linear_interpolate.d2,Tt=o(70448),yt=o(11240),ut=o(3400).isArrayOrTypedArray,ht=o(33040).parseColorScale,j=o(43080),_=o(8932).extractOpts;function rt(ct,It,At){this.scene=ct,this.uid=At,this.surface=It,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var tt=rt.prototype;tt.getXat=function(ct,It,At,Ot){var Pt=ut(this.data.x)?ut(this.data.x[0])?this.data.x[It][ct]:this.data.x[ct]:ct;return At===void 0?Pt:Ot.d2l(Pt,0,At)},tt.getYat=function(ct,It,At,Ot){var Pt=ut(this.data.y)?ut(this.data.y[0])?this.data.y[It][ct]:this.data.y[It]:It;return At===void 0?Pt:Ot.d2l(Pt,0,At)},tt.getZat=function(ct,It,At,Ot){var Pt=this.data.z[It][ct];return Pt===null&&this.data.connectgaps&&this.data._interpolatedZ&&(Pt=this.data._interpolatedZ[It][ct]),At===void 0?Pt:Ot.d2l(Pt,0,At)},tt.handlePick=function(ct){if(ct.object===this.surface){var It=(ct.data.index[0]-1)/this.dataScaleX-1,At=(ct.data.index[1]-1)/this.dataScaleY-1,Ot=Math.max(Math.min(Math.round(It),this.data.z[0].length-1),0),Pt=Math.max(Math.min(Math.round(At),this.data._ylength-1),0);ct.index=[Ot,Pt],ct.traceCoordinate=[this.getXat(Ot,Pt),this.getYat(Ot,Pt),this.getZat(Ot,Pt)],ct.dataCoordinate=[this.getXat(Ot,Pt,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(Ot,Pt,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(Ot,Pt,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var zt=0;zt<3;zt++){var Dt=ct.dataCoordinate[zt];Dt!=null&&(ct.dataCoordinate[zt]*=this.scene.dataScale[zt])}var Nt=this.data.hovertext||this.data.text;return ut(Nt)&&Nt[Pt]&&Nt[Pt][Ot]!==void 0?ct.textLabel=Nt[Pt][Ot]:Nt?ct.textLabel=Nt:ct.textLabel="",ct.data.dataCoordinate=ct.dataCoordinate.slice(),this.surface.highlight(ct.data),this.scene.glplot.spikes.position=ct.dataCoordinate,!0}};function st(ct){var It=ct[0].rgb,At=ct[ct.length-1].rgb;return It[0]===At[0]&&It[1]===At[1]&&It[2]===At[2]&&It[3]===At[3]}var ot=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function nt(ct,It){if(ct0){At=ot[Ot];break}return At}function bt(ct,It){if(!(ct<1||It<1)){for(var At=vt(ct),Ot=vt(It),Pt=1,zt=0;ztSt;)Ot--,Ot/=dt(Ot),Ot++,Ot1?Pt:1};function _t(ct,It,At){var Ot=At[8]+At[2]*It[0]+At[5]*It[1];return ct[0]=(At[6]+At[0]*It[0]+At[3]*It[1])/Ot,ct[1]=(At[7]+At[1]*It[0]+At[4]*It[1])/Ot,ct}function Mt(ct,It,At){return Et(ct,It,_t,At),ct}function Et(ct,It,At,Ot){for(var Pt=[0,0],zt=ct.shape[0],Dt=ct.shape[1],Nt=0;Nt0&&this.contourStart[Ot]!==null&&this.contourEnd[Ot]!==null&&this.contourEnd[Ot]>this.contourStart[Ot]))for(It[Ot]=!0,Pt=this.contourStart[Ot];PtXt&&(this.minValues[Ut]=Xt),this.maxValues[Ut]",maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:"cubic-out",scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:"cubic-out",uplift:5,wrapSpacer:" ",wrapSplitCharacter:" ",cn:{table:"table",tableControlView:"table-control-view",scrollBackground:"scroll-background",yColumn:"y-column",columnBlock:"column-block",scrollAreaClip:"scroll-area-clip",scrollAreaClipRect:"scroll-area-clip-rect",columnBoundary:"column-boundary",columnBoundaryClippath:"column-boundary-clippath",columnBoundaryRect:"column-boundary-rect",columnCells:"column-cells",columnCell:"column-cell",cellRect:"cell-rect",cellText:"cell-text",cellTextHolder:"cell-text-holder",scrollbarKit:"scrollbar-kit",scrollbar:"scrollbar",scrollbarSlider:"scrollbar-slider",scrollbarGlyph:"scrollbar-glyph",scrollbarCaptureZone:"scrollbar-capture-zone"}}},55992:function(Ct,Rt,o){var it=o(23536),xt=o(92880).extendFlat,et=o(38248),Tt=o(38116).isTypedArray,yt=o(38116).isArrayOrTypedArray;Ct.exports=function(vt,dt){var bt=j(dt.cells.values),ft=function(Xt){return Xt.slice(dt.header.values.length,Xt.length)},at=j(dt.header.values);at.length&&!at[0].length&&(at[0]=[""],at=j(at));var mt=at.concat(ft(bt).map(function(){return _((at[0]||[""]).length)})),St=dt.domain,_t=Math.floor(vt._fullLayout._size.w*(St.x[1]-St.x[0])),Mt=Math.floor(vt._fullLayout._size.h*(St.y[1]-St.y[0])),Et=dt.header.values.length?mt[0].map(function(){return dt.header.height}):[it.emptyHeaderHeight],kt=bt.length?bt[0].map(function(){return dt.cells.height}):[],wt=Et.reduce(ht,0),ct=Mt-wt,It=ct+it.uplift,At=st(kt,It),Ot=st(Et,wt),Pt=tt(Ot,[]),zt=tt(At,Pt),Dt={},Nt=dt._fullInput.columnorder;yt(Nt)&&(Nt=Array.from(Nt)),Nt=Nt.concat(ft(bt.map(function(Xt,qt){return qt})));var $t=mt.map(function(Xt,qt){var er=yt(dt.columnwidth)?dt.columnwidth[Math.min(qt,dt.columnwidth.length-1)]:dt.columnwidth;return et(er)?Number(er):1}),Ut=$t.reduce(ht,0);$t=$t.map(function(Xt){return Xt/Ut*_t});var Ht=Math.max(ut(dt.header.line.width),ut(dt.cells.line.width)),Vt={key:dt.uid+vt._context.staticPlot,translateX:St.x[0]*vt._fullLayout._size.w,translateY:vt._fullLayout._size.h*(1-St.y[1]),size:vt._fullLayout._size,width:_t,maxLineWidth:Ht,height:Mt,columnOrder:Nt,groupHeight:Mt,rowBlocks:zt,headerRowBlocks:Pt,scrollY:0,cells:xt({},dt.cells,{values:bt}),headerCells:xt({},dt.header,{values:mt}),gdColumns:mt.map(function(Xt){return Xt[0]}),gdColumnsOriginalOrder:mt.map(function(Xt){return Xt[0]}),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:mt.map(function(Xt,qt){var er=Dt[Xt];Dt[Xt]=(er||0)+1;var lr=Xt+"__"+Dt[Xt];return{key:lr,label:Xt,specIndex:qt,xIndex:Nt[qt],xScale:rt,x:void 0,calcdata:void 0,columnWidth:$t[qt]}})};return Vt.columns.forEach(function(Xt){Xt.calcdata=Vt,Xt.x=rt(Xt)}),Vt};function ut(nt){if(yt(nt)){for(var vt=0,dt=0;dt=vt||Mt===nt.length-1)&&(dt[ft]=mt,mt.key=_t++,mt.firstRowIndex=St,mt.lastRowIndex=Mt,mt=ot(),ft+=at,St=Mt+1,at=0);return dt}function ot(){return{firstRowIndex:null,lastRowIndex:null,rows:[]}}},53056:function(Ct,Rt,o){var it=o(92880).extendFlat;Rt.splitToPanels=function(et){var Tt=[0,0],yt=it({},et,{key:"header",type:"header",page:0,prevPages:Tt,currentRepaint:[null,null],dragHandle:!0,values:et.calcdata.headerCells.values[et.specIndex],rowBlocks:et.calcdata.headerRowBlocks,calcdata:it({},et.calcdata,{cells:et.calcdata.headerCells})}),ut=it({},et,{key:"cells1",type:"cells",page:0,prevPages:Tt,currentRepaint:[null,null],dragHandle:!1,values:et.calcdata.cells.values[et.specIndex],rowBlocks:et.calcdata.rowBlocks}),ht=it({},et,{key:"cells2",type:"cells",page:1,prevPages:Tt,currentRepaint:[null,null],dragHandle:!1,values:et.calcdata.cells.values[et.specIndex],rowBlocks:et.calcdata.rowBlocks});return[ut,ht,yt]},Rt.splitToCells=function(et){var Tt=xt(et);return(et.values||[]).slice(Tt[0],Tt[1]).map(function(yt,ut){var ht=typeof yt=="string"&&yt.match(/[<$&> ]/)?"_keybuster_"+Math.random():"";return{keyWithinBlock:ut+ht,key:Tt[0]+ut,column:et,calcdata:et.calcdata,page:et.page,rowBlocks:et.rowBlocks,value:yt}})};function xt(et){var Tt=et.rowBlocks[et.page],yt=Tt?Tt.rows[0].rowIndex:0,ut=Tt?yt+Tt.rows.length:0;return[yt,ut]}},53212:function(Ct,Rt,o){var it=o(3400),xt=o(60520),et=o(86968).Q;function Tt(yt,ut){for(var ht=yt.columnorder||[],j=yt.header.values.length,_=ht.slice(0,j),rt=_.slice().sort(function(ot,nt){return ot-nt}),tt=_.map(function(ot){return rt.indexOf(ot)}),st=tt.length;st/i),Er=!Tr||_r;mr.mayHaveMarkup=Tr&&Ir.match(/[<&>]/);var Rr=At(Ir);mr.latex=Rr;var zr=Rr?"":zt(mr.calcdata.cells.prefix,Ar,br)||"",Or=Rr?"":zt(mr.calcdata.cells.suffix,Ar,br)||"",kr=Rr?null:zt(mr.calcdata.cells.format,Ar,br)||null,Nr=zr+(kr?Tt(kr)(mr.value):mr.value)+Or,Qr;mr.wrappingNeeded=!mr.wrapped&&!Er&&!Rr&&(Qr=Ot(Nr)),mr.cellHeightMayIncrease=_r||Rr||mr.mayHaveMarkup||(Qr===void 0?Ot(Nr):Qr),mr.needsConvertToTspans=mr.mayHaveMarkup||mr.wrappingNeeded||mr.latex;var sn;if(mr.wrappingNeeded){var un=it.wrapSplitCharacter===" "?Nr.replace(/
mr&&cr.push(Ar),mr+=Tr}return cr}function Vt(Kt,or,tr){var cr=bt(or)[0];if(cr!==void 0){var mr=cr.rowBlocks,Ar=cr.calcdata,br=rr(mr,mr.length),Ir=cr.calcdata.groupHeight-Ut(cr),Tr=Ar.scrollY=Math.max(0,Math.min(br-Ir,Ar.scrollY)),_r=Ht(mr,Tr,Ir);_r.length===1&&(_r[0]===mr.length-1?_r.unshift(_r[0]-1):_r.push(_r[0]+1)),_r[0]%2&&_r.reverse(),or.each(function(Er,Rr){Er.page=_r[Rr],Er.scrollY=Tr}),or.attr("transform",function(Er){var Rr=rr(Er.rowBlocks,Er.page)-Er.scrollY;return _(0,Rr)}),Kt&&(qt(Kt,tr,or,_r,cr.prevPages,cr,0),qt(Kt,tr,or,_r,cr.prevPages,cr,1),ft(tr,Kt))}}function Xt(Kt,or,tr,cr){return function(Ar){var br=Ar.calcdata?Ar.calcdata:Ar,Ir=or.filter(function(Rr){return br.key===Rr.key}),Tr=tr||br.scrollbarState.dragMultiplier,_r=br.scrollY;br.scrollY=cr===void 0?br.scrollY+Tr*xt.event.dy:cr;var Er=Ir.selectAll("."+it.cn.yColumn).selectAll("."+it.cn.columnBlock).filter(Nt);return Vt(Kt,Er,Ir),br.scrollY===_r}}function qt(Kt,or,tr,cr,mr,Ar,br){var Ir=cr[br]!==mr[br];Ir&&(clearTimeout(Ar.currentRepaint[br]),Ar.currentRepaint[br]=setTimeout(function(){var Tr=tr.filter(function(_r,Er){return Er===br&&cr[Er]!==mr[Er]});at(Kt,or,Tr,tr),mr[br]=cr[br]}))}function er(Kt,or,tr,cr){return function(){var Ar=xt.select(or.parentNode);Ar.each(function(br){var Ir=br.fragments;Ar.selectAll("tspan.line").each(function(Nr,Qr){Ir[Qr].width=this.getComputedTextLength()});var Tr=Ir[Ir.length-1].width,_r=Ir.slice(0,-1),Er=[],Rr,zr,Or=0,kr=br.column.columnWidth-2*it.cellPad;for(br.value="";_r.length;)Rr=_r.shift(),zr=Rr.width+Tr,Or+zr>kr&&(br.value+=Er.join(it.wrapSpacer)+it.lineBreaker,Er=[],Or=0),Er.push(Rr.text),Or+=zr;Or&&(br.value+=Er.join(it.wrapSpacer)),br.wrapped=!0}),Ar.selectAll("tspan.line").remove(),It(Ar.select("."+it.cn.cellText),tr,Kt,cr),xt.select(or.parentNode.parentNode).call(Yt)}}function lr(Kt,or,tr,cr,mr){return function(){if(!mr.settledY){var br=xt.select(or.parentNode),Ir=sr(mr),Tr=mr.key-Ir.firstRowIndex,_r=Ir.rows[Tr].rowHeight,Er=mr.cellHeightMayIncrease?or.parentNode.getBoundingClientRect().height+2*it.cellPad:_r,Rr=Math.max(Er,_r),zr=Rr-Ir.rows[Tr].rowHeight;zr&&(Ir.rows[Tr].rowHeight=Rr,Kt.selectAll("."+it.cn.columnCell).call(Yt),Vt(null,Kt.filter(Nt),0),ft(tr,cr,!0)),br.attr("transform",function(){var Or=this,kr=Or.parentNode,Nr=kr.getBoundingClientRect(),Qr=xt.select(Or.parentNode).select("."+it.cn.cellRect).node().getBoundingClientRect(),sn=Or.transform.baseVal.consolidate(),un=Qr.top-Nr.top+(sn?sn.matrix.f:it.cellPad);return _(Jt(mr,xt.select(Or.parentNode).select("."+it.cn.cellTextHolder).node().getBoundingClientRect().width),un)}),mr.settledY=!0}}}function Jt(Kt,or){switch(Kt.align){case"left":return it.cellPad;case"right":return Kt.column.columnWidth-(or||0)-it.cellPad;case"center":return(Kt.column.columnWidth-(or||0))/2;default:return it.cellPad}}function Yt(Kt){Kt.attr("transform",function(or){var tr=or.rowBlocks[0].auxiliaryBlocks.reduce(function(br,Ir){return br+jt(Ir,1/0)},0),cr=sr(or),mr=jt(cr,or.key),Ar=mr+tr;return _(0,Ar)}).selectAll("."+it.cn.cellRect).attr("height",function(or){return Zt(sr(or),or.key).rowHeight})}function rr(Kt,or){for(var tr=0,cr=or-1;cr>=0;cr--)tr+=ar(Kt[cr]);return tr}function jt(Kt,or){for(var tr=0,cr=0;cr","<","|","/","\\"],dflt:">",editType:"plot"},thickness:{valType:"number",min:12,editType:"plot"},textfont:j({},yt.textfont,{}),editType:"calc"},text:yt.text,textinfo:ut.textinfo,texttemplate:xt({editType:"plot"},{keys:ht.eventDataKeys.concat(["label","value"])}),hovertext:yt.hovertext,hoverinfo:ut.hoverinfo,hovertemplate:it({},{keys:ht.eventDataKeys}),textfont:yt.textfont,insidetextfont:yt.insidetextfont,outsidetextfont:j({},yt.outsidetextfont,{}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"top left",editType:"plot"},sort:yt.sort,root:ut.root,domain:Tt({name:"treemap",trace:!0,editType:"calc"})}},79516:function(Ct,Rt,o){var it=o(7316);Rt.name="treemap",Rt.plot=function(xt,et,Tt,yt){it.plotBasePlot(Rt.name,xt,et,Tt,yt)},Rt.clean=function(xt,et,Tt,yt){it.cleanBasePlot(Rt.name,xt,et,Tt,yt)}},97840:function(Ct,Rt,o){var it=o(3776);Rt.r=function(xt,et){return it.calc(xt,et)},Rt.q=function(xt){return it._runCrossTraceCalc("treemap",xt)}},32984:function(Ct){Ct.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"poly",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"],gapWithPathbar:1}},34092:function(Ct,Rt,o){var it=o(3400),xt=o(40516),et=o(76308),Tt=o(86968).Q,yt=o(31508).handleText,ut=o(78048).TEXTPAD,ht=o(74174).handleMarkerDefaults,j=o(8932),_=j.hasColorscale,rt=j.handleDefaults;Ct.exports=function(st,ot,nt,vt){function dt(ct,It){return it.coerce(st,ot,xt,ct,It)}var bt=dt("labels"),ft=dt("parents");if(!bt||!bt.length||!ft||!ft.length){ot.visible=!1;return}var at=dt("values");at&&at.length?dt("branchvalues"):dt("count"),dt("level"),dt("maxdepth");var mt=dt("tiling.packing");mt==="squarify"&&dt("tiling.squarifyratio"),dt("tiling.flip"),dt("tiling.pad");var St=dt("text");dt("texttemplate"),ot.texttemplate||dt("textinfo",it.isArrayOrTypedArray(St)?"text+label":"label"),dt("hovertext"),dt("hovertemplate");var _t=dt("pathbar.visible"),Mt="auto";yt(st,ot,vt,dt,Mt,{hasPathbar:_t,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),dt("textposition");var Et=ot.textposition.indexOf("bottom")!==-1;ht(st,ot,vt,dt);var kt=ot._hasColorscale=_(st,"marker","colors")||(st.marker||{}).coloraxis;kt?rt(st,ot,vt,dt,{prefix:"marker.",cLetter:"c"}):dt("marker.depthfade",!(ot.marker.colors||[]).length);var wt=ot.textfont.size*2;dt("marker.pad.t",Et?wt/4:wt),dt("marker.pad.l",wt/4),dt("marker.pad.r",wt/4),dt("marker.pad.b",Et?wt:wt/4),dt("marker.cornerradius"),ot._hovered={marker:{line:{width:2,color:et.contrast(vt.paper_bgcolor)}}},_t&&(dt("pathbar.thickness",ot.pathbar.textfont.size+2*ut),dt("pathbar.side"),dt("pathbar.edgeshape")),dt("sort"),dt("root.color"),Tt(ot,vt,dt),ot._length=null}},95808:function(Ct,Rt,o){var it=o(33428),xt=o(78176),et=o(82744),Tt=et.clearMinTextSize,yt=o(60100).resizeText,ut=o(52960);Ct.exports=function(j,_,rt,tt,st){var ot=st.type,nt=st.drawDescendants,vt=j._fullLayout,dt=vt["_"+ot+"layer"],bt,ft,at=!rt;if(Tt(ot,vt),bt=dt.selectAll("g.trace."+ot).data(_,function(St){return St[0].trace.uid}),bt.enter().append("g").classed("trace",!0).classed(ot,!0),bt.order(),!vt.uniformtext.mode&&xt.hasTransition(rt)){tt&&(ft=tt());var mt=it.transition().duration(rt.duration).ease(rt.easing).each("end",function(){ft&&ft()}).each("interrupt",function(){ft&&ft()});mt.each(function(){dt.selectAll("g.trace").each(function(St){ut(j,St,this,rt,nt)})})}else bt.each(function(St){ut(j,St,this,rt,nt)}),vt.uniformtext.mode&&yt(j,dt.selectAll(".trace"),ot);at&&bt.exit().remove()}},27336:function(Ct,Rt,o){var it=o(33428),xt=o(3400),et=o(43616),Tt=o(72736),yt=o(13832),ut=o(66192).styleOne,ht=o(32984),j=o(78176),_=o(45716),rt=!0;Ct.exports=function(st,ot,nt,vt,dt){var bt=dt.barDifY,ft=dt.width,at=dt.height,mt=dt.viewX,St=dt.viewY,_t=dt.pathSlice,Mt=dt.toMoveInsideSlice,Et=dt.strTransform,kt=dt.hasTransition,wt=dt.handleSlicesExit,ct=dt.makeUpdateSliceInterpolator,It=dt.makeUpdateTextInterpolator,At={},Ot=st._context.staticPlot,Pt=st._fullLayout,zt=ot[0],Dt=zt.trace,Nt=zt.hierarchy,$t=ft/Dt._entryDepth,Ut=j.listPath(nt.data,"id"),Ht=yt(Nt.copy(),[ft,at],{packing:"dice",pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();Ht=Ht.filter(function(Xt){var qt=Ut.indexOf(Xt.data.id);return qt===-1?!1:(Xt.x0=$t*qt,Xt.x1=$t*(qt+1),Xt.y0=bt,Xt.y1=bt+at,Xt.onPathbar=!0,!0)}),Ht.reverse(),vt=vt.data(Ht,j.getPtId),vt.enter().append("g").classed("pathbar",!0),wt(vt,rt,At,[ft,at],_t),vt.order();var Vt=vt;kt&&(Vt=Vt.transition().each("end",function(){var Xt=it.select(this);j.setSliceCursor(Xt,st,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})})),Vt.each(function(Xt){Xt._x0=mt(Xt.x0),Xt._x1=mt(Xt.x1),Xt._y0=St(Xt.y0),Xt._y1=St(Xt.y1),Xt._hoverX=mt(Xt.x1-Math.min(ft,at)/2),Xt._hoverY=St(Xt.y1-at/2);var qt=it.select(this),er=xt.ensureSingle(qt,"path","surface",function(rr){rr.style("pointer-events",Ot?"none":"all")});kt?er.transition().attrTween("d",function(rr){var jt=ct(rr,rt,At,[ft,at]);return function(ar){return _t(jt(ar))}}):er.attr("d",_t),qt.call(_,nt,st,ot,{styleOne:ut,eventDataKeys:ht.eventDataKeys,transitionTime:ht.CLICK_TRANSITION_TIME,transitionEasing:ht.CLICK_TRANSITION_EASING}).call(j.setSliceCursor,st,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:st._transitioning}),er.call(ut,Xt,Dt,st,{hovered:!1}),Xt._text=(j.getPtLabel(Xt)||"").split("
").join(" ")||"";var lr=xt.ensureSingle(qt,"g","slicetext"),Jt=xt.ensureSingle(lr,"text","",function(rr){rr.attr("data-notex",1)}),Yt=xt.ensureUniformFontSize(st,j.determineTextFont(Dt,Xt,Pt.font,{onPathbar:!0}));Jt.text(Xt._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(et.font,Yt).call(Tt.convertToTspans,st),Xt.textBB=et.bBox(Jt.node()),Xt.transform=Mt(Xt,{fontSize:Yt.size,onPathbar:!0}),Xt.transform.fontSize=Yt.size,kt?Jt.transition().attrTween("transform",function(rr){var jt=It(rr,rt,At,[ft,at]);return function(ar){return Et(jt(ar))}}):Jt.attr("transform",Et(Xt))})}},76477:function(Ct,Rt,o){var it=o(33428),xt=o(3400),et=o(43616),Tt=o(72736),yt=o(13832),ut=o(66192).styleOne,ht=o(32984),j=o(78176),_=o(45716),rt=o(96488).formatSliceLabel,tt=!1;Ct.exports=function(ot,nt,vt,dt,bt){var ft=bt.width,at=bt.height,mt=bt.viewX,St=bt.viewY,_t=bt.pathSlice,Mt=bt.toMoveInsideSlice,Et=bt.strTransform,kt=bt.hasTransition,wt=bt.handleSlicesExit,ct=bt.makeUpdateSliceInterpolator,It=bt.makeUpdateTextInterpolator,At=bt.prevEntry,Ot={},Pt=ot._context.staticPlot,zt=ot._fullLayout,Dt=nt[0],Nt=Dt.trace,$t=Nt.textposition.indexOf("left")!==-1,Ut=Nt.textposition.indexOf("right")!==-1,Ht=Nt.textposition.indexOf("bottom")!==-1,Vt=!Ht&&!Nt.marker.pad.t||Ht&&!Nt.marker.pad.b,Xt=yt(vt,[ft,at],{packing:Nt.tiling.packing,squarifyratio:Nt.tiling.squarifyratio,flipX:Nt.tiling.flip.indexOf("x")>-1,flipY:Nt.tiling.flip.indexOf("y")>-1,pad:{inner:Nt.tiling.pad,top:Nt.marker.pad.t,left:Nt.marker.pad.l,right:Nt.marker.pad.r,bottom:Nt.marker.pad.b}}),qt=Xt.descendants(),er=1/0,lr=-1/0;qt.forEach(function(ar){var sr=ar.depth;sr>=Nt._maxDepth?(ar.x0=ar.x1=(ar.x0+ar.x1)/2,ar.y0=ar.y1=(ar.y0+ar.y1)/2):(er=Math.min(er,sr),lr=Math.max(lr,sr))}),dt=dt.data(qt,j.getPtId),Nt._maxVisibleLayers=isFinite(lr)?lr-er+1:0,dt.enter().append("g").classed("slice",!0),wt(dt,tt,Ot,[ft,at],_t),dt.order();var Jt=null;if(kt&&At){var Yt=j.getPtId(At);dt.each(function(ar){Jt===null&&j.getPtId(ar)===Yt&&(Jt={x0:ar.x0,x1:ar.x1,y0:ar.y0,y1:ar.y1})})}var rr=function(){return Jt||{x0:0,x1:ft,y0:0,y1:at}},jt=dt;return kt&&(jt=jt.transition().each("end",function(){var ar=it.select(this);j.setSliceCursor(ar,ot,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),jt.each(function(ar){var sr=j.isHeader(ar,Nt);ar._x0=mt(ar.x0),ar._x1=mt(ar.x1),ar._y0=St(ar.y0),ar._y1=St(ar.y1),ar._hoverX=mt(ar.x1-Nt.marker.pad.r),ar._hoverY=St(Ht?ar.y1-Nt.marker.pad.b/2:ar.y0+Nt.marker.pad.t/2);var Zt=it.select(this),Kt=xt.ensureSingle(Zt,"path","surface",function(br){br.style("pointer-events",Pt?"none":"all")});kt?Kt.transition().attrTween("d",function(br){var Ir=ct(br,tt,rr(),[ft,at]);return function(Tr){return _t(Ir(Tr))}}):Kt.attr("d",_t),Zt.call(_,vt,ot,nt,{styleOne:ut,eventDataKeys:ht.eventDataKeys,transitionTime:ht.CLICK_TRANSITION_TIME,transitionEasing:ht.CLICK_TRANSITION_EASING}).call(j.setSliceCursor,ot,{isTransitioning:ot._transitioning}),Kt.call(ut,ar,Nt,ot,{hovered:!1}),ar.x0===ar.x1||ar.y0===ar.y1?ar._text="":sr?ar._text=Vt?"":j.getPtLabel(ar)||"":ar._text=rt(ar,vt,Nt,nt,zt)||"";var or=xt.ensureSingle(Zt,"g","slicetext"),tr=xt.ensureSingle(or,"text","",function(br){br.attr("data-notex",1)}),cr=xt.ensureUniformFontSize(ot,j.determineTextFont(Nt,ar,zt.font)),mr=ar._text||" ",Ar=sr&&mr.indexOf("
")===-1;tr.text(mr).classed("slicetext",!0).attr("text-anchor",Ut?"end":$t||Ar?"start":"middle").call(et.font,cr).call(Tt.convertToTspans,ot),ar.textBB=et.bBox(tr.node()),ar.transform=Mt(ar,{fontSize:cr.size,isHeader:sr}),ar.transform.fontSize=cr.size,kt?tr.transition().attrTween("transform",function(br){var Ir=It(br,tt,rr(),[ft,at]);return function(Tr){return Et(Ir(Tr))}}):tr.attr("transform",Et(ar))}),Jt}},83024:function(Ct){Ct.exports=function Rt(o,it,xt){var et;xt.swapXY&&(et=o.x0,o.x0=o.y0,o.y0=et,et=o.x1,o.x1=o.y1,o.y1=et),xt.flipX&&(et=o.x0,o.x0=it[0]-o.x1,o.x1=it[0]-et),xt.flipY&&(et=o.y0,o.y0=it[1]-o.y1,o.y1=it[1]-et);var Tt=o.children;if(Tt)for(var yt=0;yt-1?Ut+Xt:-(Vt+Xt):0,er={x0:Ht,x1:Ht,y0:qt,y1:qt+Vt},lr=function(Fr,Ur,Wr){var Gr=St.tiling.pad,wr=function(ur){return ur-Gr<=Ur.x0},pr=function(ur){return ur+Gr>=Ur.x1},Dr=function(ur){return ur-Gr<=Ur.y0},Sr=function(ur){return ur+Gr>=Ur.y1};return Fr.x0===Ur.x0&&Fr.x1===Ur.x1&&Fr.y0===Ur.y0&&Fr.y1===Ur.y1?{x0:Fr.x0,x1:Fr.x1,y0:Fr.y0,y1:Fr.y1}:{x0:wr(Fr.x0-Gr)?0:pr(Fr.x0-Gr)?Wr[0]:Fr.x0,x1:wr(Fr.x1+Gr)?0:pr(Fr.x1+Gr)?Wr[0]:Fr.x1,y0:Dr(Fr.y0-Gr)?0:Sr(Fr.y0-Gr)?Wr[1]:Fr.y0,y1:Dr(Fr.y1+Gr)?0:Sr(Fr.y1+Gr)?Wr[1]:Fr.y1}},Jt=null,Yt={},rr={},jt=null,ar=function(Fr,Ur){return Ur?Yt[st(Fr)]:rr[st(Fr)]},sr=function(Fr,Ur,Wr,Gr){if(Ur)return Yt[st(Et)]||er;var wr=rr[St.level]||Wr;return zt(Fr)?lr(Fr,wr,Gr):{}};mt.hasMultipleRoots&&At&&Pt++,St._maxDepth=Pt,St._backgroundColor=at.paper_bgcolor,St._entryDepth=kt.data.depth,St._atRootLevel=At;var Zt=-$t/2+Dt.l+Dt.w*(Nt.x[1]+Nt.x[0])/2,Kt=-Ut/2+Dt.t+Dt.h*(1-(Nt.y[1]+Nt.y[0])/2),or=function(Fr){return Zt+Fr},tr=function(Fr){return Kt+Fr},cr=tr(0),mr=or(0),Ar=function(Fr){return mr+Fr},br=function(Fr){return cr+Fr};function Ir(Fr,Ur){return Fr+","+Ur}var Tr=Ar(0),_r=function(Fr){Fr.x=Math.max(Tr,Fr.x)},Er=St.pathbar.edgeshape,Rr=function(Fr){var Ur=Ar(Math.max(Math.min(Fr.x0,Fr.x0),0)),Wr=Ar(Math.min(Math.max(Fr.x1,Fr.x1),Ht)),Gr=br(Fr.y0),wr=br(Fr.y1),pr=Vt/2,Dr={},Sr={};Dr.x=Ur,Sr.x=Wr,Dr.y=Sr.y=(Gr+wr)/2;var ur={x:Ur,y:Gr},xr={x:Wr,y:Gr},Pr={x:Wr,y:wr},Vr={x:Ur,y:wr};return Er===">"?(ur.x-=pr,xr.x-=pr,Pr.x-=pr,Vr.x-=pr):Er==="/"?(Pr.x-=pr,Vr.x-=pr,Dr.x-=pr/2,Sr.x-=pr/2):Er==="\\"?(ur.x-=pr,xr.x-=pr,Dr.x-=pr/2,Sr.x-=pr/2):Er==="<"&&(Dr.x-=pr,Sr.x-=pr),_r(ur),_r(Vr),_r(Dr),_r(xr),_r(Pr),_r(Sr),"M"+Ir(ur.x,ur.y)+"L"+Ir(xr.x,xr.y)+"L"+Ir(Sr.x,Sr.y)+"L"+Ir(Pr.x,Pr.y)+"L"+Ir(Vr.x,Vr.y)+"L"+Ir(Dr.x,Dr.y)+"Z"},zr=St[Mt?"tiling":"marker"].pad,Or=function(Fr){return St.textposition.indexOf(Fr)!==-1},kr=Or("top"),Nr=Or("left"),Qr=Or("right"),sn=Or("bottom"),un=function(Fr){var Ur=or(Fr.x0),Wr=or(Fr.x1),Gr=tr(Fr.y0),wr=tr(Fr.y1),pr=Wr-Ur,Dr=wr-Gr;if(!pr||!Dr)return"";var Sr=St.marker.cornerradius||0,ur=Math.min(Sr,pr/2,Dr/2);ur&&Fr.data&&Fr.data.data&&Fr.data.data.label&&(kr&&(ur=Math.min(ur,zr.t)),Nr&&(ur=Math.min(ur,zr.l)),Qr&&(ur=Math.min(ur,zr.r)),sn&&(ur=Math.min(ur,zr.b)));var xr=function(Pr,Vr){return ur?"a"+Ir(ur,ur)+" 0 0 1 "+Ir(Pr,Vr):""};return"M"+Ir(Ur,Gr+ur)+xr(ur,-ur)+"L"+Ir(Wr-ur,Gr)+xr(ur,ur)+"L"+Ir(Wr,wr-ur)+xr(-ur,ur)+"L"+Ir(Ur+ur,wr)+xr(-ur,-ur)+"Z"},en=function(Fr,Ur){var Wr=Fr.x0,Gr=Fr.x1,wr=Fr.y0,pr=Fr.y1,Dr=Fr.textBB,Sr=kr||Ur.isHeader&&!sn,ur=Sr?"start":sn?"end":"middle",xr=Or("right"),Pr=Or("left")||Ur.onPathbar,Vr=Pr?-1:xr?1:0;if(Ur.isHeader){if(Wr+=(Mt?zr:zr.l)-yt,Gr-=(Mt?zr:zr.r)-yt,Wr>=Gr){var qr=(Wr+Gr)/2;Wr=qr,Gr=qr}var rn;sn?(rn=pr-(Mt?zr:zr.b),wr0)for(var wt=0;wt0){var _t=ht.xa,Mt=ht.ya,Et,kt,wt,ct,It;nt.orientation==="h"?(It=j,Et="y",wt=Mt,kt="x",ct=_t):(It=_,Et="x",wt=_t,kt="y",ct=Mt);var At=ot[ht.index];if(It>=At.span[0]&&It<=At.span[1]){var Ot=xt.extendFlat({},ht),Pt=ct.c2p(It,!0),zt=yt.getKdeValue(At,nt,It),Dt=yt.getPositionOnKdePath(At,nt,Pt),Nt=wt._offset,$t=wt._length;Ot[Et+"0"]=Dt[0],Ot[Et+"1"]=Dt[1],Ot[kt+"0"]=Ot[kt+"1"]=Pt,Ot[kt+"Label"]=kt+": "+et.hoverLabelText(ct,It,nt[kt+"hoverformat"])+", "+ot[0].t.labels.kde+" "+zt.toFixed(3);for(var Ut=0,Ht=0;Ht")),ot.color=ut(vt,St),[ot]};function ut(ht,j){var _=ht[j.dir].marker,rt=_.color,tt=_.line.color,st=_.line.width;if(xt(rt))return rt;if(xt(tt)&&st)return tt}},95952:function(Ct,Rt,o){Ct.exports={attributes:o(65776),layoutAttributes:o(91352),supplyDefaults:o(24224).supplyDefaults,crossTraceDefaults:o(24224).crossTraceDefaults,supplyLayoutDefaults:o(59464),calc:o(73540),crossTraceCalc:o(50152),plot:o(64488),style:o(12252).style,hoverPoints:o(94196),eventData:o(53256),selectPoints:o(45784),moduleType:"trace",name:"waterfall",basePlotModule:o(57952),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}},91352:function(Ct){Ct.exports={waterfallmode:{valType:"enumerated",values:["group","overlay"],dflt:"group",editType:"calc"},waterfallgap:{valType:"number",min:0,max:1,editType:"calc"},waterfallgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},59464:function(Ct,Rt,o){var it=o(3400),xt=o(91352);Ct.exports=function(et,Tt,yt){var ut=!1;function ht(rt,tt){return it.coerce(et,Tt,xt,rt,tt)}for(var j=0;j0&&(at?It+="M"+wt[0]+","+ct[1]+"V"+ct[0]:It+="M"+wt[1]+","+ct[0]+"H"+wt[0]),mt!=="between"&&(Mt.isSum||Et<_t-1)&&(at?It+="M"+wt[1]+","+ct[0]+"V"+ct[1]:It+="M"+wt[0]+","+ct[1]+"H"+wt[1]),wt[2]!==Tt&&ct[2]!==Tt&&(at?It+="M"+wt[1]+","+ct[1]+"V"+ct[2]:It+="M"+wt[1]+","+ct[1]+"H"+wt[2])),It===""&&(It="M0,0Z"),xt.ensureSingle(it.select(this),"path").attr("d",It).call(et.setClipUrl,rt.layerClipId,_)}})})}function j(_,rt,tt,st){var ot=[],nt=[],vt=st?rt:tt,dt=st?tt:rt;return ot[0]=vt.c2p(_.s0,!0),nt[0]=dt.c2p(_.p0,!0),ot[1]=vt.c2p(_.s1,!0),nt[1]=dt.c2p(_.p1,!0),ot[2]=vt.c2p(_.nextS0,!0),nt[2]=dt.c2p(_.nextP0,!0),st?[ot,nt]:[nt,ot]}},12252:function(Ct,Rt,o){var it=o(33428),xt=o(43616),et=o(76308),Tt=o(13448).DESELECTDIM,yt=o(60100),ut=o(82744).resizeText,ht=yt.styleTextPoints;function j(_,rt,tt){var st=tt||it.select(_).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");ut(_,st,"waterfall"),st.style("opacity",function(ot){return ot[0].trace.opacity}),st.each(function(ot){var nt=it.select(this),vt=ot[0].trace;nt.selectAll(".point > path").each(function(dt){if(!dt.isBlank){var bt=vt[dt.dir].marker;it.select(this).call(et.fill,bt.color).call(et.stroke,bt.line.color).call(xt.dashLine,bt.line.dash,bt.line.width).style("opacity",vt.selectedpoints&&!dt.selected?Tt:1)}}),ht(nt,vt,_),nt.selectAll(".lines").each(function(){var dt=vt.connector.line;xt.lineGroupStyle(it.select(this).selectAll("path"),dt.width,dt.color,dt.dash)})})}Ct.exports={style:j}},84224:function(Ct,Rt,o){var it=o(54460),xt=o(3400),et=o(73060),Tt=o(60468).W,yt=o(39032).BADNUM;Rt.moduleType="transform",Rt.name="aggregate";var ut=Rt.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc"},groups:{valType:"string",strict:!0,noBlank:!0,arrayOk:!0,dflt:"x",editType:"calc"},aggregations:{_isLinkedToArray:"aggregation",target:{valType:"string",editType:"calc"},func:{valType:"enumerated",values:["count","sum","avg","median","mode","rms","stddev","min","max","first","last","change","range"],dflt:"first",editType:"calc"},funcmode:{valType:"enumerated",values:["sample","population"],dflt:"sample",editType:"calc"},enabled:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},editType:"calc"},ht=ut.aggregations;Rt.supplyDefaults=function(ot,nt){var vt={},dt;function bt(At,Ot){return xt.coerce(ot,vt,ut,At,Ot)}var ft=bt("enabled");if(!ft)return vt;var at=et.findArrayAttributes(nt),mt={};for(dt=0;dtSt&&(St=kt,_t=Et)}}return St?bt(_t):yt};case"rms":return function(ft,at){for(var mt=0,St=0,_t=0;_t":return function(mt){return ft(mt)>at};case">=":return function(mt){return ft(mt)>=at};case"[]":return function(mt){var St=ft(mt);return St>=at[0]&&St<=at[1]};case"()":return function(mt){var St=ft(mt);return St>at[0]&&St=at[0]&&Stat[0]&&St<=at[1]};case"][":return function(mt){var St=ft(mt);return St<=at[0]||St>=at[1]};case")(":return function(mt){var St=ft(mt);return Stat[1]};case"](":return function(mt){var St=ft(mt);return St<=at[0]||St>at[1]};case")[":return function(mt){var St=ft(mt);return St=at[1]};case"{}":return function(mt){return at.indexOf(ft(mt))!==-1};case"}{":return function(mt){return at.indexOf(ft(mt))===-1}}}},32028:function(Ct,Rt,o){var it=o(3400),xt=o(73060),et=o(7316),Tt=o(60468).W;Rt.moduleType="transform",Rt.name="groupby",Rt.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc"},groups:{valType:"data_array",dflt:[],editType:"calc"},nameformat:{valType:"string",editType:"calc"},styles:{_isLinkedToArray:"style",target:{valType:"string",editType:"calc"},value:{valType:"any",dflt:{},editType:"calc",_compareAsJSON:!0},editType:"calc"},editType:"calc"},Rt.supplyDefaults=function(ut,ht,j){var _,rt={};function tt(bt,ft){return it.coerce(ut,rt,Rt.attributes,bt,ft)}var st=tt("enabled");if(!st)return rt;tt("groups"),tt("nameformat",j._dataLength>1?"%{group} (%{trace})":"%{group}");var ot=ut.styles,nt=rt.styles=[];if(ot)for(_=0;_ * @license MIT -*/function _(Sr,ur){if(!(Sr instanceof ur))throw new TypeError("Cannot call a class as a function")}function rt(Sr,ur){for(var xr=0;xrkt)throw new RangeError('The value "'+Sr+'" is invalid for option "size"');var ur=new Uint8Array(Sr);return Object.setPrototypeOf(ur,It.prototype),ur}function It(Sr,ur,xr){if(typeof Sr=="number"){if(typeof ur=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return zt(Sr)}return At(Sr,ur,xr)}It.poolSize=8192;function At(Sr,ur,xr){if(typeof Sr=="string")return Dt(Sr,ur);if(ArrayBuffer.isView(Sr))return $t(Sr);if(Sr==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+St(Sr));if(jr(Sr,ArrayBuffer)||Sr&&jr(Sr.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(jr(Sr,SharedArrayBuffer)||Sr&&jr(Sr.buffer,SharedArrayBuffer)))return Ut(Sr,ur,xr);if(typeof Sr=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Pr=Sr.valueOf&&Sr.valueOf();if(Pr!=null&&Pr!==Sr)return It.from(Pr,ur,xr);var Vr=Ht(Sr);if(Vr)return Vr;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Sr[Symbol.toPrimitive]=="function")return It.from(Sr[Symbol.toPrimitive]("string"),ur,xr);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+St(Sr))}It.from=function(Sr,ur,xr){return At(Sr,ur,xr)},Object.setPrototypeOf(It.prototype,Uint8Array.prototype),Object.setPrototypeOf(It,Uint8Array);function Ot(Sr){if(typeof Sr!="number")throw new TypeError('"size" argument must be of type number');if(Sr<0)throw new RangeError('The value "'+Sr+'" is invalid for option "size"')}function Pt(Sr,ur,xr){return Ot(Sr),Sr<=0?ct(Sr):ur!==void 0?typeof xr=="string"?ct(Sr).fill(ur,xr):ct(Sr).fill(ur):ct(Sr)}It.alloc=function(Sr,ur,xr){return Pt(Sr,ur,xr)};function zt(Sr){return Ot(Sr),ct(Sr<0?0:Vt(Sr)|0)}It.allocUnsafe=function(Sr){return zt(Sr)},It.allocUnsafeSlow=function(Sr){return zt(Sr)};function Dt(Sr,ur){if((typeof ur!="string"||ur==="")&&(ur="utf8"),!It.isEncoding(ur))throw new TypeError("Unknown encoding: "+ur);var xr=Xt(Sr,ur)|0,Pr=ct(xr),Vr=Pr.write(Sr,ur);return Vr!==xr&&(Pr=Pr.slice(0,Vr)),Pr}function Nt(Sr){for(var ur=Sr.length<0?0:Vt(Sr.length)|0,xr=ct(ur),Pr=0;Pr=kt)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kt.toString(16)+" bytes");return Sr|0}It.isBuffer=function(ur){return ur!=null&&ur._isBuffer===!0&&ur!==It.prototype},It.compare=function(ur,xr){if(jr(ur,Uint8Array)&&(ur=It.from(ur,ur.offset,ur.byteLength)),jr(xr,Uint8Array)&&(xr=It.from(xr,xr.offset,xr.byteLength)),!It.isBuffer(ur)||!It.isBuffer(xr))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ur===xr)return 0;for(var Pr=ur.length,Vr=xr.length,en=0,rn=Math.min(Pr,Vr);enVr.length?(It.isBuffer(rn)||(rn=It.from(rn)),rn.copy(Vr,en)):Uint8Array.prototype.set.call(Vr,rn,en);else if(It.isBuffer(rn))rn.copy(Vr,en);else throw new TypeError('"list" argument must be an Array of Buffers');en+=rn.length}return Vr};function Xt(Sr,ur){if(It.isBuffer(Sr))return Sr.length;if(ArrayBuffer.isView(Sr)||jr(Sr,ArrayBuffer))return Sr.byteLength;if(typeof Sr!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+St(Sr));var xr=Sr.length,Pr=arguments.length>2&&arguments[2]===!0;if(!Pr&&xr===0)return 0;for(var Vr=!1;;)switch(ur){case"ascii":case"latin1":case"binary":return xr;case"utf8":case"utf-8":return pn(Sr).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xr*2;case"hex":return xr>>>1;case"base64":return Or(Sr).length;default:if(Vr)return Pr?-1:pn(Sr).length;ur=(""+ur).toLowerCase(),Vr=!0}}It.byteLength=Xt;function qt(Sr,ur,xr){var Pr=!1;if((ur===void 0||ur<0)&&(ur=0),ur>this.length||((xr===void 0||xr>this.length)&&(xr=this.length),xr<=0)||(xr>>>=0,ur>>>=0,xr<=ur))return"";for(Sr||(Sr="utf8");;)switch(Sr){case"hex":return br(this,ur,xr);case"utf8":case"utf-8":return Kt(this,ur,xr);case"ascii":return cr(this,ur,xr);case"latin1":case"binary":return hr(this,ur,xr);case"base64":return Zt(this,ur,xr);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Tr(this,ur,xr);default:if(Pr)throw new TypeError("Unknown encoding: "+Sr);Sr=(Sr+"").toLowerCase(),Pr=!0}}It.prototype._isBuffer=!0;function er(Sr,ur,xr){var Pr=Sr[ur];Sr[ur]=Sr[xr],Sr[xr]=Pr}It.prototype.swap16=function(){var ur=this.length;if(ur%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var xr=0;xrxr&&(ur+=" ... "),""},Tt&&(It.prototype[Tt]=It.prototype.inspect),It.prototype.compare=function(ur,xr,Pr,Vr,en){if(jr(ur,Uint8Array)&&(ur=It.from(ur,ur.offset,ur.byteLength)),!It.isBuffer(ur))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+St(ur));if(xr===void 0&&(xr=0),Pr===void 0&&(Pr=ur?ur.length:0),Vr===void 0&&(Vr=0),en===void 0&&(en=this.length),xr<0||Pr>ur.length||Vr<0||en>this.length)throw new RangeError("out of range index");if(Vr>=en&&xr>=Pr)return 0;if(Vr>=en)return-1;if(xr>=Pr)return 1;if(xr>>>=0,Pr>>>=0,Vr>>>=0,en>>>=0,this===ur)return 0;for(var rn=en-Vr,Cn=Pr-xr,xn=Math.min(rn,Cn),fn=this.slice(Vr,en),bn=ur.slice(xr,Pr),Un=0;Un2147483647?xr=2147483647:xr<-2147483648&&(xr=-2147483648),xr=+xr,Gr(xr)&&(xr=Vr?0:Sr.length-1),xr<0&&(xr=Sr.length+xr),xr>=Sr.length){if(Vr)return-1;xr=Sr.length-1}else if(xr<0)if(Vr)xr=0;else return-1;if(typeof ur=="string"&&(ur=It.from(ur,Pr)),It.isBuffer(ur))return ur.length===0?-1:Jt(Sr,ur,xr,Pr,Vr);if(typeof ur=="number")return ur=ur&255,typeof Uint8Array.prototype.indexOf=="function"?Vr?Uint8Array.prototype.indexOf.call(Sr,ur,xr):Uint8Array.prototype.lastIndexOf.call(Sr,ur,xr):Jt(Sr,[ur],xr,Pr,Vr);throw new TypeError("val must be string, number or Buffer")}function Jt(Sr,ur,xr,Pr,Vr){var en=1,rn=Sr.length,Cn=ur.length;if(Pr!==void 0&&(Pr=String(Pr).toLowerCase(),Pr==="ucs2"||Pr==="ucs-2"||Pr==="utf16le"||Pr==="utf-16le")){if(Sr.length<2||ur.length<2)return-1;en=2,rn/=2,Cn/=2,xr/=2}function xn(yn,Kn){return en===1?yn[Kn]:yn.readUInt16BE(Kn*en)}var fn;if(Vr){var bn=-1;for(fn=xr;fnrn&&(xr=rn-Cn),fn=xr;fn>=0;fn--){for(var Un=!0,_i=0;_iVr&&(Pr=Vr)):Pr=Vr;var en=ur.length;Pr>en/2&&(Pr=en/2);var rn;for(rn=0;rn>>0,isFinite(Pr)?(Pr=Pr>>>0,Vr===void 0&&(Vr="utf8")):(Vr=Pr,Pr=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var en=this.length-xr;if((Pr===void 0||Pr>en)&&(Pr=en),ur.length>0&&(Pr<0||xr<0)||xr>this.length)throw new RangeError("Attempt to write outside buffer bounds");Vr||(Vr="utf8");for(var rn=!1;;)switch(Vr){case"hex":return Yt(this,ur,xr,Pr);case"utf8":case"utf-8":return rr(this,ur,xr,Pr);case"ascii":case"latin1":case"binary":return jt(this,ur,xr,Pr);case"base64":return ar(this,ur,xr,Pr);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return sr(this,ur,xr,Pr);default:if(rn)throw new TypeError("Unknown encoding: "+Vr);Vr=(""+Vr).toLowerCase(),rn=!0}},It.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Zt(Sr,ur,xr){return ur===0&&xr===Sr.length?_t.fromByteArray(Sr):_t.fromByteArray(Sr.slice(ur,xr))}function Kt(Sr,ur,xr){xr=Math.min(Sr.length,xr);for(var Pr=[],Vr=ur;Vr239?4:en>223?3:en>191?2:1;if(Vr+Cn<=xr){var xn=void 0,fn=void 0,bn=void 0,Un=void 0;switch(Cn){case 1:en<128&&(rn=en);break;case 2:xn=Sr[Vr+1],(xn&192)===128&&(Un=(en&31)<<6|xn&63,Un>127&&(rn=Un));break;case 3:xn=Sr[Vr+1],fn=Sr[Vr+2],(xn&192)===128&&(fn&192)===128&&(Un=(en&15)<<12|(xn&63)<<6|fn&63,Un>2047&&(Un<55296||Un>57343)&&(rn=Un));break;case 4:xn=Sr[Vr+1],fn=Sr[Vr+2],bn=Sr[Vr+3],(xn&192)===128&&(fn&192)===128&&(bn&192)===128&&(Un=(en&15)<<18|(xn&63)<<12|(fn&63)<<6|bn&63,Un>65535&&Un<1114112&&(rn=Un))}}rn===null?(rn=65533,Cn=1):rn>65535&&(rn-=65536,Pr.push(rn>>>10&1023|55296),rn=56320|rn&1023),Pr.push(rn),Vr+=Cn}return tr(Pr)}var or=4096;function tr(Sr){var ur=Sr.length;if(ur<=or)return String.fromCharCode.apply(String,Sr);for(var xr="",Pr=0;PrPr)&&(xr=Pr);for(var Vr="",en=ur;enPr&&(ur=Pr),xr<0?(xr+=Pr,xr<0&&(xr=0)):xr>Pr&&(xr=Pr),xrxr)throw new RangeError("Trying to access beyond buffer length")}It.prototype.readUintLE=It.prototype.readUIntLE=function(ur,xr,Pr){ur=ur>>>0,xr=xr>>>0,Pr||Ir(ur,xr,this.length);for(var Vr=this[ur],en=1,rn=0;++rn>>0,xr=xr>>>0,Pr||Ir(ur,xr,this.length);for(var Vr=this[ur+--xr],en=1;xr>0&&(en*=256);)Vr+=this[ur+--xr]*en;return Vr},It.prototype.readUint8=It.prototype.readUInt8=function(ur,xr){return ur=ur>>>0,xr||Ir(ur,1,this.length),this[ur]},It.prototype.readUint16LE=It.prototype.readUInt16LE=function(ur,xr){return ur=ur>>>0,xr||Ir(ur,2,this.length),this[ur]|this[ur+1]<<8},It.prototype.readUint16BE=It.prototype.readUInt16BE=function(ur,xr){return ur=ur>>>0,xr||Ir(ur,2,this.length),this[ur]<<8|this[ur+1]},It.prototype.readUint32LE=It.prototype.readUInt32LE=function(ur,xr){return ur=ur>>>0,xr||Ir(ur,4,this.length),(this[ur]|this[ur+1]<<8|this[ur+2]<<16)+this[ur+3]*16777216},It.prototype.readUint32BE=It.prototype.readUInt32BE=function(ur,xr){return ur=ur>>>0,xr||Ir(ur,4,this.length),this[ur]*16777216+(this[ur+1]<<16|this[ur+2]<<8|this[ur+3])},It.prototype.readBigUInt64LE=vr(function(ur){ur=ur>>>0,qr(ur,"offset");var xr=this[ur],Pr=this[ur+7];(xr===void 0||Pr===void 0)&&Xr(ur,this.length-8);var Vr=xr+this[++ur]*Math.pow(2,8)+this[++ur]*Math.pow(2,16)+this[++ur]*Math.pow(2,24),en=this[++ur]+this[++ur]*Math.pow(2,8)+this[++ur]*Math.pow(2,16)+Pr*Math.pow(2,24);return BigInt(Vr)+(BigInt(en)<>>0,qr(ur,"offset");var xr=this[ur],Pr=this[ur+7];(xr===void 0||Pr===void 0)&&Xr(ur,this.length-8);var Vr=xr*Math.pow(2,24)+this[++ur]*Math.pow(2,16)+this[++ur]*Math.pow(2,8)+this[++ur],en=this[++ur]*Math.pow(2,24)+this[++ur]*Math.pow(2,16)+this[++ur]*Math.pow(2,8)+Pr;return(BigInt(Vr)<>>0,xr=xr>>>0,Pr||Ir(ur,xr,this.length);for(var Vr=this[ur],en=1,rn=0;++rn=en&&(Vr-=Math.pow(2,8*xr)),Vr},It.prototype.readIntBE=function(ur,xr,Pr){ur=ur>>>0,xr=xr>>>0,Pr||Ir(ur,xr,this.length);for(var Vr=xr,en=1,rn=this[ur+--Vr];Vr>0&&(en*=256);)rn+=this[ur+--Vr]*en;return en*=128,rn>=en&&(rn-=Math.pow(2,8*xr)),rn},It.prototype.readInt8=function(ur,xr){return ur=ur>>>0,xr||Ir(ur,1,this.length),this[ur]&128?(255-this[ur]+1)*-1:this[ur]},It.prototype.readInt16LE=function(ur,xr){ur=ur>>>0,xr||Ir(ur,2,this.length);var Pr=this[ur]|this[ur+1]<<8;return Pr&32768?Pr|4294901760:Pr},It.prototype.readInt16BE=function(ur,xr){ur=ur>>>0,xr||Ir(ur,2,this.length);var Pr=this[ur+1]|this[ur]<<8;return Pr&32768?Pr|4294901760:Pr},It.prototype.readInt32LE=function(ur,xr){return ur=ur>>>0,xr||Ir(ur,4,this.length),this[ur]|this[ur+1]<<8|this[ur+2]<<16|this[ur+3]<<24},It.prototype.readInt32BE=function(ur,xr){return ur=ur>>>0,xr||Ir(ur,4,this.length),this[ur]<<24|this[ur+1]<<16|this[ur+2]<<8|this[ur+3]},It.prototype.readBigInt64LE=vr(function(ur){ur=ur>>>0,qr(ur,"offset");var xr=this[ur],Pr=this[ur+7];(xr===void 0||Pr===void 0)&&Xr(ur,this.length-8);var Vr=this[ur+4]+this[ur+5]*Math.pow(2,8)+this[ur+6]*Math.pow(2,16)+(Pr<<24);return(BigInt(Vr)<>>0,qr(ur,"offset");var xr=this[ur],Pr=this[ur+7];(xr===void 0||Pr===void 0)&&Xr(ur,this.length-8);var Vr=(xr<<24)+this[++ur]*Math.pow(2,16)+this[++ur]*Math.pow(2,8)+this[++ur];return(BigInt(Vr)<>>0,xr||Ir(ur,4,this.length),Mt.read(this,ur,!0,23,4)},It.prototype.readFloatBE=function(ur,xr){return ur=ur>>>0,xr||Ir(ur,4,this.length),Mt.read(this,ur,!1,23,4)},It.prototype.readDoubleLE=function(ur,xr){return ur=ur>>>0,xr||Ir(ur,8,this.length),Mt.read(this,ur,!0,52,8)},It.prototype.readDoubleBE=function(ur,xr){return ur=ur>>>0,xr||Ir(ur,8,this.length),Mt.read(this,ur,!1,52,8)};function Ar(Sr,ur,xr,Pr,Vr,en){if(!It.isBuffer(Sr))throw new TypeError('"buffer" argument must be a Buffer instance');if(ur>Vr||urSr.length)throw new RangeError("Index out of range")}It.prototype.writeUintLE=It.prototype.writeUIntLE=function(ur,xr,Pr,Vr){if(ur=+ur,xr=xr>>>0,Pr=Pr>>>0,!Vr){var en=Math.pow(2,8*Pr)-1;Ar(this,ur,xr,Pr,en,0)}var rn=1,Cn=0;for(this[xr]=ur&255;++Cn>>0,Pr=Pr>>>0,!Vr){var en=Math.pow(2,8*Pr)-1;Ar(this,ur,xr,Pr,en,0)}var rn=Pr-1,Cn=1;for(this[xr+rn]=ur&255;--rn>=0&&(Cn*=256);)this[xr+rn]=ur/Cn&255;return xr+Pr},It.prototype.writeUint8=It.prototype.writeUInt8=function(ur,xr,Pr){return ur=+ur,xr=xr>>>0,Pr||Ar(this,ur,xr,1,255,0),this[xr]=ur&255,xr+1},It.prototype.writeUint16LE=It.prototype.writeUInt16LE=function(ur,xr,Pr){return ur=+ur,xr=xr>>>0,Pr||Ar(this,ur,xr,2,65535,0),this[xr]=ur&255,this[xr+1]=ur>>>8,xr+2},It.prototype.writeUint16BE=It.prototype.writeUInt16BE=function(ur,xr,Pr){return ur=+ur,xr=xr>>>0,Pr||Ar(this,ur,xr,2,65535,0),this[xr]=ur>>>8,this[xr+1]=ur&255,xr+2},It.prototype.writeUint32LE=It.prototype.writeUInt32LE=function(ur,xr,Pr){return ur=+ur,xr=xr>>>0,Pr||Ar(this,ur,xr,4,4294967295,0),this[xr+3]=ur>>>24,this[xr+2]=ur>>>16,this[xr+1]=ur>>>8,this[xr]=ur&255,xr+4},It.prototype.writeUint32BE=It.prototype.writeUInt32BE=function(ur,xr,Pr){return ur=+ur,xr=xr>>>0,Pr||Ar(this,ur,xr,4,4294967295,0),this[xr]=ur>>>24,this[xr+1]=ur>>>16,this[xr+2]=ur>>>8,this[xr+3]=ur&255,xr+4};function _r(Sr,ur,xr,Pr,Vr){un(ur,Pr,Vr,Sr,xr,7);var en=Number(ur&BigInt(4294967295));Sr[xr++]=en,en=en>>8,Sr[xr++]=en,en=en>>8,Sr[xr++]=en,en=en>>8,Sr[xr++]=en;var rn=Number(ur>>BigInt(32)&BigInt(4294967295));return Sr[xr++]=rn,rn=rn>>8,Sr[xr++]=rn,rn=rn>>8,Sr[xr++]=rn,rn=rn>>8,Sr[xr++]=rn,xr}function Er(Sr,ur,xr,Pr,Vr){un(ur,Pr,Vr,Sr,xr,7);var en=Number(ur&BigInt(4294967295));Sr[xr+7]=en,en=en>>8,Sr[xr+6]=en,en=en>>8,Sr[xr+5]=en,en=en>>8,Sr[xr+4]=en;var rn=Number(ur>>BigInt(32)&BigInt(4294967295));return Sr[xr+3]=rn,rn=rn>>8,Sr[xr+2]=rn,rn=rn>>8,Sr[xr+1]=rn,rn=rn>>8,Sr[xr]=rn,xr+8}It.prototype.writeBigUInt64LE=vr(function(ur){var xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return _r(this,ur,xr,BigInt(0),BigInt("0xffffffffffffffff"))}),It.prototype.writeBigUInt64BE=vr(function(ur){var xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Er(this,ur,xr,BigInt(0),BigInt("0xffffffffffffffff"))}),It.prototype.writeIntLE=function(ur,xr,Pr,Vr){if(ur=+ur,xr=xr>>>0,!Vr){var en=Math.pow(2,8*Pr-1);Ar(this,ur,xr,Pr,en-1,-en)}var rn=0,Cn=1,xn=0;for(this[xr]=ur&255;++rn>0)-xn&255;return xr+Pr},It.prototype.writeIntBE=function(ur,xr,Pr,Vr){if(ur=+ur,xr=xr>>>0,!Vr){var en=Math.pow(2,8*Pr-1);Ar(this,ur,xr,Pr,en-1,-en)}var rn=Pr-1,Cn=1,xn=0;for(this[xr+rn]=ur&255;--rn>=0&&(Cn*=256);)ur<0&&xn===0&&this[xr+rn+1]!==0&&(xn=1),this[xr+rn]=(ur/Cn>>0)-xn&255;return xr+Pr},It.prototype.writeInt8=function(ur,xr,Pr){return ur=+ur,xr=xr>>>0,Pr||Ar(this,ur,xr,1,127,-128),ur<0&&(ur=255+ur+1),this[xr]=ur&255,xr+1},It.prototype.writeInt16LE=function(ur,xr,Pr){return ur=+ur,xr=xr>>>0,Pr||Ar(this,ur,xr,2,32767,-32768),this[xr]=ur&255,this[xr+1]=ur>>>8,xr+2},It.prototype.writeInt16BE=function(ur,xr,Pr){return ur=+ur,xr=xr>>>0,Pr||Ar(this,ur,xr,2,32767,-32768),this[xr]=ur>>>8,this[xr+1]=ur&255,xr+2},It.prototype.writeInt32LE=function(ur,xr,Pr){return ur=+ur,xr=xr>>>0,Pr||Ar(this,ur,xr,4,2147483647,-2147483648),this[xr]=ur&255,this[xr+1]=ur>>>8,this[xr+2]=ur>>>16,this[xr+3]=ur>>>24,xr+4},It.prototype.writeInt32BE=function(ur,xr,Pr){return ur=+ur,xr=xr>>>0,Pr||Ar(this,ur,xr,4,2147483647,-2147483648),ur<0&&(ur=4294967295+ur+1),this[xr]=ur>>>24,this[xr+1]=ur>>>16,this[xr+2]=ur>>>8,this[xr+3]=ur&255,xr+4},It.prototype.writeBigInt64LE=vr(function(ur){var xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return _r(this,ur,xr,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),It.prototype.writeBigInt64BE=vr(function(ur){var xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Er(this,ur,xr,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Rr(Sr,ur,xr,Pr,Vr,en){if(xr+Pr>Sr.length)throw new RangeError("Index out of range");if(xr<0)throw new RangeError("Index out of range")}function zr(Sr,ur,xr,Pr,Vr){return ur=+ur,xr=xr>>>0,Vr||Rr(Sr,ur,xr,4),Mt.write(Sr,ur,xr,Pr,23,4),xr+4}It.prototype.writeFloatLE=function(ur,xr,Pr){return zr(this,ur,xr,!0,Pr)},It.prototype.writeFloatBE=function(ur,xr,Pr){return zr(this,ur,xr,!1,Pr)};function Br(Sr,ur,xr,Pr,Vr){return ur=+ur,xr=xr>>>0,Vr||Rr(Sr,ur,xr,8),Mt.write(Sr,ur,xr,Pr,52,8),xr+8}It.prototype.writeDoubleLE=function(ur,xr,Pr){return Br(this,ur,xr,!0,Pr)},It.prototype.writeDoubleBE=function(ur,xr,Pr){return Br(this,ur,xr,!1,Pr)},It.prototype.copy=function(ur,xr,Pr,Vr){if(!It.isBuffer(ur))throw new TypeError("argument should be a Buffer");if(Pr||(Pr=0),!Vr&&Vr!==0&&(Vr=this.length),xr>=ur.length&&(xr=ur.length),xr||(xr=0),Vr>0&&Vr=this.length)throw new RangeError("Index out of range");if(Vr<0)throw new RangeError("sourceEnd out of bounds");Vr>this.length&&(Vr=this.length),ur.length-xr>>0,Pr=Pr===void 0?this.length:Pr>>>0,ur||(ur=0);var rn;if(typeof ur=="number")for(rn=xr;rnMath.pow(2,32)?Vr=Qr(String(xr)):typeof xr=="bigint"&&(Vr=String(xr),(xr>Math.pow(BigInt(2),BigInt(32))||xr<-Math.pow(BigInt(2),BigInt(32)))&&(Vr=Qr(Vr)),Vr+="n"),Pr+=" It must be ".concat(ur,". Received ").concat(Vr),Pr},RangeError);function Qr(Sr){for(var ur="",xr=Sr.length,Pr=Sr[0]==="-"?1:0;xr>=Pr+4;xr-=3)ur="_".concat(Sr.slice(xr-3,xr)).concat(ur);return"".concat(Sr.slice(0,xr)).concat(ur)}function sn(Sr,ur,xr){qr(ur,"offset"),(Sr[ur]===void 0||Sr[ur+xr]===void 0)&&Xr(ur,Sr.length-(xr+1))}function un(Sr,ur,xr,Pr,Vr,en){if(Sr>xr||Sr3?ur===0||ur===BigInt(0)?Cn=">= 0".concat(rn," and < 2").concat(rn," ** ").concat((en+1)*8).concat(rn):Cn=">= -(2".concat(rn," ** ").concat((en+1)*8-1).concat(rn,") and < 2 ** ")+"".concat((en+1)*8-1).concat(rn):Cn=">= ".concat(ur).concat(rn," and <= ").concat(xr).concat(rn),new kr.ERR_OUT_OF_RANGE("value",Cn,Sr)}sn(Pr,Vr,en)}function qr(Sr,ur){if(typeof Sr!="number")throw new kr.ERR_INVALID_ARG_TYPE(ur,"number",Sr)}function Xr(Sr,ur,xr){throw Math.floor(Sr)!==Sr?(qr(Sr,xr),new kr.ERR_OUT_OF_RANGE(xr||"offset","an integer",Sr)):ur<0?new kr.ERR_BUFFER_OUT_OF_BOUNDS:new kr.ERR_OUT_OF_RANGE(xr||"offset",">= ".concat(xr?1:0," and <= ").concat(ur),Sr)}var ln=/[^+/0-9A-Za-z-_]/g;function mn(Sr){if(Sr=Sr.split("=")[0],Sr=Sr.trim().replace(ln,""),Sr.length<2)return"";for(;Sr.length%4!==0;)Sr=Sr+"=";return Sr}function pn(Sr,ur){ur=ur||1/0;for(var xr,Pr=Sr.length,Vr=null,en=[],rn=0;rn55295&&xr<57344){if(!Vr){if(xr>56319){(ur-=3)>-1&&en.push(239,191,189);continue}else if(rn+1===Pr){(ur-=3)>-1&&en.push(239,191,189);continue}Vr=xr;continue}if(xr<56320){(ur-=3)>-1&&en.push(239,191,189),Vr=xr;continue}xr=(Vr-55296<<10|xr-56320)+65536}else Vr&&(ur-=3)>-1&&en.push(239,191,189);if(Vr=null,xr<128){if((ur-=1)<0)break;en.push(xr)}else if(xr<2048){if((ur-=2)<0)break;en.push(xr>>6|192,xr&63|128)}else if(xr<65536){if((ur-=3)<0)break;en.push(xr>>12|224,xr>>6&63|128,xr&63|128)}else if(xr<1114112){if((ur-=4)<0)break;en.push(xr>>18|240,xr>>12&63|128,xr>>6&63|128,xr&63|128)}else throw new Error("Invalid code point")}return en}function En(Sr){for(var ur=[],xr=0;xr>8,Vr=xr%256,en.push(Vr),en.push(Pr);return en}function Or(Sr){return _t.toByteArray(mn(Sr))}function Ur(Sr,ur,xr,Pr){var Vr;for(Vr=0;Vr=ur.length||Vr>=Sr.length);++Vr)ur[Vr+xr]=Sr[Vr];return Vr}function jr(Sr,ur){return Sr instanceof ur||Sr!=null&&Sr.constructor!=null&&Sr.constructor.name!=null&&Sr.constructor.name===ur.name}function Gr(Sr){return Sr!==Sr}var wr=function(){for(var Sr="0123456789abcdef",ur=new Array(256),xr=0;xr<16;++xr)for(var Pr=xr*16,Vr=0;Vr<16;++Vr)ur[Pr+Vr]=Sr[xr]+Sr[Vr];return ur}();function vr(Sr){return typeof BigInt>"u"?Dr:Sr}function Dr(){throw new Error("BigInt not supported")}},9216:function(ut){ut.exports=rt,ut.exports.isMobile=rt,ut.exports.default=rt;var ht=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,j=/CrOS/,_=/android|ipad|playbook|silk/i;function rt(tt){tt||(tt={});var st=tt.ua;if(!st&&typeof navigator<"u"&&(st=navigator.userAgent),st&&st.headers&&typeof st.headers["user-agent"]=="string"&&(st=st.headers["user-agent"]),typeof st!="string")return!1;var ot=ht.test(st)&&!j.test(st)||!!tt.tablet&&_.test(st);return!ot&&tt.tablet&&tt.featureDetect&&navigator&&navigator.maxTouchPoints>1&&st.indexOf("Macintosh")!==-1&&st.indexOf("Safari")!==-1&&(ot=!0),ot}},6296:function(ut,ht,j){ut.exports=nt;var _=j(7261),rt=j(9977),tt=j(4192);function st(vt,dt){this._controllerNames=Object.keys(vt),this._controllerList=this._controllerNames.map(function(bt){return vt[bt]}),this._mode=dt,this._active=vt[dt],this._active||(this._mode="turntable",this._active=vt.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var ot=st.prototype;ot.flush=function(vt){for(var dt=this._controllerList,bt=0;bt"u"?j(1538):WeakMap,rt=j(2762),tt=j(8116),st=new _;function ot(nt){var vt=st.get(nt),dt=vt&&(vt._triangleBuffer.handle||vt._triangleBuffer.buffer);if(!dt||!nt.isBuffer(dt)){var bt=rt(nt,new Float32Array([-1,-1,-1,4,4,-1]));vt=tt(nt,[{buffer:bt,type:nt.FLOAT,size:2}]),vt._triangleBuffer=bt,st.set(nt,vt)}vt.bind(),nt.drawArrays(nt.TRIANGLES,0,3),vt.unbind()}ut.exports=ot},1085:function(ut,ht,j){var _=j(1371);ut.exports=rt;function rt(tt,st,ot){st=typeof st=="number"?st:1,ot=ot||": ";var nt=tt.split(/\r?\n/),vt=String(nt.length+st-1).length;return nt.map(function(dt,bt){var ft=bt+st,at=String(ft).length,yt=_(ft,vt-at);return yt+ot+dt}).join(` -`)}},3952:function(ut,ht,j){ut.exports=tt;var _=j(3250);function rt(st,ot){for(var nt=new Array(ot+1),vt=0;vt0)throw new Error("Invalid string. Length must be a multiple of 4");var Mt=St.indexOf("=");Mt===-1&&(Mt=_t);var Tt=Mt===_t?0:4-Mt%4;return[Mt,Tt]}function vt(St){var _t=nt(St),Mt=_t[0],Tt=_t[1];return(Mt+Tt)*3/4-Tt}function dt(St,_t,Mt){return(_t+Mt)*3/4-Mt}function bt(St){var _t,Mt=nt(St),Tt=Mt[0],kt=Mt[1],wt=new rt(dt(St,Tt,kt)),ct=0,It=kt>0?Tt-4:Tt,At;for(At=0;At>16&255,wt[ct++]=_t>>8&255,wt[ct++]=_t&255;return kt===2&&(_t=_[St.charCodeAt(At)]<<2|_[St.charCodeAt(At+1)]>>4,wt[ct++]=_t&255),kt===1&&(_t=_[St.charCodeAt(At)]<<10|_[St.charCodeAt(At+1)]<<4|_[St.charCodeAt(At+2)]>>2,wt[ct++]=_t>>8&255,wt[ct++]=_t&255),wt}function ft(St){return j[St>>18&63]+j[St>>12&63]+j[St>>6&63]+j[St&63]}function at(St,_t,Mt){for(var Tt,kt=[],wt=_t;wtIt?It:ct+wt));return Tt===1?(_t=St[Mt-1],kt.push(j[_t>>2]+j[_t<<4&63]+"==")):Tt===2&&(_t=(St[Mt-2]<<8)+St[Mt-1],kt.push(j[_t>>10]+j[_t>>4&63]+j[_t<<2&63]+"=")),kt.join("")}},3865:function(ut,ht,j){var _=j(869);ut.exports=rt;function rt(tt,st){return _(tt[0].mul(st[1]).add(st[0].mul(tt[1])),tt[1].mul(st[1]))}},1318:function(ut){ut.exports=ht;function ht(j,_){return j[0].mul(_[1]).cmp(_[0].mul(j[1]))}},8697:function(ut,ht,j){var _=j(869);ut.exports=rt;function rt(tt,st){return _(tt[0].mul(st[1]),tt[1].mul(st[0]))}},7842:function(ut,ht,j){var _=j(6330),rt=j(1533),tt=j(2651),st=j(4387),ot=j(869),nt=j(8697);ut.exports=vt;function vt(dt,bt){if(_(dt))return bt?nt(dt,vt(bt)):[dt[0].clone(),dt[1].clone()];var ft=0,at,yt;if(rt(dt))at=dt.clone();else if(typeof dt=="string")at=st(dt);else{if(dt===0)return[tt(0),tt(1)];if(dt===Math.floor(dt))at=tt(dt);else{for(;dt!==Math.floor(dt);)dt=dt*Math.pow(2,256),ft-=256;at=tt(dt)}}if(_(bt))at.mul(bt[1]),yt=bt[0].clone();else if(rt(bt))yt=bt.clone();else if(typeof bt=="string")yt=st(bt);else if(!bt)yt=tt(1);else if(bt===Math.floor(bt))yt=tt(bt);else{for(;bt!==Math.floor(bt);)bt=bt*Math.pow(2,256),ft+=256;yt=tt(bt)}return ft>0?at=at.ushln(ft):ft<0&&(yt=yt.ushln(-ft)),ot(at,yt)}},6330:function(ut,ht,j){var _=j(1533);ut.exports=rt;function rt(tt){return Array.isArray(tt)&&tt.length===2&&_(tt[0])&&_(tt[1])}},5716:function(ut,ht,j){var _=j(6859);ut.exports=rt;function rt(tt){return tt.cmp(new _(0))}},1369:function(ut,ht,j){var _=j(5716);ut.exports=rt;function rt(tt){var st=tt.length,ot=tt.words,nt=0;if(st===1)nt=ot[0];else if(st===2)nt=ot[0]+ot[1]*67108864;else for(var vt=0;vt20?52:nt+32}},1533:function(ut,ht,j){j(6859),ut.exports=_;function _(rt){return rt&&typeof rt=="object"&&Boolean(rt.words)}},2651:function(ut,ht,j){var _=j(6859),rt=j(2361);ut.exports=tt;function tt(st){var ot=rt.exponent(st);return ot<52?new _(st):new _(st*Math.pow(2,52-ot)).ushln(ot-52)}},869:function(ut,ht,j){var _=j(2651),rt=j(5716);ut.exports=tt;function tt(st,ot){var nt=rt(st),vt=rt(ot);if(nt===0)return[_(0),_(1)];if(vt===0)return[_(0),_(0)];vt<0&&(st=st.neg(),ot=ot.neg());var dt=st.gcd(ot);return dt.cmpn(1)?[st.div(dt),ot.div(dt)]:[st,ot]}},4387:function(ut,ht,j){var _=j(6859);ut.exports=rt;function rt(tt){return new _(tt)}},6504:function(ut,ht,j){var _=j(869);ut.exports=rt;function rt(tt,st){return _(tt[0].mul(st[0]),tt[1].mul(st[1]))}},7721:function(ut,ht,j){var _=j(5716);ut.exports=rt;function rt(tt){return _(tt[0])*_(tt[1])}},5572:function(ut,ht,j){var _=j(869);ut.exports=rt;function rt(tt,st){return _(tt[0].mul(st[1]).sub(tt[1].mul(st[0])),tt[1].mul(st[1]))}},946:function(ut,ht,j){var _=j(1369),rt=j(4025);ut.exports=tt;function tt(st){var ot=st[0],nt=st[1];if(ot.cmpn(0)===0)return 0;var vt=ot.abs().divmod(nt.abs()),dt=vt.div,bt=_(dt),ft=vt.mod,at=ot.negative!==nt.negative?-1:1;if(ft.cmpn(0)===0)return at*bt;if(bt){var yt=rt(bt)+4,St=_(ft.ushln(yt).divRound(nt));return at*(bt+St*Math.pow(2,-yt))}else{var _t=nt.bitLength()-ft.bitLength()+53,St=_(ft.ushln(_t).divRound(nt));return _t<1023?at*St*Math.pow(2,-_t):(St*=Math.pow(2,-1023),at*St*Math.pow(2,1023-_t))}}},2478:function(ut){function ht(ot,nt,vt,dt,bt){for(var ft=bt+1;dt<=bt;){var at=dt+bt>>>1,yt=ot[at],St=vt!==void 0?vt(yt,nt):yt-nt;St>=0?(ft=at,bt=at-1):dt=at+1}return ft}function j(ot,nt,vt,dt,bt){for(var ft=bt+1;dt<=bt;){var at=dt+bt>>>1,yt=ot[at],St=vt!==void 0?vt(yt,nt):yt-nt;St>0?(ft=at,bt=at-1):dt=at+1}return ft}function _(ot,nt,vt,dt,bt){for(var ft=dt-1;dt<=bt;){var at=dt+bt>>>1,yt=ot[at],St=vt!==void 0?vt(yt,nt):yt-nt;St<0?(ft=at,dt=at+1):bt=at-1}return ft}function rt(ot,nt,vt,dt,bt){for(var ft=dt-1;dt<=bt;){var at=dt+bt>>>1,yt=ot[at],St=vt!==void 0?vt(yt,nt):yt-nt;St<=0?(ft=at,dt=at+1):bt=at-1}return ft}function tt(ot,nt,vt,dt,bt){for(;dt<=bt;){var ft=dt+bt>>>1,at=ot[ft],yt=vt!==void 0?vt(at,nt):at-nt;if(yt===0)return ft;yt<=0?dt=ft+1:bt=ft-1}return-1}function st(ot,nt,vt,dt,bt,ft){return typeof vt=="function"?ft(ot,nt,vt,dt===void 0?0:dt|0,bt===void 0?ot.length-1:bt|0):ft(ot,nt,void 0,vt===void 0?0:vt|0,dt===void 0?ot.length-1:dt|0)}ut.exports={ge:function(ot,nt,vt,dt,bt){return st(ot,nt,vt,dt,bt,ht)},gt:function(ot,nt,vt,dt,bt){return st(ot,nt,vt,dt,bt,j)},lt:function(ot,nt,vt,dt,bt){return st(ot,nt,vt,dt,bt,_)},le:function(ot,nt,vt,dt,bt){return st(ot,nt,vt,dt,bt,rt)},eq:function(ot,nt,vt,dt,bt){return st(ot,nt,vt,dt,bt,tt)}}},8828:function(ut,ht){var j=32;ht.INT_BITS=j,ht.INT_MAX=2147483647,ht.INT_MIN=-1<0)-(tt<0)},ht.abs=function(tt){var st=tt>>j-1;return(tt^st)-st},ht.min=function(tt,st){return st^(tt^st)&-(tt65535)<<4,tt>>>=st,ot=(tt>255)<<3,tt>>>=ot,st|=ot,ot=(tt>15)<<2,tt>>>=ot,st|=ot,ot=(tt>3)<<1,tt>>>=ot,st|=ot,st|tt>>1},ht.log10=function(tt){return tt>=1e9?9:tt>=1e8?8:tt>=1e7?7:tt>=1e6?6:tt>=1e5?5:tt>=1e4?4:tt>=1e3?3:tt>=100?2:tt>=10?1:0},ht.popCount=function(tt){return tt=tt-(tt>>>1&1431655765),tt=(tt&858993459)+(tt>>>2&858993459),(tt+(tt>>>4)&252645135)*16843009>>>24};function _(tt){var st=32;return tt&=-tt,tt&&st--,tt&65535&&(st-=16),tt&16711935&&(st-=8),tt&252645135&&(st-=4),tt&858993459&&(st-=2),tt&1431655765&&(st-=1),st}ht.countTrailingZeros=_,ht.nextPow2=function(tt){return tt+=tt===0,--tt,tt|=tt>>>1,tt|=tt>>>2,tt|=tt>>>4,tt|=tt>>>8,tt|=tt>>>16,tt+1},ht.prevPow2=function(tt){return tt|=tt>>>1,tt|=tt>>>2,tt|=tt>>>4,tt|=tt>>>8,tt|=tt>>>16,tt-(tt>>>1)},ht.parity=function(tt){return tt^=tt>>>16,tt^=tt>>>8,tt^=tt>>>4,tt&=15,27030>>>tt&1};var rt=new Array(256);(function(tt){for(var st=0;st<256;++st){var ot=st,nt=st,vt=7;for(ot>>>=1;ot;ot>>>=1)nt<<=1,nt|=ot&1,--vt;tt[st]=nt<>>8&255]<<16|rt[tt>>>16&255]<<8|rt[tt>>>24&255]},ht.interleave2=function(tt,st){return tt&=65535,tt=(tt|tt<<8)&16711935,tt=(tt|tt<<4)&252645135,tt=(tt|tt<<2)&858993459,tt=(tt|tt<<1)&1431655765,st&=65535,st=(st|st<<8)&16711935,st=(st|st<<4)&252645135,st=(st|st<<2)&858993459,st=(st|st<<1)&1431655765,tt|st<<1},ht.deinterleave2=function(tt,st){return tt=tt>>>st&1431655765,tt=(tt|tt>>>1)&858993459,tt=(tt|tt>>>2)&252645135,tt=(tt|tt>>>4)&16711935,tt=(tt|tt>>>16)&65535,tt<<16>>16},ht.interleave3=function(tt,st,ot){return tt&=1023,tt=(tt|tt<<16)&4278190335,tt=(tt|tt<<8)&251719695,tt=(tt|tt<<4)&3272356035,tt=(tt|tt<<2)&1227133513,st&=1023,st=(st|st<<16)&4278190335,st=(st|st<<8)&251719695,st=(st|st<<4)&3272356035,st=(st|st<<2)&1227133513,tt|=st<<1,ot&=1023,ot=(ot|ot<<16)&4278190335,ot=(ot|ot<<8)&251719695,ot=(ot|ot<<4)&3272356035,ot=(ot|ot<<2)&1227133513,tt|ot<<2},ht.deinterleave3=function(tt,st){return tt=tt>>>st&1227133513,tt=(tt|tt>>>2)&3272356035,tt=(tt|tt>>>4)&251719695,tt=(tt|tt>>>8)&4278190335,tt=(tt|tt>>>16)&1023,tt<<22>>22},ht.nextCombination=function(tt){var st=tt|tt-1;return st+1|(~st&-~st)-1>>>_(tt)+1}},6859:function(ut,ht,j){ut=j.nmd(ut),function(_,rt){function tt($t,Ut){if(!$t)throw new Error(Ut||"Assertion failed")}function st($t,Ut){$t.super_=Ut;var Ht=function(){};Ht.prototype=Ut.prototype,$t.prototype=new Ht,$t.prototype.constructor=$t}function ot($t,Ut,Ht){if(ot.isBN($t))return $t;this.negative=0,this.words=null,this.length=0,this.red=null,$t!==null&&((Ut==="le"||Ut==="be")&&(Ht=Ut,Ut=10),this._init($t||0,Ut||10,Ht||"be"))}typeof _=="object"?_.exports=ot:rt.BN=ot,ot.BN=ot,ot.wordSize=26;var nt;try{typeof window<"u"&&typeof window.Buffer<"u"?nt=window.Buffer:nt=j(7790).Buffer}catch{}ot.isBN=function(Ut){return Ut instanceof ot?!0:Ut!==null&&typeof Ut=="object"&&Ut.constructor.wordSize===ot.wordSize&&Array.isArray(Ut.words)},ot.max=function(Ut,Ht){return Ut.cmp(Ht)>0?Ut:Ht},ot.min=function(Ut,Ht){return Ut.cmp(Ht)<0?Ut:Ht},ot.prototype._init=function(Ut,Ht,Vt){if(typeof Ut=="number")return this._initNumber(Ut,Ht,Vt);if(typeof Ut=="object")return this._initArray(Ut,Ht,Vt);Ht==="hex"&&(Ht=16),tt(Ht===(Ht|0)&&Ht>=2&&Ht<=36),Ut=Ut.toString().replace(/\s+/g,"");var Xt=0;Ut[0]==="-"&&(Xt++,this.negative=1),Xt=0;Xt-=3)er=Ut[Xt]|Ut[Xt-1]<<8|Ut[Xt-2]<<16,this.words[qt]|=er<>>26-lr&67108863,lr+=24,lr>=26&&(lr-=26,qt++);else if(Vt==="le")for(Xt=0,qt=0;Xt>>26-lr&67108863,lr+=24,lr>=26&&(lr-=26,qt++);return this.strip()};function vt($t,Ut){var Ht=$t.charCodeAt(Ut);return Ht>=65&&Ht<=70?Ht-55:Ht>=97&&Ht<=102?Ht-87:Ht-48&15}function dt($t,Ut,Ht){var Vt=vt($t,Ht);return Ht-1>=Ut&&(Vt|=vt($t,Ht-1)<<4),Vt}ot.prototype._parseHex=function(Ut,Ht,Vt){this.length=Math.ceil((Ut.length-Ht)/6),this.words=new Array(this.length);for(var Xt=0;Xt=Ht;Xt-=2)lr=dt(Ut,Ht,Xt)<=18?(qt-=18,er+=1,this.words[er]|=lr>>>26):qt+=8;else{var Jt=Ut.length-Ht;for(Xt=Jt%2===0?Ht+1:Ht;Xt=18?(qt-=18,er+=1,this.words[er]|=lr>>>26):qt+=8}this.strip()};function bt($t,Ut,Ht,Vt){for(var Xt=0,qt=Math.min($t.length,Ht),er=Ut;er=49?Xt+=lr-49+10:lr>=17?Xt+=lr-17+10:Xt+=lr}return Xt}ot.prototype._parseBase=function(Ut,Ht,Vt){this.words=[0],this.length=1;for(var Xt=0,qt=1;qt<=67108863;qt*=Ht)Xt++;Xt--,qt=qt/Ht|0;for(var er=Ut.length-Vt,lr=er%Xt,Jt=Math.min(er,er-lr)+Vt,Yt=0,rr=Vt;rr1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},ot.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},ot.prototype.inspect=function(){return(this.red?""};var ft=["","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"],at=[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],yt=[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];ot.prototype.toString=function(Ut,Ht){Ut=Ut||10,Ht=Ht|0||1;var Vt;if(Ut===16||Ut==="hex"){Vt="";for(var Xt=0,qt=0,er=0;er>>24-Xt&16777215,qt!==0||er!==this.length-1?Vt=ft[6-Jt.length]+Jt+Vt:Vt=Jt+Vt,Xt+=2,Xt>=26&&(Xt-=26,er--)}for(qt!==0&&(Vt=qt.toString(16)+Vt);Vt.length%Ht!==0;)Vt="0"+Vt;return this.negative!==0&&(Vt="-"+Vt),Vt}if(Ut===(Ut|0)&&Ut>=2&&Ut<=36){var Yt=at[Ut],rr=yt[Ut];Vt="";var jt=this.clone();for(jt.negative=0;!jt.isZero();){var ar=jt.modn(rr).toString(Ut);jt=jt.idivn(rr),jt.isZero()?Vt=ar+Vt:Vt=ft[Yt-ar.length]+ar+Vt}for(this.isZero()&&(Vt="0"+Vt);Vt.length%Ht!==0;)Vt="0"+Vt;return this.negative!==0&&(Vt="-"+Vt),Vt}tt(!1,"Base should be between 2 and 36")},ot.prototype.toNumber=function(){var Ut=this.words[0];return this.length===2?Ut+=this.words[1]*67108864:this.length===3&&this.words[2]===1?Ut+=4503599627370496+this.words[1]*67108864:this.length>2&&tt(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-Ut:Ut},ot.prototype.toJSON=function(){return this.toString(16)},ot.prototype.toBuffer=function(Ut,Ht){return tt(typeof nt<"u"),this.toArrayLike(nt,Ut,Ht)},ot.prototype.toArray=function(Ut,Ht){return this.toArrayLike(Array,Ut,Ht)},ot.prototype.toArrayLike=function(Ut,Ht,Vt){var Xt=this.byteLength(),qt=Vt||Math.max(1,Xt);tt(Xt<=qt,"byte array longer than desired length"),tt(qt>0,"Requested array length <= 0"),this.strip();var er=Ht==="le",lr=new Ut(qt),Jt,Yt,rr=this.clone();if(er){for(Yt=0;!rr.isZero();Yt++)Jt=rr.andln(255),rr.iushrn(8),lr[Yt]=Jt;for(;Yt=4096&&(Vt+=13,Ht>>>=13),Ht>=64&&(Vt+=7,Ht>>>=7),Ht>=8&&(Vt+=4,Ht>>>=4),Ht>=2&&(Vt+=2,Ht>>>=2),Vt+Ht},ot.prototype._zeroBits=function(Ut){if(Ut===0)return 26;var Ht=Ut,Vt=0;return Ht&8191||(Vt+=13,Ht>>>=13),Ht&127||(Vt+=7,Ht>>>=7),Ht&15||(Vt+=4,Ht>>>=4),Ht&3||(Vt+=2,Ht>>>=2),Ht&1||Vt++,Vt},ot.prototype.bitLength=function(){var Ut=this.words[this.length-1],Ht=this._countBits(Ut);return(this.length-1)*26+Ht};function St($t){for(var Ut=new Array($t.bitLength()),Ht=0;Ht>>Xt}return Ut}ot.prototype.zeroBits=function(){if(this.isZero())return 0;for(var Ut=0,Ht=0;HtUt.length?this.clone().ior(Ut):Ut.clone().ior(this)},ot.prototype.uor=function(Ut){return this.length>Ut.length?this.clone().iuor(Ut):Ut.clone().iuor(this)},ot.prototype.iuand=function(Ut){var Ht;this.length>Ut.length?Ht=Ut:Ht=this;for(var Vt=0;VtUt.length?this.clone().iand(Ut):Ut.clone().iand(this)},ot.prototype.uand=function(Ut){return this.length>Ut.length?this.clone().iuand(Ut):Ut.clone().iuand(this)},ot.prototype.iuxor=function(Ut){var Ht,Vt;this.length>Ut.length?(Ht=this,Vt=Ut):(Ht=Ut,Vt=this);for(var Xt=0;XtUt.length?this.clone().ixor(Ut):Ut.clone().ixor(this)},ot.prototype.uxor=function(Ut){return this.length>Ut.length?this.clone().iuxor(Ut):Ut.clone().iuxor(this)},ot.prototype.inotn=function(Ut){tt(typeof Ut=="number"&&Ut>=0);var Ht=Math.ceil(Ut/26)|0,Vt=Ut%26;this._expand(Ht),Vt>0&&Ht--;for(var Xt=0;Xt0&&(this.words[Xt]=~this.words[Xt]&67108863>>26-Vt),this.strip()},ot.prototype.notn=function(Ut){return this.clone().inotn(Ut)},ot.prototype.setn=function(Ut,Ht){tt(typeof Ut=="number"&&Ut>=0);var Vt=Ut/26|0,Xt=Ut%26;return this._expand(Vt+1),Ht?this.words[Vt]=this.words[Vt]|1<Ut.length?(Vt=this,Xt=Ut):(Vt=Ut,Xt=this);for(var qt=0,er=0;er>>26;for(;qt!==0&&er>>26;if(this.length=Vt.length,qt!==0)this.words[this.length]=qt,this.length++;else if(Vt!==this)for(;erUt.length?this.clone().iadd(Ut):Ut.clone().iadd(this)},ot.prototype.isub=function(Ut){if(Ut.negative!==0){Ut.negative=0;var Ht=this.iadd(Ut);return Ut.negative=1,Ht._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(Ut),this.negative=1,this._normSign();var Vt=this.cmp(Ut);if(Vt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Xt,qt;Vt>0?(Xt=this,qt=Ut):(Xt=Ut,qt=this);for(var er=0,lr=0;lr>26,this.words[lr]=Ht&67108863;for(;er!==0&&lr>26,this.words[lr]=Ht&67108863;if(er===0&&lr>>26,jt=Jt&67108863,ar=Math.min(Yt,Ut.length-1),sr=Math.max(0,Yt-$t.length+1);sr<=ar;sr++){var Zt=Yt-sr|0;Xt=$t.words[Zt]|0,qt=Ut.words[sr]|0,er=Xt*qt+jt,rr+=er/67108864|0,jt=er&67108863}Ht.words[Yt]=jt|0,Jt=rr|0}return Jt!==0?Ht.words[Yt]=Jt|0:Ht.length--,Ht.strip()}var Mt=function(Ut,Ht,Vt){var Xt=Ut.words,qt=Ht.words,er=Vt.words,lr=0,Jt,Yt,rr,jt=Xt[0]|0,ar=jt&8191,sr=jt>>>13,Zt=Xt[1]|0,Kt=Zt&8191,or=Zt>>>13,tr=Xt[2]|0,cr=tr&8191,hr=tr>>>13,br=Xt[3]|0,Tr=br&8191,Ir=br>>>13,Ar=Xt[4]|0,_r=Ar&8191,Er=Ar>>>13,Rr=Xt[5]|0,zr=Rr&8191,Br=Rr>>>13,kr=Xt[6]|0,Nr=kr&8191,Qr=kr>>>13,sn=Xt[7]|0,un=sn&8191,qr=sn>>>13,Xr=Xt[8]|0,ln=Xr&8191,mn=Xr>>>13,pn=Xt[9]|0,En=pn&8191,Jr=pn>>>13,Or=qt[0]|0,Ur=Or&8191,jr=Or>>>13,Gr=qt[1]|0,wr=Gr&8191,vr=Gr>>>13,Dr=qt[2]|0,Sr=Dr&8191,ur=Dr>>>13,xr=qt[3]|0,Pr=xr&8191,Vr=xr>>>13,en=qt[4]|0,rn=en&8191,Cn=en>>>13,xn=qt[5]|0,fn=xn&8191,bn=xn>>>13,Un=qt[6]|0,_i=Un&8191,yn=Un>>>13,Kn=qt[7]|0,Jn=Kn&8191,so=Kn>>>13,ba=qt[8]|0,An=ba&8191,hn=ba>>>13,wn=qt[9]|0,In=wn&8191,Ln=wn>>>13;Vt.negative=Ut.negative^Ht.negative,Vt.length=19,Jt=Math.imul(ar,Ur),Yt=Math.imul(ar,jr),Yt=Yt+Math.imul(sr,Ur)|0,rr=Math.imul(sr,jr);var Xn=(lr+Jt|0)+((Yt&8191)<<13)|0;lr=(rr+(Yt>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,Jt=Math.imul(Kt,Ur),Yt=Math.imul(Kt,jr),Yt=Yt+Math.imul(or,Ur)|0,rr=Math.imul(or,jr),Jt=Jt+Math.imul(ar,wr)|0,Yt=Yt+Math.imul(ar,vr)|0,Yt=Yt+Math.imul(sr,wr)|0,rr=rr+Math.imul(sr,vr)|0;var Wn=(lr+Jt|0)+((Yt&8191)<<13)|0;lr=(rr+(Yt>>>13)|0)+(Wn>>>26)|0,Wn&=67108863,Jt=Math.imul(cr,Ur),Yt=Math.imul(cr,jr),Yt=Yt+Math.imul(hr,Ur)|0,rr=Math.imul(hr,jr),Jt=Jt+Math.imul(Kt,wr)|0,Yt=Yt+Math.imul(Kt,vr)|0,Yt=Yt+Math.imul(or,wr)|0,rr=rr+Math.imul(or,vr)|0,Jt=Jt+Math.imul(ar,Sr)|0,Yt=Yt+Math.imul(ar,ur)|0,Yt=Yt+Math.imul(sr,Sr)|0,rr=rr+Math.imul(sr,ur)|0;var Vn=(lr+Jt|0)+((Yt&8191)<<13)|0;lr=(rr+(Yt>>>13)|0)+(Vn>>>26)|0,Vn&=67108863,Jt=Math.imul(Tr,Ur),Yt=Math.imul(Tr,jr),Yt=Yt+Math.imul(Ir,Ur)|0,rr=Math.imul(Ir,jr),Jt=Jt+Math.imul(cr,wr)|0,Yt=Yt+Math.imul(cr,vr)|0,Yt=Yt+Math.imul(hr,wr)|0,rr=rr+Math.imul(hr,vr)|0,Jt=Jt+Math.imul(Kt,Sr)|0,Yt=Yt+Math.imul(Kt,ur)|0,Yt=Yt+Math.imul(or,Sr)|0,rr=rr+Math.imul(or,ur)|0,Jt=Jt+Math.imul(ar,Pr)|0,Yt=Yt+Math.imul(ar,Vr)|0,Yt=Yt+Math.imul(sr,Pr)|0,rr=rr+Math.imul(sr,Vr)|0;var ga=(lr+Jt|0)+((Yt&8191)<<13)|0;lr=(rr+(Yt>>>13)|0)+(ga>>>26)|0,ga&=67108863,Jt=Math.imul(_r,Ur),Yt=Math.imul(_r,jr),Yt=Yt+Math.imul(Er,Ur)|0,rr=Math.imul(Er,jr),Jt=Jt+Math.imul(Tr,wr)|0,Yt=Yt+Math.imul(Tr,vr)|0,Yt=Yt+Math.imul(Ir,wr)|0,rr=rr+Math.imul(Ir,vr)|0,Jt=Jt+Math.imul(cr,Sr)|0,Yt=Yt+Math.imul(cr,ur)|0,Yt=Yt+Math.imul(hr,Sr)|0,rr=rr+Math.imul(hr,ur)|0,Jt=Jt+Math.imul(Kt,Pr)|0,Yt=Yt+Math.imul(Kt,Vr)|0,Yt=Yt+Math.imul(or,Pr)|0,rr=rr+Math.imul(or,Vr)|0,Jt=Jt+Math.imul(ar,rn)|0,Yt=Yt+Math.imul(ar,Cn)|0,Yt=Yt+Math.imul(sr,rn)|0,rr=rr+Math.imul(sr,Cn)|0;var fo=(lr+Jt|0)+((Yt&8191)<<13)|0;lr=(rr+(Yt>>>13)|0)+(fo>>>26)|0,fo&=67108863,Jt=Math.imul(zr,Ur),Yt=Math.imul(zr,jr),Yt=Yt+Math.imul(Br,Ur)|0,rr=Math.imul(Br,jr),Jt=Jt+Math.imul(_r,wr)|0,Yt=Yt+Math.imul(_r,vr)|0,Yt=Yt+Math.imul(Er,wr)|0,rr=rr+Math.imul(Er,vr)|0,Jt=Jt+Math.imul(Tr,Sr)|0,Yt=Yt+Math.imul(Tr,ur)|0,Yt=Yt+Math.imul(Ir,Sr)|0,rr=rr+Math.imul(Ir,ur)|0,Jt=Jt+Math.imul(cr,Pr)|0,Yt=Yt+Math.imul(cr,Vr)|0,Yt=Yt+Math.imul(hr,Pr)|0,rr=rr+Math.imul(hr,Vr)|0,Jt=Jt+Math.imul(Kt,rn)|0,Yt=Yt+Math.imul(Kt,Cn)|0,Yt=Yt+Math.imul(or,rn)|0,rr=rr+Math.imul(or,Cn)|0,Jt=Jt+Math.imul(ar,fn)|0,Yt=Yt+Math.imul(ar,bn)|0,Yt=Yt+Math.imul(sr,fn)|0,rr=rr+Math.imul(sr,bn)|0;var qn=(lr+Jt|0)+((Yt&8191)<<13)|0;lr=(rr+(Yt>>>13)|0)+(qn>>>26)|0,qn&=67108863,Jt=Math.imul(Nr,Ur),Yt=Math.imul(Nr,jr),Yt=Yt+Math.imul(Qr,Ur)|0,rr=Math.imul(Qr,jr),Jt=Jt+Math.imul(zr,wr)|0,Yt=Yt+Math.imul(zr,vr)|0,Yt=Yt+Math.imul(Br,wr)|0,rr=rr+Math.imul(Br,vr)|0,Jt=Jt+Math.imul(_r,Sr)|0,Yt=Yt+Math.imul(_r,ur)|0,Yt=Yt+Math.imul(Er,Sr)|0,rr=rr+Math.imul(Er,ur)|0,Jt=Jt+Math.imul(Tr,Pr)|0,Yt=Yt+Math.imul(Tr,Vr)|0,Yt=Yt+Math.imul(Ir,Pr)|0,rr=rr+Math.imul(Ir,Vr)|0,Jt=Jt+Math.imul(cr,rn)|0,Yt=Yt+Math.imul(cr,Cn)|0,Yt=Yt+Math.imul(hr,rn)|0,rr=rr+Math.imul(hr,Cn)|0,Jt=Jt+Math.imul(Kt,fn)|0,Yt=Yt+Math.imul(Kt,bn)|0,Yt=Yt+Math.imul(or,fn)|0,rr=rr+Math.imul(or,bn)|0,Jt=Jt+Math.imul(ar,_i)|0,Yt=Yt+Math.imul(ar,yn)|0,Yt=Yt+Math.imul(sr,_i)|0,rr=rr+Math.imul(sr,yn)|0;var po=(lr+Jt|0)+((Yt&8191)<<13)|0;lr=(rr+(Yt>>>13)|0)+(po>>>26)|0,po&=67108863,Jt=Math.imul(un,Ur),Yt=Math.imul(un,jr),Yt=Yt+Math.imul(qr,Ur)|0,rr=Math.imul(qr,jr),Jt=Jt+Math.imul(Nr,wr)|0,Yt=Yt+Math.imul(Nr,vr)|0,Yt=Yt+Math.imul(Qr,wr)|0,rr=rr+Math.imul(Qr,vr)|0,Jt=Jt+Math.imul(zr,Sr)|0,Yt=Yt+Math.imul(zr,ur)|0,Yt=Yt+Math.imul(Br,Sr)|0,rr=rr+Math.imul(Br,ur)|0,Jt=Jt+Math.imul(_r,Pr)|0,Yt=Yt+Math.imul(_r,Vr)|0,Yt=Yt+Math.imul(Er,Pr)|0,rr=rr+Math.imul(Er,Vr)|0,Jt=Jt+Math.imul(Tr,rn)|0,Yt=Yt+Math.imul(Tr,Cn)|0,Yt=Yt+Math.imul(Ir,rn)|0,rr=rr+Math.imul(Ir,Cn)|0,Jt=Jt+Math.imul(cr,fn)|0,Yt=Yt+Math.imul(cr,bn)|0,Yt=Yt+Math.imul(hr,fn)|0,rr=rr+Math.imul(hr,bn)|0,Jt=Jt+Math.imul(Kt,_i)|0,Yt=Yt+Math.imul(Kt,yn)|0,Yt=Yt+Math.imul(or,_i)|0,rr=rr+Math.imul(or,yn)|0,Jt=Jt+Math.imul(ar,Jn)|0,Yt=Yt+Math.imul(ar,so)|0,Yt=Yt+Math.imul(sr,Jn)|0,rr=rr+Math.imul(sr,so)|0;var Yr=(lr+Jt|0)+((Yt&8191)<<13)|0;lr=(rr+(Yt>>>13)|0)+(Yr>>>26)|0,Yr&=67108863,Jt=Math.imul(ln,Ur),Yt=Math.imul(ln,jr),Yt=Yt+Math.imul(mn,Ur)|0,rr=Math.imul(mn,jr),Jt=Jt+Math.imul(un,wr)|0,Yt=Yt+Math.imul(un,vr)|0,Yt=Yt+Math.imul(qr,wr)|0,rr=rr+Math.imul(qr,vr)|0,Jt=Jt+Math.imul(Nr,Sr)|0,Yt=Yt+Math.imul(Nr,ur)|0,Yt=Yt+Math.imul(Qr,Sr)|0,rr=rr+Math.imul(Qr,ur)|0,Jt=Jt+Math.imul(zr,Pr)|0,Yt=Yt+Math.imul(zr,Vr)|0,Yt=Yt+Math.imul(Br,Pr)|0,rr=rr+Math.imul(Br,Vr)|0,Jt=Jt+Math.imul(_r,rn)|0,Yt=Yt+Math.imul(_r,Cn)|0,Yt=Yt+Math.imul(Er,rn)|0,rr=rr+Math.imul(Er,Cn)|0,Jt=Jt+Math.imul(Tr,fn)|0,Yt=Yt+Math.imul(Tr,bn)|0,Yt=Yt+Math.imul(Ir,fn)|0,rr=rr+Math.imul(Ir,bn)|0,Jt=Jt+Math.imul(cr,_i)|0,Yt=Yt+Math.imul(cr,yn)|0,Yt=Yt+Math.imul(hr,_i)|0,rr=rr+Math.imul(hr,yn)|0,Jt=Jt+Math.imul(Kt,Jn)|0,Yt=Yt+Math.imul(Kt,so)|0,Yt=Yt+Math.imul(or,Jn)|0,rr=rr+Math.imul(or,so)|0,Jt=Jt+Math.imul(ar,An)|0,Yt=Yt+Math.imul(ar,hn)|0,Yt=Yt+Math.imul(sr,An)|0,rr=rr+Math.imul(sr,hn)|0;var Wr=(lr+Jt|0)+((Yt&8191)<<13)|0;lr=(rr+(Yt>>>13)|0)+(Wr>>>26)|0,Wr&=67108863,Jt=Math.imul(En,Ur),Yt=Math.imul(En,jr),Yt=Yt+Math.imul(Jr,Ur)|0,rr=Math.imul(Jr,jr),Jt=Jt+Math.imul(ln,wr)|0,Yt=Yt+Math.imul(ln,vr)|0,Yt=Yt+Math.imul(mn,wr)|0,rr=rr+Math.imul(mn,vr)|0,Jt=Jt+Math.imul(un,Sr)|0,Yt=Yt+Math.imul(un,ur)|0,Yt=Yt+Math.imul(qr,Sr)|0,rr=rr+Math.imul(qr,ur)|0,Jt=Jt+Math.imul(Nr,Pr)|0,Yt=Yt+Math.imul(Nr,Vr)|0,Yt=Yt+Math.imul(Qr,Pr)|0,rr=rr+Math.imul(Qr,Vr)|0,Jt=Jt+Math.imul(zr,rn)|0,Yt=Yt+Math.imul(zr,Cn)|0,Yt=Yt+Math.imul(Br,rn)|0,rr=rr+Math.imul(Br,Cn)|0,Jt=Jt+Math.imul(_r,fn)|0,Yt=Yt+Math.imul(_r,bn)|0,Yt=Yt+Math.imul(Er,fn)|0,rr=rr+Math.imul(Er,bn)|0,Jt=Jt+Math.imul(Tr,_i)|0,Yt=Yt+Math.imul(Tr,yn)|0,Yt=Yt+Math.imul(Ir,_i)|0,rr=rr+Math.imul(Ir,yn)|0,Jt=Jt+Math.imul(cr,Jn)|0,Yt=Yt+Math.imul(cr,so)|0,Yt=Yt+Math.imul(hr,Jn)|0,rr=rr+Math.imul(hr,so)|0,Jt=Jt+Math.imul(Kt,An)|0,Yt=Yt+Math.imul(Kt,hn)|0,Yt=Yt+Math.imul(or,An)|0,rr=rr+Math.imul(or,hn)|0,Jt=Jt+Math.imul(ar,In)|0,Yt=Yt+Math.imul(ar,Ln)|0,Yt=Yt+Math.imul(sr,In)|0,rr=rr+Math.imul(sr,Ln)|0;var $n=(lr+Jt|0)+((Yt&8191)<<13)|0;lr=(rr+(Yt>>>13)|0)+($n>>>26)|0,$n&=67108863,Jt=Math.imul(En,wr),Yt=Math.imul(En,vr),Yt=Yt+Math.imul(Jr,wr)|0,rr=Math.imul(Jr,vr),Jt=Jt+Math.imul(ln,Sr)|0,Yt=Yt+Math.imul(ln,ur)|0,Yt=Yt+Math.imul(mn,Sr)|0,rr=rr+Math.imul(mn,ur)|0,Jt=Jt+Math.imul(un,Pr)|0,Yt=Yt+Math.imul(un,Vr)|0,Yt=Yt+Math.imul(qr,Pr)|0,rr=rr+Math.imul(qr,Vr)|0,Jt=Jt+Math.imul(Nr,rn)|0,Yt=Yt+Math.imul(Nr,Cn)|0,Yt=Yt+Math.imul(Qr,rn)|0,rr=rr+Math.imul(Qr,Cn)|0,Jt=Jt+Math.imul(zr,fn)|0,Yt=Yt+Math.imul(zr,bn)|0,Yt=Yt+Math.imul(Br,fn)|0,rr=rr+Math.imul(Br,bn)|0,Jt=Jt+Math.imul(_r,_i)|0,Yt=Yt+Math.imul(_r,yn)|0,Yt=Yt+Math.imul(Er,_i)|0,rr=rr+Math.imul(Er,yn)|0,Jt=Jt+Math.imul(Tr,Jn)|0,Yt=Yt+Math.imul(Tr,so)|0,Yt=Yt+Math.imul(Ir,Jn)|0,rr=rr+Math.imul(Ir,so)|0,Jt=Jt+Math.imul(cr,An)|0,Yt=Yt+Math.imul(cr,hn)|0,Yt=Yt+Math.imul(hr,An)|0,rr=rr+Math.imul(hr,hn)|0,Jt=Jt+Math.imul(Kt,In)|0,Yt=Yt+Math.imul(Kt,Ln)|0,Yt=Yt+Math.imul(or,In)|0,rr=rr+Math.imul(or,Ln)|0;var Bn=(lr+Jt|0)+((Yt&8191)<<13)|0;lr=(rr+(Yt>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,Jt=Math.imul(En,Sr),Yt=Math.imul(En,ur),Yt=Yt+Math.imul(Jr,Sr)|0,rr=Math.imul(Jr,ur),Jt=Jt+Math.imul(ln,Pr)|0,Yt=Yt+Math.imul(ln,Vr)|0,Yt=Yt+Math.imul(mn,Pr)|0,rr=rr+Math.imul(mn,Vr)|0,Jt=Jt+Math.imul(un,rn)|0,Yt=Yt+Math.imul(un,Cn)|0,Yt=Yt+Math.imul(qr,rn)|0,rr=rr+Math.imul(qr,Cn)|0,Jt=Jt+Math.imul(Nr,fn)|0,Yt=Yt+Math.imul(Nr,bn)|0,Yt=Yt+Math.imul(Qr,fn)|0,rr=rr+Math.imul(Qr,bn)|0,Jt=Jt+Math.imul(zr,_i)|0,Yt=Yt+Math.imul(zr,yn)|0,Yt=Yt+Math.imul(Br,_i)|0,rr=rr+Math.imul(Br,yn)|0,Jt=Jt+Math.imul(_r,Jn)|0,Yt=Yt+Math.imul(_r,so)|0,Yt=Yt+Math.imul(Er,Jn)|0,rr=rr+Math.imul(Er,so)|0,Jt=Jt+Math.imul(Tr,An)|0,Yt=Yt+Math.imul(Tr,hn)|0,Yt=Yt+Math.imul(Ir,An)|0,rr=rr+Math.imul(Ir,hn)|0,Jt=Jt+Math.imul(cr,In)|0,Yt=Yt+Math.imul(cr,Ln)|0,Yt=Yt+Math.imul(hr,In)|0,rr=rr+Math.imul(hr,Ln)|0;var xa=(lr+Jt|0)+((Yt&8191)<<13)|0;lr=(rr+(Yt>>>13)|0)+(xa>>>26)|0,xa&=67108863,Jt=Math.imul(En,Pr),Yt=Math.imul(En,Vr),Yt=Yt+Math.imul(Jr,Pr)|0,rr=Math.imul(Jr,Vr),Jt=Jt+Math.imul(ln,rn)|0,Yt=Yt+Math.imul(ln,Cn)|0,Yt=Yt+Math.imul(mn,rn)|0,rr=rr+Math.imul(mn,Cn)|0,Jt=Jt+Math.imul(un,fn)|0,Yt=Yt+Math.imul(un,bn)|0,Yt=Yt+Math.imul(qr,fn)|0,rr=rr+Math.imul(qr,bn)|0,Jt=Jt+Math.imul(Nr,_i)|0,Yt=Yt+Math.imul(Nr,yn)|0,Yt=Yt+Math.imul(Qr,_i)|0,rr=rr+Math.imul(Qr,yn)|0,Jt=Jt+Math.imul(zr,Jn)|0,Yt=Yt+Math.imul(zr,so)|0,Yt=Yt+Math.imul(Br,Jn)|0,rr=rr+Math.imul(Br,so)|0,Jt=Jt+Math.imul(_r,An)|0,Yt=Yt+Math.imul(_r,hn)|0,Yt=Yt+Math.imul(Er,An)|0,rr=rr+Math.imul(Er,hn)|0,Jt=Jt+Math.imul(Tr,In)|0,Yt=Yt+Math.imul(Tr,Ln)|0,Yt=Yt+Math.imul(Ir,In)|0,rr=rr+Math.imul(Ir,Ln)|0;var ro=(lr+Jt|0)+((Yt&8191)<<13)|0;lr=(rr+(Yt>>>13)|0)+(ro>>>26)|0,ro&=67108863,Jt=Math.imul(En,rn),Yt=Math.imul(En,Cn),Yt=Yt+Math.imul(Jr,rn)|0,rr=Math.imul(Jr,Cn),Jt=Jt+Math.imul(ln,fn)|0,Yt=Yt+Math.imul(ln,bn)|0,Yt=Yt+Math.imul(mn,fn)|0,rr=rr+Math.imul(mn,bn)|0,Jt=Jt+Math.imul(un,_i)|0,Yt=Yt+Math.imul(un,yn)|0,Yt=Yt+Math.imul(qr,_i)|0,rr=rr+Math.imul(qr,yn)|0,Jt=Jt+Math.imul(Nr,Jn)|0,Yt=Yt+Math.imul(Nr,so)|0,Yt=Yt+Math.imul(Qr,Jn)|0,rr=rr+Math.imul(Qr,so)|0,Jt=Jt+Math.imul(zr,An)|0,Yt=Yt+Math.imul(zr,hn)|0,Yt=Yt+Math.imul(Br,An)|0,rr=rr+Math.imul(Br,hn)|0,Jt=Jt+Math.imul(_r,In)|0,Yt=Yt+Math.imul(_r,Ln)|0,Yt=Yt+Math.imul(Er,In)|0,rr=rr+Math.imul(Er,Ln)|0;var io=(lr+Jt|0)+((Yt&8191)<<13)|0;lr=(rr+(Yt>>>13)|0)+(io>>>26)|0,io&=67108863,Jt=Math.imul(En,fn),Yt=Math.imul(En,bn),Yt=Yt+Math.imul(Jr,fn)|0,rr=Math.imul(Jr,bn),Jt=Jt+Math.imul(ln,_i)|0,Yt=Yt+Math.imul(ln,yn)|0,Yt=Yt+Math.imul(mn,_i)|0,rr=rr+Math.imul(mn,yn)|0,Jt=Jt+Math.imul(un,Jn)|0,Yt=Yt+Math.imul(un,so)|0,Yt=Yt+Math.imul(qr,Jn)|0,rr=rr+Math.imul(qr,so)|0,Jt=Jt+Math.imul(Nr,An)|0,Yt=Yt+Math.imul(Nr,hn)|0,Yt=Yt+Math.imul(Qr,An)|0,rr=rr+Math.imul(Qr,hn)|0,Jt=Jt+Math.imul(zr,In)|0,Yt=Yt+Math.imul(zr,Ln)|0,Yt=Yt+Math.imul(Br,In)|0,rr=rr+Math.imul(Br,Ln)|0;var eo=(lr+Jt|0)+((Yt&8191)<<13)|0;lr=(rr+(Yt>>>13)|0)+(eo>>>26)|0,eo&=67108863,Jt=Math.imul(En,_i),Yt=Math.imul(En,yn),Yt=Yt+Math.imul(Jr,_i)|0,rr=Math.imul(Jr,yn),Jt=Jt+Math.imul(ln,Jn)|0,Yt=Yt+Math.imul(ln,so)|0,Yt=Yt+Math.imul(mn,Jn)|0,rr=rr+Math.imul(mn,so)|0,Jt=Jt+Math.imul(un,An)|0,Yt=Yt+Math.imul(un,hn)|0,Yt=Yt+Math.imul(qr,An)|0,rr=rr+Math.imul(qr,hn)|0,Jt=Jt+Math.imul(Nr,In)|0,Yt=Yt+Math.imul(Nr,Ln)|0,Yt=Yt+Math.imul(Qr,In)|0,rr=rr+Math.imul(Qr,Ln)|0;var Gn=(lr+Jt|0)+((Yt&8191)<<13)|0;lr=(rr+(Yt>>>13)|0)+(Gn>>>26)|0,Gn&=67108863,Jt=Math.imul(En,Jn),Yt=Math.imul(En,so),Yt=Yt+Math.imul(Jr,Jn)|0,rr=Math.imul(Jr,so),Jt=Jt+Math.imul(ln,An)|0,Yt=Yt+Math.imul(ln,hn)|0,Yt=Yt+Math.imul(mn,An)|0,rr=rr+Math.imul(mn,hn)|0,Jt=Jt+Math.imul(un,In)|0,Yt=Yt+Math.imul(un,Ln)|0,Yt=Yt+Math.imul(qr,In)|0,rr=rr+Math.imul(qr,Ln)|0;var ho=(lr+Jt|0)+((Yt&8191)<<13)|0;lr=(rr+(Yt>>>13)|0)+(ho>>>26)|0,ho&=67108863,Jt=Math.imul(En,An),Yt=Math.imul(En,hn),Yt=Yt+Math.imul(Jr,An)|0,rr=Math.imul(Jr,hn),Jt=Jt+Math.imul(ln,In)|0,Yt=Yt+Math.imul(ln,Ln)|0,Yt=Yt+Math.imul(mn,In)|0,rr=rr+Math.imul(mn,Ln)|0;var go=(lr+Jt|0)+((Yt&8191)<<13)|0;lr=(rr+(Yt>>>13)|0)+(go>>>26)|0,go&=67108863,Jt=Math.imul(En,In),Yt=Math.imul(En,Ln),Yt=Yt+Math.imul(Jr,In)|0,rr=Math.imul(Jr,Ln);var _o=(lr+Jt|0)+((Yt&8191)<<13)|0;return lr=(rr+(Yt>>>13)|0)+(_o>>>26)|0,_o&=67108863,er[0]=Xn,er[1]=Wn,er[2]=Vn,er[3]=ga,er[4]=fo,er[5]=qn,er[6]=po,er[7]=Yr,er[8]=Wr,er[9]=$n,er[10]=Bn,er[11]=xa,er[12]=ro,er[13]=io,er[14]=eo,er[15]=Gn,er[16]=ho,er[17]=go,er[18]=_o,lr!==0&&(er[19]=lr,Vt.length++),Vt};Math.imul||(Mt=_t);function Tt($t,Ut,Ht){Ht.negative=Ut.negative^$t.negative,Ht.length=$t.length+Ut.length;for(var Vt=0,Xt=0,qt=0;qt>>26)|0,Xt+=er>>>26,er&=67108863}Ht.words[qt]=lr,Vt=er,er=Xt}return Vt!==0?Ht.words[qt]=Vt:Ht.length--,Ht.strip()}function kt($t,Ut,Ht){var Vt=new wt;return Vt.mulp($t,Ut,Ht)}ot.prototype.mulTo=function(Ut,Ht){var Vt,Xt=this.length+Ut.length;return this.length===10&&Ut.length===10?Vt=Mt(this,Ut,Ht):Xt<63?Vt=_t(this,Ut,Ht):Xt<1024?Vt=Tt(this,Ut,Ht):Vt=kt(this,Ut,Ht),Vt};function wt($t,Ut){this.x=$t,this.y=Ut}wt.prototype.makeRBT=function(Ut){for(var Ht=new Array(Ut),Vt=ot.prototype._countBits(Ut)-1,Xt=0;Xt>=1;return Xt},wt.prototype.permute=function(Ut,Ht,Vt,Xt,qt,er){for(var lr=0;lr>>1)qt++;return 1<>>13,Vt[2*er+1]=qt&8191,qt=qt>>>13;for(er=2*Ht;er>=26,Ht+=Xt/67108864|0,Ht+=qt>>>26,this.words[Vt]=qt&67108863}return Ht!==0&&(this.words[Vt]=Ht,this.length++),this},ot.prototype.muln=function(Ut){return this.clone().imuln(Ut)},ot.prototype.sqr=function(){return this.mul(this)},ot.prototype.isqr=function(){return this.imul(this.clone())},ot.prototype.pow=function(Ut){var Ht=St(Ut);if(Ht.length===0)return new ot(1);for(var Vt=this,Xt=0;Xt=0);var Ht=Ut%26,Vt=(Ut-Ht)/26,Xt=67108863>>>26-Ht<<26-Ht,qt;if(Ht!==0){var er=0;for(qt=0;qt>>26-Ht}er&&(this.words[qt]=er,this.length++)}if(Vt!==0){for(qt=this.length-1;qt>=0;qt--)this.words[qt+Vt]=this.words[qt];for(qt=0;qt=0);var Xt;Ht?Xt=(Ht-Ht%26)/26:Xt=0;var qt=Ut%26,er=Math.min((Ut-qt)/26,this.length),lr=67108863^67108863>>>qt<er)for(this.length-=er,Yt=0;Yt=0&&(rr!==0||Yt>=Xt);Yt--){var jt=this.words[Yt]|0;this.words[Yt]=rr<<26-qt|jt>>>qt,rr=jt&lr}return Jt&&rr!==0&&(Jt.words[Jt.length++]=rr),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},ot.prototype.ishrn=function(Ut,Ht,Vt){return tt(this.negative===0),this.iushrn(Ut,Ht,Vt)},ot.prototype.shln=function(Ut){return this.clone().ishln(Ut)},ot.prototype.ushln=function(Ut){return this.clone().iushln(Ut)},ot.prototype.shrn=function(Ut){return this.clone().ishrn(Ut)},ot.prototype.ushrn=function(Ut){return this.clone().iushrn(Ut)},ot.prototype.testn=function(Ut){tt(typeof Ut=="number"&&Ut>=0);var Ht=Ut%26,Vt=(Ut-Ht)/26,Xt=1<=0);var Ht=Ut%26,Vt=(Ut-Ht)/26;if(tt(this.negative===0,"imaskn works only with positive numbers"),this.length<=Vt)return this;if(Ht!==0&&Vt++,this.length=Math.min(Vt,this.length),Ht!==0){var Xt=67108863^67108863>>>Ht<=67108864;Ht++)this.words[Ht]-=67108864,Ht===this.length-1?this.words[Ht+1]=1:this.words[Ht+1]++;return this.length=Math.max(this.length,Ht+1),this},ot.prototype.isubn=function(Ut){if(tt(typeof Ut=="number"),tt(Ut<67108864),Ut<0)return this.iaddn(-Ut);if(this.negative!==0)return this.negative=0,this.iaddn(Ut),this.negative=1,this;if(this.words[0]-=Ut,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Ht=0;Ht>26)-(Jt/67108864|0),this.words[qt+Vt]=er&67108863}for(;qt>26,this.words[qt+Vt]=er&67108863;if(lr===0)return this.strip();for(tt(lr===-1),lr=0,qt=0;qt>26,this.words[qt]=er&67108863;return this.negative=1,this.strip()},ot.prototype._wordDiv=function(Ut,Ht){var Vt=this.length-Ut.length,Xt=this.clone(),qt=Ut,er=qt.words[qt.length-1]|0,lr=this._countBits(er);Vt=26-lr,Vt!==0&&(qt=qt.ushln(Vt),Xt.iushln(Vt),er=qt.words[qt.length-1]|0);var Jt=Xt.length-qt.length,Yt;if(Ht!=="mod"){Yt=new ot(null),Yt.length=Jt+1,Yt.words=new Array(Yt.length);for(var rr=0;rr=0;ar--){var sr=(Xt.words[qt.length+ar]|0)*67108864+(Xt.words[qt.length+ar-1]|0);for(sr=Math.min(sr/er|0,67108863),Xt._ishlnsubmul(qt,sr,ar);Xt.negative!==0;)sr--,Xt.negative=0,Xt._ishlnsubmul(qt,1,ar),Xt.isZero()||(Xt.negative^=1);Yt&&(Yt.words[ar]=sr)}return Yt&&Yt.strip(),Xt.strip(),Ht!=="div"&&Vt!==0&&Xt.iushrn(Vt),{div:Yt||null,mod:Xt}},ot.prototype.divmod=function(Ut,Ht,Vt){if(tt(!Ut.isZero()),this.isZero())return{div:new ot(0),mod:new ot(0)};var Xt,qt,er;return this.negative!==0&&Ut.negative===0?(er=this.neg().divmod(Ut,Ht),Ht!=="mod"&&(Xt=er.div.neg()),Ht!=="div"&&(qt=er.mod.neg(),Vt&&qt.negative!==0&&qt.iadd(Ut)),{div:Xt,mod:qt}):this.negative===0&&Ut.negative!==0?(er=this.divmod(Ut.neg(),Ht),Ht!=="mod"&&(Xt=er.div.neg()),{div:Xt,mod:er.mod}):this.negative&Ut.negative?(er=this.neg().divmod(Ut.neg(),Ht),Ht!=="div"&&(qt=er.mod.neg(),Vt&&qt.negative!==0&&qt.isub(Ut)),{div:er.div,mod:qt}):Ut.length>this.length||this.cmp(Ut)<0?{div:new ot(0),mod:this}:Ut.length===1?Ht==="div"?{div:this.divn(Ut.words[0]),mod:null}:Ht==="mod"?{div:null,mod:new ot(this.modn(Ut.words[0]))}:{div:this.divn(Ut.words[0]),mod:new ot(this.modn(Ut.words[0]))}:this._wordDiv(Ut,Ht)},ot.prototype.div=function(Ut){return this.divmod(Ut,"div",!1).div},ot.prototype.mod=function(Ut){return this.divmod(Ut,"mod",!1).mod},ot.prototype.umod=function(Ut){return this.divmod(Ut,"mod",!0).mod},ot.prototype.divRound=function(Ut){var Ht=this.divmod(Ut);if(Ht.mod.isZero())return Ht.div;var Vt=Ht.div.negative!==0?Ht.mod.isub(Ut):Ht.mod,Xt=Ut.ushrn(1),qt=Ut.andln(1),er=Vt.cmp(Xt);return er<0||qt===1&&er===0?Ht.div:Ht.div.negative!==0?Ht.div.isubn(1):Ht.div.iaddn(1)},ot.prototype.modn=function(Ut){tt(Ut<=67108863);for(var Ht=(1<<26)%Ut,Vt=0,Xt=this.length-1;Xt>=0;Xt--)Vt=(Ht*Vt+(this.words[Xt]|0))%Ut;return Vt},ot.prototype.idivn=function(Ut){tt(Ut<=67108863);for(var Ht=0,Vt=this.length-1;Vt>=0;Vt--){var Xt=(this.words[Vt]|0)+Ht*67108864;this.words[Vt]=Xt/Ut|0,Ht=Xt%Ut}return this.strip()},ot.prototype.divn=function(Ut){return this.clone().idivn(Ut)},ot.prototype.egcd=function(Ut){tt(Ut.negative===0),tt(!Ut.isZero());var Ht=this,Vt=Ut.clone();Ht.negative!==0?Ht=Ht.umod(Ut):Ht=Ht.clone();for(var Xt=new ot(1),qt=new ot(0),er=new ot(0),lr=new ot(1),Jt=0;Ht.isEven()&&Vt.isEven();)Ht.iushrn(1),Vt.iushrn(1),++Jt;for(var Yt=Vt.clone(),rr=Ht.clone();!Ht.isZero();){for(var jt=0,ar=1;!(Ht.words[0]&ar)&&jt<26;++jt,ar<<=1);if(jt>0)for(Ht.iushrn(jt);jt-- >0;)(Xt.isOdd()||qt.isOdd())&&(Xt.iadd(Yt),qt.isub(rr)),Xt.iushrn(1),qt.iushrn(1);for(var sr=0,Zt=1;!(Vt.words[0]&Zt)&&sr<26;++sr,Zt<<=1);if(sr>0)for(Vt.iushrn(sr);sr-- >0;)(er.isOdd()||lr.isOdd())&&(er.iadd(Yt),lr.isub(rr)),er.iushrn(1),lr.iushrn(1);Ht.cmp(Vt)>=0?(Ht.isub(Vt),Xt.isub(er),qt.isub(lr)):(Vt.isub(Ht),er.isub(Xt),lr.isub(qt))}return{a:er,b:lr,gcd:Vt.iushln(Jt)}},ot.prototype._invmp=function(Ut){tt(Ut.negative===0),tt(!Ut.isZero());var Ht=this,Vt=Ut.clone();Ht.negative!==0?Ht=Ht.umod(Ut):Ht=Ht.clone();for(var Xt=new ot(1),qt=new ot(0),er=Vt.clone();Ht.cmpn(1)>0&&Vt.cmpn(1)>0;){for(var lr=0,Jt=1;!(Ht.words[0]&Jt)&&lr<26;++lr,Jt<<=1);if(lr>0)for(Ht.iushrn(lr);lr-- >0;)Xt.isOdd()&&Xt.iadd(er),Xt.iushrn(1);for(var Yt=0,rr=1;!(Vt.words[0]&rr)&&Yt<26;++Yt,rr<<=1);if(Yt>0)for(Vt.iushrn(Yt);Yt-- >0;)qt.isOdd()&&qt.iadd(er),qt.iushrn(1);Ht.cmp(Vt)>=0?(Ht.isub(Vt),Xt.isub(qt)):(Vt.isub(Ht),qt.isub(Xt))}var jt;return Ht.cmpn(1)===0?jt=Xt:jt=qt,jt.cmpn(0)<0&&jt.iadd(Ut),jt},ot.prototype.gcd=function(Ut){if(this.isZero())return Ut.abs();if(Ut.isZero())return this.abs();var Ht=this.clone(),Vt=Ut.clone();Ht.negative=0,Vt.negative=0;for(var Xt=0;Ht.isEven()&&Vt.isEven();Xt++)Ht.iushrn(1),Vt.iushrn(1);do{for(;Ht.isEven();)Ht.iushrn(1);for(;Vt.isEven();)Vt.iushrn(1);var qt=Ht.cmp(Vt);if(qt<0){var er=Ht;Ht=Vt,Vt=er}else if(qt===0||Vt.cmpn(1)===0)break;Ht.isub(Vt)}while(!0);return Vt.iushln(Xt)},ot.prototype.invm=function(Ut){return this.egcd(Ut).a.umod(Ut)},ot.prototype.isEven=function(){return(this.words[0]&1)===0},ot.prototype.isOdd=function(){return(this.words[0]&1)===1},ot.prototype.andln=function(Ut){return this.words[0]&Ut},ot.prototype.bincn=function(Ut){tt(typeof Ut=="number");var Ht=Ut%26,Vt=(Ut-Ht)/26,Xt=1<>>26,lr&=67108863,this.words[er]=lr}return qt!==0&&(this.words[er]=qt,this.length++),this},ot.prototype.isZero=function(){return this.length===1&&this.words[0]===0},ot.prototype.cmpn=function(Ut){var Ht=Ut<0;if(this.negative!==0&&!Ht)return-1;if(this.negative===0&&Ht)return 1;this.strip();var Vt;if(this.length>1)Vt=1;else{Ht&&(Ut=-Ut),tt(Ut<=67108863,"Number is too big");var Xt=this.words[0]|0;Vt=Xt===Ut?0:XtUt.length)return 1;if(this.length=0;Vt--){var Xt=this.words[Vt]|0,qt=Ut.words[Vt]|0;if(Xt!==qt){Xtqt&&(Ht=1);break}}return Ht},ot.prototype.gtn=function(Ut){return this.cmpn(Ut)===1},ot.prototype.gt=function(Ut){return this.cmp(Ut)===1},ot.prototype.gten=function(Ut){return this.cmpn(Ut)>=0},ot.prototype.gte=function(Ut){return this.cmp(Ut)>=0},ot.prototype.ltn=function(Ut){return this.cmpn(Ut)===-1},ot.prototype.lt=function(Ut){return this.cmp(Ut)===-1},ot.prototype.lten=function(Ut){return this.cmpn(Ut)<=0},ot.prototype.lte=function(Ut){return this.cmp(Ut)<=0},ot.prototype.eqn=function(Ut){return this.cmpn(Ut)===0},ot.prototype.eq=function(Ut){return this.cmp(Ut)===0},ot.red=function(Ut){return new Dt(Ut)},ot.prototype.toRed=function(Ut){return tt(!this.red,"Already a number in reduction context"),tt(this.negative===0,"red works only with positives"),Ut.convertTo(this)._forceRed(Ut)},ot.prototype.fromRed=function(){return tt(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},ot.prototype._forceRed=function(Ut){return this.red=Ut,this},ot.prototype.forceRed=function(Ut){return tt(!this.red,"Already a number in reduction context"),this._forceRed(Ut)},ot.prototype.redAdd=function(Ut){return tt(this.red,"redAdd works only with red numbers"),this.red.add(this,Ut)},ot.prototype.redIAdd=function(Ut){return tt(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Ut)},ot.prototype.redSub=function(Ut){return tt(this.red,"redSub works only with red numbers"),this.red.sub(this,Ut)},ot.prototype.redISub=function(Ut){return tt(this.red,"redISub works only with red numbers"),this.red.isub(this,Ut)},ot.prototype.redShl=function(Ut){return tt(this.red,"redShl works only with red numbers"),this.red.shl(this,Ut)},ot.prototype.redMul=function(Ut){return tt(this.red,"redMul works only with red numbers"),this.red._verify2(this,Ut),this.red.mul(this,Ut)},ot.prototype.redIMul=function(Ut){return tt(this.red,"redMul works only with red numbers"),this.red._verify2(this,Ut),this.red.imul(this,Ut)},ot.prototype.redSqr=function(){return tt(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},ot.prototype.redISqr=function(){return tt(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},ot.prototype.redSqrt=function(){return tt(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},ot.prototype.redInvm=function(){return tt(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},ot.prototype.redNeg=function(){return tt(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},ot.prototype.redPow=function(Ut){return tt(this.red&&!Ut.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Ut)};var ct={k256:null,p224:null,p192:null,p25519:null};function It($t,Ut){this.name=$t,this.p=new ot(Ut,16),this.n=this.p.bitLength(),this.k=new ot(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}It.prototype._tmp=function(){var Ut=new ot(null);return Ut.words=new Array(Math.ceil(this.n/13)),Ut},It.prototype.ireduce=function(Ut){var Ht=Ut,Vt;do this.split(Ht,this.tmp),Ht=this.imulK(Ht),Ht=Ht.iadd(this.tmp),Vt=Ht.bitLength();while(Vt>this.n);var Xt=Vt0?Ht.isub(this.p):Ht.strip!==void 0?Ht.strip():Ht._strip(),Ht},It.prototype.split=function(Ut,Ht){Ut.iushrn(this.n,0,Ht)},It.prototype.imulK=function(Ut){return Ut.imul(this.k)};function At(){It.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}st(At,It),At.prototype.split=function(Ut,Ht){for(var Vt=4194303,Xt=Math.min(Ut.length,9),qt=0;qt>>22,er=lr}er>>>=22,Ut.words[qt-10]=er,er===0&&Ut.length>10?Ut.length-=10:Ut.length-=9},At.prototype.imulK=function(Ut){Ut.words[Ut.length]=0,Ut.words[Ut.length+1]=0,Ut.length+=2;for(var Ht=0,Vt=0;Vt>>=26,Ut.words[Vt]=qt,Ht=Xt}return Ht!==0&&(Ut.words[Ut.length++]=Ht),Ut},ot._prime=function(Ut){if(ct[Ut])return ct[Ut];var Ht;if(Ut==="k256")Ht=new At;else if(Ut==="p224")Ht=new Ot;else if(Ut==="p192")Ht=new Pt;else if(Ut==="p25519")Ht=new zt;else throw new Error("Unknown prime "+Ut);return ct[Ut]=Ht,Ht};function Dt($t){if(typeof $t=="string"){var Ut=ot._prime($t);this.m=Ut.p,this.prime=Ut}else tt($t.gtn(1),"modulus must be greater than 1"),this.m=$t,this.prime=null}Dt.prototype._verify1=function(Ut){tt(Ut.negative===0,"red works only with positives"),tt(Ut.red,"red works only with red numbers")},Dt.prototype._verify2=function(Ut,Ht){tt((Ut.negative|Ht.negative)===0,"red works only with positives"),tt(Ut.red&&Ut.red===Ht.red,"red works only with red numbers")},Dt.prototype.imod=function(Ut){return this.prime?this.prime.ireduce(Ut)._forceRed(this):Ut.umod(this.m)._forceRed(this)},Dt.prototype.neg=function(Ut){return Ut.isZero()?Ut.clone():this.m.sub(Ut)._forceRed(this)},Dt.prototype.add=function(Ut,Ht){this._verify2(Ut,Ht);var Vt=Ut.add(Ht);return Vt.cmp(this.m)>=0&&Vt.isub(this.m),Vt._forceRed(this)},Dt.prototype.iadd=function(Ut,Ht){this._verify2(Ut,Ht);var Vt=Ut.iadd(Ht);return Vt.cmp(this.m)>=0&&Vt.isub(this.m),Vt},Dt.prototype.sub=function(Ut,Ht){this._verify2(Ut,Ht);var Vt=Ut.sub(Ht);return Vt.cmpn(0)<0&&Vt.iadd(this.m),Vt._forceRed(this)},Dt.prototype.isub=function(Ut,Ht){this._verify2(Ut,Ht);var Vt=Ut.isub(Ht);return Vt.cmpn(0)<0&&Vt.iadd(this.m),Vt},Dt.prototype.shl=function(Ut,Ht){return this._verify1(Ut),this.imod(Ut.ushln(Ht))},Dt.prototype.imul=function(Ut,Ht){return this._verify2(Ut,Ht),this.imod(Ut.imul(Ht))},Dt.prototype.mul=function(Ut,Ht){return this._verify2(Ut,Ht),this.imod(Ut.mul(Ht))},Dt.prototype.isqr=function(Ut){return this.imul(Ut,Ut.clone())},Dt.prototype.sqr=function(Ut){return this.mul(Ut,Ut)},Dt.prototype.sqrt=function(Ut){if(Ut.isZero())return Ut.clone();var Ht=this.m.andln(3);if(tt(Ht%2===1),Ht===3){var Vt=this.m.add(new ot(1)).iushrn(2);return this.pow(Ut,Vt)}for(var Xt=this.m.subn(1),qt=0;!Xt.isZero()&&Xt.andln(1)===0;)qt++,Xt.iushrn(1);tt(!Xt.isZero());var er=new ot(1).toRed(this),lr=er.redNeg(),Jt=this.m.subn(1).iushrn(1),Yt=this.m.bitLength();for(Yt=new ot(2*Yt*Yt).toRed(this);this.pow(Yt,Jt).cmp(lr)!==0;)Yt.redIAdd(lr);for(var rr=this.pow(Yt,Xt),jt=this.pow(Ut,Xt.addn(1).iushrn(1)),ar=this.pow(Ut,Xt),sr=qt;ar.cmp(er)!==0;){for(var Zt=ar,Kt=0;Zt.cmp(er)!==0;Kt++)Zt=Zt.redSqr();tt(Kt=0;qt--){for(var rr=Ht.words[qt],jt=Yt-1;jt>=0;jt--){var ar=rr>>jt&1;if(er!==Xt[0]&&(er=this.sqr(er)),ar===0&&lr===0){Jt=0;continue}lr<<=1,lr|=ar,Jt++,!(Jt!==Vt&&(qt!==0||jt!==0))&&(er=this.mul(er,Xt[lr]),Jt=0,lr=0)}Yt=26}return er},Dt.prototype.convertTo=function(Ut){var Ht=Ut.umod(this.m);return Ht===Ut?Ht.clone():Ht},Dt.prototype.convertFrom=function(Ut){var Ht=Ut.clone();return Ht.red=null,Ht},ot.mont=function(Ut){return new Nt(Ut)};function Nt($t){Dt.call(this,$t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new ot(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)}st(Nt,Dt),Nt.prototype.convertTo=function(Ut){return this.imod(Ut.ushln(this.shift))},Nt.prototype.convertFrom=function(Ut){var Ht=this.imod(Ut.mul(this.rinv));return Ht.red=null,Ht},Nt.prototype.imul=function(Ut,Ht){if(Ut.isZero()||Ht.isZero())return Ut.words[0]=0,Ut.length=1,Ut;var Vt=Ut.imul(Ht),Xt=Vt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),qt=Vt.isub(Xt).iushrn(this.shift),er=qt;return qt.cmp(this.m)>=0?er=qt.isub(this.m):qt.cmpn(0)<0&&(er=qt.iadd(this.m)),er._forceRed(this)},Nt.prototype.mul=function(Ut,Ht){if(Ut.isZero()||Ht.isZero())return new ot(0)._forceRed(this);var Vt=Ut.mul(Ht),Xt=Vt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),qt=Vt.isub(Xt).iushrn(this.shift),er=qt;return qt.cmp(this.m)>=0?er=qt.isub(this.m):qt.cmpn(0)<0&&(er=qt.iadd(this.m)),er._forceRed(this)},Nt.prototype.invm=function(Ut){var Ht=this.imod(Ut._invmp(this.m).mul(this.r2));return Ht._forceRed(this)}}(ut,this)},6204:function(ut){ut.exports=ht;function ht(j){var _,rt,tt,st=j.length,ot=0;for(_=0;_>>1;if(!(wt<=0)){var ct,It=_.mallocDouble(2*wt*Tt),At=_.mallocInt32(Tt);if(Tt=ot(yt,wt,It,At),Tt>0){if(wt===1&&Mt)rt.init(Tt),ct=rt.sweepComplete(wt,_t,0,Tt,It,At,0,Tt,It,At);else{var Ot=_.mallocDouble(2*wt*kt),Pt=_.mallocInt32(kt);kt=ot(St,wt,Ot,Pt),kt>0&&(rt.init(Tt+kt),wt===1?ct=rt.sweepBipartite(wt,_t,0,Tt,It,At,0,kt,Ot,Pt):ct=tt(wt,_t,Mt,Tt,It,At,kt,Ot,Pt),_.free(Ot),_.free(Pt))}_.free(It),_.free(At)}return ct}}}var vt;function dt(yt,St){vt.push([yt,St])}function bt(yt){return vt=[],nt(yt,yt,dt,!0),vt}function ft(yt,St){return vt=[],nt(yt,St,dt,!1),vt}function at(yt,St,_t){switch(arguments.length){case 1:return bt(yt);case 2:return typeof St=="function"?nt(yt,yt,St,!0):ft(yt,St);case 3:return nt(yt,St,_t,!1);default:throw new Error("box-intersect: Invalid arguments")}}},2455:function(ut,ht){function j(){function tt(nt,vt,dt,bt,ft,at,yt,St,_t,Mt,Tt){for(var kt=2*nt,wt=bt,ct=kt*bt;wt_t-St?tt(nt,vt,dt,bt,ft,at,yt,St,_t,Mt,Tt):st(nt,vt,dt,bt,ft,at,yt,St,_t,Mt,Tt)}return ot}function _(){function tt(dt,bt,ft,at,yt,St,_t,Mt,Tt,kt,wt){for(var ct=2*dt,It=at,At=ct*at;Itkt-Tt?at?tt(dt,bt,ft,yt,St,_t,Mt,Tt,kt,wt,ct):st(dt,bt,ft,yt,St,_t,Mt,Tt,kt,wt,ct):at?ot(dt,bt,ft,yt,St,_t,Mt,Tt,kt,wt,ct):nt(dt,bt,ft,yt,St,_t,Mt,Tt,kt,wt,ct)}return vt}function rt(tt){return tt?j():_()}ht.partial=rt(!1),ht.full=rt(!0)},7150:function(ut,ht,j){ut.exports=$t;var _=j(1888),rt=j(8828),tt=j(2455),st=tt.partial,ot=tt.full,nt=j(855),vt=j(3545),dt=j(8105),bt=128,ft=1<<22,at=1<<22,yt=dt("!(lo>=p0)&&!(p1>=hi)"),St=dt("lo===p0"),_t=dt("lo0;){rr-=1;var sr=rr*wt,Zt=At[sr],Kt=At[sr+1],or=At[sr+2],tr=At[sr+3],cr=At[sr+4],hr=At[sr+5],br=rr*ct,Tr=Ot[br],Ir=Ot[br+1],Ar=hr&1,_r=!!(hr&16),Er=qt,Rr=er,zr=Jt,Br=Yt;if(Ar&&(Er=Jt,Rr=Yt,zr=qt,Br=er),!(hr&2&&(or=_t(Ut,Zt,Kt,or,Er,Rr,Ir),Kt>=or))&&!(hr&4&&(Kt=Mt(Ut,Zt,Kt,or,Er,Rr,Tr),Kt>=or))){var kr=or-Kt,Nr=cr-tr;if(_r){if(Ut*kr*(kr+Nr)dt&&ft[kt+vt]>Mt;--Tt,kt-=yt){for(var wt=kt,ct=kt+yt,It=0;It>>1,Mt=2*nt,Tt=_t,kt=ft[Mt*_t+vt];yt=Ot?(Tt=At,kt=Ot):It>=zt?(Tt=ct,kt=It):(Tt=Pt,kt=zt):Ot>=zt?(Tt=At,kt=Ot):zt>=It?(Tt=ct,kt=It):(Tt=Pt,kt=zt);for(var $t=Mt*(St-1),Ut=Mt*Tt,Dt=0;Dt=p0)&&!(p1>=hi)":vt};function j(dt){return ht[dt]}function _(dt,bt,ft,at,yt,St,_t){for(var Mt=2*dt,Tt=Mt*ft,kt=Tt,wt=ft,ct=bt,It=dt+bt,At=ft;at>At;++At,Tt+=Mt){var Ot=yt[Tt+ct];if(Ot===_t)if(wt===At)wt+=1,kt+=Mt;else{for(var Pt=0;Mt>Pt;++Pt){var zt=yt[Tt+Pt];yt[Tt+Pt]=yt[kt],yt[kt++]=zt}var Dt=St[At];St[At]=St[wt],St[wt++]=Dt}}return wt}function rt(dt,bt,ft,at,yt,St,_t){for(var Mt=2*dt,Tt=Mt*ft,kt=Tt,wt=ft,ct=bt,It=dt+bt,At=ft;at>At;++At,Tt+=Mt){var Ot=yt[Tt+ct];if(Ot<_t)if(wt===At)wt+=1,kt+=Mt;else{for(var Pt=0;Mt>Pt;++Pt){var zt=yt[Tt+Pt];yt[Tt+Pt]=yt[kt],yt[kt++]=zt}var Dt=St[At];St[At]=St[wt],St[wt++]=Dt}}return wt}function tt(dt,bt,ft,at,yt,St,_t){for(var Mt=2*dt,Tt=Mt*ft,kt=Tt,wt=ft,ct=bt,It=dt+bt,At=ft;at>At;++At,Tt+=Mt){var Ot=yt[Tt+It];if(Ot<=_t)if(wt===At)wt+=1,kt+=Mt;else{for(var Pt=0;Mt>Pt;++Pt){var zt=yt[Tt+Pt];yt[Tt+Pt]=yt[kt],yt[kt++]=zt}var Dt=St[At];St[At]=St[wt],St[wt++]=Dt}}return wt}function st(dt,bt,ft,at,yt,St,_t){for(var Mt=2*dt,Tt=Mt*ft,kt=Tt,wt=ft,ct=bt,It=dt+bt,At=ft;at>At;++At,Tt+=Mt){var Ot=yt[Tt+It];if(Ot<=_t)if(wt===At)wt+=1,kt+=Mt;else{for(var Pt=0;Mt>Pt;++Pt){var zt=yt[Tt+Pt];yt[Tt+Pt]=yt[kt],yt[kt++]=zt}var Dt=St[At];St[At]=St[wt],St[wt++]=Dt}}return wt}function ot(dt,bt,ft,at,yt,St,_t){for(var Mt=2*dt,Tt=Mt*ft,kt=Tt,wt=ft,ct=bt,It=dt+bt,At=ft;at>At;++At,Tt+=Mt){var Ot=yt[Tt+ct],Pt=yt[Tt+It];if(Ot<=_t&&_t<=Pt)if(wt===At)wt+=1,kt+=Mt;else{for(var zt=0;Mt>zt;++zt){var Dt=yt[Tt+zt];yt[Tt+zt]=yt[kt],yt[kt++]=Dt}var Nt=St[At];St[At]=St[wt],St[wt++]=Nt}}return wt}function nt(dt,bt,ft,at,yt,St,_t){for(var Mt=2*dt,Tt=Mt*ft,kt=Tt,wt=ft,ct=bt,It=dt+bt,At=ft;at>At;++At,Tt+=Mt){var Ot=yt[Tt+ct],Pt=yt[Tt+It];if(Ot<_t&&_t<=Pt)if(wt===At)wt+=1,kt+=Mt;else{for(var zt=0;Mt>zt;++zt){var Dt=yt[Tt+zt];yt[Tt+zt]=yt[kt],yt[kt++]=Dt}var Nt=St[At];St[At]=St[wt],St[wt++]=Nt}}return wt}function vt(dt,bt,ft,at,yt,St,_t,Mt){for(var Tt=2*dt,kt=Tt*ft,wt=kt,ct=ft,It=bt,At=dt+bt,Ot=ft;at>Ot;++Ot,kt+=Tt){var Pt=yt[kt+It],zt=yt[kt+At];if(!(Pt>=_t)&&!(Mt>=zt))if(ct===Ot)ct+=1,wt+=Tt;else{for(var Dt=0;Tt>Dt;++Dt){var Nt=yt[kt+Dt];yt[kt+Dt]=yt[wt],yt[wt++]=Nt}var $t=St[Ot];St[Ot]=St[ct],St[ct++]=$t}}return ct}},1811:function(ut){ut.exports=j;var ht=32;function j(bt,ft){ft<=4*ht?_(0,ft-1,bt):dt(0,ft-1,bt)}function _(bt,ft,at){for(var yt=2*(bt+1),St=bt+1;St<=ft;++St){for(var _t=at[yt++],Mt=at[yt++],Tt=St,kt=yt-2;Tt-- >bt;){var wt=at[kt-2],ct=at[kt-1];if(wt<_t)break;if(wt===_t&&ctat[ft+1]:!0}function vt(bt,ft,at,yt){bt*=2;var St=yt[bt];return St>1,Tt=Mt-yt,kt=Mt+yt,wt=St,ct=Tt,It=Mt,At=kt,Ot=_t,Pt=bt+1,zt=ft-1,Dt=0;nt(wt,ct,at)&&(Dt=wt,wt=ct,ct=Dt),nt(At,Ot,at)&&(Dt=At,At=Ot,Ot=Dt),nt(wt,It,at)&&(Dt=wt,wt=It,It=Dt),nt(ct,It,at)&&(Dt=ct,ct=It,It=Dt),nt(wt,At,at)&&(Dt=wt,wt=At,At=Dt),nt(It,At,at)&&(Dt=It,It=At,At=Dt),nt(ct,Ot,at)&&(Dt=ct,ct=Ot,Ot=Dt),nt(ct,It,at)&&(Dt=ct,ct=It,It=Dt),nt(At,Ot,at)&&(Dt=At,At=Ot,Ot=Dt);for(var Nt=at[2*ct],$t=at[2*ct+1],Ut=at[2*At],Ht=at[2*At+1],Vt=2*wt,Xt=2*It,qt=2*Ot,er=2*St,lr=2*Mt,Jt=2*_t,Yt=0;Yt<2;++Yt){var rr=at[Vt+Yt],jt=at[Xt+Yt],ar=at[qt+Yt];at[er+Yt]=rr,at[lr+Yt]=jt,at[Jt+Yt]=ar}tt(Tt,bt,at),tt(kt,ft,at);for(var sr=Pt;sr<=zt;++sr)if(vt(sr,Nt,$t,at))sr!==Pt&&rt(sr,Pt,at),++Pt;else if(!vt(sr,Ut,Ht,at))for(;;)if(vt(zt,Ut,Ht,at)){vt(zt,Nt,$t,at)?(st(sr,Pt,zt,at),++Pt,--zt):(rt(sr,zt,at),--zt);break}else{if(--zt>>1;tt(yt,jt);for(var ar=0,sr=0,lr=0;lr=st)Zt=Zt-st|0,_t(dt,bt,sr--,Zt);else if(Zt>=0)_t(nt,vt,ar--,Zt);else if(Zt<=-st){Zt=-Zt-st|0;for(var Kt=0;Kt>>1;tt(yt,jt);for(var ar=0,sr=0,Zt=0,lr=0;lr>1===yt[2*lr+3]>>1&&(or=2,lr+=1),Kt<0){for(var tr=-(Kt>>1)-1,cr=0;cr>1)-1;or===0?_t(nt,vt,ar--,tr):or===1?_t(dt,bt,sr--,tr):or===2&&_t(ft,at,Zt--,tr)}}}function wt(It,At,Ot,Pt,zt,Dt,Nt,$t,Ut,Ht,Vt,Xt){var qt=0,er=2*It,lr=At,Jt=At+It,Yt=1,rr=1;Pt?rr=st:Yt=st;for(var jt=zt;jt>>1;tt(yt,Kt);for(var or=0,jt=0;jt=st?(cr=!Pt,ar-=st):(cr=!!Pt,ar-=1),cr)Mt(nt,vt,or++,ar);else{var hr=Xt[ar],br=er*ar,Tr=Vt[br+At+1],Ir=Vt[br+At+1+It];e:for(var Ar=0;Ar>>1;tt(yt,ar);for(var sr=0,Jt=0;Jt=st)nt[sr++]=Yt-st;else{Yt-=1;var Kt=Vt[Yt],or=qt*Yt,tr=Ht[or+At+1],cr=Ht[or+At+1+It];e:for(var hr=0;hr=0;--hr)if(nt[hr]===Yt){for(var Ar=hr+1;Ar0;){for(var yt=nt.pop(),bt=nt.pop(),St=-1,_t=-1,ft=dt[bt],Tt=1;Tt=0||(ot.flip(bt,yt),rt(st,ot,nt,St,bt,_t),rt(st,ot,nt,bt,_t,St),rt(st,ot,nt,_t,yt,St),rt(st,ot,nt,yt,St,_t))}}},5023:function(ut,ht,j){var _=j(2478);ut.exports=vt;function rt(dt,bt,ft,at,yt,St,_t){this.cells=dt,this.neighbor=bt,this.flags=at,this.constraint=ft,this.active=yt,this.next=St,this.boundary=_t}var tt=rt.prototype;function st(dt,bt){return dt[0]-bt[0]||dt[1]-bt[1]||dt[2]-bt[2]}tt.locate=function(){var dt=[0,0,0];return function(bt,ft,at){var yt=bt,St=ft,_t=at;return ft0||_t.length>0;){for(;St.length>0;){var ct=St.pop();if(Mt[ct]!==-yt){Mt[ct]=yt,Tt[ct];for(var It=0;It<3;++It){var At=wt[3*ct+It];At>=0&&Mt[At]===0&&(kt[3*ct+It]?_t.push(At):(St.push(At),Mt[At]=yt))}}}var Ot=_t;_t=St,St=Ot,_t.length=0,yt=-yt}var Pt=nt(Tt,Mt,bt);return ft?Pt.concat(at.boundary):Pt}},8902:function(ut,ht,j){var _=j(2478),rt=j(3250)[3],tt=0,st=1,ot=2;ut.exports=_t;function nt(Mt,Tt,kt,wt,ct){this.a=Mt,this.b=Tt,this.idx=kt,this.lowerIds=wt,this.upperIds=ct}function vt(Mt,Tt,kt,wt){this.a=Mt,this.b=Tt,this.type=kt,this.idx=wt}function dt(Mt,Tt){var kt=Mt.a[0]-Tt.a[0]||Mt.a[1]-Tt.a[1]||Mt.type-Tt.type;return kt||Mt.type!==tt&&(kt=rt(Mt.a,Mt.b,Tt.b),kt)?kt:Mt.idx-Tt.idx}function bt(Mt,Tt){return rt(Mt.a,Mt.b,Tt)}function ft(Mt,Tt,kt,wt,ct){for(var It=_.lt(Tt,wt,bt),At=_.gt(Tt,wt,bt),Ot=It;Ot1&&rt(kt[zt[Nt-2]],kt[zt[Nt-1]],wt)>0;)Mt.push([zt[Nt-1],zt[Nt-2],ct]),Nt-=1;zt.length=Nt,zt.push(ct);for(var Dt=Pt.upperIds,Nt=Dt.length;Nt>1&&rt(kt[Dt[Nt-2]],kt[Dt[Nt-1]],wt)<0;)Mt.push([Dt[Nt-2],Dt[Nt-1],ct]),Nt-=1;Dt.length=Nt,Dt.push(ct)}}function at(Mt,Tt){var kt;return Mt.a[0]Pt[0]&&ct.push(new vt(Pt,Ot,ot,It),new vt(Ot,Pt,st,It))}ct.sort(dt);for(var zt=ct[0].a[0]-(1+Math.abs(ct[0].a[0]))*Math.pow(2,-52),Dt=[new nt([zt,1],[zt,0],-1,[],[])],Nt=[],It=0,$t=ct.length;It<$t;++It){var Ut=ct[It],Ht=Ut.type;Ht===tt?ft(Nt,Dt,Mt,Ut.a,Ut.idx):Ht===ot?yt(Dt,Mt,Ut):St(Dt,Mt,Ut)}return Nt}},5542:function(ut,ht,j){var _=j(2478);ut.exports=ot;function rt(nt,vt){this.stars=nt,this.edges=vt}var tt=rt.prototype;function st(nt,vt,dt){for(var bt=1,ft=nt.length;bt=0}}(),tt.removeTriangle=function(nt,vt,dt){var bt=this.stars;st(bt[nt],vt,dt),st(bt[vt],dt,nt),st(bt[dt],nt,vt)},tt.addTriangle=function(nt,vt,dt){var bt=this.stars;bt[nt].push(vt,dt),bt[vt].push(dt,nt),bt[dt].push(nt,vt)},tt.opposite=function(nt,vt){for(var dt=this.stars[vt],bt=1,ft=dt.length;bt=0;--Ut){var rr=Nt[Ut];Ht=rr[0];var jt=zt[Ht],ar=jt[0],sr=jt[1],Zt=Pt[ar],Kt=Pt[sr];if((Zt[0]-Kt[0]||Zt[1]-Kt[1])<0){var or=ar;ar=sr,sr=or}jt[0]=ar;var tr=jt[1]=rr[1],cr;for($t&&(cr=jt[2]);Ut>0&&Nt[Ut-1][0]===Ht;){var rr=Nt[--Ut],hr=rr[1];$t?zt.push([tr,hr,cr]):zt.push([tr,hr]),tr=hr}$t?zt.push([tr,sr,cr]):zt.push([tr,sr])}return Vt}function Tt(Pt,zt,Dt){for(var Nt=zt.length,$t=new _(Nt),Ut=[],Ht=0;Htzt[2]?1:0)}function ct(Pt,zt,Dt){if(Pt.length!==0){if(zt)for(var Nt=0;Nt0||Ht.length>0}function Ot(Pt,zt,Dt){var Nt;if(Dt){Nt=zt;for(var $t=new Array(zt.length),Ut=0;UtMt+1)throw new Error(St+" map requires nshades to be at least size "+yt.length);Array.isArray(vt.alpha)?vt.alpha.length!==2?Tt=[1,1]:Tt=vt.alpha.slice():typeof vt.alpha=="number"?Tt=[vt.alpha,vt.alpha]:Tt=[1,1],dt=yt.map(function(Ot){return Math.round(Ot.index*Mt)}),Tt[0]=Math.min(Math.max(Tt[0],0),1),Tt[1]=Math.min(Math.max(Tt[1],0),1);var wt=yt.map(function(Ot,Pt){var zt=yt[Pt].index,Dt=yt[Pt].rgb.slice();return Dt.length===4&&Dt[3]>=0&&Dt[3]<=1||(Dt[3]=Tt[0]+(Tt[1]-Tt[0])*zt),Dt}),ct=[];for(kt=0;kt=0}function vt(dt,bt,ft,at){var yt=_(bt,ft,at);if(yt===0){var St=rt(_(dt,bt,ft)),_t=rt(_(dt,bt,at));if(St===_t){if(St===0){var Mt=nt(dt,bt,ft),Tt=nt(dt,bt,at);return Mt===Tt?0:Mt?1:-1}return 0}else{if(_t===0)return St>0||nt(dt,bt,at)?-1:1;if(St===0)return _t>0||nt(dt,bt,ft)?1:-1}return rt(_t-St)}var kt=_(dt,bt,ft);if(kt>0)return yt>0&&_(dt,bt,at)>0?1:-1;if(kt<0)return yt>0||_(dt,bt,at)>0?1:-1;var wt=_(dt,bt,at);return wt>0||nt(dt,bt,ft)?1:-1}},8572:function(ut){ut.exports=function(j){return j<0?-1:j>0?1:0}},8507:function(ut){ut.exports=_;var ht=Math.min;function j(rt,tt){return rt-tt}function _(rt,tt){var st=rt.length,ot=rt.length-tt.length;if(ot)return ot;switch(st){case 0:return 0;case 1:return rt[0]-tt[0];case 2:return rt[0]+rt[1]-tt[0]-tt[1]||ht(rt[0],rt[1])-ht(tt[0],tt[1]);case 3:var nt=rt[0]+rt[1],vt=tt[0]+tt[1];if(ot=nt+rt[2]-(vt+tt[2]),ot)return ot;var dt=ht(rt[0],rt[1]),bt=ht(tt[0],tt[1]);return ht(dt,rt[2])-ht(bt,tt[2])||ht(dt+rt[2],nt)-ht(bt+tt[2],vt);case 4:var ft=rt[0],at=rt[1],yt=rt[2],St=rt[3],_t=tt[0],Mt=tt[1],Tt=tt[2],kt=tt[3];return ft+at+yt+St-(_t+Mt+Tt+kt)||ht(ft,at,yt,St)-ht(_t,Mt,Tt,kt,_t)||ht(ft+at,ft+yt,ft+St,at+yt,at+St,yt+St)-ht(_t+Mt,_t+Tt,_t+kt,Mt+Tt,Mt+kt,Tt+kt)||ht(ft+at+yt,ft+at+St,ft+yt+St,at+yt+St)-ht(_t+Mt+Tt,_t+Mt+kt,_t+Tt+kt,Mt+Tt+kt);default:for(var wt=rt.slice().sort(j),ct=tt.slice().sort(j),It=0;Itj[rt][0]&&(rt=tt);return _rt?[[rt],[_]]:[[_]]}},4750:function(ut,ht,j){ut.exports=rt;var _=j(3090);function rt(tt){var st=_(tt),ot=st.length;if(ot<=2)return[];for(var nt=new Array(ot),vt=st[ot-1],dt=0;dt=vt[_t]&&(St+=1);at[yt]=St}}return nt}function ot(nt,vt){try{return _(nt,!0)}catch{var dt=rt(nt);if(dt.length<=vt)return[];var bt=tt(nt,dt),ft=_(bt,!0);return st(ft,dt)}}},4769:function(ut){function ht(_,rt,tt,st,ot,nt){var vt=6*ot*ot-6*ot,dt=3*ot*ot-4*ot+1,bt=-6*ot*ot+6*ot,ft=3*ot*ot-2*ot;if(_.length){nt||(nt=new Array(_.length));for(var at=_.length-1;at>=0;--at)nt[at]=vt*_[at]+dt*rt[at]+bt*tt[at]+ft*st[at];return nt}return vt*_+dt*rt+bt*tt[at]+ft*st}function j(_,rt,tt,st,ot,nt){var vt=ot-1,dt=ot*ot,bt=vt*vt,ft=(1+2*ot)*bt,at=ot*bt,yt=dt*(3-2*ot),St=dt*vt;if(_.length){nt||(nt=new Array(_.length));for(var _t=_.length-1;_t>=0;--_t)nt[_t]=ft*_[_t]+at*rt[_t]+yt*tt[_t]+St*st[_t];return nt}return ft*_+at*rt+yt*tt+St*st}ut.exports=j,ut.exports.derivative=ht},7642:function(ut,ht,j){var _=j(8954),rt=j(1682);ut.exports=nt;function tt(vt,dt){this.point=vt,this.index=dt}function st(vt,dt){for(var bt=vt.point,ft=dt.point,at=bt.length,yt=0;yt=2)return!1;Dt[$t]=Ut}return!0}):zt=zt.filter(function(Dt){for(var Nt=0;Nt<=ft;++Nt){var $t=It[Dt[Nt]];if($t<0)return!1;Dt[Nt]=$t}return!0}),ft&1)for(var St=0;St>>31},ut.exports.exponent=function(yt){var St=ut.exports.hi(yt);return(St<<1>>>21)-1023},ut.exports.fraction=function(yt){var St=ut.exports.lo(yt),_t=ut.exports.hi(yt),Mt=_t&(1<<20)-1;return _t&2146435072&&(Mt+=1048576),[St,Mt]},ut.exports.denormalized=function(yt){var St=ut.exports.hi(yt);return!(St&2146435072)}},1338:function(ut){function ht(rt,tt,st){var ot=rt[st]|0;if(ot<=0)return[];var nt=new Array(ot),vt;if(st===rt.length-1)for(vt=0;vt"u"&&(tt=0),typeof rt){case"number":if(rt>0)return j(rt|0,tt);break;case"object":if(typeof rt.length=="number")return ht(rt,tt,0);break}return[]}ut.exports=_},3134:function(ut,ht,j){ut.exports=rt;var _=j(1682);function rt(tt,st){var ot=tt.length;if(typeof st!="number"){st=0;for(var nt=0;nt=ft-1)for(var kt=St.length-1,ct=dt-bt[ft-1],wt=0;wt=ft-1){var Tt=St.length-1;dt-bt[ft-1];for(var kt=0;kt=0;--ft)if(dt[--bt])return!1;return!0},ot.jump=function(dt){var bt=this.lastT(),ft=this.dimension;if(!(dt0;--wt)at.push(tt(Mt[wt-1],Tt[wt-1],arguments[wt])),yt.push(0)}},ot.push=function(dt){var bt=this.lastT(),ft=this.dimension;if(!(dt1e-6?1/_t:0;this._time.push(dt);for(var ct=ft;ct>0;--ct){var It=tt(Tt[ct-1],kt[ct-1],arguments[ct]);at.push(It),yt.push((It-at[St++])*wt)}}},ot.set=function(dt){var bt=this.dimension;if(!(dt0;--Mt)ft.push(tt(St[Mt-1],_t[Mt-1],arguments[Mt])),at.push(0)}},ot.move=function(dt){var bt=this.lastT(),ft=this.dimension;if(!(dt<=bt||arguments.length!==ft+1)){var at=this._state,yt=this._velocity,St=at.length-this.dimension,_t=this.bounds,Mt=_t[0],Tt=_t[1],kt=dt-bt,wt=kt>1e-6?1/kt:0;this._time.push(dt);for(var ct=ft;ct>0;--ct){var It=arguments[ct];at.push(tt(Mt[ct-1],Tt[ct-1],at[St++]+It)),yt.push(It*wt)}}},ot.idle=function(dt){var bt=this.lastT();if(!(dt=0;--wt)at.push(tt(Mt[wt],Tt[wt],at[St]+kt*yt[St])),yt.push(0),St+=1}};function nt(dt){for(var bt=new Array(dt),ft=0;ft=0;--Pt){var ct=It[Pt];At[Pt]<=0?It[Pt]=new _(ct._color,ct.key,ct.value,It[Pt+1],ct.right,ct._count+1):It[Pt]=new _(ct._color,ct.key,ct.value,ct.left,It[Pt+1],ct._count+1)}for(var Pt=It.length-1;Pt>1;--Pt){var zt=It[Pt-1],ct=It[Pt];if(zt._color===j||ct._color===j)break;var Dt=It[Pt-2];if(Dt.left===zt)if(zt.left===ct){var Nt=Dt.right;if(Nt&&Nt._color===ht)zt._color=j,Dt.right=tt(j,Nt),Dt._color=ht,Pt-=1;else{if(Dt._color=ht,Dt.left=zt.right,zt._color=j,zt.right=Dt,It[Pt-2]=zt,It[Pt-1]=ct,st(Dt),st(zt),Pt>=3){var $t=It[Pt-3];$t.left===Dt?$t.left=zt:$t.right=zt}break}}else{var Nt=Dt.right;if(Nt&&Nt._color===ht)zt._color=j,Dt.right=tt(j,Nt),Dt._color=ht,Pt-=1;else{if(zt.right=ct.left,Dt._color=ht,Dt.left=ct.right,ct._color=j,ct.left=zt,ct.right=Dt,It[Pt-2]=ct,It[Pt-1]=zt,st(Dt),st(zt),st(ct),Pt>=3){var $t=It[Pt-3];$t.left===Dt?$t.left=ct:$t.right=ct}break}}else if(zt.right===ct){var Nt=Dt.left;if(Nt&&Nt._color===ht)zt._color=j,Dt.left=tt(j,Nt),Dt._color=ht,Pt-=1;else{if(Dt._color=ht,Dt.right=zt.left,zt._color=j,zt.left=Dt,It[Pt-2]=zt,It[Pt-1]=ct,st(Dt),st(zt),Pt>=3){var $t=It[Pt-3];$t.right===Dt?$t.right=zt:$t.left=zt}break}}else{var Nt=Dt.left;if(Nt&&Nt._color===ht)zt._color=j,Dt.left=tt(j,Nt),Dt._color=ht,Pt-=1;else{if(zt.left=ct.right,Dt._color=ht,Dt.right=ct.left,ct._color=j,ct.right=zt,ct.left=Dt,It[Pt-2]=ct,It[Pt-1]=zt,st(Dt),st(zt),st(ct),Pt>=3){var $t=It[Pt-3];$t.right===Dt?$t.right=ct:$t.left=ct}break}}}return It[0]._color=j,new ot(wt,It[0])};function vt(Tt,kt){if(kt.left){var wt=vt(Tt,kt.left);if(wt)return wt}var wt=Tt(kt.key,kt.value);if(wt)return wt;if(kt.right)return vt(Tt,kt.right)}function dt(Tt,kt,wt,ct){var It=kt(Tt,ct.key);if(It<=0){if(ct.left){var At=dt(Tt,kt,wt,ct.left);if(At)return At}var At=wt(ct.key,ct.value);if(At)return At}if(ct.right)return dt(Tt,kt,wt,ct.right)}function bt(Tt,kt,wt,ct,It){var At=wt(Tt,It.key),Ot=wt(kt,It.key),Pt;if(At<=0&&(It.left&&(Pt=bt(Tt,kt,wt,ct,It.left),Pt)||Ot>0&&(Pt=ct(It.key,It.value),Pt)))return Pt;if(Ot>0&&It.right)return bt(Tt,kt,wt,ct,It.right)}nt.forEach=function(kt,wt,ct){if(this.root)switch(arguments.length){case 1:return vt(kt,this.root);case 2:return dt(wt,this._compare,kt,this.root);case 3:return this._compare(wt,ct)>=0?void 0:bt(wt,ct,this._compare,kt,this.root)}},Object.defineProperty(nt,"begin",{get:function(){for(var Tt=[],kt=this.root;kt;)Tt.push(kt),kt=kt.left;return new ft(this,Tt)}}),Object.defineProperty(nt,"end",{get:function(){for(var Tt=[],kt=this.root;kt;)Tt.push(kt),kt=kt.right;return new ft(this,Tt)}}),nt.at=function(Tt){if(Tt<0)return new ft(this,[]);for(var kt=this.root,wt=[];;){if(wt.push(kt),kt.left){if(Tt=kt.right._count)break;kt=kt.right}else break}return new ft(this,[])},nt.ge=function(Tt){for(var kt=this._compare,wt=this.root,ct=[],It=0;wt;){var At=kt(Tt,wt.key);ct.push(wt),At<=0&&(It=ct.length),At<=0?wt=wt.left:wt=wt.right}return ct.length=It,new ft(this,ct)},nt.gt=function(Tt){for(var kt=this._compare,wt=this.root,ct=[],It=0;wt;){var At=kt(Tt,wt.key);ct.push(wt),At<0&&(It=ct.length),At<0?wt=wt.left:wt=wt.right}return ct.length=It,new ft(this,ct)},nt.lt=function(Tt){for(var kt=this._compare,wt=this.root,ct=[],It=0;wt;){var At=kt(Tt,wt.key);ct.push(wt),At>0&&(It=ct.length),At<=0?wt=wt.left:wt=wt.right}return ct.length=It,new ft(this,ct)},nt.le=function(Tt){for(var kt=this._compare,wt=this.root,ct=[],It=0;wt;){var At=kt(Tt,wt.key);ct.push(wt),At>=0&&(It=ct.length),At<0?wt=wt.left:wt=wt.right}return ct.length=It,new ft(this,ct)},nt.find=function(Tt){for(var kt=this._compare,wt=this.root,ct=[];wt;){var It=kt(Tt,wt.key);if(ct.push(wt),It===0)return new ft(this,ct);It<=0?wt=wt.left:wt=wt.right}return new ft(this,[])},nt.remove=function(Tt){var kt=this.find(Tt);return kt?kt.remove():this},nt.get=function(Tt){for(var kt=this._compare,wt=this.root;wt;){var ct=kt(Tt,wt.key);if(ct===0)return wt.value;ct<=0?wt=wt.left:wt=wt.right}};function ft(Tt,kt){this.tree=Tt,this._stack=kt}var at=ft.prototype;Object.defineProperty(at,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(at,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),at.clone=function(){return new ft(this.tree,this._stack.slice())};function yt(Tt,kt){Tt.key=kt.key,Tt.value=kt.value,Tt.left=kt.left,Tt.right=kt.right,Tt._color=kt._color,Tt._count=kt._count}function St(Tt){for(var kt,wt,ct,It,At=Tt.length-1;At>=0;--At){if(kt=Tt[At],At===0){kt._color=j;return}if(wt=Tt[At-1],wt.left===kt){if(ct=wt.right,ct.right&&ct.right._color===ht){if(ct=wt.right=rt(ct),It=ct.right=rt(ct.right),wt.right=ct.left,ct.left=wt,ct.right=It,ct._color=wt._color,kt._color=j,wt._color=j,It._color=j,st(wt),st(ct),At>1){var Ot=Tt[At-2];Ot.left===wt?Ot.left=ct:Ot.right=ct}Tt[At-1]=ct;return}else if(ct.left&&ct.left._color===ht){if(ct=wt.right=rt(ct),It=ct.left=rt(ct.left),wt.right=It.left,ct.left=It.right,It.left=wt,It.right=ct,It._color=wt._color,wt._color=j,ct._color=j,kt._color=j,st(wt),st(ct),st(It),At>1){var Ot=Tt[At-2];Ot.left===wt?Ot.left=It:Ot.right=It}Tt[At-1]=It;return}if(ct._color===j)if(wt._color===ht){wt._color=j,wt.right=tt(ht,ct);return}else{wt.right=tt(ht,ct);continue}else{if(ct=rt(ct),wt.right=ct.left,ct.left=wt,ct._color=wt._color,wt._color=ht,st(wt),st(ct),At>1){var Ot=Tt[At-2];Ot.left===wt?Ot.left=ct:Ot.right=ct}Tt[At-1]=ct,Tt[At]=wt,At+11){var Ot=Tt[At-2];Ot.right===wt?Ot.right=ct:Ot.left=ct}Tt[At-1]=ct;return}else if(ct.right&&ct.right._color===ht){if(ct=wt.left=rt(ct),It=ct.right=rt(ct.right),wt.left=It.right,ct.right=It.left,It.right=wt,It.left=ct,It._color=wt._color,wt._color=j,ct._color=j,kt._color=j,st(wt),st(ct),st(It),At>1){var Ot=Tt[At-2];Ot.right===wt?Ot.right=It:Ot.left=It}Tt[At-1]=It;return}if(ct._color===j)if(wt._color===ht){wt._color=j,wt.left=tt(ht,ct);return}else{wt.left=tt(ht,ct);continue}else{if(ct=rt(ct),wt.left=ct.right,ct.right=wt,ct._color=wt._color,wt._color=ht,st(wt),st(ct),At>1){var Ot=Tt[At-2];Ot.right===wt?Ot.right=ct:Ot.left=ct}Tt[At-1]=ct,Tt[At]=wt,At+1=0;--ct){var wt=Tt[ct];wt.left===Tt[ct+1]?kt[ct]=new _(wt._color,wt.key,wt.value,kt[ct+1],wt.right,wt._count):kt[ct]=new _(wt._color,wt.key,wt.value,wt.left,kt[ct+1],wt._count)}if(wt=kt[kt.length-1],wt.left&&wt.right){var It=kt.length;for(wt=wt.left;wt.right;)kt.push(wt),wt=wt.right;var At=kt[It-1];kt.push(new _(wt._color,At.key,At.value,wt.left,wt.right,wt._count)),kt[It-1].key=wt.key,kt[It-1].value=wt.value;for(var ct=kt.length-2;ct>=It;--ct)wt=kt[ct],kt[ct]=new _(wt._color,wt.key,wt.value,wt.left,kt[ct+1],wt._count);kt[It-1].left=kt[It]}if(wt=kt[kt.length-1],wt._color===ht){var Ot=kt[kt.length-2];Ot.left===wt?Ot.left=null:Ot.right===wt&&(Ot.right=null),kt.pop();for(var ct=0;ct0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(at,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(at,"index",{get:function(){var Tt=0,kt=this._stack;if(kt.length===0){var wt=this.tree.root;return wt?wt._count:0}else kt[kt.length-1].left&&(Tt=kt[kt.length-1].left._count);for(var ct=kt.length-2;ct>=0;--ct)kt[ct+1]===kt[ct].right&&(++Tt,kt[ct].left&&(Tt+=kt[ct].left._count));return Tt},enumerable:!0}),at.next=function(){var Tt=this._stack;if(Tt.length!==0){var kt=Tt[Tt.length-1];if(kt.right)for(kt=kt.right;kt;)Tt.push(kt),kt=kt.left;else for(Tt.pop();Tt.length>0&&Tt[Tt.length-1].right===kt;)kt=Tt[Tt.length-1],Tt.pop()}},Object.defineProperty(at,"hasNext",{get:function(){var Tt=this._stack;if(Tt.length===0)return!1;if(Tt[Tt.length-1].right)return!0;for(var kt=Tt.length-1;kt>0;--kt)if(Tt[kt-1].left===Tt[kt])return!0;return!1}}),at.update=function(Tt){var kt=this._stack;if(kt.length===0)throw new Error("Can't update empty node!");var wt=new Array(kt.length),ct=kt[kt.length-1];wt[wt.length-1]=new _(ct._color,ct.key,Tt,ct.left,ct.right,ct._count);for(var It=kt.length-2;It>=0;--It)ct=kt[It],ct.left===kt[It+1]?wt[It]=new _(ct._color,ct.key,ct.value,wt[It+1],ct.right,ct._count):wt[It]=new _(ct._color,ct.key,ct.value,ct.left,wt[It+1],ct._count);return new ot(this.tree._compare,wt[0])},at.prev=function(){var Tt=this._stack;if(Tt.length!==0){var kt=Tt[Tt.length-1];if(kt.left)for(kt=kt.left;kt;)Tt.push(kt),kt=kt.right;else for(Tt.pop();Tt.length>0&&Tt[Tt.length-1].left===kt;)kt=Tt[Tt.length-1],Tt.pop()}},Object.defineProperty(at,"hasPrev",{get:function(){var Tt=this._stack;if(Tt.length===0)return!1;if(Tt[Tt.length-1].left)return!0;for(var kt=Tt.length-1;kt>0;--kt)if(Tt[kt-1].right===Tt[kt])return!0;return!1}});function _t(Tt,kt){return Ttkt?1:0}function Mt(Tt){return new ot(Tt||_t,null)}},3837:function(ut,ht,j){ut.exports=ct;var _=j(4935),rt=j(501),tt=j(5304),st=j(6429),ot=j(6444),nt=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);function vt(It,At){return It[0]=At[0],It[1]=At[1],It[2]=At[2],It}function dt(It){this.gl=It,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickFontStyle=["normal","normal","normal"],this.tickFontWeight=["normal","normal","normal"],this.tickFontVariant=["normal","normal","normal"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=["auto","auto","auto"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["sans-serif","sans-serif","sans-serif"],this.labelFontStyle=["normal","normal","normal"],this.labelFontWeight=["normal","normal","normal"],this.labelFontVariant=["normal","normal","normal"],this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=["auto","auto","auto"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=tt(It)}var bt=dt.prototype;bt.update=function(It){It=It||{};function At(Jt,Yt,rr){if(rr in It){var jt=It[rr],ar=this[rr],sr;(Jt?Array.isArray(jt)&&Array.isArray(jt[0]):Array.isArray(jt))?this[rr]=sr=[Yt(jt[0]),Yt(jt[1]),Yt(jt[2])]:this[rr]=sr=[Yt(jt),Yt(jt),Yt(jt)];for(var Zt=0;Zt<3;++Zt)if(sr[Zt]!==ar[Zt])return!0}return!1}var Ot=At.bind(this,!1,Number),Pt=At.bind(this,!1,Boolean),zt=At.bind(this,!1,String),Dt=At.bind(this,!0,function(Jt){if(Array.isArray(Jt)){if(Jt.length===3)return[+Jt[0],+Jt[1],+Jt[2],1];if(Jt.length===4)return[+Jt[0],+Jt[1],+Jt[2],+Jt[3]]}return[0,0,0,1]}),Nt,$t=!1,Ut=!1;if("bounds"in It)for(var Ht=It.bounds,Vt=0;Vt<2;++Vt)for(var Xt=0;Xt<3;++Xt)Ht[Vt][Xt]!==this.bounds[Vt][Xt]&&(Ut=!0),this.bounds[Vt][Xt]=Ht[Vt][Xt];if("ticks"in It){Nt=It.ticks,$t=!0,this.autoTicks=!1;for(var Vt=0;Vt<3;++Vt)this.tickSpacing[Vt]=0}else Ot("tickSpacing")&&(this.autoTicks=!0,Ut=!0);if(this._firstInit&&("ticks"in It||"tickSpacing"in It||(this.autoTicks=!0),Ut=!0,$t=!0,this._firstInit=!1),Ut&&this.autoTicks&&(Nt=ot.create(this.bounds,this.tickSpacing),$t=!0),$t){for(var Vt=0;Vt<3;++Vt)Nt[Vt].sort(function(Yt,rr){return Yt.x-rr.x});ot.equal(Nt,this.ticks)?$t=!1:this.ticks=Nt}Pt("tickEnable"),zt("tickFont")&&($t=!0),zt("tickFontStyle")&&($t=!0),zt("tickFontWeight")&&($t=!0),zt("tickFontVariant")&&($t=!0),Ot("tickSize"),Ot("tickAngle"),Ot("tickPad"),Dt("tickColor");var qt=zt("labels");zt("labelFont")&&(qt=!0),zt("labelFontStyle")&&(qt=!0),zt("labelFontWeight")&&(qt=!0),zt("labelFontVariant")&&(qt=!0),Pt("labelEnable"),Ot("labelSize"),Ot("labelPad"),Dt("labelColor"),Pt("lineEnable"),Pt("lineMirror"),Ot("lineWidth"),Dt("lineColor"),Pt("lineTickEnable"),Pt("lineTickMirror"),Ot("lineTickLength"),Ot("lineTickWidth"),Dt("lineTickColor"),Pt("gridEnable"),Ot("gridWidth"),Dt("gridColor"),Pt("zeroEnable"),Dt("zeroLineColor"),Ot("zeroLineWidth"),Pt("backgroundEnable"),Dt("backgroundColor");var er=[{family:this.labelFont[0],style:this.labelFontStyle[0],weight:this.labelFontWeight[0],variant:this.labelFontVariant[0]},{family:this.labelFont[1],style:this.labelFontStyle[1],weight:this.labelFontWeight[1],variant:this.labelFontVariant[1]},{family:this.labelFont[2],style:this.labelFontStyle[2],weight:this.labelFontWeight[2],variant:this.labelFontVariant[2]}],lr=[{family:this.tickFont[0],style:this.tickFontStyle[0],weight:this.tickFontWeight[0],variant:this.tickFontVariant[0]},{family:this.tickFont[1],style:this.tickFontStyle[1],weight:this.tickFontWeight[1],variant:this.tickFontVariant[1]},{family:this.tickFont[2],style:this.tickFontStyle[2],weight:this.tickFontWeight[2],variant:this.tickFontVariant[2]}];this._text?this._text&&(qt||$t)&&this._text.update(this.bounds,this.labels,er,this.ticks,lr):this._text=_(this.gl,this.bounds,this.labels,er,this.ticks,lr),this._lines&&$t&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=rt(this.gl,this.bounds,this.ticks))};function ft(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}var at=[new ft,new ft,new ft];function yt(It,At,Ot,Pt,zt){for(var Dt=It.primalOffset,Nt=It.primalMinor,$t=It.mirrorOffset,Ut=It.mirrorMinor,Ht=Pt[At],Vt=0;Vt<3;++Vt)if(At!==Vt){var Xt=Dt,qt=$t,er=Nt,lr=Ut;Ht&1<0?(er[Vt]=-1,lr[Vt]=0):(er[Vt]=0,lr[Vt]=1)}}var St=[0,0,0],_t={model:nt,view:nt,projection:nt,_ortho:!1};bt.isOpaque=function(){return!0},bt.isTransparent=function(){return!1},bt.drawTransparent=function(It){};var Mt=0,Tt=[0,0,0],kt=[0,0,0],wt=[0,0,0];bt.draw=function(It){It=It||_t;for(var rr=this.gl,At=It.model||nt,Ot=It.view||nt,Pt=It.projection||nt,zt=this.bounds,Dt=It._ortho||!1,Nt=st(At,Ot,Pt,zt,Dt),$t=Nt.cubeEdges,Ut=Nt.axis,Ht=Ot[12],Vt=Ot[13],Xt=Ot[14],qt=Ot[15],er=Dt?2:1,lr=er*this.pixelRatio*(Pt[3]*Ht+Pt[7]*Vt+Pt[11]*Xt+Pt[15]*qt)/rr.drawingBufferHeight,Jt=0;Jt<3;++Jt)this.lastCubeProps.cubeEdges[Jt]=$t[Jt],this.lastCubeProps.axis[Jt]=Ut[Jt];for(var Yt=at,Jt=0;Jt<3;++Jt)yt(at[Jt],Jt,this.bounds,$t,Ut);for(var rr=this.gl,jt=St,Jt=0;Jt<3;++Jt)this.backgroundEnable[Jt]?jt[Jt]=Ut[Jt]:jt[Jt]=0;this._background.draw(At,Ot,Pt,zt,jt,this.backgroundColor),this._lines.bind(At,Ot,Pt,this);for(var Jt=0;Jt<3;++Jt){var ar=[0,0,0];Ut[Jt]>0?ar[Jt]=zt[1][Jt]:ar[Jt]=zt[0][Jt];for(var sr=0;sr<2;++sr){var Zt=(Jt+1+sr)%3,Kt=(Jt+1+(sr^1))%3;this.gridEnable[Zt]&&this._lines.drawGrid(Zt,Kt,this.bounds,ar,this.gridColor[Zt],this.gridWidth[Zt]*this.pixelRatio)}for(var sr=0;sr<2;++sr){var Zt=(Jt+1+sr)%3,Kt=(Jt+1+(sr^1))%3;this.zeroEnable[Kt]&&Math.min(zt[0][Kt],zt[1][Kt])<=0&&Math.max(zt[0][Kt],zt[1][Kt])>=0&&this._lines.drawZero(Zt,Kt,this.bounds,ar,this.zeroLineColor[Kt],this.zeroLineWidth[Kt]*this.pixelRatio)}}for(var Jt=0;Jt<3;++Jt){this.lineEnable[Jt]&&this._lines.drawAxisLine(Jt,this.bounds,Yt[Jt].primalOffset,this.lineColor[Jt],this.lineWidth[Jt]*this.pixelRatio),this.lineMirror[Jt]&&this._lines.drawAxisLine(Jt,this.bounds,Yt[Jt].mirrorOffset,this.lineColor[Jt],this.lineWidth[Jt]*this.pixelRatio);for(var or=vt(Tt,Yt[Jt].primalMinor),tr=vt(kt,Yt[Jt].mirrorMinor),cr=this.lineTickLength,sr=0;sr<3;++sr){var hr=lr/At[5*sr];or[sr]*=cr[sr]*hr,tr[sr]*=cr[sr]*hr}this.lineTickEnable[Jt]&&this._lines.drawAxisTicks(Jt,Yt[Jt].primalOffset,or,this.lineTickColor[Jt],this.lineTickWidth[Jt]*this.pixelRatio),this.lineTickMirror[Jt]&&this._lines.drawAxisTicks(Jt,Yt[Jt].mirrorOffset,tr,this.lineTickColor[Jt],this.lineTickWidth[Jt]*this.pixelRatio)}this._lines.unbind(),this._text.bind(At,Ot,Pt,this.pixelRatio);var br,Tr=.5,Ir,Ar;function _r(Nr){Ar=[0,0,0],Ar[Nr]=1}function Er(Nr,Qr,sn){var un=(Nr+1)%3,qr=(Nr+2)%3,Xr=Qr[un],ln=Qr[qr],mn=sn[un],pn=sn[qr];if(Xr>0&&pn>0){_r(un);return}else if(Xr>0&&pn<0){_r(un);return}else if(Xr<0&&pn>0){_r(un);return}else if(Xr<0&&pn<0){_r(un);return}else if(ln>0&&mn>0){_r(qr);return}else if(ln>0&&mn<0){_r(qr);return}else if(ln<0&&mn>0){_r(qr);return}else if(ln<0&&mn<0){_r(qr);return}}for(var Jt=0;Jt<3;++Jt){for(var Rr=Yt[Jt].primalMinor,zr=Yt[Jt].mirrorMinor,Br=vt(wt,Yt[Jt].primalOffset),sr=0;sr<3;++sr)this.lineTickEnable[Jt]&&(Br[sr]+=lr*Rr[sr]*Math.max(this.lineTickLength[sr],0)/At[5*sr]);var kr=[0,0,0];if(kr[Jt]=1,this.tickEnable[Jt]){this.tickAngle[Jt]===-3600?(this.tickAngle[Jt]=0,this.tickAlign[Jt]="auto"):this.tickAlign[Jt]=-1,Ir=1,br=[this.tickAlign[Jt],Tr,Ir],br[0]==="auto"?br[0]=Mt:br[0]=parseInt(""+br[0]),Ar=[0,0,0],Er(Jt,Rr,zr);for(var sr=0;sr<3;++sr)Br[sr]+=lr*Rr[sr]*this.tickPad[sr]/At[5*sr];this._text.drawTicks(Jt,this.tickSize[Jt],this.tickAngle[Jt],Br,this.tickColor[Jt],kr,Ar,br)}if(this.labelEnable[Jt]){Ir=0,Ar=[0,0,0],this.labels[Jt].length>4&&(_r(Jt),Ir=1),br=[this.labelAlign[Jt],Tr,Ir],br[0]==="auto"?br[0]=Mt:br[0]=parseInt(""+br[0]);for(var sr=0;sr<3;++sr)Br[sr]+=lr*Rr[sr]*this.labelPad[sr]/At[5*sr];Br[Jt]+=.5*(zt[0][Jt]+zt[1][Jt]),this._text.drawLabel(Jt,this.labelSize[Jt],this.labelAngle[Jt],Br,this.labelColor[Jt],[0,0,0],Ar,br)}}this._text.unbind()},bt.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null};function ct(It,At){var Ot=new dt(It);return Ot.update(At),Ot}},5304:function(ut,ht,j){ut.exports=nt;var _=j(2762),rt=j(8116),tt=j(1879).bg;function st(vt,dt,bt,ft){this.gl=vt,this.buffer=dt,this.vao=bt,this.shader=ft}var ot=st.prototype;ot.draw=function(vt,dt,bt,ft,at,yt){for(var St=!1,_t=0;_t<3;++_t)St=St||at[_t];if(St){var Mt=this.gl;Mt.enable(Mt.POLYGON_OFFSET_FILL),Mt.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:vt,view:dt,projection:bt,bounds:ft,enable:at,colors:yt},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),Mt.disable(Mt.POLYGON_OFFSET_FILL)}},ot.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function nt(vt){for(var dt=[],bt=[],ft=0,at=0;at<3;++at)for(var yt=(at+1)%3,St=(at+2)%3,_t=[0,0,0],Mt=[0,0,0],Tt=-1;Tt<=1;Tt+=2){bt.push(ft,ft+2,ft+1,ft+1,ft+2,ft+3),_t[at]=Tt,Mt[at]=Tt;for(var kt=-1;kt<=1;kt+=2){_t[yt]=kt;for(var wt=-1;wt<=1;wt+=2)_t[St]=wt,dt.push(_t[0],_t[1],_t[2],Mt[0],Mt[1],Mt[2]),ft+=1}var ct=yt;yt=St,St=ct}var It=_(vt,new Float32Array(dt)),At=_(vt,new Uint16Array(bt),vt.ELEMENT_ARRAY_BUFFER),Ot=rt(vt,[{buffer:It,type:vt.FLOAT,size:3,offset:0,stride:24},{buffer:It,type:vt.FLOAT,size:3,offset:12,stride:24}],At),Pt=tt(vt);return Pt.attributes.position.location=0,Pt.attributes.normal.location=1,new st(vt,It,Ot,Pt)}},6429:function(ut,ht,j){ut.exports=Tt;var _=j(8828),rt=j(6760),tt=j(5202),st=j(3250),ot=new Array(16),nt=new Array(8),vt=new Array(8),dt=new Array(3),bt=[0,0,0];(function(){for(var kt=0;kt<8;++kt)nt[kt]=[1,1,1,1],vt[kt]=[1,1,1]})();function ft(kt,wt,ct){for(var It=0;It<4;++It){kt[It]=ct[12+It];for(var At=0;At<3;++At)kt[It]+=wt[At]*ct[4*At+It]}}var at=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function yt(kt){for(var wt=0;wtqt&&(Nt|=1<qt){Nt|=1<vt[Pt][1])&&(sr=Pt);for(var Zt=-1,Pt=0;Pt<3;++Pt){var Kt=sr^1<vt[or][0]&&(or=Kt)}}var tr=St;tr[0]=tr[1]=tr[2]=0,tr[_.log2(Zt^sr)]=sr&Zt,tr[_.log2(sr^or)]=sr∨var cr=or^7;cr===Nt||cr===ar?(cr=Zt^7,tr[_.log2(or^cr)]=cr&or):tr[_.log2(Zt^cr)]=cr&Zt;for(var hr=_t,br=Nt,Ht=0;Ht<3;++Ht)br&1<kt)throw new RangeError('The value "'+Sr+'" is invalid for option "size"');var ur=new Uint8Array(Sr);return Object.setPrototypeOf(ur,It.prototype),ur}function It(Sr,ur,xr){if(typeof Sr=="number"){if(typeof ur=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return zt(Sr)}return At(Sr,ur,xr)}It.poolSize=8192;function At(Sr,ur,xr){if(typeof Sr=="string")return Dt(Sr,ur);if(ArrayBuffer.isView(Sr))return $t(Sr);if(Sr==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+St(Sr));if(Wr(Sr,ArrayBuffer)||Sr&&Wr(Sr.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Wr(Sr,SharedArrayBuffer)||Sr&&Wr(Sr.buffer,SharedArrayBuffer)))return Ut(Sr,ur,xr);if(typeof Sr=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Pr=Sr.valueOf&&Sr.valueOf();if(Pr!=null&&Pr!==Sr)return It.from(Pr,ur,xr);var Vr=Ht(Sr);if(Vr)return Vr;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Sr[Symbol.toPrimitive]=="function")return It.from(Sr[Symbol.toPrimitive]("string"),ur,xr);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+St(Sr))}It.from=function(Sr,ur,xr){return At(Sr,ur,xr)},Object.setPrototypeOf(It.prototype,Uint8Array.prototype),Object.setPrototypeOf(It,Uint8Array);function Ot(Sr){if(typeof Sr!="number")throw new TypeError('"size" argument must be of type number');if(Sr<0)throw new RangeError('The value "'+Sr+'" is invalid for option "size"')}function Pt(Sr,ur,xr){return Ot(Sr),Sr<=0?ct(Sr):ur!==void 0?typeof xr=="string"?ct(Sr).fill(ur,xr):ct(Sr).fill(ur):ct(Sr)}It.alloc=function(Sr,ur,xr){return Pt(Sr,ur,xr)};function zt(Sr){return Ot(Sr),ct(Sr<0?0:Vt(Sr)|0)}It.allocUnsafe=function(Sr){return zt(Sr)},It.allocUnsafeSlow=function(Sr){return zt(Sr)};function Dt(Sr,ur){if((typeof ur!="string"||ur==="")&&(ur="utf8"),!It.isEncoding(ur))throw new TypeError("Unknown encoding: "+ur);var xr=Xt(Sr,ur)|0,Pr=ct(xr),Vr=Pr.write(Sr,ur);return Vr!==xr&&(Pr=Pr.slice(0,Vr)),Pr}function Nt(Sr){for(var ur=Sr.length<0?0:Vt(Sr.length)|0,xr=ct(ur),Pr=0;Pr=kt)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kt.toString(16)+" bytes");return Sr|0}It.isBuffer=function(ur){return ur!=null&&ur._isBuffer===!0&&ur!==It.prototype},It.compare=function(ur,xr){if(Wr(ur,Uint8Array)&&(ur=It.from(ur,ur.offset,ur.byteLength)),Wr(xr,Uint8Array)&&(xr=It.from(xr,xr.offset,xr.byteLength)),!It.isBuffer(ur)||!It.isBuffer(xr))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ur===xr)return 0;for(var Pr=ur.length,Vr=xr.length,qr=0,rn=Math.min(Pr,Vr);qrVr.length?(It.isBuffer(rn)||(rn=It.from(rn)),rn.copy(Vr,qr)):Uint8Array.prototype.set.call(Vr,rn,qr);else if(It.isBuffer(rn))rn.copy(Vr,qr);else throw new TypeError('"list" argument must be an Array of Buffers');qr+=rn.length}return Vr};function Xt(Sr,ur){if(It.isBuffer(Sr))return Sr.length;if(ArrayBuffer.isView(Sr)||Wr(Sr,ArrayBuffer))return Sr.byteLength;if(typeof Sr!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+St(Sr));var xr=Sr.length,Pr=arguments.length>2&&arguments[2]===!0;if(!Pr&&xr===0)return 0;for(var Vr=!1;;)switch(ur){case"ascii":case"latin1":case"binary":return xr;case"utf8":case"utf-8":return pn(Sr).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xr*2;case"hex":return xr>>>1;case"base64":return Fr(Sr).length;default:if(Vr)return Pr?-1:pn(Sr).length;ur=(""+ur).toLowerCase(),Vr=!0}}It.byteLength=Xt;function qt(Sr,ur,xr){var Pr=!1;if((ur===void 0||ur<0)&&(ur=0),ur>this.length||((xr===void 0||xr>this.length)&&(xr=this.length),xr<=0)||(xr>>>=0,ur>>>=0,xr<=ur))return"";for(Sr||(Sr="utf8");;)switch(Sr){case"hex":return Ar(this,ur,xr);case"utf8":case"utf-8":return Kt(this,ur,xr);case"ascii":return cr(this,ur,xr);case"latin1":case"binary":return mr(this,ur,xr);case"base64":return Zt(this,ur,xr);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return br(this,ur,xr);default:if(Pr)throw new TypeError("Unknown encoding: "+Sr);Sr=(Sr+"").toLowerCase(),Pr=!0}}It.prototype._isBuffer=!0;function er(Sr,ur,xr){var Pr=Sr[ur];Sr[ur]=Sr[xr],Sr[xr]=Pr}It.prototype.swap16=function(){var ur=this.length;if(ur%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var xr=0;xrxr&&(ur+=" ... "),""},Et&&(It.prototype[Et]=It.prototype.inspect),It.prototype.compare=function(ur,xr,Pr,Vr,qr){if(Wr(ur,Uint8Array)&&(ur=It.from(ur,ur.offset,ur.byteLength)),!It.isBuffer(ur))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+St(ur));if(xr===void 0&&(xr=0),Pr===void 0&&(Pr=ur?ur.length:0),Vr===void 0&&(Vr=0),qr===void 0&&(qr=this.length),xr<0||Pr>ur.length||Vr<0||qr>this.length)throw new RangeError("out of range index");if(Vr>=qr&&xr>=Pr)return 0;if(Vr>=qr)return-1;if(xr>=Pr)return 1;if(xr>>>=0,Pr>>>=0,Vr>>>=0,qr>>>=0,this===ur)return 0;for(var rn=qr-Vr,Cn=Pr-xr,xn=Math.min(rn,Cn),fn=this.slice(Vr,qr),bn=ur.slice(xr,Pr),Un=0;Un2147483647?xr=2147483647:xr<-2147483648&&(xr=-2147483648),xr=+xr,Gr(xr)&&(xr=Vr?0:Sr.length-1),xr<0&&(xr=Sr.length+xr),xr>=Sr.length){if(Vr)return-1;xr=Sr.length-1}else if(xr<0)if(Vr)xr=0;else return-1;if(typeof ur=="string"&&(ur=It.from(ur,Pr)),It.isBuffer(ur))return ur.length===0?-1:Jt(Sr,ur,xr,Pr,Vr);if(typeof ur=="number")return ur=ur&255,typeof Uint8Array.prototype.indexOf=="function"?Vr?Uint8Array.prototype.indexOf.call(Sr,ur,xr):Uint8Array.prototype.lastIndexOf.call(Sr,ur,xr):Jt(Sr,[ur],xr,Pr,Vr);throw new TypeError("val must be string, number or Buffer")}function Jt(Sr,ur,xr,Pr,Vr){var qr=1,rn=Sr.length,Cn=ur.length;if(Pr!==void 0&&(Pr=String(Pr).toLowerCase(),Pr==="ucs2"||Pr==="ucs-2"||Pr==="utf16le"||Pr==="utf-16le")){if(Sr.length<2||ur.length<2)return-1;qr=2,rn/=2,Cn/=2,xr/=2}function xn(yn,Kn){return qr===1?yn[Kn]:yn.readUInt16BE(Kn*qr)}var fn;if(Vr){var bn=-1;for(fn=xr;fnrn&&(xr=rn-Cn),fn=xr;fn>=0;fn--){for(var Un=!0,_i=0;_iVr&&(Pr=Vr)):Pr=Vr;var qr=ur.length;Pr>qr/2&&(Pr=qr/2);var rn;for(rn=0;rn>>0,isFinite(Pr)?(Pr=Pr>>>0,Vr===void 0&&(Vr="utf8")):(Vr=Pr,Pr=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var qr=this.length-xr;if((Pr===void 0||Pr>qr)&&(Pr=qr),ur.length>0&&(Pr<0||xr<0)||xr>this.length)throw new RangeError("Attempt to write outside buffer bounds");Vr||(Vr="utf8");for(var rn=!1;;)switch(Vr){case"hex":return Yt(this,ur,xr,Pr);case"utf8":case"utf-8":return rr(this,ur,xr,Pr);case"ascii":case"latin1":case"binary":return jt(this,ur,xr,Pr);case"base64":return ar(this,ur,xr,Pr);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return sr(this,ur,xr,Pr);default:if(rn)throw new TypeError("Unknown encoding: "+Vr);Vr=(""+Vr).toLowerCase(),rn=!0}},It.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Zt(Sr,ur,xr){return ur===0&&xr===Sr.length?_t.fromByteArray(Sr):_t.fromByteArray(Sr.slice(ur,xr))}function Kt(Sr,ur,xr){xr=Math.min(Sr.length,xr);for(var Pr=[],Vr=ur;Vr239?4:qr>223?3:qr>191?2:1;if(Vr+Cn<=xr){var xn=void 0,fn=void 0,bn=void 0,Un=void 0;switch(Cn){case 1:qr<128&&(rn=qr);break;case 2:xn=Sr[Vr+1],(xn&192)===128&&(Un=(qr&31)<<6|xn&63,Un>127&&(rn=Un));break;case 3:xn=Sr[Vr+1],fn=Sr[Vr+2],(xn&192)===128&&(fn&192)===128&&(Un=(qr&15)<<12|(xn&63)<<6|fn&63,Un>2047&&(Un<55296||Un>57343)&&(rn=Un));break;case 4:xn=Sr[Vr+1],fn=Sr[Vr+2],bn=Sr[Vr+3],(xn&192)===128&&(fn&192)===128&&(bn&192)===128&&(Un=(qr&15)<<18|(xn&63)<<12|(fn&63)<<6|bn&63,Un>65535&&Un<1114112&&(rn=Un))}}rn===null?(rn=65533,Cn=1):rn>65535&&(rn-=65536,Pr.push(rn>>>10&1023|55296),rn=56320|rn&1023),Pr.push(rn),Vr+=Cn}return tr(Pr)}var or=4096;function tr(Sr){var ur=Sr.length;if(ur<=or)return String.fromCharCode.apply(String,Sr);for(var xr="",Pr=0;PrPr)&&(xr=Pr);for(var Vr="",qr=ur;qrPr&&(ur=Pr),xr<0?(xr+=Pr,xr<0&&(xr=0)):xr>Pr&&(xr=Pr),xrxr)throw new RangeError("Trying to access beyond buffer length")}It.prototype.readUintLE=It.prototype.readUIntLE=function(ur,xr,Pr){ur=ur>>>0,xr=xr>>>0,Pr||Ir(ur,xr,this.length);for(var Vr=this[ur],qr=1,rn=0;++rn>>0,xr=xr>>>0,Pr||Ir(ur,xr,this.length);for(var Vr=this[ur+--xr],qr=1;xr>0&&(qr*=256);)Vr+=this[ur+--xr]*qr;return Vr},It.prototype.readUint8=It.prototype.readUInt8=function(ur,xr){return ur=ur>>>0,xr||Ir(ur,1,this.length),this[ur]},It.prototype.readUint16LE=It.prototype.readUInt16LE=function(ur,xr){return ur=ur>>>0,xr||Ir(ur,2,this.length),this[ur]|this[ur+1]<<8},It.prototype.readUint16BE=It.prototype.readUInt16BE=function(ur,xr){return ur=ur>>>0,xr||Ir(ur,2,this.length),this[ur]<<8|this[ur+1]},It.prototype.readUint32LE=It.prototype.readUInt32LE=function(ur,xr){return ur=ur>>>0,xr||Ir(ur,4,this.length),(this[ur]|this[ur+1]<<8|this[ur+2]<<16)+this[ur+3]*16777216},It.prototype.readUint32BE=It.prototype.readUInt32BE=function(ur,xr){return ur=ur>>>0,xr||Ir(ur,4,this.length),this[ur]*16777216+(this[ur+1]<<16|this[ur+2]<<8|this[ur+3])},It.prototype.readBigUInt64LE=pr(function(ur){ur=ur>>>0,en(ur,"offset");var xr=this[ur],Pr=this[ur+7];(xr===void 0||Pr===void 0)&&Xr(ur,this.length-8);var Vr=xr+this[++ur]*Math.pow(2,8)+this[++ur]*Math.pow(2,16)+this[++ur]*Math.pow(2,24),qr=this[++ur]+this[++ur]*Math.pow(2,8)+this[++ur]*Math.pow(2,16)+Pr*Math.pow(2,24);return BigInt(Vr)+(BigInt(qr)<>>0,en(ur,"offset");var xr=this[ur],Pr=this[ur+7];(xr===void 0||Pr===void 0)&&Xr(ur,this.length-8);var Vr=xr*Math.pow(2,24)+this[++ur]*Math.pow(2,16)+this[++ur]*Math.pow(2,8)+this[++ur],qr=this[++ur]*Math.pow(2,24)+this[++ur]*Math.pow(2,16)+this[++ur]*Math.pow(2,8)+Pr;return(BigInt(Vr)<>>0,xr=xr>>>0,Pr||Ir(ur,xr,this.length);for(var Vr=this[ur],qr=1,rn=0;++rn=qr&&(Vr-=Math.pow(2,8*xr)),Vr},It.prototype.readIntBE=function(ur,xr,Pr){ur=ur>>>0,xr=xr>>>0,Pr||Ir(ur,xr,this.length);for(var Vr=xr,qr=1,rn=this[ur+--Vr];Vr>0&&(qr*=256);)rn+=this[ur+--Vr]*qr;return qr*=128,rn>=qr&&(rn-=Math.pow(2,8*xr)),rn},It.prototype.readInt8=function(ur,xr){return ur=ur>>>0,xr||Ir(ur,1,this.length),this[ur]&128?(255-this[ur]+1)*-1:this[ur]},It.prototype.readInt16LE=function(ur,xr){ur=ur>>>0,xr||Ir(ur,2,this.length);var Pr=this[ur]|this[ur+1]<<8;return Pr&32768?Pr|4294901760:Pr},It.prototype.readInt16BE=function(ur,xr){ur=ur>>>0,xr||Ir(ur,2,this.length);var Pr=this[ur+1]|this[ur]<<8;return Pr&32768?Pr|4294901760:Pr},It.prototype.readInt32LE=function(ur,xr){return ur=ur>>>0,xr||Ir(ur,4,this.length),this[ur]|this[ur+1]<<8|this[ur+2]<<16|this[ur+3]<<24},It.prototype.readInt32BE=function(ur,xr){return ur=ur>>>0,xr||Ir(ur,4,this.length),this[ur]<<24|this[ur+1]<<16|this[ur+2]<<8|this[ur+3]},It.prototype.readBigInt64LE=pr(function(ur){ur=ur>>>0,en(ur,"offset");var xr=this[ur],Pr=this[ur+7];(xr===void 0||Pr===void 0)&&Xr(ur,this.length-8);var Vr=this[ur+4]+this[ur+5]*Math.pow(2,8)+this[ur+6]*Math.pow(2,16)+(Pr<<24);return(BigInt(Vr)<>>0,en(ur,"offset");var xr=this[ur],Pr=this[ur+7];(xr===void 0||Pr===void 0)&&Xr(ur,this.length-8);var Vr=(xr<<24)+this[++ur]*Math.pow(2,16)+this[++ur]*Math.pow(2,8)+this[++ur];return(BigInt(Vr)<>>0,xr||Ir(ur,4,this.length),Mt.read(this,ur,!0,23,4)},It.prototype.readFloatBE=function(ur,xr){return ur=ur>>>0,xr||Ir(ur,4,this.length),Mt.read(this,ur,!1,23,4)},It.prototype.readDoubleLE=function(ur,xr){return ur=ur>>>0,xr||Ir(ur,8,this.length),Mt.read(this,ur,!0,52,8)},It.prototype.readDoubleBE=function(ur,xr){return ur=ur>>>0,xr||Ir(ur,8,this.length),Mt.read(this,ur,!1,52,8)};function Tr(Sr,ur,xr,Pr,Vr,qr){if(!It.isBuffer(Sr))throw new TypeError('"buffer" argument must be a Buffer instance');if(ur>Vr||urSr.length)throw new RangeError("Index out of range")}It.prototype.writeUintLE=It.prototype.writeUIntLE=function(ur,xr,Pr,Vr){if(ur=+ur,xr=xr>>>0,Pr=Pr>>>0,!Vr){var qr=Math.pow(2,8*Pr)-1;Tr(this,ur,xr,Pr,qr,0)}var rn=1,Cn=0;for(this[xr]=ur&255;++Cn>>0,Pr=Pr>>>0,!Vr){var qr=Math.pow(2,8*Pr)-1;Tr(this,ur,xr,Pr,qr,0)}var rn=Pr-1,Cn=1;for(this[xr+rn]=ur&255;--rn>=0&&(Cn*=256);)this[xr+rn]=ur/Cn&255;return xr+Pr},It.prototype.writeUint8=It.prototype.writeUInt8=function(ur,xr,Pr){return ur=+ur,xr=xr>>>0,Pr||Tr(this,ur,xr,1,255,0),this[xr]=ur&255,xr+1},It.prototype.writeUint16LE=It.prototype.writeUInt16LE=function(ur,xr,Pr){return ur=+ur,xr=xr>>>0,Pr||Tr(this,ur,xr,2,65535,0),this[xr]=ur&255,this[xr+1]=ur>>>8,xr+2},It.prototype.writeUint16BE=It.prototype.writeUInt16BE=function(ur,xr,Pr){return ur=+ur,xr=xr>>>0,Pr||Tr(this,ur,xr,2,65535,0),this[xr]=ur>>>8,this[xr+1]=ur&255,xr+2},It.prototype.writeUint32LE=It.prototype.writeUInt32LE=function(ur,xr,Pr){return ur=+ur,xr=xr>>>0,Pr||Tr(this,ur,xr,4,4294967295,0),this[xr+3]=ur>>>24,this[xr+2]=ur>>>16,this[xr+1]=ur>>>8,this[xr]=ur&255,xr+4},It.prototype.writeUint32BE=It.prototype.writeUInt32BE=function(ur,xr,Pr){return ur=+ur,xr=xr>>>0,Pr||Tr(this,ur,xr,4,4294967295,0),this[xr]=ur>>>24,this[xr+1]=ur>>>16,this[xr+2]=ur>>>8,this[xr+3]=ur&255,xr+4};function _r(Sr,ur,xr,Pr,Vr){un(ur,Pr,Vr,Sr,xr,7);var qr=Number(ur&BigInt(4294967295));Sr[xr++]=qr,qr=qr>>8,Sr[xr++]=qr,qr=qr>>8,Sr[xr++]=qr,qr=qr>>8,Sr[xr++]=qr;var rn=Number(ur>>BigInt(32)&BigInt(4294967295));return Sr[xr++]=rn,rn=rn>>8,Sr[xr++]=rn,rn=rn>>8,Sr[xr++]=rn,rn=rn>>8,Sr[xr++]=rn,xr}function Er(Sr,ur,xr,Pr,Vr){un(ur,Pr,Vr,Sr,xr,7);var qr=Number(ur&BigInt(4294967295));Sr[xr+7]=qr,qr=qr>>8,Sr[xr+6]=qr,qr=qr>>8,Sr[xr+5]=qr,qr=qr>>8,Sr[xr+4]=qr;var rn=Number(ur>>BigInt(32)&BigInt(4294967295));return Sr[xr+3]=rn,rn=rn>>8,Sr[xr+2]=rn,rn=rn>>8,Sr[xr+1]=rn,rn=rn>>8,Sr[xr]=rn,xr+8}It.prototype.writeBigUInt64LE=pr(function(ur){var xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return _r(this,ur,xr,BigInt(0),BigInt("0xffffffffffffffff"))}),It.prototype.writeBigUInt64BE=pr(function(ur){var xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Er(this,ur,xr,BigInt(0),BigInt("0xffffffffffffffff"))}),It.prototype.writeIntLE=function(ur,xr,Pr,Vr){if(ur=+ur,xr=xr>>>0,!Vr){var qr=Math.pow(2,8*Pr-1);Tr(this,ur,xr,Pr,qr-1,-qr)}var rn=0,Cn=1,xn=0;for(this[xr]=ur&255;++rn>0)-xn&255;return xr+Pr},It.prototype.writeIntBE=function(ur,xr,Pr,Vr){if(ur=+ur,xr=xr>>>0,!Vr){var qr=Math.pow(2,8*Pr-1);Tr(this,ur,xr,Pr,qr-1,-qr)}var rn=Pr-1,Cn=1,xn=0;for(this[xr+rn]=ur&255;--rn>=0&&(Cn*=256);)ur<0&&xn===0&&this[xr+rn+1]!==0&&(xn=1),this[xr+rn]=(ur/Cn>>0)-xn&255;return xr+Pr},It.prototype.writeInt8=function(ur,xr,Pr){return ur=+ur,xr=xr>>>0,Pr||Tr(this,ur,xr,1,127,-128),ur<0&&(ur=255+ur+1),this[xr]=ur&255,xr+1},It.prototype.writeInt16LE=function(ur,xr,Pr){return ur=+ur,xr=xr>>>0,Pr||Tr(this,ur,xr,2,32767,-32768),this[xr]=ur&255,this[xr+1]=ur>>>8,xr+2},It.prototype.writeInt16BE=function(ur,xr,Pr){return ur=+ur,xr=xr>>>0,Pr||Tr(this,ur,xr,2,32767,-32768),this[xr]=ur>>>8,this[xr+1]=ur&255,xr+2},It.prototype.writeInt32LE=function(ur,xr,Pr){return ur=+ur,xr=xr>>>0,Pr||Tr(this,ur,xr,4,2147483647,-2147483648),this[xr]=ur&255,this[xr+1]=ur>>>8,this[xr+2]=ur>>>16,this[xr+3]=ur>>>24,xr+4},It.prototype.writeInt32BE=function(ur,xr,Pr){return ur=+ur,xr=xr>>>0,Pr||Tr(this,ur,xr,4,2147483647,-2147483648),ur<0&&(ur=4294967295+ur+1),this[xr]=ur>>>24,this[xr+1]=ur>>>16,this[xr+2]=ur>>>8,this[xr+3]=ur&255,xr+4},It.prototype.writeBigInt64LE=pr(function(ur){var xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return _r(this,ur,xr,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),It.prototype.writeBigInt64BE=pr(function(ur){var xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Er(this,ur,xr,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Rr(Sr,ur,xr,Pr,Vr,qr){if(xr+Pr>Sr.length)throw new RangeError("Index out of range");if(xr<0)throw new RangeError("Index out of range")}function zr(Sr,ur,xr,Pr,Vr){return ur=+ur,xr=xr>>>0,Vr||Rr(Sr,ur,xr,4),Mt.write(Sr,ur,xr,Pr,23,4),xr+4}It.prototype.writeFloatLE=function(ur,xr,Pr){return zr(this,ur,xr,!0,Pr)},It.prototype.writeFloatBE=function(ur,xr,Pr){return zr(this,ur,xr,!1,Pr)};function Or(Sr,ur,xr,Pr,Vr){return ur=+ur,xr=xr>>>0,Vr||Rr(Sr,ur,xr,8),Mt.write(Sr,ur,xr,Pr,52,8),xr+8}It.prototype.writeDoubleLE=function(ur,xr,Pr){return Or(this,ur,xr,!0,Pr)},It.prototype.writeDoubleBE=function(ur,xr,Pr){return Or(this,ur,xr,!1,Pr)},It.prototype.copy=function(ur,xr,Pr,Vr){if(!It.isBuffer(ur))throw new TypeError("argument should be a Buffer");if(Pr||(Pr=0),!Vr&&Vr!==0&&(Vr=this.length),xr>=ur.length&&(xr=ur.length),xr||(xr=0),Vr>0&&Vr=this.length)throw new RangeError("Index out of range");if(Vr<0)throw new RangeError("sourceEnd out of bounds");Vr>this.length&&(Vr=this.length),ur.length-xr>>0,Pr=Pr===void 0?this.length:Pr>>>0,ur||(ur=0);var rn;if(typeof ur=="number")for(rn=xr;rnMath.pow(2,32)?Vr=Qr(String(xr)):typeof xr=="bigint"&&(Vr=String(xr),(xr>Math.pow(BigInt(2),BigInt(32))||xr<-Math.pow(BigInt(2),BigInt(32)))&&(Vr=Qr(Vr)),Vr+="n"),Pr+=" It must be ".concat(ur,". Received ").concat(Vr),Pr},RangeError);function Qr(Sr){for(var ur="",xr=Sr.length,Pr=Sr[0]==="-"?1:0;xr>=Pr+4;xr-=3)ur="_".concat(Sr.slice(xr-3,xr)).concat(ur);return"".concat(Sr.slice(0,xr)).concat(ur)}function sn(Sr,ur,xr){en(ur,"offset"),(Sr[ur]===void 0||Sr[ur+xr]===void 0)&&Xr(ur,Sr.length-(xr+1))}function un(Sr,ur,xr,Pr,Vr,qr){if(Sr>xr||Sr3?ur===0||ur===BigInt(0)?Cn=">= 0".concat(rn," and < 2").concat(rn," ** ").concat((qr+1)*8).concat(rn):Cn=">= -(2".concat(rn," ** ").concat((qr+1)*8-1).concat(rn,") and < 2 ** ")+"".concat((qr+1)*8-1).concat(rn):Cn=">= ".concat(ur).concat(rn," and <= ").concat(xr).concat(rn),new kr.ERR_OUT_OF_RANGE("value",Cn,Sr)}sn(Pr,Vr,qr)}function en(Sr,ur){if(typeof Sr!="number")throw new kr.ERR_INVALID_ARG_TYPE(ur,"number",Sr)}function Xr(Sr,ur,xr){throw Math.floor(Sr)!==Sr?(en(Sr,xr),new kr.ERR_OUT_OF_RANGE(xr||"offset","an integer",Sr)):ur<0?new kr.ERR_BUFFER_OUT_OF_BOUNDS:new kr.ERR_OUT_OF_RANGE(xr||"offset",">= ".concat(xr?1:0," and <= ").concat(ur),Sr)}var ln=/[^+/0-9A-Za-z-_]/g;function mn(Sr){if(Sr=Sr.split("=")[0],Sr=Sr.trim().replace(ln,""),Sr.length<2)return"";for(;Sr.length%4!==0;)Sr=Sr+"=";return Sr}function pn(Sr,ur){ur=ur||1/0;for(var xr,Pr=Sr.length,Vr=null,qr=[],rn=0;rn55295&&xr<57344){if(!Vr){if(xr>56319){(ur-=3)>-1&&qr.push(239,191,189);continue}else if(rn+1===Pr){(ur-=3)>-1&&qr.push(239,191,189);continue}Vr=xr;continue}if(xr<56320){(ur-=3)>-1&&qr.push(239,191,189),Vr=xr;continue}xr=(Vr-55296<<10|xr-56320)+65536}else Vr&&(ur-=3)>-1&&qr.push(239,191,189);if(Vr=null,xr<128){if((ur-=1)<0)break;qr.push(xr)}else if(xr<2048){if((ur-=2)<0)break;qr.push(xr>>6|192,xr&63|128)}else if(xr<65536){if((ur-=3)<0)break;qr.push(xr>>12|224,xr>>6&63|128,xr&63|128)}else if(xr<1114112){if((ur-=4)<0)break;qr.push(xr>>18|240,xr>>12&63|128,xr>>6&63|128,xr&63|128)}else throw new Error("Invalid code point")}return qr}function Tn(Sr){for(var ur=[],xr=0;xr>8,Vr=xr%256,qr.push(Vr),qr.push(Pr);return qr}function Fr(Sr){return _t.toByteArray(mn(Sr))}function Ur(Sr,ur,xr,Pr){var Vr;for(Vr=0;Vr=ur.length||Vr>=Sr.length);++Vr)ur[Vr+xr]=Sr[Vr];return Vr}function Wr(Sr,ur){return Sr instanceof ur||Sr!=null&&Sr.constructor!=null&&Sr.constructor.name!=null&&Sr.constructor.name===ur.name}function Gr(Sr){return Sr!==Sr}var wr=function(){for(var Sr="0123456789abcdef",ur=new Array(256),xr=0;xr<16;++xr)for(var Pr=xr*16,Vr=0;Vr<16;++Vr)ur[Pr+Vr]=Sr[xr]+Sr[Vr];return ur}();function pr(Sr){return typeof BigInt>"u"?Dr:Sr}function Dr(){throw new Error("BigInt not supported")}},9216:function(ut){ut.exports=rt,ut.exports.isMobile=rt,ut.exports.default=rt;var ht=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,j=/CrOS/,_=/android|ipad|playbook|silk/i;function rt(tt){tt||(tt={});var st=tt.ua;if(!st&&typeof navigator<"u"&&(st=navigator.userAgent),st&&st.headers&&typeof st.headers["user-agent"]=="string"&&(st=st.headers["user-agent"]),typeof st!="string")return!1;var ot=ht.test(st)&&!j.test(st)||!!tt.tablet&&_.test(st);return!ot&&tt.tablet&&tt.featureDetect&&navigator&&navigator.maxTouchPoints>1&&st.indexOf("Macintosh")!==-1&&st.indexOf("Safari")!==-1&&(ot=!0),ot}},6296:function(ut,ht,j){ut.exports=nt;var _=j(7261),rt=j(9977),tt=j(4192);function st(vt,dt){this._controllerNames=Object.keys(vt),this._controllerList=this._controllerNames.map(function(bt){return vt[bt]}),this._mode=dt,this._active=vt[dt],this._active||(this._mode="turntable",this._active=vt.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var ot=st.prototype;ot.flush=function(vt){for(var dt=this._controllerList,bt=0;bt"u"?j(1538):WeakMap,rt=j(2762),tt=j(8116),st=new _;function ot(nt){var vt=st.get(nt),dt=vt&&(vt._triangleBuffer.handle||vt._triangleBuffer.buffer);if(!dt||!nt.isBuffer(dt)){var bt=rt(nt,new Float32Array([-1,-1,-1,4,4,-1]));vt=tt(nt,[{buffer:bt,type:nt.FLOAT,size:2}]),vt._triangleBuffer=bt,st.set(nt,vt)}vt.bind(),nt.drawArrays(nt.TRIANGLES,0,3),vt.unbind()}ut.exports=ot},1085:function(ut,ht,j){var _=j(1371);ut.exports=rt;function rt(tt,st,ot){st=typeof st=="number"?st:1,ot=ot||": ";var nt=tt.split(/\r?\n/),vt=String(nt.length+st-1).length;return nt.map(function(dt,bt){var ft=bt+st,at=String(ft).length,mt=_(ft,vt-at);return mt+ot+dt}).join(` +`)}},3952:function(ut,ht,j){ut.exports=tt;var _=j(3250);function rt(st,ot){for(var nt=new Array(ot+1),vt=0;vt0)throw new Error("Invalid string. Length must be a multiple of 4");var Mt=St.indexOf("=");Mt===-1&&(Mt=_t);var Et=Mt===_t?0:4-Mt%4;return[Mt,Et]}function vt(St){var _t=nt(St),Mt=_t[0],Et=_t[1];return(Mt+Et)*3/4-Et}function dt(St,_t,Mt){return(_t+Mt)*3/4-Mt}function bt(St){var _t,Mt=nt(St),Et=Mt[0],kt=Mt[1],wt=new rt(dt(St,Et,kt)),ct=0,It=kt>0?Et-4:Et,At;for(At=0;At>16&255,wt[ct++]=_t>>8&255,wt[ct++]=_t&255;return kt===2&&(_t=_[St.charCodeAt(At)]<<2|_[St.charCodeAt(At+1)]>>4,wt[ct++]=_t&255),kt===1&&(_t=_[St.charCodeAt(At)]<<10|_[St.charCodeAt(At+1)]<<4|_[St.charCodeAt(At+2)]>>2,wt[ct++]=_t>>8&255,wt[ct++]=_t&255),wt}function ft(St){return j[St>>18&63]+j[St>>12&63]+j[St>>6&63]+j[St&63]}function at(St,_t,Mt){for(var Et,kt=[],wt=_t;wtIt?It:ct+wt));return Et===1?(_t=St[Mt-1],kt.push(j[_t>>2]+j[_t<<4&63]+"==")):Et===2&&(_t=(St[Mt-2]<<8)+St[Mt-1],kt.push(j[_t>>10]+j[_t>>4&63]+j[_t<<2&63]+"=")),kt.join("")}},3865:function(ut,ht,j){var _=j(869);ut.exports=rt;function rt(tt,st){return _(tt[0].mul(st[1]).add(st[0].mul(tt[1])),tt[1].mul(st[1]))}},1318:function(ut){ut.exports=ht;function ht(j,_){return j[0].mul(_[1]).cmp(_[0].mul(j[1]))}},8697:function(ut,ht,j){var _=j(869);ut.exports=rt;function rt(tt,st){return _(tt[0].mul(st[1]),tt[1].mul(st[0]))}},7842:function(ut,ht,j){var _=j(6330),rt=j(1533),tt=j(2651),st=j(4387),ot=j(869),nt=j(8697);ut.exports=vt;function vt(dt,bt){if(_(dt))return bt?nt(dt,vt(bt)):[dt[0].clone(),dt[1].clone()];var ft=0,at,mt;if(rt(dt))at=dt.clone();else if(typeof dt=="string")at=st(dt);else{if(dt===0)return[tt(0),tt(1)];if(dt===Math.floor(dt))at=tt(dt);else{for(;dt!==Math.floor(dt);)dt=dt*Math.pow(2,256),ft-=256;at=tt(dt)}}if(_(bt))at.mul(bt[1]),mt=bt[0].clone();else if(rt(bt))mt=bt.clone();else if(typeof bt=="string")mt=st(bt);else if(!bt)mt=tt(1);else if(bt===Math.floor(bt))mt=tt(bt);else{for(;bt!==Math.floor(bt);)bt=bt*Math.pow(2,256),ft+=256;mt=tt(bt)}return ft>0?at=at.ushln(ft):ft<0&&(mt=mt.ushln(-ft)),ot(at,mt)}},6330:function(ut,ht,j){var _=j(1533);ut.exports=rt;function rt(tt){return Array.isArray(tt)&&tt.length===2&&_(tt[0])&&_(tt[1])}},5716:function(ut,ht,j){var _=j(6859);ut.exports=rt;function rt(tt){return tt.cmp(new _(0))}},1369:function(ut,ht,j){var _=j(5716);ut.exports=rt;function rt(tt){var st=tt.length,ot=tt.words,nt=0;if(st===1)nt=ot[0];else if(st===2)nt=ot[0]+ot[1]*67108864;else for(var vt=0;vt20?52:nt+32}},1533:function(ut,ht,j){j(6859),ut.exports=_;function _(rt){return rt&&typeof rt=="object"&&Boolean(rt.words)}},2651:function(ut,ht,j){var _=j(6859),rt=j(2361);ut.exports=tt;function tt(st){var ot=rt.exponent(st);return ot<52?new _(st):new _(st*Math.pow(2,52-ot)).ushln(ot-52)}},869:function(ut,ht,j){var _=j(2651),rt=j(5716);ut.exports=tt;function tt(st,ot){var nt=rt(st),vt=rt(ot);if(nt===0)return[_(0),_(1)];if(vt===0)return[_(0),_(0)];vt<0&&(st=st.neg(),ot=ot.neg());var dt=st.gcd(ot);return dt.cmpn(1)?[st.div(dt),ot.div(dt)]:[st,ot]}},4387:function(ut,ht,j){var _=j(6859);ut.exports=rt;function rt(tt){return new _(tt)}},6504:function(ut,ht,j){var _=j(869);ut.exports=rt;function rt(tt,st){return _(tt[0].mul(st[0]),tt[1].mul(st[1]))}},7721:function(ut,ht,j){var _=j(5716);ut.exports=rt;function rt(tt){return _(tt[0])*_(tt[1])}},5572:function(ut,ht,j){var _=j(869);ut.exports=rt;function rt(tt,st){return _(tt[0].mul(st[1]).sub(tt[1].mul(st[0])),tt[1].mul(st[1]))}},946:function(ut,ht,j){var _=j(1369),rt=j(4025);ut.exports=tt;function tt(st){var ot=st[0],nt=st[1];if(ot.cmpn(0)===0)return 0;var vt=ot.abs().divmod(nt.abs()),dt=vt.div,bt=_(dt),ft=vt.mod,at=ot.negative!==nt.negative?-1:1;if(ft.cmpn(0)===0)return at*bt;if(bt){var mt=rt(bt)+4,St=_(ft.ushln(mt).divRound(nt));return at*(bt+St*Math.pow(2,-mt))}else{var _t=nt.bitLength()-ft.bitLength()+53,St=_(ft.ushln(_t).divRound(nt));return _t<1023?at*St*Math.pow(2,-_t):(St*=Math.pow(2,-1023),at*St*Math.pow(2,1023-_t))}}},2478:function(ut){function ht(ot,nt,vt,dt,bt){for(var ft=bt+1;dt<=bt;){var at=dt+bt>>>1,mt=ot[at],St=vt!==void 0?vt(mt,nt):mt-nt;St>=0?(ft=at,bt=at-1):dt=at+1}return ft}function j(ot,nt,vt,dt,bt){for(var ft=bt+1;dt<=bt;){var at=dt+bt>>>1,mt=ot[at],St=vt!==void 0?vt(mt,nt):mt-nt;St>0?(ft=at,bt=at-1):dt=at+1}return ft}function _(ot,nt,vt,dt,bt){for(var ft=dt-1;dt<=bt;){var at=dt+bt>>>1,mt=ot[at],St=vt!==void 0?vt(mt,nt):mt-nt;St<0?(ft=at,dt=at+1):bt=at-1}return ft}function rt(ot,nt,vt,dt,bt){for(var ft=dt-1;dt<=bt;){var at=dt+bt>>>1,mt=ot[at],St=vt!==void 0?vt(mt,nt):mt-nt;St<=0?(ft=at,dt=at+1):bt=at-1}return ft}function tt(ot,nt,vt,dt,bt){for(;dt<=bt;){var ft=dt+bt>>>1,at=ot[ft],mt=vt!==void 0?vt(at,nt):at-nt;if(mt===0)return ft;mt<=0?dt=ft+1:bt=ft-1}return-1}function st(ot,nt,vt,dt,bt,ft){return typeof vt=="function"?ft(ot,nt,vt,dt===void 0?0:dt|0,bt===void 0?ot.length-1:bt|0):ft(ot,nt,void 0,vt===void 0?0:vt|0,dt===void 0?ot.length-1:dt|0)}ut.exports={ge:function(ot,nt,vt,dt,bt){return st(ot,nt,vt,dt,bt,ht)},gt:function(ot,nt,vt,dt,bt){return st(ot,nt,vt,dt,bt,j)},lt:function(ot,nt,vt,dt,bt){return st(ot,nt,vt,dt,bt,_)},le:function(ot,nt,vt,dt,bt){return st(ot,nt,vt,dt,bt,rt)},eq:function(ot,nt,vt,dt,bt){return st(ot,nt,vt,dt,bt,tt)}}},8828:function(ut,ht){var j=32;ht.INT_BITS=j,ht.INT_MAX=2147483647,ht.INT_MIN=-1<0)-(tt<0)},ht.abs=function(tt){var st=tt>>j-1;return(tt^st)-st},ht.min=function(tt,st){return st^(tt^st)&-(tt65535)<<4,tt>>>=st,ot=(tt>255)<<3,tt>>>=ot,st|=ot,ot=(tt>15)<<2,tt>>>=ot,st|=ot,ot=(tt>3)<<1,tt>>>=ot,st|=ot,st|tt>>1},ht.log10=function(tt){return tt>=1e9?9:tt>=1e8?8:tt>=1e7?7:tt>=1e6?6:tt>=1e5?5:tt>=1e4?4:tt>=1e3?3:tt>=100?2:tt>=10?1:0},ht.popCount=function(tt){return tt=tt-(tt>>>1&1431655765),tt=(tt&858993459)+(tt>>>2&858993459),(tt+(tt>>>4)&252645135)*16843009>>>24};function _(tt){var st=32;return tt&=-tt,tt&&st--,tt&65535&&(st-=16),tt&16711935&&(st-=8),tt&252645135&&(st-=4),tt&858993459&&(st-=2),tt&1431655765&&(st-=1),st}ht.countTrailingZeros=_,ht.nextPow2=function(tt){return tt+=tt===0,--tt,tt|=tt>>>1,tt|=tt>>>2,tt|=tt>>>4,tt|=tt>>>8,tt|=tt>>>16,tt+1},ht.prevPow2=function(tt){return tt|=tt>>>1,tt|=tt>>>2,tt|=tt>>>4,tt|=tt>>>8,tt|=tt>>>16,tt-(tt>>>1)},ht.parity=function(tt){return tt^=tt>>>16,tt^=tt>>>8,tt^=tt>>>4,tt&=15,27030>>>tt&1};var rt=new Array(256);(function(tt){for(var st=0;st<256;++st){var ot=st,nt=st,vt=7;for(ot>>>=1;ot;ot>>>=1)nt<<=1,nt|=ot&1,--vt;tt[st]=nt<>>8&255]<<16|rt[tt>>>16&255]<<8|rt[tt>>>24&255]},ht.interleave2=function(tt,st){return tt&=65535,tt=(tt|tt<<8)&16711935,tt=(tt|tt<<4)&252645135,tt=(tt|tt<<2)&858993459,tt=(tt|tt<<1)&1431655765,st&=65535,st=(st|st<<8)&16711935,st=(st|st<<4)&252645135,st=(st|st<<2)&858993459,st=(st|st<<1)&1431655765,tt|st<<1},ht.deinterleave2=function(tt,st){return tt=tt>>>st&1431655765,tt=(tt|tt>>>1)&858993459,tt=(tt|tt>>>2)&252645135,tt=(tt|tt>>>4)&16711935,tt=(tt|tt>>>16)&65535,tt<<16>>16},ht.interleave3=function(tt,st,ot){return tt&=1023,tt=(tt|tt<<16)&4278190335,tt=(tt|tt<<8)&251719695,tt=(tt|tt<<4)&3272356035,tt=(tt|tt<<2)&1227133513,st&=1023,st=(st|st<<16)&4278190335,st=(st|st<<8)&251719695,st=(st|st<<4)&3272356035,st=(st|st<<2)&1227133513,tt|=st<<1,ot&=1023,ot=(ot|ot<<16)&4278190335,ot=(ot|ot<<8)&251719695,ot=(ot|ot<<4)&3272356035,ot=(ot|ot<<2)&1227133513,tt|ot<<2},ht.deinterleave3=function(tt,st){return tt=tt>>>st&1227133513,tt=(tt|tt>>>2)&3272356035,tt=(tt|tt>>>4)&251719695,tt=(tt|tt>>>8)&4278190335,tt=(tt|tt>>>16)&1023,tt<<22>>22},ht.nextCombination=function(tt){var st=tt|tt-1;return st+1|(~st&-~st)-1>>>_(tt)+1}},6859:function(ut,ht,j){ut=j.nmd(ut),function(_,rt){function tt($t,Ut){if(!$t)throw new Error(Ut||"Assertion failed")}function st($t,Ut){$t.super_=Ut;var Ht=function(){};Ht.prototype=Ut.prototype,$t.prototype=new Ht,$t.prototype.constructor=$t}function ot($t,Ut,Ht){if(ot.isBN($t))return $t;this.negative=0,this.words=null,this.length=0,this.red=null,$t!==null&&((Ut==="le"||Ut==="be")&&(Ht=Ut,Ut=10),this._init($t||0,Ut||10,Ht||"be"))}typeof _=="object"?_.exports=ot:rt.BN=ot,ot.BN=ot,ot.wordSize=26;var nt;try{typeof window<"u"&&typeof window.Buffer<"u"?nt=window.Buffer:nt=j(7790).Buffer}catch{}ot.isBN=function(Ut){return Ut instanceof ot?!0:Ut!==null&&typeof Ut=="object"&&Ut.constructor.wordSize===ot.wordSize&&Array.isArray(Ut.words)},ot.max=function(Ut,Ht){return Ut.cmp(Ht)>0?Ut:Ht},ot.min=function(Ut,Ht){return Ut.cmp(Ht)<0?Ut:Ht},ot.prototype._init=function(Ut,Ht,Vt){if(typeof Ut=="number")return this._initNumber(Ut,Ht,Vt);if(typeof Ut=="object")return this._initArray(Ut,Ht,Vt);Ht==="hex"&&(Ht=16),tt(Ht===(Ht|0)&&Ht>=2&&Ht<=36),Ut=Ut.toString().replace(/\s+/g,"");var Xt=0;Ut[0]==="-"&&(Xt++,this.negative=1),Xt=0;Xt-=3)er=Ut[Xt]|Ut[Xt-1]<<8|Ut[Xt-2]<<16,this.words[qt]|=er<>>26-lr&67108863,lr+=24,lr>=26&&(lr-=26,qt++);else if(Vt==="le")for(Xt=0,qt=0;Xt>>26-lr&67108863,lr+=24,lr>=26&&(lr-=26,qt++);return this.strip()};function vt($t,Ut){var Ht=$t.charCodeAt(Ut);return Ht>=65&&Ht<=70?Ht-55:Ht>=97&&Ht<=102?Ht-87:Ht-48&15}function dt($t,Ut,Ht){var Vt=vt($t,Ht);return Ht-1>=Ut&&(Vt|=vt($t,Ht-1)<<4),Vt}ot.prototype._parseHex=function(Ut,Ht,Vt){this.length=Math.ceil((Ut.length-Ht)/6),this.words=new Array(this.length);for(var Xt=0;Xt=Ht;Xt-=2)lr=dt(Ut,Ht,Xt)<=18?(qt-=18,er+=1,this.words[er]|=lr>>>26):qt+=8;else{var Jt=Ut.length-Ht;for(Xt=Jt%2===0?Ht+1:Ht;Xt=18?(qt-=18,er+=1,this.words[er]|=lr>>>26):qt+=8}this.strip()};function bt($t,Ut,Ht,Vt){for(var Xt=0,qt=Math.min($t.length,Ht),er=Ut;er=49?Xt+=lr-49+10:lr>=17?Xt+=lr-17+10:Xt+=lr}return Xt}ot.prototype._parseBase=function(Ut,Ht,Vt){this.words=[0],this.length=1;for(var Xt=0,qt=1;qt<=67108863;qt*=Ht)Xt++;Xt--,qt=qt/Ht|0;for(var er=Ut.length-Vt,lr=er%Xt,Jt=Math.min(er,er-lr)+Vt,Yt=0,rr=Vt;rr1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},ot.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},ot.prototype.inspect=function(){return(this.red?""};var ft=["","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"],at=[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],mt=[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];ot.prototype.toString=function(Ut,Ht){Ut=Ut||10,Ht=Ht|0||1;var Vt;if(Ut===16||Ut==="hex"){Vt="";for(var Xt=0,qt=0,er=0;er>>24-Xt&16777215,qt!==0||er!==this.length-1?Vt=ft[6-Jt.length]+Jt+Vt:Vt=Jt+Vt,Xt+=2,Xt>=26&&(Xt-=26,er--)}for(qt!==0&&(Vt=qt.toString(16)+Vt);Vt.length%Ht!==0;)Vt="0"+Vt;return this.negative!==0&&(Vt="-"+Vt),Vt}if(Ut===(Ut|0)&&Ut>=2&&Ut<=36){var Yt=at[Ut],rr=mt[Ut];Vt="";var jt=this.clone();for(jt.negative=0;!jt.isZero();){var ar=jt.modn(rr).toString(Ut);jt=jt.idivn(rr),jt.isZero()?Vt=ar+Vt:Vt=ft[Yt-ar.length]+ar+Vt}for(this.isZero()&&(Vt="0"+Vt);Vt.length%Ht!==0;)Vt="0"+Vt;return this.negative!==0&&(Vt="-"+Vt),Vt}tt(!1,"Base should be between 2 and 36")},ot.prototype.toNumber=function(){var Ut=this.words[0];return this.length===2?Ut+=this.words[1]*67108864:this.length===3&&this.words[2]===1?Ut+=4503599627370496+this.words[1]*67108864:this.length>2&&tt(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-Ut:Ut},ot.prototype.toJSON=function(){return this.toString(16)},ot.prototype.toBuffer=function(Ut,Ht){return tt(typeof nt<"u"),this.toArrayLike(nt,Ut,Ht)},ot.prototype.toArray=function(Ut,Ht){return this.toArrayLike(Array,Ut,Ht)},ot.prototype.toArrayLike=function(Ut,Ht,Vt){var Xt=this.byteLength(),qt=Vt||Math.max(1,Xt);tt(Xt<=qt,"byte array longer than desired length"),tt(qt>0,"Requested array length <= 0"),this.strip();var er=Ht==="le",lr=new Ut(qt),Jt,Yt,rr=this.clone();if(er){for(Yt=0;!rr.isZero();Yt++)Jt=rr.andln(255),rr.iushrn(8),lr[Yt]=Jt;for(;Yt=4096&&(Vt+=13,Ht>>>=13),Ht>=64&&(Vt+=7,Ht>>>=7),Ht>=8&&(Vt+=4,Ht>>>=4),Ht>=2&&(Vt+=2,Ht>>>=2),Vt+Ht},ot.prototype._zeroBits=function(Ut){if(Ut===0)return 26;var Ht=Ut,Vt=0;return Ht&8191||(Vt+=13,Ht>>>=13),Ht&127||(Vt+=7,Ht>>>=7),Ht&15||(Vt+=4,Ht>>>=4),Ht&3||(Vt+=2,Ht>>>=2),Ht&1||Vt++,Vt},ot.prototype.bitLength=function(){var Ut=this.words[this.length-1],Ht=this._countBits(Ut);return(this.length-1)*26+Ht};function St($t){for(var Ut=new Array($t.bitLength()),Ht=0;Ht>>Xt}return Ut}ot.prototype.zeroBits=function(){if(this.isZero())return 0;for(var Ut=0,Ht=0;HtUt.length?this.clone().ior(Ut):Ut.clone().ior(this)},ot.prototype.uor=function(Ut){return this.length>Ut.length?this.clone().iuor(Ut):Ut.clone().iuor(this)},ot.prototype.iuand=function(Ut){var Ht;this.length>Ut.length?Ht=Ut:Ht=this;for(var Vt=0;VtUt.length?this.clone().iand(Ut):Ut.clone().iand(this)},ot.prototype.uand=function(Ut){return this.length>Ut.length?this.clone().iuand(Ut):Ut.clone().iuand(this)},ot.prototype.iuxor=function(Ut){var Ht,Vt;this.length>Ut.length?(Ht=this,Vt=Ut):(Ht=Ut,Vt=this);for(var Xt=0;XtUt.length?this.clone().ixor(Ut):Ut.clone().ixor(this)},ot.prototype.uxor=function(Ut){return this.length>Ut.length?this.clone().iuxor(Ut):Ut.clone().iuxor(this)},ot.prototype.inotn=function(Ut){tt(typeof Ut=="number"&&Ut>=0);var Ht=Math.ceil(Ut/26)|0,Vt=Ut%26;this._expand(Ht),Vt>0&&Ht--;for(var Xt=0;Xt0&&(this.words[Xt]=~this.words[Xt]&67108863>>26-Vt),this.strip()},ot.prototype.notn=function(Ut){return this.clone().inotn(Ut)},ot.prototype.setn=function(Ut,Ht){tt(typeof Ut=="number"&&Ut>=0);var Vt=Ut/26|0,Xt=Ut%26;return this._expand(Vt+1),Ht?this.words[Vt]=this.words[Vt]|1<Ut.length?(Vt=this,Xt=Ut):(Vt=Ut,Xt=this);for(var qt=0,er=0;er>>26;for(;qt!==0&&er>>26;if(this.length=Vt.length,qt!==0)this.words[this.length]=qt,this.length++;else if(Vt!==this)for(;erUt.length?this.clone().iadd(Ut):Ut.clone().iadd(this)},ot.prototype.isub=function(Ut){if(Ut.negative!==0){Ut.negative=0;var Ht=this.iadd(Ut);return Ut.negative=1,Ht._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(Ut),this.negative=1,this._normSign();var Vt=this.cmp(Ut);if(Vt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Xt,qt;Vt>0?(Xt=this,qt=Ut):(Xt=Ut,qt=this);for(var er=0,lr=0;lr>26,this.words[lr]=Ht&67108863;for(;er!==0&&lr>26,this.words[lr]=Ht&67108863;if(er===0&&lr>>26,jt=Jt&67108863,ar=Math.min(Yt,Ut.length-1),sr=Math.max(0,Yt-$t.length+1);sr<=ar;sr++){var Zt=Yt-sr|0;Xt=$t.words[Zt]|0,qt=Ut.words[sr]|0,er=Xt*qt+jt,rr+=er/67108864|0,jt=er&67108863}Ht.words[Yt]=jt|0,Jt=rr|0}return Jt!==0?Ht.words[Yt]=Jt|0:Ht.length--,Ht.strip()}var Mt=function(Ut,Ht,Vt){var Xt=Ut.words,qt=Ht.words,er=Vt.words,lr=0,Jt,Yt,rr,jt=Xt[0]|0,ar=jt&8191,sr=jt>>>13,Zt=Xt[1]|0,Kt=Zt&8191,or=Zt>>>13,tr=Xt[2]|0,cr=tr&8191,mr=tr>>>13,Ar=Xt[3]|0,br=Ar&8191,Ir=Ar>>>13,Tr=Xt[4]|0,_r=Tr&8191,Er=Tr>>>13,Rr=Xt[5]|0,zr=Rr&8191,Or=Rr>>>13,kr=Xt[6]|0,Nr=kr&8191,Qr=kr>>>13,sn=Xt[7]|0,un=sn&8191,en=sn>>>13,Xr=Xt[8]|0,ln=Xr&8191,mn=Xr>>>13,pn=Xt[9]|0,Tn=pn&8191,Zr=pn>>>13,Fr=qt[0]|0,Ur=Fr&8191,Wr=Fr>>>13,Gr=qt[1]|0,wr=Gr&8191,pr=Gr>>>13,Dr=qt[2]|0,Sr=Dr&8191,ur=Dr>>>13,xr=qt[3]|0,Pr=xr&8191,Vr=xr>>>13,qr=qt[4]|0,rn=qr&8191,Cn=qr>>>13,xn=qt[5]|0,fn=xn&8191,bn=xn>>>13,Un=qt[6]|0,_i=Un&8191,yn=Un>>>13,Kn=qt[7]|0,Jn=Kn&8191,so=Kn>>>13,ba=qt[8]|0,An=ba&8191,hn=ba>>>13,wn=qt[9]|0,In=wn&8191,Ln=wn>>>13;Vt.negative=Ut.negative^Ht.negative,Vt.length=19,Jt=Math.imul(ar,Ur),Yt=Math.imul(ar,Wr),Yt=Yt+Math.imul(sr,Ur)|0,rr=Math.imul(sr,Wr);var Xn=(lr+Jt|0)+((Yt&8191)<<13)|0;lr=(rr+(Yt>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,Jt=Math.imul(Kt,Ur),Yt=Math.imul(Kt,Wr),Yt=Yt+Math.imul(or,Ur)|0,rr=Math.imul(or,Wr),Jt=Jt+Math.imul(ar,wr)|0,Yt=Yt+Math.imul(ar,pr)|0,Yt=Yt+Math.imul(sr,wr)|0,rr=rr+Math.imul(sr,pr)|0;var Wn=(lr+Jt|0)+((Yt&8191)<<13)|0;lr=(rr+(Yt>>>13)|0)+(Wn>>>26)|0,Wn&=67108863,Jt=Math.imul(cr,Ur),Yt=Math.imul(cr,Wr),Yt=Yt+Math.imul(mr,Ur)|0,rr=Math.imul(mr,Wr),Jt=Jt+Math.imul(Kt,wr)|0,Yt=Yt+Math.imul(Kt,pr)|0,Yt=Yt+Math.imul(or,wr)|0,rr=rr+Math.imul(or,pr)|0,Jt=Jt+Math.imul(ar,Sr)|0,Yt=Yt+Math.imul(ar,ur)|0,Yt=Yt+Math.imul(sr,Sr)|0,rr=rr+Math.imul(sr,ur)|0;var Vn=(lr+Jt|0)+((Yt&8191)<<13)|0;lr=(rr+(Yt>>>13)|0)+(Vn>>>26)|0,Vn&=67108863,Jt=Math.imul(br,Ur),Yt=Math.imul(br,Wr),Yt=Yt+Math.imul(Ir,Ur)|0,rr=Math.imul(Ir,Wr),Jt=Jt+Math.imul(cr,wr)|0,Yt=Yt+Math.imul(cr,pr)|0,Yt=Yt+Math.imul(mr,wr)|0,rr=rr+Math.imul(mr,pr)|0,Jt=Jt+Math.imul(Kt,Sr)|0,Yt=Yt+Math.imul(Kt,ur)|0,Yt=Yt+Math.imul(or,Sr)|0,rr=rr+Math.imul(or,ur)|0,Jt=Jt+Math.imul(ar,Pr)|0,Yt=Yt+Math.imul(ar,Vr)|0,Yt=Yt+Math.imul(sr,Pr)|0,rr=rr+Math.imul(sr,Vr)|0;var ga=(lr+Jt|0)+((Yt&8191)<<13)|0;lr=(rr+(Yt>>>13)|0)+(ga>>>26)|0,ga&=67108863,Jt=Math.imul(_r,Ur),Yt=Math.imul(_r,Wr),Yt=Yt+Math.imul(Er,Ur)|0,rr=Math.imul(Er,Wr),Jt=Jt+Math.imul(br,wr)|0,Yt=Yt+Math.imul(br,pr)|0,Yt=Yt+Math.imul(Ir,wr)|0,rr=rr+Math.imul(Ir,pr)|0,Jt=Jt+Math.imul(cr,Sr)|0,Yt=Yt+Math.imul(cr,ur)|0,Yt=Yt+Math.imul(mr,Sr)|0,rr=rr+Math.imul(mr,ur)|0,Jt=Jt+Math.imul(Kt,Pr)|0,Yt=Yt+Math.imul(Kt,Vr)|0,Yt=Yt+Math.imul(or,Pr)|0,rr=rr+Math.imul(or,Vr)|0,Jt=Jt+Math.imul(ar,rn)|0,Yt=Yt+Math.imul(ar,Cn)|0,Yt=Yt+Math.imul(sr,rn)|0,rr=rr+Math.imul(sr,Cn)|0;var fo=(lr+Jt|0)+((Yt&8191)<<13)|0;lr=(rr+(Yt>>>13)|0)+(fo>>>26)|0,fo&=67108863,Jt=Math.imul(zr,Ur),Yt=Math.imul(zr,Wr),Yt=Yt+Math.imul(Or,Ur)|0,rr=Math.imul(Or,Wr),Jt=Jt+Math.imul(_r,wr)|0,Yt=Yt+Math.imul(_r,pr)|0,Yt=Yt+Math.imul(Er,wr)|0,rr=rr+Math.imul(Er,pr)|0,Jt=Jt+Math.imul(br,Sr)|0,Yt=Yt+Math.imul(br,ur)|0,Yt=Yt+Math.imul(Ir,Sr)|0,rr=rr+Math.imul(Ir,ur)|0,Jt=Jt+Math.imul(cr,Pr)|0,Yt=Yt+Math.imul(cr,Vr)|0,Yt=Yt+Math.imul(mr,Pr)|0,rr=rr+Math.imul(mr,Vr)|0,Jt=Jt+Math.imul(Kt,rn)|0,Yt=Yt+Math.imul(Kt,Cn)|0,Yt=Yt+Math.imul(or,rn)|0,rr=rr+Math.imul(or,Cn)|0,Jt=Jt+Math.imul(ar,fn)|0,Yt=Yt+Math.imul(ar,bn)|0,Yt=Yt+Math.imul(sr,fn)|0,rr=rr+Math.imul(sr,bn)|0;var qn=(lr+Jt|0)+((Yt&8191)<<13)|0;lr=(rr+(Yt>>>13)|0)+(qn>>>26)|0,qn&=67108863,Jt=Math.imul(Nr,Ur),Yt=Math.imul(Nr,Wr),Yt=Yt+Math.imul(Qr,Ur)|0,rr=Math.imul(Qr,Wr),Jt=Jt+Math.imul(zr,wr)|0,Yt=Yt+Math.imul(zr,pr)|0,Yt=Yt+Math.imul(Or,wr)|0,rr=rr+Math.imul(Or,pr)|0,Jt=Jt+Math.imul(_r,Sr)|0,Yt=Yt+Math.imul(_r,ur)|0,Yt=Yt+Math.imul(Er,Sr)|0,rr=rr+Math.imul(Er,ur)|0,Jt=Jt+Math.imul(br,Pr)|0,Yt=Yt+Math.imul(br,Vr)|0,Yt=Yt+Math.imul(Ir,Pr)|0,rr=rr+Math.imul(Ir,Vr)|0,Jt=Jt+Math.imul(cr,rn)|0,Yt=Yt+Math.imul(cr,Cn)|0,Yt=Yt+Math.imul(mr,rn)|0,rr=rr+Math.imul(mr,Cn)|0,Jt=Jt+Math.imul(Kt,fn)|0,Yt=Yt+Math.imul(Kt,bn)|0,Yt=Yt+Math.imul(or,fn)|0,rr=rr+Math.imul(or,bn)|0,Jt=Jt+Math.imul(ar,_i)|0,Yt=Yt+Math.imul(ar,yn)|0,Yt=Yt+Math.imul(sr,_i)|0,rr=rr+Math.imul(sr,yn)|0;var po=(lr+Jt|0)+((Yt&8191)<<13)|0;lr=(rr+(Yt>>>13)|0)+(po>>>26)|0,po&=67108863,Jt=Math.imul(un,Ur),Yt=Math.imul(un,Wr),Yt=Yt+Math.imul(en,Ur)|0,rr=Math.imul(en,Wr),Jt=Jt+Math.imul(Nr,wr)|0,Yt=Yt+Math.imul(Nr,pr)|0,Yt=Yt+Math.imul(Qr,wr)|0,rr=rr+Math.imul(Qr,pr)|0,Jt=Jt+Math.imul(zr,Sr)|0,Yt=Yt+Math.imul(zr,ur)|0,Yt=Yt+Math.imul(Or,Sr)|0,rr=rr+Math.imul(Or,ur)|0,Jt=Jt+Math.imul(_r,Pr)|0,Yt=Yt+Math.imul(_r,Vr)|0,Yt=Yt+Math.imul(Er,Pr)|0,rr=rr+Math.imul(Er,Vr)|0,Jt=Jt+Math.imul(br,rn)|0,Yt=Yt+Math.imul(br,Cn)|0,Yt=Yt+Math.imul(Ir,rn)|0,rr=rr+Math.imul(Ir,Cn)|0,Jt=Jt+Math.imul(cr,fn)|0,Yt=Yt+Math.imul(cr,bn)|0,Yt=Yt+Math.imul(mr,fn)|0,rr=rr+Math.imul(mr,bn)|0,Jt=Jt+Math.imul(Kt,_i)|0,Yt=Yt+Math.imul(Kt,yn)|0,Yt=Yt+Math.imul(or,_i)|0,rr=rr+Math.imul(or,yn)|0,Jt=Jt+Math.imul(ar,Jn)|0,Yt=Yt+Math.imul(ar,so)|0,Yt=Yt+Math.imul(sr,Jn)|0,rr=rr+Math.imul(sr,so)|0;var Yr=(lr+Jt|0)+((Yt&8191)<<13)|0;lr=(rr+(Yt>>>13)|0)+(Yr>>>26)|0,Yr&=67108863,Jt=Math.imul(ln,Ur),Yt=Math.imul(ln,Wr),Yt=Yt+Math.imul(mn,Ur)|0,rr=Math.imul(mn,Wr),Jt=Jt+Math.imul(un,wr)|0,Yt=Yt+Math.imul(un,pr)|0,Yt=Yt+Math.imul(en,wr)|0,rr=rr+Math.imul(en,pr)|0,Jt=Jt+Math.imul(Nr,Sr)|0,Yt=Yt+Math.imul(Nr,ur)|0,Yt=Yt+Math.imul(Qr,Sr)|0,rr=rr+Math.imul(Qr,ur)|0,Jt=Jt+Math.imul(zr,Pr)|0,Yt=Yt+Math.imul(zr,Vr)|0,Yt=Yt+Math.imul(Or,Pr)|0,rr=rr+Math.imul(Or,Vr)|0,Jt=Jt+Math.imul(_r,rn)|0,Yt=Yt+Math.imul(_r,Cn)|0,Yt=Yt+Math.imul(Er,rn)|0,rr=rr+Math.imul(Er,Cn)|0,Jt=Jt+Math.imul(br,fn)|0,Yt=Yt+Math.imul(br,bn)|0,Yt=Yt+Math.imul(Ir,fn)|0,rr=rr+Math.imul(Ir,bn)|0,Jt=Jt+Math.imul(cr,_i)|0,Yt=Yt+Math.imul(cr,yn)|0,Yt=Yt+Math.imul(mr,_i)|0,rr=rr+Math.imul(mr,yn)|0,Jt=Jt+Math.imul(Kt,Jn)|0,Yt=Yt+Math.imul(Kt,so)|0,Yt=Yt+Math.imul(or,Jn)|0,rr=rr+Math.imul(or,so)|0,Jt=Jt+Math.imul(ar,An)|0,Yt=Yt+Math.imul(ar,hn)|0,Yt=Yt+Math.imul(sr,An)|0,rr=rr+Math.imul(sr,hn)|0;var jr=(lr+Jt|0)+((Yt&8191)<<13)|0;lr=(rr+(Yt>>>13)|0)+(jr>>>26)|0,jr&=67108863,Jt=Math.imul(Tn,Ur),Yt=Math.imul(Tn,Wr),Yt=Yt+Math.imul(Zr,Ur)|0,rr=Math.imul(Zr,Wr),Jt=Jt+Math.imul(ln,wr)|0,Yt=Yt+Math.imul(ln,pr)|0,Yt=Yt+Math.imul(mn,wr)|0,rr=rr+Math.imul(mn,pr)|0,Jt=Jt+Math.imul(un,Sr)|0,Yt=Yt+Math.imul(un,ur)|0,Yt=Yt+Math.imul(en,Sr)|0,rr=rr+Math.imul(en,ur)|0,Jt=Jt+Math.imul(Nr,Pr)|0,Yt=Yt+Math.imul(Nr,Vr)|0,Yt=Yt+Math.imul(Qr,Pr)|0,rr=rr+Math.imul(Qr,Vr)|0,Jt=Jt+Math.imul(zr,rn)|0,Yt=Yt+Math.imul(zr,Cn)|0,Yt=Yt+Math.imul(Or,rn)|0,rr=rr+Math.imul(Or,Cn)|0,Jt=Jt+Math.imul(_r,fn)|0,Yt=Yt+Math.imul(_r,bn)|0,Yt=Yt+Math.imul(Er,fn)|0,rr=rr+Math.imul(Er,bn)|0,Jt=Jt+Math.imul(br,_i)|0,Yt=Yt+Math.imul(br,yn)|0,Yt=Yt+Math.imul(Ir,_i)|0,rr=rr+Math.imul(Ir,yn)|0,Jt=Jt+Math.imul(cr,Jn)|0,Yt=Yt+Math.imul(cr,so)|0,Yt=Yt+Math.imul(mr,Jn)|0,rr=rr+Math.imul(mr,so)|0,Jt=Jt+Math.imul(Kt,An)|0,Yt=Yt+Math.imul(Kt,hn)|0,Yt=Yt+Math.imul(or,An)|0,rr=rr+Math.imul(or,hn)|0,Jt=Jt+Math.imul(ar,In)|0,Yt=Yt+Math.imul(ar,Ln)|0,Yt=Yt+Math.imul(sr,In)|0,rr=rr+Math.imul(sr,Ln)|0;var $n=(lr+Jt|0)+((Yt&8191)<<13)|0;lr=(rr+(Yt>>>13)|0)+($n>>>26)|0,$n&=67108863,Jt=Math.imul(Tn,wr),Yt=Math.imul(Tn,pr),Yt=Yt+Math.imul(Zr,wr)|0,rr=Math.imul(Zr,pr),Jt=Jt+Math.imul(ln,Sr)|0,Yt=Yt+Math.imul(ln,ur)|0,Yt=Yt+Math.imul(mn,Sr)|0,rr=rr+Math.imul(mn,ur)|0,Jt=Jt+Math.imul(un,Pr)|0,Yt=Yt+Math.imul(un,Vr)|0,Yt=Yt+Math.imul(en,Pr)|0,rr=rr+Math.imul(en,Vr)|0,Jt=Jt+Math.imul(Nr,rn)|0,Yt=Yt+Math.imul(Nr,Cn)|0,Yt=Yt+Math.imul(Qr,rn)|0,rr=rr+Math.imul(Qr,Cn)|0,Jt=Jt+Math.imul(zr,fn)|0,Yt=Yt+Math.imul(zr,bn)|0,Yt=Yt+Math.imul(Or,fn)|0,rr=rr+Math.imul(Or,bn)|0,Jt=Jt+Math.imul(_r,_i)|0,Yt=Yt+Math.imul(_r,yn)|0,Yt=Yt+Math.imul(Er,_i)|0,rr=rr+Math.imul(Er,yn)|0,Jt=Jt+Math.imul(br,Jn)|0,Yt=Yt+Math.imul(br,so)|0,Yt=Yt+Math.imul(Ir,Jn)|0,rr=rr+Math.imul(Ir,so)|0,Jt=Jt+Math.imul(cr,An)|0,Yt=Yt+Math.imul(cr,hn)|0,Yt=Yt+Math.imul(mr,An)|0,rr=rr+Math.imul(mr,hn)|0,Jt=Jt+Math.imul(Kt,In)|0,Yt=Yt+Math.imul(Kt,Ln)|0,Yt=Yt+Math.imul(or,In)|0,rr=rr+Math.imul(or,Ln)|0;var Bn=(lr+Jt|0)+((Yt&8191)<<13)|0;lr=(rr+(Yt>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,Jt=Math.imul(Tn,Sr),Yt=Math.imul(Tn,ur),Yt=Yt+Math.imul(Zr,Sr)|0,rr=Math.imul(Zr,ur),Jt=Jt+Math.imul(ln,Pr)|0,Yt=Yt+Math.imul(ln,Vr)|0,Yt=Yt+Math.imul(mn,Pr)|0,rr=rr+Math.imul(mn,Vr)|0,Jt=Jt+Math.imul(un,rn)|0,Yt=Yt+Math.imul(un,Cn)|0,Yt=Yt+Math.imul(en,rn)|0,rr=rr+Math.imul(en,Cn)|0,Jt=Jt+Math.imul(Nr,fn)|0,Yt=Yt+Math.imul(Nr,bn)|0,Yt=Yt+Math.imul(Qr,fn)|0,rr=rr+Math.imul(Qr,bn)|0,Jt=Jt+Math.imul(zr,_i)|0,Yt=Yt+Math.imul(zr,yn)|0,Yt=Yt+Math.imul(Or,_i)|0,rr=rr+Math.imul(Or,yn)|0,Jt=Jt+Math.imul(_r,Jn)|0,Yt=Yt+Math.imul(_r,so)|0,Yt=Yt+Math.imul(Er,Jn)|0,rr=rr+Math.imul(Er,so)|0,Jt=Jt+Math.imul(br,An)|0,Yt=Yt+Math.imul(br,hn)|0,Yt=Yt+Math.imul(Ir,An)|0,rr=rr+Math.imul(Ir,hn)|0,Jt=Jt+Math.imul(cr,In)|0,Yt=Yt+Math.imul(cr,Ln)|0,Yt=Yt+Math.imul(mr,In)|0,rr=rr+Math.imul(mr,Ln)|0;var xa=(lr+Jt|0)+((Yt&8191)<<13)|0;lr=(rr+(Yt>>>13)|0)+(xa>>>26)|0,xa&=67108863,Jt=Math.imul(Tn,Pr),Yt=Math.imul(Tn,Vr),Yt=Yt+Math.imul(Zr,Pr)|0,rr=Math.imul(Zr,Vr),Jt=Jt+Math.imul(ln,rn)|0,Yt=Yt+Math.imul(ln,Cn)|0,Yt=Yt+Math.imul(mn,rn)|0,rr=rr+Math.imul(mn,Cn)|0,Jt=Jt+Math.imul(un,fn)|0,Yt=Yt+Math.imul(un,bn)|0,Yt=Yt+Math.imul(en,fn)|0,rr=rr+Math.imul(en,bn)|0,Jt=Jt+Math.imul(Nr,_i)|0,Yt=Yt+Math.imul(Nr,yn)|0,Yt=Yt+Math.imul(Qr,_i)|0,rr=rr+Math.imul(Qr,yn)|0,Jt=Jt+Math.imul(zr,Jn)|0,Yt=Yt+Math.imul(zr,so)|0,Yt=Yt+Math.imul(Or,Jn)|0,rr=rr+Math.imul(Or,so)|0,Jt=Jt+Math.imul(_r,An)|0,Yt=Yt+Math.imul(_r,hn)|0,Yt=Yt+Math.imul(Er,An)|0,rr=rr+Math.imul(Er,hn)|0,Jt=Jt+Math.imul(br,In)|0,Yt=Yt+Math.imul(br,Ln)|0,Yt=Yt+Math.imul(Ir,In)|0,rr=rr+Math.imul(Ir,Ln)|0;var ro=(lr+Jt|0)+((Yt&8191)<<13)|0;lr=(rr+(Yt>>>13)|0)+(ro>>>26)|0,ro&=67108863,Jt=Math.imul(Tn,rn),Yt=Math.imul(Tn,Cn),Yt=Yt+Math.imul(Zr,rn)|0,rr=Math.imul(Zr,Cn),Jt=Jt+Math.imul(ln,fn)|0,Yt=Yt+Math.imul(ln,bn)|0,Yt=Yt+Math.imul(mn,fn)|0,rr=rr+Math.imul(mn,bn)|0,Jt=Jt+Math.imul(un,_i)|0,Yt=Yt+Math.imul(un,yn)|0,Yt=Yt+Math.imul(en,_i)|0,rr=rr+Math.imul(en,yn)|0,Jt=Jt+Math.imul(Nr,Jn)|0,Yt=Yt+Math.imul(Nr,so)|0,Yt=Yt+Math.imul(Qr,Jn)|0,rr=rr+Math.imul(Qr,so)|0,Jt=Jt+Math.imul(zr,An)|0,Yt=Yt+Math.imul(zr,hn)|0,Yt=Yt+Math.imul(Or,An)|0,rr=rr+Math.imul(Or,hn)|0,Jt=Jt+Math.imul(_r,In)|0,Yt=Yt+Math.imul(_r,Ln)|0,Yt=Yt+Math.imul(Er,In)|0,rr=rr+Math.imul(Er,Ln)|0;var io=(lr+Jt|0)+((Yt&8191)<<13)|0;lr=(rr+(Yt>>>13)|0)+(io>>>26)|0,io&=67108863,Jt=Math.imul(Tn,fn),Yt=Math.imul(Tn,bn),Yt=Yt+Math.imul(Zr,fn)|0,rr=Math.imul(Zr,bn),Jt=Jt+Math.imul(ln,_i)|0,Yt=Yt+Math.imul(ln,yn)|0,Yt=Yt+Math.imul(mn,_i)|0,rr=rr+Math.imul(mn,yn)|0,Jt=Jt+Math.imul(un,Jn)|0,Yt=Yt+Math.imul(un,so)|0,Yt=Yt+Math.imul(en,Jn)|0,rr=rr+Math.imul(en,so)|0,Jt=Jt+Math.imul(Nr,An)|0,Yt=Yt+Math.imul(Nr,hn)|0,Yt=Yt+Math.imul(Qr,An)|0,rr=rr+Math.imul(Qr,hn)|0,Jt=Jt+Math.imul(zr,In)|0,Yt=Yt+Math.imul(zr,Ln)|0,Yt=Yt+Math.imul(Or,In)|0,rr=rr+Math.imul(Or,Ln)|0;var eo=(lr+Jt|0)+((Yt&8191)<<13)|0;lr=(rr+(Yt>>>13)|0)+(eo>>>26)|0,eo&=67108863,Jt=Math.imul(Tn,_i),Yt=Math.imul(Tn,yn),Yt=Yt+Math.imul(Zr,_i)|0,rr=Math.imul(Zr,yn),Jt=Jt+Math.imul(ln,Jn)|0,Yt=Yt+Math.imul(ln,so)|0,Yt=Yt+Math.imul(mn,Jn)|0,rr=rr+Math.imul(mn,so)|0,Jt=Jt+Math.imul(un,An)|0,Yt=Yt+Math.imul(un,hn)|0,Yt=Yt+Math.imul(en,An)|0,rr=rr+Math.imul(en,hn)|0,Jt=Jt+Math.imul(Nr,In)|0,Yt=Yt+Math.imul(Nr,Ln)|0,Yt=Yt+Math.imul(Qr,In)|0,rr=rr+Math.imul(Qr,Ln)|0;var Gn=(lr+Jt|0)+((Yt&8191)<<13)|0;lr=(rr+(Yt>>>13)|0)+(Gn>>>26)|0,Gn&=67108863,Jt=Math.imul(Tn,Jn),Yt=Math.imul(Tn,so),Yt=Yt+Math.imul(Zr,Jn)|0,rr=Math.imul(Zr,so),Jt=Jt+Math.imul(ln,An)|0,Yt=Yt+Math.imul(ln,hn)|0,Yt=Yt+Math.imul(mn,An)|0,rr=rr+Math.imul(mn,hn)|0,Jt=Jt+Math.imul(un,In)|0,Yt=Yt+Math.imul(un,Ln)|0,Yt=Yt+Math.imul(en,In)|0,rr=rr+Math.imul(en,Ln)|0;var ho=(lr+Jt|0)+((Yt&8191)<<13)|0;lr=(rr+(Yt>>>13)|0)+(ho>>>26)|0,ho&=67108863,Jt=Math.imul(Tn,An),Yt=Math.imul(Tn,hn),Yt=Yt+Math.imul(Zr,An)|0,rr=Math.imul(Zr,hn),Jt=Jt+Math.imul(ln,In)|0,Yt=Yt+Math.imul(ln,Ln)|0,Yt=Yt+Math.imul(mn,In)|0,rr=rr+Math.imul(mn,Ln)|0;var go=(lr+Jt|0)+((Yt&8191)<<13)|0;lr=(rr+(Yt>>>13)|0)+(go>>>26)|0,go&=67108863,Jt=Math.imul(Tn,In),Yt=Math.imul(Tn,Ln),Yt=Yt+Math.imul(Zr,In)|0,rr=Math.imul(Zr,Ln);var _o=(lr+Jt|0)+((Yt&8191)<<13)|0;return lr=(rr+(Yt>>>13)|0)+(_o>>>26)|0,_o&=67108863,er[0]=Xn,er[1]=Wn,er[2]=Vn,er[3]=ga,er[4]=fo,er[5]=qn,er[6]=po,er[7]=Yr,er[8]=jr,er[9]=$n,er[10]=Bn,er[11]=xa,er[12]=ro,er[13]=io,er[14]=eo,er[15]=Gn,er[16]=ho,er[17]=go,er[18]=_o,lr!==0&&(er[19]=lr,Vt.length++),Vt};Math.imul||(Mt=_t);function Et($t,Ut,Ht){Ht.negative=Ut.negative^$t.negative,Ht.length=$t.length+Ut.length;for(var Vt=0,Xt=0,qt=0;qt>>26)|0,Xt+=er>>>26,er&=67108863}Ht.words[qt]=lr,Vt=er,er=Xt}return Vt!==0?Ht.words[qt]=Vt:Ht.length--,Ht.strip()}function kt($t,Ut,Ht){var Vt=new wt;return Vt.mulp($t,Ut,Ht)}ot.prototype.mulTo=function(Ut,Ht){var Vt,Xt=this.length+Ut.length;return this.length===10&&Ut.length===10?Vt=Mt(this,Ut,Ht):Xt<63?Vt=_t(this,Ut,Ht):Xt<1024?Vt=Et(this,Ut,Ht):Vt=kt(this,Ut,Ht),Vt};function wt($t,Ut){this.x=$t,this.y=Ut}wt.prototype.makeRBT=function(Ut){for(var Ht=new Array(Ut),Vt=ot.prototype._countBits(Ut)-1,Xt=0;Xt>=1;return Xt},wt.prototype.permute=function(Ut,Ht,Vt,Xt,qt,er){for(var lr=0;lr>>1)qt++;return 1<>>13,Vt[2*er+1]=qt&8191,qt=qt>>>13;for(er=2*Ht;er>=26,Ht+=Xt/67108864|0,Ht+=qt>>>26,this.words[Vt]=qt&67108863}return Ht!==0&&(this.words[Vt]=Ht,this.length++),this},ot.prototype.muln=function(Ut){return this.clone().imuln(Ut)},ot.prototype.sqr=function(){return this.mul(this)},ot.prototype.isqr=function(){return this.imul(this.clone())},ot.prototype.pow=function(Ut){var Ht=St(Ut);if(Ht.length===0)return new ot(1);for(var Vt=this,Xt=0;Xt=0);var Ht=Ut%26,Vt=(Ut-Ht)/26,Xt=67108863>>>26-Ht<<26-Ht,qt;if(Ht!==0){var er=0;for(qt=0;qt>>26-Ht}er&&(this.words[qt]=er,this.length++)}if(Vt!==0){for(qt=this.length-1;qt>=0;qt--)this.words[qt+Vt]=this.words[qt];for(qt=0;qt=0);var Xt;Ht?Xt=(Ht-Ht%26)/26:Xt=0;var qt=Ut%26,er=Math.min((Ut-qt)/26,this.length),lr=67108863^67108863>>>qt<er)for(this.length-=er,Yt=0;Yt=0&&(rr!==0||Yt>=Xt);Yt--){var jt=this.words[Yt]|0;this.words[Yt]=rr<<26-qt|jt>>>qt,rr=jt&lr}return Jt&&rr!==0&&(Jt.words[Jt.length++]=rr),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},ot.prototype.ishrn=function(Ut,Ht,Vt){return tt(this.negative===0),this.iushrn(Ut,Ht,Vt)},ot.prototype.shln=function(Ut){return this.clone().ishln(Ut)},ot.prototype.ushln=function(Ut){return this.clone().iushln(Ut)},ot.prototype.shrn=function(Ut){return this.clone().ishrn(Ut)},ot.prototype.ushrn=function(Ut){return this.clone().iushrn(Ut)},ot.prototype.testn=function(Ut){tt(typeof Ut=="number"&&Ut>=0);var Ht=Ut%26,Vt=(Ut-Ht)/26,Xt=1<=0);var Ht=Ut%26,Vt=(Ut-Ht)/26;if(tt(this.negative===0,"imaskn works only with positive numbers"),this.length<=Vt)return this;if(Ht!==0&&Vt++,this.length=Math.min(Vt,this.length),Ht!==0){var Xt=67108863^67108863>>>Ht<=67108864;Ht++)this.words[Ht]-=67108864,Ht===this.length-1?this.words[Ht+1]=1:this.words[Ht+1]++;return this.length=Math.max(this.length,Ht+1),this},ot.prototype.isubn=function(Ut){if(tt(typeof Ut=="number"),tt(Ut<67108864),Ut<0)return this.iaddn(-Ut);if(this.negative!==0)return this.negative=0,this.iaddn(Ut),this.negative=1,this;if(this.words[0]-=Ut,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Ht=0;Ht>26)-(Jt/67108864|0),this.words[qt+Vt]=er&67108863}for(;qt>26,this.words[qt+Vt]=er&67108863;if(lr===0)return this.strip();for(tt(lr===-1),lr=0,qt=0;qt>26,this.words[qt]=er&67108863;return this.negative=1,this.strip()},ot.prototype._wordDiv=function(Ut,Ht){var Vt=this.length-Ut.length,Xt=this.clone(),qt=Ut,er=qt.words[qt.length-1]|0,lr=this._countBits(er);Vt=26-lr,Vt!==0&&(qt=qt.ushln(Vt),Xt.iushln(Vt),er=qt.words[qt.length-1]|0);var Jt=Xt.length-qt.length,Yt;if(Ht!=="mod"){Yt=new ot(null),Yt.length=Jt+1,Yt.words=new Array(Yt.length);for(var rr=0;rr=0;ar--){var sr=(Xt.words[qt.length+ar]|0)*67108864+(Xt.words[qt.length+ar-1]|0);for(sr=Math.min(sr/er|0,67108863),Xt._ishlnsubmul(qt,sr,ar);Xt.negative!==0;)sr--,Xt.negative=0,Xt._ishlnsubmul(qt,1,ar),Xt.isZero()||(Xt.negative^=1);Yt&&(Yt.words[ar]=sr)}return Yt&&Yt.strip(),Xt.strip(),Ht!=="div"&&Vt!==0&&Xt.iushrn(Vt),{div:Yt||null,mod:Xt}},ot.prototype.divmod=function(Ut,Ht,Vt){if(tt(!Ut.isZero()),this.isZero())return{div:new ot(0),mod:new ot(0)};var Xt,qt,er;return this.negative!==0&&Ut.negative===0?(er=this.neg().divmod(Ut,Ht),Ht!=="mod"&&(Xt=er.div.neg()),Ht!=="div"&&(qt=er.mod.neg(),Vt&&qt.negative!==0&&qt.iadd(Ut)),{div:Xt,mod:qt}):this.negative===0&&Ut.negative!==0?(er=this.divmod(Ut.neg(),Ht),Ht!=="mod"&&(Xt=er.div.neg()),{div:Xt,mod:er.mod}):this.negative&Ut.negative?(er=this.neg().divmod(Ut.neg(),Ht),Ht!=="div"&&(qt=er.mod.neg(),Vt&&qt.negative!==0&&qt.isub(Ut)),{div:er.div,mod:qt}):Ut.length>this.length||this.cmp(Ut)<0?{div:new ot(0),mod:this}:Ut.length===1?Ht==="div"?{div:this.divn(Ut.words[0]),mod:null}:Ht==="mod"?{div:null,mod:new ot(this.modn(Ut.words[0]))}:{div:this.divn(Ut.words[0]),mod:new ot(this.modn(Ut.words[0]))}:this._wordDiv(Ut,Ht)},ot.prototype.div=function(Ut){return this.divmod(Ut,"div",!1).div},ot.prototype.mod=function(Ut){return this.divmod(Ut,"mod",!1).mod},ot.prototype.umod=function(Ut){return this.divmod(Ut,"mod",!0).mod},ot.prototype.divRound=function(Ut){var Ht=this.divmod(Ut);if(Ht.mod.isZero())return Ht.div;var Vt=Ht.div.negative!==0?Ht.mod.isub(Ut):Ht.mod,Xt=Ut.ushrn(1),qt=Ut.andln(1),er=Vt.cmp(Xt);return er<0||qt===1&&er===0?Ht.div:Ht.div.negative!==0?Ht.div.isubn(1):Ht.div.iaddn(1)},ot.prototype.modn=function(Ut){tt(Ut<=67108863);for(var Ht=(1<<26)%Ut,Vt=0,Xt=this.length-1;Xt>=0;Xt--)Vt=(Ht*Vt+(this.words[Xt]|0))%Ut;return Vt},ot.prototype.idivn=function(Ut){tt(Ut<=67108863);for(var Ht=0,Vt=this.length-1;Vt>=0;Vt--){var Xt=(this.words[Vt]|0)+Ht*67108864;this.words[Vt]=Xt/Ut|0,Ht=Xt%Ut}return this.strip()},ot.prototype.divn=function(Ut){return this.clone().idivn(Ut)},ot.prototype.egcd=function(Ut){tt(Ut.negative===0),tt(!Ut.isZero());var Ht=this,Vt=Ut.clone();Ht.negative!==0?Ht=Ht.umod(Ut):Ht=Ht.clone();for(var Xt=new ot(1),qt=new ot(0),er=new ot(0),lr=new ot(1),Jt=0;Ht.isEven()&&Vt.isEven();)Ht.iushrn(1),Vt.iushrn(1),++Jt;for(var Yt=Vt.clone(),rr=Ht.clone();!Ht.isZero();){for(var jt=0,ar=1;!(Ht.words[0]&ar)&&jt<26;++jt,ar<<=1);if(jt>0)for(Ht.iushrn(jt);jt-- >0;)(Xt.isOdd()||qt.isOdd())&&(Xt.iadd(Yt),qt.isub(rr)),Xt.iushrn(1),qt.iushrn(1);for(var sr=0,Zt=1;!(Vt.words[0]&Zt)&&sr<26;++sr,Zt<<=1);if(sr>0)for(Vt.iushrn(sr);sr-- >0;)(er.isOdd()||lr.isOdd())&&(er.iadd(Yt),lr.isub(rr)),er.iushrn(1),lr.iushrn(1);Ht.cmp(Vt)>=0?(Ht.isub(Vt),Xt.isub(er),qt.isub(lr)):(Vt.isub(Ht),er.isub(Xt),lr.isub(qt))}return{a:er,b:lr,gcd:Vt.iushln(Jt)}},ot.prototype._invmp=function(Ut){tt(Ut.negative===0),tt(!Ut.isZero());var Ht=this,Vt=Ut.clone();Ht.negative!==0?Ht=Ht.umod(Ut):Ht=Ht.clone();for(var Xt=new ot(1),qt=new ot(0),er=Vt.clone();Ht.cmpn(1)>0&&Vt.cmpn(1)>0;){for(var lr=0,Jt=1;!(Ht.words[0]&Jt)&&lr<26;++lr,Jt<<=1);if(lr>0)for(Ht.iushrn(lr);lr-- >0;)Xt.isOdd()&&Xt.iadd(er),Xt.iushrn(1);for(var Yt=0,rr=1;!(Vt.words[0]&rr)&&Yt<26;++Yt,rr<<=1);if(Yt>0)for(Vt.iushrn(Yt);Yt-- >0;)qt.isOdd()&&qt.iadd(er),qt.iushrn(1);Ht.cmp(Vt)>=0?(Ht.isub(Vt),Xt.isub(qt)):(Vt.isub(Ht),qt.isub(Xt))}var jt;return Ht.cmpn(1)===0?jt=Xt:jt=qt,jt.cmpn(0)<0&&jt.iadd(Ut),jt},ot.prototype.gcd=function(Ut){if(this.isZero())return Ut.abs();if(Ut.isZero())return this.abs();var Ht=this.clone(),Vt=Ut.clone();Ht.negative=0,Vt.negative=0;for(var Xt=0;Ht.isEven()&&Vt.isEven();Xt++)Ht.iushrn(1),Vt.iushrn(1);do{for(;Ht.isEven();)Ht.iushrn(1);for(;Vt.isEven();)Vt.iushrn(1);var qt=Ht.cmp(Vt);if(qt<0){var er=Ht;Ht=Vt,Vt=er}else if(qt===0||Vt.cmpn(1)===0)break;Ht.isub(Vt)}while(!0);return Vt.iushln(Xt)},ot.prototype.invm=function(Ut){return this.egcd(Ut).a.umod(Ut)},ot.prototype.isEven=function(){return(this.words[0]&1)===0},ot.prototype.isOdd=function(){return(this.words[0]&1)===1},ot.prototype.andln=function(Ut){return this.words[0]&Ut},ot.prototype.bincn=function(Ut){tt(typeof Ut=="number");var Ht=Ut%26,Vt=(Ut-Ht)/26,Xt=1<>>26,lr&=67108863,this.words[er]=lr}return qt!==0&&(this.words[er]=qt,this.length++),this},ot.prototype.isZero=function(){return this.length===1&&this.words[0]===0},ot.prototype.cmpn=function(Ut){var Ht=Ut<0;if(this.negative!==0&&!Ht)return-1;if(this.negative===0&&Ht)return 1;this.strip();var Vt;if(this.length>1)Vt=1;else{Ht&&(Ut=-Ut),tt(Ut<=67108863,"Number is too big");var Xt=this.words[0]|0;Vt=Xt===Ut?0:XtUt.length)return 1;if(this.length=0;Vt--){var Xt=this.words[Vt]|0,qt=Ut.words[Vt]|0;if(Xt!==qt){Xtqt&&(Ht=1);break}}return Ht},ot.prototype.gtn=function(Ut){return this.cmpn(Ut)===1},ot.prototype.gt=function(Ut){return this.cmp(Ut)===1},ot.prototype.gten=function(Ut){return this.cmpn(Ut)>=0},ot.prototype.gte=function(Ut){return this.cmp(Ut)>=0},ot.prototype.ltn=function(Ut){return this.cmpn(Ut)===-1},ot.prototype.lt=function(Ut){return this.cmp(Ut)===-1},ot.prototype.lten=function(Ut){return this.cmpn(Ut)<=0},ot.prototype.lte=function(Ut){return this.cmp(Ut)<=0},ot.prototype.eqn=function(Ut){return this.cmpn(Ut)===0},ot.prototype.eq=function(Ut){return this.cmp(Ut)===0},ot.red=function(Ut){return new Dt(Ut)},ot.prototype.toRed=function(Ut){return tt(!this.red,"Already a number in reduction context"),tt(this.negative===0,"red works only with positives"),Ut.convertTo(this)._forceRed(Ut)},ot.prototype.fromRed=function(){return tt(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},ot.prototype._forceRed=function(Ut){return this.red=Ut,this},ot.prototype.forceRed=function(Ut){return tt(!this.red,"Already a number in reduction context"),this._forceRed(Ut)},ot.prototype.redAdd=function(Ut){return tt(this.red,"redAdd works only with red numbers"),this.red.add(this,Ut)},ot.prototype.redIAdd=function(Ut){return tt(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Ut)},ot.prototype.redSub=function(Ut){return tt(this.red,"redSub works only with red numbers"),this.red.sub(this,Ut)},ot.prototype.redISub=function(Ut){return tt(this.red,"redISub works only with red numbers"),this.red.isub(this,Ut)},ot.prototype.redShl=function(Ut){return tt(this.red,"redShl works only with red numbers"),this.red.shl(this,Ut)},ot.prototype.redMul=function(Ut){return tt(this.red,"redMul works only with red numbers"),this.red._verify2(this,Ut),this.red.mul(this,Ut)},ot.prototype.redIMul=function(Ut){return tt(this.red,"redMul works only with red numbers"),this.red._verify2(this,Ut),this.red.imul(this,Ut)},ot.prototype.redSqr=function(){return tt(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},ot.prototype.redISqr=function(){return tt(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},ot.prototype.redSqrt=function(){return tt(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},ot.prototype.redInvm=function(){return tt(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},ot.prototype.redNeg=function(){return tt(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},ot.prototype.redPow=function(Ut){return tt(this.red&&!Ut.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Ut)};var ct={k256:null,p224:null,p192:null,p25519:null};function It($t,Ut){this.name=$t,this.p=new ot(Ut,16),this.n=this.p.bitLength(),this.k=new ot(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}It.prototype._tmp=function(){var Ut=new ot(null);return Ut.words=new Array(Math.ceil(this.n/13)),Ut},It.prototype.ireduce=function(Ut){var Ht=Ut,Vt;do this.split(Ht,this.tmp),Ht=this.imulK(Ht),Ht=Ht.iadd(this.tmp),Vt=Ht.bitLength();while(Vt>this.n);var Xt=Vt0?Ht.isub(this.p):Ht.strip!==void 0?Ht.strip():Ht._strip(),Ht},It.prototype.split=function(Ut,Ht){Ut.iushrn(this.n,0,Ht)},It.prototype.imulK=function(Ut){return Ut.imul(this.k)};function At(){It.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}st(At,It),At.prototype.split=function(Ut,Ht){for(var Vt=4194303,Xt=Math.min(Ut.length,9),qt=0;qt>>22,er=lr}er>>>=22,Ut.words[qt-10]=er,er===0&&Ut.length>10?Ut.length-=10:Ut.length-=9},At.prototype.imulK=function(Ut){Ut.words[Ut.length]=0,Ut.words[Ut.length+1]=0,Ut.length+=2;for(var Ht=0,Vt=0;Vt>>=26,Ut.words[Vt]=qt,Ht=Xt}return Ht!==0&&(Ut.words[Ut.length++]=Ht),Ut},ot._prime=function(Ut){if(ct[Ut])return ct[Ut];var Ht;if(Ut==="k256")Ht=new At;else if(Ut==="p224")Ht=new Ot;else if(Ut==="p192")Ht=new Pt;else if(Ut==="p25519")Ht=new zt;else throw new Error("Unknown prime "+Ut);return ct[Ut]=Ht,Ht};function Dt($t){if(typeof $t=="string"){var Ut=ot._prime($t);this.m=Ut.p,this.prime=Ut}else tt($t.gtn(1),"modulus must be greater than 1"),this.m=$t,this.prime=null}Dt.prototype._verify1=function(Ut){tt(Ut.negative===0,"red works only with positives"),tt(Ut.red,"red works only with red numbers")},Dt.prototype._verify2=function(Ut,Ht){tt((Ut.negative|Ht.negative)===0,"red works only with positives"),tt(Ut.red&&Ut.red===Ht.red,"red works only with red numbers")},Dt.prototype.imod=function(Ut){return this.prime?this.prime.ireduce(Ut)._forceRed(this):Ut.umod(this.m)._forceRed(this)},Dt.prototype.neg=function(Ut){return Ut.isZero()?Ut.clone():this.m.sub(Ut)._forceRed(this)},Dt.prototype.add=function(Ut,Ht){this._verify2(Ut,Ht);var Vt=Ut.add(Ht);return Vt.cmp(this.m)>=0&&Vt.isub(this.m),Vt._forceRed(this)},Dt.prototype.iadd=function(Ut,Ht){this._verify2(Ut,Ht);var Vt=Ut.iadd(Ht);return Vt.cmp(this.m)>=0&&Vt.isub(this.m),Vt},Dt.prototype.sub=function(Ut,Ht){this._verify2(Ut,Ht);var Vt=Ut.sub(Ht);return Vt.cmpn(0)<0&&Vt.iadd(this.m),Vt._forceRed(this)},Dt.prototype.isub=function(Ut,Ht){this._verify2(Ut,Ht);var Vt=Ut.isub(Ht);return Vt.cmpn(0)<0&&Vt.iadd(this.m),Vt},Dt.prototype.shl=function(Ut,Ht){return this._verify1(Ut),this.imod(Ut.ushln(Ht))},Dt.prototype.imul=function(Ut,Ht){return this._verify2(Ut,Ht),this.imod(Ut.imul(Ht))},Dt.prototype.mul=function(Ut,Ht){return this._verify2(Ut,Ht),this.imod(Ut.mul(Ht))},Dt.prototype.isqr=function(Ut){return this.imul(Ut,Ut.clone())},Dt.prototype.sqr=function(Ut){return this.mul(Ut,Ut)},Dt.prototype.sqrt=function(Ut){if(Ut.isZero())return Ut.clone();var Ht=this.m.andln(3);if(tt(Ht%2===1),Ht===3){var Vt=this.m.add(new ot(1)).iushrn(2);return this.pow(Ut,Vt)}for(var Xt=this.m.subn(1),qt=0;!Xt.isZero()&&Xt.andln(1)===0;)qt++,Xt.iushrn(1);tt(!Xt.isZero());var er=new ot(1).toRed(this),lr=er.redNeg(),Jt=this.m.subn(1).iushrn(1),Yt=this.m.bitLength();for(Yt=new ot(2*Yt*Yt).toRed(this);this.pow(Yt,Jt).cmp(lr)!==0;)Yt.redIAdd(lr);for(var rr=this.pow(Yt,Xt),jt=this.pow(Ut,Xt.addn(1).iushrn(1)),ar=this.pow(Ut,Xt),sr=qt;ar.cmp(er)!==0;){for(var Zt=ar,Kt=0;Zt.cmp(er)!==0;Kt++)Zt=Zt.redSqr();tt(Kt=0;qt--){for(var rr=Ht.words[qt],jt=Yt-1;jt>=0;jt--){var ar=rr>>jt&1;if(er!==Xt[0]&&(er=this.sqr(er)),ar===0&&lr===0){Jt=0;continue}lr<<=1,lr|=ar,Jt++,!(Jt!==Vt&&(qt!==0||jt!==0))&&(er=this.mul(er,Xt[lr]),Jt=0,lr=0)}Yt=26}return er},Dt.prototype.convertTo=function(Ut){var Ht=Ut.umod(this.m);return Ht===Ut?Ht.clone():Ht},Dt.prototype.convertFrom=function(Ut){var Ht=Ut.clone();return Ht.red=null,Ht},ot.mont=function(Ut){return new Nt(Ut)};function Nt($t){Dt.call(this,$t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new ot(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)}st(Nt,Dt),Nt.prototype.convertTo=function(Ut){return this.imod(Ut.ushln(this.shift))},Nt.prototype.convertFrom=function(Ut){var Ht=this.imod(Ut.mul(this.rinv));return Ht.red=null,Ht},Nt.prototype.imul=function(Ut,Ht){if(Ut.isZero()||Ht.isZero())return Ut.words[0]=0,Ut.length=1,Ut;var Vt=Ut.imul(Ht),Xt=Vt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),qt=Vt.isub(Xt).iushrn(this.shift),er=qt;return qt.cmp(this.m)>=0?er=qt.isub(this.m):qt.cmpn(0)<0&&(er=qt.iadd(this.m)),er._forceRed(this)},Nt.prototype.mul=function(Ut,Ht){if(Ut.isZero()||Ht.isZero())return new ot(0)._forceRed(this);var Vt=Ut.mul(Ht),Xt=Vt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),qt=Vt.isub(Xt).iushrn(this.shift),er=qt;return qt.cmp(this.m)>=0?er=qt.isub(this.m):qt.cmpn(0)<0&&(er=qt.iadd(this.m)),er._forceRed(this)},Nt.prototype.invm=function(Ut){var Ht=this.imod(Ut._invmp(this.m).mul(this.r2));return Ht._forceRed(this)}}(ut,this)},6204:function(ut){ut.exports=ht;function ht(j){var _,rt,tt,st=j.length,ot=0;for(_=0;_>>1;if(!(wt<=0)){var ct,It=_.mallocDouble(2*wt*Et),At=_.mallocInt32(Et);if(Et=ot(mt,wt,It,At),Et>0){if(wt===1&&Mt)rt.init(Et),ct=rt.sweepComplete(wt,_t,0,Et,It,At,0,Et,It,At);else{var Ot=_.mallocDouble(2*wt*kt),Pt=_.mallocInt32(kt);kt=ot(St,wt,Ot,Pt),kt>0&&(rt.init(Et+kt),wt===1?ct=rt.sweepBipartite(wt,_t,0,Et,It,At,0,kt,Ot,Pt):ct=tt(wt,_t,Mt,Et,It,At,kt,Ot,Pt),_.free(Ot),_.free(Pt))}_.free(It),_.free(At)}return ct}}}var vt;function dt(mt,St){vt.push([mt,St])}function bt(mt){return vt=[],nt(mt,mt,dt,!0),vt}function ft(mt,St){return vt=[],nt(mt,St,dt,!1),vt}function at(mt,St,_t){switch(arguments.length){case 1:return bt(mt);case 2:return typeof St=="function"?nt(mt,mt,St,!0):ft(mt,St);case 3:return nt(mt,St,_t,!1);default:throw new Error("box-intersect: Invalid arguments")}}},2455:function(ut,ht){function j(){function tt(nt,vt,dt,bt,ft,at,mt,St,_t,Mt,Et){for(var kt=2*nt,wt=bt,ct=kt*bt;wt_t-St?tt(nt,vt,dt,bt,ft,at,mt,St,_t,Mt,Et):st(nt,vt,dt,bt,ft,at,mt,St,_t,Mt,Et)}return ot}function _(){function tt(dt,bt,ft,at,mt,St,_t,Mt,Et,kt,wt){for(var ct=2*dt,It=at,At=ct*at;Itkt-Et?at?tt(dt,bt,ft,mt,St,_t,Mt,Et,kt,wt,ct):st(dt,bt,ft,mt,St,_t,Mt,Et,kt,wt,ct):at?ot(dt,bt,ft,mt,St,_t,Mt,Et,kt,wt,ct):nt(dt,bt,ft,mt,St,_t,Mt,Et,kt,wt,ct)}return vt}function rt(tt){return tt?j():_()}ht.partial=rt(!1),ht.full=rt(!0)},7150:function(ut,ht,j){ut.exports=$t;var _=j(1888),rt=j(8828),tt=j(2455),st=tt.partial,ot=tt.full,nt=j(855),vt=j(3545),dt=j(8105),bt=128,ft=1<<22,at=1<<22,mt=dt("!(lo>=p0)&&!(p1>=hi)"),St=dt("lo===p0"),_t=dt("lo0;){rr-=1;var sr=rr*wt,Zt=At[sr],Kt=At[sr+1],or=At[sr+2],tr=At[sr+3],cr=At[sr+4],mr=At[sr+5],Ar=rr*ct,br=Ot[Ar],Ir=Ot[Ar+1],Tr=mr&1,_r=!!(mr&16),Er=qt,Rr=er,zr=Jt,Or=Yt;if(Tr&&(Er=Jt,Rr=Yt,zr=qt,Or=er),!(mr&2&&(or=_t(Ut,Zt,Kt,or,Er,Rr,Ir),Kt>=or))&&!(mr&4&&(Kt=Mt(Ut,Zt,Kt,or,Er,Rr,br),Kt>=or))){var kr=or-Kt,Nr=cr-tr;if(_r){if(Ut*kr*(kr+Nr)dt&&ft[kt+vt]>Mt;--Et,kt-=mt){for(var wt=kt,ct=kt+mt,It=0;It>>1,Mt=2*nt,Et=_t,kt=ft[Mt*_t+vt];mt=Ot?(Et=At,kt=Ot):It>=zt?(Et=ct,kt=It):(Et=Pt,kt=zt):Ot>=zt?(Et=At,kt=Ot):zt>=It?(Et=ct,kt=It):(Et=Pt,kt=zt);for(var $t=Mt*(St-1),Ut=Mt*Et,Dt=0;Dt=p0)&&!(p1>=hi)":vt};function j(dt){return ht[dt]}function _(dt,bt,ft,at,mt,St,_t){for(var Mt=2*dt,Et=Mt*ft,kt=Et,wt=ft,ct=bt,It=dt+bt,At=ft;at>At;++At,Et+=Mt){var Ot=mt[Et+ct];if(Ot===_t)if(wt===At)wt+=1,kt+=Mt;else{for(var Pt=0;Mt>Pt;++Pt){var zt=mt[Et+Pt];mt[Et+Pt]=mt[kt],mt[kt++]=zt}var Dt=St[At];St[At]=St[wt],St[wt++]=Dt}}return wt}function rt(dt,bt,ft,at,mt,St,_t){for(var Mt=2*dt,Et=Mt*ft,kt=Et,wt=ft,ct=bt,It=dt+bt,At=ft;at>At;++At,Et+=Mt){var Ot=mt[Et+ct];if(Ot<_t)if(wt===At)wt+=1,kt+=Mt;else{for(var Pt=0;Mt>Pt;++Pt){var zt=mt[Et+Pt];mt[Et+Pt]=mt[kt],mt[kt++]=zt}var Dt=St[At];St[At]=St[wt],St[wt++]=Dt}}return wt}function tt(dt,bt,ft,at,mt,St,_t){for(var Mt=2*dt,Et=Mt*ft,kt=Et,wt=ft,ct=bt,It=dt+bt,At=ft;at>At;++At,Et+=Mt){var Ot=mt[Et+It];if(Ot<=_t)if(wt===At)wt+=1,kt+=Mt;else{for(var Pt=0;Mt>Pt;++Pt){var zt=mt[Et+Pt];mt[Et+Pt]=mt[kt],mt[kt++]=zt}var Dt=St[At];St[At]=St[wt],St[wt++]=Dt}}return wt}function st(dt,bt,ft,at,mt,St,_t){for(var Mt=2*dt,Et=Mt*ft,kt=Et,wt=ft,ct=bt,It=dt+bt,At=ft;at>At;++At,Et+=Mt){var Ot=mt[Et+It];if(Ot<=_t)if(wt===At)wt+=1,kt+=Mt;else{for(var Pt=0;Mt>Pt;++Pt){var zt=mt[Et+Pt];mt[Et+Pt]=mt[kt],mt[kt++]=zt}var Dt=St[At];St[At]=St[wt],St[wt++]=Dt}}return wt}function ot(dt,bt,ft,at,mt,St,_t){for(var Mt=2*dt,Et=Mt*ft,kt=Et,wt=ft,ct=bt,It=dt+bt,At=ft;at>At;++At,Et+=Mt){var Ot=mt[Et+ct],Pt=mt[Et+It];if(Ot<=_t&&_t<=Pt)if(wt===At)wt+=1,kt+=Mt;else{for(var zt=0;Mt>zt;++zt){var Dt=mt[Et+zt];mt[Et+zt]=mt[kt],mt[kt++]=Dt}var Nt=St[At];St[At]=St[wt],St[wt++]=Nt}}return wt}function nt(dt,bt,ft,at,mt,St,_t){for(var Mt=2*dt,Et=Mt*ft,kt=Et,wt=ft,ct=bt,It=dt+bt,At=ft;at>At;++At,Et+=Mt){var Ot=mt[Et+ct],Pt=mt[Et+It];if(Ot<_t&&_t<=Pt)if(wt===At)wt+=1,kt+=Mt;else{for(var zt=0;Mt>zt;++zt){var Dt=mt[Et+zt];mt[Et+zt]=mt[kt],mt[kt++]=Dt}var Nt=St[At];St[At]=St[wt],St[wt++]=Nt}}return wt}function vt(dt,bt,ft,at,mt,St,_t,Mt){for(var Et=2*dt,kt=Et*ft,wt=kt,ct=ft,It=bt,At=dt+bt,Ot=ft;at>Ot;++Ot,kt+=Et){var Pt=mt[kt+It],zt=mt[kt+At];if(!(Pt>=_t)&&!(Mt>=zt))if(ct===Ot)ct+=1,wt+=Et;else{for(var Dt=0;Et>Dt;++Dt){var Nt=mt[kt+Dt];mt[kt+Dt]=mt[wt],mt[wt++]=Nt}var $t=St[Ot];St[Ot]=St[ct],St[ct++]=$t}}return ct}},1811:function(ut){ut.exports=j;var ht=32;function j(bt,ft){ft<=4*ht?_(0,ft-1,bt):dt(0,ft-1,bt)}function _(bt,ft,at){for(var mt=2*(bt+1),St=bt+1;St<=ft;++St){for(var _t=at[mt++],Mt=at[mt++],Et=St,kt=mt-2;Et-- >bt;){var wt=at[kt-2],ct=at[kt-1];if(wt<_t)break;if(wt===_t&&ctat[ft+1]:!0}function vt(bt,ft,at,mt){bt*=2;var St=mt[bt];return St>1,Et=Mt-mt,kt=Mt+mt,wt=St,ct=Et,It=Mt,At=kt,Ot=_t,Pt=bt+1,zt=ft-1,Dt=0;nt(wt,ct,at)&&(Dt=wt,wt=ct,ct=Dt),nt(At,Ot,at)&&(Dt=At,At=Ot,Ot=Dt),nt(wt,It,at)&&(Dt=wt,wt=It,It=Dt),nt(ct,It,at)&&(Dt=ct,ct=It,It=Dt),nt(wt,At,at)&&(Dt=wt,wt=At,At=Dt),nt(It,At,at)&&(Dt=It,It=At,At=Dt),nt(ct,Ot,at)&&(Dt=ct,ct=Ot,Ot=Dt),nt(ct,It,at)&&(Dt=ct,ct=It,It=Dt),nt(At,Ot,at)&&(Dt=At,At=Ot,Ot=Dt);for(var Nt=at[2*ct],$t=at[2*ct+1],Ut=at[2*At],Ht=at[2*At+1],Vt=2*wt,Xt=2*It,qt=2*Ot,er=2*St,lr=2*Mt,Jt=2*_t,Yt=0;Yt<2;++Yt){var rr=at[Vt+Yt],jt=at[Xt+Yt],ar=at[qt+Yt];at[er+Yt]=rr,at[lr+Yt]=jt,at[Jt+Yt]=ar}tt(Et,bt,at),tt(kt,ft,at);for(var sr=Pt;sr<=zt;++sr)if(vt(sr,Nt,$t,at))sr!==Pt&&rt(sr,Pt,at),++Pt;else if(!vt(sr,Ut,Ht,at))for(;;)if(vt(zt,Ut,Ht,at)){vt(zt,Nt,$t,at)?(st(sr,Pt,zt,at),++Pt,--zt):(rt(sr,zt,at),--zt);break}else{if(--zt>>1;tt(mt,jt);for(var ar=0,sr=0,lr=0;lr=st)Zt=Zt-st|0,_t(dt,bt,sr--,Zt);else if(Zt>=0)_t(nt,vt,ar--,Zt);else if(Zt<=-st){Zt=-Zt-st|0;for(var Kt=0;Kt>>1;tt(mt,jt);for(var ar=0,sr=0,Zt=0,lr=0;lr>1===mt[2*lr+3]>>1&&(or=2,lr+=1),Kt<0){for(var tr=-(Kt>>1)-1,cr=0;cr>1)-1;or===0?_t(nt,vt,ar--,tr):or===1?_t(dt,bt,sr--,tr):or===2&&_t(ft,at,Zt--,tr)}}}function wt(It,At,Ot,Pt,zt,Dt,Nt,$t,Ut,Ht,Vt,Xt){var qt=0,er=2*It,lr=At,Jt=At+It,Yt=1,rr=1;Pt?rr=st:Yt=st;for(var jt=zt;jt>>1;tt(mt,Kt);for(var or=0,jt=0;jt=st?(cr=!Pt,ar-=st):(cr=!!Pt,ar-=1),cr)Mt(nt,vt,or++,ar);else{var mr=Xt[ar],Ar=er*ar,br=Vt[Ar+At+1],Ir=Vt[Ar+At+1+It];e:for(var Tr=0;Tr>>1;tt(mt,ar);for(var sr=0,Jt=0;Jt=st)nt[sr++]=Yt-st;else{Yt-=1;var Kt=Vt[Yt],or=qt*Yt,tr=Ht[or+At+1],cr=Ht[or+At+1+It];e:for(var mr=0;mr=0;--mr)if(nt[mr]===Yt){for(var Tr=mr+1;Tr0;){for(var mt=nt.pop(),bt=nt.pop(),St=-1,_t=-1,ft=dt[bt],Et=1;Et=0||(ot.flip(bt,mt),rt(st,ot,nt,St,bt,_t),rt(st,ot,nt,bt,_t,St),rt(st,ot,nt,_t,mt,St),rt(st,ot,nt,mt,St,_t))}}},5023:function(ut,ht,j){var _=j(2478);ut.exports=vt;function rt(dt,bt,ft,at,mt,St,_t){this.cells=dt,this.neighbor=bt,this.flags=at,this.constraint=ft,this.active=mt,this.next=St,this.boundary=_t}var tt=rt.prototype;function st(dt,bt){return dt[0]-bt[0]||dt[1]-bt[1]||dt[2]-bt[2]}tt.locate=function(){var dt=[0,0,0];return function(bt,ft,at){var mt=bt,St=ft,_t=at;return ft0||_t.length>0;){for(;St.length>0;){var ct=St.pop();if(Mt[ct]!==-mt){Mt[ct]=mt,Et[ct];for(var It=0;It<3;++It){var At=wt[3*ct+It];At>=0&&Mt[At]===0&&(kt[3*ct+It]?_t.push(At):(St.push(At),Mt[At]=mt))}}}var Ot=_t;_t=St,St=Ot,_t.length=0,mt=-mt}var Pt=nt(Et,Mt,bt);return ft?Pt.concat(at.boundary):Pt}},8902:function(ut,ht,j){var _=j(2478),rt=j(3250)[3],tt=0,st=1,ot=2;ut.exports=_t;function nt(Mt,Et,kt,wt,ct){this.a=Mt,this.b=Et,this.idx=kt,this.lowerIds=wt,this.upperIds=ct}function vt(Mt,Et,kt,wt){this.a=Mt,this.b=Et,this.type=kt,this.idx=wt}function dt(Mt,Et){var kt=Mt.a[0]-Et.a[0]||Mt.a[1]-Et.a[1]||Mt.type-Et.type;return kt||Mt.type!==tt&&(kt=rt(Mt.a,Mt.b,Et.b),kt)?kt:Mt.idx-Et.idx}function bt(Mt,Et){return rt(Mt.a,Mt.b,Et)}function ft(Mt,Et,kt,wt,ct){for(var It=_.lt(Et,wt,bt),At=_.gt(Et,wt,bt),Ot=It;Ot1&&rt(kt[zt[Nt-2]],kt[zt[Nt-1]],wt)>0;)Mt.push([zt[Nt-1],zt[Nt-2],ct]),Nt-=1;zt.length=Nt,zt.push(ct);for(var Dt=Pt.upperIds,Nt=Dt.length;Nt>1&&rt(kt[Dt[Nt-2]],kt[Dt[Nt-1]],wt)<0;)Mt.push([Dt[Nt-2],Dt[Nt-1],ct]),Nt-=1;Dt.length=Nt,Dt.push(ct)}}function at(Mt,Et){var kt;return Mt.a[0]Pt[0]&&ct.push(new vt(Pt,Ot,ot,It),new vt(Ot,Pt,st,It))}ct.sort(dt);for(var zt=ct[0].a[0]-(1+Math.abs(ct[0].a[0]))*Math.pow(2,-52),Dt=[new nt([zt,1],[zt,0],-1,[],[])],Nt=[],It=0,$t=ct.length;It<$t;++It){var Ut=ct[It],Ht=Ut.type;Ht===tt?ft(Nt,Dt,Mt,Ut.a,Ut.idx):Ht===ot?mt(Dt,Mt,Ut):St(Dt,Mt,Ut)}return Nt}},5542:function(ut,ht,j){var _=j(2478);ut.exports=ot;function rt(nt,vt){this.stars=nt,this.edges=vt}var tt=rt.prototype;function st(nt,vt,dt){for(var bt=1,ft=nt.length;bt=0}}(),tt.removeTriangle=function(nt,vt,dt){var bt=this.stars;st(bt[nt],vt,dt),st(bt[vt],dt,nt),st(bt[dt],nt,vt)},tt.addTriangle=function(nt,vt,dt){var bt=this.stars;bt[nt].push(vt,dt),bt[vt].push(dt,nt),bt[dt].push(nt,vt)},tt.opposite=function(nt,vt){for(var dt=this.stars[vt],bt=1,ft=dt.length;bt=0;--Ut){var rr=Nt[Ut];Ht=rr[0];var jt=zt[Ht],ar=jt[0],sr=jt[1],Zt=Pt[ar],Kt=Pt[sr];if((Zt[0]-Kt[0]||Zt[1]-Kt[1])<0){var or=ar;ar=sr,sr=or}jt[0]=ar;var tr=jt[1]=rr[1],cr;for($t&&(cr=jt[2]);Ut>0&&Nt[Ut-1][0]===Ht;){var rr=Nt[--Ut],mr=rr[1];$t?zt.push([tr,mr,cr]):zt.push([tr,mr]),tr=mr}$t?zt.push([tr,sr,cr]):zt.push([tr,sr])}return Vt}function Et(Pt,zt,Dt){for(var Nt=zt.length,$t=new _(Nt),Ut=[],Ht=0;Htzt[2]?1:0)}function ct(Pt,zt,Dt){if(Pt.length!==0){if(zt)for(var Nt=0;Nt0||Ht.length>0}function Ot(Pt,zt,Dt){var Nt;if(Dt){Nt=zt;for(var $t=new Array(zt.length),Ut=0;UtMt+1)throw new Error(St+" map requires nshades to be at least size "+mt.length);Array.isArray(vt.alpha)?vt.alpha.length!==2?Et=[1,1]:Et=vt.alpha.slice():typeof vt.alpha=="number"?Et=[vt.alpha,vt.alpha]:Et=[1,1],dt=mt.map(function(Ot){return Math.round(Ot.index*Mt)}),Et[0]=Math.min(Math.max(Et[0],0),1),Et[1]=Math.min(Math.max(Et[1],0),1);var wt=mt.map(function(Ot,Pt){var zt=mt[Pt].index,Dt=mt[Pt].rgb.slice();return Dt.length===4&&Dt[3]>=0&&Dt[3]<=1||(Dt[3]=Et[0]+(Et[1]-Et[0])*zt),Dt}),ct=[];for(kt=0;kt=0}function vt(dt,bt,ft,at){var mt=_(bt,ft,at);if(mt===0){var St=rt(_(dt,bt,ft)),_t=rt(_(dt,bt,at));if(St===_t){if(St===0){var Mt=nt(dt,bt,ft),Et=nt(dt,bt,at);return Mt===Et?0:Mt?1:-1}return 0}else{if(_t===0)return St>0||nt(dt,bt,at)?-1:1;if(St===0)return _t>0||nt(dt,bt,ft)?1:-1}return rt(_t-St)}var kt=_(dt,bt,ft);if(kt>0)return mt>0&&_(dt,bt,at)>0?1:-1;if(kt<0)return mt>0||_(dt,bt,at)>0?1:-1;var wt=_(dt,bt,at);return wt>0||nt(dt,bt,ft)?1:-1}},8572:function(ut){ut.exports=function(j){return j<0?-1:j>0?1:0}},8507:function(ut){ut.exports=_;var ht=Math.min;function j(rt,tt){return rt-tt}function _(rt,tt){var st=rt.length,ot=rt.length-tt.length;if(ot)return ot;switch(st){case 0:return 0;case 1:return rt[0]-tt[0];case 2:return rt[0]+rt[1]-tt[0]-tt[1]||ht(rt[0],rt[1])-ht(tt[0],tt[1]);case 3:var nt=rt[0]+rt[1],vt=tt[0]+tt[1];if(ot=nt+rt[2]-(vt+tt[2]),ot)return ot;var dt=ht(rt[0],rt[1]),bt=ht(tt[0],tt[1]);return ht(dt,rt[2])-ht(bt,tt[2])||ht(dt+rt[2],nt)-ht(bt+tt[2],vt);case 4:var ft=rt[0],at=rt[1],mt=rt[2],St=rt[3],_t=tt[0],Mt=tt[1],Et=tt[2],kt=tt[3];return ft+at+mt+St-(_t+Mt+Et+kt)||ht(ft,at,mt,St)-ht(_t,Mt,Et,kt,_t)||ht(ft+at,ft+mt,ft+St,at+mt,at+St,mt+St)-ht(_t+Mt,_t+Et,_t+kt,Mt+Et,Mt+kt,Et+kt)||ht(ft+at+mt,ft+at+St,ft+mt+St,at+mt+St)-ht(_t+Mt+Et,_t+Mt+kt,_t+Et+kt,Mt+Et+kt);default:for(var wt=rt.slice().sort(j),ct=tt.slice().sort(j),It=0;Itj[rt][0]&&(rt=tt);return _rt?[[rt],[_]]:[[_]]}},4750:function(ut,ht,j){ut.exports=rt;var _=j(3090);function rt(tt){var st=_(tt),ot=st.length;if(ot<=2)return[];for(var nt=new Array(ot),vt=st[ot-1],dt=0;dt=vt[_t]&&(St+=1);at[mt]=St}}return nt}function ot(nt,vt){try{return _(nt,!0)}catch{var dt=rt(nt);if(dt.length<=vt)return[];var bt=tt(nt,dt),ft=_(bt,!0);return st(ft,dt)}}},4769:function(ut){function ht(_,rt,tt,st,ot,nt){var vt=6*ot*ot-6*ot,dt=3*ot*ot-4*ot+1,bt=-6*ot*ot+6*ot,ft=3*ot*ot-2*ot;if(_.length){nt||(nt=new Array(_.length));for(var at=_.length-1;at>=0;--at)nt[at]=vt*_[at]+dt*rt[at]+bt*tt[at]+ft*st[at];return nt}return vt*_+dt*rt+bt*tt[at]+ft*st}function j(_,rt,tt,st,ot,nt){var vt=ot-1,dt=ot*ot,bt=vt*vt,ft=(1+2*ot)*bt,at=ot*bt,mt=dt*(3-2*ot),St=dt*vt;if(_.length){nt||(nt=new Array(_.length));for(var _t=_.length-1;_t>=0;--_t)nt[_t]=ft*_[_t]+at*rt[_t]+mt*tt[_t]+St*st[_t];return nt}return ft*_+at*rt+mt*tt+St*st}ut.exports=j,ut.exports.derivative=ht},7642:function(ut,ht,j){var _=j(8954),rt=j(1682);ut.exports=nt;function tt(vt,dt){this.point=vt,this.index=dt}function st(vt,dt){for(var bt=vt.point,ft=dt.point,at=bt.length,mt=0;mt=2)return!1;Dt[$t]=Ut}return!0}):zt=zt.filter(function(Dt){for(var Nt=0;Nt<=ft;++Nt){var $t=It[Dt[Nt]];if($t<0)return!1;Dt[Nt]=$t}return!0}),ft&1)for(var St=0;St>>31},ut.exports.exponent=function(mt){var St=ut.exports.hi(mt);return(St<<1>>>21)-1023},ut.exports.fraction=function(mt){var St=ut.exports.lo(mt),_t=ut.exports.hi(mt),Mt=_t&(1<<20)-1;return _t&2146435072&&(Mt+=1048576),[St,Mt]},ut.exports.denormalized=function(mt){var St=ut.exports.hi(mt);return!(St&2146435072)}},1338:function(ut){function ht(rt,tt,st){var ot=rt[st]|0;if(ot<=0)return[];var nt=new Array(ot),vt;if(st===rt.length-1)for(vt=0;vt"u"&&(tt=0),typeof rt){case"number":if(rt>0)return j(rt|0,tt);break;case"object":if(typeof rt.length=="number")return ht(rt,tt,0);break}return[]}ut.exports=_},3134:function(ut,ht,j){ut.exports=rt;var _=j(1682);function rt(tt,st){var ot=tt.length;if(typeof st!="number"){st=0;for(var nt=0;nt=ft-1)for(var kt=St.length-1,ct=dt-bt[ft-1],wt=0;wt=ft-1){var Et=St.length-1;dt-bt[ft-1];for(var kt=0;kt=0;--ft)if(dt[--bt])return!1;return!0},ot.jump=function(dt){var bt=this.lastT(),ft=this.dimension;if(!(dt0;--wt)at.push(tt(Mt[wt-1],Et[wt-1],arguments[wt])),mt.push(0)}},ot.push=function(dt){var bt=this.lastT(),ft=this.dimension;if(!(dt1e-6?1/_t:0;this._time.push(dt);for(var ct=ft;ct>0;--ct){var It=tt(Et[ct-1],kt[ct-1],arguments[ct]);at.push(It),mt.push((It-at[St++])*wt)}}},ot.set=function(dt){var bt=this.dimension;if(!(dt0;--Mt)ft.push(tt(St[Mt-1],_t[Mt-1],arguments[Mt])),at.push(0)}},ot.move=function(dt){var bt=this.lastT(),ft=this.dimension;if(!(dt<=bt||arguments.length!==ft+1)){var at=this._state,mt=this._velocity,St=at.length-this.dimension,_t=this.bounds,Mt=_t[0],Et=_t[1],kt=dt-bt,wt=kt>1e-6?1/kt:0;this._time.push(dt);for(var ct=ft;ct>0;--ct){var It=arguments[ct];at.push(tt(Mt[ct-1],Et[ct-1],at[St++]+It)),mt.push(It*wt)}}},ot.idle=function(dt){var bt=this.lastT();if(!(dt=0;--wt)at.push(tt(Mt[wt],Et[wt],at[St]+kt*mt[St])),mt.push(0),St+=1}};function nt(dt){for(var bt=new Array(dt),ft=0;ft=0;--Pt){var ct=It[Pt];At[Pt]<=0?It[Pt]=new _(ct._color,ct.key,ct.value,It[Pt+1],ct.right,ct._count+1):It[Pt]=new _(ct._color,ct.key,ct.value,ct.left,It[Pt+1],ct._count+1)}for(var Pt=It.length-1;Pt>1;--Pt){var zt=It[Pt-1],ct=It[Pt];if(zt._color===j||ct._color===j)break;var Dt=It[Pt-2];if(Dt.left===zt)if(zt.left===ct){var Nt=Dt.right;if(Nt&&Nt._color===ht)zt._color=j,Dt.right=tt(j,Nt),Dt._color=ht,Pt-=1;else{if(Dt._color=ht,Dt.left=zt.right,zt._color=j,zt.right=Dt,It[Pt-2]=zt,It[Pt-1]=ct,st(Dt),st(zt),Pt>=3){var $t=It[Pt-3];$t.left===Dt?$t.left=zt:$t.right=zt}break}}else{var Nt=Dt.right;if(Nt&&Nt._color===ht)zt._color=j,Dt.right=tt(j,Nt),Dt._color=ht,Pt-=1;else{if(zt.right=ct.left,Dt._color=ht,Dt.left=ct.right,ct._color=j,ct.left=zt,ct.right=Dt,It[Pt-2]=ct,It[Pt-1]=zt,st(Dt),st(zt),st(ct),Pt>=3){var $t=It[Pt-3];$t.left===Dt?$t.left=ct:$t.right=ct}break}}else if(zt.right===ct){var Nt=Dt.left;if(Nt&&Nt._color===ht)zt._color=j,Dt.left=tt(j,Nt),Dt._color=ht,Pt-=1;else{if(Dt._color=ht,Dt.right=zt.left,zt._color=j,zt.left=Dt,It[Pt-2]=zt,It[Pt-1]=ct,st(Dt),st(zt),Pt>=3){var $t=It[Pt-3];$t.right===Dt?$t.right=zt:$t.left=zt}break}}else{var Nt=Dt.left;if(Nt&&Nt._color===ht)zt._color=j,Dt.left=tt(j,Nt),Dt._color=ht,Pt-=1;else{if(zt.left=ct.right,Dt._color=ht,Dt.right=ct.left,ct._color=j,ct.right=zt,ct.left=Dt,It[Pt-2]=ct,It[Pt-1]=zt,st(Dt),st(zt),st(ct),Pt>=3){var $t=It[Pt-3];$t.right===Dt?$t.right=ct:$t.left=ct}break}}}return It[0]._color=j,new ot(wt,It[0])};function vt(Et,kt){if(kt.left){var wt=vt(Et,kt.left);if(wt)return wt}var wt=Et(kt.key,kt.value);if(wt)return wt;if(kt.right)return vt(Et,kt.right)}function dt(Et,kt,wt,ct){var It=kt(Et,ct.key);if(It<=0){if(ct.left){var At=dt(Et,kt,wt,ct.left);if(At)return At}var At=wt(ct.key,ct.value);if(At)return At}if(ct.right)return dt(Et,kt,wt,ct.right)}function bt(Et,kt,wt,ct,It){var At=wt(Et,It.key),Ot=wt(kt,It.key),Pt;if(At<=0&&(It.left&&(Pt=bt(Et,kt,wt,ct,It.left),Pt)||Ot>0&&(Pt=ct(It.key,It.value),Pt)))return Pt;if(Ot>0&&It.right)return bt(Et,kt,wt,ct,It.right)}nt.forEach=function(kt,wt,ct){if(this.root)switch(arguments.length){case 1:return vt(kt,this.root);case 2:return dt(wt,this._compare,kt,this.root);case 3:return this._compare(wt,ct)>=0?void 0:bt(wt,ct,this._compare,kt,this.root)}},Object.defineProperty(nt,"begin",{get:function(){for(var Et=[],kt=this.root;kt;)Et.push(kt),kt=kt.left;return new ft(this,Et)}}),Object.defineProperty(nt,"end",{get:function(){for(var Et=[],kt=this.root;kt;)Et.push(kt),kt=kt.right;return new ft(this,Et)}}),nt.at=function(Et){if(Et<0)return new ft(this,[]);for(var kt=this.root,wt=[];;){if(wt.push(kt),kt.left){if(Et=kt.right._count)break;kt=kt.right}else break}return new ft(this,[])},nt.ge=function(Et){for(var kt=this._compare,wt=this.root,ct=[],It=0;wt;){var At=kt(Et,wt.key);ct.push(wt),At<=0&&(It=ct.length),At<=0?wt=wt.left:wt=wt.right}return ct.length=It,new ft(this,ct)},nt.gt=function(Et){for(var kt=this._compare,wt=this.root,ct=[],It=0;wt;){var At=kt(Et,wt.key);ct.push(wt),At<0&&(It=ct.length),At<0?wt=wt.left:wt=wt.right}return ct.length=It,new ft(this,ct)},nt.lt=function(Et){for(var kt=this._compare,wt=this.root,ct=[],It=0;wt;){var At=kt(Et,wt.key);ct.push(wt),At>0&&(It=ct.length),At<=0?wt=wt.left:wt=wt.right}return ct.length=It,new ft(this,ct)},nt.le=function(Et){for(var kt=this._compare,wt=this.root,ct=[],It=0;wt;){var At=kt(Et,wt.key);ct.push(wt),At>=0&&(It=ct.length),At<0?wt=wt.left:wt=wt.right}return ct.length=It,new ft(this,ct)},nt.find=function(Et){for(var kt=this._compare,wt=this.root,ct=[];wt;){var It=kt(Et,wt.key);if(ct.push(wt),It===0)return new ft(this,ct);It<=0?wt=wt.left:wt=wt.right}return new ft(this,[])},nt.remove=function(Et){var kt=this.find(Et);return kt?kt.remove():this},nt.get=function(Et){for(var kt=this._compare,wt=this.root;wt;){var ct=kt(Et,wt.key);if(ct===0)return wt.value;ct<=0?wt=wt.left:wt=wt.right}};function ft(Et,kt){this.tree=Et,this._stack=kt}var at=ft.prototype;Object.defineProperty(at,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(at,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),at.clone=function(){return new ft(this.tree,this._stack.slice())};function mt(Et,kt){Et.key=kt.key,Et.value=kt.value,Et.left=kt.left,Et.right=kt.right,Et._color=kt._color,Et._count=kt._count}function St(Et){for(var kt,wt,ct,It,At=Et.length-1;At>=0;--At){if(kt=Et[At],At===0){kt._color=j;return}if(wt=Et[At-1],wt.left===kt){if(ct=wt.right,ct.right&&ct.right._color===ht){if(ct=wt.right=rt(ct),It=ct.right=rt(ct.right),wt.right=ct.left,ct.left=wt,ct.right=It,ct._color=wt._color,kt._color=j,wt._color=j,It._color=j,st(wt),st(ct),At>1){var Ot=Et[At-2];Ot.left===wt?Ot.left=ct:Ot.right=ct}Et[At-1]=ct;return}else if(ct.left&&ct.left._color===ht){if(ct=wt.right=rt(ct),It=ct.left=rt(ct.left),wt.right=It.left,ct.left=It.right,It.left=wt,It.right=ct,It._color=wt._color,wt._color=j,ct._color=j,kt._color=j,st(wt),st(ct),st(It),At>1){var Ot=Et[At-2];Ot.left===wt?Ot.left=It:Ot.right=It}Et[At-1]=It;return}if(ct._color===j)if(wt._color===ht){wt._color=j,wt.right=tt(ht,ct);return}else{wt.right=tt(ht,ct);continue}else{if(ct=rt(ct),wt.right=ct.left,ct.left=wt,ct._color=wt._color,wt._color=ht,st(wt),st(ct),At>1){var Ot=Et[At-2];Ot.left===wt?Ot.left=ct:Ot.right=ct}Et[At-1]=ct,Et[At]=wt,At+11){var Ot=Et[At-2];Ot.right===wt?Ot.right=ct:Ot.left=ct}Et[At-1]=ct;return}else if(ct.right&&ct.right._color===ht){if(ct=wt.left=rt(ct),It=ct.right=rt(ct.right),wt.left=It.right,ct.right=It.left,It.right=wt,It.left=ct,It._color=wt._color,wt._color=j,ct._color=j,kt._color=j,st(wt),st(ct),st(It),At>1){var Ot=Et[At-2];Ot.right===wt?Ot.right=It:Ot.left=It}Et[At-1]=It;return}if(ct._color===j)if(wt._color===ht){wt._color=j,wt.left=tt(ht,ct);return}else{wt.left=tt(ht,ct);continue}else{if(ct=rt(ct),wt.left=ct.right,ct.right=wt,ct._color=wt._color,wt._color=ht,st(wt),st(ct),At>1){var Ot=Et[At-2];Ot.right===wt?Ot.right=ct:Ot.left=ct}Et[At-1]=ct,Et[At]=wt,At+1=0;--ct){var wt=Et[ct];wt.left===Et[ct+1]?kt[ct]=new _(wt._color,wt.key,wt.value,kt[ct+1],wt.right,wt._count):kt[ct]=new _(wt._color,wt.key,wt.value,wt.left,kt[ct+1],wt._count)}if(wt=kt[kt.length-1],wt.left&&wt.right){var It=kt.length;for(wt=wt.left;wt.right;)kt.push(wt),wt=wt.right;var At=kt[It-1];kt.push(new _(wt._color,At.key,At.value,wt.left,wt.right,wt._count)),kt[It-1].key=wt.key,kt[It-1].value=wt.value;for(var ct=kt.length-2;ct>=It;--ct)wt=kt[ct],kt[ct]=new _(wt._color,wt.key,wt.value,wt.left,kt[ct+1],wt._count);kt[It-1].left=kt[It]}if(wt=kt[kt.length-1],wt._color===ht){var Ot=kt[kt.length-2];Ot.left===wt?Ot.left=null:Ot.right===wt&&(Ot.right=null),kt.pop();for(var ct=0;ct0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(at,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(at,"index",{get:function(){var Et=0,kt=this._stack;if(kt.length===0){var wt=this.tree.root;return wt?wt._count:0}else kt[kt.length-1].left&&(Et=kt[kt.length-1].left._count);for(var ct=kt.length-2;ct>=0;--ct)kt[ct+1]===kt[ct].right&&(++Et,kt[ct].left&&(Et+=kt[ct].left._count));return Et},enumerable:!0}),at.next=function(){var Et=this._stack;if(Et.length!==0){var kt=Et[Et.length-1];if(kt.right)for(kt=kt.right;kt;)Et.push(kt),kt=kt.left;else for(Et.pop();Et.length>0&&Et[Et.length-1].right===kt;)kt=Et[Et.length-1],Et.pop()}},Object.defineProperty(at,"hasNext",{get:function(){var Et=this._stack;if(Et.length===0)return!1;if(Et[Et.length-1].right)return!0;for(var kt=Et.length-1;kt>0;--kt)if(Et[kt-1].left===Et[kt])return!0;return!1}}),at.update=function(Et){var kt=this._stack;if(kt.length===0)throw new Error("Can't update empty node!");var wt=new Array(kt.length),ct=kt[kt.length-1];wt[wt.length-1]=new _(ct._color,ct.key,Et,ct.left,ct.right,ct._count);for(var It=kt.length-2;It>=0;--It)ct=kt[It],ct.left===kt[It+1]?wt[It]=new _(ct._color,ct.key,ct.value,wt[It+1],ct.right,ct._count):wt[It]=new _(ct._color,ct.key,ct.value,ct.left,wt[It+1],ct._count);return new ot(this.tree._compare,wt[0])},at.prev=function(){var Et=this._stack;if(Et.length!==0){var kt=Et[Et.length-1];if(kt.left)for(kt=kt.left;kt;)Et.push(kt),kt=kt.right;else for(Et.pop();Et.length>0&&Et[Et.length-1].left===kt;)kt=Et[Et.length-1],Et.pop()}},Object.defineProperty(at,"hasPrev",{get:function(){var Et=this._stack;if(Et.length===0)return!1;if(Et[Et.length-1].left)return!0;for(var kt=Et.length-1;kt>0;--kt)if(Et[kt-1].right===Et[kt])return!0;return!1}});function _t(Et,kt){return Etkt?1:0}function Mt(Et){return new ot(Et||_t,null)}},3837:function(ut,ht,j){ut.exports=ct;var _=j(4935),rt=j(501),tt=j(5304),st=j(6429),ot=j(6444),nt=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);function vt(It,At){return It[0]=At[0],It[1]=At[1],It[2]=At[2],It}function dt(It){this.gl=It,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickFontStyle=["normal","normal","normal"],this.tickFontWeight=["normal","normal","normal"],this.tickFontVariant=["normal","normal","normal"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=["auto","auto","auto"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["sans-serif","sans-serif","sans-serif"],this.labelFontStyle=["normal","normal","normal"],this.labelFontWeight=["normal","normal","normal"],this.labelFontVariant=["normal","normal","normal"],this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=["auto","auto","auto"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=tt(It)}var bt=dt.prototype;bt.update=function(It){It=It||{};function At(Jt,Yt,rr){if(rr in It){var jt=It[rr],ar=this[rr],sr;(Jt?Array.isArray(jt)&&Array.isArray(jt[0]):Array.isArray(jt))?this[rr]=sr=[Yt(jt[0]),Yt(jt[1]),Yt(jt[2])]:this[rr]=sr=[Yt(jt),Yt(jt),Yt(jt)];for(var Zt=0;Zt<3;++Zt)if(sr[Zt]!==ar[Zt])return!0}return!1}var Ot=At.bind(this,!1,Number),Pt=At.bind(this,!1,Boolean),zt=At.bind(this,!1,String),Dt=At.bind(this,!0,function(Jt){if(Array.isArray(Jt)){if(Jt.length===3)return[+Jt[0],+Jt[1],+Jt[2],1];if(Jt.length===4)return[+Jt[0],+Jt[1],+Jt[2],+Jt[3]]}return[0,0,0,1]}),Nt,$t=!1,Ut=!1;if("bounds"in It)for(var Ht=It.bounds,Vt=0;Vt<2;++Vt)for(var Xt=0;Xt<3;++Xt)Ht[Vt][Xt]!==this.bounds[Vt][Xt]&&(Ut=!0),this.bounds[Vt][Xt]=Ht[Vt][Xt];if("ticks"in It){Nt=It.ticks,$t=!0,this.autoTicks=!1;for(var Vt=0;Vt<3;++Vt)this.tickSpacing[Vt]=0}else Ot("tickSpacing")&&(this.autoTicks=!0,Ut=!0);if(this._firstInit&&("ticks"in It||"tickSpacing"in It||(this.autoTicks=!0),Ut=!0,$t=!0,this._firstInit=!1),Ut&&this.autoTicks&&(Nt=ot.create(this.bounds,this.tickSpacing),$t=!0),$t){for(var Vt=0;Vt<3;++Vt)Nt[Vt].sort(function(Yt,rr){return Yt.x-rr.x});ot.equal(Nt,this.ticks)?$t=!1:this.ticks=Nt}Pt("tickEnable"),zt("tickFont")&&($t=!0),zt("tickFontStyle")&&($t=!0),zt("tickFontWeight")&&($t=!0),zt("tickFontVariant")&&($t=!0),Ot("tickSize"),Ot("tickAngle"),Ot("tickPad"),Dt("tickColor");var qt=zt("labels");zt("labelFont")&&(qt=!0),zt("labelFontStyle")&&(qt=!0),zt("labelFontWeight")&&(qt=!0),zt("labelFontVariant")&&(qt=!0),Pt("labelEnable"),Ot("labelSize"),Ot("labelPad"),Dt("labelColor"),Pt("lineEnable"),Pt("lineMirror"),Ot("lineWidth"),Dt("lineColor"),Pt("lineTickEnable"),Pt("lineTickMirror"),Ot("lineTickLength"),Ot("lineTickWidth"),Dt("lineTickColor"),Pt("gridEnable"),Ot("gridWidth"),Dt("gridColor"),Pt("zeroEnable"),Dt("zeroLineColor"),Ot("zeroLineWidth"),Pt("backgroundEnable"),Dt("backgroundColor");var er=[{family:this.labelFont[0],style:this.labelFontStyle[0],weight:this.labelFontWeight[0],variant:this.labelFontVariant[0]},{family:this.labelFont[1],style:this.labelFontStyle[1],weight:this.labelFontWeight[1],variant:this.labelFontVariant[1]},{family:this.labelFont[2],style:this.labelFontStyle[2],weight:this.labelFontWeight[2],variant:this.labelFontVariant[2]}],lr=[{family:this.tickFont[0],style:this.tickFontStyle[0],weight:this.tickFontWeight[0],variant:this.tickFontVariant[0]},{family:this.tickFont[1],style:this.tickFontStyle[1],weight:this.tickFontWeight[1],variant:this.tickFontVariant[1]},{family:this.tickFont[2],style:this.tickFontStyle[2],weight:this.tickFontWeight[2],variant:this.tickFontVariant[2]}];this._text?this._text&&(qt||$t)&&this._text.update(this.bounds,this.labels,er,this.ticks,lr):this._text=_(this.gl,this.bounds,this.labels,er,this.ticks,lr),this._lines&&$t&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=rt(this.gl,this.bounds,this.ticks))};function ft(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}var at=[new ft,new ft,new ft];function mt(It,At,Ot,Pt,zt){for(var Dt=It.primalOffset,Nt=It.primalMinor,$t=It.mirrorOffset,Ut=It.mirrorMinor,Ht=Pt[At],Vt=0;Vt<3;++Vt)if(At!==Vt){var Xt=Dt,qt=$t,er=Nt,lr=Ut;Ht&1<0?(er[Vt]=-1,lr[Vt]=0):(er[Vt]=0,lr[Vt]=1)}}var St=[0,0,0],_t={model:nt,view:nt,projection:nt,_ortho:!1};bt.isOpaque=function(){return!0},bt.isTransparent=function(){return!1},bt.drawTransparent=function(It){};var Mt=0,Et=[0,0,0],kt=[0,0,0],wt=[0,0,0];bt.draw=function(It){It=It||_t;for(var rr=this.gl,At=It.model||nt,Ot=It.view||nt,Pt=It.projection||nt,zt=this.bounds,Dt=It._ortho||!1,Nt=st(At,Ot,Pt,zt,Dt),$t=Nt.cubeEdges,Ut=Nt.axis,Ht=Ot[12],Vt=Ot[13],Xt=Ot[14],qt=Ot[15],er=Dt?2:1,lr=er*this.pixelRatio*(Pt[3]*Ht+Pt[7]*Vt+Pt[11]*Xt+Pt[15]*qt)/rr.drawingBufferHeight,Jt=0;Jt<3;++Jt)this.lastCubeProps.cubeEdges[Jt]=$t[Jt],this.lastCubeProps.axis[Jt]=Ut[Jt];for(var Yt=at,Jt=0;Jt<3;++Jt)mt(at[Jt],Jt,this.bounds,$t,Ut);for(var rr=this.gl,jt=St,Jt=0;Jt<3;++Jt)this.backgroundEnable[Jt]?jt[Jt]=Ut[Jt]:jt[Jt]=0;this._background.draw(At,Ot,Pt,zt,jt,this.backgroundColor),this._lines.bind(At,Ot,Pt,this);for(var Jt=0;Jt<3;++Jt){var ar=[0,0,0];Ut[Jt]>0?ar[Jt]=zt[1][Jt]:ar[Jt]=zt[0][Jt];for(var sr=0;sr<2;++sr){var Zt=(Jt+1+sr)%3,Kt=(Jt+1+(sr^1))%3;this.gridEnable[Zt]&&this._lines.drawGrid(Zt,Kt,this.bounds,ar,this.gridColor[Zt],this.gridWidth[Zt]*this.pixelRatio)}for(var sr=0;sr<2;++sr){var Zt=(Jt+1+sr)%3,Kt=(Jt+1+(sr^1))%3;this.zeroEnable[Kt]&&Math.min(zt[0][Kt],zt[1][Kt])<=0&&Math.max(zt[0][Kt],zt[1][Kt])>=0&&this._lines.drawZero(Zt,Kt,this.bounds,ar,this.zeroLineColor[Kt],this.zeroLineWidth[Kt]*this.pixelRatio)}}for(var Jt=0;Jt<3;++Jt){this.lineEnable[Jt]&&this._lines.drawAxisLine(Jt,this.bounds,Yt[Jt].primalOffset,this.lineColor[Jt],this.lineWidth[Jt]*this.pixelRatio),this.lineMirror[Jt]&&this._lines.drawAxisLine(Jt,this.bounds,Yt[Jt].mirrorOffset,this.lineColor[Jt],this.lineWidth[Jt]*this.pixelRatio);for(var or=vt(Et,Yt[Jt].primalMinor),tr=vt(kt,Yt[Jt].mirrorMinor),cr=this.lineTickLength,sr=0;sr<3;++sr){var mr=lr/At[5*sr];or[sr]*=cr[sr]*mr,tr[sr]*=cr[sr]*mr}this.lineTickEnable[Jt]&&this._lines.drawAxisTicks(Jt,Yt[Jt].primalOffset,or,this.lineTickColor[Jt],this.lineTickWidth[Jt]*this.pixelRatio),this.lineTickMirror[Jt]&&this._lines.drawAxisTicks(Jt,Yt[Jt].mirrorOffset,tr,this.lineTickColor[Jt],this.lineTickWidth[Jt]*this.pixelRatio)}this._lines.unbind(),this._text.bind(At,Ot,Pt,this.pixelRatio);var Ar,br=.5,Ir,Tr;function _r(Nr){Tr=[0,0,0],Tr[Nr]=1}function Er(Nr,Qr,sn){var un=(Nr+1)%3,en=(Nr+2)%3,Xr=Qr[un],ln=Qr[en],mn=sn[un],pn=sn[en];if(Xr>0&&pn>0){_r(un);return}else if(Xr>0&&pn<0){_r(un);return}else if(Xr<0&&pn>0){_r(un);return}else if(Xr<0&&pn<0){_r(un);return}else if(ln>0&&mn>0){_r(en);return}else if(ln>0&&mn<0){_r(en);return}else if(ln<0&&mn>0){_r(en);return}else if(ln<0&&mn<0){_r(en);return}}for(var Jt=0;Jt<3;++Jt){for(var Rr=Yt[Jt].primalMinor,zr=Yt[Jt].mirrorMinor,Or=vt(wt,Yt[Jt].primalOffset),sr=0;sr<3;++sr)this.lineTickEnable[Jt]&&(Or[sr]+=lr*Rr[sr]*Math.max(this.lineTickLength[sr],0)/At[5*sr]);var kr=[0,0,0];if(kr[Jt]=1,this.tickEnable[Jt]){this.tickAngle[Jt]===-3600?(this.tickAngle[Jt]=0,this.tickAlign[Jt]="auto"):this.tickAlign[Jt]=-1,Ir=1,Ar=[this.tickAlign[Jt],br,Ir],Ar[0]==="auto"?Ar[0]=Mt:Ar[0]=parseInt(""+Ar[0]),Tr=[0,0,0],Er(Jt,Rr,zr);for(var sr=0;sr<3;++sr)Or[sr]+=lr*Rr[sr]*this.tickPad[sr]/At[5*sr];this._text.drawTicks(Jt,this.tickSize[Jt],this.tickAngle[Jt],Or,this.tickColor[Jt],kr,Tr,Ar)}if(this.labelEnable[Jt]){Ir=0,Tr=[0,0,0],this.labels[Jt].length>4&&(_r(Jt),Ir=1),Ar=[this.labelAlign[Jt],br,Ir],Ar[0]==="auto"?Ar[0]=Mt:Ar[0]=parseInt(""+Ar[0]);for(var sr=0;sr<3;++sr)Or[sr]+=lr*Rr[sr]*this.labelPad[sr]/At[5*sr];Or[Jt]+=.5*(zt[0][Jt]+zt[1][Jt]),this._text.drawLabel(Jt,this.labelSize[Jt],this.labelAngle[Jt],Or,this.labelColor[Jt],[0,0,0],Tr,Ar)}}this._text.unbind()},bt.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null};function ct(It,At){var Ot=new dt(It);return Ot.update(At),Ot}},5304:function(ut,ht,j){ut.exports=nt;var _=j(2762),rt=j(8116),tt=j(1879).bg;function st(vt,dt,bt,ft){this.gl=vt,this.buffer=dt,this.vao=bt,this.shader=ft}var ot=st.prototype;ot.draw=function(vt,dt,bt,ft,at,mt){for(var St=!1,_t=0;_t<3;++_t)St=St||at[_t];if(St){var Mt=this.gl;Mt.enable(Mt.POLYGON_OFFSET_FILL),Mt.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:vt,view:dt,projection:bt,bounds:ft,enable:at,colors:mt},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),Mt.disable(Mt.POLYGON_OFFSET_FILL)}},ot.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function nt(vt){for(var dt=[],bt=[],ft=0,at=0;at<3;++at)for(var mt=(at+1)%3,St=(at+2)%3,_t=[0,0,0],Mt=[0,0,0],Et=-1;Et<=1;Et+=2){bt.push(ft,ft+2,ft+1,ft+1,ft+2,ft+3),_t[at]=Et,Mt[at]=Et;for(var kt=-1;kt<=1;kt+=2){_t[mt]=kt;for(var wt=-1;wt<=1;wt+=2)_t[St]=wt,dt.push(_t[0],_t[1],_t[2],Mt[0],Mt[1],Mt[2]),ft+=1}var ct=mt;mt=St,St=ct}var It=_(vt,new Float32Array(dt)),At=_(vt,new Uint16Array(bt),vt.ELEMENT_ARRAY_BUFFER),Ot=rt(vt,[{buffer:It,type:vt.FLOAT,size:3,offset:0,stride:24},{buffer:It,type:vt.FLOAT,size:3,offset:12,stride:24}],At),Pt=tt(vt);return Pt.attributes.position.location=0,Pt.attributes.normal.location=1,new st(vt,It,Ot,Pt)}},6429:function(ut,ht,j){ut.exports=Et;var _=j(8828),rt=j(6760),tt=j(5202),st=j(3250),ot=new Array(16),nt=new Array(8),vt=new Array(8),dt=new Array(3),bt=[0,0,0];(function(){for(var kt=0;kt<8;++kt)nt[kt]=[1,1,1,1],vt[kt]=[1,1,1]})();function ft(kt,wt,ct){for(var It=0;It<4;++It){kt[It]=ct[12+It];for(var At=0;At<3;++At)kt[It]+=wt[At]*ct[4*At+It]}}var at=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function mt(kt){for(var wt=0;wtqt&&(Nt|=1<qt){Nt|=1<vt[Pt][1])&&(sr=Pt);for(var Zt=-1,Pt=0;Pt<3;++Pt){var Kt=sr^1<vt[or][0]&&(or=Kt)}}var tr=St;tr[0]=tr[1]=tr[2]=0,tr[_.log2(Zt^sr)]=sr&Zt,tr[_.log2(sr^or)]=sr∨var cr=or^7;cr===Nt||cr===ar?(cr=Zt^7,tr[_.log2(or^cr)]=cr&or):tr[_.log2(Zt^cr)]=cr&Zt;for(var mr=_t,Ar=Nt,Ht=0;Ht<3;++Ht)Ar&1<=0;--tr){var cr=ar[or[tr]];wt.push(jt*cr[0],-jt*cr[1],Ht)}}for(var It=[0,0,0],At=[0,0,0],Ot=[0,0,0],Pt=[0,0,0],zt=1.25,Dt={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},Nt=0;Nt<3;++Nt){Ot[Nt]=wt.length/vt|0,ct(.5*(St[0][Nt]+St[1][Nt]),_t[Nt],Mt[Nt],12,zt,Dt),Pt[Nt]=(wt.length/vt|0)-Ot[Nt],It[Nt]=wt.length/vt|0;for(var $t=0;$t=0&&(vt=ot.length-nt-1);var dt=Math.pow(10,vt),bt=Math.round(tt*st*dt),ft=bt+"";if(ft.indexOf("e")>=0)return ft;var at=bt/dt,yt=bt%dt;bt<0?(at=-Math.ceil(at)|0,yt=-yt|0):(at=Math.floor(at)|0,yt=yt|0);var St=""+at;if(bt<0&&(St="-"+St),vt){for(var _t=""+yt;_t.length=tt[0][nt];--dt)vt.push({x:dt*st[nt],text:j(st[nt],dt)});ot.push(vt)}return ot}function rt(tt,st){for(var ot=0;ot<3;++ot){if(tt[ot].length!==st[ot].length)return!1;for(var nt=0;ntSt)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return at.bufferSubData(yt,Tt,Mt),St}function dt(at,yt){for(var St=_.malloc(at.length,yt),_t=at.length,Mt=0;Mt<_t;++Mt)St[Mt]=at[Mt];return St}function bt(at,yt){for(var St=1,_t=yt.length-1;_t>=0;--_t){if(yt[_t]!==St)return!1;St*=at[_t]}return!0}nt.update=function(at,yt){if(typeof yt!="number"&&(yt=-1),this.bind(),typeof at=="object"&&typeof at.shape<"u"){var St=at.dtype;if(st.indexOf(St)<0&&(St="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER){var _t=gl.getExtension("OES_element_index_uint");_t&&St!=="uint16"?St="uint32":St="uint16"}if(St===at.dtype&&bt(at.shape,at.stride))at.offset===0&&at.data.length===at.shape[0]?this.length=vt(this.gl,this.type,this.length,this.usage,at.data,yt):this.length=vt(this.gl,this.type,this.length,this.usage,at.data.subarray(at.offset,at.shape[0]),yt);else{var Mt=_.malloc(at.size,St),Tt=tt(Mt,at.shape);rt.assign(Tt,at),yt<0?this.length=vt(this.gl,this.type,this.length,this.usage,Mt,yt):this.length=vt(this.gl,this.type,this.length,this.usage,Mt.subarray(0,at.size),yt),_.free(Mt)}}else if(Array.isArray(at)){var kt;this.type===this.gl.ELEMENT_ARRAY_BUFFER?kt=dt(at,"uint16"):kt=dt(at,"float32"),yt<0?this.length=vt(this.gl,this.type,this.length,this.usage,kt,yt):this.length=vt(this.gl,this.type,this.length,this.usage,kt.subarray(0,at.length),yt),_.free(kt)}else if(typeof at=="object"&&typeof at.length=="number")this.length=vt(this.gl,this.type,this.length,this.usage,at,yt);else if(typeof at=="number"||at===void 0){if(yt>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");at=at|0,at<=0&&(at=1),this.gl.bufferData(this.type,at|0,this.usage),this.length=at}else throw new Error("gl-buffer: Invalid data type")};function ft(at,yt,St,_t){if(St=St||at.ARRAY_BUFFER,_t=_t||at.DYNAMIC_DRAW,St!==at.ARRAY_BUFFER&&St!==at.ELEMENT_ARRAY_BUFFER)throw new Error("gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER");if(_t!==at.DYNAMIC_DRAW&&_t!==at.STATIC_DRAW&&_t!==at.STREAM_DRAW)throw new Error("gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW");var Mt=at.createBuffer(),Tt=new ot(at,St,Mt,0,_t);return Tt.update(yt),Tt}ut.exports=ft},6405:function(ut,ht,j){var _=j(2931);ut.exports=function(tt,st){var ot=tt.positions,nt=tt.vectors,vt={positions:[],vertexIntensity:[],vertexIntensityBounds:tt.vertexIntensityBounds,vectors:[],cells:[],coneOffset:tt.coneOffset,colormap:tt.colormap};if(tt.positions.length===0)return st&&(st[0]=[0,0,0],st[1]=[0,0,0]),vt;for(var dt=0,bt=1/0,ft=-1/0,at=1/0,yt=-1/0,St=1/0,_t=-1/0,Mt=null,Tt=null,kt=[],wt=1/0,ct=!1,It=tt.coneSizemode==="raw",At=0;Atdt&&(dt=_.length(Pt)),At&&!It){var zt=2*_.distance(Mt,Ot)/(_.length(Tt)+_.length(Pt));zt?(wt=Math.min(wt,zt),ct=!1):ct=!0}ct||(Mt=Ot,Tt=Pt),kt.push(Pt)}var Dt=[bt,at,St],Nt=[ft,yt,_t];st&&(st[0]=Dt,st[1]=Nt),dt===0&&(dt=1);var $t=1/dt;isFinite(wt)||(wt=1),vt.vectorScale=wt;var Ut=tt.coneSize||(It?1:.5);tt.absoluteConeSize&&(Ut=tt.absoluteConeSize*$t),vt.coneScale=Ut;for(var At=0,Ht=0;At=1},at.isTransparent=function(){return this.opacity<1},at.pickSlots=1,at.setPickBase=function(kt){this.pickId=kt};function yt(kt){for(var wt=dt({colormap:kt,nshades:256,format:"rgba"}),ct=new Uint8Array(256*4),It=0;It<256;++It){for(var At=wt[It],Ot=0;Ot<3;++Ot)ct[4*It+Ot]=At[Ot];ct[4*It+3]=At[3]*255}return vt(ct,[256,256,4],[4,0,1])}function St(kt){for(var wt=kt.length,ct=new Array(wt),It=0;It0){var Ht=this.triShader;Ht.bind(),Ht.uniforms=zt,this.triangleVAO.bind(),wt.drawArrays(wt.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},at.drawPick=function(kt){kt=kt||{};for(var wt=this.gl,ct=kt.model||bt,It=kt.view||bt,At=kt.projection||bt,Ot=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],Pt=0;Pt<3;++Pt)Ot[0][Pt]=Math.max(Ot[0][Pt],this.clipBounds[0][Pt]),Ot[1][Pt]=Math.min(Ot[1][Pt],this.clipBounds[1][Pt]);this._model=[].slice.call(ct),this._view=[].slice.call(It),this._projection=[].slice.call(At),this._resolution=[wt.drawingBufferWidth,wt.drawingBufferHeight];var zt={model:ct,view:It,projection:At,clipBounds:Ot,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},Dt=this.pickShader;Dt.bind(),Dt.uniforms=zt,this.triangleCount>0&&(this.triangleVAO.bind(),wt.drawArrays(wt.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},at.pick=function(kt){if(!kt||kt.id!==this.pickId)return null;var wt=kt.value[0]+256*kt.value[1]+65536*kt.value[2],ct=this.cells[wt],It=this.positions[ct[1]].slice(0,3),At={position:It,dataCoordinate:It,index:Math.floor(ct[1]/48)};return this.traceType==="cone"?At.index=Math.floor(ct[1]/48):this.traceType==="streamtube"&&(At.intensity=this.intensity[ct[1]],At.velocity=this.vectors[ct[1]].slice(0,3),At.divergence=this.vectors[ct[1]][3],At.index=wt),At},at.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()};function _t(kt,wt){var ct=_(kt,wt.meshShader.vertex,wt.meshShader.fragment,null,wt.meshShader.attributes);return ct.attributes.position.location=0,ct.attributes.color.location=2,ct.attributes.uv.location=3,ct.attributes.vector.location=4,ct}function Mt(kt,wt){var ct=_(kt,wt.pickShader.vertex,wt.pickShader.fragment,null,wt.pickShader.attributes);return ct.attributes.position.location=0,ct.attributes.id.location=1,ct.attributes.vector.location=4,ct}function Tt(kt,wt,ct){var It=ct.shaders;arguments.length===1&&(wt=kt,kt=wt.gl);var At=_t(kt,It),Ot=Mt(kt,It),Pt=st(kt,vt(new Uint8Array([255,255,255,255]),[1,1,4]));Pt.generateMipmap(),Pt.minFilter=kt.LINEAR_MIPMAP_LINEAR,Pt.magFilter=kt.LINEAR;var zt=rt(kt),Dt=rt(kt),Nt=rt(kt),$t=rt(kt),Ut=rt(kt),Ht=tt(kt,[{buffer:zt,type:kt.FLOAT,size:4},{buffer:Ut,type:kt.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:Nt,type:kt.FLOAT,size:4},{buffer:$t,type:kt.FLOAT,size:2},{buffer:Dt,type:kt.FLOAT,size:4}]),Vt=new ft(kt,Pt,At,Ot,zt,Dt,Ut,Nt,$t,Ht,ct.traceType||"cone");return Vt.update(wt),Vt}ut.exports=Tt},614:function(ut,ht,j){var _=j(3236),rt=_([`precision highp float; +}`]);ht.bg=function(bt){return rt(bt,vt,dt,null,[{name:"position",type:"vec3"},{name:"normal",type:"vec3"}])}},4935:function(ut,ht,j){ut.exports=mt;var _=j(2762),rt=j(8116),tt=j(4359),st=j(1879).Q,ot=window||it.global||{},nt=ot.__TEXT_CACHE||{};ot.__TEXT_CACHE={};var vt=3;function dt(St,_t,Mt,Et){this.gl=St,this.shader=_t,this.buffer=Mt,this.vao=Et,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var bt=dt.prototype,ft=[0,0];bt.bind=function(St,_t,Mt,Et){this.vao.bind(),this.shader.bind();var kt=this.shader.uniforms;kt.model=St,kt.view=_t,kt.projection=Mt,kt.pixelScale=Et,ft[0]=this.gl.drawingBufferWidth,ft[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=ft},bt.unbind=function(){this.vao.unbind()},bt.update=function(St,_t,Mt,Et,kt){var wt=[];function ct(Ht,Vt,Xt,qt,er,lr){var Jt=[Xt.style,Xt.weight,Xt.variant,Xt.family].join("_"),Yt=nt[Jt];Yt||(Yt=nt[Jt]={});var rr=Yt[Vt];rr||(rr=Yt[Vt]=at(Vt,{triangles:!0,font:Xt.family,fontStyle:Xt.style,fontWeight:Xt.weight,fontVariant:Xt.variant,textAlign:"center",textBaseline:"middle",lineSpacing:er,styletags:lr}));for(var jt=(qt||12)/12,ar=rr.positions,sr=rr.cells,Zt=0,Kt=sr.length;Zt=0;--tr){var cr=ar[or[tr]];wt.push(jt*cr[0],-jt*cr[1],Ht)}}for(var It=[0,0,0],At=[0,0,0],Ot=[0,0,0],Pt=[0,0,0],zt=1.25,Dt={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},Nt=0;Nt<3;++Nt){Ot[Nt]=wt.length/vt|0,ct(.5*(St[0][Nt]+St[1][Nt]),_t[Nt],Mt[Nt],12,zt,Dt),Pt[Nt]=(wt.length/vt|0)-Ot[Nt],It[Nt]=wt.length/vt|0;for(var $t=0;$t=0&&(vt=ot.length-nt-1);var dt=Math.pow(10,vt),bt=Math.round(tt*st*dt),ft=bt+"";if(ft.indexOf("e")>=0)return ft;var at=bt/dt,mt=bt%dt;bt<0?(at=-Math.ceil(at)|0,mt=-mt|0):(at=Math.floor(at)|0,mt=mt|0);var St=""+at;if(bt<0&&(St="-"+St),vt){for(var _t=""+mt;_t.length=tt[0][nt];--dt)vt.push({x:dt*st[nt],text:j(st[nt],dt)});ot.push(vt)}return ot}function rt(tt,st){for(var ot=0;ot<3;++ot){if(tt[ot].length!==st[ot].length)return!1;for(var nt=0;ntSt)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return at.bufferSubData(mt,Et,Mt),St}function dt(at,mt){for(var St=_.malloc(at.length,mt),_t=at.length,Mt=0;Mt<_t;++Mt)St[Mt]=at[Mt];return St}function bt(at,mt){for(var St=1,_t=mt.length-1;_t>=0;--_t){if(mt[_t]!==St)return!1;St*=at[_t]}return!0}nt.update=function(at,mt){if(typeof mt!="number"&&(mt=-1),this.bind(),typeof at=="object"&&typeof at.shape<"u"){var St=at.dtype;if(st.indexOf(St)<0&&(St="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER){var _t=gl.getExtension("OES_element_index_uint");_t&&St!=="uint16"?St="uint32":St="uint16"}if(St===at.dtype&&bt(at.shape,at.stride))at.offset===0&&at.data.length===at.shape[0]?this.length=vt(this.gl,this.type,this.length,this.usage,at.data,mt):this.length=vt(this.gl,this.type,this.length,this.usage,at.data.subarray(at.offset,at.shape[0]),mt);else{var Mt=_.malloc(at.size,St),Et=tt(Mt,at.shape);rt.assign(Et,at),mt<0?this.length=vt(this.gl,this.type,this.length,this.usage,Mt,mt):this.length=vt(this.gl,this.type,this.length,this.usage,Mt.subarray(0,at.size),mt),_.free(Mt)}}else if(Array.isArray(at)){var kt;this.type===this.gl.ELEMENT_ARRAY_BUFFER?kt=dt(at,"uint16"):kt=dt(at,"float32"),mt<0?this.length=vt(this.gl,this.type,this.length,this.usage,kt,mt):this.length=vt(this.gl,this.type,this.length,this.usage,kt.subarray(0,at.length),mt),_.free(kt)}else if(typeof at=="object"&&typeof at.length=="number")this.length=vt(this.gl,this.type,this.length,this.usage,at,mt);else if(typeof at=="number"||at===void 0){if(mt>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");at=at|0,at<=0&&(at=1),this.gl.bufferData(this.type,at|0,this.usage),this.length=at}else throw new Error("gl-buffer: Invalid data type")};function ft(at,mt,St,_t){if(St=St||at.ARRAY_BUFFER,_t=_t||at.DYNAMIC_DRAW,St!==at.ARRAY_BUFFER&&St!==at.ELEMENT_ARRAY_BUFFER)throw new Error("gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER");if(_t!==at.DYNAMIC_DRAW&&_t!==at.STATIC_DRAW&&_t!==at.STREAM_DRAW)throw new Error("gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW");var Mt=at.createBuffer(),Et=new ot(at,St,Mt,0,_t);return Et.update(mt),Et}ut.exports=ft},6405:function(ut,ht,j){var _=j(2931);ut.exports=function(tt,st){var ot=tt.positions,nt=tt.vectors,vt={positions:[],vertexIntensity:[],vertexIntensityBounds:tt.vertexIntensityBounds,vectors:[],cells:[],coneOffset:tt.coneOffset,colormap:tt.colormap};if(tt.positions.length===0)return st&&(st[0]=[0,0,0],st[1]=[0,0,0]),vt;for(var dt=0,bt=1/0,ft=-1/0,at=1/0,mt=-1/0,St=1/0,_t=-1/0,Mt=null,Et=null,kt=[],wt=1/0,ct=!1,It=tt.coneSizemode==="raw",At=0;Atdt&&(dt=_.length(Pt)),At&&!It){var zt=2*_.distance(Mt,Ot)/(_.length(Et)+_.length(Pt));zt?(wt=Math.min(wt,zt),ct=!1):ct=!0}ct||(Mt=Ot,Et=Pt),kt.push(Pt)}var Dt=[bt,at,St],Nt=[ft,mt,_t];st&&(st[0]=Dt,st[1]=Nt),dt===0&&(dt=1);var $t=1/dt;isFinite(wt)||(wt=1),vt.vectorScale=wt;var Ut=tt.coneSize||(It?1:.5);tt.absoluteConeSize&&(Ut=tt.absoluteConeSize*$t),vt.coneScale=Ut;for(var At=0,Ht=0;At=1},at.isTransparent=function(){return this.opacity<1},at.pickSlots=1,at.setPickBase=function(kt){this.pickId=kt};function mt(kt){for(var wt=dt({colormap:kt,nshades:256,format:"rgba"}),ct=new Uint8Array(256*4),It=0;It<256;++It){for(var At=wt[It],Ot=0;Ot<3;++Ot)ct[4*It+Ot]=At[Ot];ct[4*It+3]=At[3]*255}return vt(ct,[256,256,4],[4,0,1])}function St(kt){for(var wt=kt.length,ct=new Array(wt),It=0;It0){var Ht=this.triShader;Ht.bind(),Ht.uniforms=zt,this.triangleVAO.bind(),wt.drawArrays(wt.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},at.drawPick=function(kt){kt=kt||{};for(var wt=this.gl,ct=kt.model||bt,It=kt.view||bt,At=kt.projection||bt,Ot=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],Pt=0;Pt<3;++Pt)Ot[0][Pt]=Math.max(Ot[0][Pt],this.clipBounds[0][Pt]),Ot[1][Pt]=Math.min(Ot[1][Pt],this.clipBounds[1][Pt]);this._model=[].slice.call(ct),this._view=[].slice.call(It),this._projection=[].slice.call(At),this._resolution=[wt.drawingBufferWidth,wt.drawingBufferHeight];var zt={model:ct,view:It,projection:At,clipBounds:Ot,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},Dt=this.pickShader;Dt.bind(),Dt.uniforms=zt,this.triangleCount>0&&(this.triangleVAO.bind(),wt.drawArrays(wt.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},at.pick=function(kt){if(!kt||kt.id!==this.pickId)return null;var wt=kt.value[0]+256*kt.value[1]+65536*kt.value[2],ct=this.cells[wt],It=this.positions[ct[1]].slice(0,3),At={position:It,dataCoordinate:It,index:Math.floor(ct[1]/48)};return this.traceType==="cone"?At.index=Math.floor(ct[1]/48):this.traceType==="streamtube"&&(At.intensity=this.intensity[ct[1]],At.velocity=this.vectors[ct[1]].slice(0,3),At.divergence=this.vectors[ct[1]][3],At.index=wt),At},at.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()};function _t(kt,wt){var ct=_(kt,wt.meshShader.vertex,wt.meshShader.fragment,null,wt.meshShader.attributes);return ct.attributes.position.location=0,ct.attributes.color.location=2,ct.attributes.uv.location=3,ct.attributes.vector.location=4,ct}function Mt(kt,wt){var ct=_(kt,wt.pickShader.vertex,wt.pickShader.fragment,null,wt.pickShader.attributes);return ct.attributes.position.location=0,ct.attributes.id.location=1,ct.attributes.vector.location=4,ct}function Et(kt,wt,ct){var It=ct.shaders;arguments.length===1&&(wt=kt,kt=wt.gl);var At=_t(kt,It),Ot=Mt(kt,It),Pt=st(kt,vt(new Uint8Array([255,255,255,255]),[1,1,4]));Pt.generateMipmap(),Pt.minFilter=kt.LINEAR_MIPMAP_LINEAR,Pt.magFilter=kt.LINEAR;var zt=rt(kt),Dt=rt(kt),Nt=rt(kt),$t=rt(kt),Ut=rt(kt),Ht=tt(kt,[{buffer:zt,type:kt.FLOAT,size:4},{buffer:Ut,type:kt.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:Nt,type:kt.FLOAT,size:4},{buffer:$t,type:kt.FLOAT,size:2},{buffer:Dt,type:kt.FLOAT,size:4}]),Vt=new ft(kt,Pt,At,Ot,zt,Dt,Ut,Nt,$t,Ht,ct.traceType||"cone");return Vt.update(wt),Vt}ut.exports=Et},614:function(ut,ht,j){var _=j(3236),rt=_([`precision highp float; precision highp float; #define GLSLIFY 1 @@ -719,7 +719,7 @@ void main() { if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; gl_FragColor = vec4(pickId, f_id.xyz); -}`]);ht.meshShader={vertex:rt,fragment:tt,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},ht.pickShader={vertex:st,fragment:ot,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}},737:function(ut){ut.exports={0:"NONE",1:"ONE",2:"LINE_LOOP",3:"LINE_STRIP",4:"TRIANGLES",5:"TRIANGLE_STRIP",6:"TRIANGLE_FAN",256:"DEPTH_BUFFER_BIT",512:"NEVER",513:"LESS",514:"EQUAL",515:"LEQUAL",516:"GREATER",517:"NOTEQUAL",518:"GEQUAL",519:"ALWAYS",768:"SRC_COLOR",769:"ONE_MINUS_SRC_COLOR",770:"SRC_ALPHA",771:"ONE_MINUS_SRC_ALPHA",772:"DST_ALPHA",773:"ONE_MINUS_DST_ALPHA",774:"DST_COLOR",775:"ONE_MINUS_DST_COLOR",776:"SRC_ALPHA_SATURATE",1024:"STENCIL_BUFFER_BIT",1028:"FRONT",1029:"BACK",1032:"FRONT_AND_BACK",1280:"INVALID_ENUM",1281:"INVALID_VALUE",1282:"INVALID_OPERATION",1285:"OUT_OF_MEMORY",1286:"INVALID_FRAMEBUFFER_OPERATION",2304:"CW",2305:"CCW",2849:"LINE_WIDTH",2884:"CULL_FACE",2885:"CULL_FACE_MODE",2886:"FRONT_FACE",2928:"DEPTH_RANGE",2929:"DEPTH_TEST",2930:"DEPTH_WRITEMASK",2931:"DEPTH_CLEAR_VALUE",2932:"DEPTH_FUNC",2960:"STENCIL_TEST",2961:"STENCIL_CLEAR_VALUE",2962:"STENCIL_FUNC",2963:"STENCIL_VALUE_MASK",2964:"STENCIL_FAIL",2965:"STENCIL_PASS_DEPTH_FAIL",2966:"STENCIL_PASS_DEPTH_PASS",2967:"STENCIL_REF",2968:"STENCIL_WRITEMASK",2978:"VIEWPORT",3024:"DITHER",3042:"BLEND",3088:"SCISSOR_BOX",3089:"SCISSOR_TEST",3106:"COLOR_CLEAR_VALUE",3107:"COLOR_WRITEMASK",3317:"UNPACK_ALIGNMENT",3333:"PACK_ALIGNMENT",3379:"MAX_TEXTURE_SIZE",3386:"MAX_VIEWPORT_DIMS",3408:"SUBPIXEL_BITS",3410:"RED_BITS",3411:"GREEN_BITS",3412:"BLUE_BITS",3413:"ALPHA_BITS",3414:"DEPTH_BITS",3415:"STENCIL_BITS",3553:"TEXTURE_2D",4352:"DONT_CARE",4353:"FASTEST",4354:"NICEST",5120:"BYTE",5121:"UNSIGNED_BYTE",5122:"SHORT",5123:"UNSIGNED_SHORT",5124:"INT",5125:"UNSIGNED_INT",5126:"FLOAT",5386:"INVERT",5890:"TEXTURE",6401:"STENCIL_INDEX",6402:"DEPTH_COMPONENT",6406:"ALPHA",6407:"RGB",6408:"RGBA",6409:"LUMINANCE",6410:"LUMINANCE_ALPHA",7680:"KEEP",7681:"REPLACE",7682:"INCR",7683:"DECR",7936:"VENDOR",7937:"RENDERER",7938:"VERSION",9728:"NEAREST",9729:"LINEAR",9984:"NEAREST_MIPMAP_NEAREST",9985:"LINEAR_MIPMAP_NEAREST",9986:"NEAREST_MIPMAP_LINEAR",9987:"LINEAR_MIPMAP_LINEAR",10240:"TEXTURE_MAG_FILTER",10241:"TEXTURE_MIN_FILTER",10242:"TEXTURE_WRAP_S",10243:"TEXTURE_WRAP_T",10497:"REPEAT",10752:"POLYGON_OFFSET_UNITS",16384:"COLOR_BUFFER_BIT",32769:"CONSTANT_COLOR",32770:"ONE_MINUS_CONSTANT_COLOR",32771:"CONSTANT_ALPHA",32772:"ONE_MINUS_CONSTANT_ALPHA",32773:"BLEND_COLOR",32774:"FUNC_ADD",32777:"BLEND_EQUATION_RGB",32778:"FUNC_SUBTRACT",32779:"FUNC_REVERSE_SUBTRACT",32819:"UNSIGNED_SHORT_4_4_4_4",32820:"UNSIGNED_SHORT_5_5_5_1",32823:"POLYGON_OFFSET_FILL",32824:"POLYGON_OFFSET_FACTOR",32854:"RGBA4",32855:"RGB5_A1",32873:"TEXTURE_BINDING_2D",32926:"SAMPLE_ALPHA_TO_COVERAGE",32928:"SAMPLE_COVERAGE",32936:"SAMPLE_BUFFERS",32937:"SAMPLES",32938:"SAMPLE_COVERAGE_VALUE",32939:"SAMPLE_COVERAGE_INVERT",32968:"BLEND_DST_RGB",32969:"BLEND_SRC_RGB",32970:"BLEND_DST_ALPHA",32971:"BLEND_SRC_ALPHA",33071:"CLAMP_TO_EDGE",33170:"GENERATE_MIPMAP_HINT",33189:"DEPTH_COMPONENT16",33306:"DEPTH_STENCIL_ATTACHMENT",33635:"UNSIGNED_SHORT_5_6_5",33648:"MIRRORED_REPEAT",33901:"ALIASED_POINT_SIZE_RANGE",33902:"ALIASED_LINE_WIDTH_RANGE",33984:"TEXTURE0",33985:"TEXTURE1",33986:"TEXTURE2",33987:"TEXTURE3",33988:"TEXTURE4",33989:"TEXTURE5",33990:"TEXTURE6",33991:"TEXTURE7",33992:"TEXTURE8",33993:"TEXTURE9",33994:"TEXTURE10",33995:"TEXTURE11",33996:"TEXTURE12",33997:"TEXTURE13",33998:"TEXTURE14",33999:"TEXTURE15",34e3:"TEXTURE16",34001:"TEXTURE17",34002:"TEXTURE18",34003:"TEXTURE19",34004:"TEXTURE20",34005:"TEXTURE21",34006:"TEXTURE22",34007:"TEXTURE23",34008:"TEXTURE24",34009:"TEXTURE25",34010:"TEXTURE26",34011:"TEXTURE27",34012:"TEXTURE28",34013:"TEXTURE29",34014:"TEXTURE30",34015:"TEXTURE31",34016:"ACTIVE_TEXTURE",34024:"MAX_RENDERBUFFER_SIZE",34041:"DEPTH_STENCIL",34055:"INCR_WRAP",34056:"DECR_WRAP",34067:"TEXTURE_CUBE_MAP",34068:"TEXTURE_BINDING_CUBE_MAP",34069:"TEXTURE_CUBE_MAP_POSITIVE_X",34070:"TEXTURE_CUBE_MAP_NEGATIVE_X",34071:"TEXTURE_CUBE_MAP_POSITIVE_Y",34072:"TEXTURE_CUBE_MAP_NEGATIVE_Y",34073:"TEXTURE_CUBE_MAP_POSITIVE_Z",34074:"TEXTURE_CUBE_MAP_NEGATIVE_Z",34076:"MAX_CUBE_MAP_TEXTURE_SIZE",34338:"VERTEX_ATTRIB_ARRAY_ENABLED",34339:"VERTEX_ATTRIB_ARRAY_SIZE",34340:"VERTEX_ATTRIB_ARRAY_STRIDE",34341:"VERTEX_ATTRIB_ARRAY_TYPE",34342:"CURRENT_VERTEX_ATTRIB",34373:"VERTEX_ATTRIB_ARRAY_POINTER",34466:"NUM_COMPRESSED_TEXTURE_FORMATS",34467:"COMPRESSED_TEXTURE_FORMATS",34660:"BUFFER_SIZE",34661:"BUFFER_USAGE",34816:"STENCIL_BACK_FUNC",34817:"STENCIL_BACK_FAIL",34818:"STENCIL_BACK_PASS_DEPTH_FAIL",34819:"STENCIL_BACK_PASS_DEPTH_PASS",34877:"BLEND_EQUATION_ALPHA",34921:"MAX_VERTEX_ATTRIBS",34922:"VERTEX_ATTRIB_ARRAY_NORMALIZED",34930:"MAX_TEXTURE_IMAGE_UNITS",34962:"ARRAY_BUFFER",34963:"ELEMENT_ARRAY_BUFFER",34964:"ARRAY_BUFFER_BINDING",34965:"ELEMENT_ARRAY_BUFFER_BINDING",34975:"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",35040:"STREAM_DRAW",35044:"STATIC_DRAW",35048:"DYNAMIC_DRAW",35632:"FRAGMENT_SHADER",35633:"VERTEX_SHADER",35660:"MAX_VERTEX_TEXTURE_IMAGE_UNITS",35661:"MAX_COMBINED_TEXTURE_IMAGE_UNITS",35663:"SHADER_TYPE",35664:"FLOAT_VEC2",35665:"FLOAT_VEC3",35666:"FLOAT_VEC4",35667:"INT_VEC2",35668:"INT_VEC3",35669:"INT_VEC4",35670:"BOOL",35671:"BOOL_VEC2",35672:"BOOL_VEC3",35673:"BOOL_VEC4",35674:"FLOAT_MAT2",35675:"FLOAT_MAT3",35676:"FLOAT_MAT4",35678:"SAMPLER_2D",35680:"SAMPLER_CUBE",35712:"DELETE_STATUS",35713:"COMPILE_STATUS",35714:"LINK_STATUS",35715:"VALIDATE_STATUS",35716:"INFO_LOG_LENGTH",35717:"ATTACHED_SHADERS",35718:"ACTIVE_UNIFORMS",35719:"ACTIVE_UNIFORM_MAX_LENGTH",35720:"SHADER_SOURCE_LENGTH",35721:"ACTIVE_ATTRIBUTES",35722:"ACTIVE_ATTRIBUTE_MAX_LENGTH",35724:"SHADING_LANGUAGE_VERSION",35725:"CURRENT_PROGRAM",36003:"STENCIL_BACK_REF",36004:"STENCIL_BACK_VALUE_MASK",36005:"STENCIL_BACK_WRITEMASK",36006:"FRAMEBUFFER_BINDING",36007:"RENDERBUFFER_BINDING",36048:"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",36049:"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",36050:"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",36051:"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",36053:"FRAMEBUFFER_COMPLETE",36054:"FRAMEBUFFER_INCOMPLETE_ATTACHMENT",36055:"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",36057:"FRAMEBUFFER_INCOMPLETE_DIMENSIONS",36061:"FRAMEBUFFER_UNSUPPORTED",36064:"COLOR_ATTACHMENT0",36096:"DEPTH_ATTACHMENT",36128:"STENCIL_ATTACHMENT",36160:"FRAMEBUFFER",36161:"RENDERBUFFER",36162:"RENDERBUFFER_WIDTH",36163:"RENDERBUFFER_HEIGHT",36164:"RENDERBUFFER_INTERNAL_FORMAT",36168:"STENCIL_INDEX8",36176:"RENDERBUFFER_RED_SIZE",36177:"RENDERBUFFER_GREEN_SIZE",36178:"RENDERBUFFER_BLUE_SIZE",36179:"RENDERBUFFER_ALPHA_SIZE",36180:"RENDERBUFFER_DEPTH_SIZE",36181:"RENDERBUFFER_STENCIL_SIZE",36194:"RGB565",36336:"LOW_FLOAT",36337:"MEDIUM_FLOAT",36338:"HIGH_FLOAT",36339:"LOW_INT",36340:"MEDIUM_INT",36341:"HIGH_INT",36346:"SHADER_COMPILER",36347:"MAX_VERTEX_UNIFORM_VECTORS",36348:"MAX_VARYING_VECTORS",36349:"MAX_FRAGMENT_UNIFORM_VECTORS",37440:"UNPACK_FLIP_Y_WEBGL",37441:"UNPACK_PREMULTIPLY_ALPHA_WEBGL",37442:"CONTEXT_LOST_WEBGL",37443:"UNPACK_COLORSPACE_CONVERSION_WEBGL",37444:"BROWSER_DEFAULT_WEBGL"}},5171:function(ut,ht,j){var _=j(737);ut.exports=function(tt){return _[tt]}},9165:function(ut,ht,j){ut.exports=ft;var _=j(2762),rt=j(8116),tt=j(3436),st=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function ot(at,yt,St,_t){this.gl=at,this.shader=_t,this.buffer=yt,this.vao=St,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1,this.hasAlpha=!1}var nt=ot.prototype;nt.isOpaque=function(){return!this.hasAlpha},nt.isTransparent=function(){return this.hasAlpha},nt.drawTransparent=nt.draw=function(at){var yt=this.gl,St=this.shader.uniforms;this.shader.bind();var _t=St.view=at.view||st,Mt=St.projection=at.projection||st;St.model=at.model||st,St.clipBounds=this.clipBounds,St.opacity=this.opacity;var Tt=_t[12],kt=_t[13],wt=_t[14],ct=_t[15],It=at._ortho||!1,At=It?2:1,Ot=At*this.pixelRatio*(Mt[3]*Tt+Mt[7]*kt+Mt[11]*wt+Mt[15]*ct)/yt.drawingBufferHeight;this.vao.bind();for(var Pt=0;Pt<3;++Pt)yt.lineWidth(this.lineWidth[Pt]*this.pixelRatio),St.capSize=this.capSize[Pt]*Ot,this.lineCount[Pt]&&yt.drawArrays(yt.LINES,this.lineOffset[Pt],this.lineCount[Pt]);this.vao.unbind()};function vt(at,yt){for(var St=0;St<3;++St)at[0][St]=Math.min(at[0][St],yt[St]),at[1][St]=Math.max(at[1][St],yt[St])}var dt=function(){for(var at=new Array(3),yt=0;yt<3;++yt){for(var St=[],_t=1;_t<=2;++_t)for(var Mt=-1;Mt<=1;Mt+=2){var Tt=(_t+yt)%3,kt=[0,0,0];kt[Tt]=Mt,St.push(kt)}at[yt]=St}return at}();function bt(at,yt,St,_t){for(var Mt=dt[_t],Tt=0;Tt0){var zt=It.slice();zt[wt]+=Ot[1][wt],Mt.push(It[0],It[1],It[2],Pt[0],Pt[1],Pt[2],Pt[3],0,0,0,zt[0],zt[1],zt[2],Pt[0],Pt[1],Pt[2],Pt[3],0,0,0),vt(this.bounds,zt),kt+=2+bt(Mt,zt,Pt,wt)}}}this.lineCount[wt]=kt-this.lineOffset[wt]}this.buffer.update(Mt)}},nt.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()};function ft(at){var yt=at.gl,St=_(yt),_t=rt(yt,[{buffer:St,type:yt.FLOAT,size:3,offset:0,stride:40},{buffer:St,type:yt.FLOAT,size:4,offset:12,stride:40},{buffer:St,type:yt.FLOAT,size:3,offset:28,stride:40}]),Mt=tt(yt);Mt.attributes.position.location=0,Mt.attributes.color.location=1,Mt.attributes.offset.location=2;var Tt=new ot(yt,St,_t,Mt);return Tt.update(at),Tt}},3436:function(ut,ht,j){var _=j(3236),rt=j(9405),tt=_([`precision highp float; +}`]);ht.meshShader={vertex:rt,fragment:tt,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},ht.pickShader={vertex:st,fragment:ot,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}},737:function(ut){ut.exports={0:"NONE",1:"ONE",2:"LINE_LOOP",3:"LINE_STRIP",4:"TRIANGLES",5:"TRIANGLE_STRIP",6:"TRIANGLE_FAN",256:"DEPTH_BUFFER_BIT",512:"NEVER",513:"LESS",514:"EQUAL",515:"LEQUAL",516:"GREATER",517:"NOTEQUAL",518:"GEQUAL",519:"ALWAYS",768:"SRC_COLOR",769:"ONE_MINUS_SRC_COLOR",770:"SRC_ALPHA",771:"ONE_MINUS_SRC_ALPHA",772:"DST_ALPHA",773:"ONE_MINUS_DST_ALPHA",774:"DST_COLOR",775:"ONE_MINUS_DST_COLOR",776:"SRC_ALPHA_SATURATE",1024:"STENCIL_BUFFER_BIT",1028:"FRONT",1029:"BACK",1032:"FRONT_AND_BACK",1280:"INVALID_ENUM",1281:"INVALID_VALUE",1282:"INVALID_OPERATION",1285:"OUT_OF_MEMORY",1286:"INVALID_FRAMEBUFFER_OPERATION",2304:"CW",2305:"CCW",2849:"LINE_WIDTH",2884:"CULL_FACE",2885:"CULL_FACE_MODE",2886:"FRONT_FACE",2928:"DEPTH_RANGE",2929:"DEPTH_TEST",2930:"DEPTH_WRITEMASK",2931:"DEPTH_CLEAR_VALUE",2932:"DEPTH_FUNC",2960:"STENCIL_TEST",2961:"STENCIL_CLEAR_VALUE",2962:"STENCIL_FUNC",2963:"STENCIL_VALUE_MASK",2964:"STENCIL_FAIL",2965:"STENCIL_PASS_DEPTH_FAIL",2966:"STENCIL_PASS_DEPTH_PASS",2967:"STENCIL_REF",2968:"STENCIL_WRITEMASK",2978:"VIEWPORT",3024:"DITHER",3042:"BLEND",3088:"SCISSOR_BOX",3089:"SCISSOR_TEST",3106:"COLOR_CLEAR_VALUE",3107:"COLOR_WRITEMASK",3317:"UNPACK_ALIGNMENT",3333:"PACK_ALIGNMENT",3379:"MAX_TEXTURE_SIZE",3386:"MAX_VIEWPORT_DIMS",3408:"SUBPIXEL_BITS",3410:"RED_BITS",3411:"GREEN_BITS",3412:"BLUE_BITS",3413:"ALPHA_BITS",3414:"DEPTH_BITS",3415:"STENCIL_BITS",3553:"TEXTURE_2D",4352:"DONT_CARE",4353:"FASTEST",4354:"NICEST",5120:"BYTE",5121:"UNSIGNED_BYTE",5122:"SHORT",5123:"UNSIGNED_SHORT",5124:"INT",5125:"UNSIGNED_INT",5126:"FLOAT",5386:"INVERT",5890:"TEXTURE",6401:"STENCIL_INDEX",6402:"DEPTH_COMPONENT",6406:"ALPHA",6407:"RGB",6408:"RGBA",6409:"LUMINANCE",6410:"LUMINANCE_ALPHA",7680:"KEEP",7681:"REPLACE",7682:"INCR",7683:"DECR",7936:"VENDOR",7937:"RENDERER",7938:"VERSION",9728:"NEAREST",9729:"LINEAR",9984:"NEAREST_MIPMAP_NEAREST",9985:"LINEAR_MIPMAP_NEAREST",9986:"NEAREST_MIPMAP_LINEAR",9987:"LINEAR_MIPMAP_LINEAR",10240:"TEXTURE_MAG_FILTER",10241:"TEXTURE_MIN_FILTER",10242:"TEXTURE_WRAP_S",10243:"TEXTURE_WRAP_T",10497:"REPEAT",10752:"POLYGON_OFFSET_UNITS",16384:"COLOR_BUFFER_BIT",32769:"CONSTANT_COLOR",32770:"ONE_MINUS_CONSTANT_COLOR",32771:"CONSTANT_ALPHA",32772:"ONE_MINUS_CONSTANT_ALPHA",32773:"BLEND_COLOR",32774:"FUNC_ADD",32777:"BLEND_EQUATION_RGB",32778:"FUNC_SUBTRACT",32779:"FUNC_REVERSE_SUBTRACT",32819:"UNSIGNED_SHORT_4_4_4_4",32820:"UNSIGNED_SHORT_5_5_5_1",32823:"POLYGON_OFFSET_FILL",32824:"POLYGON_OFFSET_FACTOR",32854:"RGBA4",32855:"RGB5_A1",32873:"TEXTURE_BINDING_2D",32926:"SAMPLE_ALPHA_TO_COVERAGE",32928:"SAMPLE_COVERAGE",32936:"SAMPLE_BUFFERS",32937:"SAMPLES",32938:"SAMPLE_COVERAGE_VALUE",32939:"SAMPLE_COVERAGE_INVERT",32968:"BLEND_DST_RGB",32969:"BLEND_SRC_RGB",32970:"BLEND_DST_ALPHA",32971:"BLEND_SRC_ALPHA",33071:"CLAMP_TO_EDGE",33170:"GENERATE_MIPMAP_HINT",33189:"DEPTH_COMPONENT16",33306:"DEPTH_STENCIL_ATTACHMENT",33635:"UNSIGNED_SHORT_5_6_5",33648:"MIRRORED_REPEAT",33901:"ALIASED_POINT_SIZE_RANGE",33902:"ALIASED_LINE_WIDTH_RANGE",33984:"TEXTURE0",33985:"TEXTURE1",33986:"TEXTURE2",33987:"TEXTURE3",33988:"TEXTURE4",33989:"TEXTURE5",33990:"TEXTURE6",33991:"TEXTURE7",33992:"TEXTURE8",33993:"TEXTURE9",33994:"TEXTURE10",33995:"TEXTURE11",33996:"TEXTURE12",33997:"TEXTURE13",33998:"TEXTURE14",33999:"TEXTURE15",34e3:"TEXTURE16",34001:"TEXTURE17",34002:"TEXTURE18",34003:"TEXTURE19",34004:"TEXTURE20",34005:"TEXTURE21",34006:"TEXTURE22",34007:"TEXTURE23",34008:"TEXTURE24",34009:"TEXTURE25",34010:"TEXTURE26",34011:"TEXTURE27",34012:"TEXTURE28",34013:"TEXTURE29",34014:"TEXTURE30",34015:"TEXTURE31",34016:"ACTIVE_TEXTURE",34024:"MAX_RENDERBUFFER_SIZE",34041:"DEPTH_STENCIL",34055:"INCR_WRAP",34056:"DECR_WRAP",34067:"TEXTURE_CUBE_MAP",34068:"TEXTURE_BINDING_CUBE_MAP",34069:"TEXTURE_CUBE_MAP_POSITIVE_X",34070:"TEXTURE_CUBE_MAP_NEGATIVE_X",34071:"TEXTURE_CUBE_MAP_POSITIVE_Y",34072:"TEXTURE_CUBE_MAP_NEGATIVE_Y",34073:"TEXTURE_CUBE_MAP_POSITIVE_Z",34074:"TEXTURE_CUBE_MAP_NEGATIVE_Z",34076:"MAX_CUBE_MAP_TEXTURE_SIZE",34338:"VERTEX_ATTRIB_ARRAY_ENABLED",34339:"VERTEX_ATTRIB_ARRAY_SIZE",34340:"VERTEX_ATTRIB_ARRAY_STRIDE",34341:"VERTEX_ATTRIB_ARRAY_TYPE",34342:"CURRENT_VERTEX_ATTRIB",34373:"VERTEX_ATTRIB_ARRAY_POINTER",34466:"NUM_COMPRESSED_TEXTURE_FORMATS",34467:"COMPRESSED_TEXTURE_FORMATS",34660:"BUFFER_SIZE",34661:"BUFFER_USAGE",34816:"STENCIL_BACK_FUNC",34817:"STENCIL_BACK_FAIL",34818:"STENCIL_BACK_PASS_DEPTH_FAIL",34819:"STENCIL_BACK_PASS_DEPTH_PASS",34877:"BLEND_EQUATION_ALPHA",34921:"MAX_VERTEX_ATTRIBS",34922:"VERTEX_ATTRIB_ARRAY_NORMALIZED",34930:"MAX_TEXTURE_IMAGE_UNITS",34962:"ARRAY_BUFFER",34963:"ELEMENT_ARRAY_BUFFER",34964:"ARRAY_BUFFER_BINDING",34965:"ELEMENT_ARRAY_BUFFER_BINDING",34975:"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",35040:"STREAM_DRAW",35044:"STATIC_DRAW",35048:"DYNAMIC_DRAW",35632:"FRAGMENT_SHADER",35633:"VERTEX_SHADER",35660:"MAX_VERTEX_TEXTURE_IMAGE_UNITS",35661:"MAX_COMBINED_TEXTURE_IMAGE_UNITS",35663:"SHADER_TYPE",35664:"FLOAT_VEC2",35665:"FLOAT_VEC3",35666:"FLOAT_VEC4",35667:"INT_VEC2",35668:"INT_VEC3",35669:"INT_VEC4",35670:"BOOL",35671:"BOOL_VEC2",35672:"BOOL_VEC3",35673:"BOOL_VEC4",35674:"FLOAT_MAT2",35675:"FLOAT_MAT3",35676:"FLOAT_MAT4",35678:"SAMPLER_2D",35680:"SAMPLER_CUBE",35712:"DELETE_STATUS",35713:"COMPILE_STATUS",35714:"LINK_STATUS",35715:"VALIDATE_STATUS",35716:"INFO_LOG_LENGTH",35717:"ATTACHED_SHADERS",35718:"ACTIVE_UNIFORMS",35719:"ACTIVE_UNIFORM_MAX_LENGTH",35720:"SHADER_SOURCE_LENGTH",35721:"ACTIVE_ATTRIBUTES",35722:"ACTIVE_ATTRIBUTE_MAX_LENGTH",35724:"SHADING_LANGUAGE_VERSION",35725:"CURRENT_PROGRAM",36003:"STENCIL_BACK_REF",36004:"STENCIL_BACK_VALUE_MASK",36005:"STENCIL_BACK_WRITEMASK",36006:"FRAMEBUFFER_BINDING",36007:"RENDERBUFFER_BINDING",36048:"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",36049:"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",36050:"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",36051:"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",36053:"FRAMEBUFFER_COMPLETE",36054:"FRAMEBUFFER_INCOMPLETE_ATTACHMENT",36055:"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",36057:"FRAMEBUFFER_INCOMPLETE_DIMENSIONS",36061:"FRAMEBUFFER_UNSUPPORTED",36064:"COLOR_ATTACHMENT0",36096:"DEPTH_ATTACHMENT",36128:"STENCIL_ATTACHMENT",36160:"FRAMEBUFFER",36161:"RENDERBUFFER",36162:"RENDERBUFFER_WIDTH",36163:"RENDERBUFFER_HEIGHT",36164:"RENDERBUFFER_INTERNAL_FORMAT",36168:"STENCIL_INDEX8",36176:"RENDERBUFFER_RED_SIZE",36177:"RENDERBUFFER_GREEN_SIZE",36178:"RENDERBUFFER_BLUE_SIZE",36179:"RENDERBUFFER_ALPHA_SIZE",36180:"RENDERBUFFER_DEPTH_SIZE",36181:"RENDERBUFFER_STENCIL_SIZE",36194:"RGB565",36336:"LOW_FLOAT",36337:"MEDIUM_FLOAT",36338:"HIGH_FLOAT",36339:"LOW_INT",36340:"MEDIUM_INT",36341:"HIGH_INT",36346:"SHADER_COMPILER",36347:"MAX_VERTEX_UNIFORM_VECTORS",36348:"MAX_VARYING_VECTORS",36349:"MAX_FRAGMENT_UNIFORM_VECTORS",37440:"UNPACK_FLIP_Y_WEBGL",37441:"UNPACK_PREMULTIPLY_ALPHA_WEBGL",37442:"CONTEXT_LOST_WEBGL",37443:"UNPACK_COLORSPACE_CONVERSION_WEBGL",37444:"BROWSER_DEFAULT_WEBGL"}},5171:function(ut,ht,j){var _=j(737);ut.exports=function(tt){return _[tt]}},9165:function(ut,ht,j){ut.exports=ft;var _=j(2762),rt=j(8116),tt=j(3436),st=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function ot(at,mt,St,_t){this.gl=at,this.shader=_t,this.buffer=mt,this.vao=St,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1,this.hasAlpha=!1}var nt=ot.prototype;nt.isOpaque=function(){return!this.hasAlpha},nt.isTransparent=function(){return this.hasAlpha},nt.drawTransparent=nt.draw=function(at){var mt=this.gl,St=this.shader.uniforms;this.shader.bind();var _t=St.view=at.view||st,Mt=St.projection=at.projection||st;St.model=at.model||st,St.clipBounds=this.clipBounds,St.opacity=this.opacity;var Et=_t[12],kt=_t[13],wt=_t[14],ct=_t[15],It=at._ortho||!1,At=It?2:1,Ot=At*this.pixelRatio*(Mt[3]*Et+Mt[7]*kt+Mt[11]*wt+Mt[15]*ct)/mt.drawingBufferHeight;this.vao.bind();for(var Pt=0;Pt<3;++Pt)mt.lineWidth(this.lineWidth[Pt]*this.pixelRatio),St.capSize=this.capSize[Pt]*Ot,this.lineCount[Pt]&&mt.drawArrays(mt.LINES,this.lineOffset[Pt],this.lineCount[Pt]);this.vao.unbind()};function vt(at,mt){for(var St=0;St<3;++St)at[0][St]=Math.min(at[0][St],mt[St]),at[1][St]=Math.max(at[1][St],mt[St])}var dt=function(){for(var at=new Array(3),mt=0;mt<3;++mt){for(var St=[],_t=1;_t<=2;++_t)for(var Mt=-1;Mt<=1;Mt+=2){var Et=(_t+mt)%3,kt=[0,0,0];kt[Et]=Mt,St.push(kt)}at[mt]=St}return at}();function bt(at,mt,St,_t){for(var Mt=dt[_t],Et=0;Et0){var zt=It.slice();zt[wt]+=Ot[1][wt],Mt.push(It[0],It[1],It[2],Pt[0],Pt[1],Pt[2],Pt[3],0,0,0,zt[0],zt[1],zt[2],Pt[0],Pt[1],Pt[2],Pt[3],0,0,0),vt(this.bounds,zt),kt+=2+bt(Mt,zt,Pt,wt)}}}this.lineCount[wt]=kt-this.lineOffset[wt]}this.buffer.update(Mt)}},nt.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()};function ft(at){var mt=at.gl,St=_(mt),_t=rt(mt,[{buffer:St,type:mt.FLOAT,size:3,offset:0,stride:40},{buffer:St,type:mt.FLOAT,size:4,offset:12,stride:40},{buffer:St,type:mt.FLOAT,size:3,offset:28,stride:40}]),Mt=tt(mt);Mt.attributes.position.location=0,Mt.attributes.color.location=1,Mt.attributes.offset.location=2;var Et=new ot(mt,St,_t,Mt);return Et.update(at),Et}},3436:function(ut,ht,j){var _=j(3236),rt=j(9405),tt=_([`precision highp float; #define GLSLIFY 1 attribute vec3 position, offset; @@ -770,13 +770,13 @@ void main() { ) discard; gl_FragColor = opacity * fragColor; -}`]);ut.exports=function(ot){return rt(ot,tt,st,null,[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"offset",type:"vec3"}])}},2260:function(ut,ht,j){var _=j(7766);ut.exports=kt;var rt=null,tt,st,ot,nt;function vt(wt){var ct=wt.getParameter(wt.FRAMEBUFFER_BINDING),It=wt.getParameter(wt.RENDERBUFFER_BINDING),At=wt.getParameter(wt.TEXTURE_BINDING_2D);return[ct,It,At]}function dt(wt,ct){wt.bindFramebuffer(wt.FRAMEBUFFER,ct[0]),wt.bindRenderbuffer(wt.RENDERBUFFER,ct[1]),wt.bindTexture(wt.TEXTURE_2D,ct[2])}function bt(wt,ct){var It=wt.getParameter(ct.MAX_COLOR_ATTACHMENTS_WEBGL);rt=new Array(It+1);for(var At=0;At<=It;++At){for(var Ot=new Array(It),Pt=0;Pt1&&Dt.drawBuffersWEBGL(rt[zt]);var Vt=It.getExtension("WEBGL_depth_texture");Vt?Nt?wt.depth=at(It,Ot,Pt,Vt.UNSIGNED_INT_24_8_WEBGL,It.DEPTH_STENCIL,It.DEPTH_STENCIL_ATTACHMENT):$t&&(wt.depth=at(It,Ot,Pt,It.UNSIGNED_SHORT,It.DEPTH_COMPONENT,It.DEPTH_ATTACHMENT)):$t&&Nt?wt._depth_rb=yt(It,Ot,Pt,It.DEPTH_STENCIL,It.DEPTH_STENCIL_ATTACHMENT):$t?wt._depth_rb=yt(It,Ot,Pt,It.DEPTH_COMPONENT16,It.DEPTH_ATTACHMENT):Nt&&(wt._depth_rb=yt(It,Ot,Pt,It.STENCIL_INDEX,It.STENCIL_ATTACHMENT));var Xt=It.checkFramebufferStatus(It.FRAMEBUFFER);if(Xt!==It.FRAMEBUFFER_COMPLETE){wt._destroyed=!0,It.bindFramebuffer(It.FRAMEBUFFER,null),It.deleteFramebuffer(wt.handle),wt.handle=null,wt.depth&&(wt.depth.dispose(),wt.depth=null),wt._depth_rb&&(It.deleteRenderbuffer(wt._depth_rb),wt._depth_rb=null);for(var Ht=0;HtOt||It<0||It>Ot)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");wt._shape[0]=ct,wt._shape[1]=It;for(var Pt=vt(At),zt=0;ztPt||It<0||It>Pt)throw new Error("gl-fbo: Parameters are too large for FBO");At=At||{};var zt=1;if("color"in At){if(zt=Math.max(At.color|0,0),zt<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(zt>1)if(Ot){if(zt>wt.getParameter(Ot.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+zt+" draw buffers")}else throw new Error("gl-fbo: Multiple draw buffer extension not supported")}var Dt=wt.UNSIGNED_BYTE,Nt=wt.getExtension("OES_texture_float");if(At.float&&zt>0){if(!Nt)throw new Error("gl-fbo: Context does not support floating point textures");Dt=wt.FLOAT}else At.preferFloat&&zt>0&&Nt&&(Dt=wt.FLOAT);var $t=!0;"depth"in At&&($t=!!At.depth);var Ut=!1;return"stencil"in At&&(Ut=!!At.stencil),new _t(wt,ct,It,Dt,zt,$t,Ut,Ot)}},2992:function(ut,ht,j){var _=j(3387).sprintf,rt=j(5171),tt=j(1848),st=j(1085);ut.exports=ot;function ot(nt,vt,dt){var bt=tt(vt)||"of unknown name (see npm glsl-shader-name)",ft="unknown type";dt!==void 0&&(ft=dt===rt.FRAGMENT_SHADER?"fragment":"vertex");for(var at=_(`Error compiling %s shader %s: -`,ft,bt),yt=_("%s%s",at,nt),St=nt.split(` -`),_t={},Mt=0;Mt1&&Dt.drawBuffersWEBGL(rt[zt]);var Vt=It.getExtension("WEBGL_depth_texture");Vt?Nt?wt.depth=at(It,Ot,Pt,Vt.UNSIGNED_INT_24_8_WEBGL,It.DEPTH_STENCIL,It.DEPTH_STENCIL_ATTACHMENT):$t&&(wt.depth=at(It,Ot,Pt,It.UNSIGNED_SHORT,It.DEPTH_COMPONENT,It.DEPTH_ATTACHMENT)):$t&&Nt?wt._depth_rb=mt(It,Ot,Pt,It.DEPTH_STENCIL,It.DEPTH_STENCIL_ATTACHMENT):$t?wt._depth_rb=mt(It,Ot,Pt,It.DEPTH_COMPONENT16,It.DEPTH_ATTACHMENT):Nt&&(wt._depth_rb=mt(It,Ot,Pt,It.STENCIL_INDEX,It.STENCIL_ATTACHMENT));var Xt=It.checkFramebufferStatus(It.FRAMEBUFFER);if(Xt!==It.FRAMEBUFFER_COMPLETE){wt._destroyed=!0,It.bindFramebuffer(It.FRAMEBUFFER,null),It.deleteFramebuffer(wt.handle),wt.handle=null,wt.depth&&(wt.depth.dispose(),wt.depth=null),wt._depth_rb&&(It.deleteRenderbuffer(wt._depth_rb),wt._depth_rb=null);for(var Ht=0;HtOt||It<0||It>Ot)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");wt._shape[0]=ct,wt._shape[1]=It;for(var Pt=vt(At),zt=0;ztPt||It<0||It>Pt)throw new Error("gl-fbo: Parameters are too large for FBO");At=At||{};var zt=1;if("color"in At){if(zt=Math.max(At.color|0,0),zt<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(zt>1)if(Ot){if(zt>wt.getParameter(Ot.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+zt+" draw buffers")}else throw new Error("gl-fbo: Multiple draw buffer extension not supported")}var Dt=wt.UNSIGNED_BYTE,Nt=wt.getExtension("OES_texture_float");if(At.float&&zt>0){if(!Nt)throw new Error("gl-fbo: Context does not support floating point textures");Dt=wt.FLOAT}else At.preferFloat&&zt>0&&Nt&&(Dt=wt.FLOAT);var $t=!0;"depth"in At&&($t=!!At.depth);var Ut=!1;return"stencil"in At&&(Ut=!!At.stencil),new _t(wt,ct,It,Dt,zt,$t,Ut,Ot)}},2992:function(ut,ht,j){var _=j(3387).sprintf,rt=j(5171),tt=j(1848),st=j(1085);ut.exports=ot;function ot(nt,vt,dt){var bt=tt(vt)||"of unknown name (see npm glsl-shader-name)",ft="unknown type";dt!==void 0&&(ft=dt===rt.FRAGMENT_SHADER?"fragment":"vertex");for(var at=_(`Error compiling %s shader %s: +`,ft,bt),mt=_("%s%s",at,nt),St=nt.split(` +`),_t={},Mt=0;Mt>zt*8&255;this.pickOffset=St,Mt.bind();var Dt=Mt.uniforms;Dt.viewTransform=at,Dt.pickOffset=yt,Dt.shape=this.shape;var Nt=Mt.attributes;return this.positionBuffer.bind(),Nt.position.pointer(),this.weightBuffer.bind(),Nt.weight.pointer(wt.UNSIGNED_BYTE,!1),this.idBuffer.bind(),Nt.pickId.pointer(wt.UNSIGNED_BYTE,!1),wt.drawArrays(wt.TRIANGLES,0,kt),St+this.shape[0]*this.shape[1]}}}(),dt.pick=function(at,yt,St){var _t=this.pickOffset,Mt=this.shape[0]*this.shape[1];if(St<_t||St>=_t+Mt)return null;var Tt=St-_t,kt=this.xData,wt=this.yData;return{object:this,pointId:Tt,dataCoord:[kt[Tt%this.shape[0]],wt[Tt/this.shape[0]|0]]}},dt.update=function(at){at=at||{};var yt=at.shape||[0,0],St=at.x||rt(yt[0]),_t=at.y||rt(yt[1]),Mt=at.z||new Float32Array(yt[0]*yt[1]),Tt=at.zsmooth!==!1;this.xData=St,this.yData=_t;var kt=at.colorLevels||[0],wt=at.colorValues||[0,0,0,1],ct=kt.length,It=this.bounds,At,Ot,Pt,zt;Tt?(At=It[0]=St[0],Ot=It[1]=_t[0],Pt=It[2]=St[St.length-1],zt=It[3]=_t[_t.length-1]):(At=It[0]=St[0]+(St[1]-St[0])/2,Ot=It[1]=_t[0]+(_t[1]-_t[0])/2,Pt=It[2]=St[St.length-1]+(St[St.length-1]-St[St.length-2])/2,zt=It[3]=_t[_t.length-1]+(_t[_t.length-1]-_t[_t.length-2])/2);var Dt=1/(Pt-At),Nt=1/(zt-Ot),$t=yt[0],Ut=yt[1];this.shape=[$t,Ut];var Ht=(Tt?($t-1)*(Ut-1):$t*Ut)*(bt.length>>>1);this.numVertices=Ht;for(var Vt=tt.mallocUint8(Ht*4),Xt=tt.mallocFloat32(Ht*2),qt=tt.mallocUint8(Ht*2),er=tt.mallocUint32(Ht),lr=0,Jt=Tt?$t-1:$t,Yt=Tt?Ut-1:Ut,rr=0;rr>zt*8&255;this.pickOffset=St,Mt.bind();var Dt=Mt.uniforms;Dt.viewTransform=at,Dt.pickOffset=mt,Dt.shape=this.shape;var Nt=Mt.attributes;return this.positionBuffer.bind(),Nt.position.pointer(),this.weightBuffer.bind(),Nt.weight.pointer(wt.UNSIGNED_BYTE,!1),this.idBuffer.bind(),Nt.pickId.pointer(wt.UNSIGNED_BYTE,!1),wt.drawArrays(wt.TRIANGLES,0,kt),St+this.shape[0]*this.shape[1]}}}(),dt.pick=function(at,mt,St){var _t=this.pickOffset,Mt=this.shape[0]*this.shape[1];if(St<_t||St>=_t+Mt)return null;var Et=St-_t,kt=this.xData,wt=this.yData;return{object:this,pointId:Et,dataCoord:[kt[Et%this.shape[0]],wt[Et/this.shape[0]|0]]}},dt.update=function(at){at=at||{};var mt=at.shape||[0,0],St=at.x||rt(mt[0]),_t=at.y||rt(mt[1]),Mt=at.z||new Float32Array(mt[0]*mt[1]),Et=at.zsmooth!==!1;this.xData=St,this.yData=_t;var kt=at.colorLevels||[0],wt=at.colorValues||[0,0,0,1],ct=kt.length,It=this.bounds,At,Ot,Pt,zt;Et?(At=It[0]=St[0],Ot=It[1]=_t[0],Pt=It[2]=St[St.length-1],zt=It[3]=_t[_t.length-1]):(At=It[0]=St[0]+(St[1]-St[0])/2,Ot=It[1]=_t[0]+(_t[1]-_t[0])/2,Pt=It[2]=St[St.length-1]+(St[St.length-1]-St[St.length-2])/2,zt=It[3]=_t[_t.length-1]+(_t[_t.length-1]-_t[_t.length-2])/2);var Dt=1/(Pt-At),Nt=1/(zt-Ot),$t=mt[0],Ut=mt[1];this.shape=[$t,Ut];var Ht=(Et?($t-1)*(Ut-1):$t*Ut)*(bt.length>>>1);this.numVertices=Ht;for(var Vt=tt.mallocUint8(Ht*4),Xt=tt.mallocFloat32(Ht*2),qt=tt.mallocUint8(Ht*2),er=tt.mallocUint32(Ht),lr=0,Jt=Et?$t-1:$t,Yt=Et?Ut-1:Ut,rr=0;rr0){for(var Jt=0;Jt<24;++Jt)Pt.push(Pt[Pt.length-12]);$t+=2,qt=!0}continue e}Ut[0][At]=Math.min(Ut[0][At],er[At],lr[At]),Ut[1][At]=Math.max(Ut[1][At],er[At],lr[At])}var Yt,rr;Array.isArray(Vt[0])?(Yt=Vt.length>It-1?Vt[It-1]:Vt.length>0?Vt[Vt.length-1]:[0,0,0,1],rr=Vt.length>It?Vt[It]:Vt.length>0?Vt[Vt.length-1]:[0,0,0,1]):Yt=rr=Vt,Yt.length===3&&(Yt=[Yt[0],Yt[1],Yt[2],1]),rr.length===3&&(rr=[rr[0],rr[1],rr[2],1]),!this.hasAlpha&&Yt[3]<1&&(this.hasAlpha=!0);var jt;Array.isArray(Xt)?jt=Xt.length>It-1?Xt[It-1]:Xt.length>0?Xt[Xt.length-1]:[0,0,0,1]:jt=Xt;var ar=Nt;if(Nt+=St(er,lr),qt){for(At=0;At<2;++At)Pt.push(er[0],er[1],er[2],lr[0],lr[1],lr[2],ar,jt,Yt[0],Yt[1],Yt[2],Yt[3]);$t+=2,qt=!1}Pt.push(er[0],er[1],er[2],lr[0],lr[1],lr[2],ar,jt,Yt[0],Yt[1],Yt[2],Yt[3],er[0],er[1],er[2],lr[0],lr[1],lr[2],ar,-jt,Yt[0],Yt[1],Yt[2],Yt[3],lr[0],lr[1],lr[2],er[0],er[1],er[2],Nt,-jt,rr[0],rr[1],rr[2],rr[3],lr[0],lr[1],lr[2],er[0],er[1],er[2],Nt,jt,rr[0],rr[1],rr[2],rr[3]),$t+=4}}if(this.buffer.update(Pt),zt.push(Nt),Dt.push(Ht[Ht.length-1].slice()),this.bounds=Ut,this.vertexCount=$t,this.points=Dt,this.arcLength=zt,"dashes"in ct){var sr=ct.dashes,Zt=sr.slice();for(Zt.unshift(0),It=1;It1.0001)return null;At+=It[Mt]}return Math.abs(At-1)>.001?null:[Tt,nt(dt,It),It]}},840:function(ut,ht,j){var _=j(3236),rt=_([`precision highp float; +}`]),nt=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];ht.createShader=function(vt){return rt(vt,tt,st,null,nt)},ht.createPickShader=function(vt){return rt(vt,tt,ot,null,nt)}},5714:function(ut,ht,j){ut.exports=wt;var _=j(2762),rt=j(8116),tt=j(7766),st=new Uint8Array(4),ot=new Float32Array(st.buffer);function nt(ct,It,At,Ot){return st[0]=Ot,st[1]=At,st[2]=It,st[3]=ct,ot[0]}var vt=j(2478),dt=j(9618),bt=j(7319),ft=bt.createShader,at=bt.createPickShader,mt=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function St(ct,It){for(var At=0,Ot=0;Ot<3;++Ot){var Pt=ct[Ot]-It[Ot];At+=Pt*Pt}return Math.sqrt(At)}function _t(ct){for(var It=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],At=0;At<3;++At)It[0][At]=Math.max(ct[0][At],It[0][At]),It[1][At]=Math.min(ct[1][At],It[1][At]);return It}function Mt(ct,It,At,Ot){this.arcLength=ct,this.position=It,this.index=At,this.dataCoordinate=Ot}function Et(ct,It,At,Ot,Pt,zt){this.gl=ct,this.shader=It,this.pickShader=At,this.buffer=Ot,this.vao=Pt,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.points=[],this.arcLength=[],this.vertexCount=0,this.bounds=[[0,0,0],[0,0,0]],this.pickId=0,this.lineWidth=1,this.texture=zt,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var kt=Et.prototype;kt.isTransparent=function(){return this.hasAlpha},kt.isOpaque=function(){return!this.hasAlpha},kt.pickSlots=1,kt.setPickBase=function(ct){this.pickId=ct},kt.drawTransparent=kt.draw=function(ct){if(this.vertexCount){var It=this.gl,At=this.shader,Ot=this.vao;At.bind(),At.uniforms={model:ct.model||mt,view:ct.view||mt,projection:ct.projection||mt,clipBounds:_t(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[It.drawingBufferWidth,It.drawingBufferHeight],pixelRatio:this.pixelRatio},Ot.bind(),Ot.draw(It.TRIANGLE_STRIP,this.vertexCount),Ot.unbind()}},kt.drawPick=function(ct){if(this.vertexCount){var It=this.gl,At=this.pickShader,Ot=this.vao;At.bind(),At.uniforms={model:ct.model||mt,view:ct.view||mt,projection:ct.projection||mt,pickId:this.pickId,clipBounds:_t(this.clipBounds),screenShape:[It.drawingBufferWidth,It.drawingBufferHeight],pixelRatio:this.pixelRatio},Ot.bind(),Ot.draw(It.TRIANGLE_STRIP,this.vertexCount),Ot.unbind()}},kt.update=function(ct){var It,At;this.dirty=!0;var Ot=!!ct.connectGaps;"dashScale"in ct&&(this.dashScale=ct.dashScale),this.hasAlpha=!1,"opacity"in ct&&(this.opacity=+ct.opacity,this.opacity<1&&(this.hasAlpha=!0));var Pt=[],zt=[],Dt=[],Nt=0,$t=0,Ut=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],Ht=ct.position||ct.positions;if(Ht){var Vt=ct.color||ct.colors||[0,0,0,1],Xt=ct.lineWidth||1,qt=!1;e:for(It=1;It0){for(var Jt=0;Jt<24;++Jt)Pt.push(Pt[Pt.length-12]);$t+=2,qt=!0}continue e}Ut[0][At]=Math.min(Ut[0][At],er[At],lr[At]),Ut[1][At]=Math.max(Ut[1][At],er[At],lr[At])}var Yt,rr;Array.isArray(Vt[0])?(Yt=Vt.length>It-1?Vt[It-1]:Vt.length>0?Vt[Vt.length-1]:[0,0,0,1],rr=Vt.length>It?Vt[It]:Vt.length>0?Vt[Vt.length-1]:[0,0,0,1]):Yt=rr=Vt,Yt.length===3&&(Yt=[Yt[0],Yt[1],Yt[2],1]),rr.length===3&&(rr=[rr[0],rr[1],rr[2],1]),!this.hasAlpha&&Yt[3]<1&&(this.hasAlpha=!0);var jt;Array.isArray(Xt)?jt=Xt.length>It-1?Xt[It-1]:Xt.length>0?Xt[Xt.length-1]:[0,0,0,1]:jt=Xt;var ar=Nt;if(Nt+=St(er,lr),qt){for(At=0;At<2;++At)Pt.push(er[0],er[1],er[2],lr[0],lr[1],lr[2],ar,jt,Yt[0],Yt[1],Yt[2],Yt[3]);$t+=2,qt=!1}Pt.push(er[0],er[1],er[2],lr[0],lr[1],lr[2],ar,jt,Yt[0],Yt[1],Yt[2],Yt[3],er[0],er[1],er[2],lr[0],lr[1],lr[2],ar,-jt,Yt[0],Yt[1],Yt[2],Yt[3],lr[0],lr[1],lr[2],er[0],er[1],er[2],Nt,-jt,rr[0],rr[1],rr[2],rr[3],lr[0],lr[1],lr[2],er[0],er[1],er[2],Nt,jt,rr[0],rr[1],rr[2],rr[3]),$t+=4}}if(this.buffer.update(Pt),zt.push(Nt),Dt.push(Ht[Ht.length-1].slice()),this.bounds=Ut,this.vertexCount=$t,this.points=Dt,this.arcLength=zt,"dashes"in ct){var sr=ct.dashes,Zt=sr.slice();for(Zt.unshift(0),It=1;It1.0001)return null;At+=It[Mt]}return Math.abs(At-1)>.001?null:[Et,nt(dt,It),It]}},840:function(ut,ht,j){var _=j(3236),rt=_([`precision highp float; #define GLSLIFY 1 attribute vec3 position, normal; @@ -1363,7 +1363,7 @@ uniform mat4 model, view, projection; void main() { gl_Position = projection * view * model * vec4(position, 1.0); -}`]),yt=_([`precision highp float; +}`]),mt=_([`precision highp float; #define GLSLIFY 1 uniform vec3 contourColor; @@ -1371,7 +1371,7 @@ uniform vec3 contourColor; void main() { gl_FragColor = vec4(contourColor, 1.0); } -`]);ht.meshShader={vertex:rt,fragment:tt,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},ht.wireShader={vertex:st,fragment:ot,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},ht.pointShader={vertex:nt,fragment:vt,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},ht.pickShader={vertex:dt,fragment:bt,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},ht.pointPickShader={vertex:ft,fragment:bt,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},ht.contourShader={vertex:at,fragment:yt,attributes:[{name:"position",type:"vec3"}]}},7201:function(ut,ht,j){var _=1e-6,rt=1e-6,tt=j(9405),st=j(2762),ot=j(8116),nt=j(7766),vt=j(8406),dt=j(6760),bt=j(7608),ft=j(9618),at=j(6729),yt=j(7765),St=j(1888),_t=j(840),Mt=j(7626),Tt=_t.meshShader,kt=_t.wireShader,wt=_t.pointShader,ct=_t.pickShader,It=_t.pointPickShader,At=_t.contourShader,Ot=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function Pt(Jt,Yt,rr,jt,ar,sr,Zt,Kt,or,tr,cr,hr,br,Tr,Ir,Ar,_r,Er,Rr,zr,Br,kr,Nr,Qr,sn,un,qr){this.gl=Jt,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=Yt,this.dirty=!0,this.triShader=rr,this.lineShader=jt,this.pointShader=ar,this.pickShader=sr,this.pointPickShader=Zt,this.contourShader=Kt,this.trianglePositions=or,this.triangleColors=cr,this.triangleNormals=br,this.triangleUVs=hr,this.triangleIds=tr,this.triangleVAO=Tr,this.triangleCount=0,this.lineWidth=1,this.edgePositions=Ir,this.edgeColors=_r,this.edgeUVs=Er,this.edgeIds=Ar,this.edgeVAO=Rr,this.edgeCount=0,this.pointPositions=zr,this.pointColors=kr,this.pointUVs=Nr,this.pointSizes=Qr,this.pointIds=Br,this.pointVAO=sn,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=un,this.contourVAO=qr,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.hasAlpha=!1,this.opacityscale=!1,this._model=Ot,this._view=Ot,this._projection=Ot,this._resolution=[1,1]}var zt=Pt.prototype;zt.isOpaque=function(){return!this.hasAlpha},zt.isTransparent=function(){return this.hasAlpha},zt.pickSlots=1,zt.setPickBase=function(Jt){this.pickId=Jt};function Dt(Jt,Yt){if(!Yt||!Yt.length)return 1;for(var rr=0;rrJt&&rr>0){var jt=(Yt[rr][0]-Jt)/(Yt[rr][0]-Yt[rr-1][0]);return Yt[rr][1]*(1-jt)+jt*Yt[rr-1][1]}}return 1}function Nt(Jt,Yt){for(var rr=at({colormap:Jt,nshades:256,format:"rgba"}),jt=new Uint8Array(256*4),ar=0;ar<256;++ar){for(var sr=rr[ar],Zt=0;Zt<3;++Zt)jt[4*ar+Zt]=sr[Zt];Yt?jt[4*ar+3]=255*Dt(ar/255,Yt):jt[4*ar+3]=255*sr[3]}return ft(jt,[256,256,4],[4,0,1])}function $t(Jt){for(var Yt=Jt.length,rr=new Array(Yt),jt=0;jt0){var br=this.triShader;br.bind(),br.uniforms=Kt,this.triangleVAO.bind(),Yt.drawArrays(Yt.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var br=this.lineShader;br.bind(),br.uniforms=Kt,this.edgeVAO.bind(),Yt.lineWidth(this.lineWidth*this.pixelRatio),Yt.drawArrays(Yt.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()}if(this.pointCount>0){var br=this.pointShader;br.bind(),br.uniforms=Kt,this.pointVAO.bind(),Yt.drawArrays(Yt.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var br=this.contourShader;br.bind(),br.uniforms=Kt,this.contourVAO.bind(),Yt.drawArrays(Yt.LINES,0,this.contourCount),this.contourVAO.unbind()}},zt.drawPick=function(Jt){Jt=Jt||{};for(var Yt=this.gl,rr=Jt.model||Ot,jt=Jt.view||Ot,ar=Jt.projection||Ot,sr=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],Zt=0;Zt<3;++Zt)sr[0][Zt]=Math.max(sr[0][Zt],this.clipBounds[0][Zt]),sr[1][Zt]=Math.min(sr[1][Zt],this.clipBounds[1][Zt]);this._model=[].slice.call(rr),this._view=[].slice.call(jt),this._projection=[].slice.call(ar),this._resolution=[Yt.drawingBufferWidth,Yt.drawingBufferHeight];var Kt={model:rr,view:jt,projection:ar,clipBounds:sr,pickId:this.pickId/255},or=this.pickShader;if(or.bind(),or.uniforms=Kt,this.triangleCount>0&&(this.triangleVAO.bind(),Yt.drawArrays(Yt.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),Yt.lineWidth(this.lineWidth*this.pixelRatio),Yt.drawArrays(Yt.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()),this.pointCount>0){var or=this.pointPickShader;or.bind(),or.uniforms=Kt,this.pointVAO.bind(),Yt.drawArrays(Yt.POINTS,0,this.pointCount),this.pointVAO.unbind()}},zt.pick=function(Jt){if(!Jt||Jt.id!==this.pickId)return null;for(var Yt=Jt.value[0]+256*Jt.value[1]+65536*Jt.value[2],rr=this.cells[Yt],jt=this.positions,ar=new Array(rr.length),sr=0;srJt&&rr>0){var jt=(Yt[rr][0]-Jt)/(Yt[rr][0]-Yt[rr-1][0]);return Yt[rr][1]*(1-jt)+jt*Yt[rr-1][1]}}return 1}function Nt(Jt,Yt){for(var rr=at({colormap:Jt,nshades:256,format:"rgba"}),jt=new Uint8Array(256*4),ar=0;ar<256;++ar){for(var sr=rr[ar],Zt=0;Zt<3;++Zt)jt[4*ar+Zt]=sr[Zt];Yt?jt[4*ar+3]=255*Dt(ar/255,Yt):jt[4*ar+3]=255*sr[3]}return ft(jt,[256,256,4],[4,0,1])}function $t(Jt){for(var Yt=Jt.length,rr=new Array(Yt),jt=0;jt0){var Ar=this.triShader;Ar.bind(),Ar.uniforms=Kt,this.triangleVAO.bind(),Yt.drawArrays(Yt.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var Ar=this.lineShader;Ar.bind(),Ar.uniforms=Kt,this.edgeVAO.bind(),Yt.lineWidth(this.lineWidth*this.pixelRatio),Yt.drawArrays(Yt.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()}if(this.pointCount>0){var Ar=this.pointShader;Ar.bind(),Ar.uniforms=Kt,this.pointVAO.bind(),Yt.drawArrays(Yt.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var Ar=this.contourShader;Ar.bind(),Ar.uniforms=Kt,this.contourVAO.bind(),Yt.drawArrays(Yt.LINES,0,this.contourCount),this.contourVAO.unbind()}},zt.drawPick=function(Jt){Jt=Jt||{};for(var Yt=this.gl,rr=Jt.model||Ot,jt=Jt.view||Ot,ar=Jt.projection||Ot,sr=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],Zt=0;Zt<3;++Zt)sr[0][Zt]=Math.max(sr[0][Zt],this.clipBounds[0][Zt]),sr[1][Zt]=Math.min(sr[1][Zt],this.clipBounds[1][Zt]);this._model=[].slice.call(rr),this._view=[].slice.call(jt),this._projection=[].slice.call(ar),this._resolution=[Yt.drawingBufferWidth,Yt.drawingBufferHeight];var Kt={model:rr,view:jt,projection:ar,clipBounds:sr,pickId:this.pickId/255},or=this.pickShader;if(or.bind(),or.uniforms=Kt,this.triangleCount>0&&(this.triangleVAO.bind(),Yt.drawArrays(Yt.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),Yt.lineWidth(this.lineWidth*this.pixelRatio),Yt.drawArrays(Yt.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()),this.pointCount>0){var or=this.pointPickShader;or.bind(),or.uniforms=Kt,this.pointVAO.bind(),Yt.drawArrays(Yt.POINTS,0,this.pointCount),this.pointVAO.unbind()}},zt.pick=function(Jt){if(!Jt||Jt.id!==this.pickId)return null;for(var Yt=Jt.value[0]+256*Jt.value[1]+65536*Jt.value[2],rr=this.cells[Yt],jt=this.positions,ar=new Array(rr.length),sr=0;srTt[qt]&&(_t.uniforms.dataAxis=bt,_t.uniforms.screenOffset=ft,_t.uniforms.color=zt[yt],_t.uniforms.angle=Dt[yt],kt.drawArrays(kt.TRIANGLES,Tt[qt],Tt[er]-Tt[qt]))),Nt[yt]&&Xt&&(ft[yt^1]-=lr*At*$t[yt],_t.uniforms.dataAxis=at,_t.uniforms.screenOffset=ft,_t.uniforms.color=Ut[yt],_t.uniforms.angle=Ht[yt],kt.drawArrays(kt.TRIANGLES,Vt,Xt)),ft[yt^1]=lr*wt[2+(yt^1)]-1,Ot[yt+2]&&(ft[yt^1]+=lr*At*Pt[yt+2],qtTt[qt]&&(_t.uniforms.dataAxis=bt,_t.uniforms.screenOffset=ft,_t.uniforms.color=zt[yt+2],_t.uniforms.angle=Dt[yt+2],kt.drawArrays(kt.TRIANGLES,Tt[qt],Tt[er]-Tt[qt]))),Nt[yt+2]&&Xt&&(ft[yt^1]+=lr*At*$t[yt+2],_t.uniforms.dataAxis=at,_t.uniforms.screenOffset=ft,_t.uniforms.color=Ut[yt+2],_t.uniforms.angle=Ht[yt+2],kt.drawArrays(kt.TRIANGLES,Vt,Xt))}}(),vt.drawTitle=function(){var bt=[0,0],ft=[0,0];return function(){var at=this.plot,yt=this.shader,St=at.gl,_t=at.screenBox,Mt=at.titleCenter,Tt=at.titleAngle,kt=at.titleColor,wt=at.pixelRatio;if(this.titleCount){for(var ct=0;ct<2;++ct)ft[ct]=2*(Mt[ct]*wt-_t[ct])/(_t[2+ct]-_t[ct])-1;yt.bind(),yt.uniforms.dataAxis=bt,yt.uniforms.screenOffset=ft,yt.uniforms.angle=Tt,yt.uniforms.color=kt,St.drawArrays(St.TRIANGLES,this.titleOffset,this.titleCount)}}}(),vt.bind=function(){var bt=[0,0],ft=[0,0],at=[0,0];return function(){var yt=this.plot,St=this.shader,_t=yt._tickBounds,Mt=yt.dataBox,Tt=yt.screenBox,kt=yt.viewBox;St.bind();for(var wt=0;wt<2;++wt){var ct=_t[wt],It=_t[wt+2],At=It-ct,Ot=.5*(Mt[wt+2]+Mt[wt]),Pt=Mt[wt+2]-Mt[wt],zt=kt[wt],Dt=kt[wt+2],Nt=Dt-zt,$t=Tt[wt],Ut=Tt[wt+2],Ht=Ut-$t;ft[wt]=2*At/Pt*Nt/Ht,bt[wt]=2*(ct-Ot)/Pt*Nt/Ht}at[1]=2*yt.pixelRatio/(Tt[3]-Tt[1]),at[0]=at[1]*(Tt[3]-Tt[1])/(Tt[2]-Tt[0]),St.uniforms.dataScale=ft,St.uniforms.dataShift=bt,St.uniforms.textScale=at,this.vbo.bind(),St.attributes.textCoordinate.pointer()}}(),vt.update=function(bt){var ft=[],at=bt.ticks,yt=bt.bounds,St,_t,Mt,Tt,kt;for(kt=0;kt<2;++kt){var wt=[Math.floor(ft.length/3)],ct=[-1/0],It=at[kt];for(St=0;St=0))){var Nt=yt[Dt]-_t[Dt]*(yt[Dt+2]-yt[Dt])/(_t[Dt+2]-_t[Dt]);Dt===0?kt.drawLine(Nt,yt[1],Nt,yt[3],zt[Dt],Pt[Dt]):kt.drawLine(yt[0],Nt,yt[2],Nt,zt[Dt],Pt[Dt])}}for(var Dt=0;Dt=0;--at)this.objects[at].dispose();this.objects.length=0;for(var at=this.overlays.length-1;at>=0;--at)this.overlays[at].dispose();this.overlays.length=0,this.gl=null},vt.addObject=function(at){this.objects.indexOf(at)<0&&(this.objects.push(at),this.setDirty())},vt.removeObject=function(at){for(var yt=this.objects,St=0;StMath.abs(ct))at.rotate(Ot,0,0,-wt*It*Math.PI*Tt.rotateSpeed/window.innerWidth);else if(!Tt._ortho){var Pt=-Tt.zoomSpeed*At*ct/window.innerHeight*(Ot-at.lastT())/20;at.pan(Ot,0,0,St*(Math.exp(Pt)-1))}}},!0)},Tt.enableMouseListeners(),Tt}},799:function(ut,ht,j){var _=j(3236),rt=j(9405),tt=_([`precision mediump float; +`])}},2142:function(ut,ht,j){ut.exports=dt;var _=j(2762),rt=j(9405),tt=j(529),st=j(2478),ot=j(3603);function nt(bt,ft,at){this.plot=bt,this.vbo=ft,this.shader=at,this.tickOffset=[[],[]],this.tickX=[[],[]],this.labelOffset=[0,0],this.labelCount=[0,0]}var vt=nt.prototype;vt.drawTicks=function(){var bt=[0,0],ft=[0,0],at=[0,0];return function(mt){var St=this.plot,_t=this.shader,Mt=this.tickX[mt],Et=this.tickOffset[mt],kt=St.gl,wt=St.viewBox,ct=St.dataBox,It=St.screenBox,At=St.pixelRatio,Ot=St.tickEnable,Pt=St.tickPad,zt=St.tickColor,Dt=St.tickAngle,Nt=St.labelEnable,$t=St.labelPad,Ut=St.labelColor,Ht=St.labelAngle,Vt=this.labelOffset[mt],Xt=this.labelCount[mt],qt=st.lt(Mt,ct[mt]),er=st.le(Mt,ct[mt+2]);bt[0]=bt[1]=0,bt[mt]=1,ft[mt]=(wt[2+mt]+wt[mt])/(It[2+mt]-It[mt])-1;var lr=2/It[2+(mt^1)]-It[mt^1];ft[mt^1]=lr*wt[mt^1]-1,Ot[mt]&&(ft[mt^1]-=lr*At*Pt[mt],qtEt[qt]&&(_t.uniforms.dataAxis=bt,_t.uniforms.screenOffset=ft,_t.uniforms.color=zt[mt],_t.uniforms.angle=Dt[mt],kt.drawArrays(kt.TRIANGLES,Et[qt],Et[er]-Et[qt]))),Nt[mt]&&Xt&&(ft[mt^1]-=lr*At*$t[mt],_t.uniforms.dataAxis=at,_t.uniforms.screenOffset=ft,_t.uniforms.color=Ut[mt],_t.uniforms.angle=Ht[mt],kt.drawArrays(kt.TRIANGLES,Vt,Xt)),ft[mt^1]=lr*wt[2+(mt^1)]-1,Ot[mt+2]&&(ft[mt^1]+=lr*At*Pt[mt+2],qtEt[qt]&&(_t.uniforms.dataAxis=bt,_t.uniforms.screenOffset=ft,_t.uniforms.color=zt[mt+2],_t.uniforms.angle=Dt[mt+2],kt.drawArrays(kt.TRIANGLES,Et[qt],Et[er]-Et[qt]))),Nt[mt+2]&&Xt&&(ft[mt^1]+=lr*At*$t[mt+2],_t.uniforms.dataAxis=at,_t.uniforms.screenOffset=ft,_t.uniforms.color=Ut[mt+2],_t.uniforms.angle=Ht[mt+2],kt.drawArrays(kt.TRIANGLES,Vt,Xt))}}(),vt.drawTitle=function(){var bt=[0,0],ft=[0,0];return function(){var at=this.plot,mt=this.shader,St=at.gl,_t=at.screenBox,Mt=at.titleCenter,Et=at.titleAngle,kt=at.titleColor,wt=at.pixelRatio;if(this.titleCount){for(var ct=0;ct<2;++ct)ft[ct]=2*(Mt[ct]*wt-_t[ct])/(_t[2+ct]-_t[ct])-1;mt.bind(),mt.uniforms.dataAxis=bt,mt.uniforms.screenOffset=ft,mt.uniforms.angle=Et,mt.uniforms.color=kt,St.drawArrays(St.TRIANGLES,this.titleOffset,this.titleCount)}}}(),vt.bind=function(){var bt=[0,0],ft=[0,0],at=[0,0];return function(){var mt=this.plot,St=this.shader,_t=mt._tickBounds,Mt=mt.dataBox,Et=mt.screenBox,kt=mt.viewBox;St.bind();for(var wt=0;wt<2;++wt){var ct=_t[wt],It=_t[wt+2],At=It-ct,Ot=.5*(Mt[wt+2]+Mt[wt]),Pt=Mt[wt+2]-Mt[wt],zt=kt[wt],Dt=kt[wt+2],Nt=Dt-zt,$t=Et[wt],Ut=Et[wt+2],Ht=Ut-$t;ft[wt]=2*At/Pt*Nt/Ht,bt[wt]=2*(ct-Ot)/Pt*Nt/Ht}at[1]=2*mt.pixelRatio/(Et[3]-Et[1]),at[0]=at[1]*(Et[3]-Et[1])/(Et[2]-Et[0]),St.uniforms.dataScale=ft,St.uniforms.dataShift=bt,St.uniforms.textScale=at,this.vbo.bind(),St.attributes.textCoordinate.pointer()}}(),vt.update=function(bt){var ft=[],at=bt.ticks,mt=bt.bounds,St,_t,Mt,Et,kt;for(kt=0;kt<2;++kt){var wt=[Math.floor(ft.length/3)],ct=[-1/0],It=at[kt];for(St=0;St=0))){var Nt=mt[Dt]-_t[Dt]*(mt[Dt+2]-mt[Dt])/(_t[Dt+2]-_t[Dt]);Dt===0?kt.drawLine(Nt,mt[1],Nt,mt[3],zt[Dt],Pt[Dt]):kt.drawLine(mt[0],Nt,mt[2],Nt,zt[Dt],Pt[Dt])}}for(var Dt=0;Dt=0;--at)this.objects[at].dispose();this.objects.length=0;for(var at=this.overlays.length-1;at>=0;--at)this.overlays[at].dispose();this.overlays.length=0,this.gl=null},vt.addObject=function(at){this.objects.indexOf(at)<0&&(this.objects.push(at),this.setDirty())},vt.removeObject=function(at){for(var mt=this.objects,St=0;StMath.abs(ct))at.rotate(Ot,0,0,-wt*It*Math.PI*Et.rotateSpeed/window.innerWidth);else if(!Et._ortho){var Pt=-Et.zoomSpeed*At*ct/window.innerHeight*(Ot-at.lastT())/20;at.pan(Ot,0,0,St*(Math.exp(Pt)-1))}}},!0)},Et.enableMouseListeners(),Et}},799:function(ut,ht,j){var _=j(3236),rt=j(9405),tt=_([`precision mediump float; #define GLSLIFY 1 attribute vec2 position; varying vec2 uv; @@ -1469,7 +1469,7 @@ varying vec2 uv; void main() { vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0)); gl_FragColor = min(vec4(1,1,1,1), accum); -}`]);ut.exports=function(ot){return rt(ot,tt,st,null,[{name:"position",type:"vec2"}])}},4100:function(ut,ht,j){var _=j(4437),rt=j(3837),tt=j(5445),st=j(4449),ot=j(3589),nt=j(2260),vt=j(7169),dt=j(351),bt=j(4772),ft=j(4040),at=j(799),yt=j(9216)({tablet:!0,featureDetect:!0});ut.exports={createScene:kt,createCamera:_};function St(){this.mouse=[-1,-1],this.screen=null,this.distance=1/0,this.index=null,this.dataCoordinate=null,this.dataPosition=null,this.object=null,this.data=null}function _t(ct,It){var At=null;try{At=ct.getContext("webgl",It),At||(At=ct.getContext("experimental-webgl",It))}catch{return null}return At}function Mt(ct){var It=Math.round(Math.log(Math.abs(ct))/Math.log(10));if(It<0){var At=Math.round(Math.pow(10,-It));return Math.ceil(ct*At)/At}else if(It>0){var At=Math.round(Math.pow(10,It));return Math.ceil(ct/At)*At}return Math.ceil(ct)}function Tt(ct){return typeof ct=="boolean"?ct:!0}function kt(ct){ct=ct||{},ct.camera=ct.camera||{};var It=ct.canvas;if(!It)if(It=document.createElement("canvas"),ct.container){var At=ct.container;At.appendChild(It)}else document.body.appendChild(It);var Ot=ct.gl;if(Ot||(ct.glOptions&&(yt=!!ct.glOptions.preserveDrawingBuffer),Ot=_t(It,ct.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:yt})),!Ot)throw new Error("webgl not supported");var Pt=ct.bounds||[[-10,-10,-10],[10,10,10]],zt=new St,Dt=nt(Ot,Ot.drawingBufferWidth,Ot.drawingBufferHeight,{preferFloat:!yt}),Nt=at(Ot),$t=ct.cameraObject&&ct.cameraObject._ortho===!0||ct.camera.projection&&ct.camera.projection.type==="orthographic"||!1,Ut={eye:ct.camera.eye||[2,0,0],center:ct.camera.center||[0,0,0],up:ct.camera.up||[0,1,0],zoomMin:ct.camera.zoomMax||.1,zoomMax:ct.camera.zoomMin||100,mode:ct.camera.mode||"turntable",_ortho:$t},Ht=ct.axes||{},Vt=rt(Ot,Ht);Vt.enable=!Ht.disable;var Xt=ct.spikes||{},qt=st(Ot,Xt),er=[],lr=[],Jt=[],Yt=[],rr=!0,Zt=!0,jt=new Array(16),ar=new Array(16),sr={view:null,projection:jt,model:ar,_ortho:!1},Zt=!0,Kt=[Ot.drawingBufferWidth,Ot.drawingBufferHeight],or=ct.cameraObject||_(It,Ut),tr={gl:Ot,contextLost:!1,pixelRatio:ct.pixelRatio||1,canvas:It,selection:zt,camera:or,axes:Vt,axesPixels:null,spikes:qt,bounds:Pt,objects:er,shape:Kt,aspect:ct.aspectRatio||[1,1,1],pickRadius:ct.pickRadius||10,zNear:ct.zNear||.01,zFar:ct.zFar||1e3,fovy:ct.fovy||Math.PI/4,clearColor:ct.clearColor||[0,0,0,0],autoResize:Tt(ct.autoResize),autoBounds:Tt(ct.autoBounds),autoScale:!!ct.autoScale,autoCenter:Tt(ct.autoCenter),clipToBounds:Tt(ct.clipToBounds),snapToData:!!ct.snapToData,onselect:ct.onselect||null,onrender:ct.onrender||null,onclick:ct.onclick||null,cameraParams:sr,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(zr){this.aspect[0]=zr.x,this.aspect[1]=zr.y,this.aspect[2]=zr.z,Zt=!0},setBounds:function(zr,Br){this.bounds[0][zr]=Br.min,this.bounds[1][zr]=Br.max},setClearColor:function(zr){this.clearColor=zr},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},cr=[Ot.drawingBufferWidth/tr.pixelRatio|0,Ot.drawingBufferHeight/tr.pixelRatio|0];function hr(){if(!tr._stopped&&tr.autoResize){var zr=It.parentNode,Br=1,kr=1;zr&&zr!==document.body?(Br=zr.clientWidth,kr=zr.clientHeight):(Br=window.innerWidth,kr=window.innerHeight);var Nr=Math.ceil(Br*tr.pixelRatio)|0,Qr=Math.ceil(kr*tr.pixelRatio)|0;if(Nr!==It.width||Qr!==It.height){It.width=Nr,It.height=Qr;var sn=It.style;sn.position=sn.position||"absolute",sn.left="0px",sn.top="0px",sn.width=Br+"px",sn.height=kr+"px",rr=!0}}}tr.autoResize&&hr(),window.addEventListener("resize",hr);function br(){for(var zr=er.length,Br=Yt.length,kr=0;kr0&&Jt[Br-1]===0;)Jt.pop(),Yt.pop().dispose()}tr.update=function(zr){tr._stopped||(rr=!0,Zt=!0)},tr.add=function(zr){tr._stopped||(zr.axes=Vt,er.push(zr),lr.push(-1),rr=!0,Zt=!0,br())},tr.remove=function(zr){if(!tr._stopped){var Br=er.indexOf(zr);Br<0||(er.splice(Br,1),lr.pop(),rr=!0,Zt=!0,br())}},tr.dispose=function(){if(!tr._stopped&&(tr._stopped=!0,window.removeEventListener("resize",hr),It.removeEventListener("webglcontextlost",Tr),tr.mouseListener.enabled=!1,!tr.contextLost)){Vt.dispose(),qt.dispose();for(var zr=0;zrzt.distance)continue;for(var ln=0;ln0){var At=Math.round(Math.pow(10,It));return Math.ceil(ct/At)*At}return Math.ceil(ct)}function Et(ct){return typeof ct=="boolean"?ct:!0}function kt(ct){ct=ct||{},ct.camera=ct.camera||{};var It=ct.canvas;if(!It)if(It=document.createElement("canvas"),ct.container){var At=ct.container;At.appendChild(It)}else document.body.appendChild(It);var Ot=ct.gl;if(Ot||(ct.glOptions&&(mt=!!ct.glOptions.preserveDrawingBuffer),Ot=_t(It,ct.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:mt})),!Ot)throw new Error("webgl not supported");var Pt=ct.bounds||[[-10,-10,-10],[10,10,10]],zt=new St,Dt=nt(Ot,Ot.drawingBufferWidth,Ot.drawingBufferHeight,{preferFloat:!mt}),Nt=at(Ot),$t=ct.cameraObject&&ct.cameraObject._ortho===!0||ct.camera.projection&&ct.camera.projection.type==="orthographic"||!1,Ut={eye:ct.camera.eye||[2,0,0],center:ct.camera.center||[0,0,0],up:ct.camera.up||[0,1,0],zoomMin:ct.camera.zoomMax||.1,zoomMax:ct.camera.zoomMin||100,mode:ct.camera.mode||"turntable",_ortho:$t},Ht=ct.axes||{},Vt=rt(Ot,Ht);Vt.enable=!Ht.disable;var Xt=ct.spikes||{},qt=st(Ot,Xt),er=[],lr=[],Jt=[],Yt=[],rr=!0,Zt=!0,jt=new Array(16),ar=new Array(16),sr={view:null,projection:jt,model:ar,_ortho:!1},Zt=!0,Kt=[Ot.drawingBufferWidth,Ot.drawingBufferHeight],or=ct.cameraObject||_(It,Ut),tr={gl:Ot,contextLost:!1,pixelRatio:ct.pixelRatio||1,canvas:It,selection:zt,camera:or,axes:Vt,axesPixels:null,spikes:qt,bounds:Pt,objects:er,shape:Kt,aspect:ct.aspectRatio||[1,1,1],pickRadius:ct.pickRadius||10,zNear:ct.zNear||.01,zFar:ct.zFar||1e3,fovy:ct.fovy||Math.PI/4,clearColor:ct.clearColor||[0,0,0,0],autoResize:Et(ct.autoResize),autoBounds:Et(ct.autoBounds),autoScale:!!ct.autoScale,autoCenter:Et(ct.autoCenter),clipToBounds:Et(ct.clipToBounds),snapToData:!!ct.snapToData,onselect:ct.onselect||null,onrender:ct.onrender||null,onclick:ct.onclick||null,cameraParams:sr,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(zr){this.aspect[0]=zr.x,this.aspect[1]=zr.y,this.aspect[2]=zr.z,Zt=!0},setBounds:function(zr,Or){this.bounds[0][zr]=Or.min,this.bounds[1][zr]=Or.max},setClearColor:function(zr){this.clearColor=zr},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},cr=[Ot.drawingBufferWidth/tr.pixelRatio|0,Ot.drawingBufferHeight/tr.pixelRatio|0];function mr(){if(!tr._stopped&&tr.autoResize){var zr=It.parentNode,Or=1,kr=1;zr&&zr!==document.body?(Or=zr.clientWidth,kr=zr.clientHeight):(Or=window.innerWidth,kr=window.innerHeight);var Nr=Math.ceil(Or*tr.pixelRatio)|0,Qr=Math.ceil(kr*tr.pixelRatio)|0;if(Nr!==It.width||Qr!==It.height){It.width=Nr,It.height=Qr;var sn=It.style;sn.position=sn.position||"absolute",sn.left="0px",sn.top="0px",sn.width=Or+"px",sn.height=kr+"px",rr=!0}}}tr.autoResize&&mr(),window.addEventListener("resize",mr);function Ar(){for(var zr=er.length,Or=Yt.length,kr=0;kr0&&Jt[Or-1]===0;)Jt.pop(),Yt.pop().dispose()}tr.update=function(zr){tr._stopped||(rr=!0,Zt=!0)},tr.add=function(zr){tr._stopped||(zr.axes=Vt,er.push(zr),lr.push(-1),rr=!0,Zt=!0,Ar())},tr.remove=function(zr){if(!tr._stopped){var Or=er.indexOf(zr);Or<0||(er.splice(Or,1),lr.pop(),rr=!0,Zt=!0,Ar())}},tr.dispose=function(){if(!tr._stopped&&(tr._stopped=!0,window.removeEventListener("resize",mr),It.removeEventListener("webglcontextlost",br),tr.mouseListener.enabled=!1,!tr.contextLost)){Vt.dispose(),qt.dispose();for(var zr=0;zrzt.distance)continue;for(var ln=0;ln>>1,St=bt.positions instanceof Float32Array,_t=bt.idToIndex instanceof Int32Array&&bt.idToIndex.length>=yt,Mt=bt.positions,Tt=St?Mt:tt.mallocFloat32(Mt.length),kt=_t?bt.idToIndex:tt.mallocInt32(yt);if(St||Tt.set(Mt),!_t)for(Tt.set(Mt),ft=0;ft>>1,St;for(St=0;St=ft[0]&&_t<=ft[2]&&Mt>=ft[1]&&Mt<=ft[3]&&at++}return at}nt.unifiedDraw=function(){var bt=[1,0,0,0,1,0,0,0,1],ft=[0,0,0,0];return function(at){var yt=at!==void 0,St=yt?this.pickShader:this.shader,_t=this.plot.gl,Mt=this.plot.dataBox;if(this.pointCount===0)return at;var Tt=Mt[2]-Mt[0],kt=Mt[3]-Mt[1],wt=vt(this.points,Mt),ct=this.plot.pickPixelRatio*Math.max(Math.min(this.sizeMinCap,this.sizeMin),Math.min(this.sizeMax,this.sizeMax/Math.pow(wt,.33333)));bt[0]=2/Tt,bt[4]=2/kt,bt[6]=-2*Mt[0]/Tt-1,bt[7]=-2*Mt[1]/kt-1,this.offsetBuffer.bind(),St.bind(),St.attributes.position.pointer(),St.uniforms.matrix=bt,St.uniforms.color=this.color,St.uniforms.borderColor=this.borderColor,St.uniforms.pointCloud=ct<5,St.uniforms.pointSize=ct,St.uniforms.centerFraction=Math.min(1,Math.max(0,Math.sqrt(1-this.areaRatio))),yt&&(ft[0]=at&255,ft[1]=at>>8&255,ft[2]=at>>16&255,ft[3]=at>>24&255,this.pickBuffer.bind(),St.attributes.pickId.pointer(_t.UNSIGNED_BYTE),St.uniforms.pickOffset=ft,this.pickOffset=at);var It=_t.getParameter(_t.BLEND),At=_t.getParameter(_t.DITHER);return It&&!this.blend&&_t.disable(_t.BLEND),At&&_t.disable(_t.DITHER),_t.drawArrays(_t.POINTS,0,this.pointCount),It&&!this.blend&&_t.enable(_t.BLEND),At&&_t.enable(_t.DITHER),at+this.pointCount}}(),nt.draw=nt.unifiedDraw,nt.drawPick=nt.unifiedDraw,nt.pick=function(bt,ft,at){var yt=this.pickOffset,St=this.pointCount;if(at=yt+St)return null;var _t=at-yt,Mt=this.points;return{object:this,pointId:_t,dataCoord:[Mt[2*_t],Mt[2*_t+1]]}};function dt(bt,ft){var at=bt.gl,yt=rt(at),St=rt(at),_t=_(at,st.pointVertex,st.pointFragment),Mt=_(at,st.pickVertex,st.pickFragment),Tt=new ot(bt,yt,St,_t,Mt);return Tt.update(ft),bt.addObject(Tt),Tt}},783:function(ut){ut.exports=ht;function ht(j,_,rt,tt){var st=_[0],ot=_[1],nt=_[2],vt=_[3],dt=rt[0],bt=rt[1],ft=rt[2],at=rt[3],yt,St,_t,Mt,Tt;return St=st*dt+ot*bt+nt*ft+vt*at,St<0&&(St=-St,dt=-dt,bt=-bt,ft=-ft,at=-at),1-St>1e-6?(yt=Math.acos(St),_t=Math.sin(yt),Mt=Math.sin((1-tt)*yt)/_t,Tt=Math.sin(tt*yt)/_t):(Mt=1-tt,Tt=tt),j[0]=Mt*st+Tt*dt,j[1]=Mt*ot+Tt*bt,j[2]=Mt*nt+Tt*ft,j[3]=Mt*vt+Tt*at,j}},5964:function(ut){ut.exports=function(ht){return!ht&&ht!==0?"":ht.toString()}},9366:function(ut,ht,j){var _=j(4359);ut.exports=tt;var rt={};function tt(st,ot,nt){var vt=[ot.style,ot.weight,ot.variant,ot.family].join("_"),dt=rt[vt];if(dt||(dt=rt[vt]={}),st in dt)return dt[st];var bt={textAlign:"center",textBaseline:"middle",lineHeight:1,font:ot.family,fontStyle:ot.style,fontWeight:ot.weight,fontVariant:ot.variant,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}};bt.triangles=!0;var ft=_(st,bt);bt.triangles=!1;var at=_(st,bt),yt,St;if(nt&&nt!==1){for(yt=0;yt>>1,St=bt.positions instanceof Float32Array,_t=bt.idToIndex instanceof Int32Array&&bt.idToIndex.length>=mt,Mt=bt.positions,Et=St?Mt:tt.mallocFloat32(Mt.length),kt=_t?bt.idToIndex:tt.mallocInt32(mt);if(St||Et.set(Mt),!_t)for(Et.set(Mt),ft=0;ft>>1,St;for(St=0;St=ft[0]&&_t<=ft[2]&&Mt>=ft[1]&&Mt<=ft[3]&&at++}return at}nt.unifiedDraw=function(){var bt=[1,0,0,0,1,0,0,0,1],ft=[0,0,0,0];return function(at){var mt=at!==void 0,St=mt?this.pickShader:this.shader,_t=this.plot.gl,Mt=this.plot.dataBox;if(this.pointCount===0)return at;var Et=Mt[2]-Mt[0],kt=Mt[3]-Mt[1],wt=vt(this.points,Mt),ct=this.plot.pickPixelRatio*Math.max(Math.min(this.sizeMinCap,this.sizeMin),Math.min(this.sizeMax,this.sizeMax/Math.pow(wt,.33333)));bt[0]=2/Et,bt[4]=2/kt,bt[6]=-2*Mt[0]/Et-1,bt[7]=-2*Mt[1]/kt-1,this.offsetBuffer.bind(),St.bind(),St.attributes.position.pointer(),St.uniforms.matrix=bt,St.uniforms.color=this.color,St.uniforms.borderColor=this.borderColor,St.uniforms.pointCloud=ct<5,St.uniforms.pointSize=ct,St.uniforms.centerFraction=Math.min(1,Math.max(0,Math.sqrt(1-this.areaRatio))),mt&&(ft[0]=at&255,ft[1]=at>>8&255,ft[2]=at>>16&255,ft[3]=at>>24&255,this.pickBuffer.bind(),St.attributes.pickId.pointer(_t.UNSIGNED_BYTE),St.uniforms.pickOffset=ft,this.pickOffset=at);var It=_t.getParameter(_t.BLEND),At=_t.getParameter(_t.DITHER);return It&&!this.blend&&_t.disable(_t.BLEND),At&&_t.disable(_t.DITHER),_t.drawArrays(_t.POINTS,0,this.pointCount),It&&!this.blend&&_t.enable(_t.BLEND),At&&_t.enable(_t.DITHER),at+this.pointCount}}(),nt.draw=nt.unifiedDraw,nt.drawPick=nt.unifiedDraw,nt.pick=function(bt,ft,at){var mt=this.pickOffset,St=this.pointCount;if(at=mt+St)return null;var _t=at-mt,Mt=this.points;return{object:this,pointId:_t,dataCoord:[Mt[2*_t],Mt[2*_t+1]]}};function dt(bt,ft){var at=bt.gl,mt=rt(at),St=rt(at),_t=_(at,st.pointVertex,st.pointFragment),Mt=_(at,st.pickVertex,st.pickFragment),Et=new ot(bt,mt,St,_t,Mt);return Et.update(ft),bt.addObject(Et),Et}},783:function(ut){ut.exports=ht;function ht(j,_,rt,tt){var st=_[0],ot=_[1],nt=_[2],vt=_[3],dt=rt[0],bt=rt[1],ft=rt[2],at=rt[3],mt,St,_t,Mt,Et;return St=st*dt+ot*bt+nt*ft+vt*at,St<0&&(St=-St,dt=-dt,bt=-bt,ft=-ft,at=-at),1-St>1e-6?(mt=Math.acos(St),_t=Math.sin(mt),Mt=Math.sin((1-tt)*mt)/_t,Et=Math.sin(tt*mt)/_t):(Mt=1-tt,Et=tt),j[0]=Mt*st+Et*dt,j[1]=Mt*ot+Et*bt,j[2]=Mt*nt+Et*ft,j[3]=Mt*vt+Et*at,j}},5964:function(ut){ut.exports=function(ht){return!ht&&ht!==0?"":ht.toString()}},9366:function(ut,ht,j){var _=j(4359);ut.exports=tt;var rt={};function tt(st,ot,nt){var vt=[ot.style,ot.weight,ot.variant,ot.family].join("_"),dt=rt[vt];if(dt||(dt=rt[vt]={}),st in dt)return dt[st];var bt={textAlign:"center",textBaseline:"middle",lineHeight:1,font:ot.family,fontStyle:ot.style,fontWeight:ot.weight,fontVariant:ot.variant,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}};bt.triangles=!0;var ft=_(st,bt);bt.triangles=!1;var at=_(st,bt),mt,St;if(nt&&nt!==1){for(mt=0;mt1?1:Jt}function _t(Jt,Yt,rr,jt,ar,sr,Zt,Kt,or,tr,cr,hr){this.gl=Jt,this.pixelRatio=1,this.shader=Yt,this.orthoShader=rr,this.projectShader=jt,this.pointBuffer=ar,this.colorBuffer=sr,this.glyphBuffer=Zt,this.idBuffer=Kt,this.vao=or,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[.6666666666666666,.6666666666666666,.6666666666666666],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=tr,this.pickOrthoShader=cr,this.pickProjectShader=hr,this.points=[],this._selectResult=new yt(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}var Mt=_t.prototype;Mt.pickSlots=1,Mt.setPickBase=function(Jt){this.pickId=Jt},Mt.isTransparent=function(){if(this.hasAlpha)return!0;for(var Jt=0;Jt<3;++Jt)if(this.axesProject[Jt]&&this.projectHasAlpha)return!0;return!1},Mt.isOpaque=function(){if(!this.hasAlpha)return!0;for(var Jt=0;Jt<3;++Jt)if(this.axesProject[Jt]&&!this.projectHasAlpha)return!0;return!1};var Tt=[0,0],kt=[0,0,0],wt=[0,0,0],ct=[0,0,0,1],It=[0,0,0,1],At=bt.slice(),Ot=[0,0,0],Pt=[[0,0,0],[0,0,0]];function zt(Jt){return Jt[0]=Jt[1]=Jt[2]=0,Jt}function Dt(Jt,Yt){return Jt[0]=Yt[0],Jt[1]=Yt[1],Jt[2]=Yt[2],Jt[3]=1,Jt}function Nt(Jt,Yt,rr,jt){return Jt[0]=Yt[0],Jt[1]=Yt[1],Jt[2]=Yt[2],Jt[rr]=jt,Jt}function $t(Jt){for(var Yt=Pt,rr=0;rr<2;++rr)for(var jt=0;jt<3;++jt)Yt[rr][jt]=Math.max(Math.min(Jt[rr][jt],1e8),-1e8);return Yt}function Ut(Jt,Yt,rr,jt){var ar=Yt.axesProject,sr=Yt.gl,Zt=Jt.uniforms,Kt=rr.model||bt,or=rr.view||bt,tr=rr.projection||bt,cr=Yt.axesBounds,hr=$t(Yt.clipBounds),br;Yt.axes&&Yt.axes.lastCubeProps?br=Yt.axes.lastCubeProps.axis:br=[1,1,1],Tt[0]=2/sr.drawingBufferWidth,Tt[1]=2/sr.drawingBufferHeight,Jt.bind(),Zt.view=or,Zt.projection=tr,Zt.screenSize=Tt,Zt.highlightId=Yt.highlightId,Zt.highlightScale=Yt.highlightScale,Zt.clipBounds=hr,Zt.pickGroup=Yt.pickId/255,Zt.pixelRatio=jt;for(var Tr=0;Tr<3;++Tr)if(ar[Tr]){Zt.scale=Yt.projectScale[Tr],Zt.opacity=Yt.projectOpacity[Tr];for(var Ir=At,Ar=0;Ar<16;++Ar)Ir[Ar]=0;for(var Ar=0;Ar<4;++Ar)Ir[5*Ar]=1;Ir[5*Tr]=0,br[Tr]<0?Ir[12+Tr]=cr[0][Tr]:Ir[12+Tr]=cr[1][Tr],ot(Ir,Kt,Ir),Zt.model=Ir;var _r=(Tr+1)%3,Er=(Tr+2)%3,Rr=zt(kt),zr=zt(wt);Rr[_r]=1,zr[Er]=1;var Br=at(tr,or,Kt,Dt(ct,Rr)),kr=at(tr,or,Kt,Dt(It,zr));if(Math.abs(Br[1])>Math.abs(kr[1])){var Nr=Br;Br=kr,kr=Nr,Nr=Rr,Rr=zr,zr=Nr;var Qr=_r;_r=Er,Er=Qr}Br[0]<0&&(Rr[_r]=-1),kr[1]>0&&(zr[Er]=-1);for(var sn=0,un=0,Ar=0;Ar<4;++Ar)sn+=Math.pow(Kt[4*_r+Ar],2),un+=Math.pow(Kt[4*Er+Ar],2);Rr[_r]/=Math.sqrt(sn),zr[Er]/=Math.sqrt(un),Zt.axes[0]=Rr,Zt.axes[1]=zr,Zt.fragClipBounds[0]=Nt(Ot,hr[0],Tr,-1e8),Zt.fragClipBounds[1]=Nt(Ot,hr[1],Tr,1e8),Yt.vao.bind(),Yt.vao.draw(sr.TRIANGLES,Yt.vertexCount),Yt.lineWidth>0&&(sr.lineWidth(Yt.lineWidth*jt),Yt.vao.draw(sr.LINES,Yt.lineVertexCount,Yt.vertexCount)),Yt.vao.unbind()}}var Ht=[-1e8,-1e8,-1e8],Vt=[1e8,1e8,1e8],Xt=[Ht,Vt];function qt(Jt,Yt,rr,jt,ar,sr,Zt){var Kt=rr.gl;if((sr===rr.projectHasAlpha||Zt)&&Ut(Yt,rr,jt,ar),sr===rr.hasAlpha||Zt){Jt.bind();var or=Jt.uniforms;or.model=jt.model||bt,or.view=jt.view||bt,or.projection=jt.projection||bt,Tt[0]=2/Kt.drawingBufferWidth,Tt[1]=2/Kt.drawingBufferHeight,or.screenSize=Tt,or.highlightId=rr.highlightId,or.highlightScale=rr.highlightScale,or.fragClipBounds=Xt,or.clipBounds=rr.axes.bounds,or.opacity=rr.opacity,or.pickGroup=rr.pickId/255,or.pixelRatio=ar,rr.vao.bind(),rr.vao.draw(Kt.TRIANGLES,rr.vertexCount),rr.lineWidth>0&&(Kt.lineWidth(rr.lineWidth*ar),rr.vao.draw(Kt.LINES,rr.lineVertexCount,rr.vertexCount)),rr.vao.unbind()}}Mt.draw=function(Jt){var Yt=this.useOrtho?this.orthoShader:this.shader;qt(Yt,this.projectShader,this,Jt,this.pixelRatio,!1,!1)},Mt.drawTransparent=function(Jt){var Yt=this.useOrtho?this.orthoShader:this.shader;qt(Yt,this.projectShader,this,Jt,this.pixelRatio,!0,!1)},Mt.drawPick=function(Jt){var Yt=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;qt(Yt,this.pickProjectShader,this,Jt,1,!0,!0)},Mt.pick=function(Jt){if(!Jt||Jt.id!==this.pickId)return null;var Yt=Jt.value[2]+(Jt.value[1]<<8)+(Jt.value[0]<<16);if(Yt>=this.pointCount||Yt<0)return null;var rr=this.points[Yt],jt=this._selectResult;jt.index=Yt;for(var ar=0;ar<3;++ar)jt.position[ar]=jt.dataCoordinate[ar]=rr[ar];return jt},Mt.highlight=function(Jt){if(!Jt)this.highlightId=[1,1,1,1];else{var Yt=Jt.index,rr=Yt&255,jt=Yt>>8&255,ar=Yt>>16&255;this.highlightId=[rr/255,jt/255,ar/255,0]}};function er(Jt,Yt,rr,jt){var ar;Array.isArray(Jt)?Yt0){var En=0,Jr=Er,Or=[0,0,0,1],Ur=[0,0,0,1],jr=Array.isArray(br)&&Array.isArray(br[0]),Gr=Array.isArray(Ar)&&Array.isArray(Ar[0]);e:for(var jt=0;jt0?1-un[0][0]:Pr<0?1+un[1][0]:1,Vr*=Vr>0?1-un[0][1]:Vr<0?1+un[1][1]:1;for(var en=[Pr,Vr],bn=Qr.cells||[],Un=Qr.positions||[],kr=0;kr1?1:Jt}function _t(Jt,Yt,rr,jt,ar,sr,Zt,Kt,or,tr,cr,mr){this.gl=Jt,this.pixelRatio=1,this.shader=Yt,this.orthoShader=rr,this.projectShader=jt,this.pointBuffer=ar,this.colorBuffer=sr,this.glyphBuffer=Zt,this.idBuffer=Kt,this.vao=or,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[.6666666666666666,.6666666666666666,.6666666666666666],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=tr,this.pickOrthoShader=cr,this.pickProjectShader=mr,this.points=[],this._selectResult=new mt(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}var Mt=_t.prototype;Mt.pickSlots=1,Mt.setPickBase=function(Jt){this.pickId=Jt},Mt.isTransparent=function(){if(this.hasAlpha)return!0;for(var Jt=0;Jt<3;++Jt)if(this.axesProject[Jt]&&this.projectHasAlpha)return!0;return!1},Mt.isOpaque=function(){if(!this.hasAlpha)return!0;for(var Jt=0;Jt<3;++Jt)if(this.axesProject[Jt]&&!this.projectHasAlpha)return!0;return!1};var Et=[0,0],kt=[0,0,0],wt=[0,0,0],ct=[0,0,0,1],It=[0,0,0,1],At=bt.slice(),Ot=[0,0,0],Pt=[[0,0,0],[0,0,0]];function zt(Jt){return Jt[0]=Jt[1]=Jt[2]=0,Jt}function Dt(Jt,Yt){return Jt[0]=Yt[0],Jt[1]=Yt[1],Jt[2]=Yt[2],Jt[3]=1,Jt}function Nt(Jt,Yt,rr,jt){return Jt[0]=Yt[0],Jt[1]=Yt[1],Jt[2]=Yt[2],Jt[rr]=jt,Jt}function $t(Jt){for(var Yt=Pt,rr=0;rr<2;++rr)for(var jt=0;jt<3;++jt)Yt[rr][jt]=Math.max(Math.min(Jt[rr][jt],1e8),-1e8);return Yt}function Ut(Jt,Yt,rr,jt){var ar=Yt.axesProject,sr=Yt.gl,Zt=Jt.uniforms,Kt=rr.model||bt,or=rr.view||bt,tr=rr.projection||bt,cr=Yt.axesBounds,mr=$t(Yt.clipBounds),Ar;Yt.axes&&Yt.axes.lastCubeProps?Ar=Yt.axes.lastCubeProps.axis:Ar=[1,1,1],Et[0]=2/sr.drawingBufferWidth,Et[1]=2/sr.drawingBufferHeight,Jt.bind(),Zt.view=or,Zt.projection=tr,Zt.screenSize=Et,Zt.highlightId=Yt.highlightId,Zt.highlightScale=Yt.highlightScale,Zt.clipBounds=mr,Zt.pickGroup=Yt.pickId/255,Zt.pixelRatio=jt;for(var br=0;br<3;++br)if(ar[br]){Zt.scale=Yt.projectScale[br],Zt.opacity=Yt.projectOpacity[br];for(var Ir=At,Tr=0;Tr<16;++Tr)Ir[Tr]=0;for(var Tr=0;Tr<4;++Tr)Ir[5*Tr]=1;Ir[5*br]=0,Ar[br]<0?Ir[12+br]=cr[0][br]:Ir[12+br]=cr[1][br],ot(Ir,Kt,Ir),Zt.model=Ir;var _r=(br+1)%3,Er=(br+2)%3,Rr=zt(kt),zr=zt(wt);Rr[_r]=1,zr[Er]=1;var Or=at(tr,or,Kt,Dt(ct,Rr)),kr=at(tr,or,Kt,Dt(It,zr));if(Math.abs(Or[1])>Math.abs(kr[1])){var Nr=Or;Or=kr,kr=Nr,Nr=Rr,Rr=zr,zr=Nr;var Qr=_r;_r=Er,Er=Qr}Or[0]<0&&(Rr[_r]=-1),kr[1]>0&&(zr[Er]=-1);for(var sn=0,un=0,Tr=0;Tr<4;++Tr)sn+=Math.pow(Kt[4*_r+Tr],2),un+=Math.pow(Kt[4*Er+Tr],2);Rr[_r]/=Math.sqrt(sn),zr[Er]/=Math.sqrt(un),Zt.axes[0]=Rr,Zt.axes[1]=zr,Zt.fragClipBounds[0]=Nt(Ot,mr[0],br,-1e8),Zt.fragClipBounds[1]=Nt(Ot,mr[1],br,1e8),Yt.vao.bind(),Yt.vao.draw(sr.TRIANGLES,Yt.vertexCount),Yt.lineWidth>0&&(sr.lineWidth(Yt.lineWidth*jt),Yt.vao.draw(sr.LINES,Yt.lineVertexCount,Yt.vertexCount)),Yt.vao.unbind()}}var Ht=[-1e8,-1e8,-1e8],Vt=[1e8,1e8,1e8],Xt=[Ht,Vt];function qt(Jt,Yt,rr,jt,ar,sr,Zt){var Kt=rr.gl;if((sr===rr.projectHasAlpha||Zt)&&Ut(Yt,rr,jt,ar),sr===rr.hasAlpha||Zt){Jt.bind();var or=Jt.uniforms;or.model=jt.model||bt,or.view=jt.view||bt,or.projection=jt.projection||bt,Et[0]=2/Kt.drawingBufferWidth,Et[1]=2/Kt.drawingBufferHeight,or.screenSize=Et,or.highlightId=rr.highlightId,or.highlightScale=rr.highlightScale,or.fragClipBounds=Xt,or.clipBounds=rr.axes.bounds,or.opacity=rr.opacity,or.pickGroup=rr.pickId/255,or.pixelRatio=ar,rr.vao.bind(),rr.vao.draw(Kt.TRIANGLES,rr.vertexCount),rr.lineWidth>0&&(Kt.lineWidth(rr.lineWidth*ar),rr.vao.draw(Kt.LINES,rr.lineVertexCount,rr.vertexCount)),rr.vao.unbind()}}Mt.draw=function(Jt){var Yt=this.useOrtho?this.orthoShader:this.shader;qt(Yt,this.projectShader,this,Jt,this.pixelRatio,!1,!1)},Mt.drawTransparent=function(Jt){var Yt=this.useOrtho?this.orthoShader:this.shader;qt(Yt,this.projectShader,this,Jt,this.pixelRatio,!0,!1)},Mt.drawPick=function(Jt){var Yt=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;qt(Yt,this.pickProjectShader,this,Jt,1,!0,!0)},Mt.pick=function(Jt){if(!Jt||Jt.id!==this.pickId)return null;var Yt=Jt.value[2]+(Jt.value[1]<<8)+(Jt.value[0]<<16);if(Yt>=this.pointCount||Yt<0)return null;var rr=this.points[Yt],jt=this._selectResult;jt.index=Yt;for(var ar=0;ar<3;++ar)jt.position[ar]=jt.dataCoordinate[ar]=rr[ar];return jt},Mt.highlight=function(Jt){if(!Jt)this.highlightId=[1,1,1,1];else{var Yt=Jt.index,rr=Yt&255,jt=Yt>>8&255,ar=Yt>>16&255;this.highlightId=[rr/255,jt/255,ar/255,0]}};function er(Jt,Yt,rr,jt){var ar;Array.isArray(Jt)?Yt0){var Tn=0,Zr=Er,Fr=[0,0,0,1],Ur=[0,0,0,1],Wr=Array.isArray(Ar)&&Array.isArray(Ar[0]),Gr=Array.isArray(Tr)&&Array.isArray(Tr[0]);e:for(var jt=0;jt0?1-un[0][0]:Pr<0?1+un[1][0]:1,Vr*=Vr>0?1-un[0][1]:Vr<0?1+un[1][1]:1;for(var qr=[Pr,Vr],bn=Qr.cells||[],Un=Qr.positions||[],kr=0;kr0){var zt=bt*kt;St.drawBox(wt-zt,ct-zt,It+zt,ct+zt,yt),St.drawBox(wt-zt,At-zt,It+zt,At+zt,yt),St.drawBox(wt-zt,ct-zt,wt+zt,At+zt,yt),St.drawBox(It-zt,ct-zt,It+zt,At+zt,yt)}}}},ot.update=function(vt){vt=vt||{},this.innerFill=!!vt.innerFill,this.outerFill=!!vt.outerFill,this.innerColor=(vt.innerColor||[0,0,0,.5]).slice(),this.outerColor=(vt.outerColor||[0,0,0,.5]).slice(),this.borderColor=(vt.borderColor||[0,0,0,1]).slice(),this.borderWidth=vt.borderWidth||0,this.selectBox=(vt.selectBox||this.selectBox).slice()},ot.dispose=function(){this.boxBuffer.dispose(),this.boxShader.dispose(),this.plot.removeOverlay(this)};function nt(vt,dt){var bt=vt.gl,ft=rt(bt,[0,0,0,1,1,0,1,1]),at=_(bt,tt.boxVertex,tt.boxFragment),yt=new st(vt,ft,at);return yt.update(dt),vt.addOverlay(yt),yt}},3589:function(ut,ht,j){ut.exports=bt;var _=j(2260),rt=j(1888),tt=j(9618),st=j(8828).nextPow2,ot=function(ft,at,yt){for(var St=1e8,_t=-1,Mt=-1,Tt=ft.shape[0],kt=ft.shape[1],wt=0;wtthis.buffer.length){rt.free(this.buffer);for(var St=this.buffer=rt.mallocUint8(st(yt*at*4)),_t=0;_tSt)for(at=St;atyt)for(at=yt;at=0){for(var $t=Nt.type.charAt(Nt.type.length-1)|0,Ut=new Array($t),Ht=0;Ht<$t;++Ht)Ut[Ht]=zt.length,Pt.push(Nt.name+"["+Ht+"]"),typeof Nt.location=="number"?zt.push(Nt.location+Ht):Array.isArray(Nt.location)&&Nt.location.length===$t&&typeof Nt.location[Ht]=="number"?zt.push(Nt.location[Ht]|0):zt.push(-1);Ot.push({name:Nt.name,type:Nt.type,locations:Ut})}else Ot.push({name:Nt.name,type:Nt.type,locations:[zt.length]}),Pt.push(Nt.name),typeof Nt.location=="number"?zt.push(Nt.location|0):zt.push(-1)}var Vt=0;for(Dt=0;Dt=0;)Vt+=1;zt[Dt]=Vt}var Xt=new Array(St.length);function qt(){Tt.program=st.program(kt,Tt._vref,Tt._fref,Pt,zt);for(var er=0;er=0){var ct=kt.charCodeAt(kt.length-1)-48;if(ct<2||ct>4)throw new _("","Invalid data type for attribute "+Tt+": "+kt);ot(dt,bt,wt[0],at,ct,yt,Tt)}else if(kt.indexOf("mat")>=0){var ct=kt.charCodeAt(kt.length-1)-48;if(ct<2||ct>4)throw new _("","Invalid data type for attribute "+Tt+": "+kt);nt(dt,bt,wt,at,ct,yt,Tt)}else throw new _("","Unknown data type for attribute "+Tt+": "+kt);break}}return yt}},3327:function(ut,ht,j){var _=j(216),rt=j(8866);ut.exports=ot;function tt(nt){return function(){return nt}}function st(nt,vt){for(var dt=new Array(nt),bt=0;bt4)throw new rt("","Invalid data type");switch(Vt.charAt(0)){case"b":case"i":nt["uniform"+Xt+"iv"](bt[zt],Dt);break;case"v":nt["uniform"+Xt+"fv"](bt[zt],Dt);break;default:throw new rt("","Unrecognized data type for vector "+name+": "+Vt)}}else if(Vt.indexOf("mat")===0&&Vt.length===4){if(Xt=Vt.charCodeAt(Vt.length-1)-48,Xt<2||Xt>4)throw new rt("","Invalid uniform dimension type for matrix "+name+": "+Vt);nt["uniformMatrix"+Xt+"fv"](bt[zt],!1,Dt);break}else throw new rt("","Unknown uniform data type for "+name+": "+Vt)}}}}}function yt(kt,wt){if(typeof wt!="object")return[[kt,wt]];var ct=[];for(var It in wt){var At=wt[It],Ot=kt;parseInt(It)+""===It?Ot+="["+It+"]":Ot+="."+It,typeof At=="object"?ct.push.apply(ct,yt(Ot,At)):ct.push([Ot,At])}return ct}function St(kt){switch(kt){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":return 0;case"float":return 0;default:var wt=kt.indexOf("vec");if(0<=wt&&wt<=1&&kt.length===4+wt){var ct=kt.charCodeAt(kt.length-1)-48;if(ct<2||ct>4)throw new rt("","Invalid data type");return kt.charAt(0)==="b"?st(ct,!1):st(ct,0)}else if(kt.indexOf("mat")===0&&kt.length===4){var ct=kt.charCodeAt(kt.length-1)-48;if(ct<2||ct>4)throw new rt("","Invalid uniform dimension type for matrix "+name+": "+kt);return st(ct*ct,0)}else throw new rt("","Unknown uniform data type for "+name+": "+kt)}}function _t(kt,wt,ct){if(typeof ct=="object"){var It=Mt(ct);Object.defineProperty(kt,wt,{get:tt(It),set:at(ct),enumerable:!0,configurable:!1})}else bt[ct]?Object.defineProperty(kt,wt,{get:ft(ct),set:at(ct),enumerable:!0,configurable:!1}):kt[wt]=St(dt[ct].type)}function Mt(kt){var wt;if(Array.isArray(kt)){wt=new Array(kt.length);for(var ct=0;ct1){dt[0]in nt||(nt[dt[0]]=[]),nt=nt[dt[0]];for(var bt=1;bt1)for(var yt=0;yt"u"?j(606):WeakMap,st=new tt,ot=0;function nt(_t,Mt,Tt,kt,wt,ct,It){this.id=_t,this.src=Mt,this.type=Tt,this.shader=kt,this.count=ct,this.programs=[],this.cache=It}nt.prototype.dispose=function(){if(--this.count===0){for(var _t=this.cache,Mt=_t.gl,Tt=this.programs,kt=0,wt=Tt.length;kt0){var zt=bt*kt;St.drawBox(wt-zt,ct-zt,It+zt,ct+zt,mt),St.drawBox(wt-zt,At-zt,It+zt,At+zt,mt),St.drawBox(wt-zt,ct-zt,wt+zt,At+zt,mt),St.drawBox(It-zt,ct-zt,It+zt,At+zt,mt)}}}},ot.update=function(vt){vt=vt||{},this.innerFill=!!vt.innerFill,this.outerFill=!!vt.outerFill,this.innerColor=(vt.innerColor||[0,0,0,.5]).slice(),this.outerColor=(vt.outerColor||[0,0,0,.5]).slice(),this.borderColor=(vt.borderColor||[0,0,0,1]).slice(),this.borderWidth=vt.borderWidth||0,this.selectBox=(vt.selectBox||this.selectBox).slice()},ot.dispose=function(){this.boxBuffer.dispose(),this.boxShader.dispose(),this.plot.removeOverlay(this)};function nt(vt,dt){var bt=vt.gl,ft=rt(bt,[0,0,0,1,1,0,1,1]),at=_(bt,tt.boxVertex,tt.boxFragment),mt=new st(vt,ft,at);return mt.update(dt),vt.addOverlay(mt),mt}},3589:function(ut,ht,j){ut.exports=bt;var _=j(2260),rt=j(1888),tt=j(9618),st=j(8828).nextPow2,ot=function(ft,at,mt){for(var St=1e8,_t=-1,Mt=-1,Et=ft.shape[0],kt=ft.shape[1],wt=0;wtthis.buffer.length){rt.free(this.buffer);for(var St=this.buffer=rt.mallocUint8(st(mt*at*4)),_t=0;_tSt)for(at=St;atmt)for(at=mt;at=0){for(var $t=Nt.type.charAt(Nt.type.length-1)|0,Ut=new Array($t),Ht=0;Ht<$t;++Ht)Ut[Ht]=zt.length,Pt.push(Nt.name+"["+Ht+"]"),typeof Nt.location=="number"?zt.push(Nt.location+Ht):Array.isArray(Nt.location)&&Nt.location.length===$t&&typeof Nt.location[Ht]=="number"?zt.push(Nt.location[Ht]|0):zt.push(-1);Ot.push({name:Nt.name,type:Nt.type,locations:Ut})}else Ot.push({name:Nt.name,type:Nt.type,locations:[zt.length]}),Pt.push(Nt.name),typeof Nt.location=="number"?zt.push(Nt.location|0):zt.push(-1)}var Vt=0;for(Dt=0;Dt=0;)Vt+=1;zt[Dt]=Vt}var Xt=new Array(St.length);function qt(){Et.program=st.program(kt,Et._vref,Et._fref,Pt,zt);for(var er=0;er=0){var ct=kt.charCodeAt(kt.length-1)-48;if(ct<2||ct>4)throw new _("","Invalid data type for attribute "+Et+": "+kt);ot(dt,bt,wt[0],at,ct,mt,Et)}else if(kt.indexOf("mat")>=0){var ct=kt.charCodeAt(kt.length-1)-48;if(ct<2||ct>4)throw new _("","Invalid data type for attribute "+Et+": "+kt);nt(dt,bt,wt,at,ct,mt,Et)}else throw new _("","Unknown data type for attribute "+Et+": "+kt);break}}return mt}},3327:function(ut,ht,j){var _=j(216),rt=j(8866);ut.exports=ot;function tt(nt){return function(){return nt}}function st(nt,vt){for(var dt=new Array(nt),bt=0;bt4)throw new rt("","Invalid data type");switch(Vt.charAt(0)){case"b":case"i":nt["uniform"+Xt+"iv"](bt[zt],Dt);break;case"v":nt["uniform"+Xt+"fv"](bt[zt],Dt);break;default:throw new rt("","Unrecognized data type for vector "+name+": "+Vt)}}else if(Vt.indexOf("mat")===0&&Vt.length===4){if(Xt=Vt.charCodeAt(Vt.length-1)-48,Xt<2||Xt>4)throw new rt("","Invalid uniform dimension type for matrix "+name+": "+Vt);nt["uniformMatrix"+Xt+"fv"](bt[zt],!1,Dt);break}else throw new rt("","Unknown uniform data type for "+name+": "+Vt)}}}}}function mt(kt,wt){if(typeof wt!="object")return[[kt,wt]];var ct=[];for(var It in wt){var At=wt[It],Ot=kt;parseInt(It)+""===It?Ot+="["+It+"]":Ot+="."+It,typeof At=="object"?ct.push.apply(ct,mt(Ot,At)):ct.push([Ot,At])}return ct}function St(kt){switch(kt){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":return 0;case"float":return 0;default:var wt=kt.indexOf("vec");if(0<=wt&&wt<=1&&kt.length===4+wt){var ct=kt.charCodeAt(kt.length-1)-48;if(ct<2||ct>4)throw new rt("","Invalid data type");return kt.charAt(0)==="b"?st(ct,!1):st(ct,0)}else if(kt.indexOf("mat")===0&&kt.length===4){var ct=kt.charCodeAt(kt.length-1)-48;if(ct<2||ct>4)throw new rt("","Invalid uniform dimension type for matrix "+name+": "+kt);return st(ct*ct,0)}else throw new rt("","Unknown uniform data type for "+name+": "+kt)}}function _t(kt,wt,ct){if(typeof ct=="object"){var It=Mt(ct);Object.defineProperty(kt,wt,{get:tt(It),set:at(ct),enumerable:!0,configurable:!1})}else bt[ct]?Object.defineProperty(kt,wt,{get:ft(ct),set:at(ct),enumerable:!0,configurable:!1}):kt[wt]=St(dt[ct].type)}function Mt(kt){var wt;if(Array.isArray(kt)){wt=new Array(kt.length);for(var ct=0;ct1){dt[0]in nt||(nt[dt[0]]=[]),nt=nt[dt[0]];for(var bt=1;bt1)for(var mt=0;mt"u"?j(606):WeakMap,st=new tt,ot=0;function nt(_t,Mt,Et,kt,wt,ct,It){this.id=_t,this.src=Mt,this.type=Et,this.shader=kt,this.count=ct,this.programs=[],this.cache=It}nt.prototype.dispose=function(){if(--this.count===0){for(var _t=this.cache,Mt=_t.gl,Et=this.programs,kt=0,wt=Et.length;kt0)for(var Jt=0;Jt_t)return Tt-1}return Tt},vt=function(St,_t,Mt){return St<_t?_t:St>Mt?Mt:St},dt=function(St,_t,Mt){var Tt=_t.vectors,kt=_t.meshgrid,wt=St[0],ct=St[1],It=St[2],At=kt[0].length,Ot=kt[1].length,Pt=kt[2].length,zt=nt(kt[0],wt),Dt=nt(kt[1],ct),Nt=nt(kt[2],It),$t=zt+1,Ut=Dt+1,Ht=Nt+1;if(zt=vt(zt,0,At-1),$t=vt($t,0,At-1),Dt=vt(Dt,0,Ot-1),Ut=vt(Ut,0,Ot-1),Nt=vt(Nt,0,Pt-1),Ht=vt(Ht,0,Pt-1),zt<0||Dt<0||Nt<0||$t>At-1||Ut>Ot-1||Ht>Pt-1)return _.create();var Vt=kt[0][zt],Xt=kt[0][$t],qt=kt[1][Dt],er=kt[1][Ut],lr=kt[2][Nt],Jt=kt[2][Ht],Yt=(wt-Vt)/(Xt-Vt),rr=(ct-qt)/(er-qt),jt=(It-lr)/(Jt-lr);isFinite(Yt)||(Yt=.5),isFinite(rr)||(rr=.5),isFinite(jt)||(jt=.5);var ar,sr,Zt,Kt,or,tr;switch(Mt.reversedX&&(zt=At-1-zt,$t=At-1-$t),Mt.reversedY&&(Dt=Ot-1-Dt,Ut=Ot-1-Ut),Mt.reversedZ&&(Nt=Pt-1-Nt,Ht=Pt-1-Ht),Mt.filled){case 5:or=Nt,tr=Ht,Zt=Dt*Pt,Kt=Ut*Pt,ar=zt*Pt*Ot,sr=$t*Pt*Ot;break;case 4:or=Nt,tr=Ht,ar=zt*Pt,sr=$t*Pt,Zt=Dt*Pt*At,Kt=Ut*Pt*At;break;case 3:Zt=Dt,Kt=Ut,or=Nt*Ot,tr=Ht*Ot,ar=zt*Ot*Pt,sr=$t*Ot*Pt;break;case 2:Zt=Dt,Kt=Ut,ar=zt*Ot,sr=$t*Ot,or=Nt*Ot*At,tr=Ht*Ot*At;break;case 1:ar=zt,sr=$t,or=Nt*At,tr=Ht*At,Zt=Dt*At*Pt,Kt=Ut*At*Pt;break;default:ar=zt,sr=$t,Zt=Dt*At,Kt=Ut*At,or=Nt*At*Ot,tr=Ht*At*Ot;break}var cr=Tt[ar+Zt+or],hr=Tt[ar+Zt+tr],br=Tt[ar+Kt+or],Tr=Tt[ar+Kt+tr],Ir=Tt[sr+Zt+or],Ar=Tt[sr+Zt+tr],_r=Tt[sr+Kt+or],Er=Tt[sr+Kt+tr],Rr=_.create(),zr=_.create(),Br=_.create(),kr=_.create();_.lerp(Rr,cr,Ir,Yt),_.lerp(zr,hr,Ar,Yt),_.lerp(Br,br,_r,Yt),_.lerp(kr,Tr,Er,Yt);var Nr=_.create(),Qr=_.create();_.lerp(Nr,Rr,Br,rr),_.lerp(Qr,zr,kr,rr);var sn=_.create();return _.lerp(sn,Nr,Qr,jt),sn},bt=function(St){var _t=1/0;St.sort(function(wt,ct){return wt-ct});for(var Mt=St.length,Tt=1;Tt$t||ErUt||RrHt)},Xt=_.distance(_t[0],_t[1]),qt=10*Xt/Tt,er=qt*qt,lr=1,Jt=0,Yt=Mt.length;Yt>1&&(lr=ft(Mt));for(var rr=0;rrJt&&(Jt=cr),or.push(cr),Pt.push({points:ar,velocities:sr,divergences:or});for(var hr=0;hrer&&_.scale(br,br,qt/Math.sqrt(Tr)),_.add(br,br,jt),Zt=At(br),_.squaredDistance(Kt,br)-er>-1e-4*er){ar.push(br),Kt=br,sr.push(Zt);var tr=Ot(br,Zt),cr=_.length(tr);isFinite(cr)&&cr>Jt&&(Jt=cr),or.push(cr)}jt=br}}var Ir=ot(Pt,St.colormap,Jt,lr);return wt?Ir.tubeScale=wt:(Jt===0&&(Jt=1),Ir.tubeScale=kt*.5*lr/Jt),Ir};var at=j(6740),yt=j(6405).createMesh;ut.exports.createTubeMesh=function(St,_t){return yt(St,_t,{shaders:at,traceType:"streamtube"})}},990:function(ut,ht,j){var _=j(9405),rt=j(3236),tt=rt([`precision highp float; +}`]);ht.meshShader={vertex:rt,fragment:tt,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec4"}]},ht.pickShader={vertex:st,fragment:ot,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec4"}]}},7815:function(ut,ht,j){var _=j(2931),rt=j(9970),tt=["xyz","xzy","yxz","yzx","zxy","zyx"],st=function(St,_t,Mt,Et){for(var kt=St.points,wt=St.velocities,ct=St.divergences,It=[],At=[],Ot=[],Pt=[],zt=[],Dt=[],Nt=0,$t=0,Ut=rt.create(),Ht=rt.create(),Vt=8,Xt=0;Xt0)for(var Jt=0;Jt_t)return Et-1}return Et},vt=function(St,_t,Mt){return St<_t?_t:St>Mt?Mt:St},dt=function(St,_t,Mt){var Et=_t.vectors,kt=_t.meshgrid,wt=St[0],ct=St[1],It=St[2],At=kt[0].length,Ot=kt[1].length,Pt=kt[2].length,zt=nt(kt[0],wt),Dt=nt(kt[1],ct),Nt=nt(kt[2],It),$t=zt+1,Ut=Dt+1,Ht=Nt+1;if(zt=vt(zt,0,At-1),$t=vt($t,0,At-1),Dt=vt(Dt,0,Ot-1),Ut=vt(Ut,0,Ot-1),Nt=vt(Nt,0,Pt-1),Ht=vt(Ht,0,Pt-1),zt<0||Dt<0||Nt<0||$t>At-1||Ut>Ot-1||Ht>Pt-1)return _.create();var Vt=kt[0][zt],Xt=kt[0][$t],qt=kt[1][Dt],er=kt[1][Ut],lr=kt[2][Nt],Jt=kt[2][Ht],Yt=(wt-Vt)/(Xt-Vt),rr=(ct-qt)/(er-qt),jt=(It-lr)/(Jt-lr);isFinite(Yt)||(Yt=.5),isFinite(rr)||(rr=.5),isFinite(jt)||(jt=.5);var ar,sr,Zt,Kt,or,tr;switch(Mt.reversedX&&(zt=At-1-zt,$t=At-1-$t),Mt.reversedY&&(Dt=Ot-1-Dt,Ut=Ot-1-Ut),Mt.reversedZ&&(Nt=Pt-1-Nt,Ht=Pt-1-Ht),Mt.filled){case 5:or=Nt,tr=Ht,Zt=Dt*Pt,Kt=Ut*Pt,ar=zt*Pt*Ot,sr=$t*Pt*Ot;break;case 4:or=Nt,tr=Ht,ar=zt*Pt,sr=$t*Pt,Zt=Dt*Pt*At,Kt=Ut*Pt*At;break;case 3:Zt=Dt,Kt=Ut,or=Nt*Ot,tr=Ht*Ot,ar=zt*Ot*Pt,sr=$t*Ot*Pt;break;case 2:Zt=Dt,Kt=Ut,ar=zt*Ot,sr=$t*Ot,or=Nt*Ot*At,tr=Ht*Ot*At;break;case 1:ar=zt,sr=$t,or=Nt*At,tr=Ht*At,Zt=Dt*At*Pt,Kt=Ut*At*Pt;break;default:ar=zt,sr=$t,Zt=Dt*At,Kt=Ut*At,or=Nt*At*Ot,tr=Ht*At*Ot;break}var cr=Et[ar+Zt+or],mr=Et[ar+Zt+tr],Ar=Et[ar+Kt+or],br=Et[ar+Kt+tr],Ir=Et[sr+Zt+or],Tr=Et[sr+Zt+tr],_r=Et[sr+Kt+or],Er=Et[sr+Kt+tr],Rr=_.create(),zr=_.create(),Or=_.create(),kr=_.create();_.lerp(Rr,cr,Ir,Yt),_.lerp(zr,mr,Tr,Yt),_.lerp(Or,Ar,_r,Yt),_.lerp(kr,br,Er,Yt);var Nr=_.create(),Qr=_.create();_.lerp(Nr,Rr,Or,rr),_.lerp(Qr,zr,kr,rr);var sn=_.create();return _.lerp(sn,Nr,Qr,jt),sn},bt=function(St){var _t=1/0;St.sort(function(wt,ct){return wt-ct});for(var Mt=St.length,Et=1;Et$t||ErUt||RrHt)},Xt=_.distance(_t[0],_t[1]),qt=10*Xt/Et,er=qt*qt,lr=1,Jt=0,Yt=Mt.length;Yt>1&&(lr=ft(Mt));for(var rr=0;rrJt&&(Jt=cr),or.push(cr),Pt.push({points:ar,velocities:sr,divergences:or});for(var mr=0;mrer&&_.scale(Ar,Ar,qt/Math.sqrt(br)),_.add(Ar,Ar,jt),Zt=At(Ar),_.squaredDistance(Kt,Ar)-er>-1e-4*er){ar.push(Ar),Kt=Ar,sr.push(Zt);var tr=Ot(Ar,Zt),cr=_.length(tr);isFinite(cr)&&cr>Jt&&(Jt=cr),or.push(cr)}jt=Ar}}var Ir=ot(Pt,St.colormap,Jt,lr);return wt?Ir.tubeScale=wt:(Jt===0&&(Jt=1),Ir.tubeScale=kt*.5*lr/Jt),Ir};var at=j(6740),mt=j(6405).createMesh;ut.exports.createTubeMesh=function(St,_t){return mt(St,_t,{shaders:at,traceType:"streamtube"})}},990:function(ut,ht,j){var _=j(9405),rt=j(3236),tt=rt([`precision highp float; #define GLSLIFY 1 attribute vec4 uv; @@ -2326,36 +2326,36 @@ void main() { vec2 uy = splitFloat(planeCoordinate.y / shape.y); gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0)); } -`]);ht.createShader=function(vt){var dt=_(vt,tt,st,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return dt.attributes.uv.location=0,dt.attributes.f.location=1,dt.attributes.normal.location=2,dt},ht.createPickShader=function(vt){var dt=_(vt,tt,nt,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return dt.attributes.uv.location=0,dt.attributes.f.location=1,dt.attributes.normal.location=2,dt},ht.createContourShader=function(vt){var dt=_(vt,ot,st,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return dt.attributes.uv.location=0,dt.attributes.f.location=1,dt},ht.createPickContourShader=function(vt){var dt=_(vt,ot,nt,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return dt.attributes.uv.location=0,dt.attributes.f.location=1,dt}},9499:function(ut,ht,j){ut.exports=sr;var _=j(8828),rt=j(2762),tt=j(8116),st=j(7766),ot=j(1888),nt=j(6729),vt=j(5298),dt=j(9994),bt=j(9618),ft=j(3711),at=j(6760),yt=j(7608),St=j(2478),_t=j(6199),Mt=j(990),Tt=Mt.createShader,kt=Mt.createContourShader,wt=Mt.createPickShader,ct=Mt.createPickContourShader,It=4*(4+3+3),At=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],Ot=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],Pt=[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]];(function(){for(var Zt=0;Zt<3;++Zt){var Kt=Pt[Zt],or=(Zt+1)%3,tr=(Zt+2)%3;Kt[or+0]=1,Kt[tr+3]=1,Kt[Zt+6]=1}})();function zt(Zt,Kt,or,tr,cr){this.position=Zt,this.index=Kt,this.uv=or,this.level=tr,this.dataCoordinate=cr}var Dt=256;function Nt(Zt,Kt,or,tr,cr,hr,br,Tr,Ir,Ar,_r,Er,Rr,zr,Br){this.gl=Zt,this.shape=Kt,this.bounds=or,this.objectOffset=Br,this.intensityBounds=[],this._shader=tr,this._pickShader=cr,this._coordinateBuffer=hr,this._vao=br,this._colorMap=Tr,this._contourShader=Ir,this._contourPickShader=Ar,this._contourBuffer=_r,this._contourVAO=Er,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new zt([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=Rr,this._dynamicVAO=zr,this._dynamicOffsets=[0,0,0],this._dynamicCounts=[0,0,0],this.contourWidth=[1,1,1],this.contourLevels=[[1],[1],[1]],this.contourTint=[0,0,0],this.contourColor=[[.5,.5,.5,1],[.5,.5,.5,1],[.5,.5,.5,1]],this.showContour=!0,this.showSurface=!0,this.enableHighlight=[!0,!0,!0],this.highlightColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.highlightTint=[1,1,1],this.highlightLevel=[-1,-1,-1],this.enableDynamic=[!0,!0,!0],this.dynamicLevel=[NaN,NaN,NaN],this.dynamicColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.dynamicTint=[1,1,1],this.dynamicWidth=[1,1,1],this.axesBounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.surfaceProject=[!1,!1,!1],this.contourProject=[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],this.colorBounds=[!1,!1],this._field=[bt(ot.mallocFloat(1024),[0,0]),bt(ot.mallocFloat(1024),[0,0]),bt(ot.mallocFloat(1024),[0,0])],this.pickId=1,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.snapToData=!1,this.pixelRatio=1,this.opacity=1,this.lightPosition=[10,1e4,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.vertexColor=0,this.dirty=!0}var $t=Nt.prototype;$t.genColormap=function(Zt,Kt){var or=!1,tr=dt([nt({colormap:Zt,nshades:Dt,format:"rgba"}).map(function(cr,hr){var br=Kt?Ut(hr/255,Kt):cr[3];return br<1&&(or=!0),[cr[0],cr[1],cr[2],255*br]})]);return vt.divseq(tr,255),this.hasAlphaScale=or,tr},$t.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},$t.isOpaque=function(){return!this.isTransparent()},$t.pickSlots=1,$t.setPickBase=function(Zt){this.pickId=Zt};function Ut(Zt,Kt){if(!Kt||!Kt.length)return 1;for(var or=0;orZt&&or>0){var tr=(Kt[or][0]-Zt)/(Kt[or][0]-Kt[or-1][0]);return Kt[or][1]*(1-tr)+tr*Kt[or-1][1]}}return 1}var Ht=[0,0,0],Vt={showSurface:!1,showContour:!1,projections:[At.slice(),At.slice(),At.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function Xt(Zt,Kt){var or,tr,cr,hr=Kt.axes&&Kt.axes.lastCubeProps.axis||Ht,br=Kt.showSurface,Tr=Kt.showContour;for(or=0;or<3;++or)for(br=br||Kt.surfaceProject[or],tr=0;tr<3;++tr)Tr=Tr||Kt.contourProject[or][tr];for(or=0;or<3;++or){var Ir=Vt.projections[or];for(tr=0;tr<16;++tr)Ir[tr]=0;for(tr=0;tr<4;++tr)Ir[5*tr]=1;Ir[5*or]=0,Ir[12+or]=Kt.axesBounds[+(hr[or]>0)][or],at(Ir,Zt.model,Ir);var Ar=Vt.clipBounds[or];for(cr=0;cr<2;++cr)for(tr=0;tr<3;++tr)Ar[cr][tr]=Zt.clipBounds[cr][tr];Ar[0][or]=-1e8,Ar[1][or]=1e8}return Vt.showSurface=br,Vt.showContour=Tr,Vt}var qt={model:At,view:At,projection:At,inverseModel:At.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},er=At.slice(),lr=[1,0,0,0,1,0,0,0,1];function Jt(Zt,Kt){Zt=Zt||{};var or=this.gl;or.disable(or.CULL_FACE),this._colorMap.bind(0);var tr=qt;tr.model=Zt.model||At,tr.view=Zt.view||At,tr.projection=Zt.projection||At,tr.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],tr.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],tr.objectOffset=this.objectOffset,tr.contourColor=this.contourColor[0],tr.inverseModel=yt(tr.inverseModel,tr.model);for(var cr=0;cr<2;++cr)for(var hr=tr.clipBounds[cr],br=0;br<3;++br)hr[br]=Math.min(Math.max(this.clipBounds[cr][br],-1e8),1e8);tr.kambient=this.ambientLight,tr.kdiffuse=this.diffuseLight,tr.kspecular=this.specularLight,tr.roughness=this.roughness,tr.fresnel=this.fresnel,tr.opacity=this.opacity,tr.height=0,tr.permutation=lr,tr.vertexColor=this.vertexColor;var Tr=er;for(at(Tr,tr.view,tr.model),at(Tr,tr.projection,Tr),yt(Tr,Tr),cr=0;cr<3;++cr)tr.eyePosition[cr]=Tr[12+cr]/Tr[15];var Ir=Tr[15];for(cr=0;cr<3;++cr)Ir+=this.lightPosition[cr]*Tr[4*cr+3];for(cr=0;cr<3;++cr){var Ar=Tr[12+cr];for(br=0;br<3;++br)Ar+=Tr[4*br+cr]*this.lightPosition[br];tr.lightPosition[cr]=Ar/Ir}var _r=Xt(tr,this);if(_r.showSurface){for(this._shader.bind(),this._shader.uniforms=tr,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(or.TRIANGLES,this._vertexCount),cr=0;cr<3;++cr)!this.surfaceProject[cr]||!this.vertexCount||(this._shader.uniforms.model=_r.projections[cr],this._shader.uniforms.clipBounds=_r.clipBounds[cr],this._vao.draw(or.TRIANGLES,this._vertexCount));this._vao.unbind()}if(_r.showContour){var Er=this._contourShader;tr.kambient=1,tr.kdiffuse=0,tr.kspecular=0,tr.opacity=1,Er.bind(),Er.uniforms=tr;var Rr=this._contourVAO;for(Rr.bind(),cr=0;cr<3;++cr)for(Er.uniforms.permutation=Pt[cr],or.lineWidth(this.contourWidth[cr]*this.pixelRatio),br=0;br>4)/16)/255,cr=Math.floor(tr),hr=tr-cr,br=Kt[1]*(Zt.value[1]+(Zt.value[2]&15)/16)/255,Tr=Math.floor(br),Ir=br-Tr;cr+=1,Tr+=1;var Ar=or.position;Ar[0]=Ar[1]=Ar[2]=0;for(var _r=0;_r<2;++_r)for(var Er=_r?hr:1-hr,Rr=0;Rr<2;++Rr)for(var zr=Rr?Ir:1-Ir,Br=cr+_r,kr=Tr+Rr,Nr=Er*zr,Qr=0;Qr<3;++Qr)Ar[Qr]+=this._field[Qr].get(Br,kr)*Nr;for(var sn=this._pickResult.level,un=0;un<3;++un)if(sn[un]=St.le(this.contourLevels[un],Ar[un]),sn[un]<0)this.contourLevels[un].length>0&&(sn[un]=0);else if(sn[un]Math.abs(Xr-Ar[un])&&(sn[un]+=1)}for(or.index[0]=hr<.5?cr:cr+1,or.index[1]=Ir<.5?Tr:Tr+1,or.uv[0]=tr/Kt[0],or.uv[1]=br/Kt[1],Qr=0;Qr<3;++Qr)or.dataCoordinate[Qr]=this._field[Qr].get(or.index[0],or.index[1]);return or},$t.padField=function(Zt,Kt){var or=Kt.shape.slice(),tr=Zt.shape.slice();vt.assign(Zt.lo(1,1).hi(or[0],or[1]),Kt),vt.assign(Zt.lo(1).hi(or[0],1),Kt.hi(or[0],1)),vt.assign(Zt.lo(1,tr[1]-1).hi(or[0],1),Kt.lo(0,or[1]-1).hi(or[0],1)),vt.assign(Zt.lo(0,1).hi(1,or[1]),Kt.hi(1)),vt.assign(Zt.lo(tr[0]-1,1).hi(1,or[1]),Kt.lo(or[0]-1)),Zt.set(0,0,Kt.get(0,0)),Zt.set(0,tr[1]-1,Kt.get(0,or[1]-1)),Zt.set(tr[0]-1,0,Kt.get(or[0]-1,0)),Zt.set(tr[0]-1,tr[1]-1,Kt.get(or[0]-1,or[1]-1))};function rr(Zt,Kt){return Array.isArray(Zt)?[Kt(Zt[0]),Kt(Zt[1]),Kt(Zt[2])]:[Kt(Zt),Kt(Zt),Kt(Zt)]}function jt(Zt){return Array.isArray(Zt)?Zt.length===3?[Zt[0],Zt[1],Zt[2],1]:[Zt[0],Zt[1],Zt[2],Zt[3]]:[0,0,0,1]}function ar(Zt){if(Array.isArray(Zt)){if(Array.isArray(Zt))return[jt(Zt[0]),jt(Zt[1]),jt(Zt[2])];var Kt=jt(Zt);return[Kt.slice(),Kt.slice(),Kt.slice()]}}$t.update=function(Zt){Zt=Zt||{},this.objectOffset=Zt.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in Zt&&(this.contourWidth=rr(Zt.contourWidth,Number)),"showContour"in Zt&&(this.showContour=rr(Zt.showContour,Boolean)),"showSurface"in Zt&&(this.showSurface=!!Zt.showSurface),"contourTint"in Zt&&(this.contourTint=rr(Zt.contourTint,Boolean)),"contourColor"in Zt&&(this.contourColor=ar(Zt.contourColor)),"contourProject"in Zt&&(this.contourProject=rr(Zt.contourProject,function(Bn){return rr(Bn,Boolean)})),"surfaceProject"in Zt&&(this.surfaceProject=Zt.surfaceProject),"dynamicColor"in Zt&&(this.dynamicColor=ar(Zt.dynamicColor)),"dynamicTint"in Zt&&(this.dynamicTint=rr(Zt.dynamicTint,Number)),"dynamicWidth"in Zt&&(this.dynamicWidth=rr(Zt.dynamicWidth,Number)),"opacity"in Zt&&(this.opacity=Zt.opacity),"opacityscale"in Zt&&(this.opacityscale=Zt.opacityscale),"colorBounds"in Zt&&(this.colorBounds=Zt.colorBounds),"vertexColor"in Zt&&(this.vertexColor=Zt.vertexColor?1:0),"colormap"in Zt&&this._colorMap.setPixels(this.genColormap(Zt.colormap,this.opacityscale));var Kt=Zt.field||Zt.coords&&Zt.coords[2]||null,or=!1;if(Kt||(this._field[2].shape[0]||this._field[2].shape[2]?Kt=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):Kt=this._field[2].hi(0,0)),"field"in Zt||"coords"in Zt){var tr=(Kt.shape[0]+2)*(Kt.shape[1]+2);tr>this._field[2].data.length&&(ot.freeFloat(this._field[2].data),this._field[2].data=ot.mallocFloat(_.nextPow2(tr))),this._field[2]=bt(this._field[2].data,[Kt.shape[0]+2,Kt.shape[1]+2]),this.padField(this._field[2],Kt),this.shape=Kt.shape.slice();for(var cr=this.shape,hr=0;hr<2;++hr)this._field[2].size>this._field[hr].data.length&&(ot.freeFloat(this._field[hr].data),this._field[hr].data=ot.mallocFloat(this._field[2].size)),this._field[hr]=bt(this._field[hr].data,[cr[0]+2,cr[1]+2]);if(Zt.coords){var br=Zt.coords;if(!Array.isArray(br)||br.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(hr=0;hr<2;++hr){var Tr=br[hr];for(Rr=0;Rr<2;++Rr)if(Tr.shape[Rr]!==cr[Rr])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[hr],Tr)}}else if(Zt.ticks){var Ir=Zt.ticks;if(!Array.isArray(Ir)||Ir.length!==2)throw new Error("gl-surface: invalid ticks");for(hr=0;hr<2;++hr){var Ar=Ir[hr];if((Array.isArray(Ar)||Ar.length)&&(Ar=bt(Ar)),Ar.shape[0]!==cr[hr])throw new Error("gl-surface: invalid tick length");var _r=bt(Ar.data,cr);_r.stride[hr]=Ar.stride[0],_r.stride[hr^1]=0,this.padField(this._field[hr],_r)}}else{for(hr=0;hr<2;++hr){var Er=[0,0];Er[hr]=1,this._field[hr]=bt(this._field[hr].data,[cr[0]+2,cr[1]+2],Er,0)}this._field[0].set(0,0,0);for(var Rr=0;Rr0){for(var Wr=0;Wr<5;++Wr)bn.pop();Dr-=1}continue e}}}Kn.push(Dr)}this._contourOffsets[Un]=yn,this._contourCounts[Un]=Kn}var $n=ot.mallocFloat(bn.length);for(hr=0;hrzt||Ot<0||Ot>zt)throw new Error("gl-texture2d: Invalid texture size");return It._shape=[At,Ot],It.bind(),Pt.texImage2D(Pt.TEXTURE_2D,0,It.format,At,Ot,0,It.format,It.type,null),It._mipLevels=[0],It}function at(It,At,Ot,Pt,zt,Dt){this.gl=It,this.handle=At,this.format=zt,this.type=Dt,this._shape=[Ot,Pt],this._mipLevels=[0],this._magFilter=It.NEAREST,this._minFilter=It.NEAREST,this._wrapS=It.CLAMP_TO_EDGE,this._wrapT=It.CLAMP_TO_EDGE,this._anisoSamples=1;var Nt=this,$t=[this._wrapS,this._wrapT];Object.defineProperties($t,[{get:function(){return Nt._wrapS},set:function(Ht){return Nt.wrapS=Ht}},{get:function(){return Nt._wrapT},set:function(Ht){return Nt.wrapT=Ht}}]),this._wrapVector=$t;var Ut=[this._shape[0],this._shape[1]];Object.defineProperties(Ut,[{get:function(){return Nt._shape[0]},set:function(Ht){return Nt.width=Ht}},{get:function(){return Nt._shape[1]},set:function(Ht){return Nt.height=Ht}}]),this._shapeVector=Ut}var yt=at.prototype;Object.defineProperties(yt,{minFilter:{get:function(){return this._minFilter},set:function(It){this.bind();var At=this.gl;if(this.type===At.FLOAT&&st.indexOf(It)>=0&&(At.getExtension("OES_texture_float_linear")||(It=At.NEAREST)),ot.indexOf(It)<0)throw new Error("gl-texture2d: Unknown filter mode "+It);return At.texParameteri(At.TEXTURE_2D,At.TEXTURE_MIN_FILTER,It),this._minFilter=It}},magFilter:{get:function(){return this._magFilter},set:function(It){this.bind();var At=this.gl;if(this.type===At.FLOAT&&st.indexOf(It)>=0&&(At.getExtension("OES_texture_float_linear")||(It=At.NEAREST)),ot.indexOf(It)<0)throw new Error("gl-texture2d: Unknown filter mode "+It);return At.texParameteri(At.TEXTURE_2D,At.TEXTURE_MAG_FILTER,It),this._magFilter=It}},mipSamples:{get:function(){return this._anisoSamples},set:function(It){var At=this._anisoSamples;if(this._anisoSamples=Math.max(It,1)|0,At!==this._anisoSamples){var Ot=this.gl.getExtension("EXT_texture_filter_anisotropic");Ot&&this.gl.texParameterf(this.gl.TEXTURE_2D,Ot.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(It){if(this.bind(),nt.indexOf(It)<0)throw new Error("gl-texture2d: Unknown wrap mode "+It);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,It),this._wrapS=It}},wrapT:{get:function(){return this._wrapT},set:function(It){if(this.bind(),nt.indexOf(It)<0)throw new Error("gl-texture2d: Unknown wrap mode "+It);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,It),this._wrapT=It}},wrap:{get:function(){return this._wrapVector},set:function(It){if(Array.isArray(It)||(It=[It,It]),It.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var At=0;At<2;++At)if(nt.indexOf(It[At])<0)throw new Error("gl-texture2d: Unknown wrap mode "+It);this._wrapS=It[0],this._wrapT=It[1];var Ot=this.gl;return this.bind(),Ot.texParameteri(Ot.TEXTURE_2D,Ot.TEXTURE_WRAP_S,this._wrapS),Ot.texParameteri(Ot.TEXTURE_2D,Ot.TEXTURE_WRAP_T,this._wrapT),It}},shape:{get:function(){return this._shapeVector},set:function(It){if(!Array.isArray(It))It=[It|0,It|0];else if(It.length!==2)throw new Error("gl-texture2d: Invalid texture shape");return ft(this,It[0]|0,It[1]|0),[It[0]|0,It[1]|0]}},width:{get:function(){return this._shape[0]},set:function(It){return It=It|0,ft(this,It,this._shape[1]),It}},height:{get:function(){return this._shape[1]},set:function(It){return It=It|0,ft(this,this._shape[0],It),It}}}),yt.bind=function(It){var At=this.gl;return It!==void 0&&At.activeTexture(At.TEXTURE0+(It|0)),At.bindTexture(At.TEXTURE_2D,this.handle),It!==void 0?It|0:At.getParameter(At.ACTIVE_TEXTURE)-At.TEXTURE0},yt.dispose=function(){this.gl.deleteTexture(this.handle)},yt.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var It=Math.min(this._shape[0],this._shape[1]),At=0;It>0;++At,It>>>=1)this._mipLevels.indexOf(At)<0&&this._mipLevels.push(At)},yt.setPixels=function(It,At,Ot,Pt){var zt=this.gl;this.bind(),Array.isArray(At)?(Pt=Ot,Ot=At[1]|0,At=At[0]|0):(At=At||0,Ot=Ot||0),Pt=Pt||0;var Dt=dt(It)?It:It.raw;if(Dt){var Nt=this._mipLevels.indexOf(Pt)<0;Nt?(zt.texImage2D(zt.TEXTURE_2D,0,this.format,this.format,this.type,Dt),this._mipLevels.push(Pt)):zt.texSubImage2D(zt.TEXTURE_2D,Pt,At,Ot,this.format,this.type,Dt)}else if(It.shape&&It.stride&&It.data){if(It.shape.length<2||At+It.shape[1]>this._shape[1]>>>Pt||Ot+It.shape[0]>this._shape[0]>>>Pt||At<0||Ot<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");_t(zt,At,Ot,Pt,this.format,this.type,this._mipLevels,It)}else throw new Error("gl-texture2d: Unsupported data type")};function St(It,At){return It.length===3?At[2]===1&&At[1]===It[0]*It[2]&&At[0]===It[2]:At[0]===1&&At[1]===It[0]}function _t(It,At,Ot,Pt,zt,Dt,Nt,$t){var Ut=$t.dtype,Ht=$t.shape.slice();if(Ht.length<2||Ht.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var Vt=0,Xt=0,qt=St(Ht,$t.stride.slice());if(Ut==="float32"?Vt=It.FLOAT:Ut==="float64"?(Vt=It.FLOAT,qt=!1,Ut="float32"):Ut==="uint8"?Vt=It.UNSIGNED_BYTE:(Vt=It.UNSIGNED_BYTE,qt=!1,Ut="uint8"),Ht.length===2)Xt=It.LUMINANCE,Ht=[Ht[0],Ht[1],1],$t=_($t.data,Ht,[$t.stride[0],$t.stride[1],1],$t.offset);else if(Ht.length===3){if(Ht[2]===1)Xt=It.ALPHA;else if(Ht[2]===2)Xt=It.LUMINANCE_ALPHA;else if(Ht[2]===3)Xt=It.RGB;else if(Ht[2]===4)Xt=It.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");Ht[2]}else throw new Error("gl-texture2d: Invalid shape for texture");if((Xt===It.LUMINANCE||Xt===It.ALPHA)&&(zt===It.LUMINANCE||zt===It.ALPHA)&&(Xt=zt),Xt!==zt)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var er=$t.size,lr=Nt.indexOf(Pt)<0;if(lr&&Nt.push(Pt),Vt===Dt&&qt)$t.offset===0&&$t.data.length===er?lr?It.texImage2D(It.TEXTURE_2D,Pt,zt,Ht[0],Ht[1],0,zt,Dt,$t.data):It.texSubImage2D(It.TEXTURE_2D,Pt,At,Ot,Ht[0],Ht[1],zt,Dt,$t.data):lr?It.texImage2D(It.TEXTURE_2D,Pt,zt,Ht[0],Ht[1],0,zt,Dt,$t.data.subarray($t.offset,$t.offset+er)):It.texSubImage2D(It.TEXTURE_2D,Pt,At,Ot,Ht[0],Ht[1],zt,Dt,$t.data.subarray($t.offset,$t.offset+er));else{var Jt;Dt===It.FLOAT?Jt=tt.mallocFloat32(er):Jt=tt.mallocUint8(er);var Yt=_(Jt,Ht,[Ht[2],Ht[2]*Ht[0],1]);Vt===It.FLOAT&&Dt===It.UNSIGNED_BYTE?bt(Yt,$t):rt.assign(Yt,$t),lr?It.texImage2D(It.TEXTURE_2D,Pt,zt,Ht[0],Ht[1],0,zt,Dt,Jt.subarray(0,er)):It.texSubImage2D(It.TEXTURE_2D,Pt,At,Ot,Ht[0],Ht[1],zt,Dt,Jt.subarray(0,er)),Dt===It.FLOAT?tt.freeFloat32(Jt):tt.freeUint8(Jt)}}function Mt(It){var At=It.createTexture();return It.bindTexture(It.TEXTURE_2D,At),It.texParameteri(It.TEXTURE_2D,It.TEXTURE_MIN_FILTER,It.NEAREST),It.texParameteri(It.TEXTURE_2D,It.TEXTURE_MAG_FILTER,It.NEAREST),It.texParameteri(It.TEXTURE_2D,It.TEXTURE_WRAP_S,It.CLAMP_TO_EDGE),It.texParameteri(It.TEXTURE_2D,It.TEXTURE_WRAP_T,It.CLAMP_TO_EDGE),At}function Tt(It,At,Ot,Pt,zt){var Dt=It.getParameter(It.MAX_TEXTURE_SIZE);if(At<0||At>Dt||Ot<0||Ot>Dt)throw new Error("gl-texture2d: Invalid texture shape");if(zt===It.FLOAT&&!It.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var Nt=Mt(It);return It.texImage2D(It.TEXTURE_2D,0,Pt,At,Ot,0,Pt,zt,null),new at(It,Nt,At,Ot,Pt,zt)}function kt(It,At,Ot,Pt,zt,Dt){var Nt=Mt(It);return It.texImage2D(It.TEXTURE_2D,0,zt,zt,Dt,At),new at(It,Nt,Ot,Pt,zt,Dt)}function wt(It,At){var Ot=At.dtype,Pt=At.shape.slice(),zt=It.getParameter(It.MAX_TEXTURE_SIZE);if(Pt[0]<0||Pt[0]>zt||Pt[1]<0||Pt[1]>zt)throw new Error("gl-texture2d: Invalid texture size");var Dt=St(Pt,At.stride.slice()),Nt=0;Ot==="float32"?Nt=It.FLOAT:Ot==="float64"?(Nt=It.FLOAT,Dt=!1,Ot="float32"):Ot==="uint8"?Nt=It.UNSIGNED_BYTE:(Nt=It.UNSIGNED_BYTE,Dt=!1,Ot="uint8");var $t=0;if(Pt.length===2)$t=It.LUMINANCE,Pt=[Pt[0],Pt[1],1],At=_(At.data,Pt,[At.stride[0],At.stride[1],1],At.offset);else if(Pt.length===3)if(Pt[2]===1)$t=It.ALPHA;else if(Pt[2]===2)$t=It.LUMINANCE_ALPHA;else if(Pt[2]===3)$t=It.RGB;else if(Pt[2]===4)$t=It.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");Nt===It.FLOAT&&!It.getExtension("OES_texture_float")&&(Nt=It.UNSIGNED_BYTE,Dt=!1);var Ut,Ht,Vt=At.size;if(Dt)At.offset===0&&At.data.length===Vt?Ut=At.data:Ut=At.data.subarray(At.offset,At.offset+Vt);else{var Xt=[Pt[2],Pt[2]*Pt[0],1];Ht=tt.malloc(Vt,Ot);var qt=_(Ht,Pt,Xt,0);(Ot==="float32"||Ot==="float64")&&Nt===It.UNSIGNED_BYTE?bt(qt,At):rt.assign(qt,At),Ut=Ht.subarray(0,Vt)}var er=Mt(It);return It.texImage2D(It.TEXTURE_2D,0,$t,Pt[0],Pt[1],0,$t,Nt,Ut),Dt||tt.free(Ht),new at(It,er,Pt[0],Pt[1],$t,Nt)}function ct(It){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(st||vt(It),typeof arguments[1]=="number")return Tt(It,arguments[1],arguments[2],arguments[3]||It.RGBA,arguments[4]||It.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return Tt(It,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||It.RGBA,arguments[3]||It.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var At=arguments[1],Ot=dt(At)?At:At.raw;if(Ot)return kt(It,Ot,At.width|0,At.height|0,arguments[2]||It.RGBA,arguments[3]||It.UNSIGNED_BYTE);if(At.shape&&At.data&&At.stride)return wt(It,At)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}},1433:function(ut){function ht(j,_,rt){_?_.bind():j.bindBuffer(j.ELEMENT_ARRAY_BUFFER,null);var tt=j.getParameter(j.MAX_VERTEX_ATTRIBS)|0;if(rt){if(rt.length>tt)throw new Error("gl-vao: Too many vertex attributes");for(var st=0;st1?0:Math.acos(bt)}},9226:function(ut){ut.exports=ht;function ht(j,_){return j[0]=Math.ceil(_[0]),j[1]=Math.ceil(_[1]),j[2]=Math.ceil(_[2]),j}},3126:function(ut){ut.exports=ht;function ht(j){var _=new Float32Array(3);return _[0]=j[0],_[1]=j[1],_[2]=j[2],_}},3990:function(ut){ut.exports=ht;function ht(j,_){return j[0]=_[0],j[1]=_[1],j[2]=_[2],j}},1091:function(ut){ut.exports=ht;function ht(){var j=new Float32Array(3);return j[0]=0,j[1]=0,j[2]=0,j}},5911:function(ut){ut.exports=ht;function ht(j,_,rt){var tt=_[0],st=_[1],ot=_[2],nt=rt[0],vt=rt[1],dt=rt[2];return j[0]=st*dt-ot*vt,j[1]=ot*nt-tt*dt,j[2]=tt*vt-st*nt,j}},5455:function(ut,ht,j){ut.exports=j(7056)},7056:function(ut){ut.exports=ht;function ht(j,_){var rt=_[0]-j[0],tt=_[1]-j[1],st=_[2]-j[2];return Math.sqrt(rt*rt+tt*tt+st*st)}},4008:function(ut,ht,j){ut.exports=j(6690)},6690:function(ut){ut.exports=ht;function ht(j,_,rt){return j[0]=_[0]/rt[0],j[1]=_[1]/rt[1],j[2]=_[2]/rt[2],j}},244:function(ut){ut.exports=ht;function ht(j,_){return j[0]*_[0]+j[1]*_[1]+j[2]*_[2]}},2613:function(ut){ut.exports=1e-6},9922:function(ut,ht,j){ut.exports=rt;var _=j(2613);function rt(tt,st){var ot=tt[0],nt=tt[1],vt=tt[2],dt=st[0],bt=st[1],ft=st[2];return Math.abs(ot-dt)<=_*Math.max(1,Math.abs(ot),Math.abs(dt))&&Math.abs(nt-bt)<=_*Math.max(1,Math.abs(nt),Math.abs(bt))&&Math.abs(vt-ft)<=_*Math.max(1,Math.abs(vt),Math.abs(ft))}},9265:function(ut){ut.exports=ht;function ht(j,_){return j[0]===_[0]&&j[1]===_[1]&&j[2]===_[2]}},2681:function(ut){ut.exports=ht;function ht(j,_){return j[0]=Math.floor(_[0]),j[1]=Math.floor(_[1]),j[2]=Math.floor(_[2]),j}},5137:function(ut,ht,j){ut.exports=rt;var _=j(1091)();function rt(tt,st,ot,nt,vt,dt){var bt,ft;for(st||(st=3),ot||(ot=0),nt?ft=Math.min(nt*st+ot,tt.length):ft=tt.length,bt=ot;bt0&&(ot=1/Math.sqrt(ot),j[0]=_[0]*ot,j[1]=_[1]*ot,j[2]=_[2]*ot),j}},7636:function(ut){ut.exports=ht;function ht(j,_){_=_||1;var rt=Math.random()*2*Math.PI,tt=Math.random()*2-1,st=Math.sqrt(1-tt*tt)*_;return j[0]=Math.cos(rt)*st,j[1]=Math.sin(rt)*st,j[2]=tt*_,j}},6894:function(ut){ut.exports=ht;function ht(j,_,rt,tt){var st=rt[1],ot=rt[2],nt=_[1]-st,vt=_[2]-ot,dt=Math.sin(tt),bt=Math.cos(tt);return j[0]=_[0],j[1]=st+nt*bt-vt*dt,j[2]=ot+nt*dt+vt*bt,j}},109:function(ut){ut.exports=ht;function ht(j,_,rt,tt){var st=rt[0],ot=rt[2],nt=_[0]-st,vt=_[2]-ot,dt=Math.sin(tt),bt=Math.cos(tt);return j[0]=st+vt*dt+nt*bt,j[1]=_[1],j[2]=ot+vt*bt-nt*dt,j}},8692:function(ut){ut.exports=ht;function ht(j,_,rt,tt){var st=rt[0],ot=rt[1],nt=_[0]-st,vt=_[1]-ot,dt=Math.sin(tt),bt=Math.cos(tt);return j[0]=st+nt*bt-vt*dt,j[1]=ot+nt*dt+vt*bt,j[2]=_[2],j}},2447:function(ut){ut.exports=ht;function ht(j,_){return j[0]=Math.round(_[0]),j[1]=Math.round(_[1]),j[2]=Math.round(_[2]),j}},6621:function(ut){ut.exports=ht;function ht(j,_,rt){return j[0]=_[0]*rt,j[1]=_[1]*rt,j[2]=_[2]*rt,j}},8489:function(ut){ut.exports=ht;function ht(j,_,rt,tt){return j[0]=_[0]+rt[0]*tt,j[1]=_[1]+rt[1]*tt,j[2]=_[2]+rt[2]*tt,j}},1463:function(ut){ut.exports=ht;function ht(j,_,rt,tt){return j[0]=_,j[1]=rt,j[2]=tt,j}},6141:function(ut,ht,j){ut.exports=j(2953)},5486:function(ut,ht,j){ut.exports=j(3066)},2953:function(ut){ut.exports=ht;function ht(j,_){var rt=_[0]-j[0],tt=_[1]-j[1],st=_[2]-j[2];return rt*rt+tt*tt+st*st}},3066:function(ut){ut.exports=ht;function ht(j){var _=j[0],rt=j[1],tt=j[2];return _*_+rt*rt+tt*tt}},2229:function(ut,ht,j){ut.exports=j(6843)},6843:function(ut){ut.exports=ht;function ht(j,_,rt){return j[0]=_[0]-rt[0],j[1]=_[1]-rt[1],j[2]=_[2]-rt[2],j}},492:function(ut){ut.exports=ht;function ht(j,_,rt){var tt=_[0],st=_[1],ot=_[2];return j[0]=tt*rt[0]+st*rt[3]+ot*rt[6],j[1]=tt*rt[1]+st*rt[4]+ot*rt[7],j[2]=tt*rt[2]+st*rt[5]+ot*rt[8],j}},5673:function(ut){ut.exports=ht;function ht(j,_,rt){var tt=_[0],st=_[1],ot=_[2],nt=rt[3]*tt+rt[7]*st+rt[11]*ot+rt[15];return nt=nt||1,j[0]=(rt[0]*tt+rt[4]*st+rt[8]*ot+rt[12])/nt,j[1]=(rt[1]*tt+rt[5]*st+rt[9]*ot+rt[13])/nt,j[2]=(rt[2]*tt+rt[6]*st+rt[10]*ot+rt[14])/nt,j}},264:function(ut){ut.exports=ht;function ht(j,_,rt){var tt=_[0],st=_[1],ot=_[2],nt=rt[0],vt=rt[1],dt=rt[2],bt=rt[3],ft=bt*tt+vt*ot-dt*st,at=bt*st+dt*tt-nt*ot,yt=bt*ot+nt*st-vt*tt,St=-nt*tt-vt*st-dt*ot;return j[0]=ft*bt+St*-nt+at*-dt-yt*-vt,j[1]=at*bt+St*-vt+yt*-nt-ft*-dt,j[2]=yt*bt+St*-dt+ft*-vt-at*-nt,j}},4361:function(ut){ut.exports=ht;function ht(j,_,rt){return j[0]=_[0]+rt[0],j[1]=_[1]+rt[1],j[2]=_[2]+rt[2],j[3]=_[3]+rt[3],j}},2335:function(ut){ut.exports=ht;function ht(j){var _=new Float32Array(4);return _[0]=j[0],_[1]=j[1],_[2]=j[2],_[3]=j[3],_}},2933:function(ut){ut.exports=ht;function ht(j,_){return j[0]=_[0],j[1]=_[1],j[2]=_[2],j[3]=_[3],j}},7536:function(ut){ut.exports=ht;function ht(){var j=new Float32Array(4);return j[0]=0,j[1]=0,j[2]=0,j[3]=0,j}},4691:function(ut){ut.exports=ht;function ht(j,_){var rt=_[0]-j[0],tt=_[1]-j[1],st=_[2]-j[2],ot=_[3]-j[3];return Math.sqrt(rt*rt+tt*tt+st*st+ot*ot)}},1373:function(ut){ut.exports=ht;function ht(j,_,rt){return j[0]=_[0]/rt[0],j[1]=_[1]/rt[1],j[2]=_[2]/rt[2],j[3]=_[3]/rt[3],j}},3750:function(ut){ut.exports=ht;function ht(j,_){return j[0]*_[0]+j[1]*_[1]+j[2]*_[2]+j[3]*_[3]}},3390:function(ut){ut.exports=ht;function ht(j,_,rt,tt){var st=new Float32Array(4);return st[0]=j,st[1]=_,st[2]=rt,st[3]=tt,st}},9970:function(ut,ht,j){ut.exports={create:j(7536),clone:j(2335),fromValues:j(3390),copy:j(2933),set:j(4578),add:j(4361),subtract:j(6860),multiply:j(3576),divide:j(1373),min:j(2334),max:j(160),scale:j(9288),scaleAndAdd:j(4844),distance:j(4691),squaredDistance:j(7960),length:j(6808),squaredLength:j(483),negate:j(1498),inverse:j(4494),normalize:j(5177),dot:j(3750),lerp:j(2573),random:j(9131),transformMat4:j(5352),transformQuat:j(4041)}},4494:function(ut){ut.exports=ht;function ht(j,_){return j[0]=1/_[0],j[1]=1/_[1],j[2]=1/_[2],j[3]=1/_[3],j}},6808:function(ut){ut.exports=ht;function ht(j){var _=j[0],rt=j[1],tt=j[2],st=j[3];return Math.sqrt(_*_+rt*rt+tt*tt+st*st)}},2573:function(ut){ut.exports=ht;function ht(j,_,rt,tt){var st=_[0],ot=_[1],nt=_[2],vt=_[3];return j[0]=st+tt*(rt[0]-st),j[1]=ot+tt*(rt[1]-ot),j[2]=nt+tt*(rt[2]-nt),j[3]=vt+tt*(rt[3]-vt),j}},160:function(ut){ut.exports=ht;function ht(j,_,rt){return j[0]=Math.max(_[0],rt[0]),j[1]=Math.max(_[1],rt[1]),j[2]=Math.max(_[2],rt[2]),j[3]=Math.max(_[3],rt[3]),j}},2334:function(ut){ut.exports=ht;function ht(j,_,rt){return j[0]=Math.min(_[0],rt[0]),j[1]=Math.min(_[1],rt[1]),j[2]=Math.min(_[2],rt[2]),j[3]=Math.min(_[3],rt[3]),j}},3576:function(ut){ut.exports=ht;function ht(j,_,rt){return j[0]=_[0]*rt[0],j[1]=_[1]*rt[1],j[2]=_[2]*rt[2],j[3]=_[3]*rt[3],j}},1498:function(ut){ut.exports=ht;function ht(j,_){return j[0]=-_[0],j[1]=-_[1],j[2]=-_[2],j[3]=-_[3],j}},5177:function(ut){ut.exports=ht;function ht(j,_){var rt=_[0],tt=_[1],st=_[2],ot=_[3],nt=rt*rt+tt*tt+st*st+ot*ot;return nt>0&&(nt=1/Math.sqrt(nt),j[0]=rt*nt,j[1]=tt*nt,j[2]=st*nt,j[3]=ot*nt),j}},9131:function(ut,ht,j){var _=j(5177),rt=j(9288);ut.exports=tt;function tt(st,ot){return ot=ot||1,st[0]=Math.random(),st[1]=Math.random(),st[2]=Math.random(),st[3]=Math.random(),_(st,st),rt(st,st,ot),st}},9288:function(ut){ut.exports=ht;function ht(j,_,rt){return j[0]=_[0]*rt,j[1]=_[1]*rt,j[2]=_[2]*rt,j[3]=_[3]*rt,j}},4844:function(ut){ut.exports=ht;function ht(j,_,rt,tt){return j[0]=_[0]+rt[0]*tt,j[1]=_[1]+rt[1]*tt,j[2]=_[2]+rt[2]*tt,j[3]=_[3]+rt[3]*tt,j}},4578:function(ut){ut.exports=ht;function ht(j,_,rt,tt,st){return j[0]=_,j[1]=rt,j[2]=tt,j[3]=st,j}},7960:function(ut){ut.exports=ht;function ht(j,_){var rt=_[0]-j[0],tt=_[1]-j[1],st=_[2]-j[2],ot=_[3]-j[3];return rt*rt+tt*tt+st*st+ot*ot}},483:function(ut){ut.exports=ht;function ht(j){var _=j[0],rt=j[1],tt=j[2],st=j[3];return _*_+rt*rt+tt*tt+st*st}},6860:function(ut){ut.exports=ht;function ht(j,_,rt){return j[0]=_[0]-rt[0],j[1]=_[1]-rt[1],j[2]=_[2]-rt[2],j[3]=_[3]-rt[3],j}},5352:function(ut){ut.exports=ht;function ht(j,_,rt){var tt=_[0],st=_[1],ot=_[2],nt=_[3];return j[0]=rt[0]*tt+rt[4]*st+rt[8]*ot+rt[12]*nt,j[1]=rt[1]*tt+rt[5]*st+rt[9]*ot+rt[13]*nt,j[2]=rt[2]*tt+rt[6]*st+rt[10]*ot+rt[14]*nt,j[3]=rt[3]*tt+rt[7]*st+rt[11]*ot+rt[15]*nt,j}},4041:function(ut){ut.exports=ht;function ht(j,_,rt){var tt=_[0],st=_[1],ot=_[2],nt=rt[0],vt=rt[1],dt=rt[2],bt=rt[3],ft=bt*tt+vt*ot-dt*st,at=bt*st+dt*tt-nt*ot,yt=bt*ot+nt*st-vt*tt,St=-nt*tt-vt*st-dt*ot;return j[0]=ft*bt+St*-nt+at*-dt-yt*-vt,j[1]=at*bt+St*-vt+yt*-nt-ft*-dt,j[2]=yt*bt+St*-dt+ft*-vt-at*-nt,j[3]=_[3],j}},1848:function(ut,ht,j){var _=j(4905),rt=j(6468);ut.exports=tt;function tt(st){for(var ot=Array.isArray(st)?st:_(st),nt=0;nt0)continue;Qr=Br.slice(0,1).join("")}return Zt(Qr),qt+=Qr.length,Ut=Ut.slice(Qr.length),Ut.length}while(1)}function _r(){return/[^a-fA-F0-9]/.test(Nt)?(Zt(Ut.join("")),Dt=nt,Pt):(Ut.push(Nt),$t=Nt,Pt+1)}function Er(){return Nt==="."||/[eE]/.test(Nt)?(Ut.push(Nt),Dt=St,$t=Nt,Pt+1):Nt==="x"&&Ut.length===1&&Ut[0]==="0"?(Dt=ct,Ut.push(Nt),$t=Nt,Pt+1):/[^\d]/.test(Nt)?(Zt(Ut.join("")),Dt=nt,Pt):(Ut.push(Nt),$t=Nt,Pt+1)}function Rr(){return Nt==="f"&&(Ut.push(Nt),$t=Nt,Pt+=1),/[eE]/.test(Nt)||(Nt==="-"||Nt==="+")&&/[eE]/.test($t)?(Ut.push(Nt),$t=Nt,Pt+1):/[^\d]/.test(Nt)?(Zt(Ut.join("")),Dt=nt,Pt):(Ut.push(Nt),$t=Nt,Pt+1)}function zr(){if(/[^\d\w_]/.test(Nt)){var Br=Ut.join("");return sr[Br]?Dt=Tt:ar[Br]?Dt=Mt:Dt=_t,Zt(Ut.join("")),Dt=nt,Pt}return Ut.push(Nt),$t=Nt,Pt+1}}},3508:function(ut,ht,j){var _=j(6852);_=_.slice().filter(function(rt){return!/^(gl\_|texture)/.test(rt)}),ut.exports=_.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},6852:function(ut){ut.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},7932:function(ut,ht,j){var _=j(620);ut.exports=_.slice().concat(["layout","centroid","smooth","case","mat2x2","mat2x3","mat2x4","mat3x2","mat3x3","mat3x4","mat4x2","mat4x3","mat4x4","uvec2","uvec3","uvec4","samplerCubeShadow","sampler2DArray","sampler2DArrayShadow","isampler2D","isampler3D","isamplerCube","isampler2DArray","usampler2D","usampler3D","usamplerCube","usampler2DArray","coherent","restrict","readonly","writeonly","resource","atomic_uint","noperspective","patch","sample","subroutine","common","partition","active","filter","image1D","image2D","image3D","imageCube","iimage1D","iimage2D","iimage3D","iimageCube","uimage1D","uimage2D","uimage3D","uimageCube","image1DArray","image2DArray","iimage1DArray","iimage2DArray","uimage1DArray","uimage2DArray","image1DShadow","image2DShadow","image1DArrayShadow","image2DArrayShadow","imageBuffer","iimageBuffer","uimageBuffer","sampler1DArray","sampler1DArrayShadow","isampler1D","isampler1DArray","usampler1D","usampler1DArray","isampler2DRect","usampler2DRect","samplerBuffer","isamplerBuffer","usamplerBuffer","sampler2DMS","isampler2DMS","usampler2DMS","sampler2DMSArray","isampler2DMSArray","usampler2DMSArray"])},620:function(ut){ut.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]},7827:function(ut){ut.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},4905:function(ut,ht,j){var _=j(5874);ut.exports=rt;function rt(tt,st){var ot=_(st),nt=[];return nt=nt.concat(ot(tt)),nt=nt.concat(ot(null)),nt}},3236:function(ut){ut.exports=function(ht){typeof ht=="string"&&(ht=[ht]);for(var j=[].slice.call(arguments,1),_=[],rt=0;rt */ht.read=function(j,_,rt,tt,st){var ot,nt,vt=st*8-tt-1,dt=(1<>1,ft=-7,at=rt?st-1:0,yt=rt?-1:1,St=j[_+at];for(at+=yt,ot=St&(1<<-ft)-1,St>>=-ft,ft+=vt;ft>0;ot=ot*256+j[_+at],at+=yt,ft-=8);for(nt=ot&(1<<-ft)-1,ot>>=-ft,ft+=tt;ft>0;nt=nt*256+j[_+at],at+=yt,ft-=8);if(ot===0)ot=1-bt;else{if(ot===dt)return nt?NaN:(St?-1:1)*(1/0);nt=nt+Math.pow(2,tt),ot=ot-bt}return(St?-1:1)*nt*Math.pow(2,ot-tt)},ht.write=function(j,_,rt,tt,st,ot){var nt,vt,dt,bt=ot*8-st-1,ft=(1<>1,yt=st===23?Math.pow(2,-24)-Math.pow(2,-77):0,St=tt?0:ot-1,_t=tt?1:-1,Mt=_<0||_===0&&1/_<0?1:0;for(_=Math.abs(_),isNaN(_)||_===1/0?(vt=isNaN(_)?1:0,nt=ft):(nt=Math.floor(Math.log(_)/Math.LN2),_*(dt=Math.pow(2,-nt))<1&&(nt--,dt*=2),nt+at>=1?_+=yt/dt:_+=yt*Math.pow(2,1-at),_*dt>=2&&(nt++,dt/=2),nt+at>=ft?(vt=0,nt=ft):nt+at>=1?(vt=(_*dt-1)*Math.pow(2,st),nt=nt+at):(vt=_*Math.pow(2,at-1)*Math.pow(2,st),nt=0));st>=8;j[rt+St]=vt&255,St+=_t,vt/=256,st-=8);for(nt=nt<0;j[rt+St]=nt&255,St+=_t,nt/=256,bt-=8);j[rt+St-_t]|=Mt*128}},8954:function(ut,ht,j){ut.exports=at;var _=j(3250),rt=j(6803).Fw;function tt(yt,St,_t){this.vertices=yt,this.adjacent=St,this.boundary=_t,this.lastVisited=-1}tt.prototype.flip=function(){var yt=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=yt;var St=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=St};function st(yt,St,_t){this.vertices=yt,this.cell=St,this.index=_t}function ot(yt,St){return rt(yt.vertices,St.vertices)}function nt(yt){return function(){var St=this.tuple;return yt.apply(this,St)}}function vt(yt){var St=_[yt+1];return St||(St=_),nt(St)}var dt=[];function bt(yt,St,_t){this.dimension=yt,this.vertices=St,this.simplices=_t,this.interior=_t.filter(function(kt){return!kt.boundary}),this.tuple=new Array(yt+1);for(var Mt=0;Mt<=yt;++Mt)this.tuple[Mt]=this.vertices[Mt];var Tt=dt[yt];Tt||(Tt=dt[yt]=vt(yt)),this.orient=Tt}var ft=bt.prototype;ft.handleBoundaryDegeneracy=function(yt,St){var _t=this.dimension,Mt=this.vertices.length-1,Tt=this.tuple,kt=this.vertices,wt=[yt];for(yt.lastVisited=-Mt;wt.length>0;){yt=wt.pop();for(var ct=yt.adjacent,It=0;It<=_t;++It){var At=ct[It];if(!(!At.boundary||At.lastVisited<=-Mt)){for(var Ot=At.vertices,Pt=0;Pt<=_t;++Pt){var zt=Ot[Pt];zt<0?Tt[Pt]=St:Tt[Pt]=kt[zt]}var Dt=this.orient();if(Dt>0)return At;At.lastVisited=-Mt,Dt===0&&wt.push(At)}}}return null},ft.walk=function(yt,St){var _t=this.vertices.length-1,Mt=this.dimension,Tt=this.vertices,kt=this.tuple,wt=St?this.interior.length*Math.random()|0:this.interior.length-1,ct=this.interior[wt];e:for(;!ct.boundary;){for(var It=ct.vertices,At=ct.adjacent,Ot=0;Ot<=Mt;++Ot)kt[Ot]=Tt[It[Ot]];ct.lastVisited=_t;for(var Ot=0;Ot<=Mt;++Ot){var Pt=At[Ot];if(!(Pt.lastVisited>=_t)){var zt=kt[Ot];kt[Ot]=yt;var Dt=this.orient();if(kt[Ot]=zt,Dt<0){ct=Pt;continue e}else Pt.boundary?Pt.lastVisited=-_t:Pt.lastVisited=_t}}return}return ct},ft.addPeaks=function(yt,St){var _t=this.vertices.length-1,Mt=this.dimension,Tt=this.vertices,kt=this.tuple,wt=this.interior,ct=this.simplices,It=[St];St.lastVisited=_t,St.vertices[St.vertices.indexOf(-1)]=_t,St.boundary=!1,wt.push(St);for(var At=[];It.length>0;){var St=It.pop(),Ot=St.vertices,Pt=St.adjacent,zt=Ot.indexOf(_t);if(!(zt<0)){for(var Dt=0;Dt<=Mt;++Dt)if(Dt!==zt){var Nt=Pt[Dt];if(!(!Nt.boundary||Nt.lastVisited>=_t)){var $t=Nt.vertices;if(Nt.lastVisited!==-_t){for(var Ut=0,Ht=0;Ht<=Mt;++Ht)$t[Ht]<0?(Ut=Ht,kt[Ht]=yt):kt[Ht]=Tt[$t[Ht]];var Vt=this.orient();if(Vt>0){$t[Ut]=_t,Nt.boundary=!1,wt.push(Nt),It.push(Nt),Nt.lastVisited=_t;continue}else Nt.lastVisited=-_t}var Xt=Nt.adjacent,qt=Ot.slice(),er=Pt.slice(),lr=new tt(qt,er,!0);ct.push(lr);var Jt=Xt.indexOf(St);if(!(Jt<0)){Xt[Jt]=lr,er[zt]=Nt,qt[Dt]=-1,er[Dt]=St,Pt[Dt]=lr,lr.flip();for(var Ht=0;Ht<=Mt;++Ht){var Yt=qt[Ht];if(!(Yt<0||Yt===_t)){for(var rr=new Array(Mt-1),jt=0,ar=0;ar<=Mt;++ar){var sr=qt[ar];sr<0||ar===Ht||(rr[jt++]=sr)}At.push(new st(rr,lr,Ht))}}}}}}}At.sort(ot);for(var Dt=0;Dt+1=0?wt[It++]=ct[Ot]:At=Ot&1;if(At===(yt&1)){var Pt=wt[0];wt[0]=wt[1],wt[1]=Pt}St.push(wt)}}return St};function at(yt,St){var _t=yt.length;if(_t===0)throw new Error("Must have at least d+1 points");var Mt=yt[0].length;if(_t<=Mt)throw new Error("Must input at least d+1 points");var Tt=yt.slice(0,Mt+1),kt=_.apply(void 0,Tt);if(kt===0)throw new Error("Input not in general position");for(var wt=new Array(Mt+1),ct=0;ct<=Mt;++ct)wt[ct]=ct;kt<0&&(wt[0]=1,wt[1]=0);for(var It=new tt(wt,new Array(Mt+1),!1),At=It.adjacent,Ot=new Array(Mt+2),ct=0;ct<=Mt;++ct){for(var Pt=wt.slice(),zt=0;zt<=Mt;++zt)zt===ct&&(Pt[zt]=-1);var Dt=Pt[0];Pt[0]=Pt[1],Pt[1]=Dt;var Nt=new tt(Pt,new Array(Mt+1),!0);At[ct]=Nt,Ot[ct]=Nt}Ot[Mt+1]=It;for(var ct=0;ct<=Mt;++ct)for(var Pt=At[ct].vertices,$t=At[ct].adjacent,zt=0;zt<=Mt;++zt){var Ut=Pt[zt];if(Ut<0){$t[zt]=It;continue}for(var Ht=0;Ht<=Mt;++Ht)At[Ht].vertices.indexOf(Ut)<0&&($t[zt]=At[Ht])}for(var Vt=new bt(Mt,Tt,Ot),Xt=!!St,ct=Mt+1;ct<_t;++ct)Vt.insert(yt[ct],Xt);return Vt.boundary()}},3352:function(ut,ht,j){var _=j(2478),rt=0,tt=1,st=2;ut.exports=It;function ot(At,Ot,Pt,zt,Dt){this.mid=At,this.left=Ot,this.right=Pt,this.leftPoints=zt,this.rightPoints=Dt,this.count=(Ot?Ot.count:0)+(Pt?Pt.count:0)+zt.length}var nt=ot.prototype;function vt(At,Ot){At.mid=Ot.mid,At.left=Ot.left,At.right=Ot.right,At.leftPoints=Ot.leftPoints,At.rightPoints=Ot.rightPoints,At.count=Ot.count}function dt(At,Ot){var Pt=kt(Ot);At.mid=Pt.mid,At.left=Pt.left,At.right=Pt.right,At.leftPoints=Pt.leftPoints,At.rightPoints=Pt.rightPoints,At.count=Pt.count}function bt(At,Ot){var Pt=At.intervals([]);Pt.push(Ot),dt(At,Pt)}function ft(At,Ot){var Pt=At.intervals([]),zt=Pt.indexOf(Ot);return zt<0?rt:(Pt.splice(zt,1),dt(At,Pt),tt)}nt.intervals=function(At){return At.push.apply(At,this.leftPoints),this.left&&this.left.intervals(At),this.right&&this.right.intervals(At),At},nt.insert=function(At){var Ot=this.count-this.leftPoints.length;if(this.count+=1,At[1]3*(Ot+1)?bt(this,At):this.left.insert(At):this.left=kt([At]);else if(At[0]>this.mid)this.right?4*(this.right.count+1)>3*(Ot+1)?bt(this,At):this.right.insert(At):this.right=kt([At]);else{var Pt=_.ge(this.leftPoints,At,Mt),zt=_.ge(this.rightPoints,At,Tt);this.leftPoints.splice(Pt,0,At),this.rightPoints.splice(zt,0,At)}},nt.remove=function(At){var Ot=this.count-this.leftPoints;if(At[1]3*(Ot-1))return ft(this,At);var zt=this.left.remove(At);return zt===st?(this.left=null,this.count-=1,tt):(zt===tt&&(this.count-=1),zt)}else if(At[0]>this.mid){if(!this.right)return rt;var Dt=this.left?this.left.count:0;if(4*Dt>3*(Ot-1))return ft(this,At);var zt=this.right.remove(At);return zt===st?(this.right=null,this.count-=1,tt):(zt===tt&&(this.count-=1),zt)}else{if(this.count===1)return this.leftPoints[0]===At?st:rt;if(this.leftPoints.length===1&&this.leftPoints[0]===At){if(this.left&&this.right){for(var Nt=this,$t=this.left;$t.right;)Nt=$t,$t=$t.right;if(Nt===this)$t.right=this.right;else{var Ut=this.left,zt=this.right;Nt.count-=$t.count,Nt.right=$t.left,$t.left=Ut,$t.right=zt}vt(this,$t),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?vt(this,this.left):vt(this,this.right);return tt}for(var Ut=_.ge(this.leftPoints,At,Mt);Ut=0&&At[zt][1]>=Ot;--zt){var Dt=Pt(At[zt]);if(Dt)return Dt}}function St(At,Ot){for(var Pt=0;Ptthis.mid){if(this.right){var Pt=this.right.queryPoint(At,Ot);if(Pt)return Pt}return yt(this.rightPoints,At,Ot)}else return St(this.leftPoints,Ot)},nt.queryInterval=function(At,Ot,Pt){if(Atthis.mid&&this.right){var zt=this.right.queryInterval(At,Ot,Pt);if(zt)return zt}return Otthis.mid?yt(this.rightPoints,At,Pt):St(this.leftPoints,Pt)};function _t(At,Ot){return At-Ot}function Mt(At,Ot){var Pt=At[0]-Ot[0];return Pt||At[1]-Ot[1]}function Tt(At,Ot){var Pt=At[1]-Ot[1];return Pt||At[0]-Ot[0]}function kt(At){if(At.length===0)return null;for(var Ot=[],Pt=0;Pt>1],Dt=[],Nt=[],$t=[],Pt=0;PtZt&&or>0){var tr=(Kt[or][0]-Zt)/(Kt[or][0]-Kt[or-1][0]);return Kt[or][1]*(1-tr)+tr*Kt[or-1][1]}}return 1}var Ht=[0,0,0],Vt={showSurface:!1,showContour:!1,projections:[At.slice(),At.slice(),At.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function Xt(Zt,Kt){var or,tr,cr,mr=Kt.axes&&Kt.axes.lastCubeProps.axis||Ht,Ar=Kt.showSurface,br=Kt.showContour;for(or=0;or<3;++or)for(Ar=Ar||Kt.surfaceProject[or],tr=0;tr<3;++tr)br=br||Kt.contourProject[or][tr];for(or=0;or<3;++or){var Ir=Vt.projections[or];for(tr=0;tr<16;++tr)Ir[tr]=0;for(tr=0;tr<4;++tr)Ir[5*tr]=1;Ir[5*or]=0,Ir[12+or]=Kt.axesBounds[+(mr[or]>0)][or],at(Ir,Zt.model,Ir);var Tr=Vt.clipBounds[or];for(cr=0;cr<2;++cr)for(tr=0;tr<3;++tr)Tr[cr][tr]=Zt.clipBounds[cr][tr];Tr[0][or]=-1e8,Tr[1][or]=1e8}return Vt.showSurface=Ar,Vt.showContour=br,Vt}var qt={model:At,view:At,projection:At,inverseModel:At.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},er=At.slice(),lr=[1,0,0,0,1,0,0,0,1];function Jt(Zt,Kt){Zt=Zt||{};var or=this.gl;or.disable(or.CULL_FACE),this._colorMap.bind(0);var tr=qt;tr.model=Zt.model||At,tr.view=Zt.view||At,tr.projection=Zt.projection||At,tr.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],tr.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],tr.objectOffset=this.objectOffset,tr.contourColor=this.contourColor[0],tr.inverseModel=mt(tr.inverseModel,tr.model);for(var cr=0;cr<2;++cr)for(var mr=tr.clipBounds[cr],Ar=0;Ar<3;++Ar)mr[Ar]=Math.min(Math.max(this.clipBounds[cr][Ar],-1e8),1e8);tr.kambient=this.ambientLight,tr.kdiffuse=this.diffuseLight,tr.kspecular=this.specularLight,tr.roughness=this.roughness,tr.fresnel=this.fresnel,tr.opacity=this.opacity,tr.height=0,tr.permutation=lr,tr.vertexColor=this.vertexColor;var br=er;for(at(br,tr.view,tr.model),at(br,tr.projection,br),mt(br,br),cr=0;cr<3;++cr)tr.eyePosition[cr]=br[12+cr]/br[15];var Ir=br[15];for(cr=0;cr<3;++cr)Ir+=this.lightPosition[cr]*br[4*cr+3];for(cr=0;cr<3;++cr){var Tr=br[12+cr];for(Ar=0;Ar<3;++Ar)Tr+=br[4*Ar+cr]*this.lightPosition[Ar];tr.lightPosition[cr]=Tr/Ir}var _r=Xt(tr,this);if(_r.showSurface){for(this._shader.bind(),this._shader.uniforms=tr,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(or.TRIANGLES,this._vertexCount),cr=0;cr<3;++cr)!this.surfaceProject[cr]||!this.vertexCount||(this._shader.uniforms.model=_r.projections[cr],this._shader.uniforms.clipBounds=_r.clipBounds[cr],this._vao.draw(or.TRIANGLES,this._vertexCount));this._vao.unbind()}if(_r.showContour){var Er=this._contourShader;tr.kambient=1,tr.kdiffuse=0,tr.kspecular=0,tr.opacity=1,Er.bind(),Er.uniforms=tr;var Rr=this._contourVAO;for(Rr.bind(),cr=0;cr<3;++cr)for(Er.uniforms.permutation=Pt[cr],or.lineWidth(this.contourWidth[cr]*this.pixelRatio),Ar=0;Ar>4)/16)/255,cr=Math.floor(tr),mr=tr-cr,Ar=Kt[1]*(Zt.value[1]+(Zt.value[2]&15)/16)/255,br=Math.floor(Ar),Ir=Ar-br;cr+=1,br+=1;var Tr=or.position;Tr[0]=Tr[1]=Tr[2]=0;for(var _r=0;_r<2;++_r)for(var Er=_r?mr:1-mr,Rr=0;Rr<2;++Rr)for(var zr=Rr?Ir:1-Ir,Or=cr+_r,kr=br+Rr,Nr=Er*zr,Qr=0;Qr<3;++Qr)Tr[Qr]+=this._field[Qr].get(Or,kr)*Nr;for(var sn=this._pickResult.level,un=0;un<3;++un)if(sn[un]=St.le(this.contourLevels[un],Tr[un]),sn[un]<0)this.contourLevels[un].length>0&&(sn[un]=0);else if(sn[un]Math.abs(Xr-Tr[un])&&(sn[un]+=1)}for(or.index[0]=mr<.5?cr:cr+1,or.index[1]=Ir<.5?br:br+1,or.uv[0]=tr/Kt[0],or.uv[1]=Ar/Kt[1],Qr=0;Qr<3;++Qr)or.dataCoordinate[Qr]=this._field[Qr].get(or.index[0],or.index[1]);return or},$t.padField=function(Zt,Kt){var or=Kt.shape.slice(),tr=Zt.shape.slice();vt.assign(Zt.lo(1,1).hi(or[0],or[1]),Kt),vt.assign(Zt.lo(1).hi(or[0],1),Kt.hi(or[0],1)),vt.assign(Zt.lo(1,tr[1]-1).hi(or[0],1),Kt.lo(0,or[1]-1).hi(or[0],1)),vt.assign(Zt.lo(0,1).hi(1,or[1]),Kt.hi(1)),vt.assign(Zt.lo(tr[0]-1,1).hi(1,or[1]),Kt.lo(or[0]-1)),Zt.set(0,0,Kt.get(0,0)),Zt.set(0,tr[1]-1,Kt.get(0,or[1]-1)),Zt.set(tr[0]-1,0,Kt.get(or[0]-1,0)),Zt.set(tr[0]-1,tr[1]-1,Kt.get(or[0]-1,or[1]-1))};function rr(Zt,Kt){return Array.isArray(Zt)?[Kt(Zt[0]),Kt(Zt[1]),Kt(Zt[2])]:[Kt(Zt),Kt(Zt),Kt(Zt)]}function jt(Zt){return Array.isArray(Zt)?Zt.length===3?[Zt[0],Zt[1],Zt[2],1]:[Zt[0],Zt[1],Zt[2],Zt[3]]:[0,0,0,1]}function ar(Zt){if(Array.isArray(Zt)){if(Array.isArray(Zt))return[jt(Zt[0]),jt(Zt[1]),jt(Zt[2])];var Kt=jt(Zt);return[Kt.slice(),Kt.slice(),Kt.slice()]}}$t.update=function(Zt){Zt=Zt||{},this.objectOffset=Zt.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in Zt&&(this.contourWidth=rr(Zt.contourWidth,Number)),"showContour"in Zt&&(this.showContour=rr(Zt.showContour,Boolean)),"showSurface"in Zt&&(this.showSurface=!!Zt.showSurface),"contourTint"in Zt&&(this.contourTint=rr(Zt.contourTint,Boolean)),"contourColor"in Zt&&(this.contourColor=ar(Zt.contourColor)),"contourProject"in Zt&&(this.contourProject=rr(Zt.contourProject,function(Bn){return rr(Bn,Boolean)})),"surfaceProject"in Zt&&(this.surfaceProject=Zt.surfaceProject),"dynamicColor"in Zt&&(this.dynamicColor=ar(Zt.dynamicColor)),"dynamicTint"in Zt&&(this.dynamicTint=rr(Zt.dynamicTint,Number)),"dynamicWidth"in Zt&&(this.dynamicWidth=rr(Zt.dynamicWidth,Number)),"opacity"in Zt&&(this.opacity=Zt.opacity),"opacityscale"in Zt&&(this.opacityscale=Zt.opacityscale),"colorBounds"in Zt&&(this.colorBounds=Zt.colorBounds),"vertexColor"in Zt&&(this.vertexColor=Zt.vertexColor?1:0),"colormap"in Zt&&this._colorMap.setPixels(this.genColormap(Zt.colormap,this.opacityscale));var Kt=Zt.field||Zt.coords&&Zt.coords[2]||null,or=!1;if(Kt||(this._field[2].shape[0]||this._field[2].shape[2]?Kt=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):Kt=this._field[2].hi(0,0)),"field"in Zt||"coords"in Zt){var tr=(Kt.shape[0]+2)*(Kt.shape[1]+2);tr>this._field[2].data.length&&(ot.freeFloat(this._field[2].data),this._field[2].data=ot.mallocFloat(_.nextPow2(tr))),this._field[2]=bt(this._field[2].data,[Kt.shape[0]+2,Kt.shape[1]+2]),this.padField(this._field[2],Kt),this.shape=Kt.shape.slice();for(var cr=this.shape,mr=0;mr<2;++mr)this._field[2].size>this._field[mr].data.length&&(ot.freeFloat(this._field[mr].data),this._field[mr].data=ot.mallocFloat(this._field[2].size)),this._field[mr]=bt(this._field[mr].data,[cr[0]+2,cr[1]+2]);if(Zt.coords){var Ar=Zt.coords;if(!Array.isArray(Ar)||Ar.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(mr=0;mr<2;++mr){var br=Ar[mr];for(Rr=0;Rr<2;++Rr)if(br.shape[Rr]!==cr[Rr])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[mr],br)}}else if(Zt.ticks){var Ir=Zt.ticks;if(!Array.isArray(Ir)||Ir.length!==2)throw new Error("gl-surface: invalid ticks");for(mr=0;mr<2;++mr){var Tr=Ir[mr];if((Array.isArray(Tr)||Tr.length)&&(Tr=bt(Tr)),Tr.shape[0]!==cr[mr])throw new Error("gl-surface: invalid tick length");var _r=bt(Tr.data,cr);_r.stride[mr]=Tr.stride[0],_r.stride[mr^1]=0,this.padField(this._field[mr],_r)}}else{for(mr=0;mr<2;++mr){var Er=[0,0];Er[mr]=1,this._field[mr]=bt(this._field[mr].data,[cr[0]+2,cr[1]+2],Er,0)}this._field[0].set(0,0,0);for(var Rr=0;Rr0){for(var jr=0;jr<5;++jr)bn.pop();Dr-=1}continue e}}}Kn.push(Dr)}this._contourOffsets[Un]=yn,this._contourCounts[Un]=Kn}var $n=ot.mallocFloat(bn.length);for(mr=0;mrzt||Ot<0||Ot>zt)throw new Error("gl-texture2d: Invalid texture size");return It._shape=[At,Ot],It.bind(),Pt.texImage2D(Pt.TEXTURE_2D,0,It.format,At,Ot,0,It.format,It.type,null),It._mipLevels=[0],It}function at(It,At,Ot,Pt,zt,Dt){this.gl=It,this.handle=At,this.format=zt,this.type=Dt,this._shape=[Ot,Pt],this._mipLevels=[0],this._magFilter=It.NEAREST,this._minFilter=It.NEAREST,this._wrapS=It.CLAMP_TO_EDGE,this._wrapT=It.CLAMP_TO_EDGE,this._anisoSamples=1;var Nt=this,$t=[this._wrapS,this._wrapT];Object.defineProperties($t,[{get:function(){return Nt._wrapS},set:function(Ht){return Nt.wrapS=Ht}},{get:function(){return Nt._wrapT},set:function(Ht){return Nt.wrapT=Ht}}]),this._wrapVector=$t;var Ut=[this._shape[0],this._shape[1]];Object.defineProperties(Ut,[{get:function(){return Nt._shape[0]},set:function(Ht){return Nt.width=Ht}},{get:function(){return Nt._shape[1]},set:function(Ht){return Nt.height=Ht}}]),this._shapeVector=Ut}var mt=at.prototype;Object.defineProperties(mt,{minFilter:{get:function(){return this._minFilter},set:function(It){this.bind();var At=this.gl;if(this.type===At.FLOAT&&st.indexOf(It)>=0&&(At.getExtension("OES_texture_float_linear")||(It=At.NEAREST)),ot.indexOf(It)<0)throw new Error("gl-texture2d: Unknown filter mode "+It);return At.texParameteri(At.TEXTURE_2D,At.TEXTURE_MIN_FILTER,It),this._minFilter=It}},magFilter:{get:function(){return this._magFilter},set:function(It){this.bind();var At=this.gl;if(this.type===At.FLOAT&&st.indexOf(It)>=0&&(At.getExtension("OES_texture_float_linear")||(It=At.NEAREST)),ot.indexOf(It)<0)throw new Error("gl-texture2d: Unknown filter mode "+It);return At.texParameteri(At.TEXTURE_2D,At.TEXTURE_MAG_FILTER,It),this._magFilter=It}},mipSamples:{get:function(){return this._anisoSamples},set:function(It){var At=this._anisoSamples;if(this._anisoSamples=Math.max(It,1)|0,At!==this._anisoSamples){var Ot=this.gl.getExtension("EXT_texture_filter_anisotropic");Ot&&this.gl.texParameterf(this.gl.TEXTURE_2D,Ot.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(It){if(this.bind(),nt.indexOf(It)<0)throw new Error("gl-texture2d: Unknown wrap mode "+It);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,It),this._wrapS=It}},wrapT:{get:function(){return this._wrapT},set:function(It){if(this.bind(),nt.indexOf(It)<0)throw new Error("gl-texture2d: Unknown wrap mode "+It);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,It),this._wrapT=It}},wrap:{get:function(){return this._wrapVector},set:function(It){if(Array.isArray(It)||(It=[It,It]),It.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var At=0;At<2;++At)if(nt.indexOf(It[At])<0)throw new Error("gl-texture2d: Unknown wrap mode "+It);this._wrapS=It[0],this._wrapT=It[1];var Ot=this.gl;return this.bind(),Ot.texParameteri(Ot.TEXTURE_2D,Ot.TEXTURE_WRAP_S,this._wrapS),Ot.texParameteri(Ot.TEXTURE_2D,Ot.TEXTURE_WRAP_T,this._wrapT),It}},shape:{get:function(){return this._shapeVector},set:function(It){if(!Array.isArray(It))It=[It|0,It|0];else if(It.length!==2)throw new Error("gl-texture2d: Invalid texture shape");return ft(this,It[0]|0,It[1]|0),[It[0]|0,It[1]|0]}},width:{get:function(){return this._shape[0]},set:function(It){return It=It|0,ft(this,It,this._shape[1]),It}},height:{get:function(){return this._shape[1]},set:function(It){return It=It|0,ft(this,this._shape[0],It),It}}}),mt.bind=function(It){var At=this.gl;return It!==void 0&&At.activeTexture(At.TEXTURE0+(It|0)),At.bindTexture(At.TEXTURE_2D,this.handle),It!==void 0?It|0:At.getParameter(At.ACTIVE_TEXTURE)-At.TEXTURE0},mt.dispose=function(){this.gl.deleteTexture(this.handle)},mt.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var It=Math.min(this._shape[0],this._shape[1]),At=0;It>0;++At,It>>>=1)this._mipLevels.indexOf(At)<0&&this._mipLevels.push(At)},mt.setPixels=function(It,At,Ot,Pt){var zt=this.gl;this.bind(),Array.isArray(At)?(Pt=Ot,Ot=At[1]|0,At=At[0]|0):(At=At||0,Ot=Ot||0),Pt=Pt||0;var Dt=dt(It)?It:It.raw;if(Dt){var Nt=this._mipLevels.indexOf(Pt)<0;Nt?(zt.texImage2D(zt.TEXTURE_2D,0,this.format,this.format,this.type,Dt),this._mipLevels.push(Pt)):zt.texSubImage2D(zt.TEXTURE_2D,Pt,At,Ot,this.format,this.type,Dt)}else if(It.shape&&It.stride&&It.data){if(It.shape.length<2||At+It.shape[1]>this._shape[1]>>>Pt||Ot+It.shape[0]>this._shape[0]>>>Pt||At<0||Ot<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");_t(zt,At,Ot,Pt,this.format,this.type,this._mipLevels,It)}else throw new Error("gl-texture2d: Unsupported data type")};function St(It,At){return It.length===3?At[2]===1&&At[1]===It[0]*It[2]&&At[0]===It[2]:At[0]===1&&At[1]===It[0]}function _t(It,At,Ot,Pt,zt,Dt,Nt,$t){var Ut=$t.dtype,Ht=$t.shape.slice();if(Ht.length<2||Ht.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var Vt=0,Xt=0,qt=St(Ht,$t.stride.slice());if(Ut==="float32"?Vt=It.FLOAT:Ut==="float64"?(Vt=It.FLOAT,qt=!1,Ut="float32"):Ut==="uint8"?Vt=It.UNSIGNED_BYTE:(Vt=It.UNSIGNED_BYTE,qt=!1,Ut="uint8"),Ht.length===2)Xt=It.LUMINANCE,Ht=[Ht[0],Ht[1],1],$t=_($t.data,Ht,[$t.stride[0],$t.stride[1],1],$t.offset);else if(Ht.length===3){if(Ht[2]===1)Xt=It.ALPHA;else if(Ht[2]===2)Xt=It.LUMINANCE_ALPHA;else if(Ht[2]===3)Xt=It.RGB;else if(Ht[2]===4)Xt=It.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");Ht[2]}else throw new Error("gl-texture2d: Invalid shape for texture");if((Xt===It.LUMINANCE||Xt===It.ALPHA)&&(zt===It.LUMINANCE||zt===It.ALPHA)&&(Xt=zt),Xt!==zt)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var er=$t.size,lr=Nt.indexOf(Pt)<0;if(lr&&Nt.push(Pt),Vt===Dt&&qt)$t.offset===0&&$t.data.length===er?lr?It.texImage2D(It.TEXTURE_2D,Pt,zt,Ht[0],Ht[1],0,zt,Dt,$t.data):It.texSubImage2D(It.TEXTURE_2D,Pt,At,Ot,Ht[0],Ht[1],zt,Dt,$t.data):lr?It.texImage2D(It.TEXTURE_2D,Pt,zt,Ht[0],Ht[1],0,zt,Dt,$t.data.subarray($t.offset,$t.offset+er)):It.texSubImage2D(It.TEXTURE_2D,Pt,At,Ot,Ht[0],Ht[1],zt,Dt,$t.data.subarray($t.offset,$t.offset+er));else{var Jt;Dt===It.FLOAT?Jt=tt.mallocFloat32(er):Jt=tt.mallocUint8(er);var Yt=_(Jt,Ht,[Ht[2],Ht[2]*Ht[0],1]);Vt===It.FLOAT&&Dt===It.UNSIGNED_BYTE?bt(Yt,$t):rt.assign(Yt,$t),lr?It.texImage2D(It.TEXTURE_2D,Pt,zt,Ht[0],Ht[1],0,zt,Dt,Jt.subarray(0,er)):It.texSubImage2D(It.TEXTURE_2D,Pt,At,Ot,Ht[0],Ht[1],zt,Dt,Jt.subarray(0,er)),Dt===It.FLOAT?tt.freeFloat32(Jt):tt.freeUint8(Jt)}}function Mt(It){var At=It.createTexture();return It.bindTexture(It.TEXTURE_2D,At),It.texParameteri(It.TEXTURE_2D,It.TEXTURE_MIN_FILTER,It.NEAREST),It.texParameteri(It.TEXTURE_2D,It.TEXTURE_MAG_FILTER,It.NEAREST),It.texParameteri(It.TEXTURE_2D,It.TEXTURE_WRAP_S,It.CLAMP_TO_EDGE),It.texParameteri(It.TEXTURE_2D,It.TEXTURE_WRAP_T,It.CLAMP_TO_EDGE),At}function Et(It,At,Ot,Pt,zt){var Dt=It.getParameter(It.MAX_TEXTURE_SIZE);if(At<0||At>Dt||Ot<0||Ot>Dt)throw new Error("gl-texture2d: Invalid texture shape");if(zt===It.FLOAT&&!It.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var Nt=Mt(It);return It.texImage2D(It.TEXTURE_2D,0,Pt,At,Ot,0,Pt,zt,null),new at(It,Nt,At,Ot,Pt,zt)}function kt(It,At,Ot,Pt,zt,Dt){var Nt=Mt(It);return It.texImage2D(It.TEXTURE_2D,0,zt,zt,Dt,At),new at(It,Nt,Ot,Pt,zt,Dt)}function wt(It,At){var Ot=At.dtype,Pt=At.shape.slice(),zt=It.getParameter(It.MAX_TEXTURE_SIZE);if(Pt[0]<0||Pt[0]>zt||Pt[1]<0||Pt[1]>zt)throw new Error("gl-texture2d: Invalid texture size");var Dt=St(Pt,At.stride.slice()),Nt=0;Ot==="float32"?Nt=It.FLOAT:Ot==="float64"?(Nt=It.FLOAT,Dt=!1,Ot="float32"):Ot==="uint8"?Nt=It.UNSIGNED_BYTE:(Nt=It.UNSIGNED_BYTE,Dt=!1,Ot="uint8");var $t=0;if(Pt.length===2)$t=It.LUMINANCE,Pt=[Pt[0],Pt[1],1],At=_(At.data,Pt,[At.stride[0],At.stride[1],1],At.offset);else if(Pt.length===3)if(Pt[2]===1)$t=It.ALPHA;else if(Pt[2]===2)$t=It.LUMINANCE_ALPHA;else if(Pt[2]===3)$t=It.RGB;else if(Pt[2]===4)$t=It.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");Nt===It.FLOAT&&!It.getExtension("OES_texture_float")&&(Nt=It.UNSIGNED_BYTE,Dt=!1);var Ut,Ht,Vt=At.size;if(Dt)At.offset===0&&At.data.length===Vt?Ut=At.data:Ut=At.data.subarray(At.offset,At.offset+Vt);else{var Xt=[Pt[2],Pt[2]*Pt[0],1];Ht=tt.malloc(Vt,Ot);var qt=_(Ht,Pt,Xt,0);(Ot==="float32"||Ot==="float64")&&Nt===It.UNSIGNED_BYTE?bt(qt,At):rt.assign(qt,At),Ut=Ht.subarray(0,Vt)}var er=Mt(It);return It.texImage2D(It.TEXTURE_2D,0,$t,Pt[0],Pt[1],0,$t,Nt,Ut),Dt||tt.free(Ht),new at(It,er,Pt[0],Pt[1],$t,Nt)}function ct(It){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(st||vt(It),typeof arguments[1]=="number")return Et(It,arguments[1],arguments[2],arguments[3]||It.RGBA,arguments[4]||It.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return Et(It,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||It.RGBA,arguments[3]||It.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var At=arguments[1],Ot=dt(At)?At:At.raw;if(Ot)return kt(It,Ot,At.width|0,At.height|0,arguments[2]||It.RGBA,arguments[3]||It.UNSIGNED_BYTE);if(At.shape&&At.data&&At.stride)return wt(It,At)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}},1433:function(ut){function ht(j,_,rt){_?_.bind():j.bindBuffer(j.ELEMENT_ARRAY_BUFFER,null);var tt=j.getParameter(j.MAX_VERTEX_ATTRIBS)|0;if(rt){if(rt.length>tt)throw new Error("gl-vao: Too many vertex attributes");for(var st=0;st1?0:Math.acos(bt)}},9226:function(ut){ut.exports=ht;function ht(j,_){return j[0]=Math.ceil(_[0]),j[1]=Math.ceil(_[1]),j[2]=Math.ceil(_[2]),j}},3126:function(ut){ut.exports=ht;function ht(j){var _=new Float32Array(3);return _[0]=j[0],_[1]=j[1],_[2]=j[2],_}},3990:function(ut){ut.exports=ht;function ht(j,_){return j[0]=_[0],j[1]=_[1],j[2]=_[2],j}},1091:function(ut){ut.exports=ht;function ht(){var j=new Float32Array(3);return j[0]=0,j[1]=0,j[2]=0,j}},5911:function(ut){ut.exports=ht;function ht(j,_,rt){var tt=_[0],st=_[1],ot=_[2],nt=rt[0],vt=rt[1],dt=rt[2];return j[0]=st*dt-ot*vt,j[1]=ot*nt-tt*dt,j[2]=tt*vt-st*nt,j}},5455:function(ut,ht,j){ut.exports=j(7056)},7056:function(ut){ut.exports=ht;function ht(j,_){var rt=_[0]-j[0],tt=_[1]-j[1],st=_[2]-j[2];return Math.sqrt(rt*rt+tt*tt+st*st)}},4008:function(ut,ht,j){ut.exports=j(6690)},6690:function(ut){ut.exports=ht;function ht(j,_,rt){return j[0]=_[0]/rt[0],j[1]=_[1]/rt[1],j[2]=_[2]/rt[2],j}},244:function(ut){ut.exports=ht;function ht(j,_){return j[0]*_[0]+j[1]*_[1]+j[2]*_[2]}},2613:function(ut){ut.exports=1e-6},9922:function(ut,ht,j){ut.exports=rt;var _=j(2613);function rt(tt,st){var ot=tt[0],nt=tt[1],vt=tt[2],dt=st[0],bt=st[1],ft=st[2];return Math.abs(ot-dt)<=_*Math.max(1,Math.abs(ot),Math.abs(dt))&&Math.abs(nt-bt)<=_*Math.max(1,Math.abs(nt),Math.abs(bt))&&Math.abs(vt-ft)<=_*Math.max(1,Math.abs(vt),Math.abs(ft))}},9265:function(ut){ut.exports=ht;function ht(j,_){return j[0]===_[0]&&j[1]===_[1]&&j[2]===_[2]}},2681:function(ut){ut.exports=ht;function ht(j,_){return j[0]=Math.floor(_[0]),j[1]=Math.floor(_[1]),j[2]=Math.floor(_[2]),j}},5137:function(ut,ht,j){ut.exports=rt;var _=j(1091)();function rt(tt,st,ot,nt,vt,dt){var bt,ft;for(st||(st=3),ot||(ot=0),nt?ft=Math.min(nt*st+ot,tt.length):ft=tt.length,bt=ot;bt0&&(ot=1/Math.sqrt(ot),j[0]=_[0]*ot,j[1]=_[1]*ot,j[2]=_[2]*ot),j}},7636:function(ut){ut.exports=ht;function ht(j,_){_=_||1;var rt=Math.random()*2*Math.PI,tt=Math.random()*2-1,st=Math.sqrt(1-tt*tt)*_;return j[0]=Math.cos(rt)*st,j[1]=Math.sin(rt)*st,j[2]=tt*_,j}},6894:function(ut){ut.exports=ht;function ht(j,_,rt,tt){var st=rt[1],ot=rt[2],nt=_[1]-st,vt=_[2]-ot,dt=Math.sin(tt),bt=Math.cos(tt);return j[0]=_[0],j[1]=st+nt*bt-vt*dt,j[2]=ot+nt*dt+vt*bt,j}},109:function(ut){ut.exports=ht;function ht(j,_,rt,tt){var st=rt[0],ot=rt[2],nt=_[0]-st,vt=_[2]-ot,dt=Math.sin(tt),bt=Math.cos(tt);return j[0]=st+vt*dt+nt*bt,j[1]=_[1],j[2]=ot+vt*bt-nt*dt,j}},8692:function(ut){ut.exports=ht;function ht(j,_,rt,tt){var st=rt[0],ot=rt[1],nt=_[0]-st,vt=_[1]-ot,dt=Math.sin(tt),bt=Math.cos(tt);return j[0]=st+nt*bt-vt*dt,j[1]=ot+nt*dt+vt*bt,j[2]=_[2],j}},2447:function(ut){ut.exports=ht;function ht(j,_){return j[0]=Math.round(_[0]),j[1]=Math.round(_[1]),j[2]=Math.round(_[2]),j}},6621:function(ut){ut.exports=ht;function ht(j,_,rt){return j[0]=_[0]*rt,j[1]=_[1]*rt,j[2]=_[2]*rt,j}},8489:function(ut){ut.exports=ht;function ht(j,_,rt,tt){return j[0]=_[0]+rt[0]*tt,j[1]=_[1]+rt[1]*tt,j[2]=_[2]+rt[2]*tt,j}},1463:function(ut){ut.exports=ht;function ht(j,_,rt,tt){return j[0]=_,j[1]=rt,j[2]=tt,j}},6141:function(ut,ht,j){ut.exports=j(2953)},5486:function(ut,ht,j){ut.exports=j(3066)},2953:function(ut){ut.exports=ht;function ht(j,_){var rt=_[0]-j[0],tt=_[1]-j[1],st=_[2]-j[2];return rt*rt+tt*tt+st*st}},3066:function(ut){ut.exports=ht;function ht(j){var _=j[0],rt=j[1],tt=j[2];return _*_+rt*rt+tt*tt}},2229:function(ut,ht,j){ut.exports=j(6843)},6843:function(ut){ut.exports=ht;function ht(j,_,rt){return j[0]=_[0]-rt[0],j[1]=_[1]-rt[1],j[2]=_[2]-rt[2],j}},492:function(ut){ut.exports=ht;function ht(j,_,rt){var tt=_[0],st=_[1],ot=_[2];return j[0]=tt*rt[0]+st*rt[3]+ot*rt[6],j[1]=tt*rt[1]+st*rt[4]+ot*rt[7],j[2]=tt*rt[2]+st*rt[5]+ot*rt[8],j}},5673:function(ut){ut.exports=ht;function ht(j,_,rt){var tt=_[0],st=_[1],ot=_[2],nt=rt[3]*tt+rt[7]*st+rt[11]*ot+rt[15];return nt=nt||1,j[0]=(rt[0]*tt+rt[4]*st+rt[8]*ot+rt[12])/nt,j[1]=(rt[1]*tt+rt[5]*st+rt[9]*ot+rt[13])/nt,j[2]=(rt[2]*tt+rt[6]*st+rt[10]*ot+rt[14])/nt,j}},264:function(ut){ut.exports=ht;function ht(j,_,rt){var tt=_[0],st=_[1],ot=_[2],nt=rt[0],vt=rt[1],dt=rt[2],bt=rt[3],ft=bt*tt+vt*ot-dt*st,at=bt*st+dt*tt-nt*ot,mt=bt*ot+nt*st-vt*tt,St=-nt*tt-vt*st-dt*ot;return j[0]=ft*bt+St*-nt+at*-dt-mt*-vt,j[1]=at*bt+St*-vt+mt*-nt-ft*-dt,j[2]=mt*bt+St*-dt+ft*-vt-at*-nt,j}},4361:function(ut){ut.exports=ht;function ht(j,_,rt){return j[0]=_[0]+rt[0],j[1]=_[1]+rt[1],j[2]=_[2]+rt[2],j[3]=_[3]+rt[3],j}},2335:function(ut){ut.exports=ht;function ht(j){var _=new Float32Array(4);return _[0]=j[0],_[1]=j[1],_[2]=j[2],_[3]=j[3],_}},2933:function(ut){ut.exports=ht;function ht(j,_){return j[0]=_[0],j[1]=_[1],j[2]=_[2],j[3]=_[3],j}},7536:function(ut){ut.exports=ht;function ht(){var j=new Float32Array(4);return j[0]=0,j[1]=0,j[2]=0,j[3]=0,j}},4691:function(ut){ut.exports=ht;function ht(j,_){var rt=_[0]-j[0],tt=_[1]-j[1],st=_[2]-j[2],ot=_[3]-j[3];return Math.sqrt(rt*rt+tt*tt+st*st+ot*ot)}},1373:function(ut){ut.exports=ht;function ht(j,_,rt){return j[0]=_[0]/rt[0],j[1]=_[1]/rt[1],j[2]=_[2]/rt[2],j[3]=_[3]/rt[3],j}},3750:function(ut){ut.exports=ht;function ht(j,_){return j[0]*_[0]+j[1]*_[1]+j[2]*_[2]+j[3]*_[3]}},3390:function(ut){ut.exports=ht;function ht(j,_,rt,tt){var st=new Float32Array(4);return st[0]=j,st[1]=_,st[2]=rt,st[3]=tt,st}},9970:function(ut,ht,j){ut.exports={create:j(7536),clone:j(2335),fromValues:j(3390),copy:j(2933),set:j(4578),add:j(4361),subtract:j(6860),multiply:j(3576),divide:j(1373),min:j(2334),max:j(160),scale:j(9288),scaleAndAdd:j(4844),distance:j(4691),squaredDistance:j(7960),length:j(6808),squaredLength:j(483),negate:j(1498),inverse:j(4494),normalize:j(5177),dot:j(3750),lerp:j(2573),random:j(9131),transformMat4:j(5352),transformQuat:j(4041)}},4494:function(ut){ut.exports=ht;function ht(j,_){return j[0]=1/_[0],j[1]=1/_[1],j[2]=1/_[2],j[3]=1/_[3],j}},6808:function(ut){ut.exports=ht;function ht(j){var _=j[0],rt=j[1],tt=j[2],st=j[3];return Math.sqrt(_*_+rt*rt+tt*tt+st*st)}},2573:function(ut){ut.exports=ht;function ht(j,_,rt,tt){var st=_[0],ot=_[1],nt=_[2],vt=_[3];return j[0]=st+tt*(rt[0]-st),j[1]=ot+tt*(rt[1]-ot),j[2]=nt+tt*(rt[2]-nt),j[3]=vt+tt*(rt[3]-vt),j}},160:function(ut){ut.exports=ht;function ht(j,_,rt){return j[0]=Math.max(_[0],rt[0]),j[1]=Math.max(_[1],rt[1]),j[2]=Math.max(_[2],rt[2]),j[3]=Math.max(_[3],rt[3]),j}},2334:function(ut){ut.exports=ht;function ht(j,_,rt){return j[0]=Math.min(_[0],rt[0]),j[1]=Math.min(_[1],rt[1]),j[2]=Math.min(_[2],rt[2]),j[3]=Math.min(_[3],rt[3]),j}},3576:function(ut){ut.exports=ht;function ht(j,_,rt){return j[0]=_[0]*rt[0],j[1]=_[1]*rt[1],j[2]=_[2]*rt[2],j[3]=_[3]*rt[3],j}},1498:function(ut){ut.exports=ht;function ht(j,_){return j[0]=-_[0],j[1]=-_[1],j[2]=-_[2],j[3]=-_[3],j}},5177:function(ut){ut.exports=ht;function ht(j,_){var rt=_[0],tt=_[1],st=_[2],ot=_[3],nt=rt*rt+tt*tt+st*st+ot*ot;return nt>0&&(nt=1/Math.sqrt(nt),j[0]=rt*nt,j[1]=tt*nt,j[2]=st*nt,j[3]=ot*nt),j}},9131:function(ut,ht,j){var _=j(5177),rt=j(9288);ut.exports=tt;function tt(st,ot){return ot=ot||1,st[0]=Math.random(),st[1]=Math.random(),st[2]=Math.random(),st[3]=Math.random(),_(st,st),rt(st,st,ot),st}},9288:function(ut){ut.exports=ht;function ht(j,_,rt){return j[0]=_[0]*rt,j[1]=_[1]*rt,j[2]=_[2]*rt,j[3]=_[3]*rt,j}},4844:function(ut){ut.exports=ht;function ht(j,_,rt,tt){return j[0]=_[0]+rt[0]*tt,j[1]=_[1]+rt[1]*tt,j[2]=_[2]+rt[2]*tt,j[3]=_[3]+rt[3]*tt,j}},4578:function(ut){ut.exports=ht;function ht(j,_,rt,tt,st){return j[0]=_,j[1]=rt,j[2]=tt,j[3]=st,j}},7960:function(ut){ut.exports=ht;function ht(j,_){var rt=_[0]-j[0],tt=_[1]-j[1],st=_[2]-j[2],ot=_[3]-j[3];return rt*rt+tt*tt+st*st+ot*ot}},483:function(ut){ut.exports=ht;function ht(j){var _=j[0],rt=j[1],tt=j[2],st=j[3];return _*_+rt*rt+tt*tt+st*st}},6860:function(ut){ut.exports=ht;function ht(j,_,rt){return j[0]=_[0]-rt[0],j[1]=_[1]-rt[1],j[2]=_[2]-rt[2],j[3]=_[3]-rt[3],j}},5352:function(ut){ut.exports=ht;function ht(j,_,rt){var tt=_[0],st=_[1],ot=_[2],nt=_[3];return j[0]=rt[0]*tt+rt[4]*st+rt[8]*ot+rt[12]*nt,j[1]=rt[1]*tt+rt[5]*st+rt[9]*ot+rt[13]*nt,j[2]=rt[2]*tt+rt[6]*st+rt[10]*ot+rt[14]*nt,j[3]=rt[3]*tt+rt[7]*st+rt[11]*ot+rt[15]*nt,j}},4041:function(ut){ut.exports=ht;function ht(j,_,rt){var tt=_[0],st=_[1],ot=_[2],nt=rt[0],vt=rt[1],dt=rt[2],bt=rt[3],ft=bt*tt+vt*ot-dt*st,at=bt*st+dt*tt-nt*ot,mt=bt*ot+nt*st-vt*tt,St=-nt*tt-vt*st-dt*ot;return j[0]=ft*bt+St*-nt+at*-dt-mt*-vt,j[1]=at*bt+St*-vt+mt*-nt-ft*-dt,j[2]=mt*bt+St*-dt+ft*-vt-at*-nt,j[3]=_[3],j}},1848:function(ut,ht,j){var _=j(4905),rt=j(6468);ut.exports=tt;function tt(st){for(var ot=Array.isArray(st)?st:_(st),nt=0;nt0)continue;Qr=Or.slice(0,1).join("")}return Zt(Qr),qt+=Qr.length,Ut=Ut.slice(Qr.length),Ut.length}while(1)}function _r(){return/[^a-fA-F0-9]/.test(Nt)?(Zt(Ut.join("")),Dt=nt,Pt):(Ut.push(Nt),$t=Nt,Pt+1)}function Er(){return Nt==="."||/[eE]/.test(Nt)?(Ut.push(Nt),Dt=St,$t=Nt,Pt+1):Nt==="x"&&Ut.length===1&&Ut[0]==="0"?(Dt=ct,Ut.push(Nt),$t=Nt,Pt+1):/[^\d]/.test(Nt)?(Zt(Ut.join("")),Dt=nt,Pt):(Ut.push(Nt),$t=Nt,Pt+1)}function Rr(){return Nt==="f"&&(Ut.push(Nt),$t=Nt,Pt+=1),/[eE]/.test(Nt)||(Nt==="-"||Nt==="+")&&/[eE]/.test($t)?(Ut.push(Nt),$t=Nt,Pt+1):/[^\d]/.test(Nt)?(Zt(Ut.join("")),Dt=nt,Pt):(Ut.push(Nt),$t=Nt,Pt+1)}function zr(){if(/[^\d\w_]/.test(Nt)){var Or=Ut.join("");return sr[Or]?Dt=Et:ar[Or]?Dt=Mt:Dt=_t,Zt(Ut.join("")),Dt=nt,Pt}return Ut.push(Nt),$t=Nt,Pt+1}}},3508:function(ut,ht,j){var _=j(6852);_=_.slice().filter(function(rt){return!/^(gl\_|texture)/.test(rt)}),ut.exports=_.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},6852:function(ut){ut.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},7932:function(ut,ht,j){var _=j(620);ut.exports=_.slice().concat(["layout","centroid","smooth","case","mat2x2","mat2x3","mat2x4","mat3x2","mat3x3","mat3x4","mat4x2","mat4x3","mat4x4","uvec2","uvec3","uvec4","samplerCubeShadow","sampler2DArray","sampler2DArrayShadow","isampler2D","isampler3D","isamplerCube","isampler2DArray","usampler2D","usampler3D","usamplerCube","usampler2DArray","coherent","restrict","readonly","writeonly","resource","atomic_uint","noperspective","patch","sample","subroutine","common","partition","active","filter","image1D","image2D","image3D","imageCube","iimage1D","iimage2D","iimage3D","iimageCube","uimage1D","uimage2D","uimage3D","uimageCube","image1DArray","image2DArray","iimage1DArray","iimage2DArray","uimage1DArray","uimage2DArray","image1DShadow","image2DShadow","image1DArrayShadow","image2DArrayShadow","imageBuffer","iimageBuffer","uimageBuffer","sampler1DArray","sampler1DArrayShadow","isampler1D","isampler1DArray","usampler1D","usampler1DArray","isampler2DRect","usampler2DRect","samplerBuffer","isamplerBuffer","usamplerBuffer","sampler2DMS","isampler2DMS","usampler2DMS","sampler2DMSArray","isampler2DMSArray","usampler2DMSArray"])},620:function(ut){ut.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]},7827:function(ut){ut.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},4905:function(ut,ht,j){var _=j(5874);ut.exports=rt;function rt(tt,st){var ot=_(st),nt=[];return nt=nt.concat(ot(tt)),nt=nt.concat(ot(null)),nt}},3236:function(ut){ut.exports=function(ht){typeof ht=="string"&&(ht=[ht]);for(var j=[].slice.call(arguments,1),_=[],rt=0;rt */ht.read=function(j,_,rt,tt,st){var ot,nt,vt=st*8-tt-1,dt=(1<>1,ft=-7,at=rt?st-1:0,mt=rt?-1:1,St=j[_+at];for(at+=mt,ot=St&(1<<-ft)-1,St>>=-ft,ft+=vt;ft>0;ot=ot*256+j[_+at],at+=mt,ft-=8);for(nt=ot&(1<<-ft)-1,ot>>=-ft,ft+=tt;ft>0;nt=nt*256+j[_+at],at+=mt,ft-=8);if(ot===0)ot=1-bt;else{if(ot===dt)return nt?NaN:(St?-1:1)*(1/0);nt=nt+Math.pow(2,tt),ot=ot-bt}return(St?-1:1)*nt*Math.pow(2,ot-tt)},ht.write=function(j,_,rt,tt,st,ot){var nt,vt,dt,bt=ot*8-st-1,ft=(1<>1,mt=st===23?Math.pow(2,-24)-Math.pow(2,-77):0,St=tt?0:ot-1,_t=tt?1:-1,Mt=_<0||_===0&&1/_<0?1:0;for(_=Math.abs(_),isNaN(_)||_===1/0?(vt=isNaN(_)?1:0,nt=ft):(nt=Math.floor(Math.log(_)/Math.LN2),_*(dt=Math.pow(2,-nt))<1&&(nt--,dt*=2),nt+at>=1?_+=mt/dt:_+=mt*Math.pow(2,1-at),_*dt>=2&&(nt++,dt/=2),nt+at>=ft?(vt=0,nt=ft):nt+at>=1?(vt=(_*dt-1)*Math.pow(2,st),nt=nt+at):(vt=_*Math.pow(2,at-1)*Math.pow(2,st),nt=0));st>=8;j[rt+St]=vt&255,St+=_t,vt/=256,st-=8);for(nt=nt<0;j[rt+St]=nt&255,St+=_t,nt/=256,bt-=8);j[rt+St-_t]|=Mt*128}},8954:function(ut,ht,j){ut.exports=at;var _=j(3250),rt=j(6803).Fw;function tt(mt,St,_t){this.vertices=mt,this.adjacent=St,this.boundary=_t,this.lastVisited=-1}tt.prototype.flip=function(){var mt=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=mt;var St=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=St};function st(mt,St,_t){this.vertices=mt,this.cell=St,this.index=_t}function ot(mt,St){return rt(mt.vertices,St.vertices)}function nt(mt){return function(){var St=this.tuple;return mt.apply(this,St)}}function vt(mt){var St=_[mt+1];return St||(St=_),nt(St)}var dt=[];function bt(mt,St,_t){this.dimension=mt,this.vertices=St,this.simplices=_t,this.interior=_t.filter(function(kt){return!kt.boundary}),this.tuple=new Array(mt+1);for(var Mt=0;Mt<=mt;++Mt)this.tuple[Mt]=this.vertices[Mt];var Et=dt[mt];Et||(Et=dt[mt]=vt(mt)),this.orient=Et}var ft=bt.prototype;ft.handleBoundaryDegeneracy=function(mt,St){var _t=this.dimension,Mt=this.vertices.length-1,Et=this.tuple,kt=this.vertices,wt=[mt];for(mt.lastVisited=-Mt;wt.length>0;){mt=wt.pop();for(var ct=mt.adjacent,It=0;It<=_t;++It){var At=ct[It];if(!(!At.boundary||At.lastVisited<=-Mt)){for(var Ot=At.vertices,Pt=0;Pt<=_t;++Pt){var zt=Ot[Pt];zt<0?Et[Pt]=St:Et[Pt]=kt[zt]}var Dt=this.orient();if(Dt>0)return At;At.lastVisited=-Mt,Dt===0&&wt.push(At)}}}return null},ft.walk=function(mt,St){var _t=this.vertices.length-1,Mt=this.dimension,Et=this.vertices,kt=this.tuple,wt=St?this.interior.length*Math.random()|0:this.interior.length-1,ct=this.interior[wt];e:for(;!ct.boundary;){for(var It=ct.vertices,At=ct.adjacent,Ot=0;Ot<=Mt;++Ot)kt[Ot]=Et[It[Ot]];ct.lastVisited=_t;for(var Ot=0;Ot<=Mt;++Ot){var Pt=At[Ot];if(!(Pt.lastVisited>=_t)){var zt=kt[Ot];kt[Ot]=mt;var Dt=this.orient();if(kt[Ot]=zt,Dt<0){ct=Pt;continue e}else Pt.boundary?Pt.lastVisited=-_t:Pt.lastVisited=_t}}return}return ct},ft.addPeaks=function(mt,St){var _t=this.vertices.length-1,Mt=this.dimension,Et=this.vertices,kt=this.tuple,wt=this.interior,ct=this.simplices,It=[St];St.lastVisited=_t,St.vertices[St.vertices.indexOf(-1)]=_t,St.boundary=!1,wt.push(St);for(var At=[];It.length>0;){var St=It.pop(),Ot=St.vertices,Pt=St.adjacent,zt=Ot.indexOf(_t);if(!(zt<0)){for(var Dt=0;Dt<=Mt;++Dt)if(Dt!==zt){var Nt=Pt[Dt];if(!(!Nt.boundary||Nt.lastVisited>=_t)){var $t=Nt.vertices;if(Nt.lastVisited!==-_t){for(var Ut=0,Ht=0;Ht<=Mt;++Ht)$t[Ht]<0?(Ut=Ht,kt[Ht]=mt):kt[Ht]=Et[$t[Ht]];var Vt=this.orient();if(Vt>0){$t[Ut]=_t,Nt.boundary=!1,wt.push(Nt),It.push(Nt),Nt.lastVisited=_t;continue}else Nt.lastVisited=-_t}var Xt=Nt.adjacent,qt=Ot.slice(),er=Pt.slice(),lr=new tt(qt,er,!0);ct.push(lr);var Jt=Xt.indexOf(St);if(!(Jt<0)){Xt[Jt]=lr,er[zt]=Nt,qt[Dt]=-1,er[Dt]=St,Pt[Dt]=lr,lr.flip();for(var Ht=0;Ht<=Mt;++Ht){var Yt=qt[Ht];if(!(Yt<0||Yt===_t)){for(var rr=new Array(Mt-1),jt=0,ar=0;ar<=Mt;++ar){var sr=qt[ar];sr<0||ar===Ht||(rr[jt++]=sr)}At.push(new st(rr,lr,Ht))}}}}}}}At.sort(ot);for(var Dt=0;Dt+1=0?wt[It++]=ct[Ot]:At=Ot&1;if(At===(mt&1)){var Pt=wt[0];wt[0]=wt[1],wt[1]=Pt}St.push(wt)}}return St};function at(mt,St){var _t=mt.length;if(_t===0)throw new Error("Must have at least d+1 points");var Mt=mt[0].length;if(_t<=Mt)throw new Error("Must input at least d+1 points");var Et=mt.slice(0,Mt+1),kt=_.apply(void 0,Et);if(kt===0)throw new Error("Input not in general position");for(var wt=new Array(Mt+1),ct=0;ct<=Mt;++ct)wt[ct]=ct;kt<0&&(wt[0]=1,wt[1]=0);for(var It=new tt(wt,new Array(Mt+1),!1),At=It.adjacent,Ot=new Array(Mt+2),ct=0;ct<=Mt;++ct){for(var Pt=wt.slice(),zt=0;zt<=Mt;++zt)zt===ct&&(Pt[zt]=-1);var Dt=Pt[0];Pt[0]=Pt[1],Pt[1]=Dt;var Nt=new tt(Pt,new Array(Mt+1),!0);At[ct]=Nt,Ot[ct]=Nt}Ot[Mt+1]=It;for(var ct=0;ct<=Mt;++ct)for(var Pt=At[ct].vertices,$t=At[ct].adjacent,zt=0;zt<=Mt;++zt){var Ut=Pt[zt];if(Ut<0){$t[zt]=It;continue}for(var Ht=0;Ht<=Mt;++Ht)At[Ht].vertices.indexOf(Ut)<0&&($t[zt]=At[Ht])}for(var Vt=new bt(Mt,Et,Ot),Xt=!!St,ct=Mt+1;ct<_t;++ct)Vt.insert(mt[ct],Xt);return Vt.boundary()}},3352:function(ut,ht,j){var _=j(2478),rt=0,tt=1,st=2;ut.exports=It;function ot(At,Ot,Pt,zt,Dt){this.mid=At,this.left=Ot,this.right=Pt,this.leftPoints=zt,this.rightPoints=Dt,this.count=(Ot?Ot.count:0)+(Pt?Pt.count:0)+zt.length}var nt=ot.prototype;function vt(At,Ot){At.mid=Ot.mid,At.left=Ot.left,At.right=Ot.right,At.leftPoints=Ot.leftPoints,At.rightPoints=Ot.rightPoints,At.count=Ot.count}function dt(At,Ot){var Pt=kt(Ot);At.mid=Pt.mid,At.left=Pt.left,At.right=Pt.right,At.leftPoints=Pt.leftPoints,At.rightPoints=Pt.rightPoints,At.count=Pt.count}function bt(At,Ot){var Pt=At.intervals([]);Pt.push(Ot),dt(At,Pt)}function ft(At,Ot){var Pt=At.intervals([]),zt=Pt.indexOf(Ot);return zt<0?rt:(Pt.splice(zt,1),dt(At,Pt),tt)}nt.intervals=function(At){return At.push.apply(At,this.leftPoints),this.left&&this.left.intervals(At),this.right&&this.right.intervals(At),At},nt.insert=function(At){var Ot=this.count-this.leftPoints.length;if(this.count+=1,At[1]3*(Ot+1)?bt(this,At):this.left.insert(At):this.left=kt([At]);else if(At[0]>this.mid)this.right?4*(this.right.count+1)>3*(Ot+1)?bt(this,At):this.right.insert(At):this.right=kt([At]);else{var Pt=_.ge(this.leftPoints,At,Mt),zt=_.ge(this.rightPoints,At,Et);this.leftPoints.splice(Pt,0,At),this.rightPoints.splice(zt,0,At)}},nt.remove=function(At){var Ot=this.count-this.leftPoints;if(At[1]3*(Ot-1))return ft(this,At);var zt=this.left.remove(At);return zt===st?(this.left=null,this.count-=1,tt):(zt===tt&&(this.count-=1),zt)}else if(At[0]>this.mid){if(!this.right)return rt;var Dt=this.left?this.left.count:0;if(4*Dt>3*(Ot-1))return ft(this,At);var zt=this.right.remove(At);return zt===st?(this.right=null,this.count-=1,tt):(zt===tt&&(this.count-=1),zt)}else{if(this.count===1)return this.leftPoints[0]===At?st:rt;if(this.leftPoints.length===1&&this.leftPoints[0]===At){if(this.left&&this.right){for(var Nt=this,$t=this.left;$t.right;)Nt=$t,$t=$t.right;if(Nt===this)$t.right=this.right;else{var Ut=this.left,zt=this.right;Nt.count-=$t.count,Nt.right=$t.left,$t.left=Ut,$t.right=zt}vt(this,$t),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?vt(this,this.left):vt(this,this.right);return tt}for(var Ut=_.ge(this.leftPoints,At,Mt);Ut=0&&At[zt][1]>=Ot;--zt){var Dt=Pt(At[zt]);if(Dt)return Dt}}function St(At,Ot){for(var Pt=0;Ptthis.mid){if(this.right){var Pt=this.right.queryPoint(At,Ot);if(Pt)return Pt}return mt(this.rightPoints,At,Ot)}else return St(this.leftPoints,Ot)},nt.queryInterval=function(At,Ot,Pt){if(Atthis.mid&&this.right){var zt=this.right.queryInterval(At,Ot,Pt);if(zt)return zt}return Otthis.mid?mt(this.rightPoints,At,Pt):St(this.leftPoints,Pt)};function _t(At,Ot){return At-Ot}function Mt(At,Ot){var Pt=At[0]-Ot[0];return Pt||At[1]-Ot[1]}function Et(At,Ot){var Pt=At[1]-Ot[1];return Pt||At[0]-Ot[0]}function kt(At){if(At.length===0)return null;for(var Ot=[],Pt=0;Pt>1],Dt=[],Nt=[],$t=[],Pt=0;Pt * @license MIT -*/ut.exports=function(_){return _!=null&&(ht(_)||j(_)||!!_._isBuffer)};function ht(_){return!!_.constructor&&typeof _.constructor.isBuffer=="function"&&_.constructor.isBuffer(_)}function j(_){return typeof _.readFloatLE=="function"&&typeof _.slice=="function"&&ht(_.slice(0,0))}},5219:function(ut){ut.exports=function(ht){for(var j=ht.length,_,rt=0;rt13)&&_!==32&&_!==133&&_!==160&&_!==5760&&_!==6158&&(_<8192||_>8205)&&_!==8232&&_!==8233&&_!==8239&&_!==8287&&_!==8288&&_!==12288&&_!==65279)return!1;return!0}},395:function(ut){function ht(j,_,rt){return j*(1-rt)+_*rt}ut.exports=ht},2652:function(ut,ht,j){var _=j(4335),rt=j(6864),tt=j(1903),st=j(9921),ot=j(7608),nt=j(5665),vt={length:j(1387),normalize:j(3536),dot:j(244),cross:j(5911)},dt=rt(),bt=rt(),ft=[0,0,0,0],at=[[0,0,0],[0,0,0],[0,0,0]],yt=[0,0,0];ut.exports=function(kt,wt,ct,It,At,Ot){if(wt||(wt=[0,0,0]),ct||(ct=[0,0,0]),It||(It=[0,0,0]),At||(At=[0,0,0,1]),Ot||(Ot=[0,0,0,1]),!_(dt,kt)||(tt(bt,dt),bt[3]=0,bt[7]=0,bt[11]=0,bt[15]=1,Math.abs(st(bt)<1e-8)))return!1;var Pt=dt[3],zt=dt[7],Dt=dt[11],Nt=dt[12],$t=dt[13],Ut=dt[14],Ht=dt[15];if(Pt!==0||zt!==0||Dt!==0){ft[0]=Pt,ft[1]=zt,ft[2]=Dt,ft[3]=Ht;var Vt=ot(bt,bt);if(!Vt)return!1;nt(bt,bt),St(At,ft,bt)}else At[0]=At[1]=At[2]=0,At[3]=1;if(wt[0]=Nt,wt[1]=$t,wt[2]=Ut,_t(at,dt),ct[0]=vt.length(at[0]),vt.normalize(at[0],at[0]),It[0]=vt.dot(at[0],at[1]),Mt(at[1],at[1],at[0],1,-It[0]),ct[1]=vt.length(at[1]),vt.normalize(at[1],at[1]),It[0]/=ct[1],It[1]=vt.dot(at[0],at[2]),Mt(at[2],at[2],at[0],1,-It[1]),It[2]=vt.dot(at[1],at[2]),Mt(at[2],at[2],at[1],1,-It[2]),ct[2]=vt.length(at[2]),vt.normalize(at[2],at[2]),It[1]/=ct[2],It[2]/=ct[2],vt.cross(yt,at[1],at[2]),vt.dot(at[0],yt)<0)for(var Xt=0;Xt<3;Xt++)ct[Xt]*=-1,at[Xt][0]*=-1,at[Xt][1]*=-1,at[Xt][2]*=-1;return Ot[0]=.5*Math.sqrt(Math.max(1+at[0][0]-at[1][1]-at[2][2],0)),Ot[1]=.5*Math.sqrt(Math.max(1-at[0][0]+at[1][1]-at[2][2],0)),Ot[2]=.5*Math.sqrt(Math.max(1-at[0][0]-at[1][1]+at[2][2],0)),Ot[3]=.5*Math.sqrt(Math.max(1+at[0][0]+at[1][1]+at[2][2],0)),at[2][1]>at[1][2]&&(Ot[0]=-Ot[0]),at[0][2]>at[2][0]&&(Ot[1]=-Ot[1]),at[1][0]>at[0][1]&&(Ot[2]=-Ot[2]),!0};function St(Tt,kt,wt){var ct=kt[0],It=kt[1],At=kt[2],Ot=kt[3];return Tt[0]=wt[0]*ct+wt[4]*It+wt[8]*At+wt[12]*Ot,Tt[1]=wt[1]*ct+wt[5]*It+wt[9]*At+wt[13]*Ot,Tt[2]=wt[2]*ct+wt[6]*It+wt[10]*At+wt[14]*Ot,Tt[3]=wt[3]*ct+wt[7]*It+wt[11]*At+wt[15]*Ot,Tt}function _t(Tt,kt){Tt[0][0]=kt[0],Tt[0][1]=kt[1],Tt[0][2]=kt[2],Tt[1][0]=kt[4],Tt[1][1]=kt[5],Tt[1][2]=kt[6],Tt[2][0]=kt[8],Tt[2][1]=kt[9],Tt[2][2]=kt[10]}function Mt(Tt,kt,wt,ct,It){Tt[0]=kt[0]*ct+wt[0]*It,Tt[1]=kt[1]*ct+wt[1]*It,Tt[2]=kt[2]*ct+wt[2]*It}},4335:function(ut){ut.exports=function(j,_){var rt=_[15];if(rt===0)return!1;for(var tt=1/rt,st=0;st<16;st++)j[st]=_[st]*tt;return!0}},7442:function(ut,ht,j){var _=j(6658),rt=j(7182),tt=j(2652),st=j(9921),ot=j(8648),nt=ft(),vt=ft(),dt=ft();ut.exports=bt;function bt(St,_t,Mt,Tt){if(st(_t)===0||st(Mt)===0)return!1;var kt=tt(_t,nt.translate,nt.scale,nt.skew,nt.perspective,nt.quaternion),wt=tt(Mt,vt.translate,vt.scale,vt.skew,vt.perspective,vt.quaternion);return!kt||!wt?!1:(_(dt.translate,nt.translate,vt.translate,Tt),_(dt.skew,nt.skew,vt.skew,Tt),_(dt.scale,nt.scale,vt.scale,Tt),_(dt.perspective,nt.perspective,vt.perspective,Tt),ot(dt.quaternion,nt.quaternion,vt.quaternion,Tt),rt(St,dt.translate,dt.scale,dt.skew,dt.perspective,dt.quaternion),!0)}function ft(){return{translate:at(),scale:at(1),skew:at(),perspective:yt(),quaternion:yt()}}function at(St){return[St||0,St||0,St||0]}function yt(){return[0,0,0,1]}},7182:function(ut,ht,j){var _={identity:j(7894),translate:j(7656),multiply:j(6760),create:j(6864),scale:j(2504),fromRotationTranslation:j(6743)};_.create();var rt=_.create();ut.exports=function(st,ot,nt,vt,dt,bt){return _.identity(st),_.fromRotationTranslation(st,bt,ot),st[3]=dt[0],st[7]=dt[1],st[11]=dt[2],st[15]=dt[3],_.identity(rt),vt[2]!==0&&(rt[9]=vt[2],_.multiply(st,st,rt)),vt[1]!==0&&(rt[9]=0,rt[8]=vt[1],_.multiply(st,st,rt)),vt[0]!==0&&(rt[8]=0,rt[4]=vt[0],_.multiply(st,st,rt)),_.scale(st,st,nt),st}},4192:function(ut,ht,j){var _=j(2478),rt=j(7442),tt=j(7608),st=j(5567),ot=j(2408),nt=j(7089),vt=j(6582),dt=j(7656);j(2504);var bt=j(3536),ft=[0,0,0];ut.exports=_t;function at(Mt){this._components=Mt.slice(),this._time=[0],this.prevMatrix=Mt.slice(),this.nextMatrix=Mt.slice(),this.computedMatrix=Mt.slice(),this.computedInverse=Mt.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}var yt=at.prototype;yt.recalcMatrix=function(Mt){var Tt=this._time,kt=_.le(Tt,Mt),wt=this.computedMatrix;if(!(kt<0)){var ct=this._components;if(kt===Tt.length-1)for(var It=16*kt,At=0;At<16;++At)wt[At]=ct[It++];else{for(var Ot=Tt[kt+1]-Tt[kt],It=16*kt,Pt=this.prevMatrix,zt=!0,At=0;At<16;++At)Pt[At]=ct[It++];for(var Dt=this.nextMatrix,At=0;At<16;++At)Dt[At]=ct[It++],zt=zt&&Pt[At]===Dt[At];if(Ot<1e-6||zt)for(var At=0;At<16;++At)wt[At]=Pt[At];else rt(wt,Pt,Dt,(Mt-Tt[kt])/Ot)}var Nt=this.computedUp;Nt[0]=wt[1],Nt[1]=wt[5],Nt[2]=wt[9],bt(Nt,Nt);var $t=this.computedInverse;tt($t,wt);var Ut=this.computedEye,Ht=$t[15];Ut[0]=$t[12]/Ht,Ut[1]=$t[13]/Ht,Ut[2]=$t[14]/Ht;for(var Vt=this.computedCenter,Xt=Math.exp(this.computedRadius[0]),At=0;At<3;++At)Vt[At]=Ut[At]-wt[2+4*At]*Xt}},yt.idle=function(Mt){if(!(Mt1&&_(tt[vt[at-2]],tt[vt[at-1]],ft)<=0;)at-=1,vt.pop();for(vt.push(bt),at=dt.length;at>1&&_(tt[dt[at-2]],tt[dt[at-1]],ft)>=0;)at-=1,dt.pop();dt.push(bt)}for(var yt=new Array(dt.length+vt.length-2),St=0,ot=0,_t=vt.length;ot<_t;++ot)yt[St++]=vt[ot];for(var Mt=dt.length-2;Mt>0;--Mt)yt[St++]=dt[Mt];return yt}},351:function(ut,ht,j){ut.exports=rt;var _=j(4687);function rt(tt,st){st||(st=tt,tt=window);var ot=0,nt=0,vt=0,dt={shift:!1,alt:!1,control:!1,meta:!1},bt=!1;function ft(At){var Ot=!1;return"altKey"in At&&(Ot=Ot||At.altKey!==dt.alt,dt.alt=!!At.altKey),"shiftKey"in At&&(Ot=Ot||At.shiftKey!==dt.shift,dt.shift=!!At.shiftKey),"ctrlKey"in At&&(Ot=Ot||At.ctrlKey!==dt.control,dt.control=!!At.ctrlKey),"metaKey"in At&&(Ot=Ot||At.metaKey!==dt.meta,dt.meta=!!At.metaKey),Ot}function at(At,Ot){var Pt=_.x(Ot),zt=_.y(Ot);"buttons"in Ot&&(At=Ot.buttons|0),(At!==ot||Pt!==nt||zt!==vt||ft(Ot))&&(ot=At|0,nt=Pt||0,vt=zt||0,st&&st(ot,nt,vt,dt))}function yt(At){at(0,At)}function St(){(ot||nt||vt||dt.shift||dt.alt||dt.meta||dt.control)&&(nt=vt=0,ot=0,dt.shift=dt.alt=dt.control=dt.meta=!1,st&&st(0,0,0,dt))}function _t(At){ft(At)&&st&&st(ot,nt,vt,dt)}function Mt(At){_.buttons(At)===0?at(0,At):at(ot,At)}function Tt(At){at(ot|_.buttons(At),At)}function kt(At){at(ot&~_.buttons(At),At)}function wt(){bt||(bt=!0,tt.addEventListener("mousemove",Mt),tt.addEventListener("mousedown",Tt),tt.addEventListener("mouseup",kt),tt.addEventListener("mouseleave",yt),tt.addEventListener("mouseenter",yt),tt.addEventListener("mouseout",yt),tt.addEventListener("mouseover",yt),tt.addEventListener("blur",St),tt.addEventListener("keyup",_t),tt.addEventListener("keydown",_t),tt.addEventListener("keypress",_t),tt!==window&&(window.addEventListener("blur",St),window.addEventListener("keyup",_t),window.addEventListener("keydown",_t),window.addEventListener("keypress",_t)))}function ct(){bt&&(bt=!1,tt.removeEventListener("mousemove",Mt),tt.removeEventListener("mousedown",Tt),tt.removeEventListener("mouseup",kt),tt.removeEventListener("mouseleave",yt),tt.removeEventListener("mouseenter",yt),tt.removeEventListener("mouseout",yt),tt.removeEventListener("mouseover",yt),tt.removeEventListener("blur",St),tt.removeEventListener("keyup",_t),tt.removeEventListener("keydown",_t),tt.removeEventListener("keypress",_t),tt!==window&&(window.removeEventListener("blur",St),window.removeEventListener("keyup",_t),window.removeEventListener("keydown",_t),window.removeEventListener("keypress",_t)))}wt();var It={element:tt};return Object.defineProperties(It,{enabled:{get:function(){return bt},set:function(At){At?wt():ct()},enumerable:!0},buttons:{get:function(){return ot},enumerable:!0},x:{get:function(){return nt},enumerable:!0},y:{get:function(){return vt},enumerable:!0},mods:{get:function(){return dt},enumerable:!0}}),It}},24:function(ut){var ht={left:0,top:0};ut.exports=j;function j(rt,tt,st){tt=tt||rt.currentTarget||rt.srcElement,Array.isArray(st)||(st=[0,0]);var ot=rt.clientX||0,nt=rt.clientY||0,vt=_(tt);return st[0]=ot-vt.left,st[1]=nt-vt.top,st}function _(rt){return rt===window||rt===document||rt===document.body?ht:rt.getBoundingClientRect()}},4687:function(ut,ht){function j(st){if(typeof st=="object"){if("buttons"in st)return st.buttons;if("which"in st){var ot=st.which;if(ot===2)return 4;if(ot===3)return 2;if(ot>0)return 1<=0)return 1<0){if(er=1,Yt[jt++]=dt(wt[Ot],St,_t,Mt),Ot+=Vt,Tt>0)for(qt=1,Pt=wt[Ot],ar=Yt[jt]=dt(Pt,St,_t,Mt),Kt=Yt[jt+sr],cr=Yt[jt+or],Tr=Yt[jt+hr],(ar!==Kt||ar!==cr||ar!==Tr)&&(Dt=wt[Ot+zt],$t=wt[Ot+Nt],Ht=wt[Ot+Ut],nt(qt,er,Pt,Dt,$t,Ht,ar,Kt,cr,Tr,St,_t,Mt),Ir=rr[jt]=lr++),jt+=1,Ot+=Vt,qt=2;qt0)for(qt=1,Pt=wt[Ot],ar=Yt[jt]=dt(Pt,St,_t,Mt),Kt=Yt[jt+sr],cr=Yt[jt+or],Tr=Yt[jt+hr],(ar!==Kt||ar!==cr||ar!==Tr)&&(Dt=wt[Ot+zt],$t=wt[Ot+Nt],Ht=wt[Ot+Ut],nt(qt,er,Pt,Dt,$t,Ht,ar,Kt,cr,Tr,St,_t,Mt),Ir=rr[jt]=lr++,Tr!==cr&&vt(rr[jt+or],Ir,$t,Ht,cr,Tr,St,_t,Mt)),jt+=1,Ot+=Vt,qt=2;qt0){if(qt=1,Yt[jt++]=dt(wt[Ot],St,_t,Mt),Ot+=Vt,kt>0)for(er=1,Pt=wt[Ot],ar=Yt[jt]=dt(Pt,St,_t,Mt),cr=Yt[jt+or],Kt=Yt[jt+sr],Tr=Yt[jt+hr],(ar!==cr||ar!==Kt||ar!==Tr)&&(Dt=wt[Ot+zt],$t=wt[Ot+Nt],Ht=wt[Ot+Ut],nt(qt,er,Pt,Dt,$t,Ht,ar,cr,Kt,Tr,St,_t,Mt),Ir=rr[jt]=lr++),jt+=1,Ot+=Vt,er=2;er0)for(er=1,Pt=wt[Ot],ar=Yt[jt]=dt(Pt,St,_t,Mt),cr=Yt[jt+or],Kt=Yt[jt+sr],Tr=Yt[jt+hr],(ar!==cr||ar!==Kt||ar!==Tr)&&(Dt=wt[Ot+zt],$t=wt[Ot+Nt],Ht=wt[Ot+Ut],nt(qt,er,Pt,Dt,$t,Ht,ar,cr,Kt,Tr,St,_t,Mt),Ir=rr[jt]=lr++,Tr!==cr&&vt(rr[jt+or],Ir,Ht,Dt,Tr,cr,St,_t,Mt)),jt+=1,Ot+=Vt,er=2;er 0"),typeof ot.vertex!="function"&&nt("Must specify vertex creation function"),typeof ot.cell!="function"&&nt("Must specify cell creation function"),typeof ot.phase!="function"&&nt("Must specify phase function");for(var ft=ot.getters||[],at=new Array(dt),yt=0;yt=0?at[yt]=!0:at[yt]=!1;return tt(ot.vertex,ot.cell,ot.phase,bt,vt,at)}},6199:function(ut,ht,j){var _=j(1338),rt={zero:function(_t,Mt,Tt,kt){var wt=_t[0],ct=Tt[0];kt|=0;var It=0,At=ct;for(It=0;It2&&It[1]>2&&kt(ct.pick(-1,-1).lo(1,1).hi(It[0]-2,It[1]-2),wt.pick(-1,-1,0).lo(1,1).hi(It[0]-2,It[1]-2),wt.pick(-1,-1,1).lo(1,1).hi(It[0]-2,It[1]-2)),It[1]>2&&(Tt(ct.pick(0,-1).lo(1).hi(It[1]-2),wt.pick(0,-1,1).lo(1).hi(It[1]-2)),Mt(wt.pick(0,-1,0).lo(1).hi(It[1]-2))),It[1]>2&&(Tt(ct.pick(It[0]-1,-1).lo(1).hi(It[1]-2),wt.pick(It[0]-1,-1,1).lo(1).hi(It[1]-2)),Mt(wt.pick(It[0]-1,-1,0).lo(1).hi(It[1]-2))),It[0]>2&&(Tt(ct.pick(-1,0).lo(1).hi(It[0]-2),wt.pick(-1,0,0).lo(1).hi(It[0]-2)),Mt(wt.pick(-1,0,1).lo(1).hi(It[0]-2))),It[0]>2&&(Tt(ct.pick(-1,It[1]-1).lo(1).hi(It[0]-2),wt.pick(-1,It[1]-1,0).lo(1).hi(It[0]-2)),Mt(wt.pick(-1,It[1]-1,1).lo(1).hi(It[0]-2))),wt.set(0,0,0,0),wt.set(0,0,1,0),wt.set(It[0]-1,0,0,0),wt.set(It[0]-1,0,1,0),wt.set(0,It[1]-1,0,0),wt.set(0,It[1]-1,1,0),wt.set(It[0]-1,It[1]-1,0,0),wt.set(It[0]-1,It[1]-1,1,0),wt}}function St(_t){var Mt=_t.join(),It=dt[Mt];if(It)return It;for(var Tt=_t.length,kt=[bt,ft],wt=1;wt<=Tt;++wt)kt.push(at(wt));var ct=yt,It=ct.apply(void 0,kt);return dt[Mt]=It,It}ut.exports=function(Mt,Tt,kt){if(Array.isArray(kt)||(typeof kt=="string"?kt=_(Tt.dimension,kt):kt=_(Tt.dimension,"clamp")),Tt.size===0)return Mt;if(Tt.dimension===0)return Mt.set(0),Mt;var wt=St(kt);return wt(Mt,Tt)}},4317:function(ut){function ht(st,ot){var nt=Math.floor(ot),vt=ot-nt,dt=0<=nt&&nt0;){$t<64?(Tt=$t,$t=0):(Tt=64,$t-=64);for(var Ut=dt[1]|0;Ut>0;){Ut<64?(kt=Ut,Ut=0):(kt=64,Ut-=64),at=Dt+$t*ct+Ut*It,_t=Nt+$t*Ot+Ut*Pt;var Ht=0,Vt=0,Xt=0,qt=At,er=ct-wt*At,lr=It-Tt*ct,Jt=zt,Yt=Ot-wt*zt,rr=Pt-Tt*Ot;for(Xt=0;Xt0;){Pt<64?(Tt=Pt,Pt=0):(Tt=64,Pt-=64);for(var zt=dt[0]|0;zt>0;){zt<64?(Mt=zt,zt=0):(Mt=64,zt-=64),at=At+Pt*wt+zt*kt,_t=Ot+Pt*It+zt*ct;var Dt=0,Nt=0,$t=wt,Ut=kt-Tt*wt,Ht=It,Vt=ct-Tt*It;for(Nt=0;Nt0;){Nt<64?(kt=Nt,Nt=0):(kt=64,Nt-=64);for(var $t=dt[0]|0;$t>0;){$t<64?(Mt=$t,$t=0):(Mt=64,$t-=64);for(var Ut=dt[1]|0;Ut>0;){Ut<64?(Tt=Ut,Ut=0):(Tt=64,Ut-=64),at=zt+Nt*It+$t*wt+Ut*ct,_t=Dt+Nt*Pt+$t*At+Ut*Ot;var Ht=0,Vt=0,Xt=0,qt=It,er=wt-kt*It,lr=ct-Mt*wt,Jt=Pt,Yt=At-kt*Pt,rr=Ot-Mt*At;for(Xt=0;Xtyt;){Ht=0,Vt=Dt-Tt;t:for($t=0;$tqt)break t;Vt+=At,Ht+=Ot}for(Ht=Dt,Vt=Dt-Tt,$t=0;$t>1,Ut=$t-zt,Ht=$t+zt,Vt=Dt,Xt=Ut,qt=$t,er=Ht,lr=Nt,Jt=St+1,Yt=_t-1,rr=!0,jt,ar,sr,Zt,Kt,or,tr,cr,hr,br=0,Tr=0,Ir=0,Ar,_r,Er,Rr,zr,Br,kr,Nr,Qr,sn,un,qr,Xr,ln,mn,pn,En=It,Jr=ft(En),Or=ft(En);_r=kt*Vt,Er=kt*Xt,pn=Tt;e:for(Ar=0;Ar0){ar=Vt,Vt=Xt,Xt=ar;break e}if(Ir<0)break e;pn+=Ot}_r=kt*er,Er=kt*lr,pn=Tt;e:for(Ar=0;Ar0){ar=er,er=lr,lr=ar;break e}if(Ir<0)break e;pn+=Ot}_r=kt*Vt,Er=kt*qt,pn=Tt;e:for(Ar=0;Ar0){ar=Vt,Vt=qt,qt=ar;break e}if(Ir<0)break e;pn+=Ot}_r=kt*Xt,Er=kt*qt,pn=Tt;e:for(Ar=0;Ar0){ar=Xt,Xt=qt,qt=ar;break e}if(Ir<0)break e;pn+=Ot}_r=kt*Vt,Er=kt*er,pn=Tt;e:for(Ar=0;Ar0){ar=Vt,Vt=er,er=ar;break e}if(Ir<0)break e;pn+=Ot}_r=kt*qt,Er=kt*er,pn=Tt;e:for(Ar=0;Ar0){ar=qt,qt=er,er=ar;break e}if(Ir<0)break e;pn+=Ot}_r=kt*Xt,Er=kt*lr,pn=Tt;e:for(Ar=0;Ar0){ar=Xt,Xt=lr,lr=ar;break e}if(Ir<0)break e;pn+=Ot}_r=kt*Xt,Er=kt*qt,pn=Tt;e:for(Ar=0;Ar0){ar=Xt,Xt=qt,qt=ar;break e}if(Ir<0)break e;pn+=Ot}_r=kt*er,Er=kt*lr,pn=Tt;e:for(Ar=0;Ar0){ar=er,er=lr,lr=ar;break e}if(Ir<0)break e;pn+=Ot}for(_r=kt*Vt,Er=kt*Xt,Rr=kt*qt,zr=kt*er,Br=kt*lr,kr=kt*Dt,Nr=kt*$t,Qr=kt*Nt,mn=0,pn=Tt,Ar=0;Ar0)Yt--;else if(Ir<0){for(_r=kt*or,Er=kt*Jt,Rr=kt*Yt,pn=Tt,Ar=0;Ar0)for(;;){tr=Tt+Yt*kt,mn=0;e:for(Ar=0;Ar0){if(--YtNt){e:for(;;){for(tr=Tt+Jt*kt,mn=0,pn=Tt,Ar=0;Ar1&&yt?_t(at,yt[0],yt[1]):_t(at)}var vt={"uint32,1,0":function(bt,ft){return function(at){var yt=at.data,St=at.offset|0,_t=at.shape,Mt=at.stride,Tt=Mt[0]|0,kt=_t[0]|0,wt=Mt[1]|0,ct=_t[1]|0,It=wt,At=wt,Ot=1;kt<=32?bt(0,kt-1,yt,St,Tt,wt,kt,ct,It,At,Ot):ft(0,kt-1,yt,St,Tt,wt,kt,ct,It,At,Ot)}}};function dt(bt,ft){var at=[ft,bt].join(","),yt=vt[at],St=st(bt,ft),_t=nt(bt,ft,St);return yt(St,_t)}ut.exports=dt},446:function(ut,ht,j){var _=j(7640),rt={};function tt(st){var ot=st.order,nt=st.dtype,vt=[ot,nt],dt=vt.join(":"),bt=rt[dt];return bt||(rt[dt]=bt=_(ot,nt)),bt(st),st}ut.exports=tt},9618:function(ut,ht,j){var _=j(7163),rt=typeof Float64Array<"u";function tt(ft,at){return ft[0]-at[0]}function st(){var ft=this.stride,at=new Array(ft.length),yt;for(yt=0;yt=0&&(wt=Tt|0,kt+=It*wt,ct-=wt),new St(this.data,ct,It,kt)},_t.step=function(Tt){var kt=this.shape[0],wt=this.stride[0],ct=this.offset,It=0,At=Math.ceil;return typeof Tt=="number"&&(It=Tt|0,It<0?(ct+=wt*(kt-1),kt=At(-kt/It)):kt=At(kt/It),wt*=It),new St(this.data,kt,wt,ct)},_t.transpose=function(Tt){Tt=Tt===void 0?0:Tt|0;var kt=this.shape,wt=this.stride;return new St(this.data,kt[Tt],wt[Tt],this.offset)},_t.pick=function(Tt){var kt=[],wt=[],ct=this.offset;typeof Tt=="number"&&Tt>=0?ct=ct+this.stride[0]*Tt|0:(kt.push(this.shape[0]),wt.push(this.stride[0]));var It=at[kt.length+1];return It(this.data,kt,wt,ct)},function(Tt,kt,wt,ct){return new St(Tt,kt[0],wt[0],ct)}},2:function(ft,at,yt){function St(Mt,Tt,kt,wt,ct,It){this.data=Mt,this.shape=[Tt,kt],this.stride=[wt,ct],this.offset=It|0}var _t=St.prototype;return _t.dtype=ft,_t.dimension=2,Object.defineProperty(_t,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(_t,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),_t.set=function(Tt,kt,wt){return ft==="generic"?this.data.set(this.offset+this.stride[0]*Tt+this.stride[1]*kt,wt):this.data[this.offset+this.stride[0]*Tt+this.stride[1]*kt]=wt},_t.get=function(Tt,kt){return ft==="generic"?this.data.get(this.offset+this.stride[0]*Tt+this.stride[1]*kt):this.data[this.offset+this.stride[0]*Tt+this.stride[1]*kt]},_t.index=function(Tt,kt){return this.offset+this.stride[0]*Tt+this.stride[1]*kt},_t.hi=function(Tt,kt){return new St(this.data,typeof Tt!="number"||Tt<0?this.shape[0]:Tt|0,typeof kt!="number"||kt<0?this.shape[1]:kt|0,this.stride[0],this.stride[1],this.offset)},_t.lo=function(Tt,kt){var wt=this.offset,ct=0,It=this.shape[0],At=this.shape[1],Ot=this.stride[0],Pt=this.stride[1];return typeof Tt=="number"&&Tt>=0&&(ct=Tt|0,wt+=Ot*ct,It-=ct),typeof kt=="number"&&kt>=0&&(ct=kt|0,wt+=Pt*ct,At-=ct),new St(this.data,It,At,Ot,Pt,wt)},_t.step=function(Tt,kt){var wt=this.shape[0],ct=this.shape[1],It=this.stride[0],At=this.stride[1],Ot=this.offset,Pt=0,zt=Math.ceil;return typeof Tt=="number"&&(Pt=Tt|0,Pt<0?(Ot+=It*(wt-1),wt=zt(-wt/Pt)):wt=zt(wt/Pt),It*=Pt),typeof kt=="number"&&(Pt=kt|0,Pt<0?(Ot+=At*(ct-1),ct=zt(-ct/Pt)):ct=zt(ct/Pt),At*=Pt),new St(this.data,wt,ct,It,At,Ot)},_t.transpose=function(Tt,kt){Tt=Tt===void 0?0:Tt|0,kt=kt===void 0?1:kt|0;var wt=this.shape,ct=this.stride;return new St(this.data,wt[Tt],wt[kt],ct[Tt],ct[kt],this.offset)},_t.pick=function(Tt,kt){var wt=[],ct=[],It=this.offset;typeof Tt=="number"&&Tt>=0?It=It+this.stride[0]*Tt|0:(wt.push(this.shape[0]),ct.push(this.stride[0])),typeof kt=="number"&&kt>=0?It=It+this.stride[1]*kt|0:(wt.push(this.shape[1]),ct.push(this.stride[1]));var At=at[wt.length+1];return At(this.data,wt,ct,It)},function(Tt,kt,wt,ct){return new St(Tt,kt[0],kt[1],wt[0],wt[1],ct)}},3:function(ft,at,yt){function St(Mt,Tt,kt,wt,ct,It,At,Ot){this.data=Mt,this.shape=[Tt,kt,wt],this.stride=[ct,It,At],this.offset=Ot|0}var _t=St.prototype;return _t.dtype=ft,_t.dimension=3,Object.defineProperty(_t,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(_t,"order",{get:function(){var Tt=Math.abs(this.stride[0]),kt=Math.abs(this.stride[1]),wt=Math.abs(this.stride[2]);return Tt>kt?kt>wt?[2,1,0]:Tt>wt?[1,2,0]:[1,0,2]:Tt>wt?[2,0,1]:wt>kt?[0,1,2]:[0,2,1]}}),_t.set=function(Tt,kt,wt,ct){return ft==="generic"?this.data.set(this.offset+this.stride[0]*Tt+this.stride[1]*kt+this.stride[2]*wt,ct):this.data[this.offset+this.stride[0]*Tt+this.stride[1]*kt+this.stride[2]*wt]=ct},_t.get=function(Tt,kt,wt){return ft==="generic"?this.data.get(this.offset+this.stride[0]*Tt+this.stride[1]*kt+this.stride[2]*wt):this.data[this.offset+this.stride[0]*Tt+this.stride[1]*kt+this.stride[2]*wt]},_t.index=function(Tt,kt,wt){return this.offset+this.stride[0]*Tt+this.stride[1]*kt+this.stride[2]*wt},_t.hi=function(Tt,kt,wt){return new St(this.data,typeof Tt!="number"||Tt<0?this.shape[0]:Tt|0,typeof kt!="number"||kt<0?this.shape[1]:kt|0,typeof wt!="number"||wt<0?this.shape[2]:wt|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},_t.lo=function(Tt,kt,wt){var ct=this.offset,It=0,At=this.shape[0],Ot=this.shape[1],Pt=this.shape[2],zt=this.stride[0],Dt=this.stride[1],Nt=this.stride[2];return typeof Tt=="number"&&Tt>=0&&(It=Tt|0,ct+=zt*It,At-=It),typeof kt=="number"&&kt>=0&&(It=kt|0,ct+=Dt*It,Ot-=It),typeof wt=="number"&&wt>=0&&(It=wt|0,ct+=Nt*It,Pt-=It),new St(this.data,At,Ot,Pt,zt,Dt,Nt,ct)},_t.step=function(Tt,kt,wt){var ct=this.shape[0],It=this.shape[1],At=this.shape[2],Ot=this.stride[0],Pt=this.stride[1],zt=this.stride[2],Dt=this.offset,Nt=0,$t=Math.ceil;return typeof Tt=="number"&&(Nt=Tt|0,Nt<0?(Dt+=Ot*(ct-1),ct=$t(-ct/Nt)):ct=$t(ct/Nt),Ot*=Nt),typeof kt=="number"&&(Nt=kt|0,Nt<0?(Dt+=Pt*(It-1),It=$t(-It/Nt)):It=$t(It/Nt),Pt*=Nt),typeof wt=="number"&&(Nt=wt|0,Nt<0?(Dt+=zt*(At-1),At=$t(-At/Nt)):At=$t(At/Nt),zt*=Nt),new St(this.data,ct,It,At,Ot,Pt,zt,Dt)},_t.transpose=function(Tt,kt,wt){Tt=Tt===void 0?0:Tt|0,kt=kt===void 0?1:kt|0,wt=wt===void 0?2:wt|0;var ct=this.shape,It=this.stride;return new St(this.data,ct[Tt],ct[kt],ct[wt],It[Tt],It[kt],It[wt],this.offset)},_t.pick=function(Tt,kt,wt){var ct=[],It=[],At=this.offset;typeof Tt=="number"&&Tt>=0?At=At+this.stride[0]*Tt|0:(ct.push(this.shape[0]),It.push(this.stride[0])),typeof kt=="number"&&kt>=0?At=At+this.stride[1]*kt|0:(ct.push(this.shape[1]),It.push(this.stride[1])),typeof wt=="number"&&wt>=0?At=At+this.stride[2]*wt|0:(ct.push(this.shape[2]),It.push(this.stride[2]));var Ot=at[ct.length+1];return Ot(this.data,ct,It,At)},function(Tt,kt,wt,ct){return new St(Tt,kt[0],kt[1],kt[2],wt[0],wt[1],wt[2],ct)}},4:function(ft,at,yt){function St(Mt,Tt,kt,wt,ct,It,At,Ot,Pt,zt){this.data=Mt,this.shape=[Tt,kt,wt,ct],this.stride=[It,At,Ot,Pt],this.offset=zt|0}var _t=St.prototype;return _t.dtype=ft,_t.dimension=4,Object.defineProperty(_t,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(_t,"order",{get:yt}),_t.set=function(Tt,kt,wt,ct,It){return ft==="generic"?this.data.set(this.offset+this.stride[0]*Tt+this.stride[1]*kt+this.stride[2]*wt+this.stride[3]*ct,It):this.data[this.offset+this.stride[0]*Tt+this.stride[1]*kt+this.stride[2]*wt+this.stride[3]*ct]=It},_t.get=function(Tt,kt,wt,ct){return ft==="generic"?this.data.get(this.offset+this.stride[0]*Tt+this.stride[1]*kt+this.stride[2]*wt+this.stride[3]*ct):this.data[this.offset+this.stride[0]*Tt+this.stride[1]*kt+this.stride[2]*wt+this.stride[3]*ct]},_t.index=function(Tt,kt,wt,ct){return this.offset+this.stride[0]*Tt+this.stride[1]*kt+this.stride[2]*wt+this.stride[3]*ct},_t.hi=function(Tt,kt,wt,ct){return new St(this.data,typeof Tt!="number"||Tt<0?this.shape[0]:Tt|0,typeof kt!="number"||kt<0?this.shape[1]:kt|0,typeof wt!="number"||wt<0?this.shape[2]:wt|0,typeof ct!="number"||ct<0?this.shape[3]:ct|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},_t.lo=function(Tt,kt,wt,ct){var It=this.offset,At=0,Ot=this.shape[0],Pt=this.shape[1],zt=this.shape[2],Dt=this.shape[3],Nt=this.stride[0],$t=this.stride[1],Ut=this.stride[2],Ht=this.stride[3];return typeof Tt=="number"&&Tt>=0&&(At=Tt|0,It+=Nt*At,Ot-=At),typeof kt=="number"&&kt>=0&&(At=kt|0,It+=$t*At,Pt-=At),typeof wt=="number"&&wt>=0&&(At=wt|0,It+=Ut*At,zt-=At),typeof ct=="number"&&ct>=0&&(At=ct|0,It+=Ht*At,Dt-=At),new St(this.data,Ot,Pt,zt,Dt,Nt,$t,Ut,Ht,It)},_t.step=function(Tt,kt,wt,ct){var It=this.shape[0],At=this.shape[1],Ot=this.shape[2],Pt=this.shape[3],zt=this.stride[0],Dt=this.stride[1],Nt=this.stride[2],$t=this.stride[3],Ut=this.offset,Ht=0,Vt=Math.ceil;return typeof Tt=="number"&&(Ht=Tt|0,Ht<0?(Ut+=zt*(It-1),It=Vt(-It/Ht)):It=Vt(It/Ht),zt*=Ht),typeof kt=="number"&&(Ht=kt|0,Ht<0?(Ut+=Dt*(At-1),At=Vt(-At/Ht)):At=Vt(At/Ht),Dt*=Ht),typeof wt=="number"&&(Ht=wt|0,Ht<0?(Ut+=Nt*(Ot-1),Ot=Vt(-Ot/Ht)):Ot=Vt(Ot/Ht),Nt*=Ht),typeof ct=="number"&&(Ht=ct|0,Ht<0?(Ut+=$t*(Pt-1),Pt=Vt(-Pt/Ht)):Pt=Vt(Pt/Ht),$t*=Ht),new St(this.data,It,At,Ot,Pt,zt,Dt,Nt,$t,Ut)},_t.transpose=function(Tt,kt,wt,ct){Tt=Tt===void 0?0:Tt|0,kt=kt===void 0?1:kt|0,wt=wt===void 0?2:wt|0,ct=ct===void 0?3:ct|0;var It=this.shape,At=this.stride;return new St(this.data,It[Tt],It[kt],It[wt],It[ct],At[Tt],At[kt],At[wt],At[ct],this.offset)},_t.pick=function(Tt,kt,wt,ct){var It=[],At=[],Ot=this.offset;typeof Tt=="number"&&Tt>=0?Ot=Ot+this.stride[0]*Tt|0:(It.push(this.shape[0]),At.push(this.stride[0])),typeof kt=="number"&&kt>=0?Ot=Ot+this.stride[1]*kt|0:(It.push(this.shape[1]),At.push(this.stride[1])),typeof wt=="number"&&wt>=0?Ot=Ot+this.stride[2]*wt|0:(It.push(this.shape[2]),At.push(this.stride[2])),typeof ct=="number"&&ct>=0?Ot=Ot+this.stride[3]*ct|0:(It.push(this.shape[3]),At.push(this.stride[3]));var Pt=at[It.length+1];return Pt(this.data,It,At,Ot)},function(Tt,kt,wt,ct){return new St(Tt,kt[0],kt[1],kt[2],kt[3],wt[0],wt[1],wt[2],wt[3],ct)}},5:function(at,yt,St){function _t(Tt,kt,wt,ct,It,At,Ot,Pt,zt,Dt,Nt,$t){this.data=Tt,this.shape=[kt,wt,ct,It,At],this.stride=[Ot,Pt,zt,Dt,Nt],this.offset=$t|0}var Mt=_t.prototype;return Mt.dtype=at,Mt.dimension=5,Object.defineProperty(Mt,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(Mt,"order",{get:St}),Mt.set=function(kt,wt,ct,It,At,Ot){return at==="generic"?this.data.set(this.offset+this.stride[0]*kt+this.stride[1]*wt+this.stride[2]*ct+this.stride[3]*It+this.stride[4]*At,Ot):this.data[this.offset+this.stride[0]*kt+this.stride[1]*wt+this.stride[2]*ct+this.stride[3]*It+this.stride[4]*At]=Ot},Mt.get=function(kt,wt,ct,It,At){return at==="generic"?this.data.get(this.offset+this.stride[0]*kt+this.stride[1]*wt+this.stride[2]*ct+this.stride[3]*It+this.stride[4]*At):this.data[this.offset+this.stride[0]*kt+this.stride[1]*wt+this.stride[2]*ct+this.stride[3]*It+this.stride[4]*At]},Mt.index=function(kt,wt,ct,It,At){return this.offset+this.stride[0]*kt+this.stride[1]*wt+this.stride[2]*ct+this.stride[3]*It+this.stride[4]*At},Mt.hi=function(kt,wt,ct,It,At){return new _t(this.data,typeof kt!="number"||kt<0?this.shape[0]:kt|0,typeof wt!="number"||wt<0?this.shape[1]:wt|0,typeof ct!="number"||ct<0?this.shape[2]:ct|0,typeof It!="number"||It<0?this.shape[3]:It|0,typeof At!="number"||At<0?this.shape[4]:At|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},Mt.lo=function(kt,wt,ct,It,At){var Ot=this.offset,Pt=0,zt=this.shape[0],Dt=this.shape[1],Nt=this.shape[2],$t=this.shape[3],Ut=this.shape[4],Ht=this.stride[0],Vt=this.stride[1],Xt=this.stride[2],qt=this.stride[3],er=this.stride[4];return typeof kt=="number"&&kt>=0&&(Pt=kt|0,Ot+=Ht*Pt,zt-=Pt),typeof wt=="number"&&wt>=0&&(Pt=wt|0,Ot+=Vt*Pt,Dt-=Pt),typeof ct=="number"&&ct>=0&&(Pt=ct|0,Ot+=Xt*Pt,Nt-=Pt),typeof It=="number"&&It>=0&&(Pt=It|0,Ot+=qt*Pt,$t-=Pt),typeof At=="number"&&At>=0&&(Pt=At|0,Ot+=er*Pt,Ut-=Pt),new _t(this.data,zt,Dt,Nt,$t,Ut,Ht,Vt,Xt,qt,er,Ot)},Mt.step=function(kt,wt,ct,It,At){var Ot=this.shape[0],Pt=this.shape[1],zt=this.shape[2],Dt=this.shape[3],Nt=this.shape[4],$t=this.stride[0],Ut=this.stride[1],Ht=this.stride[2],Vt=this.stride[3],Xt=this.stride[4],qt=this.offset,er=0,lr=Math.ceil;return typeof kt=="number"&&(er=kt|0,er<0?(qt+=$t*(Ot-1),Ot=lr(-Ot/er)):Ot=lr(Ot/er),$t*=er),typeof wt=="number"&&(er=wt|0,er<0?(qt+=Ut*(Pt-1),Pt=lr(-Pt/er)):Pt=lr(Pt/er),Ut*=er),typeof ct=="number"&&(er=ct|0,er<0?(qt+=Ht*(zt-1),zt=lr(-zt/er)):zt=lr(zt/er),Ht*=er),typeof It=="number"&&(er=It|0,er<0?(qt+=Vt*(Dt-1),Dt=lr(-Dt/er)):Dt=lr(Dt/er),Vt*=er),typeof At=="number"&&(er=At|0,er<0?(qt+=Xt*(Nt-1),Nt=lr(-Nt/er)):Nt=lr(Nt/er),Xt*=er),new _t(this.data,Ot,Pt,zt,Dt,Nt,$t,Ut,Ht,Vt,Xt,qt)},Mt.transpose=function(kt,wt,ct,It,At){kt=kt===void 0?0:kt|0,wt=wt===void 0?1:wt|0,ct=ct===void 0?2:ct|0,It=It===void 0?3:It|0,At=At===void 0?4:At|0;var Ot=this.shape,Pt=this.stride;return new _t(this.data,Ot[kt],Ot[wt],Ot[ct],Ot[It],Ot[At],Pt[kt],Pt[wt],Pt[ct],Pt[It],Pt[At],this.offset)},Mt.pick=function(kt,wt,ct,It,At){var Ot=[],Pt=[],zt=this.offset;typeof kt=="number"&&kt>=0?zt=zt+this.stride[0]*kt|0:(Ot.push(this.shape[0]),Pt.push(this.stride[0])),typeof wt=="number"&&wt>=0?zt=zt+this.stride[1]*wt|0:(Ot.push(this.shape[1]),Pt.push(this.stride[1])),typeof ct=="number"&&ct>=0?zt=zt+this.stride[2]*ct|0:(Ot.push(this.shape[2]),Pt.push(this.stride[2])),typeof It=="number"&&It>=0?zt=zt+this.stride[3]*It|0:(Ot.push(this.shape[3]),Pt.push(this.stride[3])),typeof At=="number"&&At>=0?zt=zt+this.stride[4]*At|0:(Ot.push(this.shape[4]),Pt.push(this.stride[4]));var Dt=yt[Ot.length+1];return Dt(this.data,Ot,Pt,zt)},function(kt,wt,ct,It){return new _t(kt,wt[0],wt[1],wt[2],wt[3],wt[4],ct[0],ct[1],ct[2],ct[3],ct[4],It)}}};function nt(ft,at){var yt=at===-1?"T":String(at),St=ot[yt];return at===-1?St(ft):at===0?St(ft,dt[ft][0]):St(ft,dt[ft],st)}function vt(ft){if(_(ft))return"buffer";if(rt)switch(Object.prototype.toString.call(ft)){case"[object Float64Array]":return"float64";case"[object Float32Array]":return"float32";case"[object Int8Array]":return"int8";case"[object Int16Array]":return"int16";case"[object Int32Array]":return"int32";case"[object Uint8ClampedArray]":return"uint8_clamped";case"[object Uint8Array]":return"uint8";case"[object Uint16Array]":return"uint16";case"[object Uint32Array]":return"uint32";case"[object BigInt64Array]":return"bigint64";case"[object BigUint64Array]":return"biguint64"}return Array.isArray(ft)?"array":"generic"}var dt={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function bt(ft,at,yt,St){if(ft===void 0){var ct=dt.array[0];return ct([])}else typeof ft=="number"&&(ft=[ft]);at===void 0&&(at=[ft.length]);var _t=at.length;if(yt===void 0){yt=new Array(_t);for(var Mt=_t-1,Tt=1;Mt>=0;--Mt)yt[Mt]=Tt,Tt*=at[Mt]}if(St===void 0){St=0;for(var Mt=0;Mt<_t;++Mt)yt[Mt]<0&&(St-=(at[Mt]-1)*yt[Mt])}for(var kt=vt(ft),wt=dt[kt];wt.length<=_t+1;)wt.push(nt(kt,wt.length-1));var ct=wt[_t+1];return ct(ft,at,yt,St)}ut.exports=bt},1278:function(ut,ht,j){var _=j(2361),rt=Math.pow(2,-1074),tt=-1>>>0;ut.exports=st;function st(ot,nt){if(isNaN(ot)||isNaN(nt))return NaN;if(ot===nt)return ot;if(ot===0)return nt<0?-rt:rt;var vt=_.hi(ot),dt=_.lo(ot);return nt>ot==ot>0?dt===tt?(vt+=1,dt=0):dt+=1:dt===0?(dt=tt,vt-=1):dt-=1,_.pack(dt,vt)}},8406:function(ut,ht){var j=1e-6,_=1e-6;ht.vertexNormals=function(rt,tt,st){for(var ot=tt.length,nt=new Array(ot),vt=st===void 0?j:st,dt=0;dtvt)for(var Ot=nt[at],Pt=1/Math.sqrt(wt*It),At=0;At<3;++At){var zt=(At+1)%3,Dt=(At+2)%3;Ot[At]+=Pt*(ct[zt]*kt[Dt]-ct[Dt]*kt[zt])}}for(var dt=0;dtvt)for(var Pt=1/Math.sqrt(Nt),At=0;At<3;++At)Ot[At]*=Pt;else for(var At=0;At<3;++At)Ot[At]=0}return nt},ht.faceNormals=function(rt,tt,st){for(var ot=rt.length,nt=new Array(ot),vt=st===void 0?_:st,dt=0;dtvt?Mt=1/Math.sqrt(Mt):Mt=0;for(var at=0;at<3;++at)_t[at]*=Mt;nt[dt]=_t}return nt}},4081:function(ut){ut.exports=ht;function ht(j,_,rt,tt,st,ot,nt,vt,dt,bt){var ft=_+ot+bt;if(at>0){var at=Math.sqrt(ft+1);j[0]=.5*(nt-dt)/at,j[1]=.5*(vt-tt)/at,j[2]=.5*(rt-ot)/at,j[3]=.5*at}else{var yt=Math.max(_,ot,bt),at=Math.sqrt(2*yt-ft+1);_>=yt?(j[0]=.5*at,j[1]=.5*(st+rt)/at,j[2]=.5*(vt+tt)/at,j[3]=.5*(nt-dt)/at):ot>=yt?(j[0]=.5*(rt+st)/at,j[1]=.5*at,j[2]=.5*(dt+nt)/at,j[3]=.5*(vt-tt)/at):(j[0]=.5*(tt+vt)/at,j[1]=.5*(nt+dt)/at,j[2]=.5*at,j[3]=.5*(rt-st)/at)}return j}},9977:function(ut,ht,j){ut.exports=at;var _=j(9215),rt=j(6582),tt=j(7399),st=j(7608),ot=j(4081);function nt(yt,St,_t){return Math.sqrt(Math.pow(yt,2)+Math.pow(St,2)+Math.pow(_t,2))}function vt(yt,St,_t,Mt){return Math.sqrt(Math.pow(yt,2)+Math.pow(St,2)+Math.pow(_t,2)+Math.pow(Mt,2))}function dt(yt,St){var _t=St[0],Mt=St[1],Tt=St[2],kt=St[3],wt=vt(_t,Mt,Tt,kt);wt>1e-6?(yt[0]=_t/wt,yt[1]=Mt/wt,yt[2]=Tt/wt,yt[3]=kt/wt):(yt[0]=yt[1]=yt[2]=0,yt[3]=1)}function bt(yt,St,_t){this.radius=_([_t]),this.center=_(St),this.rotation=_(yt),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var ft=bt.prototype;ft.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},ft.recalcMatrix=function(yt){this.radius.curve(yt),this.center.curve(yt),this.rotation.curve(yt);var St=this.computedRotation;dt(St,St);var _t=this.computedMatrix;tt(_t,St);var Mt=this.computedCenter,Tt=this.computedEye,kt=this.computedUp,wt=Math.exp(this.computedRadius[0]);Tt[0]=Mt[0]+wt*_t[2],Tt[1]=Mt[1]+wt*_t[6],Tt[2]=Mt[2]+wt*_t[10],kt[0]=_t[1],kt[1]=_t[5],kt[2]=_t[9];for(var ct=0;ct<3;++ct){for(var It=0,At=0;At<3;++At)It+=_t[ct+4*At]*Tt[At];_t[12+ct]=-It}},ft.getMatrix=function(yt,St){this.recalcMatrix(yt);var _t=this.computedMatrix;if(St){for(var Mt=0;Mt<16;++Mt)St[Mt]=_t[Mt];return St}return _t},ft.idle=function(yt){this.center.idle(yt),this.radius.idle(yt),this.rotation.idle(yt)},ft.flush=function(yt){this.center.flush(yt),this.radius.flush(yt),this.rotation.flush(yt)},ft.pan=function(yt,St,_t,Mt){St=St||0,_t=_t||0,Mt=Mt||0,this.recalcMatrix(yt);var Tt=this.computedMatrix,kt=Tt[1],wt=Tt[5],ct=Tt[9],It=nt(kt,wt,ct);kt/=It,wt/=It,ct/=It;var At=Tt[0],Ot=Tt[4],Pt=Tt[8],zt=At*kt+Ot*wt+Pt*ct;At-=kt*zt,Ot-=wt*zt,Pt-=ct*zt;var Dt=nt(At,Ot,Pt);At/=Dt,Ot/=Dt,Pt/=Dt,Tt[2],Tt[6],Tt[10];var Nt=At*St+kt*_t,$t=Ot*St+wt*_t,Ut=Pt*St+ct*_t;this.center.move(yt,Nt,$t,Ut);var Ht=Math.exp(this.computedRadius[0]);Ht=Math.max(1e-4,Ht+Mt),this.radius.set(yt,Math.log(Ht))},ft.rotate=function(yt,St,_t,Mt){this.recalcMatrix(yt),St=St||0,_t=_t||0;var Tt=this.computedMatrix,kt=Tt[0],wt=Tt[4],ct=Tt[8],It=Tt[1],At=Tt[5],Ot=Tt[9],Pt=Tt[2],zt=Tt[6],Dt=Tt[10],Nt=St*kt+_t*It,$t=St*wt+_t*At,Ut=St*ct+_t*Ot,Ht=-(zt*Ut-Dt*$t),Vt=-(Dt*Nt-Pt*Ut),Xt=-(Pt*$t-zt*Nt),qt=Math.sqrt(Math.max(0,1-Math.pow(Ht,2)-Math.pow(Vt,2)-Math.pow(Xt,2))),er=vt(Ht,Vt,Xt,qt);er>1e-6?(Ht/=er,Vt/=er,Xt/=er,qt/=er):(Ht=Vt=Xt=0,qt=1);var lr=this.computedRotation,Jt=lr[0],Yt=lr[1],rr=lr[2],jt=lr[3],ar=Jt*qt+jt*Ht+Yt*Xt-rr*Vt,sr=Yt*qt+jt*Vt+rr*Ht-Jt*Xt,Zt=rr*qt+jt*Xt+Jt*Vt-Yt*Ht,Kt=jt*qt-Jt*Ht-Yt*Vt-rr*Xt;if(Mt){Ht=Pt,Vt=zt,Xt=Dt;var or=Math.sin(Mt)/nt(Ht,Vt,Xt);Ht*=or,Vt*=or,Xt*=or,qt=Math.cos(St),ar=ar*qt+Kt*Ht+sr*Xt-Zt*Vt,sr=sr*qt+Kt*Vt+Zt*Ht-ar*Xt,Zt=Zt*qt+Kt*Xt+ar*Vt-sr*Ht,Kt=Kt*qt-ar*Ht-sr*Vt-Zt*Xt}var tr=vt(ar,sr,Zt,Kt);tr>1e-6?(ar/=tr,sr/=tr,Zt/=tr,Kt/=tr):(ar=sr=Zt=0,Kt=1),this.rotation.set(yt,ar,sr,Zt,Kt)},ft.lookAt=function(yt,St,_t,Mt){this.recalcMatrix(yt),_t=_t||this.computedCenter,St=St||this.computedEye,Mt=Mt||this.computedUp;var Tt=this.computedMatrix;rt(Tt,St,_t,Mt);var kt=this.computedRotation;ot(kt,Tt[0],Tt[1],Tt[2],Tt[4],Tt[5],Tt[6],Tt[8],Tt[9],Tt[10]),dt(kt,kt),this.rotation.set(yt,kt[0],kt[1],kt[2],kt[3]);for(var wt=0,ct=0;ct<3;++ct)wt+=Math.pow(_t[ct]-St[ct],2);this.radius.set(yt,.5*Math.log(Math.max(wt,1e-6))),this.center.set(yt,_t[0],_t[1],_t[2])},ft.translate=function(yt,St,_t,Mt){this.center.move(yt,St||0,_t||0,Mt||0)},ft.setMatrix=function(yt,St){var _t=this.computedRotation;ot(_t,St[0],St[1],St[2],St[4],St[5],St[6],St[8],St[9],St[10]),dt(_t,_t),this.rotation.set(yt,_t[0],_t[1],_t[2],_t[3]);var Mt=this.computedMatrix;st(Mt,St);var Tt=Mt[15];if(Math.abs(Tt)>1e-6){var kt=Mt[12]/Tt,wt=Mt[13]/Tt,ct=Mt[14]/Tt;this.recalcMatrix(yt);var It=Math.exp(this.computedRadius[0]);this.center.set(yt,kt-Mt[2]*It,wt-Mt[6]*It,ct-Mt[10]*It),this.radius.idle(yt)}else this.center.idle(yt),this.radius.idle(yt)},ft.setDistance=function(yt,St){St>0&&this.radius.set(yt,Math.log(St))},ft.setDistanceLimits=function(yt,St){yt>0?yt=Math.log(yt):yt=-1/0,St>0?St=Math.log(St):St=1/0,St=Math.max(St,yt),this.radius.bounds[0][0]=yt,this.radius.bounds[1][0]=St},ft.getDistanceLimits=function(yt){var St=this.radius.bounds;return yt?(yt[0]=Math.exp(St[0][0]),yt[1]=Math.exp(St[1][0]),yt):[Math.exp(St[0][0]),Math.exp(St[1][0])]},ft.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},ft.fromJSON=function(yt){var St=this.lastT(),_t=yt.center;_t&&this.center.set(St,_t[0],_t[1],_t[2]);var Mt=yt.rotation;Mt&&this.rotation.set(St,Mt[0],Mt[1],Mt[2],Mt[3]);var Tt=yt.distance;Tt&&Tt>0&&this.radius.set(St,Math.log(Tt)),this.setDistanceLimits(yt.zoomMin,yt.zoomMax)};function at(yt){yt=yt||{};var St=yt.center||[0,0,0],_t=yt.rotation||[0,0,0,1],Mt=yt.radius||1;St=[].slice.call(St,0,3),_t=[].slice.call(_t,0,4),dt(_t,_t);var Tt=new bt(_t,St,Math.log(Mt));return Tt.setDistanceLimits(yt.zoomMin,yt.zoomMax),("eye"in yt||"up"in yt)&&Tt.lookAt(0,yt.eye,yt.center,yt.up),Tt}},1371:function(ut,ht,j){/*! +*/ut.exports=function(_){return _!=null&&(ht(_)||j(_)||!!_._isBuffer)};function ht(_){return!!_.constructor&&typeof _.constructor.isBuffer=="function"&&_.constructor.isBuffer(_)}function j(_){return typeof _.readFloatLE=="function"&&typeof _.slice=="function"&&ht(_.slice(0,0))}},5219:function(ut){ut.exports=function(ht){for(var j=ht.length,_,rt=0;rt13)&&_!==32&&_!==133&&_!==160&&_!==5760&&_!==6158&&(_<8192||_>8205)&&_!==8232&&_!==8233&&_!==8239&&_!==8287&&_!==8288&&_!==12288&&_!==65279)return!1;return!0}},395:function(ut){function ht(j,_,rt){return j*(1-rt)+_*rt}ut.exports=ht},2652:function(ut,ht,j){var _=j(4335),rt=j(6864),tt=j(1903),st=j(9921),ot=j(7608),nt=j(5665),vt={length:j(1387),normalize:j(3536),dot:j(244),cross:j(5911)},dt=rt(),bt=rt(),ft=[0,0,0,0],at=[[0,0,0],[0,0,0],[0,0,0]],mt=[0,0,0];ut.exports=function(kt,wt,ct,It,At,Ot){if(wt||(wt=[0,0,0]),ct||(ct=[0,0,0]),It||(It=[0,0,0]),At||(At=[0,0,0,1]),Ot||(Ot=[0,0,0,1]),!_(dt,kt)||(tt(bt,dt),bt[3]=0,bt[7]=0,bt[11]=0,bt[15]=1,Math.abs(st(bt)<1e-8)))return!1;var Pt=dt[3],zt=dt[7],Dt=dt[11],Nt=dt[12],$t=dt[13],Ut=dt[14],Ht=dt[15];if(Pt!==0||zt!==0||Dt!==0){ft[0]=Pt,ft[1]=zt,ft[2]=Dt,ft[3]=Ht;var Vt=ot(bt,bt);if(!Vt)return!1;nt(bt,bt),St(At,ft,bt)}else At[0]=At[1]=At[2]=0,At[3]=1;if(wt[0]=Nt,wt[1]=$t,wt[2]=Ut,_t(at,dt),ct[0]=vt.length(at[0]),vt.normalize(at[0],at[0]),It[0]=vt.dot(at[0],at[1]),Mt(at[1],at[1],at[0],1,-It[0]),ct[1]=vt.length(at[1]),vt.normalize(at[1],at[1]),It[0]/=ct[1],It[1]=vt.dot(at[0],at[2]),Mt(at[2],at[2],at[0],1,-It[1]),It[2]=vt.dot(at[1],at[2]),Mt(at[2],at[2],at[1],1,-It[2]),ct[2]=vt.length(at[2]),vt.normalize(at[2],at[2]),It[1]/=ct[2],It[2]/=ct[2],vt.cross(mt,at[1],at[2]),vt.dot(at[0],mt)<0)for(var Xt=0;Xt<3;Xt++)ct[Xt]*=-1,at[Xt][0]*=-1,at[Xt][1]*=-1,at[Xt][2]*=-1;return Ot[0]=.5*Math.sqrt(Math.max(1+at[0][0]-at[1][1]-at[2][2],0)),Ot[1]=.5*Math.sqrt(Math.max(1-at[0][0]+at[1][1]-at[2][2],0)),Ot[2]=.5*Math.sqrt(Math.max(1-at[0][0]-at[1][1]+at[2][2],0)),Ot[3]=.5*Math.sqrt(Math.max(1+at[0][0]+at[1][1]+at[2][2],0)),at[2][1]>at[1][2]&&(Ot[0]=-Ot[0]),at[0][2]>at[2][0]&&(Ot[1]=-Ot[1]),at[1][0]>at[0][1]&&(Ot[2]=-Ot[2]),!0};function St(Et,kt,wt){var ct=kt[0],It=kt[1],At=kt[2],Ot=kt[3];return Et[0]=wt[0]*ct+wt[4]*It+wt[8]*At+wt[12]*Ot,Et[1]=wt[1]*ct+wt[5]*It+wt[9]*At+wt[13]*Ot,Et[2]=wt[2]*ct+wt[6]*It+wt[10]*At+wt[14]*Ot,Et[3]=wt[3]*ct+wt[7]*It+wt[11]*At+wt[15]*Ot,Et}function _t(Et,kt){Et[0][0]=kt[0],Et[0][1]=kt[1],Et[0][2]=kt[2],Et[1][0]=kt[4],Et[1][1]=kt[5],Et[1][2]=kt[6],Et[2][0]=kt[8],Et[2][1]=kt[9],Et[2][2]=kt[10]}function Mt(Et,kt,wt,ct,It){Et[0]=kt[0]*ct+wt[0]*It,Et[1]=kt[1]*ct+wt[1]*It,Et[2]=kt[2]*ct+wt[2]*It}},4335:function(ut){ut.exports=function(j,_){var rt=_[15];if(rt===0)return!1;for(var tt=1/rt,st=0;st<16;st++)j[st]=_[st]*tt;return!0}},7442:function(ut,ht,j){var _=j(6658),rt=j(7182),tt=j(2652),st=j(9921),ot=j(8648),nt=ft(),vt=ft(),dt=ft();ut.exports=bt;function bt(St,_t,Mt,Et){if(st(_t)===0||st(Mt)===0)return!1;var kt=tt(_t,nt.translate,nt.scale,nt.skew,nt.perspective,nt.quaternion),wt=tt(Mt,vt.translate,vt.scale,vt.skew,vt.perspective,vt.quaternion);return!kt||!wt?!1:(_(dt.translate,nt.translate,vt.translate,Et),_(dt.skew,nt.skew,vt.skew,Et),_(dt.scale,nt.scale,vt.scale,Et),_(dt.perspective,nt.perspective,vt.perspective,Et),ot(dt.quaternion,nt.quaternion,vt.quaternion,Et),rt(St,dt.translate,dt.scale,dt.skew,dt.perspective,dt.quaternion),!0)}function ft(){return{translate:at(),scale:at(1),skew:at(),perspective:mt(),quaternion:mt()}}function at(St){return[St||0,St||0,St||0]}function mt(){return[0,0,0,1]}},7182:function(ut,ht,j){var _={identity:j(7894),translate:j(7656),multiply:j(6760),create:j(6864),scale:j(2504),fromRotationTranslation:j(6743)};_.create();var rt=_.create();ut.exports=function(st,ot,nt,vt,dt,bt){return _.identity(st),_.fromRotationTranslation(st,bt,ot),st[3]=dt[0],st[7]=dt[1],st[11]=dt[2],st[15]=dt[3],_.identity(rt),vt[2]!==0&&(rt[9]=vt[2],_.multiply(st,st,rt)),vt[1]!==0&&(rt[9]=0,rt[8]=vt[1],_.multiply(st,st,rt)),vt[0]!==0&&(rt[8]=0,rt[4]=vt[0],_.multiply(st,st,rt)),_.scale(st,st,nt),st}},4192:function(ut,ht,j){var _=j(2478),rt=j(7442),tt=j(7608),st=j(5567),ot=j(2408),nt=j(7089),vt=j(6582),dt=j(7656);j(2504);var bt=j(3536),ft=[0,0,0];ut.exports=_t;function at(Mt){this._components=Mt.slice(),this._time=[0],this.prevMatrix=Mt.slice(),this.nextMatrix=Mt.slice(),this.computedMatrix=Mt.slice(),this.computedInverse=Mt.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}var mt=at.prototype;mt.recalcMatrix=function(Mt){var Et=this._time,kt=_.le(Et,Mt),wt=this.computedMatrix;if(!(kt<0)){var ct=this._components;if(kt===Et.length-1)for(var It=16*kt,At=0;At<16;++At)wt[At]=ct[It++];else{for(var Ot=Et[kt+1]-Et[kt],It=16*kt,Pt=this.prevMatrix,zt=!0,At=0;At<16;++At)Pt[At]=ct[It++];for(var Dt=this.nextMatrix,At=0;At<16;++At)Dt[At]=ct[It++],zt=zt&&Pt[At]===Dt[At];if(Ot<1e-6||zt)for(var At=0;At<16;++At)wt[At]=Pt[At];else rt(wt,Pt,Dt,(Mt-Et[kt])/Ot)}var Nt=this.computedUp;Nt[0]=wt[1],Nt[1]=wt[5],Nt[2]=wt[9],bt(Nt,Nt);var $t=this.computedInverse;tt($t,wt);var Ut=this.computedEye,Ht=$t[15];Ut[0]=$t[12]/Ht,Ut[1]=$t[13]/Ht,Ut[2]=$t[14]/Ht;for(var Vt=this.computedCenter,Xt=Math.exp(this.computedRadius[0]),At=0;At<3;++At)Vt[At]=Ut[At]-wt[2+4*At]*Xt}},mt.idle=function(Mt){if(!(Mt1&&_(tt[vt[at-2]],tt[vt[at-1]],ft)<=0;)at-=1,vt.pop();for(vt.push(bt),at=dt.length;at>1&&_(tt[dt[at-2]],tt[dt[at-1]],ft)>=0;)at-=1,dt.pop();dt.push(bt)}for(var mt=new Array(dt.length+vt.length-2),St=0,ot=0,_t=vt.length;ot<_t;++ot)mt[St++]=vt[ot];for(var Mt=dt.length-2;Mt>0;--Mt)mt[St++]=dt[Mt];return mt}},351:function(ut,ht,j){ut.exports=rt;var _=j(4687);function rt(tt,st){st||(st=tt,tt=window);var ot=0,nt=0,vt=0,dt={shift:!1,alt:!1,control:!1,meta:!1},bt=!1;function ft(At){var Ot=!1;return"altKey"in At&&(Ot=Ot||At.altKey!==dt.alt,dt.alt=!!At.altKey),"shiftKey"in At&&(Ot=Ot||At.shiftKey!==dt.shift,dt.shift=!!At.shiftKey),"ctrlKey"in At&&(Ot=Ot||At.ctrlKey!==dt.control,dt.control=!!At.ctrlKey),"metaKey"in At&&(Ot=Ot||At.metaKey!==dt.meta,dt.meta=!!At.metaKey),Ot}function at(At,Ot){var Pt=_.x(Ot),zt=_.y(Ot);"buttons"in Ot&&(At=Ot.buttons|0),(At!==ot||Pt!==nt||zt!==vt||ft(Ot))&&(ot=At|0,nt=Pt||0,vt=zt||0,st&&st(ot,nt,vt,dt))}function mt(At){at(0,At)}function St(){(ot||nt||vt||dt.shift||dt.alt||dt.meta||dt.control)&&(nt=vt=0,ot=0,dt.shift=dt.alt=dt.control=dt.meta=!1,st&&st(0,0,0,dt))}function _t(At){ft(At)&&st&&st(ot,nt,vt,dt)}function Mt(At){_.buttons(At)===0?at(0,At):at(ot,At)}function Et(At){at(ot|_.buttons(At),At)}function kt(At){at(ot&~_.buttons(At),At)}function wt(){bt||(bt=!0,tt.addEventListener("mousemove",Mt),tt.addEventListener("mousedown",Et),tt.addEventListener("mouseup",kt),tt.addEventListener("mouseleave",mt),tt.addEventListener("mouseenter",mt),tt.addEventListener("mouseout",mt),tt.addEventListener("mouseover",mt),tt.addEventListener("blur",St),tt.addEventListener("keyup",_t),tt.addEventListener("keydown",_t),tt.addEventListener("keypress",_t),tt!==window&&(window.addEventListener("blur",St),window.addEventListener("keyup",_t),window.addEventListener("keydown",_t),window.addEventListener("keypress",_t)))}function ct(){bt&&(bt=!1,tt.removeEventListener("mousemove",Mt),tt.removeEventListener("mousedown",Et),tt.removeEventListener("mouseup",kt),tt.removeEventListener("mouseleave",mt),tt.removeEventListener("mouseenter",mt),tt.removeEventListener("mouseout",mt),tt.removeEventListener("mouseover",mt),tt.removeEventListener("blur",St),tt.removeEventListener("keyup",_t),tt.removeEventListener("keydown",_t),tt.removeEventListener("keypress",_t),tt!==window&&(window.removeEventListener("blur",St),window.removeEventListener("keyup",_t),window.removeEventListener("keydown",_t),window.removeEventListener("keypress",_t)))}wt();var It={element:tt};return Object.defineProperties(It,{enabled:{get:function(){return bt},set:function(At){At?wt():ct()},enumerable:!0},buttons:{get:function(){return ot},enumerable:!0},x:{get:function(){return nt},enumerable:!0},y:{get:function(){return vt},enumerable:!0},mods:{get:function(){return dt},enumerable:!0}}),It}},24:function(ut){var ht={left:0,top:0};ut.exports=j;function j(rt,tt,st){tt=tt||rt.currentTarget||rt.srcElement,Array.isArray(st)||(st=[0,0]);var ot=rt.clientX||0,nt=rt.clientY||0,vt=_(tt);return st[0]=ot-vt.left,st[1]=nt-vt.top,st}function _(rt){return rt===window||rt===document||rt===document.body?ht:rt.getBoundingClientRect()}},4687:function(ut,ht){function j(st){if(typeof st=="object"){if("buttons"in st)return st.buttons;if("which"in st){var ot=st.which;if(ot===2)return 4;if(ot===3)return 2;if(ot>0)return 1<=0)return 1<0){if(er=1,Yt[jt++]=dt(wt[Ot],St,_t,Mt),Ot+=Vt,Et>0)for(qt=1,Pt=wt[Ot],ar=Yt[jt]=dt(Pt,St,_t,Mt),Kt=Yt[jt+sr],cr=Yt[jt+or],br=Yt[jt+mr],(ar!==Kt||ar!==cr||ar!==br)&&(Dt=wt[Ot+zt],$t=wt[Ot+Nt],Ht=wt[Ot+Ut],nt(qt,er,Pt,Dt,$t,Ht,ar,Kt,cr,br,St,_t,Mt),Ir=rr[jt]=lr++),jt+=1,Ot+=Vt,qt=2;qt0)for(qt=1,Pt=wt[Ot],ar=Yt[jt]=dt(Pt,St,_t,Mt),Kt=Yt[jt+sr],cr=Yt[jt+or],br=Yt[jt+mr],(ar!==Kt||ar!==cr||ar!==br)&&(Dt=wt[Ot+zt],$t=wt[Ot+Nt],Ht=wt[Ot+Ut],nt(qt,er,Pt,Dt,$t,Ht,ar,Kt,cr,br,St,_t,Mt),Ir=rr[jt]=lr++,br!==cr&&vt(rr[jt+or],Ir,$t,Ht,cr,br,St,_t,Mt)),jt+=1,Ot+=Vt,qt=2;qt0){if(qt=1,Yt[jt++]=dt(wt[Ot],St,_t,Mt),Ot+=Vt,kt>0)for(er=1,Pt=wt[Ot],ar=Yt[jt]=dt(Pt,St,_t,Mt),cr=Yt[jt+or],Kt=Yt[jt+sr],br=Yt[jt+mr],(ar!==cr||ar!==Kt||ar!==br)&&(Dt=wt[Ot+zt],$t=wt[Ot+Nt],Ht=wt[Ot+Ut],nt(qt,er,Pt,Dt,$t,Ht,ar,cr,Kt,br,St,_t,Mt),Ir=rr[jt]=lr++),jt+=1,Ot+=Vt,er=2;er0)for(er=1,Pt=wt[Ot],ar=Yt[jt]=dt(Pt,St,_t,Mt),cr=Yt[jt+or],Kt=Yt[jt+sr],br=Yt[jt+mr],(ar!==cr||ar!==Kt||ar!==br)&&(Dt=wt[Ot+zt],$t=wt[Ot+Nt],Ht=wt[Ot+Ut],nt(qt,er,Pt,Dt,$t,Ht,ar,cr,Kt,br,St,_t,Mt),Ir=rr[jt]=lr++,br!==cr&&vt(rr[jt+or],Ir,Ht,Dt,br,cr,St,_t,Mt)),jt+=1,Ot+=Vt,er=2;er 0"),typeof ot.vertex!="function"&&nt("Must specify vertex creation function"),typeof ot.cell!="function"&&nt("Must specify cell creation function"),typeof ot.phase!="function"&&nt("Must specify phase function");for(var ft=ot.getters||[],at=new Array(dt),mt=0;mt=0?at[mt]=!0:at[mt]=!1;return tt(ot.vertex,ot.cell,ot.phase,bt,vt,at)}},6199:function(ut,ht,j){var _=j(1338),rt={zero:function(_t,Mt,Et,kt){var wt=_t[0],ct=Et[0];kt|=0;var It=0,At=ct;for(It=0;It2&&It[1]>2&&kt(ct.pick(-1,-1).lo(1,1).hi(It[0]-2,It[1]-2),wt.pick(-1,-1,0).lo(1,1).hi(It[0]-2,It[1]-2),wt.pick(-1,-1,1).lo(1,1).hi(It[0]-2,It[1]-2)),It[1]>2&&(Et(ct.pick(0,-1).lo(1).hi(It[1]-2),wt.pick(0,-1,1).lo(1).hi(It[1]-2)),Mt(wt.pick(0,-1,0).lo(1).hi(It[1]-2))),It[1]>2&&(Et(ct.pick(It[0]-1,-1).lo(1).hi(It[1]-2),wt.pick(It[0]-1,-1,1).lo(1).hi(It[1]-2)),Mt(wt.pick(It[0]-1,-1,0).lo(1).hi(It[1]-2))),It[0]>2&&(Et(ct.pick(-1,0).lo(1).hi(It[0]-2),wt.pick(-1,0,0).lo(1).hi(It[0]-2)),Mt(wt.pick(-1,0,1).lo(1).hi(It[0]-2))),It[0]>2&&(Et(ct.pick(-1,It[1]-1).lo(1).hi(It[0]-2),wt.pick(-1,It[1]-1,0).lo(1).hi(It[0]-2)),Mt(wt.pick(-1,It[1]-1,1).lo(1).hi(It[0]-2))),wt.set(0,0,0,0),wt.set(0,0,1,0),wt.set(It[0]-1,0,0,0),wt.set(It[0]-1,0,1,0),wt.set(0,It[1]-1,0,0),wt.set(0,It[1]-1,1,0),wt.set(It[0]-1,It[1]-1,0,0),wt.set(It[0]-1,It[1]-1,1,0),wt}}function St(_t){var Mt=_t.join(),It=dt[Mt];if(It)return It;for(var Et=_t.length,kt=[bt,ft],wt=1;wt<=Et;++wt)kt.push(at(wt));var ct=mt,It=ct.apply(void 0,kt);return dt[Mt]=It,It}ut.exports=function(Mt,Et,kt){if(Array.isArray(kt)||(typeof kt=="string"?kt=_(Et.dimension,kt):kt=_(Et.dimension,"clamp")),Et.size===0)return Mt;if(Et.dimension===0)return Mt.set(0),Mt;var wt=St(kt);return wt(Mt,Et)}},4317:function(ut){function ht(st,ot){var nt=Math.floor(ot),vt=ot-nt,dt=0<=nt&&nt0;){$t<64?(Et=$t,$t=0):(Et=64,$t-=64);for(var Ut=dt[1]|0;Ut>0;){Ut<64?(kt=Ut,Ut=0):(kt=64,Ut-=64),at=Dt+$t*ct+Ut*It,_t=Nt+$t*Ot+Ut*Pt;var Ht=0,Vt=0,Xt=0,qt=At,er=ct-wt*At,lr=It-Et*ct,Jt=zt,Yt=Ot-wt*zt,rr=Pt-Et*Ot;for(Xt=0;Xt0;){Pt<64?(Et=Pt,Pt=0):(Et=64,Pt-=64);for(var zt=dt[0]|0;zt>0;){zt<64?(Mt=zt,zt=0):(Mt=64,zt-=64),at=At+Pt*wt+zt*kt,_t=Ot+Pt*It+zt*ct;var Dt=0,Nt=0,$t=wt,Ut=kt-Et*wt,Ht=It,Vt=ct-Et*It;for(Nt=0;Nt0;){Nt<64?(kt=Nt,Nt=0):(kt=64,Nt-=64);for(var $t=dt[0]|0;$t>0;){$t<64?(Mt=$t,$t=0):(Mt=64,$t-=64);for(var Ut=dt[1]|0;Ut>0;){Ut<64?(Et=Ut,Ut=0):(Et=64,Ut-=64),at=zt+Nt*It+$t*wt+Ut*ct,_t=Dt+Nt*Pt+$t*At+Ut*Ot;var Ht=0,Vt=0,Xt=0,qt=It,er=wt-kt*It,lr=ct-Mt*wt,Jt=Pt,Yt=At-kt*Pt,rr=Ot-Mt*At;for(Xt=0;Xtmt;){Ht=0,Vt=Dt-Et;t:for($t=0;$tqt)break t;Vt+=At,Ht+=Ot}for(Ht=Dt,Vt=Dt-Et,$t=0;$t>1,Ut=$t-zt,Ht=$t+zt,Vt=Dt,Xt=Ut,qt=$t,er=Ht,lr=Nt,Jt=St+1,Yt=_t-1,rr=!0,jt,ar,sr,Zt,Kt,or,tr,cr,mr,Ar=0,br=0,Ir=0,Tr,_r,Er,Rr,zr,Or,kr,Nr,Qr,sn,un,en,Xr,ln,mn,pn,Tn=It,Zr=ft(Tn),Fr=ft(Tn);_r=kt*Vt,Er=kt*Xt,pn=Et;e:for(Tr=0;Tr0){ar=Vt,Vt=Xt,Xt=ar;break e}if(Ir<0)break e;pn+=Ot}_r=kt*er,Er=kt*lr,pn=Et;e:for(Tr=0;Tr0){ar=er,er=lr,lr=ar;break e}if(Ir<0)break e;pn+=Ot}_r=kt*Vt,Er=kt*qt,pn=Et;e:for(Tr=0;Tr0){ar=Vt,Vt=qt,qt=ar;break e}if(Ir<0)break e;pn+=Ot}_r=kt*Xt,Er=kt*qt,pn=Et;e:for(Tr=0;Tr0){ar=Xt,Xt=qt,qt=ar;break e}if(Ir<0)break e;pn+=Ot}_r=kt*Vt,Er=kt*er,pn=Et;e:for(Tr=0;Tr0){ar=Vt,Vt=er,er=ar;break e}if(Ir<0)break e;pn+=Ot}_r=kt*qt,Er=kt*er,pn=Et;e:for(Tr=0;Tr0){ar=qt,qt=er,er=ar;break e}if(Ir<0)break e;pn+=Ot}_r=kt*Xt,Er=kt*lr,pn=Et;e:for(Tr=0;Tr0){ar=Xt,Xt=lr,lr=ar;break e}if(Ir<0)break e;pn+=Ot}_r=kt*Xt,Er=kt*qt,pn=Et;e:for(Tr=0;Tr0){ar=Xt,Xt=qt,qt=ar;break e}if(Ir<0)break e;pn+=Ot}_r=kt*er,Er=kt*lr,pn=Et;e:for(Tr=0;Tr0){ar=er,er=lr,lr=ar;break e}if(Ir<0)break e;pn+=Ot}for(_r=kt*Vt,Er=kt*Xt,Rr=kt*qt,zr=kt*er,Or=kt*lr,kr=kt*Dt,Nr=kt*$t,Qr=kt*Nt,mn=0,pn=Et,Tr=0;Tr0)Yt--;else if(Ir<0){for(_r=kt*or,Er=kt*Jt,Rr=kt*Yt,pn=Et,Tr=0;Tr0)for(;;){tr=Et+Yt*kt,mn=0;e:for(Tr=0;Tr0){if(--YtNt){e:for(;;){for(tr=Et+Jt*kt,mn=0,pn=Et,Tr=0;Tr1&&mt?_t(at,mt[0],mt[1]):_t(at)}var vt={"uint32,1,0":function(bt,ft){return function(at){var mt=at.data,St=at.offset|0,_t=at.shape,Mt=at.stride,Et=Mt[0]|0,kt=_t[0]|0,wt=Mt[1]|0,ct=_t[1]|0,It=wt,At=wt,Ot=1;kt<=32?bt(0,kt-1,mt,St,Et,wt,kt,ct,It,At,Ot):ft(0,kt-1,mt,St,Et,wt,kt,ct,It,At,Ot)}}};function dt(bt,ft){var at=[ft,bt].join(","),mt=vt[at],St=st(bt,ft),_t=nt(bt,ft,St);return mt(St,_t)}ut.exports=dt},446:function(ut,ht,j){var _=j(7640),rt={};function tt(st){var ot=st.order,nt=st.dtype,vt=[ot,nt],dt=vt.join(":"),bt=rt[dt];return bt||(rt[dt]=bt=_(ot,nt)),bt(st),st}ut.exports=tt},9618:function(ut,ht,j){var _=j(7163),rt=typeof Float64Array<"u";function tt(ft,at){return ft[0]-at[0]}function st(){var ft=this.stride,at=new Array(ft.length),mt;for(mt=0;mt=0&&(wt=Et|0,kt+=It*wt,ct-=wt),new St(this.data,ct,It,kt)},_t.step=function(Et){var kt=this.shape[0],wt=this.stride[0],ct=this.offset,It=0,At=Math.ceil;return typeof Et=="number"&&(It=Et|0,It<0?(ct+=wt*(kt-1),kt=At(-kt/It)):kt=At(kt/It),wt*=It),new St(this.data,kt,wt,ct)},_t.transpose=function(Et){Et=Et===void 0?0:Et|0;var kt=this.shape,wt=this.stride;return new St(this.data,kt[Et],wt[Et],this.offset)},_t.pick=function(Et){var kt=[],wt=[],ct=this.offset;typeof Et=="number"&&Et>=0?ct=ct+this.stride[0]*Et|0:(kt.push(this.shape[0]),wt.push(this.stride[0]));var It=at[kt.length+1];return It(this.data,kt,wt,ct)},function(Et,kt,wt,ct){return new St(Et,kt[0],wt[0],ct)}},2:function(ft,at,mt){function St(Mt,Et,kt,wt,ct,It){this.data=Mt,this.shape=[Et,kt],this.stride=[wt,ct],this.offset=It|0}var _t=St.prototype;return _t.dtype=ft,_t.dimension=2,Object.defineProperty(_t,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(_t,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),_t.set=function(Et,kt,wt){return ft==="generic"?this.data.set(this.offset+this.stride[0]*Et+this.stride[1]*kt,wt):this.data[this.offset+this.stride[0]*Et+this.stride[1]*kt]=wt},_t.get=function(Et,kt){return ft==="generic"?this.data.get(this.offset+this.stride[0]*Et+this.stride[1]*kt):this.data[this.offset+this.stride[0]*Et+this.stride[1]*kt]},_t.index=function(Et,kt){return this.offset+this.stride[0]*Et+this.stride[1]*kt},_t.hi=function(Et,kt){return new St(this.data,typeof Et!="number"||Et<0?this.shape[0]:Et|0,typeof kt!="number"||kt<0?this.shape[1]:kt|0,this.stride[0],this.stride[1],this.offset)},_t.lo=function(Et,kt){var wt=this.offset,ct=0,It=this.shape[0],At=this.shape[1],Ot=this.stride[0],Pt=this.stride[1];return typeof Et=="number"&&Et>=0&&(ct=Et|0,wt+=Ot*ct,It-=ct),typeof kt=="number"&&kt>=0&&(ct=kt|0,wt+=Pt*ct,At-=ct),new St(this.data,It,At,Ot,Pt,wt)},_t.step=function(Et,kt){var wt=this.shape[0],ct=this.shape[1],It=this.stride[0],At=this.stride[1],Ot=this.offset,Pt=0,zt=Math.ceil;return typeof Et=="number"&&(Pt=Et|0,Pt<0?(Ot+=It*(wt-1),wt=zt(-wt/Pt)):wt=zt(wt/Pt),It*=Pt),typeof kt=="number"&&(Pt=kt|0,Pt<0?(Ot+=At*(ct-1),ct=zt(-ct/Pt)):ct=zt(ct/Pt),At*=Pt),new St(this.data,wt,ct,It,At,Ot)},_t.transpose=function(Et,kt){Et=Et===void 0?0:Et|0,kt=kt===void 0?1:kt|0;var wt=this.shape,ct=this.stride;return new St(this.data,wt[Et],wt[kt],ct[Et],ct[kt],this.offset)},_t.pick=function(Et,kt){var wt=[],ct=[],It=this.offset;typeof Et=="number"&&Et>=0?It=It+this.stride[0]*Et|0:(wt.push(this.shape[0]),ct.push(this.stride[0])),typeof kt=="number"&&kt>=0?It=It+this.stride[1]*kt|0:(wt.push(this.shape[1]),ct.push(this.stride[1]));var At=at[wt.length+1];return At(this.data,wt,ct,It)},function(Et,kt,wt,ct){return new St(Et,kt[0],kt[1],wt[0],wt[1],ct)}},3:function(ft,at,mt){function St(Mt,Et,kt,wt,ct,It,At,Ot){this.data=Mt,this.shape=[Et,kt,wt],this.stride=[ct,It,At],this.offset=Ot|0}var _t=St.prototype;return _t.dtype=ft,_t.dimension=3,Object.defineProperty(_t,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(_t,"order",{get:function(){var Et=Math.abs(this.stride[0]),kt=Math.abs(this.stride[1]),wt=Math.abs(this.stride[2]);return Et>kt?kt>wt?[2,1,0]:Et>wt?[1,2,0]:[1,0,2]:Et>wt?[2,0,1]:wt>kt?[0,1,2]:[0,2,1]}}),_t.set=function(Et,kt,wt,ct){return ft==="generic"?this.data.set(this.offset+this.stride[0]*Et+this.stride[1]*kt+this.stride[2]*wt,ct):this.data[this.offset+this.stride[0]*Et+this.stride[1]*kt+this.stride[2]*wt]=ct},_t.get=function(Et,kt,wt){return ft==="generic"?this.data.get(this.offset+this.stride[0]*Et+this.stride[1]*kt+this.stride[2]*wt):this.data[this.offset+this.stride[0]*Et+this.stride[1]*kt+this.stride[2]*wt]},_t.index=function(Et,kt,wt){return this.offset+this.stride[0]*Et+this.stride[1]*kt+this.stride[2]*wt},_t.hi=function(Et,kt,wt){return new St(this.data,typeof Et!="number"||Et<0?this.shape[0]:Et|0,typeof kt!="number"||kt<0?this.shape[1]:kt|0,typeof wt!="number"||wt<0?this.shape[2]:wt|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},_t.lo=function(Et,kt,wt){var ct=this.offset,It=0,At=this.shape[0],Ot=this.shape[1],Pt=this.shape[2],zt=this.stride[0],Dt=this.stride[1],Nt=this.stride[2];return typeof Et=="number"&&Et>=0&&(It=Et|0,ct+=zt*It,At-=It),typeof kt=="number"&&kt>=0&&(It=kt|0,ct+=Dt*It,Ot-=It),typeof wt=="number"&&wt>=0&&(It=wt|0,ct+=Nt*It,Pt-=It),new St(this.data,At,Ot,Pt,zt,Dt,Nt,ct)},_t.step=function(Et,kt,wt){var ct=this.shape[0],It=this.shape[1],At=this.shape[2],Ot=this.stride[0],Pt=this.stride[1],zt=this.stride[2],Dt=this.offset,Nt=0,$t=Math.ceil;return typeof Et=="number"&&(Nt=Et|0,Nt<0?(Dt+=Ot*(ct-1),ct=$t(-ct/Nt)):ct=$t(ct/Nt),Ot*=Nt),typeof kt=="number"&&(Nt=kt|0,Nt<0?(Dt+=Pt*(It-1),It=$t(-It/Nt)):It=$t(It/Nt),Pt*=Nt),typeof wt=="number"&&(Nt=wt|0,Nt<0?(Dt+=zt*(At-1),At=$t(-At/Nt)):At=$t(At/Nt),zt*=Nt),new St(this.data,ct,It,At,Ot,Pt,zt,Dt)},_t.transpose=function(Et,kt,wt){Et=Et===void 0?0:Et|0,kt=kt===void 0?1:kt|0,wt=wt===void 0?2:wt|0;var ct=this.shape,It=this.stride;return new St(this.data,ct[Et],ct[kt],ct[wt],It[Et],It[kt],It[wt],this.offset)},_t.pick=function(Et,kt,wt){var ct=[],It=[],At=this.offset;typeof Et=="number"&&Et>=0?At=At+this.stride[0]*Et|0:(ct.push(this.shape[0]),It.push(this.stride[0])),typeof kt=="number"&&kt>=0?At=At+this.stride[1]*kt|0:(ct.push(this.shape[1]),It.push(this.stride[1])),typeof wt=="number"&&wt>=0?At=At+this.stride[2]*wt|0:(ct.push(this.shape[2]),It.push(this.stride[2]));var Ot=at[ct.length+1];return Ot(this.data,ct,It,At)},function(Et,kt,wt,ct){return new St(Et,kt[0],kt[1],kt[2],wt[0],wt[1],wt[2],ct)}},4:function(ft,at,mt){function St(Mt,Et,kt,wt,ct,It,At,Ot,Pt,zt){this.data=Mt,this.shape=[Et,kt,wt,ct],this.stride=[It,At,Ot,Pt],this.offset=zt|0}var _t=St.prototype;return _t.dtype=ft,_t.dimension=4,Object.defineProperty(_t,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(_t,"order",{get:mt}),_t.set=function(Et,kt,wt,ct,It){return ft==="generic"?this.data.set(this.offset+this.stride[0]*Et+this.stride[1]*kt+this.stride[2]*wt+this.stride[3]*ct,It):this.data[this.offset+this.stride[0]*Et+this.stride[1]*kt+this.stride[2]*wt+this.stride[3]*ct]=It},_t.get=function(Et,kt,wt,ct){return ft==="generic"?this.data.get(this.offset+this.stride[0]*Et+this.stride[1]*kt+this.stride[2]*wt+this.stride[3]*ct):this.data[this.offset+this.stride[0]*Et+this.stride[1]*kt+this.stride[2]*wt+this.stride[3]*ct]},_t.index=function(Et,kt,wt,ct){return this.offset+this.stride[0]*Et+this.stride[1]*kt+this.stride[2]*wt+this.stride[3]*ct},_t.hi=function(Et,kt,wt,ct){return new St(this.data,typeof Et!="number"||Et<0?this.shape[0]:Et|0,typeof kt!="number"||kt<0?this.shape[1]:kt|0,typeof wt!="number"||wt<0?this.shape[2]:wt|0,typeof ct!="number"||ct<0?this.shape[3]:ct|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},_t.lo=function(Et,kt,wt,ct){var It=this.offset,At=0,Ot=this.shape[0],Pt=this.shape[1],zt=this.shape[2],Dt=this.shape[3],Nt=this.stride[0],$t=this.stride[1],Ut=this.stride[2],Ht=this.stride[3];return typeof Et=="number"&&Et>=0&&(At=Et|0,It+=Nt*At,Ot-=At),typeof kt=="number"&&kt>=0&&(At=kt|0,It+=$t*At,Pt-=At),typeof wt=="number"&&wt>=0&&(At=wt|0,It+=Ut*At,zt-=At),typeof ct=="number"&&ct>=0&&(At=ct|0,It+=Ht*At,Dt-=At),new St(this.data,Ot,Pt,zt,Dt,Nt,$t,Ut,Ht,It)},_t.step=function(Et,kt,wt,ct){var It=this.shape[0],At=this.shape[1],Ot=this.shape[2],Pt=this.shape[3],zt=this.stride[0],Dt=this.stride[1],Nt=this.stride[2],$t=this.stride[3],Ut=this.offset,Ht=0,Vt=Math.ceil;return typeof Et=="number"&&(Ht=Et|0,Ht<0?(Ut+=zt*(It-1),It=Vt(-It/Ht)):It=Vt(It/Ht),zt*=Ht),typeof kt=="number"&&(Ht=kt|0,Ht<0?(Ut+=Dt*(At-1),At=Vt(-At/Ht)):At=Vt(At/Ht),Dt*=Ht),typeof wt=="number"&&(Ht=wt|0,Ht<0?(Ut+=Nt*(Ot-1),Ot=Vt(-Ot/Ht)):Ot=Vt(Ot/Ht),Nt*=Ht),typeof ct=="number"&&(Ht=ct|0,Ht<0?(Ut+=$t*(Pt-1),Pt=Vt(-Pt/Ht)):Pt=Vt(Pt/Ht),$t*=Ht),new St(this.data,It,At,Ot,Pt,zt,Dt,Nt,$t,Ut)},_t.transpose=function(Et,kt,wt,ct){Et=Et===void 0?0:Et|0,kt=kt===void 0?1:kt|0,wt=wt===void 0?2:wt|0,ct=ct===void 0?3:ct|0;var It=this.shape,At=this.stride;return new St(this.data,It[Et],It[kt],It[wt],It[ct],At[Et],At[kt],At[wt],At[ct],this.offset)},_t.pick=function(Et,kt,wt,ct){var It=[],At=[],Ot=this.offset;typeof Et=="number"&&Et>=0?Ot=Ot+this.stride[0]*Et|0:(It.push(this.shape[0]),At.push(this.stride[0])),typeof kt=="number"&&kt>=0?Ot=Ot+this.stride[1]*kt|0:(It.push(this.shape[1]),At.push(this.stride[1])),typeof wt=="number"&&wt>=0?Ot=Ot+this.stride[2]*wt|0:(It.push(this.shape[2]),At.push(this.stride[2])),typeof ct=="number"&&ct>=0?Ot=Ot+this.stride[3]*ct|0:(It.push(this.shape[3]),At.push(this.stride[3]));var Pt=at[It.length+1];return Pt(this.data,It,At,Ot)},function(Et,kt,wt,ct){return new St(Et,kt[0],kt[1],kt[2],kt[3],wt[0],wt[1],wt[2],wt[3],ct)}},5:function(at,mt,St){function _t(Et,kt,wt,ct,It,At,Ot,Pt,zt,Dt,Nt,$t){this.data=Et,this.shape=[kt,wt,ct,It,At],this.stride=[Ot,Pt,zt,Dt,Nt],this.offset=$t|0}var Mt=_t.prototype;return Mt.dtype=at,Mt.dimension=5,Object.defineProperty(Mt,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(Mt,"order",{get:St}),Mt.set=function(kt,wt,ct,It,At,Ot){return at==="generic"?this.data.set(this.offset+this.stride[0]*kt+this.stride[1]*wt+this.stride[2]*ct+this.stride[3]*It+this.stride[4]*At,Ot):this.data[this.offset+this.stride[0]*kt+this.stride[1]*wt+this.stride[2]*ct+this.stride[3]*It+this.stride[4]*At]=Ot},Mt.get=function(kt,wt,ct,It,At){return at==="generic"?this.data.get(this.offset+this.stride[0]*kt+this.stride[1]*wt+this.stride[2]*ct+this.stride[3]*It+this.stride[4]*At):this.data[this.offset+this.stride[0]*kt+this.stride[1]*wt+this.stride[2]*ct+this.stride[3]*It+this.stride[4]*At]},Mt.index=function(kt,wt,ct,It,At){return this.offset+this.stride[0]*kt+this.stride[1]*wt+this.stride[2]*ct+this.stride[3]*It+this.stride[4]*At},Mt.hi=function(kt,wt,ct,It,At){return new _t(this.data,typeof kt!="number"||kt<0?this.shape[0]:kt|0,typeof wt!="number"||wt<0?this.shape[1]:wt|0,typeof ct!="number"||ct<0?this.shape[2]:ct|0,typeof It!="number"||It<0?this.shape[3]:It|0,typeof At!="number"||At<0?this.shape[4]:At|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},Mt.lo=function(kt,wt,ct,It,At){var Ot=this.offset,Pt=0,zt=this.shape[0],Dt=this.shape[1],Nt=this.shape[2],$t=this.shape[3],Ut=this.shape[4],Ht=this.stride[0],Vt=this.stride[1],Xt=this.stride[2],qt=this.stride[3],er=this.stride[4];return typeof kt=="number"&&kt>=0&&(Pt=kt|0,Ot+=Ht*Pt,zt-=Pt),typeof wt=="number"&&wt>=0&&(Pt=wt|0,Ot+=Vt*Pt,Dt-=Pt),typeof ct=="number"&&ct>=0&&(Pt=ct|0,Ot+=Xt*Pt,Nt-=Pt),typeof It=="number"&&It>=0&&(Pt=It|0,Ot+=qt*Pt,$t-=Pt),typeof At=="number"&&At>=0&&(Pt=At|0,Ot+=er*Pt,Ut-=Pt),new _t(this.data,zt,Dt,Nt,$t,Ut,Ht,Vt,Xt,qt,er,Ot)},Mt.step=function(kt,wt,ct,It,At){var Ot=this.shape[0],Pt=this.shape[1],zt=this.shape[2],Dt=this.shape[3],Nt=this.shape[4],$t=this.stride[0],Ut=this.stride[1],Ht=this.stride[2],Vt=this.stride[3],Xt=this.stride[4],qt=this.offset,er=0,lr=Math.ceil;return typeof kt=="number"&&(er=kt|0,er<0?(qt+=$t*(Ot-1),Ot=lr(-Ot/er)):Ot=lr(Ot/er),$t*=er),typeof wt=="number"&&(er=wt|0,er<0?(qt+=Ut*(Pt-1),Pt=lr(-Pt/er)):Pt=lr(Pt/er),Ut*=er),typeof ct=="number"&&(er=ct|0,er<0?(qt+=Ht*(zt-1),zt=lr(-zt/er)):zt=lr(zt/er),Ht*=er),typeof It=="number"&&(er=It|0,er<0?(qt+=Vt*(Dt-1),Dt=lr(-Dt/er)):Dt=lr(Dt/er),Vt*=er),typeof At=="number"&&(er=At|0,er<0?(qt+=Xt*(Nt-1),Nt=lr(-Nt/er)):Nt=lr(Nt/er),Xt*=er),new _t(this.data,Ot,Pt,zt,Dt,Nt,$t,Ut,Ht,Vt,Xt,qt)},Mt.transpose=function(kt,wt,ct,It,At){kt=kt===void 0?0:kt|0,wt=wt===void 0?1:wt|0,ct=ct===void 0?2:ct|0,It=It===void 0?3:It|0,At=At===void 0?4:At|0;var Ot=this.shape,Pt=this.stride;return new _t(this.data,Ot[kt],Ot[wt],Ot[ct],Ot[It],Ot[At],Pt[kt],Pt[wt],Pt[ct],Pt[It],Pt[At],this.offset)},Mt.pick=function(kt,wt,ct,It,At){var Ot=[],Pt=[],zt=this.offset;typeof kt=="number"&&kt>=0?zt=zt+this.stride[0]*kt|0:(Ot.push(this.shape[0]),Pt.push(this.stride[0])),typeof wt=="number"&&wt>=0?zt=zt+this.stride[1]*wt|0:(Ot.push(this.shape[1]),Pt.push(this.stride[1])),typeof ct=="number"&&ct>=0?zt=zt+this.stride[2]*ct|0:(Ot.push(this.shape[2]),Pt.push(this.stride[2])),typeof It=="number"&&It>=0?zt=zt+this.stride[3]*It|0:(Ot.push(this.shape[3]),Pt.push(this.stride[3])),typeof At=="number"&&At>=0?zt=zt+this.stride[4]*At|0:(Ot.push(this.shape[4]),Pt.push(this.stride[4]));var Dt=mt[Ot.length+1];return Dt(this.data,Ot,Pt,zt)},function(kt,wt,ct,It){return new _t(kt,wt[0],wt[1],wt[2],wt[3],wt[4],ct[0],ct[1],ct[2],ct[3],ct[4],It)}}};function nt(ft,at){var mt=at===-1?"T":String(at),St=ot[mt];return at===-1?St(ft):at===0?St(ft,dt[ft][0]):St(ft,dt[ft],st)}function vt(ft){if(_(ft))return"buffer";if(rt)switch(Object.prototype.toString.call(ft)){case"[object Float64Array]":return"float64";case"[object Float32Array]":return"float32";case"[object Int8Array]":return"int8";case"[object Int16Array]":return"int16";case"[object Int32Array]":return"int32";case"[object Uint8ClampedArray]":return"uint8_clamped";case"[object Uint8Array]":return"uint8";case"[object Uint16Array]":return"uint16";case"[object Uint32Array]":return"uint32";case"[object BigInt64Array]":return"bigint64";case"[object BigUint64Array]":return"biguint64"}return Array.isArray(ft)?"array":"generic"}var dt={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function bt(ft,at,mt,St){if(ft===void 0){var ct=dt.array[0];return ct([])}else typeof ft=="number"&&(ft=[ft]);at===void 0&&(at=[ft.length]);var _t=at.length;if(mt===void 0){mt=new Array(_t);for(var Mt=_t-1,Et=1;Mt>=0;--Mt)mt[Mt]=Et,Et*=at[Mt]}if(St===void 0){St=0;for(var Mt=0;Mt<_t;++Mt)mt[Mt]<0&&(St-=(at[Mt]-1)*mt[Mt])}for(var kt=vt(ft),wt=dt[kt];wt.length<=_t+1;)wt.push(nt(kt,wt.length-1));var ct=wt[_t+1];return ct(ft,at,mt,St)}ut.exports=bt},1278:function(ut,ht,j){var _=j(2361),rt=Math.pow(2,-1074),tt=-1>>>0;ut.exports=st;function st(ot,nt){if(isNaN(ot)||isNaN(nt))return NaN;if(ot===nt)return ot;if(ot===0)return nt<0?-rt:rt;var vt=_.hi(ot),dt=_.lo(ot);return nt>ot==ot>0?dt===tt?(vt+=1,dt=0):dt+=1:dt===0?(dt=tt,vt-=1):dt-=1,_.pack(dt,vt)}},8406:function(ut,ht){var j=1e-6,_=1e-6;ht.vertexNormals=function(rt,tt,st){for(var ot=tt.length,nt=new Array(ot),vt=st===void 0?j:st,dt=0;dtvt)for(var Ot=nt[at],Pt=1/Math.sqrt(wt*It),At=0;At<3;++At){var zt=(At+1)%3,Dt=(At+2)%3;Ot[At]+=Pt*(ct[zt]*kt[Dt]-ct[Dt]*kt[zt])}}for(var dt=0;dtvt)for(var Pt=1/Math.sqrt(Nt),At=0;At<3;++At)Ot[At]*=Pt;else for(var At=0;At<3;++At)Ot[At]=0}return nt},ht.faceNormals=function(rt,tt,st){for(var ot=rt.length,nt=new Array(ot),vt=st===void 0?_:st,dt=0;dtvt?Mt=1/Math.sqrt(Mt):Mt=0;for(var at=0;at<3;++at)_t[at]*=Mt;nt[dt]=_t}return nt}},4081:function(ut){ut.exports=ht;function ht(j,_,rt,tt,st,ot,nt,vt,dt,bt){var ft=_+ot+bt;if(at>0){var at=Math.sqrt(ft+1);j[0]=.5*(nt-dt)/at,j[1]=.5*(vt-tt)/at,j[2]=.5*(rt-ot)/at,j[3]=.5*at}else{var mt=Math.max(_,ot,bt),at=Math.sqrt(2*mt-ft+1);_>=mt?(j[0]=.5*at,j[1]=.5*(st+rt)/at,j[2]=.5*(vt+tt)/at,j[3]=.5*(nt-dt)/at):ot>=mt?(j[0]=.5*(rt+st)/at,j[1]=.5*at,j[2]=.5*(dt+nt)/at,j[3]=.5*(vt-tt)/at):(j[0]=.5*(tt+vt)/at,j[1]=.5*(nt+dt)/at,j[2]=.5*at,j[3]=.5*(rt-st)/at)}return j}},9977:function(ut,ht,j){ut.exports=at;var _=j(9215),rt=j(6582),tt=j(7399),st=j(7608),ot=j(4081);function nt(mt,St,_t){return Math.sqrt(Math.pow(mt,2)+Math.pow(St,2)+Math.pow(_t,2))}function vt(mt,St,_t,Mt){return Math.sqrt(Math.pow(mt,2)+Math.pow(St,2)+Math.pow(_t,2)+Math.pow(Mt,2))}function dt(mt,St){var _t=St[0],Mt=St[1],Et=St[2],kt=St[3],wt=vt(_t,Mt,Et,kt);wt>1e-6?(mt[0]=_t/wt,mt[1]=Mt/wt,mt[2]=Et/wt,mt[3]=kt/wt):(mt[0]=mt[1]=mt[2]=0,mt[3]=1)}function bt(mt,St,_t){this.radius=_([_t]),this.center=_(St),this.rotation=_(mt),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var ft=bt.prototype;ft.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},ft.recalcMatrix=function(mt){this.radius.curve(mt),this.center.curve(mt),this.rotation.curve(mt);var St=this.computedRotation;dt(St,St);var _t=this.computedMatrix;tt(_t,St);var Mt=this.computedCenter,Et=this.computedEye,kt=this.computedUp,wt=Math.exp(this.computedRadius[0]);Et[0]=Mt[0]+wt*_t[2],Et[1]=Mt[1]+wt*_t[6],Et[2]=Mt[2]+wt*_t[10],kt[0]=_t[1],kt[1]=_t[5],kt[2]=_t[9];for(var ct=0;ct<3;++ct){for(var It=0,At=0;At<3;++At)It+=_t[ct+4*At]*Et[At];_t[12+ct]=-It}},ft.getMatrix=function(mt,St){this.recalcMatrix(mt);var _t=this.computedMatrix;if(St){for(var Mt=0;Mt<16;++Mt)St[Mt]=_t[Mt];return St}return _t},ft.idle=function(mt){this.center.idle(mt),this.radius.idle(mt),this.rotation.idle(mt)},ft.flush=function(mt){this.center.flush(mt),this.radius.flush(mt),this.rotation.flush(mt)},ft.pan=function(mt,St,_t,Mt){St=St||0,_t=_t||0,Mt=Mt||0,this.recalcMatrix(mt);var Et=this.computedMatrix,kt=Et[1],wt=Et[5],ct=Et[9],It=nt(kt,wt,ct);kt/=It,wt/=It,ct/=It;var At=Et[0],Ot=Et[4],Pt=Et[8],zt=At*kt+Ot*wt+Pt*ct;At-=kt*zt,Ot-=wt*zt,Pt-=ct*zt;var Dt=nt(At,Ot,Pt);At/=Dt,Ot/=Dt,Pt/=Dt,Et[2],Et[6],Et[10];var Nt=At*St+kt*_t,$t=Ot*St+wt*_t,Ut=Pt*St+ct*_t;this.center.move(mt,Nt,$t,Ut);var Ht=Math.exp(this.computedRadius[0]);Ht=Math.max(1e-4,Ht+Mt),this.radius.set(mt,Math.log(Ht))},ft.rotate=function(mt,St,_t,Mt){this.recalcMatrix(mt),St=St||0,_t=_t||0;var Et=this.computedMatrix,kt=Et[0],wt=Et[4],ct=Et[8],It=Et[1],At=Et[5],Ot=Et[9],Pt=Et[2],zt=Et[6],Dt=Et[10],Nt=St*kt+_t*It,$t=St*wt+_t*At,Ut=St*ct+_t*Ot,Ht=-(zt*Ut-Dt*$t),Vt=-(Dt*Nt-Pt*Ut),Xt=-(Pt*$t-zt*Nt),qt=Math.sqrt(Math.max(0,1-Math.pow(Ht,2)-Math.pow(Vt,2)-Math.pow(Xt,2))),er=vt(Ht,Vt,Xt,qt);er>1e-6?(Ht/=er,Vt/=er,Xt/=er,qt/=er):(Ht=Vt=Xt=0,qt=1);var lr=this.computedRotation,Jt=lr[0],Yt=lr[1],rr=lr[2],jt=lr[3],ar=Jt*qt+jt*Ht+Yt*Xt-rr*Vt,sr=Yt*qt+jt*Vt+rr*Ht-Jt*Xt,Zt=rr*qt+jt*Xt+Jt*Vt-Yt*Ht,Kt=jt*qt-Jt*Ht-Yt*Vt-rr*Xt;if(Mt){Ht=Pt,Vt=zt,Xt=Dt;var or=Math.sin(Mt)/nt(Ht,Vt,Xt);Ht*=or,Vt*=or,Xt*=or,qt=Math.cos(St),ar=ar*qt+Kt*Ht+sr*Xt-Zt*Vt,sr=sr*qt+Kt*Vt+Zt*Ht-ar*Xt,Zt=Zt*qt+Kt*Xt+ar*Vt-sr*Ht,Kt=Kt*qt-ar*Ht-sr*Vt-Zt*Xt}var tr=vt(ar,sr,Zt,Kt);tr>1e-6?(ar/=tr,sr/=tr,Zt/=tr,Kt/=tr):(ar=sr=Zt=0,Kt=1),this.rotation.set(mt,ar,sr,Zt,Kt)},ft.lookAt=function(mt,St,_t,Mt){this.recalcMatrix(mt),_t=_t||this.computedCenter,St=St||this.computedEye,Mt=Mt||this.computedUp;var Et=this.computedMatrix;rt(Et,St,_t,Mt);var kt=this.computedRotation;ot(kt,Et[0],Et[1],Et[2],Et[4],Et[5],Et[6],Et[8],Et[9],Et[10]),dt(kt,kt),this.rotation.set(mt,kt[0],kt[1],kt[2],kt[3]);for(var wt=0,ct=0;ct<3;++ct)wt+=Math.pow(_t[ct]-St[ct],2);this.radius.set(mt,.5*Math.log(Math.max(wt,1e-6))),this.center.set(mt,_t[0],_t[1],_t[2])},ft.translate=function(mt,St,_t,Mt){this.center.move(mt,St||0,_t||0,Mt||0)},ft.setMatrix=function(mt,St){var _t=this.computedRotation;ot(_t,St[0],St[1],St[2],St[4],St[5],St[6],St[8],St[9],St[10]),dt(_t,_t),this.rotation.set(mt,_t[0],_t[1],_t[2],_t[3]);var Mt=this.computedMatrix;st(Mt,St);var Et=Mt[15];if(Math.abs(Et)>1e-6){var kt=Mt[12]/Et,wt=Mt[13]/Et,ct=Mt[14]/Et;this.recalcMatrix(mt);var It=Math.exp(this.computedRadius[0]);this.center.set(mt,kt-Mt[2]*It,wt-Mt[6]*It,ct-Mt[10]*It),this.radius.idle(mt)}else this.center.idle(mt),this.radius.idle(mt)},ft.setDistance=function(mt,St){St>0&&this.radius.set(mt,Math.log(St))},ft.setDistanceLimits=function(mt,St){mt>0?mt=Math.log(mt):mt=-1/0,St>0?St=Math.log(St):St=1/0,St=Math.max(St,mt),this.radius.bounds[0][0]=mt,this.radius.bounds[1][0]=St},ft.getDistanceLimits=function(mt){var St=this.radius.bounds;return mt?(mt[0]=Math.exp(St[0][0]),mt[1]=Math.exp(St[1][0]),mt):[Math.exp(St[0][0]),Math.exp(St[1][0])]},ft.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},ft.fromJSON=function(mt){var St=this.lastT(),_t=mt.center;_t&&this.center.set(St,_t[0],_t[1],_t[2]);var Mt=mt.rotation;Mt&&this.rotation.set(St,Mt[0],Mt[1],Mt[2],Mt[3]);var Et=mt.distance;Et&&Et>0&&this.radius.set(St,Math.log(Et)),this.setDistanceLimits(mt.zoomMin,mt.zoomMax)};function at(mt){mt=mt||{};var St=mt.center||[0,0,0],_t=mt.rotation||[0,0,0,1],Mt=mt.radius||1;St=[].slice.call(St,0,3),_t=[].slice.call(_t,0,4),dt(_t,_t);var Et=new bt(_t,St,Math.log(Mt));return Et.setDistanceLimits(mt.zoomMin,mt.zoomMax),("eye"in mt||"up"in mt)&&Et.lookAt(0,mt.eye,mt.center,mt.up),Et}},1371:function(ut,ht,j){/*! * pad-left * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT license. -*/var _=j(3233);ut.exports=function(tt,st,ot){return ot=typeof ot<"u"?ot+"":" ",_(ot,st)+tt}},3202:function(ut){ut.exports=function(j,_){_||(_=[0,""]),j=String(j);var rt=parseFloat(j,10);return _[0]=rt,_[1]=j.match(/[\d.\-\+]*\s*(.*)/)[1]||"",_}},3088:function(ut,ht,j){ut.exports=rt;var _=j(3140);function rt(tt,st){for(var ot=st.length|0,nt=tt.length,vt=[new Array(ot),new Array(ot)],dt=0;dt0){At=vt[zt][ct][0],Pt=zt;break}Ot=At[Pt^1];for(var Dt=0;Dt<2;++Dt)for(var Nt=vt[Dt][ct],$t=0;$t0&&(At=Ut,Ot=Ht,Pt=Dt)}return It||At&&at(At,Pt),Ot}function St(wt,ct){var It=vt[ct][wt][0],At=[wt];at(It,ct);for(var Ot=It[ct^1];;){for(;Ot!==wt;)At.push(Ot),Ot=yt(At[At.length-2],Ot,!1);if(vt[0][wt].length+vt[1][wt].length===0)break;var Pt=At[At.length-1],zt=wt,Dt=At[1],Nt=yt(Pt,zt,!0);if(_(st[Pt],st[zt],st[Dt],st[Nt])<0)break;At.push(wt),Ot=yt(Pt,zt)}return At}function _t(wt,ct){return ct[1]===ct[ct.length-1]}for(var dt=0;dt0;){vt[0][dt].length;var kt=St(dt,Mt);_t(Tt,kt)?Tt.push.apply(Tt,kt):(Tt.length>0&&ft.push(Tt),Tt=kt)}Tt.length>0&&ft.push(Tt)}return ft}},5609:function(ut,ht,j){ut.exports=rt;var _=j(3134);function rt(tt,st){for(var ot=_(tt,st.length),nt=new Array(st.length),vt=new Array(st.length),dt=[],bt=0;bt0;){var at=dt.pop();nt[at]=!1;for(var yt=ot[at],bt=0;bt0}Tt=Tt.filter(kt);for(var wt=Tt.length,ct=new Array(wt),It=new Array(wt),Mt=0;Mt0;){var or=sr.pop(),tr=qt[or];nt(tr,function(Ir,Ar){return Ir-Ar});var cr=tr.length,hr=Zt[or],br;if(hr===0){var Nt=Tt[or];br=[Nt]}for(var Mt=0;Mt=0)&&(Zt[Tr]=hr^1,sr.push(Tr),hr===0)){var Nt=Tt[Tr];ar(Nt)||(Nt.reverse(),br.push(Nt))}}hr===0&&Kt.push(br)}return Kt}},5085:function(ut,ht,j){ut.exports=yt;var _=j(3250)[3],rt=j(4209),tt=j(3352),st=j(2478);function ot(){return!0}function nt(St){return function(_t,Mt){var Tt=St[_t];return Tt?!!Tt.queryPoint(Mt,ot):!1}}function vt(St){for(var _t={},Mt=0;Mt0&&_t[Tt]===Mt[0])kt=St[Tt-1];else return 1;for(var wt=1;kt;){var ct=kt.key,It=_(Mt,ct[0],ct[1]);if(ct[0][0]0)wt=-1,kt=kt.right;else return 0;else if(It>0)kt=kt.left;else if(It<0)wt=1,kt=kt.right;else return 0}return wt}}function bt(St){return 1}function ft(St){return function(Mt){return St(Mt[0],Mt[1])?0:1}}function at(St,_t){return function(Tt){return St(Tt[0],Tt[1])?0:_t(Tt)}}function yt(St){for(var _t=St.length,Mt=[],Tt=[],kt=0;kt<_t;++kt)for(var wt=St[kt],ct=wt.length,It=ct-1,At=0;At=bt?(ct=1,At=bt+2*yt+_t):(ct=-yt/bt,At=yt*ct+_t)):(ct=0,St>=0?(It=0,At=_t):-St>=at?(It=1,At=at+2*St+_t):(It=-St/at,At=St*It+_t));else if(It<0)It=0,yt>=0?(ct=0,At=_t):-yt>=bt?(ct=1,At=bt+2*yt+_t):(ct=-yt/bt,At=yt*ct+_t);else{var Ot=1/wt;ct*=Ot,It*=Ot,At=ct*(bt*ct+ft*It+2*yt)+It*(ft*ct+at*It+2*St)+_t}else{var Pt,zt,Dt,Nt;ct<0?(Pt=ft+yt,zt=at+St,zt>Pt?(Dt=zt-Pt,Nt=bt-2*ft+at,Dt>=Nt?(ct=1,It=0,At=bt+2*yt+_t):(ct=Dt/Nt,It=1-ct,At=ct*(bt*ct+ft*It+2*yt)+It*(ft*ct+at*It+2*St)+_t)):(ct=0,zt<=0?(It=1,At=at+2*St+_t):St>=0?(It=0,At=_t):(It=-St/at,At=St*It+_t))):It<0?(Pt=ft+St,zt=bt+yt,zt>Pt?(Dt=zt-Pt,Nt=bt-2*ft+at,Dt>=Nt?(It=1,ct=0,At=at+2*St+_t):(It=Dt/Nt,ct=1-It,At=ct*(bt*ct+ft*It+2*yt)+It*(ft*ct+at*It+2*St)+_t)):(It=0,zt<=0?(ct=1,At=bt+2*yt+_t):yt>=0?(ct=0,At=_t):(ct=-yt/bt,At=yt*ct+_t))):(Dt=at+St-ft-yt,Dt<=0?(ct=0,It=1,At=at+2*St+_t):(Nt=bt-2*ft+at,Dt>=Nt?(ct=1,It=0,At=bt+2*yt+_t):(ct=Dt/Nt,It=1-ct,At=ct*(bt*ct+ft*It+2*yt)+It*(ft*ct+at*It+2*St)+_t)))}for(var $t=1-ct-It,dt=0;dt0){var at=ot[vt-1];if(_(bt,at)===0&&tt(at)!==ft){vt-=1;continue}}ot[vt++]=bt}}return ot.length=vt,ot}},3233:function(ut){/*! +*/var _=j(3233);ut.exports=function(tt,st,ot){return ot=typeof ot<"u"?ot+"":" ",_(ot,st)+tt}},3202:function(ut){ut.exports=function(j,_){_||(_=[0,""]),j=String(j);var rt=parseFloat(j,10);return _[0]=rt,_[1]=j.match(/[\d.\-\+]*\s*(.*)/)[1]||"",_}},3088:function(ut,ht,j){ut.exports=rt;var _=j(3140);function rt(tt,st){for(var ot=st.length|0,nt=tt.length,vt=[new Array(ot),new Array(ot)],dt=0;dt0){At=vt[zt][ct][0],Pt=zt;break}Ot=At[Pt^1];for(var Dt=0;Dt<2;++Dt)for(var Nt=vt[Dt][ct],$t=0;$t0&&(At=Ut,Ot=Ht,Pt=Dt)}return It||At&&at(At,Pt),Ot}function St(wt,ct){var It=vt[ct][wt][0],At=[wt];at(It,ct);for(var Ot=It[ct^1];;){for(;Ot!==wt;)At.push(Ot),Ot=mt(At[At.length-2],Ot,!1);if(vt[0][wt].length+vt[1][wt].length===0)break;var Pt=At[At.length-1],zt=wt,Dt=At[1],Nt=mt(Pt,zt,!0);if(_(st[Pt],st[zt],st[Dt],st[Nt])<0)break;At.push(wt),Ot=mt(Pt,zt)}return At}function _t(wt,ct){return ct[1]===ct[ct.length-1]}for(var dt=0;dt0;){vt[0][dt].length;var kt=St(dt,Mt);_t(Et,kt)?Et.push.apply(Et,kt):(Et.length>0&&ft.push(Et),Et=kt)}Et.length>0&&ft.push(Et)}return ft}},5609:function(ut,ht,j){ut.exports=rt;var _=j(3134);function rt(tt,st){for(var ot=_(tt,st.length),nt=new Array(st.length),vt=new Array(st.length),dt=[],bt=0;bt0;){var at=dt.pop();nt[at]=!1;for(var mt=ot[at],bt=0;bt0}Et=Et.filter(kt);for(var wt=Et.length,ct=new Array(wt),It=new Array(wt),Mt=0;Mt0;){var or=sr.pop(),tr=qt[or];nt(tr,function(Ir,Tr){return Ir-Tr});var cr=tr.length,mr=Zt[or],Ar;if(mr===0){var Nt=Et[or];Ar=[Nt]}for(var Mt=0;Mt=0)&&(Zt[br]=mr^1,sr.push(br),mr===0)){var Nt=Et[br];ar(Nt)||(Nt.reverse(),Ar.push(Nt))}}mr===0&&Kt.push(Ar)}return Kt}},5085:function(ut,ht,j){ut.exports=mt;var _=j(3250)[3],rt=j(4209),tt=j(3352),st=j(2478);function ot(){return!0}function nt(St){return function(_t,Mt){var Et=St[_t];return Et?!!Et.queryPoint(Mt,ot):!1}}function vt(St){for(var _t={},Mt=0;Mt0&&_t[Et]===Mt[0])kt=St[Et-1];else return 1;for(var wt=1;kt;){var ct=kt.key,It=_(Mt,ct[0],ct[1]);if(ct[0][0]0)wt=-1,kt=kt.right;else return 0;else if(It>0)kt=kt.left;else if(It<0)wt=1,kt=kt.right;else return 0}return wt}}function bt(St){return 1}function ft(St){return function(Mt){return St(Mt[0],Mt[1])?0:1}}function at(St,_t){return function(Et){return St(Et[0],Et[1])?0:_t(Et)}}function mt(St){for(var _t=St.length,Mt=[],Et=[],kt=0;kt<_t;++kt)for(var wt=St[kt],ct=wt.length,It=ct-1,At=0;At=bt?(ct=1,At=bt+2*mt+_t):(ct=-mt/bt,At=mt*ct+_t)):(ct=0,St>=0?(It=0,At=_t):-St>=at?(It=1,At=at+2*St+_t):(It=-St/at,At=St*It+_t));else if(It<0)It=0,mt>=0?(ct=0,At=_t):-mt>=bt?(ct=1,At=bt+2*mt+_t):(ct=-mt/bt,At=mt*ct+_t);else{var Ot=1/wt;ct*=Ot,It*=Ot,At=ct*(bt*ct+ft*It+2*mt)+It*(ft*ct+at*It+2*St)+_t}else{var Pt,zt,Dt,Nt;ct<0?(Pt=ft+mt,zt=at+St,zt>Pt?(Dt=zt-Pt,Nt=bt-2*ft+at,Dt>=Nt?(ct=1,It=0,At=bt+2*mt+_t):(ct=Dt/Nt,It=1-ct,At=ct*(bt*ct+ft*It+2*mt)+It*(ft*ct+at*It+2*St)+_t)):(ct=0,zt<=0?(It=1,At=at+2*St+_t):St>=0?(It=0,At=_t):(It=-St/at,At=St*It+_t))):It<0?(Pt=ft+St,zt=bt+mt,zt>Pt?(Dt=zt-Pt,Nt=bt-2*ft+at,Dt>=Nt?(It=1,ct=0,At=at+2*St+_t):(It=Dt/Nt,ct=1-It,At=ct*(bt*ct+ft*It+2*mt)+It*(ft*ct+at*It+2*St)+_t)):(It=0,zt<=0?(ct=1,At=bt+2*mt+_t):mt>=0?(ct=0,At=_t):(ct=-mt/bt,At=mt*ct+_t))):(Dt=at+St-ft-mt,Dt<=0?(ct=0,It=1,At=at+2*St+_t):(Nt=bt-2*ft+at,Dt>=Nt?(ct=1,It=0,At=bt+2*mt+_t):(ct=Dt/Nt,It=1-ct,At=ct*(bt*ct+ft*It+2*mt)+It*(ft*ct+at*It+2*St)+_t)))}for(var $t=1-ct-It,dt=0;dt0){var at=ot[vt-1];if(_(bt,at)===0&&tt(at)!==ft){vt-=1;continue}}ot[vt++]=bt}}return ot.length=vt,ot}},3233:function(ut){/*! * repeat-string * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. -*/var ht="",j;ut.exports=_;function _(rt,tt){if(typeof rt!="string")throw new TypeError("expected a string");if(tt===1)return rt;if(tt===2)return rt+rt;var st=rt.length*tt;if(j!==rt||typeof j>"u")j=rt,ht="";else if(ht.length>=st)return ht.substr(0,st);for(;st>ht.length&&tt>1;)tt&1&&(ht+=rt),tt>>=1,rt+=rt;return ht+=rt,ht=ht.substr(0,st),ht}},3025:function(ut,ht,j){ut.exports=j.g.performance&&j.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},7004:function(ut){ut.exports=ht;function ht(j){for(var _=j.length,rt=j[j.length-1],tt=_,st=_-2;st>=0;--st){var ot=rt,nt=j[st];rt=ot+nt;var vt=rt-ot,dt=nt-vt;dt&&(j[--tt]=rt,rt=dt)}for(var bt=0,st=tt;st<_;++st){var ot=j[st],nt=rt;rt=ot+nt;var vt=rt-ot,dt=nt-vt;dt&&(j[bt++]=dt)}return j[bt++]=rt,j.length=bt,j}},2962:function(ut,ht,j){var _=j(5250),rt=j(8210),tt=j(3012),st=j(7004),ot=6;function nt(_t,Mt,Tt,kt){return function(ct){return kt(_t(Tt(ct[0][0],ct[1][1]),Tt(-ct[0][1],ct[1][0])))}}function vt(_t,Mt,Tt,kt){return function(ct){return kt(_t(Mt(_t(Tt(ct[1][1],ct[2][2]),Tt(-ct[1][2],ct[2][1])),ct[0][0]),_t(Mt(_t(Tt(ct[1][0],ct[2][2]),Tt(-ct[1][2],ct[2][0])),-ct[0][1]),Mt(_t(Tt(ct[1][0],ct[2][1]),Tt(-ct[1][1],ct[2][0])),ct[0][2]))))}}function dt(_t,Mt,Tt,kt){return function(ct){return kt(_t(_t(Mt(_t(Mt(_t(Tt(ct[2][2],ct[3][3]),Tt(-ct[2][3],ct[3][2])),ct[1][1]),_t(Mt(_t(Tt(ct[2][1],ct[3][3]),Tt(-ct[2][3],ct[3][1])),-ct[1][2]),Mt(_t(Tt(ct[2][1],ct[3][2]),Tt(-ct[2][2],ct[3][1])),ct[1][3]))),ct[0][0]),Mt(_t(Mt(_t(Tt(ct[2][2],ct[3][3]),Tt(-ct[2][3],ct[3][2])),ct[1][0]),_t(Mt(_t(Tt(ct[2][0],ct[3][3]),Tt(-ct[2][3],ct[3][0])),-ct[1][2]),Mt(_t(Tt(ct[2][0],ct[3][2]),Tt(-ct[2][2],ct[3][0])),ct[1][3]))),-ct[0][1])),_t(Mt(_t(Mt(_t(Tt(ct[2][1],ct[3][3]),Tt(-ct[2][3],ct[3][1])),ct[1][0]),_t(Mt(_t(Tt(ct[2][0],ct[3][3]),Tt(-ct[2][3],ct[3][0])),-ct[1][1]),Mt(_t(Tt(ct[2][0],ct[3][1]),Tt(-ct[2][1],ct[3][0])),ct[1][3]))),ct[0][2]),Mt(_t(Mt(_t(Tt(ct[2][1],ct[3][2]),Tt(-ct[2][2],ct[3][1])),ct[1][0]),_t(Mt(_t(Tt(ct[2][0],ct[3][2]),Tt(-ct[2][2],ct[3][0])),-ct[1][1]),Mt(_t(Tt(ct[2][0],ct[3][1]),Tt(-ct[2][1],ct[3][0])),ct[1][2]))),-ct[0][3]))))}}function bt(_t,Mt,Tt,kt){return function(ct){return kt(_t(_t(Mt(_t(_t(Mt(_t(Mt(_t(Tt(ct[3][3],ct[4][4]),Tt(-ct[3][4],ct[4][3])),ct[2][2]),_t(Mt(_t(Tt(ct[3][2],ct[4][4]),Tt(-ct[3][4],ct[4][2])),-ct[2][3]),Mt(_t(Tt(ct[3][2],ct[4][3]),Tt(-ct[3][3],ct[4][2])),ct[2][4]))),ct[1][1]),Mt(_t(Mt(_t(Tt(ct[3][3],ct[4][4]),Tt(-ct[3][4],ct[4][3])),ct[2][1]),_t(Mt(_t(Tt(ct[3][1],ct[4][4]),Tt(-ct[3][4],ct[4][1])),-ct[2][3]),Mt(_t(Tt(ct[3][1],ct[4][3]),Tt(-ct[3][3],ct[4][1])),ct[2][4]))),-ct[1][2])),_t(Mt(_t(Mt(_t(Tt(ct[3][2],ct[4][4]),Tt(-ct[3][4],ct[4][2])),ct[2][1]),_t(Mt(_t(Tt(ct[3][1],ct[4][4]),Tt(-ct[3][4],ct[4][1])),-ct[2][2]),Mt(_t(Tt(ct[3][1],ct[4][2]),Tt(-ct[3][2],ct[4][1])),ct[2][4]))),ct[1][3]),Mt(_t(Mt(_t(Tt(ct[3][2],ct[4][3]),Tt(-ct[3][3],ct[4][2])),ct[2][1]),_t(Mt(_t(Tt(ct[3][1],ct[4][3]),Tt(-ct[3][3],ct[4][1])),-ct[2][2]),Mt(_t(Tt(ct[3][1],ct[4][2]),Tt(-ct[3][2],ct[4][1])),ct[2][3]))),-ct[1][4]))),ct[0][0]),Mt(_t(_t(Mt(_t(Mt(_t(Tt(ct[3][3],ct[4][4]),Tt(-ct[3][4],ct[4][3])),ct[2][2]),_t(Mt(_t(Tt(ct[3][2],ct[4][4]),Tt(-ct[3][4],ct[4][2])),-ct[2][3]),Mt(_t(Tt(ct[3][2],ct[4][3]),Tt(-ct[3][3],ct[4][2])),ct[2][4]))),ct[1][0]),Mt(_t(Mt(_t(Tt(ct[3][3],ct[4][4]),Tt(-ct[3][4],ct[4][3])),ct[2][0]),_t(Mt(_t(Tt(ct[3][0],ct[4][4]),Tt(-ct[3][4],ct[4][0])),-ct[2][3]),Mt(_t(Tt(ct[3][0],ct[4][3]),Tt(-ct[3][3],ct[4][0])),ct[2][4]))),-ct[1][2])),_t(Mt(_t(Mt(_t(Tt(ct[3][2],ct[4][4]),Tt(-ct[3][4],ct[4][2])),ct[2][0]),_t(Mt(_t(Tt(ct[3][0],ct[4][4]),Tt(-ct[3][4],ct[4][0])),-ct[2][2]),Mt(_t(Tt(ct[3][0],ct[4][2]),Tt(-ct[3][2],ct[4][0])),ct[2][4]))),ct[1][3]),Mt(_t(Mt(_t(Tt(ct[3][2],ct[4][3]),Tt(-ct[3][3],ct[4][2])),ct[2][0]),_t(Mt(_t(Tt(ct[3][0],ct[4][3]),Tt(-ct[3][3],ct[4][0])),-ct[2][2]),Mt(_t(Tt(ct[3][0],ct[4][2]),Tt(-ct[3][2],ct[4][0])),ct[2][3]))),-ct[1][4]))),-ct[0][1])),_t(Mt(_t(_t(Mt(_t(Mt(_t(Tt(ct[3][3],ct[4][4]),Tt(-ct[3][4],ct[4][3])),ct[2][1]),_t(Mt(_t(Tt(ct[3][1],ct[4][4]),Tt(-ct[3][4],ct[4][1])),-ct[2][3]),Mt(_t(Tt(ct[3][1],ct[4][3]),Tt(-ct[3][3],ct[4][1])),ct[2][4]))),ct[1][0]),Mt(_t(Mt(_t(Tt(ct[3][3],ct[4][4]),Tt(-ct[3][4],ct[4][3])),ct[2][0]),_t(Mt(_t(Tt(ct[3][0],ct[4][4]),Tt(-ct[3][4],ct[4][0])),-ct[2][3]),Mt(_t(Tt(ct[3][0],ct[4][3]),Tt(-ct[3][3],ct[4][0])),ct[2][4]))),-ct[1][1])),_t(Mt(_t(Mt(_t(Tt(ct[3][1],ct[4][4]),Tt(-ct[3][4],ct[4][1])),ct[2][0]),_t(Mt(_t(Tt(ct[3][0],ct[4][4]),Tt(-ct[3][4],ct[4][0])),-ct[2][1]),Mt(_t(Tt(ct[3][0],ct[4][1]),Tt(-ct[3][1],ct[4][0])),ct[2][4]))),ct[1][3]),Mt(_t(Mt(_t(Tt(ct[3][1],ct[4][3]),Tt(-ct[3][3],ct[4][1])),ct[2][0]),_t(Mt(_t(Tt(ct[3][0],ct[4][3]),Tt(-ct[3][3],ct[4][0])),-ct[2][1]),Mt(_t(Tt(ct[3][0],ct[4][1]),Tt(-ct[3][1],ct[4][0])),ct[2][3]))),-ct[1][4]))),ct[0][2]),_t(Mt(_t(_t(Mt(_t(Mt(_t(Tt(ct[3][2],ct[4][4]),Tt(-ct[3][4],ct[4][2])),ct[2][1]),_t(Mt(_t(Tt(ct[3][1],ct[4][4]),Tt(-ct[3][4],ct[4][1])),-ct[2][2]),Mt(_t(Tt(ct[3][1],ct[4][2]),Tt(-ct[3][2],ct[4][1])),ct[2][4]))),ct[1][0]),Mt(_t(Mt(_t(Tt(ct[3][2],ct[4][4]),Tt(-ct[3][4],ct[4][2])),ct[2][0]),_t(Mt(_t(Tt(ct[3][0],ct[4][4]),Tt(-ct[3][4],ct[4][0])),-ct[2][2]),Mt(_t(Tt(ct[3][0],ct[4][2]),Tt(-ct[3][2],ct[4][0])),ct[2][4]))),-ct[1][1])),_t(Mt(_t(Mt(_t(Tt(ct[3][1],ct[4][4]),Tt(-ct[3][4],ct[4][1])),ct[2][0]),_t(Mt(_t(Tt(ct[3][0],ct[4][4]),Tt(-ct[3][4],ct[4][0])),-ct[2][1]),Mt(_t(Tt(ct[3][0],ct[4][1]),Tt(-ct[3][1],ct[4][0])),ct[2][4]))),ct[1][2]),Mt(_t(Mt(_t(Tt(ct[3][1],ct[4][2]),Tt(-ct[3][2],ct[4][1])),ct[2][0]),_t(Mt(_t(Tt(ct[3][0],ct[4][2]),Tt(-ct[3][2],ct[4][0])),-ct[2][1]),Mt(_t(Tt(ct[3][0],ct[4][1]),Tt(-ct[3][1],ct[4][0])),ct[2][2]))),-ct[1][4]))),-ct[0][3]),Mt(_t(_t(Mt(_t(Mt(_t(Tt(ct[3][2],ct[4][3]),Tt(-ct[3][3],ct[4][2])),ct[2][1]),_t(Mt(_t(Tt(ct[3][1],ct[4][3]),Tt(-ct[3][3],ct[4][1])),-ct[2][2]),Mt(_t(Tt(ct[3][1],ct[4][2]),Tt(-ct[3][2],ct[4][1])),ct[2][3]))),ct[1][0]),Mt(_t(Mt(_t(Tt(ct[3][2],ct[4][3]),Tt(-ct[3][3],ct[4][2])),ct[2][0]),_t(Mt(_t(Tt(ct[3][0],ct[4][3]),Tt(-ct[3][3],ct[4][0])),-ct[2][2]),Mt(_t(Tt(ct[3][0],ct[4][2]),Tt(-ct[3][2],ct[4][0])),ct[2][3]))),-ct[1][1])),_t(Mt(_t(Mt(_t(Tt(ct[3][1],ct[4][3]),Tt(-ct[3][3],ct[4][1])),ct[2][0]),_t(Mt(_t(Tt(ct[3][0],ct[4][3]),Tt(-ct[3][3],ct[4][0])),-ct[2][1]),Mt(_t(Tt(ct[3][0],ct[4][1]),Tt(-ct[3][1],ct[4][0])),ct[2][3]))),ct[1][2]),Mt(_t(Mt(_t(Tt(ct[3][1],ct[4][2]),Tt(-ct[3][2],ct[4][1])),ct[2][0]),_t(Mt(_t(Tt(ct[3][0],ct[4][2]),Tt(-ct[3][2],ct[4][0])),-ct[2][1]),Mt(_t(Tt(ct[3][0],ct[4][1]),Tt(-ct[3][1],ct[4][0])),ct[2][2]))),-ct[1][3]))),ct[0][4])))))}}function ft(_t){var Mt=_t===2?nt:_t===3?vt:_t===4?dt:_t===5?bt:void 0;return Mt(rt,tt,_,st)}var at=[function(){return[0]},function(Mt){return[Mt[0][0]]}];function yt(_t,Mt,Tt,kt,wt,ct,It,At){return function(Pt){switch(Pt.length){case 0:return _t(Pt);case 1:return Mt(Pt);case 2:return Tt(Pt);case 3:return kt(Pt);case 4:return wt(Pt);case 5:return ct(Pt)}var zt=It[Pt.length];return zt||(zt=It[Pt.length]=At(Pt.length)),zt(Pt)}}function St(){for(;at.length0){if(zt<=0)return Dt;Nt=Pt+zt}else if(Pt<0){if(zt>=0)return Dt;Nt=-(Pt+zt)}else return Dt;var $t=vt*Nt;return Dt>=$t||Dt<=-$t?Dt:St(It,At,Ot)},function(It,At,Ot,Pt){var zt=It[0]-Pt[0],Dt=At[0]-Pt[0],Nt=Ot[0]-Pt[0],$t=It[1]-Pt[1],Ut=At[1]-Pt[1],Ht=Ot[1]-Pt[1],Vt=It[2]-Pt[2],Xt=At[2]-Pt[2],qt=Ot[2]-Pt[2],er=Dt*Ht,lr=Nt*Ut,Jt=Nt*$t,Yt=zt*Ht,rr=zt*Ut,jt=Dt*$t,ar=Vt*(er-lr)+Xt*(Jt-Yt)+qt*(rr-jt),sr=(Math.abs(er)+Math.abs(lr))*Math.abs(Vt)+(Math.abs(Jt)+Math.abs(Yt))*Math.abs(Xt)+(Math.abs(rr)+Math.abs(jt))*Math.abs(qt),Zt=dt*sr;return ar>Zt||-ar>Zt?ar:_t(It,At,Ot,Pt)}];function Tt(ct){var It=Mt[ct.length];return It||(It=Mt[ct.length]=yt(ct.length)),It.apply(void 0,ct)}function kt(ct,It,At,Ot,Pt,zt,Dt){return function($t,Ut,Ht,Vt,Xt){switch(arguments.length){case 0:case 1:return 0;case 2:return Ot($t,Ut);case 3:return Pt($t,Ut,Ht);case 4:return zt($t,Ut,Ht,Vt);case 5:return Dt($t,Ut,Ht,Vt,Xt)}for(var qt=new Array(arguments.length),er=0;er0&&bt>0||dt<0&&bt<0)return!1;var ft=_(nt,st,ot),at=_(vt,st,ot);return ft>0&&at>0||ft<0&&at<0?!1:dt===0&&bt===0&&ft===0&&at===0?rt(st,ot,nt,vt):!0}},8545:function(ut){ut.exports=j;function ht(_,rt){var tt=_+rt,st=tt-_,ot=tt-st,nt=rt-st,vt=_-ot,dt=vt+nt;return dt?[dt,tt]:[tt]}function j(_,rt){var tt=_.length|0,st=rt.length|0;if(tt===1&&st===1)return ht(_[0],-rt[0]);var ot=tt+st,nt=new Array(ot),vt=0,dt=0,bt=0,ft=Math.abs,at=_[dt],yt=ft(at),St=-rt[bt],_t=ft(St),Mt,Tt;yt<_t?(Tt=at,dt+=1,dt=st?(Mt=at,dt+=1,dt=st?(Mt=at,dt+=1,dt"u"&&(Mt=ot(yt));var Tt=yt.length;if(Tt===0||Mt<1)return{cells:[],vertexIds:[],vertexWeights:[]};var kt=nt(St,+_t),wt=vt(yt,Mt),ct=dt(wt,St,kt,+_t),It=bt(wt,St.length|0),At=st(Mt)(yt,wt.data,It,kt),Ot=ft(wt),Pt=[].slice.call(ct.data,0,ct.shape[0]);return rt.free(kt),rt.free(wt.data),rt.free(ct.data),rt.free(It),{cells:At,vertexIds:Ot,vertexWeights:Pt}}},1570:function(ut){ut.exports=j;var ht=[function(){function rt(tt,st,ot,nt){for(var vt=tt.length,dt=[],bt=0;bt>1,St=ot[2*yt+1];if(St===bt)return yt;bt>1,St=ot[2*yt+1];if(St===bt)return yt;bt>1,St=ot[2*yt+1];if(St===bt)return yt;bt0)-(tt<0)},ht.abs=function(tt){var st=tt>>j-1;return(tt^st)-st},ht.min=function(tt,st){return st^(tt^st)&-(tt65535)<<4,tt>>>=st,ot=(tt>255)<<3,tt>>>=ot,st|=ot,ot=(tt>15)<<2,tt>>>=ot,st|=ot,ot=(tt>3)<<1,tt>>>=ot,st|=ot,st|tt>>1},ht.log10=function(tt){return tt>=1e9?9:tt>=1e8?8:tt>=1e7?7:tt>=1e6?6:tt>=1e5?5:tt>=1e4?4:tt>=1e3?3:tt>=100?2:tt>=10?1:0},ht.popCount=function(tt){return tt=tt-(tt>>>1&1431655765),tt=(tt&858993459)+(tt>>>2&858993459),(tt+(tt>>>4)&252645135)*16843009>>>24};function _(tt){var st=32;return tt&=-tt,tt&&st--,tt&65535&&(st-=16),tt&16711935&&(st-=8),tt&252645135&&(st-=4),tt&858993459&&(st-=2),tt&1431655765&&(st-=1),st}ht.countTrailingZeros=_,ht.nextPow2=function(tt){return tt+=tt===0,--tt,tt|=tt>>>1,tt|=tt>>>2,tt|=tt>>>4,tt|=tt>>>8,tt|=tt>>>16,tt+1},ht.prevPow2=function(tt){return tt|=tt>>>1,tt|=tt>>>2,tt|=tt>>>4,tt|=tt>>>8,tt|=tt>>>16,tt-(tt>>>1)},ht.parity=function(tt){return tt^=tt>>>16,tt^=tt>>>8,tt^=tt>>>4,tt&=15,27030>>>tt&1};var rt=new Array(256);(function(tt){for(var st=0;st<256;++st){var ot=st,nt=st,vt=7;for(ot>>>=1;ot;ot>>>=1)nt<<=1,nt|=ot&1,--vt;tt[st]=nt<>>8&255]<<16|rt[tt>>>16&255]<<8|rt[tt>>>24&255]},ht.interleave2=function(tt,st){return tt&=65535,tt=(tt|tt<<8)&16711935,tt=(tt|tt<<4)&252645135,tt=(tt|tt<<2)&858993459,tt=(tt|tt<<1)&1431655765,st&=65535,st=(st|st<<8)&16711935,st=(st|st<<4)&252645135,st=(st|st<<2)&858993459,st=(st|st<<1)&1431655765,tt|st<<1},ht.deinterleave2=function(tt,st){return tt=tt>>>st&1431655765,tt=(tt|tt>>>1)&858993459,tt=(tt|tt>>>2)&252645135,tt=(tt|tt>>>4)&16711935,tt=(tt|tt>>>16)&65535,tt<<16>>16},ht.interleave3=function(tt,st,ot){return tt&=1023,tt=(tt|tt<<16)&4278190335,tt=(tt|tt<<8)&251719695,tt=(tt|tt<<4)&3272356035,tt=(tt|tt<<2)&1227133513,st&=1023,st=(st|st<<16)&4278190335,st=(st|st<<8)&251719695,st=(st|st<<4)&3272356035,st=(st|st<<2)&1227133513,tt|=st<<1,ot&=1023,ot=(ot|ot<<16)&4278190335,ot=(ot|ot<<8)&251719695,ot=(ot|ot<<4)&3272356035,ot=(ot|ot<<2)&1227133513,tt|ot<<2},ht.deinterleave3=function(tt,st){return tt=tt>>>st&1227133513,tt=(tt|tt>>>2)&3272356035,tt=(tt|tt>>>4)&251719695,tt=(tt|tt>>>8)&4278190335,tt=(tt|tt>>>16)&1023,tt<<22>>22},ht.nextCombination=function(tt){var st=tt|tt-1;return st+1|(~st&-~st)-1>>>_(tt)+1}},2014:function(ut,ht,j){var _=j(3105),rt=j(4623);function tt(ct){for(var It=0,At=Math.max,Ot=0,Pt=ct.length;Ot>1,Dt=nt(ct[zt],It);Dt<=0?(Dt===0&&(Pt=zt),At=zt+1):Dt>0&&(Ot=zt-1)}return Pt}ht.findCell=ft;function at(ct,It){for(var At=new Array(ct.length),Ot=0,Pt=At.length;Ot=ct.length||nt(ct[qt],zt)!==0););}return At}ht.incidence=at;function yt(ct,It){if(!It)return at(bt(_t(ct,0)),ct);for(var At=new Array(It),Ot=0;Ot>>Ut&1&&$t.push(Pt[Ut]);It.push($t)}return dt(It)}ht.explode=St;function _t(ct,It){if(It<0)return[];for(var At=[],Ot=(1<>1:(Jt>>1)-1}function Ot(Jt){for(var Yt=It(Jt);;){var rr=Yt,jt=2*Jt+1,ar=2*(Jt+1),sr=Jt;if(jt0;){var rr=At(Jt);if(rr>=0){var jt=It(rr);if(Yt0){var Jt=$t[0];return ct(0,Vt-1),Vt-=1,Ot(0),Jt}return-1}function Dt(Jt,Yt){var rr=$t[Jt];return yt[rr]===Yt?Jt:(yt[rr]=-1/0,Pt(Jt),zt(),yt[rr]=Yt,Vt+=1,Pt(Vt-1))}function Nt(Jt){if(!St[Jt]){St[Jt]=!0;var Yt=ft[Jt],rr=at[Jt];ft[rr]>=0&&(ft[rr]=Yt),at[Yt]>=0&&(at[Yt]=rr),Ut[Yt]>=0&&Dt(Ut[Yt],wt(Yt)),Ut[rr]>=0&&Dt(Ut[rr],wt(rr))}}for(var $t=[],Ut=new Array(dt),_t=0;_t>1;_t>=0;--_t)Ot(_t);for(;;){var Xt=zt();if(Xt<0||yt[Xt]>vt)break;Nt(Xt)}for(var qt=[],_t=0;_t=0&&rr>=0&&Yt!==rr){var jt=Ut[Yt],ar=Ut[rr];jt!==ar&&lr.push([jt,ar])}}),rt.unique(rt.normalize(lr)),{positions:qt,edges:lr}}},1303:function(ut,ht,j){ut.exports=tt;var _=j(3250);function rt(st,ot){var nt,vt;if(ot[0][0]ot[1][0])nt=ot[1],vt=ot[0];else{var dt=Math.min(st[0][1],st[1][1]),bt=Math.max(st[0][1],st[1][1]),ft=Math.min(ot[0][1],ot[1][1]),at=Math.max(ot[0][1],ot[1][1]);return btat?dt-at:bt-at}var yt,St;st[0][1]ot[1][0])nt=ot[1],vt=ot[0];else return rt(ot,st);var dt,bt;if(st[0][0]st[1][0])dt=st[1],bt=st[0];else return-rt(st,ot);var ft=_(nt,vt,bt),at=_(nt,vt,dt);if(ft<0){if(at<=0)return ft}else if(ft>0){if(at>=0)return ft}else if(at)return at;if(ft=_(bt,dt,vt),at=_(bt,dt,nt),ft<0){if(at<=0)return ft}else if(ft>0){if(at>=0)return ft}else if(at)return at;return vt[0]-bt[0]}},4209:function(ut,ht,j){ut.exports=at;var _=j(2478),rt=j(3840),tt=j(3250),st=j(1303);function ot(yt,St,_t){this.slabs=yt,this.coordinates=St,this.horizontal=_t}var nt=ot.prototype;function vt(yt,St){return yt.y-St}function dt(yt,St){for(var _t=null;yt;){var Mt=yt.key,Tt,kt;Mt[0][0]0)if(St[0]!==Mt[1][0])_t=yt,yt=yt.right;else{var ct=dt(yt.right,St);if(ct)return ct;yt=yt.left}else{if(St[0]!==Mt[1][0])return yt;var ct=dt(yt.right,St);if(ct)return ct;yt=yt.left}}return _t}nt.castUp=function(yt){var St=_.le(this.coordinates,yt[0]);if(St<0)return-1;this.slabs[St];var _t=dt(this.slabs[St],yt),Mt=-1;if(_t&&(Mt=_t.value),this.coordinates[St]===yt[0]){var Tt=null;if(_t&&(Tt=_t.key),St>0){var kt=dt(this.slabs[St-1],yt);kt&&(Tt?st(kt.key,Tt)>0&&(Tt=kt.key,Mt=kt.value):(Mt=kt.value,Tt=kt.key))}var wt=this.horizontal[St];if(wt.length>0){var ct=_.ge(wt,yt[1],vt);if(ct=wt.length)return Mt;It=wt[ct]}}if(It.start)if(Tt){var At=tt(Tt[0],Tt[1],[yt[0],It.y]);Tt[0][0]>Tt[1][0]&&(At=-At),At>0&&(Mt=It.index)}else Mt=It.index;else It.y!==yt[1]&&(Mt=It.index)}}}return Mt};function bt(yt,St,_t,Mt){this.y=yt,this.index=St,this.start=_t,this.closed=Mt}function ft(yt,St,_t,Mt){this.x=yt,this.segment=St,this.create=_t,this.index=Mt}function at(yt){for(var St=yt.length,_t=2*St,Mt=new Array(_t),Tt=0;Tt1&&(St=1);for(var _t=1-St,Mt=dt.length,Tt=new Array(Mt),kt=0;kt0||yt>0&&Tt<0){var kt=st(St,Tt,_t,yt);ft.push(kt),at.push(kt.slice())}Tt<0?at.push(_t.slice()):Tt>0?ft.push(_t.slice()):(ft.push(_t.slice()),at.push(_t.slice())),yt=Tt}return{positive:ft,negative:at}}function nt(dt,bt){for(var ft=[],at=tt(dt[dt.length-1],bt),yt=dt[dt.length-1],St=dt[0],_t=0;_t0||at>0&&Mt<0)&&ft.push(st(yt,Mt,St,at)),Mt>=0&&ft.push(St.slice()),at=Mt}return ft}function vt(dt,bt){for(var ft=[],at=tt(dt[dt.length-1],bt),yt=dt[dt.length-1],St=dt[0],_t=0;_t0||at>0&&Mt<0)&&ft.push(st(yt,Mt,St,at)),Mt<=0&&ft.push(St.slice()),at=Mt}return ft}},3387:function(ut,ht,j){var _;(function(){var rt={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function tt(dt){return ot(vt(dt),arguments)}function st(dt,bt){return tt.apply(null,[dt].concat(bt||[]))}function ot(dt,bt){var ft=1,at=dt.length,yt,St="",_t,Mt,Tt,kt,wt,ct,It,At;for(_t=0;_t=0),Tt.type){case"b":yt=parseInt(yt,10).toString(2);break;case"c":yt=String.fromCharCode(parseInt(yt,10));break;case"d":case"i":yt=parseInt(yt,10);break;case"j":yt=JSON.stringify(yt,null,Tt.width?parseInt(Tt.width):0);break;case"e":yt=Tt.precision?parseFloat(yt).toExponential(Tt.precision):parseFloat(yt).toExponential();break;case"f":yt=Tt.precision?parseFloat(yt).toFixed(Tt.precision):parseFloat(yt);break;case"g":yt=Tt.precision?String(Number(yt.toPrecision(Tt.precision))):parseFloat(yt);break;case"o":yt=(parseInt(yt,10)>>>0).toString(8);break;case"s":yt=String(yt),yt=Tt.precision?yt.substring(0,Tt.precision):yt;break;case"t":yt=String(!!yt),yt=Tt.precision?yt.substring(0,Tt.precision):yt;break;case"T":yt=Object.prototype.toString.call(yt).slice(8,-1).toLowerCase(),yt=Tt.precision?yt.substring(0,Tt.precision):yt;break;case"u":yt=parseInt(yt,10)>>>0;break;case"v":yt=yt.valueOf(),yt=Tt.precision?yt.substring(0,Tt.precision):yt;break;case"x":yt=(parseInt(yt,10)>>>0).toString(16);break;case"X":yt=(parseInt(yt,10)>>>0).toString(16).toUpperCase();break}rt.json.test(Tt.type)?St+=yt:(rt.number.test(Tt.type)&&(!It||Tt.sign)?(At=It?"+":"-",yt=yt.toString().replace(rt.sign,"")):At="",wt=Tt.pad_char?Tt.pad_char==="0"?"0":Tt.pad_char.charAt(1):" ",ct=Tt.width-(At+yt).length,kt=Tt.width&&ct>0?wt.repeat(ct):"",St+=Tt.align?At+yt+kt:wt==="0"?At+kt+yt:kt+At+yt)}return St}var nt=Object.create(null);function vt(dt){if(nt[dt])return nt[dt];for(var bt=dt,ft,at=[],yt=0;bt;){if((ft=rt.text.exec(bt))!==null)at.push(ft[0]);else if((ft=rt.modulo.exec(bt))!==null)at.push("%");else if((ft=rt.placeholder.exec(bt))!==null){if(ft[2]){yt|=1;var St=[],_t=ft[2],Mt=[];if((Mt=rt.key.exec(_t))!==null)for(St.push(Mt[1]);(_t=_t.substring(Mt[0].length))!=="";)if((Mt=rt.key_access.exec(_t))!==null)St.push(Mt[1]);else if((Mt=rt.index_access.exec(_t))!==null)St.push(Mt[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");ft[2]=St}else yt|=2;if(yt===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");at.push({placeholder:ft[0],param_no:ft[1],keys:ft[2],sign:ft[3],pad_char:ft[4],align:ft[5],width:ft[6],precision:ft[7],type:ft[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");bt=bt.substring(ft[0].length)}return nt[dt]=at}ht.sprintf=tt,ht.vsprintf=st,typeof window<"u"&&(window.sprintf=tt,window.vsprintf=st,_=function(){return{sprintf:tt,vsprintf:st}}.call(ht,j,ht,ut),_!==void 0&&(ut.exports=_))})()},3711:function(ut,ht,j){ut.exports=vt;var _=j(2640),rt=j(781),tt={"2d":function(dt,bt,ft){var at=dt({order:bt,scalarArguments:3,getters:ft==="generic"?[0]:void 0,phase:function(St,_t,Mt,Tt){return St>Tt|0},vertex:function(St,_t,Mt,Tt,kt,wt,ct,It,At,Ot,Pt,zt,Dt){var Nt=(ct<<0)+(It<<1)+(At<<2)+(Ot<<3)|0;if(!(Nt===0||Nt===15))switch(Nt){case 0:Pt.push([St-.5,_t-.5]);break;case 1:Pt.push([St-.25-.25*(Tt+Mt-2*Dt)/(Mt-Tt),_t-.25-.25*(kt+Mt-2*Dt)/(Mt-kt)]);break;case 2:Pt.push([St-.75-.25*(-Tt-Mt+2*Dt)/(Tt-Mt),_t-.25-.25*(wt+Tt-2*Dt)/(Tt-wt)]);break;case 3:Pt.push([St-.5,_t-.5-.5*(kt+Mt+wt+Tt-4*Dt)/(Mt-kt+Tt-wt)]);break;case 4:Pt.push([St-.25-.25*(wt+kt-2*Dt)/(kt-wt),_t-.75-.25*(-kt-Mt+2*Dt)/(kt-Mt)]);break;case 5:Pt.push([St-.5-.5*(Tt+Mt+wt+kt-4*Dt)/(Mt-Tt+kt-wt),_t-.5]);break;case 6:Pt.push([St-.5-.25*(-Tt-Mt+wt+kt)/(Tt-Mt+kt-wt),_t-.5-.25*(-kt-Mt+wt+Tt)/(kt-Mt+Tt-wt)]);break;case 7:Pt.push([St-.75-.25*(wt+kt-2*Dt)/(kt-wt),_t-.75-.25*(wt+Tt-2*Dt)/(Tt-wt)]);break;case 8:Pt.push([St-.75-.25*(-wt-kt+2*Dt)/(wt-kt),_t-.75-.25*(-wt-Tt+2*Dt)/(wt-Tt)]);break;case 9:Pt.push([St-.5-.25*(Tt+Mt+-wt-kt)/(Mt-Tt+wt-kt),_t-.5-.25*(kt+Mt+-wt-Tt)/(Mt-kt+wt-Tt)]);break;case 10:Pt.push([St-.5-.5*(-Tt-Mt+-wt-kt+4*Dt)/(Tt-Mt+wt-kt),_t-.5]);break;case 11:Pt.push([St-.25-.25*(-wt-kt+2*Dt)/(wt-kt),_t-.75-.25*(kt+Mt-2*Dt)/(Mt-kt)]);break;case 12:Pt.push([St-.5,_t-.5-.5*(-kt-Mt+-wt-Tt+4*Dt)/(kt-Mt+wt-Tt)]);break;case 13:Pt.push([St-.75-.25*(Tt+Mt-2*Dt)/(Mt-Tt),_t-.25-.25*(-wt-Tt+2*Dt)/(wt-Tt)]);break;case 14:Pt.push([St-.25-.25*(-Tt-Mt+2*Dt)/(Tt-Mt),_t-.25-.25*(-kt-Mt+2*Dt)/(kt-Mt)]);break;case 15:Pt.push([St-.5,_t-.5]);break}},cell:function(St,_t,Mt,Tt,kt,wt,ct,It,At){kt?It.push([St,_t]):It.push([_t,St])}});return function(yt,St){var _t=[],Mt=[];return at(yt,_t,Mt,St),{positions:_t,cells:Mt}}}};function st(dt,bt){var ft=dt.length+"d",at=tt[ft];if(at)return at(_,dt,bt)}function ot(dt,bt){for(var ft=rt(dt,bt),at=ft.length,yt=new Array(at),St=new Array(at),_t=0;_t0&&(ct+=.02);for(var At=new Float32Array(wt),Ot=0,Pt=-.5*ct,It=0;ItMath.max(Tt,kt)?wt[2]=1:Tt>Math.max(Mt,kt)?wt[0]=1:wt[1]=1;for(var ct=0,It=0,At=0;At<3;++At)ct+=_t[At]*_t[At],It+=wt[At]*_t[At];for(var At=0;At<3;++At)wt[At]-=It/ct*_t[At];return ot(wt,wt),wt}function ft(_t,Mt,Tt,kt,wt,ct,It,At){this.center=_(Tt),this.up=_(kt),this.right=_(wt),this.radius=_([ct]),this.angle=_([It,At]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(_t,Mt),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var Ot=0;Ot<16;++Ot)this.computedMatrix[Ot]=.5;this.recalcMatrix(0)}var at=ft.prototype;at.setDistanceLimits=function(_t,Mt){_t>0?_t=Math.log(_t):_t=-1/0,Mt>0?Mt=Math.log(Mt):Mt=1/0,Mt=Math.max(Mt,_t),this.radius.bounds[0][0]=_t,this.radius.bounds[1][0]=Mt},at.getDistanceLimits=function(_t){var Mt=this.radius.bounds[0];return _t?(_t[0]=Math.exp(Mt[0][0]),_t[1]=Math.exp(Mt[1][0]),_t):[Math.exp(Mt[0][0]),Math.exp(Mt[1][0])]},at.recalcMatrix=function(_t){this.center.curve(_t),this.up.curve(_t),this.right.curve(_t),this.radius.curve(_t),this.angle.curve(_t);for(var Mt=this.computedUp,Tt=this.computedRight,kt=0,wt=0,ct=0;ct<3;++ct)wt+=Mt[ct]*Tt[ct],kt+=Mt[ct]*Mt[ct];for(var It=Math.sqrt(kt),At=0,ct=0;ct<3;++ct)Tt[ct]-=Mt[ct]*wt/kt,At+=Tt[ct]*Tt[ct],Mt[ct]/=It;for(var Ot=Math.sqrt(At),ct=0;ct<3;++ct)Tt[ct]/=Ot;var Pt=this.computedToward;st(Pt,Mt,Tt),ot(Pt,Pt);for(var zt=Math.exp(this.computedRadius[0]),Dt=this.computedAngle[0],Nt=this.computedAngle[1],$t=Math.cos(Dt),Ut=Math.sin(Dt),Ht=Math.cos(Nt),Vt=Math.sin(Nt),Xt=this.computedCenter,qt=$t*Ht,er=Ut*Ht,lr=Vt,Jt=-$t*Vt,Yt=-Ut*Vt,rr=Ht,jt=this.computedEye,ar=this.computedMatrix,ct=0;ct<3;++ct){var sr=qt*Tt[ct]+er*Pt[ct]+lr*Mt[ct];ar[4*ct+1]=Jt*Tt[ct]+Yt*Pt[ct]+rr*Mt[ct],ar[4*ct+2]=sr,ar[4*ct+3]=0}var Zt=ar[1],Kt=ar[5],or=ar[9],tr=ar[2],cr=ar[6],hr=ar[10],br=Kt*hr-or*cr,Tr=or*tr-Zt*hr,Ir=Zt*cr-Kt*tr,Ar=vt(br,Tr,Ir);br/=Ar,Tr/=Ar,Ir/=Ar,ar[0]=br,ar[4]=Tr,ar[8]=Ir;for(var ct=0;ct<3;++ct)jt[ct]=Xt[ct]+ar[2+4*ct]*zt;for(var ct=0;ct<3;++ct){for(var At=0,_r=0;_r<3;++_r)At+=ar[ct+4*_r]*jt[_r];ar[12+ct]=-At}ar[15]=1},at.getMatrix=function(_t,Mt){this.recalcMatrix(_t);var Tt=this.computedMatrix;if(Mt){for(var kt=0;kt<16;++kt)Mt[kt]=Tt[kt];return Mt}return Tt};var yt=[0,0,0];at.rotate=function(_t,Mt,Tt,kt){if(this.angle.move(_t,Mt,Tt),kt){this.recalcMatrix(_t);var wt=this.computedMatrix;yt[0]=wt[2],yt[1]=wt[6],yt[2]=wt[10];for(var ct=this.computedUp,It=this.computedRight,At=this.computedToward,Ot=0;Ot<3;++Ot)wt[4*Ot]=ct[Ot],wt[4*Ot+1]=It[Ot],wt[4*Ot+2]=At[Ot];tt(wt,wt,kt,yt);for(var Ot=0;Ot<3;++Ot)ct[Ot]=wt[4*Ot],It[Ot]=wt[4*Ot+1];this.up.set(_t,ct[0],ct[1],ct[2]),this.right.set(_t,It[0],It[1],It[2])}},at.pan=function(_t,Mt,Tt,kt){Mt=Mt||0,Tt=Tt||0,kt=kt||0,this.recalcMatrix(_t);var wt=this.computedMatrix;Math.exp(this.computedRadius[0]);var ct=wt[1],It=wt[5],At=wt[9],Ot=vt(ct,It,At);ct/=Ot,It/=Ot,At/=Ot;var Pt=wt[0],zt=wt[4],Dt=wt[8],Nt=Pt*ct+zt*It+Dt*At;Pt-=ct*Nt,zt-=It*Nt,Dt-=At*Nt;var $t=vt(Pt,zt,Dt);Pt/=$t,zt/=$t,Dt/=$t;var Ut=Pt*Mt+ct*Tt,Ht=zt*Mt+It*Tt,Vt=Dt*Mt+At*Tt;this.center.move(_t,Ut,Ht,Vt);var Xt=Math.exp(this.computedRadius[0]);Xt=Math.max(1e-4,Xt+kt),this.radius.set(_t,Math.log(Xt))},at.translate=function(_t,Mt,Tt,kt){this.center.move(_t,Mt||0,Tt||0,kt||0)},at.setMatrix=function(_t,Mt,Tt,kt){var wt=1;typeof Tt=="number"&&(wt=Tt|0),(wt<0||wt>3)&&(wt=1);var ct=(wt+2)%3;Mt||(this.recalcMatrix(_t),Mt=this.computedMatrix);var It=Mt[wt],At=Mt[wt+4],Ot=Mt[wt+8];if(kt){var zt=Math.abs(It),Dt=Math.abs(At),Nt=Math.abs(Ot),$t=Math.max(zt,Dt,Nt);zt===$t?(It=It<0?-1:1,At=Ot=0):Nt===$t?(Ot=Ot<0?-1:1,It=At=0):(At=At<0?-1:1,It=Ot=0)}else{var Pt=vt(It,At,Ot);It/=Pt,At/=Pt,Ot/=Pt}var Ut=Mt[ct],Ht=Mt[ct+4],Vt=Mt[ct+8],Xt=Ut*It+Ht*At+Vt*Ot;Ut-=It*Xt,Ht-=At*Xt,Vt-=Ot*Xt;var qt=vt(Ut,Ht,Vt);Ut/=qt,Ht/=qt,Vt/=qt;var er=At*Vt-Ot*Ht,lr=Ot*Ut-It*Vt,Jt=It*Ht-At*Ut,Yt=vt(er,lr,Jt);er/=Yt,lr/=Yt,Jt/=Yt,this.center.jump(_t,Br,kr,Nr),this.radius.idle(_t),this.up.jump(_t,It,At,Ot),this.right.jump(_t,Ut,Ht,Vt);var rr,jt;if(wt===2){var ar=Mt[1],sr=Mt[5],Zt=Mt[9],Kt=ar*Ut+sr*Ht+Zt*Vt,or=ar*er+sr*lr+Zt*Jt;br<0?rr=-Math.PI/2:rr=Math.PI/2,jt=Math.atan2(or,Kt)}else{var tr=Mt[2],cr=Mt[6],hr=Mt[10],br=tr*It+cr*At+hr*Ot,Tr=tr*Ut+cr*Ht+hr*Vt,Ir=tr*er+cr*lr+hr*Jt;rr=Math.asin(dt(br)),jt=Math.atan2(Ir,Tr)}this.angle.jump(_t,jt,rr),this.recalcMatrix(_t);var Ar=Mt[2],_r=Mt[6],Er=Mt[10],Rr=this.computedMatrix;rt(Rr,Mt);var zr=Rr[15],Br=Rr[12]/zr,kr=Rr[13]/zr,Nr=Rr[14]/zr,Qr=Math.exp(this.computedRadius[0]);this.center.jump(_t,Br-Ar*Qr,kr-_r*Qr,Nr-Er*Qr)},at.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},at.idle=function(_t){this.center.idle(_t),this.up.idle(_t),this.right.idle(_t),this.radius.idle(_t),this.angle.idle(_t)},at.flush=function(_t){this.center.flush(_t),this.up.flush(_t),this.right.flush(_t),this.radius.flush(_t),this.angle.flush(_t)},at.setDistance=function(_t,Mt){Mt>0&&this.radius.set(_t,Math.log(Mt))},at.lookAt=function(_t,Mt,Tt,kt){this.recalcMatrix(_t),Mt=Mt||this.computedEye,Tt=Tt||this.computedCenter,kt=kt||this.computedUp;var wt=kt[0],ct=kt[1],It=kt[2],At=vt(wt,ct,It);if(!(At<1e-6)){wt/=At,ct/=At,It/=At;var Ot=Mt[0]-Tt[0],Pt=Mt[1]-Tt[1],zt=Mt[2]-Tt[2],Dt=vt(Ot,Pt,zt);if(!(Dt<1e-6)){Ot/=Dt,Pt/=Dt,zt/=Dt;var Nt=this.computedRight,$t=Nt[0],Ut=Nt[1],Ht=Nt[2],Vt=wt*$t+ct*Ut+It*Ht;$t-=Vt*wt,Ut-=Vt*ct,Ht-=Vt*It;var Xt=vt($t,Ut,Ht);if(!(Xt<.01&&($t=ct*zt-It*Pt,Ut=It*Ot-wt*zt,Ht=wt*Pt-ct*Ot,Xt=vt($t,Ut,Ht),Xt<1e-6))){$t/=Xt,Ut/=Xt,Ht/=Xt,this.up.set(_t,wt,ct,It),this.right.set(_t,$t,Ut,Ht),this.center.set(_t,Tt[0],Tt[1],Tt[2]),this.radius.set(_t,Math.log(Dt));var qt=ct*Ht-It*Ut,er=It*$t-wt*Ht,lr=wt*Ut-ct*$t,Jt=vt(qt,er,lr);qt/=Jt,er/=Jt,lr/=Jt;var Yt=wt*Ot+ct*Pt+It*zt,rr=$t*Ot+Ut*Pt+Ht*zt,jt=qt*Ot+er*Pt+lr*zt,ar=Math.asin(dt(Yt)),sr=Math.atan2(jt,rr),Zt=this.angle._state,Kt=Zt[Zt.length-1],or=Zt[Zt.length-2];Kt=Kt%(2*Math.PI);var tr=Math.abs(Kt+2*Math.PI-sr),cr=Math.abs(Kt-sr),hr=Math.abs(Kt-2*Math.PI-sr);tr0?Ht.pop():new ArrayBuffer($t)}ht.mallocArrayBuffer=yt;function St(Nt){return new Uint8Array(yt(Nt),0,Nt)}ht.mallocUint8=St;function _t(Nt){return new Uint16Array(yt(2*Nt),0,Nt)}ht.mallocUint16=_t;function Mt(Nt){return new Uint32Array(yt(4*Nt),0,Nt)}ht.mallocUint32=Mt;function Tt(Nt){return new Int8Array(yt(Nt),0,Nt)}ht.mallocInt8=Tt;function kt(Nt){return new Int16Array(yt(2*Nt),0,Nt)}ht.mallocInt16=kt;function wt(Nt){return new Int32Array(yt(4*Nt),0,Nt)}ht.mallocInt32=wt;function ct(Nt){return new Float32Array(yt(4*Nt),0,Nt)}ht.mallocFloat32=ht.mallocFloat=ct;function It(Nt){return new Float64Array(yt(8*Nt),0,Nt)}ht.mallocFloat64=ht.mallocDouble=It;function At(Nt){return st?new Uint8ClampedArray(yt(Nt),0,Nt):St(Nt)}ht.mallocUint8Clamped=At;function Ot(Nt){return ot?new BigUint64Array(yt(8*Nt),0,Nt):null}ht.mallocBigUint64=Ot;function Pt(Nt){return nt?new BigInt64Array(yt(8*Nt),0,Nt):null}ht.mallocBigInt64=Pt;function zt(Nt){return new DataView(yt(Nt),0,Nt)}ht.mallocDataView=zt;function Dt(Nt){Nt=_.nextPow2(Nt);var $t=_.log2(Nt),Ut=bt[$t];return Ut.length>0?Ut.pop():new tt(Nt)}ht.mallocBuffer=Dt,ht.clearCache=function(){for(var $t=0;$t<32;++$t)vt.UINT8[$t].length=0,vt.UINT16[$t].length=0,vt.UINT32[$t].length=0,vt.INT8[$t].length=0,vt.INT16[$t].length=0,vt.INT32[$t].length=0,vt.FLOAT[$t].length=0,vt.DOUBLE[$t].length=0,vt.BIGUINT64[$t].length=0,vt.BIGINT64[$t].length=0,vt.UINT8C[$t].length=0,dt[$t].length=0,bt[$t].length=0}},1755:function(ut){ut.exports=ht;function ht(_){this.roots=new Array(_),this.ranks=new Array(_);for(var rt=0;rt<_;++rt)this.roots[rt]=rt,this.ranks[rt]=0}var j=ht.prototype;Object.defineProperty(j,"length",{get:function(){return this.roots.length}}),j.makeSet=function(){var _=this.roots.length;return this.roots.push(_),this.ranks.push(0),_},j.find=function(_){for(var rt=_,tt=this.roots;tt[_]!==_;)_=tt[_];for(;tt[rt]!==_;){var st=tt[rt];tt[rt]=_,rt=st}return _},j.link=function(_,rt){var tt=this.find(_),st=this.find(rt);if(tt!==st){var ot=this.ranks,nt=this.roots,vt=ot[tt],dt=ot[st];vt",Ht="",Vt=Ut.length,Xt=Ht.length,qt=Dt[0]===yt||Dt[0]===Mt,er=0,lr=-Xt;er>-1&&(er=Nt.indexOf(Ut,er),!(er===-1||(lr=Nt.indexOf(Ht,er+Vt),lr===-1)||lr<=er));){for(var Jt=er;Jt=lr)$t[Jt]=null,Nt=Nt.substr(0,Jt)+" "+Nt.substr(Jt+1);else if($t[Jt]!==null){var Yt=$t[Jt].indexOf(Dt[0]);Yt===-1?$t[Jt]+=Dt:qt&&($t[Jt]=$t[Jt].substr(0,Yt+1)+(1+parseInt($t[Jt][Yt+1]))+$t[Jt].substr(Yt+2))}var rr=er+Vt,jt=Nt.substr(rr,lr-rr),ar=jt.indexOf(Ut);ar!==-1?er=ar:er=lr+Xt}return $t}function wt(zt,Dt,Nt){for(var $t=Dt.textAlign||"start",Ut=Dt.textBaseline||"alphabetic",Ht=[1<<30,1<<30],Vt=[0,0],Xt=zt.length,qt=0;qt/g,` -`):Nt=Nt.replace(/\/g," ");var Vt="",Xt=[];for(Kt=0;Kt-1?parseInt(Nr[1+un]):0,ln=qr>-1?parseInt(Qr[1+qr]):0;Xr!==ln&&(sn=sn.replace(Ir(),"?px "),cr*=Math.pow(.75,ln-Xr),sn=sn.replace("?px ",Ir())),tr+=.25*Yt*(ln-Xr)}if(Ht.superscripts===!0){var mn=Nr.indexOf(yt),pn=Qr.indexOf(yt),En=mn>-1?parseInt(Nr[1+mn]):0,Jr=pn>-1?parseInt(Qr[1+pn]):0;En!==Jr&&(sn=sn.replace(Ir(),"?px "),cr*=Math.pow(.75,Jr-En),sn=sn.replace("?px ",Ir())),tr-=.25*Yt*(Jr-En)}if(Ht.bolds===!0){var Or=Nr.indexOf(dt)>-1,Ur=Qr.indexOf(dt)>-1;!Or&&Ur&&(jr?sn=sn.replace("italic ","italic bold "):sn="bold "+sn),Or&&!Ur&&(sn=sn.replace("bold ",""))}if(Ht.italics===!0){var jr=Nr.indexOf(ft)>-1,Gr=Qr.indexOf(ft)>-1;!jr&&Gr&&(sn="italic "+sn),jr&&!Gr&&(sn=sn.replace("italic ",""))}Dt.font=sn}for(Zt=0;Zt0&&(Ut=$t.size),$t.lineSpacing&&$t.lineSpacing>0&&(Ht=$t.lineSpacing),$t.styletags&&$t.styletags.breaklines&&(Vt.breaklines=!!$t.styletags.breaklines),$t.styletags&&$t.styletags.bolds&&(Vt.bolds=!!$t.styletags.bolds),$t.styletags&&$t.styletags.italics&&(Vt.italics=!!$t.styletags.italics),$t.styletags&&$t.styletags.subscripts&&(Vt.subscripts=!!$t.styletags.subscripts),$t.styletags&&$t.styletags.superscripts&&(Vt.superscripts=!!$t.styletags.superscripts)),Nt.font=[$t.fontStyle,$t.fontVariant,$t.fontWeight,Ut+"px",$t.font].filter(function(qt){return qt}).join(" "),Nt.textAlign="start",Nt.textBaseline="alphabetic",Nt.direction="ltr";var Xt=ct(Dt,Nt,zt,Ut,Ht,Vt);return Ot(Xt,$t,Ut)}},1538:function(ut){(function(){if(typeof ses<"u"&&ses.ok&&!ses.ok())return;function j(It){It.permitHostObjects___&&It.permitHostObjects___(j)}typeof ses<"u"&&(ses.weakMapPermitHostObjects=j);var _=!1;if(typeof WeakMap=="function"){var rt=WeakMap;if(!(typeof navigator<"u"&&/Firefox/.test(navigator.userAgent))){var tt=new rt,st=Object.freeze({});if(tt.set(st,1),tt.get(st)!==1)_=!0;else{ut.exports=WeakMap;return}}}var ot=Object.getOwnPropertyNames,nt=Object.defineProperty,vt=Object.isExtensible,dt="weakmap:",bt=dt+"ident:"+Math.random()+"___";if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var ft=new ArrayBuffer(25),at=new Uint8Array(ft);crypto.getRandomValues(at),bt=dt+"rand:"+Array.prototype.map.call(at,function(It){return(It%36).toString(36)}).join("")+"___"}function yt(It){return!(It.substr(0,dt.length)==dt&&It.substr(It.length-3)==="___")}if(nt(Object,"getOwnPropertyNames",{value:function(At){return ot(At).filter(yt)}}),"getPropertyNames"in Object){var St=Object.getPropertyNames;nt(Object,"getPropertyNames",{value:function(At){return St(At).filter(yt)}})}function _t(It){if(It!==Object(It))throw new TypeError("Not an object: "+It);var At=It[bt];if(At&&At.key===It)return At;if(vt(It)){At={key:It};try{return nt(It,bt,{value:At,writable:!1,enumerable:!1,configurable:!1}),At}catch{return}}}(function(){var It=Object.freeze;nt(Object,"freeze",{value:function(zt){return _t(zt),It(zt)}});var At=Object.seal;nt(Object,"seal",{value:function(zt){return _t(zt),At(zt)}});var Ot=Object.preventExtensions;nt(Object,"preventExtensions",{value:function(zt){return _t(zt),Ot(zt)}})})();function Mt(It){return It.prototype=null,Object.freeze(It)}var Tt=!1;function kt(){!Tt&&typeof console<"u"&&(Tt=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var wt=0,ct=function(){this instanceof ct||kt();var It=[],At=[],Ot=wt++;function Pt($t,Ut){var Ht,Vt=_t($t);return Vt?Ot in Vt?Vt[Ot]:Ut:(Ht=It.indexOf($t),Ht>=0?At[Ht]:Ut)}function zt($t){var Ut=_t($t);return Ut?Ot in Ut:It.indexOf($t)>=0}function Dt($t,Ut){var Ht,Vt=_t($t);return Vt?Vt[Ot]=Ut:(Ht=It.indexOf($t),Ht>=0?At[Ht]=Ut:(Ht=It.length,At[Ht]=Ut,It[Ht]=$t)),this}function Nt($t){var Ut=_t($t),Ht,Vt;return Ut?Ot in Ut&&delete Ut[Ot]:(Ht=It.indexOf($t),Ht<0?!1:(Vt=It.length-1,It[Ht]=void 0,At[Ht]=At[Vt],It[Ht]=It[Vt],It.length=Vt,At.length=Vt,!0))}return Object.create(ct.prototype,{get___:{value:Mt(Pt)},has___:{value:Mt(zt)},set___:{value:Mt(Dt)},delete___:{value:Mt(Nt)}})};ct.prototype=Object.create(Object.prototype,{get:{value:function(At,Ot){return this.get___(At,Ot)},writable:!0,configurable:!0},has:{value:function(At){return this.has___(At)},writable:!0,configurable:!0},set:{value:function(At,Ot){return this.set___(At,Ot)},writable:!0,configurable:!0},delete:{value:function(At){return this.delete___(At)},writable:!0,configurable:!0}}),typeof rt=="function"?function(){_&&typeof Proxy<"u"&&(Proxy=void 0);function It(){this instanceof ct||kt();var At=new rt,Ot=void 0,Pt=!1;function zt(Ut,Ht){return Ot?At.has(Ut)?At.get(Ut):Ot.get___(Ut,Ht):At.get(Ut,Ht)}function Dt(Ut){return At.has(Ut)||(Ot?Ot.has___(Ut):!1)}var Nt;_?Nt=function(Ut,Ht){return At.set(Ut,Ht),At.has(Ut)||(Ot||(Ot=new ct),Ot.set(Ut,Ht)),this}:Nt=function(Ut,Ht){if(Pt)try{At.set(Ut,Ht)}catch{Ot||(Ot=new ct),Ot.set___(Ut,Ht)}else At.set(Ut,Ht);return this};function $t(Ut){var Ht=!!At.delete(Ut);return Ot&&Ot.delete___(Ut)||Ht}return Object.create(ct.prototype,{get___:{value:Mt(zt)},has___:{value:Mt(Dt)},set___:{value:Mt(Nt)},delete___:{value:Mt($t)},permitHostObjects___:{value:Mt(function(Ut){if(Ut===j)Pt=!0;else throw new Error("bogus call to permitHostObjects___")})}})}It.prototype=ct.prototype,ut.exports=It,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(typeof Proxy<"u"&&(Proxy=void 0),ut.exports=ct)})()},236:function(ut,ht,j){var _=j(8284);ut.exports=rt;function rt(){var tt={};return function(st){if((typeof st!="object"||st===null)&&typeof st!="function")throw new Error("Weakmap-shim: Key must be object");var ot=st.valueOf(tt);return ot&&ot.identity===tt?ot:_(st,tt)}}},8284:function(ut){ut.exports=ht;function ht(j,_){var rt={identity:_},tt=j.valueOf;return Object.defineProperty(j,"valueOf",{value:function(st){return st!==_?tt.apply(this,arguments):rt},writable:!0}),rt}},606:function(ut,ht,j){var _=j(236);ut.exports=rt;function rt(){var tt=_();return{get:function(st,ot){var nt=tt(st);return nt.hasOwnProperty("value")?nt.value:ot},set:function(st,ot){return tt(st).value=ot,this},has:function(st){return"value"in tt(st)},delete:function(st){return delete tt(st).value}}}},3349:function(ut){function ht(){return function(ot,nt,vt,dt,bt,ft){var at=ot[0],yt=vt[0],St=[0],_t=yt;dt|=0;var Mt=0,Tt=yt;for(Mt=0;Mt=0!=wt>=0&&bt.push(St[0]+.5+.5*(kt+wt)/(kt-wt))}dt+=Tt,++St[0]}}}function j(){return ht()}var _=j;function rt(ot){var nt={};return function(dt,bt,ft){var at=dt.dtype,yt=dt.order,St=[at,yt.join()].join(),_t=nt[St];return _t||(nt[St]=_t=ot([at,yt])),_t(dt.shape.slice(0),dt.data,dt.stride,dt.offset|0,bt,ft)}}function tt(ot){return rt(_.bind(void 0,ot))}function st(ot){return tt({funcName:ot.funcName})}ut.exports=st({funcName:"zeroCrossings"})},781:function(ut,ht,j){ut.exports=rt;var _=j(3349);function rt(tt,st){var ot=[];return st=+st||0,_(tt.hi(tt.shape[0]-1),ot,st),ot}},7790:function(){}},et={};function Et(ut){var ht=et[ut];if(ht!==void 0)return ht.exports;var j=et[ut]={id:ut,loaded:!1,exports:{}};return xt[ut].call(j.exports,j,j.exports,Et),j.loaded=!0,j.exports}(function(){Et.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}()})(),function(){Et.nmd=function(ut){return ut.paths=[],ut.children||(ut.children=[]),ut}}();var mt=Et(1964);Ct.exports=mt})()},33576:function(Ct,Rt,o){/*! +*/var ht="",j;ut.exports=_;function _(rt,tt){if(typeof rt!="string")throw new TypeError("expected a string");if(tt===1)return rt;if(tt===2)return rt+rt;var st=rt.length*tt;if(j!==rt||typeof j>"u")j=rt,ht="";else if(ht.length>=st)return ht.substr(0,st);for(;st>ht.length&&tt>1;)tt&1&&(ht+=rt),tt>>=1,rt+=rt;return ht+=rt,ht=ht.substr(0,st),ht}},3025:function(ut,ht,j){ut.exports=j.g.performance&&j.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},7004:function(ut){ut.exports=ht;function ht(j){for(var _=j.length,rt=j[j.length-1],tt=_,st=_-2;st>=0;--st){var ot=rt,nt=j[st];rt=ot+nt;var vt=rt-ot,dt=nt-vt;dt&&(j[--tt]=rt,rt=dt)}for(var bt=0,st=tt;st<_;++st){var ot=j[st],nt=rt;rt=ot+nt;var vt=rt-ot,dt=nt-vt;dt&&(j[bt++]=dt)}return j[bt++]=rt,j.length=bt,j}},2962:function(ut,ht,j){var _=j(5250),rt=j(8210),tt=j(3012),st=j(7004),ot=6;function nt(_t,Mt,Et,kt){return function(ct){return kt(_t(Et(ct[0][0],ct[1][1]),Et(-ct[0][1],ct[1][0])))}}function vt(_t,Mt,Et,kt){return function(ct){return kt(_t(Mt(_t(Et(ct[1][1],ct[2][2]),Et(-ct[1][2],ct[2][1])),ct[0][0]),_t(Mt(_t(Et(ct[1][0],ct[2][2]),Et(-ct[1][2],ct[2][0])),-ct[0][1]),Mt(_t(Et(ct[1][0],ct[2][1]),Et(-ct[1][1],ct[2][0])),ct[0][2]))))}}function dt(_t,Mt,Et,kt){return function(ct){return kt(_t(_t(Mt(_t(Mt(_t(Et(ct[2][2],ct[3][3]),Et(-ct[2][3],ct[3][2])),ct[1][1]),_t(Mt(_t(Et(ct[2][1],ct[3][3]),Et(-ct[2][3],ct[3][1])),-ct[1][2]),Mt(_t(Et(ct[2][1],ct[3][2]),Et(-ct[2][2],ct[3][1])),ct[1][3]))),ct[0][0]),Mt(_t(Mt(_t(Et(ct[2][2],ct[3][3]),Et(-ct[2][3],ct[3][2])),ct[1][0]),_t(Mt(_t(Et(ct[2][0],ct[3][3]),Et(-ct[2][3],ct[3][0])),-ct[1][2]),Mt(_t(Et(ct[2][0],ct[3][2]),Et(-ct[2][2],ct[3][0])),ct[1][3]))),-ct[0][1])),_t(Mt(_t(Mt(_t(Et(ct[2][1],ct[3][3]),Et(-ct[2][3],ct[3][1])),ct[1][0]),_t(Mt(_t(Et(ct[2][0],ct[3][3]),Et(-ct[2][3],ct[3][0])),-ct[1][1]),Mt(_t(Et(ct[2][0],ct[3][1]),Et(-ct[2][1],ct[3][0])),ct[1][3]))),ct[0][2]),Mt(_t(Mt(_t(Et(ct[2][1],ct[3][2]),Et(-ct[2][2],ct[3][1])),ct[1][0]),_t(Mt(_t(Et(ct[2][0],ct[3][2]),Et(-ct[2][2],ct[3][0])),-ct[1][1]),Mt(_t(Et(ct[2][0],ct[3][1]),Et(-ct[2][1],ct[3][0])),ct[1][2]))),-ct[0][3]))))}}function bt(_t,Mt,Et,kt){return function(ct){return kt(_t(_t(Mt(_t(_t(Mt(_t(Mt(_t(Et(ct[3][3],ct[4][4]),Et(-ct[3][4],ct[4][3])),ct[2][2]),_t(Mt(_t(Et(ct[3][2],ct[4][4]),Et(-ct[3][4],ct[4][2])),-ct[2][3]),Mt(_t(Et(ct[3][2],ct[4][3]),Et(-ct[3][3],ct[4][2])),ct[2][4]))),ct[1][1]),Mt(_t(Mt(_t(Et(ct[3][3],ct[4][4]),Et(-ct[3][4],ct[4][3])),ct[2][1]),_t(Mt(_t(Et(ct[3][1],ct[4][4]),Et(-ct[3][4],ct[4][1])),-ct[2][3]),Mt(_t(Et(ct[3][1],ct[4][3]),Et(-ct[3][3],ct[4][1])),ct[2][4]))),-ct[1][2])),_t(Mt(_t(Mt(_t(Et(ct[3][2],ct[4][4]),Et(-ct[3][4],ct[4][2])),ct[2][1]),_t(Mt(_t(Et(ct[3][1],ct[4][4]),Et(-ct[3][4],ct[4][1])),-ct[2][2]),Mt(_t(Et(ct[3][1],ct[4][2]),Et(-ct[3][2],ct[4][1])),ct[2][4]))),ct[1][3]),Mt(_t(Mt(_t(Et(ct[3][2],ct[4][3]),Et(-ct[3][3],ct[4][2])),ct[2][1]),_t(Mt(_t(Et(ct[3][1],ct[4][3]),Et(-ct[3][3],ct[4][1])),-ct[2][2]),Mt(_t(Et(ct[3][1],ct[4][2]),Et(-ct[3][2],ct[4][1])),ct[2][3]))),-ct[1][4]))),ct[0][0]),Mt(_t(_t(Mt(_t(Mt(_t(Et(ct[3][3],ct[4][4]),Et(-ct[3][4],ct[4][3])),ct[2][2]),_t(Mt(_t(Et(ct[3][2],ct[4][4]),Et(-ct[3][4],ct[4][2])),-ct[2][3]),Mt(_t(Et(ct[3][2],ct[4][3]),Et(-ct[3][3],ct[4][2])),ct[2][4]))),ct[1][0]),Mt(_t(Mt(_t(Et(ct[3][3],ct[4][4]),Et(-ct[3][4],ct[4][3])),ct[2][0]),_t(Mt(_t(Et(ct[3][0],ct[4][4]),Et(-ct[3][4],ct[4][0])),-ct[2][3]),Mt(_t(Et(ct[3][0],ct[4][3]),Et(-ct[3][3],ct[4][0])),ct[2][4]))),-ct[1][2])),_t(Mt(_t(Mt(_t(Et(ct[3][2],ct[4][4]),Et(-ct[3][4],ct[4][2])),ct[2][0]),_t(Mt(_t(Et(ct[3][0],ct[4][4]),Et(-ct[3][4],ct[4][0])),-ct[2][2]),Mt(_t(Et(ct[3][0],ct[4][2]),Et(-ct[3][2],ct[4][0])),ct[2][4]))),ct[1][3]),Mt(_t(Mt(_t(Et(ct[3][2],ct[4][3]),Et(-ct[3][3],ct[4][2])),ct[2][0]),_t(Mt(_t(Et(ct[3][0],ct[4][3]),Et(-ct[3][3],ct[4][0])),-ct[2][2]),Mt(_t(Et(ct[3][0],ct[4][2]),Et(-ct[3][2],ct[4][0])),ct[2][3]))),-ct[1][4]))),-ct[0][1])),_t(Mt(_t(_t(Mt(_t(Mt(_t(Et(ct[3][3],ct[4][4]),Et(-ct[3][4],ct[4][3])),ct[2][1]),_t(Mt(_t(Et(ct[3][1],ct[4][4]),Et(-ct[3][4],ct[4][1])),-ct[2][3]),Mt(_t(Et(ct[3][1],ct[4][3]),Et(-ct[3][3],ct[4][1])),ct[2][4]))),ct[1][0]),Mt(_t(Mt(_t(Et(ct[3][3],ct[4][4]),Et(-ct[3][4],ct[4][3])),ct[2][0]),_t(Mt(_t(Et(ct[3][0],ct[4][4]),Et(-ct[3][4],ct[4][0])),-ct[2][3]),Mt(_t(Et(ct[3][0],ct[4][3]),Et(-ct[3][3],ct[4][0])),ct[2][4]))),-ct[1][1])),_t(Mt(_t(Mt(_t(Et(ct[3][1],ct[4][4]),Et(-ct[3][4],ct[4][1])),ct[2][0]),_t(Mt(_t(Et(ct[3][0],ct[4][4]),Et(-ct[3][4],ct[4][0])),-ct[2][1]),Mt(_t(Et(ct[3][0],ct[4][1]),Et(-ct[3][1],ct[4][0])),ct[2][4]))),ct[1][3]),Mt(_t(Mt(_t(Et(ct[3][1],ct[4][3]),Et(-ct[3][3],ct[4][1])),ct[2][0]),_t(Mt(_t(Et(ct[3][0],ct[4][3]),Et(-ct[3][3],ct[4][0])),-ct[2][1]),Mt(_t(Et(ct[3][0],ct[4][1]),Et(-ct[3][1],ct[4][0])),ct[2][3]))),-ct[1][4]))),ct[0][2]),_t(Mt(_t(_t(Mt(_t(Mt(_t(Et(ct[3][2],ct[4][4]),Et(-ct[3][4],ct[4][2])),ct[2][1]),_t(Mt(_t(Et(ct[3][1],ct[4][4]),Et(-ct[3][4],ct[4][1])),-ct[2][2]),Mt(_t(Et(ct[3][1],ct[4][2]),Et(-ct[3][2],ct[4][1])),ct[2][4]))),ct[1][0]),Mt(_t(Mt(_t(Et(ct[3][2],ct[4][4]),Et(-ct[3][4],ct[4][2])),ct[2][0]),_t(Mt(_t(Et(ct[3][0],ct[4][4]),Et(-ct[3][4],ct[4][0])),-ct[2][2]),Mt(_t(Et(ct[3][0],ct[4][2]),Et(-ct[3][2],ct[4][0])),ct[2][4]))),-ct[1][1])),_t(Mt(_t(Mt(_t(Et(ct[3][1],ct[4][4]),Et(-ct[3][4],ct[4][1])),ct[2][0]),_t(Mt(_t(Et(ct[3][0],ct[4][4]),Et(-ct[3][4],ct[4][0])),-ct[2][1]),Mt(_t(Et(ct[3][0],ct[4][1]),Et(-ct[3][1],ct[4][0])),ct[2][4]))),ct[1][2]),Mt(_t(Mt(_t(Et(ct[3][1],ct[4][2]),Et(-ct[3][2],ct[4][1])),ct[2][0]),_t(Mt(_t(Et(ct[3][0],ct[4][2]),Et(-ct[3][2],ct[4][0])),-ct[2][1]),Mt(_t(Et(ct[3][0],ct[4][1]),Et(-ct[3][1],ct[4][0])),ct[2][2]))),-ct[1][4]))),-ct[0][3]),Mt(_t(_t(Mt(_t(Mt(_t(Et(ct[3][2],ct[4][3]),Et(-ct[3][3],ct[4][2])),ct[2][1]),_t(Mt(_t(Et(ct[3][1],ct[4][3]),Et(-ct[3][3],ct[4][1])),-ct[2][2]),Mt(_t(Et(ct[3][1],ct[4][2]),Et(-ct[3][2],ct[4][1])),ct[2][3]))),ct[1][0]),Mt(_t(Mt(_t(Et(ct[3][2],ct[4][3]),Et(-ct[3][3],ct[4][2])),ct[2][0]),_t(Mt(_t(Et(ct[3][0],ct[4][3]),Et(-ct[3][3],ct[4][0])),-ct[2][2]),Mt(_t(Et(ct[3][0],ct[4][2]),Et(-ct[3][2],ct[4][0])),ct[2][3]))),-ct[1][1])),_t(Mt(_t(Mt(_t(Et(ct[3][1],ct[4][3]),Et(-ct[3][3],ct[4][1])),ct[2][0]),_t(Mt(_t(Et(ct[3][0],ct[4][3]),Et(-ct[3][3],ct[4][0])),-ct[2][1]),Mt(_t(Et(ct[3][0],ct[4][1]),Et(-ct[3][1],ct[4][0])),ct[2][3]))),ct[1][2]),Mt(_t(Mt(_t(Et(ct[3][1],ct[4][2]),Et(-ct[3][2],ct[4][1])),ct[2][0]),_t(Mt(_t(Et(ct[3][0],ct[4][2]),Et(-ct[3][2],ct[4][0])),-ct[2][1]),Mt(_t(Et(ct[3][0],ct[4][1]),Et(-ct[3][1],ct[4][0])),ct[2][2]))),-ct[1][3]))),ct[0][4])))))}}function ft(_t){var Mt=_t===2?nt:_t===3?vt:_t===4?dt:_t===5?bt:void 0;return Mt(rt,tt,_,st)}var at=[function(){return[0]},function(Mt){return[Mt[0][0]]}];function mt(_t,Mt,Et,kt,wt,ct,It,At){return function(Pt){switch(Pt.length){case 0:return _t(Pt);case 1:return Mt(Pt);case 2:return Et(Pt);case 3:return kt(Pt);case 4:return wt(Pt);case 5:return ct(Pt)}var zt=It[Pt.length];return zt||(zt=It[Pt.length]=At(Pt.length)),zt(Pt)}}function St(){for(;at.length0){if(zt<=0)return Dt;Nt=Pt+zt}else if(Pt<0){if(zt>=0)return Dt;Nt=-(Pt+zt)}else return Dt;var $t=vt*Nt;return Dt>=$t||Dt<=-$t?Dt:St(It,At,Ot)},function(It,At,Ot,Pt){var zt=It[0]-Pt[0],Dt=At[0]-Pt[0],Nt=Ot[0]-Pt[0],$t=It[1]-Pt[1],Ut=At[1]-Pt[1],Ht=Ot[1]-Pt[1],Vt=It[2]-Pt[2],Xt=At[2]-Pt[2],qt=Ot[2]-Pt[2],er=Dt*Ht,lr=Nt*Ut,Jt=Nt*$t,Yt=zt*Ht,rr=zt*Ut,jt=Dt*$t,ar=Vt*(er-lr)+Xt*(Jt-Yt)+qt*(rr-jt),sr=(Math.abs(er)+Math.abs(lr))*Math.abs(Vt)+(Math.abs(Jt)+Math.abs(Yt))*Math.abs(Xt)+(Math.abs(rr)+Math.abs(jt))*Math.abs(qt),Zt=dt*sr;return ar>Zt||-ar>Zt?ar:_t(It,At,Ot,Pt)}];function Et(ct){var It=Mt[ct.length];return It||(It=Mt[ct.length]=mt(ct.length)),It.apply(void 0,ct)}function kt(ct,It,At,Ot,Pt,zt,Dt){return function($t,Ut,Ht,Vt,Xt){switch(arguments.length){case 0:case 1:return 0;case 2:return Ot($t,Ut);case 3:return Pt($t,Ut,Ht);case 4:return zt($t,Ut,Ht,Vt);case 5:return Dt($t,Ut,Ht,Vt,Xt)}for(var qt=new Array(arguments.length),er=0;er0&&bt>0||dt<0&&bt<0)return!1;var ft=_(nt,st,ot),at=_(vt,st,ot);return ft>0&&at>0||ft<0&&at<0?!1:dt===0&&bt===0&&ft===0&&at===0?rt(st,ot,nt,vt):!0}},8545:function(ut){ut.exports=j;function ht(_,rt){var tt=_+rt,st=tt-_,ot=tt-st,nt=rt-st,vt=_-ot,dt=vt+nt;return dt?[dt,tt]:[tt]}function j(_,rt){var tt=_.length|0,st=rt.length|0;if(tt===1&&st===1)return ht(_[0],-rt[0]);var ot=tt+st,nt=new Array(ot),vt=0,dt=0,bt=0,ft=Math.abs,at=_[dt],mt=ft(at),St=-rt[bt],_t=ft(St),Mt,Et;mt<_t?(Et=at,dt+=1,dt=st?(Mt=at,dt+=1,dt=st?(Mt=at,dt+=1,dt"u"&&(Mt=ot(mt));var Et=mt.length;if(Et===0||Mt<1)return{cells:[],vertexIds:[],vertexWeights:[]};var kt=nt(St,+_t),wt=vt(mt,Mt),ct=dt(wt,St,kt,+_t),It=bt(wt,St.length|0),At=st(Mt)(mt,wt.data,It,kt),Ot=ft(wt),Pt=[].slice.call(ct.data,0,ct.shape[0]);return rt.free(kt),rt.free(wt.data),rt.free(ct.data),rt.free(It),{cells:At,vertexIds:Ot,vertexWeights:Pt}}},1570:function(ut){ut.exports=j;var ht=[function(){function rt(tt,st,ot,nt){for(var vt=tt.length,dt=[],bt=0;bt>1,St=ot[2*mt+1];if(St===bt)return mt;bt>1,St=ot[2*mt+1];if(St===bt)return mt;bt>1,St=ot[2*mt+1];if(St===bt)return mt;bt0)-(tt<0)},ht.abs=function(tt){var st=tt>>j-1;return(tt^st)-st},ht.min=function(tt,st){return st^(tt^st)&-(tt65535)<<4,tt>>>=st,ot=(tt>255)<<3,tt>>>=ot,st|=ot,ot=(tt>15)<<2,tt>>>=ot,st|=ot,ot=(tt>3)<<1,tt>>>=ot,st|=ot,st|tt>>1},ht.log10=function(tt){return tt>=1e9?9:tt>=1e8?8:tt>=1e7?7:tt>=1e6?6:tt>=1e5?5:tt>=1e4?4:tt>=1e3?3:tt>=100?2:tt>=10?1:0},ht.popCount=function(tt){return tt=tt-(tt>>>1&1431655765),tt=(tt&858993459)+(tt>>>2&858993459),(tt+(tt>>>4)&252645135)*16843009>>>24};function _(tt){var st=32;return tt&=-tt,tt&&st--,tt&65535&&(st-=16),tt&16711935&&(st-=8),tt&252645135&&(st-=4),tt&858993459&&(st-=2),tt&1431655765&&(st-=1),st}ht.countTrailingZeros=_,ht.nextPow2=function(tt){return tt+=tt===0,--tt,tt|=tt>>>1,tt|=tt>>>2,tt|=tt>>>4,tt|=tt>>>8,tt|=tt>>>16,tt+1},ht.prevPow2=function(tt){return tt|=tt>>>1,tt|=tt>>>2,tt|=tt>>>4,tt|=tt>>>8,tt|=tt>>>16,tt-(tt>>>1)},ht.parity=function(tt){return tt^=tt>>>16,tt^=tt>>>8,tt^=tt>>>4,tt&=15,27030>>>tt&1};var rt=new Array(256);(function(tt){for(var st=0;st<256;++st){var ot=st,nt=st,vt=7;for(ot>>>=1;ot;ot>>>=1)nt<<=1,nt|=ot&1,--vt;tt[st]=nt<>>8&255]<<16|rt[tt>>>16&255]<<8|rt[tt>>>24&255]},ht.interleave2=function(tt,st){return tt&=65535,tt=(tt|tt<<8)&16711935,tt=(tt|tt<<4)&252645135,tt=(tt|tt<<2)&858993459,tt=(tt|tt<<1)&1431655765,st&=65535,st=(st|st<<8)&16711935,st=(st|st<<4)&252645135,st=(st|st<<2)&858993459,st=(st|st<<1)&1431655765,tt|st<<1},ht.deinterleave2=function(tt,st){return tt=tt>>>st&1431655765,tt=(tt|tt>>>1)&858993459,tt=(tt|tt>>>2)&252645135,tt=(tt|tt>>>4)&16711935,tt=(tt|tt>>>16)&65535,tt<<16>>16},ht.interleave3=function(tt,st,ot){return tt&=1023,tt=(tt|tt<<16)&4278190335,tt=(tt|tt<<8)&251719695,tt=(tt|tt<<4)&3272356035,tt=(tt|tt<<2)&1227133513,st&=1023,st=(st|st<<16)&4278190335,st=(st|st<<8)&251719695,st=(st|st<<4)&3272356035,st=(st|st<<2)&1227133513,tt|=st<<1,ot&=1023,ot=(ot|ot<<16)&4278190335,ot=(ot|ot<<8)&251719695,ot=(ot|ot<<4)&3272356035,ot=(ot|ot<<2)&1227133513,tt|ot<<2},ht.deinterleave3=function(tt,st){return tt=tt>>>st&1227133513,tt=(tt|tt>>>2)&3272356035,tt=(tt|tt>>>4)&251719695,tt=(tt|tt>>>8)&4278190335,tt=(tt|tt>>>16)&1023,tt<<22>>22},ht.nextCombination=function(tt){var st=tt|tt-1;return st+1|(~st&-~st)-1>>>_(tt)+1}},2014:function(ut,ht,j){var _=j(3105),rt=j(4623);function tt(ct){for(var It=0,At=Math.max,Ot=0,Pt=ct.length;Ot>1,Dt=nt(ct[zt],It);Dt<=0?(Dt===0&&(Pt=zt),At=zt+1):Dt>0&&(Ot=zt-1)}return Pt}ht.findCell=ft;function at(ct,It){for(var At=new Array(ct.length),Ot=0,Pt=At.length;Ot=ct.length||nt(ct[qt],zt)!==0););}return At}ht.incidence=at;function mt(ct,It){if(!It)return at(bt(_t(ct,0)),ct);for(var At=new Array(It),Ot=0;Ot>>Ut&1&&$t.push(Pt[Ut]);It.push($t)}return dt(It)}ht.explode=St;function _t(ct,It){if(It<0)return[];for(var At=[],Ot=(1<>1:(Jt>>1)-1}function Ot(Jt){for(var Yt=It(Jt);;){var rr=Yt,jt=2*Jt+1,ar=2*(Jt+1),sr=Jt;if(jt0;){var rr=At(Jt);if(rr>=0){var jt=It(rr);if(Yt0){var Jt=$t[0];return ct(0,Vt-1),Vt-=1,Ot(0),Jt}return-1}function Dt(Jt,Yt){var rr=$t[Jt];return mt[rr]===Yt?Jt:(mt[rr]=-1/0,Pt(Jt),zt(),mt[rr]=Yt,Vt+=1,Pt(Vt-1))}function Nt(Jt){if(!St[Jt]){St[Jt]=!0;var Yt=ft[Jt],rr=at[Jt];ft[rr]>=0&&(ft[rr]=Yt),at[Yt]>=0&&(at[Yt]=rr),Ut[Yt]>=0&&Dt(Ut[Yt],wt(Yt)),Ut[rr]>=0&&Dt(Ut[rr],wt(rr))}}for(var $t=[],Ut=new Array(dt),_t=0;_t>1;_t>=0;--_t)Ot(_t);for(;;){var Xt=zt();if(Xt<0||mt[Xt]>vt)break;Nt(Xt)}for(var qt=[],_t=0;_t=0&&rr>=0&&Yt!==rr){var jt=Ut[Yt],ar=Ut[rr];jt!==ar&&lr.push([jt,ar])}}),rt.unique(rt.normalize(lr)),{positions:qt,edges:lr}}},1303:function(ut,ht,j){ut.exports=tt;var _=j(3250);function rt(st,ot){var nt,vt;if(ot[0][0]ot[1][0])nt=ot[1],vt=ot[0];else{var dt=Math.min(st[0][1],st[1][1]),bt=Math.max(st[0][1],st[1][1]),ft=Math.min(ot[0][1],ot[1][1]),at=Math.max(ot[0][1],ot[1][1]);return btat?dt-at:bt-at}var mt,St;st[0][1]ot[1][0])nt=ot[1],vt=ot[0];else return rt(ot,st);var dt,bt;if(st[0][0]st[1][0])dt=st[1],bt=st[0];else return-rt(st,ot);var ft=_(nt,vt,bt),at=_(nt,vt,dt);if(ft<0){if(at<=0)return ft}else if(ft>0){if(at>=0)return ft}else if(at)return at;if(ft=_(bt,dt,vt),at=_(bt,dt,nt),ft<0){if(at<=0)return ft}else if(ft>0){if(at>=0)return ft}else if(at)return at;return vt[0]-bt[0]}},4209:function(ut,ht,j){ut.exports=at;var _=j(2478),rt=j(3840),tt=j(3250),st=j(1303);function ot(mt,St,_t){this.slabs=mt,this.coordinates=St,this.horizontal=_t}var nt=ot.prototype;function vt(mt,St){return mt.y-St}function dt(mt,St){for(var _t=null;mt;){var Mt=mt.key,Et,kt;Mt[0][0]0)if(St[0]!==Mt[1][0])_t=mt,mt=mt.right;else{var ct=dt(mt.right,St);if(ct)return ct;mt=mt.left}else{if(St[0]!==Mt[1][0])return mt;var ct=dt(mt.right,St);if(ct)return ct;mt=mt.left}}return _t}nt.castUp=function(mt){var St=_.le(this.coordinates,mt[0]);if(St<0)return-1;this.slabs[St];var _t=dt(this.slabs[St],mt),Mt=-1;if(_t&&(Mt=_t.value),this.coordinates[St]===mt[0]){var Et=null;if(_t&&(Et=_t.key),St>0){var kt=dt(this.slabs[St-1],mt);kt&&(Et?st(kt.key,Et)>0&&(Et=kt.key,Mt=kt.value):(Mt=kt.value,Et=kt.key))}var wt=this.horizontal[St];if(wt.length>0){var ct=_.ge(wt,mt[1],vt);if(ct=wt.length)return Mt;It=wt[ct]}}if(It.start)if(Et){var At=tt(Et[0],Et[1],[mt[0],It.y]);Et[0][0]>Et[1][0]&&(At=-At),At>0&&(Mt=It.index)}else Mt=It.index;else It.y!==mt[1]&&(Mt=It.index)}}}return Mt};function bt(mt,St,_t,Mt){this.y=mt,this.index=St,this.start=_t,this.closed=Mt}function ft(mt,St,_t,Mt){this.x=mt,this.segment=St,this.create=_t,this.index=Mt}function at(mt){for(var St=mt.length,_t=2*St,Mt=new Array(_t),Et=0;Et1&&(St=1);for(var _t=1-St,Mt=dt.length,Et=new Array(Mt),kt=0;kt0||mt>0&&Et<0){var kt=st(St,Et,_t,mt);ft.push(kt),at.push(kt.slice())}Et<0?at.push(_t.slice()):Et>0?ft.push(_t.slice()):(ft.push(_t.slice()),at.push(_t.slice())),mt=Et}return{positive:ft,negative:at}}function nt(dt,bt){for(var ft=[],at=tt(dt[dt.length-1],bt),mt=dt[dt.length-1],St=dt[0],_t=0;_t0||at>0&&Mt<0)&&ft.push(st(mt,Mt,St,at)),Mt>=0&&ft.push(St.slice()),at=Mt}return ft}function vt(dt,bt){for(var ft=[],at=tt(dt[dt.length-1],bt),mt=dt[dt.length-1],St=dt[0],_t=0;_t0||at>0&&Mt<0)&&ft.push(st(mt,Mt,St,at)),Mt<=0&&ft.push(St.slice()),at=Mt}return ft}},3387:function(ut,ht,j){var _;(function(){var rt={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function tt(dt){return ot(vt(dt),arguments)}function st(dt,bt){return tt.apply(null,[dt].concat(bt||[]))}function ot(dt,bt){var ft=1,at=dt.length,mt,St="",_t,Mt,Et,kt,wt,ct,It,At;for(_t=0;_t=0),Et.type){case"b":mt=parseInt(mt,10).toString(2);break;case"c":mt=String.fromCharCode(parseInt(mt,10));break;case"d":case"i":mt=parseInt(mt,10);break;case"j":mt=JSON.stringify(mt,null,Et.width?parseInt(Et.width):0);break;case"e":mt=Et.precision?parseFloat(mt).toExponential(Et.precision):parseFloat(mt).toExponential();break;case"f":mt=Et.precision?parseFloat(mt).toFixed(Et.precision):parseFloat(mt);break;case"g":mt=Et.precision?String(Number(mt.toPrecision(Et.precision))):parseFloat(mt);break;case"o":mt=(parseInt(mt,10)>>>0).toString(8);break;case"s":mt=String(mt),mt=Et.precision?mt.substring(0,Et.precision):mt;break;case"t":mt=String(!!mt),mt=Et.precision?mt.substring(0,Et.precision):mt;break;case"T":mt=Object.prototype.toString.call(mt).slice(8,-1).toLowerCase(),mt=Et.precision?mt.substring(0,Et.precision):mt;break;case"u":mt=parseInt(mt,10)>>>0;break;case"v":mt=mt.valueOf(),mt=Et.precision?mt.substring(0,Et.precision):mt;break;case"x":mt=(parseInt(mt,10)>>>0).toString(16);break;case"X":mt=(parseInt(mt,10)>>>0).toString(16).toUpperCase();break}rt.json.test(Et.type)?St+=mt:(rt.number.test(Et.type)&&(!It||Et.sign)?(At=It?"+":"-",mt=mt.toString().replace(rt.sign,"")):At="",wt=Et.pad_char?Et.pad_char==="0"?"0":Et.pad_char.charAt(1):" ",ct=Et.width-(At+mt).length,kt=Et.width&&ct>0?wt.repeat(ct):"",St+=Et.align?At+mt+kt:wt==="0"?At+kt+mt:kt+At+mt)}return St}var nt=Object.create(null);function vt(dt){if(nt[dt])return nt[dt];for(var bt=dt,ft,at=[],mt=0;bt;){if((ft=rt.text.exec(bt))!==null)at.push(ft[0]);else if((ft=rt.modulo.exec(bt))!==null)at.push("%");else if((ft=rt.placeholder.exec(bt))!==null){if(ft[2]){mt|=1;var St=[],_t=ft[2],Mt=[];if((Mt=rt.key.exec(_t))!==null)for(St.push(Mt[1]);(_t=_t.substring(Mt[0].length))!=="";)if((Mt=rt.key_access.exec(_t))!==null)St.push(Mt[1]);else if((Mt=rt.index_access.exec(_t))!==null)St.push(Mt[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");ft[2]=St}else mt|=2;if(mt===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");at.push({placeholder:ft[0],param_no:ft[1],keys:ft[2],sign:ft[3],pad_char:ft[4],align:ft[5],width:ft[6],precision:ft[7],type:ft[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");bt=bt.substring(ft[0].length)}return nt[dt]=at}ht.sprintf=tt,ht.vsprintf=st,typeof window<"u"&&(window.sprintf=tt,window.vsprintf=st,_=function(){return{sprintf:tt,vsprintf:st}}.call(ht,j,ht,ut),_!==void 0&&(ut.exports=_))})()},3711:function(ut,ht,j){ut.exports=vt;var _=j(2640),rt=j(781),tt={"2d":function(dt,bt,ft){var at=dt({order:bt,scalarArguments:3,getters:ft==="generic"?[0]:void 0,phase:function(St,_t,Mt,Et){return St>Et|0},vertex:function(St,_t,Mt,Et,kt,wt,ct,It,At,Ot,Pt,zt,Dt){var Nt=(ct<<0)+(It<<1)+(At<<2)+(Ot<<3)|0;if(!(Nt===0||Nt===15))switch(Nt){case 0:Pt.push([St-.5,_t-.5]);break;case 1:Pt.push([St-.25-.25*(Et+Mt-2*Dt)/(Mt-Et),_t-.25-.25*(kt+Mt-2*Dt)/(Mt-kt)]);break;case 2:Pt.push([St-.75-.25*(-Et-Mt+2*Dt)/(Et-Mt),_t-.25-.25*(wt+Et-2*Dt)/(Et-wt)]);break;case 3:Pt.push([St-.5,_t-.5-.5*(kt+Mt+wt+Et-4*Dt)/(Mt-kt+Et-wt)]);break;case 4:Pt.push([St-.25-.25*(wt+kt-2*Dt)/(kt-wt),_t-.75-.25*(-kt-Mt+2*Dt)/(kt-Mt)]);break;case 5:Pt.push([St-.5-.5*(Et+Mt+wt+kt-4*Dt)/(Mt-Et+kt-wt),_t-.5]);break;case 6:Pt.push([St-.5-.25*(-Et-Mt+wt+kt)/(Et-Mt+kt-wt),_t-.5-.25*(-kt-Mt+wt+Et)/(kt-Mt+Et-wt)]);break;case 7:Pt.push([St-.75-.25*(wt+kt-2*Dt)/(kt-wt),_t-.75-.25*(wt+Et-2*Dt)/(Et-wt)]);break;case 8:Pt.push([St-.75-.25*(-wt-kt+2*Dt)/(wt-kt),_t-.75-.25*(-wt-Et+2*Dt)/(wt-Et)]);break;case 9:Pt.push([St-.5-.25*(Et+Mt+-wt-kt)/(Mt-Et+wt-kt),_t-.5-.25*(kt+Mt+-wt-Et)/(Mt-kt+wt-Et)]);break;case 10:Pt.push([St-.5-.5*(-Et-Mt+-wt-kt+4*Dt)/(Et-Mt+wt-kt),_t-.5]);break;case 11:Pt.push([St-.25-.25*(-wt-kt+2*Dt)/(wt-kt),_t-.75-.25*(kt+Mt-2*Dt)/(Mt-kt)]);break;case 12:Pt.push([St-.5,_t-.5-.5*(-kt-Mt+-wt-Et+4*Dt)/(kt-Mt+wt-Et)]);break;case 13:Pt.push([St-.75-.25*(Et+Mt-2*Dt)/(Mt-Et),_t-.25-.25*(-wt-Et+2*Dt)/(wt-Et)]);break;case 14:Pt.push([St-.25-.25*(-Et-Mt+2*Dt)/(Et-Mt),_t-.25-.25*(-kt-Mt+2*Dt)/(kt-Mt)]);break;case 15:Pt.push([St-.5,_t-.5]);break}},cell:function(St,_t,Mt,Et,kt,wt,ct,It,At){kt?It.push([St,_t]):It.push([_t,St])}});return function(mt,St){var _t=[],Mt=[];return at(mt,_t,Mt,St),{positions:_t,cells:Mt}}}};function st(dt,bt){var ft=dt.length+"d",at=tt[ft];if(at)return at(_,dt,bt)}function ot(dt,bt){for(var ft=rt(dt,bt),at=ft.length,mt=new Array(at),St=new Array(at),_t=0;_t0&&(ct+=.02);for(var At=new Float32Array(wt),Ot=0,Pt=-.5*ct,It=0;ItMath.max(Et,kt)?wt[2]=1:Et>Math.max(Mt,kt)?wt[0]=1:wt[1]=1;for(var ct=0,It=0,At=0;At<3;++At)ct+=_t[At]*_t[At],It+=wt[At]*_t[At];for(var At=0;At<3;++At)wt[At]-=It/ct*_t[At];return ot(wt,wt),wt}function ft(_t,Mt,Et,kt,wt,ct,It,At){this.center=_(Et),this.up=_(kt),this.right=_(wt),this.radius=_([ct]),this.angle=_([It,At]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(_t,Mt),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var Ot=0;Ot<16;++Ot)this.computedMatrix[Ot]=.5;this.recalcMatrix(0)}var at=ft.prototype;at.setDistanceLimits=function(_t,Mt){_t>0?_t=Math.log(_t):_t=-1/0,Mt>0?Mt=Math.log(Mt):Mt=1/0,Mt=Math.max(Mt,_t),this.radius.bounds[0][0]=_t,this.radius.bounds[1][0]=Mt},at.getDistanceLimits=function(_t){var Mt=this.radius.bounds[0];return _t?(_t[0]=Math.exp(Mt[0][0]),_t[1]=Math.exp(Mt[1][0]),_t):[Math.exp(Mt[0][0]),Math.exp(Mt[1][0])]},at.recalcMatrix=function(_t){this.center.curve(_t),this.up.curve(_t),this.right.curve(_t),this.radius.curve(_t),this.angle.curve(_t);for(var Mt=this.computedUp,Et=this.computedRight,kt=0,wt=0,ct=0;ct<3;++ct)wt+=Mt[ct]*Et[ct],kt+=Mt[ct]*Mt[ct];for(var It=Math.sqrt(kt),At=0,ct=0;ct<3;++ct)Et[ct]-=Mt[ct]*wt/kt,At+=Et[ct]*Et[ct],Mt[ct]/=It;for(var Ot=Math.sqrt(At),ct=0;ct<3;++ct)Et[ct]/=Ot;var Pt=this.computedToward;st(Pt,Mt,Et),ot(Pt,Pt);for(var zt=Math.exp(this.computedRadius[0]),Dt=this.computedAngle[0],Nt=this.computedAngle[1],$t=Math.cos(Dt),Ut=Math.sin(Dt),Ht=Math.cos(Nt),Vt=Math.sin(Nt),Xt=this.computedCenter,qt=$t*Ht,er=Ut*Ht,lr=Vt,Jt=-$t*Vt,Yt=-Ut*Vt,rr=Ht,jt=this.computedEye,ar=this.computedMatrix,ct=0;ct<3;++ct){var sr=qt*Et[ct]+er*Pt[ct]+lr*Mt[ct];ar[4*ct+1]=Jt*Et[ct]+Yt*Pt[ct]+rr*Mt[ct],ar[4*ct+2]=sr,ar[4*ct+3]=0}var Zt=ar[1],Kt=ar[5],or=ar[9],tr=ar[2],cr=ar[6],mr=ar[10],Ar=Kt*mr-or*cr,br=or*tr-Zt*mr,Ir=Zt*cr-Kt*tr,Tr=vt(Ar,br,Ir);Ar/=Tr,br/=Tr,Ir/=Tr,ar[0]=Ar,ar[4]=br,ar[8]=Ir;for(var ct=0;ct<3;++ct)jt[ct]=Xt[ct]+ar[2+4*ct]*zt;for(var ct=0;ct<3;++ct){for(var At=0,_r=0;_r<3;++_r)At+=ar[ct+4*_r]*jt[_r];ar[12+ct]=-At}ar[15]=1},at.getMatrix=function(_t,Mt){this.recalcMatrix(_t);var Et=this.computedMatrix;if(Mt){for(var kt=0;kt<16;++kt)Mt[kt]=Et[kt];return Mt}return Et};var mt=[0,0,0];at.rotate=function(_t,Mt,Et,kt){if(this.angle.move(_t,Mt,Et),kt){this.recalcMatrix(_t);var wt=this.computedMatrix;mt[0]=wt[2],mt[1]=wt[6],mt[2]=wt[10];for(var ct=this.computedUp,It=this.computedRight,At=this.computedToward,Ot=0;Ot<3;++Ot)wt[4*Ot]=ct[Ot],wt[4*Ot+1]=It[Ot],wt[4*Ot+2]=At[Ot];tt(wt,wt,kt,mt);for(var Ot=0;Ot<3;++Ot)ct[Ot]=wt[4*Ot],It[Ot]=wt[4*Ot+1];this.up.set(_t,ct[0],ct[1],ct[2]),this.right.set(_t,It[0],It[1],It[2])}},at.pan=function(_t,Mt,Et,kt){Mt=Mt||0,Et=Et||0,kt=kt||0,this.recalcMatrix(_t);var wt=this.computedMatrix;Math.exp(this.computedRadius[0]);var ct=wt[1],It=wt[5],At=wt[9],Ot=vt(ct,It,At);ct/=Ot,It/=Ot,At/=Ot;var Pt=wt[0],zt=wt[4],Dt=wt[8],Nt=Pt*ct+zt*It+Dt*At;Pt-=ct*Nt,zt-=It*Nt,Dt-=At*Nt;var $t=vt(Pt,zt,Dt);Pt/=$t,zt/=$t,Dt/=$t;var Ut=Pt*Mt+ct*Et,Ht=zt*Mt+It*Et,Vt=Dt*Mt+At*Et;this.center.move(_t,Ut,Ht,Vt);var Xt=Math.exp(this.computedRadius[0]);Xt=Math.max(1e-4,Xt+kt),this.radius.set(_t,Math.log(Xt))},at.translate=function(_t,Mt,Et,kt){this.center.move(_t,Mt||0,Et||0,kt||0)},at.setMatrix=function(_t,Mt,Et,kt){var wt=1;typeof Et=="number"&&(wt=Et|0),(wt<0||wt>3)&&(wt=1);var ct=(wt+2)%3;Mt||(this.recalcMatrix(_t),Mt=this.computedMatrix);var It=Mt[wt],At=Mt[wt+4],Ot=Mt[wt+8];if(kt){var zt=Math.abs(It),Dt=Math.abs(At),Nt=Math.abs(Ot),$t=Math.max(zt,Dt,Nt);zt===$t?(It=It<0?-1:1,At=Ot=0):Nt===$t?(Ot=Ot<0?-1:1,It=At=0):(At=At<0?-1:1,It=Ot=0)}else{var Pt=vt(It,At,Ot);It/=Pt,At/=Pt,Ot/=Pt}var Ut=Mt[ct],Ht=Mt[ct+4],Vt=Mt[ct+8],Xt=Ut*It+Ht*At+Vt*Ot;Ut-=It*Xt,Ht-=At*Xt,Vt-=Ot*Xt;var qt=vt(Ut,Ht,Vt);Ut/=qt,Ht/=qt,Vt/=qt;var er=At*Vt-Ot*Ht,lr=Ot*Ut-It*Vt,Jt=It*Ht-At*Ut,Yt=vt(er,lr,Jt);er/=Yt,lr/=Yt,Jt/=Yt,this.center.jump(_t,Or,kr,Nr),this.radius.idle(_t),this.up.jump(_t,It,At,Ot),this.right.jump(_t,Ut,Ht,Vt);var rr,jt;if(wt===2){var ar=Mt[1],sr=Mt[5],Zt=Mt[9],Kt=ar*Ut+sr*Ht+Zt*Vt,or=ar*er+sr*lr+Zt*Jt;Ar<0?rr=-Math.PI/2:rr=Math.PI/2,jt=Math.atan2(or,Kt)}else{var tr=Mt[2],cr=Mt[6],mr=Mt[10],Ar=tr*It+cr*At+mr*Ot,br=tr*Ut+cr*Ht+mr*Vt,Ir=tr*er+cr*lr+mr*Jt;rr=Math.asin(dt(Ar)),jt=Math.atan2(Ir,br)}this.angle.jump(_t,jt,rr),this.recalcMatrix(_t);var Tr=Mt[2],_r=Mt[6],Er=Mt[10],Rr=this.computedMatrix;rt(Rr,Mt);var zr=Rr[15],Or=Rr[12]/zr,kr=Rr[13]/zr,Nr=Rr[14]/zr,Qr=Math.exp(this.computedRadius[0]);this.center.jump(_t,Or-Tr*Qr,kr-_r*Qr,Nr-Er*Qr)},at.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},at.idle=function(_t){this.center.idle(_t),this.up.idle(_t),this.right.idle(_t),this.radius.idle(_t),this.angle.idle(_t)},at.flush=function(_t){this.center.flush(_t),this.up.flush(_t),this.right.flush(_t),this.radius.flush(_t),this.angle.flush(_t)},at.setDistance=function(_t,Mt){Mt>0&&this.radius.set(_t,Math.log(Mt))},at.lookAt=function(_t,Mt,Et,kt){this.recalcMatrix(_t),Mt=Mt||this.computedEye,Et=Et||this.computedCenter,kt=kt||this.computedUp;var wt=kt[0],ct=kt[1],It=kt[2],At=vt(wt,ct,It);if(!(At<1e-6)){wt/=At,ct/=At,It/=At;var Ot=Mt[0]-Et[0],Pt=Mt[1]-Et[1],zt=Mt[2]-Et[2],Dt=vt(Ot,Pt,zt);if(!(Dt<1e-6)){Ot/=Dt,Pt/=Dt,zt/=Dt;var Nt=this.computedRight,$t=Nt[0],Ut=Nt[1],Ht=Nt[2],Vt=wt*$t+ct*Ut+It*Ht;$t-=Vt*wt,Ut-=Vt*ct,Ht-=Vt*It;var Xt=vt($t,Ut,Ht);if(!(Xt<.01&&($t=ct*zt-It*Pt,Ut=It*Ot-wt*zt,Ht=wt*Pt-ct*Ot,Xt=vt($t,Ut,Ht),Xt<1e-6))){$t/=Xt,Ut/=Xt,Ht/=Xt,this.up.set(_t,wt,ct,It),this.right.set(_t,$t,Ut,Ht),this.center.set(_t,Et[0],Et[1],Et[2]),this.radius.set(_t,Math.log(Dt));var qt=ct*Ht-It*Ut,er=It*$t-wt*Ht,lr=wt*Ut-ct*$t,Jt=vt(qt,er,lr);qt/=Jt,er/=Jt,lr/=Jt;var Yt=wt*Ot+ct*Pt+It*zt,rr=$t*Ot+Ut*Pt+Ht*zt,jt=qt*Ot+er*Pt+lr*zt,ar=Math.asin(dt(Yt)),sr=Math.atan2(jt,rr),Zt=this.angle._state,Kt=Zt[Zt.length-1],or=Zt[Zt.length-2];Kt=Kt%(2*Math.PI);var tr=Math.abs(Kt+2*Math.PI-sr),cr=Math.abs(Kt-sr),mr=Math.abs(Kt-2*Math.PI-sr);tr0?Ht.pop():new ArrayBuffer($t)}ht.mallocArrayBuffer=mt;function St(Nt){return new Uint8Array(mt(Nt),0,Nt)}ht.mallocUint8=St;function _t(Nt){return new Uint16Array(mt(2*Nt),0,Nt)}ht.mallocUint16=_t;function Mt(Nt){return new Uint32Array(mt(4*Nt),0,Nt)}ht.mallocUint32=Mt;function Et(Nt){return new Int8Array(mt(Nt),0,Nt)}ht.mallocInt8=Et;function kt(Nt){return new Int16Array(mt(2*Nt),0,Nt)}ht.mallocInt16=kt;function wt(Nt){return new Int32Array(mt(4*Nt),0,Nt)}ht.mallocInt32=wt;function ct(Nt){return new Float32Array(mt(4*Nt),0,Nt)}ht.mallocFloat32=ht.mallocFloat=ct;function It(Nt){return new Float64Array(mt(8*Nt),0,Nt)}ht.mallocFloat64=ht.mallocDouble=It;function At(Nt){return st?new Uint8ClampedArray(mt(Nt),0,Nt):St(Nt)}ht.mallocUint8Clamped=At;function Ot(Nt){return ot?new BigUint64Array(mt(8*Nt),0,Nt):null}ht.mallocBigUint64=Ot;function Pt(Nt){return nt?new BigInt64Array(mt(8*Nt),0,Nt):null}ht.mallocBigInt64=Pt;function zt(Nt){return new DataView(mt(Nt),0,Nt)}ht.mallocDataView=zt;function Dt(Nt){Nt=_.nextPow2(Nt);var $t=_.log2(Nt),Ut=bt[$t];return Ut.length>0?Ut.pop():new tt(Nt)}ht.mallocBuffer=Dt,ht.clearCache=function(){for(var $t=0;$t<32;++$t)vt.UINT8[$t].length=0,vt.UINT16[$t].length=0,vt.UINT32[$t].length=0,vt.INT8[$t].length=0,vt.INT16[$t].length=0,vt.INT32[$t].length=0,vt.FLOAT[$t].length=0,vt.DOUBLE[$t].length=0,vt.BIGUINT64[$t].length=0,vt.BIGINT64[$t].length=0,vt.UINT8C[$t].length=0,dt[$t].length=0,bt[$t].length=0}},1755:function(ut){ut.exports=ht;function ht(_){this.roots=new Array(_),this.ranks=new Array(_);for(var rt=0;rt<_;++rt)this.roots[rt]=rt,this.ranks[rt]=0}var j=ht.prototype;Object.defineProperty(j,"length",{get:function(){return this.roots.length}}),j.makeSet=function(){var _=this.roots.length;return this.roots.push(_),this.ranks.push(0),_},j.find=function(_){for(var rt=_,tt=this.roots;tt[_]!==_;)_=tt[_];for(;tt[rt]!==_;){var st=tt[rt];tt[rt]=_,rt=st}return _},j.link=function(_,rt){var tt=this.find(_),st=this.find(rt);if(tt!==st){var ot=this.ranks,nt=this.roots,vt=ot[tt],dt=ot[st];vt",Ht="",Vt=Ut.length,Xt=Ht.length,qt=Dt[0]===mt||Dt[0]===Mt,er=0,lr=-Xt;er>-1&&(er=Nt.indexOf(Ut,er),!(er===-1||(lr=Nt.indexOf(Ht,er+Vt),lr===-1)||lr<=er));){for(var Jt=er;Jt=lr)$t[Jt]=null,Nt=Nt.substr(0,Jt)+" "+Nt.substr(Jt+1);else if($t[Jt]!==null){var Yt=$t[Jt].indexOf(Dt[0]);Yt===-1?$t[Jt]+=Dt:qt&&($t[Jt]=$t[Jt].substr(0,Yt+1)+(1+parseInt($t[Jt][Yt+1]))+$t[Jt].substr(Yt+2))}var rr=er+Vt,jt=Nt.substr(rr,lr-rr),ar=jt.indexOf(Ut);ar!==-1?er=ar:er=lr+Xt}return $t}function wt(zt,Dt,Nt){for(var $t=Dt.textAlign||"start",Ut=Dt.textBaseline||"alphabetic",Ht=[1<<30,1<<30],Vt=[0,0],Xt=zt.length,qt=0;qt/g,` +`):Nt=Nt.replace(/\/g," ");var Vt="",Xt=[];for(Kt=0;Kt-1?parseInt(Nr[1+un]):0,ln=en>-1?parseInt(Qr[1+en]):0;Xr!==ln&&(sn=sn.replace(Ir(),"?px "),cr*=Math.pow(.75,ln-Xr),sn=sn.replace("?px ",Ir())),tr+=.25*Yt*(ln-Xr)}if(Ht.superscripts===!0){var mn=Nr.indexOf(mt),pn=Qr.indexOf(mt),Tn=mn>-1?parseInt(Nr[1+mn]):0,Zr=pn>-1?parseInt(Qr[1+pn]):0;Tn!==Zr&&(sn=sn.replace(Ir(),"?px "),cr*=Math.pow(.75,Zr-Tn),sn=sn.replace("?px ",Ir())),tr-=.25*Yt*(Zr-Tn)}if(Ht.bolds===!0){var Fr=Nr.indexOf(dt)>-1,Ur=Qr.indexOf(dt)>-1;!Fr&&Ur&&(Wr?sn=sn.replace("italic ","italic bold "):sn="bold "+sn),Fr&&!Ur&&(sn=sn.replace("bold ",""))}if(Ht.italics===!0){var Wr=Nr.indexOf(ft)>-1,Gr=Qr.indexOf(ft)>-1;!Wr&&Gr&&(sn="italic "+sn),Wr&&!Gr&&(sn=sn.replace("italic ",""))}Dt.font=sn}for(Zt=0;Zt0&&(Ut=$t.size),$t.lineSpacing&&$t.lineSpacing>0&&(Ht=$t.lineSpacing),$t.styletags&&$t.styletags.breaklines&&(Vt.breaklines=!!$t.styletags.breaklines),$t.styletags&&$t.styletags.bolds&&(Vt.bolds=!!$t.styletags.bolds),$t.styletags&&$t.styletags.italics&&(Vt.italics=!!$t.styletags.italics),$t.styletags&&$t.styletags.subscripts&&(Vt.subscripts=!!$t.styletags.subscripts),$t.styletags&&$t.styletags.superscripts&&(Vt.superscripts=!!$t.styletags.superscripts)),Nt.font=[$t.fontStyle,$t.fontVariant,$t.fontWeight,Ut+"px",$t.font].filter(function(qt){return qt}).join(" "),Nt.textAlign="start",Nt.textBaseline="alphabetic",Nt.direction="ltr";var Xt=ct(Dt,Nt,zt,Ut,Ht,Vt);return Ot(Xt,$t,Ut)}},1538:function(ut){(function(){if(typeof ses<"u"&&ses.ok&&!ses.ok())return;function j(It){It.permitHostObjects___&&It.permitHostObjects___(j)}typeof ses<"u"&&(ses.weakMapPermitHostObjects=j);var _=!1;if(typeof WeakMap=="function"){var rt=WeakMap;if(!(typeof navigator<"u"&&/Firefox/.test(navigator.userAgent))){var tt=new rt,st=Object.freeze({});if(tt.set(st,1),tt.get(st)!==1)_=!0;else{ut.exports=WeakMap;return}}}var ot=Object.getOwnPropertyNames,nt=Object.defineProperty,vt=Object.isExtensible,dt="weakmap:",bt=dt+"ident:"+Math.random()+"___";if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var ft=new ArrayBuffer(25),at=new Uint8Array(ft);crypto.getRandomValues(at),bt=dt+"rand:"+Array.prototype.map.call(at,function(It){return(It%36).toString(36)}).join("")+"___"}function mt(It){return!(It.substr(0,dt.length)==dt&&It.substr(It.length-3)==="___")}if(nt(Object,"getOwnPropertyNames",{value:function(At){return ot(At).filter(mt)}}),"getPropertyNames"in Object){var St=Object.getPropertyNames;nt(Object,"getPropertyNames",{value:function(At){return St(At).filter(mt)}})}function _t(It){if(It!==Object(It))throw new TypeError("Not an object: "+It);var At=It[bt];if(At&&At.key===It)return At;if(vt(It)){At={key:It};try{return nt(It,bt,{value:At,writable:!1,enumerable:!1,configurable:!1}),At}catch{return}}}(function(){var It=Object.freeze;nt(Object,"freeze",{value:function(zt){return _t(zt),It(zt)}});var At=Object.seal;nt(Object,"seal",{value:function(zt){return _t(zt),At(zt)}});var Ot=Object.preventExtensions;nt(Object,"preventExtensions",{value:function(zt){return _t(zt),Ot(zt)}})})();function Mt(It){return It.prototype=null,Object.freeze(It)}var Et=!1;function kt(){!Et&&typeof console<"u"&&(Et=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var wt=0,ct=function(){this instanceof ct||kt();var It=[],At=[],Ot=wt++;function Pt($t,Ut){var Ht,Vt=_t($t);return Vt?Ot in Vt?Vt[Ot]:Ut:(Ht=It.indexOf($t),Ht>=0?At[Ht]:Ut)}function zt($t){var Ut=_t($t);return Ut?Ot in Ut:It.indexOf($t)>=0}function Dt($t,Ut){var Ht,Vt=_t($t);return Vt?Vt[Ot]=Ut:(Ht=It.indexOf($t),Ht>=0?At[Ht]=Ut:(Ht=It.length,At[Ht]=Ut,It[Ht]=$t)),this}function Nt($t){var Ut=_t($t),Ht,Vt;return Ut?Ot in Ut&&delete Ut[Ot]:(Ht=It.indexOf($t),Ht<0?!1:(Vt=It.length-1,It[Ht]=void 0,At[Ht]=At[Vt],It[Ht]=It[Vt],It.length=Vt,At.length=Vt,!0))}return Object.create(ct.prototype,{get___:{value:Mt(Pt)},has___:{value:Mt(zt)},set___:{value:Mt(Dt)},delete___:{value:Mt(Nt)}})};ct.prototype=Object.create(Object.prototype,{get:{value:function(At,Ot){return this.get___(At,Ot)},writable:!0,configurable:!0},has:{value:function(At){return this.has___(At)},writable:!0,configurable:!0},set:{value:function(At,Ot){return this.set___(At,Ot)},writable:!0,configurable:!0},delete:{value:function(At){return this.delete___(At)},writable:!0,configurable:!0}}),typeof rt=="function"?function(){_&&typeof Proxy<"u"&&(Proxy=void 0);function It(){this instanceof ct||kt();var At=new rt,Ot=void 0,Pt=!1;function zt(Ut,Ht){return Ot?At.has(Ut)?At.get(Ut):Ot.get___(Ut,Ht):At.get(Ut,Ht)}function Dt(Ut){return At.has(Ut)||(Ot?Ot.has___(Ut):!1)}var Nt;_?Nt=function(Ut,Ht){return At.set(Ut,Ht),At.has(Ut)||(Ot||(Ot=new ct),Ot.set(Ut,Ht)),this}:Nt=function(Ut,Ht){if(Pt)try{At.set(Ut,Ht)}catch{Ot||(Ot=new ct),Ot.set___(Ut,Ht)}else At.set(Ut,Ht);return this};function $t(Ut){var Ht=!!At.delete(Ut);return Ot&&Ot.delete___(Ut)||Ht}return Object.create(ct.prototype,{get___:{value:Mt(zt)},has___:{value:Mt(Dt)},set___:{value:Mt(Nt)},delete___:{value:Mt($t)},permitHostObjects___:{value:Mt(function(Ut){if(Ut===j)Pt=!0;else throw new Error("bogus call to permitHostObjects___")})}})}It.prototype=ct.prototype,ut.exports=It,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(typeof Proxy<"u"&&(Proxy=void 0),ut.exports=ct)})()},236:function(ut,ht,j){var _=j(8284);ut.exports=rt;function rt(){var tt={};return function(st){if((typeof st!="object"||st===null)&&typeof st!="function")throw new Error("Weakmap-shim: Key must be object");var ot=st.valueOf(tt);return ot&&ot.identity===tt?ot:_(st,tt)}}},8284:function(ut){ut.exports=ht;function ht(j,_){var rt={identity:_},tt=j.valueOf;return Object.defineProperty(j,"valueOf",{value:function(st){return st!==_?tt.apply(this,arguments):rt},writable:!0}),rt}},606:function(ut,ht,j){var _=j(236);ut.exports=rt;function rt(){var tt=_();return{get:function(st,ot){var nt=tt(st);return nt.hasOwnProperty("value")?nt.value:ot},set:function(st,ot){return tt(st).value=ot,this},has:function(st){return"value"in tt(st)},delete:function(st){return delete tt(st).value}}}},3349:function(ut){function ht(){return function(ot,nt,vt,dt,bt,ft){var at=ot[0],mt=vt[0],St=[0],_t=mt;dt|=0;var Mt=0,Et=mt;for(Mt=0;Mt=0!=wt>=0&&bt.push(St[0]+.5+.5*(kt+wt)/(kt-wt))}dt+=Et,++St[0]}}}function j(){return ht()}var _=j;function rt(ot){var nt={};return function(dt,bt,ft){var at=dt.dtype,mt=dt.order,St=[at,mt.join()].join(),_t=nt[St];return _t||(nt[St]=_t=ot([at,mt])),_t(dt.shape.slice(0),dt.data,dt.stride,dt.offset|0,bt,ft)}}function tt(ot){return rt(_.bind(void 0,ot))}function st(ot){return tt({funcName:ot.funcName})}ut.exports=st({funcName:"zeroCrossings"})},781:function(ut,ht,j){ut.exports=rt;var _=j(3349);function rt(tt,st){var ot=[];return st=+st||0,_(tt.hi(tt.shape[0]-1),ot,st),ot}},7790:function(){}},et={};function Tt(ut){var ht=et[ut];if(ht!==void 0)return ht.exports;var j=et[ut]={id:ut,loaded:!1,exports:{}};return xt[ut].call(j.exports,j,j.exports,Tt),j.loaded=!0,j.exports}(function(){Tt.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}()})(),function(){Tt.nmd=function(ut){return ut.paths=[],ut.children||(ut.children=[]),ut}}();var yt=Tt(1964);Ct.exports=yt})()},33576:function(Ct,Rt,o){/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT - */function it(Jr,Or){if(!(Jr instanceof Or))throw new TypeError("Cannot call a class as a function")}function xt(Jr,Or){for(var Ur=0;Ur"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{return!1}}return Or=j(Or),ht(Jr,jr()?Reflect.construct(Or,Ur||[],j(Jr).constructor):Or.apply(Jr,Ur))}function ht(Jr,Or){if(Or&&(st(Or)==="object"||typeof Or=="function"))return Or;if(Or!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _(Jr)}function j(Jr){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Ur){return Ur.__proto__||Object.getPrototypeOf(Ur)},j(Jr)}function _(Jr){if(Jr===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Jr}function rt(Jr,Or){if(typeof Or!="function"&&Or!==null)throw new TypeError("Super expression must either be null or a function");Jr.prototype=Object.create(Or&&Or.prototype,{constructor:{value:Jr,writable:!0,configurable:!0}}),Object.defineProperty(Jr,"prototype",{writable:!1}),Or&&tt(Jr,Or)}function tt(Jr,Or){return tt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(jr,Gr){return jr.__proto__=Gr,jr},tt(Jr,Or)}function st(Jr){return st=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},st(Jr)}var ot=o(59968),nt=o(35984),vt=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Rt.Buffer=at,Rt.SlowBuffer=Ot,Rt.INSPECT_MAX_BYTES=50;var dt=2147483647;Rt.kMaxLength=dt,at.TYPED_ARRAY_SUPPORT=bt(),!at.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 bt(){try{var Jr=new Uint8Array(1),Or={foo:function(){return 42}};return Object.setPrototypeOf(Or,Uint8Array.prototype),Object.setPrototypeOf(Jr,Or),Jr.foo()===42}catch{return!1}}Object.defineProperty(at.prototype,"parent",{enumerable:!0,get:function(){if(at.isBuffer(this))return this.buffer}}),Object.defineProperty(at.prototype,"offset",{enumerable:!0,get:function(){if(at.isBuffer(this))return this.byteOffset}});function ft(Jr){if(Jr>dt)throw new RangeError('The value "'+Jr+'" is invalid for option "size"');var Or=new Uint8Array(Jr);return Object.setPrototypeOf(Or,at.prototype),Or}function at(Jr,Or,Ur){if(typeof Jr=="number"){if(typeof Or=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Mt(Jr)}return yt(Jr,Or,Ur)}at.poolSize=8192;function yt(Jr,Or,Ur){if(typeof Jr=="string")return Tt(Jr,Or);if(ArrayBuffer.isView(Jr))return wt(Jr);if(Jr==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+st(Jr));if(Xr(Jr,ArrayBuffer)||Jr&&Xr(Jr.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Xr(Jr,SharedArrayBuffer)||Jr&&Xr(Jr.buffer,SharedArrayBuffer)))return ct(Jr,Or,Ur);if(typeof Jr=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var jr=Jr.valueOf&&Jr.valueOf();if(jr!=null&&jr!==Jr)return at.from(jr,Or,Ur);var Gr=It(Jr);if(Gr)return Gr;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Jr[Symbol.toPrimitive]=="function")return at.from(Jr[Symbol.toPrimitive]("string"),Or,Ur);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+st(Jr))}at.from=function(Jr,Or,Ur){return yt(Jr,Or,Ur)},Object.setPrototypeOf(at.prototype,Uint8Array.prototype),Object.setPrototypeOf(at,Uint8Array);function St(Jr){if(typeof Jr!="number")throw new TypeError('"size" argument must be of type number');if(Jr<0)throw new RangeError('The value "'+Jr+'" is invalid for option "size"')}function _t(Jr,Or,Ur){return St(Jr),Jr<=0?ft(Jr):Or!==void 0?typeof Ur=="string"?ft(Jr).fill(Or,Ur):ft(Jr).fill(Or):ft(Jr)}at.alloc=function(Jr,Or,Ur){return _t(Jr,Or,Ur)};function Mt(Jr){return St(Jr),ft(Jr<0?0:At(Jr)|0)}at.allocUnsafe=function(Jr){return Mt(Jr)},at.allocUnsafeSlow=function(Jr){return Mt(Jr)};function Tt(Jr,Or){if((typeof Or!="string"||Or==="")&&(Or="utf8"),!at.isEncoding(Or))throw new TypeError("Unknown encoding: "+Or);var Ur=Pt(Jr,Or)|0,jr=ft(Ur),Gr=jr.write(Jr,Or);return Gr!==Ur&&(jr=jr.slice(0,Gr)),jr}function kt(Jr){for(var Or=Jr.length<0?0:At(Jr.length)|0,Ur=ft(Or),jr=0;jr=dt)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+dt.toString(16)+" bytes");return Jr|0}function Ot(Jr){return+Jr!=Jr&&(Jr=0),at.alloc(+Jr)}at.isBuffer=function(Or){return Or!=null&&Or._isBuffer===!0&&Or!==at.prototype},at.compare=function(Or,Ur){if(Xr(Or,Uint8Array)&&(Or=at.from(Or,Or.offset,Or.byteLength)),Xr(Ur,Uint8Array)&&(Ur=at.from(Ur,Ur.offset,Ur.byteLength)),!at.isBuffer(Or)||!at.isBuffer(Ur))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Or===Ur)return 0;for(var jr=Or.length,Gr=Ur.length,wr=0,vr=Math.min(jr,Gr);wrGr.length?(at.isBuffer(vr)||(vr=at.from(vr)),vr.copy(Gr,wr)):Uint8Array.prototype.set.call(Gr,vr,wr);else if(at.isBuffer(vr))vr.copy(Gr,wr);else throw new TypeError('"list" argument must be an Array of Buffers');wr+=vr.length}return Gr};function Pt(Jr,Or){if(at.isBuffer(Jr))return Jr.length;if(ArrayBuffer.isView(Jr)||Xr(Jr,ArrayBuffer))return Jr.byteLength;if(typeof Jr!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+st(Jr));var Ur=Jr.length,jr=arguments.length>2&&arguments[2]===!0;if(!jr&&Ur===0)return 0;for(var Gr=!1;;)switch(Or){case"ascii":case"latin1":case"binary":return Ur;case"utf8":case"utf-8":return Nr(Jr).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ur*2;case"hex":return Ur>>>1;case"base64":return un(Jr).length;default:if(Gr)return jr?-1:Nr(Jr).length;Or=(""+Or).toLowerCase(),Gr=!0}}at.byteLength=Pt;function zt(Jr,Or,Ur){var jr=!1;if((Or===void 0||Or<0)&&(Or=0),Or>this.length||((Ur===void 0||Ur>this.length)&&(Ur=this.length),Ur<=0)||(Ur>>>=0,Or>>>=0,Ur<=Or))return"";for(Jr||(Jr="utf8");;)switch(Jr){case"hex":return ar(this,Or,Ur);case"utf8":case"utf-8":return lr(this,Or,Ur);case"ascii":return rr(this,Or,Ur);case"latin1":case"binary":return jt(this,Or,Ur);case"base64":return er(this,Or,Ur);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return sr(this,Or,Ur);default:if(jr)throw new TypeError("Unknown encoding: "+Jr);Jr=(Jr+"").toLowerCase(),jr=!0}}at.prototype._isBuffer=!0;function Dt(Jr,Or,Ur){var jr=Jr[Or];Jr[Or]=Jr[Ur],Jr[Ur]=jr}at.prototype.swap16=function(){var Or=this.length;if(Or%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Ur=0;UrUr&&(Or+=" ... "),""},vt&&(at.prototype[vt]=at.prototype.inspect),at.prototype.compare=function(Or,Ur,jr,Gr,wr){if(Xr(Or,Uint8Array)&&(Or=at.from(Or,Or.offset,Or.byteLength)),!at.isBuffer(Or))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+st(Or));if(Ur===void 0&&(Ur=0),jr===void 0&&(jr=Or?Or.length:0),Gr===void 0&&(Gr=0),wr===void 0&&(wr=this.length),Ur<0||jr>Or.length||Gr<0||wr>this.length)throw new RangeError("out of range index");if(Gr>=wr&&Ur>=jr)return 0;if(Gr>=wr)return-1;if(Ur>=jr)return 1;if(Ur>>>=0,jr>>>=0,Gr>>>=0,wr>>>=0,this===Or)return 0;for(var vr=wr-Gr,Dr=jr-Ur,Sr=Math.min(vr,Dr),ur=this.slice(Gr,wr),xr=Or.slice(Ur,jr),Pr=0;Pr2147483647?Ur=2147483647:Ur<-2147483648&&(Ur=-2147483648),Ur=+Ur,ln(Ur)&&(Ur=Gr?0:Jr.length-1),Ur<0&&(Ur=Jr.length+Ur),Ur>=Jr.length){if(Gr)return-1;Ur=Jr.length-1}else if(Ur<0)if(Gr)Ur=0;else return-1;if(typeof Or=="string"&&(Or=at.from(Or,jr)),at.isBuffer(Or))return Or.length===0?-1:$t(Jr,Or,Ur,jr,Gr);if(typeof Or=="number")return Or=Or&255,typeof Uint8Array.prototype.indexOf=="function"?Gr?Uint8Array.prototype.indexOf.call(Jr,Or,Ur):Uint8Array.prototype.lastIndexOf.call(Jr,Or,Ur):$t(Jr,[Or],Ur,jr,Gr);throw new TypeError("val must be string, number or Buffer")}function $t(Jr,Or,Ur,jr,Gr){var wr=1,vr=Jr.length,Dr=Or.length;if(jr!==void 0&&(jr=String(jr).toLowerCase(),jr==="ucs2"||jr==="ucs-2"||jr==="utf16le"||jr==="utf-16le")){if(Jr.length<2||Or.length<2)return-1;wr=2,vr/=2,Dr/=2,Ur/=2}function Sr(en,rn){return wr===1?en[rn]:en.readUInt16BE(rn*wr)}var ur;if(Gr){var xr=-1;for(ur=Ur;urvr&&(Ur=vr-Dr),ur=Ur;ur>=0;ur--){for(var Pr=!0,Vr=0;VrGr&&(jr=Gr)):jr=Gr;var wr=Or.length;jr>wr/2&&(jr=wr/2);var vr;for(vr=0;vr>>0,isFinite(jr)?(jr=jr>>>0,Gr===void 0&&(Gr="utf8")):(Gr=jr,jr=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var wr=this.length-Ur;if((jr===void 0||jr>wr)&&(jr=wr),Or.length>0&&(jr<0||Ur<0)||Ur>this.length)throw new RangeError("Attempt to write outside buffer bounds");Gr||(Gr="utf8");for(var vr=!1;;)switch(Gr){case"hex":return Ut(this,Or,Ur,jr);case"utf8":case"utf-8":return Ht(this,Or,Ur,jr);case"ascii":case"latin1":case"binary":return Vt(this,Or,Ur,jr);case"base64":return Xt(this,Or,Ur,jr);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return qt(this,Or,Ur,jr);default:if(vr)throw new TypeError("Unknown encoding: "+Gr);Gr=(""+Gr).toLowerCase(),vr=!0}},at.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function er(Jr,Or,Ur){return Or===0&&Ur===Jr.length?ot.fromByteArray(Jr):ot.fromByteArray(Jr.slice(Or,Ur))}function lr(Jr,Or,Ur){Ur=Math.min(Jr.length,Ur);for(var jr=[],Gr=Or;Gr239?4:wr>223?3:wr>191?2:1;if(Gr+Dr<=Ur){var Sr=void 0,ur=void 0,xr=void 0,Pr=void 0;switch(Dr){case 1:wr<128&&(vr=wr);break;case 2:Sr=Jr[Gr+1],(Sr&192)===128&&(Pr=(wr&31)<<6|Sr&63,Pr>127&&(vr=Pr));break;case 3:Sr=Jr[Gr+1],ur=Jr[Gr+2],(Sr&192)===128&&(ur&192)===128&&(Pr=(wr&15)<<12|(Sr&63)<<6|ur&63,Pr>2047&&(Pr<55296||Pr>57343)&&(vr=Pr));break;case 4:Sr=Jr[Gr+1],ur=Jr[Gr+2],xr=Jr[Gr+3],(Sr&192)===128&&(ur&192)===128&&(xr&192)===128&&(Pr=(wr&15)<<18|(Sr&63)<<12|(ur&63)<<6|xr&63,Pr>65535&&Pr<1114112&&(vr=Pr))}}vr===null?(vr=65533,Dr=1):vr>65535&&(vr-=65536,jr.push(vr>>>10&1023|55296),vr=56320|vr&1023),jr.push(vr),Gr+=Dr}return Yt(jr)}var Jt=4096;function Yt(Jr){var Or=Jr.length;if(Or<=Jt)return String.fromCharCode.apply(String,Jr);for(var Ur="",jr=0;jrjr)&&(Ur=jr);for(var Gr="",wr=Or;wrjr&&(Or=jr),Ur<0?(Ur+=jr,Ur<0&&(Ur=0)):Ur>jr&&(Ur=jr),UrUr)throw new RangeError("Trying to access beyond buffer length")}at.prototype.readUintLE=at.prototype.readUIntLE=function(Or,Ur,jr){Or=Or>>>0,Ur=Ur>>>0,jr||Zt(Or,Ur,this.length);for(var Gr=this[Or],wr=1,vr=0;++vr>>0,Ur=Ur>>>0,jr||Zt(Or,Ur,this.length);for(var Gr=this[Or+--Ur],wr=1;Ur>0&&(wr*=256);)Gr+=this[Or+--Ur]*wr;return Gr},at.prototype.readUint8=at.prototype.readUInt8=function(Or,Ur){return Or=Or>>>0,Ur||Zt(Or,1,this.length),this[Or]},at.prototype.readUint16LE=at.prototype.readUInt16LE=function(Or,Ur){return Or=Or>>>0,Ur||Zt(Or,2,this.length),this[Or]|this[Or+1]<<8},at.prototype.readUint16BE=at.prototype.readUInt16BE=function(Or,Ur){return Or=Or>>>0,Ur||Zt(Or,2,this.length),this[Or]<<8|this[Or+1]},at.prototype.readUint32LE=at.prototype.readUInt32LE=function(Or,Ur){return Or=Or>>>0,Ur||Zt(Or,4,this.length),(this[Or]|this[Or+1]<<8|this[Or+2]<<16)+this[Or+3]*16777216},at.prototype.readUint32BE=at.prototype.readUInt32BE=function(Or,Ur){return Or=Or>>>0,Ur||Zt(Or,4,this.length),this[Or]*16777216+(this[Or+1]<<16|this[Or+2]<<8|this[Or+3])},at.prototype.readBigUInt64LE=pn(function(Or){Or=Or>>>0,Rr(Or,"offset");var Ur=this[Or],jr=this[Or+7];(Ur===void 0||jr===void 0)&&zr(Or,this.length-8);var Gr=Ur+this[++Or]*Math.pow(2,8)+this[++Or]*Math.pow(2,16)+this[++Or]*Math.pow(2,24),wr=this[++Or]+this[++Or]*Math.pow(2,8)+this[++Or]*Math.pow(2,16)+jr*Math.pow(2,24);return BigInt(Gr)+(BigInt(wr)<>>0,Rr(Or,"offset");var Ur=this[Or],jr=this[Or+7];(Ur===void 0||jr===void 0)&&zr(Or,this.length-8);var Gr=Ur*Math.pow(2,24)+this[++Or]*Math.pow(2,16)+this[++Or]*Math.pow(2,8)+this[++Or],wr=this[++Or]*Math.pow(2,24)+this[++Or]*Math.pow(2,16)+this[++Or]*Math.pow(2,8)+jr;return(BigInt(Gr)<>>0,Ur=Ur>>>0,jr||Zt(Or,Ur,this.length);for(var Gr=this[Or],wr=1,vr=0;++vr=wr&&(Gr-=Math.pow(2,8*Ur)),Gr},at.prototype.readIntBE=function(Or,Ur,jr){Or=Or>>>0,Ur=Ur>>>0,jr||Zt(Or,Ur,this.length);for(var Gr=Ur,wr=1,vr=this[Or+--Gr];Gr>0&&(wr*=256);)vr+=this[Or+--Gr]*wr;return wr*=128,vr>=wr&&(vr-=Math.pow(2,8*Ur)),vr},at.prototype.readInt8=function(Or,Ur){return Or=Or>>>0,Ur||Zt(Or,1,this.length),this[Or]&128?(255-this[Or]+1)*-1:this[Or]},at.prototype.readInt16LE=function(Or,Ur){Or=Or>>>0,Ur||Zt(Or,2,this.length);var jr=this[Or]|this[Or+1]<<8;return jr&32768?jr|4294901760:jr},at.prototype.readInt16BE=function(Or,Ur){Or=Or>>>0,Ur||Zt(Or,2,this.length);var jr=this[Or+1]|this[Or]<<8;return jr&32768?jr|4294901760:jr},at.prototype.readInt32LE=function(Or,Ur){return Or=Or>>>0,Ur||Zt(Or,4,this.length),this[Or]|this[Or+1]<<8|this[Or+2]<<16|this[Or+3]<<24},at.prototype.readInt32BE=function(Or,Ur){return Or=Or>>>0,Ur||Zt(Or,4,this.length),this[Or]<<24|this[Or+1]<<16|this[Or+2]<<8|this[Or+3]},at.prototype.readBigInt64LE=pn(function(Or){Or=Or>>>0,Rr(Or,"offset");var Ur=this[Or],jr=this[Or+7];(Ur===void 0||jr===void 0)&&zr(Or,this.length-8);var Gr=this[Or+4]+this[Or+5]*Math.pow(2,8)+this[Or+6]*Math.pow(2,16)+(jr<<24);return(BigInt(Gr)<>>0,Rr(Or,"offset");var Ur=this[Or],jr=this[Or+7];(Ur===void 0||jr===void 0)&&zr(Or,this.length-8);var Gr=(Ur<<24)+this[++Or]*Math.pow(2,16)+this[++Or]*Math.pow(2,8)+this[++Or];return(BigInt(Gr)<>>0,Ur||Zt(Or,4,this.length),nt.read(this,Or,!0,23,4)},at.prototype.readFloatBE=function(Or,Ur){return Or=Or>>>0,Ur||Zt(Or,4,this.length),nt.read(this,Or,!1,23,4)},at.prototype.readDoubleLE=function(Or,Ur){return Or=Or>>>0,Ur||Zt(Or,8,this.length),nt.read(this,Or,!0,52,8)},at.prototype.readDoubleBE=function(Or,Ur){return Or=Or>>>0,Ur||Zt(Or,8,this.length),nt.read(this,Or,!1,52,8)};function Kt(Jr,Or,Ur,jr,Gr,wr){if(!at.isBuffer(Jr))throw new TypeError('"buffer" argument must be a Buffer instance');if(Or>Gr||OrJr.length)throw new RangeError("Index out of range")}at.prototype.writeUintLE=at.prototype.writeUIntLE=function(Or,Ur,jr,Gr){if(Or=+Or,Ur=Ur>>>0,jr=jr>>>0,!Gr){var wr=Math.pow(2,8*jr)-1;Kt(this,Or,Ur,jr,wr,0)}var vr=1,Dr=0;for(this[Ur]=Or&255;++Dr>>0,jr=jr>>>0,!Gr){var wr=Math.pow(2,8*jr)-1;Kt(this,Or,Ur,jr,wr,0)}var vr=jr-1,Dr=1;for(this[Ur+vr]=Or&255;--vr>=0&&(Dr*=256);)this[Ur+vr]=Or/Dr&255;return Ur+jr},at.prototype.writeUint8=at.prototype.writeUInt8=function(Or,Ur,jr){return Or=+Or,Ur=Ur>>>0,jr||Kt(this,Or,Ur,1,255,0),this[Ur]=Or&255,Ur+1},at.prototype.writeUint16LE=at.prototype.writeUInt16LE=function(Or,Ur,jr){return Or=+Or,Ur=Ur>>>0,jr||Kt(this,Or,Ur,2,65535,0),this[Ur]=Or&255,this[Ur+1]=Or>>>8,Ur+2},at.prototype.writeUint16BE=at.prototype.writeUInt16BE=function(Or,Ur,jr){return Or=+Or,Ur=Ur>>>0,jr||Kt(this,Or,Ur,2,65535,0),this[Ur]=Or>>>8,this[Ur+1]=Or&255,Ur+2},at.prototype.writeUint32LE=at.prototype.writeUInt32LE=function(Or,Ur,jr){return Or=+Or,Ur=Ur>>>0,jr||Kt(this,Or,Ur,4,4294967295,0),this[Ur+3]=Or>>>24,this[Ur+2]=Or>>>16,this[Ur+1]=Or>>>8,this[Ur]=Or&255,Ur+4},at.prototype.writeUint32BE=at.prototype.writeUInt32BE=function(Or,Ur,jr){return Or=+Or,Ur=Ur>>>0,jr||Kt(this,Or,Ur,4,4294967295,0),this[Ur]=Or>>>24,this[Ur+1]=Or>>>16,this[Ur+2]=Or>>>8,this[Ur+3]=Or&255,Ur+4};function or(Jr,Or,Ur,jr,Gr){Er(Or,jr,Gr,Jr,Ur,7);var wr=Number(Or&BigInt(4294967295));Jr[Ur++]=wr,wr=wr>>8,Jr[Ur++]=wr,wr=wr>>8,Jr[Ur++]=wr,wr=wr>>8,Jr[Ur++]=wr;var vr=Number(Or>>BigInt(32)&BigInt(4294967295));return Jr[Ur++]=vr,vr=vr>>8,Jr[Ur++]=vr,vr=vr>>8,Jr[Ur++]=vr,vr=vr>>8,Jr[Ur++]=vr,Ur}function tr(Jr,Or,Ur,jr,Gr){Er(Or,jr,Gr,Jr,Ur,7);var wr=Number(Or&BigInt(4294967295));Jr[Ur+7]=wr,wr=wr>>8,Jr[Ur+6]=wr,wr=wr>>8,Jr[Ur+5]=wr,wr=wr>>8,Jr[Ur+4]=wr;var vr=Number(Or>>BigInt(32)&BigInt(4294967295));return Jr[Ur+3]=vr,vr=vr>>8,Jr[Ur+2]=vr,vr=vr>>8,Jr[Ur+1]=vr,vr=vr>>8,Jr[Ur]=vr,Ur+8}at.prototype.writeBigUInt64LE=pn(function(Or){var Ur=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return or(this,Or,Ur,BigInt(0),BigInt("0xffffffffffffffff"))}),at.prototype.writeBigUInt64BE=pn(function(Or){var Ur=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return tr(this,Or,Ur,BigInt(0),BigInt("0xffffffffffffffff"))}),at.prototype.writeIntLE=function(Or,Ur,jr,Gr){if(Or=+Or,Ur=Ur>>>0,!Gr){var wr=Math.pow(2,8*jr-1);Kt(this,Or,Ur,jr,wr-1,-wr)}var vr=0,Dr=1,Sr=0;for(this[Ur]=Or&255;++vr>0)-Sr&255;return Ur+jr},at.prototype.writeIntBE=function(Or,Ur,jr,Gr){if(Or=+Or,Ur=Ur>>>0,!Gr){var wr=Math.pow(2,8*jr-1);Kt(this,Or,Ur,jr,wr-1,-wr)}var vr=jr-1,Dr=1,Sr=0;for(this[Ur+vr]=Or&255;--vr>=0&&(Dr*=256);)Or<0&&Sr===0&&this[Ur+vr+1]!==0&&(Sr=1),this[Ur+vr]=(Or/Dr>>0)-Sr&255;return Ur+jr},at.prototype.writeInt8=function(Or,Ur,jr){return Or=+Or,Ur=Ur>>>0,jr||Kt(this,Or,Ur,1,127,-128),Or<0&&(Or=255+Or+1),this[Ur]=Or&255,Ur+1},at.prototype.writeInt16LE=function(Or,Ur,jr){return Or=+Or,Ur=Ur>>>0,jr||Kt(this,Or,Ur,2,32767,-32768),this[Ur]=Or&255,this[Ur+1]=Or>>>8,Ur+2},at.prototype.writeInt16BE=function(Or,Ur,jr){return Or=+Or,Ur=Ur>>>0,jr||Kt(this,Or,Ur,2,32767,-32768),this[Ur]=Or>>>8,this[Ur+1]=Or&255,Ur+2},at.prototype.writeInt32LE=function(Or,Ur,jr){return Or=+Or,Ur=Ur>>>0,jr||Kt(this,Or,Ur,4,2147483647,-2147483648),this[Ur]=Or&255,this[Ur+1]=Or>>>8,this[Ur+2]=Or>>>16,this[Ur+3]=Or>>>24,Ur+4},at.prototype.writeInt32BE=function(Or,Ur,jr){return Or=+Or,Ur=Ur>>>0,jr||Kt(this,Or,Ur,4,2147483647,-2147483648),Or<0&&(Or=4294967295+Or+1),this[Ur]=Or>>>24,this[Ur+1]=Or>>>16,this[Ur+2]=Or>>>8,this[Ur+3]=Or&255,Ur+4},at.prototype.writeBigInt64LE=pn(function(Or){var Ur=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return or(this,Or,Ur,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),at.prototype.writeBigInt64BE=pn(function(Or){var Ur=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return tr(this,Or,Ur,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function cr(Jr,Or,Ur,jr,Gr,wr){if(Ur+jr>Jr.length)throw new RangeError("Index out of range");if(Ur<0)throw new RangeError("Index out of range")}function hr(Jr,Or,Ur,jr,Gr){return Or=+Or,Ur=Ur>>>0,Gr||cr(Jr,Or,Ur,4),nt.write(Jr,Or,Ur,jr,23,4),Ur+4}at.prototype.writeFloatLE=function(Or,Ur,jr){return hr(this,Or,Ur,!0,jr)},at.prototype.writeFloatBE=function(Or,Ur,jr){return hr(this,Or,Ur,!1,jr)};function br(Jr,Or,Ur,jr,Gr){return Or=+Or,Ur=Ur>>>0,Gr||cr(Jr,Or,Ur,8),nt.write(Jr,Or,Ur,jr,52,8),Ur+8}at.prototype.writeDoubleLE=function(Or,Ur,jr){return br(this,Or,Ur,!0,jr)},at.prototype.writeDoubleBE=function(Or,Ur,jr){return br(this,Or,Ur,!1,jr)},at.prototype.copy=function(Or,Ur,jr,Gr){if(!at.isBuffer(Or))throw new TypeError("argument should be a Buffer");if(jr||(jr=0),!Gr&&Gr!==0&&(Gr=this.length),Ur>=Or.length&&(Ur=Or.length),Ur||(Ur=0),Gr>0&&Gr=this.length)throw new RangeError("Index out of range");if(Gr<0)throw new RangeError("sourceEnd out of bounds");Gr>this.length&&(Gr=this.length),Or.length-Ur>>0,jr=jr===void 0?this.length:jr>>>0,Or||(Or=0);var vr;if(typeof Or=="number")for(vr=Ur;vrMath.pow(2,32)?Gr=Ar(String(Ur)):typeof Ur=="bigint"&&(Gr=String(Ur),(Ur>Math.pow(BigInt(2),BigInt(32))||Ur<-Math.pow(BigInt(2),BigInt(32)))&&(Gr=Ar(Gr)),Gr+="n"),jr+=" It must be ".concat(Or,". Received ").concat(Gr),jr},RangeError);function Ar(Jr){for(var Or="",Ur=Jr.length,jr=Jr[0]==="-"?1:0;Ur>=jr+4;Ur-=3)Or="_".concat(Jr.slice(Ur-3,Ur)).concat(Or);return"".concat(Jr.slice(0,Ur)).concat(Or)}function _r(Jr,Or,Ur){Rr(Or,"offset"),(Jr[Or]===void 0||Jr[Or+Ur]===void 0)&&zr(Or,Jr.length-(Ur+1))}function Er(Jr,Or,Ur,jr,Gr,wr){if(Jr>Ur||Jr3?Or===0||Or===BigInt(0)?Dr=">= 0".concat(vr," and < 2").concat(vr," ** ").concat((wr+1)*8).concat(vr):Dr=">= -(2".concat(vr," ** ").concat((wr+1)*8-1).concat(vr,") and < 2 ** ")+"".concat((wr+1)*8-1).concat(vr):Dr=">= ".concat(Or).concat(vr," and <= ").concat(Ur).concat(vr),new Tr.ERR_OUT_OF_RANGE("value",Dr,Jr)}_r(jr,Gr,wr)}function Rr(Jr,Or){if(typeof Jr!="number")throw new Tr.ERR_INVALID_ARG_TYPE(Or,"number",Jr)}function zr(Jr,Or,Ur){throw Math.floor(Jr)!==Jr?(Rr(Jr,Ur),new Tr.ERR_OUT_OF_RANGE(Ur||"offset","an integer",Jr)):Or<0?new Tr.ERR_BUFFER_OUT_OF_BOUNDS:new Tr.ERR_OUT_OF_RANGE(Ur||"offset",">= ".concat(Ur?1:0," and <= ").concat(Or),Jr)}var Br=/[^+/0-9A-Za-z-_]/g;function kr(Jr){if(Jr=Jr.split("=")[0],Jr=Jr.trim().replace(Br,""),Jr.length<2)return"";for(;Jr.length%4!==0;)Jr=Jr+"=";return Jr}function Nr(Jr,Or){Or=Or||1/0;for(var Ur,jr=Jr.length,Gr=null,wr=[],vr=0;vr55295&&Ur<57344){if(!Gr){if(Ur>56319){(Or-=3)>-1&&wr.push(239,191,189);continue}else if(vr+1===jr){(Or-=3)>-1&&wr.push(239,191,189);continue}Gr=Ur;continue}if(Ur<56320){(Or-=3)>-1&&wr.push(239,191,189),Gr=Ur;continue}Ur=(Gr-55296<<10|Ur-56320)+65536}else Gr&&(Or-=3)>-1&&wr.push(239,191,189);if(Gr=null,Ur<128){if((Or-=1)<0)break;wr.push(Ur)}else if(Ur<2048){if((Or-=2)<0)break;wr.push(Ur>>6|192,Ur&63|128)}else if(Ur<65536){if((Or-=3)<0)break;wr.push(Ur>>12|224,Ur>>6&63|128,Ur&63|128)}else if(Ur<1114112){if((Or-=4)<0)break;wr.push(Ur>>18|240,Ur>>12&63|128,Ur>>6&63|128,Ur&63|128)}else throw new Error("Invalid code point")}return wr}function Qr(Jr){for(var Or=[],Ur=0;Ur>8,Gr=Ur%256,wr.push(Gr),wr.push(jr);return wr}function un(Jr){return ot.toByteArray(kr(Jr))}function qr(Jr,Or,Ur,jr){var Gr;for(Gr=0;Gr=Or.length||Gr>=Jr.length);++Gr)Or[Gr+Ur]=Jr[Gr];return Gr}function Xr(Jr,Or){return Jr instanceof Or||Jr!=null&&Jr.constructor!=null&&Jr.constructor.name!=null&&Jr.constructor.name===Or.name}function ln(Jr){return Jr!==Jr}var mn=function(){for(var Jr="0123456789abcdef",Or=new Array(256),Ur=0;Ur<16;++Ur)for(var jr=Ur*16,Gr=0;Gr<16;++Gr)Or[jr+Gr]=Jr[Ur]+Jr[Gr];return Or}();function pn(Jr){return typeof BigInt>"u"?En:Jr}function En(){throw new Error("BigInt not supported")}},25928:function(Ct){Ct.exports=xt,Ct.exports.isMobile=xt,Ct.exports.default=xt;var Rt=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,o=/CrOS/,it=/android|ipad|playbook|silk/i;function xt(et){et||(et={});var Et=et.ua;if(!Et&&typeof navigator<"u"&&(Et=navigator.userAgent),Et&&Et.headers&&typeof Et.headers["user-agent"]=="string"&&(Et=Et.headers["user-agent"]),typeof Et!="string")return!1;var mt=Rt.test(Et)&&!o.test(Et)||!!et.tablet&&it.test(Et);return!mt&&et.tablet&&et.featureDetect&&navigator&&navigator.maxTouchPoints>1&&Et.indexOf("Macintosh")!==-1&&Et.indexOf("Safari")!==-1&&(mt=!0),mt}},48932:function(Ct,Rt,o){o.r(Rt),o.d(Rt,{sankeyCenter:function(){return rt},sankeyCircular:function(){return It},sankeyJustify:function(){return _},sankeyLeft:function(){return ht},sankeyRight:function(){return j}});var it=o(84706),xt=o(34712),et=o(10132),Et=o(6688),mt=o.n(Et);function ut(Tr){return Tr.target.depth}function ht(Tr){return Tr.depth}function j(Tr,Ir){return Ir-1-Tr.height}function _(Tr,Ir){return Tr.sourceLinks.length?Tr.depth:Ir-1}function rt(Tr){return Tr.targetLinks.length?Tr.depth:Tr.sourceLinks.length?(0,it.SY)(Tr.sourceLinks,ut)-1:0}function tt(Tr){return function(){return Tr}}var st=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Tr){return typeof Tr}:function(Tr){return Tr&&typeof Symbol=="function"&&Tr.constructor===Symbol&&Tr!==Symbol.prototype?"symbol":typeof Tr};function ot(Tr,Ir){return vt(Tr.source,Ir.source)||Tr.index-Ir.index}function nt(Tr,Ir){return vt(Tr.target,Ir.target)||Tr.index-Ir.index}function vt(Tr,Ir){return Tr.partOfCycle===Ir.partOfCycle?Tr.y0-Ir.y0:Tr.circularLinkType==="top"||Ir.circularLinkType==="bottom"?-1:1}function dt(Tr){return Tr.value}function bt(Tr){return(Tr.y0+Tr.y1)/2}function ft(Tr){return bt(Tr.source)}function at(Tr){return bt(Tr.target)}function yt(Tr){return Tr.index}function St(Tr){return Tr.nodes}function _t(Tr){return Tr.links}function Mt(Tr,Ir){var Ar=Tr.get(Ir);if(!Ar)throw new Error("missing: "+Ir);return Ar}function Tt(Tr,Ir){return Ir(Tr)}var kt=25,wt=10,ct=.3;function It(){var Tr=0,Ir=0,Ar=1,_r=1,Er=24,Rr,zr=yt,Br=_,kr=St,Nr=_t,Qr=32,sn=2,un,qr=null;function Xr(){var jr={nodes:kr.apply(null,arguments),links:Nr.apply(null,arguments)};ln(jr),At(jr,zr,qr),mn(jr),Jr(jr),Ot(jr,zr),Or(jr,Qr,zr),Ur(jr);for(var Gr=4,wr=0;wr"u"?"undefined":st(Dr))!=="object"&&(Dr=wr.source=Mt(Gr,Dr)),(typeof Sr>"u"?"undefined":st(Sr))!=="object"&&(Sr=wr.target=Mt(Gr,Sr)),Dr.sourceLinks.push(wr),Sr.targetLinks.push(wr)}),jr}function mn(jr){jr.nodes.forEach(function(Gr){Gr.partOfCycle=!1,Gr.value=Math.max((0,it.oh)(Gr.sourceLinks,dt),(0,it.oh)(Gr.targetLinks,dt)),Gr.sourceLinks.forEach(function(wr){wr.circular&&(Gr.partOfCycle=!0,Gr.circularLinkType=wr.circularLinkType)}),Gr.targetLinks.forEach(function(wr){wr.circular&&(Gr.partOfCycle=!0,Gr.circularLinkType=wr.circularLinkType)})})}function pn(jr){var Gr=0,wr=0,vr=0,Dr=0,Sr=(0,it.kv)(jr.nodes,function(ur){return ur.column});return jr.links.forEach(function(ur){ur.circular&&(ur.circularLinkType=="top"?Gr=Gr+ur.width:wr=wr+ur.width,ur.target.column==0&&(Dr=Dr+ur.width),ur.source.column==Sr&&(vr=vr+ur.width))}),Gr=Gr>0?Gr+kt+wt:Gr,wr=wr>0?wr+kt+wt:wr,vr=vr>0?vr+kt+wt:vr,Dr=Dr>0?Dr+kt+wt:Dr,{top:Gr,bottom:wr,left:Dr,right:vr}}function En(jr,Gr){var wr=(0,it.kv)(jr.nodes,function(Vr){return Vr.column}),vr=Ar-Tr,Dr=_r-Ir,Sr=vr+Gr.right+Gr.left,ur=Dr+Gr.top+Gr.bottom,xr=vr/Sr,Pr=Dr/ur;return Tr=Tr*xr+Gr.left,Ar=Gr.right==0?Ar:Ar*xr,Ir=Ir*Pr+Gr.top,_r=_r*Pr,jr.nodes.forEach(function(Vr){Vr.x0=Tr+Vr.column*((Ar-Tr-Er)/wr),Vr.x1=Vr.x0+Er}),Pr}function Jr(jr){var Gr,wr,vr;for(Gr=jr.nodes,wr=[],vr=0;Gr.length;++vr,Gr=wr,wr=[])Gr.forEach(function(Dr){Dr.depth=vr,Dr.sourceLinks.forEach(function(Sr){wr.indexOf(Sr.target)<0&&!Sr.circular&&wr.push(Sr.target)})});for(Gr=jr.nodes,wr=[],vr=0;Gr.length;++vr,Gr=wr,wr=[])Gr.forEach(function(Dr){Dr.height=vr,Dr.targetLinks.forEach(function(Sr){wr.indexOf(Sr.source)<0&&!Sr.circular&&wr.push(Sr.source)})});jr.nodes.forEach(function(Dr){Dr.column=Math.floor(Br.call(null,Dr,vr))})}function Or(jr,Gr,wr){var vr=(0,xt.UJ)().key(function(Vr){return Vr.column}).sortKeys(it.XE).entries(jr.nodes).map(function(Vr){return Vr.values});ur(wr),Pr();for(var Dr=1,Sr=Gr;Sr>0;--Sr)xr(Dr*=.99,wr),Pr();function ur(Vr){if(un){var en=1/0;vr.forEach(function(fn){var bn=_r*un/(fn.length+1);en=bn0))if(fn==0&&xn==1)Un=bn.y1-bn.y0,bn.y0=_r/2-Un/2,bn.y1=_r/2+Un/2;else if(fn==rn-1&&xn==1)Un=bn.y1-bn.y0,bn.y0=_r/2-Un/2,bn.y1=_r/2+Un/2;else{var _i=0,yn=(0,it.mo)(bn.sourceLinks,at),Kn=(0,it.mo)(bn.targetLinks,ft);yn&&Kn?_i=(yn+Kn)/2:_i=yn||Kn;var Jn=(_i-bt(bn))*Vr;bn.y0+=Jn,bn.y1+=Jn}})})}function Pr(){vr.forEach(function(Vr){var en,rn,Cn=Ir,xn=Vr.length,fn;for(Vr.sort(vt),fn=0;fn0&&(en.y0+=rn,en.y1+=rn),Cn=en.y1+Rr;if(rn=Cn-Rr-_r,rn>0)for(Cn=en.y0-=rn,en.y1-=rn,fn=xn-2;fn>=0;--fn)en=Vr[fn],rn=en.y1+Rr-Cn,rn>0&&(en.y0-=rn,en.y1-=rn),Cn=en.y0})}}function Ur(jr){jr.nodes.forEach(function(Gr){Gr.sourceLinks.sort(nt),Gr.targetLinks.sort(ot)}),jr.nodes.forEach(function(Gr){var wr=Gr.y0,vr=wr,Dr=Gr.y1,Sr=Dr;Gr.sourceLinks.forEach(function(ur){ur.circular?(ur.y0=Dr-ur.width/2,Dr=Dr-ur.width):(ur.y0=wr+ur.width/2,wr+=ur.width)}),Gr.targetLinks.forEach(function(ur){ur.circular?(ur.y1=Sr-ur.width/2,Sr=Sr-ur.width):(ur.y1=vr+ur.width/2,vr+=ur.width)})})}return Xr}function At(Tr,Ir,Ar){var _r=0;if(Ar===null){for(var Er=[],Rr=0;RrIr.source.column)}function Dt(Tr,Ir){var Ar=0;Tr.sourceLinks.forEach(function(Er){Ar=Er.circular&&!hr(Er,Ir)?Ar+1:Ar});var _r=0;return Tr.targetLinks.forEach(function(Er){_r=Er.circular&&!hr(Er,Ir)?_r+1:_r}),Ar+_r}function Nt(Tr){var Ir=Tr.source.sourceLinks,Ar=0;Ir.forEach(function(Rr){Ar=Rr.circular?Ar+1:Ar});var _r=Tr.target.targetLinks,Er=0;return _r.forEach(function(Rr){Er=Rr.circular?Er+1:Er}),!(Ar>1||Er>1)}function $t(Tr,Ir,Ar){return Tr.sort(Vt),Tr.forEach(function(_r,Er){var Rr=0;if(hr(_r,Ar)&&Nt(_r))_r.circularPathData.verticalBuffer=Rr+_r.width/2;else{var zr=0;for(zr;zrRr?Br:Rr}_r.circularPathData.verticalBuffer=Rr+_r.width/2}}),Tr}function Ut(Tr,Ir,Ar,_r){var Er=5,Rr=(0,it.SY)(Tr.links,function(kr){return kr.source.y0});Tr.links.forEach(function(kr){kr.circular&&(kr.circularPathData={})});var zr=Tr.links.filter(function(kr){return kr.circularLinkType=="top"});$t(zr,Ir,_r);var Br=Tr.links.filter(function(kr){return kr.circularLinkType=="bottom"});$t(Br,Ir,_r),Tr.links.forEach(function(kr){if(kr.circular){if(kr.circularPathData.arcRadius=kr.width+wt,kr.circularPathData.leftNodeBuffer=Er,kr.circularPathData.rightNodeBuffer=Er,kr.circularPathData.sourceWidth=kr.source.x1-kr.source.x0,kr.circularPathData.sourceX=kr.source.x0+kr.circularPathData.sourceWidth,kr.circularPathData.targetX=kr.target.x0,kr.circularPathData.sourceY=kr.y0,kr.circularPathData.targetY=kr.y1,hr(kr,_r)&&Nt(kr))kr.circularPathData.leftSmallArcRadius=wt+kr.width/2,kr.circularPathData.leftLargeArcRadius=wt+kr.width/2,kr.circularPathData.rightSmallArcRadius=wt+kr.width/2,kr.circularPathData.rightLargeArcRadius=wt+kr.width/2,kr.circularLinkType=="bottom"?(kr.circularPathData.verticalFullExtent=kr.source.y1+kt+kr.circularPathData.verticalBuffer,kr.circularPathData.verticalLeftInnerExtent=kr.circularPathData.verticalFullExtent-kr.circularPathData.leftLargeArcRadius,kr.circularPathData.verticalRightInnerExtent=kr.circularPathData.verticalFullExtent-kr.circularPathData.rightLargeArcRadius):(kr.circularPathData.verticalFullExtent=kr.source.y0-kt-kr.circularPathData.verticalBuffer,kr.circularPathData.verticalLeftInnerExtent=kr.circularPathData.verticalFullExtent+kr.circularPathData.leftLargeArcRadius,kr.circularPathData.verticalRightInnerExtent=kr.circularPathData.verticalFullExtent+kr.circularPathData.rightLargeArcRadius);else{var Nr=kr.source.column,Qr=kr.circularLinkType,sn=Tr.links.filter(function(Xr){return Xr.source.column==Nr&&Xr.circularLinkType==Qr});kr.circularLinkType=="bottom"?sn.sort(qt):sn.sort(Xt);var un=0;sn.forEach(function(Xr,ln){Xr.circularLinkID==kr.circularLinkID&&(kr.circularPathData.leftSmallArcRadius=wt+kr.width/2+un,kr.circularPathData.leftLargeArcRadius=wt+kr.width/2+ln*Ir+un),un=un+Xr.width}),Nr=kr.target.column,sn=Tr.links.filter(function(Xr){return Xr.target.column==Nr&&Xr.circularLinkType==Qr}),kr.circularLinkType=="bottom"?sn.sort(lr):sn.sort(er),un=0,sn.forEach(function(Xr,ln){Xr.circularLinkID==kr.circularLinkID&&(kr.circularPathData.rightSmallArcRadius=wt+kr.width/2+un,kr.circularPathData.rightLargeArcRadius=wt+kr.width/2+ln*Ir+un),un=un+Xr.width}),kr.circularLinkType=="bottom"?(kr.circularPathData.verticalFullExtent=Math.max(Ar,kr.source.y1,kr.target.y1)+kt+kr.circularPathData.verticalBuffer,kr.circularPathData.verticalLeftInnerExtent=kr.circularPathData.verticalFullExtent-kr.circularPathData.leftLargeArcRadius,kr.circularPathData.verticalRightInnerExtent=kr.circularPathData.verticalFullExtent-kr.circularPathData.rightLargeArcRadius):(kr.circularPathData.verticalFullExtent=Rr-kt-kr.circularPathData.verticalBuffer,kr.circularPathData.verticalLeftInnerExtent=kr.circularPathData.verticalFullExtent+kr.circularPathData.leftLargeArcRadius,kr.circularPathData.verticalRightInnerExtent=kr.circularPathData.verticalFullExtent+kr.circularPathData.rightLargeArcRadius)}kr.circularPathData.leftInnerExtent=kr.circularPathData.sourceX+kr.circularPathData.leftNodeBuffer,kr.circularPathData.rightInnerExtent=kr.circularPathData.targetX-kr.circularPathData.rightNodeBuffer,kr.circularPathData.leftFullExtent=kr.circularPathData.sourceX+kr.circularPathData.leftLargeArcRadius+kr.circularPathData.leftNodeBuffer,kr.circularPathData.rightFullExtent=kr.circularPathData.targetX-kr.circularPathData.rightLargeArcRadius-kr.circularPathData.rightNodeBuffer}if(kr.circular)kr.path=Ht(kr);else{var qr=(0,et.ak)().source(function(Xr){var ln=Xr.source.x0+(Xr.source.x1-Xr.source.x0),mn=Xr.y0;return[ln,mn]}).target(function(Xr){var ln=Xr.target.x0,mn=Xr.y1;return[ln,mn]});kr.path=qr(kr)}})}function Ht(Tr){var Ir="";return Tr.circularLinkType=="top"?Ir="M"+Tr.circularPathData.sourceX+" "+Tr.circularPathData.sourceY+" L"+Tr.circularPathData.leftInnerExtent+" "+Tr.circularPathData.sourceY+" A"+Tr.circularPathData.leftLargeArcRadius+" "+Tr.circularPathData.leftSmallArcRadius+" 0 0 0 "+Tr.circularPathData.leftFullExtent+" "+(Tr.circularPathData.sourceY-Tr.circularPathData.leftSmallArcRadius)+" L"+Tr.circularPathData.leftFullExtent+" "+Tr.circularPathData.verticalLeftInnerExtent+" A"+Tr.circularPathData.leftLargeArcRadius+" "+Tr.circularPathData.leftLargeArcRadius+" 0 0 0 "+Tr.circularPathData.leftInnerExtent+" "+Tr.circularPathData.verticalFullExtent+" L"+Tr.circularPathData.rightInnerExtent+" "+Tr.circularPathData.verticalFullExtent+" A"+Tr.circularPathData.rightLargeArcRadius+" "+Tr.circularPathData.rightLargeArcRadius+" 0 0 0 "+Tr.circularPathData.rightFullExtent+" "+Tr.circularPathData.verticalRightInnerExtent+" L"+Tr.circularPathData.rightFullExtent+" "+(Tr.circularPathData.targetY-Tr.circularPathData.rightSmallArcRadius)+" A"+Tr.circularPathData.rightLargeArcRadius+" "+Tr.circularPathData.rightSmallArcRadius+" 0 0 0 "+Tr.circularPathData.rightInnerExtent+" "+Tr.circularPathData.targetY+" L"+Tr.circularPathData.targetX+" "+Tr.circularPathData.targetY:Ir="M"+Tr.circularPathData.sourceX+" "+Tr.circularPathData.sourceY+" L"+Tr.circularPathData.leftInnerExtent+" "+Tr.circularPathData.sourceY+" A"+Tr.circularPathData.leftLargeArcRadius+" "+Tr.circularPathData.leftSmallArcRadius+" 0 0 1 "+Tr.circularPathData.leftFullExtent+" "+(Tr.circularPathData.sourceY+Tr.circularPathData.leftSmallArcRadius)+" L"+Tr.circularPathData.leftFullExtent+" "+Tr.circularPathData.verticalLeftInnerExtent+" A"+Tr.circularPathData.leftLargeArcRadius+" "+Tr.circularPathData.leftLargeArcRadius+" 0 0 1 "+Tr.circularPathData.leftInnerExtent+" "+Tr.circularPathData.verticalFullExtent+" L"+Tr.circularPathData.rightInnerExtent+" "+Tr.circularPathData.verticalFullExtent+" A"+Tr.circularPathData.rightLargeArcRadius+" "+Tr.circularPathData.rightLargeArcRadius+" 0 0 1 "+Tr.circularPathData.rightFullExtent+" "+Tr.circularPathData.verticalRightInnerExtent+" L"+Tr.circularPathData.rightFullExtent+" "+(Tr.circularPathData.targetY+Tr.circularPathData.rightSmallArcRadius)+" A"+Tr.circularPathData.rightLargeArcRadius+" "+Tr.circularPathData.rightSmallArcRadius+" 0 0 1 "+Tr.circularPathData.rightInnerExtent+" "+Tr.circularPathData.targetY+" L"+Tr.circularPathData.targetX+" "+Tr.circularPathData.targetY,Ir}function Vt(Tr,Ir){return Jt(Tr)==Jt(Ir)?Tr.circularLinkType=="bottom"?qt(Tr,Ir):Xt(Tr,Ir):Jt(Ir)-Jt(Tr)}function Xt(Tr,Ir){return Tr.y0-Ir.y0}function qt(Tr,Ir){return Ir.y0-Tr.y0}function er(Tr,Ir){return Tr.y1-Ir.y1}function lr(Tr,Ir){return Ir.y1-Tr.y1}function Jt(Tr){return Tr.target.column-Tr.source.column}function Yt(Tr){return Tr.target.x0-Tr.source.x1}function rr(Tr,Ir){var Ar=Pt(Tr),_r=Yt(Ir)/Math.tan(Ar),Er=cr(Tr)=="up"?Tr.y1+_r:Tr.y1-_r;return Er}function jt(Tr,Ir){var Ar=Pt(Tr),_r=Yt(Ir)/Math.tan(Ar),Er=cr(Tr)=="up"?Tr.y1-_r:Tr.y1+_r;return Er}function ar(Tr,Ir,Ar,_r){Tr.links.forEach(function(Er){if(!Er.circular&&Er.target.column-Er.source.column>1){var Rr=Er.source.column+1,zr=Er.target.column-1,Br=1,kr=zr-Rr+1;for(Br=1;Rr<=zr;Rr++,Br++)Tr.nodes.forEach(function(Nr){if(Nr.column==Rr){var Qr=Br/(kr+1),sn=Math.pow(1-Qr,3),un=3*Qr*Math.pow(1-Qr,2),qr=3*Math.pow(Qr,2)*(1-Qr),Xr=Math.pow(Qr,3),ln=sn*Er.y0+un*Er.y0+qr*Er.y1+Xr*Er.y1,mn=ln-Er.width/2,pn=ln+Er.width/2,En;mn>Nr.y0&&mnNr.y0&&pnNr.y1&&Zt(Jr,En,Ir,Ar)})):mnNr.y1&&(En=pn-Nr.y0+10,Nr=Zt(Nr,En,Ir,Ar),Tr.nodes.forEach(function(Jr){Tt(Jr,_r)==Tt(Nr,_r)||Jr.column!=Nr.column||Jr.y0Nr.y1&&Zt(Jr,En,Ir,Ar)}))}})}})}function sr(Tr,Ir){return Tr.y0>Ir.y0&&Tr.y0Ir.y0&&Tr.y1Ir.y1}function Zt(Tr,Ir,Ar,_r){return Tr.y0+Ir>=Ar&&Tr.y1+Ir<=_r&&(Tr.y0=Tr.y0+Ir,Tr.y1=Tr.y1+Ir,Tr.targetLinks.forEach(function(Er){Er.y1=Er.y1+Ir}),Tr.sourceLinks.forEach(function(Er){Er.y0=Er.y0+Ir})),Tr}function Kt(Tr,Ir,Ar,_r){Tr.nodes.forEach(function(Er){_r&&Er.y+(Er.y1-Er.y0)>Ir&&(Er.y=Er.y-(Er.y+(Er.y1-Er.y0)-Ir));var Rr=Tr.links.filter(function(kr){return Tt(kr.source,Ar)==Tt(Er,Ar)}),zr=Rr.length;zr>1&&Rr.sort(function(kr,Nr){if(!kr.circular&&!Nr.circular){if(kr.target.column==Nr.target.column)return kr.y1-Nr.y1;if(tr(kr,Nr)){if(kr.target.column>Nr.target.column){var Qr=jt(Nr,kr);return kr.y1-Qr}if(Nr.target.column>kr.target.column){var sn=jt(kr,Nr);return sn-Nr.y1}}else return kr.y1-Nr.y1}if(kr.circular&&!Nr.circular)return kr.circularLinkType=="top"?-1:1;if(Nr.circular&&!kr.circular)return Nr.circularLinkType=="top"?1:-1;if(kr.circular&&Nr.circular)return kr.circularLinkType===Nr.circularLinkType&&kr.circularLinkType=="top"?kr.target.column===Nr.target.column?kr.target.y1-Nr.target.y1:Nr.target.column-kr.target.column:kr.circularLinkType===Nr.circularLinkType&&kr.circularLinkType=="bottom"?kr.target.column===Nr.target.column?Nr.target.y1-kr.target.y1:kr.target.column-Nr.target.column:kr.circularLinkType=="top"?-1:1});var Br=Er.y0;Rr.forEach(function(kr){kr.y0=Br+kr.width/2,Br=Br+kr.width}),Rr.forEach(function(kr,Nr){if(kr.circularLinkType=="bottom"){var Qr=Nr+1,sn=0;for(Qr;Qr1&&Er.sort(function(Br,kr){if(!Br.circular&&!kr.circular){if(Br.source.column==kr.source.column)return Br.y0-kr.y0;if(tr(Br,kr)){if(kr.source.column0?"up":"down"}function hr(Tr,Ir){return Tt(Tr.source,Ir)==Tt(Tr.target,Ir)}function br(Tr,Ir,Ar){var _r=Tr.nodes,Er=Tr.links,Rr=!1,zr=!1;if(Er.forEach(function(un){un.circularLinkType=="top"?Rr=!0:un.circularLinkType=="bottom"&&(zr=!0)}),Rr==!1||zr==!1){var Br=(0,it.SY)(_r,function(un){return un.y0}),kr=(0,it.kv)(_r,function(un){return un.y1}),Nr=kr-Br,Qr=Ar-Ir,sn=Qr/Nr;_r.forEach(function(un){var qr=(un.y1-un.y0)*sn;un.y0=(un.y0-Br)*sn,un.y1=un.y0+qr}),Er.forEach(function(un){un.y0=(un.y0-Br)*sn,un.y1=(un.y1-Br)*sn,un.width=un.width*sn})}}},26800:function(Ct,Rt,o){o.r(Rt),o.d(Rt,{sankey:function(){return yt},sankeyCenter:function(){return ht},sankeyJustify:function(){return ut},sankeyLeft:function(){return Et},sankeyLinkHorizontal:function(){return Tt},sankeyRight:function(){return mt}});var it=o(84706),xt=o(34712);function et(kt){return kt.target.depth}function Et(kt){return kt.depth}function mt(kt,wt){return wt-1-kt.height}function ut(kt,wt){return kt.sourceLinks.length?kt.depth:wt-1}function ht(kt){return kt.targetLinks.length?kt.depth:kt.sourceLinks.length?(0,it.SY)(kt.sourceLinks,et)-1:0}function j(kt){return function(){return kt}}function _(kt,wt){return tt(kt.source,wt.source)||kt.index-wt.index}function rt(kt,wt){return tt(kt.target,wt.target)||kt.index-wt.index}function tt(kt,wt){return kt.y0-wt.y0}function st(kt){return kt.value}function ot(kt){return(kt.y0+kt.y1)/2}function nt(kt){return ot(kt.source)*kt.value}function vt(kt){return ot(kt.target)*kt.value}function dt(kt){return kt.index}function bt(kt){return kt.nodes}function ft(kt){return kt.links}function at(kt,wt){var ct=kt.get(wt);if(!ct)throw new Error("missing: "+wt);return ct}function yt(){var kt=0,wt=0,ct=1,It=1,At=24,Ot=8,Pt=dt,zt=ut,Dt=bt,Nt=ft,$t=32,Ut=2/3;function Ht(){var Jt={nodes:Dt.apply(null,arguments),links:Nt.apply(null,arguments)};return Vt(Jt),Xt(Jt),qt(Jt),er(Jt),lr(Jt),Jt}Ht.update=function(Jt){return lr(Jt),Jt},Ht.nodeId=function(Jt){return arguments.length?(Pt=typeof Jt=="function"?Jt:j(Jt),Ht):Pt},Ht.nodeAlign=function(Jt){return arguments.length?(zt=typeof Jt=="function"?Jt:j(Jt),Ht):zt},Ht.nodeWidth=function(Jt){return arguments.length?(At=+Jt,Ht):At},Ht.nodePadding=function(Jt){return arguments.length?(Ot=+Jt,Ht):Ot},Ht.nodes=function(Jt){return arguments.length?(Dt=typeof Jt=="function"?Jt:j(Jt),Ht):Dt},Ht.links=function(Jt){return arguments.length?(Nt=typeof Jt=="function"?Jt:j(Jt),Ht):Nt},Ht.size=function(Jt){return arguments.length?(kt=wt=0,ct=+Jt[0],It=+Jt[1],Ht):[ct-kt,It-wt]},Ht.extent=function(Jt){return arguments.length?(kt=+Jt[0][0],ct=+Jt[1][0],wt=+Jt[0][1],It=+Jt[1][1],Ht):[[kt,wt],[ct,It]]},Ht.iterations=function(Jt){return arguments.length?($t=+Jt,Ht):$t};function Vt(Jt){Jt.nodes.forEach(function(rr,jt){rr.index=jt,rr.sourceLinks=[],rr.targetLinks=[]});var Yt=(0,xt.kH)(Jt.nodes,Pt);Jt.links.forEach(function(rr,jt){rr.index=jt;var ar=rr.source,sr=rr.target;typeof ar!="object"&&(ar=rr.source=at(Yt,ar)),typeof sr!="object"&&(sr=rr.target=at(Yt,sr)),ar.sourceLinks.push(rr),sr.targetLinks.push(rr)})}function Xt(Jt){Jt.nodes.forEach(function(Yt){Yt.value=Math.max((0,it.oh)(Yt.sourceLinks,st),(0,it.oh)(Yt.targetLinks,st))})}function qt(Jt){var Yt,rr,jt;for(Yt=Jt.nodes,rr=[],jt=0;Yt.length;++jt,Yt=rr,rr=[])Yt.forEach(function(sr){sr.depth=jt,sr.sourceLinks.forEach(function(Zt){rr.indexOf(Zt.target)<0&&rr.push(Zt.target)})});for(Yt=Jt.nodes,rr=[],jt=0;Yt.length;++jt,Yt=rr,rr=[])Yt.forEach(function(sr){sr.height=jt,sr.targetLinks.forEach(function(Zt){rr.indexOf(Zt.source)<0&&rr.push(Zt.source)})});var ar=(ct-kt-At)/(jt-1);Jt.nodes.forEach(function(sr){sr.x1=(sr.x0=kt+Math.max(0,Math.min(jt-1,Math.floor(zt.call(null,sr,jt))))*ar)+At})}function er(Jt){var Yt=(0,xt.UJ)().key(function(or){return or.x0}).sortKeys(it.XE).entries(Jt.nodes).map(function(or){return or.values});ar(),Kt();for(var rr=1,jt=$t;jt>0;--jt)Zt(rr*=.99),Kt(),sr(rr),Kt();function ar(){var or=(0,it.kv)(Yt,function(hr){return hr.length}),tr=Ut*(It-wt)/(or-1);Ot>tr&&(Ot=tr);var cr=(0,it.SY)(Yt,function(hr){return(It-wt-(hr.length-1)*Ot)/(0,it.oh)(hr,st)});Yt.forEach(function(hr){hr.forEach(function(br,Tr){br.y1=(br.y0=Tr)+br.value*cr})}),Jt.links.forEach(function(hr){hr.width=hr.value*cr})}function sr(or){Yt.forEach(function(tr){tr.forEach(function(cr){if(cr.targetLinks.length){var hr=((0,it.oh)(cr.targetLinks,nt)/(0,it.oh)(cr.targetLinks,st)-ot(cr))*or;cr.y0+=hr,cr.y1+=hr}})})}function Zt(or){Yt.slice().reverse().forEach(function(tr){tr.forEach(function(cr){if(cr.sourceLinks.length){var hr=((0,it.oh)(cr.sourceLinks,vt)/(0,it.oh)(cr.sourceLinks,st)-ot(cr))*or;cr.y0+=hr,cr.y1+=hr}})})}function Kt(){Yt.forEach(function(or){var tr,cr,hr=wt,br=or.length,Tr;for(or.sort(tt),Tr=0;Tr0&&(tr.y0+=cr,tr.y1+=cr),hr=tr.y1+Ot;if(cr=hr-Ot-It,cr>0)for(hr=tr.y0-=cr,tr.y1-=cr,Tr=br-2;Tr>=0;--Tr)tr=or[Tr],cr=tr.y1+Ot-hr,cr>0&&(tr.y0-=cr,tr.y1-=cr),hr=tr.y0})}}function lr(Jt){Jt.nodes.forEach(function(Yt){Yt.sourceLinks.sort(rt),Yt.targetLinks.sort(_)}),Jt.nodes.forEach(function(Yt){var rr=Yt.y0,jt=rr;Yt.sourceLinks.forEach(function(ar){ar.y0=rr+ar.width/2,rr+=ar.width}),Yt.targetLinks.forEach(function(ar){ar.y1=jt+ar.width/2,jt+=ar.width})})}return Ht}var St=o(10132);function _t(kt){return[kt.source.x1,kt.y0]}function Mt(kt){return[kt.target.x0,kt.y1]}function Tt(){return(0,St.ak)().source(_t).target(Mt)}},33428:function(Ct,Rt,o){var it,xt;(function(){var et={version:"3.8.0"},Et=[].slice,mt=function(dr){return Et.call(dr)},ut=self.document;function ht(dr){return dr&&(dr.ownerDocument||dr.document||dr).documentElement}function j(dr){return dr&&(dr.ownerDocument&&dr.ownerDocument.defaultView||dr.document&&dr||dr.defaultView)}if(ut)try{mt(ut.documentElement.childNodes)[0].nodeType}catch{mt=function(Lr){for(var Hr=Lr.length,nn=new Array(Hr);Hr--;)nn[Hr]=Lr[Hr];return nn}}if(Date.now||(Date.now=function(){return+new Date}),ut)try{ut.createElement("DIV").style.setProperty("opacity",0,"")}catch{var _=this.Element.prototype,rt=_.setAttribute,tt=_.setAttributeNS,st=this.CSSStyleDeclaration.prototype,ot=st.setProperty;_.setAttribute=function(Lr,Hr){rt.call(this,Lr,Hr+"")},_.setAttributeNS=function(Lr,Hr,nn){tt.call(this,Lr,Hr,nn+"")},st.setProperty=function(Lr,Hr,nn){ot.call(this,Lr,Hr+"",nn)}}et.ascending=nt;function nt(dr,Lr){return drLr?1:dr>=Lr?0:NaN}et.descending=function(dr,Lr){return Lrdr?1:Lr>=dr?0:NaN},et.min=function(dr,Lr){var Hr=-1,nn=dr.length,cn,vn;if(arguments.length===1){for(;++Hr=vn){cn=vn;break}for(;++Hrvn&&(cn=vn)}else{for(;++Hr=vn){cn=vn;break}for(;++Hrvn&&(cn=vn)}return cn},et.max=function(dr,Lr){var Hr=-1,nn=dr.length,cn,vn;if(arguments.length===1){for(;++Hr=vn){cn=vn;break}for(;++Hrcn&&(cn=vn)}else{for(;++Hr=vn){cn=vn;break}for(;++Hrcn&&(cn=vn)}return cn},et.extent=function(dr,Lr){var Hr=-1,nn=dr.length,cn,vn,Dn;if(arguments.length===1){for(;++Hr=vn){cn=Dn=vn;break}for(;++Hrvn&&(cn=vn),Dn=vn){cn=Dn=vn;break}for(;++Hrvn&&(cn=vn),Dn1)return Dn/(Yn-1)},et.deviation=function(){var dr=et.variance.apply(this,arguments);return dr&&Math.sqrt(dr)};function bt(dr){return{left:function(Lr,Hr,nn,cn){for(arguments.length<3&&(nn=0),arguments.length<4&&(cn=Lr.length);nn>>1;dr(Lr[vn],Hr)<0?nn=vn+1:cn=vn}return nn},right:function(Lr,Hr,nn,cn){for(arguments.length<3&&(nn=0),arguments.length<4&&(cn=Lr.length);nn>>1;dr(Lr[vn],Hr)>0?cn=vn:nn=vn+1}return nn}}}var ft=bt(nt);et.bisectLeft=ft.left,et.bisect=et.bisectRight=ft.right,et.bisector=function(dr){return bt(dr.length===1?function(Lr,Hr){return nt(dr(Lr),Hr)}:dr)},et.shuffle=function(dr,Lr,Hr){(nn=arguments.length)<3&&(Hr=dr.length,nn<2&&(Lr=0));for(var nn=Hr-Lr,cn,vn;nn;)vn=Math.random()*nn--|0,cn=dr[nn+Lr],dr[nn+Lr]=dr[vn+Lr],dr[vn+Lr]=cn;return dr},et.permute=function(dr,Lr){for(var Hr=Lr.length,nn=new Array(Hr);Hr--;)nn[Hr]=dr[Lr[Hr]];return nn},et.pairs=function(dr){for(var Lr=0,Hr=dr.length-1,nn=dr[0],cn=new Array(Hr<0?0:Hr);Lr=0;)for(Dn=dr[Lr],Hr=Dn.length;--Hr>=0;)vn[--cn]=Dn[Hr];return vn};var yt=Math.abs;et.range=function(dr,Lr,Hr){if(arguments.length<3&&(Hr=1,arguments.length<2&&(Lr=dr,dr=0)),(Lr-dr)/Hr===1/0)throw new Error("infinite range");var nn=[],cn=St(yt(Hr)),vn=-1,Dn;if(dr*=cn,Lr*=cn,Hr*=cn,Hr<0)for(;(Dn=dr+Hr*++vn)>Lr;)nn.push(Dn/cn);else for(;(Dn=dr+Hr*++vn)=Lr.length)return cn?cn.call(dr,Yn):nn?Yn.sort(nn):Yn;for(var to=-1,Co=Yn.length,Ro=Lr[Zn++],ts,ls,ko,Uo=new Mt,qo;++to=Lr.length)return Rn;var Zn=[],to=Hr[Yn++];return Rn.forEach(function(Co,Ro){Zn.push({key:Co,values:Dn(Ro,Yn)})}),to?Zn.sort(function(Co,Ro){return to(Co.key,Ro.key)}):Zn}return dr.map=function(Rn,Yn){return vn(Yn,Rn,0)},dr.entries=function(Rn){return Dn(vn(et.map,Rn,0),0)},dr.key=function(Rn){return Lr.push(Rn),dr},dr.sortKeys=function(Rn){return Hr[Lr.length-1]=Rn,dr},dr.sortValues=function(Rn){return nn=Rn,dr},dr.rollup=function(Rn){return cn=Rn,dr},dr},et.set=function(dr){var Lr=new Dt;if(dr)for(var Hr=0,nn=dr.length;Hr=0&&(nn=dr.slice(Hr+1),dr=dr.slice(0,Hr)),dr)return arguments.length<2?this[dr].on(nn):this[dr].on(nn,Lr);if(arguments.length===2){if(Lr==null)for(dr in this)this.hasOwnProperty(dr)&&this[dr].on(nn,null);return this}};function qt(dr){var Lr=[],Hr=new Mt;function nn(){for(var cn=Lr,vn=-1,Dn=cn.length,Rn;++vn=0&&(Hr=dr.slice(0,Lr))!=="xmlns"&&(dr=dr.slice(Lr+1)),hr.hasOwnProperty(Hr)?{space:hr[Hr],local:dr}:dr}},Kt.attr=function(dr,Lr){if(arguments.length<2){if(typeof dr=="string"){var Hr=this.node();return dr=et.ns.qualify(dr),dr.local?Hr.getAttributeNS(dr.space,dr.local):Hr.getAttribute(dr)}for(Lr in dr)this.each(br(Lr,dr[Lr]));return this}return this.each(br(dr,Lr))};function br(dr,Lr){dr=et.ns.qualify(dr);function Hr(){this.removeAttribute(dr)}function nn(){this.removeAttributeNS(dr.space,dr.local)}function cn(){this.setAttribute(dr,Lr)}function vn(){this.setAttributeNS(dr.space,dr.local,Lr)}function Dn(){var Yn=Lr.apply(this,arguments);Yn==null?this.removeAttribute(dr):this.setAttribute(dr,Yn)}function Rn(){var Yn=Lr.apply(this,arguments);Yn==null?this.removeAttributeNS(dr.space,dr.local):this.setAttributeNS(dr.space,dr.local,Yn)}return Lr==null?dr.local?nn:Hr:typeof Lr=="function"?dr.local?Rn:Dn:dr.local?vn:cn}function Tr(dr){return dr.trim().replace(/\s+/g," ")}Kt.classed=function(dr,Lr){if(arguments.length<2){if(typeof dr=="string"){var Hr=this.node(),nn=(dr=Ar(dr)).length,cn=-1;if(Lr=Hr.classList){for(;++cn=0;)(vn=Hr[nn])&&(cn&&cn!==vn.nextSibling&&cn.parentNode.insertBefore(vn,cn),cn=vn);return this},Kt.sort=function(dr){dr=sn.apply(this,arguments);for(var Lr=-1,Hr=this.length;++Lr=Lr&&(Lr=cn+1);!(Yn=Dn[Lr])&&++Lr0&&(dr=dr.slice(0,cn));var Dn=pn.get(dr);Dn&&(dr=Dn,vn=Jr);function Rn(){var to=this[nn];to&&(this.removeEventListener(dr,to,to.$),delete this[nn])}function Yn(){var to=vn(Lr,mt(arguments));Rn.call(this),this.addEventListener(dr,this[nn]=to,to.$=Hr),to._=Lr}function Zn(){var to=new RegExp("^__on([^.]+)"+et.requote(dr)+"$"),Co;for(var Ro in this)if(Co=Ro.match(to)){var ts=this[Ro];this.removeEventListener(Co[1],ts,ts.$),delete this[Ro]}}return cn?Lr?Yn:Rn:Lr?Vt:Zn}var pn=et.map({mouseenter:"mouseover",mouseleave:"mouseout"});ut&&pn.forEach(function(dr){"on"+dr in ut&&pn.remove(dr)});function En(dr,Lr){return function(Hr){var nn=et.event;et.event=Hr,Lr[0]=this.__data__;try{dr.apply(this,Lr)}finally{et.event=nn}}}function Jr(dr,Lr){var Hr=En(dr,Lr);return function(nn){var cn=this,vn=nn.relatedTarget;(!vn||vn!==cn&&!(vn.compareDocumentPosition(cn)&8))&&Hr.call(cn,nn)}}var Or,Ur=0;function jr(dr){var Lr=".dragsuppress-"+ ++Ur,Hr="click"+Lr,nn=et.select(j(dr)).on("touchmove"+Lr,er).on("dragstart"+Lr,er).on("selectstart"+Lr,er);if(Or==null&&(Or="onselectstart"in dr?!1:Ut(dr.style,"userSelect")),Or){var cn=ht(dr).style,vn=cn[Or];cn[Or]="none"}return function(Dn){if(nn.on(Lr,null),Or&&(cn[Or]=vn),Dn){var Rn=function(){nn.on(Hr,null)};nn.on(Hr,function(){er(),Rn()},!0),setTimeout(Rn,0)}}}et.mouse=function(dr){return wr(dr,lr())};var Gr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function wr(dr,Lr){Lr.changedTouches&&(Lr=Lr.changedTouches[0]);var Hr=dr.ownerSVGElement||dr;if(Hr.createSVGPoint){var nn=Hr.createSVGPoint();if(Gr<0){var cn=j(dr);if(cn.scrollX||cn.scrollY){Hr=et.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var vn=Hr[0][0].getScreenCTM();Gr=!(vn.f||vn.e),Hr.remove()}}return Gr?(nn.x=Lr.pageX,nn.y=Lr.pageY):(nn.x=Lr.clientX,nn.y=Lr.clientY),nn=nn.matrixTransform(dr.getScreenCTM().inverse()),[nn.x,nn.y]}var Dn=dr.getBoundingClientRect();return[Lr.clientX-Dn.left-dr.clientLeft,Lr.clientY-Dn.top-dr.clientTop]}et.touch=function(dr,Lr,Hr){if(arguments.length<3&&(Hr=Lr,Lr=lr().changedTouches),Lr){for(var nn=0,cn=Lr.length,vn;nn1?Vr:dr<-1?-Vr:Math.asin(dr)}function fn(dr){return((dr=Math.exp(dr))-1/dr)/2}function bn(dr){return((dr=Math.exp(dr))+1/dr)/2}function Un(dr){return((dr=Math.exp(2*dr))-1)/(dr+1)}var _i=Math.SQRT2,yn=2,Kn=4;et.interpolateZoom=function(dr,Lr){var Hr=dr[0],nn=dr[1],cn=dr[2],vn=Lr[0],Dn=Lr[1],Rn=Lr[2],Yn=vn-Hr,Zn=Dn-nn,to=Yn*Yn+Zn*Zn,Co,Ro;if(to0&&(Ml=Ml.transition().duration(Dn)),Ml.call(bs.event)}function Hl(){Uo&&Uo.domain(ko.range().map(function(Ml){return(Ml-dr.x)/dr.k}).map(ko.invert)),cs&&cs.domain(qo.range().map(function(Ml){return(Ml-dr.y)/dr.k}).map(qo.invert))}function Vl(Ml){Rn++||Ml({type:"zoomstart"})}function Tu(Ml){Hl(),Ml({type:"zoom",scale:dr.k,translate:[dr.x,dr.y]})}function Ql(Ml){--Rn||(Ml({type:"zoomend"}),Hr=null)}function xu(){var Ml=this,vu=ls.of(Ml,arguments),ru=0,Ou=et.select(j(Ml)).on(Zn,Fp).on(to,Pp),cp=as(et.mouse(Ml)),Uu=jr(Ml);Hn.call(Ml),Vl(vu);function Fp(){ru=1,Gl(et.mouse(Ml),cp),Tu(vu)}function Pp(){Ou.on(Zn,null).on(to,null),Uu(ru),Ql(vu)}}function zu(){var Ml=this,vu=ls.of(Ml,arguments),ru={},Ou=0,cp,Uu=".zoom-"+et.event.changedTouches[0].identifier,Fp="touchmove"+Uu,Pp="touchend"+Uu,Vp=[],lp=et.select(Ml),Wp=jr(Ml);cu(),Vl(vu),lp.on(Yn,null).on(Ro,cu);function Ol(){var jp=et.touches(Ml);return cp=dr.k,jp.forEach(function(Ku){Ku.identifier in ru&&(ru[Ku.identifier]=as(Ku))}),jp}function cu(){var jp=et.event.target;et.select(jp).on(Fp,Lp).on(Pp,Ev),Vp.push(jp);for(var Ku=et.event.changedTouches,Bp=0,Np=Ku.length;Bp1){var yp=n0[0],N1=n0[1],Fu=yp[0]-N1[0],xp=yp[1]-N1[1];Ou=Fu*Fu+xp*xp}}function Lp(){var jp=et.touches(Ml),Ku,Bp,Np,n0;Hn.call(Ml);for(var a0=0,yp=jp.length;a01?1:Lr,Hr=Hr<0?0:Hr>1?1:Hr,cn=Hr<=.5?Hr*(1+Lr):Hr+Lr-Hr*Lr,nn=2*Hr-cn;function vn(Rn){return Rn>360?Rn-=360:Rn<0&&(Rn+=360),Rn<60?nn+(cn-nn)*Rn/60:Rn<180?cn:Rn<240?nn+(cn-nn)*(240-Rn)/60:nn}function Dn(Rn){return Math.round(vn(Rn)*255)}return new io(Dn(dr+120),Dn(dr),Dn(dr-120))}et.hcl=Ln;function Ln(dr,Lr,Hr){return this instanceof Ln?(this.h=+dr,this.c=+Lr,void(this.l=+Hr)):arguments.length<2?dr instanceof Ln?new Ln(dr.h,dr.c,dr.l):dr instanceof Vn?$n(dr.l,dr.a,dr.b):$n((dr=zo((dr=et.rgb(dr)).r,dr.g,dr.b)).l,dr.a,dr.b):new Ln(dr,Lr,Hr)}var Xn=Ln.prototype=new An;Xn.brighter=function(dr){return new Ln(this.h,this.c,Math.min(100,this.l+ga*(arguments.length?dr:1)))},Xn.darker=function(dr){return new Ln(this.h,this.c,Math.max(0,this.l-ga*(arguments.length?dr:1)))},Xn.rgb=function(){return Wn(this.h,this.c,this.l).rgb()};function Wn(dr,Lr,Hr){return isNaN(dr)&&(dr=0),isNaN(Lr)&&(Lr=0),new Vn(Hr,Math.cos(dr*=en)*Lr,Math.sin(dr)*Lr)}et.lab=Vn;function Vn(dr,Lr,Hr){return this instanceof Vn?(this.l=+dr,this.a=+Lr,void(this.b=+Hr)):arguments.length<2?dr instanceof Vn?new Vn(dr.l,dr.a,dr.b):dr instanceof Ln?Wn(dr.h,dr.c,dr.l):zo((dr=io(dr)).r,dr.g,dr.b):new Vn(dr,Lr,Hr)}var ga=18,fo=.95047,qn=1,po=1.08883,Yr=Vn.prototype=new An;Yr.brighter=function(dr){return new Vn(Math.min(100,this.l+ga*(arguments.length?dr:1)),this.a,this.b)},Yr.darker=function(dr){return new Vn(Math.max(0,this.l-ga*(arguments.length?dr:1)),this.a,this.b)},Yr.rgb=function(){return Wr(this.l,this.a,this.b)};function Wr(dr,Lr,Hr){var nn=(dr+16)/116,cn=nn+Lr/500,vn=nn-Hr/200;return cn=Bn(cn)*fo,nn=Bn(nn)*qn,vn=Bn(vn)*po,new io(ro(3.2404542*cn-1.5371385*nn-.4985314*vn),ro(-.969266*cn+1.8760108*nn+.041556*vn),ro(.0556434*cn-.2040259*nn+1.0572252*vn))}function $n(dr,Lr,Hr){return dr>0?new Ln(Math.atan2(Hr,Lr)*rn,Math.sqrt(Lr*Lr+Hr*Hr),dr):new Ln(NaN,NaN,dr)}function Bn(dr){return dr>.206893034?dr*dr*dr:(dr-.13793103448275862)/7.787037}function xa(dr){return dr>.008856?Math.pow(dr,.3333333333333333):7.787037*dr+.13793103448275862}function ro(dr){return Math.round(255*(dr<=.00304?12.92*dr:1.055*Math.pow(dr,.4166666666666667)-.055))}et.rgb=io;function io(dr,Lr,Hr){return this instanceof io?(this.r=~~dr,this.g=~~Lr,void(this.b=~~Hr)):arguments.length<2?dr instanceof io?new io(dr.r,dr.g,dr.b):_o(""+dr,io,In):new io(dr,Lr,Hr)}function eo(dr){return new io(dr>>16,dr>>8&255,dr&255)}function Gn(dr){return eo(dr)+""}var ho=io.prototype=new An;ho.brighter=function(dr){dr=Math.pow(.7,arguments.length?dr:1);var Lr=this.r,Hr=this.g,nn=this.b,cn=30;return!Lr&&!Hr&&!nn?new io(cn,cn,cn):(Lr&&Lr>4,nn=nn>>4|nn,cn=Yn&240,cn=cn>>4|cn,vn=Yn&15,vn=vn<<4|vn):dr.length===7&&(nn=(Yn&16711680)>>16,cn=(Yn&65280)>>8,vn=Yn&255)),Lr(nn,cn,vn))}function co(dr,Lr,Hr){var nn=Math.min(dr/=255,Lr/=255,Hr/=255),cn=Math.max(dr,Lr,Hr),vn=cn-nn,Dn,Rn,Yn=(cn+nn)/2;return vn?(Rn=Yn<.5?vn/(cn+nn):vn/(2-cn-nn),dr==cn?Dn=(Lr-Hr)/vn+(Lr0&&Yn<1?0:Dn),new hn(Dn,Rn,Yn)}function zo(dr,Lr,Hr){dr=Io(dr),Lr=Io(Lr),Hr=Io(Hr);var nn=xa((.4124564*dr+.3575761*Lr+.1804375*Hr)/fo),cn=xa((.2126729*dr+.7151522*Lr+.072175*Hr)/qn),vn=xa((.0193339*dr+.119192*Lr+.9503041*Hr)/po);return Vn(116*cn-16,500*(nn-cn),200*(cn-vn))}function Io(dr){return(dr/=255)<=.04045?dr/12.92:Math.pow((dr+.055)/1.055,2.4)}function Lo(dr){var Lr=parseFloat(dr);return dr.charAt(dr.length-1)==="%"?Math.round(Lr*2.55):Lr}var vs=et.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});vs.forEach(function(dr,Lr){vs.set(dr,eo(Lr))});function Zo(dr){return typeof dr=="function"?dr:function(){return dr}}et.functor=Zo,et.xhr=Ls(Nt);function Ls(dr){return function(Lr,Hr,nn){return arguments.length===2&&typeof Hr=="function"&&(nn=Hr,Hr=null),Ds(Lr,Hr,dr,nn)}}function Ds(dr,Lr,Hr,nn){var cn={},vn=et.dispatch("beforesend","progress","load","error"),Dn={},Rn=new XMLHttpRequest,Yn=null;self.XDomainRequest&&!("withCredentials"in Rn)&&/^(http(s)?:)?\/\//.test(dr)&&(Rn=new XDomainRequest),"onload"in Rn?Rn.onload=Rn.onerror=Zn:Rn.onreadystatechange=function(){Rn.readyState>3&&Zn()};function Zn(){var to=Rn.status,Co;if(!to&&No(Rn)||to>=200&&to<300||to===304){try{Co=Hr.call(cn,Rn)}catch(Ro){vn.error.call(cn,Ro);return}vn.load.call(cn,Co)}else vn.error.call(cn,Rn)}return Rn.onprogress=function(to){var Co=et.event;et.event=to;try{vn.progress.call(cn,Rn)}finally{et.event=Co}},cn.header=function(to,Co){return to=(to+"").toLowerCase(),arguments.length<2?Dn[to]:(Co==null?delete Dn[to]:Dn[to]=Co+"",cn)},cn.mimeType=function(to){return arguments.length?(Lr=to==null?null:to+"",cn):Lr},cn.responseType=function(to){return arguments.length?(Yn=to,cn):Yn},cn.response=function(to){return Hr=to,cn},["get","post"].forEach(function(to){cn[to]=function(){return cn.send.apply(cn,[to].concat(mt(arguments)))}}),cn.send=function(to,Co,Ro){if(arguments.length===2&&typeof Co=="function"&&(Ro=Co,Co=null),Rn.open(to,dr,!0),Lr!=null&&!("accept"in Dn)&&(Dn.accept=Lr+",*/*"),Rn.setRequestHeader)for(var ts in Dn)Rn.setRequestHeader(ts,Dn[ts]);return Lr!=null&&Rn.overrideMimeType&&Rn.overrideMimeType(Lr),Yn!=null&&(Rn.responseType=Yn),Ro!=null&&cn.on("error",Ro).on("load",function(ls){Ro(null,ls)}),vn.beforesend.call(cn,Rn),Rn.send(Co??null),cn},cn.abort=function(){return Rn.abort(),cn},et.rebind(cn,vn,"on"),nn==null?cn:cn.get(bo(nn))}function bo(dr){return dr.length===1?function(Lr,Hr){dr(Lr==null?Hr:null)}:dr}function No(dr){var Lr=dr.responseType;return Lr&&Lr!=="text"?dr.response:dr.responseText}et.dsv=function(dr,Lr){var Hr=new RegExp('["'+dr+` + */function it(Zr,Fr){if(!(Zr instanceof Fr))throw new TypeError("Cannot call a class as a function")}function xt(Zr,Fr){for(var Ur=0;Ur"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{return!1}}return Fr=j(Fr),ht(Zr,Wr()?Reflect.construct(Fr,Ur||[],j(Zr).constructor):Fr.apply(Zr,Ur))}function ht(Zr,Fr){if(Fr&&(st(Fr)==="object"||typeof Fr=="function"))return Fr;if(Fr!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _(Zr)}function j(Zr){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Ur){return Ur.__proto__||Object.getPrototypeOf(Ur)},j(Zr)}function _(Zr){if(Zr===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Zr}function rt(Zr,Fr){if(typeof Fr!="function"&&Fr!==null)throw new TypeError("Super expression must either be null or a function");Zr.prototype=Object.create(Fr&&Fr.prototype,{constructor:{value:Zr,writable:!0,configurable:!0}}),Object.defineProperty(Zr,"prototype",{writable:!1}),Fr&&tt(Zr,Fr)}function tt(Zr,Fr){return tt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Wr,Gr){return Wr.__proto__=Gr,Wr},tt(Zr,Fr)}function st(Zr){return st=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fr){return typeof Fr}:function(Fr){return Fr&&typeof Symbol=="function"&&Fr.constructor===Symbol&&Fr!==Symbol.prototype?"symbol":typeof Fr},st(Zr)}var ot=o(59968),nt=o(35984),vt=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Rt.Buffer=at,Rt.SlowBuffer=Ot,Rt.INSPECT_MAX_BYTES=50;var dt=2147483647;Rt.kMaxLength=dt,at.TYPED_ARRAY_SUPPORT=bt(),!at.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 bt(){try{var Zr=new Uint8Array(1),Fr={foo:function(){return 42}};return Object.setPrototypeOf(Fr,Uint8Array.prototype),Object.setPrototypeOf(Zr,Fr),Zr.foo()===42}catch{return!1}}Object.defineProperty(at.prototype,"parent",{enumerable:!0,get:function(){if(at.isBuffer(this))return this.buffer}}),Object.defineProperty(at.prototype,"offset",{enumerable:!0,get:function(){if(at.isBuffer(this))return this.byteOffset}});function ft(Zr){if(Zr>dt)throw new RangeError('The value "'+Zr+'" is invalid for option "size"');var Fr=new Uint8Array(Zr);return Object.setPrototypeOf(Fr,at.prototype),Fr}function at(Zr,Fr,Ur){if(typeof Zr=="number"){if(typeof Fr=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Mt(Zr)}return mt(Zr,Fr,Ur)}at.poolSize=8192;function mt(Zr,Fr,Ur){if(typeof Zr=="string")return Et(Zr,Fr);if(ArrayBuffer.isView(Zr))return wt(Zr);if(Zr==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+st(Zr));if(Xr(Zr,ArrayBuffer)||Zr&&Xr(Zr.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Xr(Zr,SharedArrayBuffer)||Zr&&Xr(Zr.buffer,SharedArrayBuffer)))return ct(Zr,Fr,Ur);if(typeof Zr=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Wr=Zr.valueOf&&Zr.valueOf();if(Wr!=null&&Wr!==Zr)return at.from(Wr,Fr,Ur);var Gr=It(Zr);if(Gr)return Gr;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Zr[Symbol.toPrimitive]=="function")return at.from(Zr[Symbol.toPrimitive]("string"),Fr,Ur);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+st(Zr))}at.from=function(Zr,Fr,Ur){return mt(Zr,Fr,Ur)},Object.setPrototypeOf(at.prototype,Uint8Array.prototype),Object.setPrototypeOf(at,Uint8Array);function St(Zr){if(typeof Zr!="number")throw new TypeError('"size" argument must be of type number');if(Zr<0)throw new RangeError('The value "'+Zr+'" is invalid for option "size"')}function _t(Zr,Fr,Ur){return St(Zr),Zr<=0?ft(Zr):Fr!==void 0?typeof Ur=="string"?ft(Zr).fill(Fr,Ur):ft(Zr).fill(Fr):ft(Zr)}at.alloc=function(Zr,Fr,Ur){return _t(Zr,Fr,Ur)};function Mt(Zr){return St(Zr),ft(Zr<0?0:At(Zr)|0)}at.allocUnsafe=function(Zr){return Mt(Zr)},at.allocUnsafeSlow=function(Zr){return Mt(Zr)};function Et(Zr,Fr){if((typeof Fr!="string"||Fr==="")&&(Fr="utf8"),!at.isEncoding(Fr))throw new TypeError("Unknown encoding: "+Fr);var Ur=Pt(Zr,Fr)|0,Wr=ft(Ur),Gr=Wr.write(Zr,Fr);return Gr!==Ur&&(Wr=Wr.slice(0,Gr)),Wr}function kt(Zr){for(var Fr=Zr.length<0?0:At(Zr.length)|0,Ur=ft(Fr),Wr=0;Wr=dt)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+dt.toString(16)+" bytes");return Zr|0}function Ot(Zr){return+Zr!=Zr&&(Zr=0),at.alloc(+Zr)}at.isBuffer=function(Fr){return Fr!=null&&Fr._isBuffer===!0&&Fr!==at.prototype},at.compare=function(Fr,Ur){if(Xr(Fr,Uint8Array)&&(Fr=at.from(Fr,Fr.offset,Fr.byteLength)),Xr(Ur,Uint8Array)&&(Ur=at.from(Ur,Ur.offset,Ur.byteLength)),!at.isBuffer(Fr)||!at.isBuffer(Ur))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Fr===Ur)return 0;for(var Wr=Fr.length,Gr=Ur.length,wr=0,pr=Math.min(Wr,Gr);wrGr.length?(at.isBuffer(pr)||(pr=at.from(pr)),pr.copy(Gr,wr)):Uint8Array.prototype.set.call(Gr,pr,wr);else if(at.isBuffer(pr))pr.copy(Gr,wr);else throw new TypeError('"list" argument must be an Array of Buffers');wr+=pr.length}return Gr};function Pt(Zr,Fr){if(at.isBuffer(Zr))return Zr.length;if(ArrayBuffer.isView(Zr)||Xr(Zr,ArrayBuffer))return Zr.byteLength;if(typeof Zr!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+st(Zr));var Ur=Zr.length,Wr=arguments.length>2&&arguments[2]===!0;if(!Wr&&Ur===0)return 0;for(var Gr=!1;;)switch(Fr){case"ascii":case"latin1":case"binary":return Ur;case"utf8":case"utf-8":return Nr(Zr).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ur*2;case"hex":return Ur>>>1;case"base64":return un(Zr).length;default:if(Gr)return Wr?-1:Nr(Zr).length;Fr=(""+Fr).toLowerCase(),Gr=!0}}at.byteLength=Pt;function zt(Zr,Fr,Ur){var Wr=!1;if((Fr===void 0||Fr<0)&&(Fr=0),Fr>this.length||((Ur===void 0||Ur>this.length)&&(Ur=this.length),Ur<=0)||(Ur>>>=0,Fr>>>=0,Ur<=Fr))return"";for(Zr||(Zr="utf8");;)switch(Zr){case"hex":return ar(this,Fr,Ur);case"utf8":case"utf-8":return lr(this,Fr,Ur);case"ascii":return rr(this,Fr,Ur);case"latin1":case"binary":return jt(this,Fr,Ur);case"base64":return er(this,Fr,Ur);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return sr(this,Fr,Ur);default:if(Wr)throw new TypeError("Unknown encoding: "+Zr);Zr=(Zr+"").toLowerCase(),Wr=!0}}at.prototype._isBuffer=!0;function Dt(Zr,Fr,Ur){var Wr=Zr[Fr];Zr[Fr]=Zr[Ur],Zr[Ur]=Wr}at.prototype.swap16=function(){var Fr=this.length;if(Fr%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Ur=0;UrUr&&(Fr+=" ... "),""},vt&&(at.prototype[vt]=at.prototype.inspect),at.prototype.compare=function(Fr,Ur,Wr,Gr,wr){if(Xr(Fr,Uint8Array)&&(Fr=at.from(Fr,Fr.offset,Fr.byteLength)),!at.isBuffer(Fr))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+st(Fr));if(Ur===void 0&&(Ur=0),Wr===void 0&&(Wr=Fr?Fr.length:0),Gr===void 0&&(Gr=0),wr===void 0&&(wr=this.length),Ur<0||Wr>Fr.length||Gr<0||wr>this.length)throw new RangeError("out of range index");if(Gr>=wr&&Ur>=Wr)return 0;if(Gr>=wr)return-1;if(Ur>=Wr)return 1;if(Ur>>>=0,Wr>>>=0,Gr>>>=0,wr>>>=0,this===Fr)return 0;for(var pr=wr-Gr,Dr=Wr-Ur,Sr=Math.min(pr,Dr),ur=this.slice(Gr,wr),xr=Fr.slice(Ur,Wr),Pr=0;Pr2147483647?Ur=2147483647:Ur<-2147483648&&(Ur=-2147483648),Ur=+Ur,ln(Ur)&&(Ur=Gr?0:Zr.length-1),Ur<0&&(Ur=Zr.length+Ur),Ur>=Zr.length){if(Gr)return-1;Ur=Zr.length-1}else if(Ur<0)if(Gr)Ur=0;else return-1;if(typeof Fr=="string"&&(Fr=at.from(Fr,Wr)),at.isBuffer(Fr))return Fr.length===0?-1:$t(Zr,Fr,Ur,Wr,Gr);if(typeof Fr=="number")return Fr=Fr&255,typeof Uint8Array.prototype.indexOf=="function"?Gr?Uint8Array.prototype.indexOf.call(Zr,Fr,Ur):Uint8Array.prototype.lastIndexOf.call(Zr,Fr,Ur):$t(Zr,[Fr],Ur,Wr,Gr);throw new TypeError("val must be string, number or Buffer")}function $t(Zr,Fr,Ur,Wr,Gr){var wr=1,pr=Zr.length,Dr=Fr.length;if(Wr!==void 0&&(Wr=String(Wr).toLowerCase(),Wr==="ucs2"||Wr==="ucs-2"||Wr==="utf16le"||Wr==="utf-16le")){if(Zr.length<2||Fr.length<2)return-1;wr=2,pr/=2,Dr/=2,Ur/=2}function Sr(qr,rn){return wr===1?qr[rn]:qr.readUInt16BE(rn*wr)}var ur;if(Gr){var xr=-1;for(ur=Ur;urpr&&(Ur=pr-Dr),ur=Ur;ur>=0;ur--){for(var Pr=!0,Vr=0;VrGr&&(Wr=Gr)):Wr=Gr;var wr=Fr.length;Wr>wr/2&&(Wr=wr/2);var pr;for(pr=0;pr>>0,isFinite(Wr)?(Wr=Wr>>>0,Gr===void 0&&(Gr="utf8")):(Gr=Wr,Wr=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var wr=this.length-Ur;if((Wr===void 0||Wr>wr)&&(Wr=wr),Fr.length>0&&(Wr<0||Ur<0)||Ur>this.length)throw new RangeError("Attempt to write outside buffer bounds");Gr||(Gr="utf8");for(var pr=!1;;)switch(Gr){case"hex":return Ut(this,Fr,Ur,Wr);case"utf8":case"utf-8":return Ht(this,Fr,Ur,Wr);case"ascii":case"latin1":case"binary":return Vt(this,Fr,Ur,Wr);case"base64":return Xt(this,Fr,Ur,Wr);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return qt(this,Fr,Ur,Wr);default:if(pr)throw new TypeError("Unknown encoding: "+Gr);Gr=(""+Gr).toLowerCase(),pr=!0}},at.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function er(Zr,Fr,Ur){return Fr===0&&Ur===Zr.length?ot.fromByteArray(Zr):ot.fromByteArray(Zr.slice(Fr,Ur))}function lr(Zr,Fr,Ur){Ur=Math.min(Zr.length,Ur);for(var Wr=[],Gr=Fr;Gr239?4:wr>223?3:wr>191?2:1;if(Gr+Dr<=Ur){var Sr=void 0,ur=void 0,xr=void 0,Pr=void 0;switch(Dr){case 1:wr<128&&(pr=wr);break;case 2:Sr=Zr[Gr+1],(Sr&192)===128&&(Pr=(wr&31)<<6|Sr&63,Pr>127&&(pr=Pr));break;case 3:Sr=Zr[Gr+1],ur=Zr[Gr+2],(Sr&192)===128&&(ur&192)===128&&(Pr=(wr&15)<<12|(Sr&63)<<6|ur&63,Pr>2047&&(Pr<55296||Pr>57343)&&(pr=Pr));break;case 4:Sr=Zr[Gr+1],ur=Zr[Gr+2],xr=Zr[Gr+3],(Sr&192)===128&&(ur&192)===128&&(xr&192)===128&&(Pr=(wr&15)<<18|(Sr&63)<<12|(ur&63)<<6|xr&63,Pr>65535&&Pr<1114112&&(pr=Pr))}}pr===null?(pr=65533,Dr=1):pr>65535&&(pr-=65536,Wr.push(pr>>>10&1023|55296),pr=56320|pr&1023),Wr.push(pr),Gr+=Dr}return Yt(Wr)}var Jt=4096;function Yt(Zr){var Fr=Zr.length;if(Fr<=Jt)return String.fromCharCode.apply(String,Zr);for(var Ur="",Wr=0;WrWr)&&(Ur=Wr);for(var Gr="",wr=Fr;wrWr&&(Fr=Wr),Ur<0?(Ur+=Wr,Ur<0&&(Ur=0)):Ur>Wr&&(Ur=Wr),UrUr)throw new RangeError("Trying to access beyond buffer length")}at.prototype.readUintLE=at.prototype.readUIntLE=function(Fr,Ur,Wr){Fr=Fr>>>0,Ur=Ur>>>0,Wr||Zt(Fr,Ur,this.length);for(var Gr=this[Fr],wr=1,pr=0;++pr>>0,Ur=Ur>>>0,Wr||Zt(Fr,Ur,this.length);for(var Gr=this[Fr+--Ur],wr=1;Ur>0&&(wr*=256);)Gr+=this[Fr+--Ur]*wr;return Gr},at.prototype.readUint8=at.prototype.readUInt8=function(Fr,Ur){return Fr=Fr>>>0,Ur||Zt(Fr,1,this.length),this[Fr]},at.prototype.readUint16LE=at.prototype.readUInt16LE=function(Fr,Ur){return Fr=Fr>>>0,Ur||Zt(Fr,2,this.length),this[Fr]|this[Fr+1]<<8},at.prototype.readUint16BE=at.prototype.readUInt16BE=function(Fr,Ur){return Fr=Fr>>>0,Ur||Zt(Fr,2,this.length),this[Fr]<<8|this[Fr+1]},at.prototype.readUint32LE=at.prototype.readUInt32LE=function(Fr,Ur){return Fr=Fr>>>0,Ur||Zt(Fr,4,this.length),(this[Fr]|this[Fr+1]<<8|this[Fr+2]<<16)+this[Fr+3]*16777216},at.prototype.readUint32BE=at.prototype.readUInt32BE=function(Fr,Ur){return Fr=Fr>>>0,Ur||Zt(Fr,4,this.length),this[Fr]*16777216+(this[Fr+1]<<16|this[Fr+2]<<8|this[Fr+3])},at.prototype.readBigUInt64LE=pn(function(Fr){Fr=Fr>>>0,Rr(Fr,"offset");var Ur=this[Fr],Wr=this[Fr+7];(Ur===void 0||Wr===void 0)&&zr(Fr,this.length-8);var Gr=Ur+this[++Fr]*Math.pow(2,8)+this[++Fr]*Math.pow(2,16)+this[++Fr]*Math.pow(2,24),wr=this[++Fr]+this[++Fr]*Math.pow(2,8)+this[++Fr]*Math.pow(2,16)+Wr*Math.pow(2,24);return BigInt(Gr)+(BigInt(wr)<>>0,Rr(Fr,"offset");var Ur=this[Fr],Wr=this[Fr+7];(Ur===void 0||Wr===void 0)&&zr(Fr,this.length-8);var Gr=Ur*Math.pow(2,24)+this[++Fr]*Math.pow(2,16)+this[++Fr]*Math.pow(2,8)+this[++Fr],wr=this[++Fr]*Math.pow(2,24)+this[++Fr]*Math.pow(2,16)+this[++Fr]*Math.pow(2,8)+Wr;return(BigInt(Gr)<>>0,Ur=Ur>>>0,Wr||Zt(Fr,Ur,this.length);for(var Gr=this[Fr],wr=1,pr=0;++pr=wr&&(Gr-=Math.pow(2,8*Ur)),Gr},at.prototype.readIntBE=function(Fr,Ur,Wr){Fr=Fr>>>0,Ur=Ur>>>0,Wr||Zt(Fr,Ur,this.length);for(var Gr=Ur,wr=1,pr=this[Fr+--Gr];Gr>0&&(wr*=256);)pr+=this[Fr+--Gr]*wr;return wr*=128,pr>=wr&&(pr-=Math.pow(2,8*Ur)),pr},at.prototype.readInt8=function(Fr,Ur){return Fr=Fr>>>0,Ur||Zt(Fr,1,this.length),this[Fr]&128?(255-this[Fr]+1)*-1:this[Fr]},at.prototype.readInt16LE=function(Fr,Ur){Fr=Fr>>>0,Ur||Zt(Fr,2,this.length);var Wr=this[Fr]|this[Fr+1]<<8;return Wr&32768?Wr|4294901760:Wr},at.prototype.readInt16BE=function(Fr,Ur){Fr=Fr>>>0,Ur||Zt(Fr,2,this.length);var Wr=this[Fr+1]|this[Fr]<<8;return Wr&32768?Wr|4294901760:Wr},at.prototype.readInt32LE=function(Fr,Ur){return Fr=Fr>>>0,Ur||Zt(Fr,4,this.length),this[Fr]|this[Fr+1]<<8|this[Fr+2]<<16|this[Fr+3]<<24},at.prototype.readInt32BE=function(Fr,Ur){return Fr=Fr>>>0,Ur||Zt(Fr,4,this.length),this[Fr]<<24|this[Fr+1]<<16|this[Fr+2]<<8|this[Fr+3]},at.prototype.readBigInt64LE=pn(function(Fr){Fr=Fr>>>0,Rr(Fr,"offset");var Ur=this[Fr],Wr=this[Fr+7];(Ur===void 0||Wr===void 0)&&zr(Fr,this.length-8);var Gr=this[Fr+4]+this[Fr+5]*Math.pow(2,8)+this[Fr+6]*Math.pow(2,16)+(Wr<<24);return(BigInt(Gr)<>>0,Rr(Fr,"offset");var Ur=this[Fr],Wr=this[Fr+7];(Ur===void 0||Wr===void 0)&&zr(Fr,this.length-8);var Gr=(Ur<<24)+this[++Fr]*Math.pow(2,16)+this[++Fr]*Math.pow(2,8)+this[++Fr];return(BigInt(Gr)<>>0,Ur||Zt(Fr,4,this.length),nt.read(this,Fr,!0,23,4)},at.prototype.readFloatBE=function(Fr,Ur){return Fr=Fr>>>0,Ur||Zt(Fr,4,this.length),nt.read(this,Fr,!1,23,4)},at.prototype.readDoubleLE=function(Fr,Ur){return Fr=Fr>>>0,Ur||Zt(Fr,8,this.length),nt.read(this,Fr,!0,52,8)},at.prototype.readDoubleBE=function(Fr,Ur){return Fr=Fr>>>0,Ur||Zt(Fr,8,this.length),nt.read(this,Fr,!1,52,8)};function Kt(Zr,Fr,Ur,Wr,Gr,wr){if(!at.isBuffer(Zr))throw new TypeError('"buffer" argument must be a Buffer instance');if(Fr>Gr||FrZr.length)throw new RangeError("Index out of range")}at.prototype.writeUintLE=at.prototype.writeUIntLE=function(Fr,Ur,Wr,Gr){if(Fr=+Fr,Ur=Ur>>>0,Wr=Wr>>>0,!Gr){var wr=Math.pow(2,8*Wr)-1;Kt(this,Fr,Ur,Wr,wr,0)}var pr=1,Dr=0;for(this[Ur]=Fr&255;++Dr>>0,Wr=Wr>>>0,!Gr){var wr=Math.pow(2,8*Wr)-1;Kt(this,Fr,Ur,Wr,wr,0)}var pr=Wr-1,Dr=1;for(this[Ur+pr]=Fr&255;--pr>=0&&(Dr*=256);)this[Ur+pr]=Fr/Dr&255;return Ur+Wr},at.prototype.writeUint8=at.prototype.writeUInt8=function(Fr,Ur,Wr){return Fr=+Fr,Ur=Ur>>>0,Wr||Kt(this,Fr,Ur,1,255,0),this[Ur]=Fr&255,Ur+1},at.prototype.writeUint16LE=at.prototype.writeUInt16LE=function(Fr,Ur,Wr){return Fr=+Fr,Ur=Ur>>>0,Wr||Kt(this,Fr,Ur,2,65535,0),this[Ur]=Fr&255,this[Ur+1]=Fr>>>8,Ur+2},at.prototype.writeUint16BE=at.prototype.writeUInt16BE=function(Fr,Ur,Wr){return Fr=+Fr,Ur=Ur>>>0,Wr||Kt(this,Fr,Ur,2,65535,0),this[Ur]=Fr>>>8,this[Ur+1]=Fr&255,Ur+2},at.prototype.writeUint32LE=at.prototype.writeUInt32LE=function(Fr,Ur,Wr){return Fr=+Fr,Ur=Ur>>>0,Wr||Kt(this,Fr,Ur,4,4294967295,0),this[Ur+3]=Fr>>>24,this[Ur+2]=Fr>>>16,this[Ur+1]=Fr>>>8,this[Ur]=Fr&255,Ur+4},at.prototype.writeUint32BE=at.prototype.writeUInt32BE=function(Fr,Ur,Wr){return Fr=+Fr,Ur=Ur>>>0,Wr||Kt(this,Fr,Ur,4,4294967295,0),this[Ur]=Fr>>>24,this[Ur+1]=Fr>>>16,this[Ur+2]=Fr>>>8,this[Ur+3]=Fr&255,Ur+4};function or(Zr,Fr,Ur,Wr,Gr){Er(Fr,Wr,Gr,Zr,Ur,7);var wr=Number(Fr&BigInt(4294967295));Zr[Ur++]=wr,wr=wr>>8,Zr[Ur++]=wr,wr=wr>>8,Zr[Ur++]=wr,wr=wr>>8,Zr[Ur++]=wr;var pr=Number(Fr>>BigInt(32)&BigInt(4294967295));return Zr[Ur++]=pr,pr=pr>>8,Zr[Ur++]=pr,pr=pr>>8,Zr[Ur++]=pr,pr=pr>>8,Zr[Ur++]=pr,Ur}function tr(Zr,Fr,Ur,Wr,Gr){Er(Fr,Wr,Gr,Zr,Ur,7);var wr=Number(Fr&BigInt(4294967295));Zr[Ur+7]=wr,wr=wr>>8,Zr[Ur+6]=wr,wr=wr>>8,Zr[Ur+5]=wr,wr=wr>>8,Zr[Ur+4]=wr;var pr=Number(Fr>>BigInt(32)&BigInt(4294967295));return Zr[Ur+3]=pr,pr=pr>>8,Zr[Ur+2]=pr,pr=pr>>8,Zr[Ur+1]=pr,pr=pr>>8,Zr[Ur]=pr,Ur+8}at.prototype.writeBigUInt64LE=pn(function(Fr){var Ur=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return or(this,Fr,Ur,BigInt(0),BigInt("0xffffffffffffffff"))}),at.prototype.writeBigUInt64BE=pn(function(Fr){var Ur=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return tr(this,Fr,Ur,BigInt(0),BigInt("0xffffffffffffffff"))}),at.prototype.writeIntLE=function(Fr,Ur,Wr,Gr){if(Fr=+Fr,Ur=Ur>>>0,!Gr){var wr=Math.pow(2,8*Wr-1);Kt(this,Fr,Ur,Wr,wr-1,-wr)}var pr=0,Dr=1,Sr=0;for(this[Ur]=Fr&255;++pr>0)-Sr&255;return Ur+Wr},at.prototype.writeIntBE=function(Fr,Ur,Wr,Gr){if(Fr=+Fr,Ur=Ur>>>0,!Gr){var wr=Math.pow(2,8*Wr-1);Kt(this,Fr,Ur,Wr,wr-1,-wr)}var pr=Wr-1,Dr=1,Sr=0;for(this[Ur+pr]=Fr&255;--pr>=0&&(Dr*=256);)Fr<0&&Sr===0&&this[Ur+pr+1]!==0&&(Sr=1),this[Ur+pr]=(Fr/Dr>>0)-Sr&255;return Ur+Wr},at.prototype.writeInt8=function(Fr,Ur,Wr){return Fr=+Fr,Ur=Ur>>>0,Wr||Kt(this,Fr,Ur,1,127,-128),Fr<0&&(Fr=255+Fr+1),this[Ur]=Fr&255,Ur+1},at.prototype.writeInt16LE=function(Fr,Ur,Wr){return Fr=+Fr,Ur=Ur>>>0,Wr||Kt(this,Fr,Ur,2,32767,-32768),this[Ur]=Fr&255,this[Ur+1]=Fr>>>8,Ur+2},at.prototype.writeInt16BE=function(Fr,Ur,Wr){return Fr=+Fr,Ur=Ur>>>0,Wr||Kt(this,Fr,Ur,2,32767,-32768),this[Ur]=Fr>>>8,this[Ur+1]=Fr&255,Ur+2},at.prototype.writeInt32LE=function(Fr,Ur,Wr){return Fr=+Fr,Ur=Ur>>>0,Wr||Kt(this,Fr,Ur,4,2147483647,-2147483648),this[Ur]=Fr&255,this[Ur+1]=Fr>>>8,this[Ur+2]=Fr>>>16,this[Ur+3]=Fr>>>24,Ur+4},at.prototype.writeInt32BE=function(Fr,Ur,Wr){return Fr=+Fr,Ur=Ur>>>0,Wr||Kt(this,Fr,Ur,4,2147483647,-2147483648),Fr<0&&(Fr=4294967295+Fr+1),this[Ur]=Fr>>>24,this[Ur+1]=Fr>>>16,this[Ur+2]=Fr>>>8,this[Ur+3]=Fr&255,Ur+4},at.prototype.writeBigInt64LE=pn(function(Fr){var Ur=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return or(this,Fr,Ur,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),at.prototype.writeBigInt64BE=pn(function(Fr){var Ur=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return tr(this,Fr,Ur,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function cr(Zr,Fr,Ur,Wr,Gr,wr){if(Ur+Wr>Zr.length)throw new RangeError("Index out of range");if(Ur<0)throw new RangeError("Index out of range")}function mr(Zr,Fr,Ur,Wr,Gr){return Fr=+Fr,Ur=Ur>>>0,Gr||cr(Zr,Fr,Ur,4),nt.write(Zr,Fr,Ur,Wr,23,4),Ur+4}at.prototype.writeFloatLE=function(Fr,Ur,Wr){return mr(this,Fr,Ur,!0,Wr)},at.prototype.writeFloatBE=function(Fr,Ur,Wr){return mr(this,Fr,Ur,!1,Wr)};function Ar(Zr,Fr,Ur,Wr,Gr){return Fr=+Fr,Ur=Ur>>>0,Gr||cr(Zr,Fr,Ur,8),nt.write(Zr,Fr,Ur,Wr,52,8),Ur+8}at.prototype.writeDoubleLE=function(Fr,Ur,Wr){return Ar(this,Fr,Ur,!0,Wr)},at.prototype.writeDoubleBE=function(Fr,Ur,Wr){return Ar(this,Fr,Ur,!1,Wr)},at.prototype.copy=function(Fr,Ur,Wr,Gr){if(!at.isBuffer(Fr))throw new TypeError("argument should be a Buffer");if(Wr||(Wr=0),!Gr&&Gr!==0&&(Gr=this.length),Ur>=Fr.length&&(Ur=Fr.length),Ur||(Ur=0),Gr>0&&Gr=this.length)throw new RangeError("Index out of range");if(Gr<0)throw new RangeError("sourceEnd out of bounds");Gr>this.length&&(Gr=this.length),Fr.length-Ur>>0,Wr=Wr===void 0?this.length:Wr>>>0,Fr||(Fr=0);var pr;if(typeof Fr=="number")for(pr=Ur;prMath.pow(2,32)?Gr=Tr(String(Ur)):typeof Ur=="bigint"&&(Gr=String(Ur),(Ur>Math.pow(BigInt(2),BigInt(32))||Ur<-Math.pow(BigInt(2),BigInt(32)))&&(Gr=Tr(Gr)),Gr+="n"),Wr+=" It must be ".concat(Fr,". Received ").concat(Gr),Wr},RangeError);function Tr(Zr){for(var Fr="",Ur=Zr.length,Wr=Zr[0]==="-"?1:0;Ur>=Wr+4;Ur-=3)Fr="_".concat(Zr.slice(Ur-3,Ur)).concat(Fr);return"".concat(Zr.slice(0,Ur)).concat(Fr)}function _r(Zr,Fr,Ur){Rr(Fr,"offset"),(Zr[Fr]===void 0||Zr[Fr+Ur]===void 0)&&zr(Fr,Zr.length-(Ur+1))}function Er(Zr,Fr,Ur,Wr,Gr,wr){if(Zr>Ur||Zr3?Fr===0||Fr===BigInt(0)?Dr=">= 0".concat(pr," and < 2").concat(pr," ** ").concat((wr+1)*8).concat(pr):Dr=">= -(2".concat(pr," ** ").concat((wr+1)*8-1).concat(pr,") and < 2 ** ")+"".concat((wr+1)*8-1).concat(pr):Dr=">= ".concat(Fr).concat(pr," and <= ").concat(Ur).concat(pr),new br.ERR_OUT_OF_RANGE("value",Dr,Zr)}_r(Wr,Gr,wr)}function Rr(Zr,Fr){if(typeof Zr!="number")throw new br.ERR_INVALID_ARG_TYPE(Fr,"number",Zr)}function zr(Zr,Fr,Ur){throw Math.floor(Zr)!==Zr?(Rr(Zr,Ur),new br.ERR_OUT_OF_RANGE(Ur||"offset","an integer",Zr)):Fr<0?new br.ERR_BUFFER_OUT_OF_BOUNDS:new br.ERR_OUT_OF_RANGE(Ur||"offset",">= ".concat(Ur?1:0," and <= ").concat(Fr),Zr)}var Or=/[^+/0-9A-Za-z-_]/g;function kr(Zr){if(Zr=Zr.split("=")[0],Zr=Zr.trim().replace(Or,""),Zr.length<2)return"";for(;Zr.length%4!==0;)Zr=Zr+"=";return Zr}function Nr(Zr,Fr){Fr=Fr||1/0;for(var Ur,Wr=Zr.length,Gr=null,wr=[],pr=0;pr55295&&Ur<57344){if(!Gr){if(Ur>56319){(Fr-=3)>-1&&wr.push(239,191,189);continue}else if(pr+1===Wr){(Fr-=3)>-1&&wr.push(239,191,189);continue}Gr=Ur;continue}if(Ur<56320){(Fr-=3)>-1&&wr.push(239,191,189),Gr=Ur;continue}Ur=(Gr-55296<<10|Ur-56320)+65536}else Gr&&(Fr-=3)>-1&&wr.push(239,191,189);if(Gr=null,Ur<128){if((Fr-=1)<0)break;wr.push(Ur)}else if(Ur<2048){if((Fr-=2)<0)break;wr.push(Ur>>6|192,Ur&63|128)}else if(Ur<65536){if((Fr-=3)<0)break;wr.push(Ur>>12|224,Ur>>6&63|128,Ur&63|128)}else if(Ur<1114112){if((Fr-=4)<0)break;wr.push(Ur>>18|240,Ur>>12&63|128,Ur>>6&63|128,Ur&63|128)}else throw new Error("Invalid code point")}return wr}function Qr(Zr){for(var Fr=[],Ur=0;Ur>8,Gr=Ur%256,wr.push(Gr),wr.push(Wr);return wr}function un(Zr){return ot.toByteArray(kr(Zr))}function en(Zr,Fr,Ur,Wr){var Gr;for(Gr=0;Gr=Fr.length||Gr>=Zr.length);++Gr)Fr[Gr+Ur]=Zr[Gr];return Gr}function Xr(Zr,Fr){return Zr instanceof Fr||Zr!=null&&Zr.constructor!=null&&Zr.constructor.name!=null&&Zr.constructor.name===Fr.name}function ln(Zr){return Zr!==Zr}var mn=function(){for(var Zr="0123456789abcdef",Fr=new Array(256),Ur=0;Ur<16;++Ur)for(var Wr=Ur*16,Gr=0;Gr<16;++Gr)Fr[Wr+Gr]=Zr[Ur]+Zr[Gr];return Fr}();function pn(Zr){return typeof BigInt>"u"?Tn:Zr}function Tn(){throw new Error("BigInt not supported")}},25928:function(Ct){Ct.exports=xt,Ct.exports.isMobile=xt,Ct.exports.default=xt;var Rt=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,o=/CrOS/,it=/android|ipad|playbook|silk/i;function xt(et){et||(et={});var Tt=et.ua;if(!Tt&&typeof navigator<"u"&&(Tt=navigator.userAgent),Tt&&Tt.headers&&typeof Tt.headers["user-agent"]=="string"&&(Tt=Tt.headers["user-agent"]),typeof Tt!="string")return!1;var yt=Rt.test(Tt)&&!o.test(Tt)||!!et.tablet&&it.test(Tt);return!yt&&et.tablet&&et.featureDetect&&navigator&&navigator.maxTouchPoints>1&&Tt.indexOf("Macintosh")!==-1&&Tt.indexOf("Safari")!==-1&&(yt=!0),yt}},48932:function(Ct,Rt,o){o.r(Rt),o.d(Rt,{sankeyCenter:function(){return rt},sankeyCircular:function(){return It},sankeyJustify:function(){return _},sankeyLeft:function(){return ht},sankeyRight:function(){return j}});var it=o(84706),xt=o(34712),et=o(10132),Tt=o(6688),yt=o.n(Tt);function ut(br){return br.target.depth}function ht(br){return br.depth}function j(br,Ir){return Ir-1-br.height}function _(br,Ir){return br.sourceLinks.length?br.depth:Ir-1}function rt(br){return br.targetLinks.length?br.depth:br.sourceLinks.length?(0,it.SY)(br.sourceLinks,ut)-1:0}function tt(br){return function(){return br}}var st=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(br){return typeof br}:function(br){return br&&typeof Symbol=="function"&&br.constructor===Symbol&&br!==Symbol.prototype?"symbol":typeof br};function ot(br,Ir){return vt(br.source,Ir.source)||br.index-Ir.index}function nt(br,Ir){return vt(br.target,Ir.target)||br.index-Ir.index}function vt(br,Ir){return br.partOfCycle===Ir.partOfCycle?br.y0-Ir.y0:br.circularLinkType==="top"||Ir.circularLinkType==="bottom"?-1:1}function dt(br){return br.value}function bt(br){return(br.y0+br.y1)/2}function ft(br){return bt(br.source)}function at(br){return bt(br.target)}function mt(br){return br.index}function St(br){return br.nodes}function _t(br){return br.links}function Mt(br,Ir){var Tr=br.get(Ir);if(!Tr)throw new Error("missing: "+Ir);return Tr}function Et(br,Ir){return Ir(br)}var kt=25,wt=10,ct=.3;function It(){var br=0,Ir=0,Tr=1,_r=1,Er=24,Rr,zr=mt,Or=_,kr=St,Nr=_t,Qr=32,sn=2,un,en=null;function Xr(){var Wr={nodes:kr.apply(null,arguments),links:Nr.apply(null,arguments)};ln(Wr),At(Wr,zr,en),mn(Wr),Zr(Wr),Ot(Wr,zr),Fr(Wr,Qr,zr),Ur(Wr);for(var Gr=4,wr=0;wr"u"?"undefined":st(Dr))!=="object"&&(Dr=wr.source=Mt(Gr,Dr)),(typeof Sr>"u"?"undefined":st(Sr))!=="object"&&(Sr=wr.target=Mt(Gr,Sr)),Dr.sourceLinks.push(wr),Sr.targetLinks.push(wr)}),Wr}function mn(Wr){Wr.nodes.forEach(function(Gr){Gr.partOfCycle=!1,Gr.value=Math.max((0,it.oh)(Gr.sourceLinks,dt),(0,it.oh)(Gr.targetLinks,dt)),Gr.sourceLinks.forEach(function(wr){wr.circular&&(Gr.partOfCycle=!0,Gr.circularLinkType=wr.circularLinkType)}),Gr.targetLinks.forEach(function(wr){wr.circular&&(Gr.partOfCycle=!0,Gr.circularLinkType=wr.circularLinkType)})})}function pn(Wr){var Gr=0,wr=0,pr=0,Dr=0,Sr=(0,it.kv)(Wr.nodes,function(ur){return ur.column});return Wr.links.forEach(function(ur){ur.circular&&(ur.circularLinkType=="top"?Gr=Gr+ur.width:wr=wr+ur.width,ur.target.column==0&&(Dr=Dr+ur.width),ur.source.column==Sr&&(pr=pr+ur.width))}),Gr=Gr>0?Gr+kt+wt:Gr,wr=wr>0?wr+kt+wt:wr,pr=pr>0?pr+kt+wt:pr,Dr=Dr>0?Dr+kt+wt:Dr,{top:Gr,bottom:wr,left:Dr,right:pr}}function Tn(Wr,Gr){var wr=(0,it.kv)(Wr.nodes,function(Vr){return Vr.column}),pr=Tr-br,Dr=_r-Ir,Sr=pr+Gr.right+Gr.left,ur=Dr+Gr.top+Gr.bottom,xr=pr/Sr,Pr=Dr/ur;return br=br*xr+Gr.left,Tr=Gr.right==0?Tr:Tr*xr,Ir=Ir*Pr+Gr.top,_r=_r*Pr,Wr.nodes.forEach(function(Vr){Vr.x0=br+Vr.column*((Tr-br-Er)/wr),Vr.x1=Vr.x0+Er}),Pr}function Zr(Wr){var Gr,wr,pr;for(Gr=Wr.nodes,wr=[],pr=0;Gr.length;++pr,Gr=wr,wr=[])Gr.forEach(function(Dr){Dr.depth=pr,Dr.sourceLinks.forEach(function(Sr){wr.indexOf(Sr.target)<0&&!Sr.circular&&wr.push(Sr.target)})});for(Gr=Wr.nodes,wr=[],pr=0;Gr.length;++pr,Gr=wr,wr=[])Gr.forEach(function(Dr){Dr.height=pr,Dr.targetLinks.forEach(function(Sr){wr.indexOf(Sr.source)<0&&!Sr.circular&&wr.push(Sr.source)})});Wr.nodes.forEach(function(Dr){Dr.column=Math.floor(Or.call(null,Dr,pr))})}function Fr(Wr,Gr,wr){var pr=(0,xt.UJ)().key(function(Vr){return Vr.column}).sortKeys(it.XE).entries(Wr.nodes).map(function(Vr){return Vr.values});ur(wr),Pr();for(var Dr=1,Sr=Gr;Sr>0;--Sr)xr(Dr*=.99,wr),Pr();function ur(Vr){if(un){var qr=1/0;pr.forEach(function(fn){var bn=_r*un/(fn.length+1);qr=bn0))if(fn==0&&xn==1)Un=bn.y1-bn.y0,bn.y0=_r/2-Un/2,bn.y1=_r/2+Un/2;else if(fn==rn-1&&xn==1)Un=bn.y1-bn.y0,bn.y0=_r/2-Un/2,bn.y1=_r/2+Un/2;else{var _i=0,yn=(0,it.mo)(bn.sourceLinks,at),Kn=(0,it.mo)(bn.targetLinks,ft);yn&&Kn?_i=(yn+Kn)/2:_i=yn||Kn;var Jn=(_i-bt(bn))*Vr;bn.y0+=Jn,bn.y1+=Jn}})})}function Pr(){pr.forEach(function(Vr){var qr,rn,Cn=Ir,xn=Vr.length,fn;for(Vr.sort(vt),fn=0;fn0&&(qr.y0+=rn,qr.y1+=rn),Cn=qr.y1+Rr;if(rn=Cn-Rr-_r,rn>0)for(Cn=qr.y0-=rn,qr.y1-=rn,fn=xn-2;fn>=0;--fn)qr=Vr[fn],rn=qr.y1+Rr-Cn,rn>0&&(qr.y0-=rn,qr.y1-=rn),Cn=qr.y0})}}function Ur(Wr){Wr.nodes.forEach(function(Gr){Gr.sourceLinks.sort(nt),Gr.targetLinks.sort(ot)}),Wr.nodes.forEach(function(Gr){var wr=Gr.y0,pr=wr,Dr=Gr.y1,Sr=Dr;Gr.sourceLinks.forEach(function(ur){ur.circular?(ur.y0=Dr-ur.width/2,Dr=Dr-ur.width):(ur.y0=wr+ur.width/2,wr+=ur.width)}),Gr.targetLinks.forEach(function(ur){ur.circular?(ur.y1=Sr-ur.width/2,Sr=Sr-ur.width):(ur.y1=pr+ur.width/2,pr+=ur.width)})})}return Xr}function At(br,Ir,Tr){var _r=0;if(Tr===null){for(var Er=[],Rr=0;RrIr.source.column)}function Dt(br,Ir){var Tr=0;br.sourceLinks.forEach(function(Er){Tr=Er.circular&&!mr(Er,Ir)?Tr+1:Tr});var _r=0;return br.targetLinks.forEach(function(Er){_r=Er.circular&&!mr(Er,Ir)?_r+1:_r}),Tr+_r}function Nt(br){var Ir=br.source.sourceLinks,Tr=0;Ir.forEach(function(Rr){Tr=Rr.circular?Tr+1:Tr});var _r=br.target.targetLinks,Er=0;return _r.forEach(function(Rr){Er=Rr.circular?Er+1:Er}),!(Tr>1||Er>1)}function $t(br,Ir,Tr){return br.sort(Vt),br.forEach(function(_r,Er){var Rr=0;if(mr(_r,Tr)&&Nt(_r))_r.circularPathData.verticalBuffer=Rr+_r.width/2;else{var zr=0;for(zr;zrRr?Or:Rr}_r.circularPathData.verticalBuffer=Rr+_r.width/2}}),br}function Ut(br,Ir,Tr,_r){var Er=5,Rr=(0,it.SY)(br.links,function(kr){return kr.source.y0});br.links.forEach(function(kr){kr.circular&&(kr.circularPathData={})});var zr=br.links.filter(function(kr){return kr.circularLinkType=="top"});$t(zr,Ir,_r);var Or=br.links.filter(function(kr){return kr.circularLinkType=="bottom"});$t(Or,Ir,_r),br.links.forEach(function(kr){if(kr.circular){if(kr.circularPathData.arcRadius=kr.width+wt,kr.circularPathData.leftNodeBuffer=Er,kr.circularPathData.rightNodeBuffer=Er,kr.circularPathData.sourceWidth=kr.source.x1-kr.source.x0,kr.circularPathData.sourceX=kr.source.x0+kr.circularPathData.sourceWidth,kr.circularPathData.targetX=kr.target.x0,kr.circularPathData.sourceY=kr.y0,kr.circularPathData.targetY=kr.y1,mr(kr,_r)&&Nt(kr))kr.circularPathData.leftSmallArcRadius=wt+kr.width/2,kr.circularPathData.leftLargeArcRadius=wt+kr.width/2,kr.circularPathData.rightSmallArcRadius=wt+kr.width/2,kr.circularPathData.rightLargeArcRadius=wt+kr.width/2,kr.circularLinkType=="bottom"?(kr.circularPathData.verticalFullExtent=kr.source.y1+kt+kr.circularPathData.verticalBuffer,kr.circularPathData.verticalLeftInnerExtent=kr.circularPathData.verticalFullExtent-kr.circularPathData.leftLargeArcRadius,kr.circularPathData.verticalRightInnerExtent=kr.circularPathData.verticalFullExtent-kr.circularPathData.rightLargeArcRadius):(kr.circularPathData.verticalFullExtent=kr.source.y0-kt-kr.circularPathData.verticalBuffer,kr.circularPathData.verticalLeftInnerExtent=kr.circularPathData.verticalFullExtent+kr.circularPathData.leftLargeArcRadius,kr.circularPathData.verticalRightInnerExtent=kr.circularPathData.verticalFullExtent+kr.circularPathData.rightLargeArcRadius);else{var Nr=kr.source.column,Qr=kr.circularLinkType,sn=br.links.filter(function(Xr){return Xr.source.column==Nr&&Xr.circularLinkType==Qr});kr.circularLinkType=="bottom"?sn.sort(qt):sn.sort(Xt);var un=0;sn.forEach(function(Xr,ln){Xr.circularLinkID==kr.circularLinkID&&(kr.circularPathData.leftSmallArcRadius=wt+kr.width/2+un,kr.circularPathData.leftLargeArcRadius=wt+kr.width/2+ln*Ir+un),un=un+Xr.width}),Nr=kr.target.column,sn=br.links.filter(function(Xr){return Xr.target.column==Nr&&Xr.circularLinkType==Qr}),kr.circularLinkType=="bottom"?sn.sort(lr):sn.sort(er),un=0,sn.forEach(function(Xr,ln){Xr.circularLinkID==kr.circularLinkID&&(kr.circularPathData.rightSmallArcRadius=wt+kr.width/2+un,kr.circularPathData.rightLargeArcRadius=wt+kr.width/2+ln*Ir+un),un=un+Xr.width}),kr.circularLinkType=="bottom"?(kr.circularPathData.verticalFullExtent=Math.max(Tr,kr.source.y1,kr.target.y1)+kt+kr.circularPathData.verticalBuffer,kr.circularPathData.verticalLeftInnerExtent=kr.circularPathData.verticalFullExtent-kr.circularPathData.leftLargeArcRadius,kr.circularPathData.verticalRightInnerExtent=kr.circularPathData.verticalFullExtent-kr.circularPathData.rightLargeArcRadius):(kr.circularPathData.verticalFullExtent=Rr-kt-kr.circularPathData.verticalBuffer,kr.circularPathData.verticalLeftInnerExtent=kr.circularPathData.verticalFullExtent+kr.circularPathData.leftLargeArcRadius,kr.circularPathData.verticalRightInnerExtent=kr.circularPathData.verticalFullExtent+kr.circularPathData.rightLargeArcRadius)}kr.circularPathData.leftInnerExtent=kr.circularPathData.sourceX+kr.circularPathData.leftNodeBuffer,kr.circularPathData.rightInnerExtent=kr.circularPathData.targetX-kr.circularPathData.rightNodeBuffer,kr.circularPathData.leftFullExtent=kr.circularPathData.sourceX+kr.circularPathData.leftLargeArcRadius+kr.circularPathData.leftNodeBuffer,kr.circularPathData.rightFullExtent=kr.circularPathData.targetX-kr.circularPathData.rightLargeArcRadius-kr.circularPathData.rightNodeBuffer}if(kr.circular)kr.path=Ht(kr);else{var en=(0,et.ak)().source(function(Xr){var ln=Xr.source.x0+(Xr.source.x1-Xr.source.x0),mn=Xr.y0;return[ln,mn]}).target(function(Xr){var ln=Xr.target.x0,mn=Xr.y1;return[ln,mn]});kr.path=en(kr)}})}function Ht(br){var Ir="";return br.circularLinkType=="top"?Ir="M"+br.circularPathData.sourceX+" "+br.circularPathData.sourceY+" L"+br.circularPathData.leftInnerExtent+" "+br.circularPathData.sourceY+" A"+br.circularPathData.leftLargeArcRadius+" "+br.circularPathData.leftSmallArcRadius+" 0 0 0 "+br.circularPathData.leftFullExtent+" "+(br.circularPathData.sourceY-br.circularPathData.leftSmallArcRadius)+" L"+br.circularPathData.leftFullExtent+" "+br.circularPathData.verticalLeftInnerExtent+" A"+br.circularPathData.leftLargeArcRadius+" "+br.circularPathData.leftLargeArcRadius+" 0 0 0 "+br.circularPathData.leftInnerExtent+" "+br.circularPathData.verticalFullExtent+" L"+br.circularPathData.rightInnerExtent+" "+br.circularPathData.verticalFullExtent+" A"+br.circularPathData.rightLargeArcRadius+" "+br.circularPathData.rightLargeArcRadius+" 0 0 0 "+br.circularPathData.rightFullExtent+" "+br.circularPathData.verticalRightInnerExtent+" L"+br.circularPathData.rightFullExtent+" "+(br.circularPathData.targetY-br.circularPathData.rightSmallArcRadius)+" A"+br.circularPathData.rightLargeArcRadius+" "+br.circularPathData.rightSmallArcRadius+" 0 0 0 "+br.circularPathData.rightInnerExtent+" "+br.circularPathData.targetY+" L"+br.circularPathData.targetX+" "+br.circularPathData.targetY:Ir="M"+br.circularPathData.sourceX+" "+br.circularPathData.sourceY+" L"+br.circularPathData.leftInnerExtent+" "+br.circularPathData.sourceY+" A"+br.circularPathData.leftLargeArcRadius+" "+br.circularPathData.leftSmallArcRadius+" 0 0 1 "+br.circularPathData.leftFullExtent+" "+(br.circularPathData.sourceY+br.circularPathData.leftSmallArcRadius)+" L"+br.circularPathData.leftFullExtent+" "+br.circularPathData.verticalLeftInnerExtent+" A"+br.circularPathData.leftLargeArcRadius+" "+br.circularPathData.leftLargeArcRadius+" 0 0 1 "+br.circularPathData.leftInnerExtent+" "+br.circularPathData.verticalFullExtent+" L"+br.circularPathData.rightInnerExtent+" "+br.circularPathData.verticalFullExtent+" A"+br.circularPathData.rightLargeArcRadius+" "+br.circularPathData.rightLargeArcRadius+" 0 0 1 "+br.circularPathData.rightFullExtent+" "+br.circularPathData.verticalRightInnerExtent+" L"+br.circularPathData.rightFullExtent+" "+(br.circularPathData.targetY+br.circularPathData.rightSmallArcRadius)+" A"+br.circularPathData.rightLargeArcRadius+" "+br.circularPathData.rightSmallArcRadius+" 0 0 1 "+br.circularPathData.rightInnerExtent+" "+br.circularPathData.targetY+" L"+br.circularPathData.targetX+" "+br.circularPathData.targetY,Ir}function Vt(br,Ir){return Jt(br)==Jt(Ir)?br.circularLinkType=="bottom"?qt(br,Ir):Xt(br,Ir):Jt(Ir)-Jt(br)}function Xt(br,Ir){return br.y0-Ir.y0}function qt(br,Ir){return Ir.y0-br.y0}function er(br,Ir){return br.y1-Ir.y1}function lr(br,Ir){return Ir.y1-br.y1}function Jt(br){return br.target.column-br.source.column}function Yt(br){return br.target.x0-br.source.x1}function rr(br,Ir){var Tr=Pt(br),_r=Yt(Ir)/Math.tan(Tr),Er=cr(br)=="up"?br.y1+_r:br.y1-_r;return Er}function jt(br,Ir){var Tr=Pt(br),_r=Yt(Ir)/Math.tan(Tr),Er=cr(br)=="up"?br.y1-_r:br.y1+_r;return Er}function ar(br,Ir,Tr,_r){br.links.forEach(function(Er){if(!Er.circular&&Er.target.column-Er.source.column>1){var Rr=Er.source.column+1,zr=Er.target.column-1,Or=1,kr=zr-Rr+1;for(Or=1;Rr<=zr;Rr++,Or++)br.nodes.forEach(function(Nr){if(Nr.column==Rr){var Qr=Or/(kr+1),sn=Math.pow(1-Qr,3),un=3*Qr*Math.pow(1-Qr,2),en=3*Math.pow(Qr,2)*(1-Qr),Xr=Math.pow(Qr,3),ln=sn*Er.y0+un*Er.y0+en*Er.y1+Xr*Er.y1,mn=ln-Er.width/2,pn=ln+Er.width/2,Tn;mn>Nr.y0&&mnNr.y0&&pnNr.y1&&Zt(Zr,Tn,Ir,Tr)})):mnNr.y1&&(Tn=pn-Nr.y0+10,Nr=Zt(Nr,Tn,Ir,Tr),br.nodes.forEach(function(Zr){Et(Zr,_r)==Et(Nr,_r)||Zr.column!=Nr.column||Zr.y0Nr.y1&&Zt(Zr,Tn,Ir,Tr)}))}})}})}function sr(br,Ir){return br.y0>Ir.y0&&br.y0Ir.y0&&br.y1Ir.y1}function Zt(br,Ir,Tr,_r){return br.y0+Ir>=Tr&&br.y1+Ir<=_r&&(br.y0=br.y0+Ir,br.y1=br.y1+Ir,br.targetLinks.forEach(function(Er){Er.y1=Er.y1+Ir}),br.sourceLinks.forEach(function(Er){Er.y0=Er.y0+Ir})),br}function Kt(br,Ir,Tr,_r){br.nodes.forEach(function(Er){_r&&Er.y+(Er.y1-Er.y0)>Ir&&(Er.y=Er.y-(Er.y+(Er.y1-Er.y0)-Ir));var Rr=br.links.filter(function(kr){return Et(kr.source,Tr)==Et(Er,Tr)}),zr=Rr.length;zr>1&&Rr.sort(function(kr,Nr){if(!kr.circular&&!Nr.circular){if(kr.target.column==Nr.target.column)return kr.y1-Nr.y1;if(tr(kr,Nr)){if(kr.target.column>Nr.target.column){var Qr=jt(Nr,kr);return kr.y1-Qr}if(Nr.target.column>kr.target.column){var sn=jt(kr,Nr);return sn-Nr.y1}}else return kr.y1-Nr.y1}if(kr.circular&&!Nr.circular)return kr.circularLinkType=="top"?-1:1;if(Nr.circular&&!kr.circular)return Nr.circularLinkType=="top"?1:-1;if(kr.circular&&Nr.circular)return kr.circularLinkType===Nr.circularLinkType&&kr.circularLinkType=="top"?kr.target.column===Nr.target.column?kr.target.y1-Nr.target.y1:Nr.target.column-kr.target.column:kr.circularLinkType===Nr.circularLinkType&&kr.circularLinkType=="bottom"?kr.target.column===Nr.target.column?Nr.target.y1-kr.target.y1:kr.target.column-Nr.target.column:kr.circularLinkType=="top"?-1:1});var Or=Er.y0;Rr.forEach(function(kr){kr.y0=Or+kr.width/2,Or=Or+kr.width}),Rr.forEach(function(kr,Nr){if(kr.circularLinkType=="bottom"){var Qr=Nr+1,sn=0;for(Qr;Qr1&&Er.sort(function(Or,kr){if(!Or.circular&&!kr.circular){if(Or.source.column==kr.source.column)return Or.y0-kr.y0;if(tr(Or,kr)){if(kr.source.column0?"up":"down"}function mr(br,Ir){return Et(br.source,Ir)==Et(br.target,Ir)}function Ar(br,Ir,Tr){var _r=br.nodes,Er=br.links,Rr=!1,zr=!1;if(Er.forEach(function(un){un.circularLinkType=="top"?Rr=!0:un.circularLinkType=="bottom"&&(zr=!0)}),Rr==!1||zr==!1){var Or=(0,it.SY)(_r,function(un){return un.y0}),kr=(0,it.kv)(_r,function(un){return un.y1}),Nr=kr-Or,Qr=Tr-Ir,sn=Qr/Nr;_r.forEach(function(un){var en=(un.y1-un.y0)*sn;un.y0=(un.y0-Or)*sn,un.y1=un.y0+en}),Er.forEach(function(un){un.y0=(un.y0-Or)*sn,un.y1=(un.y1-Or)*sn,un.width=un.width*sn})}}},26800:function(Ct,Rt,o){o.r(Rt),o.d(Rt,{sankey:function(){return mt},sankeyCenter:function(){return ht},sankeyJustify:function(){return ut},sankeyLeft:function(){return Tt},sankeyLinkHorizontal:function(){return Et},sankeyRight:function(){return yt}});var it=o(84706),xt=o(34712);function et(kt){return kt.target.depth}function Tt(kt){return kt.depth}function yt(kt,wt){return wt-1-kt.height}function ut(kt,wt){return kt.sourceLinks.length?kt.depth:wt-1}function ht(kt){return kt.targetLinks.length?kt.depth:kt.sourceLinks.length?(0,it.SY)(kt.sourceLinks,et)-1:0}function j(kt){return function(){return kt}}function _(kt,wt){return tt(kt.source,wt.source)||kt.index-wt.index}function rt(kt,wt){return tt(kt.target,wt.target)||kt.index-wt.index}function tt(kt,wt){return kt.y0-wt.y0}function st(kt){return kt.value}function ot(kt){return(kt.y0+kt.y1)/2}function nt(kt){return ot(kt.source)*kt.value}function vt(kt){return ot(kt.target)*kt.value}function dt(kt){return kt.index}function bt(kt){return kt.nodes}function ft(kt){return kt.links}function at(kt,wt){var ct=kt.get(wt);if(!ct)throw new Error("missing: "+wt);return ct}function mt(){var kt=0,wt=0,ct=1,It=1,At=24,Ot=8,Pt=dt,zt=ut,Dt=bt,Nt=ft,$t=32,Ut=2/3;function Ht(){var Jt={nodes:Dt.apply(null,arguments),links:Nt.apply(null,arguments)};return Vt(Jt),Xt(Jt),qt(Jt),er(Jt),lr(Jt),Jt}Ht.update=function(Jt){return lr(Jt),Jt},Ht.nodeId=function(Jt){return arguments.length?(Pt=typeof Jt=="function"?Jt:j(Jt),Ht):Pt},Ht.nodeAlign=function(Jt){return arguments.length?(zt=typeof Jt=="function"?Jt:j(Jt),Ht):zt},Ht.nodeWidth=function(Jt){return arguments.length?(At=+Jt,Ht):At},Ht.nodePadding=function(Jt){return arguments.length?(Ot=+Jt,Ht):Ot},Ht.nodes=function(Jt){return arguments.length?(Dt=typeof Jt=="function"?Jt:j(Jt),Ht):Dt},Ht.links=function(Jt){return arguments.length?(Nt=typeof Jt=="function"?Jt:j(Jt),Ht):Nt},Ht.size=function(Jt){return arguments.length?(kt=wt=0,ct=+Jt[0],It=+Jt[1],Ht):[ct-kt,It-wt]},Ht.extent=function(Jt){return arguments.length?(kt=+Jt[0][0],ct=+Jt[1][0],wt=+Jt[0][1],It=+Jt[1][1],Ht):[[kt,wt],[ct,It]]},Ht.iterations=function(Jt){return arguments.length?($t=+Jt,Ht):$t};function Vt(Jt){Jt.nodes.forEach(function(rr,jt){rr.index=jt,rr.sourceLinks=[],rr.targetLinks=[]});var Yt=(0,xt.kH)(Jt.nodes,Pt);Jt.links.forEach(function(rr,jt){rr.index=jt;var ar=rr.source,sr=rr.target;typeof ar!="object"&&(ar=rr.source=at(Yt,ar)),typeof sr!="object"&&(sr=rr.target=at(Yt,sr)),ar.sourceLinks.push(rr),sr.targetLinks.push(rr)})}function Xt(Jt){Jt.nodes.forEach(function(Yt){Yt.value=Math.max((0,it.oh)(Yt.sourceLinks,st),(0,it.oh)(Yt.targetLinks,st))})}function qt(Jt){var Yt,rr,jt;for(Yt=Jt.nodes,rr=[],jt=0;Yt.length;++jt,Yt=rr,rr=[])Yt.forEach(function(sr){sr.depth=jt,sr.sourceLinks.forEach(function(Zt){rr.indexOf(Zt.target)<0&&rr.push(Zt.target)})});for(Yt=Jt.nodes,rr=[],jt=0;Yt.length;++jt,Yt=rr,rr=[])Yt.forEach(function(sr){sr.height=jt,sr.targetLinks.forEach(function(Zt){rr.indexOf(Zt.source)<0&&rr.push(Zt.source)})});var ar=(ct-kt-At)/(jt-1);Jt.nodes.forEach(function(sr){sr.x1=(sr.x0=kt+Math.max(0,Math.min(jt-1,Math.floor(zt.call(null,sr,jt))))*ar)+At})}function er(Jt){var Yt=(0,xt.UJ)().key(function(or){return or.x0}).sortKeys(it.XE).entries(Jt.nodes).map(function(or){return or.values});ar(),Kt();for(var rr=1,jt=$t;jt>0;--jt)Zt(rr*=.99),Kt(),sr(rr),Kt();function ar(){var or=(0,it.kv)(Yt,function(mr){return mr.length}),tr=Ut*(It-wt)/(or-1);Ot>tr&&(Ot=tr);var cr=(0,it.SY)(Yt,function(mr){return(It-wt-(mr.length-1)*Ot)/(0,it.oh)(mr,st)});Yt.forEach(function(mr){mr.forEach(function(Ar,br){Ar.y1=(Ar.y0=br)+Ar.value*cr})}),Jt.links.forEach(function(mr){mr.width=mr.value*cr})}function sr(or){Yt.forEach(function(tr){tr.forEach(function(cr){if(cr.targetLinks.length){var mr=((0,it.oh)(cr.targetLinks,nt)/(0,it.oh)(cr.targetLinks,st)-ot(cr))*or;cr.y0+=mr,cr.y1+=mr}})})}function Zt(or){Yt.slice().reverse().forEach(function(tr){tr.forEach(function(cr){if(cr.sourceLinks.length){var mr=((0,it.oh)(cr.sourceLinks,vt)/(0,it.oh)(cr.sourceLinks,st)-ot(cr))*or;cr.y0+=mr,cr.y1+=mr}})})}function Kt(){Yt.forEach(function(or){var tr,cr,mr=wt,Ar=or.length,br;for(or.sort(tt),br=0;br0&&(tr.y0+=cr,tr.y1+=cr),mr=tr.y1+Ot;if(cr=mr-Ot-It,cr>0)for(mr=tr.y0-=cr,tr.y1-=cr,br=Ar-2;br>=0;--br)tr=or[br],cr=tr.y1+Ot-mr,cr>0&&(tr.y0-=cr,tr.y1-=cr),mr=tr.y0})}}function lr(Jt){Jt.nodes.forEach(function(Yt){Yt.sourceLinks.sort(rt),Yt.targetLinks.sort(_)}),Jt.nodes.forEach(function(Yt){var rr=Yt.y0,jt=rr;Yt.sourceLinks.forEach(function(ar){ar.y0=rr+ar.width/2,rr+=ar.width}),Yt.targetLinks.forEach(function(ar){ar.y1=jt+ar.width/2,jt+=ar.width})})}return Ht}var St=o(10132);function _t(kt){return[kt.source.x1,kt.y0]}function Mt(kt){return[kt.target.x0,kt.y1]}function Et(){return(0,St.ak)().source(_t).target(Mt)}},33428:function(Ct,Rt,o){var it,xt;(function(){var et={version:"3.8.0"},Tt=[].slice,yt=function(dr){return Tt.call(dr)},ut=self.document;function ht(dr){return dr&&(dr.ownerDocument||dr.document||dr).documentElement}function j(dr){return dr&&(dr.ownerDocument&&dr.ownerDocument.defaultView||dr.document&&dr||dr.defaultView)}if(ut)try{yt(ut.documentElement.childNodes)[0].nodeType}catch{yt=function(Lr){for(var Hr=Lr.length,nn=new Array(Hr);Hr--;)nn[Hr]=Lr[Hr];return nn}}if(Date.now||(Date.now=function(){return+new Date}),ut)try{ut.createElement("DIV").style.setProperty("opacity",0,"")}catch{var _=this.Element.prototype,rt=_.setAttribute,tt=_.setAttributeNS,st=this.CSSStyleDeclaration.prototype,ot=st.setProperty;_.setAttribute=function(Lr,Hr){rt.call(this,Lr,Hr+"")},_.setAttributeNS=function(Lr,Hr,nn){tt.call(this,Lr,Hr,nn+"")},st.setProperty=function(Lr,Hr,nn){ot.call(this,Lr,Hr+"",nn)}}et.ascending=nt;function nt(dr,Lr){return drLr?1:dr>=Lr?0:NaN}et.descending=function(dr,Lr){return Lrdr?1:Lr>=dr?0:NaN},et.min=function(dr,Lr){var Hr=-1,nn=dr.length,cn,vn;if(arguments.length===1){for(;++Hr=vn){cn=vn;break}for(;++Hrvn&&(cn=vn)}else{for(;++Hr=vn){cn=vn;break}for(;++Hrvn&&(cn=vn)}return cn},et.max=function(dr,Lr){var Hr=-1,nn=dr.length,cn,vn;if(arguments.length===1){for(;++Hr=vn){cn=vn;break}for(;++Hrcn&&(cn=vn)}else{for(;++Hr=vn){cn=vn;break}for(;++Hrcn&&(cn=vn)}return cn},et.extent=function(dr,Lr){var Hr=-1,nn=dr.length,cn,vn,Dn;if(arguments.length===1){for(;++Hr=vn){cn=Dn=vn;break}for(;++Hrvn&&(cn=vn),Dn=vn){cn=Dn=vn;break}for(;++Hrvn&&(cn=vn),Dn1)return Dn/(Yn-1)},et.deviation=function(){var dr=et.variance.apply(this,arguments);return dr&&Math.sqrt(dr)};function bt(dr){return{left:function(Lr,Hr,nn,cn){for(arguments.length<3&&(nn=0),arguments.length<4&&(cn=Lr.length);nn>>1;dr(Lr[vn],Hr)<0?nn=vn+1:cn=vn}return nn},right:function(Lr,Hr,nn,cn){for(arguments.length<3&&(nn=0),arguments.length<4&&(cn=Lr.length);nn>>1;dr(Lr[vn],Hr)>0?cn=vn:nn=vn+1}return nn}}}var ft=bt(nt);et.bisectLeft=ft.left,et.bisect=et.bisectRight=ft.right,et.bisector=function(dr){return bt(dr.length===1?function(Lr,Hr){return nt(dr(Lr),Hr)}:dr)},et.shuffle=function(dr,Lr,Hr){(nn=arguments.length)<3&&(Hr=dr.length,nn<2&&(Lr=0));for(var nn=Hr-Lr,cn,vn;nn;)vn=Math.random()*nn--|0,cn=dr[nn+Lr],dr[nn+Lr]=dr[vn+Lr],dr[vn+Lr]=cn;return dr},et.permute=function(dr,Lr){for(var Hr=Lr.length,nn=new Array(Hr);Hr--;)nn[Hr]=dr[Lr[Hr]];return nn},et.pairs=function(dr){for(var Lr=0,Hr=dr.length-1,nn=dr[0],cn=new Array(Hr<0?0:Hr);Lr=0;)for(Dn=dr[Lr],Hr=Dn.length;--Hr>=0;)vn[--cn]=Dn[Hr];return vn};var mt=Math.abs;et.range=function(dr,Lr,Hr){if(arguments.length<3&&(Hr=1,arguments.length<2&&(Lr=dr,dr=0)),(Lr-dr)/Hr===1/0)throw new Error("infinite range");var nn=[],cn=St(mt(Hr)),vn=-1,Dn;if(dr*=cn,Lr*=cn,Hr*=cn,Hr<0)for(;(Dn=dr+Hr*++vn)>Lr;)nn.push(Dn/cn);else for(;(Dn=dr+Hr*++vn)=Lr.length)return cn?cn.call(dr,Yn):nn?Yn.sort(nn):Yn;for(var to=-1,Co=Yn.length,Ro=Lr[Zn++],ts,ls,ko,Uo=new Mt,qo;++to=Lr.length)return Rn;var Zn=[],to=Hr[Yn++];return Rn.forEach(function(Co,Ro){Zn.push({key:Co,values:Dn(Ro,Yn)})}),to?Zn.sort(function(Co,Ro){return to(Co.key,Ro.key)}):Zn}return dr.map=function(Rn,Yn){return vn(Yn,Rn,0)},dr.entries=function(Rn){return Dn(vn(et.map,Rn,0),0)},dr.key=function(Rn){return Lr.push(Rn),dr},dr.sortKeys=function(Rn){return Hr[Lr.length-1]=Rn,dr},dr.sortValues=function(Rn){return nn=Rn,dr},dr.rollup=function(Rn){return cn=Rn,dr},dr},et.set=function(dr){var Lr=new Dt;if(dr)for(var Hr=0,nn=dr.length;Hr=0&&(nn=dr.slice(Hr+1),dr=dr.slice(0,Hr)),dr)return arguments.length<2?this[dr].on(nn):this[dr].on(nn,Lr);if(arguments.length===2){if(Lr==null)for(dr in this)this.hasOwnProperty(dr)&&this[dr].on(nn,null);return this}};function qt(dr){var Lr=[],Hr=new Mt;function nn(){for(var cn=Lr,vn=-1,Dn=cn.length,Rn;++vn=0&&(Hr=dr.slice(0,Lr))!=="xmlns"&&(dr=dr.slice(Lr+1)),mr.hasOwnProperty(Hr)?{space:mr[Hr],local:dr}:dr}},Kt.attr=function(dr,Lr){if(arguments.length<2){if(typeof dr=="string"){var Hr=this.node();return dr=et.ns.qualify(dr),dr.local?Hr.getAttributeNS(dr.space,dr.local):Hr.getAttribute(dr)}for(Lr in dr)this.each(Ar(Lr,dr[Lr]));return this}return this.each(Ar(dr,Lr))};function Ar(dr,Lr){dr=et.ns.qualify(dr);function Hr(){this.removeAttribute(dr)}function nn(){this.removeAttributeNS(dr.space,dr.local)}function cn(){this.setAttribute(dr,Lr)}function vn(){this.setAttributeNS(dr.space,dr.local,Lr)}function Dn(){var Yn=Lr.apply(this,arguments);Yn==null?this.removeAttribute(dr):this.setAttribute(dr,Yn)}function Rn(){var Yn=Lr.apply(this,arguments);Yn==null?this.removeAttributeNS(dr.space,dr.local):this.setAttributeNS(dr.space,dr.local,Yn)}return Lr==null?dr.local?nn:Hr:typeof Lr=="function"?dr.local?Rn:Dn:dr.local?vn:cn}function br(dr){return dr.trim().replace(/\s+/g," ")}Kt.classed=function(dr,Lr){if(arguments.length<2){if(typeof dr=="string"){var Hr=this.node(),nn=(dr=Tr(dr)).length,cn=-1;if(Lr=Hr.classList){for(;++cn=0;)(vn=Hr[nn])&&(cn&&cn!==vn.nextSibling&&cn.parentNode.insertBefore(vn,cn),cn=vn);return this},Kt.sort=function(dr){dr=sn.apply(this,arguments);for(var Lr=-1,Hr=this.length;++Lr=Lr&&(Lr=cn+1);!(Yn=Dn[Lr])&&++Lr0&&(dr=dr.slice(0,cn));var Dn=pn.get(dr);Dn&&(dr=Dn,vn=Zr);function Rn(){var to=this[nn];to&&(this.removeEventListener(dr,to,to.$),delete this[nn])}function Yn(){var to=vn(Lr,yt(arguments));Rn.call(this),this.addEventListener(dr,this[nn]=to,to.$=Hr),to._=Lr}function Zn(){var to=new RegExp("^__on([^.]+)"+et.requote(dr)+"$"),Co;for(var Ro in this)if(Co=Ro.match(to)){var ts=this[Ro];this.removeEventListener(Co[1],ts,ts.$),delete this[Ro]}}return cn?Lr?Yn:Rn:Lr?Vt:Zn}var pn=et.map({mouseenter:"mouseover",mouseleave:"mouseout"});ut&&pn.forEach(function(dr){"on"+dr in ut&&pn.remove(dr)});function Tn(dr,Lr){return function(Hr){var nn=et.event;et.event=Hr,Lr[0]=this.__data__;try{dr.apply(this,Lr)}finally{et.event=nn}}}function Zr(dr,Lr){var Hr=Tn(dr,Lr);return function(nn){var cn=this,vn=nn.relatedTarget;(!vn||vn!==cn&&!(vn.compareDocumentPosition(cn)&8))&&Hr.call(cn,nn)}}var Fr,Ur=0;function Wr(dr){var Lr=".dragsuppress-"+ ++Ur,Hr="click"+Lr,nn=et.select(j(dr)).on("touchmove"+Lr,er).on("dragstart"+Lr,er).on("selectstart"+Lr,er);if(Fr==null&&(Fr="onselectstart"in dr?!1:Ut(dr.style,"userSelect")),Fr){var cn=ht(dr).style,vn=cn[Fr];cn[Fr]="none"}return function(Dn){if(nn.on(Lr,null),Fr&&(cn[Fr]=vn),Dn){var Rn=function(){nn.on(Hr,null)};nn.on(Hr,function(){er(),Rn()},!0),setTimeout(Rn,0)}}}et.mouse=function(dr){return wr(dr,lr())};var Gr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function wr(dr,Lr){Lr.changedTouches&&(Lr=Lr.changedTouches[0]);var Hr=dr.ownerSVGElement||dr;if(Hr.createSVGPoint){var nn=Hr.createSVGPoint();if(Gr<0){var cn=j(dr);if(cn.scrollX||cn.scrollY){Hr=et.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var vn=Hr[0][0].getScreenCTM();Gr=!(vn.f||vn.e),Hr.remove()}}return Gr?(nn.x=Lr.pageX,nn.y=Lr.pageY):(nn.x=Lr.clientX,nn.y=Lr.clientY),nn=nn.matrixTransform(dr.getScreenCTM().inverse()),[nn.x,nn.y]}var Dn=dr.getBoundingClientRect();return[Lr.clientX-Dn.left-dr.clientLeft,Lr.clientY-Dn.top-dr.clientTop]}et.touch=function(dr,Lr,Hr){if(arguments.length<3&&(Hr=Lr,Lr=lr().changedTouches),Lr){for(var nn=0,cn=Lr.length,vn;nn1?Vr:dr<-1?-Vr:Math.asin(dr)}function fn(dr){return((dr=Math.exp(dr))-1/dr)/2}function bn(dr){return((dr=Math.exp(dr))+1/dr)/2}function Un(dr){return((dr=Math.exp(2*dr))-1)/(dr+1)}var _i=Math.SQRT2,yn=2,Kn=4;et.interpolateZoom=function(dr,Lr){var Hr=dr[0],nn=dr[1],cn=dr[2],vn=Lr[0],Dn=Lr[1],Rn=Lr[2],Yn=vn-Hr,Zn=Dn-nn,to=Yn*Yn+Zn*Zn,Co,Ro;if(to0&&(Ml=Ml.transition().duration(Dn)),Ml.call(bs.event)}function Hl(){Uo&&Uo.domain(ko.range().map(function(Ml){return(Ml-dr.x)/dr.k}).map(ko.invert)),cs&&cs.domain(qo.range().map(function(Ml){return(Ml-dr.y)/dr.k}).map(qo.invert))}function Vl(Ml){Rn++||Ml({type:"zoomstart"})}function Tu(Ml){Hl(),Ml({type:"zoom",scale:dr.k,translate:[dr.x,dr.y]})}function Ql(Ml){--Rn||(Ml({type:"zoomend"}),Hr=null)}function xu(){var Ml=this,vu=ls.of(Ml,arguments),ru=0,Ou=et.select(j(Ml)).on(Zn,Fp).on(to,Pp),cp=as(et.mouse(Ml)),Uu=Wr(Ml);Hn.call(Ml),Vl(vu);function Fp(){ru=1,Gl(et.mouse(Ml),cp),Tu(vu)}function Pp(){Ou.on(Zn,null).on(to,null),Uu(ru),Ql(vu)}}function zu(){var Ml=this,vu=ls.of(Ml,arguments),ru={},Ou=0,cp,Uu=".zoom-"+et.event.changedTouches[0].identifier,Fp="touchmove"+Uu,Pp="touchend"+Uu,Vp=[],lp=et.select(Ml),Wp=Wr(Ml);cu(),Vl(vu),lp.on(Yn,null).on(Ro,cu);function Ol(){var jp=et.touches(Ml);return cp=dr.k,jp.forEach(function(Ku){Ku.identifier in ru&&(ru[Ku.identifier]=as(Ku))}),jp}function cu(){var jp=et.event.target;et.select(jp).on(Fp,Lp).on(Pp,Ev),Vp.push(jp);for(var Ku=et.event.changedTouches,Bp=0,Np=Ku.length;Bp1){var yp=n0[0],N1=n0[1],Fu=yp[0]-N1[0],xp=yp[1]-N1[1];Ou=Fu*Fu+xp*xp}}function Lp(){var jp=et.touches(Ml),Ku,Bp,Np,n0;Hn.call(Ml);for(var a0=0,yp=jp.length;a01?1:Lr,Hr=Hr<0?0:Hr>1?1:Hr,cn=Hr<=.5?Hr*(1+Lr):Hr+Lr-Hr*Lr,nn=2*Hr-cn;function vn(Rn){return Rn>360?Rn-=360:Rn<0&&(Rn+=360),Rn<60?nn+(cn-nn)*Rn/60:Rn<180?cn:Rn<240?nn+(cn-nn)*(240-Rn)/60:nn}function Dn(Rn){return Math.round(vn(Rn)*255)}return new io(Dn(dr+120),Dn(dr),Dn(dr-120))}et.hcl=Ln;function Ln(dr,Lr,Hr){return this instanceof Ln?(this.h=+dr,this.c=+Lr,void(this.l=+Hr)):arguments.length<2?dr instanceof Ln?new Ln(dr.h,dr.c,dr.l):dr instanceof Vn?$n(dr.l,dr.a,dr.b):$n((dr=zo((dr=et.rgb(dr)).r,dr.g,dr.b)).l,dr.a,dr.b):new Ln(dr,Lr,Hr)}var Xn=Ln.prototype=new An;Xn.brighter=function(dr){return new Ln(this.h,this.c,Math.min(100,this.l+ga*(arguments.length?dr:1)))},Xn.darker=function(dr){return new Ln(this.h,this.c,Math.max(0,this.l-ga*(arguments.length?dr:1)))},Xn.rgb=function(){return Wn(this.h,this.c,this.l).rgb()};function Wn(dr,Lr,Hr){return isNaN(dr)&&(dr=0),isNaN(Lr)&&(Lr=0),new Vn(Hr,Math.cos(dr*=qr)*Lr,Math.sin(dr)*Lr)}et.lab=Vn;function Vn(dr,Lr,Hr){return this instanceof Vn?(this.l=+dr,this.a=+Lr,void(this.b=+Hr)):arguments.length<2?dr instanceof Vn?new Vn(dr.l,dr.a,dr.b):dr instanceof Ln?Wn(dr.h,dr.c,dr.l):zo((dr=io(dr)).r,dr.g,dr.b):new Vn(dr,Lr,Hr)}var ga=18,fo=.95047,qn=1,po=1.08883,Yr=Vn.prototype=new An;Yr.brighter=function(dr){return new Vn(Math.min(100,this.l+ga*(arguments.length?dr:1)),this.a,this.b)},Yr.darker=function(dr){return new Vn(Math.max(0,this.l-ga*(arguments.length?dr:1)),this.a,this.b)},Yr.rgb=function(){return jr(this.l,this.a,this.b)};function jr(dr,Lr,Hr){var nn=(dr+16)/116,cn=nn+Lr/500,vn=nn-Hr/200;return cn=Bn(cn)*fo,nn=Bn(nn)*qn,vn=Bn(vn)*po,new io(ro(3.2404542*cn-1.5371385*nn-.4985314*vn),ro(-.969266*cn+1.8760108*nn+.041556*vn),ro(.0556434*cn-.2040259*nn+1.0572252*vn))}function $n(dr,Lr,Hr){return dr>0?new Ln(Math.atan2(Hr,Lr)*rn,Math.sqrt(Lr*Lr+Hr*Hr),dr):new Ln(NaN,NaN,dr)}function Bn(dr){return dr>.206893034?dr*dr*dr:(dr-.13793103448275862)/7.787037}function xa(dr){return dr>.008856?Math.pow(dr,.3333333333333333):7.787037*dr+.13793103448275862}function ro(dr){return Math.round(255*(dr<=.00304?12.92*dr:1.055*Math.pow(dr,.4166666666666667)-.055))}et.rgb=io;function io(dr,Lr,Hr){return this instanceof io?(this.r=~~dr,this.g=~~Lr,void(this.b=~~Hr)):arguments.length<2?dr instanceof io?new io(dr.r,dr.g,dr.b):_o(""+dr,io,In):new io(dr,Lr,Hr)}function eo(dr){return new io(dr>>16,dr>>8&255,dr&255)}function Gn(dr){return eo(dr)+""}var ho=io.prototype=new An;ho.brighter=function(dr){dr=Math.pow(.7,arguments.length?dr:1);var Lr=this.r,Hr=this.g,nn=this.b,cn=30;return!Lr&&!Hr&&!nn?new io(cn,cn,cn):(Lr&&Lr>4,nn=nn>>4|nn,cn=Yn&240,cn=cn>>4|cn,vn=Yn&15,vn=vn<<4|vn):dr.length===7&&(nn=(Yn&16711680)>>16,cn=(Yn&65280)>>8,vn=Yn&255)),Lr(nn,cn,vn))}function co(dr,Lr,Hr){var nn=Math.min(dr/=255,Lr/=255,Hr/=255),cn=Math.max(dr,Lr,Hr),vn=cn-nn,Dn,Rn,Yn=(cn+nn)/2;return vn?(Rn=Yn<.5?vn/(cn+nn):vn/(2-cn-nn),dr==cn?Dn=(Lr-Hr)/vn+(Lr0&&Yn<1?0:Dn),new hn(Dn,Rn,Yn)}function zo(dr,Lr,Hr){dr=Io(dr),Lr=Io(Lr),Hr=Io(Hr);var nn=xa((.4124564*dr+.3575761*Lr+.1804375*Hr)/fo),cn=xa((.2126729*dr+.7151522*Lr+.072175*Hr)/qn),vn=xa((.0193339*dr+.119192*Lr+.9503041*Hr)/po);return Vn(116*cn-16,500*(nn-cn),200*(cn-vn))}function Io(dr){return(dr/=255)<=.04045?dr/12.92:Math.pow((dr+.055)/1.055,2.4)}function Lo(dr){var Lr=parseFloat(dr);return dr.charAt(dr.length-1)==="%"?Math.round(Lr*2.55):Lr}var vs=et.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});vs.forEach(function(dr,Lr){vs.set(dr,eo(Lr))});function Zo(dr){return typeof dr=="function"?dr:function(){return dr}}et.functor=Zo,et.xhr=Ls(Nt);function Ls(dr){return function(Lr,Hr,nn){return arguments.length===2&&typeof Hr=="function"&&(nn=Hr,Hr=null),Ds(Lr,Hr,dr,nn)}}function Ds(dr,Lr,Hr,nn){var cn={},vn=et.dispatch("beforesend","progress","load","error"),Dn={},Rn=new XMLHttpRequest,Yn=null;self.XDomainRequest&&!("withCredentials"in Rn)&&/^(http(s)?:)?\/\//.test(dr)&&(Rn=new XDomainRequest),"onload"in Rn?Rn.onload=Rn.onerror=Zn:Rn.onreadystatechange=function(){Rn.readyState>3&&Zn()};function Zn(){var to=Rn.status,Co;if(!to&&No(Rn)||to>=200&&to<300||to===304){try{Co=Hr.call(cn,Rn)}catch(Ro){vn.error.call(cn,Ro);return}vn.load.call(cn,Co)}else vn.error.call(cn,Rn)}return Rn.onprogress=function(to){var Co=et.event;et.event=to;try{vn.progress.call(cn,Rn)}finally{et.event=Co}},cn.header=function(to,Co){return to=(to+"").toLowerCase(),arguments.length<2?Dn[to]:(Co==null?delete Dn[to]:Dn[to]=Co+"",cn)},cn.mimeType=function(to){return arguments.length?(Lr=to==null?null:to+"",cn):Lr},cn.responseType=function(to){return arguments.length?(Yn=to,cn):Yn},cn.response=function(to){return Hr=to,cn},["get","post"].forEach(function(to){cn[to]=function(){return cn.send.apply(cn,[to].concat(yt(arguments)))}}),cn.send=function(to,Co,Ro){if(arguments.length===2&&typeof Co=="function"&&(Ro=Co,Co=null),Rn.open(to,dr,!0),Lr!=null&&!("accept"in Dn)&&(Dn.accept=Lr+",*/*"),Rn.setRequestHeader)for(var ts in Dn)Rn.setRequestHeader(ts,Dn[ts]);return Lr!=null&&Rn.overrideMimeType&&Rn.overrideMimeType(Lr),Yn!=null&&(Rn.responseType=Yn),Ro!=null&&cn.on("error",Ro).on("load",function(ls){Ro(null,ls)}),vn.beforesend.call(cn,Rn),Rn.send(Co??null),cn},cn.abort=function(){return Rn.abort(),cn},et.rebind(cn,vn,"on"),nn==null?cn:cn.get(bo(nn))}function bo(dr){return dr.length===1?function(Lr,Hr){dr(Lr==null?Hr:null)}:dr}function No(dr){var Lr=dr.responseType;return Lr&&Lr!=="text"?dr.response:dr.responseText}et.dsv=function(dr,Lr){var Hr=new RegExp('["'+dr+` ]`),nn=dr.charCodeAt(0);function cn(Zn,to,Co){arguments.length<3&&(Co=to,to=null);var Ro=Ds(Zn,Lr,to==null?vn:Dn(to),Co);return Ro.row=function(ts){return arguments.length?Ro.response((to=ts)==null?vn:Dn(ts)):to},Ro}function vn(Zn){return cn.parse(Zn.responseText)}function Dn(Zn){return function(to){return cn.parse(to.responseText,Zn)}}cn.parse=function(Zn,to){var Co;return cn.parseRows(Zn,function(Ro,ts){if(Co)return Co(Ro,ts-1);var ls=function(ko){for(var Uo={},qo=Ro.length,cs=0;cs=ls)return Ro;if(cs)return cs=!1,Co;var Rs=ko;if(Zn.charCodeAt(Rs)===34){for(var Ll=Rs;Ll++24?(isFinite(Lr)&&(clearTimeout(gs),gs=setTimeout(Qs,Lr)),ys=0):(ys=1,zs(Qs))}et.timer.flush=function(){Fl(),Jl()};function Fl(){for(var dr=Date.now(),Lr=Yo;Lr;)dr>=Lr.t&&Lr.c(dr-Lr.t)&&(Lr.c=null),Lr=Lr.n;return dr}function Jl(){for(var dr,Lr=Yo,Hr=1/0;Lr;)Lr.c?(Lr.t=0;--Rn)ko.push(cn[Zn[Co[Rn]][2]]);for(Rn=+ts;Rn1&&Cn(dr[Hr[nn-2]],dr[Hr[nn-1]],dr[cn])<=0;)--nn;Hr[nn++]=cn}return Hr.slice(0,nn)}function xo(dr,Lr){return dr[0]-Lr[0]||dr[1]-Lr[1]}et.geom.polygon=function(dr){return rr(dr,Vo),dr};var Vo=et.geom.polygon.prototype=[];Vo.area=function(){for(var dr=-1,Lr=this.length,Hr,nn=this[Lr-1],cn=0;++drDr)Rn=Rn.L;else if(Dn=Lr-us(Rn,Hr),Dn>Dr){if(!Rn.R){nn=Rn;break}Rn=Rn.R}else{vn>-Dr?(nn=Rn.P,cn=Rn):Dn>-Dr?(nn=Rn,cn=Rn.N):nn=cn=Rn;break}var Yn=To(dr);if(Xs.insert(nn,Yn),!(!nn&&!cn)){if(nn===cn){Gs(nn),cn=To(nn.site),Xs.insert(Yn,cn),Yn.edge=cn.edge=zl(nn.site,Yn.site),_s(nn),_s(cn);return}if(!cn){Yn.edge=zl(nn.site,Yn.site);return}Gs(nn),Gs(cn);var Zn=nn.site,to=Zn.x,Co=Zn.y,Ro=dr.x-to,ts=dr.y-Co,ls=cn.site,ko=ls.x-to,Uo=ls.y-Co,qo=2*(Ro*Uo-ts*ko),cs=Ro*Ro+ts*ts,bs=ko*ko+Uo*Uo,as={x:(Uo*cs-ts*bs)/qo+to,y:(Ro*bs-ko*cs)/qo+Co};Zl(cn.edge,Zn,ls,as),Yn.edge=zl(Zn,dr,null,as),cn.edge=zl(dr,ls,null,as),_s(nn),_s(cn)}}function xs(dr,Lr){var Hr=dr.site,nn=Hr.x,cn=Hr.y,vn=cn-Lr;if(!vn)return nn;var Dn=dr.P;if(!Dn)return-1/0;Hr=Dn.site;var Rn=Hr.x,Yn=Hr.y,Zn=Yn-Lr;if(!Zn)return Rn;var to=Rn-nn,Co=1/vn-1/Zn,Ro=to/Zn;return Co?(-Ro+Math.sqrt(Ro*Ro-2*Co*(to*to/(-2*Zn)-Yn+Zn/2+cn-vn/2)))/Co+nn:(nn+Rn)/2}function us(dr,Lr){var Hr=dr.N;if(Hr)return xs(Hr,Lr);var nn=dr.site;return nn.y===Lr?nn.x:1/0}function wo(dr){this.site=dr,this.edges=[]}wo.prototype.prepare=function(){for(var dr=this.edges,Lr=dr.length,Hr;Lr--;)Hr=dr[Lr].edge,(!Hr.b||!Hr.a)&&dr.splice(Lr,1);return dr.sort(Wo),dr.length};function Qo(dr){for(var Lr=dr[0][0],Hr=dr[1][0],nn=dr[0][1],cn=dr[1][1],vn,Dn,Rn,Yn,Zn=Is,to=Zn.length,Co,Ro,ts,ls,ko,Uo;to--;)if(Co=Zn[to],!(!Co||!Co.prepare()))for(ts=Co.edges,ls=ts.length,Ro=0;RoDr||yt(Yn-Dn)>Dr)&&(ts.splice(Ro,0,new ju(Xl(Co.site,Uo,yt(Rn-Lr)Dr?{x:Lr,y:yt(vn-Lr)Dr?{x:yt(Dn-cn)Dr?{x:Hr,y:yt(vn-Hr)Dr?{x:yt(Dn-nn)=-Sr)){var Ro=Yn*Yn+Zn*Zn,ts=to*to+Uo*Uo,ls=(Uo*Ro-Zn*ts)/Co,ko=(Yn*ts-to*Ro)/Co,Uo=ko+Rn,qo=yo.pop()||new rs;qo.arc=dr,qo.site=cn,qo.x=ls+Dn,qo.y=Uo+Math.sqrt(ls*ls+ko*ko),qo.cy=Uo,dr.circle=qo;for(var cs=null,bs=yu._;bs;)if(qo.y0)){if(ko/=ts,ts<0){if(ko0){if(ko>Ro)return;ko>Co&&(Co=ko)}if(ko=Hr-Rn,!(!ts&&ko<0)){if(ko/=ts,ts<0){if(ko>Ro)return;ko>Co&&(Co=ko)}else if(ts>0){if(ko0)){if(ko/=ls,ls<0){if(ko0){if(ko>Ro)return;ko>Co&&(Co=ko)}if(ko=nn-Yn,!(!ls&&ko<0)){if(ko/=ls,ls<0){if(ko>Ro)return;ko>Co&&(Co=ko)}else if(ls>0){if(ko0&&(cn.a={x:Rn+Co*ts,y:Yn+Co*ls}),Ro<1&&(cn.b={x:Rn+Ro*ts,y:Yn+Ro*ls}),cn}}}}}}function Ks(dr){for(var Lr=ws,Hr=Cs(dr[0][0],dr[0][1],dr[1][0],dr[1][1]),nn=Lr.length,cn;nn--;)cn=Lr[nn],(!Ys(cn,dr)||!Hr(cn)||yt(cn.a.x-cn.b.x)=vn)return;if(to>Ro){if(!nn)nn={x:ls,y:Dn};else if(nn.y>=Rn)return;Hr={x:ls,y:Rn}}else{if(!nn)nn={x:ls,y:Rn};else if(nn.y1)if(to>Ro){if(!nn)nn={x:(Dn-qo)/Uo,y:Dn};else if(nn.y>=Rn)return;Hr={x:(Rn-qo)/Uo,y:Rn}}else{if(!nn)nn={x:(Rn-qo)/Uo,y:Rn};else if(nn.y=vn)return;Hr={x:vn,y:Uo*vn+qo}}else{if(!nn)nn={x:vn,y:Uo*vn+qo};else if(nn.x=to&&qo.x<=Ro&&qo.y>=Co&&qo.y<=ts?[[to,ts],[Ro,ts],[Ro,Co],[to,Co]]:[];cs.point=Yn[ko]}),Zn}function Rn(Yn){return Yn.map(function(Zn,to){return{x:Math.round(nn(Zn,to)/Dr)*Dr,y:Math.round(cn(Zn,to)/Dr)*Dr,i:to}})}return Dn.links=function(Yn){return Fm(Rn(Yn)).edges.filter(function(Zn){return Zn.l&&Zn.r}).map(function(Zn){return{source:Yn[Zn.l.i],target:Yn[Zn.r.i]}})},Dn.triangles=function(Yn){var Zn=[];return Fm(Rn(Yn)).cells.forEach(function(to,Co){for(var Ro=to.site,ts=to.edges.sort(Wo),ls=-1,ko=ts.length,Uo,qo=ts[ko-1].edge,cs=qo.l===Ro?qo.r:qo.l;++lsbs&&(bs=to.x),to.y>as&&(as=to.y),ts.push(to.x),ls.push(to.y);else for(ko=0;kobs&&(bs=Rs),Ll>as&&(as=Ll),ts.push(Rs),ls.push(Ll)}var Gl=bs-qo,Rl=as-cs;Gl>Rl?as=cs+Gl:bs=qo+Rl;function Hl(Ql,xu,zu,wp,Xu,Ml,vu,ru){if(!(isNaN(zu)||isNaN(wp)))if(Ql.leaf){var Ou=Ql.x,cp=Ql.y;if(Ou!=null)if(yt(Ou-zu)+yt(cp-wp)<.01)Vl(Ql,xu,zu,wp,Xu,Ml,vu,ru);else{var Uu=Ql.point;Ql.x=Ql.y=Ql.point=null,Vl(Ql,Uu,Ou,cp,Xu,Ml,vu,ru),Vl(Ql,xu,zu,wp,Xu,Ml,vu,ru)}else Ql.x=zu,Ql.y=wp,Ql.point=xu}else Vl(Ql,xu,zu,wp,Xu,Ml,vu,ru)}function Vl(Ql,xu,zu,wp,Xu,Ml,vu,ru){var Ou=(Xu+vu)*.5,cp=(Ml+ru)*.5,Uu=zu>=Ou,Fp=wp>=cp,Pp=Fp<<1|Uu;Ql.leaf=!1,Ql=Ql.nodes[Pp]||(Ql.nodes[Pp]=av()),Uu?Xu=Ou:vu=Ou,Fp?Ml=cp:ru=cp,Hl(Ql,xu,zu,wp,Xu,Ml,vu,ru)}var Tu=av();if(Tu.add=function(Ql){Hl(Tu,Ql,+Co(Ql,++ko),+Ro(Ql,ko),qo,cs,bs,as)},Tu.visit=function(Ql){C0(Ql,Tu,qo,cs,bs,as)},Tu.find=function(Ql){return f1(Tu,Ql[0],Ql[1],qo,cs,bs,as)},ko=-1,Lr==null){for(;++kovn||Ro>Dn||ts=Rs,Rl=Hr>=Ll,Hl=Rl<<1|Gl,Vl=Hl+4;HlHr&&(vn=Lr.slice(Hr,vn),Rn[Dn]?Rn[Dn]+=vn:Rn[++Dn]=vn),(nn=nn[0])===(cn=cn[0])?Rn[Dn]?Rn[Dn]+=cn:Rn[++Dn]=cn:(Rn[++Dn]=null,Yn.push({i:Dn,x:_p(nn,cn)})),Hr=$p.lastIndex;return Hr=0&&!(nn=et.interpolators[Hr](dr,Lr)););return nn}et.interpolators=[function(dr,Lr){var Hr=typeof Lr;return(Hr==="string"?vs.has(Lr.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(Lr)?Ap:kp:Lr instanceof An?Ap:Array.isArray(Lr)?lv:Hr==="object"&&isNaN(Lr)?d1:_p)(dr,Lr)}],et.interpolateArray=lv;function lv(dr,Lr){var Hr=[],nn=[],cn=dr.length,vn=Lr.length,Dn=Math.min(dr.length,Lr.length),Rn;for(Rn=0;Rn=0?dr.slice(0,Lr):dr,nn=Lr>=0?dr.slice(Lr+1):"in";return Hr=uv.get(Hr)||p1,nn=iy.get(nn)||Nt,qv(nn(Hr.apply(null,Et.call(arguments,1))))};function qv(dr){return function(Lr){return Lr<=0?0:Lr>=1?1:dr(Lr)}}function Hp(dr){return function(Lr){return 1-dr(1-Lr)}}function Um(dr){return function(Lr){return .5*(Lr<.5?dr(2*Lr):2-dr(2-2*Lr))}}function R0(dr){return dr*dr}function _g(dr){return dr*dr*dr}function M0(dr){if(dr<=0)return 0;if(dr>=1)return 1;var Lr=dr*dr,Hr=Lr*dr;return 4*(dr<.5?Hr:3*(dr-Lr)+Hr-.75)}function oy(dr){return function(Lr){return Math.pow(Lr,dr)}}function wy(dr){return 1-Math.cos(dr*Vr)}function v1(dr){return Math.pow(2,10*(dr-1))}function sy(dr){return 1-Math.sqrt(1-dr*dr)}function I0(dr,Lr){var Hr;return arguments.length<2&&(Lr=.45),arguments.length?Hr=Lr/xr*Math.asin(1/dr):(dr=1,Hr=Lr/4),function(nn){return 1+dr*Math.pow(2,-10*nn)*Math.sin((nn-Hr)*xr/Lr)}}function mm(dr){return dr||(dr=1.70158),function(Lr){return Lr*Lr*((dr+1)*Lr-dr)}}function $m(dr){return dr<.36363636363636365?7.5625*dr*dr:dr<.7272727272727273?7.5625*(dr-=.5454545454545454)*dr+.75:dr<.9090909090909091?7.5625*(dr-=.8181818181818182)*dr+.9375:7.5625*(dr-=.9545454545454546)*dr+.984375}et.interpolateHcl=Cy;function Cy(dr,Lr){dr=et.hcl(dr),Lr=et.hcl(Lr);var Hr=dr.h,nn=dr.c,cn=dr.l,vn=Lr.h-Hr,Dn=Lr.c-nn,Rn=Lr.l-cn;return isNaN(Dn)&&(Dn=0,nn=isNaN(nn)?Lr.c:nn),isNaN(vn)?(vn=0,Hr=isNaN(Hr)?Lr.h:Hr):vn>180?vn-=360:vn<-180&&(vn+=360),function(Yn){return Wn(Hr+vn*Yn,nn+Dn*Yn,cn+Rn*Yn)+""}}et.interpolateHsl=Ry;function Ry(dr,Lr){dr=et.hsl(dr),Lr=et.hsl(Lr);var Hr=dr.h,nn=dr.s,cn=dr.l,vn=Lr.h-Hr,Dn=Lr.s-nn,Rn=Lr.l-cn;return isNaN(Dn)&&(Dn=0,nn=isNaN(nn)?Lr.s:nn),isNaN(vn)?(vn=0,Hr=isNaN(Hr)?Lr.h:Hr):vn>180?vn-=360:vn<-180&&(vn+=360),function(Yn){return In(Hr+vn*Yn,nn+Dn*Yn,cn+Rn*Yn)+""}}et.interpolateLab=H0;function H0(dr,Lr){dr=et.lab(dr),Lr=et.lab(Lr);var Hr=dr.l,nn=dr.a,cn=dr.b,vn=Lr.l-Hr,Dn=Lr.a-nn,Rn=Lr.b-cn;return function(Yn){return Wr(Hr+vn*Yn,nn+Dn*Yn,cn+Rn*Yn)+""}}et.interpolateRound=Pv;function Pv(dr,Lr){return Lr-=dr,function(Hr){return Math.round(dr+Lr*Hr)}}et.transform=function(dr){var Lr=ut.createElementNS(et.ns.prefix.svg,"g");return(et.transform=function(Hr){if(Hr!=null){Lr.setAttribute("transform",Hr);var nn=Lr.transform.baseVal.consolidate()}return new k0(nn?nn.matrix:ly)})(dr)};function k0(dr){var Lr=[dr.a,dr.b],Hr=[dr.c,dr.d],nn=V1(Lr),cn=g1(Lr,Hr),vn=V1(W1(Hr,Lr,-cn))||0;Lr[0]*Hr[1]180?Lr+=360:Lr-dr>180&&(dr+=360),nn.push({i:Hr.push(h0(Hr)+"rotate(",null,")")-2,x:_p(dr,Lr)})):Lr&&Hr.push(h0(Hr)+"rotate("+Lr+")")}function xl(dr,Lr,Hr,nn){dr!==Lr?nn.push({i:Hr.push(h0(Hr)+"skewX(",null,")")-2,x:_p(dr,Lr)}):Lr&&Hr.push(h0(Hr)+"skewX("+Lr+")")}function Js(dr,Lr,Hr,nn){if(dr[0]!==Lr[0]||dr[1]!==Lr[1]){var cn=Hr.push(h0(Hr)+"scale(",null,",",null,")");nn.push({i:cn-4,x:_p(dr[0],Lr[0])},{i:cn-2,x:_p(dr[1],Lr[1])})}else(Lr[0]!==1||Lr[1]!==1)&&Hr.push(h0(Hr)+"scale("+Lr+")")}function fu(dr,Lr){var Hr=[],nn=[];return dr=et.transform(dr),Lr=et.transform(Lr),m1(dr.translate,Lr.translate,Hr,nn),Ts(dr.rotate,Lr.rotate,Hr,nn),xl(dr.skew,Lr.skew,Hr,nn),Js(dr.scale,Lr.scale,Hr,nn),dr=Lr=null,function(cn){for(var vn=-1,Dn=nn.length,Rn;++vn0?vn=as:(Hr.c=null,Hr.t=NaN,Hr=null,Lr.end({type:"end",alpha:vn=0})):as>0&&(Lr.start({type:"start",alpha:vn=as}),Hr=Us(dr.tick)),dr):vn},dr.start=function(){var as,Rs=ts.length,Ll=ls.length,Gl=nn[0],Rl=nn[1],Hl,Vl;for(as=0;as=0;)vn.push(to=Zn[Yn]),to.parent=Rn,to.depth=Rn.depth+1;Hr&&(Rn.value=0),Rn.children=Zn}else Hr&&(Rn.value=+Hr.call(nn,Rn,Rn.depth)||0),delete Rn.children;return Zp(cn,function(Co){var Ro,ts;dr&&(Ro=Co.children)&&Ro.sort(dr),Hr&&(ts=Co.parent)&&(ts.value+=Co.value)}),Dn}return nn.sort=function(cn){return arguments.length?(dr=cn,nn):dr},nn.children=function(cn){return arguments.length?(Lr=cn,nn):Lr},nn.value=function(cn){return arguments.length?(Hr=cn,nn):Hr},nn.revalue=function(cn){return Hr&&(G0(cn,function(vn){vn.children&&(vn.value=0)}),Zp(cn,function(vn){var Dn;vn.children||(vn.value=+Hr.call(nn,vn,vn.depth)||0),(Dn=vn.parent)&&(Dn.value+=vn.value)})),cn},nn};function x1(dr,Lr){return et.rebind(dr,Lr,"sort","children","value"),dr.nodes=dr,dr.links=Em,dr}function G0(dr,Lr){for(var Hr=[dr];(dr=Hr.pop())!=null;)if(Lr(dr),(cn=dr.children)&&(nn=cn.length))for(var nn,cn;--nn>=0;)Hr.push(cn[nn])}function Zp(dr,Lr){for(var Hr=[dr],nn=[];(dr=Hr.pop())!=null;)if(nn.push(dr),(Dn=dr.children)&&(vn=Dn.length))for(var cn=-1,vn,Dn;++cncn&&(cn=Rn),nn.push(Rn)}for(Dn=0;Dnnn&&(Hr=Lr,nn=cn);return Hr}function D0(dr){return dr.reduce(gv,0)}function gv(dr,Lr){return dr+Lr[1]}et.layout.histogram=function(){var dr=!0,Lr=Number,Hr=W0,nn=uy;function cn(vn,Ro){for(var Rn=[],Yn=vn.map(Lr,this),Zn=Hr.call(this,Yn,Ro),to=nn.call(this,Zn,Yn,Ro),Co,Ro=-1,ts=Yn.length,ls=to.length-1,ko=dr?1:1/ts,Uo;++Ro0)for(Ro=-1;++Ro=Zn[0]&&Uo<=Zn[1]&&(Co=Rn[et.bisect(to,Uo,1,ls)-1],Co.y+=ko,Co.push(vn[Ro]));return Rn}return cn.value=function(vn){return arguments.length?(Lr=vn,cn):Lr},cn.range=function(vn){return arguments.length?(Hr=Zo(vn),cn):Hr},cn.bins=function(vn){return arguments.length?(nn=typeof vn=="number"?function(Dn){return Hm(Dn,vn)}:Zo(vn),cn):nn},cn.frequency=function(vn){return arguments.length?(dr=!!vn,cn):dr},cn};function uy(dr,Lr){return Hm(dr,Math.ceil(Math.log(Lr.length)/Math.LN2+1))}function Hm(dr,Lr){for(var Hr=-1,nn=+dr[0],cn=(dr[1]-nn)/Lr,vn=[];++Hr<=Lr;)vn[Hr]=cn*Hr+nn;return vn}function W0(dr){return[et.min(dr),et.max(dr)]}et.layout.pack=function(){var dr=et.layout.hierarchy().sort(Hv),Lr=0,Hr=[1,1],nn;function cn(vn,Dn){var Rn=dr.call(this,vn,Dn),Yn=Rn[0],Zn=Hr[0],to=Hr[1],Co=nn==null?Math.sqrt:typeof nn=="function"?nn:function(){return nn};if(Yn.x=Yn.y=0,Zp(Yn,function(ts){ts.r=+Co(ts.value)}),Zp(Yn,Nv),Lr){var Ro=Lr*(nn?1:Math.max(2*Yn.r/Zn,2*Yn.r/to))/2;Zp(Yn,function(ts){ts.r+=Ro}),Zp(Yn,Nv),Zp(Yn,function(ts){ts.r-=Ro})}return pp(Yn,Zn/2,to/2,nn?1:1/Math.max(2*Yn.r/Zn,2*Yn.r/to)),Rn}return cn.size=function(vn){return arguments.length?(Hr=vn,cn):Hr},cn.radius=function(vn){return arguments.length?(nn=vn==null||typeof vn=="function"?vn:+vn,cn):nn},cn.padding=function(vn){return arguments.length?(Lr=+vn,cn):Lr},x1(cn,dr)};function Hv(dr,Lr){return dr.value-Lr.value}function j0(dr,Lr){var Hr=dr._pack_next;dr._pack_next=Lr,Lr._pack_prev=dr,Lr._pack_next=Hr,Hr._pack_prev=Lr}function Ep(dr,Lr){dr._pack_next=Lr,Lr._pack_prev=dr}function X1(dr,Lr){var Hr=Lr.x-dr.x,nn=Lr.y-dr.y,cn=dr.r+Lr.r;return .999*cn*cn>Hr*Hr+nn*nn}function Nv(dr){if(!(Lr=dr.children)||!(Ro=Lr.length))return;var Lr,Hr=1/0,nn=-1/0,cn=1/0,vn=-1/0,Dn,Rn,Yn,Zn,to,Co,Ro;function ts(as){Hr=Math.min(as.x-as.r,Hr),nn=Math.max(as.x+as.r,nn),cn=Math.min(as.y-as.r,cn),vn=Math.max(as.y+as.r,vn)}if(Lr.forEach(g0),Dn=Lr[0],Dn.x=-Dn.r,Dn.y=0,ts(Dn),Ro>1&&(Rn=Lr[1],Rn.x=Rn.r,Rn.y=0,ts(Rn),Ro>2))for(Yn=Lr[2],vp(Dn,Rn,Yn),ts(Yn),j0(Dn,Yn),Dn._pack_prev=Yn,j0(Yn,Rn),Rn=Dn._pack_next,Zn=3;ZnUo.x&&(Uo=Rs),Rs.depth>qo.depth&&(qo=Rs)});var cs=Lr(ko,Uo)/2-ko.x,bs=Hr[0]/(Uo.x+Lr(Uo,ko)/2+cs),as=Hr[1]/(qo.depth||1);G0(ts,function(Rs){Rs.x=(Rs.x+cs)*bs,Rs.y=Rs.depth*as})}return Ro}function vn(to){for(var Co={A:null,children:[to]},Ro=[Co],ts;(ts=Ro.pop())!=null;)for(var ls=ts.children,ko,Uo=0,qo=ls.length;Uo0&&(K1(Z1(ko,to,Ro),to,Rs),qo+=Rs,cs+=Rs),bs+=ko.m,qo+=ts.m,as+=Uo.m,cs+=ls.m;ko&&!wv(ls)&&(ls.t=ko,ls.m+=bs-cs),ts&&!Gv(Uo)&&(Uo.t=ts,Uo.m+=qo-as,Ro=to)}return Ro}function Zn(to){to.x*=Hr[0],to.y=to.depth*Hr[1]}return cn.separation=function(to){return arguments.length?(Lr=to,cn):Lr},cn.size=function(to){return arguments.length?(nn=(Hr=to)==null?Zn:null,cn):nn?null:Hr},cn.nodeSize=function(to){return arguments.length?(nn=(Hr=to)==null?null:Zn,cn):nn?Hr:null},x1(cn,dr)};function m0(dr,Lr){return dr.parent==Lr.parent?1:2}function Gv(dr){var Lr=dr.children;return Lr.length?Lr[0]:dr.t}function wv(dr){var Lr=dr.children,Hr;return(Hr=Lr.length)?Lr[Hr-1]:dr.t}function K1(dr,Lr,Hr){var nn=Hr/(Lr.i-dr.i);Lr.c-=nn,Lr.s+=Hr,dr.c+=nn,Lr.z+=Hr,Lr.m+=Hr}function Gm(dr){for(var Lr=0,Hr=0,nn=dr.children,cn=nn.length,vn;--cn>=0;)vn=nn[cn],vn.z+=Lr,vn.m+=Lr,Lr+=vn.s+(Hr+=vn.c)}function Z1(dr,Lr,Hr){return dr.a.parent===Lr.parent?dr.a:Hr}et.layout.cluster=function(){var dr=et.layout.hierarchy().sort(null).value(null),Lr=m0,Hr=[1,1],nn=!1;function cn(vn,Dn){var Rn=dr.call(this,vn,Dn),Yn=Rn[0],Zn,to=0;Zp(Yn,function(ko){var Uo=ko.children;Uo&&Uo.length?(ko.x=A1(Uo),ko.y=Vm(Uo)):(ko.x=Zn?to+=Lr(ko,Zn):0,ko.y=0,Zn=ko)});var Co=X0(Yn),Ro=_1(Yn),ts=Co.x-Lr(Co,Ro)/2,ls=Ro.x+Lr(Ro,Co)/2;return Zp(Yn,nn?function(ko){ko.x=(ko.x-Yn.x)*Hr[0],ko.y=(Yn.y-ko.y)*Hr[1]}:function(ko){ko.x=(ko.x-ts)/(ls-ts)*Hr[0],ko.y=(1-(Yn.y?ko.y/Yn.y:1))*Hr[1]}),Rn}return cn.separation=function(vn){return arguments.length?(Lr=vn,cn):Lr},cn.size=function(vn){return arguments.length?(nn=(Hr=vn)==null,cn):nn?null:Hr},cn.nodeSize=function(vn){return arguments.length?(nn=(Hr=vn)!=null,cn):nn?Hr:null},x1(cn,dr)};function Vm(dr){return 1+et.max(dr,function(Lr){return Lr.y})}function A1(dr){return dr.reduce(function(Lr,Hr){return Lr+Hr.x},0)/dr.length}function X0(dr){var Lr=dr.children;return Lr&&Lr.length?X0(Lr[0]):dr}function _1(dr){var Lr=dr.children,Hr;return Lr&&(Hr=Lr.length)?_1(Lr[Hr-1]):dr}et.layout.treemap=function(){var dr=et.layout.hierarchy(),Lr=Math.round,Hr=[1,1],nn=null,cn=y0,vn=!1,Dn,Rn="squarify",Yn=.5*(1+Math.sqrt(5));function Zn(ko,Uo){for(var qo=-1,cs=ko.length,bs,as;++qo0;)cs.push(as=bs[Rl-1]),cs.area+=as.area,Rn!=="squarify"||(Ll=Ro(cs,Gl))<=Rs?(bs.pop(),Rs=Ll):(cs.area-=cs.pop().area,ts(cs,Gl,qo,!1),Gl=Math.min(qo.dx,qo.dy),cs.length=cs.area=0,Rs=1/0);cs.length&&(ts(cs,Gl,qo,!0),cs.length=cs.area=0),Uo.forEach(to)}}function Co(ko){var Uo=ko.children;if(Uo&&Uo.length){var qo=cn(ko),cs=Uo.slice(),bs,as=[];for(Zn(cs,qo.dx*qo.dy/ko.value),as.area=0;bs=cs.pop();)as.push(bs),as.area+=bs.area,bs.z!=null&&(ts(as,bs.z?qo.dx:qo.dy,qo,!cs.length),as.length=as.area=0);Uo.forEach(Co)}}function Ro(ko,Uo){for(var qo=ko.area,cs,bs=0,as=1/0,Rs=-1,Ll=ko.length;++Rsbs&&(bs=cs));return qo*=qo,Uo*=Uo,qo?Math.max(Uo*bs*Yn/qo,qo/(Uo*as*Yn)):1/0}function ts(ko,Uo,qo,cs){var bs=-1,as=ko.length,Rs=qo.x,Ll=qo.y,Gl=Uo?Lr(ko.area/Uo):0,Rl;if(Uo==qo.dx){for((cs||Gl>qo.dy)&&(Gl=qo.dy);++bsqo.dx)&&(Gl=qo.dx);++bs1);return dr+Lr*nn*Math.sqrt(-2*Math.log(vn)/vn)}},logNormal:function(){var dr=et.random.normal.apply(et,arguments);return function(){return Math.exp(dr())}},bates:function(dr){var Lr=et.random.irwinHall(dr);return function(){return Lr()/dr}},irwinHall:function(dr){return function(){for(var Lr=0,Hr=0;Hr2?w1:cy,Zn=nn?Yu:Su;return cn=Yn(dr,Lr,Zn,Hr),vn=Yn(Lr,dr,Zn,op),Rn}function Rn(Yn){return cn(Yn)}return Rn.invert=function(Yn){return vn(Yn)},Rn.domain=function(Yn){return arguments.length?(dr=Yn.map(Number),Dn()):dr},Rn.range=function(Yn){return arguments.length?(Lr=Yn,Dn()):Lr},Rn.rangeRound=function(Yn){return Rn.range(Yn).interpolate(Pv)},Rn.clamp=function(Yn){return arguments.length?(nn=Yn,Dn()):nn},Rn.interpolate=function(Yn){return arguments.length?(Hr=Yn,Dn()):Hr},Rn.ticks=function(Yn){return Mp(dr,Yn)},Rn.tickFormat=function(Yn,Zn){return d3_scale_linearTickFormat(dr,Yn,Zn)},Rn.nice=function(Yn){return K0(dr,Yn),Dn()},Rn.copy=function(){return Wm(dr,Lr,Hr,nn)},Dn()}function Ao(dr,Lr){return et.rebind(dr,Lr,"range","rangeRound","interpolate","clamp")}function K0(dr,Lr){return J1(dr,x0(Gp(dr,Lr)[2])),J1(dr,x0(Gp(dr,Lr)[2])),dr}function Gp(dr,Lr){Lr==null&&(Lr=10);var Hr=Cv(dr),nn=Hr[1]-Hr[0],cn=Math.pow(10,Math.floor(Math.log(nn/Lr)/Math.LN10)),vn=Lr/nn*cn;return vn<=.15?cn*=10:vn<=.35?cn*=5:vn<=.75&&(cn*=2),Hr[0]=Math.ceil(Hr[0]/cn)*cn,Hr[1]=Math.floor(Hr[1]/cn)*cn+cn*.5,Hr[2]=cn,Hr}function Mp(dr,Lr){return et.range.apply(et,Gp(dr,Lr))}et.scale.log=function(){return Lu(et.scale.linear().domain([0,1]),10,!0,[1,10])};function Lu(dr,Lr,Hr,nn){function cn(Rn){return(Hr?Math.log(Rn<0?0:Rn):-Math.log(Rn>0?0:-Rn))/Math.log(Lr)}function vn(Rn){return Hr?Math.pow(Lr,Rn):-Math.pow(Lr,-Rn)}function Dn(Rn){return dr(cn(Rn))}return Dn.invert=function(Rn){return vn(dr.invert(Rn))},Dn.domain=function(Rn){return arguments.length?(Hr=Rn[0]>=0,dr.domain((nn=Rn.map(Number)).map(cn)),Dn):nn},Dn.base=function(Rn){return arguments.length?(Lr=+Rn,dr.domain(nn.map(cn)),Dn):Lr},Dn.nice=function(){var Rn=J1(nn.map(cn),Hr?Math:C1);return dr.domain(Rn),nn=Rn.map(vn),Dn},Dn.ticks=function(){var Rn=Cv(nn),Yn=[],Zn=Rn[0],to=Rn[1],Co=Math.floor(cn(Zn)),Ro=Math.ceil(cn(to)),ts=Lr%1?2:Lr;if(isFinite(Ro-Co)){if(Hr){for(;Co0;ls--)Yn.push(vn(Co)*ls);for(Co=0;Yn[Co]to;Ro--);Yn=Yn.slice(Co,Ro)}return Yn},Dn.copy=function(){return Lu(dr.copy(),Lr,Hr,nn)},Ao(Dn,dr)}var C1={floor:function(dr){return-Math.ceil(-dr)},ceil:function(dr){return-Math.floor(-dr)}};et.scale.pow=function(){return _m(et.scale.linear(),1,[0,1])};function _m(dr,Lr,Hr){var nn=Z0(Lr),cn=Z0(1/Lr);function vn(Dn){return dr(nn(Dn))}return vn.invert=function(Dn){return cn(dr.invert(Dn))},vn.domain=function(Dn){return arguments.length?(dr.domain((Hr=Dn.map(Number)).map(nn)),vn):Hr},vn.ticks=function(Dn){return Mp(Hr,Dn)},vn.tickFormat=function(Dn,Rn){return d3_scale_linearTickFormat(Hr,Dn,Rn)},vn.nice=function(Dn){return vn.domain(K0(Hr,Dn))},vn.exponent=function(Dn){return arguments.length?(nn=Z0(Lr=Dn),cn=Z0(1/Lr),dr.domain(Hr.map(nn)),vn):Lr},vn.copy=function(){return _m(dr.copy(),Lr,Hr)},Ao(vn,dr)}function Z0(dr){return function(Lr){return Lr<0?-Math.pow(-Lr,dr):Math.pow(Lr,dr)}}et.scale.sqrt=function(){return et.scale.pow().exponent(.5)},et.scale.ordinal=function(){return Rv([],{t:"range",a:[[]]})};function Rv(dr,Lr){var Hr,nn,cn;function vn(Rn){return nn[((Hr.get(Rn)||(Lr.t==="range"?Hr.set(Rn,dr.push(Rn)):NaN))-1)%nn.length]}function Dn(Rn,Yn){return et.range(dr.length).map(function(Zn){return Rn+Yn*Zn})}return vn.domain=function(Rn){if(!arguments.length)return dr;dr=[],Hr=new Mt;for(var Yn=-1,Zn=Rn.length,to;++Yn0?Hr[vn-1]:dr[0],vnRo?0:1;if(to=Pr)return Yn(to,ls)+(Zn?Yn(Zn,1-ls):"")+"Z";var ko,Uo,qo,cs,bs=0,as=0,Rs,Ll,Gl,Rl,Hl,Vl,Tu,Ql,xu=[];if((cs=(+Dn.apply(this,arguments)||0)/2)&&(qo=nn===Sm?Math.sqrt(Zn*Zn+to*to):+nn.apply(this,arguments),ls||(as*=-1),to&&(as=xn(qo/to*Math.sin(cs))),Zn&&(bs=xn(qo/Zn*Math.sin(cs)))),to){Rs=to*Math.cos(Co+as),Ll=to*Math.sin(Co+as),Gl=to*Math.cos(Ro-as),Rl=to*Math.sin(Ro-as);var zu=Math.abs(Ro-Co-2*as)<=ur?0:1;if(as&&q1(Rs,Ll,Gl,Rl)===ls^zu){var wp=(Co+Ro)/2;Rs=to*Math.cos(wp),Ll=to*Math.sin(wp),Gl=Rl=null}}else Rs=Ll=0;if(Zn){Hl=Zn*Math.cos(Ro-bs),Vl=Zn*Math.sin(Ro-bs),Tu=Zn*Math.cos(Co+bs),Ql=Zn*Math.sin(Co+bs);var Xu=Math.abs(Co-Ro+2*bs)<=ur?0:1;if(bs&&q1(Hl,Vl,Tu,Ql)===1-ls^Xu){var Ml=(Co+Ro)/2;Hl=Zn*Math.cos(Ml),Vl=Zn*Math.sin(Ml),Tu=Ql=null}}else Hl=Vl=0;if(ts>Dr&&(ko=Math.min(Math.abs(to-Zn)/2,+Hr.apply(this,arguments)))>.001){Uo=Zn0?0:1}function em(dr,Lr,Hr,nn,cn){var vn=dr[0]-Lr[0],Dn=dr[1]-Lr[1],Rn=(cn?nn:-nn)/Math.sqrt(vn*vn+Dn*Dn),Yn=Rn*Dn,Zn=-Rn*vn,to=dr[0]+Yn,Co=dr[1]+Zn,Ro=Lr[0]+Yn,ts=Lr[1]+Zn,ls=(to+Ro)/2,ko=(Co+ts)/2,Uo=Ro-to,qo=ts-Co,cs=Uo*Uo+qo*qo,bs=Hr-nn,as=to*ts-Ro*Co,Rs=(qo<0?-1:1)*Math.sqrt(Math.max(0,bs*bs*cs-as*as)),Ll=(as*qo-Uo*Rs)/cs,Gl=(-as*Uo-qo*Rs)/cs,Rl=(as*qo+Uo*Rs)/cs,Hl=(-as*Uo+qo*Rs)/cs,Vl=Ll-ls,Tu=Gl-ko,Ql=Rl-ls,xu=Hl-ko;return Vl*Vl+Tu*Tu>Ql*Ql+xu*xu&&(Ll=Rl,Gl=Hl),[[Ll-Yn,Gl-Zn],[Ll*Hr/bs,Gl*Hr/bs]]}function yv(){return!0}function tm(dr){var Lr=nu,Hr=Yl,nn=yv,cn=sp,vn=cn.key,Dn=.7;function Rn(Yn){var Zn=[],to=[],Co=-1,Ro=Yn.length,ts,ls=Zo(Lr),ko=Zo(Hr);function Uo(){Zn.push("M",cn(dr(to),Dn))}for(;++Co1?dr.join("L"):dr+"Z"}function r0(dr){return dr.join("L")+"Z"}function Ym(dr){for(var Lr=0,Hr=dr.length,nn=dr[0],cn=[nn[0],",",nn[1]];++Lr1&&cn.push("H",nn[0]),cn.join("")}function J0(dr){for(var Lr=0,Hr=dr.length,nn=dr[0],cn=[nn[0],",",nn[1]];++Lr1){Rn=Lr[1],vn=dr[Yn],Yn++,nn+="C"+(cn[0]+Dn[0])+","+(cn[1]+Dn[1])+","+(vn[0]-Rn[0])+","+(vn[1]-Rn[1])+","+vn[0]+","+vn[1];for(var Zn=2;Zn9&&(vn=Hr*3/Math.sqrt(vn),Dn[Rn]=vn*nn,Dn[Rn+1]=vn*cn));for(Rn=-1;++Rn<=Yn;)vn=(dr[Math.min(Yn,Rn+1)][0]-dr[Math.max(0,Rn-1)][0])/(6*(1+Dn[Rn]*Dn[Rn])),Lr.push([vn||0,Dn[Rn]*vn||0]);return Lr}function om(dr){return dr.length<3?sp(dr):dr[0]+iv(dr,L1(dr))}et.svg.line.radial=function(){var dr=tm(D1);return dr.radius=dr.x,delete dr.x,dr.angle=dr.y,delete dr.y,dr};function D1(dr){for(var Lr,Hr=-1,nn=dr.length,cn,vn;++Hrur)+",1 "+Co}function Zn(to,Co,Ro,ts){return"Q 0,0 "+ts}return vn.radius=function(to){return arguments.length?(Hr=Zo(to),vn):Hr},vn.source=function(to){return arguments.length?(dr=Zo(to),vn):dr},vn.target=function(to){return arguments.length?(Lr=Zo(to),vn):Lr},vn.startAngle=function(to){return arguments.length?(nn=Zo(to),vn):nn},vn.endAngle=function(to){return arguments.length?(cn=Zo(to),vn):cn},vn};function P1(dr){return dr.radius}et.svg.diagonal=function(){var dr=Rm,Lr=Q0,Hr=sm;function nn(cn,vn){var Dn=dr.call(this,cn,vn),Rn=Lr.call(this,cn,vn),Yn=(Dn.y+Rn.y)/2,Zn=[Dn,{x:Dn.x,y:Yn},{x:Rn.x,y:Yn},Rn];return Zn=Zn.map(Hr),"M"+Zn[0]+"C"+Zn[1]+" "+Zn[2]+" "+Zn[3]}return nn.source=function(cn){return arguments.length?(dr=Zo(cn),nn):dr},nn.target=function(cn){return arguments.length?(Lr=Zo(cn),nn):Lr},nn.projection=function(cn){return arguments.length?(Hr=cn,nn):Hr},nn};function sm(dr){return[dr.x,dr.y]}et.svg.diagonal.radial=function(){var dr=et.svg.diagonal(),Lr=sm,Hr=dr.projection;return dr.projection=function(nn){return arguments.length?Hr(Km(Lr=nn)):Lr},dr};function Km(dr){return function(){var Lr=dr.apply(this,arguments),Hr=Lr[0],nn=Lr[1]-Vr;return[Hr*Math.cos(nn),Hr*Math.sin(nn)]}}et.svg.symbol=function(){var dr=dn,Lr=Zr;function Hr(nn,cn){return(Sn.get(dr.call(this,nn,cn))||_n)(Lr.call(this,nn,cn))}return Hr.type=function(nn){return arguments.length?(dr=Zo(nn),Hr):dr},Hr.size=function(nn){return arguments.length?(Lr=Zo(nn),Hr):Lr},Hr};function Zr(){return 64}function dn(){return"circle"}function _n(dr){var Lr=Math.sqrt(dr/ur);return"M0,"+Lr+"A"+Lr+","+Lr+" 0 1,1 0,"+-Lr+"A"+Lr+","+Lr+" 0 1,1 0,"+Lr+"Z"}var Sn=et.map({circle:_n,cross:function(dr){var Lr=Math.sqrt(dr/5)/2;return"M"+-3*Lr+","+-Lr+"H"+-Lr+"V"+-3*Lr+"H"+Lr+"V"+-Lr+"H"+3*Lr+"V"+Lr+"H"+Lr+"V"+3*Lr+"H"+-Lr+"V"+Lr+"H"+-3*Lr+"Z"},diamond:function(dr){var Lr=Math.sqrt(dr/(2*Nn)),Hr=Lr*Nn;return"M0,"+-Lr+"L"+Hr+",0 0,"+Lr+" "+-Hr+",0Z"},square:function(dr){var Lr=Math.sqrt(dr)/2;return"M"+-Lr+","+-Lr+"L"+Lr+","+-Lr+" "+Lr+","+Lr+" "+-Lr+","+Lr+"Z"},"triangle-down":function(dr){var Lr=Math.sqrt(dr/zn),Hr=Lr*zn/2;return"M0,"+Hr+"L"+Lr+","+-Hr+" "+-Lr+","+-Hr+"Z"},"triangle-up":function(dr){var Lr=Math.sqrt(dr/zn),Hr=Lr*zn/2;return"M0,"+-Hr+"L"+Lr+","+Hr+" "+-Lr+","+Hr+"Z"}});et.svg.symbolTypes=Sn.keys();var zn=Math.sqrt(3),Nn=Math.tan(30*en);Kt.transition=function(dr){for(var Lr=Do||++So,Hr=Ns(dr),nn=[],cn,vn,Dn=$o||{time:Date.now(),ease:M0,delay:0,duration:250},Rn=-1,Yn=this.length;++Rn0;)Co[--cs].call(dr,qo);if(Uo>=1)return Dn.event&&Dn.event.end.call(dr,dr.__data__,Lr),--vn.count?delete vn[nn]:delete dr[Hr],1}Dn||(Rn=cn.time,Yn=Us(Ro,0,Rn),Dn=vn[nn]={tween:new Mt,time:Rn,timer:Yn,delay:cn.delay,duration:cn.duration,ease:cn.ease,index:Lr},cn=null,++vn.count)}et.svg.axis=function(){var dr=et.scale.linear(),Lr=Al,Hr=6,nn=6,cn=3,vn=[10],Dn=null,Rn;function Yn(Zn){Zn.each(function(){var to=et.select(this),Co=this.__chart__||dr,Ro=this.__chart__=dr.copy(),ts=Dn??(Ro.ticks?Ro.ticks.apply(Ro,vn):Ro.domain()),ls=Rn??(Ro.tickFormat?Ro.tickFormat.apply(Ro,vn):Nt),ko=to.selectAll(".tick").data(ts,Ro),Uo=ko.enter().insert("g",".domain").attr("class","tick").style("opacity",Dr),qo=et.transition(ko.exit()).style("opacity",Dr).remove(),cs=et.transition(ko.order()).style("opacity",1),bs=Math.max(Hr,0)+cn,as,Rs=S1(Ro),Ll=to.selectAll(".domain").data([0]),Gl=(Ll.enter().append("path").attr("class","domain"),et.transition(Ll));Uo.append("line"),Uo.append("text");var Rl=Uo.select("line"),Hl=cs.select("line"),Vl=ko.select("text").text(ls),Tu=Uo.select("text"),Ql=cs.select("text"),xu=Lr==="top"||Lr==="left"?-1:1,zu,wp,Xu,Ml;if(Lr==="bottom"||Lr==="top"?(as=du,zu="x",Xu="y",wp="x2",Ml="y2",Vl.attr("dy",xu<0?"0em":".71em").style("text-anchor","middle"),Gl.attr("d","M"+Rs[0]+","+xu*nn+"V0H"+Rs[1]+"V"+xu*nn)):(as=gu,zu="y",Xu="x",wp="y2",Ml="x2",Vl.attr("dy",".32em").style("text-anchor",xu<0?"end":"start"),Gl.attr("d","M"+xu*nn+","+Rs[0]+"H0V"+Rs[1]+"H"+xu*nn)),Rl.attr(Ml,xu*Hr),Tu.attr(Xu,xu*bs),Hl.attr(wp,0).attr(Ml,xu*Hr),Ql.attr(zu,0).attr(Xu,xu*bs),Ro.rangeBand){var vu=Ro,ru=vu.rangeBand()/2;Co=Ro=function(Ou){return vu(Ou)+ru}}else Co.rangeBand?Co=Ro:qo.call(as,Ro,Co);Uo.call(as,Co,Ro),cs.call(as,Ro,Ro)})}return Yn.scale=function(Zn){return arguments.length?(dr=Zn,Yn):dr},Yn.orient=function(Zn){return arguments.length?(Lr=Zn in pu?Zn+"":Al,Yn):Lr},Yn.ticks=function(){return arguments.length?(vn=mt(arguments),Yn):vn},Yn.tickValues=function(Zn){return arguments.length?(Dn=Zn,Yn):Dn},Yn.tickFormat=function(Zn){return arguments.length?(Rn=Zn,Yn):Rn},Yn.tickSize=function(Zn){var to=arguments.length;return to?(Hr=+Zn,nn=+arguments[to-1],Yn):Hr},Yn.innerTickSize=function(Zn){return arguments.length?(Hr=+Zn,Yn):Hr},Yn.outerTickSize=function(Zn){return arguments.length?(nn=+Zn,Yn):nn},Yn.tickPadding=function(Zn){return arguments.length?(cn=+Zn,Yn):cn},Yn.tickSubdivide=function(){return arguments.length&&Yn},Yn};var Al="bottom",pu={top:1,right:1,bottom:1,left:1};function du(dr,Lr,Hr){dr.attr("transform",function(nn){var cn=Lr(nn);return"translate("+(isFinite(cn)?cn:Hr(nn))+",0)"})}function gu(dr,Lr,Hr){dr.attr("transform",function(nn){var cn=Lr(nn);return"translate(0,"+(isFinite(cn)?cn:Hr(nn))+")"})}et.svg.brush=function(){var dr=Jt(to,"brushstart","brush","brushend"),Lr=null,Hr=null,nn=[0,0],cn=[0,0],vn,Dn,Rn=!0,Yn=!0,Zn=Nu[0];function to(ko){ko.each(function(){var Uo=et.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",ls).on("touchstart.brush",ls),qo=Uo.selectAll(".background").data([0]);qo.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Uo.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var cs=Uo.selectAll(".resize").data(Zn,Nt);cs.exit().remove(),cs.enter().append("g").attr("class",function(Ll){return"resize "+Ll}).style("cursor",function(Ll){return Eu[Ll]}).append("rect").attr("x",function(Ll){return/[ew]$/.test(Ll)?-3:null}).attr("y",function(Ll){return/^[ns]/.test(Ll)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),cs.style("display",to.empty()?"none":null);var bs=et.transition(Uo),as=et.transition(qo),Rs;Lr&&(Rs=S1(Lr),as.attr("x",Rs[0]).attr("width",Rs[1]-Rs[0]),Ro(bs)),Hr&&(Rs=S1(Hr),as.attr("y",Rs[0]).attr("height",Rs[1]-Rs[0]),ts(bs)),Co(bs)})}to.event=function(ko){ko.each(function(){var Uo=dr.of(this,arguments),qo={x:nn,y:cn,i:vn,j:Dn},cs=this.__chart__||qo;this.__chart__=qo,Do?et.select(this).transition().each("start.brush",function(){vn=cs.i,Dn=cs.j,nn=cs.x,cn=cs.y,Uo({type:"brushstart"})}).tween("brush:brush",function(){var bs=lv(nn,qo.x),as=lv(cn,qo.y);return vn=Dn=null,function(Rs){nn=qo.x=bs(Rs),cn=qo.y=as(Rs),Uo({type:"brush",mode:"resize"})}}).each("end.brush",function(){vn=qo.i,Dn=qo.j,Uo({type:"brush",mode:"resize"}),Uo({type:"brushend"})}):(Uo({type:"brushstart"}),Uo({type:"brush",mode:"resize"}),Uo({type:"brushend"}))})};function Co(ko){ko.selectAll(".resize").attr("transform",function(Uo){return"translate("+nn[+/e$/.test(Uo)]+","+cn[+/^s/.test(Uo)]+")"})}function Ro(ko){ko.select(".extent").attr("x",nn[0]),ko.selectAll(".extent,.n>rect,.s>rect").attr("width",nn[1]-nn[0])}function ts(ko){ko.select(".extent").attr("y",cn[0]),ko.selectAll(".extent,.e>rect,.w>rect").attr("height",cn[1]-cn[0])}function ls(){var ko=this,Uo=et.select(et.event.target),qo=dr.of(ko,arguments),cs=et.select(ko),bs=Uo.datum(),as=!/^(n|s)$/.test(bs)&&Lr,Rs=!/^(e|w)$/.test(bs)&&Hr,Ll=Uo.classed("extent"),Gl=jr(ko),Rl,Hl=et.mouse(ko),Vl,Tu=et.select(j(ko)).on("keydown.brush",zu).on("keyup.brush",wp);if(et.event.changedTouches?Tu.on("touchmove.brush",Xu).on("touchend.brush",vu):Tu.on("mousemove.brush",Xu).on("mouseup.brush",vu),cs.interrupt().selectAll("*").interrupt(),Ll)Hl[0]=nn[0]-Hl[0],Hl[1]=cn[0]-Hl[1];else if(bs){var Ql=+/w$/.test(bs),xu=+/^n/.test(bs);Vl=[nn[1-Ql]-Hl[0],cn[1-xu]-Hl[1]],Hl[0]=nn[Ql],Hl[1]=cn[xu]}else et.event.altKey&&(Rl=Hl.slice());cs.style("pointer-events","none").selectAll(".resize").style("display",null),et.select("body").style("cursor",Uo.style("cursor")),qo({type:"brushstart"}),Xu();function zu(){et.event.keyCode==32&&(Ll||(Rl=null,Hl[0]-=nn[1],Hl[1]-=cn[1],Ll=2),er())}function wp(){et.event.keyCode==32&&Ll==2&&(Hl[0]+=nn[1],Hl[1]+=cn[1],Ll=0,er())}function Xu(){var ru=et.mouse(ko),Ou=!1;Vl&&(ru[0]+=Vl[0],ru[1]+=Vl[1]),Ll||(et.event.altKey?(Rl||(Rl=[(nn[0]+nn[1])/2,(cn[0]+cn[1])/2]),Hl[0]=nn[+(ru[0]"u"&&(Bt=1e-6);var Wt,ir,mr,Mr,Fr;for(mr=Ft,Fr=0;Fr<8;Fr++){if(Mr=this.sampleCurveX(mr)-Ft,Math.abs(Mr)ir)return ir;for(;WtMr?Wt=mr:ir=mr,mr=(ir-Wt)*.5+Wt}return mr},ht.prototype.solve=function(Ft,Bt){return this.sampleCurveY(this.solveCurveX(Ft,Bt))};var j=_;function _(Ft,Bt){this.x=Ft,this.y=Bt}_.prototype={clone:function(){return new _(this.x,this.y)},add:function(Ft){return this.clone()._add(Ft)},sub:function(Ft){return this.clone()._sub(Ft)},multByPoint:function(Ft){return this.clone()._multByPoint(Ft)},divByPoint:function(Ft){return this.clone()._divByPoint(Ft)},mult:function(Ft){return this.clone()._mult(Ft)},div:function(Ft){return this.clone()._div(Ft)},rotate:function(Ft){return this.clone()._rotate(Ft)},rotateAround:function(Ft,Bt){return this.clone()._rotateAround(Ft,Bt)},matMult:function(Ft){return this.clone()._matMult(Ft)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(Ft){return this.x===Ft.x&&this.y===Ft.y},dist:function(Ft){return Math.sqrt(this.distSqr(Ft))},distSqr:function(Ft){var Bt=Ft.x-this.x,Wt=Ft.y-this.y;return Bt*Bt+Wt*Wt},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(Ft){return Math.atan2(this.y-Ft.y,this.x-Ft.x)},angleWith:function(Ft){return this.angleWithSep(Ft.x,Ft.y)},angleWithSep:function(Ft,Bt){return Math.atan2(this.x*Bt-this.y*Ft,this.x*Ft+this.y*Bt)},_matMult:function(Ft){var Bt=Ft[0]*this.x+Ft[1]*this.y,Wt=Ft[2]*this.x+Ft[3]*this.y;return this.x=Bt,this.y=Wt,this},_add:function(Ft){return this.x+=Ft.x,this.y+=Ft.y,this},_sub:function(Ft){return this.x-=Ft.x,this.y-=Ft.y,this},_mult:function(Ft){return this.x*=Ft,this.y*=Ft,this},_div:function(Ft){return this.x/=Ft,this.y/=Ft,this},_multByPoint:function(Ft){return this.x*=Ft.x,this.y*=Ft.y,this},_divByPoint:function(Ft){return this.x/=Ft.x,this.y/=Ft.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var Ft=this.y;return this.y=this.x,this.x=-Ft,this},_rotate:function(Ft){var Bt=Math.cos(Ft),Wt=Math.sin(Ft),ir=Bt*this.x-Wt*this.y,mr=Wt*this.x+Bt*this.y;return this.x=ir,this.y=mr,this},_rotateAround:function(Ft,Bt){var Wt=Math.cos(Ft),ir=Math.sin(Ft),mr=Bt.x+Wt*(this.x-Bt.x)-ir*(this.y-Bt.y),Mr=Bt.y+ir*(this.x-Bt.x)+Wt*(this.y-Bt.y);return this.x=mr,this.y=Mr,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},_.convert=function(Ft){return Ft instanceof _?Ft:Array.isArray(Ft)?new _(Ft[0],Ft[1]):Ft};var rt=typeof self<"u"?self:{};function tt(Ft,Bt){if(Array.isArray(Ft)){if(!Array.isArray(Bt)||Ft.length!==Bt.length)return!1;for(var Wt=0;Wt=1)return 1;var Bt=Ft*Ft,Wt=Bt*Ft;return 4*(Ft<.5?Wt:3*(Ft-Bt)+Wt-.75)}function nt(Ft,Bt,Wt,ir){var mr=new ut(Ft,Bt,Wt,ir);return function(Mr){return mr.solve(Mr)}}var vt=nt(.25,.1,.25,1);function dt(Ft,Bt,Wt){return Math.min(Wt,Math.max(Bt,Ft))}function bt(Ft,Bt,Wt){var ir=Wt-Bt,mr=((Ft-Bt)%ir+ir)%ir+Bt;return mr===Bt?Wt:mr}function ft(Ft,Bt,Wt){if(!Ft.length)return Wt(null,[]);var ir=Ft.length,mr=new Array(Ft.length),Mr=null;Ft.forEach(function(Fr,tn){Bt(Fr,function(Tn,Mn){Tn&&(Mr=Tn),mr[tn]=Mn,--ir===0&&Wt(Mr,mr)})})}function at(Ft){var Bt=[];for(var Wt in Ft)Bt.push(Ft[Wt]);return Bt}function yt(Ft,Bt){var Wt=[];for(var ir in Ft)ir in Bt||Wt.push(ir);return Wt}function St(Ft){for(var Bt=[],Wt=arguments.length-1;Wt-- >0;)Bt[Wt]=arguments[Wt+1];for(var ir=0,mr=Bt;ir>Bt/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,Ft)}return Ft()}function wt(Ft){return Ft<=1?1:Math.pow(2,Math.ceil(Math.log(Ft)/Math.LN2))}function ct(Ft){return Ft?/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(Ft):!1}function It(Ft,Bt){Ft.forEach(function(Wt){Bt[Wt]&&(Bt[Wt]=Bt[Wt].bind(Bt))})}function At(Ft,Bt){return Ft.indexOf(Bt,Ft.length-Bt.length)!==-1}function Ot(Ft,Bt,Wt){var ir={};for(var mr in Ft)ir[mr]=Bt.call(Wt||this,Ft[mr],mr,Ft);return ir}function Pt(Ft,Bt,Wt){var ir={};for(var mr in Ft)Bt.call(Wt||this,Ft[mr],mr,Ft)&&(ir[mr]=Ft[mr]);return ir}function zt(Ft){return Array.isArray(Ft)?Ft.map(zt):typeof Ft=="object"&&Ft?Ot(Ft,zt):Ft}function Dt(Ft,Bt){for(var Wt=0;Wt=0)return!0;return!1}var Nt={};function $t(Ft){Nt[Ft]||(typeof console<"u"&&console.warn(Ft),Nt[Ft]=!0)}function Ut(Ft,Bt,Wt){return(Wt.y-Ft.y)*(Bt.x-Ft.x)>(Bt.y-Ft.y)*(Wt.x-Ft.x)}function Ht(Ft){for(var Bt=0,Wt=0,ir=Ft.length,mr=ir-1,Mr=void 0,Fr=void 0;Wt@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,Wt={};if(Ft.replace(Bt,function(mr,Mr,Fr,tn){var Tn=Fr||tn;return Wt[Mr]=Tn?Tn.toLowerCase():!0,""}),Wt["max-age"]){var ir=parseInt(Wt["max-age"],10);isNaN(ir)?delete Wt["max-age"]:Wt["max-age"]=ir}return Wt}var er=null;function lr(Ft){if(er==null){var Bt=Ft.navigator?Ft.navigator.userAgent:null;er=!!Ft.safari||!!(Bt&&(/\b(iPad|iPhone|iPod)\b/.test(Bt)||Bt.match("Safari")&&!Bt.match("Chrome")))}return er}function Jt(Ft){try{var Bt=rt[Ft];return Bt.setItem("_mapbox_test_",1),Bt.removeItem("_mapbox_test_"),!0}catch{return!1}}function Yt(Ft){return rt.btoa(encodeURIComponent(Ft).replace(/%([0-9A-F]{2})/g,function(Bt,Wt){return String.fromCharCode(Number("0x"+Wt))}))}function rr(Ft){return decodeURIComponent(rt.atob(Ft).split("").map(function(Bt){return"%"+("00"+Bt.charCodeAt(0).toString(16)).slice(-2)}).join(""))}var jt=rt.performance&&rt.performance.now?rt.performance.now.bind(rt.performance):Date.now.bind(Date),ar=rt.requestAnimationFrame||rt.mozRequestAnimationFrame||rt.webkitRequestAnimationFrame||rt.msRequestAnimationFrame,sr=rt.cancelAnimationFrame||rt.mozCancelAnimationFrame||rt.webkitCancelAnimationFrame||rt.msCancelAnimationFrame,Zt,Kt,or={now:jt,frame:function(Bt){var Wt=ar(Bt);return{cancel:function(){return sr(Wt)}}},getImageData:function(Bt,Wt){Wt===void 0&&(Wt=0);var ir=rt.document.createElement("canvas"),mr=ir.getContext("2d");if(!mr)throw new Error("failed to create canvas 2d context");return ir.width=Bt.width,ir.height=Bt.height,mr.drawImage(Bt,0,0,Bt.width,Bt.height),mr.getImageData(-Wt,-Wt,Bt.width+2*Wt,Bt.height+2*Wt)},resolveURL:function(Bt){return Zt||(Zt=rt.document.createElement("a")),Zt.href=Bt,Zt.href},hardwareConcurrency:rt.navigator&&rt.navigator.hardwareConcurrency||4,get devicePixelRatio(){return rt.devicePixelRatio},get prefersReducedMotion(){return rt.matchMedia?(Kt==null&&(Kt=rt.matchMedia("(prefers-reduced-motion: reduce)")),Kt.matches):!1}},tr={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},cr={supported:!1,testSupport:Ar},hr,br=!1,Tr,Ir=!1;rt.document&&(Tr=rt.document.createElement("img"),Tr.onload=function(){hr&&_r(hr),hr=null,Ir=!0},Tr.onerror=function(){br=!0,hr=null},Tr.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");function Ar(Ft){br||!Tr||(Ir?_r(Ft):hr=Ft)}function _r(Ft){var Bt=Ft.createTexture();Ft.bindTexture(Ft.TEXTURE_2D,Bt);try{if(Ft.texImage2D(Ft.TEXTURE_2D,0,Ft.RGBA,Ft.RGBA,Ft.UNSIGNED_BYTE,Tr),Ft.isContextLost())return;cr.supported=!0}catch{}Ft.deleteTexture(Bt),br=!0}var Er="01";function Rr(){for(var Ft="1",Bt="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",Wt="",ir=0;ir<10;ir++)Wt+=Bt[Math.floor(Math.random()*62)];var mr=12*60*60*1e3,Mr=[Ft,Er,Wt].join(""),Fr=Date.now()+mr;return{token:Mr,tokenExpiresAt:Fr}}var zr=function(Bt,Wt){this._transformRequestFn=Bt,this._customAccessToken=Wt,this._createSkuToken()};zr.prototype._createSkuToken=function(){var Bt=Rr();this._skuToken=Bt.token,this._skuTokenExpiresAt=Bt.tokenExpiresAt},zr.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},zr.prototype.transformRequest=function(Bt,Wt){return this._transformRequestFn?this._transformRequestFn(Bt,Wt)||{url:Bt}:{url:Bt}},zr.prototype.normalizeStyleURL=function(Bt,Wt){if(!Br(Bt))return Bt;var ir=qr(Bt);return ir.path="/styles/v1"+ir.path,this._makeAPIURL(ir,this._customAccessToken||Wt)},zr.prototype.normalizeGlyphsURL=function(Bt,Wt){if(!Br(Bt))return Bt;var ir=qr(Bt);return ir.path="/fonts/v1"+ir.path,this._makeAPIURL(ir,this._customAccessToken||Wt)},zr.prototype.normalizeSourceURL=function(Bt,Wt){if(!Br(Bt))return Bt;var ir=qr(Bt);return ir.path="/v4/"+ir.authority+".json",ir.params.push("secure"),this._makeAPIURL(ir,this._customAccessToken||Wt)},zr.prototype.normalizeSpriteURL=function(Bt,Wt,ir,mr){var Mr=qr(Bt);return Br(Bt)?(Mr.path="/styles/v1"+Mr.path+"/sprite"+Wt+ir,this._makeAPIURL(Mr,this._customAccessToken||mr)):(Mr.path+=""+Wt+ir,Xr(Mr))},zr.prototype.normalizeTileURL=function(Bt,Wt){if(this._isSkuTokenExpired()&&this._createSkuToken(),Bt&&!Br(Bt))return Bt;var ir=qr(Bt),mr=/(\.(png|jpg)\d*)(?=$)/,Mr=/^.+\/v4\//,Fr=or.devicePixelRatio>=2||Wt===512?"@2x":"",tn=cr.supported?".webp":"$1";ir.path=ir.path.replace(mr,""+Fr+tn),ir.path=ir.path.replace(Mr,"/"),ir.path="/v4"+ir.path;var Tn=this._customAccessToken||sn(ir.params)||tr.ACCESS_TOKEN;return tr.REQUIRE_ACCESS_TOKEN&&Tn&&this._skuToken&&ir.params.push("sku="+this._skuToken),this._makeAPIURL(ir,Tn)},zr.prototype.canonicalizeTileURL=function(Bt,Wt){var ir="/v4/",mr=/\.[\w]+$/,Mr=qr(Bt);if(!Mr.path.match(/(^\/v4\/)/)||!Mr.path.match(mr))return Bt;var Fr="mapbox://tiles/";Fr+=Mr.path.replace(ir,"");var tn=Mr.params;return Wt&&(tn=tn.filter(function(Tn){return!Tn.match(/^access_token=/)})),tn.length&&(Fr+="?"+tn.join("&")),Fr},zr.prototype.canonicalizeTileset=function(Bt,Wt){for(var ir=Wt?Br(Wt):!1,mr=[],Mr=0,Fr=Bt.tiles||[];Mr=0&&Bt.params.splice(Mr,1)}if(mr.path!=="/"&&(Bt.path=""+mr.path+Bt.path),!tr.REQUIRE_ACCESS_TOKEN)return Xr(Bt);if(Wt=Wt||tr.ACCESS_TOKEN,!Wt)throw new Error("An API access token is required to use Mapbox GL. "+ir);if(Wt[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+ir);return Bt.params=Bt.params.filter(function(Fr){return Fr.indexOf("access_token")===-1}),Bt.params.push("access_token="+Wt),Xr(Bt)};function Br(Ft){return Ft.indexOf("mapbox:")===0}var kr=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Nr(Ft){return kr.test(Ft)}function Qr(Ft){return Ft.indexOf("sku=")>0&&Nr(Ft)}function sn(Ft){for(var Bt=0,Wt=Ft;Bt=1&&rt.localStorage.setItem(Wt,JSON.stringify(this.eventData))}catch{$t("Unable to write to LocalStorage")}},pn.prototype.processRequests=function(Bt){},pn.prototype.postEvent=function(Bt,Wt,ir,mr){var Mr=this;if(tr.EVENTS_URL){var Fr=qr(tr.EVENTS_URL);Fr.params.push("access_token="+(mr||tr.ACCESS_TOKEN||""));var tn={event:this.type,created:new Date(Bt).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:mt,skuId:Er,userId:this.anonId},Tn=Wt?St(tn,Wt):tn,Mn={url:Xr(Fr),headers:{"Content-Type":"text/plain"},body:JSON.stringify([Tn])};this.pendingRequest=Vn(Mn,function(Pn){Mr.pendingRequest=null,ir(Pn),Mr.saveEventData(),Mr.processRequests(mr)})}},pn.prototype.queueRequest=function(Bt,Wt){this.queue.push(Bt),this.processRequests(Wt)};var En=function(Ft){function Bt(){Ft.call(this,"map.load"),this.success={},this.skuToken=""}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype.postMapLoadEvent=function(ir,mr,Mr,Fr){this.skuToken=Mr,(tr.EVENTS_URL&&Fr||tr.ACCESS_TOKEN&&Array.isArray(ir)&&ir.some(function(tn){return Br(tn)||Nr(tn)}))&&this.queueRequest({id:mr,timestamp:Date.now()},Fr)},Bt.prototype.processRequests=function(ir){var mr=this;if(!(this.pendingRequest||this.queue.length===0)){var Mr=this.queue.shift(),Fr=Mr.id,tn=Mr.timestamp;Fr&&this.success[Fr]||(this.anonId||this.fetchEventData(),ct(this.anonId)||(this.anonId=kt()),this.postEvent(tn,{skuToken:this.skuToken},function(Tn){Tn||Fr&&(mr.success[Fr]=!0)},ir))}},Bt}(pn),Jr=function(Ft){function Bt(Wt){Ft.call(this,"appUserTurnstile"),this._customAccessToken=Wt}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype.postTurnstileEvent=function(ir,mr){tr.EVENTS_URL&&tr.ACCESS_TOKEN&&Array.isArray(ir)&&ir.some(function(Mr){return Br(Mr)||Nr(Mr)})&&this.queueRequest(Date.now(),mr)},Bt.prototype.processRequests=function(ir){var mr=this;if(!(this.pendingRequest||this.queue.length===0)){(!this.anonId||!this.eventData.lastSuccess||!this.eventData.tokenU)&&this.fetchEventData();var Mr=mn(tr.ACCESS_TOKEN),Fr=Mr?Mr.u:tr.ACCESS_TOKEN,tn=Fr!==this.eventData.tokenU;ct(this.anonId)||(this.anonId=kt(),tn=!0);var Tn=this.queue.shift();if(this.eventData.lastSuccess){var Mn=new Date(this.eventData.lastSuccess),Pn=new Date(Tn),Qn=(Tn-this.eventData.lastSuccess)/(24*60*60*1e3);tn=tn||Qn>=1||Qn<-1||Mn.getDate()!==Pn.getDate()}else tn=!0;if(!tn)return this.processRequests();this.postEvent(Tn,{"enabled.telemetry":!1},function(ao){ao||(mr.eventData.lastSuccess=Tn,mr.eventData.tokenU=Fr)},ir)}},Bt}(pn),Or=new Jr,Ur=Or.postTurnstileEvent.bind(Or),jr=new En,Gr=jr.postMapLoadEvent.bind(jr),wr="mapbox-tiles",vr=500,Dr=50,Sr=1e3*60*7,ur;function xr(){rt.caches&&!ur&&(ur=rt.caches.open(wr))}var Pr;function Vr(Ft,Bt){if(Pr===void 0)try{new Response(new ReadableStream),Pr=!0}catch{Pr=!1}Pr?Bt(Ft.body):Ft.blob().then(Bt)}function en(Ft,Bt,Wt){if(xr(),!!ur){var ir={status:Bt.status,statusText:Bt.statusText,headers:new rt.Headers};Bt.headers.forEach(function(Fr,tn){return ir.headers.set(tn,Fr)});var mr=qt(Bt.headers.get("Cache-Control")||"");if(!mr["no-store"]){mr["max-age"]&&ir.headers.set("Expires",new Date(Wt+mr["max-age"]*1e3).toUTCString());var Mr=new Date(ir.headers.get("Expires")).getTime()-Wt;MrDate.now()&&!Wt["no-cache"]}var fn=1/0;function bn(Ft){fn++,fn>Dr&&(Ft.getActor().send("enforceCacheSizeLimit",vr),fn=0)}function Un(Ft){xr(),ur&&ur.then(function(Bt){Bt.keys().then(function(Wt){for(var ir=0;ir=200&&Wt.status<300||Wt.status===0)&&Wt.response!==null){var mr=Wt.response;if(Ft.type==="json")try{mr=JSON.parse(Wt.response)}catch(Mr){return Bt(Mr)}Bt(null,mr,Wt.getResponseHeader("Cache-Control"),Wt.getResponseHeader("Expires"))}else Bt(new ba(Wt.statusText,Wt.status,Ft.url))},Wt.send(Ft.body),{cancel:function(){return Wt.abort()}}}var Ln=function(Ft,Bt){if(!hn(Ft.url)){if(rt.fetch&&rt.Request&&rt.AbortController&&rt.Request.prototype.hasOwnProperty("signal"))return wn(Ft,Bt);if(Xt()&&self.worker&&self.worker.actor){var Wt=!0;return self.worker.actor.send("getResource",Ft,Bt,void 0,Wt)}}return In(Ft,Bt)},Xn=function(Ft,Bt){return Ln(St(Ft,{type:"json"}),Bt)},Wn=function(Ft,Bt){return Ln(St(Ft,{type:"arrayBuffer"}),Bt)},Vn=function(Ft,Bt){return Ln(St(Ft,{method:"POST"}),Bt)};function ga(Ft){var Bt=rt.document.createElement("a");return Bt.href=Ft,Bt.protocol===rt.document.location.protocol&&Bt.host===rt.document.location.host}var fo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function qn(Ft,Bt,Wt,ir){var mr=new rt.Image,Mr=rt.URL;mr.onload=function(){Bt(null,mr),Mr.revokeObjectURL(mr.src),mr.onload=null,rt.requestAnimationFrame(function(){mr.src=fo})},mr.onerror=function(){return Bt(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var Fr=new rt.Blob([new Uint8Array(Ft)],{type:"image/png"});mr.cacheControl=Wt,mr.expires=ir,mr.src=Ft.byteLength?Mr.createObjectURL(Fr):fo}function po(Ft,Bt){var Wt=new rt.Blob([new Uint8Array(Ft)],{type:"image/png"});rt.createImageBitmap(Wt).then(function(ir){Bt(null,ir)}).catch(function(ir){Bt(new Error("Could not load image because of "+ir.message+". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))})}var Yr,Wr,$n=function(){Yr=[],Wr=0};$n();var Bn=function(Ft,Bt){if(cr.supported&&(Ft.headers||(Ft.headers={}),Ft.headers.accept="image/webp,*/*"),Wr>=tr.MAX_PARALLEL_IMAGE_REQUESTS){var Wt={requestParameters:Ft,callback:Bt,cancelled:!1,cancel:function(){this.cancelled=!0}};return Yr.push(Wt),Wt}Wr++;var ir=!1,mr=function(){if(!ir)for(ir=!0,Wr--;Yr.length&&Wr0||this._oneTimeListeners&&this._oneTimeListeners[Bt]&&this._oneTimeListeners[Bt].length>0||this._eventedParent&&this._eventedParent.listens(Bt)},ho.prototype.setEventedParent=function(Bt,Wt){return this._eventedParent=Bt,this._eventedParentData=Wt,this};var go=8,_o={version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},co={"*":{type:"source"}},zo=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],Io={type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},Lo={type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},vs={type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},Zo={type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},Ls={type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},Ds={type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},bo={id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},No=["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],Yo={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Oo={"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},ys={"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},gs={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},zs={"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Us={"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Qs={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Fl={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Jl={type:"array",value:"*"},nu={type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},Yl={type:"enum",values:{Point:{},LineString:{},Polygon:{}}},Zs={type:"array",minimum:0,maximum:24,value:["number","color"],length:2},xo={type:"array",value:"*",minimum:1},Vo={anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},Go=["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],ms={"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},Ws={"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},ws={"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},Is={"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Xs={"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},Cl={"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Wl={"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},yu={"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},yo={duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},Fo={"*":{type:"string"}},To={$version:go,$root:_o,sources:co,source:zo,source_vector:Io,source_raster:Lo,source_raster_dem:vs,source_geojson:Zo,source_video:Ls,source_image:Ds,layer:bo,layout:No,layout_background:Yo,layout_fill:Oo,layout_circle:ys,layout_heatmap:gs,"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:zs,layout_symbol:Us,layout_raster:Qs,layout_hillshade:Fl,filter:Jl,filter_operator:nu,geometry_type:Yl,function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:Zs,expression:xo,light:Vo,paint:Go,paint_fill:ms,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:Ws,paint_circle:ws,paint_heatmap:Is,paint_symbol:Xs,paint_raster:Cl,paint_hillshade:Wl,paint_background:yu,transition:yo,"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:Fo},Bo=function(Bt,Wt,ir,mr){this.message=(Bt?Bt+": ":"")+ir,mr&&(this.identifier=mr),Wt!=null&&Wt.__line__&&(this.line=Wt.__line__)};function Es(Ft){var Bt=Ft.key,Wt=Ft.value;return Wt?[new Bo(Bt,Wt,"constants have been deprecated as of v8")]:[]}function Ps(Ft){for(var Bt=[],Wt=arguments.length-1;Wt-- >0;)Bt[Wt]=arguments[Wt+1];for(var ir=0,mr=Bt;ir":Ft.itemType.kind==="value"?"array":"array<"+Bt+">"}else return Ft.kind}var Sv=[Wo,rs,_s,Gs,Cs,Xl,Ks,ju(Ys),Zl];function nv(Ft,Bt){if(Bt.kind==="error")return null;if(Ft.kind==="array"){if(Bt.kind==="array"&&(Bt.N===0&&Bt.itemType.kind==="value"||!nv(Ft.itemType,Bt.itemType))&&(typeof Ft.N!="number"||Ft.N===Bt.N))return null}else{if(Ft.kind===Bt.kind)return null;if(Ft.kind==="value")for(var Wt=0,ir=Sv;Wt255?255:Mn}function mr(Mn){return Mn<0?0:Mn>1?1:Mn}function Mr(Mn){return Mn[Mn.length-1]==="%"?ir(parseFloat(Mn)/100*255):ir(parseInt(Mn))}function Fr(Mn){return Mn[Mn.length-1]==="%"?mr(parseFloat(Mn)/100):mr(parseFloat(Mn))}function tn(Mn,Pn,Qn){return Qn<0?Qn+=1:Qn>1&&(Qn-=1),Qn*6<1?Mn+(Pn-Mn)*Qn*6:Qn*2<1?Pn:Qn*3<2?Mn+(Pn-Mn)*(2/3-Qn)*6:Mn}function Tn(Mn){var Pn=Mn.replace(/ /g,"").toLowerCase();if(Pn in Wt)return Wt[Pn].slice();if(Pn[0]==="#"){if(Pn.length===4){var Qn=parseInt(Pn.substr(1),16);return Qn>=0&&Qn<=4095?[(Qn&3840)>>4|(Qn&3840)>>8,Qn&240|(Qn&240)>>4,Qn&15|(Qn&15)<<4,1]:null}else if(Pn.length===7){var Qn=parseInt(Pn.substr(1),16);return Qn>=0&&Qn<=16777215?[(Qn&16711680)>>16,(Qn&65280)>>8,Qn&255,1]:null}return null}var ao=Pn.indexOf("("),$a=Pn.indexOf(")");if(ao!==-1&&$a+1===Pn.length){var Eo=Pn.substr(0,ao),Ho=Pn.substr(ao+1,$a-(ao+1)).split(","),ds=1;switch(Eo){case"rgba":if(Ho.length!==4)return null;ds=Fr(Ho.pop());case"rgb":return Ho.length!==3?null:[Mr(Ho[0]),Mr(Ho[1]),Mr(Ho[2]),ds];case"hsla":if(Ho.length!==4)return null;ds=Fr(Ho.pop());case"hsl":if(Ho.length!==3)return null;var ss=(parseFloat(Ho[0])%360+360)%360/360,Bs=Fr(Ho[1]),As=Fr(Ho[2]),Os=As<=.5?As*(Bs+1):As+Bs-As*Bs,Vs=As*2-Os;return[ir(tn(Vs,Os,ss+1/3)*255),ir(tn(Vs,Os,ss)*255),ir(tn(Vs,Os,ss-1/3)*255),ds];default:return null}}return null}try{Bt.parseCSSColor=Tn}catch{}}),Bm=Fm.parseCSSColor,Bu=function(Bt,Wt,ir,mr){mr===void 0&&(mr=1),this.r=Bt,this.g=Wt,this.b=ir,this.a=mr};Bu.parse=function(Bt){if(Bt){if(Bt instanceof Bu)return Bt;if(typeof Bt=="string"){var Wt=Bm(Bt);if(Wt)return new Bu(Wt[0]/255*Wt[3],Wt[1]/255*Wt[3],Wt[2]/255*Wt[3],Wt[3])}}},Bu.prototype.toString=function(){var Bt=this.toArray(),Wt=Bt[0],ir=Bt[1],mr=Bt[2],Mr=Bt[3];return"rgba("+Math.round(Wt)+","+Math.round(ir)+","+Math.round(mr)+","+Mr+")"},Bu.prototype.toArray=function(){var Bt=this,Wt=Bt.r,ir=Bt.g,mr=Bt.b,Mr=Bt.a;return Mr===0?[0,0,0,0]:[Wt*255/Mr,ir*255/Mr,mr*255/Mr,Mr]},Bu.black=new Bu(0,0,0,1),Bu.white=new Bu(1,1,1,1),Bu.transparent=new Bu(0,0,0,0),Bu.red=new Bu(1,0,0,1);var Qv=function(Bt,Wt,ir){Bt?this.sensitivity=Wt?"variant":"case":this.sensitivity=Wt?"accent":"base",this.locale=ir,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Qv.prototype.compare=function(Bt,Wt){return this.collator.compare(Bt,Wt)},Qv.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var zm=function(Bt,Wt,ir,mr,Mr){this.text=Bt,this.image=Wt,this.scale=ir,this.fontStack=mr,this.textColor=Mr},Op=function(Bt){this.sections=Bt};Op.fromString=function(Bt){return new Op([new zm(Bt,null,null,null,null)])},Op.prototype.isEmpty=function(){return this.sections.length===0?!0:!this.sections.some(function(Bt){return Bt.text.length!==0||Bt.image&&Bt.image.name.length!==0})},Op.factory=function(Bt){return Bt instanceof Op?Bt:Op.fromString(Bt)},Op.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(Bt){return Bt.text}).join("")},Op.prototype.serialize=function(){for(var Bt=["format"],Wt=0,ir=this.sections;Wt=0&&Ft<=255&&typeof Bt=="number"&&Bt>=0&&Bt<=255&&typeof Wt=="number"&&Wt>=0&&Wt<=255)){var mr=typeof ir=="number"?[Ft,Bt,Wt,ir]:[Ft,Bt,Wt];return"Invalid rgba value ["+mr.join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}return typeof ir>"u"||typeof ir=="number"&&ir>=0&&ir<=1?null:"Invalid rgba value ["+[Ft,Bt,Wt,ir].join(", ")+"]: 'a' must be between 0 and 1."}function f1(Ft){if(Ft===null)return!0;if(typeof Ft=="string")return!0;if(typeof Ft=="boolean")return!0;if(typeof Ft=="number")return!0;if(Ft instanceof Bu)return!0;if(Ft instanceof Qv)return!0;if(Ft instanceof Op)return!0;if(Ft instanceof av)return!0;if(Array.isArray(Ft)){for(var Bt=0,Wt=Ft;Bt2){var tn=Bt[1];if(typeof tn!="string"||!(tn in h1)||tn==="object")return Wt.error('The item type argument of "array" must be one of string, number, boolean',1);Fr=h1[tn],ir++}else Fr=Ys;var Tn;if(Bt.length>3){if(Bt[2]!==null&&(typeof Bt[2]!="number"||Bt[2]<0||Bt[2]!==Math.floor(Bt[2])))return Wt.error('The length argument to "array" must be a positive integer literal',2);Tn=Bt[2],ir++}mr=ju(Fr,Tn)}else mr=h1[Mr];for(var Mn=[];ir1)&&Wt.push(mr)}}return Wt.concat(this.args.map(function(Mr){return Mr.serialize()}))};var op=function(Bt){this.type=Xl,this.sections=Bt};op.parse=function(Bt,Wt){if(Bt.length<2)return Wt.error("Expected at least one argument.");var ir=Bt[1];if(!Array.isArray(ir)&&typeof ir=="object")return Wt.error("First argument must be an image or text section.");for(var mr=[],Mr=!1,Fr=1;Fr<=Bt.length-1;++Fr){var tn=Bt[Fr];if(Mr&&typeof tn=="object"&&!Array.isArray(tn)){Mr=!1;var Tn=null;if(tn["font-scale"]&&(Tn=Wt.parse(tn["font-scale"],1,rs),!Tn))return null;var Mn=null;if(tn["text-font"]&&(Mn=Wt.parse(tn["text-font"],1,ju(_s)),!Mn))return null;var Pn=null;if(tn["text-color"]&&(Pn=Wt.parse(tn["text-color"],1,Cs),!Pn))return null;var Qn=mr[mr.length-1];Qn.scale=Tn,Qn.font=Mn,Qn.textColor=Pn}else{var ao=Wt.parse(Bt[Fr],1,Ys);if(!ao)return null;var $a=ao.type.kind;if($a!=="string"&&$a!=="value"&&$a!=="null"&&$a!=="resolvedImage")return Wt.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");Mr=!0,mr.push({content:ao,scale:null,font:null,textColor:null})}}return new op(mr)},op.prototype.evaluate=function(Bt){var Wt=function(ir){var mr=ir.content.evaluate(Bt);return Ap(mr)===Zl?new zm("",mr,null,null,null):new zm(d1(mr),null,ir.scale?ir.scale.evaluate(Bt):null,ir.font?ir.font.evaluate(Bt).join(","):null,ir.textColor?ir.textColor.evaluate(Bt):null)};return new Op(this.sections.map(Wt))},op.prototype.eachChild=function(Bt){for(var Wt=0,ir=this.sections;Wt-1),ir},lv.prototype.eachChild=function(Bt){Bt(this.input)},lv.prototype.outputDefined=function(){return!1},lv.prototype.serialize=function(){return["image",this.input.serialize()]};var p1={"to-boolean":Gs,"to-color":Cs,"to-number":rs,"to-string":_s},uv=function(Bt,Wt){this.type=Bt,this.args=Wt};uv.parse=function(Bt,Wt){if(Bt.length<2)return Wt.error("Expected at least one argument.");var ir=Bt[0];if((ir==="to-boolean"||ir==="to-string")&&Bt.length!==2)return Wt.error("Expected one argument.");for(var mr=p1[ir],Mr=[],Fr=1;Fr4?ir="Invalid rbga value "+JSON.stringify(Wt)+": expected an array containing either three or four numeric values.":ir=C0(Wt[0],Wt[1],Wt[2],Wt[3]),!ir))return new Bu(Wt[0]/255,Wt[1]/255,Wt[2]/255,Wt[3])}throw new kp(ir||"Could not parse color from value '"+(typeof Wt=="string"?Wt:String(JSON.stringify(Wt)))+"'")}else if(this.type.kind==="number"){for(var Tn=null,Mn=0,Pn=this.args;Mn=Bt[2]||Ft[1]<=Bt[1]||Ft[3]>=Bt[3])}function sy(Ft,Bt){var Wt=oy(Ft[0]),ir=wy(Ft[1]),mr=Math.pow(2,Bt.z);return[Math.round(Wt*mr*_g),Math.round(ir*mr*_g)]}function I0(Ft,Bt,Wt){var ir=Ft[0]-Bt[0],mr=Ft[1]-Bt[1],Mr=Ft[0]-Wt[0],Fr=Ft[1]-Wt[1];return ir*Fr-Mr*mr===0&&ir*Mr<=0&&mr*Fr<=0}function mm(Ft,Bt,Wt){return Bt[1]>Ft[1]!=Wt[1]>Ft[1]&&Ft[0]<(Wt[0]-Bt[0])*(Ft[1]-Bt[1])/(Wt[1]-Bt[1])+Bt[0]}function $m(Ft,Bt){for(var Wt=!1,ir=0,mr=Bt.length;ir0&&Qn<0||Pn<0&&Qn>0}function Pv(Ft,Bt,Wt,ir){var mr=[Bt[0]-Ft[0],Bt[1]-Ft[1]],Mr=[ir[0]-Wt[0],ir[1]-Wt[1]];return Ry(Mr,mr)===0?!1:!!(H0(Ft,Bt,Wt,ir)&&H0(Wt,ir,Ft,Bt))}function k0(Ft,Bt,Wt){for(var ir=0,mr=Wt;irWt[2]){var mr=ir*.5,Mr=Ft[0]-Wt[0]>mr?-ir:Wt[0]-Ft[0]>mr?ir:0;Mr===0&&(Mr=Ft[0]-Wt[2]>mr?-ir:Wt[2]-Ft[0]>mr?ir:0),Ft[0]+=Mr}M0(Bt,Ft)}function m1(Ft){Ft[0]=Ft[1]=1/0,Ft[2]=Ft[3]=-1/0}function Ts(Ft,Bt,Wt,ir){for(var mr=Math.pow(2,ir.z)*_g,Mr=[ir.x*_g,ir.y*_g],Fr=[],tn=0,Tn=Ft;tn=0)return!1;var Wt=!0;return Ft.eachChild(function(ir){Wt&&!np(ir,Bt)&&(Wt=!1)}),Wt}var e0=function(Bt,Wt){this.type=Wt.type,this.name=Bt,this.boundExpression=Wt};e0.parse=function(Bt,Wt){if(Bt.length!==2||typeof Bt[1]!="string")return Wt.error("'var' expression requires exactly one string literal argument.");var ir=Bt[1];return Wt.scope.has(ir)?new e0(ir,Wt.scope.get(ir)):Wt.error('Unknown variable "'+ir+'". Make sure "'+ir+'" has been bound in an enclosing "let" expression before using it.',1)},e0.prototype.evaluate=function(Bt){return this.boundExpression.evaluate(Bt)},e0.prototype.eachChild=function(){},e0.prototype.outputDefined=function(){return!1},e0.prototype.serialize=function(){return["var",this.name]};var t0=function(Bt,Wt,ir,mr,Mr){Wt===void 0&&(Wt=[]),mr===void 0&&(mr=new Qo),Mr===void 0&&(Mr=[]),this.registry=Bt,this.path=Wt,this.key=Wt.map(function(Fr){return"["+Fr+"]"}).join(""),this.scope=mr,this.errors=Mr,this.expectedType=ir};t0.prototype.parse=function(Bt,Wt,ir,mr,Mr){return Mr===void 0&&(Mr={}),Wt?this.concat(Wt,ir,mr)._parse(Bt,Mr):this._parse(Bt,Mr)},t0.prototype._parse=function(Bt,Wt){(Bt===null||typeof Bt=="string"||typeof Bt=="boolean"||typeof Bt=="number")&&(Bt=["literal",Bt]);function ir(Pn,Qn,ao){return ao==="assert"?new $p(Qn,[Pn]):ao==="coerce"?new uv(Qn,[Pn]):Pn}if(Array.isArray(Bt)){if(Bt.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var mr=Bt[0];if(typeof mr!="string")return this.error("Expression name must be a string, but found "+typeof mr+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var Mr=this.registry[mr];if(Mr){var Fr=Mr.parse(Bt,this);if(!Fr)return null;if(this.expectedType){var tn=this.expectedType,Tn=Fr.type;if((tn.kind==="string"||tn.kind==="number"||tn.kind==="boolean"||tn.kind==="object"||tn.kind==="array")&&Tn.kind==="value")Fr=ir(Fr,tn,Wt.typeAnnotation||"assert");else if((tn.kind==="color"||tn.kind==="formatted"||tn.kind==="resolvedImage")&&(Tn.kind==="value"||Tn.kind==="string"))Fr=ir(Fr,tn,Wt.typeAnnotation||"coerce");else if(this.checkSubtype(tn,Tn))return null}if(!(Fr instanceof _p)&&Fr.type.kind!=="resolvedImage"&&vv(Fr)){var Mn=new qv;try{Fr=new _p(Fr.type,Fr.evaluate(Mn))}catch(Pn){return this.error(Pn.message),null}}return Fr}return this.error('Unknown expression "'+mr+'". If you wanted a literal array, use ["literal", [...]].',0)}else return typeof Bt>"u"?this.error("'undefined' value invalid. Use null instead."):typeof Bt=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof Bt+" instead.")},t0.prototype.concat=function(Bt,Wt,ir){var mr=typeof Bt=="number"?this.path.concat(Bt):this.path,Mr=ir?this.scope.concat(ir):this.scope;return new t0(this.registry,mr,Wt||null,Mr,this.errors)},t0.prototype.error=function(Bt){for(var Wt=[],ir=arguments.length-1;ir-- >0;)Wt[ir]=arguments[ir+1];var mr=""+this.key+Wt.map(function(Mr){return"["+Mr+"]"}).join("");this.errors.push(new wo(mr,Bt))},t0.prototype.checkSubtype=function(Bt,Wt){var ir=nv(Bt,Wt);return ir&&this.error(ir),ir};function vv(Ft){if(Ft instanceof e0)return vv(Ft.boundExpression);if(Ft instanceof Hp&&Ft.name==="error")return!1;if(Ft instanceof R0)return!1;if(Ft instanceof Su)return!1;var Bt=Ft instanceof uv||Ft instanceof $p,Wt=!0;return Ft.eachChild(function(ir){Bt?Wt=Wt&&vv(ir):Wt=Wt&&ir instanceof _p}),Wt?Yu(Ft)&&np(Ft,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]):!1}function p0(Ft,Bt){for(var Wt=Ft.length-1,ir=0,mr=Wt,Mr=0,Fr,tn;ir<=mr;)if(Mr=Math.floor((ir+mr)/2),Fr=Ft[Mr],tn=Ft[Mr+1],Fr<=Bt){if(Mr===Wt||BtBt)mr=Mr-1;else throw new kp("Input is not a number.");return 0}var $v=function(Bt,Wt,ir){this.type=Bt,this.input=Wt,this.labels=[],this.outputs=[];for(var mr=0,Mr=ir;mr=tn)return Wt.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',Mn);var Qn=Wt.parse(Tn,Pn,Mr);if(!Qn)return null;Mr=Mr||Qn.type,mr.push([tn,Qn])}return new $v(Mr,ir,mr)},$v.prototype.evaluate=function(Bt){var Wt=this.labels,ir=this.outputs;if(Wt.length===1)return ir[0].evaluate(Bt);var mr=this.input.evaluate(Bt);if(mr<=Wt[0])return ir[0].evaluate(Bt);var Mr=Wt.length;if(mr>=Wt[Mr-1])return ir[Mr-1].evaluate(Bt);var Fr=p0(Wt,mr);return ir[Fr].evaluate(Bt)},$v.prototype.eachChild=function(Bt){Bt(this.input);for(var Wt=0,ir=this.outputs;Wt0&&Bt.push(this.labels[Wt]),Bt.push(this.outputs[Wt].serialize());return Bt};function up(Ft,Bt,Wt){return Ft*(1-Wt)+Bt*Wt}function y1(Ft,Bt,Wt){return new Bu(up(Ft.r,Bt.r,Wt),up(Ft.g,Bt.g,Wt),up(Ft.b,Bt.b,Wt),up(Ft.a,Bt.a,Wt))}function ym(Ft,Bt,Wt){return Ft.map(function(ir,mr){return up(ir,Bt[mr],Wt)})}var ep=Object.freeze({__proto__:null,number:up,color:y1,array:ym}),x1=.95047,G0=1,Zp=1.08883,xm=4/29,b1=6/29,bm=3*b1*b1,Em=b1*b1*b1,v0=Math.PI/180,E1=180/Math.PI;function Tm(Ft){return Ft>Em?Math.pow(Ft,.3333333333333333):Ft/bm+xm}function T1(Ft){return Ft>b1?Ft*Ft*Ft:bm*(Ft-xm)}function V0(Ft){return 255*(Ft<=.0031308?12.92*Ft:1.055*Math.pow(Ft,.4166666666666667)-.055)}function j1(Ft){return Ft/=255,Ft<=.04045?Ft/12.92:Math.pow((Ft+.055)/1.055,2.4)}function L0(Ft){var Bt=j1(Ft.r),Wt=j1(Ft.g),ir=j1(Ft.b),mr=Tm((.4124564*Bt+.3575761*Wt+.1804375*ir)/x1),Mr=Tm((.2126729*Bt+.7151522*Wt+.072175*ir)/G0),Fr=Tm((.0193339*Bt+.119192*Wt+.9503041*ir)/Zp);return{l:116*Mr-16,a:500*(mr-Mr),b:200*(Mr-Fr),alpha:Ft.a}}function Y1(Ft){var Bt=(Ft.l+16)/116,Wt=isNaN(Ft.a)?Bt:Bt+Ft.a/500,ir=isNaN(Ft.b)?Bt:Bt-Ft.b/200;return Bt=G0*T1(Bt),Wt=x1*T1(Wt),ir=Zp*T1(ir),new Bu(V0(3.2404542*Wt-1.5371385*Bt-.4985314*ir),V0(-.969266*Wt+1.8760108*Bt+.041556*ir),V0(.0556434*Wt-.2040259*Bt+1.0572252*ir),Ft.alpha)}function qu(Ft,Bt,Wt){return{l:up(Ft.l,Bt.l,Wt),a:up(Ft.a,Bt.a,Wt),b:up(Ft.b,Bt.b,Wt),alpha:up(Ft.alpha,Bt.alpha,Wt)}}function D0(Ft){var Bt=L0(Ft),Wt=Bt.l,ir=Bt.a,mr=Bt.b,Mr=Math.atan2(mr,ir)*E1;return{h:Mr<0?Mr+360:Mr,c:Math.sqrt(ir*ir+mr*mr),l:Wt,alpha:Ft.a}}function gv(Ft){var Bt=Ft.h*v0,Wt=Ft.c,ir=Ft.l;return Y1({l:ir,a:Math.cos(Bt)*Wt,b:Math.sin(Bt)*Wt,alpha:Ft.alpha})}function uy(Ft,Bt,Wt){var ir=Bt-Ft;return Ft+Wt*(ir>180||ir<-180?ir-360*Math.round(ir/360):ir)}function Hm(Ft,Bt,Wt){return{h:uy(Ft.h,Bt.h,Wt),c:up(Ft.c,Bt.c,Wt),l:up(Ft.l,Bt.l,Wt),alpha:up(Ft.alpha,Bt.alpha,Wt)}}var W0={forward:L0,reverse:Y1,interpolate:qu},Hv={forward:D0,reverse:gv,interpolate:Hm},j0=Object.freeze({__proto__:null,lab:W0,hcl:Hv}),Ep=function(Bt,Wt,ir,mr,Mr){this.type=Bt,this.operator=Wt,this.interpolation=ir,this.input=mr,this.labels=[],this.outputs=[];for(var Fr=0,tn=Mr;Fr1}))return Wt.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);mr={name:"cubic-bezier",controlPoints:Tn}}else return Wt.error("Unknown interpolation type "+String(mr[0]),1,0);if(Bt.length-1<4)return Wt.error("Expected at least 4 arguments, but found only "+(Bt.length-1)+".");if((Bt.length-1)%2!==0)return Wt.error("Expected an even number of arguments.");if(Mr=Wt.parse(Mr,2,rs),!Mr)return null;var Mn=[],Pn=null;ir==="interpolate-hcl"||ir==="interpolate-lab"?Pn=Cs:Wt.expectedType&&Wt.expectedType.kind!=="value"&&(Pn=Wt.expectedType);for(var Qn=0;Qn=ao)return Wt.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',Eo);var ds=Wt.parse($a,Ho,Pn);if(!ds)return null;Pn=Pn||ds.type,Mn.push([ao,ds])}return Pn.kind!=="number"&&Pn.kind!=="color"&&!(Pn.kind==="array"&&Pn.itemType.kind==="number"&&typeof Pn.N=="number")?Wt.error("Type "+Vu(Pn)+" is not interpolatable."):new Ep(Pn,ir,mr,Mr,Mn)},Ep.prototype.evaluate=function(Bt){var Wt=this.labels,ir=this.outputs;if(Wt.length===1)return ir[0].evaluate(Bt);var mr=this.input.evaluate(Bt);if(mr<=Wt[0])return ir[0].evaluate(Bt);var Mr=Wt.length;if(mr>=Wt[Mr-1])return ir[Mr-1].evaluate(Bt);var Fr=p0(Wt,mr),tn=Wt[Fr],Tn=Wt[Fr+1],Mn=Ep.interpolationFactor(this.interpolation,mr,tn,Tn),Pn=ir[Fr].evaluate(Bt),Qn=ir[Fr+1].evaluate(Bt);return this.operator==="interpolate"?ep[this.type.kind.toLowerCase()](Pn,Qn,Mn):this.operator==="interpolate-hcl"?Hv.reverse(Hv.interpolate(Hv.forward(Pn),Hv.forward(Qn),Mn)):W0.reverse(W0.interpolate(W0.forward(Pn),W0.forward(Qn),Mn))},Ep.prototype.eachChild=function(Bt){Bt(this.input);for(var Wt=0,ir=this.outputs;Wt=ir.length)throw new kp("Array index out of bounds: "+Wt+" > "+(ir.length-1)+".");if(Wt!==Math.floor(Wt))throw new kp("Array index must be an integer, but found "+Wt+" instead.");return ir[Wt]},Y0.prototype.eachChild=function(Bt){Bt(this.index),Bt(this.input)},Y0.prototype.outputDefined=function(){return!1},Y0.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var pp=function(Bt,Wt){this.type=Gs,this.needle=Bt,this.haystack=Wt};pp.parse=function(Bt,Wt){if(Bt.length!==3)return Wt.error("Expected 2 arguments, but found "+(Bt.length-1)+" instead.");var ir=Wt.parse(Bt[1],1,Ys),mr=Wt.parse(Bt[2],2,Ys);return!ir||!mr?null:Kp(ir.type,[Gs,_s,rs,Wo,Ys])?new pp(ir,mr):Wt.error("Expected first argument to be of type boolean, string, number or null, but found "+Vu(ir.type)+" instead")},pp.prototype.evaluate=function(Bt){var Wt=this.needle.evaluate(Bt),ir=this.haystack.evaluate(Bt);if(!ir)return!1;if(!c1(Wt,["boolean","string","number","null"]))throw new kp("Expected first argument to be of type boolean, string, number or null, but found "+Vu(Ap(Wt))+" instead.");if(!c1(ir,["string","array"]))throw new kp("Expected second argument to be of type array or string, but found "+Vu(Ap(ir))+" instead.");return ir.indexOf(Wt)>=0},pp.prototype.eachChild=function(Bt){Bt(this.needle),Bt(this.haystack)},pp.prototype.outputDefined=function(){return!0},pp.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var vp=function(Bt,Wt,ir){this.type=rs,this.needle=Bt,this.haystack=Wt,this.fromIndex=ir};vp.parse=function(Bt,Wt){if(Bt.length<=2||Bt.length>=5)return Wt.error("Expected 3 or 4 arguments, but found "+(Bt.length-1)+" instead.");var ir=Wt.parse(Bt[1],1,Ys),mr=Wt.parse(Bt[2],2,Ys);if(!ir||!mr)return null;if(!Kp(ir.type,[Gs,_s,rs,Wo,Ys]))return Wt.error("Expected first argument to be of type boolean, string, number or null, but found "+Vu(ir.type)+" instead");if(Bt.length===4){var Mr=Wt.parse(Bt[3],3,rs);return Mr?new vp(ir,mr,Mr):null}else return new vp(ir,mr)},vp.prototype.evaluate=function(Bt){var Wt=this.needle.evaluate(Bt),ir=this.haystack.evaluate(Bt);if(!c1(Wt,["boolean","string","number","null"]))throw new kp("Expected first argument to be of type boolean, string, number or null, but found "+Vu(Ap(Wt))+" instead.");if(!c1(ir,["string","array"]))throw new kp("Expected second argument to be of type array or string, but found "+Vu(Ap(ir))+" instead.");if(this.fromIndex){var mr=this.fromIndex.evaluate(Bt);return ir.indexOf(Wt,mr)}return ir.indexOf(Wt)},vp.prototype.eachChild=function(Bt){Bt(this.needle),Bt(this.haystack),this.fromIndex&&Bt(this.fromIndex)},vp.prototype.outputDefined=function(){return!1},vp.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var Bt=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),Bt]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var m0=function(Bt,Wt,ir,mr,Mr,Fr){this.inputType=Bt,this.type=Wt,this.input=ir,this.cases=mr,this.outputs=Mr,this.otherwise=Fr};m0.parse=function(Bt,Wt){if(Bt.length<5)return Wt.error("Expected at least 4 arguments, but found only "+(Bt.length-1)+".");if(Bt.length%2!==1)return Wt.error("Expected an even number of arguments.");var ir,mr;Wt.expectedType&&Wt.expectedType.kind!=="value"&&(mr=Wt.expectedType);for(var Mr={},Fr=[],tn=2;tnNumber.MAX_SAFE_INTEGER)return Pn.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof $a=="number"&&Math.floor($a)!==$a)return Pn.error("Numeric branch labels must be integer values.");if(!ir)ir=Ap($a);else if(Pn.checkSubtype(ir,Ap($a)))return null;if(typeof Mr[String($a)]<"u")return Pn.error("Branch labels must be unique.");Mr[String($a)]=Fr.length}var Eo=Wt.parse(Mn,tn,mr);if(!Eo)return null;mr=mr||Eo.type,Fr.push(Eo)}var Ho=Wt.parse(Bt[1],1,Ys);if(!Ho)return null;var ds=Wt.parse(Bt[Bt.length-1],Bt.length-1,mr);return!ds||Ho.type.kind!=="value"&&Wt.concat(1).checkSubtype(ir,Ho.type)?null:new m0(ir,mr,Ho,Mr,Fr,ds)},m0.prototype.evaluate=function(Bt){var Wt=this.input.evaluate(Bt),ir=Ap(Wt)===this.inputType&&this.outputs[this.cases[Wt]]||this.otherwise;return ir.evaluate(Bt)},m0.prototype.eachChild=function(Bt){Bt(this.input),this.outputs.forEach(Bt),Bt(this.otherwise)},m0.prototype.outputDefined=function(){return this.outputs.every(function(Bt){return Bt.outputDefined()})&&this.otherwise.outputDefined()},m0.prototype.serialize=function(){for(var Bt=this,Wt=["match",this.input.serialize()],ir=Object.keys(this.cases).sort(),mr=[],Mr={},Fr=0,tn=ir;Fr=5)return Wt.error("Expected 3 or 4 arguments, but found "+(Bt.length-1)+" instead.");var ir=Wt.parse(Bt[1],1,Ys),mr=Wt.parse(Bt[2],2,rs);if(!ir||!mr)return null;if(!Kp(ir.type,[ju(Ys),_s,Ys]))return Wt.error("Expected first argument to be of type array or string, but found "+Vu(ir.type)+" instead");if(Bt.length===4){var Mr=Wt.parse(Bt[3],3,rs);return Mr?new wv(ir.type,ir,mr,Mr):null}else return new wv(ir.type,ir,mr)},wv.prototype.evaluate=function(Bt){var Wt=this.input.evaluate(Bt),ir=this.beginIndex.evaluate(Bt);if(!c1(Wt,["string","array"]))throw new kp("Expected first argument to be of type array or string, but found "+Vu(Ap(Wt))+" instead.");if(this.endIndex){var mr=this.endIndex.evaluate(Bt);return Wt.slice(ir,mr)}return Wt.slice(ir)},wv.prototype.eachChild=function(Bt){Bt(this.input),Bt(this.beginIndex),this.endIndex&&Bt(this.endIndex)},wv.prototype.outputDefined=function(){return!1},wv.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var Bt=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),Bt]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};function K1(Ft,Bt){return Ft==="=="||Ft==="!="?Bt.kind==="boolean"||Bt.kind==="string"||Bt.kind==="number"||Bt.kind==="null"||Bt.kind==="value":Bt.kind==="string"||Bt.kind==="number"||Bt.kind==="value"}function Gm(Ft,Bt,Wt){return Bt===Wt}function Z1(Ft,Bt,Wt){return Bt!==Wt}function Vm(Ft,Bt,Wt){return BtWt}function X0(Ft,Bt,Wt){return Bt<=Wt}function _1(Ft,Bt,Wt){return Bt>=Wt}function y0(Ft,Bt,Wt,ir){return ir.compare(Bt,Wt)===0}function Sp(Ft,Bt,Wt,ir){return!y0(Ft,Bt,Wt,ir)}function Cv(Ft,Bt,Wt,ir){return ir.compare(Bt,Wt)<0}function S1(Ft,Bt,Wt,ir){return ir.compare(Bt,Wt)>0}function cy(Ft,Bt,Wt,ir){return ir.compare(Bt,Wt)<=0}function J1(Ft,Bt,Wt,ir){return ir.compare(Bt,Wt)>=0}function x0(Ft,Bt,Wt){var ir=Ft!=="=="&&Ft!=="!=";return function(){function mr(Mr,Fr,tn){this.type=Gs,this.lhs=Mr,this.rhs=Fr,this.collator=tn,this.hasUntypedArgument=Mr.type.kind==="value"||Fr.type.kind==="value"}return mr.parse=function(Fr,tn){if(Fr.length!==3&&Fr.length!==4)return tn.error("Expected two or three arguments.");var Tn=Fr[0],Mn=tn.parse(Fr[1],1,Ys);if(!Mn)return null;if(!K1(Tn,Mn.type))return tn.concat(1).error('"'+Tn+`" comparisons are not supported for type '`+Vu(Mn.type)+"'.");var Pn=tn.parse(Fr[2],2,Ys);if(!Pn)return null;if(!K1(Tn,Pn.type))return tn.concat(2).error('"'+Tn+`" comparisons are not supported for type '`+Vu(Pn.type)+"'.");if(Mn.type.kind!==Pn.type.kind&&Mn.type.kind!=="value"&&Pn.type.kind!=="value")return tn.error("Cannot compare types '"+Vu(Mn.type)+"' and '"+Vu(Pn.type)+"'.");ir&&(Mn.type.kind==="value"&&Pn.type.kind!=="value"?Mn=new $p(Pn.type,[Mn]):Mn.type.kind!=="value"&&Pn.type.kind==="value"&&(Pn=new $p(Mn.type,[Pn])));var Qn=null;if(Fr.length===4){if(Mn.type.kind!=="string"&&Pn.type.kind!=="string"&&Mn.type.kind!=="value"&&Pn.type.kind!=="value")return tn.error("Cannot use collator to compare non-string types.");if(Qn=tn.parse(Fr[3],3,zl),!Qn)return null}return new mr(Mn,Pn,Qn)},mr.prototype.evaluate=function(Fr){var tn=this.lhs.evaluate(Fr),Tn=this.rhs.evaluate(Fr);if(ir&&this.hasUntypedArgument){var Mn=Ap(tn),Pn=Ap(Tn);if(Mn.kind!==Pn.kind||!(Mn.kind==="string"||Mn.kind==="number"))throw new kp('Expected arguments for "'+Ft+'" to be (string, string) or (number, number), but found ('+Mn.kind+", "+Pn.kind+") instead.")}if(this.collator&&!ir&&this.hasUntypedArgument){var Qn=Ap(tn),ao=Ap(Tn);if(Qn.kind!=="string"||ao.kind!=="string")return Bt(Fr,tn,Tn)}return this.collator?Wt(Fr,tn,Tn,this.collator.evaluate(Fr)):Bt(Fr,tn,Tn)},mr.prototype.eachChild=function(Fr){Fr(this.lhs),Fr(this.rhs),this.collator&&Fr(this.collator)},mr.prototype.outputDefined=function(){return!0},mr.prototype.serialize=function(){var Fr=[Ft];return this.eachChild(function(tn){Fr.push(tn.serialize())}),Fr},mr}()}var Am=x0("==",Gm,y0),w1=x0("!=",Z1,Sp),Wm=x0("<",Vm,Cv),Ao=x0(">",A1,S1),K0=x0("<=",X0,cy),Gp=x0(">=",_1,J1),Mp=function(Bt,Wt,ir,mr,Mr){this.type=_s,this.number=Bt,this.locale=Wt,this.currency=ir,this.minFractionDigits=mr,this.maxFractionDigits=Mr};Mp.parse=function(Bt,Wt){if(Bt.length!==3)return Wt.error("Expected two arguments.");var ir=Wt.parse(Bt[1],1,rs);if(!ir)return null;var mr=Bt[2];if(typeof mr!="object"||Array.isArray(mr))return Wt.error("NumberFormat options argument must be an object.");var Mr=null;if(mr.locale&&(Mr=Wt.parse(mr.locale,1,_s),!Mr))return null;var Fr=null;if(mr.currency&&(Fr=Wt.parse(mr.currency,1,_s),!Fr))return null;var tn=null;if(mr["min-fraction-digits"]&&(tn=Wt.parse(mr["min-fraction-digits"],1,rs),!tn))return null;var Tn=null;return mr["max-fraction-digits"]&&(Tn=Wt.parse(mr["max-fraction-digits"],1,rs),!Tn)?null:new Mp(ir,Mr,Fr,tn,Tn)},Mp.prototype.evaluate=function(Bt){return new Intl.NumberFormat(this.locale?this.locale.evaluate(Bt):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(Bt):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(Bt):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(Bt):void 0}).format(this.number.evaluate(Bt))},Mp.prototype.eachChild=function(Bt){Bt(this.number),this.locale&&Bt(this.locale),this.currency&&Bt(this.currency),this.minFractionDigits&&Bt(this.minFractionDigits),this.maxFractionDigits&&Bt(this.maxFractionDigits)},Mp.prototype.outputDefined=function(){return!1},Mp.prototype.serialize=function(){var Bt={};return this.locale&&(Bt.locale=this.locale.serialize()),this.currency&&(Bt.currency=this.currency.serialize()),this.minFractionDigits&&(Bt["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(Bt["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),Bt]};var Lu=function(Bt){this.type=rs,this.input=Bt};Lu.parse=function(Bt,Wt){if(Bt.length!==2)return Wt.error("Expected 1 argument, but found "+(Bt.length-1)+" instead.");var ir=Wt.parse(Bt[1],1);return ir?ir.type.kind!=="array"&&ir.type.kind!=="string"&&ir.type.kind!=="value"?Wt.error("Expected argument of type string or array, but found "+Vu(ir.type)+" instead."):new Lu(ir):null},Lu.prototype.evaluate=function(Bt){var Wt=this.input.evaluate(Bt);if(typeof Wt=="string")return Wt.length;if(Array.isArray(Wt))return Wt.length;throw new kp("Expected value to be of type string or array, but found "+Vu(Ap(Wt))+" instead.")},Lu.prototype.eachChild=function(Bt){Bt(this.input)},Lu.prototype.outputDefined=function(){return!1},Lu.prototype.serialize=function(){var Bt=["length"];return this.eachChild(function(Wt){Bt.push(Wt.serialize())}),Bt};var C1={"==":Am,"!=":w1,">":Ao,"<":Wm,">=":Gp,"<=":K0,array:$p,at:Y0,boolean:$p,case:Gv,coalesce:Nv,collator:R0,format:op,image:lv,in:pp,"index-of":vp,interpolate:Ep,"interpolate-hcl":Ep,"interpolate-lab":Ep,length:Lu,let:g0,literal:_p,match:m0,number:$p,"number-format":Mp,object:$p,slice:wv,step:$v,string:$p,"to-boolean":uv,"to-color":uv,"to-number":uv,"to-string":uv,var:e0,within:Su};function _m(Ft,Bt){var Wt=Bt[0],ir=Bt[1],mr=Bt[2],Mr=Bt[3];Wt=Wt.evaluate(Ft),ir=ir.evaluate(Ft),mr=mr.evaluate(Ft);var Fr=Mr?Mr.evaluate(Ft):1,tn=C0(Wt,ir,mr,Fr);if(tn)throw new kp(tn);return new Bu(Wt/255*Fr,ir/255*Fr,mr/255*Fr,Fr)}function Z0(Ft,Bt){return Ft in Bt}function Rv(Ft,Bt){var Wt=Bt[Ft];return typeof Wt>"u"?null:Wt}function fy(Ft,Bt,Wt,ir){for(;Wt<=ir;){var mr=Wt+ir>>1;if(Bt[mr]===Ft)return!0;Bt[mr]>Ft?ir=mr-1:Wt=mr+1}return!1}function b0(Ft){return{type:Ft}}Hp.register(C1,{error:[Bl,[_s],function(Ft,Bt){var Wt=Bt[0];throw new kp(Wt.evaluate(Ft))}],typeof:[_s,[Ys],function(Ft,Bt){var Wt=Bt[0];return Vu(Ap(Wt.evaluate(Ft)))}],"to-rgba":[ju(rs,4),[Cs],function(Ft,Bt){var Wt=Bt[0];return Wt.evaluate(Ft).toArray()}],rgb:[Cs,[rs,rs,rs],_m],rgba:[Cs,[rs,rs,rs,rs],_m],has:{type:Gs,overloads:[[[_s],function(Ft,Bt){var Wt=Bt[0];return Z0(Wt.evaluate(Ft),Ft.properties())}],[[_s,Ks],function(Ft,Bt){var Wt=Bt[0],ir=Bt[1];return Z0(Wt.evaluate(Ft),ir.evaluate(Ft))}]]},get:{type:Ys,overloads:[[[_s],function(Ft,Bt){var Wt=Bt[0];return Rv(Wt.evaluate(Ft),Ft.properties())}],[[_s,Ks],function(Ft,Bt){var Wt=Bt[0],ir=Bt[1];return Rv(Wt.evaluate(Ft),ir.evaluate(Ft))}]]},"feature-state":[Ys,[_s],function(Ft,Bt){var Wt=Bt[0];return Rv(Wt.evaluate(Ft),Ft.featureState||{})}],properties:[Ks,[],function(Ft){return Ft.properties()}],"geometry-type":[_s,[],function(Ft){return Ft.geometryType()}],id:[Ys,[],function(Ft){return Ft.id()}],zoom:[rs,[],function(Ft){return Ft.globals.zoom}],"heatmap-density":[rs,[],function(Ft){return Ft.globals.heatmapDensity||0}],"line-progress":[rs,[],function(Ft){return Ft.globals.lineProgress||0}],accumulated:[Ys,[],function(Ft){return Ft.globals.accumulated===void 0?null:Ft.globals.accumulated}],"+":[rs,b0(rs),function(Ft,Bt){for(var Wt=0,ir=0,mr=Bt;ir":[Gs,[_s,Ys],function(Ft,Bt){var Wt=Bt[0],ir=Bt[1],mr=Ft.properties()[Wt.value],Mr=ir.value;return typeof mr==typeof Mr&&mr>Mr}],"filter-id->":[Gs,[Ys],function(Ft,Bt){var Wt=Bt[0],ir=Ft.id(),mr=Wt.value;return typeof ir==typeof mr&&ir>mr}],"filter-<=":[Gs,[_s,Ys],function(Ft,Bt){var Wt=Bt[0],ir=Bt[1],mr=Ft.properties()[Wt.value],Mr=ir.value;return typeof mr==typeof Mr&&mr<=Mr}],"filter-id-<=":[Gs,[Ys],function(Ft,Bt){var Wt=Bt[0],ir=Ft.id(),mr=Wt.value;return typeof ir==typeof mr&&ir<=mr}],"filter->=":[Gs,[_s,Ys],function(Ft,Bt){var Wt=Bt[0],ir=Bt[1],mr=Ft.properties()[Wt.value],Mr=ir.value;return typeof mr==typeof Mr&&mr>=Mr}],"filter-id->=":[Gs,[Ys],function(Ft,Bt){var Wt=Bt[0],ir=Ft.id(),mr=Wt.value;return typeof ir==typeof mr&&ir>=mr}],"filter-has":[Gs,[Ys],function(Ft,Bt){var Wt=Bt[0];return Wt.value in Ft.properties()}],"filter-has-id":[Gs,[],function(Ft){return Ft.id()!==null&&Ft.id()!==void 0}],"filter-type-in":[Gs,[ju(_s)],function(Ft,Bt){var Wt=Bt[0];return Wt.value.indexOf(Ft.geometryType())>=0}],"filter-id-in":[Gs,[ju(Ys)],function(Ft,Bt){var Wt=Bt[0];return Wt.value.indexOf(Ft.id())>=0}],"filter-in-small":[Gs,[_s,ju(Ys)],function(Ft,Bt){var Wt=Bt[0],ir=Bt[1];return ir.value.indexOf(Ft.properties()[Wt.value])>=0}],"filter-in-large":[Gs,[_s,ju(Ys)],function(Ft,Bt){var Wt=Bt[0],ir=Bt[1];return fy(Ft.properties()[Wt.value],ir.value,0,ir.value.length-1)}],all:{type:Gs,overloads:[[[Gs,Gs],function(Ft,Bt){var Wt=Bt[0],ir=Bt[1];return Wt.evaluate(Ft)&&ir.evaluate(Ft)}],[b0(Gs),function(Ft,Bt){for(var Wt=0,ir=Bt;Wt-1}function M1(Ft){return!!Ft.expression&&Ft.expression.interpolated}function tp(Ft){return Ft instanceof Number?"number":Ft instanceof String?"string":Ft instanceof Boolean?"boolean":Array.isArray(Ft)?"array":Ft===null?"null":typeof Ft}function I1(Ft){return typeof Ft=="object"&&Ft!==null&&!Array.isArray(Ft)}function Sm(Ft){return Ft}function dy(Ft,Bt){var Wt=Bt.type==="color",ir=Ft.stops&&typeof Ft.stops[0][0]=="object",mr=ir||Ft.property!==void 0,Mr=ir||!mr,Fr=Ft.type||(M1(Bt)?"exponential":"interval");if(Wt&&(Ft=Ps({},Ft),Ft.stops&&(Ft.stops=Ft.stops.map(function(Dl){return[Dl[0],Bu.parse(Dl[1])]})),Ft.default?Ft.default=Bu.parse(Ft.default):Ft.default=Bu.parse(Bt.default)),Ft.colorSpace&&Ft.colorSpace!=="rgb"&&!j0[Ft.colorSpace])throw new Error("Unknown color space: "+Ft.colorSpace);var tn,Tn,Mn;if(Fr==="exponential")tn=jm;else if(Fr==="interval")tn=wm;else if(Fr==="categorical"){tn=Q1,Tn=Object.create(null);for(var Pn=0,Qn=Ft.stops;Pn=Ft.stops[ir-1][0])return Ft.stops[ir-1][1];var mr=p0(Ft.stops.map(function(Mr){return Mr[0]}),Wt);return Ft.stops[mr][1]}function jm(Ft,Bt,Wt){var ir=Ft.base!==void 0?Ft.base:1;if(tp(Wt)!=="number")return mv(Ft.default,Bt.default);var mr=Ft.stops.length;if(mr===1||Wt<=Ft.stops[0][0])return Ft.stops[0][1];if(Wt>=Ft.stops[mr-1][0])return Ft.stops[mr-1][1];var Mr=p0(Ft.stops.map(function(Qn){return Qn[0]}),Wt),Fr=em(Wt,ir,Ft.stops[Mr][0],Ft.stops[Mr+1][0]),tn=Ft.stops[Mr][1],Tn=Ft.stops[Mr+1][1],Mn=ep[Bt.type]||Sm;if(Ft.colorSpace&&Ft.colorSpace!=="rgb"){var Pn=j0[Ft.colorSpace];Mn=function(Qn,ao){return Pn.reverse(Pn.interpolate(Pn.forward(Qn),Pn.forward(ao),Fr))}}return typeof tn.evaluate=="function"?{evaluate:function(){for(var ao=[],$a=arguments.length;$a--;)ao[$a]=arguments[$a];var Eo=tn.evaluate.apply(void 0,ao),Ho=Tn.evaluate.apply(void 0,ao);if(!(Eo===void 0||Ho===void 0))return Mn(Eo,Ho,Fr)}}:Mn(tn,Tn,Fr)}function q1(Ft,Bt,Wt){return Bt.type==="color"?Wt=Bu.parse(Wt):Bt.type==="formatted"?Wt=Op.fromString(Wt.toString()):Bt.type==="resolvedImage"?Wt=av.fromString(Wt.toString()):tp(Wt)!==Bt.type&&(Bt.type!=="enum"||!Bt.values[Wt])&&(Wt=void 0),mv(Wt,Ft.default,Bt.default)}function em(Ft,Bt,Wt,ir){var mr=ir-Wt,Mr=Ft-Wt;return mr===0?0:Bt===1?Mr/mr:(Math.pow(Bt,Mr)-1)/(Math.pow(Bt,mr)-1)}var yv=function(Bt,Wt){this.expression=Bt,this._warningHistory={},this._evaluator=new qv,this._defaultValue=Wt?Xm(Wt):null,this._enumValues=Wt&&Wt.type==="enum"?Wt.values:null};yv.prototype.evaluateWithoutErrorHandling=function(Bt,Wt,ir,mr,Mr,Fr){return this._evaluator.globals=Bt,this._evaluator.feature=Wt,this._evaluator.featureState=ir,this._evaluator.canonical=mr,this._evaluator.availableImages=Mr||null,this._evaluator.formattedSection=Fr,this.expression.evaluate(this._evaluator)},yv.prototype.evaluate=function(Bt,Wt,ir,mr,Mr,Fr){this._evaluator.globals=Bt,this._evaluator.feature=Wt||null,this._evaluator.featureState=ir||null,this._evaluator.canonical=mr,this._evaluator.availableImages=Mr||null,this._evaluator.formattedSection=Fr||null;try{var tn=this.expression.evaluate(this._evaluator);if(tn==null||typeof tn=="number"&&tn!==tn)return this._defaultValue;if(this._enumValues&&!(tn in this._enumValues))throw new kp("Expected value to be one of "+Object.keys(this._enumValues).map(function(Tn){return JSON.stringify(Tn)}).join(", ")+", but found "+JSON.stringify(tn)+" instead.");return tn}catch(Tn){return this._warningHistory[Tn.message]||(this._warningHistory[Tn.message]=!0,typeof console<"u"&&console.warn(Tn.message)),this._defaultValue}};function tm(Ft){return Array.isArray(Ft)&&Ft.length>0&&typeof Ft[0]=="string"&&Ft[0]in C1}function N0(Ft,Bt){var Wt=new t0(C1,[],Bt?hy(Bt):void 0),ir=Wt.parse(Ft,void 0,void 0,void 0,Bt&&Bt.type==="string"?{typeAnnotation:"coerce"}:void 0);return ir?R1(new yv(ir,Bt)):P0(Wt.errors)}var sp=function(Bt,Wt){this.kind=Bt,this._styleExpression=Wt,this.isStateDependent=Bt!=="constant"&&!mp(Wt.expression)};sp.prototype.evaluateWithoutErrorHandling=function(Bt,Wt,ir,mr,Mr,Fr){return this._styleExpression.evaluateWithoutErrorHandling(Bt,Wt,ir,mr,Mr,Fr)},sp.prototype.evaluate=function(Bt,Wt,ir,mr,Mr,Fr){return this._styleExpression.evaluate(Bt,Wt,ir,mr,Mr,Fr)};var r0=function(Bt,Wt,ir,mr){this.kind=Bt,this.zoomStops=ir,this._styleExpression=Wt,this.isStateDependent=Bt!=="camera"&&!mp(Wt.expression),this.interpolationType=mr};r0.prototype.evaluateWithoutErrorHandling=function(Bt,Wt,ir,mr,Mr,Fr){return this._styleExpression.evaluateWithoutErrorHandling(Bt,Wt,ir,mr,Mr,Fr)},r0.prototype.evaluate=function(Bt,Wt,ir,mr,Mr,Fr){return this._styleExpression.evaluate(Bt,Wt,ir,mr,Mr,Fr)},r0.prototype.interpolationFactor=function(Bt,Wt,ir){return this.interpolationType?Ep.interpolationFactor(this.interpolationType,Bt,Wt,ir):0};function Ym(Ft,Bt){if(Ft=N0(Ft,Bt),Ft.result==="error")return Ft;var Wt=Ft.value.expression,ir=Yu(Wt);if(!ir&&!E0(Bt))return P0([new wo("","data expressions not supported")]);var mr=np(Wt,["zoom"]);if(!mr&&!Mv(Bt))return P0([new wo("","zoom expressions not supported")]);var Mr=rm(Wt);if(!Mr&&!mr)return P0([new wo("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(Mr instanceof wo)return P0([Mr]);if(Mr instanceof Ep&&!M1(Bt))return P0([new wo("",'"interpolate" expressions cannot be used with this property')]);if(!Mr)return R1(ir?new sp("constant",Ft.value):new sp("source",Ft.value));var Fr=Mr instanceof Ep?Mr.interpolation:void 0;return R1(ir?new r0("camera",Ft.value,Mr.labels,Fr):new r0("composite",Ft.value,Mr.labels,Fr))}var J0=function(Bt,Wt){this._parameters=Bt,this._specification=Wt,Ps(this,dy(this._parameters,this._specification))};J0.deserialize=function(Bt){return new J0(Bt._parameters,Bt._specification)},J0.serialize=function(Bt){return{_parameters:Bt._parameters,_specification:Bt._specification}};function Cm(Ft,Bt){if(I1(Ft))return new J0(Ft,Bt);if(tm(Ft)){var Wt=Ym(Ft,Bt);if(Wt.result==="error")throw new Error(Wt.value.map(function(mr){return mr.key+": "+mr.message}).join(", "));return Wt.value}else{var ir=Ft;return typeof Ft=="string"&&Bt.type==="color"&&(ir=Bu.parse(Ft)),{kind:"constant",evaluate:function(){return ir}}}}function rm(Ft){var Bt=null;if(Ft instanceof g0)Bt=rm(Ft.result);else if(Ft instanceof Nv)for(var Wt=0,ir=Ft.args;Wtir.maximum?[new Bo(Bt,Wt,Wt+" is greater than the maximum value "+ir.maximum)]:[]}function k1(Ft){var Bt=Ft.valueSpec,Wt=xs(Ft.value.type),ir,mr={},Mr,Fr,tn=Wt!=="categorical"&&Ft.value.property===void 0,Tn=!tn,Mn=tp(Ft.value.stops)==="array"&&tp(Ft.value.stops[0])==="array"&&tp(Ft.value.stops[0][0])==="object",Pn=iv({key:Ft.key,value:Ft.value,valueSpec:Ft.styleSpec.function,style:Ft.style,styleSpec:Ft.styleSpec,objectElementValidators:{stops:Qn,default:Eo}});return Wt==="identity"&&tn&&Pn.push(new Bo(Ft.key,Ft.value,'missing required property "property"')),Wt!=="identity"&&!Ft.value.stops&&Pn.push(new Bo(Ft.key,Ft.value,'missing required property "stops"')),Wt==="exponential"&&Ft.valueSpec.expression&&!M1(Ft.valueSpec)&&Pn.push(new Bo(Ft.key,Ft.value,"exponential functions not supported")),Ft.styleSpec.$version>=8&&(Tn&&!E0(Ft.valueSpec)?Pn.push(new Bo(Ft.key,Ft.value,"property functions not supported")):tn&&!Mv(Ft.valueSpec)&&Pn.push(new Bo(Ft.key,Ft.value,"zoom functions not supported"))),(Wt==="categorical"||Mn)&&Ft.value.property===void 0&&Pn.push(new Bo(Ft.key,Ft.value,'"property" property is required')),Pn;function Qn(Ho){if(Wt==="identity")return[new Bo(Ho.key,Ho.value,'identity function may not have a "stops" property')];var ds=[],ss=Ho.value;return ds=ds.concat(nm({key:Ho.key,value:ss,valueSpec:Ho.valueSpec,style:Ho.style,styleSpec:Ho.styleSpec,arrayElementValidator:ao})),tp(ss)==="array"&&ss.length===0&&ds.push(new Bo(Ho.key,ss,"array must have at least one stop")),ds}function ao(Ho){var ds=[],ss=Ho.value,Bs=Ho.key;if(tp(ss)!=="array")return[new Bo(Bs,ss,"array expected, "+tp(ss)+" found")];if(ss.length!==2)return[new Bo(Bs,ss,"array length 2 expected, length "+ss.length+" found")];if(Mn){if(tp(ss[0])!=="object")return[new Bo(Bs,ss,"object expected, "+tp(ss[0])+" found")];if(ss[0].zoom===void 0)return[new Bo(Bs,ss,"object stop key must have zoom")];if(ss[0].value===void 0)return[new Bo(Bs,ss,"object stop key must have value")];if(Fr&&Fr>xs(ss[0].zoom))return[new Bo(Bs,ss[0].zoom,"stop zoom values must appear in ascending order")];xs(ss[0].zoom)!==Fr&&(Fr=xs(ss[0].zoom),Mr=void 0,mr={}),ds=ds.concat(iv({key:Bs+"[0]",value:ss[0],valueSpec:{zoom:{}},style:Ho.style,styleSpec:Ho.styleSpec,objectElementValidators:{zoom:O0,value:$a}}))}else ds=ds.concat($a({key:Bs+"[0]",value:ss[0],valueSpec:{},style:Ho.style,styleSpec:Ho.styleSpec},ss));return tm(us(ss[1]))?ds.concat([new Bo(Bs+"[1]",ss[1],"expressions are not allowed in function stops.")]):ds.concat(Do({key:Bs+"[1]",value:ss[1],valueSpec:Bt,style:Ho.style,styleSpec:Ho.styleSpec}))}function $a(Ho,ds){var ss=tp(Ho.value),Bs=xs(Ho.value),As=Ho.value!==null?Ho.value:ds;if(!ir)ir=ss;else if(ss!==ir)return[new Bo(Ho.key,As,ss+" stop domain type must match previous stop domain type "+ir)];if(ss!=="number"&&ss!=="string"&&ss!=="boolean")return[new Bo(Ho.key,As,"stop domain value must be a number, string, or boolean")];if(ss!=="number"&&Wt!=="categorical"){var Os="number expected, "+ss+" found";return E0(Bt)&&Wt===void 0&&(Os+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Bo(Ho.key,As,Os)]}return Wt==="categorical"&&ss==="number"&&(!isFinite(Bs)||Math.floor(Bs)!==Bs)?[new Bo(Ho.key,As,"integer expected, found "+Bs)]:Wt!=="categorical"&&ss==="number"&&Mr!==void 0&&Bs=2&&Ft[1]!=="$id"&&Ft[1]!=="$type";case"in":return Ft.length>=3&&(typeof Ft[1]!="string"||Array.isArray(Ft[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return Ft.length!==3||Array.isArray(Ft[1])||Array.isArray(Ft[2]);case"any":case"all":for(var Bt=0,Wt=Ft.slice(1);BtBt?1:0}function im(Ft){if(!Array.isArray(Ft))return!1;if(Ft[0]==="within")return!0;for(var Bt=1;Bt"||Bt==="<="||Bt===">="?om(Ft[1],Ft[2],Bt):Bt==="any"?D1(Ft.slice(1)):Bt==="all"?["all"].concat(Ft.slice(1).map(L1)):Bt==="none"?["all"].concat(Ft.slice(1).map(L1).map(Q0)):Bt==="in"?Fv(Ft[1],Ft.slice(2)):Bt==="!in"?Q0(Fv(Ft[1],Ft.slice(2))):Bt==="has"?Rm(Ft[1]):Bt==="!has"?Q0(Rm(Ft[1])):Bt==="within"?Ft:!0;return Wt}function om(Ft,Bt,Wt){switch(Ft){case"$type":return["filter-type-"+Wt,Bt];case"$id":return["filter-id-"+Wt,Bt];default:return["filter-"+Wt,Ft,Bt]}}function D1(Ft){return["any"].concat(Ft.map(L1))}function Fv(Ft,Bt){if(Bt.length===0)return!1;switch(Ft){case"$type":return["filter-type-in",["literal",Bt]];case"$id":return["filter-id-in",["literal",Bt]];default:return Bt.length>200&&!Bt.some(function(Wt){return typeof Wt!=typeof Bt[0]})?["filter-in-large",Ft,["literal",Bt.sort(bv)]]:["filter-in-small",Ft,["literal",Bt]]}}function Rm(Ft){switch(Ft){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",Ft]}}function Q0(Ft){return["!",Ft]}function P1(Ft){return Ov(us(Ft.value))?Vv(Ps({},Ft,{expressionContext:"filter",valueSpec:{value:"boolean"}})):sm(Ft)}function sm(Ft){var Bt=Ft.value,Wt=Ft.key;if(tp(Bt)!=="array")return[new Bo(Wt,Bt,"array expected, "+tp(Bt)+" found")];var ir=Ft.styleSpec,mr,Mr=[];if(Bt.length<1)return[new Bo(Wt,Bt,"filter array must have at least 1 element")];switch(Mr=Mr.concat(am({key:Wt+"[0]",value:Bt[0],valueSpec:ir.filter_operator,style:Ft.style,styleSpec:Ft.styleSpec})),xs(Bt[0])){case"<":case"<=":case">":case">=":Bt.length>=2&&xs(Bt[1])==="$type"&&Mr.push(new Bo(Wt,Bt,'"$type" cannot be use with operator "'+Bt[0]+'"'));case"==":case"!=":Bt.length!==3&&Mr.push(new Bo(Wt,Bt,'filter array for operator "'+Bt[0]+'" must have 3 elements'));case"in":case"!in":Bt.length>=2&&(mr=tp(Bt[1]),mr!=="string"&&Mr.push(new Bo(Wt+"[1]",Bt[1],"string expected, "+mr+" found")));for(var Fr=2;Fr=Pn[$a+0]&&ir>=Pn[$a+1])?(Fr[ao]=!0,Mr.push(Mn[ao])):Fr[ao]=!1}}},_c.prototype._forEachCell=function(Ft,Bt,Wt,ir,mr,Mr,Fr,tn){for(var Tn=this._convertToCellCoord(Ft),Mn=this._convertToCellCoord(Bt),Pn=this._convertToCellCoord(Wt),Qn=this._convertToCellCoord(ir),ao=Tn;ao<=Pn;ao++)for(var $a=Mn;$a<=Qn;$a++){var Eo=this.d*$a+ao;if(!(tn&&!tn(this._convertFromCellCoord(ao),this._convertFromCellCoord($a),this._convertFromCellCoord(ao+1),this._convertFromCellCoord($a+1)))&&mr.call(this,Ft,Bt,Wt,ir,Eo,Mr,Fr,tn))return}},_c.prototype._convertFromCellCoord=function(Ft){return(Ft-this.padding)/this.scale},_c.prototype._convertToCellCoord=function(Ft){return Math.max(0,Math.min(this.d-1,Math.floor(Ft*this.scale)+this.padding))},_c.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var Ft=this.cells,Bt=Nu+this.cells.length+1+1,Wt=0,ir=0;ir=0)){var Qn=Ft[Pn];Mn[Pn]=Lr[Tn].shallow.indexOf(Pn)>=0?Qn:Dn(Qn,Bt)}Ft instanceof Error&&(Mn.message=Ft.message)}if(Mn.$name)throw new Error("$name property is reserved for worker serialization logic.");return Tn!=="Object"&&(Mn.$name=Tn),Mn}throw new Error("can't serialize object of type "+typeof Ft)}function Rn(Ft){if(Ft==null||typeof Ft=="boolean"||typeof Ft=="number"||typeof Ft=="string"||Ft instanceof Boolean||Ft instanceof Number||Ft instanceof String||Ft instanceof Date||Ft instanceof RegExp||cn(Ft)||vn(Ft)||ArrayBuffer.isView(Ft)||Ft instanceof Ip)return Ft;if(Array.isArray(Ft))return Ft.map(Rn);if(typeof Ft=="object"){var Bt=Ft.$name||"Object",Wt=Lr[Bt],ir=Wt.klass;if(!ir)throw new Error("can't deserialize unregistered class "+Bt);if(ir.deserialize)return ir.deserialize(Ft);for(var mr=Object.create(ir.prototype),Mr=0,Fr=Object.keys(Ft);Mr=0?Tn:Rn(Tn)}}return mr}throw new Error("can't deserialize object of type "+typeof Ft)}var Yn=function(){this.first=!0};Yn.prototype.update=function(Bt,Wt){var ir=Math.floor(Bt);return this.first?(this.first=!1,this.lastIntegerZoom=ir,this.lastIntegerZoomTime=0,this.lastZoom=Bt,this.lastFloorZoom=ir,!0):(this.lastFloorZoom>ir?(this.lastIntegerZoom=ir+1,this.lastIntegerZoomTime=Wt):this.lastFloorZoom=128&&Ft<=255},Arabic:function(Ft){return Ft>=1536&&Ft<=1791},"Arabic Supplement":function(Ft){return Ft>=1872&&Ft<=1919},"Arabic Extended-A":function(Ft){return Ft>=2208&&Ft<=2303},"Hangul Jamo":function(Ft){return Ft>=4352&&Ft<=4607},"Unified Canadian Aboriginal Syllabics":function(Ft){return Ft>=5120&&Ft<=5759},Khmer:function(Ft){return Ft>=6016&&Ft<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(Ft){return Ft>=6320&&Ft<=6399},"General Punctuation":function(Ft){return Ft>=8192&&Ft<=8303},"Letterlike Symbols":function(Ft){return Ft>=8448&&Ft<=8527},"Number Forms":function(Ft){return Ft>=8528&&Ft<=8591},"Miscellaneous Technical":function(Ft){return Ft>=8960&&Ft<=9215},"Control Pictures":function(Ft){return Ft>=9216&&Ft<=9279},"Optical Character Recognition":function(Ft){return Ft>=9280&&Ft<=9311},"Enclosed Alphanumerics":function(Ft){return Ft>=9312&&Ft<=9471},"Geometric Shapes":function(Ft){return Ft>=9632&&Ft<=9727},"Miscellaneous Symbols":function(Ft){return Ft>=9728&&Ft<=9983},"Miscellaneous Symbols and Arrows":function(Ft){return Ft>=11008&&Ft<=11263},"CJK Radicals Supplement":function(Ft){return Ft>=11904&&Ft<=12031},"Kangxi Radicals":function(Ft){return Ft>=12032&&Ft<=12255},"Ideographic Description Characters":function(Ft){return Ft>=12272&&Ft<=12287},"CJK Symbols and Punctuation":function(Ft){return Ft>=12288&&Ft<=12351},Hiragana:function(Ft){return Ft>=12352&&Ft<=12447},Katakana:function(Ft){return Ft>=12448&&Ft<=12543},Bopomofo:function(Ft){return Ft>=12544&&Ft<=12591},"Hangul Compatibility Jamo":function(Ft){return Ft>=12592&&Ft<=12687},Kanbun:function(Ft){return Ft>=12688&&Ft<=12703},"Bopomofo Extended":function(Ft){return Ft>=12704&&Ft<=12735},"CJK Strokes":function(Ft){return Ft>=12736&&Ft<=12783},"Katakana Phonetic Extensions":function(Ft){return Ft>=12784&&Ft<=12799},"Enclosed CJK Letters and Months":function(Ft){return Ft>=12800&&Ft<=13055},"CJK Compatibility":function(Ft){return Ft>=13056&&Ft<=13311},"CJK Unified Ideographs Extension A":function(Ft){return Ft>=13312&&Ft<=19903},"Yijing Hexagram Symbols":function(Ft){return Ft>=19904&&Ft<=19967},"CJK Unified Ideographs":function(Ft){return Ft>=19968&&Ft<=40959},"Yi Syllables":function(Ft){return Ft>=40960&&Ft<=42127},"Yi Radicals":function(Ft){return Ft>=42128&&Ft<=42191},"Hangul Jamo Extended-A":function(Ft){return Ft>=43360&&Ft<=43391},"Hangul Syllables":function(Ft){return Ft>=44032&&Ft<=55215},"Hangul Jamo Extended-B":function(Ft){return Ft>=55216&&Ft<=55295},"Private Use Area":function(Ft){return Ft>=57344&&Ft<=63743},"CJK Compatibility Ideographs":function(Ft){return Ft>=63744&&Ft<=64255},"Arabic Presentation Forms-A":function(Ft){return Ft>=64336&&Ft<=65023},"Vertical Forms":function(Ft){return Ft>=65040&&Ft<=65055},"CJK Compatibility Forms":function(Ft){return Ft>=65072&&Ft<=65103},"Small Form Variants":function(Ft){return Ft>=65104&&Ft<=65135},"Arabic Presentation Forms-B":function(Ft){return Ft>=65136&&Ft<=65279},"Halfwidth and Fullwidth Forms":function(Ft){return Ft>=65280&&Ft<=65519}};function to(Ft){for(var Bt=0,Wt=Ft;Bt=65097&&Ft<=65103)||Zn["CJK Compatibility Ideographs"](Ft)||Zn["CJK Compatibility"](Ft)||Zn["CJK Radicals Supplement"](Ft)||Zn["CJK Strokes"](Ft)||Zn["CJK Symbols and Punctuation"](Ft)&&!(Ft>=12296&&Ft<=12305)&&!(Ft>=12308&&Ft<=12319)&&Ft!==12336||Zn["CJK Unified Ideographs Extension A"](Ft)||Zn["CJK Unified Ideographs"](Ft)||Zn["Enclosed CJK Letters and Months"](Ft)||Zn["Hangul Compatibility Jamo"](Ft)||Zn["Hangul Jamo Extended-A"](Ft)||Zn["Hangul Jamo Extended-B"](Ft)||Zn["Hangul Jamo"](Ft)||Zn["Hangul Syllables"](Ft)||Zn.Hiragana(Ft)||Zn["Ideographic Description Characters"](Ft)||Zn.Kanbun(Ft)||Zn["Kangxi Radicals"](Ft)||Zn["Katakana Phonetic Extensions"](Ft)||Zn.Katakana(Ft)&&Ft!==12540||Zn["Halfwidth and Fullwidth Forms"](Ft)&&Ft!==65288&&Ft!==65289&&Ft!==65293&&!(Ft>=65306&&Ft<=65310)&&Ft!==65339&&Ft!==65341&&Ft!==65343&&!(Ft>=65371&&Ft<=65503)&&Ft!==65507&&!(Ft>=65512&&Ft<=65519)||Zn["Small Form Variants"](Ft)&&!(Ft>=65112&&Ft<=65118)&&!(Ft>=65123&&Ft<=65126)||Zn["Unified Canadian Aboriginal Syllabics"](Ft)||Zn["Unified Canadian Aboriginal Syllabics Extended"](Ft)||Zn["Vertical Forms"](Ft)||Zn["Yijing Hexagram Symbols"](Ft)||Zn["Yi Syllables"](Ft)||Zn["Yi Radicals"](Ft))}function ko(Ft){return!!(Zn["Latin-1 Supplement"](Ft)&&(Ft===167||Ft===169||Ft===174||Ft===177||Ft===188||Ft===189||Ft===190||Ft===215||Ft===247)||Zn["General Punctuation"](Ft)&&(Ft===8214||Ft===8224||Ft===8225||Ft===8240||Ft===8241||Ft===8251||Ft===8252||Ft===8258||Ft===8263||Ft===8264||Ft===8265||Ft===8273)||Zn["Letterlike Symbols"](Ft)||Zn["Number Forms"](Ft)||Zn["Miscellaneous Technical"](Ft)&&(Ft>=8960&&Ft<=8967||Ft>=8972&&Ft<=8991||Ft>=8996&&Ft<=9e3||Ft===9003||Ft>=9085&&Ft<=9114||Ft>=9150&&Ft<=9165||Ft===9167||Ft>=9169&&Ft<=9179||Ft>=9186&&Ft<=9215)||Zn["Control Pictures"](Ft)&&Ft!==9251||Zn["Optical Character Recognition"](Ft)||Zn["Enclosed Alphanumerics"](Ft)||Zn["Geometric Shapes"](Ft)||Zn["Miscellaneous Symbols"](Ft)&&!(Ft>=9754&&Ft<=9759)||Zn["Miscellaneous Symbols and Arrows"](Ft)&&(Ft>=11026&&Ft<=11055||Ft>=11088&&Ft<=11097||Ft>=11192&&Ft<=11243)||Zn["CJK Symbols and Punctuation"](Ft)||Zn.Katakana(Ft)||Zn["Private Use Area"](Ft)||Zn["CJK Compatibility Forms"](Ft)||Zn["Small Form Variants"](Ft)||Zn["Halfwidth and Fullwidth Forms"](Ft)||Ft===8734||Ft===8756||Ft===8757||Ft>=9984&&Ft<=10087||Ft>=10102&&Ft<=10131||Ft===65532||Ft===65533)}function Uo(Ft){return!(ls(Ft)||ko(Ft))}function qo(Ft){return Zn.Arabic(Ft)||Zn["Arabic Supplement"](Ft)||Zn["Arabic Extended-A"](Ft)||Zn["Arabic Presentation Forms-A"](Ft)||Zn["Arabic Presentation Forms-B"](Ft)}function cs(Ft){return Ft>=1424&&Ft<=2303||Zn["Arabic Presentation Forms-A"](Ft)||Zn["Arabic Presentation Forms-B"](Ft)}function bs(Ft,Bt){return!(!Bt&&cs(Ft)||Ft>=2304&&Ft<=3583||Ft>=3840&&Ft<=4255||Zn.Khmer(Ft))}function as(Ft){for(var Bt=0,Wt=Ft;Bt-1&&(Rl=Ll.error),Gl&&Gl(Ft)};function Tu(){Ql.fire(new eo("pluginStateChange",{pluginStatus:Rl,pluginURL:Hl}))}var Ql=new ho,xu=function(){return Rl},zu=function(Ft){return Ft({pluginStatus:Rl,pluginURL:Hl}),Ql.on("pluginStateChange",Ft),Ft},wp=function(Ft,Bt,Wt){if(Wt===void 0&&(Wt=!1),Rl===Ll.deferred||Rl===Ll.loading||Rl===Ll.loaded)throw new Error("setRTLTextPlugin cannot be called multiple times.");Hl=or.resolveURL(Ft),Rl=Ll.deferred,Gl=Bt,Tu(),Wt||Xu()},Xu=function(){if(Rl!==Ll.deferred||!Hl)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Rl=Ll.loading,Tu(),Hl&&Wn({url:Hl},function(Ft){Ft?Vl(Ft):(Rl=Ll.loaded,Tu())})},Ml={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return Rl===Ll.loaded||Ml.applyArabicShaping!=null},isLoading:function(){return Rl===Ll.loading},setState:function(Bt){Rl=Bt.pluginStatus,Hl=Bt.pluginURL},isParsed:function(){return Ml.applyArabicShaping!=null&&Ml.processBidirectionalText!=null&&Ml.processStyledBidirectionalText!=null},getPluginURL:function(){return Hl}},vu=function(){!Ml.isLoading()&&!Ml.isLoaded()&&xu()==="deferred"&&Xu()},ru=function(Bt,Wt){this.zoom=Bt,Wt?(this.now=Wt.now,this.fadeDuration=Wt.fadeDuration,this.zoomHistory=Wt.zoomHistory,this.transition=Wt.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Yn,this.transition={})};ru.prototype.isSupportedScript=function(Bt){return Rs(Bt,Ml.isLoaded())},ru.prototype.crossFadingFactor=function(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},ru.prototype.getCrossfadeParameters=function(){var Bt=this.zoom,Wt=Bt-Math.floor(Bt),ir=this.crossFadingFactor();return Bt>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:Wt+(1-Wt)*ir}:{fromScale:.5,toScale:1,t:1-(1-ir)*Wt}};var Ou=function(Bt,Wt){this.property=Bt,this.value=Wt,this.expression=Cm(Wt===void 0?Bt.specification.default:Wt,Bt.specification)};Ou.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Ou.prototype.possiblyEvaluate=function(Bt,Wt,ir){return this.property.possiblyEvaluate(this,Bt,Wt,ir)};var cp=function(Bt){this.property=Bt,this.value=new Ou(Bt,void 0)};cp.prototype.transitioned=function(Bt,Wt){return new Fp(this.property,this.value,Wt,St({},Bt.transition,this.transition),Bt.now)},cp.prototype.untransitioned=function(){return new Fp(this.property,this.value,null,{},0)};var Uu=function(Bt){this._properties=Bt,this._values=Object.create(Bt.defaultTransitionablePropertyValues)};Uu.prototype.getValue=function(Bt){return zt(this._values[Bt].value.value)},Uu.prototype.setValue=function(Bt,Wt){this._values.hasOwnProperty(Bt)||(this._values[Bt]=new cp(this._values[Bt].property)),this._values[Bt].value=new Ou(this._values[Bt].property,Wt===null?void 0:zt(Wt))},Uu.prototype.getTransition=function(Bt){return zt(this._values[Bt].transition)},Uu.prototype.setTransition=function(Bt,Wt){this._values.hasOwnProperty(Bt)||(this._values[Bt]=new cp(this._values[Bt].property)),this._values[Bt].transition=zt(Wt)||void 0},Uu.prototype.serialize=function(){for(var Bt={},Wt=0,ir=Object.keys(this._values);Wtthis.end)return this.prior=null,Mr;if(this.value.isDataDriven())return this.prior=null,Mr;if(mrFr.zoomHistory.lastIntegerZoom?{from:ir,to:mr}:{from:Mr,to:mr}},Bt.prototype.interpolate=function(ir){return ir},Bt}(cu),Ev=function(Bt){this.specification=Bt};Ev.prototype.possiblyEvaluate=function(Bt,Wt,ir,mr){if(Bt.value!==void 0)if(Bt.expression.kind==="constant"){var Mr=Bt.expression.evaluate(Wt,null,{},ir,mr);return this._calculate(Mr,Mr,Mr,Wt)}else return this._calculate(Bt.expression.evaluate(new ru(Math.floor(Wt.zoom-1),Wt)),Bt.expression.evaluate(new ru(Math.floor(Wt.zoom),Wt)),Bt.expression.evaluate(new ru(Math.floor(Wt.zoom+1),Wt)),Wt)},Ev.prototype._calculate=function(Bt,Wt,ir,mr){var Mr=mr.zoom;return Mr>mr.zoomHistory.lastIntegerZoom?{from:Bt,to:Wt}:{from:ir,to:Wt}},Ev.prototype.interpolate=function(Bt){return Bt};var jp=function(Bt){this.specification=Bt};jp.prototype.possiblyEvaluate=function(Bt,Wt,ir,mr){return!!Bt.expression.evaluate(Wt,null,{},ir,mr)},jp.prototype.interpolate=function(){return!1};var Ku=function(Bt){this.properties=Bt,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(var Wt in Bt){var ir=Bt[Wt];ir.specification.overridable&&this.overridableProperties.push(Wt);var mr=this.defaultPropertyValues[Wt]=new Ou(ir,void 0),Mr=this.defaultTransitionablePropertyValues[Wt]=new cp(ir);this.defaultTransitioningPropertyValues[Wt]=Mr.untransitioned(),this.defaultPossiblyEvaluatedValues[Wt]=mr.possiblyEvaluate({})}};Hr("DataDrivenProperty",cu),Hr("DataConstantProperty",Ol),Hr("CrossFadedDataDrivenProperty",Lp),Hr("CrossFadedProperty",Ev),Hr("ColorRampProperty",jp);var Bp="-transition",Np=function(Ft){function Bt(Wt,ir){if(Ft.call(this),this.id=Wt.id,this.type=Wt.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},Wt.type!=="custom"&&(Wt=Wt,this.metadata=Wt.metadata,this.minzoom=Wt.minzoom,this.maxzoom=Wt.maxzoom,Wt.type!=="background"&&(this.source=Wt.source,this.sourceLayer=Wt["source-layer"],this.filter=Wt.filter),ir.layout&&(this._unevaluatedLayout=new Vp(ir.layout)),ir.paint)){this._transitionablePaint=new Uu(ir.paint);for(var mr in Wt.paint)this.setPaintProperty(mr,Wt.paint[mr],{validate:!1});for(var Mr in Wt.layout)this.setLayoutProperty(Mr,Wt.layout[Mr],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Wp(ir.paint)}}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},Bt.prototype.getLayoutProperty=function(ir){return ir==="visibility"?this.visibility:this._unevaluatedLayout.getValue(ir)},Bt.prototype.setLayoutProperty=function(ir,mr,Mr){if(Mr===void 0&&(Mr={}),mr!=null){var Fr="layers."+this.id+".layout."+ir;if(this._validate(du,Fr,ir,mr,Mr))return}if(ir==="visibility"){this.visibility=mr;return}this._unevaluatedLayout.setValue(ir,mr)},Bt.prototype.getPaintProperty=function(ir){return At(ir,Bp)?this._transitionablePaint.getTransition(ir.slice(0,-Bp.length)):this._transitionablePaint.getValue(ir)},Bt.prototype.setPaintProperty=function(ir,mr,Mr){if(Mr===void 0&&(Mr={}),mr!=null){var Fr="layers."+this.id+".paint."+ir;if(this._validate(pu,Fr,ir,mr,Mr))return!1}if(At(ir,Bp))return this._transitionablePaint.setTransition(ir.slice(0,-Bp.length),mr||void 0),!1;var tn=this._transitionablePaint._values[ir],Tn=tn.property.specification["property-type"]==="cross-faded-data-driven",Mn=tn.value.isDataDriven(),Pn=tn.value;this._transitionablePaint.setValue(ir,mr),this._handleSpecialPaintPropertyUpdate(ir);var Qn=this._transitionablePaint._values[ir].value,ao=Qn.isDataDriven();return ao||Mn||Tn||this._handleOverridablePaintPropertyUpdate(ir,Pn,Qn)},Bt.prototype._handleSpecialPaintPropertyUpdate=function(ir){},Bt.prototype._handleOverridablePaintPropertyUpdate=function(ir,mr,Mr){return!1},Bt.prototype.isHidden=function(ir){return this.minzoom&&ir=this.maxzoom?!0:this.visibility==="none"},Bt.prototype.updateTransitions=function(ir){this._transitioningPaint=this._transitionablePaint.transitioned(ir,this._transitioningPaint)},Bt.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},Bt.prototype.recalculate=function(ir,mr){ir.getCrossfadeParameters&&(this._crossfadeParameters=ir.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(ir,void 0,mr)),this.paint=this._transitioningPaint.possiblyEvaluate(ir,void 0,mr)},Bt.prototype.serialize=function(){var ir={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(ir.layout=ir.layout||{},ir.layout.visibility=this.visibility),Pt(ir,function(mr,Mr){return mr!==void 0&&!(Mr==="layout"&&!Object.keys(mr).length)&&!(Mr==="paint"&&!Object.keys(mr).length)})},Bt.prototype._validate=function(ir,mr,Mr,Fr,tn){return tn===void 0&&(tn={}),tn&&tn.validate===!1?!1:gu(this,ir.call($s,{key:mr,layerType:this.type,objectKey:Mr,value:Fr,styleSpec:To,style:{glyphs:!0,sprite:!0}}))},Bt.prototype.is3D=function(){return!1},Bt.prototype.isTileClipped=function(){return!1},Bt.prototype.hasOffscreenPass=function(){return!1},Bt.prototype.resize=function(){},Bt.prototype.isStateDependent=function(){for(var ir in this.paint._values){var mr=this.paint.get(ir);if(!(!(mr instanceof lp)||!E0(mr.property.specification))&&(mr.value.kind==="source"||mr.value.kind==="composite")&&mr.value.isStateDependent)return!0}return!1},Bt}(ho),n0={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},a0=function(Bt,Wt){this._structArray=Bt,this._pos1=Wt*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},yp=128,N1=5,Fu=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};Fu.serialize=function(Bt,Wt){return Bt._trim(),Wt&&(Bt.isTransferred=!0,Wt.push(Bt.arrayBuffer)),{length:Bt.length,arrayBuffer:Bt.arrayBuffer}},Fu.deserialize=function(Bt){var Wt=Object.create(this.prototype);return Wt.arrayBuffer=Bt.arrayBuffer,Wt.length=Bt.length,Wt.capacity=Bt.arrayBuffer.byteLength/Wt.bytesPerElement,Wt._refreshViews(),Wt},Fu.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Fu.prototype.clear=function(){this.length=0},Fu.prototype.resize=function(Bt){this.reserve(Bt),this.length=Bt},Fu.prototype.reserve=function(Bt){if(Bt>this.capacity){this.capacity=Math.max(Bt,Math.floor(this.capacity*N1),yp),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var Wt=this.uint8;this._refreshViews(),Wt&&this.uint8.set(Wt)}},Fu.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};function xp(Ft,Bt){Bt===void 0&&(Bt=1);var Wt=0,ir=0,mr=Ft.map(function(Fr){var tn=Tv(Fr.type),Tn=Wt=q0(Wt,Math.max(Bt,tn)),Mn=Fr.components||1;return ir=Math.max(ir,tn),Wt+=tn*Mn,{name:Fr.name,type:Fr.type,components:Mn,offset:Tn}}),Mr=q0(Wt,Math.max(ir,Bt));return{members:mr,size:Mr,alignment:Bt}}function Tv(Ft){return n0[Ft].BYTES_PER_ELEMENT}function q0(Ft,Bt){return Math.ceil(Ft/Bt)*Bt}var Zm=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir,mr){var Mr=this.length;return this.resize(Mr+1),this.emplace(Mr,ir,mr)},Bt.prototype.emplace=function(ir,mr,Mr){var Fr=ir*2;return this.int16[Fr+0]=mr,this.int16[Fr+1]=Mr,ir},Bt}(Fu);Zm.prototype.bytesPerElement=4,Hr("StructArrayLayout2i4",Zm);var hx=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir,mr,Mr,Fr){var tn=this.length;return this.resize(tn+1),this.emplace(tn,ir,mr,Mr,Fr)},Bt.prototype.emplace=function(ir,mr,Mr,Fr,tn){var Tn=ir*4;return this.int16[Tn+0]=mr,this.int16[Tn+1]=Mr,this.int16[Tn+2]=Fr,this.int16[Tn+3]=tn,ir},Bt}(Fu);hx.prototype.bytesPerElement=8,Hr("StructArrayLayout4i8",hx);var e1=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir,mr,Mr,Fr,tn,Tn){var Mn=this.length;return this.resize(Mn+1),this.emplace(Mn,ir,mr,Mr,Fr,tn,Tn)},Bt.prototype.emplace=function(ir,mr,Mr,Fr,tn,Tn,Mn){var Pn=ir*6;return this.int16[Pn+0]=mr,this.int16[Pn+1]=Mr,this.int16[Pn+2]=Fr,this.int16[Pn+3]=tn,this.int16[Pn+4]=Tn,this.int16[Pn+5]=Mn,ir},Bt}(Fu);e1.prototype.bytesPerElement=12,Hr("StructArrayLayout2i4i12",e1);var t1=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir,mr,Mr,Fr,tn,Tn){var Mn=this.length;return this.resize(Mn+1),this.emplace(Mn,ir,mr,Mr,Fr,tn,Tn)},Bt.prototype.emplace=function(ir,mr,Mr,Fr,tn,Tn,Mn){var Pn=ir*4,Qn=ir*8;return this.int16[Pn+0]=mr,this.int16[Pn+1]=Mr,this.uint8[Qn+4]=Fr,this.uint8[Qn+5]=tn,this.uint8[Qn+6]=Tn,this.uint8[Qn+7]=Mn,ir},Bt}(Fu);t1.prototype.bytesPerElement=8,Hr("StructArrayLayout2i4ub8",t1);var Jm=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir,mr){var Mr=this.length;return this.resize(Mr+1),this.emplace(Mr,ir,mr)},Bt.prototype.emplace=function(ir,mr,Mr){var Fr=ir*2;return this.float32[Fr+0]=mr,this.float32[Fr+1]=Mr,ir},Bt}(Fu);Jm.prototype.bytesPerElement=8,Hr("StructArrayLayout2f8",Jm);var Bv=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir,mr,Mr,Fr,tn,Tn,Mn,Pn,Qn,ao){var $a=this.length;return this.resize($a+1),this.emplace($a,ir,mr,Mr,Fr,tn,Tn,Mn,Pn,Qn,ao)},Bt.prototype.emplace=function(ir,mr,Mr,Fr,tn,Tn,Mn,Pn,Qn,ao,$a){var Eo=ir*10;return this.uint16[Eo+0]=mr,this.uint16[Eo+1]=Mr,this.uint16[Eo+2]=Fr,this.uint16[Eo+3]=tn,this.uint16[Eo+4]=Tn,this.uint16[Eo+5]=Mn,this.uint16[Eo+6]=Pn,this.uint16[Eo+7]=Qn,this.uint16[Eo+8]=ao,this.uint16[Eo+9]=$a,ir},Bt}(Fu);Bv.prototype.bytesPerElement=20,Hr("StructArrayLayout10ui20",Bv);var Mm=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir,mr,Mr,Fr,tn,Tn,Mn,Pn,Qn,ao,$a,Eo){var Ho=this.length;return this.resize(Ho+1),this.emplace(Ho,ir,mr,Mr,Fr,tn,Tn,Mn,Pn,Qn,ao,$a,Eo)},Bt.prototype.emplace=function(ir,mr,Mr,Fr,tn,Tn,Mn,Pn,Qn,ao,$a,Eo,Ho){var ds=ir*12;return this.int16[ds+0]=mr,this.int16[ds+1]=Mr,this.int16[ds+2]=Fr,this.int16[ds+3]=tn,this.uint16[ds+4]=Tn,this.uint16[ds+5]=Mn,this.uint16[ds+6]=Pn,this.uint16[ds+7]=Qn,this.int16[ds+8]=ao,this.int16[ds+9]=$a,this.int16[ds+10]=Eo,this.int16[ds+11]=Ho,ir},Bt}(Fu);Mm.prototype.bytesPerElement=24,Hr("StructArrayLayout4i4ui4i24",Mm);var Uy=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir,mr,Mr){var Fr=this.length;return this.resize(Fr+1),this.emplace(Fr,ir,mr,Mr)},Bt.prototype.emplace=function(ir,mr,Mr,Fr){var tn=ir*3;return this.float32[tn+0]=mr,this.float32[tn+1]=Mr,this.float32[tn+2]=Fr,ir},Bt}(Fu);Uy.prototype.bytesPerElement=12,Hr("StructArrayLayout3f12",Uy);var Im=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir){var mr=this.length;return this.resize(mr+1),this.emplace(mr,ir)},Bt.prototype.emplace=function(ir,mr){var Mr=ir*1;return this.uint32[Mr+0]=mr,ir},Bt}(Fu);Im.prototype.bytesPerElement=4,Hr("StructArrayLayout1ul4",Im);var lm=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir,mr,Mr,Fr,tn,Tn,Mn,Pn,Qn){var ao=this.length;return this.resize(ao+1),this.emplace(ao,ir,mr,Mr,Fr,tn,Tn,Mn,Pn,Qn)},Bt.prototype.emplace=function(ir,mr,Mr,Fr,tn,Tn,Mn,Pn,Qn,ao){var $a=ir*10,Eo=ir*5;return this.int16[$a+0]=mr,this.int16[$a+1]=Mr,this.int16[$a+2]=Fr,this.int16[$a+3]=tn,this.int16[$a+4]=Tn,this.int16[$a+5]=Mn,this.uint32[Eo+3]=Pn,this.uint16[$a+8]=Qn,this.uint16[$a+9]=ao,ir},Bt}(Fu);lm.prototype.bytesPerElement=20,Hr("StructArrayLayout6i1ul2ui20",lm);var $y=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir,mr,Mr,Fr,tn,Tn){var Mn=this.length;return this.resize(Mn+1),this.emplace(Mn,ir,mr,Mr,Fr,tn,Tn)},Bt.prototype.emplace=function(ir,mr,Mr,Fr,tn,Tn,Mn){var Pn=ir*6;return this.int16[Pn+0]=mr,this.int16[Pn+1]=Mr,this.int16[Pn+2]=Fr,this.int16[Pn+3]=tn,this.int16[Pn+4]=Tn,this.int16[Pn+5]=Mn,ir},Bt}(Fu);$y.prototype.bytesPerElement=12,Hr("StructArrayLayout2i2i2i12",$y);var O1=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir,mr,Mr,Fr,tn){var Tn=this.length;return this.resize(Tn+1),this.emplace(Tn,ir,mr,Mr,Fr,tn)},Bt.prototype.emplace=function(ir,mr,Mr,Fr,tn,Tn){var Mn=ir*4,Pn=ir*8;return this.float32[Mn+0]=mr,this.float32[Mn+1]=Mr,this.float32[Mn+2]=Fr,this.int16[Pn+6]=tn,this.int16[Pn+7]=Tn,ir},Bt}(Fu);O1.prototype.bytesPerElement=16,Hr("StructArrayLayout2f1f2i16",O1);var jv=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir,mr,Mr,Fr){var tn=this.length;return this.resize(tn+1),this.emplace(tn,ir,mr,Mr,Fr)},Bt.prototype.emplace=function(ir,mr,Mr,Fr,tn){var Tn=ir*12,Mn=ir*3;return this.uint8[Tn+0]=mr,this.uint8[Tn+1]=Mr,this.float32[Mn+1]=Fr,this.float32[Mn+2]=tn,ir},Bt}(Fu);jv.prototype.bytesPerElement=12,Hr("StructArrayLayout2ub2f12",jv);var F0=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir,mr,Mr){var Fr=this.length;return this.resize(Fr+1),this.emplace(Fr,ir,mr,Mr)},Bt.prototype.emplace=function(ir,mr,Mr,Fr){var tn=ir*3;return this.uint16[tn+0]=mr,this.uint16[tn+1]=Mr,this.uint16[tn+2]=Fr,ir},Bt}(Fu);F0.prototype.bytesPerElement=6,Hr("StructArrayLayout3ui6",F0);var py=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir,mr,Mr,Fr,tn,Tn,Mn,Pn,Qn,ao,$a,Eo,Ho,ds,ss,Bs,As){var Os=this.length;return this.resize(Os+1),this.emplace(Os,ir,mr,Mr,Fr,tn,Tn,Mn,Pn,Qn,ao,$a,Eo,Ho,ds,ss,Bs,As)},Bt.prototype.emplace=function(ir,mr,Mr,Fr,tn,Tn,Mn,Pn,Qn,ao,$a,Eo,Ho,ds,ss,Bs,As,Os){var Vs=ir*24,El=ir*12,Nl=ir*48;return this.int16[Vs+0]=mr,this.int16[Vs+1]=Mr,this.uint16[Vs+2]=Fr,this.uint16[Vs+3]=tn,this.uint32[El+2]=Tn,this.uint32[El+3]=Mn,this.uint32[El+4]=Pn,this.uint16[Vs+10]=Qn,this.uint16[Vs+11]=ao,this.uint16[Vs+12]=$a,this.float32[El+7]=Eo,this.float32[El+8]=Ho,this.uint8[Nl+36]=ds,this.uint8[Nl+37]=ss,this.uint8[Nl+38]=Bs,this.uint32[El+10]=As,this.int16[Vs+22]=Os,ir},Bt}(Fu);py.prototype.bytesPerElement=48,Hr("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",py);var Qm=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir,mr,Mr,Fr,tn,Tn,Mn,Pn,Qn,ao,$a,Eo,Ho,ds,ss,Bs,As,Os,Vs,El,Nl,Dl,ou,eu,au,Cu,su,uu){var Iu=this.length;return this.resize(Iu+1),this.emplace(Iu,ir,mr,Mr,Fr,tn,Tn,Mn,Pn,Qn,ao,$a,Eo,Ho,ds,ss,Bs,As,Os,Vs,El,Nl,Dl,ou,eu,au,Cu,su,uu)},Bt.prototype.emplace=function(ir,mr,Mr,Fr,tn,Tn,Mn,Pn,Qn,ao,$a,Eo,Ho,ds,ss,Bs,As,Os,Vs,El,Nl,Dl,ou,eu,au,Cu,su,uu,Iu){var Au=ir*34,_f=ir*17;return this.int16[Au+0]=mr,this.int16[Au+1]=Mr,this.int16[Au+2]=Fr,this.int16[Au+3]=tn,this.int16[Au+4]=Tn,this.int16[Au+5]=Mn,this.int16[Au+6]=Pn,this.int16[Au+7]=Qn,this.uint16[Au+8]=ao,this.uint16[Au+9]=$a,this.uint16[Au+10]=Eo,this.uint16[Au+11]=Ho,this.uint16[Au+12]=ds,this.uint16[Au+13]=ss,this.uint16[Au+14]=Bs,this.uint16[Au+15]=As,this.uint16[Au+16]=Os,this.uint16[Au+17]=Vs,this.uint16[Au+18]=El,this.uint16[Au+19]=Nl,this.uint16[Au+20]=Dl,this.uint16[Au+21]=ou,this.uint16[Au+22]=eu,this.uint32[_f+12]=au,this.float32[_f+13]=Cu,this.float32[_f+14]=su,this.float32[_f+15]=uu,this.float32[_f+16]=Iu,ir},Bt}(Fu);Qm.prototype.bytesPerElement=68,Hr("StructArrayLayout8i15ui1ul4f68",Qm);var km=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir){var mr=this.length;return this.resize(mr+1),this.emplace(mr,ir)},Bt.prototype.emplace=function(ir,mr){var Mr=ir*1;return this.float32[Mr+0]=mr,ir},Bt}(Fu);km.prototype.bytesPerElement=4,Hr("StructArrayLayout1f4",km);var vy=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir,mr,Mr){var Fr=this.length;return this.resize(Fr+1),this.emplace(Fr,ir,mr,Mr)},Bt.prototype.emplace=function(ir,mr,Mr,Fr){var tn=ir*3;return this.int16[tn+0]=mr,this.int16[tn+1]=Mr,this.int16[tn+2]=Fr,ir},Bt}(Fu);vy.prototype.bytesPerElement=6,Hr("StructArrayLayout3i6",vy);var Lm=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir,mr,Mr){var Fr=this.length;return this.resize(Fr+1),this.emplace(Fr,ir,mr,Mr)},Bt.prototype.emplace=function(ir,mr,Mr,Fr){var tn=ir*2,Tn=ir*4;return this.uint32[tn+0]=mr,this.uint16[Tn+2]=Mr,this.uint16[Tn+3]=Fr,ir},Bt}(Fu);Lm.prototype.bytesPerElement=8,Hr("StructArrayLayout1ul2ui8",Lm);var gy=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir,mr){var Mr=this.length;return this.resize(Mr+1),this.emplace(Mr,ir,mr)},Bt.prototype.emplace=function(ir,mr,Mr){var Fr=ir*2;return this.uint16[Fr+0]=mr,this.uint16[Fr+1]=Mr,ir},Bt}(Fu);gy.prototype.bytesPerElement=4,Hr("StructArrayLayout2ui4",gy);var um=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir){var mr=this.length;return this.resize(mr+1),this.emplace(mr,ir)},Bt.prototype.emplace=function(ir,mr){var Mr=ir*1;return this.uint16[Mr+0]=mr,ir},Bt}(Fu);um.prototype.bytesPerElement=2,Hr("StructArrayLayout1ui2",um);var Dm=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir,mr,Mr,Fr){var tn=this.length;return this.resize(tn+1),this.emplace(tn,ir,mr,Mr,Fr)},Bt.prototype.emplace=function(ir,mr,Mr,Fr,tn){var Tn=ir*4;return this.float32[Tn+0]=mr,this.float32[Tn+1]=Mr,this.float32[Tn+2]=Fr,this.float32[Tn+3]=tn,ir},Bt}(Fu);Dm.prototype.bytesPerElement=16,Hr("StructArrayLayout4f16",Dm);var Hy=function(Ft){function Bt(){Ft.apply(this,arguments)}Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt;var Wt={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return Wt.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},Wt.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},Wt.x1.get=function(){return this._structArray.int16[this._pos2+2]},Wt.y1.get=function(){return this._structArray.int16[this._pos2+3]},Wt.x2.get=function(){return this._structArray.int16[this._pos2+4]},Wt.y2.get=function(){return this._structArray.int16[this._pos2+5]},Wt.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},Wt.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},Wt.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},Wt.anchorPoint.get=function(){return new j(this.anchorPointX,this.anchorPointY)},Object.defineProperties(Bt.prototype,Wt),Bt}(a0);Hy.prototype.size=20;var px=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype.get=function(ir){return new Hy(this,ir)},Bt}(lm);Hr("CollisionBoxArray",px);var Pm=function(Ft){function Bt(){Ft.apply(this,arguments)}Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt;var Wt={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return Wt.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},Wt.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},Wt.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},Wt.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},Wt.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},Wt.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},Wt.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},Wt.segment.get=function(){return this._structArray.uint16[this._pos2+10]},Wt.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},Wt.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},Wt.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},Wt.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},Wt.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},Wt.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},Wt.placedOrientation.set=function(ir){this._structArray.uint8[this._pos1+37]=ir},Wt.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},Wt.hidden.set=function(ir){this._structArray.uint8[this._pos1+38]=ir},Wt.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},Wt.crossTileID.set=function(ir){this._structArray.uint32[this._pos4+10]=ir},Wt.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(Bt.prototype,Wt),Bt}(a0);Pm.prototype.size=48;var r1=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype.get=function(ir){return new Pm(this,ir)},Bt}(py);Hr("PlacedSymbolArray",r1);var qm=function(Ft){function Bt(){Ft.apply(this,arguments)}Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt;var Wt={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return Wt.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},Wt.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},Wt.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},Wt.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},Wt.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},Wt.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},Wt.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},Wt.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},Wt.key.get=function(){return this._structArray.uint16[this._pos2+8]},Wt.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},Wt.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},Wt.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},Wt.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},Wt.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},Wt.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},Wt.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},Wt.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},Wt.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},Wt.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},Wt.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},Wt.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},Wt.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},Wt.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},Wt.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},Wt.crossTileID.set=function(ir){this._structArray.uint32[this._pos4+12]=ir},Wt.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},Wt.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},Wt.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},Wt.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(Bt.prototype,Wt),Bt}(a0);qm.prototype.size=68;var vx=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype.get=function(ir){return new qm(this,ir)},Bt}(Qm);Hr("SymbolInstanceArray",vx);var Px=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype.getoffsetX=function(ir){return this.float32[ir*1+0]},Bt}(km);Hr("GlyphOffsetArray",Px);var B0=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype.getx=function(ir){return this.int16[ir*3+0]},Bt.prototype.gety=function(ir){return this.int16[ir*3+1]},Bt.prototype.gettileUnitDistanceFromAnchor=function(ir){return this.int16[ir*3+2]},Bt}(vy);Hr("SymbolLineVertexArray",B0);var Nx=function(Ft){function Bt(){Ft.apply(this,arguments)}Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt;var Wt={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return Wt.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},Wt.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},Wt.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(Bt.prototype,Wt),Bt}(a0);Nx.prototype.size=8;var Ox=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype.get=function(ir){return new Nx(this,ir)},Bt}(Lm);Hr("FeatureIndexArray",Ox);var cm=xp([{name:"a_pos",components:2,type:"Int16"}],4),Gy=cm.members,zp=function(Bt){Bt===void 0&&(Bt=[]),this.segments=Bt};zp.prototype.prepareSegment=function(Bt,Wt,ir,mr){var Mr=this.segments[this.segments.length-1];return Bt>zp.MAX_VERTEX_ARRAY_LENGTH&&$t("Max vertices per segment is "+zp.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+Bt),(!Mr||Mr.vertexLength+Bt>zp.MAX_VERTEX_ARRAY_LENGTH||Mr.sortKey!==mr)&&(Mr={vertexOffset:Wt.length,primitiveOffset:ir.length,vertexLength:0,primitiveLength:0},mr!==void 0&&(Mr.sortKey=mr),this.segments.push(Mr)),Mr},zp.prototype.get=function(){return this.segments},zp.prototype.destroy=function(){for(var Bt=0,Wt=this.segments;Bt>>16)*Tn&65535)<<16)&4294967295,Pn=Pn<<15|Pn>>>17,Pn=(Pn&65535)*Mn+(((Pn>>>16)*Mn&65535)<<16)&4294967295,Fr^=Pn,Fr=Fr<<13|Fr>>>19,tn=(Fr&65535)*5+(((Fr>>>16)*5&65535)<<16)&4294967295,Fr=(tn&65535)+27492+(((tn>>>16)+58964&65535)<<16);switch(Pn=0,mr){case 3:Pn^=(Wt.charCodeAt(Qn+2)&255)<<16;case 2:Pn^=(Wt.charCodeAt(Qn+1)&255)<<8;case 1:Pn^=Wt.charCodeAt(Qn)&255,Pn=(Pn&65535)*Tn+(((Pn>>>16)*Tn&65535)<<16)&4294967295,Pn=Pn<<15|Pn>>>17,Pn=(Pn&65535)*Mn+(((Pn>>>16)*Mn&65535)<<16)&4294967295,Fr^=Pn}return Fr^=Wt.length,Fr^=Fr>>>16,Fr=(Fr&65535)*2246822507+(((Fr>>>16)*2246822507&65535)<<16)&4294967295,Fr^=Fr>>>13,Fr=(Fr&65535)*3266489909+(((Fr>>>16)*3266489909&65535)<<16)&4294967295,Fr^=Fr>>>16,Fr>>>0}Ft.exports=Bt}),nr=Et(function(Ft){function Bt(Wt,ir){for(var mr=Wt.length,Mr=ir^mr,Fr=0,tn;mr>=4;)tn=Wt.charCodeAt(Fr)&255|(Wt.charCodeAt(++Fr)&255)<<8|(Wt.charCodeAt(++Fr)&255)<<16|(Wt.charCodeAt(++Fr)&255)<<24,tn=(tn&65535)*1540483477+(((tn>>>16)*1540483477&65535)<<16),tn^=tn>>>24,tn=(tn&65535)*1540483477+(((tn>>>16)*1540483477&65535)<<16),Mr=(Mr&65535)*1540483477+(((Mr>>>16)*1540483477&65535)<<16)^tn,mr-=4,++Fr;switch(mr){case 3:Mr^=(Wt.charCodeAt(Fr+2)&255)<<16;case 2:Mr^=(Wt.charCodeAt(Fr+1)&255)<<8;case 1:Mr^=Wt.charCodeAt(Fr)&255,Mr=(Mr&65535)*1540483477+(((Mr>>>16)*1540483477&65535)<<16)}return Mr^=Mr>>>13,Mr=(Mr&65535)*1540483477+(((Mr>>>16)*1540483477&65535)<<16),Mr^=Mr>>>15,Mr>>>0}Ft.exports=Bt}),yr=gr,$r=gr,Kr=nr;yr.murmur3=$r,yr.murmur2=Kr;var gn=function(){this.ids=[],this.positions=[],this.indexed=!1};gn.prototype.add=function(Bt,Wt,ir,mr){this.ids.push(jn(Bt)),this.positions.push(Wt,ir,mr)},gn.prototype.getPositions=function(Bt){for(var Wt=jn(Bt),ir=0,mr=this.ids.length-1;ir>1;this.ids[Mr]>=Wt?mr=Mr:ir=Mr+1}for(var Fr=[];this.ids[ir]===Wt;){var tn=this.positions[3*ir],Tn=this.positions[3*ir+1],Mn=this.positions[3*ir+2];Fr.push({index:tn,start:Tn,end:Mn}),ir++}return Fr},gn.serialize=function(Bt,Wt){var ir=new Float64Array(Bt.ids),mr=new Uint32Array(Bt.positions);return na(ir,mr,0,ir.length-1),Wt&&Wt.push(ir.buffer,mr.buffer),{ids:ir,positions:mr}},gn.deserialize=function(Bt){var Wt=new gn;return Wt.ids=Bt.ids,Wt.positions=Bt.positions,Wt.indexed=!0,Wt};var kn=Math.pow(2,53)-1;function jn(Ft){var Bt=+Ft;return!isNaN(Bt)&&Bt<=kn?Bt:yr(String(Ft))}function na(Ft,Bt,Wt,ir){for(;Wt>1],Mr=Wt-1,Fr=ir+1;;){do Mr++;while(Ft[Mr]mr);if(Mr>=Fr)break;uo(Ft,Mr,Fr),uo(Bt,3*Mr,3*Fr),uo(Bt,3*Mr+1,3*Fr+1),uo(Bt,3*Mr+2,3*Fr+2)}Fr-WtFr.x+1||TnFr.y+1)&&$t("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return Wt}function dp(Ft,Bt){return{type:Ft.type,id:Ft.id,properties:Ft.properties,geometry:Bt?Hu(Ft):[]}}function Pu(Ft,Bt,Wt,ir,mr){Ft.emplaceBack(Bt*2+(ir+1)/2,Wt*2+(mr+1)/2)}var ap=function(Bt){this.zoom=Bt.zoom,this.overscaling=Bt.overscaling,this.layers=Bt.layers,this.layerIds=this.layers.map(function(Wt){return Wt.id}),this.index=Bt.index,this.hasPattern=!1,this.layoutVertexArray=new Zm,this.indexArray=new F0,this.segments=new zp,this.programConfigurations=new Kl(Bt.layers,Bt.zoom),this.stateDependentLayerIds=this.layers.filter(function(Wt){return Wt.isStateDependent()}).map(function(Wt){return Wt.id})};ap.prototype.populate=function(Bt,Wt,ir){var mr=this.layers[0],Mr=[],Fr=null;mr.type==="circle"&&(Fr=mr.layout.get("circle-sort-key"));for(var tn=0,Tn=Bt;tn=iu||ao<0||ao>=iu)){var $a=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,Bt.sortKey),Eo=$a.vertexLength;Pu(this.layoutVertexArray,Qn,ao,-1,-1),Pu(this.layoutVertexArray,Qn,ao,1,-1),Pu(this.layoutVertexArray,Qn,ao,1,1),Pu(this.layoutVertexArray,Qn,ao,-1,1),this.indexArray.emplaceBack(Eo,Eo+1,Eo+2),this.indexArray.emplaceBack(Eo,Eo+3,Eo+2),$a.vertexLength+=4,$a.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,Bt,ir,{},mr)},Hr("CircleBucket",ap,{omit:["layers"]});function wu(Ft,Bt){for(var Wt=0;Wt=3){for(var Mr=0;Mr1){if(Av(Ft,Bt))return!0;for(var ir=0;ir1?Ft.distSqr(Wt):Ft.distSqr(Wt.sub(Bt)._mult(mr)._add(Bt))}function F1(Ft,Bt){for(var Wt=!1,ir,mr,Mr,Fr=0;FrBt.y!=Mr.y>Bt.y&&Bt.x<(Mr.x-mr.x)*(Bt.y-mr.y)/(Mr.y-mr.y)+mr.x&&(Wt=!Wt)}return Wt}function Yv(Ft,Bt){for(var Wt=!1,ir=0,mr=Ft.length-1;irBt.y!=Fr.y>Bt.y&&Bt.x<(Fr.x-Mr.x)*(Bt.y-Mr.y)/(Fr.y-Mr.y)+Mr.x&&(Wt=!Wt)}return Wt}function B1(Ft,Bt,Wt,ir,mr){for(var Mr=0,Fr=Ft;Mr=tn.x&&mr>=tn.y)return!0}var Tn=[new j(Bt,Wt),new j(Bt,mr),new j(ir,mr),new j(ir,Wt)];if(Ft.length>2)for(var Mn=0,Pn=Tn;Mnmr.x&&Bt.x>mr.x||Ft.ymr.y&&Bt.y>mr.y)return!1;var Mr=Ut(Ft,Bt,Wt[0]);return Mr!==Ut(Ft,Bt,Wt[1])||Mr!==Ut(Ft,Bt,Wt[2])||Mr!==Ut(Ft,Bt,Wt[3])}function Xv(Ft,Bt,Wt){var ir=Bt.paint.get(Ft).value;return ir.kind==="constant"?ir.value:Wt.programConfigurations.get(Bt.id).getMaxValue(Ft)}function i1(Ft){return Math.sqrt(Ft[0]*Ft[0]+Ft[1]*Ft[1])}function fm(Ft,Bt,Wt,ir,mr){if(!Bt[0]&&!Bt[1])return Ft;var Mr=j.convert(Bt)._mult(mr);Wt==="viewport"&&Mr._rotate(-ir);for(var Fr=[],tn=0;tn0&&(Mr=1/Math.sqrt(Mr)),Ft[0]=Bt[0]*Mr,Ft[1]=Bt[1]*Mr,Ft[2]=Bt[2]*Mr,Ft}function uT(Ft,Bt){return Ft[0]*Bt[0]+Ft[1]*Bt[1]+Ft[2]*Bt[2]}function cT(Ft,Bt,Wt){var ir=Bt[0],mr=Bt[1],Mr=Bt[2],Fr=Wt[0],tn=Wt[1],Tn=Wt[2];return Ft[0]=mr*Tn-Mr*tn,Ft[1]=Mr*Fr-ir*Tn,Ft[2]=ir*tn-mr*Fr,Ft}function fT(Ft,Bt,Wt){var ir=Bt[0],mr=Bt[1],Mr=Bt[2];return Ft[0]=ir*Wt[0]+mr*Wt[3]+Mr*Wt[6],Ft[1]=ir*Wt[1]+mr*Wt[4]+Mr*Wt[7],Ft[2]=ir*Wt[2]+mr*Wt[5]+Mr*Wt[8],Ft}var dT=h2;(function(){var Ft=Ty();return function(Bt,Wt,ir,mr,Mr,Fr){var tn,Tn;for(Wt||(Wt=3),ir||(ir=0),mr?Tn=Math.min(mr*Wt+ir,Bt.length):Tn=Bt.length,tn=ir;tnFt.width||mr.height>Ft.height||Wt.x>Ft.width-mr.width||Wt.y>Ft.height-mr.height)throw new RangeError("out of range source coordinates for image copy");if(mr.width>Bt.width||mr.height>Bt.height||ir.x>Bt.width-mr.width||ir.y>Bt.height-mr.height)throw new RangeError("out of range destination coordinates for image copy");for(var Fr=Ft.data,tn=Bt.data,Tn=0;Tn80*Wt){tn=Mn=Ft[0],Tn=Pn=Ft[1];for(var Eo=Wt;EoMn&&(Mn=Qn),ao>Pn&&(Pn=ao);$a=Math.max(Mn-tn,Pn-Tn),$a=$a!==0?1/$a:0}return yx(Mr,Fr,Wt,tn,Tn,$a),Fr}function mx(Ft,Bt,Wt,ir,mr){var Mr,Fr;if(mr===E2(Ft,Bt,Wt,ir)>0)for(Mr=Bt;Mr=Bt;Mr-=ir)Fr=oE(Mr,Ft[Mr],Ft[Mr+1],Fr);return Fr&&zx(Fr,Fr.next)&&(bx(Fr),Fr=Fr.next),Fr}function Ay(Ft,Bt){if(!Ft)return Ft;Bt||(Bt=Ft);var Wt=Ft,ir;do if(ir=!1,!Wt.steiner&&(zx(Wt,Wt.next)||Yp(Wt.prev,Wt,Wt.next)===0)){if(bx(Wt),Wt=Bt=Wt.prev,Wt===Wt.next)break;ir=!0}else Wt=Wt.next;while(ir||Wt!==Bt);return Bt}function yx(Ft,Bt,Wt,ir,mr,Mr,Fr){if(Ft){!Fr&&Mr&&FT(Ft,ir,mr,Mr);for(var tn=Ft,Tn,Mn;Ft.prev!==Ft.next;){if(Tn=Ft.prev,Mn=Ft.next,Mr?RT(Ft,ir,mr,Mr):CT(Ft)){Bt.push(Tn.i/Wt),Bt.push(Ft.i/Wt),Bt.push(Mn.i/Wt),bx(Ft),Ft=Mn.next,tn=Mn.next;continue}if(Ft=Mn,Ft===tn){Fr?Fr===1?(Ft=MT(Ay(Ft),Bt,Wt),yx(Ft,Bt,Wt,ir,mr,Mr,2)):Fr===2&&IT(Ft,Bt,Wt,ir,mr,Mr):yx(Ay(Ft),Bt,Wt,ir,mr,Mr,1);break}}}}function CT(Ft){var Bt=Ft.prev,Wt=Ft,ir=Ft.next;if(Yp(Bt,Wt,ir)>=0)return!1;for(var mr=Ft.next.next;mr!==Ft.prev;){if(Xy(Bt.x,Bt.y,Wt.x,Wt.y,ir.x,ir.y,mr.x,mr.y)&&Yp(mr.prev,mr,mr.next)>=0)return!1;mr=mr.next}return!0}function RT(Ft,Bt,Wt,ir){var mr=Ft.prev,Mr=Ft,Fr=Ft.next;if(Yp(mr,Mr,Fr)>=0)return!1;for(var tn=mr.xMr.x?mr.x>Fr.x?mr.x:Fr.x:Mr.x>Fr.x?Mr.x:Fr.x,Pn=mr.y>Mr.y?mr.y>Fr.y?mr.y:Fr.y:Mr.y>Fr.y?Mr.y:Fr.y,Qn=x2(tn,Tn,Bt,Wt,ir),ao=x2(Mn,Pn,Bt,Wt,ir),$a=Ft.prevZ,Eo=Ft.nextZ;$a&&$a.z>=Qn&&Eo&&Eo.z<=ao;){if($a!==Ft.prev&&$a!==Ft.next&&Xy(mr.x,mr.y,Mr.x,Mr.y,Fr.x,Fr.y,$a.x,$a.y)&&Yp($a.prev,$a,$a.next)>=0||($a=$a.prevZ,Eo!==Ft.prev&&Eo!==Ft.next&&Xy(mr.x,mr.y,Mr.x,Mr.y,Fr.x,Fr.y,Eo.x,Eo.y)&&Yp(Eo.prev,Eo,Eo.next)>=0))return!1;Eo=Eo.nextZ}for(;$a&&$a.z>=Qn;){if($a!==Ft.prev&&$a!==Ft.next&&Xy(mr.x,mr.y,Mr.x,Mr.y,Fr.x,Fr.y,$a.x,$a.y)&&Yp($a.prev,$a,$a.next)>=0)return!1;$a=$a.prevZ}for(;Eo&&Eo.z<=ao;){if(Eo!==Ft.prev&&Eo!==Ft.next&&Xy(mr.x,mr.y,Mr.x,Mr.y,Fr.x,Fr.y,Eo.x,Eo.y)&&Yp(Eo.prev,Eo,Eo.next)>=0)return!1;Eo=Eo.nextZ}return!0}function MT(Ft,Bt,Wt){var ir=Ft;do{var mr=ir.prev,Mr=ir.next.next;!zx(mr,Mr)&&aE(mr,ir,ir.next,Mr)&&xx(mr,Mr)&&xx(Mr,mr)&&(Bt.push(mr.i/Wt),Bt.push(ir.i/Wt),Bt.push(Mr.i/Wt),bx(ir),bx(ir.next),ir=Ft=Mr),ir=ir.next}while(ir!==Ft);return Ay(ir)}function IT(Ft,Bt,Wt,ir,mr,Mr){var Fr=Ft;do{for(var tn=Fr.next.next;tn!==Fr.prev;){if(Fr.i!==tn.i&&nE(Fr,tn)){var Tn=iE(Fr,tn);Fr=Ay(Fr,Fr.next),Tn=Ay(Tn,Tn.next),yx(Fr,Bt,Wt,ir,mr,Mr),yx(Tn,Bt,Wt,ir,mr,Mr);return}tn=tn.next}Fr=Fr.next}while(Fr!==Ft)}function kT(Ft,Bt,Wt,ir){var mr=[],Mr,Fr,tn,Tn,Mn;for(Mr=0,Fr=Bt.length;Mr=Wt.next.y&&Wt.next.y!==Wt.y){var tn=Wt.x+(mr-Wt.y)*(Wt.next.x-Wt.x)/(Wt.next.y-Wt.y);if(tn<=ir&&tn>Mr){if(Mr=tn,tn===ir){if(mr===Wt.y)return Wt;if(mr===Wt.next.y)return Wt.next}Fr=Wt.x=Wt.x&&Wt.x>=Mn&&ir!==Wt.x&&Xy(mrFr.x||Wt.x===Fr.x&&OT(Fr,Wt)))&&(Fr=Wt,Qn=ao)),Wt=Wt.next;while(Wt!==Tn);return Fr}function OT(Ft,Bt){return Yp(Ft.prev,Ft,Bt.prev)<0&&Yp(Bt.next,Ft,Ft.next)<0}function FT(Ft,Bt,Wt,ir){var mr=Ft;do mr.z===null&&(mr.z=x2(mr.x,mr.y,Bt,Wt,ir)),mr.prevZ=mr.prev,mr.nextZ=mr.next,mr=mr.next;while(mr!==Ft);mr.prevZ.nextZ=null,mr.prevZ=null,BT(mr)}function BT(Ft){var Bt,Wt,ir,mr,Mr,Fr,tn,Tn,Mn=1;do{for(Wt=Ft,Ft=null,Mr=null,Fr=0;Wt;){for(Fr++,ir=Wt,tn=0,Bt=0;Bt0||Tn>0&&ir;)tn!==0&&(Tn===0||!ir||Wt.z<=ir.z)?(mr=Wt,Wt=Wt.nextZ,tn--):(mr=ir,ir=ir.nextZ,Tn--),Mr?Mr.nextZ=mr:Ft=mr,mr.prevZ=Mr,Mr=mr;Wt=ir}Mr.nextZ=null,Mn*=2}while(Fr>1);return Ft}function x2(Ft,Bt,Wt,ir,mr){return Ft=32767*(Ft-Wt)*mr,Bt=32767*(Bt-ir)*mr,Ft=(Ft|Ft<<8)&16711935,Ft=(Ft|Ft<<4)&252645135,Ft=(Ft|Ft<<2)&858993459,Ft=(Ft|Ft<<1)&1431655765,Bt=(Bt|Bt<<8)&16711935,Bt=(Bt|Bt<<4)&252645135,Bt=(Bt|Bt<<2)&858993459,Bt=(Bt|Bt<<1)&1431655765,Ft|Bt<<1}function zT(Ft){var Bt=Ft,Wt=Ft;do(Bt.x=0&&(Ft-Fr)*(ir-tn)-(Wt-Fr)*(Bt-tn)>=0&&(Wt-Fr)*(Mr-tn)-(mr-Fr)*(ir-tn)>=0}function nE(Ft,Bt){return Ft.next.i!==Bt.i&&Ft.prev.i!==Bt.i&&!Hx(Ft,Bt)&&(xx(Ft,Bt)&&xx(Bt,Ft)&&UT(Ft,Bt)&&(Yp(Ft.prev,Ft,Bt.prev)||Yp(Ft,Bt.prev,Bt))||zx(Ft,Bt)&&Yp(Ft.prev,Ft,Ft.next)>0&&Yp(Bt.prev,Bt,Bt.next)>0)}function Yp(Ft,Bt,Wt){return(Bt.y-Ft.y)*(Wt.x-Bt.x)-(Bt.x-Ft.x)*(Wt.y-Bt.y)}function zx(Ft,Bt){return Ft.x===Bt.x&&Ft.y===Bt.y}function aE(Ft,Bt,Wt,ir){var mr=$x(Yp(Ft,Bt,Wt)),Mr=$x(Yp(Ft,Bt,ir)),Fr=$x(Yp(Wt,ir,Ft)),tn=$x(Yp(Wt,ir,Bt));return!!(mr!==Mr&&Fr!==tn||mr===0&&Ux(Ft,Wt,Bt)||Mr===0&&Ux(Ft,ir,Bt)||Fr===0&&Ux(Wt,Ft,ir)||tn===0&&Ux(Wt,Bt,ir))}function Ux(Ft,Bt,Wt){return Bt.x<=Math.max(Ft.x,Wt.x)&&Bt.x>=Math.min(Ft.x,Wt.x)&&Bt.y<=Math.max(Ft.y,Wt.y)&&Bt.y>=Math.min(Ft.y,Wt.y)}function $x(Ft){return Ft>0?1:Ft<0?-1:0}function Hx(Ft,Bt){var Wt=Ft;do{if(Wt.i!==Ft.i&&Wt.next.i!==Ft.i&&Wt.i!==Bt.i&&Wt.next.i!==Bt.i&&aE(Wt,Wt.next,Ft,Bt))return!0;Wt=Wt.next}while(Wt!==Ft);return!1}function xx(Ft,Bt){return Yp(Ft.prev,Ft,Ft.next)<0?Yp(Ft,Bt,Ft.next)>=0&&Yp(Ft,Ft.prev,Bt)>=0:Yp(Ft,Bt,Ft.prev)<0||Yp(Ft,Ft.next,Bt)<0}function UT(Ft,Bt){var Wt=Ft,ir=!1,mr=(Ft.x+Bt.x)/2,Mr=(Ft.y+Bt.y)/2;do Wt.y>Mr!=Wt.next.y>Mr&&Wt.next.y!==Wt.y&&mr<(Wt.next.x-Wt.x)*(Mr-Wt.y)/(Wt.next.y-Wt.y)+Wt.x&&(ir=!ir),Wt=Wt.next;while(Wt!==Ft);return ir}function iE(Ft,Bt){var Wt=new b2(Ft.i,Ft.x,Ft.y),ir=new b2(Bt.i,Bt.x,Bt.y),mr=Ft.next,Mr=Bt.prev;return Ft.next=Bt,Bt.prev=Ft,Wt.next=mr,mr.prev=Wt,ir.next=Wt,Wt.prev=ir,Mr.next=ir,ir.prev=Mr,ir}function oE(Ft,Bt,Wt,ir){var mr=new b2(Ft,Bt,Wt);return ir?(mr.next=ir.next,mr.prev=ir,ir.next.prev=mr,ir.next=mr):(mr.prev=mr,mr.next=mr),mr}function bx(Ft){Ft.next.prev=Ft.prev,Ft.prev.next=Ft.next,Ft.prevZ&&(Ft.prevZ.nextZ=Ft.nextZ),Ft.nextZ&&(Ft.nextZ.prevZ=Ft.prevZ)}function b2(Ft,Bt,Wt){this.i=Ft,this.x=Bt,this.y=Wt,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}Bx.deviation=function(Ft,Bt,Wt,ir){var mr=Bt&&Bt.length,Mr=mr?Bt[0]*Wt:Ft.length,Fr=Math.abs(E2(Ft,0,Mr,Wt));if(mr)for(var tn=0,Tn=Bt.length;tn0&&(ir+=Ft[mr-1].length,Wt.holes.push(ir))}return Wt},y2.default=rE;function $T(Ft,Bt,Wt,ir,mr){sE(Ft,Bt,Wt||0,ir||Ft.length-1,mr||HT)}function sE(Ft,Bt,Wt,ir,mr){for(;ir>Wt;){if(ir-Wt>600){var Mr=ir-Wt+1,Fr=Bt-Wt+1,tn=Math.log(Mr),Tn=.5*Math.exp(2*tn/3),Mn=.5*Math.sqrt(tn*Tn*(Mr-Tn)/Mr)*(Fr-Mr/2<0?-1:1),Pn=Math.max(Wt,Math.floor(Bt-Fr*Tn/Mr+Mn)),Qn=Math.min(ir,Math.floor(Bt+(Mr-Fr)*Tn/Mr+Mn));sE(Ft,Bt,Pn,Qn,mr)}var ao=Ft[Bt],$a=Wt,Eo=ir;for(Ex(Ft,Wt,Bt),mr(Ft[ir],ao)>0&&Ex(Ft,Wt,ir);$a0;)Eo--}mr(Ft[Wt],ao)===0?Ex(Ft,Wt,Eo):(Eo++,Ex(Ft,Eo,ir)),Eo<=Bt&&(Wt=Eo+1),Bt<=Eo&&(ir=Eo-1)}}function Ex(Ft,Bt,Wt){var ir=Ft[Bt];Ft[Bt]=Ft[Wt],Ft[Wt]=ir}function HT(Ft,Bt){return FtBt?1:0}function Ky(Ft,Bt){var Wt=Ft.length;if(Wt<=1)return[Ft];for(var ir=[],mr,Mr,Fr=0;Fr1)for(var Tn=0;Tn>3}if(ir--,Wt===1||Wt===2)mr+=Ft.readSVarint(),Mr+=Ft.readSVarint(),Wt===1&&(tn&&Fr.push(tn),tn=[]),tn.push(new j(mr,Mr));else if(Wt===7)tn&&tn.push(tn[0].clone());else throw new Error("unknown command "+Wt)}return tn&&Fr.push(tn),Fr},ty.prototype.bbox=function(){var Ft=this._pbf;Ft.pos=this._geometry;for(var Bt=Ft.readVarint()+Ft.pos,Wt=1,ir=0,mr=0,Mr=0,Fr=1/0,tn=-1/0,Tn=1/0,Mn=-1/0;Ft.pos>3}if(ir--,Wt===1||Wt===2)mr+=Ft.readSVarint(),Mr+=Ft.readSVarint(),mrtn&&(tn=mr),MrMn&&(Mn=Mr);else if(Wt!==7)throw new Error("unknown command "+Wt)}return[Fr,Tn,tn,Mn]},ty.prototype.toGeoJSON=function(Ft,Bt,Wt){var ir=this.extent*Math.pow(2,Wt),mr=this.extent*Ft,Mr=this.extent*Bt,Fr=this.loadGeometry(),tn=ty.types[this.type],Tn,Mn;function Pn($a){for(var Eo=0;Eo<$a.length;Eo++){var Ho=$a[Eo],ds=180-(Ho.y+Mr)*360/ir;$a[Eo]=[(Ho.x+mr)*360/ir-180,360/Math.PI*Math.atan(Math.exp(ds*Math.PI/180))-90]}}switch(this.type){case 1:var Qn=[];for(Tn=0;Tn>3;Bt=ir===1?Ft.readString():ir===2?Ft.readFloat():ir===3?Ft.readDouble():ir===4?Ft.readVarint64():ir===5?Ft.readVarint():ir===6?Ft.readSVarint():ir===7?Ft.readBoolean():null}return Bt}hE.prototype.feature=function(Ft){if(Ft<0||Ft>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[Ft];var Bt=this._pbf.readVarint()+this._pbf.pos;return new Tx(this._pbf,Bt,this.extent,this._keys,this._values)};var QT=qT;function qT(Ft,Bt){this.layers=Ft.readFields(eA,{},Bt)}function eA(Ft,Bt,Wt){if(Ft===3){var ir=new dE(Wt,Wt.readVarint()+Wt.pos);ir.length&&(Bt[ir.name]=ir)}}var tA=QT,rA=Tx,nA=dE,Zy={VectorTile:tA,VectorTileFeature:rA,VectorTileLayer:nA},aA=Zy.VectorTileFeature.types,dm=500,_2=Math.pow(2,13);function Ax(Ft,Bt,Wt,ir,mr,Mr,Fr,tn){Ft.emplaceBack(Bt,Wt,Math.floor(ir*_2)*2+Fr,mr*_2*2,Mr*_2*2,Math.round(tn))}var Zv=function(Bt){this.zoom=Bt.zoom,this.overscaling=Bt.overscaling,this.layers=Bt.layers,this.layerIds=this.layers.map(function(Wt){return Wt.id}),this.index=Bt.index,this.hasPattern=!1,this.layoutVertexArray=new e1,this.indexArray=new F0,this.programConfigurations=new Kl(Bt.layers,Bt.zoom),this.segments=new zp,this.stateDependentLayerIds=this.layers.filter(function(Wt){return Wt.isStateDependent()}).map(function(Wt){return Wt.id})};Zv.prototype.populate=function(Bt,Wt,ir){this.features=[],this.hasPattern=Gx("fill-extrusion",this.layers,Wt);for(var mr=0,Mr=Bt;mr=1){var Os=ds[Bs-1];if(!Wu(As,Os)){$a.vertexLength+4>zp.MAX_VERTEX_ARRAY_LENGTH&&($a=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var Vs=As.sub(Os)._perp()._unit(),El=Os.dist(As);ss+El>32768&&(ss=0),Ax(this.layoutVertexArray,As.x,As.y,Vs.x,Vs.y,0,0,ss),Ax(this.layoutVertexArray,As.x,As.y,Vs.x,Vs.y,0,1,ss),ss+=El,Ax(this.layoutVertexArray,Os.x,Os.y,Vs.x,Vs.y,0,0,ss),Ax(this.layoutVertexArray,Os.x,Os.y,Vs.x,Vs.y,0,1,ss);var Nl=$a.vertexLength;this.indexArray.emplaceBack(Nl,Nl+2,Nl+1),this.indexArray.emplaceBack(Nl+1,Nl+2,Nl+3),$a.vertexLength+=4,$a.primitiveLength+=2}}}}if($a.vertexLength+Mn>zp.MAX_VERTEX_ARRAY_LENGTH&&($a=this.segments.prepareSegment(Mn,this.layoutVertexArray,this.indexArray)),aA[Bt.type]==="Polygon"){for(var Dl=[],ou=[],eu=$a.vertexLength,au=0,Cu=Tn;auiu)||Ft.y===Bt.y&&(Ft.y<0||Ft.y>iu)}function iA(Ft){return Ft.every(function(Bt){return Bt.x<0})||Ft.every(function(Bt){return Bt.x>iu})||Ft.every(function(Bt){return Bt.y<0})||Ft.every(function(Bt){return Bt.y>iu})}var z0=new Ku({"fill-extrusion-opacity":new Ol(To["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new cu(To["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Ol(To["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Ol(To["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Lp(To["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new cu(To["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new cu(To["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Ol(To["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])}),fv={paint:z0},oA=function(Ft){function Bt(Wt){Ft.call(this,Wt,fv)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype.createBucket=function(ir){return new Zv(ir)},Bt.prototype.queryRadius=function(){return i1(this.paint.get("fill-extrusion-translate"))},Bt.prototype.is3D=function(){return!0},Bt.prototype.queryIntersectsFeature=function(ir,mr,Mr,Fr,tn,Tn,Mn,Pn){var Qn=fm(ir,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),Tn.angle,Mn),ao=this.paint.get("fill-extrusion-height").evaluate(mr,Mr),$a=this.paint.get("fill-extrusion-base").evaluate(mr,Mr),Eo=uA(Qn,Pn,Tn,0),Ho=lA(Fr,$a,ao,Pn),ds=Ho[0],ss=Ho[1];return sA(ds,ss,Eo)},Bt}(Np);function U1(Ft,Bt){return Ft.x*Bt.x+Ft.y*Bt.y}function pE(Ft,Bt){if(Ft.length===1){for(var Wt=0,ir=Bt[Wt++],mr;!mr||ir.equals(mr);)if(mr=Bt[Wt++],!mr)return 1/0;for(;Wt=2&&Bt[Mn-1].equals(Bt[Mn-2]);)Mn--;for(var Pn=0;Pn0;if(Dl&&Bs>Pn){var eu=$a.dist(Eo);if(eu>2*Qn){var au=$a.sub($a.sub(Eo)._mult(Qn/eu)._round());this.updateDistance(Eo,au),this.addCurrentVertex(au,ds,0,0,ao),Eo=au}}var Cu=Eo&&Ho,su=Cu?ir:Tn?"butt":mr;if(Cu&&su==="round"&&(ElMr&&(su="bevel"),su==="bevel"&&(El>2&&(su="flipbevel"),El100)As=ss.mult(-1);else{var uu=El*ds.add(ss).mag()/ds.sub(ss).mag();As._perp()._mult(uu*(ou?-1:1))}this.addCurrentVertex($a,As,0,0,ao),this.addCurrentVertex($a,As.mult(-1),0,0,ao)}else if(su==="bevel"||su==="fakeround"){var Iu=-Math.sqrt(El*El-1),Au=ou?Iu:0,_f=ou?0:Iu;if(Eo&&this.addCurrentVertex($a,ds,Au,_f,ao),su==="fakeround")for(var gp=Math.round(Nl*180/Math.PI/gE),_d=1;_d2*Qn){var pv=$a.add(Ho.sub($a)._mult(Qn/Lv)._round());this.updateDistance($a,pv),this.addCurrentVertex(pv,ss,0,0,ao),$a=pv}}}}},Jv.prototype.addCurrentVertex=function(Bt,Wt,ir,mr,Mr,Fr){Fr===void 0&&(Fr=!1);var tn=Wt.x+Wt.y*ir,Tn=Wt.y-Wt.x*ir,Mn=-Wt.x+Wt.y*mr,Pn=-Wt.y-Wt.x*mr;this.addHalfVertex(Bt,tn,Tn,Fr,!1,ir,Mr),this.addHalfVertex(Bt,Mn,Pn,Fr,!0,-mr,Mr),this.distance>yE/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(Bt,Wt,ir,mr,Mr,Fr))},Jv.prototype.addHalfVertex=function(Bt,Wt,ir,mr,Mr,Fr,tn){var Tn=Bt.x,Mn=Bt.y,Pn=this.lineClips?this.scaledDistance*(yE-1):this.scaledDistance,Qn=Pn*mE;if(this.layoutVertexArray.emplaceBack((Tn<<1)+(mr?1:0),(Mn<<1)+(Mr?1:0),Math.round(_x*Wt)+128,Math.round(_x*ir)+128,(Fr===0?0:Fr<0?-1:1)+1|(Qn&63)<<2,Qn>>6),this.lineClips){var ao=this.scaledDistance-this.lineClips.start,$a=this.lineClips.end-this.lineClips.start,Eo=ao/$a;this.layoutVertexArray2.emplaceBack(Eo,this.lineClipsArray.length)}var Ho=tn.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,Ho),tn.primitiveLength++),Mr?this.e2=Ho:this.e1=Ho},Jv.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},Jv.prototype.updateDistance=function(Bt,Wt){this.distance+=Bt.dist(Wt),this.updateScaledDistance()},Hr("LineBucket",Jv,{omit:["layers","patternFeatures"]});var hA=new Ku({"line-cap":new Ol(To.layout_line["line-cap"]),"line-join":new cu(To.layout_line["line-join"]),"line-miter-limit":new Ol(To.layout_line["line-miter-limit"]),"line-round-limit":new Ol(To.layout_line["line-round-limit"]),"line-sort-key":new cu(To.layout_line["line-sort-key"])}),pA=new Ku({"line-opacity":new cu(To.paint_line["line-opacity"]),"line-color":new cu(To.paint_line["line-color"]),"line-translate":new Ol(To.paint_line["line-translate"]),"line-translate-anchor":new Ol(To.paint_line["line-translate-anchor"]),"line-width":new cu(To.paint_line["line-width"]),"line-gap-width":new cu(To.paint_line["line-gap-width"]),"line-offset":new cu(To.paint_line["line-offset"]),"line-blur":new cu(To.paint_line["line-blur"]),"line-dasharray":new Ev(To.paint_line["line-dasharray"]),"line-pattern":new Lp(To.paint_line["line-pattern"]),"line-gradient":new jp(To.paint_line["line-gradient"])}),w2={paint:pA,layout:hA},Sx=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype.possiblyEvaluate=function(ir,mr){return mr=new ru(Math.floor(mr.zoom),{now:mr.now,fadeDuration:mr.fadeDuration,zoomHistory:mr.zoomHistory,transition:mr.transition}),Ft.prototype.possiblyEvaluate.call(this,ir,mr)},Bt.prototype.evaluate=function(ir,mr,Mr,Fr){return mr=St({},mr,{zoom:Math.floor(mr.zoom)}),Ft.prototype.evaluate.call(this,ir,mr,Mr,Fr)},Bt}(cu),Wx=new Sx(w2.paint.properties["line-width"].specification);Wx.useIntegerZoom=!0;var vA=function(Ft){function Bt(Wt){Ft.call(this,Wt,w2),this.gradientVersion=0}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._handleSpecialPaintPropertyUpdate=function(ir){if(ir==="line-gradient"){var mr=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=mr._styleExpression.expression instanceof $v,this.gradientVersion=(this.gradientVersion+1)%st}},Bt.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},Bt.prototype.recalculate=function(ir,mr){Ft.prototype.recalculate.call(this,ir,mr),this.paint._values["line-floorwidth"]=Wx.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,ir)},Bt.prototype.createBucket=function(ir){return new Jv(ir)},Bt.prototype.queryRadius=function(ir){var mr=ir,Mr=C2(Xv("line-width",this,mr),Xv("line-gap-width",this,mr)),Fr=Xv("line-offset",this,mr);return Mr/2+Math.abs(Fr)+i1(this.paint.get("line-translate"))},Bt.prototype.queryIntersectsFeature=function(ir,mr,Mr,Fr,tn,Tn,Mn){var Pn=fm(ir,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),Tn.angle,Mn),Qn=Mn/2*C2(this.paint.get("line-width").evaluate(mr,Mr),this.paint.get("line-gap-width").evaluate(mr,Mr)),ao=this.paint.get("line-offset").evaluate(mr,Mr);return ao&&(Fr=jx(Fr,ao*Mn)),Jp(Pn,Fr,Qn)},Bt.prototype.isTileClipped=function(){return!0},Bt}(Np);function C2(Ft,Bt){return Bt>0?Bt+2*Ft:Ft}function jx(Ft,Bt){for(var Wt=[],ir=new j(0,0),mr=0;mr":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"};function Ju(Ft){for(var Bt="",Wt=0;Wt>1,Pn=-7,Qn=Wt?mr-1:0,ao=Wt?-1:1,$a=Ft[Bt+Qn];for(Qn+=ao,Mr=$a&(1<<-Pn)-1,$a>>=-Pn,Pn+=tn;Pn>0;Mr=Mr*256+Ft[Bt+Qn],Qn+=ao,Pn-=8);for(Fr=Mr&(1<<-Pn)-1,Mr>>=-Pn,Pn+=ir;Pn>0;Fr=Fr*256+Ft[Bt+Qn],Qn+=ao,Pn-=8);if(Mr===0)Mr=1-Mn;else{if(Mr===Tn)return Fr?NaN:($a?-1:1)*(1/0);Fr=Fr+Math.pow(2,ir),Mr=Mr-Mn}return($a?-1:1)*Fr*Math.pow(2,Mr-ir)},EE=function(Ft,Bt,Wt,ir,mr,Mr){var Fr,tn,Tn,Mn=Mr*8-mr-1,Pn=(1<>1,ao=mr===23?Math.pow(2,-24)-Math.pow(2,-77):0,$a=ir?0:Mr-1,Eo=ir?1:-1,Ho=Bt<0||Bt===0&&1/Bt<0?1:0;for(Bt=Math.abs(Bt),isNaN(Bt)||Bt===1/0?(tn=isNaN(Bt)?1:0,Fr=Pn):(Fr=Math.floor(Math.log(Bt)/Math.LN2),Bt*(Tn=Math.pow(2,-Fr))<1&&(Fr--,Tn*=2),Fr+Qn>=1?Bt+=ao/Tn:Bt+=ao*Math.pow(2,1-Qn),Bt*Tn>=2&&(Fr++,Tn/=2),Fr+Qn>=Pn?(tn=0,Fr=Pn):Fr+Qn>=1?(tn=(Bt*Tn-1)*Math.pow(2,mr),Fr=Fr+Qn):(tn=Bt*Math.pow(2,Qn-1)*Math.pow(2,mr),Fr=0));mr>=8;Ft[Wt+$a]=tn&255,$a+=Eo,tn/=256,mr-=8);for(Fr=Fr<0;Ft[Wt+$a]=Fr&255,$a+=Eo,Fr/=256,Mn-=8);Ft[Wt+$a-Eo]|=Ho*128},Yx={read:$1,write:EE},hp=bp;function bp(Ft){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(Ft)?Ft:new Uint8Array(Ft||0),this.pos=0,this.type=0,this.length=this.buf.length}bp.Varint=0,bp.Fixed64=1,bp.Bytes=2,bp.Fixed32=5;var Xx=(1<<16)*(1<<16),wx=1/Xx,bA=12,TE=typeof TextDecoder>"u"?null:new TextDecoder("utf8");bp.prototype={destroy:function(){this.buf=null},readFields:function(Ft,Bt,Wt){for(Wt=Wt||this.length;this.pos>3,Mr=this.pos;this.type=ir&7,Ft(mr,Bt,this),this.pos===Mr&&this.skip(ir)}return Bt},readMessage:function(Ft,Bt){return this.readFields(Ft,Bt,this.readVarint()+this.pos)},readFixed32:function(){var Ft=Kx(this.buf,this.pos);return this.pos+=4,Ft},readSFixed32:function(){var Ft=T0(this.buf,this.pos);return this.pos+=4,Ft},readFixed64:function(){var Ft=Kx(this.buf,this.pos)+Kx(this.buf,this.pos+4)*Xx;return this.pos+=8,Ft},readSFixed64:function(){var Ft=Kx(this.buf,this.pos)+T0(this.buf,this.pos+4)*Xx;return this.pos+=8,Ft},readFloat:function(){var Ft=Yx.read(this.buf,this.pos,!0,23,4);return this.pos+=4,Ft},readDouble:function(){var Ft=Yx.read(this.buf,this.pos,!0,52,8);return this.pos+=8,Ft},readVarint:function(Ft){var Bt=this.buf,Wt,ir;return ir=Bt[this.pos++],Wt=ir&127,ir<128||(ir=Bt[this.pos++],Wt|=(ir&127)<<7,ir<128)||(ir=Bt[this.pos++],Wt|=(ir&127)<<14,ir<128)||(ir=Bt[this.pos++],Wt|=(ir&127)<<21,ir<128)?Wt:(ir=Bt[this.pos],Wt|=(ir&15)<<28,EA(Wt,Ft,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var Ft=this.readVarint();return Ft%2===1?(Ft+1)/-2:Ft/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var Ft=this.readVarint()+this.pos,Bt=this.pos;return this.pos=Ft,Ft-Bt>=bA&&TE?DA(this.buf,Bt,Ft):LA(this.buf,Bt,Ft)},readBytes:function(){var Ft=this.readVarint()+this.pos,Bt=this.buf.subarray(this.pos,Ft);return this.pos=Ft,Bt},readPackedVarint:function(Ft,Bt){if(this.type!==bp.Bytes)return Ft.push(this.readVarint(Bt));var Wt=ny(this);for(Ft=Ft||[];this.pos127;);else if(Bt===bp.Bytes)this.pos=this.readVarint()+this.pos;else if(Bt===bp.Fixed32)this.pos+=4;else if(Bt===bp.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+Bt)},writeTag:function(Ft,Bt){this.writeVarint(Ft<<3|Bt)},realloc:function(Ft){for(var Bt=this.length||16;Bt268435455||Ft<0){TA(Ft,this);return}this.realloc(4),this.buf[this.pos++]=Ft&127|(Ft>127?128:0),!(Ft<=127)&&(this.buf[this.pos++]=(Ft>>>=7)&127|(Ft>127?128:0),!(Ft<=127)&&(this.buf[this.pos++]=(Ft>>>=7)&127|(Ft>127?128:0),!(Ft<=127)&&(this.buf[this.pos++]=Ft>>>7&127)))},writeSVarint:function(Ft){this.writeVarint(Ft<0?-Ft*2-1:Ft*2)},writeBoolean:function(Ft){this.writeVarint(Boolean(Ft))},writeString:function(Ft){Ft=String(Ft),this.realloc(Ft.length*4),this.pos++;var Bt=this.pos;this.pos=PA(this.buf,Ft,this.pos);var Wt=this.pos-Bt;Wt>=128&&AE(Bt,Wt,this),this.pos=Bt-1,this.writeVarint(Wt),this.pos+=Wt},writeFloat:function(Ft){this.realloc(4),Yx.write(this.buf,Ft,this.pos,!0,23,4),this.pos+=4},writeDouble:function(Ft){this.realloc(8),Yx.write(this.buf,Ft,this.pos,!0,52,8),this.pos+=8},writeBytes:function(Ft){var Bt=Ft.length;this.writeVarint(Bt),this.realloc(Bt);for(var Wt=0;Wt=128&&AE(Wt,ir,this),this.pos=Wt-1,this.writeVarint(ir),this.pos+=ir},writeMessage:function(Ft,Bt,Wt){this.writeTag(Ft,bp.Bytes),this.writeRawMessage(Bt,Wt)},writePackedVarint:function(Ft,Bt){Bt.length&&this.writeMessage(Ft,SA,Bt)},writePackedSVarint:function(Ft,Bt){Bt.length&&this.writeMessage(Ft,wA,Bt)},writePackedBoolean:function(Ft,Bt){Bt.length&&this.writeMessage(Ft,R2,Bt)},writePackedFloat:function(Ft,Bt){Bt.length&&this.writeMessage(Ft,CA,Bt)},writePackedDouble:function(Ft,Bt){Bt.length&&this.writeMessage(Ft,RA,Bt)},writePackedFixed32:function(Ft,Bt){Bt.length&&this.writeMessage(Ft,MA,Bt)},writePackedSFixed32:function(Ft,Bt){Bt.length&&this.writeMessage(Ft,M2,Bt)},writePackedFixed64:function(Ft,Bt){Bt.length&&this.writeMessage(Ft,IA,Bt)},writePackedSFixed64:function(Ft,Bt){Bt.length&&this.writeMessage(Ft,kA,Bt)},writeBytesField:function(Ft,Bt){this.writeTag(Ft,bp.Bytes),this.writeBytes(Bt)},writeFixed32Field:function(Ft,Bt){this.writeTag(Ft,bp.Fixed32),this.writeFixed32(Bt)},writeSFixed32Field:function(Ft,Bt){this.writeTag(Ft,bp.Fixed32),this.writeSFixed32(Bt)},writeFixed64Field:function(Ft,Bt){this.writeTag(Ft,bp.Fixed64),this.writeFixed64(Bt)},writeSFixed64Field:function(Ft,Bt){this.writeTag(Ft,bp.Fixed64),this.writeSFixed64(Bt)},writeVarintField:function(Ft,Bt){this.writeTag(Ft,bp.Varint),this.writeVarint(Bt)},writeSVarintField:function(Ft,Bt){this.writeTag(Ft,bp.Varint),this.writeSVarint(Bt)},writeStringField:function(Ft,Bt){this.writeTag(Ft,bp.Bytes),this.writeString(Bt)},writeFloatField:function(Ft,Bt){this.writeTag(Ft,bp.Fixed32),this.writeFloat(Bt)},writeDoubleField:function(Ft,Bt){this.writeTag(Ft,bp.Fixed64),this.writeDouble(Bt)},writeBooleanField:function(Ft,Bt){this.writeVarintField(Ft,Boolean(Bt))}};function EA(Ft,Bt,Wt){var ir=Wt.buf,mr,Mr;if(Mr=ir[Wt.pos++],mr=(Mr&112)>>4,Mr<128||(Mr=ir[Wt.pos++],mr|=(Mr&127)<<3,Mr<128)||(Mr=ir[Wt.pos++],mr|=(Mr&127)<<10,Mr<128)||(Mr=ir[Wt.pos++],mr|=(Mr&127)<<17,Mr<128)||(Mr=ir[Wt.pos++],mr|=(Mr&127)<<24,Mr<128)||(Mr=ir[Wt.pos++],mr|=(Mr&1)<<31,Mr<128))return Qy(Ft,mr,Bt);throw new Error("Expected varint not more than 10 bytes")}function ny(Ft){return Ft.type===bp.Bytes?Ft.readVarint()+Ft.pos:Ft.pos+1}function Qy(Ft,Bt,Wt){return Wt?Bt*4294967296+(Ft>>>0):(Bt>>>0)*4294967296+(Ft>>>0)}function TA(Ft,Bt){var Wt,ir;if(Ft>=0?(Wt=Ft%4294967296|0,ir=Ft/4294967296|0):(Wt=~(-Ft%4294967296),ir=~(-Ft/4294967296),Wt^4294967295?Wt=Wt+1|0:(Wt=0,ir=ir+1|0)),Ft>=18446744073709552e3||Ft<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");Bt.realloc(10),AA(Wt,ir,Bt),_A(ir,Bt)}function AA(Ft,Bt,Wt){Wt.buf[Wt.pos++]=Ft&127|128,Ft>>>=7,Wt.buf[Wt.pos++]=Ft&127|128,Ft>>>=7,Wt.buf[Wt.pos++]=Ft&127|128,Ft>>>=7,Wt.buf[Wt.pos++]=Ft&127|128,Ft>>>=7,Wt.buf[Wt.pos]=Ft&127}function _A(Ft,Bt){var Wt=(Ft&7)<<4;Bt.buf[Bt.pos++]|=Wt|((Ft>>>=3)?128:0),Ft&&(Bt.buf[Bt.pos++]=Ft&127|((Ft>>>=7)?128:0),Ft&&(Bt.buf[Bt.pos++]=Ft&127|((Ft>>>=7)?128:0),Ft&&(Bt.buf[Bt.pos++]=Ft&127|((Ft>>>=7)?128:0),Ft&&(Bt.buf[Bt.pos++]=Ft&127|((Ft>>>=7)?128:0),Ft&&(Bt.buf[Bt.pos++]=Ft&127)))))}function AE(Ft,Bt,Wt){var ir=Bt<=16383?1:Bt<=2097151?2:Bt<=268435455?3:Math.floor(Math.log(Bt)/(Math.LN2*7));Wt.realloc(ir);for(var mr=Wt.pos-1;mr>=Ft;mr--)Wt.buf[mr+ir]=Wt.buf[mr]}function SA(Ft,Bt){for(var Wt=0;Wt>>8,Ft[Wt+2]=Bt>>>16,Ft[Wt+3]=Bt>>>24}function T0(Ft,Bt){return(Ft[Bt]|Ft[Bt+1]<<8|Ft[Bt+2]<<16)+(Ft[Bt+3]<<24)}function LA(Ft,Bt,Wt){for(var ir="",mr=Bt;mr239?4:Mr>223?3:Mr>191?2:1;if(mr+tn>Wt)break;var Tn,Mn,Pn;tn===1?Mr<128&&(Fr=Mr):tn===2?(Tn=Ft[mr+1],(Tn&192)===128&&(Fr=(Mr&31)<<6|Tn&63,Fr<=127&&(Fr=null))):tn===3?(Tn=Ft[mr+1],Mn=Ft[mr+2],(Tn&192)===128&&(Mn&192)===128&&(Fr=(Mr&15)<<12|(Tn&63)<<6|Mn&63,(Fr<=2047||Fr>=55296&&Fr<=57343)&&(Fr=null))):tn===4&&(Tn=Ft[mr+1],Mn=Ft[mr+2],Pn=Ft[mr+3],(Tn&192)===128&&(Mn&192)===128&&(Pn&192)===128&&(Fr=(Mr&15)<<18|(Tn&63)<<12|(Mn&63)<<6|Pn&63,(Fr<=65535||Fr>=1114112)&&(Fr=null))),Fr===null?(Fr=65533,tn=1):Fr>65535&&(Fr-=65536,ir+=String.fromCharCode(Fr>>>10&1023|55296),Fr=56320|Fr&1023),ir+=String.fromCharCode(Fr),mr+=tn}return ir}function DA(Ft,Bt,Wt){return TE.decode(Ft.subarray(Bt,Wt))}function PA(Ft,Bt,Wt){for(var ir=0,mr,Mr;ir55295&&mr<57344)if(Mr)if(mr<56320){Ft[Wt++]=239,Ft[Wt++]=191,Ft[Wt++]=189,Mr=mr;continue}else mr=Mr-55296<<10|mr-56320|65536,Mr=null;else{mr>56319||ir+1===Bt.length?(Ft[Wt++]=239,Ft[Wt++]=191,Ft[Wt++]=189):Mr=mr;continue}else Mr&&(Ft[Wt++]=239,Ft[Wt++]=191,Ft[Wt++]=189,Mr=null);mr<128?Ft[Wt++]=mr:(mr<2048?Ft[Wt++]=mr>>6|192:(mr<65536?Ft[Wt++]=mr>>12|224:(Ft[Wt++]=mr>>18|240,Ft[Wt++]=mr>>12&63|128),Ft[Wt++]=mr>>6&63|128),Ft[Wt++]=mr&63|128)}return Wt}var Zx=3;function NA(Ft,Bt,Wt){Ft===1&&Wt.readMessage(OA,Bt)}function OA(Ft,Bt,Wt){if(Ft===3){var ir=Wt.readMessage(FA,{}),mr=ir.id,Mr=ir.bitmap,Fr=ir.width,tn=ir.height,Tn=ir.left,Mn=ir.top,Pn=ir.advance;Bt.push({id:mr,bitmap:new Dy({width:Fr+2*Zx,height:tn+2*Zx},Mr),metrics:{width:Fr,height:tn,left:Tn,top:Mn,advance:Pn}})}}function FA(Ft,Bt,Wt){Ft===1?Bt.id=Wt.readVarint():Ft===2?Bt.bitmap=Wt.readBytes():Ft===3?Bt.width=Wt.readVarint():Ft===4?Bt.height=Wt.readVarint():Ft===5?Bt.left=Wt.readSVarint():Ft===6?Bt.top=Wt.readSVarint():Ft===7&&(Bt.advance=Wt.readVarint())}function _E(Ft){return new hp(Ft).readFields(NA,[])}var SE=Zx;function wE(Ft){for(var Bt=0,Wt=0,ir=0,mr=Ft;ir=0;$a--){var Eo=tn[$a];if(!(ao.w>Eo.w||ao.h>Eo.h)){if(ao.x=Eo.x,ao.y=Eo.y,Mn=Math.max(Mn,ao.y+ao.h),Tn=Math.max(Tn,ao.x+ao.w),ao.w===Eo.w&&ao.h===Eo.h){var Ho=tn.pop();$a=0&&mr>=Bt&&hm[this.text.charCodeAt(mr)];mr--)ir--;this.text=this.text.substring(Bt,ir),this.sectionIndex=this.sectionIndex.slice(Bt,ir)},Uv.prototype.substring=function(Bt,Wt){var ir=new Uv;return ir.text=this.text.substring(Bt,Wt),ir.sectionIndex=this.sectionIndex.slice(Bt,Wt),ir.sections=this.sections,ir},Uv.prototype.toString=function(){return this.text},Uv.prototype.getMaxScale=function(){var Bt=this;return this.sectionIndex.reduce(function(Wt,ir){return Math.max(Wt,Bt.sections[ir].scale)},0)},Uv.prototype.addTextSection=function(Bt,Wt){this.text+=Bt.text,this.sections.push(ex.forText(Bt.scale,Bt.fontStack||Wt));for(var ir=this.sections.length-1,mr=0;mr=CE?null:++this.imageSectionID:(this.imageSectionID=Py,this.imageSectionID)};function zA(Ft,Bt){for(var Wt=[],ir=Ft.text,mr=0,Mr=0,Fr=Bt;Mr=0,Pn=0,Qn=0;Qn0&&pv>ou&&(ou=pv)}else{var _h=Wt[au.fontStack],Qu=_h&&_h[su];if(Qu&&Qu.rect)Au=Qu.rect,Iu=Qu.metrics;else{var Tp=Bt[au.fontStack],Rp=Tp&&Tp[su];if(!Rp)continue;Iu=Rp.metrics}uu=(Vs-au.scale)*dv}_d?(Ft.verticalizable=!0,Dl.push({glyph:su,imageName:_f,x:ao,y:$a+uu,vertical:_d,scale:au.scale,fontStack:au.fontStack,sectionIndex:Cu,metrics:Iu,rect:Au}),ao+=gp*au.scale+Mn):(Dl.push({glyph:su,imageName:_f,x:ao,y:$a+uu,vertical:_d,scale:au.scale,fontStack:au.fontStack,sectionIndex:Cu,metrics:Iu,rect:Au}),ao+=Iu.advance*au.scale+Mn)}if(Dl.length!==0){var f0=ao-Mn;Eo=Math.max(f0,Eo),GA(Dl,0,Dl.length-1,ds,ou)}ao=0;var d0=Mr*Vs+ou;Nl.lineOffset=Math.max(ou,El),$a+=d0,Ho=Math.max(d0,Ho),++ss}var Dv=$a-Mx,_0=k2(Fr),S0=_0.horizontalAlign,_v=_0.verticalAlign;VA(Ft.positionedLines,ds,S0,_v,Eo,Ho,Mr,Dv,mr.length),Ft.top+=-_v*Dv,Ft.bottom=Ft.top+Dv,Ft.left+=-S0*Eo,Ft.right=Ft.left+Eo}function GA(Ft,Bt,Wt,ir,mr){if(!(!ir&&!mr))for(var Mr=Ft[Wt],Fr=Mr.metrics.advance*Mr.scale,tn=(Ft[Wt].x+Fr)*ir,Tn=Bt;Tn<=Wt;Tn++)Ft[Tn].x-=tn,Ft[Tn].y+=mr}function VA(Ft,Bt,Wt,ir,mr,Mr,Fr,tn,Tn){var Mn=(Bt-Wt)*mr,Pn=0;Mr!==Fr?Pn=-tn*ir-Mx:Pn=(-ir*Tn+.5)*Fr;for(var Qn=0,ao=Ft;Qn-Wt/2;){if(Fr--,Fr<0)return!1;tn-=Ft[Fr].dist(Mr),Mr=Ft[Fr]}tn+=Ft[Fr].dist(Ft[Fr+1]),Fr++;for(var Tn=[],Mn=0;tnir;)Mn-=Tn.shift().angleDelta;if(Mn>mr)return!1;Fr++,tn+=Qn.dist(ao)}return!0}function OE(Ft){for(var Bt=0,Wt=0;WtMn){var Eo=(Mn-Tn)/$a,Ho=up(Qn.x,ao.x,Eo),ds=up(Qn.y,ao.y,Eo),ss=new tx(Ho,ds,ao.angleTo(Qn),Pn);return ss._round(),!Fr||NE(Ft,ss,tn,Fr,Bt)?ss:void 0}Tn+=$a}}function XA(Ft,Bt,Wt,ir,mr,Mr,Fr,tn,Tn){var Mn=FE(ir,Mr,Fr),Pn=BE(ir,mr),Qn=Pn*Fr,ao=Ft[0].x===0||Ft[0].x===Tn||Ft[0].y===0||Ft[0].y===Tn;Bt-Qn=0&&Os=0&&Vs=0&&ao+Mn<=Pn){var El=new tx(Os,Vs,Bs,Eo);El._round(),(!ir||NE(Ft,El,Mr,ir,mr))&&$a.push(El)}}Qn+=ss}return!tn&&!$a.length&&!Fr&&($a=Qx(Ft,Qn/2,Wt,ir,mr,Mr,Fr,!0,Tn)),$a}function D2(Ft,Bt,Wt,ir,mr){for(var Mr=[],Fr=0;Fr=ir&&Qn.x>=ir)&&(Pn.x>=ir?Pn=new j(ir,Pn.y+(Qn.y-Pn.y)*((ir-Pn.x)/(Qn.x-Pn.x)))._round():Qn.x>=ir&&(Qn=new j(ir,Pn.y+(Qn.y-Pn.y)*((ir-Pn.x)/(Qn.x-Pn.x)))._round()),!(Pn.y>=mr&&Qn.y>=mr)&&(Pn.y>=mr?Pn=new j(Pn.x+(Qn.x-Pn.x)*((mr-Pn.y)/(Qn.y-Pn.y)),mr)._round():Qn.y>=mr&&(Qn=new j(Pn.x+(Qn.x-Pn.x)*((mr-Pn.y)/(Qn.y-Pn.y)),mr)._round()),(!Tn||!Pn.equals(Tn[Tn.length-1]))&&(Tn=[Pn],Mr.push(Tn)),Tn.push(Qn)))))}return Mr}var Ny=A0;function zE(Ft,Bt,Wt,ir){var mr=[],Mr=Ft.image,Fr=Mr.pixelRatio,tn=Mr.paddedRect.w-2*Ny,Tn=Mr.paddedRect.h-2*Ny,Mn=Ft.right-Ft.left,Pn=Ft.bottom-Ft.top,Qn=Mr.stretchX||[[0,tn]],ao=Mr.stretchY||[[0,Tn]],$a=function(_h,Qu){return _h+Qu[1]-Qu[0]},Eo=Qn.reduce($a,0),Ho=ao.reduce($a,0),ds=tn-Eo,ss=Tn-Ho,Bs=0,As=Eo,Os=0,Vs=Ho,El=0,Nl=ds,Dl=0,ou=ss;if(Mr.content&&ir){var eu=Mr.content;Bs=qx(Qn,0,eu[0]),Os=qx(ao,0,eu[1]),As=qx(Qn,eu[0],eu[2]),Vs=qx(ao,eu[1],eu[3]),El=eu[0]-Bs,Dl=eu[1]-Os,Nl=eu[2]-eu[0]-As,ou=eu[3]-eu[1]-Vs}var au=function(_h,Qu,Tp,Rp){var Xp=rx(_h.stretch-Bs,As,Mn,Ft.left),rv=_b(_h.fixed-El,Nl,_h.stretch,Eo),Lv=rx(Qu.stretch-Os,Vs,Pn,Ft.top),pv=_b(Qu.fixed-Dl,ou,Qu.stretch,Ho),f0=rx(Tp.stretch-Bs,As,Mn,Ft.left),d0=_b(Tp.fixed-El,Nl,Tp.stretch,Eo),Dv=rx(Rp.stretch-Os,Vs,Pn,Ft.top),_0=_b(Rp.fixed-Dl,ou,Rp.stretch,Ho),S0=new j(Xp,Lv),_v=new j(f0,Lv),w0=new j(f0,Dv),H1=new j(Xp,Dv),By=new j(rv/Fr,pv/Fr),ux=new j(d0/Fr,_0/Fr),cx=Bt*Math.PI/180;if(cx){var fx=Math.sin(cx),n2=Math.cos(cx),Nm=[n2,-fx,fx,n2];S0._matMult(Nm),_v._matMult(Nm),H1._matMult(Nm),w0._matMult(Nm)}var jE=_h.stretch+_h.fixed,g_=Tp.stretch+Tp.fixed,YE=Qu.stretch+Qu.fixed,m_=Rp.stretch+Rp.fixed,gm={x:Mr.paddedRect.x+Ny+jE,y:Mr.paddedRect.y+Ny+YE,w:g_-jE,h:m_-YE},a2=Nl/Fr/Mn,XE=ou/Fr/Pn;return{tl:S0,tr:_v,bl:H1,br:w0,tex:gm,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:By,pixelOffsetBR:ux,minFontScaleX:a2,minFontScaleY:XE,isSDF:Wt}};if(!ir||!Mr.stretchX&&!Mr.stretchY)mr.push(au({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:tn+1},{fixed:0,stretch:Tn+1}));else for(var Cu=UE(Qn,ds,Eo),su=UE(ao,ss,Ho),uu=0;uu0&&(Eo=Math.max(10,Eo),this.circleDiameter=Eo)}else{var Ho=Fr.top*tn-Tn,ds=Fr.bottom*tn+Tn,ss=Fr.left*tn-Tn,Bs=Fr.right*tn+Tn,As=Fr.collisionPadding;if(As&&(ss-=As[0]*tn,Ho-=As[1]*tn,Bs+=As[2]*tn,ds+=As[3]*tn),Pn){var Os=new j(ss,Ho),Vs=new j(Bs,Ho),El=new j(ss,ds),Nl=new j(Bs,ds),Dl=Pn*Math.PI/180;Os._rotate(Dl),Vs._rotate(Dl),El._rotate(Dl),Nl._rotate(Dl),ss=Math.min(Os.x,Vs.x,El.x,Nl.x),Bs=Math.max(Os.x,Vs.x,El.x,Nl.x),Ho=Math.min(Os.y,Vs.y,El.y,Nl.y),ds=Math.max(Os.y,Vs.y,El.y,Nl.y)}Bt.emplaceBack(Wt.x,Wt.y,ss,Ho,Bs,ds,ir,mr,Mr)}this.boxEndIndex=Bt.length},Iv=function(Bt,Wt){if(Bt===void 0&&(Bt=[]),Wt===void 0&&(Wt=P2),this.data=Bt,this.length=this.data.length,this.compare=Wt,this.length>0)for(var ir=(this.length>>1)-1;ir>=0;ir--)this._down(ir)};Iv.prototype.push=function(Bt){this.data.push(Bt),this.length++,this._up(this.length-1)},Iv.prototype.pop=function(){if(this.length!==0){var Bt=this.data[0],Wt=this.data.pop();return this.length--,this.length>0&&(this.data[0]=Wt,this._down(0)),Bt}},Iv.prototype.peek=function(){return this.data[0]},Iv.prototype._up=function(Bt){for(var Wt=this,ir=Wt.data,mr=Wt.compare,Mr=ir[Bt];Bt>0;){var Fr=Bt-1>>1,tn=ir[Fr];if(mr(Mr,tn)>=0)break;ir[Bt]=tn,Bt=Fr}ir[Bt]=Mr},Iv.prototype._down=function(Bt){for(var Wt=this,ir=Wt.data,mr=Wt.compare,Mr=this.length>>1,Fr=ir[Bt];Bt=0)break;ir[Bt]=Tn,Bt=tn}ir[Bt]=Fr};function P2(Ft,Bt){return FtBt?1:0}function ZA(Ft,Bt,Wt){Bt===void 0&&(Bt=1),Wt===void 0&&(Wt=!1);for(var ir=1/0,mr=1/0,Mr=-1/0,Fr=-1/0,tn=Ft[0],Tn=0;TnMr)&&(Mr=Mn.x),(!Tn||Mn.y>Fr)&&(Fr=Mn.y)}var Pn=Mr-ir,Qn=Fr-mr,ao=Math.min(Pn,Qn),$a=ao/2,Eo=new Iv([],JA);if(ao===0)return new j(ir,mr);for(var Ho=ir;Hoss.d||!ss.d)&&(ss=As,Wt&&console.log("found best %d after %d probes",Math.round(1e4*As.d)/1e4,Bs)),!(As.max-ss.d<=Bt)&&($a=As.h/2,Eo.push(new nx(As.p.x-$a,As.p.y-$a,$a,Ft)),Eo.push(new nx(As.p.x+$a,As.p.y-$a,$a,Ft)),Eo.push(new nx(As.p.x-$a,As.p.y+$a,$a,Ft)),Eo.push(new nx(As.p.x+$a,As.p.y+$a,$a,Ft)),Bs+=4)}return Wt&&(console.log("num probes: "+Bs),console.log("best distance: "+ss.d)),ss.p}function JA(Ft,Bt){return Bt.max-Ft.max}function nx(Ft,Bt,Wt,ir){this.p=new j(Ft,Bt),this.h=Wt,this.d=QA(this.p,ir),this.max=this.d+this.h*Math.SQRT2}function QA(Ft,Bt){for(var Wt=!1,ir=1/0,mr=0;mrFt.y!=Pn.y>Ft.y&&Ft.x<(Pn.x-Mn.x)*(Ft.y-Mn.y)/(Pn.y-Mn.y)+Mn.x&&(Wt=!Wt),ir=Math.min(ir,ey(Ft,Mn,Pn))}return(Wt?1:-1)*Math.sqrt(ir)}function N2(Ft){for(var Bt=0,Wt=0,ir=0,mr=Ft[0],Mr=0,Fr=mr.length,tn=Fr-1;Mr=iu||Nm.y<0||Nm.y>=iu||F2(Ft,Nm,n2,Wt,ir,mr,su,Ft.layers[0],Ft.collisionBoxArray,Bt.index,Bt.sourceLayerIndex,Ft.index,ss,Vs,Dl,Tn,As,El,ou,$a,Bt,Mr,Mn,Pn,Fr)};if(eu==="line")for(var Iu=0,Au=D2(Bt.geometry,0,0,iu,iu);Iu1){var Lv=YA(rv,Nl,Wt.vertical||Eo,ir,Ho,Bs);Lv&&uu(rv,Lv)}}else if(Bt.type==="Polygon")for(var pv=0,f0=Ky(Bt.geometry,0);pv_y&&$t(Ft.layerIds[0]+': Value for "text-size" is >= '+ix+'. Reduce your "text-size".')):ds.kind==="composite"&&(ss=[pm*$a.compositeTextSizes[0].evaluate(Fr,{},Eo),pm*$a.compositeTextSizes[1].evaluate(Fr,{},Eo)],(ss[0]>_y||ss[1]>_y)&&$t(Ft.layerIds[0]+': Value for "text-size" is >= '+ix+'. Reduce your "text-size".')),Ft.addSymbols(Ft.text,Ho,ss,tn,Mr,Fr,Mn,Bt,Tn.lineStartIndex,Tn.lineLength,ao,Eo);for(var Bs=0,As=Pn;Bs_y&&$t(Ft.layerIds[0]+': Value for "icon-size" is >= '+ix+'. Reduce your "icon-size".')):S0.kind==="composite"&&(_v=[pm*Vs.compositeIconSizes[0].evaluate(Os,{},Nl),pm*Vs.compositeIconSizes[1].evaluate(Os,{},Nl)],(_v[0]>_y||_v[1]>_y)&&$t(Ft.layerIds[0]+': Value for "icon-size" is >= '+ix+'. Reduce your "icon-size".')),Ft.addSymbols(Ft.icon,Dv,_v,As,Bs,Os,!1,Bt,eu.lineStartIndex,eu.lineLength,-1,Nl),_d=Ft.icon.placedSymbolArray.length-1,_0&&(Au=_0.length*4,Ft.addSymbols(Ft.icon,_0,_v,As,Bs,Os,U0.vertical,Bt,eu.lineStartIndex,eu.lineLength,-1,Nl),_h=Ft.icon.placedSymbolArray.length-1)}for(var w0 in ir.horizontal){var H1=ir.horizontal[w0];if(!au){Tp=yr(H1.text);var By=tn.layout.get("text-rotate").evaluate(Os,{},Nl);au=new e2(Tn,Bt,Mn,Pn,Qn,H1,ao,$a,Eo,By)}var ux=H1.positionedLines.length===1;if(_f+=HE(Ft,Bt,H1,Mr,tn,Eo,Os,Ho,eu,ir.vertical?U0.horizontal:U0.horizontalOnly,ux?Object.keys(ir.horizontal):[w0],Qu,_d,Vs,Nl),ux)break}ir.vertical&&(gp+=HE(Ft,Bt,ir.vertical,Mr,tn,Eo,Os,Ho,eu,U0.vertical,["vertical"],Qu,_h,Vs,Nl));var cx=au?au.boxStartIndex:Ft.collisionBoxArray.length,fx=au?au.boxEndIndex:Ft.collisionBoxArray.length,n2=su?su.boxStartIndex:Ft.collisionBoxArray.length,Nm=su?su.boxEndIndex:Ft.collisionBoxArray.length,jE=Cu?Cu.boxStartIndex:Ft.collisionBoxArray.length,g_=Cu?Cu.boxEndIndex:Ft.collisionBoxArray.length,YE=uu?uu.boxStartIndex:Ft.collisionBoxArray.length,m_=uu?uu.boxEndIndex:Ft.collisionBoxArray.length,gm=-1,a2=function(H2,nS){return H2&&H2.circleDiameter?Math.max(H2.circleDiameter,nS):nS};gm=a2(au,gm),gm=a2(su,gm),gm=a2(Cu,gm),gm=a2(uu,gm);var XE=gm>-1?1:0;XE&&(gm*=Dl/dv),Ft.glyphOffsetArray.length>=fp.MAX_GLYPHS&&$t("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),Os.sortKey!==void 0&&Ft.addToSortKeyRanges(Ft.symbolInstances.length,Os.sortKey),Ft.symbolInstances.emplaceBack(Bt.x,Bt.y,Qu.right>=0?Qu.right:-1,Qu.center>=0?Qu.center:-1,Qu.left>=0?Qu.left:-1,Qu.vertical||-1,_d,_h,Tp,cx,fx,n2,Nm,jE,g_,YE,m_,Mn,_f,gp,Iu,Au,XE,0,ao,Rp,Xp,gm)}function B2(Ft,Bt,Wt,ir){var mr=Ft.compareText;if(!(Bt in mr))mr[Bt]=[];else for(var Mr=mr[Bt],Fr=Mr.length-1;Fr>=0;Fr--)if(ir.dist(Mr[Fr])0)&&(Fr.value.kind!=="constant"||Fr.value.value.length>0),Pn=Tn.value.kind!=="constant"||!!Tn.value.value||Object.keys(Tn.parameters).length>0,Qn=Mr.get("symbol-sort-key");if(this.features=[],!(!Mn&&!Pn)){for(var ao=Wt.iconDependencies,$a=Wt.glyphDependencies,Eo=Wt.availableImages,Ho=new ru(this.zoom),ds=0,ss=Bt;ds=0;for(var gp=0,_d=ou.sections;gp<_d.length;gp+=1){var _h=_d[gp];if(_h.image)ao[_h.image.name]=!0;else{var Qu=to(ou.toString()),Tp=_h.fontStack||Au,Rp=$a[Tp]=$a[Tp]||{};this.calculateGlyphDependencies(_h.text,Rp,_f,this.allowVerticalPlacement,Qu)}}}}}}Mr.get("symbol-placement")==="line"&&(this.features=bE(this.features)),this.sortFeaturesByKey&&this.features.sort(function(Xp,rv){return Xp.sortKey-rv.sortKey})}},fp.prototype.update=function(Bt,Wt,ir){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(Bt,Wt,this.layers,ir),this.icon.programConfigurations.updatePaintArrays(Bt,Wt,this.layers,ir))},fp.prototype.isEmpty=function(){return this.symbolInstances.length===0&&!this.hasRTLText},fp.prototype.uploadPending=function(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload},fp.prototype.upload=function(Bt){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(Bt),this.iconCollisionBox.upload(Bt)),this.text.upload(Bt,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(Bt,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0},fp.prototype.destroyDebugData=function(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()},fp.prototype.destroy=function(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()},fp.prototype.addToLineVertexArray=function(Bt,Wt){var ir=this.lineVertexArray.length;if(Bt.segment!==void 0){for(var mr=Bt.dist(Wt[Bt.segment+1]),Mr=Bt.dist(Wt[Bt.segment]),Fr={},tn=Bt.segment+1;tn=0;Tn--)Fr[Tn]={x:Wt[Tn].x,y:Wt[Tn].y,tileUnitDistanceFromAnchor:Mr},Tn>0&&(Mr+=Wt[Tn-1].dist(Wt[Tn]));for(var Mn=0;Mn0},fp.prototype.hasIconData=function(){return this.icon.segments.get().length>0},fp.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},fp.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},fp.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},fp.prototype.addIndicesForPlacedSymbol=function(Bt,Wt){for(var ir=Bt.placedSymbolArray.get(Wt),mr=ir.vertexStartIndex+ir.numGlyphs*4,Mr=ir.vertexStartIndex;Mr1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(Bt),this.sortedAngle=Bt,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var ir=0,mr=this.symbolInstanceIndexes;ir=0&&Mn.indexOf(tn)===Tn&&Wt.addIndicesForPlacedSymbol(Wt.text,tn)}),Fr.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,Fr.verticalPlacedTextSymbolIndex),Fr.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,Fr.placedIconSymbolIndex),Fr.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,Fr.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},Hr("SymbolBucket",fp,{omit:["layers","collisionBoxArray","features","compareText"]}),fp.MAX_GLYPHS=65535,fp.addDynamicAttributes=z2;function a_(Ft,Bt){return Bt.replace(/{([^{}]+)}/g,function(Wt,ir){return ir in Ft?String(Ft[ir]):""})}var i_=new Ku({"symbol-placement":new Ol(To.layout_symbol["symbol-placement"]),"symbol-spacing":new Ol(To.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Ol(To.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new cu(To.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Ol(To.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Ol(To.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Ol(To.layout_symbol["icon-ignore-placement"]),"icon-optional":new Ol(To.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Ol(To.layout_symbol["icon-rotation-alignment"]),"icon-size":new cu(To.layout_symbol["icon-size"]),"icon-text-fit":new Ol(To.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Ol(To.layout_symbol["icon-text-fit-padding"]),"icon-image":new cu(To.layout_symbol["icon-image"]),"icon-rotate":new cu(To.layout_symbol["icon-rotate"]),"icon-padding":new Ol(To.layout_symbol["icon-padding"]),"icon-keep-upright":new Ol(To.layout_symbol["icon-keep-upright"]),"icon-offset":new cu(To.layout_symbol["icon-offset"]),"icon-anchor":new cu(To.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Ol(To.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Ol(To.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Ol(To.layout_symbol["text-rotation-alignment"]),"text-field":new cu(To.layout_symbol["text-field"]),"text-font":new cu(To.layout_symbol["text-font"]),"text-size":new cu(To.layout_symbol["text-size"]),"text-max-width":new cu(To.layout_symbol["text-max-width"]),"text-line-height":new Ol(To.layout_symbol["text-line-height"]),"text-letter-spacing":new cu(To.layout_symbol["text-letter-spacing"]),"text-justify":new cu(To.layout_symbol["text-justify"]),"text-radial-offset":new cu(To.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Ol(To.layout_symbol["text-variable-anchor"]),"text-anchor":new cu(To.layout_symbol["text-anchor"]),"text-max-angle":new Ol(To.layout_symbol["text-max-angle"]),"text-writing-mode":new Ol(To.layout_symbol["text-writing-mode"]),"text-rotate":new cu(To.layout_symbol["text-rotate"]),"text-padding":new Ol(To.layout_symbol["text-padding"]),"text-keep-upright":new Ol(To.layout_symbol["text-keep-upright"]),"text-transform":new cu(To.layout_symbol["text-transform"]),"text-offset":new cu(To.layout_symbol["text-offset"]),"text-allow-overlap":new Ol(To.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Ol(To.layout_symbol["text-ignore-placement"]),"text-optional":new Ol(To.layout_symbol["text-optional"])}),o_=new Ku({"icon-opacity":new cu(To.paint_symbol["icon-opacity"]),"icon-color":new cu(To.paint_symbol["icon-color"]),"icon-halo-color":new cu(To.paint_symbol["icon-halo-color"]),"icon-halo-width":new cu(To.paint_symbol["icon-halo-width"]),"icon-halo-blur":new cu(To.paint_symbol["icon-halo-blur"]),"icon-translate":new Ol(To.paint_symbol["icon-translate"]),"icon-translate-anchor":new Ol(To.paint_symbol["icon-translate-anchor"]),"text-opacity":new cu(To.paint_symbol["text-opacity"]),"text-color":new cu(To.paint_symbol["text-color"],{runtimeType:Cs,getOverride:function(Ft){return Ft.textColor},hasOverride:function(Ft){return!!Ft.textColor}}),"text-halo-color":new cu(To.paint_symbol["text-halo-color"]),"text-halo-width":new cu(To.paint_symbol["text-halo-width"]),"text-halo-blur":new cu(To.paint_symbol["text-halo-blur"]),"text-translate":new Ol(To.paint_symbol["text-translate"]),"text-translate-anchor":new Ol(To.paint_symbol["text-translate-anchor"])}),U2={paint:o_,layout:i_},sx=function(Bt){this.type=Bt.property.overrides?Bt.property.overrides.runtimeType:Wo,this.defaultValue=Bt};sx.prototype.evaluate=function(Bt){if(Bt.formattedSection){var Wt=this.defaultValue.property.overrides;if(Wt&&Wt.hasOverride(Bt.formattedSection))return Wt.getOverride(Bt.formattedSection)}return Bt.feature&&Bt.featureState?this.defaultValue.evaluate(Bt.feature,Bt.featureState):this.defaultValue.property.specification.default},sx.prototype.eachChild=function(Bt){if(!this.defaultValue.isConstant()){var Wt=this.defaultValue.value;Bt(Wt._styleExpression.expression)}},sx.prototype.outputDefined=function(){return!1},sx.prototype.serialize=function(){return null},Hr("FormatSectionOverride",sx,{omit:["defaultValue"]});var s_=function(Ft){function Bt(Wt){Ft.call(this,Wt,U2)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype.recalculate=function(ir,mr){if(Ft.prototype.recalculate.call(this,ir,mr),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var Mr=this.layout.get("text-writing-mode");if(Mr){for(var Fr=[],tn=0,Tn=Mr;tn",targetMapId:mr,sourceMapId:Fr.mapId})}}},Sl.prototype.receive=function(Bt){var Wt=Bt.data,ir=Wt.id;if(ir&&!(Wt.targetMapId&&this.mapId!==Wt.targetMapId))if(Wt.type===""){delete this.tasks[ir];var mr=this.cancelCallbacks[ir];delete this.cancelCallbacks[ir],mr&&mr()}else Xt()||Wt.mustQueue?(this.tasks[ir]=Wt,this.taskQueue.push(ir),this.invoker.trigger()):this.processTask(ir,Wt)},Sl.prototype.process=function(){if(this.taskQueue.length){var Bt=this.taskQueue.shift(),Wt=this.tasks[Bt];delete this.tasks[Bt],this.taskQueue.length&&this.invoker.trigger(),Wt&&this.processTask(Bt,Wt)}},Sl.prototype.processTask=function(Bt,Wt){var ir=this;if(Wt.type===""){var mr=this.callbacks[Bt];delete this.callbacks[Bt],mr&&(Wt.error?mr(Rn(Wt.error)):mr(null,Rn(Wt.data)))}else{var Mr=!1,Fr=lr(this.globalScope)?void 0:[],tn=Wt.hasCallback?function(ao,$a){Mr=!0,delete ir.cancelCallbacks[Bt],ir.target.postMessage({id:Bt,type:"",sourceMapId:ir.mapId,error:ao?Dn(ao):null,data:Dn($a,Fr)},Fr)}:function(ao){Mr=!0},Tn=null,Mn=Rn(Wt.data);if(this.parent[Wt.type])Tn=this.parent[Wt.type](Wt.sourceMapId,Mn,tn);else if(this.parent.getWorkerSource){var Pn=Wt.type.split("."),Qn=this.parent.getWorkerSource(Wt.sourceMapId,Pn[0],Mn.source);Tn=Qn[Pn[1]](Mn,tn)}else tn(new Error("Could not find function "+Wt.type));!Mr&&Tn&&Tn.cancel&&(this.cancelCallbacks[Bt]=Tn.cancel)}},Sl.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};function $l(Ft,Bt,Wt){Bt=Math.pow(2,Wt)-Bt-1;var ir=hu(Ft*256,Bt*256,Wt),mr=hu((Ft+1)*256,(Bt+1)*256,Wt);return ir[0]+","+ir[1]+","+mr[0]+","+mr[1]}function hu(Ft,Bt,Wt){var ir=2*Math.PI*6378137/256/Math.pow(2,Wt),mr=Ft*ir-2*Math.PI*6378137/2,Mr=Bt*ir-2*Math.PI*6378137/2;return[mr,Mr]}var lu=function(Bt,Wt){Bt&&(Wt?this.setSouthWest(Bt).setNorthEast(Wt):Bt.length===4?this.setSouthWest([Bt[0],Bt[1]]).setNorthEast([Bt[2],Bt[3]]):this.setSouthWest(Bt[0]).setNorthEast(Bt[1]))};lu.prototype.setNorthEast=function(Bt){return this._ne=Bt instanceof mu?new mu(Bt.lng,Bt.lat):mu.convert(Bt),this},lu.prototype.setSouthWest=function(Bt){return this._sw=Bt instanceof mu?new mu(Bt.lng,Bt.lat):mu.convert(Bt),this},lu.prototype.extend=function(Bt){var Wt=this._sw,ir=this._ne,mr,Mr;if(Bt instanceof mu)mr=Bt,Mr=Bt;else if(Bt instanceof lu){if(mr=Bt._sw,Mr=Bt._ne,!mr||!Mr)return this}else{if(Array.isArray(Bt))if(Bt.length===4||Bt.every(Array.isArray)){var Fr=Bt;return this.extend(lu.convert(Fr))}else{var tn=Bt;return this.extend(mu.convert(tn))}return this}return!Wt&&!ir?(this._sw=new mu(mr.lng,mr.lat),this._ne=new mu(Mr.lng,Mr.lat)):(Wt.lng=Math.min(mr.lng,Wt.lng),Wt.lat=Math.min(mr.lat,Wt.lat),ir.lng=Math.max(Mr.lng,ir.lng),ir.lat=Math.max(Mr.lat,ir.lat)),this},lu.prototype.getCenter=function(){return new mu((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},lu.prototype.getSouthWest=function(){return this._sw},lu.prototype.getNorthEast=function(){return this._ne},lu.prototype.getNorthWest=function(){return new mu(this.getWest(),this.getNorth())},lu.prototype.getSouthEast=function(){return new mu(this.getEast(),this.getSouth())},lu.prototype.getWest=function(){return this._sw.lng},lu.prototype.getSouth=function(){return this._sw.lat},lu.prototype.getEast=function(){return this._ne.lng},lu.prototype.getNorth=function(){return this._ne.lat},lu.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},lu.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},lu.prototype.isEmpty=function(){return!(this._sw&&this._ne)},lu.prototype.contains=function(Bt){var Wt=mu.convert(Bt),ir=Wt.lng,mr=Wt.lat,Mr=this._sw.lat<=mr&&mr<=this._ne.lat,Fr=this._sw.lng<=ir&&ir<=this._ne.lng;return this._sw.lng>this._ne.lng&&(Fr=this._sw.lng>=ir&&ir>=this._ne.lng),Mr&&Fr},lu.convert=function(Bt){return!Bt||Bt instanceof lu?Bt:new lu(Bt)};var Ru=63710088e-1,mu=function(Bt,Wt){if(isNaN(Bt)||isNaN(Wt))throw new Error("Invalid LngLat object: ("+Bt+", "+Wt+")");if(this.lng=+Bt,this.lat=+Wt,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};mu.prototype.wrap=function(){return new mu(bt(this.lng,-180,180),this.lat)},mu.prototype.toArray=function(){return[this.lng,this.lat]},mu.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},mu.prototype.distanceTo=function(Bt){var Wt=Math.PI/180,ir=this.lat*Wt,mr=Bt.lat*Wt,Mr=Math.sin(ir)*Math.sin(mr)+Math.cos(ir)*Math.cos(mr)*Math.cos((Bt.lng-this.lng)*Wt),Fr=Ru*Math.acos(Math.min(Mr,1));return Fr},mu.prototype.toBounds=function(Bt){Bt===void 0&&(Bt=0);var Wt=40075017,ir=360*Bt/Wt,mr=ir/Math.cos(Math.PI/180*this.lat);return new lu(new mu(this.lng-mr,this.lat-ir),new mu(this.lng+mr,this.lat+ir))},mu.convert=function(Bt){if(Bt instanceof mu)return Bt;if(Array.isArray(Bt)&&(Bt.length===2||Bt.length===3))return new mu(Number(Bt[0]),Number(Bt[1]));if(!Array.isArray(Bt)&&typeof Bt=="object"&&Bt!==null)return new mu(Number("lng"in Bt?Bt.lng:Bt.lon),Number(Bt.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var Mu=2*Math.PI*Ru;function rp(Ft){return Mu*Math.cos(Ft*Math.PI/180)}function ip(Ft){return(180+Ft)/360}function $0(Ft){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+Ft*Math.PI/360)))/360}function c0(Ft,Bt){return Ft/rp(Bt)}function u1(Ft){return Ft*360-180}function tv(Ft){var Bt=180-Ft*360;return 360/Math.PI*Math.atan(Math.exp(Bt*Math.PI/180))-90}function vm(Ft,Bt){return Ft*rp(tv(Bt))}function ay(Ft){return 1/Math.cos(Ft*Math.PI/180)}var Sy=function(Bt,Wt,ir){ir===void 0&&(ir=0),this.x=+Bt,this.y=+Wt,this.z=+ir};Sy.fromLngLat=function(Bt,Wt){Wt===void 0&&(Wt=0);var ir=mu.convert(Bt);return new Sy(ip(ir.lng),$0(ir.lat),c0(Wt,ir.lat))},Sy.prototype.toLngLat=function(){return new mu(u1(this.x),tv(this.y))},Sy.prototype.toAltitude=function(){return vm(this.z,this.y)},Sy.prototype.meterInMercatorCoordinateUnits=function(){return 1/Mu*ay(tv(this.y))};var Lx=function(Bt,Wt,ir){this.z=Bt,this.x=Wt,this.y=ir,this.key=$2(0,Bt,Bt,Wt,ir)};Lx.prototype.equals=function(Bt){return this.z===Bt.z&&this.x===Bt.x&&this.y===Bt.y},Lx.prototype.url=function(Bt,Wt){var ir=$l(this.x,this.y,this.z),mr=zS(this.z,this.x,this.y);return Bt[(this.x+this.y)%Bt.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String(Wt==="tms"?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",mr).replace("{bbox-epsg-3857}",ir)},Lx.prototype.getTilePoint=function(Bt){var Wt=Math.pow(2,this.z);return new j((Bt.x*Wt-this.x)*iu,(Bt.y*Wt-this.y)*iu)},Lx.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var q_=function(Bt,Wt){this.wrap=Bt,this.canonical=Wt,this.key=$2(Bt,Wt.z,Wt.z,Wt.x,Wt.y)},hv=function(Bt,Wt,ir,mr,Mr){this.overscaledZ=Bt,this.wrap=Wt,this.canonical=new Lx(ir,+mr,+Mr),this.key=$2(Wt,Bt,ir,mr,Mr)};hv.prototype.equals=function(Bt){return this.overscaledZ===Bt.overscaledZ&&this.wrap===Bt.wrap&&this.canonical.equals(Bt.canonical)},hv.prototype.scaledTo=function(Bt){var Wt=this.canonical.z-Bt;return Bt>this.canonical.z?new hv(Bt,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new hv(Bt,this.wrap,Bt,this.canonical.x>>Wt,this.canonical.y>>Wt)},hv.prototype.calculateScaledKey=function(Bt,Wt){var ir=this.canonical.z-Bt;return Bt>this.canonical.z?$2(this.wrap*+Wt,Bt,this.canonical.z,this.canonical.x,this.canonical.y):$2(this.wrap*+Wt,Bt,Bt,this.canonical.x>>ir,this.canonical.y>>ir)},hv.prototype.isChildOf=function(Bt){if(Bt.wrap!==this.wrap)return!1;var Wt=this.canonical.z-Bt.canonical.z;return Bt.overscaledZ===0||Bt.overscaledZ>Wt&&Bt.canonical.y===this.canonical.y>>Wt},hv.prototype.children=function(Bt){if(this.overscaledZ>=Bt)return[new hv(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var Wt=this.canonical.z+1,ir=this.canonical.x*2,mr=this.canonical.y*2;return[new hv(Wt,this.wrap,Wt,ir,mr),new hv(Wt,this.wrap,Wt,ir+1,mr),new hv(Wt,this.wrap,Wt,ir,mr+1),new hv(Wt,this.wrap,Wt,ir+1,mr+1)]},hv.prototype.isLessThan=function(Bt){return this.wrapBt.wrap?!1:this.overscaledZBt.overscaledZ?!1:this.canonical.xBt.canonical.x?!1:this.canonical.y0;Mr--)mr=1<=this.dim+1||Wt<-1||Wt>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(Wt+1)*this.stride+(Bt+1)},Oy.prototype._unpackMapbox=function(Bt,Wt,ir){return(Bt*256*256+Wt*256+ir)/10-1e4},Oy.prototype._unpackTerrarium=function(Bt,Wt,ir){return Bt*256+Wt+ir/256-32768},Oy.prototype.getPixels=function(){return new l0({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Oy.prototype.backfillBorder=function(Bt,Wt,ir){if(this.dim!==Bt.dim)throw new Error("dem dimension mismatch");var mr=Wt*this.dim,Mr=Wt*this.dim+this.dim,Fr=ir*this.dim,tn=ir*this.dim+this.dim;switch(Wt){case-1:mr=Mr-1;break;case 1:Mr=mr+1;break}switch(ir){case-1:Fr=tn-1;break;case 1:tn=Fr+1;break}for(var Tn=-Wt*this.dim,Mn=-ir*this.dim,Pn=Fr;Pn=0&&Qn[3]>=0&&Tn.insert(tn,Qn[0],Qn[1],Qn[2],Qn[3])}},Fy.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new Zy.VectorTile(new hp(this.rawTileData)).layers,this.sourceLayerCoder=new VE(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},Fy.prototype.query=function(Bt,Wt,ir,mr){var Mr=this;this.loadVTLayers();for(var Fr=Bt.params||{},tn=iu/Bt.tileSize/Bt.scale,Tn=xv(Fr.filter),Mn=Bt.queryGeometry,Pn=Bt.queryPadding*tn,Qn=tS(Mn),ao=this.grid.query(Qn.minX-Pn,Qn.minY-Pn,Qn.maxX+Pn,Qn.maxY+Pn),$a=tS(Bt.cameraQueryGeometry),Eo=this.grid3D.query($a.minX-Pn,$a.minY-Pn,$a.maxX+Pn,$a.maxY+Pn,function(El,Nl,Dl,ou){return B1(Bt.cameraQueryGeometry,El-Pn,Nl-Pn,Dl+Pn,ou+Pn)}),Ho=0,ds=Eo;Homr)Mr=!1;else if(!Wt)Mr=!0;else if(this.expirationTime=go.maxzoom)&&go.visibility!=="none"){tt(ho,this.zoom,In);var _o=fo[go.id]=go.createBucket({index:ga.bucketLayerIDs.length,layers:ho,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:$n,sourceID:this.source});_o.populate(Bn,qn,this.tileID.canonical),ga.bucketLayerIDs.push(ho.map(function(bo){return bo.id}))}}}}var co,zo,Io,Lo,vs=et.mapObject(qn.glyphDependencies,function(bo){return Object.keys(bo).map(Number)});Object.keys(vs).length?Ln.send("getGlyphs",{uid:this.uid,stacks:vs},function(bo,No){co||(co=bo,zo=No,Ds.call(Wn))}):zo={};var Zo=Object.keys(qn.iconDependencies);Zo.length?Ln.send("getImages",{icons:Zo,source:this.source,tileID:this.tileID,type:"icons"},function(bo,No){co||(co=bo,Io=No,Ds.call(Wn))}):Io={};var Ls=Object.keys(qn.patternDependencies);Ls.length?Ln.send("getImages",{icons:Ls,source:this.source,tileID:this.tileID,type:"patterns"},function(bo,No){co||(co=bo,Lo=No,Ds.call(Wn))}):Lo={},Ds.call(this);function Ds(){if(co)return Xn(co);if(zo&&Io&&Lo){var bo=new _(zo),No=new et.ImageAtlas(Io,Lo);for(var Yo in fo){var Oo=fo[Yo];Oo instanceof et.SymbolBucket?(tt(Oo.layers,this.zoom,In),et.performSymbolLayout(Oo,zo,bo.positions,Io,No.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Oo.hasPattern&&(Oo instanceof et.LineBucket||Oo instanceof et.FillBucket||Oo instanceof et.FillExtrusionBucket)&&(tt(Oo.layers,this.zoom,In),Oo.addFeatures(qn,this.tileID.canonical,No.patternPositions))}this.status="done",Xn(null,{buckets:et.values(fo).filter(function(ys){return!ys.isEmpty()}),featureIndex:ga,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:bo.image,imageAtlas:No,glyphMap:this.returnDependencies?zo:null,iconMap:this.returnDependencies?Io:null,glyphPositions:this.returnDependencies?bo.positions:null})}}};function tt(An,hn,wn){for(var In=new et.EvaluationParameters(hn),Ln=0,Xn=An;Ln=0!=!!hn&&An.reverse()}var yt=et.vectorTile.VectorTileFeature.prototype.toGeoJSON,St=function(hn){this._feature=hn,this.extent=et.EXTENT,this.type=hn.type,this.properties=hn.tags,"id"in hn&&!isNaN(hn.id)&&(this.id=parseInt(hn.id,10))};St.prototype.loadGeometry=function(){if(this._feature.type===1){for(var hn=[],wn=0,In=this._feature.geometry;wn"u"&&(In.push(Vn),ga=In.length-1,Xn[Vn]=ga),hn.writeVarint(ga);var fo=wn.properties[Vn],qn=typeof fo;qn!=="string"&&qn!=="boolean"&&qn!=="number"&&(fo=JSON.stringify(fo));var po=qn+":"+fo,Yr=Wn[po];typeof Yr>"u"&&(Ln.push(fo),Yr=Ln.length-1,Wn[po]=Yr),hn.writeVarint(Yr)}}function Ht(An,hn){return(hn<<3)+(An&7)}function Vt(An){return An<<1^An>>31}function Xt(An,hn){for(var wn=An.loadGeometry(),In=An.type,Ln=0,Xn=0,Wn=wn.length,Vn=0;Vn>1;lr(An,hn,Wn,In,Ln,Xn%2),er(An,hn,wn,In,Wn-1,Xn+1),er(An,hn,wn,Wn+1,Ln,Xn+1)}}function lr(An,hn,wn,In,Ln,Xn){for(;Ln>In;){if(Ln-In>600){var Wn=Ln-In+1,Vn=wn-In+1,ga=Math.log(Wn),fo=.5*Math.exp(2*ga/3),qn=.5*Math.sqrt(ga*fo*(Wn-fo)/Wn)*(Vn-Wn/2<0?-1:1),po=Math.max(In,Math.floor(wn-Vn*fo/Wn+qn)),Yr=Math.min(Ln,Math.floor(wn+(Wn-Vn)*fo/Wn+qn));lr(An,hn,wn,po,Yr,Xn)}var Wr=hn[2*wn+Xn],$n=In,Bn=Ln;for(Jt(An,hn,In,wn),hn[2*Ln+Xn]>Wr&&Jt(An,hn,In,Ln);$nWr;)Bn--}hn[2*In+Xn]===Wr?Jt(An,hn,In,Bn):(Bn++,Jt(An,hn,Bn,Ln)),Bn<=wn&&(In=Bn+1),wn<=Bn&&(Ln=Bn-1)}}function Jt(An,hn,wn,In){Yt(An,wn,In),Yt(hn,2*wn,2*In),Yt(hn,2*wn+1,2*In+1)}function Yt(An,hn,wn){var In=An[hn];An[hn]=An[wn],An[wn]=In}function rr(An,hn,wn,In,Ln,Xn,Wn){for(var Vn=[0,An.length-1,0],ga=[],fo,qn;Vn.length;){var po=Vn.pop(),Yr=Vn.pop(),Wr=Vn.pop();if(Yr-Wr<=Wn){for(var $n=Wr;$n<=Yr;$n++)fo=hn[2*$n],qn=hn[2*$n+1],fo>=wn&&fo<=Ln&&qn>=In&&qn<=Xn&&ga.push(An[$n]);continue}var Bn=Math.floor((Wr+Yr)/2);fo=hn[2*Bn],qn=hn[2*Bn+1],fo>=wn&&fo<=Ln&&qn>=In&&qn<=Xn&&ga.push(An[Bn]);var xa=(po+1)%2;(po===0?wn<=fo:In<=qn)&&(Vn.push(Wr),Vn.push(Bn-1),Vn.push(xa)),(po===0?Ln>=fo:Xn>=qn)&&(Vn.push(Bn+1),Vn.push(Yr),Vn.push(xa))}return ga}function jt(An,hn,wn,In,Ln,Xn){for(var Wn=[0,An.length-1,0],Vn=[],ga=Ln*Ln;Wn.length;){var fo=Wn.pop(),qn=Wn.pop(),po=Wn.pop();if(qn-po<=Xn){for(var Yr=po;Yr<=qn;Yr++)ar(hn[2*Yr],hn[2*Yr+1],wn,In)<=ga&&Vn.push(An[Yr]);continue}var Wr=Math.floor((po+qn)/2),$n=hn[2*Wr],Bn=hn[2*Wr+1];ar($n,Bn,wn,In)<=ga&&Vn.push(An[Wr]);var xa=(fo+1)%2;(fo===0?wn-Ln<=$n:In-Ln<=Bn)&&(Wn.push(po),Wn.push(Wr-1),Wn.push(xa)),(fo===0?wn+Ln>=$n:In+Ln>=Bn)&&(Wn.push(Wr+1),Wn.push(qn),Wn.push(xa))}return Vn}function ar(An,hn,wn,In){var Ln=An-wn,Xn=hn-In;return Ln*Ln+Xn*Xn}var sr=function(An){return An[0]},Zt=function(An){return An[1]},Kt=function(hn,wn,In,Ln,Xn){wn===void 0&&(wn=sr),In===void 0&&(In=Zt),Ln===void 0&&(Ln=64),Xn===void 0&&(Xn=Float64Array),this.nodeSize=Ln,this.points=hn;for(var Wn=hn.length<65536?Uint16Array:Uint32Array,Vn=this.ids=new Wn(hn.length),ga=this.coords=new Xn(hn.length*2),fo=0;fo=Ln;qn--){var po=+Date.now();ga=this._cluster(ga,qn),this.trees[qn]=new Kt(ga,zr,Br,Wn,Float32Array),In&&console.log("z%d: %d clusters in %dms",qn,ga.length,+Date.now()-po)}return In&&console.timeEnd("total time"),this},tr.prototype.getClusters=function(hn,wn){var In=((hn[0]+180)%360+360)%360-180,Ln=Math.max(-90,Math.min(90,hn[1])),Xn=hn[2]===180?180:((hn[2]+180)%360+360)%360-180,Wn=Math.max(-90,Math.min(90,hn[3]));if(hn[2]-hn[0]>=360)In=-180,Xn=180;else if(In>Xn){var Vn=this.getClusters([In,Ln,180,Wn],wn),ga=this.getClusters([-180,Ln,Xn,Wn],wn);return Vn.concat(ga)}for(var fo=this.trees[this._limitZoom(wn)],qn=fo.range(Ir(In),Ar(Wn),Ir(Xn),Ar(Ln)),po=[],Yr=0,Wr=qn;Yrwn&&(Bn+=eo.numPoints||1)}if(Bn>=ga){for(var Gn=po.x*$n,ho=po.y*$n,go=Vn&&$n>1?this._map(po,!0):null,_o=(qn<<5)+(wn+1)+this.points.length,co=0,zo=Wr;co1)for(var Zo=0,Ls=Wr;Zo>5},tr.prototype._getOriginZoom=function(hn){return(hn-this.points.length)%32},tr.prototype._map=function(hn,wn){if(hn.numPoints)return wn?Rr({},hn.properties):hn.properties;var In=this.points[hn.index].properties,Ln=this.options.map(In);return wn&&Ln===In?Rr({},Ln):Ln};function cr(An,hn,wn,In,Ln){return{x:An,y:hn,zoom:1/0,id:wn,parentId:-1,numPoints:In,properties:Ln}}function hr(An,hn){var wn=An.geometry.coordinates,In=wn[0],Ln=wn[1];return{x:Ir(In),y:Ar(Ln),zoom:1/0,index:hn,parentId:-1}}function br(An){return{type:"Feature",id:An.id,properties:Tr(An),geometry:{type:"Point",coordinates:[_r(An.x),Er(An.y)]}}}function Tr(An){var hn=An.numPoints,wn=hn>=1e4?Math.round(hn/1e3)+"k":hn>=1e3?Math.round(hn/100)/10+"k":hn;return Rr(Rr({},An.properties),{cluster:!0,cluster_id:An.id,point_count:hn,point_count_abbreviated:wn})}function Ir(An){return An/360+.5}function Ar(An){var hn=Math.sin(An*Math.PI/180),wn=.5-.25*Math.log((1+hn)/(1-hn))/Math.PI;return wn<0?0:wn>1?1:wn}function _r(An){return(An-.5)*360}function Er(An){var hn=(180-An*360)*Math.PI/180;return 360*Math.atan(Math.exp(hn))/Math.PI-90}function Rr(An,hn){for(var wn in hn)An[wn]=hn[wn];return An}function zr(An){return An.x}function Br(An){return An.y}function kr(An,hn,wn,In){for(var Ln=In,Xn=wn-hn>>1,Wn=wn-hn,Vn,ga=An[hn],fo=An[hn+1],qn=An[wn],po=An[wn+1],Yr=hn+3;YrLn)Vn=Yr,Ln=Wr;else if(Wr===Ln){var $n=Math.abs(Yr-Xn);$nIn&&(Vn-hn>3&&kr(An,hn,Vn,In),An[Vn+2]=Ln,wn-Vn>3&&kr(An,Vn,wn,In))}function Nr(An,hn,wn,In,Ln,Xn){var Wn=Ln-wn,Vn=Xn-In;if(Wn!==0||Vn!==0){var ga=((An-wn)*Wn+(hn-In)*Vn)/(Wn*Wn+Vn*Vn);ga>1?(wn=Ln,In=Xn):ga>0&&(wn+=Wn*ga,In+=Vn*ga)}return Wn=An-wn,Vn=hn-In,Wn*Wn+Vn*Vn}function Qr(An,hn,wn,In){var Ln={id:typeof An>"u"?null:An,type:hn,geometry:wn,tags:In,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return sn(Ln),Ln}function sn(An){var hn=An.geometry,wn=An.type;if(wn==="Point"||wn==="MultiPoint"||wn==="LineString")un(An,hn);else if(wn==="Polygon"||wn==="MultiLineString")for(var In=0;In0&&(In?Wn+=(Ln*fo-ga*Xn)/2:Wn+=Math.sqrt(Math.pow(ga-Ln,2)+Math.pow(fo-Xn,2))),Ln=ga,Xn=fo}var qn=hn.length-3;hn[2]=1,kr(hn,0,qn,wn),hn[qn+2]=1,hn.size=Math.abs(Wn),hn.start=0,hn.end=hn.size}function pn(An,hn,wn,In){for(var Ln=0;Ln1?1:wn}function Or(An,hn,wn,In,Ln,Xn,Wn,Vn){if(wn/=hn,In/=hn,Xn>=wn&&Wn=In)return null;for(var ga=[],fo=0;fo=wn&&$n=In)continue;var Bn=[];if(Yr==="Point"||Yr==="MultiPoint")Ur(po,Bn,wn,In,Ln);else if(Yr==="LineString")jr(po,Bn,wn,In,Ln,!1,Vn.lineMetrics);else if(Yr==="MultiLineString")wr(po,Bn,wn,In,Ln,!1);else if(Yr==="Polygon")wr(po,Bn,wn,In,Ln,!0);else if(Yr==="MultiPolygon")for(var xa=0;xa=wn&&Wn<=In&&(hn.push(An[Xn]),hn.push(An[Xn+1]),hn.push(An[Xn+2]))}}function jr(An,hn,wn,In,Ln,Xn,Wn){for(var Vn=Gr(An),ga=Ln===0?Dr:Sr,fo=An.start,qn,po,Yr=0;Yrwn&&(po=ga(Vn,Wr,$n,xa,ro,wn),Wn&&(Vn.start=fo+qn*po)):io>In?eo=wn&&(po=ga(Vn,Wr,$n,xa,ro,wn),Gn=!0),eo>In&&io<=In&&(po=ga(Vn,Wr,$n,xa,ro,In),Gn=!0),!Xn&&Gn&&(Wn&&(Vn.end=fo+qn*po),hn.push(Vn),Vn=Gr(An)),Wn&&(fo+=qn)}var ho=An.length-3;Wr=An[ho],$n=An[ho+1],Bn=An[ho+2],io=Ln===0?Wr:$n,io>=wn&&io<=In&&vr(Vn,Wr,$n,Bn),ho=Vn.length-3,Xn&&ho>=3&&(Vn[ho]!==Vn[0]||Vn[ho+1]!==Vn[1])&&vr(Vn,Vn[0],Vn[1],Vn[2]),Vn.length&&hn.push(Vn)}function Gr(An){var hn=[];return hn.size=An.size,hn.start=An.start,hn.end=An.end,hn}function wr(An,hn,wn,In,Ln,Xn){for(var Wn=0;WnWn.maxX&&(Wn.maxX=qn),po>Wn.maxY&&(Wn.maxY=po)}return Wn}function Cn(An,hn,wn,In){var Ln=hn.geometry,Xn=hn.type,Wn=[];if(Xn==="Point"||Xn==="MultiPoint")for(var Vn=0;Vn0&&hn.size<(Ln?Wn:In)){wn.numPoints+=hn.length/3;return}for(var Vn=[],ga=0;gaWn)&&(wn.numSimplified++,Vn.push(hn[ga]),Vn.push(hn[ga+1])),wn.numPoints++;Ln&&fn(Vn,Xn),An.push(Vn)}function fn(An,hn){for(var wn=0,In=0,Ln=An.length,Xn=Ln-2;In0===hn)for(In=0,Ln=An.length;In24)throw new Error("maxZoom should be in the 0-24 range");if(hn.promoteId&&hn.generateId)throw new Error("promoteId and generateId cannot be used together.");var In=qr(An,hn);this.tiles={},this.tileCoords=[],wn&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",hn.indexMaxZoom,hn.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),In=ur(In,hn),In.length&&this.splitTile(In,0,0,0),wn&&(In.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}Un.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Un.prototype.splitTile=function(An,hn,wn,In,Ln,Xn,Wn){for(var Vn=[An,hn,wn,In],ga=this.options,fo=ga.debug;Vn.length;){In=Vn.pop(),wn=Vn.pop(),hn=Vn.pop(),An=Vn.pop();var qn=1<1&&console.time("creation"),Yr=this.tiles[po]=rn(An,hn,wn,In,ga),this.tileCoords.push({z:hn,x:wn,y:In}),fo)){fo>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",hn,wn,In,Yr.numFeatures,Yr.numPoints,Yr.numSimplified),console.timeEnd("creation"));var Wr="z"+hn;this.stats[Wr]=(this.stats[Wr]||0)+1,this.total++}if(Yr.source=An,Ln){if(hn===ga.maxZoom||hn===Ln)continue;var $n=1<1&&console.time("clipping");var Bn=.5*ga.buffer/ga.extent,xa=.5-Bn,ro=.5+Bn,io=1+Bn,eo,Gn,ho,go,_o,co;eo=Gn=ho=go=null,_o=Or(An,qn,wn-Bn,wn+ro,0,Yr.minX,Yr.maxX,ga),co=Or(An,qn,wn+xa,wn+io,0,Yr.minX,Yr.maxX,ga),An=null,_o&&(eo=Or(_o,qn,In-Bn,In+ro,1,Yr.minY,Yr.maxY,ga),Gn=Or(_o,qn,In+xa,In+io,1,Yr.minY,Yr.maxY,ga),_o=null),co&&(ho=Or(co,qn,In-Bn,In+ro,1,Yr.minY,Yr.maxY,ga),go=Or(co,qn,In+xa,In+io,1,Yr.minY,Yr.maxY,ga),co=null),fo>1&&console.timeEnd("clipping"),Vn.push(eo||[],hn+1,wn*2,In*2),Vn.push(Gn||[],hn+1,wn*2,In*2+1),Vn.push(ho||[],hn+1,wn*2+1,In*2),Vn.push(go||[],hn+1,wn*2+1,In*2+1)}}},Un.prototype.getTile=function(An,hn,wn){var In=this.options,Ln=In.extent,Xn=In.debug;if(An<0||An>24)return null;var Wn=1<1&&console.log("drilling down to z%d-%d-%d",An,hn,wn);for(var ga=An,fo=hn,qn=wn,po;!po&&ga>0;)ga--,fo=Math.floor(fo/2),qn=Math.floor(qn/2),po=this.tiles[_i(ga,fo,qn)];return!po||!po.source?null:(Xn>1&&console.log("found parent tile z%d-%d-%d",ga,fo,qn),Xn>1&&console.time("drilling down"),this.splitTile(po.source,ga,fo,qn,An,hn,wn),Xn>1&&console.timeEnd("drilling down"),this.tiles[Vn]?Vr(this.tiles[Vn],Ln):null)};function _i(An,hn,wn){return((1<=0?0:pr.button},mt.remove=function(pr){pr.parentNode&&pr.parentNode.removeChild(pr)};function nt(pr,Qt,gr){var nr,yr,$r,Kr=et.browser.devicePixelRatio>1?"@2x":"",gn=et.getJSON(Qt.transformRequest(Qt.normalizeSpriteURL(pr,Kr,".json"),et.ResourceType.SpriteJSON),function(na,uo){gn=null,$r||($r=na,nr=uo,jn())}),kn=et.getImage(Qt.transformRequest(Qt.normalizeSpriteURL(pr,Kr,".png"),et.ResourceType.SpriteImage),function(na,uo){kn=null,$r||($r=na,yr=uo,jn())});function jn(){if($r)gr($r);else if(nr&&yr){var na=et.browser.getImageData(yr),uo={};for(var lo in nr){var Po=nr[lo],Jo=Po.width,Ko=Po.height,jo=Po.x,es=Po.y,ps=Po.sdf,Fs=Po.pixelRatio,Hs=Po.stretchX,yl=Po.stretchY,Tl=Po.content,qs=new et.RGBAImage({width:Jo,height:Ko});et.RGBAImage.copy(na,qs,{x:jo,y:es},{x:0,y:0},{width:Jo,height:Ko}),uo[lo]={data:qs,pixelRatio:Fs,sdf:ps,stretchX:Hs,stretchY:yl,content:Tl}}gr(null,uo)}}return{cancel:function(){gn&&(gn.cancel(),gn=null),kn&&(kn.cancel(),kn=null)}}}function vt(pr){var Qt=pr.userImage;if(Qt&&Qt.render){var gr=Qt.render();if(gr)return pr.data.replace(new Uint8Array(Qt.data.buffer)),!0}return!1}var dt=1,bt=function(pr){function Qt(){pr.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new et.RGBAImage({width:1,height:1}),this.dirty=!0}return pr&&(Qt.__proto__=pr),Qt.prototype=Object.create(pr&&pr.prototype),Qt.prototype.constructor=Qt,Qt.prototype.isLoaded=function(){return this.loaded},Qt.prototype.setLoaded=function(nr){if(this.loaded!==nr&&(this.loaded=nr,nr)){for(var yr=0,$r=this.requestors;yr<$r.length;yr+=1){var Kr=$r[yr],gn=Kr.ids,kn=Kr.callback;this._notify(gn,kn)}this.requestors=[]}},Qt.prototype.getImage=function(nr){return this.images[nr]},Qt.prototype.addImage=function(nr,yr){this._validate(nr,yr)&&(this.images[nr]=yr)},Qt.prototype._validate=function(nr,yr){var $r=!0;return this._validateStretch(yr.stretchX,yr.data&&yr.data.width)||(this.fire(new et.ErrorEvent(new Error('Image "'+nr+'" has invalid "stretchX" value'))),$r=!1),this._validateStretch(yr.stretchY,yr.data&&yr.data.height)||(this.fire(new et.ErrorEvent(new Error('Image "'+nr+'" has invalid "stretchY" value'))),$r=!1),this._validateContent(yr.content,yr)||(this.fire(new et.ErrorEvent(new Error('Image "'+nr+'" has invalid "content" value'))),$r=!1),$r},Qt.prototype._validateStretch=function(nr,yr){if(!nr)return!0;for(var $r=0,Kr=0,gn=nr;Kr=0?1.2:1))}_t.prototype.draw=function(pr){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(pr,this.buffer,this.middle);for(var Qt=this.ctx.getImageData(0,0,this.size,this.size),gr=new Uint8ClampedArray(this.size*this.size),nr=0;nr65535){na(new Error("glyphs > 65535 not supported"));return}if(Po.ranges[Ko]){na(null,{stack:uo,id:lo,glyph:Jo});return}var jo=Po.requests[Ko];jo||(jo=Po.requests[Ko]=[],kt.loadGlyphRange(uo,Ko,nr.url,nr.requestManager,function(es,ps){if(ps){for(var Fs in ps)nr._doesCharSupportLocalGlyph(+Fs)||(Po.glyphs[+Fs]=ps[+Fs]);Po.ranges[Ko]=!0}for(var Hs=0,yl=jo;Hs1&&(jn=Qt[++kn]);var uo=Math.abs(na-jn.left),lo=Math.abs(na-jn.right),Po=Math.min(uo,lo),Jo=void 0,Ko=$r/nr*(yr+1);if(jn.isDash){var jo=yr-Math.abs(Ko);Jo=Math.sqrt(Po*Po+jo*jo)}else Jo=yr-Math.sqrt(Po*Po+Ko*Ko);this.data[gn+na]=Math.max(0,Math.min(255,Jo+128))}},Ot.prototype.addRegularDash=function(Qt){for(var gr=Qt.length-1;gr>=0;--gr){var nr=Qt[gr],yr=Qt[gr+1];nr.zeroLength?Qt.splice(gr,1):yr&&yr.isDash===nr.isDash&&(yr.left=nr.left,Qt.splice(gr,1))}var $r=Qt[0],Kr=Qt[Qt.length-1];$r.isDash===Kr.isDash&&($r.left=Kr.left-this.width,Kr.right=$r.right+this.width);for(var gn=this.width*this.nextRow,kn=0,jn=Qt[kn],na=0;na1&&(jn=Qt[++kn]);var uo=Math.abs(na-jn.left),lo=Math.abs(na-jn.right),Po=Math.min(uo,lo),Jo=jn.isDash?Po:-Po;this.data[gn+na]=Math.max(0,Math.min(255,Jo+128))}},Ot.prototype.addDash=function(Qt,gr){var nr=gr?7:0,yr=2*nr+1;if(this.nextRow+yr>this.height)return et.warnOnce("LineAtlas out of space"),null;for(var $r=0,Kr=0;Kr=nr.minX&&Qt.x=nr.minY&&Qt.y0&&(na[new et.OverscaledTileID(nr.overscaledZ,gn,yr.z,Kr,yr.y-1).key]={backfilled:!1},na[new et.OverscaledTileID(nr.overscaledZ,nr.wrap,yr.z,yr.x,yr.y-1).key]={backfilled:!1},na[new et.OverscaledTileID(nr.overscaledZ,jn,yr.z,kn,yr.y-1).key]={backfilled:!1}),yr.y+1<$r&&(na[new et.OverscaledTileID(nr.overscaledZ,gn,yr.z,Kr,yr.y+1).key]={backfilled:!1},na[new et.OverscaledTileID(nr.overscaledZ,nr.wrap,yr.z,yr.x,yr.y+1).key]={backfilled:!1},na[new et.OverscaledTileID(nr.overscaledZ,jn,yr.z,kn,yr.y+1).key]={backfilled:!1}),na},Qt.prototype.unloadTile=function(nr){nr.demTexture&&this.map.painter.saveTileTexture(nr.demTexture),nr.fbo&&(nr.fbo.destroy(),delete nr.fbo),nr.dem&&delete nr.dem,delete nr.neighboringTiles,nr.state="unloaded",nr.actor&&nr.actor.send("removeDEMTile",{uid:nr.uid,source:this.id})},Qt}($t),Ht=function(pr){function Qt(gr,nr,yr,$r){pr.call(this),this.id=gr,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._loaded=!1,this.actor=yr.getActor(),this.setEventedParent($r),this._data=nr.data,this._options=et.extend({},nr),this._collectResourceTiming=nr.collectResourceTiming,this._resourceTiming=[],nr.maxzoom!==void 0&&(this.maxzoom=nr.maxzoom),nr.type&&(this.type=nr.type),nr.attribution&&(this.attribution=nr.attribution),this.promoteId=nr.promoteId;var Kr=et.EXTENT/this.tileSize;this.workerOptions=et.extend({source:this.id,cluster:nr.cluster||!1,geojsonVtOptions:{buffer:(nr.buffer!==void 0?nr.buffer:128)*Kr,tolerance:(nr.tolerance!==void 0?nr.tolerance:.375)*Kr,extent:et.EXTENT,maxZoom:this.maxzoom,lineMetrics:nr.lineMetrics||!1,generateId:nr.generateId||!1},superclusterOptions:{maxZoom:nr.clusterMaxZoom!==void 0?Math.min(nr.clusterMaxZoom,this.maxzoom-1):this.maxzoom-1,minPoints:Math.max(2,nr.clusterMinPoints||2),extent:et.EXTENT,radius:(nr.clusterRadius||50)*Kr,log:!1,generateId:nr.generateId||!1},clusterProperties:nr.clusterProperties,filter:nr.filter},nr.workerOptions)}return pr&&(Qt.__proto__=pr),Qt.prototype=Object.create(pr&&pr.prototype),Qt.prototype.constructor=Qt,Qt.prototype.load=function(){var nr=this;this.fire(new et.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(yr){if(yr){nr.fire(new et.ErrorEvent(yr));return}var $r={dataType:"source",sourceDataType:"metadata"};nr._collectResourceTiming&&nr._resourceTiming&&nr._resourceTiming.length>0&&($r.resourceTiming=nr._resourceTiming,nr._resourceTiming=[]),nr.fire(new et.Event("data",$r))})},Qt.prototype.onAdd=function(nr){this.map=nr,this.load()},Qt.prototype.setData=function(nr){var yr=this;return this._data=nr,this.fire(new et.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function($r){if($r){yr.fire(new et.ErrorEvent($r));return}var Kr={dataType:"source",sourceDataType:"content"};yr._collectResourceTiming&&yr._resourceTiming&&yr._resourceTiming.length>0&&(Kr.resourceTiming=yr._resourceTiming,yr._resourceTiming=[]),yr.fire(new et.Event("data",Kr))}),this},Qt.prototype.getClusterExpansionZoom=function(nr,yr){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:nr,source:this.id},yr),this},Qt.prototype.getClusterChildren=function(nr,yr){return this.actor.send("geojson.getClusterChildren",{clusterId:nr,source:this.id},yr),this},Qt.prototype.getClusterLeaves=function(nr,yr,$r,Kr){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:nr,limit:yr,offset:$r},Kr),this},Qt.prototype._updateWorkerData=function(nr){var yr=this;this._loaded=!1;var $r=et.extend({},this.workerOptions),Kr=this._data;typeof Kr=="string"?($r.request=this.map._requestManager.transformRequest(et.browser.resolveURL(Kr),et.ResourceType.Source),$r.request.collectResourceTiming=this._collectResourceTiming):$r.data=JSON.stringify(Kr),this.actor.send(this.type+".loadData",$r,function(gn,kn){yr._removed||kn&&kn.abandoned||(yr._loaded=!0,kn&&kn.resourceTiming&&kn.resourceTiming[yr.id]&&(yr._resourceTiming=kn.resourceTiming[yr.id].slice(0)),yr.actor.send(yr.type+".coalesce",{source:$r.source},null),nr(gn))})},Qt.prototype.loaded=function(){return this._loaded},Qt.prototype.loadTile=function(nr,yr){var $r=this,Kr=nr.actor?"reloadTile":"loadTile";nr.actor=this.actor;var gn={type:this.type,uid:nr.uid,tileID:nr.tileID,zoom:nr.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:et.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};nr.request=this.actor.send(Kr,gn,function(kn,jn){return delete nr.request,nr.unloadVectorData(),nr.aborted?yr(null):kn?yr(kn):(nr.loadVectorData(jn,$r.map.painter,Kr==="reloadTile"),yr(null))})},Qt.prototype.abortTile=function(nr){nr.request&&(nr.request.cancel(),delete nr.request),nr.aborted=!0},Qt.prototype.unloadTile=function(nr){nr.unloadVectorData(),this.actor.send("removeTile",{uid:nr.uid,type:this.type,source:this.id})},Qt.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},Qt.prototype.serialize=function(){return et.extend({},this._options,{type:this.type,data:this._data})},Qt.prototype.hasTransition=function(){return!1},Qt}(et.Evented),Vt=et.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),Xt=function(pr){function Qt(gr,nr,yr,$r){pr.call(this),this.id=gr,this.dispatcher=yr,this.coordinates=nr.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent($r),this.options=nr}return pr&&(Qt.__proto__=pr),Qt.prototype=Object.create(pr&&pr.prototype),Qt.prototype.constructor=Qt,Qt.prototype.load=function(nr,yr){var $r=this;this._loaded=!1,this.fire(new et.Event("dataloading",{dataType:"source"})),this.url=this.options.url,et.getImage(this.map._requestManager.transformRequest(this.url,et.ResourceType.Image),function(Kr,gn){$r._loaded=!0,Kr?$r.fire(new et.ErrorEvent(Kr)):gn&&($r.image=gn,nr&&($r.coordinates=nr),yr&&yr(),$r._finishLoading())})},Qt.prototype.loaded=function(){return this._loaded},Qt.prototype.updateImage=function(nr){var yr=this;return!this.image||!nr.url?this:(this.options.url=nr.url,this.load(nr.coordinates,function(){yr.texture=null}),this)},Qt.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new et.Event("data",{dataType:"source",sourceDataType:"metadata"})))},Qt.prototype.onAdd=function(nr){this.map=nr,this.load()},Qt.prototype.setCoordinates=function(nr){var yr=this;this.coordinates=nr;var $r=nr.map(et.MercatorCoordinate.fromLngLat);this.tileID=qt($r),this.minzoom=this.maxzoom=this.tileID.z;var Kr=$r.map(function(gn){return yr.tileID.getTilePoint(gn)._round()});return this._boundsArray=new et.StructArrayLayout4i8,this._boundsArray.emplaceBack(Kr[0].x,Kr[0].y,0,0),this._boundsArray.emplaceBack(Kr[1].x,Kr[1].y,et.EXTENT,0),this._boundsArray.emplaceBack(Kr[3].x,Kr[3].y,0,et.EXTENT),this._boundsArray.emplaceBack(Kr[2].x,Kr[2].y,et.EXTENT,et.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new et.Event("data",{dataType:"source",sourceDataType:"content"})),this},Qt.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||!this.image)){var nr=this.map.painter.context,yr=nr.gl;this.boundsBuffer||(this.boundsBuffer=nr.createVertexBuffer(this._boundsArray,Vt.members)),this.boundsSegments||(this.boundsSegments=et.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new et.Texture(nr,this.image,yr.RGBA),this.texture.bind(yr.LINEAR,yr.CLAMP_TO_EDGE));for(var $r in this.tiles){var Kr=this.tiles[$r];Kr.state!=="loaded"&&(Kr.state="loaded",Kr.texture=this.texture)}}},Qt.prototype.loadTile=function(nr,yr){this.tileID&&this.tileID.equals(nr.tileID.canonical)?(this.tiles[String(nr.tileID.wrap)]=nr,nr.buckets={},yr(null)):(nr.state="errored",yr(null))},Qt.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},Qt.prototype.hasTransition=function(){return!1},Qt}(et.Evented);function qt(pr){for(var Qt=1/0,gr=1/0,nr=-1/0,yr=-1/0,$r=0,Kr=pr;$ryr.end(0)?this.fire(new et.ErrorEvent(new et.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+yr.start(0)+" and "+yr.end(0)+"-second mark."))):this.video.currentTime=nr}},Qt.prototype.getVideo=function(){return this.video},Qt.prototype.onAdd=function(nr){this.map||(this.map=nr,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},Qt.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var nr=this.map.painter.context,yr=nr.gl;this.boundsBuffer||(this.boundsBuffer=nr.createVertexBuffer(this._boundsArray,Vt.members)),this.boundsSegments||(this.boundsSegments=et.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(yr.LINEAR,yr.CLAMP_TO_EDGE),yr.texSubImage2D(yr.TEXTURE_2D,0,0,0,yr.RGBA,yr.UNSIGNED_BYTE,this.video)):(this.texture=new et.Texture(nr,this.video,yr.RGBA),this.texture.bind(yr.LINEAR,yr.CLAMP_TO_EDGE));for(var $r in this.tiles){var Kr=this.tiles[$r];Kr.state!=="loaded"&&(Kr.state="loaded",Kr.texture=this.texture)}}},Qt.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},Qt.prototype.hasTransition=function(){return this.video&&!this.video.paused},Qt}(Xt),lr=function(pr){function Qt(gr,nr,yr,$r){pr.call(this,gr,nr,yr,$r),nr.coordinates?(!Array.isArray(nr.coordinates)||nr.coordinates.length!==4||nr.coordinates.some(function(Kr){return!Array.isArray(Kr)||Kr.length!==2||Kr.some(function(gn){return typeof gn!="number"})}))&&this.fire(new et.ErrorEvent(new et.ValidationError("sources."+gr,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new et.ErrorEvent(new et.ValidationError("sources."+gr,null,'missing required property "coordinates"'))),nr.animate&&typeof nr.animate!="boolean"&&this.fire(new et.ErrorEvent(new et.ValidationError("sources."+gr,null,'optional "animate" property must be a boolean value'))),nr.canvas?typeof nr.canvas!="string"&&!(nr.canvas instanceof et.window.HTMLCanvasElement)&&this.fire(new et.ErrorEvent(new et.ValidationError("sources."+gr,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new et.ErrorEvent(new et.ValidationError("sources."+gr,null,'missing required property "canvas"'))),this.options=nr,this.animate=nr.animate!==void 0?nr.animate:!0}return pr&&(Qt.__proto__=pr),Qt.prototype=Object.create(pr&&pr.prototype),Qt.prototype.constructor=Qt,Qt.prototype.load=function(){if(this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof et.window.HTMLCanvasElement?this.options.canvas:et.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()){this.fire(new et.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero.")));return}this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading()},Qt.prototype.getCanvas=function(){return this.canvas},Qt.prototype.onAdd=function(nr){this.map=nr,this.load(),this.canvas&&this.animate&&this.play()},Qt.prototype.onRemove=function(){this.pause()},Qt.prototype.prepare=function(){var nr=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,nr=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,nr=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var yr=this.map.painter.context,$r=yr.gl;this.boundsBuffer||(this.boundsBuffer=yr.createVertexBuffer(this._boundsArray,Vt.members)),this.boundsSegments||(this.boundsSegments=et.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(nr||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new et.Texture(yr,this.canvas,$r.RGBA,{premultiply:!0});for(var Kr in this.tiles){var gn=this.tiles[Kr];gn.state!=="loaded"&&(gn.state="loaded",gn.texture=this.texture)}}},Qt.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},Qt.prototype.hasTransition=function(){return this._playing},Qt.prototype._hasInvalidDimensions=function(){for(var nr=0,yr=[this.canvas.width,this.canvas.height];nrthis.max){var gn=this._getAndRemoveByKey(this.order[0]);gn&&this.onRemove(gn)}return this},hr.prototype.has=function(Qt){return Qt.wrapped().key in this.data},hr.prototype.getAndRemove=function(Qt){return this.has(Qt)?this._getAndRemoveByKey(Qt.wrapped().key):null},hr.prototype._getAndRemoveByKey=function(Qt){var gr=this.data[Qt].shift();return gr.timeout&&clearTimeout(gr.timeout),this.data[Qt].length===0&&delete this.data[Qt],this.order.splice(this.order.indexOf(Qt),1),gr.value},hr.prototype.getByKey=function(Qt){var gr=this.data[Qt];return gr?gr[0].value:null},hr.prototype.get=function(Qt){if(!this.has(Qt))return null;var gr=this.data[Qt.wrapped().key][0];return gr.value},hr.prototype.remove=function(Qt,gr){if(!this.has(Qt))return this;var nr=Qt.wrapped().key,yr=gr===void 0?0:this.data[nr].indexOf(gr),$r=this.data[nr][yr];return this.data[nr].splice(yr,1),$r.timeout&&clearTimeout($r.timeout),this.data[nr].length===0&&delete this.data[nr],this.onRemove($r.value),this.order.splice(this.order.indexOf(nr),1),this},hr.prototype.setMaxSize=function(Qt){for(this.max=Qt;this.order.length>this.max;){var gr=this._getAndRemoveByKey(this.order[0]);gr&&this.onRemove(gr)}return this},hr.prototype.filter=function(Qt){var gr=[];for(var nr in this.data)for(var yr=0,$r=this.data[nr];yr<$r.length;yr+=1){var Kr=$r[yr];Qt(Kr.value)||gr.push(Kr)}for(var gn=0,kn=gr;gn1||(Math.abs(uo)>1&&(Math.abs(uo+Po)===1?uo+=Po:Math.abs(uo-Po)===1&&(uo-=Po)),!(!na.dem||!jn.dem)&&(jn.dem.backfillBorder(na.dem,uo,lo),jn.neighboringTiles&&jn.neighboringTiles[Jo]&&(jn.neighboringTiles[Jo].backfilled=!0)))}},Qt.prototype.getTile=function(nr){return this.getTileByID(nr.key)},Qt.prototype.getTileByID=function(nr){return this._tiles[nr]},Qt.prototype._retainLoadedChildren=function(nr,yr,$r,Kr){for(var gn in this._tiles){var kn=this._tiles[gn];if(!(Kr[gn]||!kn.hasData()||kn.tileID.overscaledZ<=yr||kn.tileID.overscaledZ>$r)){for(var jn=kn.tileID;kn&&kn.tileID.overscaledZ>yr+1;){var na=kn.tileID.scaledTo(kn.tileID.overscaledZ-1);kn=this._tiles[na.key],kn&&kn.hasData()&&(jn=na)}for(var uo=jn;uo.overscaledZ>yr;)if(uo=uo.scaledTo(uo.overscaledZ-1),nr[uo.key]){Kr[jn.key]=jn;break}}}},Qt.prototype.findLoadedParent=function(nr,yr){if(nr.key in this._loadedParentTiles){var $r=this._loadedParentTiles[nr.key];return $r&&$r.tileID.overscaledZ>=yr?$r:null}for(var Kr=nr.overscaledZ-1;Kr>=yr;Kr--){var gn=nr.scaledTo(Kr),kn=this._getLoadedTile(gn);if(kn)return kn}},Qt.prototype._getLoadedTile=function(nr){var yr=this._tiles[nr.key];if(yr&&yr.hasData())return yr;var $r=this._cache.getByKey(nr.wrapped().key);return $r},Qt.prototype.updateCacheSize=function(nr){var yr=Math.ceil(nr.width/this._source.tileSize)+1,$r=Math.ceil(nr.height/this._source.tileSize)+1,Kr=yr*$r,gn=5,kn=Math.floor(Kr*gn),jn=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,kn):kn;this._cache.setMaxSize(jn)},Qt.prototype.handleWrapJump=function(nr){var yr=this._prevLng===void 0?nr:this._prevLng,$r=nr-yr,Kr=$r/360,gn=Math.round(Kr);if(this._prevLng=nr,gn){var kn={};for(var jn in this._tiles){var na=this._tiles[jn];na.tileID=na.tileID.unwrapTo(na.tileID.wrap+gn),kn[na.tileID.key]=na}this._tiles=kn;for(var uo in this._timers)clearTimeout(this._timers[uo]),delete this._timers[uo];for(var lo in this._tiles){var Po=this._tiles[lo];this._setTileReloadTimer(lo,Po)}}},Qt.prototype.update=function(nr){var yr=this;if(this.transform=nr,!(!this._sourceLoaded||this._paused)){this.updateCacheSize(nr),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={};var $r;this.used?this._source.tileID?$r=nr.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(Ul){return new et.OverscaledTileID(Ul.canonical.z,Ul.wrap,Ul.canonical.z,Ul.canonical.x,Ul.canonical.y)}):($r=nr.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&($r=$r.filter(function(Ul){return yr._source.hasTile(Ul)}))):$r=[];var Kr=nr.coveringZoomLevel(this._source),gn=Math.max(Kr-Qt.maxOverzooming,this._source.minzoom),kn=Math.max(Kr+Qt.maxUnderzooming,this._source.minzoom),jn=this._updateRetainedTiles($r,Kr);if(ga(this._source.type)){for(var na={},uo={},lo=Object.keys(jn),Po=0,Jo=lo;Pothis._source.maxzoom){var ps=jo.children(this._source.maxzoom)[0],Fs=this.getTile(ps);if(Fs&&Fs.hasData()){$r[ps.key]=ps;continue}}else{var Hs=jo.children(this._source.maxzoom);if($r[Hs[0].key]&&$r[Hs[1].key]&&$r[Hs[2].key]&&$r[Hs[3].key])continue}for(var yl=es.wasRequested(),Tl=jo.overscaledZ-1;Tl>=gn;--Tl){var qs=jo.scaledTo(Tl);if(Kr[qs.key]||(Kr[qs.key]=!0,es=this.getTile(qs),!es&&yl&&(es=this._addTile(qs)),es&&($r[qs.key]=qs,yl=es.wasRequested(),es.hasData())))break}}}return $r},Qt.prototype._updateLoadedParentTileCache=function(){this._loadedParentTiles={};for(var nr in this._tiles){for(var yr=[],$r=void 0,Kr=this._tiles[nr].tileID;Kr.overscaledZ>0;){if(Kr.key in this._loadedParentTiles){$r=this._loadedParentTiles[Kr.key];break}yr.push(Kr.key);var gn=Kr.scaledTo(Kr.overscaledZ-1);if($r=this._getLoadedTile(gn),$r)break;Kr=gn}for(var kn=0,jn=yr;kn0)&&(yr.hasData()&&yr.state!=="reloading"?this._cache.add(yr.tileID,yr,yr.getExpiryTimeout()):(yr.aborted=!0,this._abortTile(yr),this._unloadTile(yr))))},Qt.prototype.clearTiles=function(){this._shouldReloadOnResume=!1,this._paused=!1;for(var nr in this._tiles)this._removeTile(nr);this._cache.reset()},Qt.prototype.tilesIn=function(nr,yr,$r){var Kr=this,gn=[],kn=this.transform;if(!kn)return gn;for(var jn=$r?kn.getCameraQueryGeometry(nr):nr,na=nr.map(function(Tl){return kn.pointCoordinate(Tl)}),uo=jn.map(function(Tl){return kn.pointCoordinate(Tl)}),lo=this.getIds(),Po=1/0,Jo=1/0,Ko=-1/0,jo=-1/0,es=0,ps=uo;es=0&&tu[1].y+Ul>=0){var Kl=na.map(function($u){return _l.getTilePoint($u)}),bu=uo.map(function($u){return _l.getTilePoint($u)});gn.push({tile:qs,tileID:_l,queryGeometry:Kl,cameraQueryGeometry:bu,scale:Pl})}}},yl=0;yl=et.browser.now())return!0}return!1},Qt.prototype.setFeatureState=function(nr,yr,$r){nr=nr||"_geojsonTileLayer",this._state.updateState(nr,yr,$r)},Qt.prototype.removeFeatureState=function(nr,yr,$r){nr=nr||"_geojsonTileLayer",this._state.removeFeatureState(nr,yr,$r)},Qt.prototype.getFeatureState=function(nr,yr){return nr=nr||"_geojsonTileLayer",this._state.getState(nr,yr)},Qt.prototype.setDependencies=function(nr,yr,$r){var Kr=this._tiles[nr];Kr&&Kr.setDependencies(yr,$r)},Qt.prototype.reloadTilesForDependencies=function(nr,yr){for(var $r in this._tiles){var Kr=this._tiles[$r];Kr.hasDependency(nr,yr)&&this._reloadTile($r,"reloading")}this._cache.filter(function(gn){return!gn.hasDependency(nr,yr)})},Qt}(et.Evented);Wn.maxOverzooming=10,Wn.maxUnderzooming=3;function Vn(pr,Qt){var gr=Math.abs(pr.wrap*2)-+(pr.wrap<0),nr=Math.abs(Qt.wrap*2)-+(Qt.wrap<0);return pr.overscaledZ-Qt.overscaledZ||nr-gr||Qt.canonical.y-pr.canonical.y||Qt.canonical.x-pr.canonical.x}function ga(pr){return pr==="raster"||pr==="image"||pr==="video"}function fo(){return new et.window.Worker(zp.workerUrl)}var qn="mapboxgl_preloaded_worker_pool",po=function(){this.active={}};po.prototype.acquire=function(Qt){if(!this.workers)for(this.workers=[];this.workers.length0?(yr-Kr)/gn:0;return this.points[$r].mult(1-kn).add(this.points[gr].mult(kn))};var bo=function(Qt,gr,nr){var yr=this.boxCells=[],$r=this.circleCells=[];this.xCellCount=Math.ceil(Qt/nr),this.yCellCount=Math.ceil(gr/nr);for(var Kr=0;Krthis.width||yr<0||gr>this.height)return $r?!1:[];var gn=[];if(Qt<=0&&gr<=0&&this.width<=nr&&this.height<=yr){if($r)return!0;for(var kn=0;kn0:gn}},bo.prototype._queryCircle=function(Qt,gr,nr,yr,$r){var Kr=Qt-nr,gn=Qt+nr,kn=gr-nr,jn=gr+nr;if(gn<0||Kr>this.width||jn<0||kn>this.height)return yr?!1:[];var na=[],uo={hitTest:yr,circle:{x:Qt,y:gr,radius:nr},seenUids:{box:{},circle:{}}};return this._forEachCell(Kr,kn,gn,jn,this._queryCellCircle,na,uo,$r),yr?na.length>0:na},bo.prototype.query=function(Qt,gr,nr,yr,$r){return this._query(Qt,gr,nr,yr,!1,$r)},bo.prototype.hitTest=function(Qt,gr,nr,yr,$r){return this._query(Qt,gr,nr,yr,!0,$r)},bo.prototype.hitTestCircle=function(Qt,gr,nr,yr){return this._queryCircle(Qt,gr,nr,!0,yr)},bo.prototype._queryCell=function(Qt,gr,nr,yr,$r,Kr,gn,kn){var jn=gn.seenUids,na=this.boxCells[$r];if(na!==null)for(var uo=this.bboxes,lo=0,Po=na;lo=uo[Ko+0]&&yr>=uo[Ko+1]&&(!kn||kn(this.boxKeys[Jo]))){if(gn.hitTest)return Kr.push(!0),!0;Kr.push({key:this.boxKeys[Jo],x1:uo[Ko],y1:uo[Ko+1],x2:uo[Ko+2],y2:uo[Ko+3]})}}}var jo=this.circleCells[$r];if(jo!==null)for(var es=this.circles,ps=0,Fs=jo;psgn*gn+kn*kn},bo.prototype._circleAndRectCollide=function(Qt,gr,nr,yr,$r,Kr,gn){var kn=(Kr-yr)/2,jn=Math.abs(Qt-(yr+kn));if(jn>kn+nr)return!1;var na=(gn-$r)/2,uo=Math.abs(gr-($r+na));if(uo>na+nr)return!1;if(jn<=kn||uo<=na)return!0;var lo=jn-kn,Po=uo-na;return lo*lo+Po*Po<=nr*nr};function No(pr,Qt,gr,nr,yr){var $r=et.create();return Qt?(et.scale($r,$r,[1/yr,1/yr,1]),gr||et.rotateZ($r,$r,nr.angle)):et.multiply($r,nr.labelPlaneMatrix,pr),$r}function Yo(pr,Qt,gr,nr,yr){if(Qt){var $r=et.clone(pr);return et.scale($r,$r,[yr,yr,1]),gr||et.rotateZ($r,$r,-nr.angle),$r}else return nr.glCoordMatrix}function Oo(pr,Qt){var gr=[pr.x,pr.y,0,1];xo(gr,gr,Qt);var nr=gr[3];return{point:new et.Point(gr[0]/nr,gr[1]/nr),signedDistanceFromCamera:nr}}function ys(pr,Qt){return .5+.5*(pr/Qt)}function gs(pr,Qt){var gr=pr[0]/pr[3],nr=pr[1]/pr[3],yr=gr>=-Qt[0]&&gr<=Qt[0]&&nr>=-Qt[1]&&nr<=Qt[1];return yr}function zs(pr,Qt,gr,nr,yr,$r,Kr,gn){var kn=nr?pr.textSizeData:pr.iconSizeData,jn=et.evaluateSizeForZoom(kn,gr.transform.zoom),na=[256/gr.width*2+1,256/gr.height*2+1],uo=nr?pr.text.dynamicLayoutVertexArray:pr.icon.dynamicLayoutVertexArray;uo.clear();for(var lo=pr.lineVertexArray,Po=nr?pr.text.placedSymbolArray:pr.icon.placedSymbolArray,Jo=gr.transform.width/gr.transform.height,Ko=!1,jo=0;jo$r)return{useVertical:!0}}return(pr===et.WritingMode.vertical?Qt.ygr.x)?{needsFlipping:!0}:null}function Fl(pr,Qt,gr,nr,yr,$r,Kr,gn,kn,jn,na,uo,lo,Po){var Jo=Qt/24,Ko=pr.lineOffsetX*Jo,jo=pr.lineOffsetY*Jo,es;if(pr.numGlyphs>1){var ps=pr.glyphStartIndex+pr.numGlyphs,Fs=pr.lineStartIndex,Hs=pr.lineStartIndex+pr.lineLength,yl=Us(Jo,gn,Ko,jo,gr,na,uo,pr,kn,$r,lo);if(!yl)return{notEnoughRoom:!0};var Tl=Oo(yl.first.point,Kr).point,qs=Oo(yl.last.point,Kr).point;if(nr&&!gr){var _l=Qs(pr.writingMode,Tl,qs,Po);if(_l)return _l}es=[yl.first];for(var Pl=pr.glyphStartIndex+1;Pl0?bu.point:Jl(uo,Kl,Ul,1,yr),ku=Qs(pr.writingMode,Ul,$u,Po);if(ku)return ku}var iu=nu(Jo*gn.getoffsetX(pr.glyphStartIndex),Ko,jo,gr,na,uo,pr.segment,pr.lineStartIndex,pr.lineStartIndex+pr.lineLength,kn,$r,lo);if(!iu)return{notEnoughRoom:!0};es=[iu]}for(var Du=0,_u=es;Du<_u.length;Du+=1){var Zu=_u[Du];et.addDynamicAttributes(jn,Zu.point,Zu.angle)}return{}}function Jl(pr,Qt,gr,nr,yr){var $r=Oo(pr.add(pr.sub(Qt)._unit()),yr).point,Kr=gr.sub($r);return gr.add(Kr._mult(nr/Kr.mag()))}function nu(pr,Qt,gr,nr,yr,$r,Kr,gn,kn,jn,na,uo){var lo=nr?pr-Qt:pr+Qt,Po=lo>0?1:-1,Jo=0;nr&&(Po*=-1,Jo=Math.PI),Po<0&&(Jo+=Math.PI);for(var Ko=Po>0?gn+Kr:gn+Kr+1,jo=yr,es=yr,ps=0,Fs=0,Hs=Math.abs(lo),yl=[];ps+Fs<=Hs;){if(Ko+=Po,Ko=kn)return null;if(es=jo,yl.push(jo),jo=uo[Ko],jo===void 0){var Tl=new et.Point(jn.getx(Ko),jn.gety(Ko)),qs=Oo(Tl,na);if(qs.signedDistanceFromCamera>0)jo=uo[Ko]=qs.point;else{var _l=Ko-Po,Pl=ps===0?$r:new et.Point(jn.getx(_l),jn.gety(_l));jo=Jl(Pl,Tl,es,Hs-ps+1,na)}}ps+=Fs,Fs=es.dist(jo)}var Ul=(Hs-ps)/Fs,tu=jo.sub(es),Kl=tu.mult(Ul)._add(es);Kl._add(tu._unit()._perp()._mult(gr*Po));var bu=Jo+Math.atan2(jo.y-es.y,jo.x-es.x);return yl.push(Kl),{point:Kl,angle:bu,path:yl}}var Yl=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Zs(pr,Qt){for(var gr=0;gr=1;Zu--)_u.push(iu.path[Zu]);for(var Hu=1;Hu0){for(var wu=_u[0].clone(),Gu=_u[0].clone(),Cp=1;Cp<_u.length;Cp++)wu.x=Math.min(wu.x,_u[Cp].x),wu.y=Math.min(wu.y,_u[Cp].y),Gu.x=Math.max(Gu.x,_u[Cp].x),Gu.y=Math.max(Gu.y,_u[Cp].y);wu.x>=bu.x&&Gu.x<=$u.x&&wu.y>=bu.y&&Gu.y<=$u.y?ap=[_u]:Gu.x$u.x||Gu.y$u.y?ap=[]:ap=et.clipLine([_u],bu.x,bu.y,$u.x,$u.y)}for(var Jp=0,Qp=ap;Jp=this.screenRightBoundary||yrthis.screenBottomBoundary},Go.prototype.isInsideGrid=function(Qt,gr,nr,yr){return nr>=0&&Qt=0&&gr0){var Hs;return this.prevPlacement&&this.prevPlacement.variableOffsets[lo.crossTileID]&&this.prevPlacement.placements[lo.crossTileID]&&this.prevPlacement.placements[lo.crossTileID].text&&(Hs=this.prevPlacement.variableOffsets[lo.crossTileID].anchor),this.variableOffsets[lo.crossTileID]={textOffset:jo,width:nr,height:yr,anchor:Qt,textBoxScale:$r,prevAnchor:Hs},this.markUsedJustification(Po,Qt,lo,Jo),Po.allowVerticalPlacement&&(this.markUsedOrientation(Po,Jo,lo),this.placedOrientations[lo.crossTileID]=Jo),{shift:es,placedGlyphBoxes:ps}}},Fo.prototype.placeLayerBucketPart=function(Qt,gr,nr){var yr=this,$r=Qt.parameters,Kr=$r.bucket,gn=$r.layout,kn=$r.posMatrix,jn=$r.textLabelPlaneMatrix,na=$r.labelToScreenMatrix,uo=$r.textPixelRatio,lo=$r.holdingForFade,Po=$r.collisionBoxArray,Jo=$r.partiallyEvaluatedTextSize,Ko=$r.collisionGroup,jo=gn.get("text-optional"),es=gn.get("icon-optional"),ps=gn.get("text-allow-overlap"),Fs=gn.get("icon-allow-overlap"),Hs=gn.get("text-rotation-alignment")==="map",yl=gn.get("text-pitch-alignment")==="map",Tl=gn.get("icon-text-fit")!=="none",qs=gn.get("symbol-z-order")==="viewport-y",_l=ps&&(Fs||!Kr.hasIconData()||es),Pl=Fs&&(ps||!Kr.hasTextData()||jo);!Kr.collisionArrays&&Po&&Kr.deserializeCollisionBoxes(Po);var Ul=function(iu,Du){if(!gr[iu.crossTileID]){if(lo){yr.placements[iu.crossTileID]=new Is(!1,!1,!1);return}var _u=!1,Zu=!1,Hu=!0,dp=null,Pu={box:null,offscreen:null},ap={box:null,offscreen:null},wu=null,Gu=null,Cp=null,Jp=0,Qp=0,Av=0;Du.textFeatureIndex?Jp=Du.textFeatureIndex:iu.useRuntimeCollisionCircles&&(Jp=iu.featureIndex),Du.verticalTextFeatureIndex&&(Qp=Du.verticalTextFeatureIndex);var n1=Du.textBox;if(n1){var a1=function(Up){var o0=et.WritingMode.horizontal;if(Kr.allowVerticalPlacement&&!Up&&yr.prevPlacement){var s0=yr.prevPlacement.placedOrientations[iu.crossTileID];s0&&(yr.placedOrientations[iu.crossTileID]=s0,o0=s0,yr.markUsedOrientation(Kr,o0,iu))}return o0},ey=function(Up,o0){if(Kr.allowVerticalPlacement&&iu.numVerticalGlyphVertices>0&&Du.verticalTextBox)for(var s0=0,Kv=Kr.writingModes;s00&&(i0=i0.filter(function(Up){return Up!==Xv.anchor}),i0.unshift(Xv.anchor))}var i1=function(Up,o0,s0){for(var Kv=Up.x2-Up.x1,gx=Up.y2-Up.y1,c2=iu.textBoxScale,f2=Tl&&!Fs?o0:null,Ty={box:[],offscreen:!1},d2=ps?i0.length*2:i0.length,Yy=0;Yy=i0.length,Ly=yr.attemptAnchorPlacement(h2,Up,Kv,gx,c2,Hs,yl,uo,kn,Ko,p2,iu,Kr,s0,f2);if(Ly&&(Ty=Ly.placedGlyphBoxes,Ty&&Ty.box&&Ty.box.length)){_u=!0,dp=Ly.shift;break}}return Ty},fm=function(){return i1(n1,Du.iconBox,et.WritingMode.horizontal)},o1=function(){var Up=Du.verticalTextBox,o0=Pu&&Pu.box&&Pu.box.length;return Kr.allowVerticalPlacement&&!o0&&iu.numVerticalGlyphVertices>0&&Up?i1(Up,Du.verticalIconBox,et.WritingMode.vertical):{box:null,offscreen:null}};ey(fm,o1),Pu&&(_u=Pu.box,Hu=Pu.offscreen);var Vy=a1(Pu&&Pu.box);if(!_u&&yr.prevPlacement){var my=yr.prevPlacement.variableOffsets[iu.crossTileID];my&&(yr.variableOffsets[iu.crossTileID]=my,yr.markUsedJustification(Kr,my.anchor,iu,Vy))}}else{var F1=function(Up,o0){var s0=yr.collisionIndex.placeCollisionBox(Up,ps,uo,kn,Ko.predicate);return s0&&s0.box&&s0.box.length&&(yr.markUsedOrientation(Kr,o0,iu),yr.placedOrientations[iu.crossTileID]=o0),s0},Yv=function(){return F1(n1,et.WritingMode.horizontal)},B1=function(){var Up=Du.verticalTextBox;return Kr.allowVerticalPlacement&&iu.numVerticalGlyphVertices>0&&Up?F1(Up,et.WritingMode.vertical):{box:null,offscreen:null}};ey(Yv,B1),a1(Pu&&Pu.box&&Pu.box.length)}}if(wu=Pu,_u=wu&&wu.box&&wu.box.length>0,Hu=wu&&wu.offscreen,iu.useRuntimeCollisionCircles){var ov=Kr.text.placedSymbolArray.get(iu.centerJustifiedTextSymbolIndex),Iy=et.evaluateSizeForFeature(Kr.textSizeData,Jo,ov),yy=gn.get("text-padding"),zv=iu.collisionCircleDiameter;Gu=yr.collisionIndex.placeCollisionCircles(ps,ov,Kr.lineVertexArray,Kr.glyphOffsetArray,Iy,kn,jn,na,nr,yl,Ko.predicate,zv,yy),_u=ps||Gu.circles.length>0&&!Gu.collisionDetected,Hu=Hu&&Gu.offscreen}if(Du.iconFeatureIndex&&(Av=Du.iconFeatureIndex),Du.iconBox){var xy=function(Up){var o0=Tl&&dp?yo(Up,dp.x,dp.y,Hs,yl,yr.transform.angle):Up;return yr.collisionIndex.placeCollisionBox(o0,Fs,uo,kn,Ko.predicate)};ap&&ap.box&&ap.box.length&&Du.verticalIconBox?(Cp=xy(Du.verticalIconBox),Zu=Cp.box.length>0):(Cp=xy(Du.iconBox),Zu=Cp.box.length>0),Hu=Hu&&Cp.offscreen}var Wy=jo||iu.numHorizontalGlyphVertices===0&&iu.numVerticalGlyphVertices===0,ky=es||iu.numIconVertices===0;if(!Wy&&!ky?Zu=_u=Zu&&_u:ky?Wy||(Zu=Zu&&_u):_u=Zu&&_u,_u&&wu&&wu.box&&(ap&&ap.box&&Qp?yr.collisionIndex.insertCollisionBox(wu.box,gn.get("text-ignore-placement"),Kr.bucketInstanceId,Qp,Ko.ID):yr.collisionIndex.insertCollisionBox(wu.box,gn.get("text-ignore-placement"),Kr.bucketInstanceId,Jp,Ko.ID)),Zu&&Cp&&yr.collisionIndex.insertCollisionBox(Cp.box,gn.get("icon-ignore-placement"),Kr.bucketInstanceId,Av,Ko.ID),Gu&&(_u&&yr.collisionIndex.insertCollisionCircles(Gu.circles,gn.get("text-ignore-placement"),Kr.bucketInstanceId,Jp,Ko.ID),nr)){var jy=Kr.bucketInstanceId,by=yr.collisionCircleArrays[jy];by===void 0&&(by=yr.collisionCircleArrays[jy]=new Xs);for(var Ey=0;Ey=0;--Kl){var bu=tu[Kl];Ul(Kr.symbolInstances.get(bu),Kr.collisionArrays[bu])}else for(var $u=Qt.symbolInstanceStart;$u=0&&(Kr>=0&&na!==Kr?Qt.text.placedSymbolArray.get(na).crossTileID=0:Qt.text.placedSymbolArray.get(na).crossTileID=nr.crossTileID)}},Fo.prototype.markUsedOrientation=function(Qt,gr,nr){for(var yr=gr===et.WritingMode.horizontal||gr===et.WritingMode.horizontalOnly?gr:0,$r=gr===et.WritingMode.vertical?gr:0,Kr=[nr.leftJustifiedTextSymbolIndex,nr.centerJustifiedTextSymbolIndex,nr.rightJustifiedTextSymbolIndex],gn=0,kn=Kr;gn0||yl>0,Ul=Fs.numIconVertices>0,tu=yr.placedOrientations[Fs.crossTileID],Kl=tu===et.WritingMode.vertical,bu=tu===et.WritingMode.horizontal||tu===et.WritingMode.horizontalOnly;if(Pl){var $u=Wo(_l.text),ku=Kl?rs:$u;Jo(Qt.text,Hs,ku);var iu=bu?rs:$u;Jo(Qt.text,yl,iu);var Du=_l.text.isHidden();[Fs.rightJustifiedTextSymbolIndex,Fs.centerJustifiedTextSymbolIndex,Fs.leftJustifiedTextSymbolIndex].forEach(function(Av){Av>=0&&(Qt.text.placedSymbolArray.get(Av).hidden=Du||Kl?1:0)}),Fs.verticalPlacedTextSymbolIndex>=0&&(Qt.text.placedSymbolArray.get(Fs.verticalPlacedTextSymbolIndex).hidden=Du||bu?1:0);var _u=yr.variableOffsets[Fs.crossTileID];_u&&yr.markUsedJustification(Qt,_u.anchor,Fs,tu);var Zu=yr.placedOrientations[Fs.crossTileID];Zu&&(yr.markUsedJustification(Qt,"left",Fs,Zu),yr.markUsedOrientation(Qt,Zu,Fs))}if(Ul){var Hu=Wo(_l.icon),dp=!(lo&&Fs.verticalPlacedIconSymbolIndex&&Kl);if(Fs.placedIconSymbolIndex>=0){var Pu=dp?Hu:rs;Jo(Qt.icon,Fs.numIconVertices,Pu),Qt.icon.placedSymbolArray.get(Fs.placedIconSymbolIndex).hidden=_l.icon.isHidden()}if(Fs.verticalPlacedIconSymbolIndex>=0){var ap=dp?rs:Hu;Jo(Qt.icon,Fs.numVerticalIconVertices,ap),Qt.icon.placedSymbolArray.get(Fs.verticalPlacedIconSymbolIndex).hidden=_l.icon.isHidden()}}if(Qt.hasIconCollisionBoxData()||Qt.hasTextCollisionBoxData()){var wu=Qt.collisionArrays[ps];if(wu){var Gu=new et.Point(0,0);if(wu.textBox||wu.verticalTextBox){var Cp=!0;if(jn){var Jp=yr.variableOffsets[Tl];Jp?(Gu=yu(Jp.anchor,Jp.width,Jp.height,Jp.textOffset,Jp.textBoxScale),na&&Gu._rotate(uo?yr.transform.angle:-yr.transform.angle)):Cp=!1}wu.textBox&&To(Qt.textCollisionBox.collisionVertexArray,_l.text.placed,!Cp||Kl,Gu.x,Gu.y),wu.verticalTextBox&&To(Qt.textCollisionBox.collisionVertexArray,_l.text.placed,!Cp||bu,Gu.x,Gu.y)}var Qp=Boolean(!bu&&wu.verticalIconBox);wu.iconBox&&To(Qt.iconCollisionBox.collisionVertexArray,_l.icon.placed,Qp,lo?Gu.x:0,lo?Gu.y:0),wu.verticalIconBox&&To(Qt.iconCollisionBox.collisionVertexArray,_l.icon.placed,!Qp,lo?Gu.x:0,lo?Gu.y:0)}}},jo=0;joQt},Fo.prototype.setStale=function(){this.stale=!0};function To(pr,Qt,gr,nr,yr){pr.emplaceBack(Qt?1:0,gr?1:0,nr||0,yr||0),pr.emplaceBack(Qt?1:0,gr?1:0,nr||0,yr||0),pr.emplaceBack(Qt?1:0,gr?1:0,nr||0,yr||0),pr.emplaceBack(Qt?1:0,gr?1:0,nr||0,yr||0)}var Bo=Math.pow(2,25),Es=Math.pow(2,24),Ps=Math.pow(2,17),xs=Math.pow(2,16),us=Math.pow(2,9),wo=Math.pow(2,8),Qo=Math.pow(2,1);function Wo(pr){if(pr.opacity===0&&!pr.placed)return 0;if(pr.opacity===1&&pr.placed)return 4294967295;var Qt=pr.placed?1:0,gr=Math.floor(pr.opacity*127);return gr*Bo+Qt*Es+gr*Ps+Qt*xs+gr*us+Qt*wo+gr*Qo+Qt}var rs=0,_s=function(Qt){this._sortAcrossTiles=Qt.layout.get("symbol-z-order")!=="viewport-y"&&Qt.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};_s.prototype.continuePlacement=function(Qt,gr,nr,yr,$r){for(var Kr=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var gn=Qt[this._currentPlacementIndex],kn=gr[gn],jn=this.placement.collisionIndex.transform.zoom;if(kn.type==="symbol"&&(!kn.minzoom||kn.minzoom<=jn)&&(!kn.maxzoom||kn.maxzoom>jn)){this._inProgressLayer||(this._inProgressLayer=new _s(kn));var na=this._inProgressLayer.continuePlacement(nr[kn.source],this.placement,this._showCollisionBoxes,kn,Kr);if(na)return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Gs.prototype.commit=function(Qt){return this.placement.commit(Qt),this.placement};var Cs=512/et.EXTENT/2,Ks=function(Qt,gr,nr){this.tileID=Qt,this.indexedSymbolInstances={},this.bucketInstanceId=nr;for(var yr=0;yrQt.overscaledZ)for(var jn in kn){var na=kn[jn];na.tileID.isChildOf(Qt)&&na.findMatches(gr.symbolInstances,Qt,Kr)}else{var uo=Qt.scaledTo(Number(gn)),lo=kn[uo.key];lo&&lo.findMatches(gr.symbolInstances,Qt,Kr)}}for(var Po=0;Po0)throw new Error("Unimplemented: "+Kr.map(function(gn){return gn.command}).join(", ")+".");return $r.forEach(function(gn){gn.command!=="setTransition"&&yr[gn.command].apply(yr,gn.args)}),this.stylesheet=nr,!0},Qt.prototype.addImage=function(nr,yr){if(this.getImage(nr))return this.fire(new et.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(nr,yr),this._afterImageUpdated(nr)},Qt.prototype.updateImage=function(nr,yr){this.imageManager.updateImage(nr,yr)},Qt.prototype.getImage=function(nr){return this.imageManager.getImage(nr)},Qt.prototype.removeImage=function(nr){if(!this.getImage(nr))return this.fire(new et.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(nr),this._afterImageUpdated(nr)},Qt.prototype._afterImageUpdated=function(nr){this._availableImages=this.imageManager.listImages(),this._changedImages[nr]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new et.Event("data",{dataType:"style"}))},Qt.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},Qt.prototype.addSource=function(nr,yr,$r){var Kr=this;if($r===void 0&&($r={}),this._checkLoaded(),this.sourceCaches[nr]!==void 0)throw new Error("There is already a source with this ID");if(!yr.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(yr).join(", ")+".");var gn=["vector","raster","geojson","video","image"],kn=gn.indexOf(yr.type)>=0;if(!(kn&&this._validate(et.validateStyle.source,"sources."+nr,yr,null,$r))){this.map&&this.map._collectResourceTiming&&(yr.collectResourceTiming=!0);var jn=this.sourceCaches[nr]=new Wn(nr,yr,this.dispatcher);jn.style=this,jn.setEventedParent(this,function(){return{isSourceLoaded:Kr.loaded(),source:jn.serialize(),sourceId:nr}}),jn.onAdd(this.map),this._changed=!0}},Qt.prototype.removeSource=function(nr){if(this._checkLoaded(),this.sourceCaches[nr]===void 0)throw new Error("There is no source with this ID");for(var yr in this._layers)if(this._layers[yr].source===nr)return this.fire(new et.ErrorEvent(new Error('Source "'+nr+'" cannot be removed while layer "'+yr+'" is using it.')));var $r=this.sourceCaches[nr];delete this.sourceCaches[nr],delete this._updatedSources[nr],$r.fire(new et.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:nr})),$r.setEventedParent(null),$r.clearTiles(),$r.onRemove&&$r.onRemove(this.map),this._changed=!0},Qt.prototype.setGeoJSONSourceData=function(nr,yr){this._checkLoaded();var $r=this.sourceCaches[nr].getSource();$r.setData(yr),this._changed=!0},Qt.prototype.getSource=function(nr){return this.sourceCaches[nr]&&this.sourceCaches[nr].getSource()},Qt.prototype.addLayer=function(nr,yr,$r){$r===void 0&&($r={}),this._checkLoaded();var Kr=nr.id;if(this.getLayer(Kr)){this.fire(new et.ErrorEvent(new Error('Layer with id "'+Kr+'" already exists on this map')));return}var gn;if(nr.type==="custom"){if(Xl(this,et.validateCustomStyleLayer(nr)))return;gn=et.createStyleLayer(nr)}else{if(typeof nr.source=="object"&&(this.addSource(Kr,nr.source),nr=et.clone$1(nr),nr=et.extend(nr,{source:Kr})),this._validate(et.validateStyle.layer,"layers."+Kr,nr,{arrayIndex:-1},$r))return;gn=et.createStyleLayer(nr),this._validateLayer(gn),gn.setEventedParent(this,{layer:{id:Kr}}),this._serializedLayers[gn.id]=gn.serialize()}var kn=yr?this._order.indexOf(yr):this._order.length;if(yr&&kn===-1){this.fire(new et.ErrorEvent(new Error('Layer with id "'+yr+'" does not exist on this map.')));return}if(this._order.splice(kn,0,Kr),this._layerOrderChanged=!0,this._layers[Kr]=gn,this._removedLayers[Kr]&&gn.source&&gn.type!=="custom"){var jn=this._removedLayers[Kr];delete this._removedLayers[Kr],jn.type!==gn.type?this._updatedSources[gn.source]="clear":(this._updatedSources[gn.source]="reload",this.sourceCaches[gn.source].pause())}this._updateLayer(gn),gn.onAdd&&gn.onAdd(this.map)},Qt.prototype.moveLayer=function(nr,yr){this._checkLoaded(),this._changed=!0;var $r=this._layers[nr];if(!$r){this.fire(new et.ErrorEvent(new Error("The layer '"+nr+"' does not exist in the map's style and cannot be moved.")));return}if(nr!==yr){var Kr=this._order.indexOf(nr);this._order.splice(Kr,1);var gn=yr?this._order.indexOf(yr):this._order.length;if(yr&&gn===-1){this.fire(new et.ErrorEvent(new Error('Layer with id "'+yr+'" does not exist on this map.')));return}this._order.splice(gn,0,nr),this._layerOrderChanged=!0}},Qt.prototype.removeLayer=function(nr){this._checkLoaded();var yr=this._layers[nr];if(!yr){this.fire(new et.ErrorEvent(new Error("The layer '"+nr+"' does not exist in the map's style and cannot be removed.")));return}yr.setEventedParent(null);var $r=this._order.indexOf(nr);this._order.splice($r,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[nr]=yr,delete this._layers[nr],delete this._serializedLayers[nr],delete this._updatedLayers[nr],delete this._updatedPaintProps[nr],yr.onRemove&&yr.onRemove(this.map)},Qt.prototype.getLayer=function(nr){return this._layers[nr]},Qt.prototype.hasLayer=function(nr){return nr in this._layers},Qt.prototype.setLayerZoomRange=function(nr,yr,$r){this._checkLoaded();var Kr=this.getLayer(nr);if(!Kr){this.fire(new et.ErrorEvent(new Error("The layer '"+nr+"' does not exist in the map's style and cannot have zoom extent.")));return}Kr.minzoom===yr&&Kr.maxzoom===$r||(yr!=null&&(Kr.minzoom=yr),$r!=null&&(Kr.maxzoom=$r),this._updateLayer(Kr))},Qt.prototype.setFilter=function(nr,yr,$r){$r===void 0&&($r={}),this._checkLoaded();var Kr=this.getLayer(nr);if(!Kr){this.fire(new et.ErrorEvent(new Error("The layer '"+nr+"' does not exist in the map's style and cannot be filtered.")));return}if(!et.deepEqual(Kr.filter,yr)){if(yr==null){Kr.filter=void 0,this._updateLayer(Kr);return}this._validate(et.validateStyle.filter,"layers."+Kr.id+".filter",yr,null,$r)||(Kr.filter=et.clone$1(yr),this._updateLayer(Kr))}},Qt.prototype.getFilter=function(nr){return et.clone$1(this.getLayer(nr).filter)},Qt.prototype.setLayoutProperty=function(nr,yr,$r,Kr){Kr===void 0&&(Kr={}),this._checkLoaded();var gn=this.getLayer(nr);if(!gn){this.fire(new et.ErrorEvent(new Error("The layer '"+nr+"' does not exist in the map's style and cannot be styled.")));return}et.deepEqual(gn.getLayoutProperty(yr),$r)||(gn.setLayoutProperty(yr,$r,Kr),this._updateLayer(gn))},Qt.prototype.getLayoutProperty=function(nr,yr){var $r=this.getLayer(nr);if(!$r){this.fire(new et.ErrorEvent(new Error("The layer '"+nr+"' does not exist in the map's style.")));return}return $r.getLayoutProperty(yr)},Qt.prototype.setPaintProperty=function(nr,yr,$r,Kr){Kr===void 0&&(Kr={}),this._checkLoaded();var gn=this.getLayer(nr);if(!gn){this.fire(new et.ErrorEvent(new Error("The layer '"+nr+"' does not exist in the map's style and cannot be styled.")));return}if(!et.deepEqual(gn.getPaintProperty(yr),$r)){var kn=gn.setPaintProperty(yr,$r,Kr);kn&&this._updateLayer(gn),this._changed=!0,this._updatedPaintProps[nr]=!0}},Qt.prototype.getPaintProperty=function(nr,yr){return this.getLayer(nr).getPaintProperty(yr)},Qt.prototype.setFeatureState=function(nr,yr){this._checkLoaded();var $r=nr.source,Kr=nr.sourceLayer,gn=this.sourceCaches[$r];if(gn===void 0){this.fire(new et.ErrorEvent(new Error("The source '"+$r+"' does not exist in the map's style.")));return}var kn=gn.getSource().type;if(kn==="geojson"&&Kr){this.fire(new et.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(kn==="vector"&&!Kr){this.fire(new et.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}nr.id===void 0&&this.fire(new et.ErrorEvent(new Error("The feature id parameter must be provided."))),gn.setFeatureState(Kr,nr.id,yr)},Qt.prototype.removeFeatureState=function(nr,yr){this._checkLoaded();var $r=nr.source,Kr=this.sourceCaches[$r];if(Kr===void 0){this.fire(new et.ErrorEvent(new Error("The source '"+$r+"' does not exist in the map's style.")));return}var gn=Kr.getSource().type,kn=gn==="vector"?nr.sourceLayer:void 0;if(gn==="vector"&&!kn){this.fire(new et.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}if(yr&&typeof nr.id!="string"&&typeof nr.id!="number"){this.fire(new et.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));return}Kr.removeFeatureState(kn,nr.id,yr)},Qt.prototype.getFeatureState=function(nr){this._checkLoaded();var yr=nr.source,$r=nr.sourceLayer,Kr=this.sourceCaches[yr];if(Kr===void 0){this.fire(new et.ErrorEvent(new Error("The source '"+yr+"' does not exist in the map's style.")));return}var gn=Kr.getSource().type;if(gn==="vector"&&!$r){this.fire(new et.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}return nr.id===void 0&&this.fire(new et.ErrorEvent(new Error("The feature id parameter must be provided."))),Kr.getFeatureState($r,nr.id)},Qt.prototype.getTransition=function(){return et.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},Qt.prototype.serialize=function(){return et.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:et.mapObject(this.sourceCaches,function(nr){return nr.serialize()}),layers:this._serializeLayers(this._order)},function(nr){return nr!==void 0})},Qt.prototype._updateLayer=function(nr){this._updatedLayers[nr.id]=!0,nr.source&&!this._updatedSources[nr.source]&&this.sourceCaches[nr.source].getSource().type!=="raster"&&(this._updatedSources[nr.source]="reload",this.sourceCaches[nr.source].pause()),this._changed=!0},Qt.prototype._flattenAndSortRenderedFeatures=function(nr){for(var yr=this,$r=function(bu){return yr._layers[bu].type==="fill-extrusion"},Kr={},gn=[],kn=this._order.length-1;kn>=0;kn--){var jn=this._order[kn];if($r(jn)){Kr[jn]=kn;for(var na=0,uo=nr;na=0;ps--){var Fs=this._order[ps];if($r(Fs))for(var Hs=gn.length-1;Hs>=0;Hs--){var yl=gn[Hs].feature;if(Kr[yl.layer.id]24?(isFinite(Lr)&&(clearTimeout(gs),gs=setTimeout(Qs,Lr)),ys=0):(ys=1,zs(Qs))}et.timer.flush=function(){Fl(),Jl()};function Fl(){for(var dr=Date.now(),Lr=Yo;Lr;)dr>=Lr.t&&Lr.c(dr-Lr.t)&&(Lr.c=null),Lr=Lr.n;return dr}function Jl(){for(var dr,Lr=Yo,Hr=1/0;Lr;)Lr.c?(Lr.t=0;--Rn)ko.push(cn[Zn[Co[Rn]][2]]);for(Rn=+ts;Rn1&&Cn(dr[Hr[nn-2]],dr[Hr[nn-1]],dr[cn])<=0;)--nn;Hr[nn++]=cn}return Hr.slice(0,nn)}function xo(dr,Lr){return dr[0]-Lr[0]||dr[1]-Lr[1]}et.geom.polygon=function(dr){return rr(dr,Vo),dr};var Vo=et.geom.polygon.prototype=[];Vo.area=function(){for(var dr=-1,Lr=this.length,Hr,nn=this[Lr-1],cn=0;++drDr)Rn=Rn.L;else if(Dn=Lr-us(Rn,Hr),Dn>Dr){if(!Rn.R){nn=Rn;break}Rn=Rn.R}else{vn>-Dr?(nn=Rn.P,cn=Rn):Dn>-Dr?(nn=Rn,cn=Rn.N):nn=cn=Rn;break}var Yn=To(dr);if(Xs.insert(nn,Yn),!(!nn&&!cn)){if(nn===cn){Gs(nn),cn=To(nn.site),Xs.insert(Yn,cn),Yn.edge=cn.edge=zl(nn.site,Yn.site),_s(nn),_s(cn);return}if(!cn){Yn.edge=zl(nn.site,Yn.site);return}Gs(nn),Gs(cn);var Zn=nn.site,to=Zn.x,Co=Zn.y,Ro=dr.x-to,ts=dr.y-Co,ls=cn.site,ko=ls.x-to,Uo=ls.y-Co,qo=2*(Ro*Uo-ts*ko),cs=Ro*Ro+ts*ts,bs=ko*ko+Uo*Uo,as={x:(Uo*cs-ts*bs)/qo+to,y:(Ro*bs-ko*cs)/qo+Co};Zl(cn.edge,Zn,ls,as),Yn.edge=zl(Zn,dr,null,as),cn.edge=zl(dr,ls,null,as),_s(nn),_s(cn)}}function xs(dr,Lr){var Hr=dr.site,nn=Hr.x,cn=Hr.y,vn=cn-Lr;if(!vn)return nn;var Dn=dr.P;if(!Dn)return-1/0;Hr=Dn.site;var Rn=Hr.x,Yn=Hr.y,Zn=Yn-Lr;if(!Zn)return Rn;var to=Rn-nn,Co=1/vn-1/Zn,Ro=to/Zn;return Co?(-Ro+Math.sqrt(Ro*Ro-2*Co*(to*to/(-2*Zn)-Yn+Zn/2+cn-vn/2)))/Co+nn:(nn+Rn)/2}function us(dr,Lr){var Hr=dr.N;if(Hr)return xs(Hr,Lr);var nn=dr.site;return nn.y===Lr?nn.x:1/0}function wo(dr){this.site=dr,this.edges=[]}wo.prototype.prepare=function(){for(var dr=this.edges,Lr=dr.length,Hr;Lr--;)Hr=dr[Lr].edge,(!Hr.b||!Hr.a)&&dr.splice(Lr,1);return dr.sort(Wo),dr.length};function Qo(dr){for(var Lr=dr[0][0],Hr=dr[1][0],nn=dr[0][1],cn=dr[1][1],vn,Dn,Rn,Yn,Zn=Is,to=Zn.length,Co,Ro,ts,ls,ko,Uo;to--;)if(Co=Zn[to],!(!Co||!Co.prepare()))for(ts=Co.edges,ls=ts.length,Ro=0;RoDr||mt(Yn-Dn)>Dr)&&(ts.splice(Ro,0,new ju(Xl(Co.site,Uo,mt(Rn-Lr)Dr?{x:Lr,y:mt(vn-Lr)Dr?{x:mt(Dn-cn)Dr?{x:Hr,y:mt(vn-Hr)Dr?{x:mt(Dn-nn)=-Sr)){var Ro=Yn*Yn+Zn*Zn,ts=to*to+Uo*Uo,ls=(Uo*Ro-Zn*ts)/Co,ko=(Yn*ts-to*Ro)/Co,Uo=ko+Rn,qo=yo.pop()||new rs;qo.arc=dr,qo.site=cn,qo.x=ls+Dn,qo.y=Uo+Math.sqrt(ls*ls+ko*ko),qo.cy=Uo,dr.circle=qo;for(var cs=null,bs=yu._;bs;)if(qo.y0)){if(ko/=ts,ts<0){if(ko0){if(ko>Ro)return;ko>Co&&(Co=ko)}if(ko=Hr-Rn,!(!ts&&ko<0)){if(ko/=ts,ts<0){if(ko>Ro)return;ko>Co&&(Co=ko)}else if(ts>0){if(ko0)){if(ko/=ls,ls<0){if(ko0){if(ko>Ro)return;ko>Co&&(Co=ko)}if(ko=nn-Yn,!(!ls&&ko<0)){if(ko/=ls,ls<0){if(ko>Ro)return;ko>Co&&(Co=ko)}else if(ls>0){if(ko0&&(cn.a={x:Rn+Co*ts,y:Yn+Co*ls}),Ro<1&&(cn.b={x:Rn+Ro*ts,y:Yn+Ro*ls}),cn}}}}}}function Ks(dr){for(var Lr=ws,Hr=Cs(dr[0][0],dr[0][1],dr[1][0],dr[1][1]),nn=Lr.length,cn;nn--;)cn=Lr[nn],(!Ys(cn,dr)||!Hr(cn)||mt(cn.a.x-cn.b.x)=vn)return;if(to>Ro){if(!nn)nn={x:ls,y:Dn};else if(nn.y>=Rn)return;Hr={x:ls,y:Rn}}else{if(!nn)nn={x:ls,y:Rn};else if(nn.y1)if(to>Ro){if(!nn)nn={x:(Dn-qo)/Uo,y:Dn};else if(nn.y>=Rn)return;Hr={x:(Rn-qo)/Uo,y:Rn}}else{if(!nn)nn={x:(Rn-qo)/Uo,y:Rn};else if(nn.y=vn)return;Hr={x:vn,y:Uo*vn+qo}}else{if(!nn)nn={x:vn,y:Uo*vn+qo};else if(nn.x=to&&qo.x<=Ro&&qo.y>=Co&&qo.y<=ts?[[to,ts],[Ro,ts],[Ro,Co],[to,Co]]:[];cs.point=Yn[ko]}),Zn}function Rn(Yn){return Yn.map(function(Zn,to){return{x:Math.round(nn(Zn,to)/Dr)*Dr,y:Math.round(cn(Zn,to)/Dr)*Dr,i:to}})}return Dn.links=function(Yn){return Fm(Rn(Yn)).edges.filter(function(Zn){return Zn.l&&Zn.r}).map(function(Zn){return{source:Yn[Zn.l.i],target:Yn[Zn.r.i]}})},Dn.triangles=function(Yn){var Zn=[];return Fm(Rn(Yn)).cells.forEach(function(to,Co){for(var Ro=to.site,ts=to.edges.sort(Wo),ls=-1,ko=ts.length,Uo,qo=ts[ko-1].edge,cs=qo.l===Ro?qo.r:qo.l;++lsbs&&(bs=to.x),to.y>as&&(as=to.y),ts.push(to.x),ls.push(to.y);else for(ko=0;kobs&&(bs=Rs),Ll>as&&(as=Ll),ts.push(Rs),ls.push(Ll)}var Gl=bs-qo,Rl=as-cs;Gl>Rl?as=cs+Gl:bs=qo+Rl;function Hl(Ql,xu,zu,wp,Xu,Ml,vu,ru){if(!(isNaN(zu)||isNaN(wp)))if(Ql.leaf){var Ou=Ql.x,cp=Ql.y;if(Ou!=null)if(mt(Ou-zu)+mt(cp-wp)<.01)Vl(Ql,xu,zu,wp,Xu,Ml,vu,ru);else{var Uu=Ql.point;Ql.x=Ql.y=Ql.point=null,Vl(Ql,Uu,Ou,cp,Xu,Ml,vu,ru),Vl(Ql,xu,zu,wp,Xu,Ml,vu,ru)}else Ql.x=zu,Ql.y=wp,Ql.point=xu}else Vl(Ql,xu,zu,wp,Xu,Ml,vu,ru)}function Vl(Ql,xu,zu,wp,Xu,Ml,vu,ru){var Ou=(Xu+vu)*.5,cp=(Ml+ru)*.5,Uu=zu>=Ou,Fp=wp>=cp,Pp=Fp<<1|Uu;Ql.leaf=!1,Ql=Ql.nodes[Pp]||(Ql.nodes[Pp]=av()),Uu?Xu=Ou:vu=Ou,Fp?Ml=cp:ru=cp,Hl(Ql,xu,zu,wp,Xu,Ml,vu,ru)}var Tu=av();if(Tu.add=function(Ql){Hl(Tu,Ql,+Co(Ql,++ko),+Ro(Ql,ko),qo,cs,bs,as)},Tu.visit=function(Ql){C0(Ql,Tu,qo,cs,bs,as)},Tu.find=function(Ql){return f1(Tu,Ql[0],Ql[1],qo,cs,bs,as)},ko=-1,Lr==null){for(;++kovn||Ro>Dn||ts=Rs,Rl=Hr>=Ll,Hl=Rl<<1|Gl,Vl=Hl+4;HlHr&&(vn=Lr.slice(Hr,vn),Rn[Dn]?Rn[Dn]+=vn:Rn[++Dn]=vn),(nn=nn[0])===(cn=cn[0])?Rn[Dn]?Rn[Dn]+=cn:Rn[++Dn]=cn:(Rn[++Dn]=null,Yn.push({i:Dn,x:_p(nn,cn)})),Hr=$p.lastIndex;return Hr=0&&!(nn=et.interpolators[Hr](dr,Lr)););return nn}et.interpolators=[function(dr,Lr){var Hr=typeof Lr;return(Hr==="string"?vs.has(Lr.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(Lr)?Ap:kp:Lr instanceof An?Ap:Array.isArray(Lr)?lv:Hr==="object"&&isNaN(Lr)?d1:_p)(dr,Lr)}],et.interpolateArray=lv;function lv(dr,Lr){var Hr=[],nn=[],cn=dr.length,vn=Lr.length,Dn=Math.min(dr.length,Lr.length),Rn;for(Rn=0;Rn=0?dr.slice(0,Lr):dr,nn=Lr>=0?dr.slice(Lr+1):"in";return Hr=uv.get(Hr)||p1,nn=iy.get(nn)||Nt,qv(nn(Hr.apply(null,Tt.call(arguments,1))))};function qv(dr){return function(Lr){return Lr<=0?0:Lr>=1?1:dr(Lr)}}function Hp(dr){return function(Lr){return 1-dr(1-Lr)}}function Um(dr){return function(Lr){return .5*(Lr<.5?dr(2*Lr):2-dr(2-2*Lr))}}function R0(dr){return dr*dr}function _g(dr){return dr*dr*dr}function M0(dr){if(dr<=0)return 0;if(dr>=1)return 1;var Lr=dr*dr,Hr=Lr*dr;return 4*(dr<.5?Hr:3*(dr-Lr)+Hr-.75)}function oy(dr){return function(Lr){return Math.pow(Lr,dr)}}function wy(dr){return 1-Math.cos(dr*Vr)}function v1(dr){return Math.pow(2,10*(dr-1))}function sy(dr){return 1-Math.sqrt(1-dr*dr)}function I0(dr,Lr){var Hr;return arguments.length<2&&(Lr=.45),arguments.length?Hr=Lr/xr*Math.asin(1/dr):(dr=1,Hr=Lr/4),function(nn){return 1+dr*Math.pow(2,-10*nn)*Math.sin((nn-Hr)*xr/Lr)}}function mm(dr){return dr||(dr=1.70158),function(Lr){return Lr*Lr*((dr+1)*Lr-dr)}}function $m(dr){return dr<.36363636363636365?7.5625*dr*dr:dr<.7272727272727273?7.5625*(dr-=.5454545454545454)*dr+.75:dr<.9090909090909091?7.5625*(dr-=.8181818181818182)*dr+.9375:7.5625*(dr-=.9545454545454546)*dr+.984375}et.interpolateHcl=Cy;function Cy(dr,Lr){dr=et.hcl(dr),Lr=et.hcl(Lr);var Hr=dr.h,nn=dr.c,cn=dr.l,vn=Lr.h-Hr,Dn=Lr.c-nn,Rn=Lr.l-cn;return isNaN(Dn)&&(Dn=0,nn=isNaN(nn)?Lr.c:nn),isNaN(vn)?(vn=0,Hr=isNaN(Hr)?Lr.h:Hr):vn>180?vn-=360:vn<-180&&(vn+=360),function(Yn){return Wn(Hr+vn*Yn,nn+Dn*Yn,cn+Rn*Yn)+""}}et.interpolateHsl=Ry;function Ry(dr,Lr){dr=et.hsl(dr),Lr=et.hsl(Lr);var Hr=dr.h,nn=dr.s,cn=dr.l,vn=Lr.h-Hr,Dn=Lr.s-nn,Rn=Lr.l-cn;return isNaN(Dn)&&(Dn=0,nn=isNaN(nn)?Lr.s:nn),isNaN(vn)?(vn=0,Hr=isNaN(Hr)?Lr.h:Hr):vn>180?vn-=360:vn<-180&&(vn+=360),function(Yn){return In(Hr+vn*Yn,nn+Dn*Yn,cn+Rn*Yn)+""}}et.interpolateLab=H0;function H0(dr,Lr){dr=et.lab(dr),Lr=et.lab(Lr);var Hr=dr.l,nn=dr.a,cn=dr.b,vn=Lr.l-Hr,Dn=Lr.a-nn,Rn=Lr.b-cn;return function(Yn){return jr(Hr+vn*Yn,nn+Dn*Yn,cn+Rn*Yn)+""}}et.interpolateRound=Pv;function Pv(dr,Lr){return Lr-=dr,function(Hr){return Math.round(dr+Lr*Hr)}}et.transform=function(dr){var Lr=ut.createElementNS(et.ns.prefix.svg,"g");return(et.transform=function(Hr){if(Hr!=null){Lr.setAttribute("transform",Hr);var nn=Lr.transform.baseVal.consolidate()}return new k0(nn?nn.matrix:ly)})(dr)};function k0(dr){var Lr=[dr.a,dr.b],Hr=[dr.c,dr.d],nn=V1(Lr),cn=g1(Lr,Hr),vn=V1(W1(Hr,Lr,-cn))||0;Lr[0]*Hr[1]180?Lr+=360:Lr-dr>180&&(dr+=360),nn.push({i:Hr.push(h0(Hr)+"rotate(",null,")")-2,x:_p(dr,Lr)})):Lr&&Hr.push(h0(Hr)+"rotate("+Lr+")")}function xl(dr,Lr,Hr,nn){dr!==Lr?nn.push({i:Hr.push(h0(Hr)+"skewX(",null,")")-2,x:_p(dr,Lr)}):Lr&&Hr.push(h0(Hr)+"skewX("+Lr+")")}function Js(dr,Lr,Hr,nn){if(dr[0]!==Lr[0]||dr[1]!==Lr[1]){var cn=Hr.push(h0(Hr)+"scale(",null,",",null,")");nn.push({i:cn-4,x:_p(dr[0],Lr[0])},{i:cn-2,x:_p(dr[1],Lr[1])})}else(Lr[0]!==1||Lr[1]!==1)&&Hr.push(h0(Hr)+"scale("+Lr+")")}function fu(dr,Lr){var Hr=[],nn=[];return dr=et.transform(dr),Lr=et.transform(Lr),m1(dr.translate,Lr.translate,Hr,nn),Ts(dr.rotate,Lr.rotate,Hr,nn),xl(dr.skew,Lr.skew,Hr,nn),Js(dr.scale,Lr.scale,Hr,nn),dr=Lr=null,function(cn){for(var vn=-1,Dn=nn.length,Rn;++vn0?vn=as:(Hr.c=null,Hr.t=NaN,Hr=null,Lr.end({type:"end",alpha:vn=0})):as>0&&(Lr.start({type:"start",alpha:vn=as}),Hr=Us(dr.tick)),dr):vn},dr.start=function(){var as,Rs=ts.length,Ll=ls.length,Gl=nn[0],Rl=nn[1],Hl,Vl;for(as=0;as=0;)vn.push(to=Zn[Yn]),to.parent=Rn,to.depth=Rn.depth+1;Hr&&(Rn.value=0),Rn.children=Zn}else Hr&&(Rn.value=+Hr.call(nn,Rn,Rn.depth)||0),delete Rn.children;return Zp(cn,function(Co){var Ro,ts;dr&&(Ro=Co.children)&&Ro.sort(dr),Hr&&(ts=Co.parent)&&(ts.value+=Co.value)}),Dn}return nn.sort=function(cn){return arguments.length?(dr=cn,nn):dr},nn.children=function(cn){return arguments.length?(Lr=cn,nn):Lr},nn.value=function(cn){return arguments.length?(Hr=cn,nn):Hr},nn.revalue=function(cn){return Hr&&(G0(cn,function(vn){vn.children&&(vn.value=0)}),Zp(cn,function(vn){var Dn;vn.children||(vn.value=+Hr.call(nn,vn,vn.depth)||0),(Dn=vn.parent)&&(Dn.value+=vn.value)})),cn},nn};function x1(dr,Lr){return et.rebind(dr,Lr,"sort","children","value"),dr.nodes=dr,dr.links=Em,dr}function G0(dr,Lr){for(var Hr=[dr];(dr=Hr.pop())!=null;)if(Lr(dr),(cn=dr.children)&&(nn=cn.length))for(var nn,cn;--nn>=0;)Hr.push(cn[nn])}function Zp(dr,Lr){for(var Hr=[dr],nn=[];(dr=Hr.pop())!=null;)if(nn.push(dr),(Dn=dr.children)&&(vn=Dn.length))for(var cn=-1,vn,Dn;++cncn&&(cn=Rn),nn.push(Rn)}for(Dn=0;Dnnn&&(Hr=Lr,nn=cn);return Hr}function D0(dr){return dr.reduce(gv,0)}function gv(dr,Lr){return dr+Lr[1]}et.layout.histogram=function(){var dr=!0,Lr=Number,Hr=W0,nn=uy;function cn(vn,Ro){for(var Rn=[],Yn=vn.map(Lr,this),Zn=Hr.call(this,Yn,Ro),to=nn.call(this,Zn,Yn,Ro),Co,Ro=-1,ts=Yn.length,ls=to.length-1,ko=dr?1:1/ts,Uo;++Ro0)for(Ro=-1;++Ro=Zn[0]&&Uo<=Zn[1]&&(Co=Rn[et.bisect(to,Uo,1,ls)-1],Co.y+=ko,Co.push(vn[Ro]));return Rn}return cn.value=function(vn){return arguments.length?(Lr=vn,cn):Lr},cn.range=function(vn){return arguments.length?(Hr=Zo(vn),cn):Hr},cn.bins=function(vn){return arguments.length?(nn=typeof vn=="number"?function(Dn){return Hm(Dn,vn)}:Zo(vn),cn):nn},cn.frequency=function(vn){return arguments.length?(dr=!!vn,cn):dr},cn};function uy(dr,Lr){return Hm(dr,Math.ceil(Math.log(Lr.length)/Math.LN2+1))}function Hm(dr,Lr){for(var Hr=-1,nn=+dr[0],cn=(dr[1]-nn)/Lr,vn=[];++Hr<=Lr;)vn[Hr]=cn*Hr+nn;return vn}function W0(dr){return[et.min(dr),et.max(dr)]}et.layout.pack=function(){var dr=et.layout.hierarchy().sort(Hv),Lr=0,Hr=[1,1],nn;function cn(vn,Dn){var Rn=dr.call(this,vn,Dn),Yn=Rn[0],Zn=Hr[0],to=Hr[1],Co=nn==null?Math.sqrt:typeof nn=="function"?nn:function(){return nn};if(Yn.x=Yn.y=0,Zp(Yn,function(ts){ts.r=+Co(ts.value)}),Zp(Yn,Nv),Lr){var Ro=Lr*(nn?1:Math.max(2*Yn.r/Zn,2*Yn.r/to))/2;Zp(Yn,function(ts){ts.r+=Ro}),Zp(Yn,Nv),Zp(Yn,function(ts){ts.r-=Ro})}return pp(Yn,Zn/2,to/2,nn?1:1/Math.max(2*Yn.r/Zn,2*Yn.r/to)),Rn}return cn.size=function(vn){return arguments.length?(Hr=vn,cn):Hr},cn.radius=function(vn){return arguments.length?(nn=vn==null||typeof vn=="function"?vn:+vn,cn):nn},cn.padding=function(vn){return arguments.length?(Lr=+vn,cn):Lr},x1(cn,dr)};function Hv(dr,Lr){return dr.value-Lr.value}function j0(dr,Lr){var Hr=dr._pack_next;dr._pack_next=Lr,Lr._pack_prev=dr,Lr._pack_next=Hr,Hr._pack_prev=Lr}function Ep(dr,Lr){dr._pack_next=Lr,Lr._pack_prev=dr}function X1(dr,Lr){var Hr=Lr.x-dr.x,nn=Lr.y-dr.y,cn=dr.r+Lr.r;return .999*cn*cn>Hr*Hr+nn*nn}function Nv(dr){if(!(Lr=dr.children)||!(Ro=Lr.length))return;var Lr,Hr=1/0,nn=-1/0,cn=1/0,vn=-1/0,Dn,Rn,Yn,Zn,to,Co,Ro;function ts(as){Hr=Math.min(as.x-as.r,Hr),nn=Math.max(as.x+as.r,nn),cn=Math.min(as.y-as.r,cn),vn=Math.max(as.y+as.r,vn)}if(Lr.forEach(g0),Dn=Lr[0],Dn.x=-Dn.r,Dn.y=0,ts(Dn),Ro>1&&(Rn=Lr[1],Rn.x=Rn.r,Rn.y=0,ts(Rn),Ro>2))for(Yn=Lr[2],vp(Dn,Rn,Yn),ts(Yn),j0(Dn,Yn),Dn._pack_prev=Yn,j0(Yn,Rn),Rn=Dn._pack_next,Zn=3;ZnUo.x&&(Uo=Rs),Rs.depth>qo.depth&&(qo=Rs)});var cs=Lr(ko,Uo)/2-ko.x,bs=Hr[0]/(Uo.x+Lr(Uo,ko)/2+cs),as=Hr[1]/(qo.depth||1);G0(ts,function(Rs){Rs.x=(Rs.x+cs)*bs,Rs.y=Rs.depth*as})}return Ro}function vn(to){for(var Co={A:null,children:[to]},Ro=[Co],ts;(ts=Ro.pop())!=null;)for(var ls=ts.children,ko,Uo=0,qo=ls.length;Uo0&&(K1(Z1(ko,to,Ro),to,Rs),qo+=Rs,cs+=Rs),bs+=ko.m,qo+=ts.m,as+=Uo.m,cs+=ls.m;ko&&!wv(ls)&&(ls.t=ko,ls.m+=bs-cs),ts&&!Gv(Uo)&&(Uo.t=ts,Uo.m+=qo-as,Ro=to)}return Ro}function Zn(to){to.x*=Hr[0],to.y=to.depth*Hr[1]}return cn.separation=function(to){return arguments.length?(Lr=to,cn):Lr},cn.size=function(to){return arguments.length?(nn=(Hr=to)==null?Zn:null,cn):nn?null:Hr},cn.nodeSize=function(to){return arguments.length?(nn=(Hr=to)==null?null:Zn,cn):nn?Hr:null},x1(cn,dr)};function m0(dr,Lr){return dr.parent==Lr.parent?1:2}function Gv(dr){var Lr=dr.children;return Lr.length?Lr[0]:dr.t}function wv(dr){var Lr=dr.children,Hr;return(Hr=Lr.length)?Lr[Hr-1]:dr.t}function K1(dr,Lr,Hr){var nn=Hr/(Lr.i-dr.i);Lr.c-=nn,Lr.s+=Hr,dr.c+=nn,Lr.z+=Hr,Lr.m+=Hr}function Gm(dr){for(var Lr=0,Hr=0,nn=dr.children,cn=nn.length,vn;--cn>=0;)vn=nn[cn],vn.z+=Lr,vn.m+=Lr,Lr+=vn.s+(Hr+=vn.c)}function Z1(dr,Lr,Hr){return dr.a.parent===Lr.parent?dr.a:Hr}et.layout.cluster=function(){var dr=et.layout.hierarchy().sort(null).value(null),Lr=m0,Hr=[1,1],nn=!1;function cn(vn,Dn){var Rn=dr.call(this,vn,Dn),Yn=Rn[0],Zn,to=0;Zp(Yn,function(ko){var Uo=ko.children;Uo&&Uo.length?(ko.x=A1(Uo),ko.y=Vm(Uo)):(ko.x=Zn?to+=Lr(ko,Zn):0,ko.y=0,Zn=ko)});var Co=X0(Yn),Ro=_1(Yn),ts=Co.x-Lr(Co,Ro)/2,ls=Ro.x+Lr(Ro,Co)/2;return Zp(Yn,nn?function(ko){ko.x=(ko.x-Yn.x)*Hr[0],ko.y=(Yn.y-ko.y)*Hr[1]}:function(ko){ko.x=(ko.x-ts)/(ls-ts)*Hr[0],ko.y=(1-(Yn.y?ko.y/Yn.y:1))*Hr[1]}),Rn}return cn.separation=function(vn){return arguments.length?(Lr=vn,cn):Lr},cn.size=function(vn){return arguments.length?(nn=(Hr=vn)==null,cn):nn?null:Hr},cn.nodeSize=function(vn){return arguments.length?(nn=(Hr=vn)!=null,cn):nn?Hr:null},x1(cn,dr)};function Vm(dr){return 1+et.max(dr,function(Lr){return Lr.y})}function A1(dr){return dr.reduce(function(Lr,Hr){return Lr+Hr.x},0)/dr.length}function X0(dr){var Lr=dr.children;return Lr&&Lr.length?X0(Lr[0]):dr}function _1(dr){var Lr=dr.children,Hr;return Lr&&(Hr=Lr.length)?_1(Lr[Hr-1]):dr}et.layout.treemap=function(){var dr=et.layout.hierarchy(),Lr=Math.round,Hr=[1,1],nn=null,cn=y0,vn=!1,Dn,Rn="squarify",Yn=.5*(1+Math.sqrt(5));function Zn(ko,Uo){for(var qo=-1,cs=ko.length,bs,as;++qo0;)cs.push(as=bs[Rl-1]),cs.area+=as.area,Rn!=="squarify"||(Ll=Ro(cs,Gl))<=Rs?(bs.pop(),Rs=Ll):(cs.area-=cs.pop().area,ts(cs,Gl,qo,!1),Gl=Math.min(qo.dx,qo.dy),cs.length=cs.area=0,Rs=1/0);cs.length&&(ts(cs,Gl,qo,!0),cs.length=cs.area=0),Uo.forEach(to)}}function Co(ko){var Uo=ko.children;if(Uo&&Uo.length){var qo=cn(ko),cs=Uo.slice(),bs,as=[];for(Zn(cs,qo.dx*qo.dy/ko.value),as.area=0;bs=cs.pop();)as.push(bs),as.area+=bs.area,bs.z!=null&&(ts(as,bs.z?qo.dx:qo.dy,qo,!cs.length),as.length=as.area=0);Uo.forEach(Co)}}function Ro(ko,Uo){for(var qo=ko.area,cs,bs=0,as=1/0,Rs=-1,Ll=ko.length;++Rsbs&&(bs=cs));return qo*=qo,Uo*=Uo,qo?Math.max(Uo*bs*Yn/qo,qo/(Uo*as*Yn)):1/0}function ts(ko,Uo,qo,cs){var bs=-1,as=ko.length,Rs=qo.x,Ll=qo.y,Gl=Uo?Lr(ko.area/Uo):0,Rl;if(Uo==qo.dx){for((cs||Gl>qo.dy)&&(Gl=qo.dy);++bsqo.dx)&&(Gl=qo.dx);++bs1);return dr+Lr*nn*Math.sqrt(-2*Math.log(vn)/vn)}},logNormal:function(){var dr=et.random.normal.apply(et,arguments);return function(){return Math.exp(dr())}},bates:function(dr){var Lr=et.random.irwinHall(dr);return function(){return Lr()/dr}},irwinHall:function(dr){return function(){for(var Lr=0,Hr=0;Hr2?w1:cy,Zn=nn?Yu:Su;return cn=Yn(dr,Lr,Zn,Hr),vn=Yn(Lr,dr,Zn,op),Rn}function Rn(Yn){return cn(Yn)}return Rn.invert=function(Yn){return vn(Yn)},Rn.domain=function(Yn){return arguments.length?(dr=Yn.map(Number),Dn()):dr},Rn.range=function(Yn){return arguments.length?(Lr=Yn,Dn()):Lr},Rn.rangeRound=function(Yn){return Rn.range(Yn).interpolate(Pv)},Rn.clamp=function(Yn){return arguments.length?(nn=Yn,Dn()):nn},Rn.interpolate=function(Yn){return arguments.length?(Hr=Yn,Dn()):Hr},Rn.ticks=function(Yn){return Mp(dr,Yn)},Rn.tickFormat=function(Yn,Zn){return d3_scale_linearTickFormat(dr,Yn,Zn)},Rn.nice=function(Yn){return K0(dr,Yn),Dn()},Rn.copy=function(){return Wm(dr,Lr,Hr,nn)},Dn()}function Ao(dr,Lr){return et.rebind(dr,Lr,"range","rangeRound","interpolate","clamp")}function K0(dr,Lr){return J1(dr,x0(Gp(dr,Lr)[2])),J1(dr,x0(Gp(dr,Lr)[2])),dr}function Gp(dr,Lr){Lr==null&&(Lr=10);var Hr=Cv(dr),nn=Hr[1]-Hr[0],cn=Math.pow(10,Math.floor(Math.log(nn/Lr)/Math.LN10)),vn=Lr/nn*cn;return vn<=.15?cn*=10:vn<=.35?cn*=5:vn<=.75&&(cn*=2),Hr[0]=Math.ceil(Hr[0]/cn)*cn,Hr[1]=Math.floor(Hr[1]/cn)*cn+cn*.5,Hr[2]=cn,Hr}function Mp(dr,Lr){return et.range.apply(et,Gp(dr,Lr))}et.scale.log=function(){return Lu(et.scale.linear().domain([0,1]),10,!0,[1,10])};function Lu(dr,Lr,Hr,nn){function cn(Rn){return(Hr?Math.log(Rn<0?0:Rn):-Math.log(Rn>0?0:-Rn))/Math.log(Lr)}function vn(Rn){return Hr?Math.pow(Lr,Rn):-Math.pow(Lr,-Rn)}function Dn(Rn){return dr(cn(Rn))}return Dn.invert=function(Rn){return vn(dr.invert(Rn))},Dn.domain=function(Rn){return arguments.length?(Hr=Rn[0]>=0,dr.domain((nn=Rn.map(Number)).map(cn)),Dn):nn},Dn.base=function(Rn){return arguments.length?(Lr=+Rn,dr.domain(nn.map(cn)),Dn):Lr},Dn.nice=function(){var Rn=J1(nn.map(cn),Hr?Math:C1);return dr.domain(Rn),nn=Rn.map(vn),Dn},Dn.ticks=function(){var Rn=Cv(nn),Yn=[],Zn=Rn[0],to=Rn[1],Co=Math.floor(cn(Zn)),Ro=Math.ceil(cn(to)),ts=Lr%1?2:Lr;if(isFinite(Ro-Co)){if(Hr){for(;Co0;ls--)Yn.push(vn(Co)*ls);for(Co=0;Yn[Co]to;Ro--);Yn=Yn.slice(Co,Ro)}return Yn},Dn.copy=function(){return Lu(dr.copy(),Lr,Hr,nn)},Ao(Dn,dr)}var C1={floor:function(dr){return-Math.ceil(-dr)},ceil:function(dr){return-Math.floor(-dr)}};et.scale.pow=function(){return _m(et.scale.linear(),1,[0,1])};function _m(dr,Lr,Hr){var nn=Z0(Lr),cn=Z0(1/Lr);function vn(Dn){return dr(nn(Dn))}return vn.invert=function(Dn){return cn(dr.invert(Dn))},vn.domain=function(Dn){return arguments.length?(dr.domain((Hr=Dn.map(Number)).map(nn)),vn):Hr},vn.ticks=function(Dn){return Mp(Hr,Dn)},vn.tickFormat=function(Dn,Rn){return d3_scale_linearTickFormat(Hr,Dn,Rn)},vn.nice=function(Dn){return vn.domain(K0(Hr,Dn))},vn.exponent=function(Dn){return arguments.length?(nn=Z0(Lr=Dn),cn=Z0(1/Lr),dr.domain(Hr.map(nn)),vn):Lr},vn.copy=function(){return _m(dr.copy(),Lr,Hr)},Ao(vn,dr)}function Z0(dr){return function(Lr){return Lr<0?-Math.pow(-Lr,dr):Math.pow(Lr,dr)}}et.scale.sqrt=function(){return et.scale.pow().exponent(.5)},et.scale.ordinal=function(){return Rv([],{t:"range",a:[[]]})};function Rv(dr,Lr){var Hr,nn,cn;function vn(Rn){return nn[((Hr.get(Rn)||(Lr.t==="range"?Hr.set(Rn,dr.push(Rn)):NaN))-1)%nn.length]}function Dn(Rn,Yn){return et.range(dr.length).map(function(Zn){return Rn+Yn*Zn})}return vn.domain=function(Rn){if(!arguments.length)return dr;dr=[],Hr=new Mt;for(var Yn=-1,Zn=Rn.length,to;++Yn0?Hr[vn-1]:dr[0],vnRo?0:1;if(to=Pr)return Yn(to,ls)+(Zn?Yn(Zn,1-ls):"")+"Z";var ko,Uo,qo,cs,bs=0,as=0,Rs,Ll,Gl,Rl,Hl,Vl,Tu,Ql,xu=[];if((cs=(+Dn.apply(this,arguments)||0)/2)&&(qo=nn===Sm?Math.sqrt(Zn*Zn+to*to):+nn.apply(this,arguments),ls||(as*=-1),to&&(as=xn(qo/to*Math.sin(cs))),Zn&&(bs=xn(qo/Zn*Math.sin(cs)))),to){Rs=to*Math.cos(Co+as),Ll=to*Math.sin(Co+as),Gl=to*Math.cos(Ro-as),Rl=to*Math.sin(Ro-as);var zu=Math.abs(Ro-Co-2*as)<=ur?0:1;if(as&&q1(Rs,Ll,Gl,Rl)===ls^zu){var wp=(Co+Ro)/2;Rs=to*Math.cos(wp),Ll=to*Math.sin(wp),Gl=Rl=null}}else Rs=Ll=0;if(Zn){Hl=Zn*Math.cos(Ro-bs),Vl=Zn*Math.sin(Ro-bs),Tu=Zn*Math.cos(Co+bs),Ql=Zn*Math.sin(Co+bs);var Xu=Math.abs(Co-Ro+2*bs)<=ur?0:1;if(bs&&q1(Hl,Vl,Tu,Ql)===1-ls^Xu){var Ml=(Co+Ro)/2;Hl=Zn*Math.cos(Ml),Vl=Zn*Math.sin(Ml),Tu=Ql=null}}else Hl=Vl=0;if(ts>Dr&&(ko=Math.min(Math.abs(to-Zn)/2,+Hr.apply(this,arguments)))>.001){Uo=Zn0?0:1}function em(dr,Lr,Hr,nn,cn){var vn=dr[0]-Lr[0],Dn=dr[1]-Lr[1],Rn=(cn?nn:-nn)/Math.sqrt(vn*vn+Dn*Dn),Yn=Rn*Dn,Zn=-Rn*vn,to=dr[0]+Yn,Co=dr[1]+Zn,Ro=Lr[0]+Yn,ts=Lr[1]+Zn,ls=(to+Ro)/2,ko=(Co+ts)/2,Uo=Ro-to,qo=ts-Co,cs=Uo*Uo+qo*qo,bs=Hr-nn,as=to*ts-Ro*Co,Rs=(qo<0?-1:1)*Math.sqrt(Math.max(0,bs*bs*cs-as*as)),Ll=(as*qo-Uo*Rs)/cs,Gl=(-as*Uo-qo*Rs)/cs,Rl=(as*qo+Uo*Rs)/cs,Hl=(-as*Uo+qo*Rs)/cs,Vl=Ll-ls,Tu=Gl-ko,Ql=Rl-ls,xu=Hl-ko;return Vl*Vl+Tu*Tu>Ql*Ql+xu*xu&&(Ll=Rl,Gl=Hl),[[Ll-Yn,Gl-Zn],[Ll*Hr/bs,Gl*Hr/bs]]}function yv(){return!0}function tm(dr){var Lr=nu,Hr=Yl,nn=yv,cn=sp,vn=cn.key,Dn=.7;function Rn(Yn){var Zn=[],to=[],Co=-1,Ro=Yn.length,ts,ls=Zo(Lr),ko=Zo(Hr);function Uo(){Zn.push("M",cn(dr(to),Dn))}for(;++Co1?dr.join("L"):dr+"Z"}function r0(dr){return dr.join("L")+"Z"}function Ym(dr){for(var Lr=0,Hr=dr.length,nn=dr[0],cn=[nn[0],",",nn[1]];++Lr1&&cn.push("H",nn[0]),cn.join("")}function J0(dr){for(var Lr=0,Hr=dr.length,nn=dr[0],cn=[nn[0],",",nn[1]];++Lr1){Rn=Lr[1],vn=dr[Yn],Yn++,nn+="C"+(cn[0]+Dn[0])+","+(cn[1]+Dn[1])+","+(vn[0]-Rn[0])+","+(vn[1]-Rn[1])+","+vn[0]+","+vn[1];for(var Zn=2;Zn9&&(vn=Hr*3/Math.sqrt(vn),Dn[Rn]=vn*nn,Dn[Rn+1]=vn*cn));for(Rn=-1;++Rn<=Yn;)vn=(dr[Math.min(Yn,Rn+1)][0]-dr[Math.max(0,Rn-1)][0])/(6*(1+Dn[Rn]*Dn[Rn])),Lr.push([vn||0,Dn[Rn]*vn||0]);return Lr}function om(dr){return dr.length<3?sp(dr):dr[0]+iv(dr,L1(dr))}et.svg.line.radial=function(){var dr=tm(D1);return dr.radius=dr.x,delete dr.x,dr.angle=dr.y,delete dr.y,dr};function D1(dr){for(var Lr,Hr=-1,nn=dr.length,cn,vn;++Hrur)+",1 "+Co}function Zn(to,Co,Ro,ts){return"Q 0,0 "+ts}return vn.radius=function(to){return arguments.length?(Hr=Zo(to),vn):Hr},vn.source=function(to){return arguments.length?(dr=Zo(to),vn):dr},vn.target=function(to){return arguments.length?(Lr=Zo(to),vn):Lr},vn.startAngle=function(to){return arguments.length?(nn=Zo(to),vn):nn},vn.endAngle=function(to){return arguments.length?(cn=Zo(to),vn):cn},vn};function P1(dr){return dr.radius}et.svg.diagonal=function(){var dr=Rm,Lr=Q0,Hr=sm;function nn(cn,vn){var Dn=dr.call(this,cn,vn),Rn=Lr.call(this,cn,vn),Yn=(Dn.y+Rn.y)/2,Zn=[Dn,{x:Dn.x,y:Yn},{x:Rn.x,y:Yn},Rn];return Zn=Zn.map(Hr),"M"+Zn[0]+"C"+Zn[1]+" "+Zn[2]+" "+Zn[3]}return nn.source=function(cn){return arguments.length?(dr=Zo(cn),nn):dr},nn.target=function(cn){return arguments.length?(Lr=Zo(cn),nn):Lr},nn.projection=function(cn){return arguments.length?(Hr=cn,nn):Hr},nn};function sm(dr){return[dr.x,dr.y]}et.svg.diagonal.radial=function(){var dr=et.svg.diagonal(),Lr=sm,Hr=dr.projection;return dr.projection=function(nn){return arguments.length?Hr(Km(Lr=nn)):Lr},dr};function Km(dr){return function(){var Lr=dr.apply(this,arguments),Hr=Lr[0],nn=Lr[1]-Vr;return[Hr*Math.cos(nn),Hr*Math.sin(nn)]}}et.svg.symbol=function(){var dr=dn,Lr=Jr;function Hr(nn,cn){return(Sn.get(dr.call(this,nn,cn))||_n)(Lr.call(this,nn,cn))}return Hr.type=function(nn){return arguments.length?(dr=Zo(nn),Hr):dr},Hr.size=function(nn){return arguments.length?(Lr=Zo(nn),Hr):Lr},Hr};function Jr(){return 64}function dn(){return"circle"}function _n(dr){var Lr=Math.sqrt(dr/ur);return"M0,"+Lr+"A"+Lr+","+Lr+" 0 1,1 0,"+-Lr+"A"+Lr+","+Lr+" 0 1,1 0,"+Lr+"Z"}var Sn=et.map({circle:_n,cross:function(dr){var Lr=Math.sqrt(dr/5)/2;return"M"+-3*Lr+","+-Lr+"H"+-Lr+"V"+-3*Lr+"H"+Lr+"V"+-Lr+"H"+3*Lr+"V"+Lr+"H"+Lr+"V"+3*Lr+"H"+-Lr+"V"+Lr+"H"+-3*Lr+"Z"},diamond:function(dr){var Lr=Math.sqrt(dr/(2*Nn)),Hr=Lr*Nn;return"M0,"+-Lr+"L"+Hr+",0 0,"+Lr+" "+-Hr+",0Z"},square:function(dr){var Lr=Math.sqrt(dr)/2;return"M"+-Lr+","+-Lr+"L"+Lr+","+-Lr+" "+Lr+","+Lr+" "+-Lr+","+Lr+"Z"},"triangle-down":function(dr){var Lr=Math.sqrt(dr/zn),Hr=Lr*zn/2;return"M0,"+Hr+"L"+Lr+","+-Hr+" "+-Lr+","+-Hr+"Z"},"triangle-up":function(dr){var Lr=Math.sqrt(dr/zn),Hr=Lr*zn/2;return"M0,"+-Hr+"L"+Lr+","+Hr+" "+-Lr+","+Hr+"Z"}});et.svg.symbolTypes=Sn.keys();var zn=Math.sqrt(3),Nn=Math.tan(30*qr);Kt.transition=function(dr){for(var Lr=Do||++So,Hr=Ns(dr),nn=[],cn,vn,Dn=$o||{time:Date.now(),ease:M0,delay:0,duration:250},Rn=-1,Yn=this.length;++Rn0;)Co[--cs].call(dr,qo);if(Uo>=1)return Dn.event&&Dn.event.end.call(dr,dr.__data__,Lr),--vn.count?delete vn[nn]:delete dr[Hr],1}Dn||(Rn=cn.time,Yn=Us(Ro,0,Rn),Dn=vn[nn]={tween:new Mt,time:Rn,timer:Yn,delay:cn.delay,duration:cn.duration,ease:cn.ease,index:Lr},cn=null,++vn.count)}et.svg.axis=function(){var dr=et.scale.linear(),Lr=Al,Hr=6,nn=6,cn=3,vn=[10],Dn=null,Rn;function Yn(Zn){Zn.each(function(){var to=et.select(this),Co=this.__chart__||dr,Ro=this.__chart__=dr.copy(),ts=Dn??(Ro.ticks?Ro.ticks.apply(Ro,vn):Ro.domain()),ls=Rn??(Ro.tickFormat?Ro.tickFormat.apply(Ro,vn):Nt),ko=to.selectAll(".tick").data(ts,Ro),Uo=ko.enter().insert("g",".domain").attr("class","tick").style("opacity",Dr),qo=et.transition(ko.exit()).style("opacity",Dr).remove(),cs=et.transition(ko.order()).style("opacity",1),bs=Math.max(Hr,0)+cn,as,Rs=S1(Ro),Ll=to.selectAll(".domain").data([0]),Gl=(Ll.enter().append("path").attr("class","domain"),et.transition(Ll));Uo.append("line"),Uo.append("text");var Rl=Uo.select("line"),Hl=cs.select("line"),Vl=ko.select("text").text(ls),Tu=Uo.select("text"),Ql=cs.select("text"),xu=Lr==="top"||Lr==="left"?-1:1,zu,wp,Xu,Ml;if(Lr==="bottom"||Lr==="top"?(as=du,zu="x",Xu="y",wp="x2",Ml="y2",Vl.attr("dy",xu<0?"0em":".71em").style("text-anchor","middle"),Gl.attr("d","M"+Rs[0]+","+xu*nn+"V0H"+Rs[1]+"V"+xu*nn)):(as=gu,zu="y",Xu="x",wp="y2",Ml="x2",Vl.attr("dy",".32em").style("text-anchor",xu<0?"end":"start"),Gl.attr("d","M"+xu*nn+","+Rs[0]+"H0V"+Rs[1]+"H"+xu*nn)),Rl.attr(Ml,xu*Hr),Tu.attr(Xu,xu*bs),Hl.attr(wp,0).attr(Ml,xu*Hr),Ql.attr(zu,0).attr(Xu,xu*bs),Ro.rangeBand){var vu=Ro,ru=vu.rangeBand()/2;Co=Ro=function(Ou){return vu(Ou)+ru}}else Co.rangeBand?Co=Ro:qo.call(as,Ro,Co);Uo.call(as,Co,Ro),cs.call(as,Ro,Ro)})}return Yn.scale=function(Zn){return arguments.length?(dr=Zn,Yn):dr},Yn.orient=function(Zn){return arguments.length?(Lr=Zn in pu?Zn+"":Al,Yn):Lr},Yn.ticks=function(){return arguments.length?(vn=yt(arguments),Yn):vn},Yn.tickValues=function(Zn){return arguments.length?(Dn=Zn,Yn):Dn},Yn.tickFormat=function(Zn){return arguments.length?(Rn=Zn,Yn):Rn},Yn.tickSize=function(Zn){var to=arguments.length;return to?(Hr=+Zn,nn=+arguments[to-1],Yn):Hr},Yn.innerTickSize=function(Zn){return arguments.length?(Hr=+Zn,Yn):Hr},Yn.outerTickSize=function(Zn){return arguments.length?(nn=+Zn,Yn):nn},Yn.tickPadding=function(Zn){return arguments.length?(cn=+Zn,Yn):cn},Yn.tickSubdivide=function(){return arguments.length&&Yn},Yn};var Al="bottom",pu={top:1,right:1,bottom:1,left:1};function du(dr,Lr,Hr){dr.attr("transform",function(nn){var cn=Lr(nn);return"translate("+(isFinite(cn)?cn:Hr(nn))+",0)"})}function gu(dr,Lr,Hr){dr.attr("transform",function(nn){var cn=Lr(nn);return"translate(0,"+(isFinite(cn)?cn:Hr(nn))+")"})}et.svg.brush=function(){var dr=Jt(to,"brushstart","brush","brushend"),Lr=null,Hr=null,nn=[0,0],cn=[0,0],vn,Dn,Rn=!0,Yn=!0,Zn=Nu[0];function to(ko){ko.each(function(){var Uo=et.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",ls).on("touchstart.brush",ls),qo=Uo.selectAll(".background").data([0]);qo.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Uo.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var cs=Uo.selectAll(".resize").data(Zn,Nt);cs.exit().remove(),cs.enter().append("g").attr("class",function(Ll){return"resize "+Ll}).style("cursor",function(Ll){return Eu[Ll]}).append("rect").attr("x",function(Ll){return/[ew]$/.test(Ll)?-3:null}).attr("y",function(Ll){return/^[ns]/.test(Ll)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),cs.style("display",to.empty()?"none":null);var bs=et.transition(Uo),as=et.transition(qo),Rs;Lr&&(Rs=S1(Lr),as.attr("x",Rs[0]).attr("width",Rs[1]-Rs[0]),Ro(bs)),Hr&&(Rs=S1(Hr),as.attr("y",Rs[0]).attr("height",Rs[1]-Rs[0]),ts(bs)),Co(bs)})}to.event=function(ko){ko.each(function(){var Uo=dr.of(this,arguments),qo={x:nn,y:cn,i:vn,j:Dn},cs=this.__chart__||qo;this.__chart__=qo,Do?et.select(this).transition().each("start.brush",function(){vn=cs.i,Dn=cs.j,nn=cs.x,cn=cs.y,Uo({type:"brushstart"})}).tween("brush:brush",function(){var bs=lv(nn,qo.x),as=lv(cn,qo.y);return vn=Dn=null,function(Rs){nn=qo.x=bs(Rs),cn=qo.y=as(Rs),Uo({type:"brush",mode:"resize"})}}).each("end.brush",function(){vn=qo.i,Dn=qo.j,Uo({type:"brush",mode:"resize"}),Uo({type:"brushend"})}):(Uo({type:"brushstart"}),Uo({type:"brush",mode:"resize"}),Uo({type:"brushend"}))})};function Co(ko){ko.selectAll(".resize").attr("transform",function(Uo){return"translate("+nn[+/e$/.test(Uo)]+","+cn[+/^s/.test(Uo)]+")"})}function Ro(ko){ko.select(".extent").attr("x",nn[0]),ko.selectAll(".extent,.n>rect,.s>rect").attr("width",nn[1]-nn[0])}function ts(ko){ko.select(".extent").attr("y",cn[0]),ko.selectAll(".extent,.e>rect,.w>rect").attr("height",cn[1]-cn[0])}function ls(){var ko=this,Uo=et.select(et.event.target),qo=dr.of(ko,arguments),cs=et.select(ko),bs=Uo.datum(),as=!/^(n|s)$/.test(bs)&&Lr,Rs=!/^(e|w)$/.test(bs)&&Hr,Ll=Uo.classed("extent"),Gl=Wr(ko),Rl,Hl=et.mouse(ko),Vl,Tu=et.select(j(ko)).on("keydown.brush",zu).on("keyup.brush",wp);if(et.event.changedTouches?Tu.on("touchmove.brush",Xu).on("touchend.brush",vu):Tu.on("mousemove.brush",Xu).on("mouseup.brush",vu),cs.interrupt().selectAll("*").interrupt(),Ll)Hl[0]=nn[0]-Hl[0],Hl[1]=cn[0]-Hl[1];else if(bs){var Ql=+/w$/.test(bs),xu=+/^n/.test(bs);Vl=[nn[1-Ql]-Hl[0],cn[1-xu]-Hl[1]],Hl[0]=nn[Ql],Hl[1]=cn[xu]}else et.event.altKey&&(Rl=Hl.slice());cs.style("pointer-events","none").selectAll(".resize").style("display",null),et.select("body").style("cursor",Uo.style("cursor")),qo({type:"brushstart"}),Xu();function zu(){et.event.keyCode==32&&(Ll||(Rl=null,Hl[0]-=nn[1],Hl[1]-=cn[1],Ll=2),er())}function wp(){et.event.keyCode==32&&Ll==2&&(Hl[0]+=nn[1],Hl[1]+=cn[1],Ll=0,er())}function Xu(){var ru=et.mouse(ko),Ou=!1;Vl&&(ru[0]+=Vl[0],ru[1]+=Vl[1]),Ll||(et.event.altKey?(Rl||(Rl=[(nn[0]+nn[1])/2,(cn[0]+cn[1])/2]),Hl[0]=nn[+(ru[0]"u"&&(Bt=1e-6);var Wt,ir,gr,Mr,Br;for(gr=Ft,Br=0;Br<8;Br++){if(Mr=this.sampleCurveX(gr)-Ft,Math.abs(Mr)ir)return ir;for(;WtMr?Wt=gr:ir=gr,gr=(ir-Wt)*.5+Wt}return gr},ht.prototype.solve=function(Ft,Bt){return this.sampleCurveY(this.solveCurveX(Ft,Bt))};var j=_;function _(Ft,Bt){this.x=Ft,this.y=Bt}_.prototype={clone:function(){return new _(this.x,this.y)},add:function(Ft){return this.clone()._add(Ft)},sub:function(Ft){return this.clone()._sub(Ft)},multByPoint:function(Ft){return this.clone()._multByPoint(Ft)},divByPoint:function(Ft){return this.clone()._divByPoint(Ft)},mult:function(Ft){return this.clone()._mult(Ft)},div:function(Ft){return this.clone()._div(Ft)},rotate:function(Ft){return this.clone()._rotate(Ft)},rotateAround:function(Ft,Bt){return this.clone()._rotateAround(Ft,Bt)},matMult:function(Ft){return this.clone()._matMult(Ft)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(Ft){return this.x===Ft.x&&this.y===Ft.y},dist:function(Ft){return Math.sqrt(this.distSqr(Ft))},distSqr:function(Ft){var Bt=Ft.x-this.x,Wt=Ft.y-this.y;return Bt*Bt+Wt*Wt},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(Ft){return Math.atan2(this.y-Ft.y,this.x-Ft.x)},angleWith:function(Ft){return this.angleWithSep(Ft.x,Ft.y)},angleWithSep:function(Ft,Bt){return Math.atan2(this.x*Bt-this.y*Ft,this.x*Ft+this.y*Bt)},_matMult:function(Ft){var Bt=Ft[0]*this.x+Ft[1]*this.y,Wt=Ft[2]*this.x+Ft[3]*this.y;return this.x=Bt,this.y=Wt,this},_add:function(Ft){return this.x+=Ft.x,this.y+=Ft.y,this},_sub:function(Ft){return this.x-=Ft.x,this.y-=Ft.y,this},_mult:function(Ft){return this.x*=Ft,this.y*=Ft,this},_div:function(Ft){return this.x/=Ft,this.y/=Ft,this},_multByPoint:function(Ft){return this.x*=Ft.x,this.y*=Ft.y,this},_divByPoint:function(Ft){return this.x/=Ft.x,this.y/=Ft.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var Ft=this.y;return this.y=this.x,this.x=-Ft,this},_rotate:function(Ft){var Bt=Math.cos(Ft),Wt=Math.sin(Ft),ir=Bt*this.x-Wt*this.y,gr=Wt*this.x+Bt*this.y;return this.x=ir,this.y=gr,this},_rotateAround:function(Ft,Bt){var Wt=Math.cos(Ft),ir=Math.sin(Ft),gr=Bt.x+Wt*(this.x-Bt.x)-ir*(this.y-Bt.y),Mr=Bt.y+ir*(this.x-Bt.x)+Wt*(this.y-Bt.y);return this.x=gr,this.y=Mr,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},_.convert=function(Ft){return Ft instanceof _?Ft:Array.isArray(Ft)?new _(Ft[0],Ft[1]):Ft};var rt=typeof self<"u"?self:{};function tt(Ft,Bt){if(Array.isArray(Ft)){if(!Array.isArray(Bt)||Ft.length!==Bt.length)return!1;for(var Wt=0;Wt=1)return 1;var Bt=Ft*Ft,Wt=Bt*Ft;return 4*(Ft<.5?Wt:3*(Ft-Bt)+Wt-.75)}function nt(Ft,Bt,Wt,ir){var gr=new ut(Ft,Bt,Wt,ir);return function(Mr){return gr.solve(Mr)}}var vt=nt(.25,.1,.25,1);function dt(Ft,Bt,Wt){return Math.min(Wt,Math.max(Bt,Ft))}function bt(Ft,Bt,Wt){var ir=Wt-Bt,gr=((Ft-Bt)%ir+ir)%ir+Bt;return gr===Bt?Wt:gr}function ft(Ft,Bt,Wt){if(!Ft.length)return Wt(null,[]);var ir=Ft.length,gr=new Array(Ft.length),Mr=null;Ft.forEach(function(Br,tn){Bt(Br,function(En,Mn){En&&(Mr=En),gr[tn]=Mn,--ir===0&&Wt(Mr,gr)})})}function at(Ft){var Bt=[];for(var Wt in Ft)Bt.push(Ft[Wt]);return Bt}function mt(Ft,Bt){var Wt=[];for(var ir in Ft)ir in Bt||Wt.push(ir);return Wt}function St(Ft){for(var Bt=[],Wt=arguments.length-1;Wt-- >0;)Bt[Wt]=arguments[Wt+1];for(var ir=0,gr=Bt;ir>Bt/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,Ft)}return Ft()}function wt(Ft){return Ft<=1?1:Math.pow(2,Math.ceil(Math.log(Ft)/Math.LN2))}function ct(Ft){return Ft?/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(Ft):!1}function It(Ft,Bt){Ft.forEach(function(Wt){Bt[Wt]&&(Bt[Wt]=Bt[Wt].bind(Bt))})}function At(Ft,Bt){return Ft.indexOf(Bt,Ft.length-Bt.length)!==-1}function Ot(Ft,Bt,Wt){var ir={};for(var gr in Ft)ir[gr]=Bt.call(Wt||this,Ft[gr],gr,Ft);return ir}function Pt(Ft,Bt,Wt){var ir={};for(var gr in Ft)Bt.call(Wt||this,Ft[gr],gr,Ft)&&(ir[gr]=Ft[gr]);return ir}function zt(Ft){return Array.isArray(Ft)?Ft.map(zt):typeof Ft=="object"&&Ft?Ot(Ft,zt):Ft}function Dt(Ft,Bt){for(var Wt=0;Wt=0)return!0;return!1}var Nt={};function $t(Ft){Nt[Ft]||(typeof console<"u"&&console.warn(Ft),Nt[Ft]=!0)}function Ut(Ft,Bt,Wt){return(Wt.y-Ft.y)*(Bt.x-Ft.x)>(Bt.y-Ft.y)*(Wt.x-Ft.x)}function Ht(Ft){for(var Bt=0,Wt=0,ir=Ft.length,gr=ir-1,Mr=void 0,Br=void 0;Wt@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,Wt={};if(Ft.replace(Bt,function(gr,Mr,Br,tn){var En=Br||tn;return Wt[Mr]=En?En.toLowerCase():!0,""}),Wt["max-age"]){var ir=parseInt(Wt["max-age"],10);isNaN(ir)?delete Wt["max-age"]:Wt["max-age"]=ir}return Wt}var er=null;function lr(Ft){if(er==null){var Bt=Ft.navigator?Ft.navigator.userAgent:null;er=!!Ft.safari||!!(Bt&&(/\b(iPad|iPhone|iPod)\b/.test(Bt)||Bt.match("Safari")&&!Bt.match("Chrome")))}return er}function Jt(Ft){try{var Bt=rt[Ft];return Bt.setItem("_mapbox_test_",1),Bt.removeItem("_mapbox_test_"),!0}catch{return!1}}function Yt(Ft){return rt.btoa(encodeURIComponent(Ft).replace(/%([0-9A-F]{2})/g,function(Bt,Wt){return String.fromCharCode(Number("0x"+Wt))}))}function rr(Ft){return decodeURIComponent(rt.atob(Ft).split("").map(function(Bt){return"%"+("00"+Bt.charCodeAt(0).toString(16)).slice(-2)}).join(""))}var jt=rt.performance&&rt.performance.now?rt.performance.now.bind(rt.performance):Date.now.bind(Date),ar=rt.requestAnimationFrame||rt.mozRequestAnimationFrame||rt.webkitRequestAnimationFrame||rt.msRequestAnimationFrame,sr=rt.cancelAnimationFrame||rt.mozCancelAnimationFrame||rt.webkitCancelAnimationFrame||rt.msCancelAnimationFrame,Zt,Kt,or={now:jt,frame:function(Bt){var Wt=ar(Bt);return{cancel:function(){return sr(Wt)}}},getImageData:function(Bt,Wt){Wt===void 0&&(Wt=0);var ir=rt.document.createElement("canvas"),gr=ir.getContext("2d");if(!gr)throw new Error("failed to create canvas 2d context");return ir.width=Bt.width,ir.height=Bt.height,gr.drawImage(Bt,0,0,Bt.width,Bt.height),gr.getImageData(-Wt,-Wt,Bt.width+2*Wt,Bt.height+2*Wt)},resolveURL:function(Bt){return Zt||(Zt=rt.document.createElement("a")),Zt.href=Bt,Zt.href},hardwareConcurrency:rt.navigator&&rt.navigator.hardwareConcurrency||4,get devicePixelRatio(){return rt.devicePixelRatio},get prefersReducedMotion(){return rt.matchMedia?(Kt==null&&(Kt=rt.matchMedia("(prefers-reduced-motion: reduce)")),Kt.matches):!1}},tr={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},cr={supported:!1,testSupport:Tr},mr,Ar=!1,br,Ir=!1;rt.document&&(br=rt.document.createElement("img"),br.onload=function(){mr&&_r(mr),mr=null,Ir=!0},br.onerror=function(){Ar=!0,mr=null},br.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");function Tr(Ft){Ar||!br||(Ir?_r(Ft):mr=Ft)}function _r(Ft){var Bt=Ft.createTexture();Ft.bindTexture(Ft.TEXTURE_2D,Bt);try{if(Ft.texImage2D(Ft.TEXTURE_2D,0,Ft.RGBA,Ft.RGBA,Ft.UNSIGNED_BYTE,br),Ft.isContextLost())return;cr.supported=!0}catch{}Ft.deleteTexture(Bt),Ar=!0}var Er="01";function Rr(){for(var Ft="1",Bt="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",Wt="",ir=0;ir<10;ir++)Wt+=Bt[Math.floor(Math.random()*62)];var gr=12*60*60*1e3,Mr=[Ft,Er,Wt].join(""),Br=Date.now()+gr;return{token:Mr,tokenExpiresAt:Br}}var zr=function(Bt,Wt){this._transformRequestFn=Bt,this._customAccessToken=Wt,this._createSkuToken()};zr.prototype._createSkuToken=function(){var Bt=Rr();this._skuToken=Bt.token,this._skuTokenExpiresAt=Bt.tokenExpiresAt},zr.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},zr.prototype.transformRequest=function(Bt,Wt){return this._transformRequestFn?this._transformRequestFn(Bt,Wt)||{url:Bt}:{url:Bt}},zr.prototype.normalizeStyleURL=function(Bt,Wt){if(!Or(Bt))return Bt;var ir=en(Bt);return ir.path="/styles/v1"+ir.path,this._makeAPIURL(ir,this._customAccessToken||Wt)},zr.prototype.normalizeGlyphsURL=function(Bt,Wt){if(!Or(Bt))return Bt;var ir=en(Bt);return ir.path="/fonts/v1"+ir.path,this._makeAPIURL(ir,this._customAccessToken||Wt)},zr.prototype.normalizeSourceURL=function(Bt,Wt){if(!Or(Bt))return Bt;var ir=en(Bt);return ir.path="/v4/"+ir.authority+".json",ir.params.push("secure"),this._makeAPIURL(ir,this._customAccessToken||Wt)},zr.prototype.normalizeSpriteURL=function(Bt,Wt,ir,gr){var Mr=en(Bt);return Or(Bt)?(Mr.path="/styles/v1"+Mr.path+"/sprite"+Wt+ir,this._makeAPIURL(Mr,this._customAccessToken||gr)):(Mr.path+=""+Wt+ir,Xr(Mr))},zr.prototype.normalizeTileURL=function(Bt,Wt){if(this._isSkuTokenExpired()&&this._createSkuToken(),Bt&&!Or(Bt))return Bt;var ir=en(Bt),gr=/(\.(png|jpg)\d*)(?=$)/,Mr=/^.+\/v4\//,Br=or.devicePixelRatio>=2||Wt===512?"@2x":"",tn=cr.supported?".webp":"$1";ir.path=ir.path.replace(gr,""+Br+tn),ir.path=ir.path.replace(Mr,"/"),ir.path="/v4"+ir.path;var En=this._customAccessToken||sn(ir.params)||tr.ACCESS_TOKEN;return tr.REQUIRE_ACCESS_TOKEN&&En&&this._skuToken&&ir.params.push("sku="+this._skuToken),this._makeAPIURL(ir,En)},zr.prototype.canonicalizeTileURL=function(Bt,Wt){var ir="/v4/",gr=/\.[\w]+$/,Mr=en(Bt);if(!Mr.path.match(/(^\/v4\/)/)||!Mr.path.match(gr))return Bt;var Br="mapbox://tiles/";Br+=Mr.path.replace(ir,"");var tn=Mr.params;return Wt&&(tn=tn.filter(function(En){return!En.match(/^access_token=/)})),tn.length&&(Br+="?"+tn.join("&")),Br},zr.prototype.canonicalizeTileset=function(Bt,Wt){for(var ir=Wt?Or(Wt):!1,gr=[],Mr=0,Br=Bt.tiles||[];Mr=0&&Bt.params.splice(Mr,1)}if(gr.path!=="/"&&(Bt.path=""+gr.path+Bt.path),!tr.REQUIRE_ACCESS_TOKEN)return Xr(Bt);if(Wt=Wt||tr.ACCESS_TOKEN,!Wt)throw new Error("An API access token is required to use Mapbox GL. "+ir);if(Wt[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+ir);return Bt.params=Bt.params.filter(function(Br){return Br.indexOf("access_token")===-1}),Bt.params.push("access_token="+Wt),Xr(Bt)};function Or(Ft){return Ft.indexOf("mapbox:")===0}var kr=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Nr(Ft){return kr.test(Ft)}function Qr(Ft){return Ft.indexOf("sku=")>0&&Nr(Ft)}function sn(Ft){for(var Bt=0,Wt=Ft;Bt=1&&rt.localStorage.setItem(Wt,JSON.stringify(this.eventData))}catch{$t("Unable to write to LocalStorage")}},pn.prototype.processRequests=function(Bt){},pn.prototype.postEvent=function(Bt,Wt,ir,gr){var Mr=this;if(tr.EVENTS_URL){var Br=en(tr.EVENTS_URL);Br.params.push("access_token="+(gr||tr.ACCESS_TOKEN||""));var tn={event:this.type,created:new Date(Bt).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:yt,skuId:Er,userId:this.anonId},En=Wt?St(tn,Wt):tn,Mn={url:Xr(Br),headers:{"Content-Type":"text/plain"},body:JSON.stringify([En])};this.pendingRequest=Vn(Mn,function(Pn){Mr.pendingRequest=null,ir(Pn),Mr.saveEventData(),Mr.processRequests(gr)})}},pn.prototype.queueRequest=function(Bt,Wt){this.queue.push(Bt),this.processRequests(Wt)};var Tn=function(Ft){function Bt(){Ft.call(this,"map.load"),this.success={},this.skuToken=""}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype.postMapLoadEvent=function(ir,gr,Mr,Br){this.skuToken=Mr,(tr.EVENTS_URL&&Br||tr.ACCESS_TOKEN&&Array.isArray(ir)&&ir.some(function(tn){return Or(tn)||Nr(tn)}))&&this.queueRequest({id:gr,timestamp:Date.now()},Br)},Bt.prototype.processRequests=function(ir){var gr=this;if(!(this.pendingRequest||this.queue.length===0)){var Mr=this.queue.shift(),Br=Mr.id,tn=Mr.timestamp;Br&&this.success[Br]||(this.anonId||this.fetchEventData(),ct(this.anonId)||(this.anonId=kt()),this.postEvent(tn,{skuToken:this.skuToken},function(En){En||Br&&(gr.success[Br]=!0)},ir))}},Bt}(pn),Zr=function(Ft){function Bt(Wt){Ft.call(this,"appUserTurnstile"),this._customAccessToken=Wt}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype.postTurnstileEvent=function(ir,gr){tr.EVENTS_URL&&tr.ACCESS_TOKEN&&Array.isArray(ir)&&ir.some(function(Mr){return Or(Mr)||Nr(Mr)})&&this.queueRequest(Date.now(),gr)},Bt.prototype.processRequests=function(ir){var gr=this;if(!(this.pendingRequest||this.queue.length===0)){(!this.anonId||!this.eventData.lastSuccess||!this.eventData.tokenU)&&this.fetchEventData();var Mr=mn(tr.ACCESS_TOKEN),Br=Mr?Mr.u:tr.ACCESS_TOKEN,tn=Br!==this.eventData.tokenU;ct(this.anonId)||(this.anonId=kt(),tn=!0);var En=this.queue.shift();if(this.eventData.lastSuccess){var Mn=new Date(this.eventData.lastSuccess),Pn=new Date(En),Qn=(En-this.eventData.lastSuccess)/(24*60*60*1e3);tn=tn||Qn>=1||Qn<-1||Mn.getDate()!==Pn.getDate()}else tn=!0;if(!tn)return this.processRequests();this.postEvent(En,{"enabled.telemetry":!1},function(ao){ao||(gr.eventData.lastSuccess=En,gr.eventData.tokenU=Br)},ir)}},Bt}(pn),Fr=new Zr,Ur=Fr.postTurnstileEvent.bind(Fr),Wr=new Tn,Gr=Wr.postMapLoadEvent.bind(Wr),wr="mapbox-tiles",pr=500,Dr=50,Sr=1e3*60*7,ur;function xr(){rt.caches&&!ur&&(ur=rt.caches.open(wr))}var Pr;function Vr(Ft,Bt){if(Pr===void 0)try{new Response(new ReadableStream),Pr=!0}catch{Pr=!1}Pr?Bt(Ft.body):Ft.blob().then(Bt)}function qr(Ft,Bt,Wt){if(xr(),!!ur){var ir={status:Bt.status,statusText:Bt.statusText,headers:new rt.Headers};Bt.headers.forEach(function(Br,tn){return ir.headers.set(tn,Br)});var gr=qt(Bt.headers.get("Cache-Control")||"");if(!gr["no-store"]){gr["max-age"]&&ir.headers.set("Expires",new Date(Wt+gr["max-age"]*1e3).toUTCString());var Mr=new Date(ir.headers.get("Expires")).getTime()-Wt;MrDate.now()&&!Wt["no-cache"]}var fn=1/0;function bn(Ft){fn++,fn>Dr&&(Ft.getActor().send("enforceCacheSizeLimit",pr),fn=0)}function Un(Ft){xr(),ur&&ur.then(function(Bt){Bt.keys().then(function(Wt){for(var ir=0;ir=200&&Wt.status<300||Wt.status===0)&&Wt.response!==null){var gr=Wt.response;if(Ft.type==="json")try{gr=JSON.parse(Wt.response)}catch(Mr){return Bt(Mr)}Bt(null,gr,Wt.getResponseHeader("Cache-Control"),Wt.getResponseHeader("Expires"))}else Bt(new ba(Wt.statusText,Wt.status,Ft.url))},Wt.send(Ft.body),{cancel:function(){return Wt.abort()}}}var Ln=function(Ft,Bt){if(!hn(Ft.url)){if(rt.fetch&&rt.Request&&rt.AbortController&&rt.Request.prototype.hasOwnProperty("signal"))return wn(Ft,Bt);if(Xt()&&self.worker&&self.worker.actor){var Wt=!0;return self.worker.actor.send("getResource",Ft,Bt,void 0,Wt)}}return In(Ft,Bt)},Xn=function(Ft,Bt){return Ln(St(Ft,{type:"json"}),Bt)},Wn=function(Ft,Bt){return Ln(St(Ft,{type:"arrayBuffer"}),Bt)},Vn=function(Ft,Bt){return Ln(St(Ft,{method:"POST"}),Bt)};function ga(Ft){var Bt=rt.document.createElement("a");return Bt.href=Ft,Bt.protocol===rt.document.location.protocol&&Bt.host===rt.document.location.host}var fo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function qn(Ft,Bt,Wt,ir){var gr=new rt.Image,Mr=rt.URL;gr.onload=function(){Bt(null,gr),Mr.revokeObjectURL(gr.src),gr.onload=null,rt.requestAnimationFrame(function(){gr.src=fo})},gr.onerror=function(){return Bt(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var Br=new rt.Blob([new Uint8Array(Ft)],{type:"image/png"});gr.cacheControl=Wt,gr.expires=ir,gr.src=Ft.byteLength?Mr.createObjectURL(Br):fo}function po(Ft,Bt){var Wt=new rt.Blob([new Uint8Array(Ft)],{type:"image/png"});rt.createImageBitmap(Wt).then(function(ir){Bt(null,ir)}).catch(function(ir){Bt(new Error("Could not load image because of "+ir.message+". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))})}var Yr,jr,$n=function(){Yr=[],jr=0};$n();var Bn=function(Ft,Bt){if(cr.supported&&(Ft.headers||(Ft.headers={}),Ft.headers.accept="image/webp,*/*"),jr>=tr.MAX_PARALLEL_IMAGE_REQUESTS){var Wt={requestParameters:Ft,callback:Bt,cancelled:!1,cancel:function(){this.cancelled=!0}};return Yr.push(Wt),Wt}jr++;var ir=!1,gr=function(){if(!ir)for(ir=!0,jr--;Yr.length&&jr0||this._oneTimeListeners&&this._oneTimeListeners[Bt]&&this._oneTimeListeners[Bt].length>0||this._eventedParent&&this._eventedParent.listens(Bt)},ho.prototype.setEventedParent=function(Bt,Wt){return this._eventedParent=Bt,this._eventedParentData=Wt,this};var go=8,_o={version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},co={"*":{type:"source"}},zo=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],Io={type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},Lo={type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},vs={type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},Zo={type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},Ls={type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},Ds={type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},bo={id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},No=["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],Yo={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Oo={"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},ys={"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},gs={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},zs={"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Us={"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Qs={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Fl={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Jl={type:"array",value:"*"},nu={type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},Yl={type:"enum",values:{Point:{},LineString:{},Polygon:{}}},Zs={type:"array",minimum:0,maximum:24,value:["number","color"],length:2},xo={type:"array",value:"*",minimum:1},Vo={anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},Go=["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],ms={"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},Ws={"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},ws={"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},Is={"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Xs={"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},Cl={"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Wl={"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},yu={"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},yo={duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},Fo={"*":{type:"string"}},To={$version:go,$root:_o,sources:co,source:zo,source_vector:Io,source_raster:Lo,source_raster_dem:vs,source_geojson:Zo,source_video:Ls,source_image:Ds,layer:bo,layout:No,layout_background:Yo,layout_fill:Oo,layout_circle:ys,layout_heatmap:gs,"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:zs,layout_symbol:Us,layout_raster:Qs,layout_hillshade:Fl,filter:Jl,filter_operator:nu,geometry_type:Yl,function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:Zs,expression:xo,light:Vo,paint:Go,paint_fill:ms,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:Ws,paint_circle:ws,paint_heatmap:Is,paint_symbol:Xs,paint_raster:Cl,paint_hillshade:Wl,paint_background:yu,transition:yo,"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:Fo},Bo=function(Bt,Wt,ir,gr){this.message=(Bt?Bt+": ":"")+ir,gr&&(this.identifier=gr),Wt!=null&&Wt.__line__&&(this.line=Wt.__line__)};function Es(Ft){var Bt=Ft.key,Wt=Ft.value;return Wt?[new Bo(Bt,Wt,"constants have been deprecated as of v8")]:[]}function Ps(Ft){for(var Bt=[],Wt=arguments.length-1;Wt-- >0;)Bt[Wt]=arguments[Wt+1];for(var ir=0,gr=Bt;ir":Ft.itemType.kind==="value"?"array":"array<"+Bt+">"}else return Ft.kind}var Sv=[Wo,rs,_s,Gs,Cs,Xl,Ks,ju(Ys),Zl];function nv(Ft,Bt){if(Bt.kind==="error")return null;if(Ft.kind==="array"){if(Bt.kind==="array"&&(Bt.N===0&&Bt.itemType.kind==="value"||!nv(Ft.itemType,Bt.itemType))&&(typeof Ft.N!="number"||Ft.N===Bt.N))return null}else{if(Ft.kind===Bt.kind)return null;if(Ft.kind==="value")for(var Wt=0,ir=Sv;Wt255?255:Mn}function gr(Mn){return Mn<0?0:Mn>1?1:Mn}function Mr(Mn){return Mn[Mn.length-1]==="%"?ir(parseFloat(Mn)/100*255):ir(parseInt(Mn))}function Br(Mn){return Mn[Mn.length-1]==="%"?gr(parseFloat(Mn)/100):gr(parseFloat(Mn))}function tn(Mn,Pn,Qn){return Qn<0?Qn+=1:Qn>1&&(Qn-=1),Qn*6<1?Mn+(Pn-Mn)*Qn*6:Qn*2<1?Pn:Qn*3<2?Mn+(Pn-Mn)*(2/3-Qn)*6:Mn}function En(Mn){var Pn=Mn.replace(/ /g,"").toLowerCase();if(Pn in Wt)return Wt[Pn].slice();if(Pn[0]==="#"){if(Pn.length===4){var Qn=parseInt(Pn.substr(1),16);return Qn>=0&&Qn<=4095?[(Qn&3840)>>4|(Qn&3840)>>8,Qn&240|(Qn&240)>>4,Qn&15|(Qn&15)<<4,1]:null}else if(Pn.length===7){var Qn=parseInt(Pn.substr(1),16);return Qn>=0&&Qn<=16777215?[(Qn&16711680)>>16,(Qn&65280)>>8,Qn&255,1]:null}return null}var ao=Pn.indexOf("("),$a=Pn.indexOf(")");if(ao!==-1&&$a+1===Pn.length){var Eo=Pn.substr(0,ao),Ho=Pn.substr(ao+1,$a-(ao+1)).split(","),ds=1;switch(Eo){case"rgba":if(Ho.length!==4)return null;ds=Br(Ho.pop());case"rgb":return Ho.length!==3?null:[Mr(Ho[0]),Mr(Ho[1]),Mr(Ho[2]),ds];case"hsla":if(Ho.length!==4)return null;ds=Br(Ho.pop());case"hsl":if(Ho.length!==3)return null;var ss=(parseFloat(Ho[0])%360+360)%360/360,Bs=Br(Ho[1]),As=Br(Ho[2]),Os=As<=.5?As*(Bs+1):As+Bs-As*Bs,Vs=As*2-Os;return[ir(tn(Vs,Os,ss+1/3)*255),ir(tn(Vs,Os,ss)*255),ir(tn(Vs,Os,ss-1/3)*255),ds];default:return null}}return null}try{Bt.parseCSSColor=En}catch{}}),Bm=Fm.parseCSSColor,Bu=function(Bt,Wt,ir,gr){gr===void 0&&(gr=1),this.r=Bt,this.g=Wt,this.b=ir,this.a=gr};Bu.parse=function(Bt){if(Bt){if(Bt instanceof Bu)return Bt;if(typeof Bt=="string"){var Wt=Bm(Bt);if(Wt)return new Bu(Wt[0]/255*Wt[3],Wt[1]/255*Wt[3],Wt[2]/255*Wt[3],Wt[3])}}},Bu.prototype.toString=function(){var Bt=this.toArray(),Wt=Bt[0],ir=Bt[1],gr=Bt[2],Mr=Bt[3];return"rgba("+Math.round(Wt)+","+Math.round(ir)+","+Math.round(gr)+","+Mr+")"},Bu.prototype.toArray=function(){var Bt=this,Wt=Bt.r,ir=Bt.g,gr=Bt.b,Mr=Bt.a;return Mr===0?[0,0,0,0]:[Wt*255/Mr,ir*255/Mr,gr*255/Mr,Mr]},Bu.black=new Bu(0,0,0,1),Bu.white=new Bu(1,1,1,1),Bu.transparent=new Bu(0,0,0,0),Bu.red=new Bu(1,0,0,1);var Qv=function(Bt,Wt,ir){Bt?this.sensitivity=Wt?"variant":"case":this.sensitivity=Wt?"accent":"base",this.locale=ir,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Qv.prototype.compare=function(Bt,Wt){return this.collator.compare(Bt,Wt)},Qv.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var zm=function(Bt,Wt,ir,gr,Mr){this.text=Bt,this.image=Wt,this.scale=ir,this.fontStack=gr,this.textColor=Mr},Op=function(Bt){this.sections=Bt};Op.fromString=function(Bt){return new Op([new zm(Bt,null,null,null,null)])},Op.prototype.isEmpty=function(){return this.sections.length===0?!0:!this.sections.some(function(Bt){return Bt.text.length!==0||Bt.image&&Bt.image.name.length!==0})},Op.factory=function(Bt){return Bt instanceof Op?Bt:Op.fromString(Bt)},Op.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(Bt){return Bt.text}).join("")},Op.prototype.serialize=function(){for(var Bt=["format"],Wt=0,ir=this.sections;Wt=0&&Ft<=255&&typeof Bt=="number"&&Bt>=0&&Bt<=255&&typeof Wt=="number"&&Wt>=0&&Wt<=255)){var gr=typeof ir=="number"?[Ft,Bt,Wt,ir]:[Ft,Bt,Wt];return"Invalid rgba value ["+gr.join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}return typeof ir>"u"||typeof ir=="number"&&ir>=0&&ir<=1?null:"Invalid rgba value ["+[Ft,Bt,Wt,ir].join(", ")+"]: 'a' must be between 0 and 1."}function f1(Ft){if(Ft===null)return!0;if(typeof Ft=="string")return!0;if(typeof Ft=="boolean")return!0;if(typeof Ft=="number")return!0;if(Ft instanceof Bu)return!0;if(Ft instanceof Qv)return!0;if(Ft instanceof Op)return!0;if(Ft instanceof av)return!0;if(Array.isArray(Ft)){for(var Bt=0,Wt=Ft;Bt2){var tn=Bt[1];if(typeof tn!="string"||!(tn in h1)||tn==="object")return Wt.error('The item type argument of "array" must be one of string, number, boolean',1);Br=h1[tn],ir++}else Br=Ys;var En;if(Bt.length>3){if(Bt[2]!==null&&(typeof Bt[2]!="number"||Bt[2]<0||Bt[2]!==Math.floor(Bt[2])))return Wt.error('The length argument to "array" must be a positive integer literal',2);En=Bt[2],ir++}gr=ju(Br,En)}else gr=h1[Mr];for(var Mn=[];ir1)&&Wt.push(gr)}}return Wt.concat(this.args.map(function(Mr){return Mr.serialize()}))};var op=function(Bt){this.type=Xl,this.sections=Bt};op.parse=function(Bt,Wt){if(Bt.length<2)return Wt.error("Expected at least one argument.");var ir=Bt[1];if(!Array.isArray(ir)&&typeof ir=="object")return Wt.error("First argument must be an image or text section.");for(var gr=[],Mr=!1,Br=1;Br<=Bt.length-1;++Br){var tn=Bt[Br];if(Mr&&typeof tn=="object"&&!Array.isArray(tn)){Mr=!1;var En=null;if(tn["font-scale"]&&(En=Wt.parse(tn["font-scale"],1,rs),!En))return null;var Mn=null;if(tn["text-font"]&&(Mn=Wt.parse(tn["text-font"],1,ju(_s)),!Mn))return null;var Pn=null;if(tn["text-color"]&&(Pn=Wt.parse(tn["text-color"],1,Cs),!Pn))return null;var Qn=gr[gr.length-1];Qn.scale=En,Qn.font=Mn,Qn.textColor=Pn}else{var ao=Wt.parse(Bt[Br],1,Ys);if(!ao)return null;var $a=ao.type.kind;if($a!=="string"&&$a!=="value"&&$a!=="null"&&$a!=="resolvedImage")return Wt.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");Mr=!0,gr.push({content:ao,scale:null,font:null,textColor:null})}}return new op(gr)},op.prototype.evaluate=function(Bt){var Wt=function(ir){var gr=ir.content.evaluate(Bt);return Ap(gr)===Zl?new zm("",gr,null,null,null):new zm(d1(gr),null,ir.scale?ir.scale.evaluate(Bt):null,ir.font?ir.font.evaluate(Bt).join(","):null,ir.textColor?ir.textColor.evaluate(Bt):null)};return new Op(this.sections.map(Wt))},op.prototype.eachChild=function(Bt){for(var Wt=0,ir=this.sections;Wt-1),ir},lv.prototype.eachChild=function(Bt){Bt(this.input)},lv.prototype.outputDefined=function(){return!1},lv.prototype.serialize=function(){return["image",this.input.serialize()]};var p1={"to-boolean":Gs,"to-color":Cs,"to-number":rs,"to-string":_s},uv=function(Bt,Wt){this.type=Bt,this.args=Wt};uv.parse=function(Bt,Wt){if(Bt.length<2)return Wt.error("Expected at least one argument.");var ir=Bt[0];if((ir==="to-boolean"||ir==="to-string")&&Bt.length!==2)return Wt.error("Expected one argument.");for(var gr=p1[ir],Mr=[],Br=1;Br4?ir="Invalid rbga value "+JSON.stringify(Wt)+": expected an array containing either three or four numeric values.":ir=C0(Wt[0],Wt[1],Wt[2],Wt[3]),!ir))return new Bu(Wt[0]/255,Wt[1]/255,Wt[2]/255,Wt[3])}throw new kp(ir||"Could not parse color from value '"+(typeof Wt=="string"?Wt:String(JSON.stringify(Wt)))+"'")}else if(this.type.kind==="number"){for(var En=null,Mn=0,Pn=this.args;Mn=Bt[2]||Ft[1]<=Bt[1]||Ft[3]>=Bt[3])}function sy(Ft,Bt){var Wt=oy(Ft[0]),ir=wy(Ft[1]),gr=Math.pow(2,Bt.z);return[Math.round(Wt*gr*_g),Math.round(ir*gr*_g)]}function I0(Ft,Bt,Wt){var ir=Ft[0]-Bt[0],gr=Ft[1]-Bt[1],Mr=Ft[0]-Wt[0],Br=Ft[1]-Wt[1];return ir*Br-Mr*gr===0&&ir*Mr<=0&&gr*Br<=0}function mm(Ft,Bt,Wt){return Bt[1]>Ft[1]!=Wt[1]>Ft[1]&&Ft[0]<(Wt[0]-Bt[0])*(Ft[1]-Bt[1])/(Wt[1]-Bt[1])+Bt[0]}function $m(Ft,Bt){for(var Wt=!1,ir=0,gr=Bt.length;ir0&&Qn<0||Pn<0&&Qn>0}function Pv(Ft,Bt,Wt,ir){var gr=[Bt[0]-Ft[0],Bt[1]-Ft[1]],Mr=[ir[0]-Wt[0],ir[1]-Wt[1]];return Ry(Mr,gr)===0?!1:!!(H0(Ft,Bt,Wt,ir)&&H0(Wt,ir,Ft,Bt))}function k0(Ft,Bt,Wt){for(var ir=0,gr=Wt;irWt[2]){var gr=ir*.5,Mr=Ft[0]-Wt[0]>gr?-ir:Wt[0]-Ft[0]>gr?ir:0;Mr===0&&(Mr=Ft[0]-Wt[2]>gr?-ir:Wt[2]-Ft[0]>gr?ir:0),Ft[0]+=Mr}M0(Bt,Ft)}function m1(Ft){Ft[0]=Ft[1]=1/0,Ft[2]=Ft[3]=-1/0}function Ts(Ft,Bt,Wt,ir){for(var gr=Math.pow(2,ir.z)*_g,Mr=[ir.x*_g,ir.y*_g],Br=[],tn=0,En=Ft;tn=0)return!1;var Wt=!0;return Ft.eachChild(function(ir){Wt&&!np(ir,Bt)&&(Wt=!1)}),Wt}var e0=function(Bt,Wt){this.type=Wt.type,this.name=Bt,this.boundExpression=Wt};e0.parse=function(Bt,Wt){if(Bt.length!==2||typeof Bt[1]!="string")return Wt.error("'var' expression requires exactly one string literal argument.");var ir=Bt[1];return Wt.scope.has(ir)?new e0(ir,Wt.scope.get(ir)):Wt.error('Unknown variable "'+ir+'". Make sure "'+ir+'" has been bound in an enclosing "let" expression before using it.',1)},e0.prototype.evaluate=function(Bt){return this.boundExpression.evaluate(Bt)},e0.prototype.eachChild=function(){},e0.prototype.outputDefined=function(){return!1},e0.prototype.serialize=function(){return["var",this.name]};var t0=function(Bt,Wt,ir,gr,Mr){Wt===void 0&&(Wt=[]),gr===void 0&&(gr=new Qo),Mr===void 0&&(Mr=[]),this.registry=Bt,this.path=Wt,this.key=Wt.map(function(Br){return"["+Br+"]"}).join(""),this.scope=gr,this.errors=Mr,this.expectedType=ir};t0.prototype.parse=function(Bt,Wt,ir,gr,Mr){return Mr===void 0&&(Mr={}),Wt?this.concat(Wt,ir,gr)._parse(Bt,Mr):this._parse(Bt,Mr)},t0.prototype._parse=function(Bt,Wt){(Bt===null||typeof Bt=="string"||typeof Bt=="boolean"||typeof Bt=="number")&&(Bt=["literal",Bt]);function ir(Pn,Qn,ao){return ao==="assert"?new $p(Qn,[Pn]):ao==="coerce"?new uv(Qn,[Pn]):Pn}if(Array.isArray(Bt)){if(Bt.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var gr=Bt[0];if(typeof gr!="string")return this.error("Expression name must be a string, but found "+typeof gr+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var Mr=this.registry[gr];if(Mr){var Br=Mr.parse(Bt,this);if(!Br)return null;if(this.expectedType){var tn=this.expectedType,En=Br.type;if((tn.kind==="string"||tn.kind==="number"||tn.kind==="boolean"||tn.kind==="object"||tn.kind==="array")&&En.kind==="value")Br=ir(Br,tn,Wt.typeAnnotation||"assert");else if((tn.kind==="color"||tn.kind==="formatted"||tn.kind==="resolvedImage")&&(En.kind==="value"||En.kind==="string"))Br=ir(Br,tn,Wt.typeAnnotation||"coerce");else if(this.checkSubtype(tn,En))return null}if(!(Br instanceof _p)&&Br.type.kind!=="resolvedImage"&&vv(Br)){var Mn=new qv;try{Br=new _p(Br.type,Br.evaluate(Mn))}catch(Pn){return this.error(Pn.message),null}}return Br}return this.error('Unknown expression "'+gr+'". If you wanted a literal array, use ["literal", [...]].',0)}else return typeof Bt>"u"?this.error("'undefined' value invalid. Use null instead."):typeof Bt=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof Bt+" instead.")},t0.prototype.concat=function(Bt,Wt,ir){var gr=typeof Bt=="number"?this.path.concat(Bt):this.path,Mr=ir?this.scope.concat(ir):this.scope;return new t0(this.registry,gr,Wt||null,Mr,this.errors)},t0.prototype.error=function(Bt){for(var Wt=[],ir=arguments.length-1;ir-- >0;)Wt[ir]=arguments[ir+1];var gr=""+this.key+Wt.map(function(Mr){return"["+Mr+"]"}).join("");this.errors.push(new wo(gr,Bt))},t0.prototype.checkSubtype=function(Bt,Wt){var ir=nv(Bt,Wt);return ir&&this.error(ir),ir};function vv(Ft){if(Ft instanceof e0)return vv(Ft.boundExpression);if(Ft instanceof Hp&&Ft.name==="error")return!1;if(Ft instanceof R0)return!1;if(Ft instanceof Su)return!1;var Bt=Ft instanceof uv||Ft instanceof $p,Wt=!0;return Ft.eachChild(function(ir){Bt?Wt=Wt&&vv(ir):Wt=Wt&&ir instanceof _p}),Wt?Yu(Ft)&&np(Ft,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]):!1}function p0(Ft,Bt){for(var Wt=Ft.length-1,ir=0,gr=Wt,Mr=0,Br,tn;ir<=gr;)if(Mr=Math.floor((ir+gr)/2),Br=Ft[Mr],tn=Ft[Mr+1],Br<=Bt){if(Mr===Wt||BtBt)gr=Mr-1;else throw new kp("Input is not a number.");return 0}var $v=function(Bt,Wt,ir){this.type=Bt,this.input=Wt,this.labels=[],this.outputs=[];for(var gr=0,Mr=ir;gr=tn)return Wt.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',Mn);var Qn=Wt.parse(En,Pn,Mr);if(!Qn)return null;Mr=Mr||Qn.type,gr.push([tn,Qn])}return new $v(Mr,ir,gr)},$v.prototype.evaluate=function(Bt){var Wt=this.labels,ir=this.outputs;if(Wt.length===1)return ir[0].evaluate(Bt);var gr=this.input.evaluate(Bt);if(gr<=Wt[0])return ir[0].evaluate(Bt);var Mr=Wt.length;if(gr>=Wt[Mr-1])return ir[Mr-1].evaluate(Bt);var Br=p0(Wt,gr);return ir[Br].evaluate(Bt)},$v.prototype.eachChild=function(Bt){Bt(this.input);for(var Wt=0,ir=this.outputs;Wt0&&Bt.push(this.labels[Wt]),Bt.push(this.outputs[Wt].serialize());return Bt};function up(Ft,Bt,Wt){return Ft*(1-Wt)+Bt*Wt}function y1(Ft,Bt,Wt){return new Bu(up(Ft.r,Bt.r,Wt),up(Ft.g,Bt.g,Wt),up(Ft.b,Bt.b,Wt),up(Ft.a,Bt.a,Wt))}function ym(Ft,Bt,Wt){return Ft.map(function(ir,gr){return up(ir,Bt[gr],Wt)})}var ep=Object.freeze({__proto__:null,number:up,color:y1,array:ym}),x1=.95047,G0=1,Zp=1.08883,xm=4/29,b1=6/29,bm=3*b1*b1,Em=b1*b1*b1,v0=Math.PI/180,E1=180/Math.PI;function Tm(Ft){return Ft>Em?Math.pow(Ft,.3333333333333333):Ft/bm+xm}function T1(Ft){return Ft>b1?Ft*Ft*Ft:bm*(Ft-xm)}function V0(Ft){return 255*(Ft<=.0031308?12.92*Ft:1.055*Math.pow(Ft,.4166666666666667)-.055)}function j1(Ft){return Ft/=255,Ft<=.04045?Ft/12.92:Math.pow((Ft+.055)/1.055,2.4)}function L0(Ft){var Bt=j1(Ft.r),Wt=j1(Ft.g),ir=j1(Ft.b),gr=Tm((.4124564*Bt+.3575761*Wt+.1804375*ir)/x1),Mr=Tm((.2126729*Bt+.7151522*Wt+.072175*ir)/G0),Br=Tm((.0193339*Bt+.119192*Wt+.9503041*ir)/Zp);return{l:116*Mr-16,a:500*(gr-Mr),b:200*(Mr-Br),alpha:Ft.a}}function Y1(Ft){var Bt=(Ft.l+16)/116,Wt=isNaN(Ft.a)?Bt:Bt+Ft.a/500,ir=isNaN(Ft.b)?Bt:Bt-Ft.b/200;return Bt=G0*T1(Bt),Wt=x1*T1(Wt),ir=Zp*T1(ir),new Bu(V0(3.2404542*Wt-1.5371385*Bt-.4985314*ir),V0(-.969266*Wt+1.8760108*Bt+.041556*ir),V0(.0556434*Wt-.2040259*Bt+1.0572252*ir),Ft.alpha)}function qu(Ft,Bt,Wt){return{l:up(Ft.l,Bt.l,Wt),a:up(Ft.a,Bt.a,Wt),b:up(Ft.b,Bt.b,Wt),alpha:up(Ft.alpha,Bt.alpha,Wt)}}function D0(Ft){var Bt=L0(Ft),Wt=Bt.l,ir=Bt.a,gr=Bt.b,Mr=Math.atan2(gr,ir)*E1;return{h:Mr<0?Mr+360:Mr,c:Math.sqrt(ir*ir+gr*gr),l:Wt,alpha:Ft.a}}function gv(Ft){var Bt=Ft.h*v0,Wt=Ft.c,ir=Ft.l;return Y1({l:ir,a:Math.cos(Bt)*Wt,b:Math.sin(Bt)*Wt,alpha:Ft.alpha})}function uy(Ft,Bt,Wt){var ir=Bt-Ft;return Ft+Wt*(ir>180||ir<-180?ir-360*Math.round(ir/360):ir)}function Hm(Ft,Bt,Wt){return{h:uy(Ft.h,Bt.h,Wt),c:up(Ft.c,Bt.c,Wt),l:up(Ft.l,Bt.l,Wt),alpha:up(Ft.alpha,Bt.alpha,Wt)}}var W0={forward:L0,reverse:Y1,interpolate:qu},Hv={forward:D0,reverse:gv,interpolate:Hm},j0=Object.freeze({__proto__:null,lab:W0,hcl:Hv}),Ep=function(Bt,Wt,ir,gr,Mr){this.type=Bt,this.operator=Wt,this.interpolation=ir,this.input=gr,this.labels=[],this.outputs=[];for(var Br=0,tn=Mr;Br1}))return Wt.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);gr={name:"cubic-bezier",controlPoints:En}}else return Wt.error("Unknown interpolation type "+String(gr[0]),1,0);if(Bt.length-1<4)return Wt.error("Expected at least 4 arguments, but found only "+(Bt.length-1)+".");if((Bt.length-1)%2!==0)return Wt.error("Expected an even number of arguments.");if(Mr=Wt.parse(Mr,2,rs),!Mr)return null;var Mn=[],Pn=null;ir==="interpolate-hcl"||ir==="interpolate-lab"?Pn=Cs:Wt.expectedType&&Wt.expectedType.kind!=="value"&&(Pn=Wt.expectedType);for(var Qn=0;Qn=ao)return Wt.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',Eo);var ds=Wt.parse($a,Ho,Pn);if(!ds)return null;Pn=Pn||ds.type,Mn.push([ao,ds])}return Pn.kind!=="number"&&Pn.kind!=="color"&&!(Pn.kind==="array"&&Pn.itemType.kind==="number"&&typeof Pn.N=="number")?Wt.error("Type "+Vu(Pn)+" is not interpolatable."):new Ep(Pn,ir,gr,Mr,Mn)},Ep.prototype.evaluate=function(Bt){var Wt=this.labels,ir=this.outputs;if(Wt.length===1)return ir[0].evaluate(Bt);var gr=this.input.evaluate(Bt);if(gr<=Wt[0])return ir[0].evaluate(Bt);var Mr=Wt.length;if(gr>=Wt[Mr-1])return ir[Mr-1].evaluate(Bt);var Br=p0(Wt,gr),tn=Wt[Br],En=Wt[Br+1],Mn=Ep.interpolationFactor(this.interpolation,gr,tn,En),Pn=ir[Br].evaluate(Bt),Qn=ir[Br+1].evaluate(Bt);return this.operator==="interpolate"?ep[this.type.kind.toLowerCase()](Pn,Qn,Mn):this.operator==="interpolate-hcl"?Hv.reverse(Hv.interpolate(Hv.forward(Pn),Hv.forward(Qn),Mn)):W0.reverse(W0.interpolate(W0.forward(Pn),W0.forward(Qn),Mn))},Ep.prototype.eachChild=function(Bt){Bt(this.input);for(var Wt=0,ir=this.outputs;Wt=ir.length)throw new kp("Array index out of bounds: "+Wt+" > "+(ir.length-1)+".");if(Wt!==Math.floor(Wt))throw new kp("Array index must be an integer, but found "+Wt+" instead.");return ir[Wt]},Y0.prototype.eachChild=function(Bt){Bt(this.index),Bt(this.input)},Y0.prototype.outputDefined=function(){return!1},Y0.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var pp=function(Bt,Wt){this.type=Gs,this.needle=Bt,this.haystack=Wt};pp.parse=function(Bt,Wt){if(Bt.length!==3)return Wt.error("Expected 2 arguments, but found "+(Bt.length-1)+" instead.");var ir=Wt.parse(Bt[1],1,Ys),gr=Wt.parse(Bt[2],2,Ys);return!ir||!gr?null:Kp(ir.type,[Gs,_s,rs,Wo,Ys])?new pp(ir,gr):Wt.error("Expected first argument to be of type boolean, string, number or null, but found "+Vu(ir.type)+" instead")},pp.prototype.evaluate=function(Bt){var Wt=this.needle.evaluate(Bt),ir=this.haystack.evaluate(Bt);if(!ir)return!1;if(!c1(Wt,["boolean","string","number","null"]))throw new kp("Expected first argument to be of type boolean, string, number or null, but found "+Vu(Ap(Wt))+" instead.");if(!c1(ir,["string","array"]))throw new kp("Expected second argument to be of type array or string, but found "+Vu(Ap(ir))+" instead.");return ir.indexOf(Wt)>=0},pp.prototype.eachChild=function(Bt){Bt(this.needle),Bt(this.haystack)},pp.prototype.outputDefined=function(){return!0},pp.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var vp=function(Bt,Wt,ir){this.type=rs,this.needle=Bt,this.haystack=Wt,this.fromIndex=ir};vp.parse=function(Bt,Wt){if(Bt.length<=2||Bt.length>=5)return Wt.error("Expected 3 or 4 arguments, but found "+(Bt.length-1)+" instead.");var ir=Wt.parse(Bt[1],1,Ys),gr=Wt.parse(Bt[2],2,Ys);if(!ir||!gr)return null;if(!Kp(ir.type,[Gs,_s,rs,Wo,Ys]))return Wt.error("Expected first argument to be of type boolean, string, number or null, but found "+Vu(ir.type)+" instead");if(Bt.length===4){var Mr=Wt.parse(Bt[3],3,rs);return Mr?new vp(ir,gr,Mr):null}else return new vp(ir,gr)},vp.prototype.evaluate=function(Bt){var Wt=this.needle.evaluate(Bt),ir=this.haystack.evaluate(Bt);if(!c1(Wt,["boolean","string","number","null"]))throw new kp("Expected first argument to be of type boolean, string, number or null, but found "+Vu(Ap(Wt))+" instead.");if(!c1(ir,["string","array"]))throw new kp("Expected second argument to be of type array or string, but found "+Vu(Ap(ir))+" instead.");if(this.fromIndex){var gr=this.fromIndex.evaluate(Bt);return ir.indexOf(Wt,gr)}return ir.indexOf(Wt)},vp.prototype.eachChild=function(Bt){Bt(this.needle),Bt(this.haystack),this.fromIndex&&Bt(this.fromIndex)},vp.prototype.outputDefined=function(){return!1},vp.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var Bt=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),Bt]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var m0=function(Bt,Wt,ir,gr,Mr,Br){this.inputType=Bt,this.type=Wt,this.input=ir,this.cases=gr,this.outputs=Mr,this.otherwise=Br};m0.parse=function(Bt,Wt){if(Bt.length<5)return Wt.error("Expected at least 4 arguments, but found only "+(Bt.length-1)+".");if(Bt.length%2!==1)return Wt.error("Expected an even number of arguments.");var ir,gr;Wt.expectedType&&Wt.expectedType.kind!=="value"&&(gr=Wt.expectedType);for(var Mr={},Br=[],tn=2;tnNumber.MAX_SAFE_INTEGER)return Pn.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof $a=="number"&&Math.floor($a)!==$a)return Pn.error("Numeric branch labels must be integer values.");if(!ir)ir=Ap($a);else if(Pn.checkSubtype(ir,Ap($a)))return null;if(typeof Mr[String($a)]<"u")return Pn.error("Branch labels must be unique.");Mr[String($a)]=Br.length}var Eo=Wt.parse(Mn,tn,gr);if(!Eo)return null;gr=gr||Eo.type,Br.push(Eo)}var Ho=Wt.parse(Bt[1],1,Ys);if(!Ho)return null;var ds=Wt.parse(Bt[Bt.length-1],Bt.length-1,gr);return!ds||Ho.type.kind!=="value"&&Wt.concat(1).checkSubtype(ir,Ho.type)?null:new m0(ir,gr,Ho,Mr,Br,ds)},m0.prototype.evaluate=function(Bt){var Wt=this.input.evaluate(Bt),ir=Ap(Wt)===this.inputType&&this.outputs[this.cases[Wt]]||this.otherwise;return ir.evaluate(Bt)},m0.prototype.eachChild=function(Bt){Bt(this.input),this.outputs.forEach(Bt),Bt(this.otherwise)},m0.prototype.outputDefined=function(){return this.outputs.every(function(Bt){return Bt.outputDefined()})&&this.otherwise.outputDefined()},m0.prototype.serialize=function(){for(var Bt=this,Wt=["match",this.input.serialize()],ir=Object.keys(this.cases).sort(),gr=[],Mr={},Br=0,tn=ir;Br=5)return Wt.error("Expected 3 or 4 arguments, but found "+(Bt.length-1)+" instead.");var ir=Wt.parse(Bt[1],1,Ys),gr=Wt.parse(Bt[2],2,rs);if(!ir||!gr)return null;if(!Kp(ir.type,[ju(Ys),_s,Ys]))return Wt.error("Expected first argument to be of type array or string, but found "+Vu(ir.type)+" instead");if(Bt.length===4){var Mr=Wt.parse(Bt[3],3,rs);return Mr?new wv(ir.type,ir,gr,Mr):null}else return new wv(ir.type,ir,gr)},wv.prototype.evaluate=function(Bt){var Wt=this.input.evaluate(Bt),ir=this.beginIndex.evaluate(Bt);if(!c1(Wt,["string","array"]))throw new kp("Expected first argument to be of type array or string, but found "+Vu(Ap(Wt))+" instead.");if(this.endIndex){var gr=this.endIndex.evaluate(Bt);return Wt.slice(ir,gr)}return Wt.slice(ir)},wv.prototype.eachChild=function(Bt){Bt(this.input),Bt(this.beginIndex),this.endIndex&&Bt(this.endIndex)},wv.prototype.outputDefined=function(){return!1},wv.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var Bt=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),Bt]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};function K1(Ft,Bt){return Ft==="=="||Ft==="!="?Bt.kind==="boolean"||Bt.kind==="string"||Bt.kind==="number"||Bt.kind==="null"||Bt.kind==="value":Bt.kind==="string"||Bt.kind==="number"||Bt.kind==="value"}function Gm(Ft,Bt,Wt){return Bt===Wt}function Z1(Ft,Bt,Wt){return Bt!==Wt}function Vm(Ft,Bt,Wt){return BtWt}function X0(Ft,Bt,Wt){return Bt<=Wt}function _1(Ft,Bt,Wt){return Bt>=Wt}function y0(Ft,Bt,Wt,ir){return ir.compare(Bt,Wt)===0}function Sp(Ft,Bt,Wt,ir){return!y0(Ft,Bt,Wt,ir)}function Cv(Ft,Bt,Wt,ir){return ir.compare(Bt,Wt)<0}function S1(Ft,Bt,Wt,ir){return ir.compare(Bt,Wt)>0}function cy(Ft,Bt,Wt,ir){return ir.compare(Bt,Wt)<=0}function J1(Ft,Bt,Wt,ir){return ir.compare(Bt,Wt)>=0}function x0(Ft,Bt,Wt){var ir=Ft!=="=="&&Ft!=="!=";return function(){function gr(Mr,Br,tn){this.type=Gs,this.lhs=Mr,this.rhs=Br,this.collator=tn,this.hasUntypedArgument=Mr.type.kind==="value"||Br.type.kind==="value"}return gr.parse=function(Br,tn){if(Br.length!==3&&Br.length!==4)return tn.error("Expected two or three arguments.");var En=Br[0],Mn=tn.parse(Br[1],1,Ys);if(!Mn)return null;if(!K1(En,Mn.type))return tn.concat(1).error('"'+En+`" comparisons are not supported for type '`+Vu(Mn.type)+"'.");var Pn=tn.parse(Br[2],2,Ys);if(!Pn)return null;if(!K1(En,Pn.type))return tn.concat(2).error('"'+En+`" comparisons are not supported for type '`+Vu(Pn.type)+"'.");if(Mn.type.kind!==Pn.type.kind&&Mn.type.kind!=="value"&&Pn.type.kind!=="value")return tn.error("Cannot compare types '"+Vu(Mn.type)+"' and '"+Vu(Pn.type)+"'.");ir&&(Mn.type.kind==="value"&&Pn.type.kind!=="value"?Mn=new $p(Pn.type,[Mn]):Mn.type.kind!=="value"&&Pn.type.kind==="value"&&(Pn=new $p(Mn.type,[Pn])));var Qn=null;if(Br.length===4){if(Mn.type.kind!=="string"&&Pn.type.kind!=="string"&&Mn.type.kind!=="value"&&Pn.type.kind!=="value")return tn.error("Cannot use collator to compare non-string types.");if(Qn=tn.parse(Br[3],3,zl),!Qn)return null}return new gr(Mn,Pn,Qn)},gr.prototype.evaluate=function(Br){var tn=this.lhs.evaluate(Br),En=this.rhs.evaluate(Br);if(ir&&this.hasUntypedArgument){var Mn=Ap(tn),Pn=Ap(En);if(Mn.kind!==Pn.kind||!(Mn.kind==="string"||Mn.kind==="number"))throw new kp('Expected arguments for "'+Ft+'" to be (string, string) or (number, number), but found ('+Mn.kind+", "+Pn.kind+") instead.")}if(this.collator&&!ir&&this.hasUntypedArgument){var Qn=Ap(tn),ao=Ap(En);if(Qn.kind!=="string"||ao.kind!=="string")return Bt(Br,tn,En)}return this.collator?Wt(Br,tn,En,this.collator.evaluate(Br)):Bt(Br,tn,En)},gr.prototype.eachChild=function(Br){Br(this.lhs),Br(this.rhs),this.collator&&Br(this.collator)},gr.prototype.outputDefined=function(){return!0},gr.prototype.serialize=function(){var Br=[Ft];return this.eachChild(function(tn){Br.push(tn.serialize())}),Br},gr}()}var Am=x0("==",Gm,y0),w1=x0("!=",Z1,Sp),Wm=x0("<",Vm,Cv),Ao=x0(">",A1,S1),K0=x0("<=",X0,cy),Gp=x0(">=",_1,J1),Mp=function(Bt,Wt,ir,gr,Mr){this.type=_s,this.number=Bt,this.locale=Wt,this.currency=ir,this.minFractionDigits=gr,this.maxFractionDigits=Mr};Mp.parse=function(Bt,Wt){if(Bt.length!==3)return Wt.error("Expected two arguments.");var ir=Wt.parse(Bt[1],1,rs);if(!ir)return null;var gr=Bt[2];if(typeof gr!="object"||Array.isArray(gr))return Wt.error("NumberFormat options argument must be an object.");var Mr=null;if(gr.locale&&(Mr=Wt.parse(gr.locale,1,_s),!Mr))return null;var Br=null;if(gr.currency&&(Br=Wt.parse(gr.currency,1,_s),!Br))return null;var tn=null;if(gr["min-fraction-digits"]&&(tn=Wt.parse(gr["min-fraction-digits"],1,rs),!tn))return null;var En=null;return gr["max-fraction-digits"]&&(En=Wt.parse(gr["max-fraction-digits"],1,rs),!En)?null:new Mp(ir,Mr,Br,tn,En)},Mp.prototype.evaluate=function(Bt){return new Intl.NumberFormat(this.locale?this.locale.evaluate(Bt):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(Bt):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(Bt):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(Bt):void 0}).format(this.number.evaluate(Bt))},Mp.prototype.eachChild=function(Bt){Bt(this.number),this.locale&&Bt(this.locale),this.currency&&Bt(this.currency),this.minFractionDigits&&Bt(this.minFractionDigits),this.maxFractionDigits&&Bt(this.maxFractionDigits)},Mp.prototype.outputDefined=function(){return!1},Mp.prototype.serialize=function(){var Bt={};return this.locale&&(Bt.locale=this.locale.serialize()),this.currency&&(Bt.currency=this.currency.serialize()),this.minFractionDigits&&(Bt["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(Bt["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),Bt]};var Lu=function(Bt){this.type=rs,this.input=Bt};Lu.parse=function(Bt,Wt){if(Bt.length!==2)return Wt.error("Expected 1 argument, but found "+(Bt.length-1)+" instead.");var ir=Wt.parse(Bt[1],1);return ir?ir.type.kind!=="array"&&ir.type.kind!=="string"&&ir.type.kind!=="value"?Wt.error("Expected argument of type string or array, but found "+Vu(ir.type)+" instead."):new Lu(ir):null},Lu.prototype.evaluate=function(Bt){var Wt=this.input.evaluate(Bt);if(typeof Wt=="string")return Wt.length;if(Array.isArray(Wt))return Wt.length;throw new kp("Expected value to be of type string or array, but found "+Vu(Ap(Wt))+" instead.")},Lu.prototype.eachChild=function(Bt){Bt(this.input)},Lu.prototype.outputDefined=function(){return!1},Lu.prototype.serialize=function(){var Bt=["length"];return this.eachChild(function(Wt){Bt.push(Wt.serialize())}),Bt};var C1={"==":Am,"!=":w1,">":Ao,"<":Wm,">=":Gp,"<=":K0,array:$p,at:Y0,boolean:$p,case:Gv,coalesce:Nv,collator:R0,format:op,image:lv,in:pp,"index-of":vp,interpolate:Ep,"interpolate-hcl":Ep,"interpolate-lab":Ep,length:Lu,let:g0,literal:_p,match:m0,number:$p,"number-format":Mp,object:$p,slice:wv,step:$v,string:$p,"to-boolean":uv,"to-color":uv,"to-number":uv,"to-string":uv,var:e0,within:Su};function _m(Ft,Bt){var Wt=Bt[0],ir=Bt[1],gr=Bt[2],Mr=Bt[3];Wt=Wt.evaluate(Ft),ir=ir.evaluate(Ft),gr=gr.evaluate(Ft);var Br=Mr?Mr.evaluate(Ft):1,tn=C0(Wt,ir,gr,Br);if(tn)throw new kp(tn);return new Bu(Wt/255*Br,ir/255*Br,gr/255*Br,Br)}function Z0(Ft,Bt){return Ft in Bt}function Rv(Ft,Bt){var Wt=Bt[Ft];return typeof Wt>"u"?null:Wt}function fy(Ft,Bt,Wt,ir){for(;Wt<=ir;){var gr=Wt+ir>>1;if(Bt[gr]===Ft)return!0;Bt[gr]>Ft?ir=gr-1:Wt=gr+1}return!1}function b0(Ft){return{type:Ft}}Hp.register(C1,{error:[Bl,[_s],function(Ft,Bt){var Wt=Bt[0];throw new kp(Wt.evaluate(Ft))}],typeof:[_s,[Ys],function(Ft,Bt){var Wt=Bt[0];return Vu(Ap(Wt.evaluate(Ft)))}],"to-rgba":[ju(rs,4),[Cs],function(Ft,Bt){var Wt=Bt[0];return Wt.evaluate(Ft).toArray()}],rgb:[Cs,[rs,rs,rs],_m],rgba:[Cs,[rs,rs,rs,rs],_m],has:{type:Gs,overloads:[[[_s],function(Ft,Bt){var Wt=Bt[0];return Z0(Wt.evaluate(Ft),Ft.properties())}],[[_s,Ks],function(Ft,Bt){var Wt=Bt[0],ir=Bt[1];return Z0(Wt.evaluate(Ft),ir.evaluate(Ft))}]]},get:{type:Ys,overloads:[[[_s],function(Ft,Bt){var Wt=Bt[0];return Rv(Wt.evaluate(Ft),Ft.properties())}],[[_s,Ks],function(Ft,Bt){var Wt=Bt[0],ir=Bt[1];return Rv(Wt.evaluate(Ft),ir.evaluate(Ft))}]]},"feature-state":[Ys,[_s],function(Ft,Bt){var Wt=Bt[0];return Rv(Wt.evaluate(Ft),Ft.featureState||{})}],properties:[Ks,[],function(Ft){return Ft.properties()}],"geometry-type":[_s,[],function(Ft){return Ft.geometryType()}],id:[Ys,[],function(Ft){return Ft.id()}],zoom:[rs,[],function(Ft){return Ft.globals.zoom}],"heatmap-density":[rs,[],function(Ft){return Ft.globals.heatmapDensity||0}],"line-progress":[rs,[],function(Ft){return Ft.globals.lineProgress||0}],accumulated:[Ys,[],function(Ft){return Ft.globals.accumulated===void 0?null:Ft.globals.accumulated}],"+":[rs,b0(rs),function(Ft,Bt){for(var Wt=0,ir=0,gr=Bt;ir":[Gs,[_s,Ys],function(Ft,Bt){var Wt=Bt[0],ir=Bt[1],gr=Ft.properties()[Wt.value],Mr=ir.value;return typeof gr==typeof Mr&&gr>Mr}],"filter-id->":[Gs,[Ys],function(Ft,Bt){var Wt=Bt[0],ir=Ft.id(),gr=Wt.value;return typeof ir==typeof gr&&ir>gr}],"filter-<=":[Gs,[_s,Ys],function(Ft,Bt){var Wt=Bt[0],ir=Bt[1],gr=Ft.properties()[Wt.value],Mr=ir.value;return typeof gr==typeof Mr&&gr<=Mr}],"filter-id-<=":[Gs,[Ys],function(Ft,Bt){var Wt=Bt[0],ir=Ft.id(),gr=Wt.value;return typeof ir==typeof gr&&ir<=gr}],"filter->=":[Gs,[_s,Ys],function(Ft,Bt){var Wt=Bt[0],ir=Bt[1],gr=Ft.properties()[Wt.value],Mr=ir.value;return typeof gr==typeof Mr&&gr>=Mr}],"filter-id->=":[Gs,[Ys],function(Ft,Bt){var Wt=Bt[0],ir=Ft.id(),gr=Wt.value;return typeof ir==typeof gr&&ir>=gr}],"filter-has":[Gs,[Ys],function(Ft,Bt){var Wt=Bt[0];return Wt.value in Ft.properties()}],"filter-has-id":[Gs,[],function(Ft){return Ft.id()!==null&&Ft.id()!==void 0}],"filter-type-in":[Gs,[ju(_s)],function(Ft,Bt){var Wt=Bt[0];return Wt.value.indexOf(Ft.geometryType())>=0}],"filter-id-in":[Gs,[ju(Ys)],function(Ft,Bt){var Wt=Bt[0];return Wt.value.indexOf(Ft.id())>=0}],"filter-in-small":[Gs,[_s,ju(Ys)],function(Ft,Bt){var Wt=Bt[0],ir=Bt[1];return ir.value.indexOf(Ft.properties()[Wt.value])>=0}],"filter-in-large":[Gs,[_s,ju(Ys)],function(Ft,Bt){var Wt=Bt[0],ir=Bt[1];return fy(Ft.properties()[Wt.value],ir.value,0,ir.value.length-1)}],all:{type:Gs,overloads:[[[Gs,Gs],function(Ft,Bt){var Wt=Bt[0],ir=Bt[1];return Wt.evaluate(Ft)&&ir.evaluate(Ft)}],[b0(Gs),function(Ft,Bt){for(var Wt=0,ir=Bt;Wt-1}function M1(Ft){return!!Ft.expression&&Ft.expression.interpolated}function tp(Ft){return Ft instanceof Number?"number":Ft instanceof String?"string":Ft instanceof Boolean?"boolean":Array.isArray(Ft)?"array":Ft===null?"null":typeof Ft}function I1(Ft){return typeof Ft=="object"&&Ft!==null&&!Array.isArray(Ft)}function Sm(Ft){return Ft}function dy(Ft,Bt){var Wt=Bt.type==="color",ir=Ft.stops&&typeof Ft.stops[0][0]=="object",gr=ir||Ft.property!==void 0,Mr=ir||!gr,Br=Ft.type||(M1(Bt)?"exponential":"interval");if(Wt&&(Ft=Ps({},Ft),Ft.stops&&(Ft.stops=Ft.stops.map(function(Dl){return[Dl[0],Bu.parse(Dl[1])]})),Ft.default?Ft.default=Bu.parse(Ft.default):Ft.default=Bu.parse(Bt.default)),Ft.colorSpace&&Ft.colorSpace!=="rgb"&&!j0[Ft.colorSpace])throw new Error("Unknown color space: "+Ft.colorSpace);var tn,En,Mn;if(Br==="exponential")tn=jm;else if(Br==="interval")tn=wm;else if(Br==="categorical"){tn=Q1,En=Object.create(null);for(var Pn=0,Qn=Ft.stops;Pn=Ft.stops[ir-1][0])return Ft.stops[ir-1][1];var gr=p0(Ft.stops.map(function(Mr){return Mr[0]}),Wt);return Ft.stops[gr][1]}function jm(Ft,Bt,Wt){var ir=Ft.base!==void 0?Ft.base:1;if(tp(Wt)!=="number")return mv(Ft.default,Bt.default);var gr=Ft.stops.length;if(gr===1||Wt<=Ft.stops[0][0])return Ft.stops[0][1];if(Wt>=Ft.stops[gr-1][0])return Ft.stops[gr-1][1];var Mr=p0(Ft.stops.map(function(Qn){return Qn[0]}),Wt),Br=em(Wt,ir,Ft.stops[Mr][0],Ft.stops[Mr+1][0]),tn=Ft.stops[Mr][1],En=Ft.stops[Mr+1][1],Mn=ep[Bt.type]||Sm;if(Ft.colorSpace&&Ft.colorSpace!=="rgb"){var Pn=j0[Ft.colorSpace];Mn=function(Qn,ao){return Pn.reverse(Pn.interpolate(Pn.forward(Qn),Pn.forward(ao),Br))}}return typeof tn.evaluate=="function"?{evaluate:function(){for(var ao=[],$a=arguments.length;$a--;)ao[$a]=arguments[$a];var Eo=tn.evaluate.apply(void 0,ao),Ho=En.evaluate.apply(void 0,ao);if(!(Eo===void 0||Ho===void 0))return Mn(Eo,Ho,Br)}}:Mn(tn,En,Br)}function q1(Ft,Bt,Wt){return Bt.type==="color"?Wt=Bu.parse(Wt):Bt.type==="formatted"?Wt=Op.fromString(Wt.toString()):Bt.type==="resolvedImage"?Wt=av.fromString(Wt.toString()):tp(Wt)!==Bt.type&&(Bt.type!=="enum"||!Bt.values[Wt])&&(Wt=void 0),mv(Wt,Ft.default,Bt.default)}function em(Ft,Bt,Wt,ir){var gr=ir-Wt,Mr=Ft-Wt;return gr===0?0:Bt===1?Mr/gr:(Math.pow(Bt,Mr)-1)/(Math.pow(Bt,gr)-1)}var yv=function(Bt,Wt){this.expression=Bt,this._warningHistory={},this._evaluator=new qv,this._defaultValue=Wt?Xm(Wt):null,this._enumValues=Wt&&Wt.type==="enum"?Wt.values:null};yv.prototype.evaluateWithoutErrorHandling=function(Bt,Wt,ir,gr,Mr,Br){return this._evaluator.globals=Bt,this._evaluator.feature=Wt,this._evaluator.featureState=ir,this._evaluator.canonical=gr,this._evaluator.availableImages=Mr||null,this._evaluator.formattedSection=Br,this.expression.evaluate(this._evaluator)},yv.prototype.evaluate=function(Bt,Wt,ir,gr,Mr,Br){this._evaluator.globals=Bt,this._evaluator.feature=Wt||null,this._evaluator.featureState=ir||null,this._evaluator.canonical=gr,this._evaluator.availableImages=Mr||null,this._evaluator.formattedSection=Br||null;try{var tn=this.expression.evaluate(this._evaluator);if(tn==null||typeof tn=="number"&&tn!==tn)return this._defaultValue;if(this._enumValues&&!(tn in this._enumValues))throw new kp("Expected value to be one of "+Object.keys(this._enumValues).map(function(En){return JSON.stringify(En)}).join(", ")+", but found "+JSON.stringify(tn)+" instead.");return tn}catch(En){return this._warningHistory[En.message]||(this._warningHistory[En.message]=!0,typeof console<"u"&&console.warn(En.message)),this._defaultValue}};function tm(Ft){return Array.isArray(Ft)&&Ft.length>0&&typeof Ft[0]=="string"&&Ft[0]in C1}function N0(Ft,Bt){var Wt=new t0(C1,[],Bt?hy(Bt):void 0),ir=Wt.parse(Ft,void 0,void 0,void 0,Bt&&Bt.type==="string"?{typeAnnotation:"coerce"}:void 0);return ir?R1(new yv(ir,Bt)):P0(Wt.errors)}var sp=function(Bt,Wt){this.kind=Bt,this._styleExpression=Wt,this.isStateDependent=Bt!=="constant"&&!mp(Wt.expression)};sp.prototype.evaluateWithoutErrorHandling=function(Bt,Wt,ir,gr,Mr,Br){return this._styleExpression.evaluateWithoutErrorHandling(Bt,Wt,ir,gr,Mr,Br)},sp.prototype.evaluate=function(Bt,Wt,ir,gr,Mr,Br){return this._styleExpression.evaluate(Bt,Wt,ir,gr,Mr,Br)};var r0=function(Bt,Wt,ir,gr){this.kind=Bt,this.zoomStops=ir,this._styleExpression=Wt,this.isStateDependent=Bt!=="camera"&&!mp(Wt.expression),this.interpolationType=gr};r0.prototype.evaluateWithoutErrorHandling=function(Bt,Wt,ir,gr,Mr,Br){return this._styleExpression.evaluateWithoutErrorHandling(Bt,Wt,ir,gr,Mr,Br)},r0.prototype.evaluate=function(Bt,Wt,ir,gr,Mr,Br){return this._styleExpression.evaluate(Bt,Wt,ir,gr,Mr,Br)},r0.prototype.interpolationFactor=function(Bt,Wt,ir){return this.interpolationType?Ep.interpolationFactor(this.interpolationType,Bt,Wt,ir):0};function Ym(Ft,Bt){if(Ft=N0(Ft,Bt),Ft.result==="error")return Ft;var Wt=Ft.value.expression,ir=Yu(Wt);if(!ir&&!E0(Bt))return P0([new wo("","data expressions not supported")]);var gr=np(Wt,["zoom"]);if(!gr&&!Mv(Bt))return P0([new wo("","zoom expressions not supported")]);var Mr=rm(Wt);if(!Mr&&!gr)return P0([new wo("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(Mr instanceof wo)return P0([Mr]);if(Mr instanceof Ep&&!M1(Bt))return P0([new wo("",'"interpolate" expressions cannot be used with this property')]);if(!Mr)return R1(ir?new sp("constant",Ft.value):new sp("source",Ft.value));var Br=Mr instanceof Ep?Mr.interpolation:void 0;return R1(ir?new r0("camera",Ft.value,Mr.labels,Br):new r0("composite",Ft.value,Mr.labels,Br))}var J0=function(Bt,Wt){this._parameters=Bt,this._specification=Wt,Ps(this,dy(this._parameters,this._specification))};J0.deserialize=function(Bt){return new J0(Bt._parameters,Bt._specification)},J0.serialize=function(Bt){return{_parameters:Bt._parameters,_specification:Bt._specification}};function Cm(Ft,Bt){if(I1(Ft))return new J0(Ft,Bt);if(tm(Ft)){var Wt=Ym(Ft,Bt);if(Wt.result==="error")throw new Error(Wt.value.map(function(gr){return gr.key+": "+gr.message}).join(", "));return Wt.value}else{var ir=Ft;return typeof Ft=="string"&&Bt.type==="color"&&(ir=Bu.parse(Ft)),{kind:"constant",evaluate:function(){return ir}}}}function rm(Ft){var Bt=null;if(Ft instanceof g0)Bt=rm(Ft.result);else if(Ft instanceof Nv)for(var Wt=0,ir=Ft.args;Wtir.maximum?[new Bo(Bt,Wt,Wt+" is greater than the maximum value "+ir.maximum)]:[]}function k1(Ft){var Bt=Ft.valueSpec,Wt=xs(Ft.value.type),ir,gr={},Mr,Br,tn=Wt!=="categorical"&&Ft.value.property===void 0,En=!tn,Mn=tp(Ft.value.stops)==="array"&&tp(Ft.value.stops[0])==="array"&&tp(Ft.value.stops[0][0])==="object",Pn=iv({key:Ft.key,value:Ft.value,valueSpec:Ft.styleSpec.function,style:Ft.style,styleSpec:Ft.styleSpec,objectElementValidators:{stops:Qn,default:Eo}});return Wt==="identity"&&tn&&Pn.push(new Bo(Ft.key,Ft.value,'missing required property "property"')),Wt!=="identity"&&!Ft.value.stops&&Pn.push(new Bo(Ft.key,Ft.value,'missing required property "stops"')),Wt==="exponential"&&Ft.valueSpec.expression&&!M1(Ft.valueSpec)&&Pn.push(new Bo(Ft.key,Ft.value,"exponential functions not supported")),Ft.styleSpec.$version>=8&&(En&&!E0(Ft.valueSpec)?Pn.push(new Bo(Ft.key,Ft.value,"property functions not supported")):tn&&!Mv(Ft.valueSpec)&&Pn.push(new Bo(Ft.key,Ft.value,"zoom functions not supported"))),(Wt==="categorical"||Mn)&&Ft.value.property===void 0&&Pn.push(new Bo(Ft.key,Ft.value,'"property" property is required')),Pn;function Qn(Ho){if(Wt==="identity")return[new Bo(Ho.key,Ho.value,'identity function may not have a "stops" property')];var ds=[],ss=Ho.value;return ds=ds.concat(nm({key:Ho.key,value:ss,valueSpec:Ho.valueSpec,style:Ho.style,styleSpec:Ho.styleSpec,arrayElementValidator:ao})),tp(ss)==="array"&&ss.length===0&&ds.push(new Bo(Ho.key,ss,"array must have at least one stop")),ds}function ao(Ho){var ds=[],ss=Ho.value,Bs=Ho.key;if(tp(ss)!=="array")return[new Bo(Bs,ss,"array expected, "+tp(ss)+" found")];if(ss.length!==2)return[new Bo(Bs,ss,"array length 2 expected, length "+ss.length+" found")];if(Mn){if(tp(ss[0])!=="object")return[new Bo(Bs,ss,"object expected, "+tp(ss[0])+" found")];if(ss[0].zoom===void 0)return[new Bo(Bs,ss,"object stop key must have zoom")];if(ss[0].value===void 0)return[new Bo(Bs,ss,"object stop key must have value")];if(Br&&Br>xs(ss[0].zoom))return[new Bo(Bs,ss[0].zoom,"stop zoom values must appear in ascending order")];xs(ss[0].zoom)!==Br&&(Br=xs(ss[0].zoom),Mr=void 0,gr={}),ds=ds.concat(iv({key:Bs+"[0]",value:ss[0],valueSpec:{zoom:{}},style:Ho.style,styleSpec:Ho.styleSpec,objectElementValidators:{zoom:O0,value:$a}}))}else ds=ds.concat($a({key:Bs+"[0]",value:ss[0],valueSpec:{},style:Ho.style,styleSpec:Ho.styleSpec},ss));return tm(us(ss[1]))?ds.concat([new Bo(Bs+"[1]",ss[1],"expressions are not allowed in function stops.")]):ds.concat(Do({key:Bs+"[1]",value:ss[1],valueSpec:Bt,style:Ho.style,styleSpec:Ho.styleSpec}))}function $a(Ho,ds){var ss=tp(Ho.value),Bs=xs(Ho.value),As=Ho.value!==null?Ho.value:ds;if(!ir)ir=ss;else if(ss!==ir)return[new Bo(Ho.key,As,ss+" stop domain type must match previous stop domain type "+ir)];if(ss!=="number"&&ss!=="string"&&ss!=="boolean")return[new Bo(Ho.key,As,"stop domain value must be a number, string, or boolean")];if(ss!=="number"&&Wt!=="categorical"){var Os="number expected, "+ss+" found";return E0(Bt)&&Wt===void 0&&(Os+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Bo(Ho.key,As,Os)]}return Wt==="categorical"&&ss==="number"&&(!isFinite(Bs)||Math.floor(Bs)!==Bs)?[new Bo(Ho.key,As,"integer expected, found "+Bs)]:Wt!=="categorical"&&ss==="number"&&Mr!==void 0&&Bs=2&&Ft[1]!=="$id"&&Ft[1]!=="$type";case"in":return Ft.length>=3&&(typeof Ft[1]!="string"||Array.isArray(Ft[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return Ft.length!==3||Array.isArray(Ft[1])||Array.isArray(Ft[2]);case"any":case"all":for(var Bt=0,Wt=Ft.slice(1);BtBt?1:0}function im(Ft){if(!Array.isArray(Ft))return!1;if(Ft[0]==="within")return!0;for(var Bt=1;Bt"||Bt==="<="||Bt===">="?om(Ft[1],Ft[2],Bt):Bt==="any"?D1(Ft.slice(1)):Bt==="all"?["all"].concat(Ft.slice(1).map(L1)):Bt==="none"?["all"].concat(Ft.slice(1).map(L1).map(Q0)):Bt==="in"?Fv(Ft[1],Ft.slice(2)):Bt==="!in"?Q0(Fv(Ft[1],Ft.slice(2))):Bt==="has"?Rm(Ft[1]):Bt==="!has"?Q0(Rm(Ft[1])):Bt==="within"?Ft:!0;return Wt}function om(Ft,Bt,Wt){switch(Ft){case"$type":return["filter-type-"+Wt,Bt];case"$id":return["filter-id-"+Wt,Bt];default:return["filter-"+Wt,Ft,Bt]}}function D1(Ft){return["any"].concat(Ft.map(L1))}function Fv(Ft,Bt){if(Bt.length===0)return!1;switch(Ft){case"$type":return["filter-type-in",["literal",Bt]];case"$id":return["filter-id-in",["literal",Bt]];default:return Bt.length>200&&!Bt.some(function(Wt){return typeof Wt!=typeof Bt[0]})?["filter-in-large",Ft,["literal",Bt.sort(bv)]]:["filter-in-small",Ft,["literal",Bt]]}}function Rm(Ft){switch(Ft){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",Ft]}}function Q0(Ft){return["!",Ft]}function P1(Ft){return Ov(us(Ft.value))?Vv(Ps({},Ft,{expressionContext:"filter",valueSpec:{value:"boolean"}})):sm(Ft)}function sm(Ft){var Bt=Ft.value,Wt=Ft.key;if(tp(Bt)!=="array")return[new Bo(Wt,Bt,"array expected, "+tp(Bt)+" found")];var ir=Ft.styleSpec,gr,Mr=[];if(Bt.length<1)return[new Bo(Wt,Bt,"filter array must have at least 1 element")];switch(Mr=Mr.concat(am({key:Wt+"[0]",value:Bt[0],valueSpec:ir.filter_operator,style:Ft.style,styleSpec:Ft.styleSpec})),xs(Bt[0])){case"<":case"<=":case">":case">=":Bt.length>=2&&xs(Bt[1])==="$type"&&Mr.push(new Bo(Wt,Bt,'"$type" cannot be use with operator "'+Bt[0]+'"'));case"==":case"!=":Bt.length!==3&&Mr.push(new Bo(Wt,Bt,'filter array for operator "'+Bt[0]+'" must have 3 elements'));case"in":case"!in":Bt.length>=2&&(gr=tp(Bt[1]),gr!=="string"&&Mr.push(new Bo(Wt+"[1]",Bt[1],"string expected, "+gr+" found")));for(var Br=2;Br=Pn[$a+0]&&ir>=Pn[$a+1])?(Br[ao]=!0,Mr.push(Mn[ao])):Br[ao]=!1}}},_c.prototype._forEachCell=function(Ft,Bt,Wt,ir,gr,Mr,Br,tn){for(var En=this._convertToCellCoord(Ft),Mn=this._convertToCellCoord(Bt),Pn=this._convertToCellCoord(Wt),Qn=this._convertToCellCoord(ir),ao=En;ao<=Pn;ao++)for(var $a=Mn;$a<=Qn;$a++){var Eo=this.d*$a+ao;if(!(tn&&!tn(this._convertFromCellCoord(ao),this._convertFromCellCoord($a),this._convertFromCellCoord(ao+1),this._convertFromCellCoord($a+1)))&&gr.call(this,Ft,Bt,Wt,ir,Eo,Mr,Br,tn))return}},_c.prototype._convertFromCellCoord=function(Ft){return(Ft-this.padding)/this.scale},_c.prototype._convertToCellCoord=function(Ft){return Math.max(0,Math.min(this.d-1,Math.floor(Ft*this.scale)+this.padding))},_c.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var Ft=this.cells,Bt=Nu+this.cells.length+1+1,Wt=0,ir=0;ir=0)){var Qn=Ft[Pn];Mn[Pn]=Lr[En].shallow.indexOf(Pn)>=0?Qn:Dn(Qn,Bt)}Ft instanceof Error&&(Mn.message=Ft.message)}if(Mn.$name)throw new Error("$name property is reserved for worker serialization logic.");return En!=="Object"&&(Mn.$name=En),Mn}throw new Error("can't serialize object of type "+typeof Ft)}function Rn(Ft){if(Ft==null||typeof Ft=="boolean"||typeof Ft=="number"||typeof Ft=="string"||Ft instanceof Boolean||Ft instanceof Number||Ft instanceof String||Ft instanceof Date||Ft instanceof RegExp||cn(Ft)||vn(Ft)||ArrayBuffer.isView(Ft)||Ft instanceof Ip)return Ft;if(Array.isArray(Ft))return Ft.map(Rn);if(typeof Ft=="object"){var Bt=Ft.$name||"Object",Wt=Lr[Bt],ir=Wt.klass;if(!ir)throw new Error("can't deserialize unregistered class "+Bt);if(ir.deserialize)return ir.deserialize(Ft);for(var gr=Object.create(ir.prototype),Mr=0,Br=Object.keys(Ft);Mr=0?En:Rn(En)}}return gr}throw new Error("can't deserialize object of type "+typeof Ft)}var Yn=function(){this.first=!0};Yn.prototype.update=function(Bt,Wt){var ir=Math.floor(Bt);return this.first?(this.first=!1,this.lastIntegerZoom=ir,this.lastIntegerZoomTime=0,this.lastZoom=Bt,this.lastFloorZoom=ir,!0):(this.lastFloorZoom>ir?(this.lastIntegerZoom=ir+1,this.lastIntegerZoomTime=Wt):this.lastFloorZoom=128&&Ft<=255},Arabic:function(Ft){return Ft>=1536&&Ft<=1791},"Arabic Supplement":function(Ft){return Ft>=1872&&Ft<=1919},"Arabic Extended-A":function(Ft){return Ft>=2208&&Ft<=2303},"Hangul Jamo":function(Ft){return Ft>=4352&&Ft<=4607},"Unified Canadian Aboriginal Syllabics":function(Ft){return Ft>=5120&&Ft<=5759},Khmer:function(Ft){return Ft>=6016&&Ft<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(Ft){return Ft>=6320&&Ft<=6399},"General Punctuation":function(Ft){return Ft>=8192&&Ft<=8303},"Letterlike Symbols":function(Ft){return Ft>=8448&&Ft<=8527},"Number Forms":function(Ft){return Ft>=8528&&Ft<=8591},"Miscellaneous Technical":function(Ft){return Ft>=8960&&Ft<=9215},"Control Pictures":function(Ft){return Ft>=9216&&Ft<=9279},"Optical Character Recognition":function(Ft){return Ft>=9280&&Ft<=9311},"Enclosed Alphanumerics":function(Ft){return Ft>=9312&&Ft<=9471},"Geometric Shapes":function(Ft){return Ft>=9632&&Ft<=9727},"Miscellaneous Symbols":function(Ft){return Ft>=9728&&Ft<=9983},"Miscellaneous Symbols and Arrows":function(Ft){return Ft>=11008&&Ft<=11263},"CJK Radicals Supplement":function(Ft){return Ft>=11904&&Ft<=12031},"Kangxi Radicals":function(Ft){return Ft>=12032&&Ft<=12255},"Ideographic Description Characters":function(Ft){return Ft>=12272&&Ft<=12287},"CJK Symbols and Punctuation":function(Ft){return Ft>=12288&&Ft<=12351},Hiragana:function(Ft){return Ft>=12352&&Ft<=12447},Katakana:function(Ft){return Ft>=12448&&Ft<=12543},Bopomofo:function(Ft){return Ft>=12544&&Ft<=12591},"Hangul Compatibility Jamo":function(Ft){return Ft>=12592&&Ft<=12687},Kanbun:function(Ft){return Ft>=12688&&Ft<=12703},"Bopomofo Extended":function(Ft){return Ft>=12704&&Ft<=12735},"CJK Strokes":function(Ft){return Ft>=12736&&Ft<=12783},"Katakana Phonetic Extensions":function(Ft){return Ft>=12784&&Ft<=12799},"Enclosed CJK Letters and Months":function(Ft){return Ft>=12800&&Ft<=13055},"CJK Compatibility":function(Ft){return Ft>=13056&&Ft<=13311},"CJK Unified Ideographs Extension A":function(Ft){return Ft>=13312&&Ft<=19903},"Yijing Hexagram Symbols":function(Ft){return Ft>=19904&&Ft<=19967},"CJK Unified Ideographs":function(Ft){return Ft>=19968&&Ft<=40959},"Yi Syllables":function(Ft){return Ft>=40960&&Ft<=42127},"Yi Radicals":function(Ft){return Ft>=42128&&Ft<=42191},"Hangul Jamo Extended-A":function(Ft){return Ft>=43360&&Ft<=43391},"Hangul Syllables":function(Ft){return Ft>=44032&&Ft<=55215},"Hangul Jamo Extended-B":function(Ft){return Ft>=55216&&Ft<=55295},"Private Use Area":function(Ft){return Ft>=57344&&Ft<=63743},"CJK Compatibility Ideographs":function(Ft){return Ft>=63744&&Ft<=64255},"Arabic Presentation Forms-A":function(Ft){return Ft>=64336&&Ft<=65023},"Vertical Forms":function(Ft){return Ft>=65040&&Ft<=65055},"CJK Compatibility Forms":function(Ft){return Ft>=65072&&Ft<=65103},"Small Form Variants":function(Ft){return Ft>=65104&&Ft<=65135},"Arabic Presentation Forms-B":function(Ft){return Ft>=65136&&Ft<=65279},"Halfwidth and Fullwidth Forms":function(Ft){return Ft>=65280&&Ft<=65519}};function to(Ft){for(var Bt=0,Wt=Ft;Bt=65097&&Ft<=65103)||Zn["CJK Compatibility Ideographs"](Ft)||Zn["CJK Compatibility"](Ft)||Zn["CJK Radicals Supplement"](Ft)||Zn["CJK Strokes"](Ft)||Zn["CJK Symbols and Punctuation"](Ft)&&!(Ft>=12296&&Ft<=12305)&&!(Ft>=12308&&Ft<=12319)&&Ft!==12336||Zn["CJK Unified Ideographs Extension A"](Ft)||Zn["CJK Unified Ideographs"](Ft)||Zn["Enclosed CJK Letters and Months"](Ft)||Zn["Hangul Compatibility Jamo"](Ft)||Zn["Hangul Jamo Extended-A"](Ft)||Zn["Hangul Jamo Extended-B"](Ft)||Zn["Hangul Jamo"](Ft)||Zn["Hangul Syllables"](Ft)||Zn.Hiragana(Ft)||Zn["Ideographic Description Characters"](Ft)||Zn.Kanbun(Ft)||Zn["Kangxi Radicals"](Ft)||Zn["Katakana Phonetic Extensions"](Ft)||Zn.Katakana(Ft)&&Ft!==12540||Zn["Halfwidth and Fullwidth Forms"](Ft)&&Ft!==65288&&Ft!==65289&&Ft!==65293&&!(Ft>=65306&&Ft<=65310)&&Ft!==65339&&Ft!==65341&&Ft!==65343&&!(Ft>=65371&&Ft<=65503)&&Ft!==65507&&!(Ft>=65512&&Ft<=65519)||Zn["Small Form Variants"](Ft)&&!(Ft>=65112&&Ft<=65118)&&!(Ft>=65123&&Ft<=65126)||Zn["Unified Canadian Aboriginal Syllabics"](Ft)||Zn["Unified Canadian Aboriginal Syllabics Extended"](Ft)||Zn["Vertical Forms"](Ft)||Zn["Yijing Hexagram Symbols"](Ft)||Zn["Yi Syllables"](Ft)||Zn["Yi Radicals"](Ft))}function ko(Ft){return!!(Zn["Latin-1 Supplement"](Ft)&&(Ft===167||Ft===169||Ft===174||Ft===177||Ft===188||Ft===189||Ft===190||Ft===215||Ft===247)||Zn["General Punctuation"](Ft)&&(Ft===8214||Ft===8224||Ft===8225||Ft===8240||Ft===8241||Ft===8251||Ft===8252||Ft===8258||Ft===8263||Ft===8264||Ft===8265||Ft===8273)||Zn["Letterlike Symbols"](Ft)||Zn["Number Forms"](Ft)||Zn["Miscellaneous Technical"](Ft)&&(Ft>=8960&&Ft<=8967||Ft>=8972&&Ft<=8991||Ft>=8996&&Ft<=9e3||Ft===9003||Ft>=9085&&Ft<=9114||Ft>=9150&&Ft<=9165||Ft===9167||Ft>=9169&&Ft<=9179||Ft>=9186&&Ft<=9215)||Zn["Control Pictures"](Ft)&&Ft!==9251||Zn["Optical Character Recognition"](Ft)||Zn["Enclosed Alphanumerics"](Ft)||Zn["Geometric Shapes"](Ft)||Zn["Miscellaneous Symbols"](Ft)&&!(Ft>=9754&&Ft<=9759)||Zn["Miscellaneous Symbols and Arrows"](Ft)&&(Ft>=11026&&Ft<=11055||Ft>=11088&&Ft<=11097||Ft>=11192&&Ft<=11243)||Zn["CJK Symbols and Punctuation"](Ft)||Zn.Katakana(Ft)||Zn["Private Use Area"](Ft)||Zn["CJK Compatibility Forms"](Ft)||Zn["Small Form Variants"](Ft)||Zn["Halfwidth and Fullwidth Forms"](Ft)||Ft===8734||Ft===8756||Ft===8757||Ft>=9984&&Ft<=10087||Ft>=10102&&Ft<=10131||Ft===65532||Ft===65533)}function Uo(Ft){return!(ls(Ft)||ko(Ft))}function qo(Ft){return Zn.Arabic(Ft)||Zn["Arabic Supplement"](Ft)||Zn["Arabic Extended-A"](Ft)||Zn["Arabic Presentation Forms-A"](Ft)||Zn["Arabic Presentation Forms-B"](Ft)}function cs(Ft){return Ft>=1424&&Ft<=2303||Zn["Arabic Presentation Forms-A"](Ft)||Zn["Arabic Presentation Forms-B"](Ft)}function bs(Ft,Bt){return!(!Bt&&cs(Ft)||Ft>=2304&&Ft<=3583||Ft>=3840&&Ft<=4255||Zn.Khmer(Ft))}function as(Ft){for(var Bt=0,Wt=Ft;Bt-1&&(Rl=Ll.error),Gl&&Gl(Ft)};function Tu(){Ql.fire(new eo("pluginStateChange",{pluginStatus:Rl,pluginURL:Hl}))}var Ql=new ho,xu=function(){return Rl},zu=function(Ft){return Ft({pluginStatus:Rl,pluginURL:Hl}),Ql.on("pluginStateChange",Ft),Ft},wp=function(Ft,Bt,Wt){if(Wt===void 0&&(Wt=!1),Rl===Ll.deferred||Rl===Ll.loading||Rl===Ll.loaded)throw new Error("setRTLTextPlugin cannot be called multiple times.");Hl=or.resolveURL(Ft),Rl=Ll.deferred,Gl=Bt,Tu(),Wt||Xu()},Xu=function(){if(Rl!==Ll.deferred||!Hl)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Rl=Ll.loading,Tu(),Hl&&Wn({url:Hl},function(Ft){Ft?Vl(Ft):(Rl=Ll.loaded,Tu())})},Ml={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return Rl===Ll.loaded||Ml.applyArabicShaping!=null},isLoading:function(){return Rl===Ll.loading},setState:function(Bt){Rl=Bt.pluginStatus,Hl=Bt.pluginURL},isParsed:function(){return Ml.applyArabicShaping!=null&&Ml.processBidirectionalText!=null&&Ml.processStyledBidirectionalText!=null},getPluginURL:function(){return Hl}},vu=function(){!Ml.isLoading()&&!Ml.isLoaded()&&xu()==="deferred"&&Xu()},ru=function(Bt,Wt){this.zoom=Bt,Wt?(this.now=Wt.now,this.fadeDuration=Wt.fadeDuration,this.zoomHistory=Wt.zoomHistory,this.transition=Wt.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Yn,this.transition={})};ru.prototype.isSupportedScript=function(Bt){return Rs(Bt,Ml.isLoaded())},ru.prototype.crossFadingFactor=function(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},ru.prototype.getCrossfadeParameters=function(){var Bt=this.zoom,Wt=Bt-Math.floor(Bt),ir=this.crossFadingFactor();return Bt>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:Wt+(1-Wt)*ir}:{fromScale:.5,toScale:1,t:1-(1-ir)*Wt}};var Ou=function(Bt,Wt){this.property=Bt,this.value=Wt,this.expression=Cm(Wt===void 0?Bt.specification.default:Wt,Bt.specification)};Ou.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Ou.prototype.possiblyEvaluate=function(Bt,Wt,ir){return this.property.possiblyEvaluate(this,Bt,Wt,ir)};var cp=function(Bt){this.property=Bt,this.value=new Ou(Bt,void 0)};cp.prototype.transitioned=function(Bt,Wt){return new Fp(this.property,this.value,Wt,St({},Bt.transition,this.transition),Bt.now)},cp.prototype.untransitioned=function(){return new Fp(this.property,this.value,null,{},0)};var Uu=function(Bt){this._properties=Bt,this._values=Object.create(Bt.defaultTransitionablePropertyValues)};Uu.prototype.getValue=function(Bt){return zt(this._values[Bt].value.value)},Uu.prototype.setValue=function(Bt,Wt){this._values.hasOwnProperty(Bt)||(this._values[Bt]=new cp(this._values[Bt].property)),this._values[Bt].value=new Ou(this._values[Bt].property,Wt===null?void 0:zt(Wt))},Uu.prototype.getTransition=function(Bt){return zt(this._values[Bt].transition)},Uu.prototype.setTransition=function(Bt,Wt){this._values.hasOwnProperty(Bt)||(this._values[Bt]=new cp(this._values[Bt].property)),this._values[Bt].transition=zt(Wt)||void 0},Uu.prototype.serialize=function(){for(var Bt={},Wt=0,ir=Object.keys(this._values);Wtthis.end)return this.prior=null,Mr;if(this.value.isDataDriven())return this.prior=null,Mr;if(grBr.zoomHistory.lastIntegerZoom?{from:ir,to:gr}:{from:Mr,to:gr}},Bt.prototype.interpolate=function(ir){return ir},Bt}(cu),Ev=function(Bt){this.specification=Bt};Ev.prototype.possiblyEvaluate=function(Bt,Wt,ir,gr){if(Bt.value!==void 0)if(Bt.expression.kind==="constant"){var Mr=Bt.expression.evaluate(Wt,null,{},ir,gr);return this._calculate(Mr,Mr,Mr,Wt)}else return this._calculate(Bt.expression.evaluate(new ru(Math.floor(Wt.zoom-1),Wt)),Bt.expression.evaluate(new ru(Math.floor(Wt.zoom),Wt)),Bt.expression.evaluate(new ru(Math.floor(Wt.zoom+1),Wt)),Wt)},Ev.prototype._calculate=function(Bt,Wt,ir,gr){var Mr=gr.zoom;return Mr>gr.zoomHistory.lastIntegerZoom?{from:Bt,to:Wt}:{from:ir,to:Wt}},Ev.prototype.interpolate=function(Bt){return Bt};var jp=function(Bt){this.specification=Bt};jp.prototype.possiblyEvaluate=function(Bt,Wt,ir,gr){return!!Bt.expression.evaluate(Wt,null,{},ir,gr)},jp.prototype.interpolate=function(){return!1};var Ku=function(Bt){this.properties=Bt,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(var Wt in Bt){var ir=Bt[Wt];ir.specification.overridable&&this.overridableProperties.push(Wt);var gr=this.defaultPropertyValues[Wt]=new Ou(ir,void 0),Mr=this.defaultTransitionablePropertyValues[Wt]=new cp(ir);this.defaultTransitioningPropertyValues[Wt]=Mr.untransitioned(),this.defaultPossiblyEvaluatedValues[Wt]=gr.possiblyEvaluate({})}};Hr("DataDrivenProperty",cu),Hr("DataConstantProperty",Ol),Hr("CrossFadedDataDrivenProperty",Lp),Hr("CrossFadedProperty",Ev),Hr("ColorRampProperty",jp);var Bp="-transition",Np=function(Ft){function Bt(Wt,ir){if(Ft.call(this),this.id=Wt.id,this.type=Wt.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},Wt.type!=="custom"&&(Wt=Wt,this.metadata=Wt.metadata,this.minzoom=Wt.minzoom,this.maxzoom=Wt.maxzoom,Wt.type!=="background"&&(this.source=Wt.source,this.sourceLayer=Wt["source-layer"],this.filter=Wt.filter),ir.layout&&(this._unevaluatedLayout=new Vp(ir.layout)),ir.paint)){this._transitionablePaint=new Uu(ir.paint);for(var gr in Wt.paint)this.setPaintProperty(gr,Wt.paint[gr],{validate:!1});for(var Mr in Wt.layout)this.setLayoutProperty(Mr,Wt.layout[Mr],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Wp(ir.paint)}}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},Bt.prototype.getLayoutProperty=function(ir){return ir==="visibility"?this.visibility:this._unevaluatedLayout.getValue(ir)},Bt.prototype.setLayoutProperty=function(ir,gr,Mr){if(Mr===void 0&&(Mr={}),gr!=null){var Br="layers."+this.id+".layout."+ir;if(this._validate(du,Br,ir,gr,Mr))return}if(ir==="visibility"){this.visibility=gr;return}this._unevaluatedLayout.setValue(ir,gr)},Bt.prototype.getPaintProperty=function(ir){return At(ir,Bp)?this._transitionablePaint.getTransition(ir.slice(0,-Bp.length)):this._transitionablePaint.getValue(ir)},Bt.prototype.setPaintProperty=function(ir,gr,Mr){if(Mr===void 0&&(Mr={}),gr!=null){var Br="layers."+this.id+".paint."+ir;if(this._validate(pu,Br,ir,gr,Mr))return!1}if(At(ir,Bp))return this._transitionablePaint.setTransition(ir.slice(0,-Bp.length),gr||void 0),!1;var tn=this._transitionablePaint._values[ir],En=tn.property.specification["property-type"]==="cross-faded-data-driven",Mn=tn.value.isDataDriven(),Pn=tn.value;this._transitionablePaint.setValue(ir,gr),this._handleSpecialPaintPropertyUpdate(ir);var Qn=this._transitionablePaint._values[ir].value,ao=Qn.isDataDriven();return ao||Mn||En||this._handleOverridablePaintPropertyUpdate(ir,Pn,Qn)},Bt.prototype._handleSpecialPaintPropertyUpdate=function(ir){},Bt.prototype._handleOverridablePaintPropertyUpdate=function(ir,gr,Mr){return!1},Bt.prototype.isHidden=function(ir){return this.minzoom&&ir=this.maxzoom?!0:this.visibility==="none"},Bt.prototype.updateTransitions=function(ir){this._transitioningPaint=this._transitionablePaint.transitioned(ir,this._transitioningPaint)},Bt.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},Bt.prototype.recalculate=function(ir,gr){ir.getCrossfadeParameters&&(this._crossfadeParameters=ir.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(ir,void 0,gr)),this.paint=this._transitioningPaint.possiblyEvaluate(ir,void 0,gr)},Bt.prototype.serialize=function(){var ir={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(ir.layout=ir.layout||{},ir.layout.visibility=this.visibility),Pt(ir,function(gr,Mr){return gr!==void 0&&!(Mr==="layout"&&!Object.keys(gr).length)&&!(Mr==="paint"&&!Object.keys(gr).length)})},Bt.prototype._validate=function(ir,gr,Mr,Br,tn){return tn===void 0&&(tn={}),tn&&tn.validate===!1?!1:gu(this,ir.call($s,{key:gr,layerType:this.type,objectKey:Mr,value:Br,styleSpec:To,style:{glyphs:!0,sprite:!0}}))},Bt.prototype.is3D=function(){return!1},Bt.prototype.isTileClipped=function(){return!1},Bt.prototype.hasOffscreenPass=function(){return!1},Bt.prototype.resize=function(){},Bt.prototype.isStateDependent=function(){for(var ir in this.paint._values){var gr=this.paint.get(ir);if(!(!(gr instanceof lp)||!E0(gr.property.specification))&&(gr.value.kind==="source"||gr.value.kind==="composite")&&gr.value.isStateDependent)return!0}return!1},Bt}(ho),n0={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},a0=function(Bt,Wt){this._structArray=Bt,this._pos1=Wt*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},yp=128,N1=5,Fu=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};Fu.serialize=function(Bt,Wt){return Bt._trim(),Wt&&(Bt.isTransferred=!0,Wt.push(Bt.arrayBuffer)),{length:Bt.length,arrayBuffer:Bt.arrayBuffer}},Fu.deserialize=function(Bt){var Wt=Object.create(this.prototype);return Wt.arrayBuffer=Bt.arrayBuffer,Wt.length=Bt.length,Wt.capacity=Bt.arrayBuffer.byteLength/Wt.bytesPerElement,Wt._refreshViews(),Wt},Fu.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Fu.prototype.clear=function(){this.length=0},Fu.prototype.resize=function(Bt){this.reserve(Bt),this.length=Bt},Fu.prototype.reserve=function(Bt){if(Bt>this.capacity){this.capacity=Math.max(Bt,Math.floor(this.capacity*N1),yp),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var Wt=this.uint8;this._refreshViews(),Wt&&this.uint8.set(Wt)}},Fu.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};function xp(Ft,Bt){Bt===void 0&&(Bt=1);var Wt=0,ir=0,gr=Ft.map(function(Br){var tn=Tv(Br.type),En=Wt=q0(Wt,Math.max(Bt,tn)),Mn=Br.components||1;return ir=Math.max(ir,tn),Wt+=tn*Mn,{name:Br.name,type:Br.type,components:Mn,offset:En}}),Mr=q0(Wt,Math.max(ir,Bt));return{members:gr,size:Mr,alignment:Bt}}function Tv(Ft){return n0[Ft].BYTES_PER_ELEMENT}function q0(Ft,Bt){return Math.ceil(Ft/Bt)*Bt}var Zm=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir,gr){var Mr=this.length;return this.resize(Mr+1),this.emplace(Mr,ir,gr)},Bt.prototype.emplace=function(ir,gr,Mr){var Br=ir*2;return this.int16[Br+0]=gr,this.int16[Br+1]=Mr,ir},Bt}(Fu);Zm.prototype.bytesPerElement=4,Hr("StructArrayLayout2i4",Zm);var hx=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir,gr,Mr,Br){var tn=this.length;return this.resize(tn+1),this.emplace(tn,ir,gr,Mr,Br)},Bt.prototype.emplace=function(ir,gr,Mr,Br,tn){var En=ir*4;return this.int16[En+0]=gr,this.int16[En+1]=Mr,this.int16[En+2]=Br,this.int16[En+3]=tn,ir},Bt}(Fu);hx.prototype.bytesPerElement=8,Hr("StructArrayLayout4i8",hx);var e1=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir,gr,Mr,Br,tn,En){var Mn=this.length;return this.resize(Mn+1),this.emplace(Mn,ir,gr,Mr,Br,tn,En)},Bt.prototype.emplace=function(ir,gr,Mr,Br,tn,En,Mn){var Pn=ir*6;return this.int16[Pn+0]=gr,this.int16[Pn+1]=Mr,this.int16[Pn+2]=Br,this.int16[Pn+3]=tn,this.int16[Pn+4]=En,this.int16[Pn+5]=Mn,ir},Bt}(Fu);e1.prototype.bytesPerElement=12,Hr("StructArrayLayout2i4i12",e1);var t1=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir,gr,Mr,Br,tn,En){var Mn=this.length;return this.resize(Mn+1),this.emplace(Mn,ir,gr,Mr,Br,tn,En)},Bt.prototype.emplace=function(ir,gr,Mr,Br,tn,En,Mn){var Pn=ir*4,Qn=ir*8;return this.int16[Pn+0]=gr,this.int16[Pn+1]=Mr,this.uint8[Qn+4]=Br,this.uint8[Qn+5]=tn,this.uint8[Qn+6]=En,this.uint8[Qn+7]=Mn,ir},Bt}(Fu);t1.prototype.bytesPerElement=8,Hr("StructArrayLayout2i4ub8",t1);var Jm=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir,gr){var Mr=this.length;return this.resize(Mr+1),this.emplace(Mr,ir,gr)},Bt.prototype.emplace=function(ir,gr,Mr){var Br=ir*2;return this.float32[Br+0]=gr,this.float32[Br+1]=Mr,ir},Bt}(Fu);Jm.prototype.bytesPerElement=8,Hr("StructArrayLayout2f8",Jm);var Bv=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir,gr,Mr,Br,tn,En,Mn,Pn,Qn,ao){var $a=this.length;return this.resize($a+1),this.emplace($a,ir,gr,Mr,Br,tn,En,Mn,Pn,Qn,ao)},Bt.prototype.emplace=function(ir,gr,Mr,Br,tn,En,Mn,Pn,Qn,ao,$a){var Eo=ir*10;return this.uint16[Eo+0]=gr,this.uint16[Eo+1]=Mr,this.uint16[Eo+2]=Br,this.uint16[Eo+3]=tn,this.uint16[Eo+4]=En,this.uint16[Eo+5]=Mn,this.uint16[Eo+6]=Pn,this.uint16[Eo+7]=Qn,this.uint16[Eo+8]=ao,this.uint16[Eo+9]=$a,ir},Bt}(Fu);Bv.prototype.bytesPerElement=20,Hr("StructArrayLayout10ui20",Bv);var Mm=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir,gr,Mr,Br,tn,En,Mn,Pn,Qn,ao,$a,Eo){var Ho=this.length;return this.resize(Ho+1),this.emplace(Ho,ir,gr,Mr,Br,tn,En,Mn,Pn,Qn,ao,$a,Eo)},Bt.prototype.emplace=function(ir,gr,Mr,Br,tn,En,Mn,Pn,Qn,ao,$a,Eo,Ho){var ds=ir*12;return this.int16[ds+0]=gr,this.int16[ds+1]=Mr,this.int16[ds+2]=Br,this.int16[ds+3]=tn,this.uint16[ds+4]=En,this.uint16[ds+5]=Mn,this.uint16[ds+6]=Pn,this.uint16[ds+7]=Qn,this.int16[ds+8]=ao,this.int16[ds+9]=$a,this.int16[ds+10]=Eo,this.int16[ds+11]=Ho,ir},Bt}(Fu);Mm.prototype.bytesPerElement=24,Hr("StructArrayLayout4i4ui4i24",Mm);var Uy=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir,gr,Mr){var Br=this.length;return this.resize(Br+1),this.emplace(Br,ir,gr,Mr)},Bt.prototype.emplace=function(ir,gr,Mr,Br){var tn=ir*3;return this.float32[tn+0]=gr,this.float32[tn+1]=Mr,this.float32[tn+2]=Br,ir},Bt}(Fu);Uy.prototype.bytesPerElement=12,Hr("StructArrayLayout3f12",Uy);var Im=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir){var gr=this.length;return this.resize(gr+1),this.emplace(gr,ir)},Bt.prototype.emplace=function(ir,gr){var Mr=ir*1;return this.uint32[Mr+0]=gr,ir},Bt}(Fu);Im.prototype.bytesPerElement=4,Hr("StructArrayLayout1ul4",Im);var lm=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir,gr,Mr,Br,tn,En,Mn,Pn,Qn){var ao=this.length;return this.resize(ao+1),this.emplace(ao,ir,gr,Mr,Br,tn,En,Mn,Pn,Qn)},Bt.prototype.emplace=function(ir,gr,Mr,Br,tn,En,Mn,Pn,Qn,ao){var $a=ir*10,Eo=ir*5;return this.int16[$a+0]=gr,this.int16[$a+1]=Mr,this.int16[$a+2]=Br,this.int16[$a+3]=tn,this.int16[$a+4]=En,this.int16[$a+5]=Mn,this.uint32[Eo+3]=Pn,this.uint16[$a+8]=Qn,this.uint16[$a+9]=ao,ir},Bt}(Fu);lm.prototype.bytesPerElement=20,Hr("StructArrayLayout6i1ul2ui20",lm);var $y=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir,gr,Mr,Br,tn,En){var Mn=this.length;return this.resize(Mn+1),this.emplace(Mn,ir,gr,Mr,Br,tn,En)},Bt.prototype.emplace=function(ir,gr,Mr,Br,tn,En,Mn){var Pn=ir*6;return this.int16[Pn+0]=gr,this.int16[Pn+1]=Mr,this.int16[Pn+2]=Br,this.int16[Pn+3]=tn,this.int16[Pn+4]=En,this.int16[Pn+5]=Mn,ir},Bt}(Fu);$y.prototype.bytesPerElement=12,Hr("StructArrayLayout2i2i2i12",$y);var O1=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir,gr,Mr,Br,tn){var En=this.length;return this.resize(En+1),this.emplace(En,ir,gr,Mr,Br,tn)},Bt.prototype.emplace=function(ir,gr,Mr,Br,tn,En){var Mn=ir*4,Pn=ir*8;return this.float32[Mn+0]=gr,this.float32[Mn+1]=Mr,this.float32[Mn+2]=Br,this.int16[Pn+6]=tn,this.int16[Pn+7]=En,ir},Bt}(Fu);O1.prototype.bytesPerElement=16,Hr("StructArrayLayout2f1f2i16",O1);var jv=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir,gr,Mr,Br){var tn=this.length;return this.resize(tn+1),this.emplace(tn,ir,gr,Mr,Br)},Bt.prototype.emplace=function(ir,gr,Mr,Br,tn){var En=ir*12,Mn=ir*3;return this.uint8[En+0]=gr,this.uint8[En+1]=Mr,this.float32[Mn+1]=Br,this.float32[Mn+2]=tn,ir},Bt}(Fu);jv.prototype.bytesPerElement=12,Hr("StructArrayLayout2ub2f12",jv);var F0=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir,gr,Mr){var Br=this.length;return this.resize(Br+1),this.emplace(Br,ir,gr,Mr)},Bt.prototype.emplace=function(ir,gr,Mr,Br){var tn=ir*3;return this.uint16[tn+0]=gr,this.uint16[tn+1]=Mr,this.uint16[tn+2]=Br,ir},Bt}(Fu);F0.prototype.bytesPerElement=6,Hr("StructArrayLayout3ui6",F0);var py=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir,gr,Mr,Br,tn,En,Mn,Pn,Qn,ao,$a,Eo,Ho,ds,ss,Bs,As){var Os=this.length;return this.resize(Os+1),this.emplace(Os,ir,gr,Mr,Br,tn,En,Mn,Pn,Qn,ao,$a,Eo,Ho,ds,ss,Bs,As)},Bt.prototype.emplace=function(ir,gr,Mr,Br,tn,En,Mn,Pn,Qn,ao,$a,Eo,Ho,ds,ss,Bs,As,Os){var Vs=ir*24,El=ir*12,Nl=ir*48;return this.int16[Vs+0]=gr,this.int16[Vs+1]=Mr,this.uint16[Vs+2]=Br,this.uint16[Vs+3]=tn,this.uint32[El+2]=En,this.uint32[El+3]=Mn,this.uint32[El+4]=Pn,this.uint16[Vs+10]=Qn,this.uint16[Vs+11]=ao,this.uint16[Vs+12]=$a,this.float32[El+7]=Eo,this.float32[El+8]=Ho,this.uint8[Nl+36]=ds,this.uint8[Nl+37]=ss,this.uint8[Nl+38]=Bs,this.uint32[El+10]=As,this.int16[Vs+22]=Os,ir},Bt}(Fu);py.prototype.bytesPerElement=48,Hr("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",py);var Qm=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir,gr,Mr,Br,tn,En,Mn,Pn,Qn,ao,$a,Eo,Ho,ds,ss,Bs,As,Os,Vs,El,Nl,Dl,ou,eu,au,Cu,su,uu){var Iu=this.length;return this.resize(Iu+1),this.emplace(Iu,ir,gr,Mr,Br,tn,En,Mn,Pn,Qn,ao,$a,Eo,Ho,ds,ss,Bs,As,Os,Vs,El,Nl,Dl,ou,eu,au,Cu,su,uu)},Bt.prototype.emplace=function(ir,gr,Mr,Br,tn,En,Mn,Pn,Qn,ao,$a,Eo,Ho,ds,ss,Bs,As,Os,Vs,El,Nl,Dl,ou,eu,au,Cu,su,uu,Iu){var Au=ir*34,_f=ir*17;return this.int16[Au+0]=gr,this.int16[Au+1]=Mr,this.int16[Au+2]=Br,this.int16[Au+3]=tn,this.int16[Au+4]=En,this.int16[Au+5]=Mn,this.int16[Au+6]=Pn,this.int16[Au+7]=Qn,this.uint16[Au+8]=ao,this.uint16[Au+9]=$a,this.uint16[Au+10]=Eo,this.uint16[Au+11]=Ho,this.uint16[Au+12]=ds,this.uint16[Au+13]=ss,this.uint16[Au+14]=Bs,this.uint16[Au+15]=As,this.uint16[Au+16]=Os,this.uint16[Au+17]=Vs,this.uint16[Au+18]=El,this.uint16[Au+19]=Nl,this.uint16[Au+20]=Dl,this.uint16[Au+21]=ou,this.uint16[Au+22]=eu,this.uint32[_f+12]=au,this.float32[_f+13]=Cu,this.float32[_f+14]=su,this.float32[_f+15]=uu,this.float32[_f+16]=Iu,ir},Bt}(Fu);Qm.prototype.bytesPerElement=68,Hr("StructArrayLayout8i15ui1ul4f68",Qm);var km=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir){var gr=this.length;return this.resize(gr+1),this.emplace(gr,ir)},Bt.prototype.emplace=function(ir,gr){var Mr=ir*1;return this.float32[Mr+0]=gr,ir},Bt}(Fu);km.prototype.bytesPerElement=4,Hr("StructArrayLayout1f4",km);var vy=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir,gr,Mr){var Br=this.length;return this.resize(Br+1),this.emplace(Br,ir,gr,Mr)},Bt.prototype.emplace=function(ir,gr,Mr,Br){var tn=ir*3;return this.int16[tn+0]=gr,this.int16[tn+1]=Mr,this.int16[tn+2]=Br,ir},Bt}(Fu);vy.prototype.bytesPerElement=6,Hr("StructArrayLayout3i6",vy);var Lm=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir,gr,Mr){var Br=this.length;return this.resize(Br+1),this.emplace(Br,ir,gr,Mr)},Bt.prototype.emplace=function(ir,gr,Mr,Br){var tn=ir*2,En=ir*4;return this.uint32[tn+0]=gr,this.uint16[En+2]=Mr,this.uint16[En+3]=Br,ir},Bt}(Fu);Lm.prototype.bytesPerElement=8,Hr("StructArrayLayout1ul2ui8",Lm);var gy=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir,gr){var Mr=this.length;return this.resize(Mr+1),this.emplace(Mr,ir,gr)},Bt.prototype.emplace=function(ir,gr,Mr){var Br=ir*2;return this.uint16[Br+0]=gr,this.uint16[Br+1]=Mr,ir},Bt}(Fu);gy.prototype.bytesPerElement=4,Hr("StructArrayLayout2ui4",gy);var um=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir){var gr=this.length;return this.resize(gr+1),this.emplace(gr,ir)},Bt.prototype.emplace=function(ir,gr){var Mr=ir*1;return this.uint16[Mr+0]=gr,ir},Bt}(Fu);um.prototype.bytesPerElement=2,Hr("StructArrayLayout1ui2",um);var Dm=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},Bt.prototype.emplaceBack=function(ir,gr,Mr,Br){var tn=this.length;return this.resize(tn+1),this.emplace(tn,ir,gr,Mr,Br)},Bt.prototype.emplace=function(ir,gr,Mr,Br,tn){var En=ir*4;return this.float32[En+0]=gr,this.float32[En+1]=Mr,this.float32[En+2]=Br,this.float32[En+3]=tn,ir},Bt}(Fu);Dm.prototype.bytesPerElement=16,Hr("StructArrayLayout4f16",Dm);var Hy=function(Ft){function Bt(){Ft.apply(this,arguments)}Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt;var Wt={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return Wt.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},Wt.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},Wt.x1.get=function(){return this._structArray.int16[this._pos2+2]},Wt.y1.get=function(){return this._structArray.int16[this._pos2+3]},Wt.x2.get=function(){return this._structArray.int16[this._pos2+4]},Wt.y2.get=function(){return this._structArray.int16[this._pos2+5]},Wt.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},Wt.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},Wt.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},Wt.anchorPoint.get=function(){return new j(this.anchorPointX,this.anchorPointY)},Object.defineProperties(Bt.prototype,Wt),Bt}(a0);Hy.prototype.size=20;var px=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype.get=function(ir){return new Hy(this,ir)},Bt}(lm);Hr("CollisionBoxArray",px);var Pm=function(Ft){function Bt(){Ft.apply(this,arguments)}Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt;var Wt={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return Wt.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},Wt.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},Wt.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},Wt.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},Wt.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},Wt.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},Wt.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},Wt.segment.get=function(){return this._structArray.uint16[this._pos2+10]},Wt.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},Wt.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},Wt.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},Wt.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},Wt.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},Wt.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},Wt.placedOrientation.set=function(ir){this._structArray.uint8[this._pos1+37]=ir},Wt.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},Wt.hidden.set=function(ir){this._structArray.uint8[this._pos1+38]=ir},Wt.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},Wt.crossTileID.set=function(ir){this._structArray.uint32[this._pos4+10]=ir},Wt.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(Bt.prototype,Wt),Bt}(a0);Pm.prototype.size=48;var r1=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype.get=function(ir){return new Pm(this,ir)},Bt}(py);Hr("PlacedSymbolArray",r1);var qm=function(Ft){function Bt(){Ft.apply(this,arguments)}Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt;var Wt={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return Wt.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},Wt.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},Wt.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},Wt.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},Wt.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},Wt.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},Wt.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},Wt.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},Wt.key.get=function(){return this._structArray.uint16[this._pos2+8]},Wt.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},Wt.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},Wt.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},Wt.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},Wt.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},Wt.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},Wt.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},Wt.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},Wt.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},Wt.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},Wt.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},Wt.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},Wt.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},Wt.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},Wt.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},Wt.crossTileID.set=function(ir){this._structArray.uint32[this._pos4+12]=ir},Wt.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},Wt.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},Wt.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},Wt.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(Bt.prototype,Wt),Bt}(a0);qm.prototype.size=68;var vx=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype.get=function(ir){return new qm(this,ir)},Bt}(Qm);Hr("SymbolInstanceArray",vx);var Px=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype.getoffsetX=function(ir){return this.float32[ir*1+0]},Bt}(km);Hr("GlyphOffsetArray",Px);var B0=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype.getx=function(ir){return this.int16[ir*3+0]},Bt.prototype.gety=function(ir){return this.int16[ir*3+1]},Bt.prototype.gettileUnitDistanceFromAnchor=function(ir){return this.int16[ir*3+2]},Bt}(vy);Hr("SymbolLineVertexArray",B0);var Nx=function(Ft){function Bt(){Ft.apply(this,arguments)}Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt;var Wt={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return Wt.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},Wt.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},Wt.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(Bt.prototype,Wt),Bt}(a0);Nx.prototype.size=8;var Ox=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype.get=function(ir){return new Nx(this,ir)},Bt}(Lm);Hr("FeatureIndexArray",Ox);var cm=xp([{name:"a_pos",components:2,type:"Int16"}],4),Gy=cm.members,zp=function(Bt){Bt===void 0&&(Bt=[]),this.segments=Bt};zp.prototype.prepareSegment=function(Bt,Wt,ir,gr){var Mr=this.segments[this.segments.length-1];return Bt>zp.MAX_VERTEX_ARRAY_LENGTH&&$t("Max vertices per segment is "+zp.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+Bt),(!Mr||Mr.vertexLength+Bt>zp.MAX_VERTEX_ARRAY_LENGTH||Mr.sortKey!==gr)&&(Mr={vertexOffset:Wt.length,primitiveOffset:ir.length,vertexLength:0,primitiveLength:0},gr!==void 0&&(Mr.sortKey=gr),this.segments.push(Mr)),Mr},zp.prototype.get=function(){return this.segments},zp.prototype.destroy=function(){for(var Bt=0,Wt=this.segments;Bt>>16)*En&65535)<<16)&4294967295,Pn=Pn<<15|Pn>>>17,Pn=(Pn&65535)*Mn+(((Pn>>>16)*Mn&65535)<<16)&4294967295,Br^=Pn,Br=Br<<13|Br>>>19,tn=(Br&65535)*5+(((Br>>>16)*5&65535)<<16)&4294967295,Br=(tn&65535)+27492+(((tn>>>16)+58964&65535)<<16);switch(Pn=0,gr){case 3:Pn^=(Wt.charCodeAt(Qn+2)&255)<<16;case 2:Pn^=(Wt.charCodeAt(Qn+1)&255)<<8;case 1:Pn^=Wt.charCodeAt(Qn)&255,Pn=(Pn&65535)*En+(((Pn>>>16)*En&65535)<<16)&4294967295,Pn=Pn<<15|Pn>>>17,Pn=(Pn&65535)*Mn+(((Pn>>>16)*Mn&65535)<<16)&4294967295,Br^=Pn}return Br^=Wt.length,Br^=Br>>>16,Br=(Br&65535)*2246822507+(((Br>>>16)*2246822507&65535)<<16)&4294967295,Br^=Br>>>13,Br=(Br&65535)*3266489909+(((Br>>>16)*3266489909&65535)<<16)&4294967295,Br^=Br>>>16,Br>>>0}Ft.exports=Bt}),nr=Tt(function(Ft){function Bt(Wt,ir){for(var gr=Wt.length,Mr=ir^gr,Br=0,tn;gr>=4;)tn=Wt.charCodeAt(Br)&255|(Wt.charCodeAt(++Br)&255)<<8|(Wt.charCodeAt(++Br)&255)<<16|(Wt.charCodeAt(++Br)&255)<<24,tn=(tn&65535)*1540483477+(((tn>>>16)*1540483477&65535)<<16),tn^=tn>>>24,tn=(tn&65535)*1540483477+(((tn>>>16)*1540483477&65535)<<16),Mr=(Mr&65535)*1540483477+(((Mr>>>16)*1540483477&65535)<<16)^tn,gr-=4,++Br;switch(gr){case 3:Mr^=(Wt.charCodeAt(Br+2)&255)<<16;case 2:Mr^=(Wt.charCodeAt(Br+1)&255)<<8;case 1:Mr^=Wt.charCodeAt(Br)&255,Mr=(Mr&65535)*1540483477+(((Mr>>>16)*1540483477&65535)<<16)}return Mr^=Mr>>>13,Mr=(Mr&65535)*1540483477+(((Mr>>>16)*1540483477&65535)<<16),Mr^=Mr>>>15,Mr>>>0}Ft.exports=Bt}),yr=vr,$r=vr,Kr=nr;yr.murmur3=$r,yr.murmur2=Kr;var gn=function(){this.ids=[],this.positions=[],this.indexed=!1};gn.prototype.add=function(Bt,Wt,ir,gr){this.ids.push(jn(Bt)),this.positions.push(Wt,ir,gr)},gn.prototype.getPositions=function(Bt){for(var Wt=jn(Bt),ir=0,gr=this.ids.length-1;ir>1;this.ids[Mr]>=Wt?gr=Mr:ir=Mr+1}for(var Br=[];this.ids[ir]===Wt;){var tn=this.positions[3*ir],En=this.positions[3*ir+1],Mn=this.positions[3*ir+2];Br.push({index:tn,start:En,end:Mn}),ir++}return Br},gn.serialize=function(Bt,Wt){var ir=new Float64Array(Bt.ids),gr=new Uint32Array(Bt.positions);return na(ir,gr,0,ir.length-1),Wt&&Wt.push(ir.buffer,gr.buffer),{ids:ir,positions:gr}},gn.deserialize=function(Bt){var Wt=new gn;return Wt.ids=Bt.ids,Wt.positions=Bt.positions,Wt.indexed=!0,Wt};var kn=Math.pow(2,53)-1;function jn(Ft){var Bt=+Ft;return!isNaN(Bt)&&Bt<=kn?Bt:yr(String(Ft))}function na(Ft,Bt,Wt,ir){for(;Wt>1],Mr=Wt-1,Br=ir+1;;){do Mr++;while(Ft[Mr]gr);if(Mr>=Br)break;uo(Ft,Mr,Br),uo(Bt,3*Mr,3*Br),uo(Bt,3*Mr+1,3*Br+1),uo(Bt,3*Mr+2,3*Br+2)}Br-WtBr.x+1||EnBr.y+1)&&$t("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return Wt}function dp(Ft,Bt){return{type:Ft.type,id:Ft.id,properties:Ft.properties,geometry:Bt?Hu(Ft):[]}}function Pu(Ft,Bt,Wt,ir,gr){Ft.emplaceBack(Bt*2+(ir+1)/2,Wt*2+(gr+1)/2)}var ap=function(Bt){this.zoom=Bt.zoom,this.overscaling=Bt.overscaling,this.layers=Bt.layers,this.layerIds=this.layers.map(function(Wt){return Wt.id}),this.index=Bt.index,this.hasPattern=!1,this.layoutVertexArray=new Zm,this.indexArray=new F0,this.segments=new zp,this.programConfigurations=new Kl(Bt.layers,Bt.zoom),this.stateDependentLayerIds=this.layers.filter(function(Wt){return Wt.isStateDependent()}).map(function(Wt){return Wt.id})};ap.prototype.populate=function(Bt,Wt,ir){var gr=this.layers[0],Mr=[],Br=null;gr.type==="circle"&&(Br=gr.layout.get("circle-sort-key"));for(var tn=0,En=Bt;tn=iu||ao<0||ao>=iu)){var $a=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,Bt.sortKey),Eo=$a.vertexLength;Pu(this.layoutVertexArray,Qn,ao,-1,-1),Pu(this.layoutVertexArray,Qn,ao,1,-1),Pu(this.layoutVertexArray,Qn,ao,1,1),Pu(this.layoutVertexArray,Qn,ao,-1,1),this.indexArray.emplaceBack(Eo,Eo+1,Eo+2),this.indexArray.emplaceBack(Eo,Eo+3,Eo+2),$a.vertexLength+=4,$a.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,Bt,ir,{},gr)},Hr("CircleBucket",ap,{omit:["layers"]});function wu(Ft,Bt){for(var Wt=0;Wt=3){for(var Mr=0;Mr1){if(Av(Ft,Bt))return!0;for(var ir=0;ir1?Ft.distSqr(Wt):Ft.distSqr(Wt.sub(Bt)._mult(gr)._add(Bt))}function F1(Ft,Bt){for(var Wt=!1,ir,gr,Mr,Br=0;BrBt.y!=Mr.y>Bt.y&&Bt.x<(Mr.x-gr.x)*(Bt.y-gr.y)/(Mr.y-gr.y)+gr.x&&(Wt=!Wt)}return Wt}function Yv(Ft,Bt){for(var Wt=!1,ir=0,gr=Ft.length-1;irBt.y!=Br.y>Bt.y&&Bt.x<(Br.x-Mr.x)*(Bt.y-Mr.y)/(Br.y-Mr.y)+Mr.x&&(Wt=!Wt)}return Wt}function B1(Ft,Bt,Wt,ir,gr){for(var Mr=0,Br=Ft;Mr=tn.x&&gr>=tn.y)return!0}var En=[new j(Bt,Wt),new j(Bt,gr),new j(ir,gr),new j(ir,Wt)];if(Ft.length>2)for(var Mn=0,Pn=En;Mngr.x&&Bt.x>gr.x||Ft.ygr.y&&Bt.y>gr.y)return!1;var Mr=Ut(Ft,Bt,Wt[0]);return Mr!==Ut(Ft,Bt,Wt[1])||Mr!==Ut(Ft,Bt,Wt[2])||Mr!==Ut(Ft,Bt,Wt[3])}function Xv(Ft,Bt,Wt){var ir=Bt.paint.get(Ft).value;return ir.kind==="constant"?ir.value:Wt.programConfigurations.get(Bt.id).getMaxValue(Ft)}function i1(Ft){return Math.sqrt(Ft[0]*Ft[0]+Ft[1]*Ft[1])}function fm(Ft,Bt,Wt,ir,gr){if(!Bt[0]&&!Bt[1])return Ft;var Mr=j.convert(Bt)._mult(gr);Wt==="viewport"&&Mr._rotate(-ir);for(var Br=[],tn=0;tn0&&(Mr=1/Math.sqrt(Mr)),Ft[0]=Bt[0]*Mr,Ft[1]=Bt[1]*Mr,Ft[2]=Bt[2]*Mr,Ft}function uT(Ft,Bt){return Ft[0]*Bt[0]+Ft[1]*Bt[1]+Ft[2]*Bt[2]}function cT(Ft,Bt,Wt){var ir=Bt[0],gr=Bt[1],Mr=Bt[2],Br=Wt[0],tn=Wt[1],En=Wt[2];return Ft[0]=gr*En-Mr*tn,Ft[1]=Mr*Br-ir*En,Ft[2]=ir*tn-gr*Br,Ft}function fT(Ft,Bt,Wt){var ir=Bt[0],gr=Bt[1],Mr=Bt[2];return Ft[0]=ir*Wt[0]+gr*Wt[3]+Mr*Wt[6],Ft[1]=ir*Wt[1]+gr*Wt[4]+Mr*Wt[7],Ft[2]=ir*Wt[2]+gr*Wt[5]+Mr*Wt[8],Ft}var dT=h2;(function(){var Ft=Ty();return function(Bt,Wt,ir,gr,Mr,Br){var tn,En;for(Wt||(Wt=3),ir||(ir=0),gr?En=Math.min(gr*Wt+ir,Bt.length):En=Bt.length,tn=ir;tnFt.width||gr.height>Ft.height||Wt.x>Ft.width-gr.width||Wt.y>Ft.height-gr.height)throw new RangeError("out of range source coordinates for image copy");if(gr.width>Bt.width||gr.height>Bt.height||ir.x>Bt.width-gr.width||ir.y>Bt.height-gr.height)throw new RangeError("out of range destination coordinates for image copy");for(var Br=Ft.data,tn=Bt.data,En=0;En80*Wt){tn=Mn=Ft[0],En=Pn=Ft[1];for(var Eo=Wt;EoMn&&(Mn=Qn),ao>Pn&&(Pn=ao);$a=Math.max(Mn-tn,Pn-En),$a=$a!==0?1/$a:0}return yx(Mr,Br,Wt,tn,En,$a),Br}function mx(Ft,Bt,Wt,ir,gr){var Mr,Br;if(gr===E2(Ft,Bt,Wt,ir)>0)for(Mr=Bt;Mr=Bt;Mr-=ir)Br=oE(Mr,Ft[Mr],Ft[Mr+1],Br);return Br&&zx(Br,Br.next)&&(bx(Br),Br=Br.next),Br}function Ay(Ft,Bt){if(!Ft)return Ft;Bt||(Bt=Ft);var Wt=Ft,ir;do if(ir=!1,!Wt.steiner&&(zx(Wt,Wt.next)||Yp(Wt.prev,Wt,Wt.next)===0)){if(bx(Wt),Wt=Bt=Wt.prev,Wt===Wt.next)break;ir=!0}else Wt=Wt.next;while(ir||Wt!==Bt);return Bt}function yx(Ft,Bt,Wt,ir,gr,Mr,Br){if(Ft){!Br&&Mr&&FT(Ft,ir,gr,Mr);for(var tn=Ft,En,Mn;Ft.prev!==Ft.next;){if(En=Ft.prev,Mn=Ft.next,Mr?RT(Ft,ir,gr,Mr):CT(Ft)){Bt.push(En.i/Wt),Bt.push(Ft.i/Wt),Bt.push(Mn.i/Wt),bx(Ft),Ft=Mn.next,tn=Mn.next;continue}if(Ft=Mn,Ft===tn){Br?Br===1?(Ft=MT(Ay(Ft),Bt,Wt),yx(Ft,Bt,Wt,ir,gr,Mr,2)):Br===2&&IT(Ft,Bt,Wt,ir,gr,Mr):yx(Ay(Ft),Bt,Wt,ir,gr,Mr,1);break}}}}function CT(Ft){var Bt=Ft.prev,Wt=Ft,ir=Ft.next;if(Yp(Bt,Wt,ir)>=0)return!1;for(var gr=Ft.next.next;gr!==Ft.prev;){if(Xy(Bt.x,Bt.y,Wt.x,Wt.y,ir.x,ir.y,gr.x,gr.y)&&Yp(gr.prev,gr,gr.next)>=0)return!1;gr=gr.next}return!0}function RT(Ft,Bt,Wt,ir){var gr=Ft.prev,Mr=Ft,Br=Ft.next;if(Yp(gr,Mr,Br)>=0)return!1;for(var tn=gr.xMr.x?gr.x>Br.x?gr.x:Br.x:Mr.x>Br.x?Mr.x:Br.x,Pn=gr.y>Mr.y?gr.y>Br.y?gr.y:Br.y:Mr.y>Br.y?Mr.y:Br.y,Qn=x2(tn,En,Bt,Wt,ir),ao=x2(Mn,Pn,Bt,Wt,ir),$a=Ft.prevZ,Eo=Ft.nextZ;$a&&$a.z>=Qn&&Eo&&Eo.z<=ao;){if($a!==Ft.prev&&$a!==Ft.next&&Xy(gr.x,gr.y,Mr.x,Mr.y,Br.x,Br.y,$a.x,$a.y)&&Yp($a.prev,$a,$a.next)>=0||($a=$a.prevZ,Eo!==Ft.prev&&Eo!==Ft.next&&Xy(gr.x,gr.y,Mr.x,Mr.y,Br.x,Br.y,Eo.x,Eo.y)&&Yp(Eo.prev,Eo,Eo.next)>=0))return!1;Eo=Eo.nextZ}for(;$a&&$a.z>=Qn;){if($a!==Ft.prev&&$a!==Ft.next&&Xy(gr.x,gr.y,Mr.x,Mr.y,Br.x,Br.y,$a.x,$a.y)&&Yp($a.prev,$a,$a.next)>=0)return!1;$a=$a.prevZ}for(;Eo&&Eo.z<=ao;){if(Eo!==Ft.prev&&Eo!==Ft.next&&Xy(gr.x,gr.y,Mr.x,Mr.y,Br.x,Br.y,Eo.x,Eo.y)&&Yp(Eo.prev,Eo,Eo.next)>=0)return!1;Eo=Eo.nextZ}return!0}function MT(Ft,Bt,Wt){var ir=Ft;do{var gr=ir.prev,Mr=ir.next.next;!zx(gr,Mr)&&aE(gr,ir,ir.next,Mr)&&xx(gr,Mr)&&xx(Mr,gr)&&(Bt.push(gr.i/Wt),Bt.push(ir.i/Wt),Bt.push(Mr.i/Wt),bx(ir),bx(ir.next),ir=Ft=Mr),ir=ir.next}while(ir!==Ft);return Ay(ir)}function IT(Ft,Bt,Wt,ir,gr,Mr){var Br=Ft;do{for(var tn=Br.next.next;tn!==Br.prev;){if(Br.i!==tn.i&&nE(Br,tn)){var En=iE(Br,tn);Br=Ay(Br,Br.next),En=Ay(En,En.next),yx(Br,Bt,Wt,ir,gr,Mr),yx(En,Bt,Wt,ir,gr,Mr);return}tn=tn.next}Br=Br.next}while(Br!==Ft)}function kT(Ft,Bt,Wt,ir){var gr=[],Mr,Br,tn,En,Mn;for(Mr=0,Br=Bt.length;Mr=Wt.next.y&&Wt.next.y!==Wt.y){var tn=Wt.x+(gr-Wt.y)*(Wt.next.x-Wt.x)/(Wt.next.y-Wt.y);if(tn<=ir&&tn>Mr){if(Mr=tn,tn===ir){if(gr===Wt.y)return Wt;if(gr===Wt.next.y)return Wt.next}Br=Wt.x=Wt.x&&Wt.x>=Mn&&ir!==Wt.x&&Xy(grBr.x||Wt.x===Br.x&&OT(Br,Wt)))&&(Br=Wt,Qn=ao)),Wt=Wt.next;while(Wt!==En);return Br}function OT(Ft,Bt){return Yp(Ft.prev,Ft,Bt.prev)<0&&Yp(Bt.next,Ft,Ft.next)<0}function FT(Ft,Bt,Wt,ir){var gr=Ft;do gr.z===null&&(gr.z=x2(gr.x,gr.y,Bt,Wt,ir)),gr.prevZ=gr.prev,gr.nextZ=gr.next,gr=gr.next;while(gr!==Ft);gr.prevZ.nextZ=null,gr.prevZ=null,BT(gr)}function BT(Ft){var Bt,Wt,ir,gr,Mr,Br,tn,En,Mn=1;do{for(Wt=Ft,Ft=null,Mr=null,Br=0;Wt;){for(Br++,ir=Wt,tn=0,Bt=0;Bt0||En>0&&ir;)tn!==0&&(En===0||!ir||Wt.z<=ir.z)?(gr=Wt,Wt=Wt.nextZ,tn--):(gr=ir,ir=ir.nextZ,En--),Mr?Mr.nextZ=gr:Ft=gr,gr.prevZ=Mr,Mr=gr;Wt=ir}Mr.nextZ=null,Mn*=2}while(Br>1);return Ft}function x2(Ft,Bt,Wt,ir,gr){return Ft=32767*(Ft-Wt)*gr,Bt=32767*(Bt-ir)*gr,Ft=(Ft|Ft<<8)&16711935,Ft=(Ft|Ft<<4)&252645135,Ft=(Ft|Ft<<2)&858993459,Ft=(Ft|Ft<<1)&1431655765,Bt=(Bt|Bt<<8)&16711935,Bt=(Bt|Bt<<4)&252645135,Bt=(Bt|Bt<<2)&858993459,Bt=(Bt|Bt<<1)&1431655765,Ft|Bt<<1}function zT(Ft){var Bt=Ft,Wt=Ft;do(Bt.x=0&&(Ft-Br)*(ir-tn)-(Wt-Br)*(Bt-tn)>=0&&(Wt-Br)*(Mr-tn)-(gr-Br)*(ir-tn)>=0}function nE(Ft,Bt){return Ft.next.i!==Bt.i&&Ft.prev.i!==Bt.i&&!Hx(Ft,Bt)&&(xx(Ft,Bt)&&xx(Bt,Ft)&&UT(Ft,Bt)&&(Yp(Ft.prev,Ft,Bt.prev)||Yp(Ft,Bt.prev,Bt))||zx(Ft,Bt)&&Yp(Ft.prev,Ft,Ft.next)>0&&Yp(Bt.prev,Bt,Bt.next)>0)}function Yp(Ft,Bt,Wt){return(Bt.y-Ft.y)*(Wt.x-Bt.x)-(Bt.x-Ft.x)*(Wt.y-Bt.y)}function zx(Ft,Bt){return Ft.x===Bt.x&&Ft.y===Bt.y}function aE(Ft,Bt,Wt,ir){var gr=$x(Yp(Ft,Bt,Wt)),Mr=$x(Yp(Ft,Bt,ir)),Br=$x(Yp(Wt,ir,Ft)),tn=$x(Yp(Wt,ir,Bt));return!!(gr!==Mr&&Br!==tn||gr===0&&Ux(Ft,Wt,Bt)||Mr===0&&Ux(Ft,ir,Bt)||Br===0&&Ux(Wt,Ft,ir)||tn===0&&Ux(Wt,Bt,ir))}function Ux(Ft,Bt,Wt){return Bt.x<=Math.max(Ft.x,Wt.x)&&Bt.x>=Math.min(Ft.x,Wt.x)&&Bt.y<=Math.max(Ft.y,Wt.y)&&Bt.y>=Math.min(Ft.y,Wt.y)}function $x(Ft){return Ft>0?1:Ft<0?-1:0}function Hx(Ft,Bt){var Wt=Ft;do{if(Wt.i!==Ft.i&&Wt.next.i!==Ft.i&&Wt.i!==Bt.i&&Wt.next.i!==Bt.i&&aE(Wt,Wt.next,Ft,Bt))return!0;Wt=Wt.next}while(Wt!==Ft);return!1}function xx(Ft,Bt){return Yp(Ft.prev,Ft,Ft.next)<0?Yp(Ft,Bt,Ft.next)>=0&&Yp(Ft,Ft.prev,Bt)>=0:Yp(Ft,Bt,Ft.prev)<0||Yp(Ft,Ft.next,Bt)<0}function UT(Ft,Bt){var Wt=Ft,ir=!1,gr=(Ft.x+Bt.x)/2,Mr=(Ft.y+Bt.y)/2;do Wt.y>Mr!=Wt.next.y>Mr&&Wt.next.y!==Wt.y&&gr<(Wt.next.x-Wt.x)*(Mr-Wt.y)/(Wt.next.y-Wt.y)+Wt.x&&(ir=!ir),Wt=Wt.next;while(Wt!==Ft);return ir}function iE(Ft,Bt){var Wt=new b2(Ft.i,Ft.x,Ft.y),ir=new b2(Bt.i,Bt.x,Bt.y),gr=Ft.next,Mr=Bt.prev;return Ft.next=Bt,Bt.prev=Ft,Wt.next=gr,gr.prev=Wt,ir.next=Wt,Wt.prev=ir,Mr.next=ir,ir.prev=Mr,ir}function oE(Ft,Bt,Wt,ir){var gr=new b2(Ft,Bt,Wt);return ir?(gr.next=ir.next,gr.prev=ir,ir.next.prev=gr,ir.next=gr):(gr.prev=gr,gr.next=gr),gr}function bx(Ft){Ft.next.prev=Ft.prev,Ft.prev.next=Ft.next,Ft.prevZ&&(Ft.prevZ.nextZ=Ft.nextZ),Ft.nextZ&&(Ft.nextZ.prevZ=Ft.prevZ)}function b2(Ft,Bt,Wt){this.i=Ft,this.x=Bt,this.y=Wt,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}Bx.deviation=function(Ft,Bt,Wt,ir){var gr=Bt&&Bt.length,Mr=gr?Bt[0]*Wt:Ft.length,Br=Math.abs(E2(Ft,0,Mr,Wt));if(gr)for(var tn=0,En=Bt.length;tn0&&(ir+=Ft[gr-1].length,Wt.holes.push(ir))}return Wt},y2.default=rE;function $T(Ft,Bt,Wt,ir,gr){sE(Ft,Bt,Wt||0,ir||Ft.length-1,gr||HT)}function sE(Ft,Bt,Wt,ir,gr){for(;ir>Wt;){if(ir-Wt>600){var Mr=ir-Wt+1,Br=Bt-Wt+1,tn=Math.log(Mr),En=.5*Math.exp(2*tn/3),Mn=.5*Math.sqrt(tn*En*(Mr-En)/Mr)*(Br-Mr/2<0?-1:1),Pn=Math.max(Wt,Math.floor(Bt-Br*En/Mr+Mn)),Qn=Math.min(ir,Math.floor(Bt+(Mr-Br)*En/Mr+Mn));sE(Ft,Bt,Pn,Qn,gr)}var ao=Ft[Bt],$a=Wt,Eo=ir;for(Ex(Ft,Wt,Bt),gr(Ft[ir],ao)>0&&Ex(Ft,Wt,ir);$a0;)Eo--}gr(Ft[Wt],ao)===0?Ex(Ft,Wt,Eo):(Eo++,Ex(Ft,Eo,ir)),Eo<=Bt&&(Wt=Eo+1),Bt<=Eo&&(ir=Eo-1)}}function Ex(Ft,Bt,Wt){var ir=Ft[Bt];Ft[Bt]=Ft[Wt],Ft[Wt]=ir}function HT(Ft,Bt){return FtBt?1:0}function Ky(Ft,Bt){var Wt=Ft.length;if(Wt<=1)return[Ft];for(var ir=[],gr,Mr,Br=0;Br1)for(var En=0;En>3}if(ir--,Wt===1||Wt===2)gr+=Ft.readSVarint(),Mr+=Ft.readSVarint(),Wt===1&&(tn&&Br.push(tn),tn=[]),tn.push(new j(gr,Mr));else if(Wt===7)tn&&tn.push(tn[0].clone());else throw new Error("unknown command "+Wt)}return tn&&Br.push(tn),Br},ty.prototype.bbox=function(){var Ft=this._pbf;Ft.pos=this._geometry;for(var Bt=Ft.readVarint()+Ft.pos,Wt=1,ir=0,gr=0,Mr=0,Br=1/0,tn=-1/0,En=1/0,Mn=-1/0;Ft.pos>3}if(ir--,Wt===1||Wt===2)gr+=Ft.readSVarint(),Mr+=Ft.readSVarint(),grtn&&(tn=gr),MrMn&&(Mn=Mr);else if(Wt!==7)throw new Error("unknown command "+Wt)}return[Br,En,tn,Mn]},ty.prototype.toGeoJSON=function(Ft,Bt,Wt){var ir=this.extent*Math.pow(2,Wt),gr=this.extent*Ft,Mr=this.extent*Bt,Br=this.loadGeometry(),tn=ty.types[this.type],En,Mn;function Pn($a){for(var Eo=0;Eo<$a.length;Eo++){var Ho=$a[Eo],ds=180-(Ho.y+Mr)*360/ir;$a[Eo]=[(Ho.x+gr)*360/ir-180,360/Math.PI*Math.atan(Math.exp(ds*Math.PI/180))-90]}}switch(this.type){case 1:var Qn=[];for(En=0;En>3;Bt=ir===1?Ft.readString():ir===2?Ft.readFloat():ir===3?Ft.readDouble():ir===4?Ft.readVarint64():ir===5?Ft.readVarint():ir===6?Ft.readSVarint():ir===7?Ft.readBoolean():null}return Bt}hE.prototype.feature=function(Ft){if(Ft<0||Ft>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[Ft];var Bt=this._pbf.readVarint()+this._pbf.pos;return new Tx(this._pbf,Bt,this.extent,this._keys,this._values)};var QT=qT;function qT(Ft,Bt){this.layers=Ft.readFields(eA,{},Bt)}function eA(Ft,Bt,Wt){if(Ft===3){var ir=new dE(Wt,Wt.readVarint()+Wt.pos);ir.length&&(Bt[ir.name]=ir)}}var tA=QT,rA=Tx,nA=dE,Zy={VectorTile:tA,VectorTileFeature:rA,VectorTileLayer:nA},aA=Zy.VectorTileFeature.types,dm=500,_2=Math.pow(2,13);function Ax(Ft,Bt,Wt,ir,gr,Mr,Br,tn){Ft.emplaceBack(Bt,Wt,Math.floor(ir*_2)*2+Br,gr*_2*2,Mr*_2*2,Math.round(tn))}var Zv=function(Bt){this.zoom=Bt.zoom,this.overscaling=Bt.overscaling,this.layers=Bt.layers,this.layerIds=this.layers.map(function(Wt){return Wt.id}),this.index=Bt.index,this.hasPattern=!1,this.layoutVertexArray=new e1,this.indexArray=new F0,this.programConfigurations=new Kl(Bt.layers,Bt.zoom),this.segments=new zp,this.stateDependentLayerIds=this.layers.filter(function(Wt){return Wt.isStateDependent()}).map(function(Wt){return Wt.id})};Zv.prototype.populate=function(Bt,Wt,ir){this.features=[],this.hasPattern=Gx("fill-extrusion",this.layers,Wt);for(var gr=0,Mr=Bt;gr=1){var Os=ds[Bs-1];if(!Wu(As,Os)){$a.vertexLength+4>zp.MAX_VERTEX_ARRAY_LENGTH&&($a=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var Vs=As.sub(Os)._perp()._unit(),El=Os.dist(As);ss+El>32768&&(ss=0),Ax(this.layoutVertexArray,As.x,As.y,Vs.x,Vs.y,0,0,ss),Ax(this.layoutVertexArray,As.x,As.y,Vs.x,Vs.y,0,1,ss),ss+=El,Ax(this.layoutVertexArray,Os.x,Os.y,Vs.x,Vs.y,0,0,ss),Ax(this.layoutVertexArray,Os.x,Os.y,Vs.x,Vs.y,0,1,ss);var Nl=$a.vertexLength;this.indexArray.emplaceBack(Nl,Nl+2,Nl+1),this.indexArray.emplaceBack(Nl+1,Nl+2,Nl+3),$a.vertexLength+=4,$a.primitiveLength+=2}}}}if($a.vertexLength+Mn>zp.MAX_VERTEX_ARRAY_LENGTH&&($a=this.segments.prepareSegment(Mn,this.layoutVertexArray,this.indexArray)),aA[Bt.type]==="Polygon"){for(var Dl=[],ou=[],eu=$a.vertexLength,au=0,Cu=En;auiu)||Ft.y===Bt.y&&(Ft.y<0||Ft.y>iu)}function iA(Ft){return Ft.every(function(Bt){return Bt.x<0})||Ft.every(function(Bt){return Bt.x>iu})||Ft.every(function(Bt){return Bt.y<0})||Ft.every(function(Bt){return Bt.y>iu})}var z0=new Ku({"fill-extrusion-opacity":new Ol(To["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new cu(To["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Ol(To["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Ol(To["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Lp(To["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new cu(To["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new cu(To["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Ol(To["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])}),fv={paint:z0},oA=function(Ft){function Bt(Wt){Ft.call(this,Wt,fv)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype.createBucket=function(ir){return new Zv(ir)},Bt.prototype.queryRadius=function(){return i1(this.paint.get("fill-extrusion-translate"))},Bt.prototype.is3D=function(){return!0},Bt.prototype.queryIntersectsFeature=function(ir,gr,Mr,Br,tn,En,Mn,Pn){var Qn=fm(ir,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),En.angle,Mn),ao=this.paint.get("fill-extrusion-height").evaluate(gr,Mr),$a=this.paint.get("fill-extrusion-base").evaluate(gr,Mr),Eo=uA(Qn,Pn,En,0),Ho=lA(Br,$a,ao,Pn),ds=Ho[0],ss=Ho[1];return sA(ds,ss,Eo)},Bt}(Np);function U1(Ft,Bt){return Ft.x*Bt.x+Ft.y*Bt.y}function pE(Ft,Bt){if(Ft.length===1){for(var Wt=0,ir=Bt[Wt++],gr;!gr||ir.equals(gr);)if(gr=Bt[Wt++],!gr)return 1/0;for(;Wt=2&&Bt[Mn-1].equals(Bt[Mn-2]);)Mn--;for(var Pn=0;Pn0;if(Dl&&Bs>Pn){var eu=$a.dist(Eo);if(eu>2*Qn){var au=$a.sub($a.sub(Eo)._mult(Qn/eu)._round());this.updateDistance(Eo,au),this.addCurrentVertex(au,ds,0,0,ao),Eo=au}}var Cu=Eo&&Ho,su=Cu?ir:En?"butt":gr;if(Cu&&su==="round"&&(ElMr&&(su="bevel"),su==="bevel"&&(El>2&&(su="flipbevel"),El100)As=ss.mult(-1);else{var uu=El*ds.add(ss).mag()/ds.sub(ss).mag();As._perp()._mult(uu*(ou?-1:1))}this.addCurrentVertex($a,As,0,0,ao),this.addCurrentVertex($a,As.mult(-1),0,0,ao)}else if(su==="bevel"||su==="fakeround"){var Iu=-Math.sqrt(El*El-1),Au=ou?Iu:0,_f=ou?0:Iu;if(Eo&&this.addCurrentVertex($a,ds,Au,_f,ao),su==="fakeround")for(var gp=Math.round(Nl*180/Math.PI/gE),_d=1;_d2*Qn){var pv=$a.add(Ho.sub($a)._mult(Qn/Lv)._round());this.updateDistance($a,pv),this.addCurrentVertex(pv,ss,0,0,ao),$a=pv}}}}},Jv.prototype.addCurrentVertex=function(Bt,Wt,ir,gr,Mr,Br){Br===void 0&&(Br=!1);var tn=Wt.x+Wt.y*ir,En=Wt.y-Wt.x*ir,Mn=-Wt.x+Wt.y*gr,Pn=-Wt.y-Wt.x*gr;this.addHalfVertex(Bt,tn,En,Br,!1,ir,Mr),this.addHalfVertex(Bt,Mn,Pn,Br,!0,-gr,Mr),this.distance>yE/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(Bt,Wt,ir,gr,Mr,Br))},Jv.prototype.addHalfVertex=function(Bt,Wt,ir,gr,Mr,Br,tn){var En=Bt.x,Mn=Bt.y,Pn=this.lineClips?this.scaledDistance*(yE-1):this.scaledDistance,Qn=Pn*mE;if(this.layoutVertexArray.emplaceBack((En<<1)+(gr?1:0),(Mn<<1)+(Mr?1:0),Math.round(_x*Wt)+128,Math.round(_x*ir)+128,(Br===0?0:Br<0?-1:1)+1|(Qn&63)<<2,Qn>>6),this.lineClips){var ao=this.scaledDistance-this.lineClips.start,$a=this.lineClips.end-this.lineClips.start,Eo=ao/$a;this.layoutVertexArray2.emplaceBack(Eo,this.lineClipsArray.length)}var Ho=tn.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,Ho),tn.primitiveLength++),Mr?this.e2=Ho:this.e1=Ho},Jv.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},Jv.prototype.updateDistance=function(Bt,Wt){this.distance+=Bt.dist(Wt),this.updateScaledDistance()},Hr("LineBucket",Jv,{omit:["layers","patternFeatures"]});var hA=new Ku({"line-cap":new Ol(To.layout_line["line-cap"]),"line-join":new cu(To.layout_line["line-join"]),"line-miter-limit":new Ol(To.layout_line["line-miter-limit"]),"line-round-limit":new Ol(To.layout_line["line-round-limit"]),"line-sort-key":new cu(To.layout_line["line-sort-key"])}),pA=new Ku({"line-opacity":new cu(To.paint_line["line-opacity"]),"line-color":new cu(To.paint_line["line-color"]),"line-translate":new Ol(To.paint_line["line-translate"]),"line-translate-anchor":new Ol(To.paint_line["line-translate-anchor"]),"line-width":new cu(To.paint_line["line-width"]),"line-gap-width":new cu(To.paint_line["line-gap-width"]),"line-offset":new cu(To.paint_line["line-offset"]),"line-blur":new cu(To.paint_line["line-blur"]),"line-dasharray":new Ev(To.paint_line["line-dasharray"]),"line-pattern":new Lp(To.paint_line["line-pattern"]),"line-gradient":new jp(To.paint_line["line-gradient"])}),w2={paint:pA,layout:hA},Sx=function(Ft){function Bt(){Ft.apply(this,arguments)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype.possiblyEvaluate=function(ir,gr){return gr=new ru(Math.floor(gr.zoom),{now:gr.now,fadeDuration:gr.fadeDuration,zoomHistory:gr.zoomHistory,transition:gr.transition}),Ft.prototype.possiblyEvaluate.call(this,ir,gr)},Bt.prototype.evaluate=function(ir,gr,Mr,Br){return gr=St({},gr,{zoom:Math.floor(gr.zoom)}),Ft.prototype.evaluate.call(this,ir,gr,Mr,Br)},Bt}(cu),Wx=new Sx(w2.paint.properties["line-width"].specification);Wx.useIntegerZoom=!0;var vA=function(Ft){function Bt(Wt){Ft.call(this,Wt,w2),this.gradientVersion=0}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype._handleSpecialPaintPropertyUpdate=function(ir){if(ir==="line-gradient"){var gr=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=gr._styleExpression.expression instanceof $v,this.gradientVersion=(this.gradientVersion+1)%st}},Bt.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},Bt.prototype.recalculate=function(ir,gr){Ft.prototype.recalculate.call(this,ir,gr),this.paint._values["line-floorwidth"]=Wx.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,ir)},Bt.prototype.createBucket=function(ir){return new Jv(ir)},Bt.prototype.queryRadius=function(ir){var gr=ir,Mr=C2(Xv("line-width",this,gr),Xv("line-gap-width",this,gr)),Br=Xv("line-offset",this,gr);return Mr/2+Math.abs(Br)+i1(this.paint.get("line-translate"))},Bt.prototype.queryIntersectsFeature=function(ir,gr,Mr,Br,tn,En,Mn){var Pn=fm(ir,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),En.angle,Mn),Qn=Mn/2*C2(this.paint.get("line-width").evaluate(gr,Mr),this.paint.get("line-gap-width").evaluate(gr,Mr)),ao=this.paint.get("line-offset").evaluate(gr,Mr);return ao&&(Br=jx(Br,ao*Mn)),Jp(Pn,Br,Qn)},Bt.prototype.isTileClipped=function(){return!0},Bt}(Np);function C2(Ft,Bt){return Bt>0?Bt+2*Ft:Ft}function jx(Ft,Bt){for(var Wt=[],ir=new j(0,0),gr=0;gr":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"};function Ju(Ft){for(var Bt="",Wt=0;Wt>1,Pn=-7,Qn=Wt?gr-1:0,ao=Wt?-1:1,$a=Ft[Bt+Qn];for(Qn+=ao,Mr=$a&(1<<-Pn)-1,$a>>=-Pn,Pn+=tn;Pn>0;Mr=Mr*256+Ft[Bt+Qn],Qn+=ao,Pn-=8);for(Br=Mr&(1<<-Pn)-1,Mr>>=-Pn,Pn+=ir;Pn>0;Br=Br*256+Ft[Bt+Qn],Qn+=ao,Pn-=8);if(Mr===0)Mr=1-Mn;else{if(Mr===En)return Br?NaN:($a?-1:1)*(1/0);Br=Br+Math.pow(2,ir),Mr=Mr-Mn}return($a?-1:1)*Br*Math.pow(2,Mr-ir)},EE=function(Ft,Bt,Wt,ir,gr,Mr){var Br,tn,En,Mn=Mr*8-gr-1,Pn=(1<>1,ao=gr===23?Math.pow(2,-24)-Math.pow(2,-77):0,$a=ir?0:Mr-1,Eo=ir?1:-1,Ho=Bt<0||Bt===0&&1/Bt<0?1:0;for(Bt=Math.abs(Bt),isNaN(Bt)||Bt===1/0?(tn=isNaN(Bt)?1:0,Br=Pn):(Br=Math.floor(Math.log(Bt)/Math.LN2),Bt*(En=Math.pow(2,-Br))<1&&(Br--,En*=2),Br+Qn>=1?Bt+=ao/En:Bt+=ao*Math.pow(2,1-Qn),Bt*En>=2&&(Br++,En/=2),Br+Qn>=Pn?(tn=0,Br=Pn):Br+Qn>=1?(tn=(Bt*En-1)*Math.pow(2,gr),Br=Br+Qn):(tn=Bt*Math.pow(2,Qn-1)*Math.pow(2,gr),Br=0));gr>=8;Ft[Wt+$a]=tn&255,$a+=Eo,tn/=256,gr-=8);for(Br=Br<0;Ft[Wt+$a]=Br&255,$a+=Eo,Br/=256,Mn-=8);Ft[Wt+$a-Eo]|=Ho*128},Yx={read:$1,write:EE},hp=bp;function bp(Ft){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(Ft)?Ft:new Uint8Array(Ft||0),this.pos=0,this.type=0,this.length=this.buf.length}bp.Varint=0,bp.Fixed64=1,bp.Bytes=2,bp.Fixed32=5;var Xx=(1<<16)*(1<<16),wx=1/Xx,bA=12,TE=typeof TextDecoder>"u"?null:new TextDecoder("utf8");bp.prototype={destroy:function(){this.buf=null},readFields:function(Ft,Bt,Wt){for(Wt=Wt||this.length;this.pos>3,Mr=this.pos;this.type=ir&7,Ft(gr,Bt,this),this.pos===Mr&&this.skip(ir)}return Bt},readMessage:function(Ft,Bt){return this.readFields(Ft,Bt,this.readVarint()+this.pos)},readFixed32:function(){var Ft=Kx(this.buf,this.pos);return this.pos+=4,Ft},readSFixed32:function(){var Ft=T0(this.buf,this.pos);return this.pos+=4,Ft},readFixed64:function(){var Ft=Kx(this.buf,this.pos)+Kx(this.buf,this.pos+4)*Xx;return this.pos+=8,Ft},readSFixed64:function(){var Ft=Kx(this.buf,this.pos)+T0(this.buf,this.pos+4)*Xx;return this.pos+=8,Ft},readFloat:function(){var Ft=Yx.read(this.buf,this.pos,!0,23,4);return this.pos+=4,Ft},readDouble:function(){var Ft=Yx.read(this.buf,this.pos,!0,52,8);return this.pos+=8,Ft},readVarint:function(Ft){var Bt=this.buf,Wt,ir;return ir=Bt[this.pos++],Wt=ir&127,ir<128||(ir=Bt[this.pos++],Wt|=(ir&127)<<7,ir<128)||(ir=Bt[this.pos++],Wt|=(ir&127)<<14,ir<128)||(ir=Bt[this.pos++],Wt|=(ir&127)<<21,ir<128)?Wt:(ir=Bt[this.pos],Wt|=(ir&15)<<28,EA(Wt,Ft,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var Ft=this.readVarint();return Ft%2===1?(Ft+1)/-2:Ft/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var Ft=this.readVarint()+this.pos,Bt=this.pos;return this.pos=Ft,Ft-Bt>=bA&&TE?DA(this.buf,Bt,Ft):LA(this.buf,Bt,Ft)},readBytes:function(){var Ft=this.readVarint()+this.pos,Bt=this.buf.subarray(this.pos,Ft);return this.pos=Ft,Bt},readPackedVarint:function(Ft,Bt){if(this.type!==bp.Bytes)return Ft.push(this.readVarint(Bt));var Wt=ny(this);for(Ft=Ft||[];this.pos127;);else if(Bt===bp.Bytes)this.pos=this.readVarint()+this.pos;else if(Bt===bp.Fixed32)this.pos+=4;else if(Bt===bp.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+Bt)},writeTag:function(Ft,Bt){this.writeVarint(Ft<<3|Bt)},realloc:function(Ft){for(var Bt=this.length||16;Bt268435455||Ft<0){TA(Ft,this);return}this.realloc(4),this.buf[this.pos++]=Ft&127|(Ft>127?128:0),!(Ft<=127)&&(this.buf[this.pos++]=(Ft>>>=7)&127|(Ft>127?128:0),!(Ft<=127)&&(this.buf[this.pos++]=(Ft>>>=7)&127|(Ft>127?128:0),!(Ft<=127)&&(this.buf[this.pos++]=Ft>>>7&127)))},writeSVarint:function(Ft){this.writeVarint(Ft<0?-Ft*2-1:Ft*2)},writeBoolean:function(Ft){this.writeVarint(Boolean(Ft))},writeString:function(Ft){Ft=String(Ft),this.realloc(Ft.length*4),this.pos++;var Bt=this.pos;this.pos=PA(this.buf,Ft,this.pos);var Wt=this.pos-Bt;Wt>=128&&AE(Bt,Wt,this),this.pos=Bt-1,this.writeVarint(Wt),this.pos+=Wt},writeFloat:function(Ft){this.realloc(4),Yx.write(this.buf,Ft,this.pos,!0,23,4),this.pos+=4},writeDouble:function(Ft){this.realloc(8),Yx.write(this.buf,Ft,this.pos,!0,52,8),this.pos+=8},writeBytes:function(Ft){var Bt=Ft.length;this.writeVarint(Bt),this.realloc(Bt);for(var Wt=0;Wt=128&&AE(Wt,ir,this),this.pos=Wt-1,this.writeVarint(ir),this.pos+=ir},writeMessage:function(Ft,Bt,Wt){this.writeTag(Ft,bp.Bytes),this.writeRawMessage(Bt,Wt)},writePackedVarint:function(Ft,Bt){Bt.length&&this.writeMessage(Ft,SA,Bt)},writePackedSVarint:function(Ft,Bt){Bt.length&&this.writeMessage(Ft,wA,Bt)},writePackedBoolean:function(Ft,Bt){Bt.length&&this.writeMessage(Ft,R2,Bt)},writePackedFloat:function(Ft,Bt){Bt.length&&this.writeMessage(Ft,CA,Bt)},writePackedDouble:function(Ft,Bt){Bt.length&&this.writeMessage(Ft,RA,Bt)},writePackedFixed32:function(Ft,Bt){Bt.length&&this.writeMessage(Ft,MA,Bt)},writePackedSFixed32:function(Ft,Bt){Bt.length&&this.writeMessage(Ft,M2,Bt)},writePackedFixed64:function(Ft,Bt){Bt.length&&this.writeMessage(Ft,IA,Bt)},writePackedSFixed64:function(Ft,Bt){Bt.length&&this.writeMessage(Ft,kA,Bt)},writeBytesField:function(Ft,Bt){this.writeTag(Ft,bp.Bytes),this.writeBytes(Bt)},writeFixed32Field:function(Ft,Bt){this.writeTag(Ft,bp.Fixed32),this.writeFixed32(Bt)},writeSFixed32Field:function(Ft,Bt){this.writeTag(Ft,bp.Fixed32),this.writeSFixed32(Bt)},writeFixed64Field:function(Ft,Bt){this.writeTag(Ft,bp.Fixed64),this.writeFixed64(Bt)},writeSFixed64Field:function(Ft,Bt){this.writeTag(Ft,bp.Fixed64),this.writeSFixed64(Bt)},writeVarintField:function(Ft,Bt){this.writeTag(Ft,bp.Varint),this.writeVarint(Bt)},writeSVarintField:function(Ft,Bt){this.writeTag(Ft,bp.Varint),this.writeSVarint(Bt)},writeStringField:function(Ft,Bt){this.writeTag(Ft,bp.Bytes),this.writeString(Bt)},writeFloatField:function(Ft,Bt){this.writeTag(Ft,bp.Fixed32),this.writeFloat(Bt)},writeDoubleField:function(Ft,Bt){this.writeTag(Ft,bp.Fixed64),this.writeDouble(Bt)},writeBooleanField:function(Ft,Bt){this.writeVarintField(Ft,Boolean(Bt))}};function EA(Ft,Bt,Wt){var ir=Wt.buf,gr,Mr;if(Mr=ir[Wt.pos++],gr=(Mr&112)>>4,Mr<128||(Mr=ir[Wt.pos++],gr|=(Mr&127)<<3,Mr<128)||(Mr=ir[Wt.pos++],gr|=(Mr&127)<<10,Mr<128)||(Mr=ir[Wt.pos++],gr|=(Mr&127)<<17,Mr<128)||(Mr=ir[Wt.pos++],gr|=(Mr&127)<<24,Mr<128)||(Mr=ir[Wt.pos++],gr|=(Mr&1)<<31,Mr<128))return Qy(Ft,gr,Bt);throw new Error("Expected varint not more than 10 bytes")}function ny(Ft){return Ft.type===bp.Bytes?Ft.readVarint()+Ft.pos:Ft.pos+1}function Qy(Ft,Bt,Wt){return Wt?Bt*4294967296+(Ft>>>0):(Bt>>>0)*4294967296+(Ft>>>0)}function TA(Ft,Bt){var Wt,ir;if(Ft>=0?(Wt=Ft%4294967296|0,ir=Ft/4294967296|0):(Wt=~(-Ft%4294967296),ir=~(-Ft/4294967296),Wt^4294967295?Wt=Wt+1|0:(Wt=0,ir=ir+1|0)),Ft>=18446744073709552e3||Ft<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");Bt.realloc(10),AA(Wt,ir,Bt),_A(ir,Bt)}function AA(Ft,Bt,Wt){Wt.buf[Wt.pos++]=Ft&127|128,Ft>>>=7,Wt.buf[Wt.pos++]=Ft&127|128,Ft>>>=7,Wt.buf[Wt.pos++]=Ft&127|128,Ft>>>=7,Wt.buf[Wt.pos++]=Ft&127|128,Ft>>>=7,Wt.buf[Wt.pos]=Ft&127}function _A(Ft,Bt){var Wt=(Ft&7)<<4;Bt.buf[Bt.pos++]|=Wt|((Ft>>>=3)?128:0),Ft&&(Bt.buf[Bt.pos++]=Ft&127|((Ft>>>=7)?128:0),Ft&&(Bt.buf[Bt.pos++]=Ft&127|((Ft>>>=7)?128:0),Ft&&(Bt.buf[Bt.pos++]=Ft&127|((Ft>>>=7)?128:0),Ft&&(Bt.buf[Bt.pos++]=Ft&127|((Ft>>>=7)?128:0),Ft&&(Bt.buf[Bt.pos++]=Ft&127)))))}function AE(Ft,Bt,Wt){var ir=Bt<=16383?1:Bt<=2097151?2:Bt<=268435455?3:Math.floor(Math.log(Bt)/(Math.LN2*7));Wt.realloc(ir);for(var gr=Wt.pos-1;gr>=Ft;gr--)Wt.buf[gr+ir]=Wt.buf[gr]}function SA(Ft,Bt){for(var Wt=0;Wt>>8,Ft[Wt+2]=Bt>>>16,Ft[Wt+3]=Bt>>>24}function T0(Ft,Bt){return(Ft[Bt]|Ft[Bt+1]<<8|Ft[Bt+2]<<16)+(Ft[Bt+3]<<24)}function LA(Ft,Bt,Wt){for(var ir="",gr=Bt;gr239?4:Mr>223?3:Mr>191?2:1;if(gr+tn>Wt)break;var En,Mn,Pn;tn===1?Mr<128&&(Br=Mr):tn===2?(En=Ft[gr+1],(En&192)===128&&(Br=(Mr&31)<<6|En&63,Br<=127&&(Br=null))):tn===3?(En=Ft[gr+1],Mn=Ft[gr+2],(En&192)===128&&(Mn&192)===128&&(Br=(Mr&15)<<12|(En&63)<<6|Mn&63,(Br<=2047||Br>=55296&&Br<=57343)&&(Br=null))):tn===4&&(En=Ft[gr+1],Mn=Ft[gr+2],Pn=Ft[gr+3],(En&192)===128&&(Mn&192)===128&&(Pn&192)===128&&(Br=(Mr&15)<<18|(En&63)<<12|(Mn&63)<<6|Pn&63,(Br<=65535||Br>=1114112)&&(Br=null))),Br===null?(Br=65533,tn=1):Br>65535&&(Br-=65536,ir+=String.fromCharCode(Br>>>10&1023|55296),Br=56320|Br&1023),ir+=String.fromCharCode(Br),gr+=tn}return ir}function DA(Ft,Bt,Wt){return TE.decode(Ft.subarray(Bt,Wt))}function PA(Ft,Bt,Wt){for(var ir=0,gr,Mr;ir55295&&gr<57344)if(Mr)if(gr<56320){Ft[Wt++]=239,Ft[Wt++]=191,Ft[Wt++]=189,Mr=gr;continue}else gr=Mr-55296<<10|gr-56320|65536,Mr=null;else{gr>56319||ir+1===Bt.length?(Ft[Wt++]=239,Ft[Wt++]=191,Ft[Wt++]=189):Mr=gr;continue}else Mr&&(Ft[Wt++]=239,Ft[Wt++]=191,Ft[Wt++]=189,Mr=null);gr<128?Ft[Wt++]=gr:(gr<2048?Ft[Wt++]=gr>>6|192:(gr<65536?Ft[Wt++]=gr>>12|224:(Ft[Wt++]=gr>>18|240,Ft[Wt++]=gr>>12&63|128),Ft[Wt++]=gr>>6&63|128),Ft[Wt++]=gr&63|128)}return Wt}var Zx=3;function NA(Ft,Bt,Wt){Ft===1&&Wt.readMessage(OA,Bt)}function OA(Ft,Bt,Wt){if(Ft===3){var ir=Wt.readMessage(FA,{}),gr=ir.id,Mr=ir.bitmap,Br=ir.width,tn=ir.height,En=ir.left,Mn=ir.top,Pn=ir.advance;Bt.push({id:gr,bitmap:new Dy({width:Br+2*Zx,height:tn+2*Zx},Mr),metrics:{width:Br,height:tn,left:En,top:Mn,advance:Pn}})}}function FA(Ft,Bt,Wt){Ft===1?Bt.id=Wt.readVarint():Ft===2?Bt.bitmap=Wt.readBytes():Ft===3?Bt.width=Wt.readVarint():Ft===4?Bt.height=Wt.readVarint():Ft===5?Bt.left=Wt.readSVarint():Ft===6?Bt.top=Wt.readSVarint():Ft===7&&(Bt.advance=Wt.readVarint())}function _E(Ft){return new hp(Ft).readFields(NA,[])}var SE=Zx;function wE(Ft){for(var Bt=0,Wt=0,ir=0,gr=Ft;ir=0;$a--){var Eo=tn[$a];if(!(ao.w>Eo.w||ao.h>Eo.h)){if(ao.x=Eo.x,ao.y=Eo.y,Mn=Math.max(Mn,ao.y+ao.h),En=Math.max(En,ao.x+ao.w),ao.w===Eo.w&&ao.h===Eo.h){var Ho=tn.pop();$a=0&&gr>=Bt&&hm[this.text.charCodeAt(gr)];gr--)ir--;this.text=this.text.substring(Bt,ir),this.sectionIndex=this.sectionIndex.slice(Bt,ir)},Uv.prototype.substring=function(Bt,Wt){var ir=new Uv;return ir.text=this.text.substring(Bt,Wt),ir.sectionIndex=this.sectionIndex.slice(Bt,Wt),ir.sections=this.sections,ir},Uv.prototype.toString=function(){return this.text},Uv.prototype.getMaxScale=function(){var Bt=this;return this.sectionIndex.reduce(function(Wt,ir){return Math.max(Wt,Bt.sections[ir].scale)},0)},Uv.prototype.addTextSection=function(Bt,Wt){this.text+=Bt.text,this.sections.push(ex.forText(Bt.scale,Bt.fontStack||Wt));for(var ir=this.sections.length-1,gr=0;gr=CE?null:++this.imageSectionID:(this.imageSectionID=Py,this.imageSectionID)};function zA(Ft,Bt){for(var Wt=[],ir=Ft.text,gr=0,Mr=0,Br=Bt;Mr=0,Pn=0,Qn=0;Qn0&&pv>ou&&(ou=pv)}else{var _h=Wt[au.fontStack],Qu=_h&&_h[su];if(Qu&&Qu.rect)Au=Qu.rect,Iu=Qu.metrics;else{var Tp=Bt[au.fontStack],Rp=Tp&&Tp[su];if(!Rp)continue;Iu=Rp.metrics}uu=(Vs-au.scale)*dv}_d?(Ft.verticalizable=!0,Dl.push({glyph:su,imageName:_f,x:ao,y:$a+uu,vertical:_d,scale:au.scale,fontStack:au.fontStack,sectionIndex:Cu,metrics:Iu,rect:Au}),ao+=gp*au.scale+Mn):(Dl.push({glyph:su,imageName:_f,x:ao,y:$a+uu,vertical:_d,scale:au.scale,fontStack:au.fontStack,sectionIndex:Cu,metrics:Iu,rect:Au}),ao+=Iu.advance*au.scale+Mn)}if(Dl.length!==0){var f0=ao-Mn;Eo=Math.max(f0,Eo),GA(Dl,0,Dl.length-1,ds,ou)}ao=0;var d0=Mr*Vs+ou;Nl.lineOffset=Math.max(ou,El),$a+=d0,Ho=Math.max(d0,Ho),++ss}var Dv=$a-Mx,_0=k2(Br),S0=_0.horizontalAlign,_v=_0.verticalAlign;VA(Ft.positionedLines,ds,S0,_v,Eo,Ho,Mr,Dv,gr.length),Ft.top+=-_v*Dv,Ft.bottom=Ft.top+Dv,Ft.left+=-S0*Eo,Ft.right=Ft.left+Eo}function GA(Ft,Bt,Wt,ir,gr){if(!(!ir&&!gr))for(var Mr=Ft[Wt],Br=Mr.metrics.advance*Mr.scale,tn=(Ft[Wt].x+Br)*ir,En=Bt;En<=Wt;En++)Ft[En].x-=tn,Ft[En].y+=gr}function VA(Ft,Bt,Wt,ir,gr,Mr,Br,tn,En){var Mn=(Bt-Wt)*gr,Pn=0;Mr!==Br?Pn=-tn*ir-Mx:Pn=(-ir*En+.5)*Br;for(var Qn=0,ao=Ft;Qn-Wt/2;){if(Br--,Br<0)return!1;tn-=Ft[Br].dist(Mr),Mr=Ft[Br]}tn+=Ft[Br].dist(Ft[Br+1]),Br++;for(var En=[],Mn=0;tnir;)Mn-=En.shift().angleDelta;if(Mn>gr)return!1;Br++,tn+=Qn.dist(ao)}return!0}function OE(Ft){for(var Bt=0,Wt=0;WtMn){var Eo=(Mn-En)/$a,Ho=up(Qn.x,ao.x,Eo),ds=up(Qn.y,ao.y,Eo),ss=new tx(Ho,ds,ao.angleTo(Qn),Pn);return ss._round(),!Br||NE(Ft,ss,tn,Br,Bt)?ss:void 0}En+=$a}}function XA(Ft,Bt,Wt,ir,gr,Mr,Br,tn,En){var Mn=FE(ir,Mr,Br),Pn=BE(ir,gr),Qn=Pn*Br,ao=Ft[0].x===0||Ft[0].x===En||Ft[0].y===0||Ft[0].y===En;Bt-Qn=0&&Os=0&&Vs=0&&ao+Mn<=Pn){var El=new tx(Os,Vs,Bs,Eo);El._round(),(!ir||NE(Ft,El,Mr,ir,gr))&&$a.push(El)}}Qn+=ss}return!tn&&!$a.length&&!Br&&($a=Qx(Ft,Qn/2,Wt,ir,gr,Mr,Br,!0,En)),$a}function D2(Ft,Bt,Wt,ir,gr){for(var Mr=[],Br=0;Br=ir&&Qn.x>=ir)&&(Pn.x>=ir?Pn=new j(ir,Pn.y+(Qn.y-Pn.y)*((ir-Pn.x)/(Qn.x-Pn.x)))._round():Qn.x>=ir&&(Qn=new j(ir,Pn.y+(Qn.y-Pn.y)*((ir-Pn.x)/(Qn.x-Pn.x)))._round()),!(Pn.y>=gr&&Qn.y>=gr)&&(Pn.y>=gr?Pn=new j(Pn.x+(Qn.x-Pn.x)*((gr-Pn.y)/(Qn.y-Pn.y)),gr)._round():Qn.y>=gr&&(Qn=new j(Pn.x+(Qn.x-Pn.x)*((gr-Pn.y)/(Qn.y-Pn.y)),gr)._round()),(!En||!Pn.equals(En[En.length-1]))&&(En=[Pn],Mr.push(En)),En.push(Qn)))))}return Mr}var Ny=A0;function zE(Ft,Bt,Wt,ir){var gr=[],Mr=Ft.image,Br=Mr.pixelRatio,tn=Mr.paddedRect.w-2*Ny,En=Mr.paddedRect.h-2*Ny,Mn=Ft.right-Ft.left,Pn=Ft.bottom-Ft.top,Qn=Mr.stretchX||[[0,tn]],ao=Mr.stretchY||[[0,En]],$a=function(_h,Qu){return _h+Qu[1]-Qu[0]},Eo=Qn.reduce($a,0),Ho=ao.reduce($a,0),ds=tn-Eo,ss=En-Ho,Bs=0,As=Eo,Os=0,Vs=Ho,El=0,Nl=ds,Dl=0,ou=ss;if(Mr.content&&ir){var eu=Mr.content;Bs=qx(Qn,0,eu[0]),Os=qx(ao,0,eu[1]),As=qx(Qn,eu[0],eu[2]),Vs=qx(ao,eu[1],eu[3]),El=eu[0]-Bs,Dl=eu[1]-Os,Nl=eu[2]-eu[0]-As,ou=eu[3]-eu[1]-Vs}var au=function(_h,Qu,Tp,Rp){var Xp=rx(_h.stretch-Bs,As,Mn,Ft.left),rv=_b(_h.fixed-El,Nl,_h.stretch,Eo),Lv=rx(Qu.stretch-Os,Vs,Pn,Ft.top),pv=_b(Qu.fixed-Dl,ou,Qu.stretch,Ho),f0=rx(Tp.stretch-Bs,As,Mn,Ft.left),d0=_b(Tp.fixed-El,Nl,Tp.stretch,Eo),Dv=rx(Rp.stretch-Os,Vs,Pn,Ft.top),_0=_b(Rp.fixed-Dl,ou,Rp.stretch,Ho),S0=new j(Xp,Lv),_v=new j(f0,Lv),w0=new j(f0,Dv),H1=new j(Xp,Dv),By=new j(rv/Br,pv/Br),ux=new j(d0/Br,_0/Br),cx=Bt*Math.PI/180;if(cx){var fx=Math.sin(cx),n2=Math.cos(cx),Nm=[n2,-fx,fx,n2];S0._matMult(Nm),_v._matMult(Nm),H1._matMult(Nm),w0._matMult(Nm)}var jE=_h.stretch+_h.fixed,g_=Tp.stretch+Tp.fixed,YE=Qu.stretch+Qu.fixed,m_=Rp.stretch+Rp.fixed,gm={x:Mr.paddedRect.x+Ny+jE,y:Mr.paddedRect.y+Ny+YE,w:g_-jE,h:m_-YE},a2=Nl/Br/Mn,XE=ou/Br/Pn;return{tl:S0,tr:_v,bl:H1,br:w0,tex:gm,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:By,pixelOffsetBR:ux,minFontScaleX:a2,minFontScaleY:XE,isSDF:Wt}};if(!ir||!Mr.stretchX&&!Mr.stretchY)gr.push(au({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:tn+1},{fixed:0,stretch:En+1}));else for(var Cu=UE(Qn,ds,Eo),su=UE(ao,ss,Ho),uu=0;uu0&&(Eo=Math.max(10,Eo),this.circleDiameter=Eo)}else{var Ho=Br.top*tn-En,ds=Br.bottom*tn+En,ss=Br.left*tn-En,Bs=Br.right*tn+En,As=Br.collisionPadding;if(As&&(ss-=As[0]*tn,Ho-=As[1]*tn,Bs+=As[2]*tn,ds+=As[3]*tn),Pn){var Os=new j(ss,Ho),Vs=new j(Bs,Ho),El=new j(ss,ds),Nl=new j(Bs,ds),Dl=Pn*Math.PI/180;Os._rotate(Dl),Vs._rotate(Dl),El._rotate(Dl),Nl._rotate(Dl),ss=Math.min(Os.x,Vs.x,El.x,Nl.x),Bs=Math.max(Os.x,Vs.x,El.x,Nl.x),Ho=Math.min(Os.y,Vs.y,El.y,Nl.y),ds=Math.max(Os.y,Vs.y,El.y,Nl.y)}Bt.emplaceBack(Wt.x,Wt.y,ss,Ho,Bs,ds,ir,gr,Mr)}this.boxEndIndex=Bt.length},Iv=function(Bt,Wt){if(Bt===void 0&&(Bt=[]),Wt===void 0&&(Wt=P2),this.data=Bt,this.length=this.data.length,this.compare=Wt,this.length>0)for(var ir=(this.length>>1)-1;ir>=0;ir--)this._down(ir)};Iv.prototype.push=function(Bt){this.data.push(Bt),this.length++,this._up(this.length-1)},Iv.prototype.pop=function(){if(this.length!==0){var Bt=this.data[0],Wt=this.data.pop();return this.length--,this.length>0&&(this.data[0]=Wt,this._down(0)),Bt}},Iv.prototype.peek=function(){return this.data[0]},Iv.prototype._up=function(Bt){for(var Wt=this,ir=Wt.data,gr=Wt.compare,Mr=ir[Bt];Bt>0;){var Br=Bt-1>>1,tn=ir[Br];if(gr(Mr,tn)>=0)break;ir[Bt]=tn,Bt=Br}ir[Bt]=Mr},Iv.prototype._down=function(Bt){for(var Wt=this,ir=Wt.data,gr=Wt.compare,Mr=this.length>>1,Br=ir[Bt];Bt=0)break;ir[Bt]=En,Bt=tn}ir[Bt]=Br};function P2(Ft,Bt){return FtBt?1:0}function ZA(Ft,Bt,Wt){Bt===void 0&&(Bt=1),Wt===void 0&&(Wt=!1);for(var ir=1/0,gr=1/0,Mr=-1/0,Br=-1/0,tn=Ft[0],En=0;EnMr)&&(Mr=Mn.x),(!En||Mn.y>Br)&&(Br=Mn.y)}var Pn=Mr-ir,Qn=Br-gr,ao=Math.min(Pn,Qn),$a=ao/2,Eo=new Iv([],JA);if(ao===0)return new j(ir,gr);for(var Ho=ir;Hoss.d||!ss.d)&&(ss=As,Wt&&console.log("found best %d after %d probes",Math.round(1e4*As.d)/1e4,Bs)),!(As.max-ss.d<=Bt)&&($a=As.h/2,Eo.push(new nx(As.p.x-$a,As.p.y-$a,$a,Ft)),Eo.push(new nx(As.p.x+$a,As.p.y-$a,$a,Ft)),Eo.push(new nx(As.p.x-$a,As.p.y+$a,$a,Ft)),Eo.push(new nx(As.p.x+$a,As.p.y+$a,$a,Ft)),Bs+=4)}return Wt&&(console.log("num probes: "+Bs),console.log("best distance: "+ss.d)),ss.p}function JA(Ft,Bt){return Bt.max-Ft.max}function nx(Ft,Bt,Wt,ir){this.p=new j(Ft,Bt),this.h=Wt,this.d=QA(this.p,ir),this.max=this.d+this.h*Math.SQRT2}function QA(Ft,Bt){for(var Wt=!1,ir=1/0,gr=0;grFt.y!=Pn.y>Ft.y&&Ft.x<(Pn.x-Mn.x)*(Ft.y-Mn.y)/(Pn.y-Mn.y)+Mn.x&&(Wt=!Wt),ir=Math.min(ir,ey(Ft,Mn,Pn))}return(Wt?1:-1)*Math.sqrt(ir)}function N2(Ft){for(var Bt=0,Wt=0,ir=0,gr=Ft[0],Mr=0,Br=gr.length,tn=Br-1;Mr=iu||Nm.y<0||Nm.y>=iu||F2(Ft,Nm,n2,Wt,ir,gr,su,Ft.layers[0],Ft.collisionBoxArray,Bt.index,Bt.sourceLayerIndex,Ft.index,ss,Vs,Dl,En,As,El,ou,$a,Bt,Mr,Mn,Pn,Br)};if(eu==="line")for(var Iu=0,Au=D2(Bt.geometry,0,0,iu,iu);Iu1){var Lv=YA(rv,Nl,Wt.vertical||Eo,ir,Ho,Bs);Lv&&uu(rv,Lv)}}else if(Bt.type==="Polygon")for(var pv=0,f0=Ky(Bt.geometry,0);pv_y&&$t(Ft.layerIds[0]+': Value for "text-size" is >= '+ix+'. Reduce your "text-size".')):ds.kind==="composite"&&(ss=[pm*$a.compositeTextSizes[0].evaluate(Br,{},Eo),pm*$a.compositeTextSizes[1].evaluate(Br,{},Eo)],(ss[0]>_y||ss[1]>_y)&&$t(Ft.layerIds[0]+': Value for "text-size" is >= '+ix+'. Reduce your "text-size".')),Ft.addSymbols(Ft.text,Ho,ss,tn,Mr,Br,Mn,Bt,En.lineStartIndex,En.lineLength,ao,Eo);for(var Bs=0,As=Pn;Bs_y&&$t(Ft.layerIds[0]+': Value for "icon-size" is >= '+ix+'. Reduce your "icon-size".')):S0.kind==="composite"&&(_v=[pm*Vs.compositeIconSizes[0].evaluate(Os,{},Nl),pm*Vs.compositeIconSizes[1].evaluate(Os,{},Nl)],(_v[0]>_y||_v[1]>_y)&&$t(Ft.layerIds[0]+': Value for "icon-size" is >= '+ix+'. Reduce your "icon-size".')),Ft.addSymbols(Ft.icon,Dv,_v,As,Bs,Os,!1,Bt,eu.lineStartIndex,eu.lineLength,-1,Nl),_d=Ft.icon.placedSymbolArray.length-1,_0&&(Au=_0.length*4,Ft.addSymbols(Ft.icon,_0,_v,As,Bs,Os,U0.vertical,Bt,eu.lineStartIndex,eu.lineLength,-1,Nl),_h=Ft.icon.placedSymbolArray.length-1)}for(var w0 in ir.horizontal){var H1=ir.horizontal[w0];if(!au){Tp=yr(H1.text);var By=tn.layout.get("text-rotate").evaluate(Os,{},Nl);au=new e2(En,Bt,Mn,Pn,Qn,H1,ao,$a,Eo,By)}var ux=H1.positionedLines.length===1;if(_f+=HE(Ft,Bt,H1,Mr,tn,Eo,Os,Ho,eu,ir.vertical?U0.horizontal:U0.horizontalOnly,ux?Object.keys(ir.horizontal):[w0],Qu,_d,Vs,Nl),ux)break}ir.vertical&&(gp+=HE(Ft,Bt,ir.vertical,Mr,tn,Eo,Os,Ho,eu,U0.vertical,["vertical"],Qu,_h,Vs,Nl));var cx=au?au.boxStartIndex:Ft.collisionBoxArray.length,fx=au?au.boxEndIndex:Ft.collisionBoxArray.length,n2=su?su.boxStartIndex:Ft.collisionBoxArray.length,Nm=su?su.boxEndIndex:Ft.collisionBoxArray.length,jE=Cu?Cu.boxStartIndex:Ft.collisionBoxArray.length,g_=Cu?Cu.boxEndIndex:Ft.collisionBoxArray.length,YE=uu?uu.boxStartIndex:Ft.collisionBoxArray.length,m_=uu?uu.boxEndIndex:Ft.collisionBoxArray.length,gm=-1,a2=function(H2,nS){return H2&&H2.circleDiameter?Math.max(H2.circleDiameter,nS):nS};gm=a2(au,gm),gm=a2(su,gm),gm=a2(Cu,gm),gm=a2(uu,gm);var XE=gm>-1?1:0;XE&&(gm*=Dl/dv),Ft.glyphOffsetArray.length>=fp.MAX_GLYPHS&&$t("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),Os.sortKey!==void 0&&Ft.addToSortKeyRanges(Ft.symbolInstances.length,Os.sortKey),Ft.symbolInstances.emplaceBack(Bt.x,Bt.y,Qu.right>=0?Qu.right:-1,Qu.center>=0?Qu.center:-1,Qu.left>=0?Qu.left:-1,Qu.vertical||-1,_d,_h,Tp,cx,fx,n2,Nm,jE,g_,YE,m_,Mn,_f,gp,Iu,Au,XE,0,ao,Rp,Xp,gm)}function B2(Ft,Bt,Wt,ir){var gr=Ft.compareText;if(!(Bt in gr))gr[Bt]=[];else for(var Mr=gr[Bt],Br=Mr.length-1;Br>=0;Br--)if(ir.dist(Mr[Br])0)&&(Br.value.kind!=="constant"||Br.value.value.length>0),Pn=En.value.kind!=="constant"||!!En.value.value||Object.keys(En.parameters).length>0,Qn=Mr.get("symbol-sort-key");if(this.features=[],!(!Mn&&!Pn)){for(var ao=Wt.iconDependencies,$a=Wt.glyphDependencies,Eo=Wt.availableImages,Ho=new ru(this.zoom),ds=0,ss=Bt;ds=0;for(var gp=0,_d=ou.sections;gp<_d.length;gp+=1){var _h=_d[gp];if(_h.image)ao[_h.image.name]=!0;else{var Qu=to(ou.toString()),Tp=_h.fontStack||Au,Rp=$a[Tp]=$a[Tp]||{};this.calculateGlyphDependencies(_h.text,Rp,_f,this.allowVerticalPlacement,Qu)}}}}}}Mr.get("symbol-placement")==="line"&&(this.features=bE(this.features)),this.sortFeaturesByKey&&this.features.sort(function(Xp,rv){return Xp.sortKey-rv.sortKey})}},fp.prototype.update=function(Bt,Wt,ir){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(Bt,Wt,this.layers,ir),this.icon.programConfigurations.updatePaintArrays(Bt,Wt,this.layers,ir))},fp.prototype.isEmpty=function(){return this.symbolInstances.length===0&&!this.hasRTLText},fp.prototype.uploadPending=function(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload},fp.prototype.upload=function(Bt){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(Bt),this.iconCollisionBox.upload(Bt)),this.text.upload(Bt,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(Bt,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0},fp.prototype.destroyDebugData=function(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()},fp.prototype.destroy=function(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()},fp.prototype.addToLineVertexArray=function(Bt,Wt){var ir=this.lineVertexArray.length;if(Bt.segment!==void 0){for(var gr=Bt.dist(Wt[Bt.segment+1]),Mr=Bt.dist(Wt[Bt.segment]),Br={},tn=Bt.segment+1;tn=0;En--)Br[En]={x:Wt[En].x,y:Wt[En].y,tileUnitDistanceFromAnchor:Mr},En>0&&(Mr+=Wt[En-1].dist(Wt[En]));for(var Mn=0;Mn0},fp.prototype.hasIconData=function(){return this.icon.segments.get().length>0},fp.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},fp.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},fp.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},fp.prototype.addIndicesForPlacedSymbol=function(Bt,Wt){for(var ir=Bt.placedSymbolArray.get(Wt),gr=ir.vertexStartIndex+ir.numGlyphs*4,Mr=ir.vertexStartIndex;Mr1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(Bt),this.sortedAngle=Bt,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var ir=0,gr=this.symbolInstanceIndexes;ir=0&&Mn.indexOf(tn)===En&&Wt.addIndicesForPlacedSymbol(Wt.text,tn)}),Br.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,Br.verticalPlacedTextSymbolIndex),Br.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,Br.placedIconSymbolIndex),Br.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,Br.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},Hr("SymbolBucket",fp,{omit:["layers","collisionBoxArray","features","compareText"]}),fp.MAX_GLYPHS=65535,fp.addDynamicAttributes=z2;function a_(Ft,Bt){return Bt.replace(/{([^{}]+)}/g,function(Wt,ir){return ir in Ft?String(Ft[ir]):""})}var i_=new Ku({"symbol-placement":new Ol(To.layout_symbol["symbol-placement"]),"symbol-spacing":new Ol(To.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Ol(To.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new cu(To.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Ol(To.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Ol(To.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Ol(To.layout_symbol["icon-ignore-placement"]),"icon-optional":new Ol(To.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Ol(To.layout_symbol["icon-rotation-alignment"]),"icon-size":new cu(To.layout_symbol["icon-size"]),"icon-text-fit":new Ol(To.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Ol(To.layout_symbol["icon-text-fit-padding"]),"icon-image":new cu(To.layout_symbol["icon-image"]),"icon-rotate":new cu(To.layout_symbol["icon-rotate"]),"icon-padding":new Ol(To.layout_symbol["icon-padding"]),"icon-keep-upright":new Ol(To.layout_symbol["icon-keep-upright"]),"icon-offset":new cu(To.layout_symbol["icon-offset"]),"icon-anchor":new cu(To.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Ol(To.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Ol(To.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Ol(To.layout_symbol["text-rotation-alignment"]),"text-field":new cu(To.layout_symbol["text-field"]),"text-font":new cu(To.layout_symbol["text-font"]),"text-size":new cu(To.layout_symbol["text-size"]),"text-max-width":new cu(To.layout_symbol["text-max-width"]),"text-line-height":new Ol(To.layout_symbol["text-line-height"]),"text-letter-spacing":new cu(To.layout_symbol["text-letter-spacing"]),"text-justify":new cu(To.layout_symbol["text-justify"]),"text-radial-offset":new cu(To.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Ol(To.layout_symbol["text-variable-anchor"]),"text-anchor":new cu(To.layout_symbol["text-anchor"]),"text-max-angle":new Ol(To.layout_symbol["text-max-angle"]),"text-writing-mode":new Ol(To.layout_symbol["text-writing-mode"]),"text-rotate":new cu(To.layout_symbol["text-rotate"]),"text-padding":new Ol(To.layout_symbol["text-padding"]),"text-keep-upright":new Ol(To.layout_symbol["text-keep-upright"]),"text-transform":new cu(To.layout_symbol["text-transform"]),"text-offset":new cu(To.layout_symbol["text-offset"]),"text-allow-overlap":new Ol(To.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Ol(To.layout_symbol["text-ignore-placement"]),"text-optional":new Ol(To.layout_symbol["text-optional"])}),o_=new Ku({"icon-opacity":new cu(To.paint_symbol["icon-opacity"]),"icon-color":new cu(To.paint_symbol["icon-color"]),"icon-halo-color":new cu(To.paint_symbol["icon-halo-color"]),"icon-halo-width":new cu(To.paint_symbol["icon-halo-width"]),"icon-halo-blur":new cu(To.paint_symbol["icon-halo-blur"]),"icon-translate":new Ol(To.paint_symbol["icon-translate"]),"icon-translate-anchor":new Ol(To.paint_symbol["icon-translate-anchor"]),"text-opacity":new cu(To.paint_symbol["text-opacity"]),"text-color":new cu(To.paint_symbol["text-color"],{runtimeType:Cs,getOverride:function(Ft){return Ft.textColor},hasOverride:function(Ft){return!!Ft.textColor}}),"text-halo-color":new cu(To.paint_symbol["text-halo-color"]),"text-halo-width":new cu(To.paint_symbol["text-halo-width"]),"text-halo-blur":new cu(To.paint_symbol["text-halo-blur"]),"text-translate":new Ol(To.paint_symbol["text-translate"]),"text-translate-anchor":new Ol(To.paint_symbol["text-translate-anchor"])}),U2={paint:o_,layout:i_},sx=function(Bt){this.type=Bt.property.overrides?Bt.property.overrides.runtimeType:Wo,this.defaultValue=Bt};sx.prototype.evaluate=function(Bt){if(Bt.formattedSection){var Wt=this.defaultValue.property.overrides;if(Wt&&Wt.hasOverride(Bt.formattedSection))return Wt.getOverride(Bt.formattedSection)}return Bt.feature&&Bt.featureState?this.defaultValue.evaluate(Bt.feature,Bt.featureState):this.defaultValue.property.specification.default},sx.prototype.eachChild=function(Bt){if(!this.defaultValue.isConstant()){var Wt=this.defaultValue.value;Bt(Wt._styleExpression.expression)}},sx.prototype.outputDefined=function(){return!1},sx.prototype.serialize=function(){return null},Hr("FormatSectionOverride",sx,{omit:["defaultValue"]});var s_=function(Ft){function Bt(Wt){Ft.call(this,Wt,U2)}return Ft&&(Bt.__proto__=Ft),Bt.prototype=Object.create(Ft&&Ft.prototype),Bt.prototype.constructor=Bt,Bt.prototype.recalculate=function(ir,gr){if(Ft.prototype.recalculate.call(this,ir,gr),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var Mr=this.layout.get("text-writing-mode");if(Mr){for(var Br=[],tn=0,En=Mr;tn",targetMapId:gr,sourceMapId:Br.mapId})}}},Sl.prototype.receive=function(Bt){var Wt=Bt.data,ir=Wt.id;if(ir&&!(Wt.targetMapId&&this.mapId!==Wt.targetMapId))if(Wt.type===""){delete this.tasks[ir];var gr=this.cancelCallbacks[ir];delete this.cancelCallbacks[ir],gr&&gr()}else Xt()||Wt.mustQueue?(this.tasks[ir]=Wt,this.taskQueue.push(ir),this.invoker.trigger()):this.processTask(ir,Wt)},Sl.prototype.process=function(){if(this.taskQueue.length){var Bt=this.taskQueue.shift(),Wt=this.tasks[Bt];delete this.tasks[Bt],this.taskQueue.length&&this.invoker.trigger(),Wt&&this.processTask(Bt,Wt)}},Sl.prototype.processTask=function(Bt,Wt){var ir=this;if(Wt.type===""){var gr=this.callbacks[Bt];delete this.callbacks[Bt],gr&&(Wt.error?gr(Rn(Wt.error)):gr(null,Rn(Wt.data)))}else{var Mr=!1,Br=lr(this.globalScope)?void 0:[],tn=Wt.hasCallback?function(ao,$a){Mr=!0,delete ir.cancelCallbacks[Bt],ir.target.postMessage({id:Bt,type:"",sourceMapId:ir.mapId,error:ao?Dn(ao):null,data:Dn($a,Br)},Br)}:function(ao){Mr=!0},En=null,Mn=Rn(Wt.data);if(this.parent[Wt.type])En=this.parent[Wt.type](Wt.sourceMapId,Mn,tn);else if(this.parent.getWorkerSource){var Pn=Wt.type.split("."),Qn=this.parent.getWorkerSource(Wt.sourceMapId,Pn[0],Mn.source);En=Qn[Pn[1]](Mn,tn)}else tn(new Error("Could not find function "+Wt.type));!Mr&&En&&En.cancel&&(this.cancelCallbacks[Bt]=En.cancel)}},Sl.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};function $l(Ft,Bt,Wt){Bt=Math.pow(2,Wt)-Bt-1;var ir=hu(Ft*256,Bt*256,Wt),gr=hu((Ft+1)*256,(Bt+1)*256,Wt);return ir[0]+","+ir[1]+","+gr[0]+","+gr[1]}function hu(Ft,Bt,Wt){var ir=2*Math.PI*6378137/256/Math.pow(2,Wt),gr=Ft*ir-2*Math.PI*6378137/2,Mr=Bt*ir-2*Math.PI*6378137/2;return[gr,Mr]}var lu=function(Bt,Wt){Bt&&(Wt?this.setSouthWest(Bt).setNorthEast(Wt):Bt.length===4?this.setSouthWest([Bt[0],Bt[1]]).setNorthEast([Bt[2],Bt[3]]):this.setSouthWest(Bt[0]).setNorthEast(Bt[1]))};lu.prototype.setNorthEast=function(Bt){return this._ne=Bt instanceof mu?new mu(Bt.lng,Bt.lat):mu.convert(Bt),this},lu.prototype.setSouthWest=function(Bt){return this._sw=Bt instanceof mu?new mu(Bt.lng,Bt.lat):mu.convert(Bt),this},lu.prototype.extend=function(Bt){var Wt=this._sw,ir=this._ne,gr,Mr;if(Bt instanceof mu)gr=Bt,Mr=Bt;else if(Bt instanceof lu){if(gr=Bt._sw,Mr=Bt._ne,!gr||!Mr)return this}else{if(Array.isArray(Bt))if(Bt.length===4||Bt.every(Array.isArray)){var Br=Bt;return this.extend(lu.convert(Br))}else{var tn=Bt;return this.extend(mu.convert(tn))}return this}return!Wt&&!ir?(this._sw=new mu(gr.lng,gr.lat),this._ne=new mu(Mr.lng,Mr.lat)):(Wt.lng=Math.min(gr.lng,Wt.lng),Wt.lat=Math.min(gr.lat,Wt.lat),ir.lng=Math.max(Mr.lng,ir.lng),ir.lat=Math.max(Mr.lat,ir.lat)),this},lu.prototype.getCenter=function(){return new mu((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},lu.prototype.getSouthWest=function(){return this._sw},lu.prototype.getNorthEast=function(){return this._ne},lu.prototype.getNorthWest=function(){return new mu(this.getWest(),this.getNorth())},lu.prototype.getSouthEast=function(){return new mu(this.getEast(),this.getSouth())},lu.prototype.getWest=function(){return this._sw.lng},lu.prototype.getSouth=function(){return this._sw.lat},lu.prototype.getEast=function(){return this._ne.lng},lu.prototype.getNorth=function(){return this._ne.lat},lu.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},lu.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},lu.prototype.isEmpty=function(){return!(this._sw&&this._ne)},lu.prototype.contains=function(Bt){var Wt=mu.convert(Bt),ir=Wt.lng,gr=Wt.lat,Mr=this._sw.lat<=gr&&gr<=this._ne.lat,Br=this._sw.lng<=ir&&ir<=this._ne.lng;return this._sw.lng>this._ne.lng&&(Br=this._sw.lng>=ir&&ir>=this._ne.lng),Mr&&Br},lu.convert=function(Bt){return!Bt||Bt instanceof lu?Bt:new lu(Bt)};var Ru=63710088e-1,mu=function(Bt,Wt){if(isNaN(Bt)||isNaN(Wt))throw new Error("Invalid LngLat object: ("+Bt+", "+Wt+")");if(this.lng=+Bt,this.lat=+Wt,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};mu.prototype.wrap=function(){return new mu(bt(this.lng,-180,180),this.lat)},mu.prototype.toArray=function(){return[this.lng,this.lat]},mu.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},mu.prototype.distanceTo=function(Bt){var Wt=Math.PI/180,ir=this.lat*Wt,gr=Bt.lat*Wt,Mr=Math.sin(ir)*Math.sin(gr)+Math.cos(ir)*Math.cos(gr)*Math.cos((Bt.lng-this.lng)*Wt),Br=Ru*Math.acos(Math.min(Mr,1));return Br},mu.prototype.toBounds=function(Bt){Bt===void 0&&(Bt=0);var Wt=40075017,ir=360*Bt/Wt,gr=ir/Math.cos(Math.PI/180*this.lat);return new lu(new mu(this.lng-gr,this.lat-ir),new mu(this.lng+gr,this.lat+ir))},mu.convert=function(Bt){if(Bt instanceof mu)return Bt;if(Array.isArray(Bt)&&(Bt.length===2||Bt.length===3))return new mu(Number(Bt[0]),Number(Bt[1]));if(!Array.isArray(Bt)&&typeof Bt=="object"&&Bt!==null)return new mu(Number("lng"in Bt?Bt.lng:Bt.lon),Number(Bt.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var Mu=2*Math.PI*Ru;function rp(Ft){return Mu*Math.cos(Ft*Math.PI/180)}function ip(Ft){return(180+Ft)/360}function $0(Ft){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+Ft*Math.PI/360)))/360}function c0(Ft,Bt){return Ft/rp(Bt)}function u1(Ft){return Ft*360-180}function tv(Ft){var Bt=180-Ft*360;return 360/Math.PI*Math.atan(Math.exp(Bt*Math.PI/180))-90}function vm(Ft,Bt){return Ft*rp(tv(Bt))}function ay(Ft){return 1/Math.cos(Ft*Math.PI/180)}var Sy=function(Bt,Wt,ir){ir===void 0&&(ir=0),this.x=+Bt,this.y=+Wt,this.z=+ir};Sy.fromLngLat=function(Bt,Wt){Wt===void 0&&(Wt=0);var ir=mu.convert(Bt);return new Sy(ip(ir.lng),$0(ir.lat),c0(Wt,ir.lat))},Sy.prototype.toLngLat=function(){return new mu(u1(this.x),tv(this.y))},Sy.prototype.toAltitude=function(){return vm(this.z,this.y)},Sy.prototype.meterInMercatorCoordinateUnits=function(){return 1/Mu*ay(tv(this.y))};var Lx=function(Bt,Wt,ir){this.z=Bt,this.x=Wt,this.y=ir,this.key=$2(0,Bt,Bt,Wt,ir)};Lx.prototype.equals=function(Bt){return this.z===Bt.z&&this.x===Bt.x&&this.y===Bt.y},Lx.prototype.url=function(Bt,Wt){var ir=$l(this.x,this.y,this.z),gr=zS(this.z,this.x,this.y);return Bt[(this.x+this.y)%Bt.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String(Wt==="tms"?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",gr).replace("{bbox-epsg-3857}",ir)},Lx.prototype.getTilePoint=function(Bt){var Wt=Math.pow(2,this.z);return new j((Bt.x*Wt-this.x)*iu,(Bt.y*Wt-this.y)*iu)},Lx.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var q_=function(Bt,Wt){this.wrap=Bt,this.canonical=Wt,this.key=$2(Bt,Wt.z,Wt.z,Wt.x,Wt.y)},hv=function(Bt,Wt,ir,gr,Mr){this.overscaledZ=Bt,this.wrap=Wt,this.canonical=new Lx(ir,+gr,+Mr),this.key=$2(Wt,Bt,ir,gr,Mr)};hv.prototype.equals=function(Bt){return this.overscaledZ===Bt.overscaledZ&&this.wrap===Bt.wrap&&this.canonical.equals(Bt.canonical)},hv.prototype.scaledTo=function(Bt){var Wt=this.canonical.z-Bt;return Bt>this.canonical.z?new hv(Bt,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new hv(Bt,this.wrap,Bt,this.canonical.x>>Wt,this.canonical.y>>Wt)},hv.prototype.calculateScaledKey=function(Bt,Wt){var ir=this.canonical.z-Bt;return Bt>this.canonical.z?$2(this.wrap*+Wt,Bt,this.canonical.z,this.canonical.x,this.canonical.y):$2(this.wrap*+Wt,Bt,Bt,this.canonical.x>>ir,this.canonical.y>>ir)},hv.prototype.isChildOf=function(Bt){if(Bt.wrap!==this.wrap)return!1;var Wt=this.canonical.z-Bt.canonical.z;return Bt.overscaledZ===0||Bt.overscaledZ>Wt&&Bt.canonical.y===this.canonical.y>>Wt},hv.prototype.children=function(Bt){if(this.overscaledZ>=Bt)return[new hv(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var Wt=this.canonical.z+1,ir=this.canonical.x*2,gr=this.canonical.y*2;return[new hv(Wt,this.wrap,Wt,ir,gr),new hv(Wt,this.wrap,Wt,ir+1,gr),new hv(Wt,this.wrap,Wt,ir,gr+1),new hv(Wt,this.wrap,Wt,ir+1,gr+1)]},hv.prototype.isLessThan=function(Bt){return this.wrapBt.wrap?!1:this.overscaledZBt.overscaledZ?!1:this.canonical.xBt.canonical.x?!1:this.canonical.y0;Mr--)gr=1<=this.dim+1||Wt<-1||Wt>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(Wt+1)*this.stride+(Bt+1)},Oy.prototype._unpackMapbox=function(Bt,Wt,ir){return(Bt*256*256+Wt*256+ir)/10-1e4},Oy.prototype._unpackTerrarium=function(Bt,Wt,ir){return Bt*256+Wt+ir/256-32768},Oy.prototype.getPixels=function(){return new l0({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Oy.prototype.backfillBorder=function(Bt,Wt,ir){if(this.dim!==Bt.dim)throw new Error("dem dimension mismatch");var gr=Wt*this.dim,Mr=Wt*this.dim+this.dim,Br=ir*this.dim,tn=ir*this.dim+this.dim;switch(Wt){case-1:gr=Mr-1;break;case 1:Mr=gr+1;break}switch(ir){case-1:Br=tn-1;break;case 1:tn=Br+1;break}for(var En=-Wt*this.dim,Mn=-ir*this.dim,Pn=Br;Pn=0&&Qn[3]>=0&&En.insert(tn,Qn[0],Qn[1],Qn[2],Qn[3])}},Fy.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new Zy.VectorTile(new hp(this.rawTileData)).layers,this.sourceLayerCoder=new VE(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},Fy.prototype.query=function(Bt,Wt,ir,gr){var Mr=this;this.loadVTLayers();for(var Br=Bt.params||{},tn=iu/Bt.tileSize/Bt.scale,En=xv(Br.filter),Mn=Bt.queryGeometry,Pn=Bt.queryPadding*tn,Qn=tS(Mn),ao=this.grid.query(Qn.minX-Pn,Qn.minY-Pn,Qn.maxX+Pn,Qn.maxY+Pn),$a=tS(Bt.cameraQueryGeometry),Eo=this.grid3D.query($a.minX-Pn,$a.minY-Pn,$a.maxX+Pn,$a.maxY+Pn,function(El,Nl,Dl,ou){return B1(Bt.cameraQueryGeometry,El-Pn,Nl-Pn,Dl+Pn,ou+Pn)}),Ho=0,ds=Eo;Hogr)Mr=!1;else if(!Wt)Mr=!0;else if(this.expirationTime=go.maxzoom)&&go.visibility!=="none"){tt(ho,this.zoom,In);var _o=fo[go.id]=go.createBucket({index:ga.bucketLayerIDs.length,layers:ho,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:$n,sourceID:this.source});_o.populate(Bn,qn,this.tileID.canonical),ga.bucketLayerIDs.push(ho.map(function(bo){return bo.id}))}}}}var co,zo,Io,Lo,vs=et.mapObject(qn.glyphDependencies,function(bo){return Object.keys(bo).map(Number)});Object.keys(vs).length?Ln.send("getGlyphs",{uid:this.uid,stacks:vs},function(bo,No){co||(co=bo,zo=No,Ds.call(Wn))}):zo={};var Zo=Object.keys(qn.iconDependencies);Zo.length?Ln.send("getImages",{icons:Zo,source:this.source,tileID:this.tileID,type:"icons"},function(bo,No){co||(co=bo,Io=No,Ds.call(Wn))}):Io={};var Ls=Object.keys(qn.patternDependencies);Ls.length?Ln.send("getImages",{icons:Ls,source:this.source,tileID:this.tileID,type:"patterns"},function(bo,No){co||(co=bo,Lo=No,Ds.call(Wn))}):Lo={},Ds.call(this);function Ds(){if(co)return Xn(co);if(zo&&Io&&Lo){var bo=new _(zo),No=new et.ImageAtlas(Io,Lo);for(var Yo in fo){var Oo=fo[Yo];Oo instanceof et.SymbolBucket?(tt(Oo.layers,this.zoom,In),et.performSymbolLayout(Oo,zo,bo.positions,Io,No.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Oo.hasPattern&&(Oo instanceof et.LineBucket||Oo instanceof et.FillBucket||Oo instanceof et.FillExtrusionBucket)&&(tt(Oo.layers,this.zoom,In),Oo.addFeatures(qn,this.tileID.canonical,No.patternPositions))}this.status="done",Xn(null,{buckets:et.values(fo).filter(function(ys){return!ys.isEmpty()}),featureIndex:ga,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:bo.image,imageAtlas:No,glyphMap:this.returnDependencies?zo:null,iconMap:this.returnDependencies?Io:null,glyphPositions:this.returnDependencies?bo.positions:null})}}};function tt(An,hn,wn){for(var In=new et.EvaluationParameters(hn),Ln=0,Xn=An;Ln=0!=!!hn&&An.reverse()}var mt=et.vectorTile.VectorTileFeature.prototype.toGeoJSON,St=function(hn){this._feature=hn,this.extent=et.EXTENT,this.type=hn.type,this.properties=hn.tags,"id"in hn&&!isNaN(hn.id)&&(this.id=parseInt(hn.id,10))};St.prototype.loadGeometry=function(){if(this._feature.type===1){for(var hn=[],wn=0,In=this._feature.geometry;wn"u"&&(In.push(Vn),ga=In.length-1,Xn[Vn]=ga),hn.writeVarint(ga);var fo=wn.properties[Vn],qn=typeof fo;qn!=="string"&&qn!=="boolean"&&qn!=="number"&&(fo=JSON.stringify(fo));var po=qn+":"+fo,Yr=Wn[po];typeof Yr>"u"&&(Ln.push(fo),Yr=Ln.length-1,Wn[po]=Yr),hn.writeVarint(Yr)}}function Ht(An,hn){return(hn<<3)+(An&7)}function Vt(An){return An<<1^An>>31}function Xt(An,hn){for(var wn=An.loadGeometry(),In=An.type,Ln=0,Xn=0,Wn=wn.length,Vn=0;Vn>1;lr(An,hn,Wn,In,Ln,Xn%2),er(An,hn,wn,In,Wn-1,Xn+1),er(An,hn,wn,Wn+1,Ln,Xn+1)}}function lr(An,hn,wn,In,Ln,Xn){for(;Ln>In;){if(Ln-In>600){var Wn=Ln-In+1,Vn=wn-In+1,ga=Math.log(Wn),fo=.5*Math.exp(2*ga/3),qn=.5*Math.sqrt(ga*fo*(Wn-fo)/Wn)*(Vn-Wn/2<0?-1:1),po=Math.max(In,Math.floor(wn-Vn*fo/Wn+qn)),Yr=Math.min(Ln,Math.floor(wn+(Wn-Vn)*fo/Wn+qn));lr(An,hn,wn,po,Yr,Xn)}var jr=hn[2*wn+Xn],$n=In,Bn=Ln;for(Jt(An,hn,In,wn),hn[2*Ln+Xn]>jr&&Jt(An,hn,In,Ln);$njr;)Bn--}hn[2*In+Xn]===jr?Jt(An,hn,In,Bn):(Bn++,Jt(An,hn,Bn,Ln)),Bn<=wn&&(In=Bn+1),wn<=Bn&&(Ln=Bn-1)}}function Jt(An,hn,wn,In){Yt(An,wn,In),Yt(hn,2*wn,2*In),Yt(hn,2*wn+1,2*In+1)}function Yt(An,hn,wn){var In=An[hn];An[hn]=An[wn],An[wn]=In}function rr(An,hn,wn,In,Ln,Xn,Wn){for(var Vn=[0,An.length-1,0],ga=[],fo,qn;Vn.length;){var po=Vn.pop(),Yr=Vn.pop(),jr=Vn.pop();if(Yr-jr<=Wn){for(var $n=jr;$n<=Yr;$n++)fo=hn[2*$n],qn=hn[2*$n+1],fo>=wn&&fo<=Ln&&qn>=In&&qn<=Xn&&ga.push(An[$n]);continue}var Bn=Math.floor((jr+Yr)/2);fo=hn[2*Bn],qn=hn[2*Bn+1],fo>=wn&&fo<=Ln&&qn>=In&&qn<=Xn&&ga.push(An[Bn]);var xa=(po+1)%2;(po===0?wn<=fo:In<=qn)&&(Vn.push(jr),Vn.push(Bn-1),Vn.push(xa)),(po===0?Ln>=fo:Xn>=qn)&&(Vn.push(Bn+1),Vn.push(Yr),Vn.push(xa))}return ga}function jt(An,hn,wn,In,Ln,Xn){for(var Wn=[0,An.length-1,0],Vn=[],ga=Ln*Ln;Wn.length;){var fo=Wn.pop(),qn=Wn.pop(),po=Wn.pop();if(qn-po<=Xn){for(var Yr=po;Yr<=qn;Yr++)ar(hn[2*Yr],hn[2*Yr+1],wn,In)<=ga&&Vn.push(An[Yr]);continue}var jr=Math.floor((po+qn)/2),$n=hn[2*jr],Bn=hn[2*jr+1];ar($n,Bn,wn,In)<=ga&&Vn.push(An[jr]);var xa=(fo+1)%2;(fo===0?wn-Ln<=$n:In-Ln<=Bn)&&(Wn.push(po),Wn.push(jr-1),Wn.push(xa)),(fo===0?wn+Ln>=$n:In+Ln>=Bn)&&(Wn.push(jr+1),Wn.push(qn),Wn.push(xa))}return Vn}function ar(An,hn,wn,In){var Ln=An-wn,Xn=hn-In;return Ln*Ln+Xn*Xn}var sr=function(An){return An[0]},Zt=function(An){return An[1]},Kt=function(hn,wn,In,Ln,Xn){wn===void 0&&(wn=sr),In===void 0&&(In=Zt),Ln===void 0&&(Ln=64),Xn===void 0&&(Xn=Float64Array),this.nodeSize=Ln,this.points=hn;for(var Wn=hn.length<65536?Uint16Array:Uint32Array,Vn=this.ids=new Wn(hn.length),ga=this.coords=new Xn(hn.length*2),fo=0;fo=Ln;qn--){var po=+Date.now();ga=this._cluster(ga,qn),this.trees[qn]=new Kt(ga,zr,Or,Wn,Float32Array),In&&console.log("z%d: %d clusters in %dms",qn,ga.length,+Date.now()-po)}return In&&console.timeEnd("total time"),this},tr.prototype.getClusters=function(hn,wn){var In=((hn[0]+180)%360+360)%360-180,Ln=Math.max(-90,Math.min(90,hn[1])),Xn=hn[2]===180?180:((hn[2]+180)%360+360)%360-180,Wn=Math.max(-90,Math.min(90,hn[3]));if(hn[2]-hn[0]>=360)In=-180,Xn=180;else if(In>Xn){var Vn=this.getClusters([In,Ln,180,Wn],wn),ga=this.getClusters([-180,Ln,Xn,Wn],wn);return Vn.concat(ga)}for(var fo=this.trees[this._limitZoom(wn)],qn=fo.range(Ir(In),Tr(Wn),Ir(Xn),Tr(Ln)),po=[],Yr=0,jr=qn;Yrwn&&(Bn+=eo.numPoints||1)}if(Bn>=ga){for(var Gn=po.x*$n,ho=po.y*$n,go=Vn&&$n>1?this._map(po,!0):null,_o=(qn<<5)+(wn+1)+this.points.length,co=0,zo=jr;co1)for(var Zo=0,Ls=jr;Zo>5},tr.prototype._getOriginZoom=function(hn){return(hn-this.points.length)%32},tr.prototype._map=function(hn,wn){if(hn.numPoints)return wn?Rr({},hn.properties):hn.properties;var In=this.points[hn.index].properties,Ln=this.options.map(In);return wn&&Ln===In?Rr({},Ln):Ln};function cr(An,hn,wn,In,Ln){return{x:An,y:hn,zoom:1/0,id:wn,parentId:-1,numPoints:In,properties:Ln}}function mr(An,hn){var wn=An.geometry.coordinates,In=wn[0],Ln=wn[1];return{x:Ir(In),y:Tr(Ln),zoom:1/0,index:hn,parentId:-1}}function Ar(An){return{type:"Feature",id:An.id,properties:br(An),geometry:{type:"Point",coordinates:[_r(An.x),Er(An.y)]}}}function br(An){var hn=An.numPoints,wn=hn>=1e4?Math.round(hn/1e3)+"k":hn>=1e3?Math.round(hn/100)/10+"k":hn;return Rr(Rr({},An.properties),{cluster:!0,cluster_id:An.id,point_count:hn,point_count_abbreviated:wn})}function Ir(An){return An/360+.5}function Tr(An){var hn=Math.sin(An*Math.PI/180),wn=.5-.25*Math.log((1+hn)/(1-hn))/Math.PI;return wn<0?0:wn>1?1:wn}function _r(An){return(An-.5)*360}function Er(An){var hn=(180-An*360)*Math.PI/180;return 360*Math.atan(Math.exp(hn))/Math.PI-90}function Rr(An,hn){for(var wn in hn)An[wn]=hn[wn];return An}function zr(An){return An.x}function Or(An){return An.y}function kr(An,hn,wn,In){for(var Ln=In,Xn=wn-hn>>1,Wn=wn-hn,Vn,ga=An[hn],fo=An[hn+1],qn=An[wn],po=An[wn+1],Yr=hn+3;YrLn)Vn=Yr,Ln=jr;else if(jr===Ln){var $n=Math.abs(Yr-Xn);$nIn&&(Vn-hn>3&&kr(An,hn,Vn,In),An[Vn+2]=Ln,wn-Vn>3&&kr(An,Vn,wn,In))}function Nr(An,hn,wn,In,Ln,Xn){var Wn=Ln-wn,Vn=Xn-In;if(Wn!==0||Vn!==0){var ga=((An-wn)*Wn+(hn-In)*Vn)/(Wn*Wn+Vn*Vn);ga>1?(wn=Ln,In=Xn):ga>0&&(wn+=Wn*ga,In+=Vn*ga)}return Wn=An-wn,Vn=hn-In,Wn*Wn+Vn*Vn}function Qr(An,hn,wn,In){var Ln={id:typeof An>"u"?null:An,type:hn,geometry:wn,tags:In,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return sn(Ln),Ln}function sn(An){var hn=An.geometry,wn=An.type;if(wn==="Point"||wn==="MultiPoint"||wn==="LineString")un(An,hn);else if(wn==="Polygon"||wn==="MultiLineString")for(var In=0;In0&&(In?Wn+=(Ln*fo-ga*Xn)/2:Wn+=Math.sqrt(Math.pow(ga-Ln,2)+Math.pow(fo-Xn,2))),Ln=ga,Xn=fo}var qn=hn.length-3;hn[2]=1,kr(hn,0,qn,wn),hn[qn+2]=1,hn.size=Math.abs(Wn),hn.start=0,hn.end=hn.size}function pn(An,hn,wn,In){for(var Ln=0;Ln1?1:wn}function Fr(An,hn,wn,In,Ln,Xn,Wn,Vn){if(wn/=hn,In/=hn,Xn>=wn&&Wn=In)return null;for(var ga=[],fo=0;fo=wn&&$n=In)continue;var Bn=[];if(Yr==="Point"||Yr==="MultiPoint")Ur(po,Bn,wn,In,Ln);else if(Yr==="LineString")Wr(po,Bn,wn,In,Ln,!1,Vn.lineMetrics);else if(Yr==="MultiLineString")wr(po,Bn,wn,In,Ln,!1);else if(Yr==="Polygon")wr(po,Bn,wn,In,Ln,!0);else if(Yr==="MultiPolygon")for(var xa=0;xa=wn&&Wn<=In&&(hn.push(An[Xn]),hn.push(An[Xn+1]),hn.push(An[Xn+2]))}}function Wr(An,hn,wn,In,Ln,Xn,Wn){for(var Vn=Gr(An),ga=Ln===0?Dr:Sr,fo=An.start,qn,po,Yr=0;Yrwn&&(po=ga(Vn,jr,$n,xa,ro,wn),Wn&&(Vn.start=fo+qn*po)):io>In?eo=wn&&(po=ga(Vn,jr,$n,xa,ro,wn),Gn=!0),eo>In&&io<=In&&(po=ga(Vn,jr,$n,xa,ro,In),Gn=!0),!Xn&&Gn&&(Wn&&(Vn.end=fo+qn*po),hn.push(Vn),Vn=Gr(An)),Wn&&(fo+=qn)}var ho=An.length-3;jr=An[ho],$n=An[ho+1],Bn=An[ho+2],io=Ln===0?jr:$n,io>=wn&&io<=In&&pr(Vn,jr,$n,Bn),ho=Vn.length-3,Xn&&ho>=3&&(Vn[ho]!==Vn[0]||Vn[ho+1]!==Vn[1])&&pr(Vn,Vn[0],Vn[1],Vn[2]),Vn.length&&hn.push(Vn)}function Gr(An){var hn=[];return hn.size=An.size,hn.start=An.start,hn.end=An.end,hn}function wr(An,hn,wn,In,Ln,Xn){for(var Wn=0;WnWn.maxX&&(Wn.maxX=qn),po>Wn.maxY&&(Wn.maxY=po)}return Wn}function Cn(An,hn,wn,In){var Ln=hn.geometry,Xn=hn.type,Wn=[];if(Xn==="Point"||Xn==="MultiPoint")for(var Vn=0;Vn0&&hn.size<(Ln?Wn:In)){wn.numPoints+=hn.length/3;return}for(var Vn=[],ga=0;gaWn)&&(wn.numSimplified++,Vn.push(hn[ga]),Vn.push(hn[ga+1])),wn.numPoints++;Ln&&fn(Vn,Xn),An.push(Vn)}function fn(An,hn){for(var wn=0,In=0,Ln=An.length,Xn=Ln-2;In0===hn)for(In=0,Ln=An.length;In24)throw new Error("maxZoom should be in the 0-24 range");if(hn.promoteId&&hn.generateId)throw new Error("promoteId and generateId cannot be used together.");var In=en(An,hn);this.tiles={},this.tileCoords=[],wn&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",hn.indexMaxZoom,hn.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),In=ur(In,hn),In.length&&this.splitTile(In,0,0,0),wn&&(In.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}Un.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Un.prototype.splitTile=function(An,hn,wn,In,Ln,Xn,Wn){for(var Vn=[An,hn,wn,In],ga=this.options,fo=ga.debug;Vn.length;){In=Vn.pop(),wn=Vn.pop(),hn=Vn.pop(),An=Vn.pop();var qn=1<1&&console.time("creation"),Yr=this.tiles[po]=rn(An,hn,wn,In,ga),this.tileCoords.push({z:hn,x:wn,y:In}),fo)){fo>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",hn,wn,In,Yr.numFeatures,Yr.numPoints,Yr.numSimplified),console.timeEnd("creation"));var jr="z"+hn;this.stats[jr]=(this.stats[jr]||0)+1,this.total++}if(Yr.source=An,Ln){if(hn===ga.maxZoom||hn===Ln)continue;var $n=1<1&&console.time("clipping");var Bn=.5*ga.buffer/ga.extent,xa=.5-Bn,ro=.5+Bn,io=1+Bn,eo,Gn,ho,go,_o,co;eo=Gn=ho=go=null,_o=Fr(An,qn,wn-Bn,wn+ro,0,Yr.minX,Yr.maxX,ga),co=Fr(An,qn,wn+xa,wn+io,0,Yr.minX,Yr.maxX,ga),An=null,_o&&(eo=Fr(_o,qn,In-Bn,In+ro,1,Yr.minY,Yr.maxY,ga),Gn=Fr(_o,qn,In+xa,In+io,1,Yr.minY,Yr.maxY,ga),_o=null),co&&(ho=Fr(co,qn,In-Bn,In+ro,1,Yr.minY,Yr.maxY,ga),go=Fr(co,qn,In+xa,In+io,1,Yr.minY,Yr.maxY,ga),co=null),fo>1&&console.timeEnd("clipping"),Vn.push(eo||[],hn+1,wn*2,In*2),Vn.push(Gn||[],hn+1,wn*2,In*2+1),Vn.push(ho||[],hn+1,wn*2+1,In*2),Vn.push(go||[],hn+1,wn*2+1,In*2+1)}}},Un.prototype.getTile=function(An,hn,wn){var In=this.options,Ln=In.extent,Xn=In.debug;if(An<0||An>24)return null;var Wn=1<1&&console.log("drilling down to z%d-%d-%d",An,hn,wn);for(var ga=An,fo=hn,qn=wn,po;!po&&ga>0;)ga--,fo=Math.floor(fo/2),qn=Math.floor(qn/2),po=this.tiles[_i(ga,fo,qn)];return!po||!po.source?null:(Xn>1&&console.log("found parent tile z%d-%d-%d",ga,fo,qn),Xn>1&&console.time("drilling down"),this.splitTile(po.source,ga,fo,qn,An,hn,wn),Xn>1&&console.timeEnd("drilling down"),this.tiles[Vn]?Vr(this.tiles[Vn],Ln):null)};function _i(An,hn,wn){return((1<=0?0:hr.button},yt.remove=function(hr){hr.parentNode&&hr.parentNode.removeChild(hr)};function nt(hr,Qt,vr){var nr,yr,$r,Kr=et.browser.devicePixelRatio>1?"@2x":"",gn=et.getJSON(Qt.transformRequest(Qt.normalizeSpriteURL(hr,Kr,".json"),et.ResourceType.SpriteJSON),function(na,uo){gn=null,$r||($r=na,nr=uo,jn())}),kn=et.getImage(Qt.transformRequest(Qt.normalizeSpriteURL(hr,Kr,".png"),et.ResourceType.SpriteImage),function(na,uo){kn=null,$r||($r=na,yr=uo,jn())});function jn(){if($r)vr($r);else if(nr&&yr){var na=et.browser.getImageData(yr),uo={};for(var lo in nr){var Po=nr[lo],Jo=Po.width,Ko=Po.height,jo=Po.x,es=Po.y,ps=Po.sdf,Fs=Po.pixelRatio,Hs=Po.stretchX,yl=Po.stretchY,Tl=Po.content,qs=new et.RGBAImage({width:Jo,height:Ko});et.RGBAImage.copy(na,qs,{x:jo,y:es},{x:0,y:0},{width:Jo,height:Ko}),uo[lo]={data:qs,pixelRatio:Fs,sdf:ps,stretchX:Hs,stretchY:yl,content:Tl}}vr(null,uo)}}return{cancel:function(){gn&&(gn.cancel(),gn=null),kn&&(kn.cancel(),kn=null)}}}function vt(hr){var Qt=hr.userImage;if(Qt&&Qt.render){var vr=Qt.render();if(vr)return hr.data.replace(new Uint8Array(Qt.data.buffer)),!0}return!1}var dt=1,bt=function(hr){function Qt(){hr.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new et.RGBAImage({width:1,height:1}),this.dirty=!0}return hr&&(Qt.__proto__=hr),Qt.prototype=Object.create(hr&&hr.prototype),Qt.prototype.constructor=Qt,Qt.prototype.isLoaded=function(){return this.loaded},Qt.prototype.setLoaded=function(nr){if(this.loaded!==nr&&(this.loaded=nr,nr)){for(var yr=0,$r=this.requestors;yr<$r.length;yr+=1){var Kr=$r[yr],gn=Kr.ids,kn=Kr.callback;this._notify(gn,kn)}this.requestors=[]}},Qt.prototype.getImage=function(nr){return this.images[nr]},Qt.prototype.addImage=function(nr,yr){this._validate(nr,yr)&&(this.images[nr]=yr)},Qt.prototype._validate=function(nr,yr){var $r=!0;return this._validateStretch(yr.stretchX,yr.data&&yr.data.width)||(this.fire(new et.ErrorEvent(new Error('Image "'+nr+'" has invalid "stretchX" value'))),$r=!1),this._validateStretch(yr.stretchY,yr.data&&yr.data.height)||(this.fire(new et.ErrorEvent(new Error('Image "'+nr+'" has invalid "stretchY" value'))),$r=!1),this._validateContent(yr.content,yr)||(this.fire(new et.ErrorEvent(new Error('Image "'+nr+'" has invalid "content" value'))),$r=!1),$r},Qt.prototype._validateStretch=function(nr,yr){if(!nr)return!0;for(var $r=0,Kr=0,gn=nr;Kr=0?1.2:1))}_t.prototype.draw=function(hr){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(hr,this.buffer,this.middle);for(var Qt=this.ctx.getImageData(0,0,this.size,this.size),vr=new Uint8ClampedArray(this.size*this.size),nr=0;nr65535){na(new Error("glyphs > 65535 not supported"));return}if(Po.ranges[Ko]){na(null,{stack:uo,id:lo,glyph:Jo});return}var jo=Po.requests[Ko];jo||(jo=Po.requests[Ko]=[],kt.loadGlyphRange(uo,Ko,nr.url,nr.requestManager,function(es,ps){if(ps){for(var Fs in ps)nr._doesCharSupportLocalGlyph(+Fs)||(Po.glyphs[+Fs]=ps[+Fs]);Po.ranges[Ko]=!0}for(var Hs=0,yl=jo;Hs1&&(jn=Qt[++kn]);var uo=Math.abs(na-jn.left),lo=Math.abs(na-jn.right),Po=Math.min(uo,lo),Jo=void 0,Ko=$r/nr*(yr+1);if(jn.isDash){var jo=yr-Math.abs(Ko);Jo=Math.sqrt(Po*Po+jo*jo)}else Jo=yr-Math.sqrt(Po*Po+Ko*Ko);this.data[gn+na]=Math.max(0,Math.min(255,Jo+128))}},Ot.prototype.addRegularDash=function(Qt){for(var vr=Qt.length-1;vr>=0;--vr){var nr=Qt[vr],yr=Qt[vr+1];nr.zeroLength?Qt.splice(vr,1):yr&&yr.isDash===nr.isDash&&(yr.left=nr.left,Qt.splice(vr,1))}var $r=Qt[0],Kr=Qt[Qt.length-1];$r.isDash===Kr.isDash&&($r.left=Kr.left-this.width,Kr.right=$r.right+this.width);for(var gn=this.width*this.nextRow,kn=0,jn=Qt[kn],na=0;na1&&(jn=Qt[++kn]);var uo=Math.abs(na-jn.left),lo=Math.abs(na-jn.right),Po=Math.min(uo,lo),Jo=jn.isDash?Po:-Po;this.data[gn+na]=Math.max(0,Math.min(255,Jo+128))}},Ot.prototype.addDash=function(Qt,vr){var nr=vr?7:0,yr=2*nr+1;if(this.nextRow+yr>this.height)return et.warnOnce("LineAtlas out of space"),null;for(var $r=0,Kr=0;Kr=nr.minX&&Qt.x=nr.minY&&Qt.y0&&(na[new et.OverscaledTileID(nr.overscaledZ,gn,yr.z,Kr,yr.y-1).key]={backfilled:!1},na[new et.OverscaledTileID(nr.overscaledZ,nr.wrap,yr.z,yr.x,yr.y-1).key]={backfilled:!1},na[new et.OverscaledTileID(nr.overscaledZ,jn,yr.z,kn,yr.y-1).key]={backfilled:!1}),yr.y+1<$r&&(na[new et.OverscaledTileID(nr.overscaledZ,gn,yr.z,Kr,yr.y+1).key]={backfilled:!1},na[new et.OverscaledTileID(nr.overscaledZ,nr.wrap,yr.z,yr.x,yr.y+1).key]={backfilled:!1},na[new et.OverscaledTileID(nr.overscaledZ,jn,yr.z,kn,yr.y+1).key]={backfilled:!1}),na},Qt.prototype.unloadTile=function(nr){nr.demTexture&&this.map.painter.saveTileTexture(nr.demTexture),nr.fbo&&(nr.fbo.destroy(),delete nr.fbo),nr.dem&&delete nr.dem,delete nr.neighboringTiles,nr.state="unloaded",nr.actor&&nr.actor.send("removeDEMTile",{uid:nr.uid,source:this.id})},Qt}($t),Ht=function(hr){function Qt(vr,nr,yr,$r){hr.call(this),this.id=vr,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._loaded=!1,this.actor=yr.getActor(),this.setEventedParent($r),this._data=nr.data,this._options=et.extend({},nr),this._collectResourceTiming=nr.collectResourceTiming,this._resourceTiming=[],nr.maxzoom!==void 0&&(this.maxzoom=nr.maxzoom),nr.type&&(this.type=nr.type),nr.attribution&&(this.attribution=nr.attribution),this.promoteId=nr.promoteId;var Kr=et.EXTENT/this.tileSize;this.workerOptions=et.extend({source:this.id,cluster:nr.cluster||!1,geojsonVtOptions:{buffer:(nr.buffer!==void 0?nr.buffer:128)*Kr,tolerance:(nr.tolerance!==void 0?nr.tolerance:.375)*Kr,extent:et.EXTENT,maxZoom:this.maxzoom,lineMetrics:nr.lineMetrics||!1,generateId:nr.generateId||!1},superclusterOptions:{maxZoom:nr.clusterMaxZoom!==void 0?Math.min(nr.clusterMaxZoom,this.maxzoom-1):this.maxzoom-1,minPoints:Math.max(2,nr.clusterMinPoints||2),extent:et.EXTENT,radius:(nr.clusterRadius||50)*Kr,log:!1,generateId:nr.generateId||!1},clusterProperties:nr.clusterProperties,filter:nr.filter},nr.workerOptions)}return hr&&(Qt.__proto__=hr),Qt.prototype=Object.create(hr&&hr.prototype),Qt.prototype.constructor=Qt,Qt.prototype.load=function(){var nr=this;this.fire(new et.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(yr){if(yr){nr.fire(new et.ErrorEvent(yr));return}var $r={dataType:"source",sourceDataType:"metadata"};nr._collectResourceTiming&&nr._resourceTiming&&nr._resourceTiming.length>0&&($r.resourceTiming=nr._resourceTiming,nr._resourceTiming=[]),nr.fire(new et.Event("data",$r))})},Qt.prototype.onAdd=function(nr){this.map=nr,this.load()},Qt.prototype.setData=function(nr){var yr=this;return this._data=nr,this.fire(new et.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function($r){if($r){yr.fire(new et.ErrorEvent($r));return}var Kr={dataType:"source",sourceDataType:"content"};yr._collectResourceTiming&&yr._resourceTiming&&yr._resourceTiming.length>0&&(Kr.resourceTiming=yr._resourceTiming,yr._resourceTiming=[]),yr.fire(new et.Event("data",Kr))}),this},Qt.prototype.getClusterExpansionZoom=function(nr,yr){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:nr,source:this.id},yr),this},Qt.prototype.getClusterChildren=function(nr,yr){return this.actor.send("geojson.getClusterChildren",{clusterId:nr,source:this.id},yr),this},Qt.prototype.getClusterLeaves=function(nr,yr,$r,Kr){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:nr,limit:yr,offset:$r},Kr),this},Qt.prototype._updateWorkerData=function(nr){var yr=this;this._loaded=!1;var $r=et.extend({},this.workerOptions),Kr=this._data;typeof Kr=="string"?($r.request=this.map._requestManager.transformRequest(et.browser.resolveURL(Kr),et.ResourceType.Source),$r.request.collectResourceTiming=this._collectResourceTiming):$r.data=JSON.stringify(Kr),this.actor.send(this.type+".loadData",$r,function(gn,kn){yr._removed||kn&&kn.abandoned||(yr._loaded=!0,kn&&kn.resourceTiming&&kn.resourceTiming[yr.id]&&(yr._resourceTiming=kn.resourceTiming[yr.id].slice(0)),yr.actor.send(yr.type+".coalesce",{source:$r.source},null),nr(gn))})},Qt.prototype.loaded=function(){return this._loaded},Qt.prototype.loadTile=function(nr,yr){var $r=this,Kr=nr.actor?"reloadTile":"loadTile";nr.actor=this.actor;var gn={type:this.type,uid:nr.uid,tileID:nr.tileID,zoom:nr.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:et.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};nr.request=this.actor.send(Kr,gn,function(kn,jn){return delete nr.request,nr.unloadVectorData(),nr.aborted?yr(null):kn?yr(kn):(nr.loadVectorData(jn,$r.map.painter,Kr==="reloadTile"),yr(null))})},Qt.prototype.abortTile=function(nr){nr.request&&(nr.request.cancel(),delete nr.request),nr.aborted=!0},Qt.prototype.unloadTile=function(nr){nr.unloadVectorData(),this.actor.send("removeTile",{uid:nr.uid,type:this.type,source:this.id})},Qt.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},Qt.prototype.serialize=function(){return et.extend({},this._options,{type:this.type,data:this._data})},Qt.prototype.hasTransition=function(){return!1},Qt}(et.Evented),Vt=et.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),Xt=function(hr){function Qt(vr,nr,yr,$r){hr.call(this),this.id=vr,this.dispatcher=yr,this.coordinates=nr.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent($r),this.options=nr}return hr&&(Qt.__proto__=hr),Qt.prototype=Object.create(hr&&hr.prototype),Qt.prototype.constructor=Qt,Qt.prototype.load=function(nr,yr){var $r=this;this._loaded=!1,this.fire(new et.Event("dataloading",{dataType:"source"})),this.url=this.options.url,et.getImage(this.map._requestManager.transformRequest(this.url,et.ResourceType.Image),function(Kr,gn){$r._loaded=!0,Kr?$r.fire(new et.ErrorEvent(Kr)):gn&&($r.image=gn,nr&&($r.coordinates=nr),yr&&yr(),$r._finishLoading())})},Qt.prototype.loaded=function(){return this._loaded},Qt.prototype.updateImage=function(nr){var yr=this;return!this.image||!nr.url?this:(this.options.url=nr.url,this.load(nr.coordinates,function(){yr.texture=null}),this)},Qt.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new et.Event("data",{dataType:"source",sourceDataType:"metadata"})))},Qt.prototype.onAdd=function(nr){this.map=nr,this.load()},Qt.prototype.setCoordinates=function(nr){var yr=this;this.coordinates=nr;var $r=nr.map(et.MercatorCoordinate.fromLngLat);this.tileID=qt($r),this.minzoom=this.maxzoom=this.tileID.z;var Kr=$r.map(function(gn){return yr.tileID.getTilePoint(gn)._round()});return this._boundsArray=new et.StructArrayLayout4i8,this._boundsArray.emplaceBack(Kr[0].x,Kr[0].y,0,0),this._boundsArray.emplaceBack(Kr[1].x,Kr[1].y,et.EXTENT,0),this._boundsArray.emplaceBack(Kr[3].x,Kr[3].y,0,et.EXTENT),this._boundsArray.emplaceBack(Kr[2].x,Kr[2].y,et.EXTENT,et.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new et.Event("data",{dataType:"source",sourceDataType:"content"})),this},Qt.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||!this.image)){var nr=this.map.painter.context,yr=nr.gl;this.boundsBuffer||(this.boundsBuffer=nr.createVertexBuffer(this._boundsArray,Vt.members)),this.boundsSegments||(this.boundsSegments=et.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new et.Texture(nr,this.image,yr.RGBA),this.texture.bind(yr.LINEAR,yr.CLAMP_TO_EDGE));for(var $r in this.tiles){var Kr=this.tiles[$r];Kr.state!=="loaded"&&(Kr.state="loaded",Kr.texture=this.texture)}}},Qt.prototype.loadTile=function(nr,yr){this.tileID&&this.tileID.equals(nr.tileID.canonical)?(this.tiles[String(nr.tileID.wrap)]=nr,nr.buckets={},yr(null)):(nr.state="errored",yr(null))},Qt.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},Qt.prototype.hasTransition=function(){return!1},Qt}(et.Evented);function qt(hr){for(var Qt=1/0,vr=1/0,nr=-1/0,yr=-1/0,$r=0,Kr=hr;$ryr.end(0)?this.fire(new et.ErrorEvent(new et.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+yr.start(0)+" and "+yr.end(0)+"-second mark."))):this.video.currentTime=nr}},Qt.prototype.getVideo=function(){return this.video},Qt.prototype.onAdd=function(nr){this.map||(this.map=nr,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},Qt.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var nr=this.map.painter.context,yr=nr.gl;this.boundsBuffer||(this.boundsBuffer=nr.createVertexBuffer(this._boundsArray,Vt.members)),this.boundsSegments||(this.boundsSegments=et.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(yr.LINEAR,yr.CLAMP_TO_EDGE),yr.texSubImage2D(yr.TEXTURE_2D,0,0,0,yr.RGBA,yr.UNSIGNED_BYTE,this.video)):(this.texture=new et.Texture(nr,this.video,yr.RGBA),this.texture.bind(yr.LINEAR,yr.CLAMP_TO_EDGE));for(var $r in this.tiles){var Kr=this.tiles[$r];Kr.state!=="loaded"&&(Kr.state="loaded",Kr.texture=this.texture)}}},Qt.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},Qt.prototype.hasTransition=function(){return this.video&&!this.video.paused},Qt}(Xt),lr=function(hr){function Qt(vr,nr,yr,$r){hr.call(this,vr,nr,yr,$r),nr.coordinates?(!Array.isArray(nr.coordinates)||nr.coordinates.length!==4||nr.coordinates.some(function(Kr){return!Array.isArray(Kr)||Kr.length!==2||Kr.some(function(gn){return typeof gn!="number"})}))&&this.fire(new et.ErrorEvent(new et.ValidationError("sources."+vr,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new et.ErrorEvent(new et.ValidationError("sources."+vr,null,'missing required property "coordinates"'))),nr.animate&&typeof nr.animate!="boolean"&&this.fire(new et.ErrorEvent(new et.ValidationError("sources."+vr,null,'optional "animate" property must be a boolean value'))),nr.canvas?typeof nr.canvas!="string"&&!(nr.canvas instanceof et.window.HTMLCanvasElement)&&this.fire(new et.ErrorEvent(new et.ValidationError("sources."+vr,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new et.ErrorEvent(new et.ValidationError("sources."+vr,null,'missing required property "canvas"'))),this.options=nr,this.animate=nr.animate!==void 0?nr.animate:!0}return hr&&(Qt.__proto__=hr),Qt.prototype=Object.create(hr&&hr.prototype),Qt.prototype.constructor=Qt,Qt.prototype.load=function(){if(this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof et.window.HTMLCanvasElement?this.options.canvas:et.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()){this.fire(new et.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero.")));return}this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading()},Qt.prototype.getCanvas=function(){return this.canvas},Qt.prototype.onAdd=function(nr){this.map=nr,this.load(),this.canvas&&this.animate&&this.play()},Qt.prototype.onRemove=function(){this.pause()},Qt.prototype.prepare=function(){var nr=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,nr=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,nr=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var yr=this.map.painter.context,$r=yr.gl;this.boundsBuffer||(this.boundsBuffer=yr.createVertexBuffer(this._boundsArray,Vt.members)),this.boundsSegments||(this.boundsSegments=et.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(nr||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new et.Texture(yr,this.canvas,$r.RGBA,{premultiply:!0});for(var Kr in this.tiles){var gn=this.tiles[Kr];gn.state!=="loaded"&&(gn.state="loaded",gn.texture=this.texture)}}},Qt.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},Qt.prototype.hasTransition=function(){return this._playing},Qt.prototype._hasInvalidDimensions=function(){for(var nr=0,yr=[this.canvas.width,this.canvas.height];nrthis.max){var gn=this._getAndRemoveByKey(this.order[0]);gn&&this.onRemove(gn)}return this},mr.prototype.has=function(Qt){return Qt.wrapped().key in this.data},mr.prototype.getAndRemove=function(Qt){return this.has(Qt)?this._getAndRemoveByKey(Qt.wrapped().key):null},mr.prototype._getAndRemoveByKey=function(Qt){var vr=this.data[Qt].shift();return vr.timeout&&clearTimeout(vr.timeout),this.data[Qt].length===0&&delete this.data[Qt],this.order.splice(this.order.indexOf(Qt),1),vr.value},mr.prototype.getByKey=function(Qt){var vr=this.data[Qt];return vr?vr[0].value:null},mr.prototype.get=function(Qt){if(!this.has(Qt))return null;var vr=this.data[Qt.wrapped().key][0];return vr.value},mr.prototype.remove=function(Qt,vr){if(!this.has(Qt))return this;var nr=Qt.wrapped().key,yr=vr===void 0?0:this.data[nr].indexOf(vr),$r=this.data[nr][yr];return this.data[nr].splice(yr,1),$r.timeout&&clearTimeout($r.timeout),this.data[nr].length===0&&delete this.data[nr],this.onRemove($r.value),this.order.splice(this.order.indexOf(nr),1),this},mr.prototype.setMaxSize=function(Qt){for(this.max=Qt;this.order.length>this.max;){var vr=this._getAndRemoveByKey(this.order[0]);vr&&this.onRemove(vr)}return this},mr.prototype.filter=function(Qt){var vr=[];for(var nr in this.data)for(var yr=0,$r=this.data[nr];yr<$r.length;yr+=1){var Kr=$r[yr];Qt(Kr.value)||vr.push(Kr)}for(var gn=0,kn=vr;gn1||(Math.abs(uo)>1&&(Math.abs(uo+Po)===1?uo+=Po:Math.abs(uo-Po)===1&&(uo-=Po)),!(!na.dem||!jn.dem)&&(jn.dem.backfillBorder(na.dem,uo,lo),jn.neighboringTiles&&jn.neighboringTiles[Jo]&&(jn.neighboringTiles[Jo].backfilled=!0)))}},Qt.prototype.getTile=function(nr){return this.getTileByID(nr.key)},Qt.prototype.getTileByID=function(nr){return this._tiles[nr]},Qt.prototype._retainLoadedChildren=function(nr,yr,$r,Kr){for(var gn in this._tiles){var kn=this._tiles[gn];if(!(Kr[gn]||!kn.hasData()||kn.tileID.overscaledZ<=yr||kn.tileID.overscaledZ>$r)){for(var jn=kn.tileID;kn&&kn.tileID.overscaledZ>yr+1;){var na=kn.tileID.scaledTo(kn.tileID.overscaledZ-1);kn=this._tiles[na.key],kn&&kn.hasData()&&(jn=na)}for(var uo=jn;uo.overscaledZ>yr;)if(uo=uo.scaledTo(uo.overscaledZ-1),nr[uo.key]){Kr[jn.key]=jn;break}}}},Qt.prototype.findLoadedParent=function(nr,yr){if(nr.key in this._loadedParentTiles){var $r=this._loadedParentTiles[nr.key];return $r&&$r.tileID.overscaledZ>=yr?$r:null}for(var Kr=nr.overscaledZ-1;Kr>=yr;Kr--){var gn=nr.scaledTo(Kr),kn=this._getLoadedTile(gn);if(kn)return kn}},Qt.prototype._getLoadedTile=function(nr){var yr=this._tiles[nr.key];if(yr&&yr.hasData())return yr;var $r=this._cache.getByKey(nr.wrapped().key);return $r},Qt.prototype.updateCacheSize=function(nr){var yr=Math.ceil(nr.width/this._source.tileSize)+1,$r=Math.ceil(nr.height/this._source.tileSize)+1,Kr=yr*$r,gn=5,kn=Math.floor(Kr*gn),jn=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,kn):kn;this._cache.setMaxSize(jn)},Qt.prototype.handleWrapJump=function(nr){var yr=this._prevLng===void 0?nr:this._prevLng,$r=nr-yr,Kr=$r/360,gn=Math.round(Kr);if(this._prevLng=nr,gn){var kn={};for(var jn in this._tiles){var na=this._tiles[jn];na.tileID=na.tileID.unwrapTo(na.tileID.wrap+gn),kn[na.tileID.key]=na}this._tiles=kn;for(var uo in this._timers)clearTimeout(this._timers[uo]),delete this._timers[uo];for(var lo in this._tiles){var Po=this._tiles[lo];this._setTileReloadTimer(lo,Po)}}},Qt.prototype.update=function(nr){var yr=this;if(this.transform=nr,!(!this._sourceLoaded||this._paused)){this.updateCacheSize(nr),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={};var $r;this.used?this._source.tileID?$r=nr.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(Ul){return new et.OverscaledTileID(Ul.canonical.z,Ul.wrap,Ul.canonical.z,Ul.canonical.x,Ul.canonical.y)}):($r=nr.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&($r=$r.filter(function(Ul){return yr._source.hasTile(Ul)}))):$r=[];var Kr=nr.coveringZoomLevel(this._source),gn=Math.max(Kr-Qt.maxOverzooming,this._source.minzoom),kn=Math.max(Kr+Qt.maxUnderzooming,this._source.minzoom),jn=this._updateRetainedTiles($r,Kr);if(ga(this._source.type)){for(var na={},uo={},lo=Object.keys(jn),Po=0,Jo=lo;Pothis._source.maxzoom){var ps=jo.children(this._source.maxzoom)[0],Fs=this.getTile(ps);if(Fs&&Fs.hasData()){$r[ps.key]=ps;continue}}else{var Hs=jo.children(this._source.maxzoom);if($r[Hs[0].key]&&$r[Hs[1].key]&&$r[Hs[2].key]&&$r[Hs[3].key])continue}for(var yl=es.wasRequested(),Tl=jo.overscaledZ-1;Tl>=gn;--Tl){var qs=jo.scaledTo(Tl);if(Kr[qs.key]||(Kr[qs.key]=!0,es=this.getTile(qs),!es&&yl&&(es=this._addTile(qs)),es&&($r[qs.key]=qs,yl=es.wasRequested(),es.hasData())))break}}}return $r},Qt.prototype._updateLoadedParentTileCache=function(){this._loadedParentTiles={};for(var nr in this._tiles){for(var yr=[],$r=void 0,Kr=this._tiles[nr].tileID;Kr.overscaledZ>0;){if(Kr.key in this._loadedParentTiles){$r=this._loadedParentTiles[Kr.key];break}yr.push(Kr.key);var gn=Kr.scaledTo(Kr.overscaledZ-1);if($r=this._getLoadedTile(gn),$r)break;Kr=gn}for(var kn=0,jn=yr;kn0)&&(yr.hasData()&&yr.state!=="reloading"?this._cache.add(yr.tileID,yr,yr.getExpiryTimeout()):(yr.aborted=!0,this._abortTile(yr),this._unloadTile(yr))))},Qt.prototype.clearTiles=function(){this._shouldReloadOnResume=!1,this._paused=!1;for(var nr in this._tiles)this._removeTile(nr);this._cache.reset()},Qt.prototype.tilesIn=function(nr,yr,$r){var Kr=this,gn=[],kn=this.transform;if(!kn)return gn;for(var jn=$r?kn.getCameraQueryGeometry(nr):nr,na=nr.map(function(Tl){return kn.pointCoordinate(Tl)}),uo=jn.map(function(Tl){return kn.pointCoordinate(Tl)}),lo=this.getIds(),Po=1/0,Jo=1/0,Ko=-1/0,jo=-1/0,es=0,ps=uo;es=0&&tu[1].y+Ul>=0){var Kl=na.map(function($u){return _l.getTilePoint($u)}),bu=uo.map(function($u){return _l.getTilePoint($u)});gn.push({tile:qs,tileID:_l,queryGeometry:Kl,cameraQueryGeometry:bu,scale:Pl})}}},yl=0;yl=et.browser.now())return!0}return!1},Qt.prototype.setFeatureState=function(nr,yr,$r){nr=nr||"_geojsonTileLayer",this._state.updateState(nr,yr,$r)},Qt.prototype.removeFeatureState=function(nr,yr,$r){nr=nr||"_geojsonTileLayer",this._state.removeFeatureState(nr,yr,$r)},Qt.prototype.getFeatureState=function(nr,yr){return nr=nr||"_geojsonTileLayer",this._state.getState(nr,yr)},Qt.prototype.setDependencies=function(nr,yr,$r){var Kr=this._tiles[nr];Kr&&Kr.setDependencies(yr,$r)},Qt.prototype.reloadTilesForDependencies=function(nr,yr){for(var $r in this._tiles){var Kr=this._tiles[$r];Kr.hasDependency(nr,yr)&&this._reloadTile($r,"reloading")}this._cache.filter(function(gn){return!gn.hasDependency(nr,yr)})},Qt}(et.Evented);Wn.maxOverzooming=10,Wn.maxUnderzooming=3;function Vn(hr,Qt){var vr=Math.abs(hr.wrap*2)-+(hr.wrap<0),nr=Math.abs(Qt.wrap*2)-+(Qt.wrap<0);return hr.overscaledZ-Qt.overscaledZ||nr-vr||Qt.canonical.y-hr.canonical.y||Qt.canonical.x-hr.canonical.x}function ga(hr){return hr==="raster"||hr==="image"||hr==="video"}function fo(){return new et.window.Worker(zp.workerUrl)}var qn="mapboxgl_preloaded_worker_pool",po=function(){this.active={}};po.prototype.acquire=function(Qt){if(!this.workers)for(this.workers=[];this.workers.length0?(yr-Kr)/gn:0;return this.points[$r].mult(1-kn).add(this.points[vr].mult(kn))};var bo=function(Qt,vr,nr){var yr=this.boxCells=[],$r=this.circleCells=[];this.xCellCount=Math.ceil(Qt/nr),this.yCellCount=Math.ceil(vr/nr);for(var Kr=0;Krthis.width||yr<0||vr>this.height)return $r?!1:[];var gn=[];if(Qt<=0&&vr<=0&&this.width<=nr&&this.height<=yr){if($r)return!0;for(var kn=0;kn0:gn}},bo.prototype._queryCircle=function(Qt,vr,nr,yr,$r){var Kr=Qt-nr,gn=Qt+nr,kn=vr-nr,jn=vr+nr;if(gn<0||Kr>this.width||jn<0||kn>this.height)return yr?!1:[];var na=[],uo={hitTest:yr,circle:{x:Qt,y:vr,radius:nr},seenUids:{box:{},circle:{}}};return this._forEachCell(Kr,kn,gn,jn,this._queryCellCircle,na,uo,$r),yr?na.length>0:na},bo.prototype.query=function(Qt,vr,nr,yr,$r){return this._query(Qt,vr,nr,yr,!1,$r)},bo.prototype.hitTest=function(Qt,vr,nr,yr,$r){return this._query(Qt,vr,nr,yr,!0,$r)},bo.prototype.hitTestCircle=function(Qt,vr,nr,yr){return this._queryCircle(Qt,vr,nr,!0,yr)},bo.prototype._queryCell=function(Qt,vr,nr,yr,$r,Kr,gn,kn){var jn=gn.seenUids,na=this.boxCells[$r];if(na!==null)for(var uo=this.bboxes,lo=0,Po=na;lo=uo[Ko+0]&&yr>=uo[Ko+1]&&(!kn||kn(this.boxKeys[Jo]))){if(gn.hitTest)return Kr.push(!0),!0;Kr.push({key:this.boxKeys[Jo],x1:uo[Ko],y1:uo[Ko+1],x2:uo[Ko+2],y2:uo[Ko+3]})}}}var jo=this.circleCells[$r];if(jo!==null)for(var es=this.circles,ps=0,Fs=jo;psgn*gn+kn*kn},bo.prototype._circleAndRectCollide=function(Qt,vr,nr,yr,$r,Kr,gn){var kn=(Kr-yr)/2,jn=Math.abs(Qt-(yr+kn));if(jn>kn+nr)return!1;var na=(gn-$r)/2,uo=Math.abs(vr-($r+na));if(uo>na+nr)return!1;if(jn<=kn||uo<=na)return!0;var lo=jn-kn,Po=uo-na;return lo*lo+Po*Po<=nr*nr};function No(hr,Qt,vr,nr,yr){var $r=et.create();return Qt?(et.scale($r,$r,[1/yr,1/yr,1]),vr||et.rotateZ($r,$r,nr.angle)):et.multiply($r,nr.labelPlaneMatrix,hr),$r}function Yo(hr,Qt,vr,nr,yr){if(Qt){var $r=et.clone(hr);return et.scale($r,$r,[yr,yr,1]),vr||et.rotateZ($r,$r,-nr.angle),$r}else return nr.glCoordMatrix}function Oo(hr,Qt){var vr=[hr.x,hr.y,0,1];xo(vr,vr,Qt);var nr=vr[3];return{point:new et.Point(vr[0]/nr,vr[1]/nr),signedDistanceFromCamera:nr}}function ys(hr,Qt){return .5+.5*(hr/Qt)}function gs(hr,Qt){var vr=hr[0]/hr[3],nr=hr[1]/hr[3],yr=vr>=-Qt[0]&&vr<=Qt[0]&&nr>=-Qt[1]&&nr<=Qt[1];return yr}function zs(hr,Qt,vr,nr,yr,$r,Kr,gn){var kn=nr?hr.textSizeData:hr.iconSizeData,jn=et.evaluateSizeForZoom(kn,vr.transform.zoom),na=[256/vr.width*2+1,256/vr.height*2+1],uo=nr?hr.text.dynamicLayoutVertexArray:hr.icon.dynamicLayoutVertexArray;uo.clear();for(var lo=hr.lineVertexArray,Po=nr?hr.text.placedSymbolArray:hr.icon.placedSymbolArray,Jo=vr.transform.width/vr.transform.height,Ko=!1,jo=0;jo$r)return{useVertical:!0}}return(hr===et.WritingMode.vertical?Qt.yvr.x)?{needsFlipping:!0}:null}function Fl(hr,Qt,vr,nr,yr,$r,Kr,gn,kn,jn,na,uo,lo,Po){var Jo=Qt/24,Ko=hr.lineOffsetX*Jo,jo=hr.lineOffsetY*Jo,es;if(hr.numGlyphs>1){var ps=hr.glyphStartIndex+hr.numGlyphs,Fs=hr.lineStartIndex,Hs=hr.lineStartIndex+hr.lineLength,yl=Us(Jo,gn,Ko,jo,vr,na,uo,hr,kn,$r,lo);if(!yl)return{notEnoughRoom:!0};var Tl=Oo(yl.first.point,Kr).point,qs=Oo(yl.last.point,Kr).point;if(nr&&!vr){var _l=Qs(hr.writingMode,Tl,qs,Po);if(_l)return _l}es=[yl.first];for(var Pl=hr.glyphStartIndex+1;Pl0?bu.point:Jl(uo,Kl,Ul,1,yr),ku=Qs(hr.writingMode,Ul,$u,Po);if(ku)return ku}var iu=nu(Jo*gn.getoffsetX(hr.glyphStartIndex),Ko,jo,vr,na,uo,hr.segment,hr.lineStartIndex,hr.lineStartIndex+hr.lineLength,kn,$r,lo);if(!iu)return{notEnoughRoom:!0};es=[iu]}for(var Du=0,_u=es;Du<_u.length;Du+=1){var Zu=_u[Du];et.addDynamicAttributes(jn,Zu.point,Zu.angle)}return{}}function Jl(hr,Qt,vr,nr,yr){var $r=Oo(hr.add(hr.sub(Qt)._unit()),yr).point,Kr=vr.sub($r);return vr.add(Kr._mult(nr/Kr.mag()))}function nu(hr,Qt,vr,nr,yr,$r,Kr,gn,kn,jn,na,uo){var lo=nr?hr-Qt:hr+Qt,Po=lo>0?1:-1,Jo=0;nr&&(Po*=-1,Jo=Math.PI),Po<0&&(Jo+=Math.PI);for(var Ko=Po>0?gn+Kr:gn+Kr+1,jo=yr,es=yr,ps=0,Fs=0,Hs=Math.abs(lo),yl=[];ps+Fs<=Hs;){if(Ko+=Po,Ko=kn)return null;if(es=jo,yl.push(jo),jo=uo[Ko],jo===void 0){var Tl=new et.Point(jn.getx(Ko),jn.gety(Ko)),qs=Oo(Tl,na);if(qs.signedDistanceFromCamera>0)jo=uo[Ko]=qs.point;else{var _l=Ko-Po,Pl=ps===0?$r:new et.Point(jn.getx(_l),jn.gety(_l));jo=Jl(Pl,Tl,es,Hs-ps+1,na)}}ps+=Fs,Fs=es.dist(jo)}var Ul=(Hs-ps)/Fs,tu=jo.sub(es),Kl=tu.mult(Ul)._add(es);Kl._add(tu._unit()._perp()._mult(vr*Po));var bu=Jo+Math.atan2(jo.y-es.y,jo.x-es.x);return yl.push(Kl),{point:Kl,angle:bu,path:yl}}var Yl=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Zs(hr,Qt){for(var vr=0;vr=1;Zu--)_u.push(iu.path[Zu]);for(var Hu=1;Hu0){for(var wu=_u[0].clone(),Gu=_u[0].clone(),Cp=1;Cp<_u.length;Cp++)wu.x=Math.min(wu.x,_u[Cp].x),wu.y=Math.min(wu.y,_u[Cp].y),Gu.x=Math.max(Gu.x,_u[Cp].x),Gu.y=Math.max(Gu.y,_u[Cp].y);wu.x>=bu.x&&Gu.x<=$u.x&&wu.y>=bu.y&&Gu.y<=$u.y?ap=[_u]:Gu.x$u.x||Gu.y$u.y?ap=[]:ap=et.clipLine([_u],bu.x,bu.y,$u.x,$u.y)}for(var Jp=0,Qp=ap;Jp=this.screenRightBoundary||yrthis.screenBottomBoundary},Go.prototype.isInsideGrid=function(Qt,vr,nr,yr){return nr>=0&&Qt=0&&vr0){var Hs;return this.prevPlacement&&this.prevPlacement.variableOffsets[lo.crossTileID]&&this.prevPlacement.placements[lo.crossTileID]&&this.prevPlacement.placements[lo.crossTileID].text&&(Hs=this.prevPlacement.variableOffsets[lo.crossTileID].anchor),this.variableOffsets[lo.crossTileID]={textOffset:jo,width:nr,height:yr,anchor:Qt,textBoxScale:$r,prevAnchor:Hs},this.markUsedJustification(Po,Qt,lo,Jo),Po.allowVerticalPlacement&&(this.markUsedOrientation(Po,Jo,lo),this.placedOrientations[lo.crossTileID]=Jo),{shift:es,placedGlyphBoxes:ps}}},Fo.prototype.placeLayerBucketPart=function(Qt,vr,nr){var yr=this,$r=Qt.parameters,Kr=$r.bucket,gn=$r.layout,kn=$r.posMatrix,jn=$r.textLabelPlaneMatrix,na=$r.labelToScreenMatrix,uo=$r.textPixelRatio,lo=$r.holdingForFade,Po=$r.collisionBoxArray,Jo=$r.partiallyEvaluatedTextSize,Ko=$r.collisionGroup,jo=gn.get("text-optional"),es=gn.get("icon-optional"),ps=gn.get("text-allow-overlap"),Fs=gn.get("icon-allow-overlap"),Hs=gn.get("text-rotation-alignment")==="map",yl=gn.get("text-pitch-alignment")==="map",Tl=gn.get("icon-text-fit")!=="none",qs=gn.get("symbol-z-order")==="viewport-y",_l=ps&&(Fs||!Kr.hasIconData()||es),Pl=Fs&&(ps||!Kr.hasTextData()||jo);!Kr.collisionArrays&&Po&&Kr.deserializeCollisionBoxes(Po);var Ul=function(iu,Du){if(!vr[iu.crossTileID]){if(lo){yr.placements[iu.crossTileID]=new Is(!1,!1,!1);return}var _u=!1,Zu=!1,Hu=!0,dp=null,Pu={box:null,offscreen:null},ap={box:null,offscreen:null},wu=null,Gu=null,Cp=null,Jp=0,Qp=0,Av=0;Du.textFeatureIndex?Jp=Du.textFeatureIndex:iu.useRuntimeCollisionCircles&&(Jp=iu.featureIndex),Du.verticalTextFeatureIndex&&(Qp=Du.verticalTextFeatureIndex);var n1=Du.textBox;if(n1){var a1=function(Up){var o0=et.WritingMode.horizontal;if(Kr.allowVerticalPlacement&&!Up&&yr.prevPlacement){var s0=yr.prevPlacement.placedOrientations[iu.crossTileID];s0&&(yr.placedOrientations[iu.crossTileID]=s0,o0=s0,yr.markUsedOrientation(Kr,o0,iu))}return o0},ey=function(Up,o0){if(Kr.allowVerticalPlacement&&iu.numVerticalGlyphVertices>0&&Du.verticalTextBox)for(var s0=0,Kv=Kr.writingModes;s00&&(i0=i0.filter(function(Up){return Up!==Xv.anchor}),i0.unshift(Xv.anchor))}var i1=function(Up,o0,s0){for(var Kv=Up.x2-Up.x1,gx=Up.y2-Up.y1,c2=iu.textBoxScale,f2=Tl&&!Fs?o0:null,Ty={box:[],offscreen:!1},d2=ps?i0.length*2:i0.length,Yy=0;Yy=i0.length,Ly=yr.attemptAnchorPlacement(h2,Up,Kv,gx,c2,Hs,yl,uo,kn,Ko,p2,iu,Kr,s0,f2);if(Ly&&(Ty=Ly.placedGlyphBoxes,Ty&&Ty.box&&Ty.box.length)){_u=!0,dp=Ly.shift;break}}return Ty},fm=function(){return i1(n1,Du.iconBox,et.WritingMode.horizontal)},o1=function(){var Up=Du.verticalTextBox,o0=Pu&&Pu.box&&Pu.box.length;return Kr.allowVerticalPlacement&&!o0&&iu.numVerticalGlyphVertices>0&&Up?i1(Up,Du.verticalIconBox,et.WritingMode.vertical):{box:null,offscreen:null}};ey(fm,o1),Pu&&(_u=Pu.box,Hu=Pu.offscreen);var Vy=a1(Pu&&Pu.box);if(!_u&&yr.prevPlacement){var my=yr.prevPlacement.variableOffsets[iu.crossTileID];my&&(yr.variableOffsets[iu.crossTileID]=my,yr.markUsedJustification(Kr,my.anchor,iu,Vy))}}else{var F1=function(Up,o0){var s0=yr.collisionIndex.placeCollisionBox(Up,ps,uo,kn,Ko.predicate);return s0&&s0.box&&s0.box.length&&(yr.markUsedOrientation(Kr,o0,iu),yr.placedOrientations[iu.crossTileID]=o0),s0},Yv=function(){return F1(n1,et.WritingMode.horizontal)},B1=function(){var Up=Du.verticalTextBox;return Kr.allowVerticalPlacement&&iu.numVerticalGlyphVertices>0&&Up?F1(Up,et.WritingMode.vertical):{box:null,offscreen:null}};ey(Yv,B1),a1(Pu&&Pu.box&&Pu.box.length)}}if(wu=Pu,_u=wu&&wu.box&&wu.box.length>0,Hu=wu&&wu.offscreen,iu.useRuntimeCollisionCircles){var ov=Kr.text.placedSymbolArray.get(iu.centerJustifiedTextSymbolIndex),Iy=et.evaluateSizeForFeature(Kr.textSizeData,Jo,ov),yy=gn.get("text-padding"),zv=iu.collisionCircleDiameter;Gu=yr.collisionIndex.placeCollisionCircles(ps,ov,Kr.lineVertexArray,Kr.glyphOffsetArray,Iy,kn,jn,na,nr,yl,Ko.predicate,zv,yy),_u=ps||Gu.circles.length>0&&!Gu.collisionDetected,Hu=Hu&&Gu.offscreen}if(Du.iconFeatureIndex&&(Av=Du.iconFeatureIndex),Du.iconBox){var xy=function(Up){var o0=Tl&&dp?yo(Up,dp.x,dp.y,Hs,yl,yr.transform.angle):Up;return yr.collisionIndex.placeCollisionBox(o0,Fs,uo,kn,Ko.predicate)};ap&&ap.box&&ap.box.length&&Du.verticalIconBox?(Cp=xy(Du.verticalIconBox),Zu=Cp.box.length>0):(Cp=xy(Du.iconBox),Zu=Cp.box.length>0),Hu=Hu&&Cp.offscreen}var Wy=jo||iu.numHorizontalGlyphVertices===0&&iu.numVerticalGlyphVertices===0,ky=es||iu.numIconVertices===0;if(!Wy&&!ky?Zu=_u=Zu&&_u:ky?Wy||(Zu=Zu&&_u):_u=Zu&&_u,_u&&wu&&wu.box&&(ap&&ap.box&&Qp?yr.collisionIndex.insertCollisionBox(wu.box,gn.get("text-ignore-placement"),Kr.bucketInstanceId,Qp,Ko.ID):yr.collisionIndex.insertCollisionBox(wu.box,gn.get("text-ignore-placement"),Kr.bucketInstanceId,Jp,Ko.ID)),Zu&&Cp&&yr.collisionIndex.insertCollisionBox(Cp.box,gn.get("icon-ignore-placement"),Kr.bucketInstanceId,Av,Ko.ID),Gu&&(_u&&yr.collisionIndex.insertCollisionCircles(Gu.circles,gn.get("text-ignore-placement"),Kr.bucketInstanceId,Jp,Ko.ID),nr)){var jy=Kr.bucketInstanceId,by=yr.collisionCircleArrays[jy];by===void 0&&(by=yr.collisionCircleArrays[jy]=new Xs);for(var Ey=0;Ey=0;--Kl){var bu=tu[Kl];Ul(Kr.symbolInstances.get(bu),Kr.collisionArrays[bu])}else for(var $u=Qt.symbolInstanceStart;$u=0&&(Kr>=0&&na!==Kr?Qt.text.placedSymbolArray.get(na).crossTileID=0:Qt.text.placedSymbolArray.get(na).crossTileID=nr.crossTileID)}},Fo.prototype.markUsedOrientation=function(Qt,vr,nr){for(var yr=vr===et.WritingMode.horizontal||vr===et.WritingMode.horizontalOnly?vr:0,$r=vr===et.WritingMode.vertical?vr:0,Kr=[nr.leftJustifiedTextSymbolIndex,nr.centerJustifiedTextSymbolIndex,nr.rightJustifiedTextSymbolIndex],gn=0,kn=Kr;gn0||yl>0,Ul=Fs.numIconVertices>0,tu=yr.placedOrientations[Fs.crossTileID],Kl=tu===et.WritingMode.vertical,bu=tu===et.WritingMode.horizontal||tu===et.WritingMode.horizontalOnly;if(Pl){var $u=Wo(_l.text),ku=Kl?rs:$u;Jo(Qt.text,Hs,ku);var iu=bu?rs:$u;Jo(Qt.text,yl,iu);var Du=_l.text.isHidden();[Fs.rightJustifiedTextSymbolIndex,Fs.centerJustifiedTextSymbolIndex,Fs.leftJustifiedTextSymbolIndex].forEach(function(Av){Av>=0&&(Qt.text.placedSymbolArray.get(Av).hidden=Du||Kl?1:0)}),Fs.verticalPlacedTextSymbolIndex>=0&&(Qt.text.placedSymbolArray.get(Fs.verticalPlacedTextSymbolIndex).hidden=Du||bu?1:0);var _u=yr.variableOffsets[Fs.crossTileID];_u&&yr.markUsedJustification(Qt,_u.anchor,Fs,tu);var Zu=yr.placedOrientations[Fs.crossTileID];Zu&&(yr.markUsedJustification(Qt,"left",Fs,Zu),yr.markUsedOrientation(Qt,Zu,Fs))}if(Ul){var Hu=Wo(_l.icon),dp=!(lo&&Fs.verticalPlacedIconSymbolIndex&&Kl);if(Fs.placedIconSymbolIndex>=0){var Pu=dp?Hu:rs;Jo(Qt.icon,Fs.numIconVertices,Pu),Qt.icon.placedSymbolArray.get(Fs.placedIconSymbolIndex).hidden=_l.icon.isHidden()}if(Fs.verticalPlacedIconSymbolIndex>=0){var ap=dp?rs:Hu;Jo(Qt.icon,Fs.numVerticalIconVertices,ap),Qt.icon.placedSymbolArray.get(Fs.verticalPlacedIconSymbolIndex).hidden=_l.icon.isHidden()}}if(Qt.hasIconCollisionBoxData()||Qt.hasTextCollisionBoxData()){var wu=Qt.collisionArrays[ps];if(wu){var Gu=new et.Point(0,0);if(wu.textBox||wu.verticalTextBox){var Cp=!0;if(jn){var Jp=yr.variableOffsets[Tl];Jp?(Gu=yu(Jp.anchor,Jp.width,Jp.height,Jp.textOffset,Jp.textBoxScale),na&&Gu._rotate(uo?yr.transform.angle:-yr.transform.angle)):Cp=!1}wu.textBox&&To(Qt.textCollisionBox.collisionVertexArray,_l.text.placed,!Cp||Kl,Gu.x,Gu.y),wu.verticalTextBox&&To(Qt.textCollisionBox.collisionVertexArray,_l.text.placed,!Cp||bu,Gu.x,Gu.y)}var Qp=Boolean(!bu&&wu.verticalIconBox);wu.iconBox&&To(Qt.iconCollisionBox.collisionVertexArray,_l.icon.placed,Qp,lo?Gu.x:0,lo?Gu.y:0),wu.verticalIconBox&&To(Qt.iconCollisionBox.collisionVertexArray,_l.icon.placed,!Qp,lo?Gu.x:0,lo?Gu.y:0)}}},jo=0;joQt},Fo.prototype.setStale=function(){this.stale=!0};function To(hr,Qt,vr,nr,yr){hr.emplaceBack(Qt?1:0,vr?1:0,nr||0,yr||0),hr.emplaceBack(Qt?1:0,vr?1:0,nr||0,yr||0),hr.emplaceBack(Qt?1:0,vr?1:0,nr||0,yr||0),hr.emplaceBack(Qt?1:0,vr?1:0,nr||0,yr||0)}var Bo=Math.pow(2,25),Es=Math.pow(2,24),Ps=Math.pow(2,17),xs=Math.pow(2,16),us=Math.pow(2,9),wo=Math.pow(2,8),Qo=Math.pow(2,1);function Wo(hr){if(hr.opacity===0&&!hr.placed)return 0;if(hr.opacity===1&&hr.placed)return 4294967295;var Qt=hr.placed?1:0,vr=Math.floor(hr.opacity*127);return vr*Bo+Qt*Es+vr*Ps+Qt*xs+vr*us+Qt*wo+vr*Qo+Qt}var rs=0,_s=function(Qt){this._sortAcrossTiles=Qt.layout.get("symbol-z-order")!=="viewport-y"&&Qt.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};_s.prototype.continuePlacement=function(Qt,vr,nr,yr,$r){for(var Kr=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var gn=Qt[this._currentPlacementIndex],kn=vr[gn],jn=this.placement.collisionIndex.transform.zoom;if(kn.type==="symbol"&&(!kn.minzoom||kn.minzoom<=jn)&&(!kn.maxzoom||kn.maxzoom>jn)){this._inProgressLayer||(this._inProgressLayer=new _s(kn));var na=this._inProgressLayer.continuePlacement(nr[kn.source],this.placement,this._showCollisionBoxes,kn,Kr);if(na)return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Gs.prototype.commit=function(Qt){return this.placement.commit(Qt),this.placement};var Cs=512/et.EXTENT/2,Ks=function(Qt,vr,nr){this.tileID=Qt,this.indexedSymbolInstances={},this.bucketInstanceId=nr;for(var yr=0;yrQt.overscaledZ)for(var jn in kn){var na=kn[jn];na.tileID.isChildOf(Qt)&&na.findMatches(vr.symbolInstances,Qt,Kr)}else{var uo=Qt.scaledTo(Number(gn)),lo=kn[uo.key];lo&&lo.findMatches(vr.symbolInstances,Qt,Kr)}}for(var Po=0;Po0)throw new Error("Unimplemented: "+Kr.map(function(gn){return gn.command}).join(", ")+".");return $r.forEach(function(gn){gn.command!=="setTransition"&&yr[gn.command].apply(yr,gn.args)}),this.stylesheet=nr,!0},Qt.prototype.addImage=function(nr,yr){if(this.getImage(nr))return this.fire(new et.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(nr,yr),this._afterImageUpdated(nr)},Qt.prototype.updateImage=function(nr,yr){this.imageManager.updateImage(nr,yr)},Qt.prototype.getImage=function(nr){return this.imageManager.getImage(nr)},Qt.prototype.removeImage=function(nr){if(!this.getImage(nr))return this.fire(new et.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(nr),this._afterImageUpdated(nr)},Qt.prototype._afterImageUpdated=function(nr){this._availableImages=this.imageManager.listImages(),this._changedImages[nr]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new et.Event("data",{dataType:"style"}))},Qt.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},Qt.prototype.addSource=function(nr,yr,$r){var Kr=this;if($r===void 0&&($r={}),this._checkLoaded(),this.sourceCaches[nr]!==void 0)throw new Error("There is already a source with this ID");if(!yr.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(yr).join(", ")+".");var gn=["vector","raster","geojson","video","image"],kn=gn.indexOf(yr.type)>=0;if(!(kn&&this._validate(et.validateStyle.source,"sources."+nr,yr,null,$r))){this.map&&this.map._collectResourceTiming&&(yr.collectResourceTiming=!0);var jn=this.sourceCaches[nr]=new Wn(nr,yr,this.dispatcher);jn.style=this,jn.setEventedParent(this,function(){return{isSourceLoaded:Kr.loaded(),source:jn.serialize(),sourceId:nr}}),jn.onAdd(this.map),this._changed=!0}},Qt.prototype.removeSource=function(nr){if(this._checkLoaded(),this.sourceCaches[nr]===void 0)throw new Error("There is no source with this ID");for(var yr in this._layers)if(this._layers[yr].source===nr)return this.fire(new et.ErrorEvent(new Error('Source "'+nr+'" cannot be removed while layer "'+yr+'" is using it.')));var $r=this.sourceCaches[nr];delete this.sourceCaches[nr],delete this._updatedSources[nr],$r.fire(new et.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:nr})),$r.setEventedParent(null),$r.clearTiles(),$r.onRemove&&$r.onRemove(this.map),this._changed=!0},Qt.prototype.setGeoJSONSourceData=function(nr,yr){this._checkLoaded();var $r=this.sourceCaches[nr].getSource();$r.setData(yr),this._changed=!0},Qt.prototype.getSource=function(nr){return this.sourceCaches[nr]&&this.sourceCaches[nr].getSource()},Qt.prototype.addLayer=function(nr,yr,$r){$r===void 0&&($r={}),this._checkLoaded();var Kr=nr.id;if(this.getLayer(Kr)){this.fire(new et.ErrorEvent(new Error('Layer with id "'+Kr+'" already exists on this map')));return}var gn;if(nr.type==="custom"){if(Xl(this,et.validateCustomStyleLayer(nr)))return;gn=et.createStyleLayer(nr)}else{if(typeof nr.source=="object"&&(this.addSource(Kr,nr.source),nr=et.clone$1(nr),nr=et.extend(nr,{source:Kr})),this._validate(et.validateStyle.layer,"layers."+Kr,nr,{arrayIndex:-1},$r))return;gn=et.createStyleLayer(nr),this._validateLayer(gn),gn.setEventedParent(this,{layer:{id:Kr}}),this._serializedLayers[gn.id]=gn.serialize()}var kn=yr?this._order.indexOf(yr):this._order.length;if(yr&&kn===-1){this.fire(new et.ErrorEvent(new Error('Layer with id "'+yr+'" does not exist on this map.')));return}if(this._order.splice(kn,0,Kr),this._layerOrderChanged=!0,this._layers[Kr]=gn,this._removedLayers[Kr]&&gn.source&&gn.type!=="custom"){var jn=this._removedLayers[Kr];delete this._removedLayers[Kr],jn.type!==gn.type?this._updatedSources[gn.source]="clear":(this._updatedSources[gn.source]="reload",this.sourceCaches[gn.source].pause())}this._updateLayer(gn),gn.onAdd&&gn.onAdd(this.map)},Qt.prototype.moveLayer=function(nr,yr){this._checkLoaded(),this._changed=!0;var $r=this._layers[nr];if(!$r){this.fire(new et.ErrorEvent(new Error("The layer '"+nr+"' does not exist in the map's style and cannot be moved.")));return}if(nr!==yr){var Kr=this._order.indexOf(nr);this._order.splice(Kr,1);var gn=yr?this._order.indexOf(yr):this._order.length;if(yr&&gn===-1){this.fire(new et.ErrorEvent(new Error('Layer with id "'+yr+'" does not exist on this map.')));return}this._order.splice(gn,0,nr),this._layerOrderChanged=!0}},Qt.prototype.removeLayer=function(nr){this._checkLoaded();var yr=this._layers[nr];if(!yr){this.fire(new et.ErrorEvent(new Error("The layer '"+nr+"' does not exist in the map's style and cannot be removed.")));return}yr.setEventedParent(null);var $r=this._order.indexOf(nr);this._order.splice($r,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[nr]=yr,delete this._layers[nr],delete this._serializedLayers[nr],delete this._updatedLayers[nr],delete this._updatedPaintProps[nr],yr.onRemove&&yr.onRemove(this.map)},Qt.prototype.getLayer=function(nr){return this._layers[nr]},Qt.prototype.hasLayer=function(nr){return nr in this._layers},Qt.prototype.setLayerZoomRange=function(nr,yr,$r){this._checkLoaded();var Kr=this.getLayer(nr);if(!Kr){this.fire(new et.ErrorEvent(new Error("The layer '"+nr+"' does not exist in the map's style and cannot have zoom extent.")));return}Kr.minzoom===yr&&Kr.maxzoom===$r||(yr!=null&&(Kr.minzoom=yr),$r!=null&&(Kr.maxzoom=$r),this._updateLayer(Kr))},Qt.prototype.setFilter=function(nr,yr,$r){$r===void 0&&($r={}),this._checkLoaded();var Kr=this.getLayer(nr);if(!Kr){this.fire(new et.ErrorEvent(new Error("The layer '"+nr+"' does not exist in the map's style and cannot be filtered.")));return}if(!et.deepEqual(Kr.filter,yr)){if(yr==null){Kr.filter=void 0,this._updateLayer(Kr);return}this._validate(et.validateStyle.filter,"layers."+Kr.id+".filter",yr,null,$r)||(Kr.filter=et.clone$1(yr),this._updateLayer(Kr))}},Qt.prototype.getFilter=function(nr){return et.clone$1(this.getLayer(nr).filter)},Qt.prototype.setLayoutProperty=function(nr,yr,$r,Kr){Kr===void 0&&(Kr={}),this._checkLoaded();var gn=this.getLayer(nr);if(!gn){this.fire(new et.ErrorEvent(new Error("The layer '"+nr+"' does not exist in the map's style and cannot be styled.")));return}et.deepEqual(gn.getLayoutProperty(yr),$r)||(gn.setLayoutProperty(yr,$r,Kr),this._updateLayer(gn))},Qt.prototype.getLayoutProperty=function(nr,yr){var $r=this.getLayer(nr);if(!$r){this.fire(new et.ErrorEvent(new Error("The layer '"+nr+"' does not exist in the map's style.")));return}return $r.getLayoutProperty(yr)},Qt.prototype.setPaintProperty=function(nr,yr,$r,Kr){Kr===void 0&&(Kr={}),this._checkLoaded();var gn=this.getLayer(nr);if(!gn){this.fire(new et.ErrorEvent(new Error("The layer '"+nr+"' does not exist in the map's style and cannot be styled.")));return}if(!et.deepEqual(gn.getPaintProperty(yr),$r)){var kn=gn.setPaintProperty(yr,$r,Kr);kn&&this._updateLayer(gn),this._changed=!0,this._updatedPaintProps[nr]=!0}},Qt.prototype.getPaintProperty=function(nr,yr){return this.getLayer(nr).getPaintProperty(yr)},Qt.prototype.setFeatureState=function(nr,yr){this._checkLoaded();var $r=nr.source,Kr=nr.sourceLayer,gn=this.sourceCaches[$r];if(gn===void 0){this.fire(new et.ErrorEvent(new Error("The source '"+$r+"' does not exist in the map's style.")));return}var kn=gn.getSource().type;if(kn==="geojson"&&Kr){this.fire(new et.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(kn==="vector"&&!Kr){this.fire(new et.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}nr.id===void 0&&this.fire(new et.ErrorEvent(new Error("The feature id parameter must be provided."))),gn.setFeatureState(Kr,nr.id,yr)},Qt.prototype.removeFeatureState=function(nr,yr){this._checkLoaded();var $r=nr.source,Kr=this.sourceCaches[$r];if(Kr===void 0){this.fire(new et.ErrorEvent(new Error("The source '"+$r+"' does not exist in the map's style.")));return}var gn=Kr.getSource().type,kn=gn==="vector"?nr.sourceLayer:void 0;if(gn==="vector"&&!kn){this.fire(new et.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}if(yr&&typeof nr.id!="string"&&typeof nr.id!="number"){this.fire(new et.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));return}Kr.removeFeatureState(kn,nr.id,yr)},Qt.prototype.getFeatureState=function(nr){this._checkLoaded();var yr=nr.source,$r=nr.sourceLayer,Kr=this.sourceCaches[yr];if(Kr===void 0){this.fire(new et.ErrorEvent(new Error("The source '"+yr+"' does not exist in the map's style.")));return}var gn=Kr.getSource().type;if(gn==="vector"&&!$r){this.fire(new et.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}return nr.id===void 0&&this.fire(new et.ErrorEvent(new Error("The feature id parameter must be provided."))),Kr.getFeatureState($r,nr.id)},Qt.prototype.getTransition=function(){return et.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},Qt.prototype.serialize=function(){return et.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:et.mapObject(this.sourceCaches,function(nr){return nr.serialize()}),layers:this._serializeLayers(this._order)},function(nr){return nr!==void 0})},Qt.prototype._updateLayer=function(nr){this._updatedLayers[nr.id]=!0,nr.source&&!this._updatedSources[nr.source]&&this.sourceCaches[nr.source].getSource().type!=="raster"&&(this._updatedSources[nr.source]="reload",this.sourceCaches[nr.source].pause()),this._changed=!0},Qt.prototype._flattenAndSortRenderedFeatures=function(nr){for(var yr=this,$r=function(bu){return yr._layers[bu].type==="fill-extrusion"},Kr={},gn=[],kn=this._order.length-1;kn>=0;kn--){var jn=this._order[kn];if($r(jn)){Kr[jn]=kn;for(var na=0,uo=nr;na=0;ps--){var Fs=this._order[ps];if($r(Fs))for(var Hs=gn.length-1;Hs>=0;Hs--){var yl=gn[Hs].feature;if(Kr[yl.layer.id] 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`,mp=qu(Kp,c1),np=qu(Fm,Bm),e0=qu(Bu,Qv),t0=qu(zm,Op),vv=qu(av,C0),p0=qu(f1,Ap),$v=qu(d1,_p),up=qu(kp,h1),y1=qu($p,op),ym=qu(lv,p1),ep=qu(uv,iy),x1=qu(qv,Hp),G0=qu(Um,R0),Zp=qu(_g,M0),xm=qu(oy,wy),b1=qu(v1,sy),bm=qu(I0,mm),Em=qu($m,Cy),v0=qu(Ry,H0),E1=qu(Pv,k0),Tm=qu(g1,V1),T1=qu(W1,ly),V0=qu(h0,m1),j1=qu(Ts,xl),L0=qu(Js,fu),Y1=qu(Su,Yu);function qu(pr,Qt){var gr=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,nr=Qt.match(/attribute ([\w]+) ([\w]+)/g),yr=pr.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),$r=Qt.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Kr=$r?$r.concat(yr):yr,gn={};return pr=pr.replace(gr,function(kn,jn,na,uo,lo){return gn[lo]=!0,jn==="define"?` +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`,mp=qu(Kp,c1),np=qu(Fm,Bm),e0=qu(Bu,Qv),t0=qu(zm,Op),vv=qu(av,C0),p0=qu(f1,Ap),$v=qu(d1,_p),up=qu(kp,h1),y1=qu($p,op),ym=qu(lv,p1),ep=qu(uv,iy),x1=qu(qv,Hp),G0=qu(Um,R0),Zp=qu(_g,M0),xm=qu(oy,wy),b1=qu(v1,sy),bm=qu(I0,mm),Em=qu($m,Cy),v0=qu(Ry,H0),E1=qu(Pv,k0),Tm=qu(g1,V1),T1=qu(W1,ly),V0=qu(h0,m1),j1=qu(Ts,xl),L0=qu(Js,fu),Y1=qu(Su,Yu);function qu(hr,Qt){var vr=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,nr=Qt.match(/attribute ([\w]+) ([\w]+)/g),yr=hr.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),$r=Qt.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Kr=$r?$r.concat(yr):yr,gn={};return hr=hr.replace(vr,function(kn,jn,na,uo,lo){return gn[lo]=!0,jn==="define"?` #ifndef HAS_UNIFORM_u_`+lo+` varying `+na+" "+uo+" "+lo+`; #else @@ -2810,7 +2810,7 @@ uniform `+na+" "+uo+" u_"+lo+`; #ifdef HAS_UNIFORM_u_`+lo+` `+na+" "+uo+" "+lo+" = u_"+lo+`; #endif -`}),Qt=Qt.replace(gr,function(kn,jn,na,uo,lo){var Po=uo==="float"?"vec2":"vec4",Jo=lo.match(/color/)?"color":Po;return gn[lo]?jn==="define"?` +`}),Qt=Qt.replace(vr,function(kn,jn,na,uo,lo){var Po=uo==="float"?"vec2":"vec4",Jo=lo.match(/color/)?"color":Po;return gn[lo]?jn==="define"?` #ifndef HAS_UNIFORM_u_`+lo+` uniform lowp float u_`+lo+`_t; attribute `+na+" "+Po+" a_"+lo+`; @@ -2849,15 +2849,15 @@ uniform `+na+" "+uo+" u_"+lo+`; #else `+na+" "+uo+" "+lo+" = u_"+lo+`; #endif -`}),{fragmentSource:pr,vertexSource:Qt,staticAttributes:nr,staticUniforms:Kr}}var D0=Object.freeze({__proto__:null,prelude:mp,background:np,backgroundPattern:e0,circle:t0,clippingMask:vv,heatmap:p0,heatmapTexture:$v,collisionBox:up,collisionCircle:y1,debug:ym,fill:ep,fillOutline:x1,fillOutlinePattern:G0,fillPattern:Zp,fillExtrusion:xm,fillExtrusionPattern:b1,hillshadePrepare:bm,hillshade:Em,line:v0,lineGradient:E1,linePattern:Tm,lineSDF:T1,raster:V0,symbolIcon:j1,symbolSDF:L0,symbolTextAndIcon:Y1}),gv=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};gv.prototype.bind=function(Qt,gr,nr,yr,$r,Kr,gn,kn){this.context=Qt;for(var jn=this.boundPaintVertexBuffers.length!==yr.length,na=0;!jn&&na>16,gn>>16],u_pixel_coord_lower:[Kr&65535,gn&65535]}}function Hv(pr,Qt,gr,nr){var yr=gr.imageManager.getPattern(pr.from.toString()),$r=gr.imageManager.getPattern(pr.to.toString()),Kr=gr.imageManager.getPixelSize(),gn=Kr.width,kn=Kr.height,jn=Math.pow(2,nr.tileID.overscaledZ),na=nr.tileSize*Math.pow(2,gr.transform.tileZoom)/jn,uo=na*(nr.tileID.canonical.x+nr.tileID.wrap*jn),lo=na*nr.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:yr.tl,u_pattern_br_a:yr.br,u_pattern_tl_b:$r.tl,u_pattern_br_b:$r.br,u_texsize:[gn,kn],u_mix:Qt.t,u_pattern_size_a:yr.displaySize,u_pattern_size_b:$r.displaySize,u_scale_a:Qt.fromScale,u_scale_b:Qt.toScale,u_tile_units_to_pixels:1/ms(nr,1,gr.transform.tileZoom),u_pixel_coord_upper:[uo>>16,lo>>16],u_pixel_coord_lower:[uo&65535,lo&65535]}}var j0=function(pr,Qt){return{u_matrix:new et.UniformMatrix4f(pr,Qt.u_matrix),u_lightpos:new et.Uniform3f(pr,Qt.u_lightpos),u_lightintensity:new et.Uniform1f(pr,Qt.u_lightintensity),u_lightcolor:new et.Uniform3f(pr,Qt.u_lightcolor),u_vertical_gradient:new et.Uniform1f(pr,Qt.u_vertical_gradient),u_opacity:new et.Uniform1f(pr,Qt.u_opacity)}},Ep=function(pr,Qt){return{u_matrix:new et.UniformMatrix4f(pr,Qt.u_matrix),u_lightpos:new et.Uniform3f(pr,Qt.u_lightpos),u_lightintensity:new et.Uniform1f(pr,Qt.u_lightintensity),u_lightcolor:new et.Uniform3f(pr,Qt.u_lightcolor),u_vertical_gradient:new et.Uniform1f(pr,Qt.u_vertical_gradient),u_height_factor:new et.Uniform1f(pr,Qt.u_height_factor),u_image:new et.Uniform1i(pr,Qt.u_image),u_texsize:new et.Uniform2f(pr,Qt.u_texsize),u_pixel_coord_upper:new et.Uniform2f(pr,Qt.u_pixel_coord_upper),u_pixel_coord_lower:new et.Uniform2f(pr,Qt.u_pixel_coord_lower),u_scale:new et.Uniform3f(pr,Qt.u_scale),u_fade:new et.Uniform1f(pr,Qt.u_fade),u_opacity:new et.Uniform1f(pr,Qt.u_opacity)}},X1=function(pr,Qt,gr,nr){var yr=Qt.style.light,$r=yr.properties.get("position"),Kr=[$r.x,$r.y,$r.z],gn=et.create$1();yr.properties.get("anchor")==="viewport"&&et.fromRotation(gn,-Qt.transform.angle),et.transformMat3(Kr,Kr,gn);var kn=yr.properties.get("color");return{u_matrix:pr,u_lightpos:Kr,u_lightintensity:yr.properties.get("intensity"),u_lightcolor:[kn.r,kn.g,kn.b],u_vertical_gradient:+gr,u_opacity:nr}},Nv=function(pr,Qt,gr,nr,yr,$r,Kr){return et.extend(X1(pr,Qt,gr,nr),W0($r,Qt,Kr),{u_height_factor:-Math.pow(2,yr.overscaledZ)/Kr.tileSize/8})},g0=function(pr,Qt){return{u_matrix:new et.UniformMatrix4f(pr,Qt.u_matrix)}},Y0=function(pr,Qt){return{u_matrix:new et.UniformMatrix4f(pr,Qt.u_matrix),u_image:new et.Uniform1i(pr,Qt.u_image),u_texsize:new et.Uniform2f(pr,Qt.u_texsize),u_pixel_coord_upper:new et.Uniform2f(pr,Qt.u_pixel_coord_upper),u_pixel_coord_lower:new et.Uniform2f(pr,Qt.u_pixel_coord_lower),u_scale:new et.Uniform3f(pr,Qt.u_scale),u_fade:new et.Uniform1f(pr,Qt.u_fade)}},pp=function(pr,Qt){return{u_matrix:new et.UniformMatrix4f(pr,Qt.u_matrix),u_world:new et.Uniform2f(pr,Qt.u_world)}},vp=function(pr,Qt){return{u_matrix:new et.UniformMatrix4f(pr,Qt.u_matrix),u_world:new et.Uniform2f(pr,Qt.u_world),u_image:new et.Uniform1i(pr,Qt.u_image),u_texsize:new et.Uniform2f(pr,Qt.u_texsize),u_pixel_coord_upper:new et.Uniform2f(pr,Qt.u_pixel_coord_upper),u_pixel_coord_lower:new et.Uniform2f(pr,Qt.u_pixel_coord_lower),u_scale:new et.Uniform3f(pr,Qt.u_scale),u_fade:new et.Uniform1f(pr,Qt.u_fade)}},m0=function(pr){return{u_matrix:pr}},Gv=function(pr,Qt,gr,nr){return et.extend(m0(pr),W0(gr,Qt,nr))},wv=function(pr,Qt){return{u_matrix:pr,u_world:Qt}},K1=function(pr,Qt,gr,nr,yr){return et.extend(Gv(pr,Qt,gr,nr),{u_world:yr})},Gm=function(pr,Qt){return{u_camera_to_center_distance:new et.Uniform1f(pr,Qt.u_camera_to_center_distance),u_scale_with_map:new et.Uniform1i(pr,Qt.u_scale_with_map),u_pitch_with_map:new et.Uniform1i(pr,Qt.u_pitch_with_map),u_extrude_scale:new et.Uniform2f(pr,Qt.u_extrude_scale),u_device_pixel_ratio:new et.Uniform1f(pr,Qt.u_device_pixel_ratio),u_matrix:new et.UniformMatrix4f(pr,Qt.u_matrix)}},Z1=function(pr,Qt,gr,nr){var yr=pr.transform,$r,Kr;if(nr.paint.get("circle-pitch-alignment")==="map"){var gn=ms(gr,1,yr.zoom);$r=!0,Kr=[gn,gn]}else $r=!1,Kr=yr.pixelsToGLUnits;return{u_camera_to_center_distance:yr.cameraToCenterDistance,u_scale_with_map:+(nr.paint.get("circle-pitch-scale")==="map"),u_matrix:pr.translatePosMatrix(Qt.posMatrix,gr,nr.paint.get("circle-translate"),nr.paint.get("circle-translate-anchor")),u_pitch_with_map:+$r,u_device_pixel_ratio:et.browser.devicePixelRatio,u_extrude_scale:Kr}},Vm=function(pr,Qt){return{u_matrix:new et.UniformMatrix4f(pr,Qt.u_matrix),u_camera_to_center_distance:new et.Uniform1f(pr,Qt.u_camera_to_center_distance),u_pixels_to_tile_units:new et.Uniform1f(pr,Qt.u_pixels_to_tile_units),u_extrude_scale:new et.Uniform2f(pr,Qt.u_extrude_scale),u_overscale_factor:new et.Uniform1f(pr,Qt.u_overscale_factor)}},A1=function(pr,Qt){return{u_matrix:new et.UniformMatrix4f(pr,Qt.u_matrix),u_inv_matrix:new et.UniformMatrix4f(pr,Qt.u_inv_matrix),u_camera_to_center_distance:new et.Uniform1f(pr,Qt.u_camera_to_center_distance),u_viewport_size:new et.Uniform2f(pr,Qt.u_viewport_size)}},X0=function(pr,Qt,gr){var nr=ms(gr,1,Qt.zoom),yr=Math.pow(2,Qt.zoom-gr.tileID.overscaledZ),$r=gr.tileID.overscaleFactor();return{u_matrix:pr,u_camera_to_center_distance:Qt.cameraToCenterDistance,u_pixels_to_tile_units:nr,u_extrude_scale:[Qt.pixelsToGLUnits[0]/(nr*yr),Qt.pixelsToGLUnits[1]/(nr*yr)],u_overscale_factor:$r}},_1=function(pr,Qt,gr){return{u_matrix:pr,u_inv_matrix:Qt,u_camera_to_center_distance:gr.cameraToCenterDistance,u_viewport_size:[gr.width,gr.height]}},y0=function(pr,Qt){return{u_color:new et.UniformColor(pr,Qt.u_color),u_matrix:new et.UniformMatrix4f(pr,Qt.u_matrix),u_overlay:new et.Uniform1i(pr,Qt.u_overlay),u_overlay_scale:new et.Uniform1f(pr,Qt.u_overlay_scale)}},Sp=function(pr,Qt,gr){return gr===void 0&&(gr=1),{u_matrix:pr,u_color:Qt,u_overlay:0,u_overlay_scale:gr}},Cv=function(pr,Qt){return{u_matrix:new et.UniformMatrix4f(pr,Qt.u_matrix)}},S1=function(pr){return{u_matrix:pr}},cy=function(pr,Qt){return{u_extrude_scale:new et.Uniform1f(pr,Qt.u_extrude_scale),u_intensity:new et.Uniform1f(pr,Qt.u_intensity),u_matrix:new et.UniformMatrix4f(pr,Qt.u_matrix)}},J1=function(pr,Qt){return{u_matrix:new et.UniformMatrix4f(pr,Qt.u_matrix),u_world:new et.Uniform2f(pr,Qt.u_world),u_image:new et.Uniform1i(pr,Qt.u_image),u_color_ramp:new et.Uniform1i(pr,Qt.u_color_ramp),u_opacity:new et.Uniform1f(pr,Qt.u_opacity)}},x0=function(pr,Qt,gr,nr){return{u_matrix:pr,u_extrude_scale:ms(Qt,1,gr),u_intensity:nr}},Am=function(pr,Qt,gr,nr){var yr=et.create();et.ortho(yr,0,pr.width,pr.height,0,0,1);var $r=pr.context.gl;return{u_matrix:yr,u_world:[$r.drawingBufferWidth,$r.drawingBufferHeight],u_image:gr,u_color_ramp:nr,u_opacity:Qt.paint.get("heatmap-opacity")}},w1=function(pr,Qt){return{u_matrix:new et.UniformMatrix4f(pr,Qt.u_matrix),u_image:new et.Uniform1i(pr,Qt.u_image),u_latrange:new et.Uniform2f(pr,Qt.u_latrange),u_light:new et.Uniform2f(pr,Qt.u_light),u_shadow:new et.UniformColor(pr,Qt.u_shadow),u_highlight:new et.UniformColor(pr,Qt.u_highlight),u_accent:new et.UniformColor(pr,Qt.u_accent)}},Wm=function(pr,Qt){return{u_matrix:new et.UniformMatrix4f(pr,Qt.u_matrix),u_image:new et.Uniform1i(pr,Qt.u_image),u_dimension:new et.Uniform2f(pr,Qt.u_dimension),u_zoom:new et.Uniform1f(pr,Qt.u_zoom),u_unpack:new et.Uniform4f(pr,Qt.u_unpack)}},Ao=function(pr,Qt,gr){var nr=gr.paint.get("hillshade-shadow-color"),yr=gr.paint.get("hillshade-highlight-color"),$r=gr.paint.get("hillshade-accent-color"),Kr=gr.paint.get("hillshade-illumination-direction")*(Math.PI/180);gr.paint.get("hillshade-illumination-anchor")==="viewport"&&(Kr-=pr.transform.angle);var gn=!pr.options.moving;return{u_matrix:pr.transform.calculatePosMatrix(Qt.tileID.toUnwrapped(),gn),u_image:0,u_latrange:Gp(pr,Qt.tileID),u_light:[gr.paint.get("hillshade-exaggeration"),Kr],u_shadow:nr,u_highlight:yr,u_accent:$r}},K0=function(pr,Qt){var gr=Qt.stride,nr=et.create();return et.ortho(nr,0,et.EXTENT,-et.EXTENT,0,0,1),et.translate(nr,nr,[0,-et.EXTENT,0]),{u_matrix:nr,u_image:1,u_dimension:[gr,gr],u_zoom:pr.overscaledZ,u_unpack:Qt.getUnpackVector()}};function Gp(pr,Qt){var gr=Math.pow(2,Qt.canonical.z),nr=Qt.canonical.y;return[new et.MercatorCoordinate(0,nr/gr).toLngLat().lat,new et.MercatorCoordinate(0,(nr+1)/gr).toLngLat().lat]}var Mp=function(pr,Qt){return{u_matrix:new et.UniformMatrix4f(pr,Qt.u_matrix),u_ratio:new et.Uniform1f(pr,Qt.u_ratio),u_device_pixel_ratio:new et.Uniform1f(pr,Qt.u_device_pixel_ratio),u_units_to_pixels:new et.Uniform2f(pr,Qt.u_units_to_pixels)}},Lu=function(pr,Qt){return{u_matrix:new et.UniformMatrix4f(pr,Qt.u_matrix),u_ratio:new et.Uniform1f(pr,Qt.u_ratio),u_device_pixel_ratio:new et.Uniform1f(pr,Qt.u_device_pixel_ratio),u_units_to_pixels:new et.Uniform2f(pr,Qt.u_units_to_pixels),u_image:new et.Uniform1i(pr,Qt.u_image),u_image_height:new et.Uniform1f(pr,Qt.u_image_height)}},C1=function(pr,Qt){return{u_matrix:new et.UniformMatrix4f(pr,Qt.u_matrix),u_texsize:new et.Uniform2f(pr,Qt.u_texsize),u_ratio:new et.Uniform1f(pr,Qt.u_ratio),u_device_pixel_ratio:new et.Uniform1f(pr,Qt.u_device_pixel_ratio),u_image:new et.Uniform1i(pr,Qt.u_image),u_units_to_pixels:new et.Uniform2f(pr,Qt.u_units_to_pixels),u_scale:new et.Uniform3f(pr,Qt.u_scale),u_fade:new et.Uniform1f(pr,Qt.u_fade)}},_m=function(pr,Qt){return{u_matrix:new et.UniformMatrix4f(pr,Qt.u_matrix),u_ratio:new et.Uniform1f(pr,Qt.u_ratio),u_device_pixel_ratio:new et.Uniform1f(pr,Qt.u_device_pixel_ratio),u_units_to_pixels:new et.Uniform2f(pr,Qt.u_units_to_pixels),u_patternscale_a:new et.Uniform2f(pr,Qt.u_patternscale_a),u_patternscale_b:new et.Uniform2f(pr,Qt.u_patternscale_b),u_sdfgamma:new et.Uniform1f(pr,Qt.u_sdfgamma),u_image:new et.Uniform1i(pr,Qt.u_image),u_tex_y_a:new et.Uniform1f(pr,Qt.u_tex_y_a),u_tex_y_b:new et.Uniform1f(pr,Qt.u_tex_y_b),u_mix:new et.Uniform1f(pr,Qt.u_mix)}},Z0=function(pr,Qt,gr){var nr=pr.transform;return{u_matrix:P0(pr,Qt,gr),u_ratio:1/ms(Qt,1,nr.zoom),u_device_pixel_ratio:et.browser.devicePixelRatio,u_units_to_pixels:[1/nr.pixelsToGLUnits[0],1/nr.pixelsToGLUnits[1]]}},Rv=function(pr,Qt,gr,nr){return et.extend(Z0(pr,Qt,gr),{u_image:0,u_image_height:nr})},fy=function(pr,Qt,gr,nr){var yr=pr.transform,$r=R1(Qt,yr);return{u_matrix:P0(pr,Qt,gr),u_texsize:Qt.imageAtlasTexture.size,u_ratio:1/ms(Qt,1,yr.zoom),u_device_pixel_ratio:et.browser.devicePixelRatio,u_image:0,u_scale:[$r,nr.fromScale,nr.toScale],u_fade:nr.t,u_units_to_pixels:[1/yr.pixelsToGLUnits[0],1/yr.pixelsToGLUnits[1]]}},b0=function(pr,Qt,gr,nr,yr){var $r=pr.transform,Kr=pr.lineAtlas,gn=R1(Qt,$r),kn=gr.layout.get("line-cap")==="round",jn=Kr.getDash(nr.from,kn),na=Kr.getDash(nr.to,kn),uo=jn.width*yr.fromScale,lo=na.width*yr.toScale;return et.extend(Z0(pr,Qt,gr),{u_patternscale_a:[gn/uo,-jn.height/2],u_patternscale_b:[gn/lo,-na.height/2],u_sdfgamma:Kr.width/(Math.min(uo,lo)*256*et.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:jn.y,u_tex_y_b:na.y,u_mix:yr.t})};function R1(pr,Qt){return 1/ms(pr,1,Qt.tileZoom)}function P0(pr,Qt,gr){return pr.translatePosMatrix(Qt.tileID.posMatrix,Qt,gr.paint.get("line-translate"),gr.paint.get("line-translate-anchor"))}var E0=function(pr,Qt){return{u_matrix:new et.UniformMatrix4f(pr,Qt.u_matrix),u_tl_parent:new et.Uniform2f(pr,Qt.u_tl_parent),u_scale_parent:new et.Uniform1f(pr,Qt.u_scale_parent),u_buffer_scale:new et.Uniform1f(pr,Qt.u_buffer_scale),u_fade_t:new et.Uniform1f(pr,Qt.u_fade_t),u_opacity:new et.Uniform1f(pr,Qt.u_opacity),u_image0:new et.Uniform1i(pr,Qt.u_image0),u_image1:new et.Uniform1i(pr,Qt.u_image1),u_brightness_low:new et.Uniform1f(pr,Qt.u_brightness_low),u_brightness_high:new et.Uniform1f(pr,Qt.u_brightness_high),u_saturation_factor:new et.Uniform1f(pr,Qt.u_saturation_factor),u_contrast_factor:new et.Uniform1f(pr,Qt.u_contrast_factor),u_spin_weights:new et.Uniform3f(pr,Qt.u_spin_weights)}},Mv=function(pr,Qt,gr,nr,yr){return{u_matrix:pr,u_tl_parent:Qt,u_scale_parent:gr,u_buffer_scale:1,u_fade_t:nr.mix,u_opacity:nr.opacity*yr.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:yr.paint.get("raster-brightness-min"),u_brightness_high:yr.paint.get("raster-brightness-max"),u_saturation_factor:I1(yr.paint.get("raster-saturation")),u_contrast_factor:tp(yr.paint.get("raster-contrast")),u_spin_weights:M1(yr.paint.get("raster-hue-rotate"))}};function M1(pr){pr*=Math.PI/180;var Qt=Math.sin(pr),gr=Math.cos(pr);return[(2*gr+1)/3,(-Math.sqrt(3)*Qt-gr+1)/3,(Math.sqrt(3)*Qt-gr+1)/3]}function tp(pr){return pr>0?1/(1-pr):1+pr}function I1(pr){return pr>0?1-1/(1.001-pr):-pr}var Sm=function(pr,Qt){return{u_is_size_zoom_constant:new et.Uniform1i(pr,Qt.u_is_size_zoom_constant),u_is_size_feature_constant:new et.Uniform1i(pr,Qt.u_is_size_feature_constant),u_size_t:new et.Uniform1f(pr,Qt.u_size_t),u_size:new et.Uniform1f(pr,Qt.u_size),u_camera_to_center_distance:new et.Uniform1f(pr,Qt.u_camera_to_center_distance),u_pitch:new et.Uniform1f(pr,Qt.u_pitch),u_rotate_symbol:new et.Uniform1i(pr,Qt.u_rotate_symbol),u_aspect_ratio:new et.Uniform1f(pr,Qt.u_aspect_ratio),u_fade_change:new et.Uniform1f(pr,Qt.u_fade_change),u_matrix:new et.UniformMatrix4f(pr,Qt.u_matrix),u_label_plane_matrix:new et.UniformMatrix4f(pr,Qt.u_label_plane_matrix),u_coord_matrix:new et.UniformMatrix4f(pr,Qt.u_coord_matrix),u_is_text:new et.Uniform1i(pr,Qt.u_is_text),u_pitch_with_map:new et.Uniform1i(pr,Qt.u_pitch_with_map),u_texsize:new et.Uniform2f(pr,Qt.u_texsize),u_texture:new et.Uniform1i(pr,Qt.u_texture)}},dy=function(pr,Qt){return{u_is_size_zoom_constant:new et.Uniform1i(pr,Qt.u_is_size_zoom_constant),u_is_size_feature_constant:new et.Uniform1i(pr,Qt.u_is_size_feature_constant),u_size_t:new et.Uniform1f(pr,Qt.u_size_t),u_size:new et.Uniform1f(pr,Qt.u_size),u_camera_to_center_distance:new et.Uniform1f(pr,Qt.u_camera_to_center_distance),u_pitch:new et.Uniform1f(pr,Qt.u_pitch),u_rotate_symbol:new et.Uniform1i(pr,Qt.u_rotate_symbol),u_aspect_ratio:new et.Uniform1f(pr,Qt.u_aspect_ratio),u_fade_change:new et.Uniform1f(pr,Qt.u_fade_change),u_matrix:new et.UniformMatrix4f(pr,Qt.u_matrix),u_label_plane_matrix:new et.UniformMatrix4f(pr,Qt.u_label_plane_matrix),u_coord_matrix:new et.UniformMatrix4f(pr,Qt.u_coord_matrix),u_is_text:new et.Uniform1i(pr,Qt.u_is_text),u_pitch_with_map:new et.Uniform1i(pr,Qt.u_pitch_with_map),u_texsize:new et.Uniform2f(pr,Qt.u_texsize),u_texture:new et.Uniform1i(pr,Qt.u_texture),u_gamma_scale:new et.Uniform1f(pr,Qt.u_gamma_scale),u_device_pixel_ratio:new et.Uniform1f(pr,Qt.u_device_pixel_ratio),u_is_halo:new et.Uniform1i(pr,Qt.u_is_halo)}},mv=function(pr,Qt){return{u_is_size_zoom_constant:new et.Uniform1i(pr,Qt.u_is_size_zoom_constant),u_is_size_feature_constant:new et.Uniform1i(pr,Qt.u_is_size_feature_constant),u_size_t:new et.Uniform1f(pr,Qt.u_size_t),u_size:new et.Uniform1f(pr,Qt.u_size),u_camera_to_center_distance:new et.Uniform1f(pr,Qt.u_camera_to_center_distance),u_pitch:new et.Uniform1f(pr,Qt.u_pitch),u_rotate_symbol:new et.Uniform1i(pr,Qt.u_rotate_symbol),u_aspect_ratio:new et.Uniform1f(pr,Qt.u_aspect_ratio),u_fade_change:new et.Uniform1f(pr,Qt.u_fade_change),u_matrix:new et.UniformMatrix4f(pr,Qt.u_matrix),u_label_plane_matrix:new et.UniformMatrix4f(pr,Qt.u_label_plane_matrix),u_coord_matrix:new et.UniformMatrix4f(pr,Qt.u_coord_matrix),u_is_text:new et.Uniform1i(pr,Qt.u_is_text),u_pitch_with_map:new et.Uniform1i(pr,Qt.u_pitch_with_map),u_texsize:new et.Uniform2f(pr,Qt.u_texsize),u_texsize_icon:new et.Uniform2f(pr,Qt.u_texsize_icon),u_texture:new et.Uniform1i(pr,Qt.u_texture),u_texture_icon:new et.Uniform1i(pr,Qt.u_texture_icon),u_gamma_scale:new et.Uniform1f(pr,Qt.u_gamma_scale),u_device_pixel_ratio:new et.Uniform1f(pr,Qt.u_device_pixel_ratio),u_is_halo:new et.Uniform1i(pr,Qt.u_is_halo)}},Q1=function(pr,Qt,gr,nr,yr,$r,Kr,gn,kn,jn){var na=yr.transform;return{u_is_size_zoom_constant:+(pr==="constant"||pr==="source"),u_is_size_feature_constant:+(pr==="constant"||pr==="camera"),u_size_t:Qt?Qt.uSizeT:0,u_size:Qt?Qt.uSize:0,u_camera_to_center_distance:na.cameraToCenterDistance,u_pitch:na.pitch/360*2*Math.PI,u_rotate_symbol:+gr,u_aspect_ratio:na.width/na.height,u_fade_change:yr.options.fadeDuration?yr.symbolFadeChange:1,u_matrix:$r,u_label_plane_matrix:Kr,u_coord_matrix:gn,u_is_text:+kn,u_pitch_with_map:+nr,u_texsize:jn,u_texture:0}},wm=function(pr,Qt,gr,nr,yr,$r,Kr,gn,kn,jn,na){var uo=yr.transform;return et.extend(Q1(pr,Qt,gr,nr,yr,$r,Kr,gn,kn,jn),{u_gamma_scale:nr?Math.cos(uo._pitch)*uo.cameraToCenterDistance:1,u_device_pixel_ratio:et.browser.devicePixelRatio,u_is_halo:+na})},jm=function(pr,Qt,gr,nr,yr,$r,Kr,gn,kn,jn){return et.extend(wm(pr,Qt,gr,nr,yr,$r,Kr,gn,!0,kn,!0),{u_texsize_icon:jn,u_texture_icon:1})},q1=function(pr,Qt){return{u_matrix:new et.UniformMatrix4f(pr,Qt.u_matrix),u_opacity:new et.Uniform1f(pr,Qt.u_opacity),u_color:new et.UniformColor(pr,Qt.u_color)}},em=function(pr,Qt){return{u_matrix:new et.UniformMatrix4f(pr,Qt.u_matrix),u_opacity:new et.Uniform1f(pr,Qt.u_opacity),u_image:new et.Uniform1i(pr,Qt.u_image),u_pattern_tl_a:new et.Uniform2f(pr,Qt.u_pattern_tl_a),u_pattern_br_a:new et.Uniform2f(pr,Qt.u_pattern_br_a),u_pattern_tl_b:new et.Uniform2f(pr,Qt.u_pattern_tl_b),u_pattern_br_b:new et.Uniform2f(pr,Qt.u_pattern_br_b),u_texsize:new et.Uniform2f(pr,Qt.u_texsize),u_mix:new et.Uniform1f(pr,Qt.u_mix),u_pattern_size_a:new et.Uniform2f(pr,Qt.u_pattern_size_a),u_pattern_size_b:new et.Uniform2f(pr,Qt.u_pattern_size_b),u_scale_a:new et.Uniform1f(pr,Qt.u_scale_a),u_scale_b:new et.Uniform1f(pr,Qt.u_scale_b),u_pixel_coord_upper:new et.Uniform2f(pr,Qt.u_pixel_coord_upper),u_pixel_coord_lower:new et.Uniform2f(pr,Qt.u_pixel_coord_lower),u_tile_units_to_pixels:new et.Uniform1f(pr,Qt.u_tile_units_to_pixels)}},yv=function(pr,Qt,gr){return{u_matrix:pr,u_opacity:Qt,u_color:gr}},tm=function(pr,Qt,gr,nr,yr,$r){return et.extend(Hv(nr,$r,gr,yr),{u_matrix:pr,u_opacity:Qt})},N0={fillExtrusion:j0,fillExtrusionPattern:Ep,fill:g0,fillPattern:Y0,fillOutline:pp,fillOutlinePattern:vp,circle:Gm,collisionBox:Vm,collisionCircle:A1,debug:y0,clippingMask:Cv,heatmap:cy,heatmapTexture:J1,hillshade:w1,hillshadePrepare:Wm,line:Mp,lineGradient:Lu,linePattern:C1,lineSDF:_m,raster:E0,symbolIcon:Sm,symbolSDF:dy,symbolTextAndIcon:mv,background:q1,backgroundPattern:em},sp;function r0(pr,Qt,gr,nr,yr,$r,Kr){for(var gn=pr.context,kn=gn.gl,jn=pr.useProgram("collisionBox"),na=[],uo=0,lo=0,Po=0;Po0){var Hs=et.create(),yl=es;et.mul(Hs,jo.placementInvProjMatrix,pr.transform.glCoordMatrix),et.mul(Hs,Hs,jo.placementViewportMatrix),na.push({circleArray:Fs,circleOffset:lo,transform:yl,invTransform:Hs}),uo+=Fs.length/4,lo=uo}ps&&jn.draw(gn,kn.LINES,_i.disabled,Jn.disabled,pr.colorModeForRenderPass(),Ln.disabled,X0(es,pr.transform,Ko),gr.id,ps.layoutVertexBuffer,ps.indexBuffer,ps.segments,null,pr.transform.zoom,null,null,ps.collisionVertexBuffer)}}if(!(!Kr||!na.length)){var Tl=pr.useProgram("collisionCircle"),qs=new et.StructArrayLayout2f1f2i16;qs.resize(uo*4),qs._trim();for(var _l=0,Pl=0,Ul=na;Pl=0&&(Jo[jo.associatedIconIndex]={shiftedAnchor:bu,angle:$u})}}if(na){Po.clear();for(var iu=pr.icon.placedSymbolArray,Du=0;Du0){var Kr=et.browser.now(),gn=(Kr-pr.timeAdded)/$r,kn=Qt?(Kr-Qt.timeAdded)/$r:-1,jn=gr.getSource(),na=yr.coveringZoomLevel({tileSize:jn.tileSize,roundZoom:jn.roundZoom}),uo=!Qt||Math.abs(Qt.tileID.overscaledZ-na)>Math.abs(pr.tileID.overscaledZ-na),lo=uo&&pr.refreshedUponExpiration?1:et.clamp(uo?gn:1-kn,0,1);return pr.refreshedUponExpiration&&gn>=1&&(pr.refreshedUponExpiration=!1),Qt?{opacity:1,mix:1-lo}:{opacity:lo,mix:0}}else return{opacity:1,mix:0}}function Q0(pr,Qt,gr){var nr=gr.paint.get("background-color"),yr=gr.paint.get("background-opacity");if(yr!==0){var $r=pr.context,Kr=$r.gl,gn=pr.transform,kn=gn.tileSize,jn=gr.paint.get("background-pattern");if(!pr.isPatternMissing(jn)){var na=!jn&&nr.a===1&&yr===1&&pr.opaquePassEnabledForLayer()?"opaque":"translucent";if(pr.renderPass===na){var uo=Jn.disabled,lo=pr.depthModeForSublayer(0,na==="opaque"?_i.ReadWrite:_i.ReadOnly),Po=pr.colorModeForRenderPass(),Jo=pr.useProgram(jn?"backgroundPattern":"background"),Ko=gn.coveringTiles({tileSize:kn});jn&&($r.activeTexture.set(Kr.TEXTURE0),pr.imageManager.bind(pr.context));for(var jo=gr.getCrossfadeParameters(),es=0,ps=Ko;es "+gr.overscaledZ);var es=jo+" "+Po+"kb";oo(pr,es),Kr.draw(nr,yr.TRIANGLES,gn,kn,hn.alphaBlended,Ln.disabled,Sp($r,et.Color.transparent,Ko),na,pr.debugBuffer,pr.quadTriangleIndexBuffer,pr.debugSegments)}function oo(pr,Qt){pr.initDebugOverlayCanvas();var gr=pr.debugOverlayCanvas,nr=pr.context.gl,yr=pr.debugOverlayCanvas.getContext("2d");yr.clearRect(0,0,gr.width,gr.height),yr.shadowColor="white",yr.shadowBlur=2,yr.lineWidth=1.5,yr.strokeStyle="white",yr.textBaseline="top",yr.font="bold "+36+"px Open Sans, sans-serif",yr.fillText(Qt,5,5),yr.strokeText(Qt,5,5),pr.debugOverlayTexture.update(gr),pr.debugOverlayTexture.bind(nr.LINEAR,nr.CLAMP_TO_EDGE)}function So(pr,Qt,gr){var nr=pr.context,yr=gr.implementation;if(pr.renderPass==="offscreen"){var $r=yr.prerender;$r&&(pr.setCustomLayerDefaults(),nr.setColorMode(pr.colorModeForRenderPass()),$r.call(yr,nr.gl,pr.transform.customLayerMatrix()),nr.setDirty(),pr.setBaseState())}else if(pr.renderPass==="translucent"){pr.setCustomLayerDefaults(),nr.setColorMode(pr.colorModeForRenderPass()),nr.setStencilMode(Jn.disabled);var Kr=yr.renderingMode==="3d"?new _i(pr.context.gl.LEQUAL,_i.ReadWrite,pr.depthRangeFor3D):pr.depthModeForSublayer(0,_i.ReadOnly);nr.setDepthMode(Kr),yr.render(nr.gl,pr.transform.customLayerMatrix()),nr.setDirty(),pr.setBaseState(),nr.bindFramebuffer.set(null)}}var Do={symbol:Cm,circle:k1,heatmap:Vv,line:Ov,fill:Wv,"fill-extrusion":bv,hillshade:L1,raster:Fv,background:Q0,debug:vo,custom:So},$o=function(Qt,gr){this.context=new Xn(Qt),this.transform=gr,this._tileTextures={},this.setup(),this.numSublayers=Wn.maxUnderzooming+Wn.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new zl,this.gpuTimers={}};$o.prototype.resize=function(Qt,gr){if(this.width=Qt*et.browser.devicePixelRatio,this.height=gr*et.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var nr=0,yr=this.style._order;nr256&&this.clearStencil(),nr.setColorMode(hn.disabled),nr.setDepthMode(_i.disabled);var $r=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var Kr=0,gn=gr;Kr256&&this.clearStencil();var Qt=this.nextStencilID++,gr=this.context.gl;return new Jn({func:gr.NOTEQUAL,mask:255},Qt,255,gr.KEEP,gr.KEEP,gr.REPLACE)},$o.prototype.stencilModeForClipping=function(Qt){var gr=this.context.gl;return new Jn({func:gr.EQUAL,mask:255},this._tileClippingMaskIDs[Qt.key],0,gr.KEEP,gr.KEEP,gr.REPLACE)},$o.prototype.stencilConfigForOverlap=function(Qt){var gr,nr=this.context.gl,yr=Qt.sort(function(jn,na){return na.overscaledZ-jn.overscaledZ}),$r=yr[yr.length-1].overscaledZ,Kr=yr[0].overscaledZ-$r+1;if(Kr>1){this.currentStencilSource=void 0,this.nextStencilID+Kr>256&&this.clearStencil();for(var gn={},kn=0;kn=0;this.currentLayer--){var Hs=this.style._layers[yr[this.currentLayer]],yl=$r[Hs.source],Tl=kn[Hs.source];this._renderTileClippingMasks(Hs,Tl),this.renderLayer(this,yl,Hs,Tl)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?gr.pop():null},$o.prototype.isPatternMissing=function(Qt){if(!Qt)return!1;if(!Qt.from||!Qt.to)return!0;var gr=this.imageManager.getPattern(Qt.from.toString()),nr=this.imageManager.getPattern(Qt.to.toString());return!gr||!nr},$o.prototype.useProgram=function(Qt,gr){this.cache=this.cache||{};var nr=""+Qt+(gr?gr.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[nr]||(this.cache[nr]=new Hm(this.context,Qt,D0[Qt],gr,N0[Qt],this._showOverdrawInspector)),this.cache[nr]},$o.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},$o.prototype.setBaseState=function(){var Qt=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(Qt.FUNC_ADD)},$o.prototype.initDebugOverlayCanvas=function(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=et.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var Qt=this.context.gl;this.debugOverlayTexture=new et.Texture(this.context,this.debugOverlayCanvas,Qt.RGBA)}},$o.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var os=function(Qt,gr){this.points=Qt,this.planes=gr};os.fromInvProjectionMatrix=function(Qt,gr,nr){var yr=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]],$r=Math.pow(2,nr),Kr=yr.map(function(jn){return et.transformMat4([],jn,Qt)}).map(function(jn){return et.scale$1([],jn,1/jn[3]/gr*$r)}),gn=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],kn=gn.map(function(jn){var na=et.sub([],Kr[jn[0]],Kr[jn[1]]),uo=et.sub([],Kr[jn[2]],Kr[jn[1]]),lo=et.normalize([],et.cross([],na,uo)),Po=-et.dot(lo,Kr[jn[1]]);return lo.concat(Po)});return new os(Kr,kn)};var Ss=function(Qt,gr){this.min=Qt,this.max=gr,this.center=et.scale$2([],et.add([],this.min,this.max),.5)};Ss.prototype.quadrant=function(Qt){for(var gr=[Qt%2===0,Qt<2],nr=et.clone$2(this.min),yr=et.clone$2(this.max),$r=0;$r=0;if(Kr===0)return 0;Kr!==gr.length&&(nr=!1)}if(nr)return 2;for(var kn=0;kn<3;kn++){for(var jn=Number.MAX_VALUE,na=-Number.MAX_VALUE,uo=0;uothis.max[kn]-this.min[kn])return 0}return 1};var Ns=function(Qt,gr,nr,yr){if(Qt===void 0&&(Qt=0),gr===void 0&&(gr=0),nr===void 0&&(nr=0),yr===void 0&&(yr=0),isNaN(Qt)||Qt<0||isNaN(gr)||gr<0||isNaN(nr)||nr<0||isNaN(yr)||yr<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=Qt,this.bottom=gr,this.left=nr,this.right=yr};Ns.prototype.interpolate=function(Qt,gr,nr){return gr.top!=null&&Qt.top!=null&&(this.top=et.number(Qt.top,gr.top,nr)),gr.bottom!=null&&Qt.bottom!=null&&(this.bottom=et.number(Qt.bottom,gr.bottom,nr)),gr.left!=null&&Qt.left!=null&&(this.left=et.number(Qt.left,gr.left,nr)),gr.right!=null&&Qt.right!=null&&(this.right=et.number(Qt.right,gr.right,nr)),this},Ns.prototype.getCenter=function(Qt,gr){var nr=et.clamp((this.left+Qt-this.right)/2,0,Qt),yr=et.clamp((this.top+gr-this.bottom)/2,0,gr);return new et.Point(nr,yr)},Ns.prototype.equals=function(Qt){return this.top===Qt.top&&this.bottom===Qt.bottom&&this.left===Qt.left&&this.right===Qt.right},Ns.prototype.clone=function(){return new Ns(this.top,this.bottom,this.left,this.right)},Ns.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var $s=function(Qt,gr,nr,yr,$r){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=$r===void 0?!0:$r,this._minZoom=Qt||0,this._maxZoom=gr||22,this._minPitch=nr??0,this._maxPitch=yr??60,this.setMaxBounds(),this.width=0,this.height=0,this._center=new et.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Ns,this._posMatrixCache={},this._alignedPosMatrixCache={}},Al={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};$s.prototype.clone=function(){var Qt=new $s(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return Qt.tileSize=this.tileSize,Qt.latRange=this.latRange,Qt.width=this.width,Qt.height=this.height,Qt._center=this._center,Qt.zoom=this.zoom,Qt.angle=this.angle,Qt._fov=this._fov,Qt._pitch=this._pitch,Qt._unmodified=this._unmodified,Qt._edgeInsets=this._edgeInsets.clone(),Qt._calcMatrices(),Qt},Al.minZoom.get=function(){return this._minZoom},Al.minZoom.set=function(pr){this._minZoom!==pr&&(this._minZoom=pr,this.zoom=Math.max(this.zoom,pr))},Al.maxZoom.get=function(){return this._maxZoom},Al.maxZoom.set=function(pr){this._maxZoom!==pr&&(this._maxZoom=pr,this.zoom=Math.min(this.zoom,pr))},Al.minPitch.get=function(){return this._minPitch},Al.minPitch.set=function(pr){this._minPitch!==pr&&(this._minPitch=pr,this.pitch=Math.max(this.pitch,pr))},Al.maxPitch.get=function(){return this._maxPitch},Al.maxPitch.set=function(pr){this._maxPitch!==pr&&(this._maxPitch=pr,this.pitch=Math.min(this.pitch,pr))},Al.renderWorldCopies.get=function(){return this._renderWorldCopies},Al.renderWorldCopies.set=function(pr){pr===void 0?pr=!0:pr===null&&(pr=!1),this._renderWorldCopies=pr},Al.worldSize.get=function(){return this.tileSize*this.scale},Al.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Al.size.get=function(){return new et.Point(this.width,this.height)},Al.bearing.get=function(){return-this.angle/Math.PI*180},Al.bearing.set=function(pr){var Qt=-et.wrap(pr,-180,180)*Math.PI/180;this.angle!==Qt&&(this._unmodified=!1,this.angle=Qt,this._calcMatrices(),this.rotationMatrix=et.create$2(),et.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Al.pitch.get=function(){return this._pitch/Math.PI*180},Al.pitch.set=function(pr){var Qt=et.clamp(pr,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==Qt&&(this._unmodified=!1,this._pitch=Qt,this._calcMatrices())},Al.fov.get=function(){return this._fov/Math.PI*180},Al.fov.set=function(pr){pr=Math.max(.01,Math.min(60,pr)),this._fov!==pr&&(this._unmodified=!1,this._fov=pr/180*Math.PI,this._calcMatrices())},Al.zoom.get=function(){return this._zoom},Al.zoom.set=function(pr){var Qt=Math.min(Math.max(pr,this.minZoom),this.maxZoom);this._zoom!==Qt&&(this._unmodified=!1,this._zoom=Qt,this.scale=this.zoomScale(Qt),this.tileZoom=Math.floor(Qt),this.zoomFraction=Qt-this.tileZoom,this._constrain(),this._calcMatrices())},Al.center.get=function(){return this._center},Al.center.set=function(pr){pr.lat===this._center.lat&&pr.lng===this._center.lng||(this._unmodified=!1,this._center=pr,this._constrain(),this._calcMatrices())},Al.padding.get=function(){return this._edgeInsets.toJSON()},Al.padding.set=function(pr){this._edgeInsets.equals(pr)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,pr,1),this._calcMatrices())},Al.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},$s.prototype.isPaddingEqual=function(Qt){return this._edgeInsets.equals(Qt)},$s.prototype.interpolatePadding=function(Qt,gr,nr){this._unmodified=!1,this._edgeInsets.interpolate(Qt,gr,nr),this._constrain(),this._calcMatrices()},$s.prototype.coveringZoomLevel=function(Qt){var gr=(Qt.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/Qt.tileSize));return Math.max(0,gr)},$s.prototype.getVisibleUnwrappedCoordinates=function(Qt){var gr=[new et.UnwrappedTileID(0,Qt)];if(this._renderWorldCopies)for(var nr=this.pointCoordinate(new et.Point(0,0)),yr=this.pointCoordinate(new et.Point(this.width,0)),$r=this.pointCoordinate(new et.Point(this.width,this.height)),Kr=this.pointCoordinate(new et.Point(0,this.height)),gn=Math.floor(Math.min(nr.x,yr.x,$r.x,Kr.x)),kn=Math.floor(Math.max(nr.x,yr.x,$r.x,Kr.x)),jn=1,na=gn-jn;na<=kn+jn;na++)na!==0&&gr.push(new et.UnwrappedTileID(na,Qt));return gr},$s.prototype.coveringTiles=function(Qt){var gr=this.coveringZoomLevel(Qt),nr=gr;if(Qt.minzoom!==void 0&&grQt.maxzoom&&(gr=Qt.maxzoom);var yr=et.MercatorCoordinate.fromLngLat(this.center),$r=Math.pow(2,gr),Kr=[$r*yr.x,$r*yr.y,0],gn=os.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,gr),kn=Qt.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(kn=gr);var jn=3,na=function(Kl){return{aabb:new Ss([Kl*$r,0,0],[(Kl+1)*$r,$r,0]),zoom:0,x:0,y:0,wrap:Kl,fullyVisible:!1}},uo=[],lo=[],Po=gr,Jo=Qt.reparseOverscaled?nr:gr;if(this._renderWorldCopies)for(var Ko=1;Ko<=3;Ko++)uo.push(na(-Ko)),uo.push(na(Ko));for(uo.push(na(0));uo.length>0;){var jo=uo.pop(),es=jo.x,ps=jo.y,Fs=jo.fullyVisible;if(!Fs){var Hs=jo.aabb.intersects(gn);if(Hs===0)continue;Fs=Hs===2}var yl=jo.aabb.distanceX(Kr),Tl=jo.aabb.distanceY(Kr),qs=Math.max(Math.abs(yl),Math.abs(Tl)),_l=jn+(1<_l&&jo.zoom>=kn){lo.push({tileID:new et.OverscaledTileID(jo.zoom===Po?Jo:jo.zoom,jo.wrap,jo.zoom,es,ps),distanceSq:et.sqrLen([Kr[0]-.5-es,Kr[1]-.5-ps])});continue}for(var Pl=0;Pl<4;Pl++){var Ul=(es<<1)+Pl%2,tu=(ps<<1)+(Pl>>1);uo.push({aabb:jo.aabb.quadrant(Pl),zoom:jo.zoom+1,x:Ul,y:tu,wrap:jo.wrap,fullyVisible:Fs})}}return lo.sort(function(Kl,bu){return Kl.distanceSq-bu.distanceSq}).map(function(Kl){return Kl.tileID})},$s.prototype.resize=function(Qt,gr){this.width=Qt,this.height=gr,this.pixelsToGLUnits=[2/Qt,-2/gr],this._constrain(),this._calcMatrices()},Al.unmodified.get=function(){return this._unmodified},$s.prototype.zoomScale=function(Qt){return Math.pow(2,Qt)},$s.prototype.scaleZoom=function(Qt){return Math.log(Qt)/Math.LN2},$s.prototype.project=function(Qt){var gr=et.clamp(Qt.lat,-this.maxValidLatitude,this.maxValidLatitude);return new et.Point(et.mercatorXfromLng(Qt.lng)*this.worldSize,et.mercatorYfromLat(gr)*this.worldSize)},$s.prototype.unproject=function(Qt){return new et.MercatorCoordinate(Qt.x/this.worldSize,Qt.y/this.worldSize).toLngLat()},Al.point.get=function(){return this.project(this.center)},$s.prototype.setLocationAtPoint=function(Qt,gr){var nr=this.pointCoordinate(gr),yr=this.pointCoordinate(this.centerPoint),$r=this.locationCoordinate(Qt),Kr=new et.MercatorCoordinate($r.x-(nr.x-yr.x),$r.y-(nr.y-yr.y));this.center=this.coordinateLocation(Kr),this._renderWorldCopies&&(this.center=this.center.wrap())},$s.prototype.locationPoint=function(Qt){return this.coordinatePoint(this.locationCoordinate(Qt))},$s.prototype.pointLocation=function(Qt){return this.coordinateLocation(this.pointCoordinate(Qt))},$s.prototype.locationCoordinate=function(Qt){return et.MercatorCoordinate.fromLngLat(Qt)},$s.prototype.coordinateLocation=function(Qt){return Qt.toLngLat()},$s.prototype.pointCoordinate=function(Qt){var gr=0,nr=[Qt.x,Qt.y,0,1],yr=[Qt.x,Qt.y,1,1];et.transformMat4(nr,nr,this.pixelMatrixInverse),et.transformMat4(yr,yr,this.pixelMatrixInverse);var $r=nr[3],Kr=yr[3],gn=nr[0]/$r,kn=yr[0]/Kr,jn=nr[1]/$r,na=yr[1]/Kr,uo=nr[2]/$r,lo=yr[2]/Kr,Po=uo===lo?0:(gr-uo)/(lo-uo);return new et.MercatorCoordinate(et.number(gn,kn,Po)/this.worldSize,et.number(jn,na,Po)/this.worldSize)},$s.prototype.coordinatePoint=function(Qt){var gr=[Qt.x*this.worldSize,Qt.y*this.worldSize,0,1];return et.transformMat4(gr,gr,this.pixelMatrix),new et.Point(gr[0]/gr[3],gr[1]/gr[3])},$s.prototype.getBounds=function(){return new et.LngLatBounds().extend(this.pointLocation(new et.Point(0,0))).extend(this.pointLocation(new et.Point(this.width,0))).extend(this.pointLocation(new et.Point(this.width,this.height))).extend(this.pointLocation(new et.Point(0,this.height)))},$s.prototype.getMaxBounds=function(){return!this.latRange||this.latRange.length!==2||!this.lngRange||this.lngRange.length!==2?null:new et.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]])},$s.prototype.setMaxBounds=function(Qt){Qt?(this.lngRange=[Qt.getWest(),Qt.getEast()],this.latRange=[Qt.getSouth(),Qt.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},$s.prototype.calculatePosMatrix=function(Qt,gr){gr===void 0&&(gr=!1);var nr=Qt.key,yr=gr?this._alignedPosMatrixCache:this._posMatrixCache;if(yr[nr])return yr[nr];var $r=Qt.canonical,Kr=this.worldSize/this.zoomScale($r.z),gn=$r.x+Math.pow(2,$r.z)*Qt.wrap,kn=et.identity(new Float64Array(16));return et.translate(kn,kn,[gn*Kr,$r.y*Kr,0]),et.scale(kn,kn,[Kr/et.EXTENT,Kr/et.EXTENT,1]),et.multiply(kn,gr?this.alignedProjMatrix:this.projMatrix,kn),yr[nr]=new Float32Array(kn),yr[nr]},$s.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},$s.prototype._constrain=function(){if(!(!this.center||!this.width||!this.height||this._constraining)){this._constraining=!0;var Qt=-90,gr=90,nr=-180,yr=180,$r,Kr,gn,kn,jn=this.size,na=this._unmodified;if(this.latRange){var uo=this.latRange;Qt=et.mercatorYfromLat(uo[1])*this.worldSize,gr=et.mercatorYfromLat(uo[0])*this.worldSize,$r=gr-Qtgr&&(kn=gr-jo)}if(this.lngRange){var es=Po.x,ps=jn.x/2;es-psyr&&(gn=yr-ps)}(gn!==void 0||kn!==void 0)&&(this.center=this.unproject(new et.Point(gn!==void 0?gn:Po.x,kn!==void 0?kn:Po.y))),this._unmodified=na,this._constraining=!1}},$s.prototype._calcMatrices=function(){if(this.height){var Qt=this._fov/2,gr=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(Qt)*this.height;var nr=Math.PI/2+this._pitch,yr=this._fov*(.5+gr.y/this.height),$r=Math.sin(yr)*this.cameraToCenterDistance/Math.sin(et.clamp(Math.PI-nr-yr,.01,Math.PI-.01)),Kr=this.point,gn=Kr.x,kn=Kr.y,jn=Math.cos(Math.PI/2-this._pitch)*$r+this.cameraToCenterDistance,na=jn*1.01,uo=this.height/50,lo=new Float64Array(16);et.perspective(lo,this._fov,this.width/this.height,uo,na),lo[8]=-gr.x*2/this.width,lo[9]=gr.y*2/this.height,et.scale(lo,lo,[1,-1,1]),et.translate(lo,lo,[0,0,-this.cameraToCenterDistance]),et.rotateX(lo,lo,this._pitch),et.rotateZ(lo,lo,this.angle),et.translate(lo,lo,[-gn,-kn,0]),this.mercatorMatrix=et.scale([],lo,[this.worldSize,this.worldSize,this.worldSize]),et.scale(lo,lo,[1,1,et.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=lo,this.invProjMatrix=et.invert([],this.projMatrix);var Po=this.width%2/2,Jo=this.height%2/2,Ko=Math.cos(this.angle),jo=Math.sin(this.angle),es=gn-Math.round(gn)+Ko*Po+jo*Jo,ps=kn-Math.round(kn)+Ko*Jo+jo*Po,Fs=new Float64Array(lo);if(et.translate(Fs,Fs,[es>.5?es-1:es,ps>.5?ps-1:ps,0]),this.alignedProjMatrix=Fs,lo=et.create(),et.scale(lo,lo,[this.width/2,-this.height/2,1]),et.translate(lo,lo,[1,-1,0]),this.labelPlaneMatrix=lo,lo=et.create(),et.scale(lo,lo,[1,-1,1]),et.translate(lo,lo,[-1,-1,0]),et.scale(lo,lo,[2/this.width,2/this.height,1]),this.glCoordMatrix=lo,this.pixelMatrix=et.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),lo=et.invert(new Float64Array(16),this.pixelMatrix),!lo)throw new Error("failed to invert matrix");this.pixelMatrixInverse=lo,this._posMatrixCache={},this._alignedPosMatrixCache={}}},$s.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var Qt=this.pointCoordinate(new et.Point(0,0)),gr=[Qt.x*this.worldSize,Qt.y*this.worldSize,0,1],nr=et.transformMat4(gr,gr,this.pixelMatrix);return nr[3]/this.cameraToCenterDistance},$s.prototype.getCameraPoint=function(){var Qt=this._pitch,gr=Math.tan(Qt)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new et.Point(0,gr))},$s.prototype.getCameraQueryGeometry=function(Qt){var gr=this.getCameraPoint();if(Qt.length===1)return[Qt[0],gr];for(var nr=gr.x,yr=gr.y,$r=gr.x,Kr=gr.y,gn=0,kn=Qt;gn=3&&!Qt.some(function(nr){return isNaN(nr)})){var gr=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(Qt[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+Qt[2],+Qt[1]],zoom:+Qt[0],bearing:gr,pitch:+(Qt[4]||0)}),!0}return!1},du.prototype._updateHashUnthrottled=function(){var Qt=et.window.location.href.replace(/(#.+)?$/,this.getHashString());try{et.window.history.replaceState(et.window.history.state,null,Qt)}catch{}};var gu={linearity:.3,easing:et.bezier(0,0,.3,1)},Eu=et.extend({deceleration:2500,maxSpeed:1400},gu),Nu=et.extend({deceleration:20,maxSpeed:1400},gu),_c=et.extend({deceleration:1e3,maxSpeed:360},gu),Ip=et.extend({deceleration:1e3,maxSpeed:90},gu),dr=function(Qt){this._map=Qt,this.clear()};dr.prototype.clear=function(){this._inertiaBuffer=[]},dr.prototype.record=function(Qt){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:et.browser.now(),settings:Qt})},dr.prototype._drainInertiaBuffer=function(){for(var Qt=this._inertiaBuffer,gr=et.browser.now(),nr=160;Qt.length>0&&gr-Qt[0].time>nr;)Qt.shift()},dr.prototype._onMoveEnd=function(Qt){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var gr={zoom:0,bearing:0,pitch:0,pan:new et.Point(0,0),pinchAround:void 0,around:void 0},nr=0,yr=this._inertiaBuffer;nr=this._clickTolerance||this._map.fire(new nn(Qt.type,this._map,Qt))},Dn.prototype.dblclick=function(Qt){return this._firePreventable(new nn(Qt.type,this._map,Qt))},Dn.prototype.mouseover=function(Qt){this._map.fire(new nn(Qt.type,this._map,Qt))},Dn.prototype.mouseout=function(Qt){this._map.fire(new nn(Qt.type,this._map,Qt))},Dn.prototype.touchstart=function(Qt){return this._firePreventable(new cn(Qt.type,this._map,Qt))},Dn.prototype.touchmove=function(Qt){this._map.fire(new cn(Qt.type,this._map,Qt))},Dn.prototype.touchend=function(Qt){this._map.fire(new cn(Qt.type,this._map,Qt))},Dn.prototype.touchcancel=function(Qt){this._map.fire(new cn(Qt.type,this._map,Qt))},Dn.prototype._firePreventable=function(Qt){if(this._map.fire(Qt),Qt.defaultPrevented)return{}},Dn.prototype.isEnabled=function(){return!0},Dn.prototype.isActive=function(){return!1},Dn.prototype.enable=function(){},Dn.prototype.disable=function(){};var Rn=function(Qt){this._map=Qt};Rn.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Rn.prototype.mousemove=function(Qt){this._map.fire(new nn(Qt.type,this._map,Qt))},Rn.prototype.mousedown=function(){this._delayContextMenu=!0},Rn.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new nn("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Rn.prototype.contextmenu=function(Qt){this._delayContextMenu?this._contextMenuEvent=Qt:this._map.fire(new nn(Qt.type,this._map,Qt)),this._map.listens("contextmenu")&&Qt.preventDefault()},Rn.prototype.isEnabled=function(){return!0},Rn.prototype.isActive=function(){return!1},Rn.prototype.enable=function(){},Rn.prototype.disable=function(){};var Yn=function(Qt,gr){this._map=Qt,this._el=Qt.getCanvasContainer(),this._container=Qt.getContainer(),this._clickTolerance=gr.clickTolerance||1};Yn.prototype.isEnabled=function(){return!!this._enabled},Yn.prototype.isActive=function(){return!!this._active},Yn.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Yn.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Yn.prototype.mousedown=function(Qt,gr){this.isEnabled()&&Qt.shiftKey&&Qt.button===0&&(mt.disableDrag(),this._startPos=this._lastPos=gr,this._active=!0)},Yn.prototype.mousemoveWindow=function(Qt,gr){if(this._active){var nr=gr;if(!(this._lastPos.equals(nr)||!this._box&&nr.dist(this._startPos)this.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=Qt.timeStamp),nr.length===this.numTouches&&(this.centroid=to(gr),this.touches=Zn(nr,gr)))},ls.prototype.touchmove=function(Qt,gr,nr){if(!(this.aborted||!this.centroid)){var yr=Zn(nr,gr);for(var $r in this.touches){var Kr=this.touches[$r],gn=yr[$r];(!gn||gn.dist(Kr)>ts)&&(this.aborted=!0)}}},ls.prototype.touchend=function(Qt,gr,nr){if((!this.centroid||Qt.timeStamp-this.startTime>Ro)&&(this.aborted=!0),nr.length===0){var yr=!this.aborted&&this.centroid;if(this.reset(),yr)return yr}};var ko=function(Qt){this.singleTap=new ls(Qt),this.numTaps=Qt.numTaps,this.reset()};ko.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},ko.prototype.touchstart=function(Qt,gr,nr){this.singleTap.touchstart(Qt,gr,nr)},ko.prototype.touchmove=function(Qt,gr,nr){this.singleTap.touchmove(Qt,gr,nr)},ko.prototype.touchend=function(Qt,gr,nr){var yr=this.singleTap.touchend(Qt,gr,nr);if(yr){var $r=Qt.timeStamp-this.lastTime0&&(this._active=!0);var yr=Zn(nr,gr),$r=new et.Point(0,0),Kr=new et.Point(0,0),gn=0;for(var kn in yr){var jn=yr[kn],na=this._touches[kn];na&&($r._add(jn),Kr._add(jn.sub(na)),gn++,yr[kn]=jn)}if(this._touches=yr,!(gnMath.abs(pr.x)}var ru=100,Ou=function(pr){function Qt(){pr.apply(this,arguments)}return pr&&(Qt.__proto__=pr),Qt.prototype=Object.create(pr&&pr.prototype),Qt.prototype.constructor=Qt,Qt.prototype.reset=function(){pr.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},Qt.prototype._start=function(nr){this._lastPoints=nr,vu(nr[0].sub(nr[1]))&&(this._valid=!1)},Qt.prototype._move=function(nr,yr,$r){var Kr=nr[0].sub(this._lastPoints[0]),gn=nr[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(Kr,gn,$r.timeStamp),!!this._valid){this._lastPoints=nr,this._active=!0;var kn=(Kr.y+gn.y)/2,jn=-.5;return{pitchDelta:kn*jn}}},Qt.prototype.gestureBeginsVertically=function(nr,yr,$r){if(this._valid!==void 0)return this._valid;var Kr=2,gn=nr.mag()>=Kr,kn=yr.mag()>=Kr;if(!(!gn&&!kn)){if(!gn||!kn)return this._firstMove===void 0&&(this._firstMove=$r),$r-this._firstMove0==yr.y>0;return vu(nr)&&vu(yr)&&jn}},Qt}(Vl),cp={panStep:100,bearingStep:15,pitchStep:10},Uu=function(){var Qt=cp;this._panStep=Qt.panStep,this._bearingStep=Qt.bearingStep,this._pitchStep=Qt.pitchStep,this._rotationDisabled=!1};Uu.prototype.reset=function(){this._active=!1},Uu.prototype.keydown=function(Qt){var gr=this;if(!(Qt.altKey||Qt.ctrlKey||Qt.metaKey)){var nr=0,yr=0,$r=0,Kr=0,gn=0;switch(Qt.keyCode){case 61:case 107:case 171:case 187:nr=1;break;case 189:case 109:case 173:nr=-1;break;case 37:Qt.shiftKey?yr=-1:(Qt.preventDefault(),Kr=-1);break;case 39:Qt.shiftKey?yr=1:(Qt.preventDefault(),Kr=1);break;case 38:Qt.shiftKey?$r=1:(Qt.preventDefault(),gn=-1);break;case 40:Qt.shiftKey?$r=-1:(Qt.preventDefault(),gn=1);break;default:return}return this._rotationDisabled&&(yr=0,$r=0),{cameraAnimation:function(kn){var jn=kn.getZoom();kn.easeTo({duration:300,easeId:"keyboardHandler",easing:Fp,zoom:nr?Math.round(jn)+nr*(Qt.shiftKey?2:1):jn,bearing:kn.getBearing()+yr*gr._bearingStep,pitch:kn.getPitch()+$r*gr._pitchStep,offset:[-Kr*gr._panStep,-gn*gr._panStep],center:kn.getCenter()},{originalEvent:Qt})}}}},Uu.prototype.enable=function(){this._enabled=!0},Uu.prototype.disable=function(){this._enabled=!1,this.reset()},Uu.prototype.isEnabled=function(){return this._enabled},Uu.prototype.isActive=function(){return this._active},Uu.prototype.disableRotation=function(){this._rotationDisabled=!0},Uu.prototype.enableRotation=function(){this._rotationDisabled=!1};function Fp(pr){return pr*(2-pr)}var Pp=4.000244140625,Vp=1/100,lp=1/450,Wp=2,Ol=function(Qt,gr){this._map=Qt,this._el=Qt.getCanvasContainer(),this._handler=gr,this._delta=0,this._defaultZoomRate=Vp,this._wheelZoomRate=lp,et.bindAll(["_onTimeout"],this)};Ol.prototype.setZoomRate=function(Qt){this._defaultZoomRate=Qt},Ol.prototype.setWheelZoomRate=function(Qt){this._wheelZoomRate=Qt},Ol.prototype.isEnabled=function(){return!!this._enabled},Ol.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},Ol.prototype.isZooming=function(){return!!this._zooming},Ol.prototype.enable=function(Qt){this.isEnabled()||(this._enabled=!0,this._aroundCenter=Qt&&Qt.around==="center")},Ol.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Ol.prototype.wheel=function(Qt){if(this.isEnabled()){var gr=Qt.deltaMode===et.window.WheelEvent.DOM_DELTA_LINE?Qt.deltaY*40:Qt.deltaY,nr=et.browser.now(),yr=nr-(this._lastWheelEventTime||0);this._lastWheelEventTime=nr,gr!==0&&gr%Pp===0?this._type="wheel":gr!==0&&Math.abs(gr)<4?this._type="trackpad":yr>400?(this._type=null,this._lastValue=gr,this._timeout=setTimeout(this._onTimeout,40,Qt)):this._type||(this._type=Math.abs(yr*gr)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,gr+=this._lastValue)),Qt.shiftKey&&gr&&(gr=gr/4),this._type&&(this._lastWheelEvent=Qt,this._delta-=gr,this._active||this._start(Qt)),Qt.preventDefault()}},Ol.prototype._onTimeout=function(Qt){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(Qt)},Ol.prototype._start=function(Qt){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var gr=mt.mousePos(this._el,Qt);this._around=et.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(gr)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},Ol.prototype.renderFrame=function(){var Qt=this;if(this._frameId&&(this._frameId=null,!!this.isActive())){var gr=this._map.transform;if(this._delta!==0){var nr=this._type==="wheel"&&Math.abs(this._delta)>Pp?this._wheelZoomRate:this._defaultZoomRate,yr=Wp/(1+Math.exp(-Math.abs(this._delta*nr)));this._delta<0&&yr!==0&&(yr=1/yr);var $r=typeof this._targetZoom=="number"?gr.zoomScale(this._targetZoom):gr.scale;this._targetZoom=Math.min(gr.maxZoom,Math.max(gr.minZoom,gr.scaleZoom($r*yr))),this._type==="wheel"&&(this._startZoom=gr.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var Kr=typeof this._targetZoom=="number"?this._targetZoom:gr.zoom,gn=this._startZoom,kn=this._easing,jn=!1,na;if(this._type==="wheel"&&gn&&kn){var uo=Math.min((et.browser.now()-this._lastWheelEventTime)/200,1),lo=kn(uo);na=et.number(gn,Kr,lo),uo<1?this._frameId||(this._frameId=!0):jn=!0}else na=Kr,jn=!0;return this._active=!0,jn&&(this._active=!1,this._finishTimeout=setTimeout(function(){Qt._zooming=!1,Qt._handler._triggerRenderFrame(),delete Qt._targetZoom,delete Qt._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!jn,zoomDelta:na-gr.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Ol.prototype._smoothOutEasing=function(Qt){var gr=et.ease;if(this._prevEase){var nr=this._prevEase,yr=(et.browser.now()-nr.start)/nr.duration,$r=nr.easing(yr+.01)-nr.easing(yr),Kr=.27/Math.sqrt($r*$r+1e-4)*.01,gn=Math.sqrt(.27*.27-Kr*Kr);gr=et.bezier(Kr,gn,.25,1)}return this._prevEase={start:et.browser.now(),duration:Qt,easing:gr},gr},Ol.prototype.reset=function(){this._active=!1};var cu=function(Qt,gr){this._clickZoom=Qt,this._tapZoom=gr};cu.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},cu.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},cu.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},cu.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var Lp=function(){this.reset()};Lp.prototype.reset=function(){this._active=!1},Lp.prototype.dblclick=function(Qt,gr){return Qt.preventDefault(),{cameraAnimation:function(nr){nr.easeTo({duration:300,zoom:nr.getZoom()+(Qt.shiftKey?-1:1),around:nr.unproject(gr)},{originalEvent:Qt})}}},Lp.prototype.enable=function(){this._enabled=!0},Lp.prototype.disable=function(){this._enabled=!1,this.reset()},Lp.prototype.isEnabled=function(){return this._enabled},Lp.prototype.isActive=function(){return this._active};var Ev=function(){this._tap=new ko({numTouches:1,numTaps:1}),this.reset()};Ev.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Ev.prototype.touchstart=function(Qt,gr,nr){this._swipePoint||(this._tapTime&&Qt.timeStamp-this._tapTime>Co&&this.reset(),this._tapTime?nr.length>0&&(this._swipePoint=gr[0],this._swipeTouch=nr[0].identifier):this._tap.touchstart(Qt,gr,nr))},Ev.prototype.touchmove=function(Qt,gr,nr){if(!this._tapTime)this._tap.touchmove(Qt,gr,nr);else if(this._swipePoint){if(nr[0].identifier!==this._swipeTouch)return;var yr=gr[0],$r=yr.y-this._swipePoint.y;return this._swipePoint=yr,Qt.preventDefault(),this._active=!0,{zoomDelta:$r/128}}},Ev.prototype.touchend=function(Qt,gr,nr){if(this._tapTime)this._swipePoint&&nr.length===0&&this.reset();else{var yr=this._tap.touchend(Qt,gr,nr);yr&&(this._tapTime=Qt.timeStamp)}},Ev.prototype.touchcancel=function(){this.reset()},Ev.prototype.enable=function(){this._enabled=!0},Ev.prototype.disable=function(){this._enabled=!1,this.reset()},Ev.prototype.isEnabled=function(){return this._enabled},Ev.prototype.isActive=function(){return this._active};var jp=function(Qt,gr,nr){this._el=Qt,this._mousePan=gr,this._touchPan=nr};jp.prototype.enable=function(Qt){this._inertiaOptions=Qt||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},jp.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},jp.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},jp.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var Ku=function(Qt,gr,nr){this._pitchWithRotate=Qt.pitchWithRotate,this._mouseRotate=gr,this._mousePitch=nr};Ku.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},Ku.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},Ku.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},Ku.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var Bp=function(Qt,gr,nr,yr){this._el=Qt,this._touchZoom=gr,this._touchRotate=nr,this._tapDragZoom=yr,this._rotationDisabled=!1,this._enabled=!0};Bp.prototype.enable=function(Qt){this._touchZoom.enable(Qt),this._rotationDisabled||this._touchRotate.enable(Qt),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},Bp.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},Bp.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},Bp.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},Bp.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},Bp.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var Np=function(pr){return pr.zoom||pr.drag||pr.pitch||pr.rotate},n0=function(pr){function Qt(){pr.apply(this,arguments)}return pr&&(Qt.__proto__=pr),Qt.prototype=Object.create(pr&&pr.prototype),Qt.prototype.constructor=Qt,Qt}(et.Event);function a0(pr){return pr.panDelta&&pr.panDelta.mag()||pr.zoomDelta||pr.bearingDelta||pr.pitchDelta}var yp=function(Qt,gr){this._map=Qt,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new dr(Qt),this._bearingSnap=gr.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(gr),et.bindAll(["handleEvent","handleWindowEvent"],this);var nr=this._el;this._listeners=[[nr,"touchstart",{passive:!0}],[nr,"touchmove",{passive:!1}],[nr,"touchend",void 0],[nr,"touchcancel",void 0],[nr,"mousedown",void 0],[nr,"mousemove",void 0],[nr,"mouseup",void 0],[et.window.document,"mousemove",{capture:!0}],[et.window.document,"mouseup",void 0],[nr,"mouseover",void 0],[nr,"mouseout",void 0],[nr,"dblclick",void 0],[nr,"click",void 0],[nr,"keydown",{capture:!1}],[nr,"keyup",void 0],[nr,"wheel",{passive:!1}],[nr,"contextmenu",void 0],[et.window,"blur",void 0]];for(var yr=0,$r=this._listeners;yr<$r.length;yr+=1){var Kr=$r[yr],gn=Kr[0],kn=Kr[1],jn=Kr[2];mt.addEventListener(gn,kn,gn===et.window.document?this.handleWindowEvent:this.handleEvent,jn)}};yp.prototype.destroy=function(){for(var Qt=0,gr=this._listeners;Qtgn?Math.min(2,yl):Math.max(.5,yl),Kl=Math.pow(tu,1-Pl),bu=Kr.unproject(Fs.add(Hs.mult(Pl*Kl)).mult(Ul));Kr.setLocationAtPoint(Kr.renderWorldCopies?bu.wrap():bu,jo)}$r._fireMoveEvents(yr)},function(Pl){$r._afterEase(yr,Pl)},nr),this},Qt.prototype._prepareEase=function(nr,yr,$r){$r===void 0&&($r={}),this._moving=!0,!yr&&!$r.moving&&this.fire(new et.Event("movestart",nr)),this._zooming&&!$r.zooming&&this.fire(new et.Event("zoomstart",nr)),this._rotating&&!$r.rotating&&this.fire(new et.Event("rotatestart",nr)),this._pitching&&!$r.pitching&&this.fire(new et.Event("pitchstart",nr))},Qt.prototype._fireMoveEvents=function(nr){this.fire(new et.Event("move",nr)),this._zooming&&this.fire(new et.Event("zoom",nr)),this._rotating&&this.fire(new et.Event("rotate",nr)),this._pitching&&this.fire(new et.Event("pitch",nr))},Qt.prototype._afterEase=function(nr,yr){if(!(this._easeId&&yr&&this._easeId===yr)){delete this._easeId;var $r=this._zooming,Kr=this._rotating,gn=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,$r&&this.fire(new et.Event("zoomend",nr)),Kr&&this.fire(new et.Event("rotateend",nr)),gn&&this.fire(new et.Event("pitchend",nr)),this.fire(new et.Event("moveend",nr))}},Qt.prototype.flyTo=function(nr,yr){var $r=this;if(!nr.essential&&et.browser.prefersReducedMotion){var Kr=et.pick(nr,["center","zoom","bearing","pitch","around"]);return this.jumpTo(Kr,yr)}this.stop(),nr=et.extend({offset:[0,0],speed:1.2,curve:1.42,easing:et.ease},nr);var gn=this.transform,kn=this.getZoom(),jn=this.getBearing(),na=this.getPitch(),uo=this.getPadding(),lo="zoom"in nr?et.clamp(+nr.zoom,gn.minZoom,gn.maxZoom):kn,Po="bearing"in nr?this._normalizeBearing(nr.bearing,jn):jn,Jo="pitch"in nr?+nr.pitch:na,Ko="padding"in nr?nr.padding:gn.padding,jo=gn.zoomScale(lo-kn),es=et.Point.convert(nr.offset),ps=gn.centerPoint.add(es),Fs=gn.pointLocation(ps),Hs=et.LngLat.convert(nr.center||Fs);this._normalizeCenter(Hs);var yl=gn.project(Fs),Tl=gn.project(Hs).sub(yl),qs=nr.curve,_l=Math.max(gn.width,gn.height),Pl=_l/jo,Ul=Tl.mag();if("minZoom"in nr){var tu=et.clamp(Math.min(nr.minZoom,kn,lo),gn.minZoom,gn.maxZoom),Kl=_l/gn.zoomScale(tu-kn);qs=Math.sqrt(Kl/Ul*2)}var bu=qs*qs;function $u(wu){var Gu=(Pl*Pl-_l*_l+(wu?-1:1)*bu*bu*Ul*Ul)/(2*(wu?Pl:_l)*bu*Ul);return Math.log(Math.sqrt(Gu*Gu+1)-Gu)}function ku(wu){return(Math.exp(wu)-Math.exp(-wu))/2}function iu(wu){return(Math.exp(wu)+Math.exp(-wu))/2}function Du(wu){return ku(wu)/iu(wu)}var _u=$u(0),Zu=function(wu){return iu(_u)/iu(_u+qs*wu)},Hu=function(wu){return _l*((iu(_u)*Du(_u+qs*wu)-ku(_u))/bu)/Ul},dp=($u(1)-_u)/qs;if(Math.abs(Ul)<1e-6||!isFinite(dp)){if(Math.abs(_l-Pl)<1e-6)return this.easeTo(nr,yr);var Pu=Pl<_l?-1:1;dp=Math.abs(Math.log(Pl/_l))/qs,Hu=function(){return 0},Zu=function(wu){return Math.exp(Pu*qs*wu)}}if("duration"in nr)nr.duration=+nr.duration;else{var ap="screenSpeed"in nr?+nr.screenSpeed/qs:+nr.speed;nr.duration=1e3*dp/ap}return nr.maxDuration&&nr.duration>nr.maxDuration&&(nr.duration=0),this._zooming=!0,this._rotating=jn!==Po,this._pitching=Jo!==na,this._padding=!gn.isPaddingEqual(Ko),this._prepareEase(yr,!1),this._ease(function(wu){var Gu=wu*dp,Cp=1/Zu(Gu);gn.zoom=wu===1?lo:kn+gn.scaleZoom(Cp),$r._rotating&&(gn.bearing=et.number(jn,Po,wu)),$r._pitching&&(gn.pitch=et.number(na,Jo,wu)),$r._padding&&(gn.interpolatePadding(uo,Ko,wu),ps=gn.centerPoint.add(es));var Jp=wu===1?Hs:gn.unproject(yl.add(Tl.mult(Hu(Gu))).mult(Cp));gn.setLocationAtPoint(gn.renderWorldCopies?Jp.wrap():Jp,ps),$r._fireMoveEvents(yr)},function(){return $r._afterEase(yr)},nr),this},Qt.prototype.isEasing=function(){return!!this._easeFrameId},Qt.prototype.stop=function(){return this._stop()},Qt.prototype._stop=function(nr,yr){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var $r=this._onEaseEnd;delete this._onEaseEnd,$r.call(this,yr)}if(!nr){var Kr=this.handlers;Kr&&Kr.stop(!1)}return this},Qt.prototype._ease=function(nr,yr,$r){$r.animate===!1||$r.duration===0?(nr(1),yr()):(this._easeStart=et.browser.now(),this._easeOptions=$r,this._onEaseFrame=nr,this._onEaseEnd=yr,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},Qt.prototype._renderFrameCallback=function(){var nr=Math.min((et.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(nr)),nr<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},Qt.prototype._normalizeBearing=function(nr,yr){nr=et.wrap(nr,-180,180);var $r=Math.abs(nr-yr);return Math.abs(nr-360-yr)<$r&&(nr-=360),Math.abs(nr+360-yr)<$r&&(nr+=360),nr},Qt.prototype._normalizeCenter=function(nr){var yr=this.transform;if(!(!yr.renderWorldCopies||yr.lngRange)){var $r=nr.lng-yr.center.lng;nr.lng+=$r>180?-360:$r<-180?360:0}},Qt}(et.Evented),Fu=function(Qt){Qt===void 0&&(Qt={}),this.options=Qt,et.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};Fu.prototype.getDefaultPosition=function(){return"bottom-right"},Fu.prototype.onAdd=function(Qt){var gr=this.options&&this.options.compact;return this._map=Qt,this._container=mt.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=mt.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=mt.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),gr&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),gr===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},Fu.prototype.onRemove=function(){mt.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},Fu.prototype._setElementTitle=function(Qt,gr){var nr=this._map._getUIString("AttributionControl."+gr);Qt.title=nr,Qt.setAttribute("aria-label",nr)},Fu.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},Fu.prototype._updateEditLink=function(){var Qt=this._editLink;Qt||(Qt=this._editLink=this._container.querySelector(".mapbox-improve-map"));var gr=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||et.config.ACCESS_TOKEN}];if(Qt){var nr=gr.reduce(function(yr,$r,Kr){return $r.value&&(yr+=$r.key+"="+$r.value+(Kr=0)return!1;return!0});var gn=Qt.join(" | ");gn!==this._attribHTML&&(this._attribHTML=gn,Qt.length?(this._innerContainer.innerHTML=gn,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},Fu.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var xp=function(){et.bindAll(["_updateLogo"],this),et.bindAll(["_updateCompact"],this)};xp.prototype.onAdd=function(Qt){this._map=Qt,this._container=mt.create("div","mapboxgl-ctrl");var gr=mt.create("a","mapboxgl-ctrl-logo");return gr.target="_blank",gr.rel="noopener nofollow",gr.href="https://www.mapbox.com/",gr.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),gr.setAttribute("rel","noopener nofollow"),this._container.appendChild(gr),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},xp.prototype.onRemove=function(){mt.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},xp.prototype.getDefaultPosition=function(){return"bottom-left"},xp.prototype._updateLogo=function(Qt){(!Qt||Qt.sourceDataType==="metadata")&&(this._container.style.display=this._logoRequired()?"block":"none")},xp.prototype._logoRequired=function(){if(this._map.style){var Qt=this._map.style.sourceCaches;for(var gr in Qt){var nr=Qt[gr].getSource();if(nr.mapbox_logo)return!0}return!1}},xp.prototype._updateCompact=function(){var Qt=this._container.children;if(Qt.length){var gr=Qt[0];this._map.getCanvasContainer().offsetWidth<250?gr.classList.add("mapboxgl-compact"):gr.classList.remove("mapboxgl-compact")}};var Tv=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};Tv.prototype.add=function(Qt){var gr=++this._id,nr=this._queue;return nr.push({callback:Qt,id:gr,cancelled:!1}),gr},Tv.prototype.remove=function(Qt){for(var gr=this._currentlyRunning,nr=gr?this._queue.concat(gr):this._queue,yr=0,$r=nr;yr<$r.length;yr+=1){var Kr=$r[yr];if(Kr.id===Qt){Kr.cancelled=!0;return}}},Tv.prototype.run=function(Qt){Qt===void 0&&(Qt=0);var gr=this._currentlyRunning=this._queue;this._queue=[];for(var nr=0,yr=gr;nrnr.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(nr.minPitch!=null&&nr.maxPitch!=null&&nr.minPitch>nr.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(nr.minPitch!=null&&nr.minPitchMm)throw new Error("maxPitch must be less than or equal to "+Mm);var $r=new $s(nr.minZoom,nr.maxZoom,nr.minPitch,nr.maxPitch,nr.renderWorldCopies);if(pr.call(this,$r,nr),this._interactive=nr.interactive,this._maxTileCacheSize=nr.maxTileCacheSize,this._failIfMajorPerformanceCaveat=nr.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=nr.preserveDrawingBuffer,this._antialias=nr.antialias,this._trackResize=nr.trackResize,this._bearingSnap=nr.bearingSnap,this._refreshExpiredTiles=nr.refreshExpiredTiles,this._fadeDuration=nr.fadeDuration,this._crossSourceCollisions=nr.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=nr.collectResourceTiming,this._renderTaskQueue=new Tv,this._controls=[],this._mapId=et.uniqueId(),this._locale=et.extend({},q0,nr.locale),this._clickTolerance=nr.clickTolerance,this._requestManager=new et.RequestManager(nr.transformRequest,nr.accessToken),typeof nr.container=="string"){if(this._container=et.window.document.getElementById(nr.container),!this._container)throw new Error("Container '"+nr.container+"' not found.")}else if(nr.container instanceof hx)this._container=nr.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");if(nr.maxBounds&&this.setMaxBounds(nr.maxBounds),et.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return yr._update(!1)}),this.on("moveend",function(){return yr._update(!1)}),this.on("zoom",function(){return yr._update(!0)}),typeof et.window<"u"&&(et.window.addEventListener("online",this._onWindowOnline,!1),et.window.addEventListener("resize",this._onWindowResize,!1),et.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new yp(this,nr);var Kr=typeof nr.hash=="string"&&nr.hash||void 0;this._hash=nr.hash&&new du(Kr).addTo(this),(!this._hash||!this._hash._onHashChange())&&(this.jumpTo({center:nr.center,zoom:nr.zoom,bearing:nr.bearing,pitch:nr.pitch}),nr.bounds&&(this.resize(),this.fitBounds(nr.bounds,et.extend({},nr.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=nr.localIdeographFontFamily,nr.style&&this.setStyle(nr.style,{localIdeographFontFamily:nr.localIdeographFontFamily}),nr.attributionControl&&this.addControl(new Fu({customAttribution:nr.customAttribution})),this.addControl(new xp,nr.logoPosition),this.on("style.load",function(){yr.transform.unmodified&&yr.jumpTo(yr.style.stylesheet)}),this.on("data",function(gn){yr._update(gn.dataType==="style"),yr.fire(new et.Event(gn.dataType+"data",gn))}),this.on("dataloading",function(gn){yr.fire(new et.Event(gn.dataType+"dataloading",gn))})}pr&&(Qt.__proto__=pr),Qt.prototype=Object.create(pr&&pr.prototype),Qt.prototype.constructor=Qt;var gr={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return Qt.prototype._getMapId=function(){return this._mapId},Qt.prototype.addControl=function(yr,$r){if($r===void 0&&(yr.getDefaultPosition?$r=yr.getDefaultPosition():$r="top-right"),!yr||!yr.onAdd)return this.fire(new et.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var Kr=yr.onAdd(this);this._controls.push(yr);var gn=this._controlPositions[$r];return $r.indexOf("bottom")!==-1?gn.insertBefore(Kr,gn.firstChild):gn.appendChild(Kr),this},Qt.prototype.removeControl=function(yr){if(!yr||!yr.onRemove)return this.fire(new et.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var $r=this._controls.indexOf(yr);return $r>-1&&this._controls.splice($r,1),yr.onRemove(this),this},Qt.prototype.hasControl=function(yr){return this._controls.indexOf(yr)>-1},Qt.prototype.resize=function(yr){var $r=this._containerDimensions(),Kr=$r[0],gn=$r[1];this._resizeCanvas(Kr,gn),this.transform.resize(Kr,gn),this.painter.resize(Kr,gn);var kn=!this._moving;return kn&&(this.stop(),this.fire(new et.Event("movestart",yr)).fire(new et.Event("move",yr))),this.fire(new et.Event("resize",yr)),kn&&this.fire(new et.Event("moveend",yr)),this},Qt.prototype.getBounds=function(){return this.transform.getBounds()},Qt.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},Qt.prototype.setMaxBounds=function(yr){return this.transform.setMaxBounds(et.LngLatBounds.convert(yr)),this._update()},Qt.prototype.setMinZoom=function(yr){if(yr=yr??t1,yr>=t1&&yr<=this.transform.maxZoom)return this.transform.minZoom=yr,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=yr,this._update(),this.getZoom()>yr&&this.setZoom(yr),this;throw new Error("maxZoom must be greater than the current minZoom")},Qt.prototype.getMaxZoom=function(){return this.transform.maxZoom},Qt.prototype.setMinPitch=function(yr){if(yr=yr??Bv,yr=Bv&&yr<=this.transform.maxPitch)return this.transform.minPitch=yr,this._update(),this.getPitch()Mm)throw new Error("maxPitch must be less than or equal to "+Mm);if(yr>=this.transform.minPitch)return this.transform.maxPitch=yr,this._update(),this.getPitch()>yr&&this.setPitch(yr),this;throw new Error("maxPitch must be greater than the current minPitch")},Qt.prototype.getMaxPitch=function(){return this.transform.maxPitch},Qt.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},Qt.prototype.setRenderWorldCopies=function(yr){return this.transform.renderWorldCopies=yr,this._update()},Qt.prototype.project=function(yr){return this.transform.locationPoint(et.LngLat.convert(yr))},Qt.prototype.unproject=function(yr){return this.transform.pointLocation(et.Point.convert(yr))},Qt.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},Qt.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},Qt.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},Qt.prototype._createDelegatedListener=function(yr,$r,Kr){var gn=this,kn;if(yr==="mouseenter"||yr==="mouseover"){var jn=!1,na=function(jo){var es=gn.getLayer($r)?gn.queryRenderedFeatures(jo.point,{layers:[$r]}):[];es.length?jn||(jn=!0,Kr.call(gn,new nn(yr,gn,jo.originalEvent,{features:es}))):jn=!1},uo=function(){jn=!1};return{layer:$r,listener:Kr,delegates:{mousemove:na,mouseout:uo}}}else if(yr==="mouseleave"||yr==="mouseout"){var lo=!1,Po=function(jo){var es=gn.getLayer($r)?gn.queryRenderedFeatures(jo.point,{layers:[$r]}):[];es.length?lo=!0:lo&&(lo=!1,Kr.call(gn,new nn(yr,gn,jo.originalEvent)))},Jo=function(jo){lo&&(lo=!1,Kr.call(gn,new nn(yr,gn,jo.originalEvent)))};return{layer:$r,listener:Kr,delegates:{mousemove:Po,mouseout:Jo}}}else{var Ko=function(jo){var es=gn.getLayer($r)?gn.queryRenderedFeatures(jo.point,{layers:[$r]}):[];es.length&&(jo.features=es,Kr.call(gn,jo),delete jo.features)};return{layer:$r,listener:Kr,delegates:(kn={},kn[yr]=Ko,kn)}}},Qt.prototype.on=function(yr,$r,Kr){if(Kr===void 0)return pr.prototype.on.call(this,yr,$r);var gn=this._createDelegatedListener(yr,$r,Kr);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[yr]=this._delegatedListeners[yr]||[],this._delegatedListeners[yr].push(gn);for(var kn in gn.delegates)this.on(kn,gn.delegates[kn]);return this},Qt.prototype.once=function(yr,$r,Kr){if(Kr===void 0)return pr.prototype.once.call(this,yr,$r);var gn=this._createDelegatedListener(yr,$r,Kr);for(var kn in gn.delegates)this.once(kn,gn.delegates[kn]);return this},Qt.prototype.off=function(yr,$r,Kr){var gn=this;if(Kr===void 0)return pr.prototype.off.call(this,yr,$r);var kn=function(jn){for(var na=jn[yr],uo=0;uo180;){var Kr=gr.locationPoint(pr);if(Kr.x>=0&&Kr.y>=0&&Kr.x<=gr.width&&Kr.y<=gr.height)break;pr.lng>gr.center.lng?pr.lng-=360:pr.lng+=360}return pr}var py={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function Qm(pr,Qt,gr){var nr=pr.classList;for(var yr in py)nr.remove("mapboxgl-"+gr+"-anchor-"+yr);nr.add("mapboxgl-"+gr+"-anchor-"+Qt)}var km=function(pr){function Qt(gr,nr){if(pr.call(this),(gr instanceof et.window.HTMLElement||nr)&&(gr=et.extend({element:gr},nr)),et.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=gr&&gr.anchor||"center",this._color=gr&&gr.color||"#3FB1CE",this._scale=gr&&gr.scale||1,this._draggable=gr&&gr.draggable||!1,this._clickTolerance=gr&&gr.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=gr&&gr.rotation||0,this._rotationAlignment=gr&&gr.rotationAlignment||"auto",this._pitchAlignment=gr&&gr.pitchAlignment&&gr.pitchAlignment!=="auto"?gr.pitchAlignment:this._rotationAlignment,!gr||!gr.element){this._defaultMarker=!0,this._element=mt.create("div"),this._element.setAttribute("aria-label","Map marker");var yr=mt.createNS("http://www.w3.org/2000/svg","svg"),$r=41,Kr=27;yr.setAttributeNS(null,"display","block"),yr.setAttributeNS(null,"height",$r+"px"),yr.setAttributeNS(null,"width",Kr+"px"),yr.setAttributeNS(null,"viewBox","0 0 "+Kr+" "+$r);var gn=mt.createNS("http://www.w3.org/2000/svg","g");gn.setAttributeNS(null,"stroke","none"),gn.setAttributeNS(null,"stroke-width","1"),gn.setAttributeNS(null,"fill","none"),gn.setAttributeNS(null,"fill-rule","evenodd");var kn=mt.createNS("http://www.w3.org/2000/svg","g");kn.setAttributeNS(null,"fill-rule","nonzero");var jn=mt.createNS("http://www.w3.org/2000/svg","g");jn.setAttributeNS(null,"transform","translate(3.0, 29.0)"),jn.setAttributeNS(null,"fill","#000000");for(var na=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}],uo=0,lo=na;uo=yr}this._isDragging&&(this._pos=nr.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new et.Event("dragstart"))),this.fire(new et.Event("drag")))},Qt.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new et.Event("dragend")),this._state="inactive"},Qt.prototype._addDragHandler=function(nr){this._element.contains(nr.originalEvent.target)&&(nr.preventDefault(),this._positionDelta=nr.point.sub(this._pos).add(this._offset),this._pointerdownPos=nr.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},Qt.prototype.setDraggable=function(nr){return this._draggable=!!nr,this._map&&(nr?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},Qt.prototype.isDraggable=function(){return this._draggable},Qt.prototype.setRotation=function(nr){return this._rotation=nr||0,this._update(),this},Qt.prototype.getRotation=function(){return this._rotation},Qt.prototype.setRotationAlignment=function(nr){return this._rotationAlignment=nr||"auto",this._update(),this},Qt.prototype.getRotationAlignment=function(){return this._rotationAlignment},Qt.prototype.setPitchAlignment=function(nr){return this._pitchAlignment=nr&&nr!=="auto"?nr:this._rotationAlignment,this._update(),this},Qt.prototype.getPitchAlignment=function(){return this._pitchAlignment},Qt}(et.Evented),vy={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Lm;function gy(pr){Lm!==void 0?pr(Lm):et.window.navigator.permissions!==void 0?et.window.navigator.permissions.query({name:"geolocation"}).then(function(Qt){Lm=Qt.state!=="denied",pr(Lm)}):(Lm=!!et.window.navigator.geolocation,pr(Lm))}var um=0,Dm=!1,Hy=function(pr){function Qt(gr){pr.call(this),this.options=et.extend({},vy,gr),et.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return pr&&(Qt.__proto__=pr),Qt.prototype=Object.create(pr&&pr.prototype),Qt.prototype.constructor=Qt,Qt.prototype.onAdd=function(nr){return this._map=nr,this._container=mt.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),gy(this._setupUI),this._container},Qt.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(et.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),mt.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,um=0,Dm=!1},Qt.prototype._isOutOfMapMaxBounds=function(nr){var yr=this._map.getMaxBounds(),$r=nr.coords;return yr&&($r.longitudeyr.getEast()||$r.latitudeyr.getNorth())},Qt.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break}},Qt.prototype._onSuccess=function(nr){if(this._map){if(this._isOutOfMapMaxBounds(nr)){this._setErrorState(),this.fire(new et.Event("outofmaxbounds",nr)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=nr,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(nr),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera(nr),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new et.Event("geolocate",nr)),this._finish()}},Qt.prototype._updateCamera=function(nr){var yr=new et.LngLat(nr.coords.longitude,nr.coords.latitude),$r=nr.coords.accuracy,Kr=this._map.getBearing(),gn=et.extend({bearing:Kr},this.options.fitBoundsOptions);this._map.fitBounds(yr.toBounds($r),gn,{geolocateSource:!0})},Qt.prototype._updateMarker=function(nr){if(nr){var yr=new et.LngLat(nr.coords.longitude,nr.coords.latitude);this._accuracyCircleMarker.setLngLat(yr).addTo(this._map),this._userLocationDotMarker.setLngLat(yr).addTo(this._map),this._accuracy=nr.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},Qt.prototype._updateCircleRadius=function(){var nr=this._map._container.clientHeight/2,yr=this._map.unproject([0,nr]),$r=this._map.unproject([1,nr]),Kr=yr.distanceTo($r),gn=Math.ceil(2*this._accuracy/Kr);this._circleElement.style.width=gn+"px",this._circleElement.style.height=gn+"px"},Qt.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},Qt.prototype._onError=function(nr){if(this._map){if(this.options.trackUserLocation)if(nr.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var yr=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=yr,this._geolocateButton.setAttribute("aria-label",yr),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(nr.code===3&&Dm)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new et.Event("error",nr)),this._finish()}},Qt.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},Qt.prototype._setupUI=function(nr){var yr=this;if(this._container.addEventListener("contextmenu",function(gn){return gn.preventDefault()}),this._geolocateButton=mt.create("button","mapboxgl-ctrl-geolocate",this._container),mt.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",nr===!1){et.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var $r=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=$r,this._geolocateButton.setAttribute("aria-label",$r)}else{var Kr=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=Kr,this._geolocateButton.setAttribute("aria-label",Kr)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=mt.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new km(this._dotElement),this._circleElement=mt.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new km({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(gn){var kn=gn.originalEvent&&gn.originalEvent.type==="resize";!gn.geolocateSource&&yr._watchState==="ACTIVE_LOCK"&&!kn&&(yr._watchState="BACKGROUND",yr._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),yr._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),yr.fire(new et.Event("trackuserlocationend")))})},Qt.prototype.trigger=function(){if(!this._setup)return et.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new et.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":um--,Dm=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new et.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new et.Event("trackuserlocationstart"));break}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error");break}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),um++;var nr;um>1?(nr={maximumAge:6e5,timeout:0},Dm=!0):(nr=this.options.positionOptions,Dm=!1),this._geolocationWatchID=et.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,nr)}}else et.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},Qt.prototype._clearWatch=function(){et.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},Qt}(et.Evented),px={maxWidth:100,unit:"metric"},Pm=function(Qt){this.options=et.extend({},px,Qt),et.bindAll(["_onMove","setUnit"],this)};Pm.prototype.getDefaultPosition=function(){return"bottom-left"},Pm.prototype._onMove=function(){r1(this._map,this._container,this.options)},Pm.prototype.onAdd=function(Qt){return this._map=Qt,this._container=mt.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",Qt.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Pm.prototype.onRemove=function(){mt.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Pm.prototype.setUnit=function(Qt){this.options.unit=Qt,r1(this._map,this._container,this.options)};function r1(pr,Qt,gr){var nr=gr&&gr.maxWidth||100,yr=pr._container.clientHeight/2,$r=pr.unproject([0,yr]),Kr=pr.unproject([nr,yr]),gn=$r.distanceTo(Kr);if(gr&&gr.unit==="imperial"){var kn=3.2808*gn;if(kn>5280){var jn=kn/5280;qm(Qt,nr,jn,pr._getUIString("ScaleControl.Miles"))}else qm(Qt,nr,kn,pr._getUIString("ScaleControl.Feet"))}else if(gr&&gr.unit==="nautical"){var na=gn/1852;qm(Qt,nr,na,pr._getUIString("ScaleControl.NauticalMiles"))}else gn>=1e3?qm(Qt,nr,gn/1e3,pr._getUIString("ScaleControl.Kilometers")):qm(Qt,nr,gn,pr._getUIString("ScaleControl.Meters"))}function qm(pr,Qt,gr,nr){var yr=Px(gr),$r=yr/gr;pr.style.width=Qt*$r+"px",pr.innerHTML=yr+" "+nr}function vx(pr){var Qt=Math.pow(10,Math.ceil(-Math.log(pr)/Math.LN10));return Math.round(pr*Qt)/Qt}function Px(pr){var Qt=Math.pow(10,(""+Math.floor(pr)).length-1),gr=pr/Qt;return gr=gr>=10?10:gr>=5?5:gr>=3?3:gr>=2?2:gr>=1?1:vx(gr),Qt*gr}var B0=function(Qt){this._fullscreen=!1,Qt&&Qt.container&&(Qt.container instanceof et.window.HTMLElement?this._container=Qt.container:et.warnOnce("Full screen control 'container' must be a DOM element.")),et.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in et.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in et.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in et.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in et.window.document&&(this._fullscreenchange="MSFullscreenChange")};B0.prototype.onAdd=function(Qt){return this._map=Qt,this._container||(this._container=this._map.getContainer()),this._controlContainer=mt.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",et.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},B0.prototype.onRemove=function(){mt.remove(this._controlContainer),this._map=null,et.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},B0.prototype._checkFullscreenSupport=function(){return!!(et.window.document.fullscreenEnabled||et.window.document.mozFullScreenEnabled||et.window.document.msFullscreenEnabled||et.window.document.webkitFullscreenEnabled)},B0.prototype._setupUI=function(){var Qt=this._fullscreenButton=mt.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);mt.create("span","mapboxgl-ctrl-icon",Qt).setAttribute("aria-hidden",!0),Qt.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),et.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},B0.prototype._updateTitle=function(){var Qt=this._getTitle();this._fullscreenButton.setAttribute("aria-label",Qt),this._fullscreenButton.title=Qt},B0.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},B0.prototype._isFullscreen=function(){return this._fullscreen},B0.prototype._changeIcon=function(){var Qt=et.window.document.fullscreenElement||et.window.document.mozFullScreenElement||et.window.document.webkitFullscreenElement||et.window.document.msFullscreenElement;Qt===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},B0.prototype._onClickFullscreen=function(){this._isFullscreen()?et.window.document.exitFullscreen?et.window.document.exitFullscreen():et.window.document.mozCancelFullScreen?et.window.document.mozCancelFullScreen():et.window.document.msExitFullscreen?et.window.document.msExitFullscreen():et.window.document.webkitCancelFullScreen&&et.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var Nx={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},Ox=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),cm=function(pr){function Qt(gr){pr.call(this),this.options=et.extend(Object.create(Nx),gr),et.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return pr&&(Qt.__proto__=pr),Qt.prototype=Object.create(pr&&pr.prototype),Qt.prototype.constructor=Qt,Qt.prototype.addTo=function(nr){return this._map&&this.remove(),this._map=nr,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new et.Event("open")),this},Qt.prototype.isOpen=function(){return!!this._map},Qt.prototype.remove=function(){return this._content&&mt.remove(this._content),this._container&&(mt.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new et.Event("close")),this},Qt.prototype.getLngLat=function(){return this._lngLat},Qt.prototype.setLngLat=function(nr){return this._lngLat=et.LngLat.convert(nr),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},Qt.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},Qt.prototype.getElement=function(){return this._container},Qt.prototype.setText=function(nr){return this.setDOMContent(et.window.document.createTextNode(nr))},Qt.prototype.setHTML=function(nr){var yr=et.window.document.createDocumentFragment(),$r=et.window.document.createElement("body"),Kr;for($r.innerHTML=nr;Kr=$r.firstChild,!!Kr;)yr.appendChild(Kr);return this.setDOMContent(yr)},Qt.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},Qt.prototype.setMaxWidth=function(nr){return this.options.maxWidth=nr,this._update(),this},Qt.prototype.setDOMContent=function(nr){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=mt.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(nr),this._createCloseButton(),this._update(),this._focusFirstElement(),this},Qt.prototype.addClassName=function(nr){this._container&&this._container.classList.add(nr)},Qt.prototype.removeClassName=function(nr){this._container&&this._container.classList.remove(nr)},Qt.prototype.setOffset=function(nr){return this.options.offset=nr,this._update(),this},Qt.prototype.toggleClassName=function(nr){if(this._container)return this._container.classList.toggle(nr)},Qt.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=mt.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},Qt.prototype._onMouseUp=function(nr){this._update(nr.point)},Qt.prototype._onMouseMove=function(nr){this._update(nr.point)},Qt.prototype._onDrag=function(nr){this._update(nr.point)},Qt.prototype._update=function(nr){var yr=this,$r=this._lngLat||this._trackPointer;if(!(!this._map||!$r||!this._content)&&(this._container||(this._container=mt.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=mt.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(Po){return yr._container.classList.add(Po)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=F0(this._lngLat,this._pos,this._map.transform)),!(this._trackPointer&&!nr))){var Kr=this._pos=this._trackPointer&&nr?nr:this._map.project(this._lngLat),gn=this.options.anchor,kn=Gy(this.options.offset);if(!gn){var jn=this._container.offsetWidth,na=this._container.offsetHeight,uo;Kr.y+kn.bottom.ythis._map.transform.height-na?uo=["bottom"]:uo=[],Kr.xthis._map.transform.width-jn/2&&uo.push("right"),uo.length===0?gn="bottom":gn=uo.join("-")}var lo=Kr.add(kn[gn]).round();mt.setTransform(this._container,py[gn]+" translate("+lo.x+"px,"+lo.y+"px)"),Qm(this._container,gn,"popup")}},Qt.prototype._focusFirstElement=function(){if(!(!this.options.focusAfterOpen||!this._container)){var nr=this._container.querySelector(Ox);nr&&nr.focus()}},Qt.prototype._onClose=function(){this.remove()},Qt}(et.Evented);function Gy(pr){if(pr)if(typeof pr=="number"){var Qt=Math.round(Math.sqrt(.5*Math.pow(pr,2)));return{center:new et.Point(0,0),top:new et.Point(0,pr),"top-left":new et.Point(Qt,Qt),"top-right":new et.Point(-Qt,Qt),bottom:new et.Point(0,-pr),"bottom-left":new et.Point(Qt,-Qt),"bottom-right":new et.Point(-Qt,-Qt),left:new et.Point(pr,0),right:new et.Point(-pr,0)}}else if(pr instanceof et.Point||Array.isArray(pr)){var gr=et.Point.convert(pr);return{center:gr,top:gr,"top-left":gr,"top-right":gr,bottom:gr,"bottom-left":gr,"bottom-right":gr,left:gr,right:gr}}else return{center:et.Point.convert(pr.center||[0,0]),top:et.Point.convert(pr.top||[0,0]),"top-left":et.Point.convert(pr["top-left"]||[0,0]),"top-right":et.Point.convert(pr["top-right"]||[0,0]),bottom:et.Point.convert(pr.bottom||[0,0]),"bottom-left":et.Point.convert(pr["bottom-left"]||[0,0]),"bottom-right":et.Point.convert(pr["bottom-right"]||[0,0]),left:et.Point.convert(pr.left||[0,0]),right:et.Point.convert(pr.right||[0,0])};else return Gy(new et.Point(0,0))}var zp={version:et.version,supported:Et,setRTLTextPlugin:et.setRTLTextPlugin,getRTLTextPluginStatus:et.getRTLTextPluginStatus,Map:Im,NavigationControl:O1,GeolocateControl:Hy,AttributionControl:Fu,ScaleControl:Pm,FullscreenControl:B0,Popup:cm,Marker:km,Style:Sv,LngLat:et.LngLat,LngLatBounds:et.LngLatBounds,Point:et.Point,MercatorCoordinate:et.MercatorCoordinate,Evented:et.Evented,config:et.config,prewarm:Bn,clearPrewarmedResources:xa,get accessToken(){return et.config.ACCESS_TOKEN},set accessToken(pr){et.config.ACCESS_TOKEN=pr},get baseApiUrl(){return et.config.API_URL},set baseApiUrl(pr){et.config.API_URL=pr},get workerCount(){return po.workerCount},set workerCount(pr){po.workerCount=pr},get maxParallelImageRequests(){return et.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(pr){et.config.MAX_PARALLEL_IMAGE_REQUESTS=pr},clearStorage:function(Qt){et.clearTileCache(Qt)},workerUrl:""};return zp}),it})},3108:function(Ct,Rt,o){Ct.exports=o(26099)},26099:function(Ct,Rt,o){var it=o(64928),xt=o(32420),et=o(51160),Et=o(76752),mt=o(55616),ut=o(31264),ht=o(47520),j=o(18400),_=o(72512),rt=o(76244),tt=1073741824;Ct.exports=function(nt,vt){vt||(vt={}),nt=ht(nt,"float64"),vt=mt(vt,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});var dt=ut(vt.maxDepth,255),bt=ut(vt.bounds,Et(nt,2));bt[0]===bt[2]&&bt[2]++,bt[1]===bt[3]&&bt[3]++;var ft=st(nt,bt),at=nt.length>>>1,yt;vt.dtype||(vt.dtype="array"),typeof vt.dtype=="string"?yt=new(_(vt.dtype))(at):vt.dtype&&(yt=vt.dtype,Array.isArray(yt)&&(yt.length=at));for(var St=0;Stdt||er>tt){for(var jt=0;jtzr||sr>Br||Zt=or)&&Er!==Rr){var kr=_t[_r];Rr===void 0&&(Rr=kr.length);for(var Nr=Er;Nr=lr&&sn<=Yt&&un>=Jt&&un<=rr&&cr.push(Qr)}var qr=Mt[_r],Xr=qr[Er*4+0],ln=qr[Er*4+1],mn=qr[Er*4+2],pn=qr[Er*4+3],En=br(qr,Er+1),Jr=Ar*.5,Or=_r+1;hr(Tr,Ir,Jr,Or,Xr,ln||mn||pn||En),hr(Tr,Ir+Jr,Jr,Or,ln,mn||pn||En),hr(Tr+Jr,Ir,Jr,Or,mn,pn||En),hr(Tr+Jr,Ir+Jr,Jr,Or,pn,En)}}}function br(Tr,Ir){for(var Ar=null,_r=0;Ar===null;)if(Ar=Tr[Ir*4+_r],_r++,_r>Tr.length)return null;return Ar}return cr}function Nt(Ut,Ht,Vt,Xt,qt){for(var er=[],lr=0;lr0){_+=Math.abs(ut(j[0]));for(var rt=1;rt2){for(vt=0;vt=0))throw new Error("precision must be a positive number");var It=Math.pow(10,ct||0);return Math.round(wt*It)/It}Rt.round=ot;function nt(wt,ct){ct===void 0&&(ct="kilometers");var It=Rt.factors[ct];if(!It)throw new Error(ct+" units is invalid");return wt*It}Rt.radiansToLength=nt;function vt(wt,ct){ct===void 0&&(ct="kilometers");var It=Rt.factors[ct];if(!It)throw new Error(ct+" units is invalid");return wt/It}Rt.lengthToRadians=vt;function dt(wt,ct){return ft(vt(wt,ct))}Rt.lengthToDegrees=dt;function bt(wt){var ct=wt%360;return ct<0&&(ct+=360),ct}Rt.bearingToAzimuth=bt;function ft(wt){var ct=wt%(2*Math.PI);return ct*180/Math.PI}Rt.radiansToDegrees=ft;function at(wt){var ct=wt%360;return ct*Math.PI/180}Rt.degreesToRadians=at;function yt(wt,ct,It){if(ct===void 0&&(ct="kilometers"),It===void 0&&(It="kilometers"),!(wt>=0))throw new Error("length must be a positive number");return nt(vt(wt,ct),It)}Rt.convertLength=yt;function St(wt,ct,It){if(ct===void 0&&(ct="meters"),It===void 0&&(It="kilometers"),!(wt>=0))throw new Error("area must be a positive number");var At=Rt.areaFactors[ct];if(!At)throw new Error("invalid original units");var Ot=Rt.areaFactors[It];if(!Ot)throw new Error("invalid final units");return wt/At*Ot}Rt.convertArea=St;function _t(wt){return!isNaN(wt)&&wt!==null&&!Array.isArray(wt)}Rt.isNumber=_t;function Mt(wt){return!!wt&&wt.constructor===Object}Rt.isObject=Mt;function Tt(wt){if(!wt)throw new Error("bbox is required");if(!Array.isArray(wt))throw new Error("bbox must be an Array");if(wt.length!==4&&wt.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");wt.forEach(function(ct){if(!_t(ct))throw new Error("bbox must only contain numbers")})}Rt.validateBBox=Tt;function kt(wt){if(!wt)throw new Error("id is required");if(["string","number"].indexOf(typeof wt)===-1)throw new Error("id must be a number or a string")}Rt.validateId=kt},3256:function(Ct,Rt,o){Object.defineProperty(Rt,"__esModule",{value:!0});var it=o(46284);function xt(at,yt,St){if(at!==null)for(var _t,Mt,Tt,kt,wt,ct,It,At=0,Ot=0,Pt,zt=at.type,Dt=zt==="FeatureCollection",Nt=zt==="Feature",$t=Dt?at.features.length:1,Ut=0;Ut<$t;Ut++){It=Dt?at.features[Ut].geometry:Nt?at.geometry:at,Pt=It?It.type==="GeometryCollection":!1,wt=Pt?It.geometries.length:1;for(var Ht=0;Htct||Dt>It||Nt>At){wt=Ot,ct=_t,It=Dt,At=Nt,Tt=0;return}var $t=it.lineString([wt,Ot],St.properties);if(yt($t,_t,Mt,Nt,Tt)===!1)return!1;Tt++,wt=Ot})===!1)return!1}}})}function nt(at,yt,St){var _t=St,Mt=!1;return ot(at,function(Tt,kt,wt,ct,It){Mt===!1&&St===void 0?_t=Tt:_t=yt(_t,Tt,kt,wt,ct,It),Mt=!0}),_t}function vt(at,yt){if(!at)throw new Error("geojson is required");tt(at,function(St,_t,Mt){if(St.geometry!==null){var Tt=St.geometry.type,kt=St.geometry.coordinates;switch(Tt){case"LineString":if(yt(St,_t,Mt,0,0)===!1)return!1;break;case"Polygon":for(var wt=0;wtmt[0]&&(Et[0]=mt[0]),Et[1]>mt[1]&&(Et[1]=mt[1]),Et[2]=0))throw new Error("precision must be a positive number");var It=Math.pow(10,ct||0);return Math.round(wt*It)/It}Rt.round=ot;function nt(wt,ct){ct===void 0&&(ct="kilometers");var It=Rt.factors[ct];if(!It)throw new Error(ct+" units is invalid");return wt*It}Rt.radiansToLength=nt;function vt(wt,ct){ct===void 0&&(ct="kilometers");var It=Rt.factors[ct];if(!It)throw new Error(ct+" units is invalid");return wt/It}Rt.lengthToRadians=vt;function dt(wt,ct){return ft(vt(wt,ct))}Rt.lengthToDegrees=dt;function bt(wt){var ct=wt%360;return ct<0&&(ct+=360),ct}Rt.bearingToAzimuth=bt;function ft(wt){var ct=wt%(2*Math.PI);return ct*180/Math.PI}Rt.radiansToDegrees=ft;function at(wt){var ct=wt%360;return ct*Math.PI/180}Rt.degreesToRadians=at;function yt(wt,ct,It){if(ct===void 0&&(ct="kilometers"),It===void 0&&(It="kilometers"),!(wt>=0))throw new Error("length must be a positive number");return nt(vt(wt,ct),It)}Rt.convertLength=yt;function St(wt,ct,It){if(ct===void 0&&(ct="meters"),It===void 0&&(It="kilometers"),!(wt>=0))throw new Error("area must be a positive number");var At=Rt.areaFactors[ct];if(!At)throw new Error("invalid original units");var Ot=Rt.areaFactors[It];if(!Ot)throw new Error("invalid final units");return wt/At*Ot}Rt.convertArea=St;function _t(wt){return!isNaN(wt)&&wt!==null&&!Array.isArray(wt)}Rt.isNumber=_t;function Mt(wt){return!!wt&&wt.constructor===Object}Rt.isObject=Mt;function Tt(wt){if(!wt)throw new Error("bbox is required");if(!Array.isArray(wt))throw new Error("bbox must be an Array");if(wt.length!==4&&wt.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");wt.forEach(function(ct){if(!_t(ct))throw new Error("bbox must only contain numbers")})}Rt.validateBBox=Tt;function kt(wt){if(!wt)throw new Error("id is required");if(["string","number"].indexOf(typeof wt)===-1)throw new Error("id must be a number or a string")}Rt.validateId=kt},84880:function(Ct,Rt,o){Object.defineProperty(Rt,"__esModule",{value:!0});var it=o(76796);function xt(at,yt,St){if(at!==null)for(var _t,Mt,Tt,kt,wt,ct,It,At=0,Ot=0,Pt,zt=at.type,Dt=zt==="FeatureCollection",Nt=zt==="Feature",$t=Dt?at.features.length:1,Ut=0;Ut<$t;Ut++){It=Dt?at.features[Ut].geometry:Nt?at.geometry:at,Pt=It?It.type==="GeometryCollection":!1,wt=Pt?It.geometries.length:1;for(var Ht=0;Htct||Dt>It||Nt>At){wt=Ot,ct=_t,It=Dt,At=Nt,Tt=0;return}var $t=it.lineString([wt,Ot],St.properties);if(yt($t,_t,Mt,Nt,Tt)===!1)return!1;Tt++,wt=Ot})===!1)return!1}}})}function nt(at,yt,St){var _t=St,Mt=!1;return ot(at,function(Tt,kt,wt,ct,It){Mt===!1&&St===void 0?_t=Tt:_t=yt(_t,Tt,kt,wt,ct,It),Mt=!0}),_t}function vt(at,yt){if(!at)throw new Error("geojson is required");tt(at,function(St,_t,Mt){if(St.geometry!==null){var Tt=St.geometry.type,kt=St.geometry.coordinates;switch(Tt){case"LineString":if(yt(St,_t,Mt,0,0)===!1)return!1;break;case"Polygon":for(var wt=0;wt=0))throw new Error("precision must be a positive number");var $t=Math.pow(10,Nt||0);return Math.round(Dt*$t)/$t}Rt.round=ot;function nt(Dt,Nt){Nt===void 0&&(Nt="kilometers");var $t=Rt.factors[Nt];if(!$t)throw new Error(Nt+" units is invalid");return Dt*$t}Rt.radiansToLength=nt;function vt(Dt,Nt){Nt===void 0&&(Nt="kilometers");var $t=Rt.factors[Nt];if(!$t)throw new Error(Nt+" units is invalid");return Dt/$t}Rt.lengthToRadians=vt;function dt(Dt,Nt){return ft(vt(Dt,Nt))}Rt.lengthToDegrees=dt;function bt(Dt){var Nt=Dt%360;return Nt<0&&(Nt+=360),Nt}Rt.bearingToAzimuth=bt;function ft(Dt){var Nt=Dt%(2*Math.PI);return Nt*180/Math.PI}Rt.radiansToDegrees=ft;function at(Dt){var Nt=Dt%360;return Nt*Math.PI/180}Rt.degreesToRadians=at;function yt(Dt,Nt,$t){if(Nt===void 0&&(Nt="kilometers"),$t===void 0&&($t="kilometers"),!(Dt>=0))throw new Error("length must be a positive number");return nt(vt(Dt,Nt),$t)}Rt.convertLength=yt;function St(Dt,Nt,$t){if(Nt===void 0&&(Nt="meters"),$t===void 0&&($t="kilometers"),!(Dt>=0))throw new Error("area must be a positive number");var Ut=Rt.areaFactors[Nt];if(!Ut)throw new Error("invalid original units");var Ht=Rt.areaFactors[$t];if(!Ht)throw new Error("invalid final units");return Dt/Ut*Ht}Rt.convertArea=St;function _t(Dt){return!isNaN(Dt)&&Dt!==null&&!Array.isArray(Dt)&&!/^\s*$/.test(Dt)}Rt.isNumber=_t;function Mt(Dt){return!!Dt&&Dt.constructor===Object}Rt.isObject=Mt;function Tt(Dt){if(!Dt)throw new Error("bbox is required");if(!Array.isArray(Dt))throw new Error("bbox must be an Array");if(Dt.length!==4&&Dt.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");Dt.forEach(function(Nt){if(!_t(Nt))throw new Error("bbox must only contain numbers")})}Rt.validateBBox=Tt;function kt(Dt){if(!Dt)throw new Error("id is required");if(["string","number"].indexOf(typeof Dt)===-1)throw new Error("id must be a number or a string")}Rt.validateId=kt;function wt(){throw new Error("method has been renamed to `radiansToDegrees`")}Rt.radians2degrees=wt;function ct(){throw new Error("method has been renamed to `degreesToRadians`")}Rt.degrees2radians=ct;function It(){throw new Error("method has been renamed to `lengthToDegrees`")}Rt.distanceToDegrees=It;function At(){throw new Error("method has been renamed to `lengthToRadians`")}Rt.distanceToRadians=At;function Ot(){throw new Error("method has been renamed to `radiansToLength`")}Rt.radiansToDistance=Ot;function Pt(){throw new Error("method has been renamed to `bearingToAzimuth`")}Rt.bearingToAngle=Pt;function zt(){throw new Error("method has been renamed to `convertLength`")}Rt.convertDistance=zt},43752:function(Ct,Rt,o){Object.defineProperty(Rt,"__esModule",{value:!0});var it=o(49840);function xt(at,yt,St){if(at!==null)for(var _t,Mt,Tt,kt,wt,ct,It,At=0,Ot=0,Pt,zt=at.type,Dt=zt==="FeatureCollection",Nt=zt==="Feature",$t=Dt?at.features.length:1,Ut=0;Ut<$t;Ut++){It=Dt?at.features[Ut].geometry:Nt?at.geometry:at,Pt=It?It.type==="GeometryCollection":!1,wt=Pt?It.geometries.length:1;for(var Ht=0;Htct||Dt>It||Nt>At){wt=Ot,ct=_t,It=Dt,At=Nt,Tt=0;return}var $t=it.lineString([wt,Ot],St.properties);if(yt($t,_t,Mt,Nt,Tt)===!1)return!1;Tt++,wt=Ot})===!1)return!1}}})}function nt(at,yt,St){var _t=St,Mt=!1;return ot(at,function(Tt,kt,wt,ct,It){Mt===!1&&St===void 0?_t=Tt:_t=yt(_t,Tt,kt,wt,ct,It),Mt=!0}),_t}function vt(at,yt){if(!at)throw new Error("geojson is required");tt(at,function(St,_t,Mt){if(St.geometry!==null){var Tt=St.geometry.type,kt=St.geometry.coordinates;switch(Tt){case"LineString":if(yt(St,_t,Mt,0,0)===!1)return!1;break;case"Polygon":for(var wt=0;wtEt&&(Et=o[ut]),o[ut]>16,gn>>16],u_pixel_coord_lower:[Kr&65535,gn&65535]}}function Hv(hr,Qt,vr,nr){var yr=vr.imageManager.getPattern(hr.from.toString()),$r=vr.imageManager.getPattern(hr.to.toString()),Kr=vr.imageManager.getPixelSize(),gn=Kr.width,kn=Kr.height,jn=Math.pow(2,nr.tileID.overscaledZ),na=nr.tileSize*Math.pow(2,vr.transform.tileZoom)/jn,uo=na*(nr.tileID.canonical.x+nr.tileID.wrap*jn),lo=na*nr.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:yr.tl,u_pattern_br_a:yr.br,u_pattern_tl_b:$r.tl,u_pattern_br_b:$r.br,u_texsize:[gn,kn],u_mix:Qt.t,u_pattern_size_a:yr.displaySize,u_pattern_size_b:$r.displaySize,u_scale_a:Qt.fromScale,u_scale_b:Qt.toScale,u_tile_units_to_pixels:1/ms(nr,1,vr.transform.tileZoom),u_pixel_coord_upper:[uo>>16,lo>>16],u_pixel_coord_lower:[uo&65535,lo&65535]}}var j0=function(hr,Qt){return{u_matrix:new et.UniformMatrix4f(hr,Qt.u_matrix),u_lightpos:new et.Uniform3f(hr,Qt.u_lightpos),u_lightintensity:new et.Uniform1f(hr,Qt.u_lightintensity),u_lightcolor:new et.Uniform3f(hr,Qt.u_lightcolor),u_vertical_gradient:new et.Uniform1f(hr,Qt.u_vertical_gradient),u_opacity:new et.Uniform1f(hr,Qt.u_opacity)}},Ep=function(hr,Qt){return{u_matrix:new et.UniformMatrix4f(hr,Qt.u_matrix),u_lightpos:new et.Uniform3f(hr,Qt.u_lightpos),u_lightintensity:new et.Uniform1f(hr,Qt.u_lightintensity),u_lightcolor:new et.Uniform3f(hr,Qt.u_lightcolor),u_vertical_gradient:new et.Uniform1f(hr,Qt.u_vertical_gradient),u_height_factor:new et.Uniform1f(hr,Qt.u_height_factor),u_image:new et.Uniform1i(hr,Qt.u_image),u_texsize:new et.Uniform2f(hr,Qt.u_texsize),u_pixel_coord_upper:new et.Uniform2f(hr,Qt.u_pixel_coord_upper),u_pixel_coord_lower:new et.Uniform2f(hr,Qt.u_pixel_coord_lower),u_scale:new et.Uniform3f(hr,Qt.u_scale),u_fade:new et.Uniform1f(hr,Qt.u_fade),u_opacity:new et.Uniform1f(hr,Qt.u_opacity)}},X1=function(hr,Qt,vr,nr){var yr=Qt.style.light,$r=yr.properties.get("position"),Kr=[$r.x,$r.y,$r.z],gn=et.create$1();yr.properties.get("anchor")==="viewport"&&et.fromRotation(gn,-Qt.transform.angle),et.transformMat3(Kr,Kr,gn);var kn=yr.properties.get("color");return{u_matrix:hr,u_lightpos:Kr,u_lightintensity:yr.properties.get("intensity"),u_lightcolor:[kn.r,kn.g,kn.b],u_vertical_gradient:+vr,u_opacity:nr}},Nv=function(hr,Qt,vr,nr,yr,$r,Kr){return et.extend(X1(hr,Qt,vr,nr),W0($r,Qt,Kr),{u_height_factor:-Math.pow(2,yr.overscaledZ)/Kr.tileSize/8})},g0=function(hr,Qt){return{u_matrix:new et.UniformMatrix4f(hr,Qt.u_matrix)}},Y0=function(hr,Qt){return{u_matrix:new et.UniformMatrix4f(hr,Qt.u_matrix),u_image:new et.Uniform1i(hr,Qt.u_image),u_texsize:new et.Uniform2f(hr,Qt.u_texsize),u_pixel_coord_upper:new et.Uniform2f(hr,Qt.u_pixel_coord_upper),u_pixel_coord_lower:new et.Uniform2f(hr,Qt.u_pixel_coord_lower),u_scale:new et.Uniform3f(hr,Qt.u_scale),u_fade:new et.Uniform1f(hr,Qt.u_fade)}},pp=function(hr,Qt){return{u_matrix:new et.UniformMatrix4f(hr,Qt.u_matrix),u_world:new et.Uniform2f(hr,Qt.u_world)}},vp=function(hr,Qt){return{u_matrix:new et.UniformMatrix4f(hr,Qt.u_matrix),u_world:new et.Uniform2f(hr,Qt.u_world),u_image:new et.Uniform1i(hr,Qt.u_image),u_texsize:new et.Uniform2f(hr,Qt.u_texsize),u_pixel_coord_upper:new et.Uniform2f(hr,Qt.u_pixel_coord_upper),u_pixel_coord_lower:new et.Uniform2f(hr,Qt.u_pixel_coord_lower),u_scale:new et.Uniform3f(hr,Qt.u_scale),u_fade:new et.Uniform1f(hr,Qt.u_fade)}},m0=function(hr){return{u_matrix:hr}},Gv=function(hr,Qt,vr,nr){return et.extend(m0(hr),W0(vr,Qt,nr))},wv=function(hr,Qt){return{u_matrix:hr,u_world:Qt}},K1=function(hr,Qt,vr,nr,yr){return et.extend(Gv(hr,Qt,vr,nr),{u_world:yr})},Gm=function(hr,Qt){return{u_camera_to_center_distance:new et.Uniform1f(hr,Qt.u_camera_to_center_distance),u_scale_with_map:new et.Uniform1i(hr,Qt.u_scale_with_map),u_pitch_with_map:new et.Uniform1i(hr,Qt.u_pitch_with_map),u_extrude_scale:new et.Uniform2f(hr,Qt.u_extrude_scale),u_device_pixel_ratio:new et.Uniform1f(hr,Qt.u_device_pixel_ratio),u_matrix:new et.UniformMatrix4f(hr,Qt.u_matrix)}},Z1=function(hr,Qt,vr,nr){var yr=hr.transform,$r,Kr;if(nr.paint.get("circle-pitch-alignment")==="map"){var gn=ms(vr,1,yr.zoom);$r=!0,Kr=[gn,gn]}else $r=!1,Kr=yr.pixelsToGLUnits;return{u_camera_to_center_distance:yr.cameraToCenterDistance,u_scale_with_map:+(nr.paint.get("circle-pitch-scale")==="map"),u_matrix:hr.translatePosMatrix(Qt.posMatrix,vr,nr.paint.get("circle-translate"),nr.paint.get("circle-translate-anchor")),u_pitch_with_map:+$r,u_device_pixel_ratio:et.browser.devicePixelRatio,u_extrude_scale:Kr}},Vm=function(hr,Qt){return{u_matrix:new et.UniformMatrix4f(hr,Qt.u_matrix),u_camera_to_center_distance:new et.Uniform1f(hr,Qt.u_camera_to_center_distance),u_pixels_to_tile_units:new et.Uniform1f(hr,Qt.u_pixels_to_tile_units),u_extrude_scale:new et.Uniform2f(hr,Qt.u_extrude_scale),u_overscale_factor:new et.Uniform1f(hr,Qt.u_overscale_factor)}},A1=function(hr,Qt){return{u_matrix:new et.UniformMatrix4f(hr,Qt.u_matrix),u_inv_matrix:new et.UniformMatrix4f(hr,Qt.u_inv_matrix),u_camera_to_center_distance:new et.Uniform1f(hr,Qt.u_camera_to_center_distance),u_viewport_size:new et.Uniform2f(hr,Qt.u_viewport_size)}},X0=function(hr,Qt,vr){var nr=ms(vr,1,Qt.zoom),yr=Math.pow(2,Qt.zoom-vr.tileID.overscaledZ),$r=vr.tileID.overscaleFactor();return{u_matrix:hr,u_camera_to_center_distance:Qt.cameraToCenterDistance,u_pixels_to_tile_units:nr,u_extrude_scale:[Qt.pixelsToGLUnits[0]/(nr*yr),Qt.pixelsToGLUnits[1]/(nr*yr)],u_overscale_factor:$r}},_1=function(hr,Qt,vr){return{u_matrix:hr,u_inv_matrix:Qt,u_camera_to_center_distance:vr.cameraToCenterDistance,u_viewport_size:[vr.width,vr.height]}},y0=function(hr,Qt){return{u_color:new et.UniformColor(hr,Qt.u_color),u_matrix:new et.UniformMatrix4f(hr,Qt.u_matrix),u_overlay:new et.Uniform1i(hr,Qt.u_overlay),u_overlay_scale:new et.Uniform1f(hr,Qt.u_overlay_scale)}},Sp=function(hr,Qt,vr){return vr===void 0&&(vr=1),{u_matrix:hr,u_color:Qt,u_overlay:0,u_overlay_scale:vr}},Cv=function(hr,Qt){return{u_matrix:new et.UniformMatrix4f(hr,Qt.u_matrix)}},S1=function(hr){return{u_matrix:hr}},cy=function(hr,Qt){return{u_extrude_scale:new et.Uniform1f(hr,Qt.u_extrude_scale),u_intensity:new et.Uniform1f(hr,Qt.u_intensity),u_matrix:new et.UniformMatrix4f(hr,Qt.u_matrix)}},J1=function(hr,Qt){return{u_matrix:new et.UniformMatrix4f(hr,Qt.u_matrix),u_world:new et.Uniform2f(hr,Qt.u_world),u_image:new et.Uniform1i(hr,Qt.u_image),u_color_ramp:new et.Uniform1i(hr,Qt.u_color_ramp),u_opacity:new et.Uniform1f(hr,Qt.u_opacity)}},x0=function(hr,Qt,vr,nr){return{u_matrix:hr,u_extrude_scale:ms(Qt,1,vr),u_intensity:nr}},Am=function(hr,Qt,vr,nr){var yr=et.create();et.ortho(yr,0,hr.width,hr.height,0,0,1);var $r=hr.context.gl;return{u_matrix:yr,u_world:[$r.drawingBufferWidth,$r.drawingBufferHeight],u_image:vr,u_color_ramp:nr,u_opacity:Qt.paint.get("heatmap-opacity")}},w1=function(hr,Qt){return{u_matrix:new et.UniformMatrix4f(hr,Qt.u_matrix),u_image:new et.Uniform1i(hr,Qt.u_image),u_latrange:new et.Uniform2f(hr,Qt.u_latrange),u_light:new et.Uniform2f(hr,Qt.u_light),u_shadow:new et.UniformColor(hr,Qt.u_shadow),u_highlight:new et.UniformColor(hr,Qt.u_highlight),u_accent:new et.UniformColor(hr,Qt.u_accent)}},Wm=function(hr,Qt){return{u_matrix:new et.UniformMatrix4f(hr,Qt.u_matrix),u_image:new et.Uniform1i(hr,Qt.u_image),u_dimension:new et.Uniform2f(hr,Qt.u_dimension),u_zoom:new et.Uniform1f(hr,Qt.u_zoom),u_unpack:new et.Uniform4f(hr,Qt.u_unpack)}},Ao=function(hr,Qt,vr){var nr=vr.paint.get("hillshade-shadow-color"),yr=vr.paint.get("hillshade-highlight-color"),$r=vr.paint.get("hillshade-accent-color"),Kr=vr.paint.get("hillshade-illumination-direction")*(Math.PI/180);vr.paint.get("hillshade-illumination-anchor")==="viewport"&&(Kr-=hr.transform.angle);var gn=!hr.options.moving;return{u_matrix:hr.transform.calculatePosMatrix(Qt.tileID.toUnwrapped(),gn),u_image:0,u_latrange:Gp(hr,Qt.tileID),u_light:[vr.paint.get("hillshade-exaggeration"),Kr],u_shadow:nr,u_highlight:yr,u_accent:$r}},K0=function(hr,Qt){var vr=Qt.stride,nr=et.create();return et.ortho(nr,0,et.EXTENT,-et.EXTENT,0,0,1),et.translate(nr,nr,[0,-et.EXTENT,0]),{u_matrix:nr,u_image:1,u_dimension:[vr,vr],u_zoom:hr.overscaledZ,u_unpack:Qt.getUnpackVector()}};function Gp(hr,Qt){var vr=Math.pow(2,Qt.canonical.z),nr=Qt.canonical.y;return[new et.MercatorCoordinate(0,nr/vr).toLngLat().lat,new et.MercatorCoordinate(0,(nr+1)/vr).toLngLat().lat]}var Mp=function(hr,Qt){return{u_matrix:new et.UniformMatrix4f(hr,Qt.u_matrix),u_ratio:new et.Uniform1f(hr,Qt.u_ratio),u_device_pixel_ratio:new et.Uniform1f(hr,Qt.u_device_pixel_ratio),u_units_to_pixels:new et.Uniform2f(hr,Qt.u_units_to_pixels)}},Lu=function(hr,Qt){return{u_matrix:new et.UniformMatrix4f(hr,Qt.u_matrix),u_ratio:new et.Uniform1f(hr,Qt.u_ratio),u_device_pixel_ratio:new et.Uniform1f(hr,Qt.u_device_pixel_ratio),u_units_to_pixels:new et.Uniform2f(hr,Qt.u_units_to_pixels),u_image:new et.Uniform1i(hr,Qt.u_image),u_image_height:new et.Uniform1f(hr,Qt.u_image_height)}},C1=function(hr,Qt){return{u_matrix:new et.UniformMatrix4f(hr,Qt.u_matrix),u_texsize:new et.Uniform2f(hr,Qt.u_texsize),u_ratio:new et.Uniform1f(hr,Qt.u_ratio),u_device_pixel_ratio:new et.Uniform1f(hr,Qt.u_device_pixel_ratio),u_image:new et.Uniform1i(hr,Qt.u_image),u_units_to_pixels:new et.Uniform2f(hr,Qt.u_units_to_pixels),u_scale:new et.Uniform3f(hr,Qt.u_scale),u_fade:new et.Uniform1f(hr,Qt.u_fade)}},_m=function(hr,Qt){return{u_matrix:new et.UniformMatrix4f(hr,Qt.u_matrix),u_ratio:new et.Uniform1f(hr,Qt.u_ratio),u_device_pixel_ratio:new et.Uniform1f(hr,Qt.u_device_pixel_ratio),u_units_to_pixels:new et.Uniform2f(hr,Qt.u_units_to_pixels),u_patternscale_a:new et.Uniform2f(hr,Qt.u_patternscale_a),u_patternscale_b:new et.Uniform2f(hr,Qt.u_patternscale_b),u_sdfgamma:new et.Uniform1f(hr,Qt.u_sdfgamma),u_image:new et.Uniform1i(hr,Qt.u_image),u_tex_y_a:new et.Uniform1f(hr,Qt.u_tex_y_a),u_tex_y_b:new et.Uniform1f(hr,Qt.u_tex_y_b),u_mix:new et.Uniform1f(hr,Qt.u_mix)}},Z0=function(hr,Qt,vr){var nr=hr.transform;return{u_matrix:P0(hr,Qt,vr),u_ratio:1/ms(Qt,1,nr.zoom),u_device_pixel_ratio:et.browser.devicePixelRatio,u_units_to_pixels:[1/nr.pixelsToGLUnits[0],1/nr.pixelsToGLUnits[1]]}},Rv=function(hr,Qt,vr,nr){return et.extend(Z0(hr,Qt,vr),{u_image:0,u_image_height:nr})},fy=function(hr,Qt,vr,nr){var yr=hr.transform,$r=R1(Qt,yr);return{u_matrix:P0(hr,Qt,vr),u_texsize:Qt.imageAtlasTexture.size,u_ratio:1/ms(Qt,1,yr.zoom),u_device_pixel_ratio:et.browser.devicePixelRatio,u_image:0,u_scale:[$r,nr.fromScale,nr.toScale],u_fade:nr.t,u_units_to_pixels:[1/yr.pixelsToGLUnits[0],1/yr.pixelsToGLUnits[1]]}},b0=function(hr,Qt,vr,nr,yr){var $r=hr.transform,Kr=hr.lineAtlas,gn=R1(Qt,$r),kn=vr.layout.get("line-cap")==="round",jn=Kr.getDash(nr.from,kn),na=Kr.getDash(nr.to,kn),uo=jn.width*yr.fromScale,lo=na.width*yr.toScale;return et.extend(Z0(hr,Qt,vr),{u_patternscale_a:[gn/uo,-jn.height/2],u_patternscale_b:[gn/lo,-na.height/2],u_sdfgamma:Kr.width/(Math.min(uo,lo)*256*et.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:jn.y,u_tex_y_b:na.y,u_mix:yr.t})};function R1(hr,Qt){return 1/ms(hr,1,Qt.tileZoom)}function P0(hr,Qt,vr){return hr.translatePosMatrix(Qt.tileID.posMatrix,Qt,vr.paint.get("line-translate"),vr.paint.get("line-translate-anchor"))}var E0=function(hr,Qt){return{u_matrix:new et.UniformMatrix4f(hr,Qt.u_matrix),u_tl_parent:new et.Uniform2f(hr,Qt.u_tl_parent),u_scale_parent:new et.Uniform1f(hr,Qt.u_scale_parent),u_buffer_scale:new et.Uniform1f(hr,Qt.u_buffer_scale),u_fade_t:new et.Uniform1f(hr,Qt.u_fade_t),u_opacity:new et.Uniform1f(hr,Qt.u_opacity),u_image0:new et.Uniform1i(hr,Qt.u_image0),u_image1:new et.Uniform1i(hr,Qt.u_image1),u_brightness_low:new et.Uniform1f(hr,Qt.u_brightness_low),u_brightness_high:new et.Uniform1f(hr,Qt.u_brightness_high),u_saturation_factor:new et.Uniform1f(hr,Qt.u_saturation_factor),u_contrast_factor:new et.Uniform1f(hr,Qt.u_contrast_factor),u_spin_weights:new et.Uniform3f(hr,Qt.u_spin_weights)}},Mv=function(hr,Qt,vr,nr,yr){return{u_matrix:hr,u_tl_parent:Qt,u_scale_parent:vr,u_buffer_scale:1,u_fade_t:nr.mix,u_opacity:nr.opacity*yr.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:yr.paint.get("raster-brightness-min"),u_brightness_high:yr.paint.get("raster-brightness-max"),u_saturation_factor:I1(yr.paint.get("raster-saturation")),u_contrast_factor:tp(yr.paint.get("raster-contrast")),u_spin_weights:M1(yr.paint.get("raster-hue-rotate"))}};function M1(hr){hr*=Math.PI/180;var Qt=Math.sin(hr),vr=Math.cos(hr);return[(2*vr+1)/3,(-Math.sqrt(3)*Qt-vr+1)/3,(Math.sqrt(3)*Qt-vr+1)/3]}function tp(hr){return hr>0?1/(1-hr):1+hr}function I1(hr){return hr>0?1-1/(1.001-hr):-hr}var Sm=function(hr,Qt){return{u_is_size_zoom_constant:new et.Uniform1i(hr,Qt.u_is_size_zoom_constant),u_is_size_feature_constant:new et.Uniform1i(hr,Qt.u_is_size_feature_constant),u_size_t:new et.Uniform1f(hr,Qt.u_size_t),u_size:new et.Uniform1f(hr,Qt.u_size),u_camera_to_center_distance:new et.Uniform1f(hr,Qt.u_camera_to_center_distance),u_pitch:new et.Uniform1f(hr,Qt.u_pitch),u_rotate_symbol:new et.Uniform1i(hr,Qt.u_rotate_symbol),u_aspect_ratio:new et.Uniform1f(hr,Qt.u_aspect_ratio),u_fade_change:new et.Uniform1f(hr,Qt.u_fade_change),u_matrix:new et.UniformMatrix4f(hr,Qt.u_matrix),u_label_plane_matrix:new et.UniformMatrix4f(hr,Qt.u_label_plane_matrix),u_coord_matrix:new et.UniformMatrix4f(hr,Qt.u_coord_matrix),u_is_text:new et.Uniform1i(hr,Qt.u_is_text),u_pitch_with_map:new et.Uniform1i(hr,Qt.u_pitch_with_map),u_texsize:new et.Uniform2f(hr,Qt.u_texsize),u_texture:new et.Uniform1i(hr,Qt.u_texture)}},dy=function(hr,Qt){return{u_is_size_zoom_constant:new et.Uniform1i(hr,Qt.u_is_size_zoom_constant),u_is_size_feature_constant:new et.Uniform1i(hr,Qt.u_is_size_feature_constant),u_size_t:new et.Uniform1f(hr,Qt.u_size_t),u_size:new et.Uniform1f(hr,Qt.u_size),u_camera_to_center_distance:new et.Uniform1f(hr,Qt.u_camera_to_center_distance),u_pitch:new et.Uniform1f(hr,Qt.u_pitch),u_rotate_symbol:new et.Uniform1i(hr,Qt.u_rotate_symbol),u_aspect_ratio:new et.Uniform1f(hr,Qt.u_aspect_ratio),u_fade_change:new et.Uniform1f(hr,Qt.u_fade_change),u_matrix:new et.UniformMatrix4f(hr,Qt.u_matrix),u_label_plane_matrix:new et.UniformMatrix4f(hr,Qt.u_label_plane_matrix),u_coord_matrix:new et.UniformMatrix4f(hr,Qt.u_coord_matrix),u_is_text:new et.Uniform1i(hr,Qt.u_is_text),u_pitch_with_map:new et.Uniform1i(hr,Qt.u_pitch_with_map),u_texsize:new et.Uniform2f(hr,Qt.u_texsize),u_texture:new et.Uniform1i(hr,Qt.u_texture),u_gamma_scale:new et.Uniform1f(hr,Qt.u_gamma_scale),u_device_pixel_ratio:new et.Uniform1f(hr,Qt.u_device_pixel_ratio),u_is_halo:new et.Uniform1i(hr,Qt.u_is_halo)}},mv=function(hr,Qt){return{u_is_size_zoom_constant:new et.Uniform1i(hr,Qt.u_is_size_zoom_constant),u_is_size_feature_constant:new et.Uniform1i(hr,Qt.u_is_size_feature_constant),u_size_t:new et.Uniform1f(hr,Qt.u_size_t),u_size:new et.Uniform1f(hr,Qt.u_size),u_camera_to_center_distance:new et.Uniform1f(hr,Qt.u_camera_to_center_distance),u_pitch:new et.Uniform1f(hr,Qt.u_pitch),u_rotate_symbol:new et.Uniform1i(hr,Qt.u_rotate_symbol),u_aspect_ratio:new et.Uniform1f(hr,Qt.u_aspect_ratio),u_fade_change:new et.Uniform1f(hr,Qt.u_fade_change),u_matrix:new et.UniformMatrix4f(hr,Qt.u_matrix),u_label_plane_matrix:new et.UniformMatrix4f(hr,Qt.u_label_plane_matrix),u_coord_matrix:new et.UniformMatrix4f(hr,Qt.u_coord_matrix),u_is_text:new et.Uniform1i(hr,Qt.u_is_text),u_pitch_with_map:new et.Uniform1i(hr,Qt.u_pitch_with_map),u_texsize:new et.Uniform2f(hr,Qt.u_texsize),u_texsize_icon:new et.Uniform2f(hr,Qt.u_texsize_icon),u_texture:new et.Uniform1i(hr,Qt.u_texture),u_texture_icon:new et.Uniform1i(hr,Qt.u_texture_icon),u_gamma_scale:new et.Uniform1f(hr,Qt.u_gamma_scale),u_device_pixel_ratio:new et.Uniform1f(hr,Qt.u_device_pixel_ratio),u_is_halo:new et.Uniform1i(hr,Qt.u_is_halo)}},Q1=function(hr,Qt,vr,nr,yr,$r,Kr,gn,kn,jn){var na=yr.transform;return{u_is_size_zoom_constant:+(hr==="constant"||hr==="source"),u_is_size_feature_constant:+(hr==="constant"||hr==="camera"),u_size_t:Qt?Qt.uSizeT:0,u_size:Qt?Qt.uSize:0,u_camera_to_center_distance:na.cameraToCenterDistance,u_pitch:na.pitch/360*2*Math.PI,u_rotate_symbol:+vr,u_aspect_ratio:na.width/na.height,u_fade_change:yr.options.fadeDuration?yr.symbolFadeChange:1,u_matrix:$r,u_label_plane_matrix:Kr,u_coord_matrix:gn,u_is_text:+kn,u_pitch_with_map:+nr,u_texsize:jn,u_texture:0}},wm=function(hr,Qt,vr,nr,yr,$r,Kr,gn,kn,jn,na){var uo=yr.transform;return et.extend(Q1(hr,Qt,vr,nr,yr,$r,Kr,gn,kn,jn),{u_gamma_scale:nr?Math.cos(uo._pitch)*uo.cameraToCenterDistance:1,u_device_pixel_ratio:et.browser.devicePixelRatio,u_is_halo:+na})},jm=function(hr,Qt,vr,nr,yr,$r,Kr,gn,kn,jn){return et.extend(wm(hr,Qt,vr,nr,yr,$r,Kr,gn,!0,kn,!0),{u_texsize_icon:jn,u_texture_icon:1})},q1=function(hr,Qt){return{u_matrix:new et.UniformMatrix4f(hr,Qt.u_matrix),u_opacity:new et.Uniform1f(hr,Qt.u_opacity),u_color:new et.UniformColor(hr,Qt.u_color)}},em=function(hr,Qt){return{u_matrix:new et.UniformMatrix4f(hr,Qt.u_matrix),u_opacity:new et.Uniform1f(hr,Qt.u_opacity),u_image:new et.Uniform1i(hr,Qt.u_image),u_pattern_tl_a:new et.Uniform2f(hr,Qt.u_pattern_tl_a),u_pattern_br_a:new et.Uniform2f(hr,Qt.u_pattern_br_a),u_pattern_tl_b:new et.Uniform2f(hr,Qt.u_pattern_tl_b),u_pattern_br_b:new et.Uniform2f(hr,Qt.u_pattern_br_b),u_texsize:new et.Uniform2f(hr,Qt.u_texsize),u_mix:new et.Uniform1f(hr,Qt.u_mix),u_pattern_size_a:new et.Uniform2f(hr,Qt.u_pattern_size_a),u_pattern_size_b:new et.Uniform2f(hr,Qt.u_pattern_size_b),u_scale_a:new et.Uniform1f(hr,Qt.u_scale_a),u_scale_b:new et.Uniform1f(hr,Qt.u_scale_b),u_pixel_coord_upper:new et.Uniform2f(hr,Qt.u_pixel_coord_upper),u_pixel_coord_lower:new et.Uniform2f(hr,Qt.u_pixel_coord_lower),u_tile_units_to_pixels:new et.Uniform1f(hr,Qt.u_tile_units_to_pixels)}},yv=function(hr,Qt,vr){return{u_matrix:hr,u_opacity:Qt,u_color:vr}},tm=function(hr,Qt,vr,nr,yr,$r){return et.extend(Hv(nr,$r,vr,yr),{u_matrix:hr,u_opacity:Qt})},N0={fillExtrusion:j0,fillExtrusionPattern:Ep,fill:g0,fillPattern:Y0,fillOutline:pp,fillOutlinePattern:vp,circle:Gm,collisionBox:Vm,collisionCircle:A1,debug:y0,clippingMask:Cv,heatmap:cy,heatmapTexture:J1,hillshade:w1,hillshadePrepare:Wm,line:Mp,lineGradient:Lu,linePattern:C1,lineSDF:_m,raster:E0,symbolIcon:Sm,symbolSDF:dy,symbolTextAndIcon:mv,background:q1,backgroundPattern:em},sp;function r0(hr,Qt,vr,nr,yr,$r,Kr){for(var gn=hr.context,kn=gn.gl,jn=hr.useProgram("collisionBox"),na=[],uo=0,lo=0,Po=0;Po0){var Hs=et.create(),yl=es;et.mul(Hs,jo.placementInvProjMatrix,hr.transform.glCoordMatrix),et.mul(Hs,Hs,jo.placementViewportMatrix),na.push({circleArray:Fs,circleOffset:lo,transform:yl,invTransform:Hs}),uo+=Fs.length/4,lo=uo}ps&&jn.draw(gn,kn.LINES,_i.disabled,Jn.disabled,hr.colorModeForRenderPass(),Ln.disabled,X0(es,hr.transform,Ko),vr.id,ps.layoutVertexBuffer,ps.indexBuffer,ps.segments,null,hr.transform.zoom,null,null,ps.collisionVertexBuffer)}}if(!(!Kr||!na.length)){var Tl=hr.useProgram("collisionCircle"),qs=new et.StructArrayLayout2f1f2i16;qs.resize(uo*4),qs._trim();for(var _l=0,Pl=0,Ul=na;Pl=0&&(Jo[jo.associatedIconIndex]={shiftedAnchor:bu,angle:$u})}}if(na){Po.clear();for(var iu=hr.icon.placedSymbolArray,Du=0;Du0){var Kr=et.browser.now(),gn=(Kr-hr.timeAdded)/$r,kn=Qt?(Kr-Qt.timeAdded)/$r:-1,jn=vr.getSource(),na=yr.coveringZoomLevel({tileSize:jn.tileSize,roundZoom:jn.roundZoom}),uo=!Qt||Math.abs(Qt.tileID.overscaledZ-na)>Math.abs(hr.tileID.overscaledZ-na),lo=uo&&hr.refreshedUponExpiration?1:et.clamp(uo?gn:1-kn,0,1);return hr.refreshedUponExpiration&&gn>=1&&(hr.refreshedUponExpiration=!1),Qt?{opacity:1,mix:1-lo}:{opacity:lo,mix:0}}else return{opacity:1,mix:0}}function Q0(hr,Qt,vr){var nr=vr.paint.get("background-color"),yr=vr.paint.get("background-opacity");if(yr!==0){var $r=hr.context,Kr=$r.gl,gn=hr.transform,kn=gn.tileSize,jn=vr.paint.get("background-pattern");if(!hr.isPatternMissing(jn)){var na=!jn&&nr.a===1&&yr===1&&hr.opaquePassEnabledForLayer()?"opaque":"translucent";if(hr.renderPass===na){var uo=Jn.disabled,lo=hr.depthModeForSublayer(0,na==="opaque"?_i.ReadWrite:_i.ReadOnly),Po=hr.colorModeForRenderPass(),Jo=hr.useProgram(jn?"backgroundPattern":"background"),Ko=gn.coveringTiles({tileSize:kn});jn&&($r.activeTexture.set(Kr.TEXTURE0),hr.imageManager.bind(hr.context));for(var jo=vr.getCrossfadeParameters(),es=0,ps=Ko;es "+vr.overscaledZ);var es=jo+" "+Po+"kb";oo(hr,es),Kr.draw(nr,yr.TRIANGLES,gn,kn,hn.alphaBlended,Ln.disabled,Sp($r,et.Color.transparent,Ko),na,hr.debugBuffer,hr.quadTriangleIndexBuffer,hr.debugSegments)}function oo(hr,Qt){hr.initDebugOverlayCanvas();var vr=hr.debugOverlayCanvas,nr=hr.context.gl,yr=hr.debugOverlayCanvas.getContext("2d");yr.clearRect(0,0,vr.width,vr.height),yr.shadowColor="white",yr.shadowBlur=2,yr.lineWidth=1.5,yr.strokeStyle="white",yr.textBaseline="top",yr.font="bold "+36+"px Open Sans, sans-serif",yr.fillText(Qt,5,5),yr.strokeText(Qt,5,5),hr.debugOverlayTexture.update(vr),hr.debugOverlayTexture.bind(nr.LINEAR,nr.CLAMP_TO_EDGE)}function So(hr,Qt,vr){var nr=hr.context,yr=vr.implementation;if(hr.renderPass==="offscreen"){var $r=yr.prerender;$r&&(hr.setCustomLayerDefaults(),nr.setColorMode(hr.colorModeForRenderPass()),$r.call(yr,nr.gl,hr.transform.customLayerMatrix()),nr.setDirty(),hr.setBaseState())}else if(hr.renderPass==="translucent"){hr.setCustomLayerDefaults(),nr.setColorMode(hr.colorModeForRenderPass()),nr.setStencilMode(Jn.disabled);var Kr=yr.renderingMode==="3d"?new _i(hr.context.gl.LEQUAL,_i.ReadWrite,hr.depthRangeFor3D):hr.depthModeForSublayer(0,_i.ReadOnly);nr.setDepthMode(Kr),yr.render(nr.gl,hr.transform.customLayerMatrix()),nr.setDirty(),hr.setBaseState(),nr.bindFramebuffer.set(null)}}var Do={symbol:Cm,circle:k1,heatmap:Vv,line:Ov,fill:Wv,"fill-extrusion":bv,hillshade:L1,raster:Fv,background:Q0,debug:vo,custom:So},$o=function(Qt,vr){this.context=new Xn(Qt),this.transform=vr,this._tileTextures={},this.setup(),this.numSublayers=Wn.maxUnderzooming+Wn.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new zl,this.gpuTimers={}};$o.prototype.resize=function(Qt,vr){if(this.width=Qt*et.browser.devicePixelRatio,this.height=vr*et.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var nr=0,yr=this.style._order;nr256&&this.clearStencil(),nr.setColorMode(hn.disabled),nr.setDepthMode(_i.disabled);var $r=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var Kr=0,gn=vr;Kr256&&this.clearStencil();var Qt=this.nextStencilID++,vr=this.context.gl;return new Jn({func:vr.NOTEQUAL,mask:255},Qt,255,vr.KEEP,vr.KEEP,vr.REPLACE)},$o.prototype.stencilModeForClipping=function(Qt){var vr=this.context.gl;return new Jn({func:vr.EQUAL,mask:255},this._tileClippingMaskIDs[Qt.key],0,vr.KEEP,vr.KEEP,vr.REPLACE)},$o.prototype.stencilConfigForOverlap=function(Qt){var vr,nr=this.context.gl,yr=Qt.sort(function(jn,na){return na.overscaledZ-jn.overscaledZ}),$r=yr[yr.length-1].overscaledZ,Kr=yr[0].overscaledZ-$r+1;if(Kr>1){this.currentStencilSource=void 0,this.nextStencilID+Kr>256&&this.clearStencil();for(var gn={},kn=0;kn=0;this.currentLayer--){var Hs=this.style._layers[yr[this.currentLayer]],yl=$r[Hs.source],Tl=kn[Hs.source];this._renderTileClippingMasks(Hs,Tl),this.renderLayer(this,yl,Hs,Tl)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?vr.pop():null},$o.prototype.isPatternMissing=function(Qt){if(!Qt)return!1;if(!Qt.from||!Qt.to)return!0;var vr=this.imageManager.getPattern(Qt.from.toString()),nr=this.imageManager.getPattern(Qt.to.toString());return!vr||!nr},$o.prototype.useProgram=function(Qt,vr){this.cache=this.cache||{};var nr=""+Qt+(vr?vr.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[nr]||(this.cache[nr]=new Hm(this.context,Qt,D0[Qt],vr,N0[Qt],this._showOverdrawInspector)),this.cache[nr]},$o.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},$o.prototype.setBaseState=function(){var Qt=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(Qt.FUNC_ADD)},$o.prototype.initDebugOverlayCanvas=function(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=et.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var Qt=this.context.gl;this.debugOverlayTexture=new et.Texture(this.context,this.debugOverlayCanvas,Qt.RGBA)}},$o.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var os=function(Qt,vr){this.points=Qt,this.planes=vr};os.fromInvProjectionMatrix=function(Qt,vr,nr){var yr=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]],$r=Math.pow(2,nr),Kr=yr.map(function(jn){return et.transformMat4([],jn,Qt)}).map(function(jn){return et.scale$1([],jn,1/jn[3]/vr*$r)}),gn=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],kn=gn.map(function(jn){var na=et.sub([],Kr[jn[0]],Kr[jn[1]]),uo=et.sub([],Kr[jn[2]],Kr[jn[1]]),lo=et.normalize([],et.cross([],na,uo)),Po=-et.dot(lo,Kr[jn[1]]);return lo.concat(Po)});return new os(Kr,kn)};var Ss=function(Qt,vr){this.min=Qt,this.max=vr,this.center=et.scale$2([],et.add([],this.min,this.max),.5)};Ss.prototype.quadrant=function(Qt){for(var vr=[Qt%2===0,Qt<2],nr=et.clone$2(this.min),yr=et.clone$2(this.max),$r=0;$r=0;if(Kr===0)return 0;Kr!==vr.length&&(nr=!1)}if(nr)return 2;for(var kn=0;kn<3;kn++){for(var jn=Number.MAX_VALUE,na=-Number.MAX_VALUE,uo=0;uothis.max[kn]-this.min[kn])return 0}return 1};var Ns=function(Qt,vr,nr,yr){if(Qt===void 0&&(Qt=0),vr===void 0&&(vr=0),nr===void 0&&(nr=0),yr===void 0&&(yr=0),isNaN(Qt)||Qt<0||isNaN(vr)||vr<0||isNaN(nr)||nr<0||isNaN(yr)||yr<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=Qt,this.bottom=vr,this.left=nr,this.right=yr};Ns.prototype.interpolate=function(Qt,vr,nr){return vr.top!=null&&Qt.top!=null&&(this.top=et.number(Qt.top,vr.top,nr)),vr.bottom!=null&&Qt.bottom!=null&&(this.bottom=et.number(Qt.bottom,vr.bottom,nr)),vr.left!=null&&Qt.left!=null&&(this.left=et.number(Qt.left,vr.left,nr)),vr.right!=null&&Qt.right!=null&&(this.right=et.number(Qt.right,vr.right,nr)),this},Ns.prototype.getCenter=function(Qt,vr){var nr=et.clamp((this.left+Qt-this.right)/2,0,Qt),yr=et.clamp((this.top+vr-this.bottom)/2,0,vr);return new et.Point(nr,yr)},Ns.prototype.equals=function(Qt){return this.top===Qt.top&&this.bottom===Qt.bottom&&this.left===Qt.left&&this.right===Qt.right},Ns.prototype.clone=function(){return new Ns(this.top,this.bottom,this.left,this.right)},Ns.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var $s=function(Qt,vr,nr,yr,$r){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=$r===void 0?!0:$r,this._minZoom=Qt||0,this._maxZoom=vr||22,this._minPitch=nr??0,this._maxPitch=yr??60,this.setMaxBounds(),this.width=0,this.height=0,this._center=new et.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Ns,this._posMatrixCache={},this._alignedPosMatrixCache={}},Al={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};$s.prototype.clone=function(){var Qt=new $s(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return Qt.tileSize=this.tileSize,Qt.latRange=this.latRange,Qt.width=this.width,Qt.height=this.height,Qt._center=this._center,Qt.zoom=this.zoom,Qt.angle=this.angle,Qt._fov=this._fov,Qt._pitch=this._pitch,Qt._unmodified=this._unmodified,Qt._edgeInsets=this._edgeInsets.clone(),Qt._calcMatrices(),Qt},Al.minZoom.get=function(){return this._minZoom},Al.minZoom.set=function(hr){this._minZoom!==hr&&(this._minZoom=hr,this.zoom=Math.max(this.zoom,hr))},Al.maxZoom.get=function(){return this._maxZoom},Al.maxZoom.set=function(hr){this._maxZoom!==hr&&(this._maxZoom=hr,this.zoom=Math.min(this.zoom,hr))},Al.minPitch.get=function(){return this._minPitch},Al.minPitch.set=function(hr){this._minPitch!==hr&&(this._minPitch=hr,this.pitch=Math.max(this.pitch,hr))},Al.maxPitch.get=function(){return this._maxPitch},Al.maxPitch.set=function(hr){this._maxPitch!==hr&&(this._maxPitch=hr,this.pitch=Math.min(this.pitch,hr))},Al.renderWorldCopies.get=function(){return this._renderWorldCopies},Al.renderWorldCopies.set=function(hr){hr===void 0?hr=!0:hr===null&&(hr=!1),this._renderWorldCopies=hr},Al.worldSize.get=function(){return this.tileSize*this.scale},Al.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Al.size.get=function(){return new et.Point(this.width,this.height)},Al.bearing.get=function(){return-this.angle/Math.PI*180},Al.bearing.set=function(hr){var Qt=-et.wrap(hr,-180,180)*Math.PI/180;this.angle!==Qt&&(this._unmodified=!1,this.angle=Qt,this._calcMatrices(),this.rotationMatrix=et.create$2(),et.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Al.pitch.get=function(){return this._pitch/Math.PI*180},Al.pitch.set=function(hr){var Qt=et.clamp(hr,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==Qt&&(this._unmodified=!1,this._pitch=Qt,this._calcMatrices())},Al.fov.get=function(){return this._fov/Math.PI*180},Al.fov.set=function(hr){hr=Math.max(.01,Math.min(60,hr)),this._fov!==hr&&(this._unmodified=!1,this._fov=hr/180*Math.PI,this._calcMatrices())},Al.zoom.get=function(){return this._zoom},Al.zoom.set=function(hr){var Qt=Math.min(Math.max(hr,this.minZoom),this.maxZoom);this._zoom!==Qt&&(this._unmodified=!1,this._zoom=Qt,this.scale=this.zoomScale(Qt),this.tileZoom=Math.floor(Qt),this.zoomFraction=Qt-this.tileZoom,this._constrain(),this._calcMatrices())},Al.center.get=function(){return this._center},Al.center.set=function(hr){hr.lat===this._center.lat&&hr.lng===this._center.lng||(this._unmodified=!1,this._center=hr,this._constrain(),this._calcMatrices())},Al.padding.get=function(){return this._edgeInsets.toJSON()},Al.padding.set=function(hr){this._edgeInsets.equals(hr)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,hr,1),this._calcMatrices())},Al.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},$s.prototype.isPaddingEqual=function(Qt){return this._edgeInsets.equals(Qt)},$s.prototype.interpolatePadding=function(Qt,vr,nr){this._unmodified=!1,this._edgeInsets.interpolate(Qt,vr,nr),this._constrain(),this._calcMatrices()},$s.prototype.coveringZoomLevel=function(Qt){var vr=(Qt.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/Qt.tileSize));return Math.max(0,vr)},$s.prototype.getVisibleUnwrappedCoordinates=function(Qt){var vr=[new et.UnwrappedTileID(0,Qt)];if(this._renderWorldCopies)for(var nr=this.pointCoordinate(new et.Point(0,0)),yr=this.pointCoordinate(new et.Point(this.width,0)),$r=this.pointCoordinate(new et.Point(this.width,this.height)),Kr=this.pointCoordinate(new et.Point(0,this.height)),gn=Math.floor(Math.min(nr.x,yr.x,$r.x,Kr.x)),kn=Math.floor(Math.max(nr.x,yr.x,$r.x,Kr.x)),jn=1,na=gn-jn;na<=kn+jn;na++)na!==0&&vr.push(new et.UnwrappedTileID(na,Qt));return vr},$s.prototype.coveringTiles=function(Qt){var vr=this.coveringZoomLevel(Qt),nr=vr;if(Qt.minzoom!==void 0&&vrQt.maxzoom&&(vr=Qt.maxzoom);var yr=et.MercatorCoordinate.fromLngLat(this.center),$r=Math.pow(2,vr),Kr=[$r*yr.x,$r*yr.y,0],gn=os.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,vr),kn=Qt.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(kn=vr);var jn=3,na=function(Kl){return{aabb:new Ss([Kl*$r,0,0],[(Kl+1)*$r,$r,0]),zoom:0,x:0,y:0,wrap:Kl,fullyVisible:!1}},uo=[],lo=[],Po=vr,Jo=Qt.reparseOverscaled?nr:vr;if(this._renderWorldCopies)for(var Ko=1;Ko<=3;Ko++)uo.push(na(-Ko)),uo.push(na(Ko));for(uo.push(na(0));uo.length>0;){var jo=uo.pop(),es=jo.x,ps=jo.y,Fs=jo.fullyVisible;if(!Fs){var Hs=jo.aabb.intersects(gn);if(Hs===0)continue;Fs=Hs===2}var yl=jo.aabb.distanceX(Kr),Tl=jo.aabb.distanceY(Kr),qs=Math.max(Math.abs(yl),Math.abs(Tl)),_l=jn+(1<_l&&jo.zoom>=kn){lo.push({tileID:new et.OverscaledTileID(jo.zoom===Po?Jo:jo.zoom,jo.wrap,jo.zoom,es,ps),distanceSq:et.sqrLen([Kr[0]-.5-es,Kr[1]-.5-ps])});continue}for(var Pl=0;Pl<4;Pl++){var Ul=(es<<1)+Pl%2,tu=(ps<<1)+(Pl>>1);uo.push({aabb:jo.aabb.quadrant(Pl),zoom:jo.zoom+1,x:Ul,y:tu,wrap:jo.wrap,fullyVisible:Fs})}}return lo.sort(function(Kl,bu){return Kl.distanceSq-bu.distanceSq}).map(function(Kl){return Kl.tileID})},$s.prototype.resize=function(Qt,vr){this.width=Qt,this.height=vr,this.pixelsToGLUnits=[2/Qt,-2/vr],this._constrain(),this._calcMatrices()},Al.unmodified.get=function(){return this._unmodified},$s.prototype.zoomScale=function(Qt){return Math.pow(2,Qt)},$s.prototype.scaleZoom=function(Qt){return Math.log(Qt)/Math.LN2},$s.prototype.project=function(Qt){var vr=et.clamp(Qt.lat,-this.maxValidLatitude,this.maxValidLatitude);return new et.Point(et.mercatorXfromLng(Qt.lng)*this.worldSize,et.mercatorYfromLat(vr)*this.worldSize)},$s.prototype.unproject=function(Qt){return new et.MercatorCoordinate(Qt.x/this.worldSize,Qt.y/this.worldSize).toLngLat()},Al.point.get=function(){return this.project(this.center)},$s.prototype.setLocationAtPoint=function(Qt,vr){var nr=this.pointCoordinate(vr),yr=this.pointCoordinate(this.centerPoint),$r=this.locationCoordinate(Qt),Kr=new et.MercatorCoordinate($r.x-(nr.x-yr.x),$r.y-(nr.y-yr.y));this.center=this.coordinateLocation(Kr),this._renderWorldCopies&&(this.center=this.center.wrap())},$s.prototype.locationPoint=function(Qt){return this.coordinatePoint(this.locationCoordinate(Qt))},$s.prototype.pointLocation=function(Qt){return this.coordinateLocation(this.pointCoordinate(Qt))},$s.prototype.locationCoordinate=function(Qt){return et.MercatorCoordinate.fromLngLat(Qt)},$s.prototype.coordinateLocation=function(Qt){return Qt.toLngLat()},$s.prototype.pointCoordinate=function(Qt){var vr=0,nr=[Qt.x,Qt.y,0,1],yr=[Qt.x,Qt.y,1,1];et.transformMat4(nr,nr,this.pixelMatrixInverse),et.transformMat4(yr,yr,this.pixelMatrixInverse);var $r=nr[3],Kr=yr[3],gn=nr[0]/$r,kn=yr[0]/Kr,jn=nr[1]/$r,na=yr[1]/Kr,uo=nr[2]/$r,lo=yr[2]/Kr,Po=uo===lo?0:(vr-uo)/(lo-uo);return new et.MercatorCoordinate(et.number(gn,kn,Po)/this.worldSize,et.number(jn,na,Po)/this.worldSize)},$s.prototype.coordinatePoint=function(Qt){var vr=[Qt.x*this.worldSize,Qt.y*this.worldSize,0,1];return et.transformMat4(vr,vr,this.pixelMatrix),new et.Point(vr[0]/vr[3],vr[1]/vr[3])},$s.prototype.getBounds=function(){return new et.LngLatBounds().extend(this.pointLocation(new et.Point(0,0))).extend(this.pointLocation(new et.Point(this.width,0))).extend(this.pointLocation(new et.Point(this.width,this.height))).extend(this.pointLocation(new et.Point(0,this.height)))},$s.prototype.getMaxBounds=function(){return!this.latRange||this.latRange.length!==2||!this.lngRange||this.lngRange.length!==2?null:new et.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]])},$s.prototype.setMaxBounds=function(Qt){Qt?(this.lngRange=[Qt.getWest(),Qt.getEast()],this.latRange=[Qt.getSouth(),Qt.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},$s.prototype.calculatePosMatrix=function(Qt,vr){vr===void 0&&(vr=!1);var nr=Qt.key,yr=vr?this._alignedPosMatrixCache:this._posMatrixCache;if(yr[nr])return yr[nr];var $r=Qt.canonical,Kr=this.worldSize/this.zoomScale($r.z),gn=$r.x+Math.pow(2,$r.z)*Qt.wrap,kn=et.identity(new Float64Array(16));return et.translate(kn,kn,[gn*Kr,$r.y*Kr,0]),et.scale(kn,kn,[Kr/et.EXTENT,Kr/et.EXTENT,1]),et.multiply(kn,vr?this.alignedProjMatrix:this.projMatrix,kn),yr[nr]=new Float32Array(kn),yr[nr]},$s.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},$s.prototype._constrain=function(){if(!(!this.center||!this.width||!this.height||this._constraining)){this._constraining=!0;var Qt=-90,vr=90,nr=-180,yr=180,$r,Kr,gn,kn,jn=this.size,na=this._unmodified;if(this.latRange){var uo=this.latRange;Qt=et.mercatorYfromLat(uo[1])*this.worldSize,vr=et.mercatorYfromLat(uo[0])*this.worldSize,$r=vr-Qtvr&&(kn=vr-jo)}if(this.lngRange){var es=Po.x,ps=jn.x/2;es-psyr&&(gn=yr-ps)}(gn!==void 0||kn!==void 0)&&(this.center=this.unproject(new et.Point(gn!==void 0?gn:Po.x,kn!==void 0?kn:Po.y))),this._unmodified=na,this._constraining=!1}},$s.prototype._calcMatrices=function(){if(this.height){var Qt=this._fov/2,vr=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(Qt)*this.height;var nr=Math.PI/2+this._pitch,yr=this._fov*(.5+vr.y/this.height),$r=Math.sin(yr)*this.cameraToCenterDistance/Math.sin(et.clamp(Math.PI-nr-yr,.01,Math.PI-.01)),Kr=this.point,gn=Kr.x,kn=Kr.y,jn=Math.cos(Math.PI/2-this._pitch)*$r+this.cameraToCenterDistance,na=jn*1.01,uo=this.height/50,lo=new Float64Array(16);et.perspective(lo,this._fov,this.width/this.height,uo,na),lo[8]=-vr.x*2/this.width,lo[9]=vr.y*2/this.height,et.scale(lo,lo,[1,-1,1]),et.translate(lo,lo,[0,0,-this.cameraToCenterDistance]),et.rotateX(lo,lo,this._pitch),et.rotateZ(lo,lo,this.angle),et.translate(lo,lo,[-gn,-kn,0]),this.mercatorMatrix=et.scale([],lo,[this.worldSize,this.worldSize,this.worldSize]),et.scale(lo,lo,[1,1,et.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=lo,this.invProjMatrix=et.invert([],this.projMatrix);var Po=this.width%2/2,Jo=this.height%2/2,Ko=Math.cos(this.angle),jo=Math.sin(this.angle),es=gn-Math.round(gn)+Ko*Po+jo*Jo,ps=kn-Math.round(kn)+Ko*Jo+jo*Po,Fs=new Float64Array(lo);if(et.translate(Fs,Fs,[es>.5?es-1:es,ps>.5?ps-1:ps,0]),this.alignedProjMatrix=Fs,lo=et.create(),et.scale(lo,lo,[this.width/2,-this.height/2,1]),et.translate(lo,lo,[1,-1,0]),this.labelPlaneMatrix=lo,lo=et.create(),et.scale(lo,lo,[1,-1,1]),et.translate(lo,lo,[-1,-1,0]),et.scale(lo,lo,[2/this.width,2/this.height,1]),this.glCoordMatrix=lo,this.pixelMatrix=et.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),lo=et.invert(new Float64Array(16),this.pixelMatrix),!lo)throw new Error("failed to invert matrix");this.pixelMatrixInverse=lo,this._posMatrixCache={},this._alignedPosMatrixCache={}}},$s.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var Qt=this.pointCoordinate(new et.Point(0,0)),vr=[Qt.x*this.worldSize,Qt.y*this.worldSize,0,1],nr=et.transformMat4(vr,vr,this.pixelMatrix);return nr[3]/this.cameraToCenterDistance},$s.prototype.getCameraPoint=function(){var Qt=this._pitch,vr=Math.tan(Qt)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new et.Point(0,vr))},$s.prototype.getCameraQueryGeometry=function(Qt){var vr=this.getCameraPoint();if(Qt.length===1)return[Qt[0],vr];for(var nr=vr.x,yr=vr.y,$r=vr.x,Kr=vr.y,gn=0,kn=Qt;gn=3&&!Qt.some(function(nr){return isNaN(nr)})){var vr=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(Qt[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+Qt[2],+Qt[1]],zoom:+Qt[0],bearing:vr,pitch:+(Qt[4]||0)}),!0}return!1},du.prototype._updateHashUnthrottled=function(){var Qt=et.window.location.href.replace(/(#.+)?$/,this.getHashString());try{et.window.history.replaceState(et.window.history.state,null,Qt)}catch{}};var gu={linearity:.3,easing:et.bezier(0,0,.3,1)},Eu=et.extend({deceleration:2500,maxSpeed:1400},gu),Nu=et.extend({deceleration:20,maxSpeed:1400},gu),_c=et.extend({deceleration:1e3,maxSpeed:360},gu),Ip=et.extend({deceleration:1e3,maxSpeed:90},gu),dr=function(Qt){this._map=Qt,this.clear()};dr.prototype.clear=function(){this._inertiaBuffer=[]},dr.prototype.record=function(Qt){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:et.browser.now(),settings:Qt})},dr.prototype._drainInertiaBuffer=function(){for(var Qt=this._inertiaBuffer,vr=et.browser.now(),nr=160;Qt.length>0&&vr-Qt[0].time>nr;)Qt.shift()},dr.prototype._onMoveEnd=function(Qt){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var vr={zoom:0,bearing:0,pitch:0,pan:new et.Point(0,0),pinchAround:void 0,around:void 0},nr=0,yr=this._inertiaBuffer;nr=this._clickTolerance||this._map.fire(new nn(Qt.type,this._map,Qt))},Dn.prototype.dblclick=function(Qt){return this._firePreventable(new nn(Qt.type,this._map,Qt))},Dn.prototype.mouseover=function(Qt){this._map.fire(new nn(Qt.type,this._map,Qt))},Dn.prototype.mouseout=function(Qt){this._map.fire(new nn(Qt.type,this._map,Qt))},Dn.prototype.touchstart=function(Qt){return this._firePreventable(new cn(Qt.type,this._map,Qt))},Dn.prototype.touchmove=function(Qt){this._map.fire(new cn(Qt.type,this._map,Qt))},Dn.prototype.touchend=function(Qt){this._map.fire(new cn(Qt.type,this._map,Qt))},Dn.prototype.touchcancel=function(Qt){this._map.fire(new cn(Qt.type,this._map,Qt))},Dn.prototype._firePreventable=function(Qt){if(this._map.fire(Qt),Qt.defaultPrevented)return{}},Dn.prototype.isEnabled=function(){return!0},Dn.prototype.isActive=function(){return!1},Dn.prototype.enable=function(){},Dn.prototype.disable=function(){};var Rn=function(Qt){this._map=Qt};Rn.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Rn.prototype.mousemove=function(Qt){this._map.fire(new nn(Qt.type,this._map,Qt))},Rn.prototype.mousedown=function(){this._delayContextMenu=!0},Rn.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new nn("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Rn.prototype.contextmenu=function(Qt){this._delayContextMenu?this._contextMenuEvent=Qt:this._map.fire(new nn(Qt.type,this._map,Qt)),this._map.listens("contextmenu")&&Qt.preventDefault()},Rn.prototype.isEnabled=function(){return!0},Rn.prototype.isActive=function(){return!1},Rn.prototype.enable=function(){},Rn.prototype.disable=function(){};var Yn=function(Qt,vr){this._map=Qt,this._el=Qt.getCanvasContainer(),this._container=Qt.getContainer(),this._clickTolerance=vr.clickTolerance||1};Yn.prototype.isEnabled=function(){return!!this._enabled},Yn.prototype.isActive=function(){return!!this._active},Yn.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Yn.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Yn.prototype.mousedown=function(Qt,vr){this.isEnabled()&&Qt.shiftKey&&Qt.button===0&&(yt.disableDrag(),this._startPos=this._lastPos=vr,this._active=!0)},Yn.prototype.mousemoveWindow=function(Qt,vr){if(this._active){var nr=vr;if(!(this._lastPos.equals(nr)||!this._box&&nr.dist(this._startPos)this.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=Qt.timeStamp),nr.length===this.numTouches&&(this.centroid=to(vr),this.touches=Zn(nr,vr)))},ls.prototype.touchmove=function(Qt,vr,nr){if(!(this.aborted||!this.centroid)){var yr=Zn(nr,vr);for(var $r in this.touches){var Kr=this.touches[$r],gn=yr[$r];(!gn||gn.dist(Kr)>ts)&&(this.aborted=!0)}}},ls.prototype.touchend=function(Qt,vr,nr){if((!this.centroid||Qt.timeStamp-this.startTime>Ro)&&(this.aborted=!0),nr.length===0){var yr=!this.aborted&&this.centroid;if(this.reset(),yr)return yr}};var ko=function(Qt){this.singleTap=new ls(Qt),this.numTaps=Qt.numTaps,this.reset()};ko.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},ko.prototype.touchstart=function(Qt,vr,nr){this.singleTap.touchstart(Qt,vr,nr)},ko.prototype.touchmove=function(Qt,vr,nr){this.singleTap.touchmove(Qt,vr,nr)},ko.prototype.touchend=function(Qt,vr,nr){var yr=this.singleTap.touchend(Qt,vr,nr);if(yr){var $r=Qt.timeStamp-this.lastTime0&&(this._active=!0);var yr=Zn(nr,vr),$r=new et.Point(0,0),Kr=new et.Point(0,0),gn=0;for(var kn in yr){var jn=yr[kn],na=this._touches[kn];na&&($r._add(jn),Kr._add(jn.sub(na)),gn++,yr[kn]=jn)}if(this._touches=yr,!(gnMath.abs(hr.x)}var ru=100,Ou=function(hr){function Qt(){hr.apply(this,arguments)}return hr&&(Qt.__proto__=hr),Qt.prototype=Object.create(hr&&hr.prototype),Qt.prototype.constructor=Qt,Qt.prototype.reset=function(){hr.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},Qt.prototype._start=function(nr){this._lastPoints=nr,vu(nr[0].sub(nr[1]))&&(this._valid=!1)},Qt.prototype._move=function(nr,yr,$r){var Kr=nr[0].sub(this._lastPoints[0]),gn=nr[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(Kr,gn,$r.timeStamp),!!this._valid){this._lastPoints=nr,this._active=!0;var kn=(Kr.y+gn.y)/2,jn=-.5;return{pitchDelta:kn*jn}}},Qt.prototype.gestureBeginsVertically=function(nr,yr,$r){if(this._valid!==void 0)return this._valid;var Kr=2,gn=nr.mag()>=Kr,kn=yr.mag()>=Kr;if(!(!gn&&!kn)){if(!gn||!kn)return this._firstMove===void 0&&(this._firstMove=$r),$r-this._firstMove0==yr.y>0;return vu(nr)&&vu(yr)&&jn}},Qt}(Vl),cp={panStep:100,bearingStep:15,pitchStep:10},Uu=function(){var Qt=cp;this._panStep=Qt.panStep,this._bearingStep=Qt.bearingStep,this._pitchStep=Qt.pitchStep,this._rotationDisabled=!1};Uu.prototype.reset=function(){this._active=!1},Uu.prototype.keydown=function(Qt){var vr=this;if(!(Qt.altKey||Qt.ctrlKey||Qt.metaKey)){var nr=0,yr=0,$r=0,Kr=0,gn=0;switch(Qt.keyCode){case 61:case 107:case 171:case 187:nr=1;break;case 189:case 109:case 173:nr=-1;break;case 37:Qt.shiftKey?yr=-1:(Qt.preventDefault(),Kr=-1);break;case 39:Qt.shiftKey?yr=1:(Qt.preventDefault(),Kr=1);break;case 38:Qt.shiftKey?$r=1:(Qt.preventDefault(),gn=-1);break;case 40:Qt.shiftKey?$r=-1:(Qt.preventDefault(),gn=1);break;default:return}return this._rotationDisabled&&(yr=0,$r=0),{cameraAnimation:function(kn){var jn=kn.getZoom();kn.easeTo({duration:300,easeId:"keyboardHandler",easing:Fp,zoom:nr?Math.round(jn)+nr*(Qt.shiftKey?2:1):jn,bearing:kn.getBearing()+yr*vr._bearingStep,pitch:kn.getPitch()+$r*vr._pitchStep,offset:[-Kr*vr._panStep,-gn*vr._panStep],center:kn.getCenter()},{originalEvent:Qt})}}}},Uu.prototype.enable=function(){this._enabled=!0},Uu.prototype.disable=function(){this._enabled=!1,this.reset()},Uu.prototype.isEnabled=function(){return this._enabled},Uu.prototype.isActive=function(){return this._active},Uu.prototype.disableRotation=function(){this._rotationDisabled=!0},Uu.prototype.enableRotation=function(){this._rotationDisabled=!1};function Fp(hr){return hr*(2-hr)}var Pp=4.000244140625,Vp=1/100,lp=1/450,Wp=2,Ol=function(Qt,vr){this._map=Qt,this._el=Qt.getCanvasContainer(),this._handler=vr,this._delta=0,this._defaultZoomRate=Vp,this._wheelZoomRate=lp,et.bindAll(["_onTimeout"],this)};Ol.prototype.setZoomRate=function(Qt){this._defaultZoomRate=Qt},Ol.prototype.setWheelZoomRate=function(Qt){this._wheelZoomRate=Qt},Ol.prototype.isEnabled=function(){return!!this._enabled},Ol.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},Ol.prototype.isZooming=function(){return!!this._zooming},Ol.prototype.enable=function(Qt){this.isEnabled()||(this._enabled=!0,this._aroundCenter=Qt&&Qt.around==="center")},Ol.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Ol.prototype.wheel=function(Qt){if(this.isEnabled()){var vr=Qt.deltaMode===et.window.WheelEvent.DOM_DELTA_LINE?Qt.deltaY*40:Qt.deltaY,nr=et.browser.now(),yr=nr-(this._lastWheelEventTime||0);this._lastWheelEventTime=nr,vr!==0&&vr%Pp===0?this._type="wheel":vr!==0&&Math.abs(vr)<4?this._type="trackpad":yr>400?(this._type=null,this._lastValue=vr,this._timeout=setTimeout(this._onTimeout,40,Qt)):this._type||(this._type=Math.abs(yr*vr)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,vr+=this._lastValue)),Qt.shiftKey&&vr&&(vr=vr/4),this._type&&(this._lastWheelEvent=Qt,this._delta-=vr,this._active||this._start(Qt)),Qt.preventDefault()}},Ol.prototype._onTimeout=function(Qt){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(Qt)},Ol.prototype._start=function(Qt){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var vr=yt.mousePos(this._el,Qt);this._around=et.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(vr)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},Ol.prototype.renderFrame=function(){var Qt=this;if(this._frameId&&(this._frameId=null,!!this.isActive())){var vr=this._map.transform;if(this._delta!==0){var nr=this._type==="wheel"&&Math.abs(this._delta)>Pp?this._wheelZoomRate:this._defaultZoomRate,yr=Wp/(1+Math.exp(-Math.abs(this._delta*nr)));this._delta<0&&yr!==0&&(yr=1/yr);var $r=typeof this._targetZoom=="number"?vr.zoomScale(this._targetZoom):vr.scale;this._targetZoom=Math.min(vr.maxZoom,Math.max(vr.minZoom,vr.scaleZoom($r*yr))),this._type==="wheel"&&(this._startZoom=vr.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var Kr=typeof this._targetZoom=="number"?this._targetZoom:vr.zoom,gn=this._startZoom,kn=this._easing,jn=!1,na;if(this._type==="wheel"&&gn&&kn){var uo=Math.min((et.browser.now()-this._lastWheelEventTime)/200,1),lo=kn(uo);na=et.number(gn,Kr,lo),uo<1?this._frameId||(this._frameId=!0):jn=!0}else na=Kr,jn=!0;return this._active=!0,jn&&(this._active=!1,this._finishTimeout=setTimeout(function(){Qt._zooming=!1,Qt._handler._triggerRenderFrame(),delete Qt._targetZoom,delete Qt._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!jn,zoomDelta:na-vr.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Ol.prototype._smoothOutEasing=function(Qt){var vr=et.ease;if(this._prevEase){var nr=this._prevEase,yr=(et.browser.now()-nr.start)/nr.duration,$r=nr.easing(yr+.01)-nr.easing(yr),Kr=.27/Math.sqrt($r*$r+1e-4)*.01,gn=Math.sqrt(.27*.27-Kr*Kr);vr=et.bezier(Kr,gn,.25,1)}return this._prevEase={start:et.browser.now(),duration:Qt,easing:vr},vr},Ol.prototype.reset=function(){this._active=!1};var cu=function(Qt,vr){this._clickZoom=Qt,this._tapZoom=vr};cu.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},cu.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},cu.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},cu.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var Lp=function(){this.reset()};Lp.prototype.reset=function(){this._active=!1},Lp.prototype.dblclick=function(Qt,vr){return Qt.preventDefault(),{cameraAnimation:function(nr){nr.easeTo({duration:300,zoom:nr.getZoom()+(Qt.shiftKey?-1:1),around:nr.unproject(vr)},{originalEvent:Qt})}}},Lp.prototype.enable=function(){this._enabled=!0},Lp.prototype.disable=function(){this._enabled=!1,this.reset()},Lp.prototype.isEnabled=function(){return this._enabled},Lp.prototype.isActive=function(){return this._active};var Ev=function(){this._tap=new ko({numTouches:1,numTaps:1}),this.reset()};Ev.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Ev.prototype.touchstart=function(Qt,vr,nr){this._swipePoint||(this._tapTime&&Qt.timeStamp-this._tapTime>Co&&this.reset(),this._tapTime?nr.length>0&&(this._swipePoint=vr[0],this._swipeTouch=nr[0].identifier):this._tap.touchstart(Qt,vr,nr))},Ev.prototype.touchmove=function(Qt,vr,nr){if(!this._tapTime)this._tap.touchmove(Qt,vr,nr);else if(this._swipePoint){if(nr[0].identifier!==this._swipeTouch)return;var yr=vr[0],$r=yr.y-this._swipePoint.y;return this._swipePoint=yr,Qt.preventDefault(),this._active=!0,{zoomDelta:$r/128}}},Ev.prototype.touchend=function(Qt,vr,nr){if(this._tapTime)this._swipePoint&&nr.length===0&&this.reset();else{var yr=this._tap.touchend(Qt,vr,nr);yr&&(this._tapTime=Qt.timeStamp)}},Ev.prototype.touchcancel=function(){this.reset()},Ev.prototype.enable=function(){this._enabled=!0},Ev.prototype.disable=function(){this._enabled=!1,this.reset()},Ev.prototype.isEnabled=function(){return this._enabled},Ev.prototype.isActive=function(){return this._active};var jp=function(Qt,vr,nr){this._el=Qt,this._mousePan=vr,this._touchPan=nr};jp.prototype.enable=function(Qt){this._inertiaOptions=Qt||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},jp.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},jp.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},jp.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var Ku=function(Qt,vr,nr){this._pitchWithRotate=Qt.pitchWithRotate,this._mouseRotate=vr,this._mousePitch=nr};Ku.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},Ku.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},Ku.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},Ku.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var Bp=function(Qt,vr,nr,yr){this._el=Qt,this._touchZoom=vr,this._touchRotate=nr,this._tapDragZoom=yr,this._rotationDisabled=!1,this._enabled=!0};Bp.prototype.enable=function(Qt){this._touchZoom.enable(Qt),this._rotationDisabled||this._touchRotate.enable(Qt),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},Bp.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},Bp.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},Bp.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},Bp.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},Bp.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var Np=function(hr){return hr.zoom||hr.drag||hr.pitch||hr.rotate},n0=function(hr){function Qt(){hr.apply(this,arguments)}return hr&&(Qt.__proto__=hr),Qt.prototype=Object.create(hr&&hr.prototype),Qt.prototype.constructor=Qt,Qt}(et.Event);function a0(hr){return hr.panDelta&&hr.panDelta.mag()||hr.zoomDelta||hr.bearingDelta||hr.pitchDelta}var yp=function(Qt,vr){this._map=Qt,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new dr(Qt),this._bearingSnap=vr.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(vr),et.bindAll(["handleEvent","handleWindowEvent"],this);var nr=this._el;this._listeners=[[nr,"touchstart",{passive:!0}],[nr,"touchmove",{passive:!1}],[nr,"touchend",void 0],[nr,"touchcancel",void 0],[nr,"mousedown",void 0],[nr,"mousemove",void 0],[nr,"mouseup",void 0],[et.window.document,"mousemove",{capture:!0}],[et.window.document,"mouseup",void 0],[nr,"mouseover",void 0],[nr,"mouseout",void 0],[nr,"dblclick",void 0],[nr,"click",void 0],[nr,"keydown",{capture:!1}],[nr,"keyup",void 0],[nr,"wheel",{passive:!1}],[nr,"contextmenu",void 0],[et.window,"blur",void 0]];for(var yr=0,$r=this._listeners;yr<$r.length;yr+=1){var Kr=$r[yr],gn=Kr[0],kn=Kr[1],jn=Kr[2];yt.addEventListener(gn,kn,gn===et.window.document?this.handleWindowEvent:this.handleEvent,jn)}};yp.prototype.destroy=function(){for(var Qt=0,vr=this._listeners;Qtgn?Math.min(2,yl):Math.max(.5,yl),Kl=Math.pow(tu,1-Pl),bu=Kr.unproject(Fs.add(Hs.mult(Pl*Kl)).mult(Ul));Kr.setLocationAtPoint(Kr.renderWorldCopies?bu.wrap():bu,jo)}$r._fireMoveEvents(yr)},function(Pl){$r._afterEase(yr,Pl)},nr),this},Qt.prototype._prepareEase=function(nr,yr,$r){$r===void 0&&($r={}),this._moving=!0,!yr&&!$r.moving&&this.fire(new et.Event("movestart",nr)),this._zooming&&!$r.zooming&&this.fire(new et.Event("zoomstart",nr)),this._rotating&&!$r.rotating&&this.fire(new et.Event("rotatestart",nr)),this._pitching&&!$r.pitching&&this.fire(new et.Event("pitchstart",nr))},Qt.prototype._fireMoveEvents=function(nr){this.fire(new et.Event("move",nr)),this._zooming&&this.fire(new et.Event("zoom",nr)),this._rotating&&this.fire(new et.Event("rotate",nr)),this._pitching&&this.fire(new et.Event("pitch",nr))},Qt.prototype._afterEase=function(nr,yr){if(!(this._easeId&&yr&&this._easeId===yr)){delete this._easeId;var $r=this._zooming,Kr=this._rotating,gn=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,$r&&this.fire(new et.Event("zoomend",nr)),Kr&&this.fire(new et.Event("rotateend",nr)),gn&&this.fire(new et.Event("pitchend",nr)),this.fire(new et.Event("moveend",nr))}},Qt.prototype.flyTo=function(nr,yr){var $r=this;if(!nr.essential&&et.browser.prefersReducedMotion){var Kr=et.pick(nr,["center","zoom","bearing","pitch","around"]);return this.jumpTo(Kr,yr)}this.stop(),nr=et.extend({offset:[0,0],speed:1.2,curve:1.42,easing:et.ease},nr);var gn=this.transform,kn=this.getZoom(),jn=this.getBearing(),na=this.getPitch(),uo=this.getPadding(),lo="zoom"in nr?et.clamp(+nr.zoom,gn.minZoom,gn.maxZoom):kn,Po="bearing"in nr?this._normalizeBearing(nr.bearing,jn):jn,Jo="pitch"in nr?+nr.pitch:na,Ko="padding"in nr?nr.padding:gn.padding,jo=gn.zoomScale(lo-kn),es=et.Point.convert(nr.offset),ps=gn.centerPoint.add(es),Fs=gn.pointLocation(ps),Hs=et.LngLat.convert(nr.center||Fs);this._normalizeCenter(Hs);var yl=gn.project(Fs),Tl=gn.project(Hs).sub(yl),qs=nr.curve,_l=Math.max(gn.width,gn.height),Pl=_l/jo,Ul=Tl.mag();if("minZoom"in nr){var tu=et.clamp(Math.min(nr.minZoom,kn,lo),gn.minZoom,gn.maxZoom),Kl=_l/gn.zoomScale(tu-kn);qs=Math.sqrt(Kl/Ul*2)}var bu=qs*qs;function $u(wu){var Gu=(Pl*Pl-_l*_l+(wu?-1:1)*bu*bu*Ul*Ul)/(2*(wu?Pl:_l)*bu*Ul);return Math.log(Math.sqrt(Gu*Gu+1)-Gu)}function ku(wu){return(Math.exp(wu)-Math.exp(-wu))/2}function iu(wu){return(Math.exp(wu)+Math.exp(-wu))/2}function Du(wu){return ku(wu)/iu(wu)}var _u=$u(0),Zu=function(wu){return iu(_u)/iu(_u+qs*wu)},Hu=function(wu){return _l*((iu(_u)*Du(_u+qs*wu)-ku(_u))/bu)/Ul},dp=($u(1)-_u)/qs;if(Math.abs(Ul)<1e-6||!isFinite(dp)){if(Math.abs(_l-Pl)<1e-6)return this.easeTo(nr,yr);var Pu=Pl<_l?-1:1;dp=Math.abs(Math.log(Pl/_l))/qs,Hu=function(){return 0},Zu=function(wu){return Math.exp(Pu*qs*wu)}}if("duration"in nr)nr.duration=+nr.duration;else{var ap="screenSpeed"in nr?+nr.screenSpeed/qs:+nr.speed;nr.duration=1e3*dp/ap}return nr.maxDuration&&nr.duration>nr.maxDuration&&(nr.duration=0),this._zooming=!0,this._rotating=jn!==Po,this._pitching=Jo!==na,this._padding=!gn.isPaddingEqual(Ko),this._prepareEase(yr,!1),this._ease(function(wu){var Gu=wu*dp,Cp=1/Zu(Gu);gn.zoom=wu===1?lo:kn+gn.scaleZoom(Cp),$r._rotating&&(gn.bearing=et.number(jn,Po,wu)),$r._pitching&&(gn.pitch=et.number(na,Jo,wu)),$r._padding&&(gn.interpolatePadding(uo,Ko,wu),ps=gn.centerPoint.add(es));var Jp=wu===1?Hs:gn.unproject(yl.add(Tl.mult(Hu(Gu))).mult(Cp));gn.setLocationAtPoint(gn.renderWorldCopies?Jp.wrap():Jp,ps),$r._fireMoveEvents(yr)},function(){return $r._afterEase(yr)},nr),this},Qt.prototype.isEasing=function(){return!!this._easeFrameId},Qt.prototype.stop=function(){return this._stop()},Qt.prototype._stop=function(nr,yr){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var $r=this._onEaseEnd;delete this._onEaseEnd,$r.call(this,yr)}if(!nr){var Kr=this.handlers;Kr&&Kr.stop(!1)}return this},Qt.prototype._ease=function(nr,yr,$r){$r.animate===!1||$r.duration===0?(nr(1),yr()):(this._easeStart=et.browser.now(),this._easeOptions=$r,this._onEaseFrame=nr,this._onEaseEnd=yr,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},Qt.prototype._renderFrameCallback=function(){var nr=Math.min((et.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(nr)),nr<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},Qt.prototype._normalizeBearing=function(nr,yr){nr=et.wrap(nr,-180,180);var $r=Math.abs(nr-yr);return Math.abs(nr-360-yr)<$r&&(nr-=360),Math.abs(nr+360-yr)<$r&&(nr+=360),nr},Qt.prototype._normalizeCenter=function(nr){var yr=this.transform;if(!(!yr.renderWorldCopies||yr.lngRange)){var $r=nr.lng-yr.center.lng;nr.lng+=$r>180?-360:$r<-180?360:0}},Qt}(et.Evented),Fu=function(Qt){Qt===void 0&&(Qt={}),this.options=Qt,et.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};Fu.prototype.getDefaultPosition=function(){return"bottom-right"},Fu.prototype.onAdd=function(Qt){var vr=this.options&&this.options.compact;return this._map=Qt,this._container=yt.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=yt.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=yt.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),vr&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),vr===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},Fu.prototype.onRemove=function(){yt.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},Fu.prototype._setElementTitle=function(Qt,vr){var nr=this._map._getUIString("AttributionControl."+vr);Qt.title=nr,Qt.setAttribute("aria-label",nr)},Fu.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},Fu.prototype._updateEditLink=function(){var Qt=this._editLink;Qt||(Qt=this._editLink=this._container.querySelector(".mapbox-improve-map"));var vr=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||et.config.ACCESS_TOKEN}];if(Qt){var nr=vr.reduce(function(yr,$r,Kr){return $r.value&&(yr+=$r.key+"="+$r.value+(Kr=0)return!1;return!0});var gn=Qt.join(" | ");gn!==this._attribHTML&&(this._attribHTML=gn,Qt.length?(this._innerContainer.innerHTML=gn,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},Fu.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var xp=function(){et.bindAll(["_updateLogo"],this),et.bindAll(["_updateCompact"],this)};xp.prototype.onAdd=function(Qt){this._map=Qt,this._container=yt.create("div","mapboxgl-ctrl");var vr=yt.create("a","mapboxgl-ctrl-logo");return vr.target="_blank",vr.rel="noopener nofollow",vr.href="https://www.mapbox.com/",vr.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),vr.setAttribute("rel","noopener nofollow"),this._container.appendChild(vr),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},xp.prototype.onRemove=function(){yt.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},xp.prototype.getDefaultPosition=function(){return"bottom-left"},xp.prototype._updateLogo=function(Qt){(!Qt||Qt.sourceDataType==="metadata")&&(this._container.style.display=this._logoRequired()?"block":"none")},xp.prototype._logoRequired=function(){if(this._map.style){var Qt=this._map.style.sourceCaches;for(var vr in Qt){var nr=Qt[vr].getSource();if(nr.mapbox_logo)return!0}return!1}},xp.prototype._updateCompact=function(){var Qt=this._container.children;if(Qt.length){var vr=Qt[0];this._map.getCanvasContainer().offsetWidth<250?vr.classList.add("mapboxgl-compact"):vr.classList.remove("mapboxgl-compact")}};var Tv=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};Tv.prototype.add=function(Qt){var vr=++this._id,nr=this._queue;return nr.push({callback:Qt,id:vr,cancelled:!1}),vr},Tv.prototype.remove=function(Qt){for(var vr=this._currentlyRunning,nr=vr?this._queue.concat(vr):this._queue,yr=0,$r=nr;yr<$r.length;yr+=1){var Kr=$r[yr];if(Kr.id===Qt){Kr.cancelled=!0;return}}},Tv.prototype.run=function(Qt){Qt===void 0&&(Qt=0);var vr=this._currentlyRunning=this._queue;this._queue=[];for(var nr=0,yr=vr;nrnr.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(nr.minPitch!=null&&nr.maxPitch!=null&&nr.minPitch>nr.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(nr.minPitch!=null&&nr.minPitchMm)throw new Error("maxPitch must be less than or equal to "+Mm);var $r=new $s(nr.minZoom,nr.maxZoom,nr.minPitch,nr.maxPitch,nr.renderWorldCopies);if(hr.call(this,$r,nr),this._interactive=nr.interactive,this._maxTileCacheSize=nr.maxTileCacheSize,this._failIfMajorPerformanceCaveat=nr.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=nr.preserveDrawingBuffer,this._antialias=nr.antialias,this._trackResize=nr.trackResize,this._bearingSnap=nr.bearingSnap,this._refreshExpiredTiles=nr.refreshExpiredTiles,this._fadeDuration=nr.fadeDuration,this._crossSourceCollisions=nr.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=nr.collectResourceTiming,this._renderTaskQueue=new Tv,this._controls=[],this._mapId=et.uniqueId(),this._locale=et.extend({},q0,nr.locale),this._clickTolerance=nr.clickTolerance,this._requestManager=new et.RequestManager(nr.transformRequest,nr.accessToken),typeof nr.container=="string"){if(this._container=et.window.document.getElementById(nr.container),!this._container)throw new Error("Container '"+nr.container+"' not found.")}else if(nr.container instanceof hx)this._container=nr.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");if(nr.maxBounds&&this.setMaxBounds(nr.maxBounds),et.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return yr._update(!1)}),this.on("moveend",function(){return yr._update(!1)}),this.on("zoom",function(){return yr._update(!0)}),typeof et.window<"u"&&(et.window.addEventListener("online",this._onWindowOnline,!1),et.window.addEventListener("resize",this._onWindowResize,!1),et.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new yp(this,nr);var Kr=typeof nr.hash=="string"&&nr.hash||void 0;this._hash=nr.hash&&new du(Kr).addTo(this),(!this._hash||!this._hash._onHashChange())&&(this.jumpTo({center:nr.center,zoom:nr.zoom,bearing:nr.bearing,pitch:nr.pitch}),nr.bounds&&(this.resize(),this.fitBounds(nr.bounds,et.extend({},nr.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=nr.localIdeographFontFamily,nr.style&&this.setStyle(nr.style,{localIdeographFontFamily:nr.localIdeographFontFamily}),nr.attributionControl&&this.addControl(new Fu({customAttribution:nr.customAttribution})),this.addControl(new xp,nr.logoPosition),this.on("style.load",function(){yr.transform.unmodified&&yr.jumpTo(yr.style.stylesheet)}),this.on("data",function(gn){yr._update(gn.dataType==="style"),yr.fire(new et.Event(gn.dataType+"data",gn))}),this.on("dataloading",function(gn){yr.fire(new et.Event(gn.dataType+"dataloading",gn))})}hr&&(Qt.__proto__=hr),Qt.prototype=Object.create(hr&&hr.prototype),Qt.prototype.constructor=Qt;var vr={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return Qt.prototype._getMapId=function(){return this._mapId},Qt.prototype.addControl=function(yr,$r){if($r===void 0&&(yr.getDefaultPosition?$r=yr.getDefaultPosition():$r="top-right"),!yr||!yr.onAdd)return this.fire(new et.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var Kr=yr.onAdd(this);this._controls.push(yr);var gn=this._controlPositions[$r];return $r.indexOf("bottom")!==-1?gn.insertBefore(Kr,gn.firstChild):gn.appendChild(Kr),this},Qt.prototype.removeControl=function(yr){if(!yr||!yr.onRemove)return this.fire(new et.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var $r=this._controls.indexOf(yr);return $r>-1&&this._controls.splice($r,1),yr.onRemove(this),this},Qt.prototype.hasControl=function(yr){return this._controls.indexOf(yr)>-1},Qt.prototype.resize=function(yr){var $r=this._containerDimensions(),Kr=$r[0],gn=$r[1];this._resizeCanvas(Kr,gn),this.transform.resize(Kr,gn),this.painter.resize(Kr,gn);var kn=!this._moving;return kn&&(this.stop(),this.fire(new et.Event("movestart",yr)).fire(new et.Event("move",yr))),this.fire(new et.Event("resize",yr)),kn&&this.fire(new et.Event("moveend",yr)),this},Qt.prototype.getBounds=function(){return this.transform.getBounds()},Qt.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},Qt.prototype.setMaxBounds=function(yr){return this.transform.setMaxBounds(et.LngLatBounds.convert(yr)),this._update()},Qt.prototype.setMinZoom=function(yr){if(yr=yr??t1,yr>=t1&&yr<=this.transform.maxZoom)return this.transform.minZoom=yr,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=yr,this._update(),this.getZoom()>yr&&this.setZoom(yr),this;throw new Error("maxZoom must be greater than the current minZoom")},Qt.prototype.getMaxZoom=function(){return this.transform.maxZoom},Qt.prototype.setMinPitch=function(yr){if(yr=yr??Bv,yr=Bv&&yr<=this.transform.maxPitch)return this.transform.minPitch=yr,this._update(),this.getPitch()Mm)throw new Error("maxPitch must be less than or equal to "+Mm);if(yr>=this.transform.minPitch)return this.transform.maxPitch=yr,this._update(),this.getPitch()>yr&&this.setPitch(yr),this;throw new Error("maxPitch must be greater than the current minPitch")},Qt.prototype.getMaxPitch=function(){return this.transform.maxPitch},Qt.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},Qt.prototype.setRenderWorldCopies=function(yr){return this.transform.renderWorldCopies=yr,this._update()},Qt.prototype.project=function(yr){return this.transform.locationPoint(et.LngLat.convert(yr))},Qt.prototype.unproject=function(yr){return this.transform.pointLocation(et.Point.convert(yr))},Qt.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},Qt.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},Qt.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},Qt.prototype._createDelegatedListener=function(yr,$r,Kr){var gn=this,kn;if(yr==="mouseenter"||yr==="mouseover"){var jn=!1,na=function(jo){var es=gn.getLayer($r)?gn.queryRenderedFeatures(jo.point,{layers:[$r]}):[];es.length?jn||(jn=!0,Kr.call(gn,new nn(yr,gn,jo.originalEvent,{features:es}))):jn=!1},uo=function(){jn=!1};return{layer:$r,listener:Kr,delegates:{mousemove:na,mouseout:uo}}}else if(yr==="mouseleave"||yr==="mouseout"){var lo=!1,Po=function(jo){var es=gn.getLayer($r)?gn.queryRenderedFeatures(jo.point,{layers:[$r]}):[];es.length?lo=!0:lo&&(lo=!1,Kr.call(gn,new nn(yr,gn,jo.originalEvent)))},Jo=function(jo){lo&&(lo=!1,Kr.call(gn,new nn(yr,gn,jo.originalEvent)))};return{layer:$r,listener:Kr,delegates:{mousemove:Po,mouseout:Jo}}}else{var Ko=function(jo){var es=gn.getLayer($r)?gn.queryRenderedFeatures(jo.point,{layers:[$r]}):[];es.length&&(jo.features=es,Kr.call(gn,jo),delete jo.features)};return{layer:$r,listener:Kr,delegates:(kn={},kn[yr]=Ko,kn)}}},Qt.prototype.on=function(yr,$r,Kr){if(Kr===void 0)return hr.prototype.on.call(this,yr,$r);var gn=this._createDelegatedListener(yr,$r,Kr);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[yr]=this._delegatedListeners[yr]||[],this._delegatedListeners[yr].push(gn);for(var kn in gn.delegates)this.on(kn,gn.delegates[kn]);return this},Qt.prototype.once=function(yr,$r,Kr){if(Kr===void 0)return hr.prototype.once.call(this,yr,$r);var gn=this._createDelegatedListener(yr,$r,Kr);for(var kn in gn.delegates)this.once(kn,gn.delegates[kn]);return this},Qt.prototype.off=function(yr,$r,Kr){var gn=this;if(Kr===void 0)return hr.prototype.off.call(this,yr,$r);var kn=function(jn){for(var na=jn[yr],uo=0;uo180;){var Kr=vr.locationPoint(hr);if(Kr.x>=0&&Kr.y>=0&&Kr.x<=vr.width&&Kr.y<=vr.height)break;hr.lng>vr.center.lng?hr.lng-=360:hr.lng+=360}return hr}var py={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function Qm(hr,Qt,vr){var nr=hr.classList;for(var yr in py)nr.remove("mapboxgl-"+vr+"-anchor-"+yr);nr.add("mapboxgl-"+vr+"-anchor-"+Qt)}var km=function(hr){function Qt(vr,nr){if(hr.call(this),(vr instanceof et.window.HTMLElement||nr)&&(vr=et.extend({element:vr},nr)),et.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=vr&&vr.anchor||"center",this._color=vr&&vr.color||"#3FB1CE",this._scale=vr&&vr.scale||1,this._draggable=vr&&vr.draggable||!1,this._clickTolerance=vr&&vr.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=vr&&vr.rotation||0,this._rotationAlignment=vr&&vr.rotationAlignment||"auto",this._pitchAlignment=vr&&vr.pitchAlignment&&vr.pitchAlignment!=="auto"?vr.pitchAlignment:this._rotationAlignment,!vr||!vr.element){this._defaultMarker=!0,this._element=yt.create("div"),this._element.setAttribute("aria-label","Map marker");var yr=yt.createNS("http://www.w3.org/2000/svg","svg"),$r=41,Kr=27;yr.setAttributeNS(null,"display","block"),yr.setAttributeNS(null,"height",$r+"px"),yr.setAttributeNS(null,"width",Kr+"px"),yr.setAttributeNS(null,"viewBox","0 0 "+Kr+" "+$r);var gn=yt.createNS("http://www.w3.org/2000/svg","g");gn.setAttributeNS(null,"stroke","none"),gn.setAttributeNS(null,"stroke-width","1"),gn.setAttributeNS(null,"fill","none"),gn.setAttributeNS(null,"fill-rule","evenodd");var kn=yt.createNS("http://www.w3.org/2000/svg","g");kn.setAttributeNS(null,"fill-rule","nonzero");var jn=yt.createNS("http://www.w3.org/2000/svg","g");jn.setAttributeNS(null,"transform","translate(3.0, 29.0)"),jn.setAttributeNS(null,"fill","#000000");for(var na=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}],uo=0,lo=na;uo=yr}this._isDragging&&(this._pos=nr.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new et.Event("dragstart"))),this.fire(new et.Event("drag")))},Qt.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new et.Event("dragend")),this._state="inactive"},Qt.prototype._addDragHandler=function(nr){this._element.contains(nr.originalEvent.target)&&(nr.preventDefault(),this._positionDelta=nr.point.sub(this._pos).add(this._offset),this._pointerdownPos=nr.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},Qt.prototype.setDraggable=function(nr){return this._draggable=!!nr,this._map&&(nr?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},Qt.prototype.isDraggable=function(){return this._draggable},Qt.prototype.setRotation=function(nr){return this._rotation=nr||0,this._update(),this},Qt.prototype.getRotation=function(){return this._rotation},Qt.prototype.setRotationAlignment=function(nr){return this._rotationAlignment=nr||"auto",this._update(),this},Qt.prototype.getRotationAlignment=function(){return this._rotationAlignment},Qt.prototype.setPitchAlignment=function(nr){return this._pitchAlignment=nr&&nr!=="auto"?nr:this._rotationAlignment,this._update(),this},Qt.prototype.getPitchAlignment=function(){return this._pitchAlignment},Qt}(et.Evented),vy={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Lm;function gy(hr){Lm!==void 0?hr(Lm):et.window.navigator.permissions!==void 0?et.window.navigator.permissions.query({name:"geolocation"}).then(function(Qt){Lm=Qt.state!=="denied",hr(Lm)}):(Lm=!!et.window.navigator.geolocation,hr(Lm))}var um=0,Dm=!1,Hy=function(hr){function Qt(vr){hr.call(this),this.options=et.extend({},vy,vr),et.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return hr&&(Qt.__proto__=hr),Qt.prototype=Object.create(hr&&hr.prototype),Qt.prototype.constructor=Qt,Qt.prototype.onAdd=function(nr){return this._map=nr,this._container=yt.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),gy(this._setupUI),this._container},Qt.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(et.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),yt.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,um=0,Dm=!1},Qt.prototype._isOutOfMapMaxBounds=function(nr){var yr=this._map.getMaxBounds(),$r=nr.coords;return yr&&($r.longitudeyr.getEast()||$r.latitudeyr.getNorth())},Qt.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break}},Qt.prototype._onSuccess=function(nr){if(this._map){if(this._isOutOfMapMaxBounds(nr)){this._setErrorState(),this.fire(new et.Event("outofmaxbounds",nr)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=nr,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(nr),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera(nr),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new et.Event("geolocate",nr)),this._finish()}},Qt.prototype._updateCamera=function(nr){var yr=new et.LngLat(nr.coords.longitude,nr.coords.latitude),$r=nr.coords.accuracy,Kr=this._map.getBearing(),gn=et.extend({bearing:Kr},this.options.fitBoundsOptions);this._map.fitBounds(yr.toBounds($r),gn,{geolocateSource:!0})},Qt.prototype._updateMarker=function(nr){if(nr){var yr=new et.LngLat(nr.coords.longitude,nr.coords.latitude);this._accuracyCircleMarker.setLngLat(yr).addTo(this._map),this._userLocationDotMarker.setLngLat(yr).addTo(this._map),this._accuracy=nr.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},Qt.prototype._updateCircleRadius=function(){var nr=this._map._container.clientHeight/2,yr=this._map.unproject([0,nr]),$r=this._map.unproject([1,nr]),Kr=yr.distanceTo($r),gn=Math.ceil(2*this._accuracy/Kr);this._circleElement.style.width=gn+"px",this._circleElement.style.height=gn+"px"},Qt.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},Qt.prototype._onError=function(nr){if(this._map){if(this.options.trackUserLocation)if(nr.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var yr=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=yr,this._geolocateButton.setAttribute("aria-label",yr),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(nr.code===3&&Dm)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new et.Event("error",nr)),this._finish()}},Qt.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},Qt.prototype._setupUI=function(nr){var yr=this;if(this._container.addEventListener("contextmenu",function(gn){return gn.preventDefault()}),this._geolocateButton=yt.create("button","mapboxgl-ctrl-geolocate",this._container),yt.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",nr===!1){et.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var $r=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=$r,this._geolocateButton.setAttribute("aria-label",$r)}else{var Kr=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=Kr,this._geolocateButton.setAttribute("aria-label",Kr)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=yt.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new km(this._dotElement),this._circleElement=yt.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new km({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(gn){var kn=gn.originalEvent&&gn.originalEvent.type==="resize";!gn.geolocateSource&&yr._watchState==="ACTIVE_LOCK"&&!kn&&(yr._watchState="BACKGROUND",yr._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),yr._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),yr.fire(new et.Event("trackuserlocationend")))})},Qt.prototype.trigger=function(){if(!this._setup)return et.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new et.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":um--,Dm=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new et.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new et.Event("trackuserlocationstart"));break}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error");break}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),um++;var nr;um>1?(nr={maximumAge:6e5,timeout:0},Dm=!0):(nr=this.options.positionOptions,Dm=!1),this._geolocationWatchID=et.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,nr)}}else et.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},Qt.prototype._clearWatch=function(){et.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},Qt}(et.Evented),px={maxWidth:100,unit:"metric"},Pm=function(Qt){this.options=et.extend({},px,Qt),et.bindAll(["_onMove","setUnit"],this)};Pm.prototype.getDefaultPosition=function(){return"bottom-left"},Pm.prototype._onMove=function(){r1(this._map,this._container,this.options)},Pm.prototype.onAdd=function(Qt){return this._map=Qt,this._container=yt.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",Qt.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Pm.prototype.onRemove=function(){yt.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Pm.prototype.setUnit=function(Qt){this.options.unit=Qt,r1(this._map,this._container,this.options)};function r1(hr,Qt,vr){var nr=vr&&vr.maxWidth||100,yr=hr._container.clientHeight/2,$r=hr.unproject([0,yr]),Kr=hr.unproject([nr,yr]),gn=$r.distanceTo(Kr);if(vr&&vr.unit==="imperial"){var kn=3.2808*gn;if(kn>5280){var jn=kn/5280;qm(Qt,nr,jn,hr._getUIString("ScaleControl.Miles"))}else qm(Qt,nr,kn,hr._getUIString("ScaleControl.Feet"))}else if(vr&&vr.unit==="nautical"){var na=gn/1852;qm(Qt,nr,na,hr._getUIString("ScaleControl.NauticalMiles"))}else gn>=1e3?qm(Qt,nr,gn/1e3,hr._getUIString("ScaleControl.Kilometers")):qm(Qt,nr,gn,hr._getUIString("ScaleControl.Meters"))}function qm(hr,Qt,vr,nr){var yr=Px(vr),$r=yr/vr;hr.style.width=Qt*$r+"px",hr.innerHTML=yr+" "+nr}function vx(hr){var Qt=Math.pow(10,Math.ceil(-Math.log(hr)/Math.LN10));return Math.round(hr*Qt)/Qt}function Px(hr){var Qt=Math.pow(10,(""+Math.floor(hr)).length-1),vr=hr/Qt;return vr=vr>=10?10:vr>=5?5:vr>=3?3:vr>=2?2:vr>=1?1:vx(vr),Qt*vr}var B0=function(Qt){this._fullscreen=!1,Qt&&Qt.container&&(Qt.container instanceof et.window.HTMLElement?this._container=Qt.container:et.warnOnce("Full screen control 'container' must be a DOM element.")),et.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in et.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in et.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in et.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in et.window.document&&(this._fullscreenchange="MSFullscreenChange")};B0.prototype.onAdd=function(Qt){return this._map=Qt,this._container||(this._container=this._map.getContainer()),this._controlContainer=yt.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",et.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},B0.prototype.onRemove=function(){yt.remove(this._controlContainer),this._map=null,et.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},B0.prototype._checkFullscreenSupport=function(){return!!(et.window.document.fullscreenEnabled||et.window.document.mozFullScreenEnabled||et.window.document.msFullscreenEnabled||et.window.document.webkitFullscreenEnabled)},B0.prototype._setupUI=function(){var Qt=this._fullscreenButton=yt.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);yt.create("span","mapboxgl-ctrl-icon",Qt).setAttribute("aria-hidden",!0),Qt.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),et.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},B0.prototype._updateTitle=function(){var Qt=this._getTitle();this._fullscreenButton.setAttribute("aria-label",Qt),this._fullscreenButton.title=Qt},B0.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},B0.prototype._isFullscreen=function(){return this._fullscreen},B0.prototype._changeIcon=function(){var Qt=et.window.document.fullscreenElement||et.window.document.mozFullScreenElement||et.window.document.webkitFullscreenElement||et.window.document.msFullscreenElement;Qt===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},B0.prototype._onClickFullscreen=function(){this._isFullscreen()?et.window.document.exitFullscreen?et.window.document.exitFullscreen():et.window.document.mozCancelFullScreen?et.window.document.mozCancelFullScreen():et.window.document.msExitFullscreen?et.window.document.msExitFullscreen():et.window.document.webkitCancelFullScreen&&et.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var Nx={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},Ox=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),cm=function(hr){function Qt(vr){hr.call(this),this.options=et.extend(Object.create(Nx),vr),et.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return hr&&(Qt.__proto__=hr),Qt.prototype=Object.create(hr&&hr.prototype),Qt.prototype.constructor=Qt,Qt.prototype.addTo=function(nr){return this._map&&this.remove(),this._map=nr,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new et.Event("open")),this},Qt.prototype.isOpen=function(){return!!this._map},Qt.prototype.remove=function(){return this._content&&yt.remove(this._content),this._container&&(yt.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new et.Event("close")),this},Qt.prototype.getLngLat=function(){return this._lngLat},Qt.prototype.setLngLat=function(nr){return this._lngLat=et.LngLat.convert(nr),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},Qt.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},Qt.prototype.getElement=function(){return this._container},Qt.prototype.setText=function(nr){return this.setDOMContent(et.window.document.createTextNode(nr))},Qt.prototype.setHTML=function(nr){var yr=et.window.document.createDocumentFragment(),$r=et.window.document.createElement("body"),Kr;for($r.innerHTML=nr;Kr=$r.firstChild,!!Kr;)yr.appendChild(Kr);return this.setDOMContent(yr)},Qt.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},Qt.prototype.setMaxWidth=function(nr){return this.options.maxWidth=nr,this._update(),this},Qt.prototype.setDOMContent=function(nr){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=yt.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(nr),this._createCloseButton(),this._update(),this._focusFirstElement(),this},Qt.prototype.addClassName=function(nr){this._container&&this._container.classList.add(nr)},Qt.prototype.removeClassName=function(nr){this._container&&this._container.classList.remove(nr)},Qt.prototype.setOffset=function(nr){return this.options.offset=nr,this._update(),this},Qt.prototype.toggleClassName=function(nr){if(this._container)return this._container.classList.toggle(nr)},Qt.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=yt.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},Qt.prototype._onMouseUp=function(nr){this._update(nr.point)},Qt.prototype._onMouseMove=function(nr){this._update(nr.point)},Qt.prototype._onDrag=function(nr){this._update(nr.point)},Qt.prototype._update=function(nr){var yr=this,$r=this._lngLat||this._trackPointer;if(!(!this._map||!$r||!this._content)&&(this._container||(this._container=yt.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=yt.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(Po){return yr._container.classList.add(Po)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=F0(this._lngLat,this._pos,this._map.transform)),!(this._trackPointer&&!nr))){var Kr=this._pos=this._trackPointer&&nr?nr:this._map.project(this._lngLat),gn=this.options.anchor,kn=Gy(this.options.offset);if(!gn){var jn=this._container.offsetWidth,na=this._container.offsetHeight,uo;Kr.y+kn.bottom.ythis._map.transform.height-na?uo=["bottom"]:uo=[],Kr.xthis._map.transform.width-jn/2&&uo.push("right"),uo.length===0?gn="bottom":gn=uo.join("-")}var lo=Kr.add(kn[gn]).round();yt.setTransform(this._container,py[gn]+" translate("+lo.x+"px,"+lo.y+"px)"),Qm(this._container,gn,"popup")}},Qt.prototype._focusFirstElement=function(){if(!(!this.options.focusAfterOpen||!this._container)){var nr=this._container.querySelector(Ox);nr&&nr.focus()}},Qt.prototype._onClose=function(){this.remove()},Qt}(et.Evented);function Gy(hr){if(hr)if(typeof hr=="number"){var Qt=Math.round(Math.sqrt(.5*Math.pow(hr,2)));return{center:new et.Point(0,0),top:new et.Point(0,hr),"top-left":new et.Point(Qt,Qt),"top-right":new et.Point(-Qt,Qt),bottom:new et.Point(0,-hr),"bottom-left":new et.Point(Qt,-Qt),"bottom-right":new et.Point(-Qt,-Qt),left:new et.Point(hr,0),right:new et.Point(-hr,0)}}else if(hr instanceof et.Point||Array.isArray(hr)){var vr=et.Point.convert(hr);return{center:vr,top:vr,"top-left":vr,"top-right":vr,bottom:vr,"bottom-left":vr,"bottom-right":vr,left:vr,right:vr}}else return{center:et.Point.convert(hr.center||[0,0]),top:et.Point.convert(hr.top||[0,0]),"top-left":et.Point.convert(hr["top-left"]||[0,0]),"top-right":et.Point.convert(hr["top-right"]||[0,0]),bottom:et.Point.convert(hr.bottom||[0,0]),"bottom-left":et.Point.convert(hr["bottom-left"]||[0,0]),"bottom-right":et.Point.convert(hr["bottom-right"]||[0,0]),left:et.Point.convert(hr.left||[0,0]),right:et.Point.convert(hr.right||[0,0])};else return Gy(new et.Point(0,0))}var zp={version:et.version,supported:Tt,setRTLTextPlugin:et.setRTLTextPlugin,getRTLTextPluginStatus:et.getRTLTextPluginStatus,Map:Im,NavigationControl:O1,GeolocateControl:Hy,AttributionControl:Fu,ScaleControl:Pm,FullscreenControl:B0,Popup:cm,Marker:km,Style:Sv,LngLat:et.LngLat,LngLatBounds:et.LngLatBounds,Point:et.Point,MercatorCoordinate:et.MercatorCoordinate,Evented:et.Evented,config:et.config,prewarm:Bn,clearPrewarmedResources:xa,get accessToken(){return et.config.ACCESS_TOKEN},set accessToken(hr){et.config.ACCESS_TOKEN=hr},get baseApiUrl(){return et.config.API_URL},set baseApiUrl(hr){et.config.API_URL=hr},get workerCount(){return po.workerCount},set workerCount(hr){po.workerCount=hr},get maxParallelImageRequests(){return et.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(hr){et.config.MAX_PARALLEL_IMAGE_REQUESTS=hr},clearStorage:function(Qt){et.clearTileCache(Qt)},workerUrl:""};return zp}),it})},3108:function(Ct,Rt,o){Ct.exports=o(26099)},26099:function(Ct,Rt,o){var it=o(64928),xt=o(32420),et=o(51160),Tt=o(76752),yt=o(55616),ut=o(31264),ht=o(47520),j=o(18400),_=o(72512),rt=o(76244),tt=1073741824;Ct.exports=function(nt,vt){vt||(vt={}),nt=ht(nt,"float64"),vt=yt(vt,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});var dt=ut(vt.maxDepth,255),bt=ut(vt.bounds,Tt(nt,2));bt[0]===bt[2]&&bt[2]++,bt[1]===bt[3]&&bt[3]++;var ft=st(nt,bt),at=nt.length>>>1,mt;vt.dtype||(vt.dtype="array"),typeof vt.dtype=="string"?mt=new(_(vt.dtype))(at):vt.dtype&&(mt=vt.dtype,Array.isArray(mt)&&(mt.length=at));for(var St=0;Stdt||er>tt){for(var jt=0;jtzr||sr>Or||Zt=or)&&Er!==Rr){var kr=_t[_r];Rr===void 0&&(Rr=kr.length);for(var Nr=Er;Nr=lr&&sn<=Yt&&un>=Jt&&un<=rr&&cr.push(Qr)}var en=Mt[_r],Xr=en[Er*4+0],ln=en[Er*4+1],mn=en[Er*4+2],pn=en[Er*4+3],Tn=Ar(en,Er+1),Zr=Tr*.5,Fr=_r+1;mr(br,Ir,Zr,Fr,Xr,ln||mn||pn||Tn),mr(br,Ir+Zr,Zr,Fr,ln,mn||pn||Tn),mr(br+Zr,Ir,Zr,Fr,mn,pn||Tn),mr(br+Zr,Ir+Zr,Zr,Fr,pn,Tn)}}}function Ar(br,Ir){for(var Tr=null,_r=0;Tr===null;)if(Tr=br[Ir*4+_r],_r++,_r>br.length)return null;return Tr}return cr}function Nt(Ut,Ht,Vt,Xt,qt){for(var er=[],lr=0;lr0){_+=Math.abs(ut(j[0]));for(var rt=1;rt2){for(vt=0;vt=0))throw new Error("precision must be a positive number");var It=Math.pow(10,ct||0);return Math.round(wt*It)/It}Rt.round=ot;function nt(wt,ct){ct===void 0&&(ct="kilometers");var It=Rt.factors[ct];if(!It)throw new Error(ct+" units is invalid");return wt*It}Rt.radiansToLength=nt;function vt(wt,ct){ct===void 0&&(ct="kilometers");var It=Rt.factors[ct];if(!It)throw new Error(ct+" units is invalid");return wt/It}Rt.lengthToRadians=vt;function dt(wt,ct){return ft(vt(wt,ct))}Rt.lengthToDegrees=dt;function bt(wt){var ct=wt%360;return ct<0&&(ct+=360),ct}Rt.bearingToAzimuth=bt;function ft(wt){var ct=wt%(2*Math.PI);return ct*180/Math.PI}Rt.radiansToDegrees=ft;function at(wt){var ct=wt%360;return ct*Math.PI/180}Rt.degreesToRadians=at;function mt(wt,ct,It){if(ct===void 0&&(ct="kilometers"),It===void 0&&(It="kilometers"),!(wt>=0))throw new Error("length must be a positive number");return nt(vt(wt,ct),It)}Rt.convertLength=mt;function St(wt,ct,It){if(ct===void 0&&(ct="meters"),It===void 0&&(It="kilometers"),!(wt>=0))throw new Error("area must be a positive number");var At=Rt.areaFactors[ct];if(!At)throw new Error("invalid original units");var Ot=Rt.areaFactors[It];if(!Ot)throw new Error("invalid final units");return wt/At*Ot}Rt.convertArea=St;function _t(wt){return!isNaN(wt)&&wt!==null&&!Array.isArray(wt)}Rt.isNumber=_t;function Mt(wt){return!!wt&&wt.constructor===Object}Rt.isObject=Mt;function Et(wt){if(!wt)throw new Error("bbox is required");if(!Array.isArray(wt))throw new Error("bbox must be an Array");if(wt.length!==4&&wt.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");wt.forEach(function(ct){if(!_t(ct))throw new Error("bbox must only contain numbers")})}Rt.validateBBox=Et;function kt(wt){if(!wt)throw new Error("id is required");if(["string","number"].indexOf(typeof wt)===-1)throw new Error("id must be a number or a string")}Rt.validateId=kt},3256:function(Ct,Rt,o){Object.defineProperty(Rt,"__esModule",{value:!0});var it=o(46284);function xt(at,mt,St){if(at!==null)for(var _t,Mt,Et,kt,wt,ct,It,At=0,Ot=0,Pt,zt=at.type,Dt=zt==="FeatureCollection",Nt=zt==="Feature",$t=Dt?at.features.length:1,Ut=0;Ut<$t;Ut++){It=Dt?at.features[Ut].geometry:Nt?at.geometry:at,Pt=It?It.type==="GeometryCollection":!1,wt=Pt?It.geometries.length:1;for(var Ht=0;Htct||Dt>It||Nt>At){wt=Ot,ct=_t,It=Dt,At=Nt,Et=0;return}var $t=it.lineString([wt,Ot],St.properties);if(mt($t,_t,Mt,Nt,Et)===!1)return!1;Et++,wt=Ot})===!1)return!1}}})}function nt(at,mt,St){var _t=St,Mt=!1;return ot(at,function(Et,kt,wt,ct,It){Mt===!1&&St===void 0?_t=Et:_t=mt(_t,Et,kt,wt,ct,It),Mt=!0}),_t}function vt(at,mt){if(!at)throw new Error("geojson is required");tt(at,function(St,_t,Mt){if(St.geometry!==null){var Et=St.geometry.type,kt=St.geometry.coordinates;switch(Et){case"LineString":if(mt(St,_t,Mt,0,0)===!1)return!1;break;case"Polygon":for(var wt=0;wtyt[0]&&(Tt[0]=yt[0]),Tt[1]>yt[1]&&(Tt[1]=yt[1]),Tt[2]=0))throw new Error("precision must be a positive number");var It=Math.pow(10,ct||0);return Math.round(wt*It)/It}Rt.round=ot;function nt(wt,ct){ct===void 0&&(ct="kilometers");var It=Rt.factors[ct];if(!It)throw new Error(ct+" units is invalid");return wt*It}Rt.radiansToLength=nt;function vt(wt,ct){ct===void 0&&(ct="kilometers");var It=Rt.factors[ct];if(!It)throw new Error(ct+" units is invalid");return wt/It}Rt.lengthToRadians=vt;function dt(wt,ct){return ft(vt(wt,ct))}Rt.lengthToDegrees=dt;function bt(wt){var ct=wt%360;return ct<0&&(ct+=360),ct}Rt.bearingToAzimuth=bt;function ft(wt){var ct=wt%(2*Math.PI);return ct*180/Math.PI}Rt.radiansToDegrees=ft;function at(wt){var ct=wt%360;return ct*Math.PI/180}Rt.degreesToRadians=at;function mt(wt,ct,It){if(ct===void 0&&(ct="kilometers"),It===void 0&&(It="kilometers"),!(wt>=0))throw new Error("length must be a positive number");return nt(vt(wt,ct),It)}Rt.convertLength=mt;function St(wt,ct,It){if(ct===void 0&&(ct="meters"),It===void 0&&(It="kilometers"),!(wt>=0))throw new Error("area must be a positive number");var At=Rt.areaFactors[ct];if(!At)throw new Error("invalid original units");var Ot=Rt.areaFactors[It];if(!Ot)throw new Error("invalid final units");return wt/At*Ot}Rt.convertArea=St;function _t(wt){return!isNaN(wt)&&wt!==null&&!Array.isArray(wt)}Rt.isNumber=_t;function Mt(wt){return!!wt&&wt.constructor===Object}Rt.isObject=Mt;function Et(wt){if(!wt)throw new Error("bbox is required");if(!Array.isArray(wt))throw new Error("bbox must be an Array");if(wt.length!==4&&wt.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");wt.forEach(function(ct){if(!_t(ct))throw new Error("bbox must only contain numbers")})}Rt.validateBBox=Et;function kt(wt){if(!wt)throw new Error("id is required");if(["string","number"].indexOf(typeof wt)===-1)throw new Error("id must be a number or a string")}Rt.validateId=kt},84880:function(Ct,Rt,o){Object.defineProperty(Rt,"__esModule",{value:!0});var it=o(76796);function xt(at,mt,St){if(at!==null)for(var _t,Mt,Et,kt,wt,ct,It,At=0,Ot=0,Pt,zt=at.type,Dt=zt==="FeatureCollection",Nt=zt==="Feature",$t=Dt?at.features.length:1,Ut=0;Ut<$t;Ut++){It=Dt?at.features[Ut].geometry:Nt?at.geometry:at,Pt=It?It.type==="GeometryCollection":!1,wt=Pt?It.geometries.length:1;for(var Ht=0;Htct||Dt>It||Nt>At){wt=Ot,ct=_t,It=Dt,At=Nt,Et=0;return}var $t=it.lineString([wt,Ot],St.properties);if(mt($t,_t,Mt,Nt,Et)===!1)return!1;Et++,wt=Ot})===!1)return!1}}})}function nt(at,mt,St){var _t=St,Mt=!1;return ot(at,function(Et,kt,wt,ct,It){Mt===!1&&St===void 0?_t=Et:_t=mt(_t,Et,kt,wt,ct,It),Mt=!0}),_t}function vt(at,mt){if(!at)throw new Error("geojson is required");tt(at,function(St,_t,Mt){if(St.geometry!==null){var Et=St.geometry.type,kt=St.geometry.coordinates;switch(Et){case"LineString":if(mt(St,_t,Mt,0,0)===!1)return!1;break;case"Polygon":for(var wt=0;wt=0))throw new Error("precision must be a positive number");var $t=Math.pow(10,Nt||0);return Math.round(Dt*$t)/$t}Rt.round=ot;function nt(Dt,Nt){Nt===void 0&&(Nt="kilometers");var $t=Rt.factors[Nt];if(!$t)throw new Error(Nt+" units is invalid");return Dt*$t}Rt.radiansToLength=nt;function vt(Dt,Nt){Nt===void 0&&(Nt="kilometers");var $t=Rt.factors[Nt];if(!$t)throw new Error(Nt+" units is invalid");return Dt/$t}Rt.lengthToRadians=vt;function dt(Dt,Nt){return ft(vt(Dt,Nt))}Rt.lengthToDegrees=dt;function bt(Dt){var Nt=Dt%360;return Nt<0&&(Nt+=360),Nt}Rt.bearingToAzimuth=bt;function ft(Dt){var Nt=Dt%(2*Math.PI);return Nt*180/Math.PI}Rt.radiansToDegrees=ft;function at(Dt){var Nt=Dt%360;return Nt*Math.PI/180}Rt.degreesToRadians=at;function mt(Dt,Nt,$t){if(Nt===void 0&&(Nt="kilometers"),$t===void 0&&($t="kilometers"),!(Dt>=0))throw new Error("length must be a positive number");return nt(vt(Dt,Nt),$t)}Rt.convertLength=mt;function St(Dt,Nt,$t){if(Nt===void 0&&(Nt="meters"),$t===void 0&&($t="kilometers"),!(Dt>=0))throw new Error("area must be a positive number");var Ut=Rt.areaFactors[Nt];if(!Ut)throw new Error("invalid original units");var Ht=Rt.areaFactors[$t];if(!Ht)throw new Error("invalid final units");return Dt/Ut*Ht}Rt.convertArea=St;function _t(Dt){return!isNaN(Dt)&&Dt!==null&&!Array.isArray(Dt)&&!/^\s*$/.test(Dt)}Rt.isNumber=_t;function Mt(Dt){return!!Dt&&Dt.constructor===Object}Rt.isObject=Mt;function Et(Dt){if(!Dt)throw new Error("bbox is required");if(!Array.isArray(Dt))throw new Error("bbox must be an Array");if(Dt.length!==4&&Dt.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");Dt.forEach(function(Nt){if(!_t(Nt))throw new Error("bbox must only contain numbers")})}Rt.validateBBox=Et;function kt(Dt){if(!Dt)throw new Error("id is required");if(["string","number"].indexOf(typeof Dt)===-1)throw new Error("id must be a number or a string")}Rt.validateId=kt;function wt(){throw new Error("method has been renamed to `radiansToDegrees`")}Rt.radians2degrees=wt;function ct(){throw new Error("method has been renamed to `degreesToRadians`")}Rt.degrees2radians=ct;function It(){throw new Error("method has been renamed to `lengthToDegrees`")}Rt.distanceToDegrees=It;function At(){throw new Error("method has been renamed to `lengthToRadians`")}Rt.distanceToRadians=At;function Ot(){throw new Error("method has been renamed to `radiansToLength`")}Rt.radiansToDistance=Ot;function Pt(){throw new Error("method has been renamed to `bearingToAzimuth`")}Rt.bearingToAngle=Pt;function zt(){throw new Error("method has been renamed to `convertLength`")}Rt.convertDistance=zt},43752:function(Ct,Rt,o){Object.defineProperty(Rt,"__esModule",{value:!0});var it=o(49840);function xt(at,mt,St){if(at!==null)for(var _t,Mt,Et,kt,wt,ct,It,At=0,Ot=0,Pt,zt=at.type,Dt=zt==="FeatureCollection",Nt=zt==="Feature",$t=Dt?at.features.length:1,Ut=0;Ut<$t;Ut++){It=Dt?at.features[Ut].geometry:Nt?at.geometry:at,Pt=It?It.type==="GeometryCollection":!1,wt=Pt?It.geometries.length:1;for(var Ht=0;Htct||Dt>It||Nt>At){wt=Ot,ct=_t,It=Dt,At=Nt,Et=0;return}var $t=it.lineString([wt,Ot],St.properties);if(mt($t,_t,Mt,Nt,Et)===!1)return!1;Et++,wt=Ot})===!1)return!1}}})}function nt(at,mt,St){var _t=St,Mt=!1;return ot(at,function(Et,kt,wt,ct,It){Mt===!1&&St===void 0?_t=Et:_t=mt(_t,Et,kt,wt,ct,It),Mt=!0}),_t}function vt(at,mt){if(!at)throw new Error("geojson is required");tt(at,function(St,_t,Mt){if(St.geometry!==null){var Et=St.geometry.type,kt=St.geometry.coordinates;switch(Et){case"LineString":if(mt(St,_t,Mt,0,0)===!1)return!1;break;case"Polygon":for(var wt=0;wtTt&&(Tt=o[ut]),o[ut]1?er-1:0),Jt=1;Jt1?er-1:0),Jt=1;Jt1?er-1:0),Jt=1;Jt1?er-1:0),Jt=1;Jt"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 st(Dt,Nt,$t){return tt()?st=Reflect.construct:st=function(Ht,Vt,Xt){var qt=[null];qt.push.apply(qt,Vt);var er=Function.bind.apply(Ht,qt),lr=new er;return Xt&&nt(lr,Xt.prototype),lr},st.apply(null,arguments)}function ot(Dt){return Function.toString.call(Dt).indexOf("[native code]")!==-1}function nt(Dt,Nt){return nt=Object.setPrototypeOf||function(Ut,Ht){return Ut.__proto__=Ht,Ut},nt(Dt,Nt)}function vt(Dt){return vt=Object.setPrototypeOf?Object.getPrototypeOf:function($t){return $t.__proto__||Object.getPrototypeOf($t)},vt(Dt)}function dt(Dt){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?dt=function($t){return typeof $t}:dt=function($t){return $t&&typeof Symbol=="function"&&$t.constructor===Symbol&&$t!==Symbol.prototype?"symbol":typeof $t},dt(Dt)}var bt=o(35840),ft=bt.inspect,at=o(86832),yt=at.codes.ERR_INVALID_ARG_TYPE;function St(Dt,Nt,$t){return($t===void 0||$t>Dt.length)&&($t=Dt.length),Dt.substring($t-Nt.length,$t)===Nt}function _t(Dt,Nt){if(Nt=Math.floor(Nt),Dt.length==0||Nt==0)return"";var $t=Dt.length*Nt;for(Nt=Math.floor(Math.log(Nt)/Math.log(2));Nt;)Dt+=Dt,Nt--;return Dt+=Dt.substring(0,$t-Dt.length),Dt}var Mt="",Tt="",kt="",wt="",ct={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:"},It=10;function At(Dt){var Nt=Object.keys(Dt),$t=Object.create(Object.getPrototypeOf(Dt));return Nt.forEach(function(Ut){$t[Ut]=Dt[Ut]}),Object.defineProperty($t,"message",{value:Dt.message}),$t}function Ot(Dt){return ft(Dt,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function Pt(Dt,Nt,$t){var Ut="",Ht="",Vt=0,Xt="",qt=!1,er=Ot(Dt),lr=er.split(` +`))}throw lr}};function Vt(){for(var Xt=arguments.length,qt=new Array(Xt),er=0;er"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 st(Dt,Nt,$t){return tt()?st=Reflect.construct:st=function(Ht,Vt,Xt){var qt=[null];qt.push.apply(qt,Vt);var er=Function.bind.apply(Ht,qt),lr=new er;return Xt&&nt(lr,Xt.prototype),lr},st.apply(null,arguments)}function ot(Dt){return Function.toString.call(Dt).indexOf("[native code]")!==-1}function nt(Dt,Nt){return nt=Object.setPrototypeOf||function(Ut,Ht){return Ut.__proto__=Ht,Ut},nt(Dt,Nt)}function vt(Dt){return vt=Object.setPrototypeOf?Object.getPrototypeOf:function($t){return $t.__proto__||Object.getPrototypeOf($t)},vt(Dt)}function dt(Dt){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?dt=function($t){return typeof $t}:dt=function($t){return $t&&typeof Symbol=="function"&&$t.constructor===Symbol&&$t!==Symbol.prototype?"symbol":typeof $t},dt(Dt)}var bt=o(35840),ft=bt.inspect,at=o(86832),mt=at.codes.ERR_INVALID_ARG_TYPE;function St(Dt,Nt,$t){return($t===void 0||$t>Dt.length)&&($t=Dt.length),Dt.substring($t-Nt.length,$t)===Nt}function _t(Dt,Nt){if(Nt=Math.floor(Nt),Dt.length==0||Nt==0)return"";var $t=Dt.length*Nt;for(Nt=Math.floor(Math.log(Nt)/Math.log(2));Nt;)Dt+=Dt,Nt--;return Dt+=Dt.substring(0,$t-Dt.length),Dt}var Mt="",Et="",kt="",wt="",ct={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:"},It=10;function At(Dt){var Nt=Object.keys(Dt),$t=Object.create(Object.getPrototypeOf(Dt));return Nt.forEach(function(Ut){$t[Ut]=Dt[Ut]}),Object.defineProperty($t,"message",{value:Dt.message}),$t}function Ot(Dt){return ft(Dt,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function Pt(Dt,Nt,$t){var Ut="",Ht="",Vt=0,Xt="",qt=!1,er=Ot(Dt),lr=er.split(` `),Jt=Ot(Nt).split(` `),Yt=0,rr="";if($t==="strictEqual"&&dt(Dt)==="object"&&dt(Nt)==="object"&&Dt!==null&&Nt!==null&&($t="strictEqualObject"),lr.length===1&&Jt.length===1&&lr[0]!==Jt[0]){var jt=lr[0].length+Jt[0].length;if(jt<=It){if((dt(Dt)!=="object"||Dt===null)&&(dt(Nt)!=="object"||Nt===null)&&(Dt!==0||Nt!==0))return"".concat(ct[$t],` @@ -2872,25 +2872,25 @@ uniform `+na+" "+uo+" u_"+lo+`; `)}Yt>3&&(Xt=` `.concat(Mt,"...").concat(wt).concat(Xt),qt=!0),Ut!==""&&(Xt=` `.concat(Ut).concat(Xt),Ut="");var tr=0,cr=ct[$t]+` -`.concat(Tt,"+ actual").concat(wt," ").concat(kt,"- expected").concat(wt),hr=" ".concat(Mt,"...").concat(wt," Lines skipped");for(Yt=0;Yt1&&Yt>2&&(br>4?(Ht+=` -`.concat(Mt,"...").concat(wt),qt=!0):br>3&&(Ht+=` +`.concat(Et,"+ actual").concat(wt," ").concat(kt,"- expected").concat(wt),mr=" ".concat(Mt,"...").concat(wt," Lines skipped");for(Yt=0;Yt1&&Yt>2&&(Ar>4?(Ht+=` +`.concat(Mt,"...").concat(wt),qt=!0):Ar>3&&(Ht+=` `.concat(Jt[Yt-2]),tr++),Ht+=` `.concat(Jt[Yt-1]),tr++),Vt=Yt,Ut+=` -`.concat(kt,"-").concat(wt," ").concat(Jt[Yt]),tr++;else if(Jt.length1&&Yt>2&&(br>4?(Ht+=` -`.concat(Mt,"...").concat(wt),qt=!0):br>3&&(Ht+=` +`.concat(kt,"-").concat(wt," ").concat(Jt[Yt]),tr++;else if(Jt.length1&&Yt>2&&(Ar>4?(Ht+=` +`.concat(Mt,"...").concat(wt),qt=!0):Ar>3&&(Ht+=` `.concat(lr[Yt-2]),tr++),Ht+=` `.concat(lr[Yt-1]),tr++),Vt=Yt,Ht+=` -`.concat(Tt,"+").concat(wt," ").concat(lr[Yt]),tr++;else{var Tr=Jt[Yt],Ir=lr[Yt],Ar=Ir!==Tr&&(!St(Ir,",")||Ir.slice(0,-1)!==Tr);Ar&&St(Tr,",")&&Tr.slice(0,-1)===Ir&&(Ar=!1,Ir+=","),Ar?(br>1&&Yt>2&&(br>4?(Ht+=` -`.concat(Mt,"...").concat(wt),qt=!0):br>3&&(Ht+=` +`.concat(Et,"+").concat(wt," ").concat(lr[Yt]),tr++;else{var br=Jt[Yt],Ir=lr[Yt],Tr=Ir!==br&&(!St(Ir,",")||Ir.slice(0,-1)!==br);Tr&&St(br,",")&&br.slice(0,-1)===Ir&&(Tr=!1,Ir+=","),Tr?(Ar>1&&Yt>2&&(Ar>4?(Ht+=` +`.concat(Mt,"...").concat(wt),qt=!0):Ar>3&&(Ht+=` `.concat(lr[Yt-2]),tr++),Ht+=` `.concat(lr[Yt-1]),tr++),Vt=Yt,Ht+=` -`.concat(Tt,"+").concat(wt," ").concat(Ir),Ut+=` -`.concat(kt,"-").concat(wt," ").concat(Tr),tr+=2):(Ht+=Ut,Ut="",(br===1||Yt===0)&&(Ht+=` - `.concat(Ir),tr++))}if(tr>20&&Yt20&&Yt30)for(Yt[26]="".concat(Mt,"...").concat(wt);Yt.length>27;)Yt.pop();Yt.length===1?Ut=ht(this,vt(Nt).call(this,"".concat(Jt," ").concat(Yt[0]))):Ut=ht(this,vt(Nt).call(this,"".concat(Jt,` `).concat(Yt.join(` @@ -2903,12 +2903,12 @@ uniform `+na+" "+uo+" u_"+lo+`; should equal -`):jt=" ".concat(Vt," ").concat(jt)),Ut=ht(this,vt(Nt).call(this,"".concat(rr).concat(jt)))}return Error.stackTraceLimit=lr,Ut.generatedMessage=!Ht,Object.defineProperty(j(Ut),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),Ut.code="ERR_ASSERTION",Ut.actual=qt,Ut.expected=er,Ut.operator=Vt,Error.captureStackTrace&&Error.captureStackTrace(j(Ut),Xt),Ut.stack,Ut.name="AssertionError",ht(Ut)}return ut(Nt,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:ft.custom,value:function(Ut,Ht){return ft(this,xt({},Ht,{customInspect:!1,depth:0}))}}]),Nt}(rt(Error));Ct.exports=zt},86832:function(Ct,Rt,o){function it(dt){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?it=function(ft){return typeof ft}:it=function(ft){return ft&&typeof Symbol=="function"&&ft.constructor===Symbol&&ft!==Symbol.prototype?"symbol":typeof ft},it(dt)}function xt(dt,bt){if(!(dt instanceof bt))throw new TypeError("Cannot call a class as a function")}function et(dt,bt){return bt&&(it(bt)==="object"||typeof bt=="function")?bt:Et(dt)}function Et(dt){if(dt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return dt}function mt(dt){return mt=Object.setPrototypeOf?Object.getPrototypeOf:function(ft){return ft.__proto__||Object.getPrototypeOf(ft)},mt(dt)}function ut(dt,bt){if(typeof bt!="function"&&bt!==null)throw new TypeError("Super expression must either be null or a function");dt.prototype=Object.create(bt&&bt.prototype,{constructor:{value:dt,writable:!0,configurable:!0}}),bt&&ht(dt,bt)}function ht(dt,bt){return ht=Object.setPrototypeOf||function(at,yt){return at.__proto__=yt,at},ht(dt,bt)}var j={},_,rt;function tt(dt,bt,ft){ft||(ft=Error);function at(St,_t,Mt){return typeof bt=="string"?bt:bt(St,_t,Mt)}var yt=function(St){ut(_t,St);function _t(Mt,Tt,kt){var wt;return xt(this,_t),wt=et(this,mt(_t).call(this,at(Mt,Tt,kt))),wt.code=dt,wt}return _t}(ft);j[dt]=yt}function st(dt,bt){if(Array.isArray(dt)){var ft=dt.length;return dt=dt.map(function(at){return String(at)}),ft>2?"one of ".concat(bt," ").concat(dt.slice(0,ft-1).join(", "),", or ")+dt[ft-1]:ft===2?"one of ".concat(bt," ").concat(dt[0]," or ").concat(dt[1]):"of ".concat(bt," ").concat(dt[0])}else return"of ".concat(bt," ").concat(String(dt))}function ot(dt,bt,ft){return dt.substr(!ft||ft<0?0:+ft,bt.length)===bt}function nt(dt,bt,ft){return(ft===void 0||ft>dt.length)&&(ft=dt.length),dt.substring(ft-bt.length,ft)===bt}function vt(dt,bt,ft){return typeof ft!="number"&&(ft=0),ft+bt.length>dt.length?!1:dt.indexOf(bt,ft)!==-1}tt("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),tt("ERR_INVALID_ARG_TYPE",function(dt,bt,ft){_===void 0&&(_=o(45408)),_(typeof dt=="string","'name' must be a string");var at;typeof bt=="string"&&ot(bt,"not ")?(at="must not be",bt=bt.replace(/^not /,"")):at="must be";var yt;if(nt(dt," argument"))yt="The ".concat(dt," ").concat(at," ").concat(st(bt,"type"));else{var St=vt(dt,".")?"property":"argument";yt='The "'.concat(dt,'" ').concat(St," ").concat(at," ").concat(st(bt,"type"))}return yt+=". Received type ".concat(it(ft)),yt},TypeError),tt("ERR_INVALID_ARG_VALUE",function(dt,bt){var ft=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";rt===void 0&&(rt=o(35840));var at=rt.inspect(bt);return at.length>128&&(at="".concat(at.slice(0,128),"...")),"The argument '".concat(dt,"' ").concat(ft,". Received ").concat(at)},TypeError),tt("ERR_INVALID_RETURN_VALUE",function(dt,bt,ft){var at;return ft&&ft.constructor&&ft.constructor.name?at="instance of ".concat(ft.constructor.name):at="type ".concat(it(ft)),"Expected ".concat(dt,' to be returned from the "').concat(bt,'"')+" function but got ".concat(at,".")},TypeError),tt("ERR_MISSING_ARGS",function(){for(var dt=arguments.length,bt=new Array(dt),ft=0;ft0,"At least one arg needs to be specified");var at="The ",yt=bt.length;switch(bt=bt.map(function(St){return'"'.concat(St,'"')}),yt){case 1:at+="".concat(bt[0]," argument");break;case 2:at+="".concat(bt[0]," and ").concat(bt[1]," arguments");break;default:at+=bt.slice(0,yt-1).join(", "),at+=", and ".concat(bt[yt-1]," arguments");break}return"".concat(at," must be specified")},TypeError),Ct.exports.codes=j},25116:function(Ct,Rt,o){function it(_r,Er){return Et(_r)||et(_r,Er)||xt()}function xt(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function et(_r,Er){var Rr=[],zr=!0,Br=!1,kr=void 0;try{for(var Nr=_r[Symbol.iterator](),Qr;!(zr=(Qr=Nr.next()).done)&&(Rr.push(Qr.value),!(Er&&Rr.length===Er));zr=!0);}catch(sn){Br=!0,kr=sn}finally{try{!zr&&Nr.return!=null&&Nr.return()}finally{if(Br)throw kr}}return Rr}function Et(_r){if(Array.isArray(_r))return _r}function mt(_r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?mt=function(Rr){return typeof Rr}:mt=function(Rr){return Rr&&typeof Symbol=="function"&&Rr.constructor===Symbol&&Rr!==Symbol.prototype?"symbol":typeof Rr},mt(_r)}var ut=/a/g.flags!==void 0,ht=function(Er){var Rr=[];return Er.forEach(function(zr){return Rr.push(zr)}),Rr},j=function(Er){var Rr=[];return Er.forEach(function(zr,Br){return Rr.push([Br,zr])}),Rr},_=Object.is?Object.is:o(39896),rt=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},tt=Number.isNaN?Number.isNaN:o(1560);function st(_r){return _r.call.bind(_r)}var ot=st(Object.prototype.hasOwnProperty),nt=st(Object.prototype.propertyIsEnumerable),vt=st(Object.prototype.toString),dt=o(35840).types,bt=dt.isAnyArrayBuffer,ft=dt.isArrayBufferView,at=dt.isDate,yt=dt.isMap,St=dt.isRegExp,_t=dt.isSet,Mt=dt.isNativeError,Tt=dt.isBoxedPrimitive,kt=dt.isNumberObject,wt=dt.isStringObject,ct=dt.isBooleanObject,It=dt.isBigIntObject,At=dt.isSymbolObject,Ot=dt.isFloat32Array,Pt=dt.isFloat64Array;function zt(_r){if(_r.length===0||_r.length>10)return!0;for(var Er=0;Er<_r.length;Er++){var Rr=_r.charCodeAt(Er);if(Rr<48||Rr>57)return!0}return _r.length===10&&_r>=Math.pow(2,32)}function Dt(_r){return Object.keys(_r).filter(zt).concat(rt(_r).filter(Object.prototype.propertyIsEnumerable.bind(_r)))}/*! +`):jt=" ".concat(Vt," ").concat(jt)),Ut=ht(this,vt(Nt).call(this,"".concat(rr).concat(jt)))}return Error.stackTraceLimit=lr,Ut.generatedMessage=!Ht,Object.defineProperty(j(Ut),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),Ut.code="ERR_ASSERTION",Ut.actual=qt,Ut.expected=er,Ut.operator=Vt,Error.captureStackTrace&&Error.captureStackTrace(j(Ut),Xt),Ut.stack,Ut.name="AssertionError",ht(Ut)}return ut(Nt,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:ft.custom,value:function(Ut,Ht){return ft(this,xt({},Ht,{customInspect:!1,depth:0}))}}]),Nt}(rt(Error));Ct.exports=zt},86832:function(Ct,Rt,o){function it(dt){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?it=function(ft){return typeof ft}:it=function(ft){return ft&&typeof Symbol=="function"&&ft.constructor===Symbol&&ft!==Symbol.prototype?"symbol":typeof ft},it(dt)}function xt(dt,bt){if(!(dt instanceof bt))throw new TypeError("Cannot call a class as a function")}function et(dt,bt){return bt&&(it(bt)==="object"||typeof bt=="function")?bt:Tt(dt)}function Tt(dt){if(dt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return dt}function yt(dt){return yt=Object.setPrototypeOf?Object.getPrototypeOf:function(ft){return ft.__proto__||Object.getPrototypeOf(ft)},yt(dt)}function ut(dt,bt){if(typeof bt!="function"&&bt!==null)throw new TypeError("Super expression must either be null or a function");dt.prototype=Object.create(bt&&bt.prototype,{constructor:{value:dt,writable:!0,configurable:!0}}),bt&&ht(dt,bt)}function ht(dt,bt){return ht=Object.setPrototypeOf||function(at,mt){return at.__proto__=mt,at},ht(dt,bt)}var j={},_,rt;function tt(dt,bt,ft){ft||(ft=Error);function at(St,_t,Mt){return typeof bt=="string"?bt:bt(St,_t,Mt)}var mt=function(St){ut(_t,St);function _t(Mt,Et,kt){var wt;return xt(this,_t),wt=et(this,yt(_t).call(this,at(Mt,Et,kt))),wt.code=dt,wt}return _t}(ft);j[dt]=mt}function st(dt,bt){if(Array.isArray(dt)){var ft=dt.length;return dt=dt.map(function(at){return String(at)}),ft>2?"one of ".concat(bt," ").concat(dt.slice(0,ft-1).join(", "),", or ")+dt[ft-1]:ft===2?"one of ".concat(bt," ").concat(dt[0]," or ").concat(dt[1]):"of ".concat(bt," ").concat(dt[0])}else return"of ".concat(bt," ").concat(String(dt))}function ot(dt,bt,ft){return dt.substr(!ft||ft<0?0:+ft,bt.length)===bt}function nt(dt,bt,ft){return(ft===void 0||ft>dt.length)&&(ft=dt.length),dt.substring(ft-bt.length,ft)===bt}function vt(dt,bt,ft){return typeof ft!="number"&&(ft=0),ft+bt.length>dt.length?!1:dt.indexOf(bt,ft)!==-1}tt("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),tt("ERR_INVALID_ARG_TYPE",function(dt,bt,ft){_===void 0&&(_=o(45408)),_(typeof dt=="string","'name' must be a string");var at;typeof bt=="string"&&ot(bt,"not ")?(at="must not be",bt=bt.replace(/^not /,"")):at="must be";var mt;if(nt(dt," argument"))mt="The ".concat(dt," ").concat(at," ").concat(st(bt,"type"));else{var St=vt(dt,".")?"property":"argument";mt='The "'.concat(dt,'" ').concat(St," ").concat(at," ").concat(st(bt,"type"))}return mt+=". Received type ".concat(it(ft)),mt},TypeError),tt("ERR_INVALID_ARG_VALUE",function(dt,bt){var ft=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";rt===void 0&&(rt=o(35840));var at=rt.inspect(bt);return at.length>128&&(at="".concat(at.slice(0,128),"...")),"The argument '".concat(dt,"' ").concat(ft,". Received ").concat(at)},TypeError),tt("ERR_INVALID_RETURN_VALUE",function(dt,bt,ft){var at;return ft&&ft.constructor&&ft.constructor.name?at="instance of ".concat(ft.constructor.name):at="type ".concat(it(ft)),"Expected ".concat(dt,' to be returned from the "').concat(bt,'"')+" function but got ".concat(at,".")},TypeError),tt("ERR_MISSING_ARGS",function(){for(var dt=arguments.length,bt=new Array(dt),ft=0;ft0,"At least one arg needs to be specified");var at="The ",mt=bt.length;switch(bt=bt.map(function(St){return'"'.concat(St,'"')}),mt){case 1:at+="".concat(bt[0]," argument");break;case 2:at+="".concat(bt[0]," and ").concat(bt[1]," arguments");break;default:at+=bt.slice(0,mt-1).join(", "),at+=", and ".concat(bt[mt-1]," arguments");break}return"".concat(at," must be specified")},TypeError),Ct.exports.codes=j},25116:function(Ct,Rt,o){function it(_r,Er){return Tt(_r)||et(_r,Er)||xt()}function xt(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function et(_r,Er){var Rr=[],zr=!0,Or=!1,kr=void 0;try{for(var Nr=_r[Symbol.iterator](),Qr;!(zr=(Qr=Nr.next()).done)&&(Rr.push(Qr.value),!(Er&&Rr.length===Er));zr=!0);}catch(sn){Or=!0,kr=sn}finally{try{!zr&&Nr.return!=null&&Nr.return()}finally{if(Or)throw kr}}return Rr}function Tt(_r){if(Array.isArray(_r))return _r}function yt(_r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?yt=function(Rr){return typeof Rr}:yt=function(Rr){return Rr&&typeof Symbol=="function"&&Rr.constructor===Symbol&&Rr!==Symbol.prototype?"symbol":typeof Rr},yt(_r)}var ut=/a/g.flags!==void 0,ht=function(Er){var Rr=[];return Er.forEach(function(zr){return Rr.push(zr)}),Rr},j=function(Er){var Rr=[];return Er.forEach(function(zr,Or){return Rr.push([Or,zr])}),Rr},_=Object.is?Object.is:o(39896),rt=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},tt=Number.isNaN?Number.isNaN:o(1560);function st(_r){return _r.call.bind(_r)}var ot=st(Object.prototype.hasOwnProperty),nt=st(Object.prototype.propertyIsEnumerable),vt=st(Object.prototype.toString),dt=o(35840).types,bt=dt.isAnyArrayBuffer,ft=dt.isArrayBufferView,at=dt.isDate,mt=dt.isMap,St=dt.isRegExp,_t=dt.isSet,Mt=dt.isNativeError,Et=dt.isBoxedPrimitive,kt=dt.isNumberObject,wt=dt.isStringObject,ct=dt.isBooleanObject,It=dt.isBigIntObject,At=dt.isSymbolObject,Ot=dt.isFloat32Array,Pt=dt.isFloat64Array;function zt(_r){if(_r.length===0||_r.length>10)return!0;for(var Er=0;Er<_r.length;Er++){var Rr=_r.charCodeAt(Er);if(Rr<48||Rr>57)return!0}return _r.length===10&&_r>=Math.pow(2,32)}function Dt(_r){return Object.keys(_r).filter(zt).concat(rt(_r).filter(Object.prototype.propertyIsEnumerable.bind(_r)))}/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT - */function Nt(_r,Er){if(_r===Er)return 0;for(var Rr=_r.length,zr=Er.length,Br=0,kr=Math.min(Rr,zr);Br"u"?[]:new Uint8Array(256),et=0;et>2],rt+=it[(ht[j]&3)<<4|ht[j+1]>>4],rt+=it[(ht[j+1]&15)<<2|ht[j+2]>>6],rt+=it[ht[j+2]&63];return _%3===2?rt=rt.substring(0,rt.length-1)+"=":_%3===1&&(rt=rt.substring(0,rt.length-2)+"=="),rt},mt=function(ut){var ht=ut.length*.75,j=ut.length,_,rt=0,tt,st,ot,nt;ut[ut.length-1]==="="&&(ht--,ut[ut.length-2]==="="&&ht--);var vt=new ArrayBuffer(ht),dt=new Uint8Array(vt);for(_=0;_>4,dt[rt++]=(st&15)<<4|ot>>2,dt[rt++]=(ot&3)<<6|nt&63;return vt}},59968:function(Ct,Rt){Rt.byteLength=ht,Rt.toByteArray=_,Rt.fromByteArray=st;for(var o=[],it=[],xt=typeof Uint8Array<"u"?Uint8Array:Array,et="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Et=0,mt=et.length;Et0)throw new Error("Invalid string. Length must be a multiple of 4");var vt=ot.indexOf("=");vt===-1&&(vt=nt);var dt=vt===nt?0:4-vt%4;return[vt,dt]}function ht(ot){var nt=ut(ot),vt=nt[0],dt=nt[1];return(vt+dt)*3/4-dt}function j(ot,nt,vt){return(nt+vt)*3/4-vt}function _(ot){var nt,vt=ut(ot),dt=vt[0],bt=vt[1],ft=new xt(j(ot,dt,bt)),at=0,yt=bt>0?dt-4:dt,St;for(St=0;St>16&255,ft[at++]=nt>>8&255,ft[at++]=nt&255;return bt===2&&(nt=it[ot.charCodeAt(St)]<<2|it[ot.charCodeAt(St+1)]>>4,ft[at++]=nt&255),bt===1&&(nt=it[ot.charCodeAt(St)]<<10|it[ot.charCodeAt(St+1)]<<4|it[ot.charCodeAt(St+2)]>>2,ft[at++]=nt>>8&255,ft[at++]=nt&255),ft}function rt(ot){return o[ot>>18&63]+o[ot>>12&63]+o[ot>>6&63]+o[ot&63]}function tt(ot,nt,vt){for(var dt,bt=[],ft=nt;ftyt?yt:at+ft));return dt===1?(nt=ot[vt-1],bt.push(o[nt>>2]+o[nt<<4&63]+"==")):dt===2&&(nt=(ot[vt-2]<<8)+ot[vt-1],bt.push(o[nt>>10]+o[nt>>4&63]+o[nt<<2&63]+"=")),bt.join("")}},64928:function(Ct){function Rt(mt,ut,ht,j,_){for(var rt=_+1;j<=_;){var tt=j+_>>>1,st=mt[tt],ot=ht!==void 0?ht(st,ut):st-ut;ot>=0?(rt=tt,_=tt-1):j=tt+1}return rt}function o(mt,ut,ht,j,_){for(var rt=_+1;j<=_;){var tt=j+_>>>1,st=mt[tt],ot=ht!==void 0?ht(st,ut):st-ut;ot>0?(rt=tt,_=tt-1):j=tt+1}return rt}function it(mt,ut,ht,j,_){for(var rt=j-1;j<=_;){var tt=j+_>>>1,st=mt[tt],ot=ht!==void 0?ht(st,ut):st-ut;ot<0?(rt=tt,j=tt+1):_=tt-1}return rt}function xt(mt,ut,ht,j,_){for(var rt=j-1;j<=_;){var tt=j+_>>>1,st=mt[tt],ot=ht!==void 0?ht(st,ut):st-ut;ot<=0?(rt=tt,j=tt+1):_=tt-1}return rt}function et(mt,ut,ht,j,_){for(;j<=_;){var rt=j+_>>>1,tt=mt[rt],st=ht!==void 0?ht(tt,ut):tt-ut;if(st===0)return rt;st<=0?j=rt+1:_=rt-1}return-1}function Et(mt,ut,ht,j,_,rt){return typeof ht=="function"?rt(mt,ut,ht,j===void 0?0:j|0,_===void 0?mt.length-1:_|0):rt(mt,ut,void 0,ht===void 0?0:ht|0,j===void 0?mt.length-1:j|0)}Ct.exports={ge:function(mt,ut,ht,j,_){return Et(mt,ut,ht,j,_,Rt)},gt:function(mt,ut,ht,j,_){return Et(mt,ut,ht,j,_,o)},lt:function(mt,ut,ht,j,_){return Et(mt,ut,ht,j,_,it)},le:function(mt,ut,ht,j,_){return Et(mt,ut,ht,j,_,xt)},eq:function(mt,ut,ht,j,_){return Et(mt,ut,ht,j,_,et)}}},308:function(Ct,Rt){var o=32;Rt.INT_BITS=o,Rt.INT_MAX=2147483647,Rt.INT_MIN=-1<0)-(et<0)},Rt.abs=function(et){var Et=et>>o-1;return(et^Et)-Et},Rt.min=function(et,Et){return Et^(et^Et)&-(et65535)<<4,et>>>=Et,mt=(et>255)<<3,et>>>=mt,Et|=mt,mt=(et>15)<<2,et>>>=mt,Et|=mt,mt=(et>3)<<1,et>>>=mt,Et|=mt,Et|et>>1},Rt.log10=function(et){return et>=1e9?9:et>=1e8?8:et>=1e7?7:et>=1e6?6:et>=1e5?5:et>=1e4?4:et>=1e3?3:et>=100?2:et>=10?1:0},Rt.popCount=function(et){return et=et-(et>>>1&1431655765),et=(et&858993459)+(et>>>2&858993459),(et+(et>>>4)&252645135)*16843009>>>24};function it(et){var Et=32;return et&=-et,et&&Et--,et&65535&&(Et-=16),et&16711935&&(Et-=8),et&252645135&&(Et-=4),et&858993459&&(Et-=2),et&1431655765&&(Et-=1),Et}Rt.countTrailingZeros=it,Rt.nextPow2=function(et){return et+=et===0,--et,et|=et>>>1,et|=et>>>2,et|=et>>>4,et|=et>>>8,et|=et>>>16,et+1},Rt.prevPow2=function(et){return et|=et>>>1,et|=et>>>2,et|=et>>>4,et|=et>>>8,et|=et>>>16,et-(et>>>1)},Rt.parity=function(et){return et^=et>>>16,et^=et>>>8,et^=et>>>4,et&=15,27030>>>et&1};var xt=new Array(256);(function(et){for(var Et=0;Et<256;++Et){var mt=Et,ut=Et,ht=7;for(mt>>>=1;mt;mt>>>=1)ut<<=1,ut|=mt&1,--ht;et[Et]=ut<>>8&255]<<16|xt[et>>>16&255]<<8|xt[et>>>24&255]},Rt.interleave2=function(et,Et){return et&=65535,et=(et|et<<8)&16711935,et=(et|et<<4)&252645135,et=(et|et<<2)&858993459,et=(et|et<<1)&1431655765,Et&=65535,Et=(Et|Et<<8)&16711935,Et=(Et|Et<<4)&252645135,Et=(Et|Et<<2)&858993459,Et=(Et|Et<<1)&1431655765,et|Et<<1},Rt.deinterleave2=function(et,Et){return et=et>>>Et&1431655765,et=(et|et>>>1)&858993459,et=(et|et>>>2)&252645135,et=(et|et>>>4)&16711935,et=(et|et>>>16)&65535,et<<16>>16},Rt.interleave3=function(et,Et,mt){return et&=1023,et=(et|et<<16)&4278190335,et=(et|et<<8)&251719695,et=(et|et<<4)&3272356035,et=(et|et<<2)&1227133513,Et&=1023,Et=(Et|Et<<16)&4278190335,Et=(Et|Et<<8)&251719695,Et=(Et|Et<<4)&3272356035,Et=(Et|Et<<2)&1227133513,et|=Et<<1,mt&=1023,mt=(mt|mt<<16)&4278190335,mt=(mt|mt<<8)&251719695,mt=(mt|mt<<4)&3272356035,mt=(mt|mt<<2)&1227133513,et|mt<<2},Rt.deinterleave3=function(et,Et){return et=et>>>Et&1227133513,et=(et|et>>>2)&3272356035,et=(et|et>>>4)&251719695,et=(et|et>>>8)&4278190335,et=(et|et>>>16)&1023,et<<22>>22},Rt.nextCombination=function(et){var Et=et|et-1;return Et+1|(~Et&-~Et)-1>>>it(et)+1}},29620:function(Ct,Rt,o){var it=o(32420);Ct.exports=et;var xt=1e20;function et(ut,ht){ht||(ht={});var j=ht.cutoff==null?.25:ht.cutoff,_=ht.radius==null?8:ht.radius,rt=ht.channel||0,tt,st,ot,nt,vt,dt,bt,ft,at,yt,St;if(ArrayBuffer.isView(ut)||Array.isArray(ut)){if(!ht.width||!ht.height)throw Error("For raw data width and height should be provided by options");tt=ht.width,st=ht.height,nt=ut,ht.stride?dt=ht.stride:dt=Math.floor(ut.length/tt/st)}else window.HTMLCanvasElement&&ut instanceof window.HTMLCanvasElement?(ft=ut,bt=ft.getContext("2d"),tt=ft.width,st=ft.height,at=bt.getImageData(0,0,tt,st),nt=at.data,dt=4):window.CanvasRenderingContext2D&&ut instanceof window.CanvasRenderingContext2D?(ft=ut.canvas,bt=ut,tt=ft.width,st=ft.height,at=bt.getImageData(0,0,tt,st),nt=at.data,dt=4):window.ImageData&&ut instanceof window.ImageData&&(at=ut,tt=ut.width,st=ut.height,nt=at.data,dt=4);if(ot=Math.max(tt,st),window.Uint8ClampedArray&&nt instanceof window.Uint8ClampedArray||window.Uint8Array&&nt instanceof window.Uint8Array)for(vt=nt,nt=Array(tt*st),yt=0,St=vt.length;yt-1?xt(ht):ht}},57916:function(Ct,Rt,o){var it=o(8844),xt=o(53664),et=o(14500),Et=xt("%TypeError%"),mt=xt("%Function.prototype.apply%"),ut=xt("%Function.prototype.call%"),ht=xt("%Reflect.apply%",!0)||it.call(ut,mt),j=xt("%Object.defineProperty%",!0),_=xt("%Math.max%");if(j)try{j({},"a",{value:1})}catch{j=null}Ct.exports=function(st){if(typeof st!="function")throw new Et("a function is required");var ot=ht(it,ut,arguments);return et(ot,1+_(0,st.length-(arguments.length-1)),!0)};var rt=function(){return ht(it,mt,arguments)};j?j(Ct.exports,"apply",{value:rt}):Ct.exports.apply=rt},32420:function(Ct){Ct.exports=Rt;function Rt(o,it,xt){return itxt?xt:o:oit?it:o}},3808:function(Ct,Rt,o){var it=o(32420);Ct.exports=xt,Ct.exports.to=xt,Ct.exports.from=et;function xt(Et,mt){mt==null&&(mt=!0);var ut=Et[0],ht=Et[1],j=Et[2],_=Et[3];_==null&&(_=mt?1:255),mt&&(ut*=255,ht*=255,j*=255,_*=255),ut=it(ut,0,255)&255,ht=it(ht,0,255)&255,j=it(j,0,255)&255,_=it(_,0,255)&255;var rt=ut*16777216+(ht<<16)+(j<<8)+_;return rt}function et(Et,mt){Et=+Et;var ut=Et>>>24,ht=(Et&16711680)>>>16,j=(Et&65280)>>>8,_=Et&255;return mt===!1?[ut,ht,j,_]:[ut/255,ht/255,j/255,_/255]}},17592:function(Ct){Ct.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},72160:function(Ct,Rt,o){var it=o(96824),xt=o(32420),et=o(72512);Ct.exports=function(ut,ht){(ht==="float"||!ht)&&(ht="array"),ht==="uint"&&(ht="uint8"),ht==="uint_clamped"&&(ht="uint8_clamped");var j=et(ht),_=new j(4),rt=ht!=="uint8"&&ht!=="uint8_clamped";return(!ut.length||typeof ut=="string")&&(ut=it(ut),ut[0]/=255,ut[1]/=255,ut[2]/=255),Et(ut)?(_[0]=ut[0],_[1]=ut[1],_[2]=ut[2],_[3]=ut[3]!=null?ut[3]:255,rt&&(_[0]/=255,_[1]/=255,_[2]/=255,_[3]/=255),_):(rt?(_[0]=ut[0],_[1]=ut[1],_[2]=ut[2],_[3]=ut[3]!=null?ut[3]:1):(_[0]=xt(Math.floor(ut[0]*255),0,255),_[1]=xt(Math.floor(ut[1]*255),0,255),_[2]=xt(Math.floor(ut[2]*255),0,255),_[3]=ut[3]==null?255:xt(Math.floor(ut[3]*255),0,255)),_)};function Et(mt){return!!(mt instanceof Uint8Array||mt instanceof Uint8ClampedArray||Array.isArray(mt)&&(mt[0]>1||mt[0]===0)&&(mt[1]>1||mt[1]===0)&&(mt[2]>1||mt[2]===0)&&(!mt[3]||mt[3]>1))}},96824:function(Ct,Rt,o){var it=o(95532),xt=o(53576),et=o(32420);Ct.exports=function(mt){var ut,ht=it(mt);return ht.space?(ut=Array(3),ut[0]=et(ht.values[0],0,255),ut[1]=et(ht.values[1],0,255),ut[2]=et(ht.values[2],0,255),ht.space[0]==="h"&&(ut=xt.rgb(ut)),ut.push(et(ht.alpha,0,1)),ut):[]}},95532:function(Ct,Rt,o){var it=o(17592);Ct.exports=et;var xt={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function et(Et){var mt,ut=[],ht=1,j;if(typeof Et=="string")if(Et=Et.toLowerCase(),it[Et])ut=it[Et].slice(),j="rgb";else if(Et==="transparent")ht=0,j="rgb",ut=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(Et)){var _=Et.slice(1),rt=_.length,tt=rt<=4;ht=1,tt?(ut=[parseInt(_[0]+_[0],16),parseInt(_[1]+_[1],16),parseInt(_[2]+_[2],16)],rt===4&&(ht=parseInt(_[3]+_[3],16)/255)):(ut=[parseInt(_[0]+_[1],16),parseInt(_[2]+_[3],16),parseInt(_[4]+_[5],16)],rt===8&&(ht=parseInt(_[6]+_[7],16)/255)),ut[0]||(ut[0]=0),ut[1]||(ut[1]=0),ut[2]||(ut[2]=0),j="rgb"}else if(mt=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(Et)){var st=mt[1],ot=st==="rgb",_=st.replace(/a$/,"");j=_;var rt=_==="cmyk"?4:_==="gray"?1:3;ut=mt[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(dt,bt){if(/%$/.test(dt))return bt===rt?parseFloat(dt)/100:_==="rgb"?parseFloat(dt)*255/100:parseFloat(dt);if(_[bt]==="h"){if(/deg$/.test(dt))return parseFloat(dt);if(xt[dt]!==void 0)return xt[dt]}return parseFloat(dt)}),st===_&&ut.push(1),ht=ot||ut[rt]===void 0?1:ut[rt],ut=ut.slice(0,rt)}else Et.length>10&&/[0-9](?:\s|\/)/.test(Et)&&(ut=Et.match(/([0-9]+)/g).map(function(nt){return parseFloat(nt)}),j=Et.match(/([a-z])/ig).join("").toLowerCase());else isNaN(Et)?Array.isArray(Et)||Et.length?(ut=[Et[0],Et[1],Et[2]],j="rgb",ht=Et.length===4?Et[3]:1):Et instanceof Object&&(Et.r!=null||Et.red!=null||Et.R!=null?(j="rgb",ut=[Et.r||Et.red||Et.R||0,Et.g||Et.green||Et.G||0,Et.b||Et.blue||Et.B||0]):(j="hsl",ut=[Et.h||Et.hue||Et.H||0,Et.s||Et.saturation||Et.S||0,Et.l||Et.lightness||Et.L||Et.b||Et.brightness]),ht=Et.a||Et.alpha||Et.opacity||1,Et.opacity!=null&&(ht/=100)):(j="rgb",ut=[Et>>>16,(Et&65280)>>>8,Et&255]);return{space:j,values:ut,alpha:ht}}},53576:function(Ct,Rt,o){var it=o(19336);Ct.exports={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(xt){var et=xt[0]/360,Et=xt[1]/100,mt=xt[2]/100,ut,ht,j,_,rt;if(Et===0)return rt=mt*255,[rt,rt,rt];mt<.5?ht=mt*(1+Et):ht=mt+Et-mt*Et,ut=2*mt-ht,_=[0,0,0];for(var tt=0;tt<3;tt++)j=et+.3333333333333333*-(tt-1),j<0?j++:j>1&&j--,6*j<1?rt=ut+(ht-ut)*6*j:2*j<1?rt=ht:3*j<2?rt=ut+(ht-ut)*(.6666666666666666-j)*6:rt=ut,_[tt]=rt*255;return _}},it.hsl=function(xt){var et=xt[0]/255,Et=xt[1]/255,mt=xt[2]/255,ut=Math.min(et,Et,mt),ht=Math.max(et,Et,mt),j=ht-ut,_,rt,tt;return ht===ut?_=0:et===ht?_=(Et-mt)/j:Et===ht?_=2+(mt-et)/j:mt===ht&&(_=4+(et-Et)/j),_=Math.min(_*60,360),_<0&&(_+=360),tt=(ut+ht)/2,ht===ut?rt=0:tt<=.5?rt=j/(ht+ut):rt=j/(2-ht-ut),[_,rt*100,tt*100]}},19336:function(Ct){Ct.exports={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}},36116:function(Ct){Ct.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|ç)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|é)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|é)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|ã)o.?tom(e|é)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}},42771:function(Ct,Rt,o){Ct.exports={parse:o(46416),stringify:o(49395)}},8744:function(Ct,Rt,o){var it=o(30584);Ct.exports={isSize:function(et){return/^[\d\.]/.test(et)||et.indexOf("/")!==-1||it.indexOf(et)!==-1}}},46416:function(Ct,Rt,o){var it=o(92384),xt=o(68194),et=o(3748),Et=o(2904),mt=o(47916),ut=o(7294),ht=o(39956),j=o(8744).isSize;Ct.exports=rt;var _=rt.cache={};function rt(st){if(typeof st!="string")throw new Error("Font argument must be a string.");if(_[st])return _[st];if(st==="")throw new Error("Cannot parse an empty string.");if(et.indexOf(st)!==-1)return _[st]={system:st};for(var ot={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},nt=ht(st,/\s+/),vt;vt=nt.shift();){if(xt.indexOf(vt)!==-1)return["style","variant","weight","stretch"].forEach(function(bt){ot[bt]=vt}),_[st]=ot;if(mt.indexOf(vt)!==-1){ot.style=vt;continue}if(vt==="normal"||vt==="small-caps"){ot.variant=vt;continue}if(ut.indexOf(vt)!==-1){ot.stretch=vt;continue}if(Et.indexOf(vt)!==-1){ot.weight=vt;continue}if(j(vt)){var dt=ht(vt,"/");if(ot.size=dt[0],dt[1]!=null?ot.lineHeight=tt(dt[1]):nt[0]==="/"&&(nt.shift(),ot.lineHeight=tt(nt.shift())),!nt.length)throw new Error("Missing required font-family.");return ot.family=ht(nt.join(" "),/\s*,\s*/).map(it),_[st]=ot}throw new Error("Unknown or unsupported font token: "+vt)}throw new Error("Missing required font-size.")}function tt(st){var ot=parseFloat(st);return ot.toString()===st?ot:st}},49395:function(Ct,Rt,o){var it=o(55616),xt=o(8744).isSize,et=st(o(68194)),Et=st(o(3748)),mt=st(o(2904)),ut=st(o(47916)),ht=st(o(7294)),j={normal:1,"small-caps":1},_={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},rt={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};Ct.exports=function(nt){if(nt=it(nt,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"}),nt.system)return nt.system&&tt(nt.system,Et),nt.system;if(tt(nt.style,ut),tt(nt.variant,j),tt(nt.weight,mt),tt(nt.stretch,ht),nt.size==null&&(nt.size=rt.size),typeof nt.size=="number"&&(nt.size+="px"),!xt)throw Error("Bad size value `"+nt.size+"`");nt.family||(nt.family=rt.family),Array.isArray(nt.family)&&(nt.family.length||(nt.family=[rt.family]),nt.family=nt.family.map(function(dt){return _[dt]?dt:'"'+dt+'"'}).join(", "));var vt=[];return vt.push(nt.style),nt.variant!==nt.style&&vt.push(nt.variant),nt.weight!==nt.variant&&nt.weight!==nt.style&&vt.push(nt.weight),nt.stretch!==nt.weight&&nt.stretch!==nt.variant&&nt.stretch!==nt.style&&vt.push(nt.stretch),vt.push(nt.size+(nt.lineHeight==null||nt.lineHeight==="normal"||nt.lineHeight+""=="1"?"":"/"+nt.lineHeight)),vt.push(nt.family),vt.filter(Boolean).join(" ")};function tt(ot,nt){if(ot&&!nt[ot]&&!et[ot])throw Error("Unknown keyword `"+ot+"`");return ot}function st(ot){for(var nt={},vt=0;vtst?1:tt>=st?0:NaN}function xt(tt){return tt.length===1&&(tt=et(tt)),{left:function(st,ot,nt,vt){for(nt==null&&(nt=0),vt==null&&(vt=st.length);nt>>1;tt(st[dt],ot)<0?nt=dt+1:vt=dt}return nt},right:function(st,ot,nt,vt){for(nt==null&&(nt=0),vt==null&&(vt=st.length);nt>>1;tt(st[dt],ot)>0?vt=dt:nt=dt+1}return nt}}}function et(tt){return function(st,ot){return it(tt(st),ot)}}xt(it);function Et(tt,st){var ot=tt.length,nt=-1,vt,dt;if(st==null){for(;++nt=vt)for(dt=vt;++ntdt&&(dt=vt)}else for(;++nt=vt)for(dt=vt;++ntdt&&(dt=vt);return dt}function mt(tt){return tt===null?NaN:+tt}function ut(tt,st){var ot=tt.length,nt=ot,vt=-1,dt,bt=0;if(st==null)for(;++vt=0;)for(bt=tt[st],ot=bt.length;--ot>=0;)dt[--vt]=bt[ot];return dt}function j(tt,st){var ot=tt.length,nt=-1,vt,dt;if(st==null){for(;++nt=vt)for(dt=vt;++ntvt&&(dt=vt)}else for(;++nt=vt)for(dt=vt;++ntvt&&(dt=vt);return dt}function _(tt,st,ot){tt=+tt,st=+st,ot=(vt=arguments.length)<2?(st=tt,tt=0,1):vt<3?1:+ot;for(var nt=-1,vt=Math.max(0,Math.ceil((st-tt)/ot))|0,dt=new Array(vt);++nt=st.length)return nt!=null&&at.sort(nt),vt!=null?vt(at):at;for(var Mt=-1,Tt=at.length,kt=st[yt++],wt,ct,It=Et(),At,Ot=St();++Mtst.length)return at;var St,_t=ot[yt-1];return vt!=null&&yt>=st.length?St=at.entries():(St=[],at.each(function(Mt,Tt){St.push({key:Tt,values:ft(Mt,yt)})})),_t!=null?St.sort(function(Mt,Tt){return _t(Mt.key,Tt.key)}):St}return dt={object:function(at){return bt(at,0,ut,ht)},map:function(at){return bt(at,0,j,_)},entries:function(at){return ft(bt(at,0,j,_),0)},key:function(at){return st.push(at),dt},sortKeys:function(at){return ot[st.length-1]=at,dt},sortValues:function(at){return nt=at,dt},rollup:function(at){return vt=at,dt}}}function ut(){return{}}function ht(st,ot,nt){st[ot]=nt}function j(){return Et()}function _(st,ot,nt){st.set(ot,nt)}function rt(){}var tt=Et.prototype;rt.prototype={constructor:rt,has:tt.has,add:function(st){return st+="",this[it+st]=st,this},remove:tt.remove,clear:tt.clear,values:tt.keys,size:tt.size,empty:tt.empty,each:tt.each}},49812:function(Ct,Rt,o){o.r(Rt),o.d(Rt,{forceCenter:function(){return it},forceCollide:function(){return It},forceLink:function(){return zt},forceManyBody:function(){return Nr},forceRadial:function(){return Qr},forceSimulation:function(){return kr},forceX:function(){return sn},forceY:function(){return un}});function it(qr,Xr){var ln;qr==null&&(qr=0),Xr==null&&(Xr=0);function mn(){var pn,En=ln.length,Jr,Or=0,Ur=0;for(pn=0;pn=(wr=(Or+jr)/2))?Or=wr:jr=wr,(xr=ln>=(vr=(Ur+Gr)/2))?Ur=vr:Gr=vr,pn=En,!(En=En[Pr=xr<<1|ur]))return pn[Pr]=Jr,qr;if(Dr=+qr._x.call(null,En.data),Sr=+qr._y.call(null,En.data),Xr===Dr&&ln===Sr)return Jr.next=En,pn?pn[Pr]=Jr:qr._root=Jr,qr;do pn=pn?pn[Pr]=new Array(4):qr._root=new Array(4),(ur=Xr>=(wr=(Or+jr)/2))?Or=wr:jr=wr,(xr=ln>=(vr=(Ur+Gr)/2))?Ur=vr:Gr=vr;while((Pr=xr<<1|ur)===(Vr=(Sr>=vr)<<1|Dr>=wr));return pn[Vr]=En,pn[Pr]=Jr,qr}function ut(qr){var Xr,ln,mn=qr.length,pn,En,Jr=new Array(mn),Or=new Array(mn),Ur=1/0,jr=1/0,Gr=-1/0,wr=-1/0;for(ln=0;lnGr&&(Gr=pn),Enwr&&(wr=En));if(Ur>Gr||jr>wr)return this;for(this.cover(Ur,jr).cover(Gr,wr),ln=0;lnqr||qr>=pn||mn>Xr||Xr>=En;)switch(jr=(XrGr||(Or=Sr.y0)>wr||(Ur=Sr.x1)=Pr)<<1|qr>=xr)&&(Sr=vr[vr.length-1],vr[vr.length-1]=vr[vr.length-1-ur],vr[vr.length-1-ur]=Sr)}else{var Vr=qr-+this._x.call(null,Dr.data),en=Xr-+this._y.call(null,Dr.data),rn=Vr*Vr+en*en;if(rn=(vr=(Jr+Ur)/2))?Jr=vr:Ur=vr,(ur=wr>=(Dr=(Or+jr)/2))?Or=Dr:jr=Dr,Xr=ln,!(ln=ln[xr=ur<<1|Sr]))return this;if(!ln.length)break;(Xr[xr+1&3]||Xr[xr+2&3]||Xr[xr+3&3])&&(mn=Xr,Pr=xr)}for(;ln.data!==qr;)if(pn=ln,!(ln=ln.next))return this;return(En=ln.next)&&delete ln.next,pn?(En?pn.next=En:delete pn.next,this):Xr?(En?Xr[xr]=En:delete Xr[xr],(ln=Xr[0]||Xr[1]||Xr[2]||Xr[3])&&ln===(Xr[3]||Xr[2]||Xr[1]||Xr[0])&&!ln.length&&(mn?mn[Pr]=ln:this._root=ln),this):(this._root=En,this)}function ot(qr){for(var Xr=0,ln=qr.length;Xrwr.index){var _i=vr-fn.x-fn.vx,yn=Dr-fn.y-fn.vy,Kn=_i*_i+yn*yn;Knvr+Un||CnDr+Un||xnUr.r&&(Ur.r=Ur[jr].r)}function Or(){if(Xr){var Ur,jr=Xr.length,Gr;for(ln=new Array(jr),Ur=0;Ur=0&&(mn=ln.slice(pn+1),ln=ln.slice(0,pn)),ln&&!Xr.hasOwnProperty(ln))throw new Error("unknown type: "+ln);return{type:ln,name:mn}})}$t.prototype=Nt.prototype={constructor:$t,on:function(qr,Xr){var ln=this._,mn=Ut(qr+"",ln),pn,En=-1,Jr=mn.length;if(arguments.length<2){for(;++En0)for(var ln=new Array(pn),mn=0,pn,En;mn=0&&qr._call.call(null,Xr),qr=qr._next;--qt}function Tr(){ar=(jt=Zt.now())+sr,qt=er=0;try{br()}finally{qt=0,Ar(),ar=0}}function Ir(){var qr=Zt.now(),Xr=qr-jt;Xr>Jt&&(sr-=Xr,jt=qr)}function Ar(){for(var qr,Xr=Yt,ln,mn=1/0;Xr;)Xr._call?(mn>Xr._time&&(mn=Xr._time),qr=Xr,Xr=Xr._next):(ln=Xr._next,Xr._next=null,Xr=qr?qr._next=ln:Yt=ln);rr=qr,_r(mn)}function _r(qr){if(!qt){er&&(er=clearTimeout(er));var Xr=qr-ar;Xr>24?(qr<1/0&&(er=setTimeout(Tr,qr-Zt.now()-sr)),lr&&(lr=clearInterval(lr))):(lr||(jt=Zt.now(),lr=setInterval(Ir,Jt)),qt=1,Kt(Tr))}}function Er(qr){return qr.x}function Rr(qr){return qr.y}var zr=10,Br=Math.PI*(3-Math.sqrt(5));function kr(qr){var Xr,ln=1,mn=.001,pn=1-Math.pow(mn,1/300),En=0,Jr=.6,Or=(0,At.kH)(),Ur=hr(Gr),jr=Xt("tick","end");qr==null&&(qr=[]);function Gr(){wr(),jr.call("tick",Xr),ln1?(ur==null?Or.remove(Sr):Or.set(Sr,Dr(ur)),Xr):Or.get(Sr)},find:function(Sr,ur,xr){var Pr=0,Vr=qr.length,en,rn,Cn,xn,fn;for(xr==null?xr=1/0:xr*=xr,Pr=0;Pr1?(jr.on(Sr,ur),Xr):jr.on(Sr)}}}function Nr(){var qr,Xr,ln,mn=xt(-30),pn,En=1,Jr=1/0,Or=.81;function Ur(vr){var Dr,Sr=qr.length,ur=_t(qr,Er,Rr).visitAfter(Gr);for(ln=vr,Dr=0;Dr=Jr)return;(vr.data!==Xr||vr.next)&&(xr===0&&(xr=et(),en+=xr*xr),Pr===0&&(Pr=et(),en+=Pr*Pr),en=1e21?St.toLocaleString("en").replace(/,/g,""):St.toString(10)}function xt(St,_t){if((Mt=(St=_t?St.toExponential(_t-1):St.toExponential()).indexOf("e"))<0)return null;var Mt,Tt=St.slice(0,Mt);return[Tt.length>1?Tt[0]+Tt.slice(2):Tt,+St.slice(Mt+1)]}function et(St){return St=xt(Math.abs(St)),St?St[1]:NaN}function Et(St,_t){return function(Mt,Tt){for(var kt=Mt.length,wt=[],ct=0,It=St[0],At=0;kt>0&&It>0&&(At+It+1>Tt&&(It=Math.max(1,Tt-At)),wt.push(Mt.substring(kt-=It,kt+It)),!((At+=It+1)>Tt));)It=St[ct=(ct+1)%St.length];return wt.reverse().join(_t)}}function mt(St){return function(_t){return _t.replace(/[0-9]/g,function(Mt){return St[+Mt]})}}var ut=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ht(St){if(!(_t=ut.exec(St)))throw new Error("invalid format: "+St);var _t;return new j({fill:_t[1],align:_t[2],sign:_t[3],symbol:_t[4],zero:_t[5],width:_t[6],comma:_t[7],precision:_t[8]&&_t[8].slice(1),trim:_t[9],type:_t[10]})}ht.prototype=j.prototype;function j(St){this.fill=St.fill===void 0?" ":St.fill+"",this.align=St.align===void 0?">":St.align+"",this.sign=St.sign===void 0?"-":St.sign+"",this.symbol=St.symbol===void 0?"":St.symbol+"",this.zero=!!St.zero,this.width=St.width===void 0?void 0:+St.width,this.comma=!!St.comma,this.precision=St.precision===void 0?void 0:+St.precision,this.trim=!!St.trim,this.type=St.type===void 0?"":St.type+""}j.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function _(St){e:for(var _t=St.length,Mt=1,Tt=-1,kt;Mt<_t;++Mt)switch(St[Mt]){case".":Tt=kt=Mt;break;case"0":Tt===0&&(Tt=Mt),kt=Mt;break;default:if(!+St[Mt])break e;Tt>0&&(Tt=0);break}return Tt>0?St.slice(0,Tt)+St.slice(kt+1):St}var rt;function tt(St,_t){var Mt=xt(St,_t);if(!Mt)return St+"";var Tt=Mt[0],kt=Mt[1],wt=kt-(rt=Math.max(-8,Math.min(8,Math.floor(kt/3)))*3)+1,ct=Tt.length;return wt===ct?Tt:wt>ct?Tt+new Array(wt-ct+1).join("0"):wt>0?Tt.slice(0,wt)+"."+Tt.slice(wt):"0."+new Array(1-wt).join("0")+xt(St,Math.max(0,_t+wt-1))[0]}function st(St,_t){var Mt=xt(St,_t);if(!Mt)return St+"";var Tt=Mt[0],kt=Mt[1];return kt<0?"0."+new Array(-kt).join("0")+Tt:Tt.length>kt+1?Tt.slice(0,kt+1)+"."+Tt.slice(kt+1):Tt+new Array(kt-Tt.length+2).join("0")}var ot={"%":function(St,_t){return(St*100).toFixed(_t)},b:function(St){return Math.round(St).toString(2)},c:function(St){return St+""},d:it,e:function(St,_t){return St.toExponential(_t)},f:function(St,_t){return St.toFixed(_t)},g:function(St,_t){return St.toPrecision(_t)},o:function(St){return Math.round(St).toString(8)},p:function(St,_t){return st(St*100,_t)},r:st,s:tt,X:function(St){return Math.round(St).toString(16).toUpperCase()},x:function(St){return Math.round(St).toString(16)}};function nt(St){return St}var vt=Array.prototype.map,dt=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function bt(St){var _t=St.grouping===void 0||St.thousands===void 0?nt:Et(vt.call(St.grouping,Number),St.thousands+""),Mt=St.currency===void 0?"":St.currency[0]+"",Tt=St.currency===void 0?"":St.currency[1]+"",kt=St.decimal===void 0?".":St.decimal+"",wt=St.numerals===void 0?nt:mt(vt.call(St.numerals,String)),ct=St.percent===void 0?"%":St.percent+"",It=St.minus===void 0?"-":St.minus+"",At=St.nan===void 0?"NaN":St.nan+"";function Ot(zt){zt=ht(zt);var Dt=zt.fill,Nt=zt.align,$t=zt.sign,Ut=zt.symbol,Ht=zt.zero,Vt=zt.width,Xt=zt.comma,qt=zt.precision,er=zt.trim,lr=zt.type;lr==="n"?(Xt=!0,lr="g"):ot[lr]||(qt===void 0&&(qt=12),er=!0,lr="g"),(Ht||Dt==="0"&&Nt==="=")&&(Ht=!0,Dt="0",Nt="=");var Jt=Ut==="$"?Mt:Ut==="#"&&/[boxX]/.test(lr)?"0"+lr.toLowerCase():"",Yt=Ut==="$"?Tt:/[%p]/.test(lr)?ct:"",rr=ot[lr],jt=/[defgprs%]/.test(lr);qt=qt===void 0?6:/[gprs]/.test(lr)?Math.max(1,Math.min(21,qt)):Math.max(0,Math.min(20,qt));function ar(sr){var Zt=Jt,Kt=Yt,or,tr,cr;if(lr==="c")Kt=rr(sr)+Kt,sr="";else{sr=+sr;var hr=sr<0||1/sr<0;if(sr=isNaN(sr)?At:rr(Math.abs(sr),qt),er&&(sr=_(sr)),hr&&+sr==0&&$t!=="+"&&(hr=!1),Zt=(hr?$t==="("?$t:It:$t==="-"||$t==="("?"":$t)+Zt,Kt=(lr==="s"?dt[8+rt/3]:"")+Kt+(hr&&$t==="("?")":""),jt){for(or=-1,tr=sr.length;++orcr||cr>57){Kt=(cr===46?kt+sr.slice(or+1):sr.slice(or))+Kt,sr=sr.slice(0,or);break}}}Xt&&!Ht&&(sr=_t(sr,1/0));var br=Zt.length+sr.length+Kt.length,Tr=br>1)+Zt+sr+Kt+Tr.slice(br);break;default:sr=Tr+Zt+sr+Kt;break}return wt(sr)}return ar.toString=function(){return zt+""},ar}function Pt(zt,Dt){var Nt=Ot((zt=ht(zt),zt.type="f",zt)),$t=Math.max(-8,Math.min(8,Math.floor(et(Dt)/3)))*3,Ut=Math.pow(10,-$t),Ht=dt[8+$t/3];return function(Vt){return Nt(Ut*Vt)+Ht}}return{format:Ot,formatPrefix:Pt}}var ft,at;yt({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function yt(St){return ft=bt(St),at=ft.format,ft.formatPrefix,ft}},87108:function(Ct,Rt,o){o.r(Rt),o.d(Rt,{geoAiry:function(){return Ht},geoAiryRaw:function(){return Ut},geoAitoff:function(){return Xt},geoAitoffRaw:function(){return Vt},geoArmadillo:function(){return er},geoArmadilloRaw:function(){return qt},geoAugust:function(){return Jt},geoAugustRaw:function(){return lr},geoBaker:function(){return ar},geoBakerRaw:function(){return jt},geoBerghaus:function(){return Kt},geoBerghausRaw:function(){return Zt},geoBertin1953:function(){return Ar},geoBertin1953Raw:function(){return Ir},geoBoggs:function(){return Qr},geoBoggsRaw:function(){return Nr},geoBonne:function(){return ln},geoBonneRaw:function(){return Xr},geoBottomley:function(){return pn},geoBottomleyRaw:function(){return mn},geoBromley:function(){return Jr},geoBromleyRaw:function(){return En},geoChamberlin:function(){return ur},geoChamberlinAfrica:function(){return Sr},geoChamberlinRaw:function(){return vr},geoCollignon:function(){return Pr},geoCollignonRaw:function(){return xr},geoCraig:function(){return en},geoCraigRaw:function(){return Vr},geoCraster:function(){return xn},geoCrasterRaw:function(){return Cn},geoCylindricalEqualArea:function(){return bn},geoCylindricalEqualAreaRaw:function(){return fn},geoCylindricalStereographic:function(){return _i},geoCylindricalStereographicRaw:function(){return Un},geoEckert1:function(){return Kn},geoEckert1Raw:function(){return yn},geoEckert2:function(){return so},geoEckert2Raw:function(){return Jn},geoEckert3:function(){return An},geoEckert3Raw:function(){return ba},geoEckert4:function(){return wn},geoEckert4Raw:function(){return hn},geoEckert5:function(){return Ln},geoEckert5Raw:function(){return In},geoEckert6:function(){return Wn},geoEckert6Raw:function(){return Xn},geoEisenlohr:function(){return fo},geoEisenlohrRaw:function(){return ga},geoFahey:function(){return Yr},geoFaheyRaw:function(){return po},geoFoucaut:function(){return $n},geoFoucautRaw:function(){return Wr},geoFoucautSinusoidal:function(){return xa},geoFoucautSinusoidalRaw:function(){return Bn},geoGilbert:function(){return ho},geoGingery:function(){return zo},geoGingeryRaw:function(){return go},geoGinzburg4:function(){return vs},geoGinzburg4Raw:function(){return Lo},geoGinzburg5:function(){return Ls},geoGinzburg5Raw:function(){return Zo},geoGinzburg6:function(){return bo},geoGinzburg6Raw:function(){return Ds},geoGinzburg8:function(){return Yo},geoGinzburg8Raw:function(){return No},geoGinzburg9:function(){return ys},geoGinzburg9Raw:function(){return Oo},geoGringorten:function(){return Fl},geoGringortenQuincuncial:function(){return Am},geoGringortenRaw:function(){return zs},geoGuyou:function(){return ms},geoGuyouRaw:function(){return xo},geoHammer:function(){return hr},geoHammerRaw:function(){return tr},geoHammerRetroazimuthal:function(){return Xs},geoHammerRetroazimuthalRaw:function(){return ws},geoHealpix:function(){return us},geoHealpixRaw:function(){return To},geoHill:function(){return Qo},geoHillRaw:function(){return wo},geoHomolosine:function(){return Ks},geoHomolosineRaw:function(){return Cs},geoHufnagel:function(){return Bl},geoHufnagelRaw:function(){return Ys},geoHyperelliptical:function(){return ju},geoHyperellipticalRaw:function(){return Zl},geoInterrupt:function(){return Kp},geoInterruptedBoggs:function(){return Fm},geoInterruptedHomolosine:function(){return Bu},geoInterruptedMollweide:function(){return zm},geoInterruptedMollweideHemispheres:function(){return av},geoInterruptedQuarticAuthalic:function(){return e0},geoInterruptedSinuMollweide:function(){return f1},geoInterruptedSinusoidal:function(){return d1},geoKavrayskiy7:function(){return kp},geoKavrayskiy7Raw:function(){return _p},geoLagrange:function(){return $p},geoLagrangeRaw:function(){return h1},geoLarrivee:function(){return p1},geoLarriveeRaw:function(){return lv},geoLaskowski:function(){return iy},geoLaskowskiRaw:function(){return uv},geoLittrow:function(){return Hp},geoLittrowRaw:function(){return qv},geoLoximuthal:function(){return R0},geoLoximuthalRaw:function(){return Um},geoMiller:function(){return M0},geoMillerRaw:function(){return _g},geoModifiedStereographic:function(){return k0},geoModifiedStereographicAlaska:function(){return $m},geoModifiedStereographicGs48:function(){return Cy},geoModifiedStereographicGs50:function(){return Ry},geoModifiedStereographicLee:function(){return Pv},geoModifiedStereographicMiller:function(){return H0},geoModifiedStereographicRaw:function(){return oy},geoMollweide:function(){return zr},geoMollweideRaw:function(){return Rr},geoMtFlatPolarParabolic:function(){return ly},geoMtFlatPolarParabolicRaw:function(){return W1},geoMtFlatPolarQuartic:function(){return m1},geoMtFlatPolarQuarticRaw:function(){return h0},geoMtFlatPolarSinusoidal:function(){return xl},geoMtFlatPolarSinusoidalRaw:function(){return Ts},geoNaturalEarth:function(){return Js.c},geoNaturalEarth2:function(){return Su},geoNaturalEarth2Raw:function(){return fu},geoNaturalEarthRaw:function(){return Js.g},geoNellHammer:function(){return mp},geoNellHammerRaw:function(){return Yu},geoNicolosi:function(){return vv},geoNicolosiRaw:function(){return t0},geoPatterson:function(){return b1},geoPattersonRaw:function(){return xm},geoPeirceQuincuncial:function(){return w1},geoPierceQuincuncial:function(){return w1},geoPolyconic:function(){return Em},geoPolyconicRaw:function(){return bm},geoPolyhedral:function(){return qu},geoPolyhedralButterfly:function(){return X1},geoPolyhedralCollignon:function(){return Y0},geoPolyhedralWaterman:function(){return pp},geoProject:function(){return Vm},geoQuantize:function(){return Wm},geoQuincuncial:function(){return x0},geoRectangularPolyconic:function(){return K0},geoRectangularPolyconicRaw:function(){return Ao},geoRobinson:function(){return Lu},geoRobinsonRaw:function(){return Mp},geoSatellite:function(){return Z0},geoSatelliteRaw:function(){return _m},geoSinuMollweide:function(){return Gs},geoSinuMollweideRaw:function(){return _s},geoSinusoidal:function(){return qr},geoSinusoidalRaw:function(){return un},geoStitch:function(){return tm},geoTimes:function(){return sp},geoTimesRaw:function(){return N0},geoTwoPointAzimuthal:function(){return Cm},geoTwoPointAzimuthalRaw:function(){return Ym},geoTwoPointAzimuthalUsa:function(){return J0},geoTwoPointEquidistant:function(){return Xm},geoTwoPointEquidistantRaw:function(){return rm},geoTwoPointEquidistantUsa:function(){return hy},geoVanDerGrinten:function(){return nm},geoVanDerGrinten2:function(){return k1},geoVanDerGrinten2Raw:function(){return O0},geoVanDerGrinten3:function(){return My},geoVanDerGrinten3Raw:function(){return Vv},geoVanDerGrinten4:function(){return am},geoVanDerGrinten4Raw:function(){return cv},geoVanDerGrintenRaw:function(){return iv},geoWagner:function(){return xv},geoWagner4:function(){return D1},geoWagner4Raw:function(){return om},geoWagner6:function(){return Rm},geoWagner6Raw:function(){return Fv},geoWagner7:function(){return bv},geoWagnerRaw:function(){return Wv},geoWiechel:function(){return P1},geoWiechelRaw:function(){return Q0},geoWinkel3:function(){return Km},geoWinkel3Raw:function(){return sm}});var it=o(87952),xt=Math.abs,et=Math.atan,Et=Math.atan2,mt=Math.cos,ut=Math.exp,ht=Math.floor,j=Math.log,_=Math.max,rt=Math.min,tt=Math.pow,st=Math.round,ot=Math.sign||function(Zr){return Zr>0?1:Zr<0?-1:0},nt=Math.sin,vt=Math.tan,dt=1e-6,bt=1e-12,ft=Math.PI,at=ft/2,yt=ft/4,St=Math.SQRT1_2,_t=Ot(2),Mt=Ot(ft),Tt=ft*2,kt=180/ft,wt=ft/180;function ct(Zr){return Zr?Zr/Math.sin(Zr):1}function It(Zr){return Zr>1?at:Zr<-1?-at:Math.asin(Zr)}function At(Zr){return Zr>1?0:Zr<-1?ft:Math.acos(Zr)}function Ot(Zr){return Zr>0?Math.sqrt(Zr):0}function Pt(Zr){return Zr=ut(2*Zr),(Zr-1)/(Zr+1)}function zt(Zr){return(ut(Zr)-ut(-Zr))/2}function Dt(Zr){return(ut(Zr)+ut(-Zr))/2}function Nt(Zr){return j(Zr+Ot(Zr*Zr+1))}function $t(Zr){return j(Zr+Ot(Zr*Zr-1))}function Ut(Zr){var dn=vt(Zr/2),_n=2*j(mt(Zr/2))/(dn*dn);function Sn(zn,Nn){var Hn=mt(zn),vo=mt(Nn),mo=nt(Nn),oo=vo*Hn,So=-((1-oo?j((1+oo)/2)/(1-oo):-.5)+_n/(1+oo));return[So*vo*nt(zn),So*mo]}return Sn.invert=function(zn,Nn){var Hn=Ot(zn*zn+Nn*Nn),vo=-Zr/2,mo=50,oo;if(!Hn)return[0,0];do{var So=vo/2,Do=mt(So),$o=nt(So),os=$o/Do,Ss=-j(xt(Do));vo-=oo=(2/os*Ss-_n*os-Hn)/(-Ss/($o*$o)+1-_n/(2*Do*Do))*(Do<0?.7:1)}while(xt(oo)>dt&&--mo>0);var Ns=nt(vo);return[Et(zn*Ns,Hn*mt(vo)),It(Nn*Ns/Hn)]},Sn}function Ht(){var Zr=at,dn=(0,it.U)(Ut),_n=dn(Zr);return _n.radius=function(Sn){return arguments.length?dn(Zr=Sn*wt):Zr*kt},_n.scale(179.976).clipAngle(147)}function Vt(Zr,dn){var _n=mt(dn),Sn=ct(At(_n*mt(Zr/=2)));return[2*_n*nt(Zr)*Sn,nt(dn)*Sn]}Vt.invert=function(Zr,dn){if(!(Zr*Zr+4*dn*dn>ft*ft+dt)){var _n=Zr,Sn=dn,zn=25;do{var Nn=nt(_n),Hn=nt(_n/2),vo=mt(_n/2),mo=nt(Sn),oo=mt(Sn),So=nt(2*Sn),Do=mo*mo,$o=oo*oo,os=Hn*Hn,Ss=1-$o*vo*vo,Ns=Ss?At(oo*vo)*Ot($s=1/Ss):$s=0,$s,Al=2*Ns*oo*Hn-Zr,pu=Ns*mo-dn,du=$s*($o*os+Ns*oo*vo*Do),gu=$s*(.5*Nn*So-Ns*2*mo*Hn),Eu=$s*.25*(So*Hn-Ns*mo*$o*Nn),Nu=$s*(Do*vo+Ns*os*oo),_c=gu*Eu-Nu*du;if(!_c)break;var Ip=(pu*gu-Al*Nu)/_c,dr=(Al*Eu-pu*du)/_c;_n-=Ip,Sn-=dr}while((xt(Ip)>dt||xt(dr)>dt)&&--zn>0);return[_n,Sn]}};function Xt(){return(0,it.c)(Vt).scale(152.63)}function qt(Zr){var dn=nt(Zr),_n=mt(Zr),Sn=Zr>=0?1:-1,zn=vt(Sn*Zr),Nn=(1+dn-_n)/2;function Hn(vo,mo){var oo=mt(mo),So=mt(vo/=2);return[(1+oo)*nt(vo),(Sn*mo>-Et(So,zn)-.001?0:-Sn*10)+Nn+nt(mo)*_n-(1+oo)*dn*So]}return Hn.invert=function(vo,mo){var oo=0,So=0,Do=50;do{var $o=mt(oo),os=nt(oo),Ss=mt(So),Ns=nt(So),$s=1+Ss,Al=$s*os-vo,pu=Nn+Ns*_n-$s*dn*$o-mo,du=$s*$o/2,gu=-os*Ns,Eu=dn*$s*os/2,Nu=_n*Ss+dn*$o*Ns,_c=gu*Eu-Nu*du,Ip=(pu*gu-Al*Nu)/_c/2,dr=(Al*Eu-pu*du)/_c;xt(dr)>2&&(dr/=2),oo-=Ip,So-=dr}while((xt(Ip)>dt||xt(dr)>dt)&&--Do>0);return Sn*So>-Et(mt(oo),zn)-.001?[oo*2,So]:null},Hn}function er(){var Zr=20*wt,dn=Zr>=0?1:-1,_n=vt(dn*Zr),Sn=(0,it.U)(qt),zn=Sn(Zr),Nn=zn.stream;return zn.parallel=function(Hn){return arguments.length?(_n=vt((dn=(Zr=Hn*wt)>=0?1:-1)*Zr),Sn(Zr)):Zr*kt},zn.stream=function(Hn){var vo=zn.rotate(),mo=Nn(Hn),oo=(zn.rotate([0,0]),Nn(Hn)),So=zn.precision();return zn.rotate(vo),mo.sphere=function(){oo.polygonStart(),oo.lineStart();for(var Do=dn*-180;dn*Do<180;Do+=dn*90)oo.point(Do,dn*90);if(Zr)for(;dn*(Do-=3*dn*So)>=-180;)oo.point(Do,dn*-Et(mt(Do*wt/2),_n)*kt);oo.lineEnd(),oo.polygonEnd()},mo},zn.scale(218.695).center([0,28.0974])}function lr(Zr,dn){var _n=vt(dn/2),Sn=Ot(1-_n*_n),zn=1+Sn*mt(Zr/=2),Nn=nt(Zr)*Sn/zn,Hn=_n/zn,vo=Nn*Nn,mo=Hn*Hn;return[1.3333333333333333*Nn*(3+vo-3*mo),1.3333333333333333*Hn*(3+3*vo-mo)]}lr.invert=function(Zr,dn){if(Zr*=.375,dn*=.375,!Zr&&xt(dn)>1)return null;var _n=Zr*Zr,Sn=dn*dn,zn=1+_n+Sn,Nn=Ot((zn-Ot(zn*zn-4*dn*dn))/2),Hn=It(Nn)/3,vo=Nn?$t(xt(dn/Nn))/3:Nt(xt(Zr))/3,mo=mt(Hn),oo=Dt(vo),So=oo*oo-mo*mo;return[ot(Zr)*2*Et(zt(vo)*mo,.25-So),ot(dn)*2*Et(oo*nt(Hn),.25+So)]};function Jt(){return(0,it.c)(lr).scale(66.1603)}var Yt=Ot(8),rr=j(1+_t);function jt(Zr,dn){var _n=xt(dn);return _nbt&&--Sn>0);return[Zr/(mt(_n)*(Yt-1/nt(_n))),ot(dn)*_n]};function ar(){return(0,it.c)(jt).scale(112.314)}var sr=o(69020);function Zt(Zr){var dn=2*ft/Zr;function _n(Sn,zn){var Nn=(0,sr.O)(Sn,zn);if(xt(Sn)>at){var Hn=Et(Nn[1],Nn[0]),vo=Ot(Nn[0]*Nn[0]+Nn[1]*Nn[1]),mo=dn*st((Hn-at)/dn)+at,oo=Et(nt(Hn-=mo),2-mt(Hn));Hn=mo+It(ft/vo*nt(oo))-oo,Nn[0]=vo*mt(Hn),Nn[1]=vo*nt(Hn)}return Nn}return _n.invert=function(Sn,zn){var Nn=Ot(Sn*Sn+zn*zn);if(Nn>at){var Hn=Et(zn,Sn),vo=dn*st((Hn-at)/dn)+at,mo=Hn>vo?-1:1,oo=Nn*mt(vo-Hn),So=1/vt(mo*At((oo-ft)/Ot(ft*(ft-2*oo)+Nn*Nn)));Hn=vo+2*et((So+mo*Ot(So*So-3))/3),Sn=Nn*mt(Hn),zn=Nn*nt(Hn)}return sr.O.invert(Sn,zn)},_n}function Kt(){var Zr=5,dn=(0,it.U)(Zt),_n=dn(Zr),Sn=_n.stream,zn=.01,Nn=-mt(zn*wt),Hn=nt(zn*wt);return _n.lobes=function(vo){return arguments.length?dn(Zr=+vo):Zr},_n.stream=function(vo){var mo=_n.rotate(),oo=Sn(vo),So=(_n.rotate([0,0]),Sn(vo));return _n.rotate(mo),oo.sphere=function(){So.polygonStart(),So.lineStart();for(var Do=0,$o=360/Zr,os=2*ft/Zr,Ss=90-180/Zr,Ns=at;Do0&&xt(zn)>dt);return Sn<0?NaN:_n}function Tr(Zr,dn,_n){return dn===void 0&&(dn=40),_n===void 0&&(_n=bt),function(Sn,zn,Nn,Hn){var vo,mo,oo;Nn=Nn===void 0?0:+Nn,Hn=Hn===void 0?0:+Hn;for(var So=0;Sovo){Nn-=mo/=2,Hn-=oo/=2;continue}vo=Ss;var Ns=(Nn>0?-1:1)*_n,$s=(Hn>0?-1:1)*_n,Al=Zr(Nn+Ns,Hn),pu=Zr(Nn,Hn+$s),du=(Al[0]-Do[0])/Ns,gu=(Al[1]-Do[1])/Ns,Eu=(pu[0]-Do[0])/$s,Nu=(pu[1]-Do[1])/$s,_c=Nu*du-gu*Eu,Ip=(xt(_c)<.5?.5:1)/_c;if(mo=(os*Eu-$o*Nu)*Ip,oo=($o*gu-os*du)*Ip,Nn+=mo,Hn+=oo,xt(mo)<_n&&xt(oo)<_n)break}return[Nn,Hn]}}function Ir(){var Zr=tr(1.68,2),dn=1.4,_n=12;function Sn(zn,Nn){if(zn+Nn<-dn){var Hn=(zn-Nn+1.6)*(zn+Nn+dn)/8;zn+=Hn,Nn-=.8*Hn*nt(Nn+ft/2)}var vo=Zr(zn,Nn),mo=(1-mt(zn*Nn))/_n;return vo[1]<0&&(vo[0]*=1+mo),vo[1]>0&&(vo[1]*=1+mo/1.5*vo[0]*vo[0]),vo}return Sn.invert=Tr(Sn),Sn}function Ar(){return(0,it.c)(Ir()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function _r(Zr,dn){var _n=Zr*nt(dn),Sn=30,zn;do dn-=zn=(dn+nt(dn)-_n)/(1+mt(dn));while(xt(zn)>dt&&--Sn>0);return dn/2}function Er(Zr,dn,_n){function Sn(zn,Nn){return[Zr*zn*mt(Nn=_r(_n,Nn)),dn*nt(Nn)]}return Sn.invert=function(zn,Nn){return Nn=It(Nn/dn),[zn/(Zr*mt(Nn)),It((2*Nn+nt(2*Nn))/_n)]},Sn}var Rr=Er(_t/at,_t,ft);function zr(){return(0,it.c)(Rr).scale(169.529)}var Br=2.00276,kr=1.11072;function Nr(Zr,dn){var _n=_r(ft,dn);return[Br*Zr/(1/mt(dn)+kr/mt(_n)),(dn+_t*nt(_n))/Br]}Nr.invert=function(Zr,dn){var _n=Br*dn,Sn=dn<0?-yt:yt,zn=25,Nn,Hn;do Hn=_n-_t*nt(Sn),Sn-=Nn=(nt(2*Sn)+2*Sn-ft*nt(Hn))/(2*mt(2*Sn)+2+ft*mt(Hn)*_t*mt(Sn));while(xt(Nn)>dt&&--zn>0);return Hn=_n-_t*nt(Sn),[Zr*(1/mt(Hn)+kr/mt(Sn))/Br,Hn]};function Qr(){return(0,it.c)(Nr).scale(160.857)}function sn(Zr){var dn=0,_n=(0,it.U)(Zr),Sn=_n(dn);return Sn.parallel=function(zn){return arguments.length?_n(dn=zn*wt):dn*kt},Sn}function un(Zr,dn){return[Zr*mt(dn),dn]}un.invert=function(Zr,dn){return[Zr/mt(dn),dn]};function qr(){return(0,it.c)(un).scale(152.63)}function Xr(Zr){if(!Zr)return un;var dn=1/vt(Zr);function _n(Sn,zn){var Nn=dn+Zr-zn,Hn=Nn&&Sn*mt(zn)/Nn;return[Nn*nt(Hn),dn-Nn*mt(Hn)]}return _n.invert=function(Sn,zn){var Nn=Ot(Sn*Sn+(zn=dn-zn)*zn),Hn=dn+Zr-Nn;return[Nn/mt(Hn)*Et(Sn,zn),Hn]},_n}function ln(){return sn(Xr).scale(123.082).center([0,26.1441]).parallel(45)}function mn(Zr){function dn(_n,Sn){var zn=at-Sn,Nn=zn&&_n*Zr*nt(zn)/zn;return[zn*nt(Nn)/Zr,at-zn*mt(Nn)]}return dn.invert=function(_n,Sn){var zn=_n*Zr,Nn=at-Sn,Hn=Ot(zn*zn+Nn*Nn),vo=Et(zn,Nn);return[(Hn?Hn/nt(Hn):1)*vo/Zr,at-Hn]},dn}function pn(){var Zr=.5,dn=(0,it.U)(mn),_n=dn(Zr);return _n.fraction=function(Sn){return arguments.length?dn(Zr=+Sn):Zr},_n.scale(158.837)}var En=Er(1,4/ft,ft);function Jr(){return(0,it.c)(En).scale(152.63)}var Or=o(24052),Ur=o(92992);function jr(Zr,dn,_n,Sn,zn,Nn){var Hn=mt(Nn),vo;if(xt(Zr)>1||xt(Nn)>1)vo=At(_n*zn+dn*Sn*Hn);else{var mo=nt(Zr/2),oo=nt(Nn/2);vo=2*It(Ot(mo*mo+dn*Sn*oo*oo))}return xt(vo)>dt?[vo,Et(Sn*nt(Nn),dn*zn-_n*Sn*Hn)]:[0,0]}function Gr(Zr,dn,_n){return At((Zr*Zr+dn*dn-_n*_n)/(2*Zr*dn))}function wr(Zr){return Zr-2*ft*ht((Zr+ft)/(2*ft))}function vr(Zr,dn,_n){for(var Sn=[[Zr[0],Zr[1],nt(Zr[1]),mt(Zr[1])],[dn[0],dn[1],nt(dn[1]),mt(dn[1])],[_n[0],_n[1],nt(_n[1]),mt(_n[1])]],zn=Sn[2],Nn,Hn=0;Hn<3;++Hn,zn=Nn)Nn=Sn[Hn],zn.v=jr(Nn[1]-zn[1],zn[3],zn[2],Nn[3],Nn[2],Nn[0]-zn[0]),zn.point=[0,0];var vo=Gr(Sn[0].v[0],Sn[2].v[0],Sn[1].v[0]),mo=Gr(Sn[0].v[0],Sn[1].v[0],Sn[2].v[0]),oo=ft-vo;Sn[2].point[1]=0,Sn[0].point[0]=-(Sn[1].point[0]=Sn[0].v[0]/2);var So=[Sn[2].point[0]=Sn[0].point[0]+Sn[2].v[0]*mt(vo),2*(Sn[0].point[1]=Sn[1].point[1]=Sn[2].v[0]*nt(vo))];function Do($o,os){var Ss=nt(os),Ns=mt(os),$s=new Array(3),Al;for(Al=0;Al<3;++Al){var pu=Sn[Al];if($s[Al]=jr(os-pu[1],pu[3],pu[2],Ns,Ss,$o-pu[0]),!$s[Al][0])return pu.point;$s[Al][1]=wr($s[Al][1]-pu.v[1])}var du=So.slice();for(Al=0;Al<3;++Al){var gu=Al==2?0:Al+1,Eu=Gr(Sn[Al].v[0],$s[Al][0],$s[gu][0]);$s[Al][1]<0&&(Eu=-Eu),Al?Al==1?(Eu=mo-Eu,du[0]-=$s[Al][0]*mt(Eu),du[1]-=$s[Al][0]*nt(Eu)):(Eu=oo-Eu,du[0]+=$s[Al][0]*mt(Eu),du[1]+=$s[Al][0]*nt(Eu)):(du[0]+=$s[Al][0]*mt(Eu),du[1]-=$s[Al][0]*nt(Eu))}return du[0]/=3,du[1]/=3,du}return Do}function Dr(Zr){return Zr[0]*=wt,Zr[1]*=wt,Zr}function Sr(){return ur([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function ur(Zr,dn,_n){var Sn=(0,Or.c)({type:"MultiPoint",coordinates:[Zr,dn,_n]}),zn=[-Sn[0],-Sn[1]],Nn=(0,Ur.c)(zn),Hn=vr(Dr(Nn(Zr)),Dr(Nn(dn)),Dr(Nn(_n)));Hn.invert=Tr(Hn);var vo=(0,it.c)(Hn).rotate(zn),mo=vo.center;return delete vo.rotate,vo.center=function(oo){return arguments.length?mo(Nn(oo)):Nn.invert(mo())},vo.clipAngle(90)}function xr(Zr,dn){var _n=Ot(1-nt(dn));return[2/Mt*Zr*_n,Mt*(1-_n)]}xr.invert=function(Zr,dn){var _n=(_n=dn/Mt-1)*_n;return[_n>0?Zr*Ot(ft/_n)/2:0,It(1-_n)]};function Pr(){return(0,it.c)(xr).scale(95.6464).center([0,30])}function Vr(Zr){var dn=vt(Zr);function _n(Sn,zn){return[Sn,(Sn?Sn/nt(Sn):1)*(nt(zn)*mt(Sn)-dn*mt(zn))]}return _n.invert=dn?function(Sn,zn){Sn&&(zn*=nt(Sn)/Sn);var Nn=mt(Sn);return[Sn,2*Et(Ot(Nn*Nn+dn*dn-zn*zn)-Nn,dn-zn)]}:function(Sn,zn){return[Sn,It(Sn?zn*vt(Sn)/Sn:zn)]},_n}function en(){return sn(Vr).scale(249.828).clipAngle(90)}var rn=Ot(3);function Cn(Zr,dn){return[rn*Zr*(2*mt(2*dn/3)-1)/Mt,rn*Mt*nt(dn/3)]}Cn.invert=function(Zr,dn){var _n=3*It(dn/(rn*Mt));return[Mt*Zr/(rn*(2*mt(2*_n/3)-1)),_n]};function xn(){return(0,it.c)(Cn).scale(156.19)}function fn(Zr){var dn=mt(Zr);function _n(Sn,zn){return[Sn*dn,nt(zn)/dn]}return _n.invert=function(Sn,zn){return[Sn/dn,It(zn*dn)]},_n}function bn(){return sn(fn).parallel(38.58).scale(195.044)}function Un(Zr){var dn=mt(Zr);function _n(Sn,zn){return[Sn*dn,(1+dn)*vt(zn/2)]}return _n.invert=function(Sn,zn){return[Sn/dn,et(zn/(1+dn))*2]},_n}function _i(){return sn(Un).scale(124.75)}function yn(Zr,dn){var _n=Ot(8/(3*ft));return[_n*Zr*(1-xt(dn)/ft),_n*dn]}yn.invert=function(Zr,dn){var _n=Ot(8/(3*ft)),Sn=dn/_n;return[Zr/(_n*(1-xt(Sn)/ft)),Sn]};function Kn(){return(0,it.c)(yn).scale(165.664)}function Jn(Zr,dn){var _n=Ot(4-3*nt(xt(dn)));return[2/Ot(6*ft)*Zr*_n,ot(dn)*Ot(2*ft/3)*(2-_n)]}Jn.invert=function(Zr,dn){var _n=2-xt(dn)/Ot(2*ft/3);return[Zr*Ot(6*ft)/(2*_n),ot(dn)*It((4-_n*_n)/3)]};function so(){return(0,it.c)(Jn).scale(165.664)}function ba(Zr,dn){var _n=Ot(ft*(4+ft));return[2/_n*Zr*(1+Ot(1-4*dn*dn/(ft*ft))),4/_n*dn]}ba.invert=function(Zr,dn){var _n=Ot(ft*(4+ft))/2;return[Zr*_n/(1+Ot(1-dn*dn*(4+ft)/(4*ft))),dn*_n/2]};function An(){return(0,it.c)(ba).scale(180.739)}function hn(Zr,dn){var _n=(2+at)*nt(dn);dn/=2;for(var Sn=0,zn=1/0;Sn<10&&xt(zn)>dt;Sn++){var Nn=mt(dn);dn-=zn=(dn+nt(dn)*(Nn+2)-_n)/(2*Nn*(1+Nn))}return[2/Ot(ft*(4+ft))*Zr*(1+mt(dn)),2*Ot(ft/(4+ft))*nt(dn)]}hn.invert=function(Zr,dn){var _n=dn*Ot((4+ft)/ft)/2,Sn=It(_n),zn=mt(Sn);return[Zr/(2/Ot(ft*(4+ft))*(1+zn)),It((Sn+_n*(zn+2))/(2+at))]};function wn(){return(0,it.c)(hn).scale(180.739)}function In(Zr,dn){return[Zr*(1+mt(dn))/Ot(2+ft),2*dn/Ot(2+ft)]}In.invert=function(Zr,dn){var _n=Ot(2+ft),Sn=dn*_n/2;return[_n*Zr/(1+mt(Sn)),Sn]};function Ln(){return(0,it.c)(In).scale(173.044)}function Xn(Zr,dn){for(var _n=(1+at)*nt(dn),Sn=0,zn=1/0;Sn<10&&xt(zn)>dt;Sn++)dn-=zn=(dn+nt(dn)-_n)/(1+mt(dn));return _n=Ot(2+ft),[Zr*(1+mt(dn))/_n,2*dn/_n]}Xn.invert=function(Zr,dn){var _n=1+at,Sn=Ot(_n/2);return[Zr*2*Sn/(1+mt(dn*=Sn)),It((dn+nt(dn))/_n)]};function Wn(){return(0,it.c)(Xn).scale(173.044)}var Vn=3+2*_t;function ga(Zr,dn){var _n=nt(Zr/=2),Sn=mt(Zr),zn=Ot(mt(dn)),Nn=mt(dn/=2),Hn=nt(dn)/(Nn+_t*Sn*zn),vo=Ot(2/(1+Hn*Hn)),mo=Ot((_t*Nn+(Sn+_n)*zn)/(_t*Nn+(Sn-_n)*zn));return[Vn*(vo*(mo-1/mo)-2*j(mo)),Vn*(vo*Hn*(mo+1/mo)-2*et(Hn))]}ga.invert=function(Zr,dn){if(!(Nn=lr.invert(Zr/1.2,dn*1.065)))return null;var _n=Nn[0],Sn=Nn[1],zn=20,Nn;Zr/=Vn,dn/=Vn;do{var Hn=_n/2,vo=Sn/2,mo=nt(Hn),oo=mt(Hn),So=nt(vo),Do=mt(vo),$o=mt(Sn),os=Ot($o),Ss=So/(Do+_t*oo*os),Ns=Ss*Ss,$s=Ot(2/(1+Ns)),Al=_t*Do+(oo+mo)*os,pu=_t*Do+(oo-mo)*os,du=Al/pu,gu=Ot(du),Eu=gu-1/gu,Nu=gu+1/gu,_c=$s*Eu-2*j(gu)-Zr,Ip=$s*Ss*Nu-2*et(Ss)-dn,dr=So&&St*os*mo*Ns/So,Lr=(_t*oo*Do+os)/(2*(Do+_t*oo*os)*(Do+_t*oo*os)*os),Hr=-.5*Ss*$s*$s*$s,nn=Hr*dr,cn=Hr*Lr,vn=(vn=2*Do+_t*os*(oo-mo))*vn*gu,Dn=(_t*oo*Do*os+$o)/vn,Rn=-(_t*mo*So)/(os*vn),Yn=Eu*nn-2*Dn/gu+$s*(Dn+Dn/du),Zn=Eu*cn-2*Rn/gu+$s*(Rn+Rn/du),to=Ss*Nu*nn-2*dr/(1+Ns)+$s*Nu*dr+$s*Ss*(Dn-Dn/du),Co=Ss*Nu*cn-2*Lr/(1+Ns)+$s*Nu*Lr+$s*Ss*(Rn-Rn/du),Ro=Zn*to-Co*Yn;if(!Ro)break;var ts=(Ip*Zn-_c*Co)/Ro,ls=(_c*to-Ip*Yn)/Ro;_n-=ts,Sn=_(-at,rt(at,Sn-ls))}while((xt(ts)>dt||xt(ls)>dt)&&--zn>0);return xt(xt(Sn)-at)Sn){var Do=Ot(So),$o=Et(oo,mo),os=_n*st($o/_n),Ss=$o-os,Ns=Zr*mt(Ss),$s=(Zr*nt(Ss)-Ss*nt(Ns))/(at-Ns),Al=_o(Ss,$s),pu=(ft-Zr)/co(Al,Ns,ft);mo=Do;var du=50,gu;do mo-=gu=(Zr+co(Al,Ns,mo)*pu-Do)/(Al(mo)*pu);while(xt(gu)>dt&&--du>0);oo=Ss*nt(mo),moSn){var mo=Ot(vo),oo=Et(Hn,Nn),So=_n*st(oo/_n),Do=oo-So;Nn=mo*mt(Do),Hn=mo*nt(Do);for(var $o=Nn-at,os=nt(Nn),Ss=Hn/os,Ns=Nndt||xt(Ss)>dt)&&--Ns>0);return[Do,$o]},mo}var Lo=Io(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function vs(){return(0,it.c)(Lo).scale(149.995)}var Zo=Io(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function Ls(){return(0,it.c)(Zo).scale(153.93)}var Ds=Io(5/6*ft,-.62636,-.0344,0,1.3493,-.05524,0,.045);function bo(){return(0,it.c)(Ds).scale(130.945)}function No(Zr,dn){var _n=Zr*Zr,Sn=dn*dn;return[Zr*(1-.162388*Sn)*(.87-952426e-9*_n*_n),dn*(1+Sn/12)]}No.invert=function(Zr,dn){var _n=Zr,Sn=dn,zn=50,Nn;do{var Hn=Sn*Sn;Sn-=Nn=(Sn*(1+Hn/12)-dn)/(1+Hn/4)}while(xt(Nn)>dt&&--zn>0);zn=50,Zr/=1-.162388*Hn;do{var vo=(vo=_n*_n)*vo;_n-=Nn=(_n*(.87-952426e-9*vo)-Zr)/(.87-.00476213*vo)}while(xt(Nn)>dt&&--zn>0);return[_n,Sn]};function Yo(){return(0,it.c)(No).scale(131.747)}var Oo=Io(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function ys(){return(0,it.c)(Oo).scale(131.087)}function gs(Zr){var dn=Zr(at,0)[0]-Zr(-at,0)[0];function _n(Sn,zn){var Nn=Sn>0?-.5:.5,Hn=Zr(Sn+Nn*ft,zn);return Hn[0]-=Nn*dn,Hn}return Zr.invert&&(_n.invert=function(Sn,zn){var Nn=Sn>0?-.5:.5,Hn=Zr.invert(Sn+Nn*dn,zn),vo=Hn[0]-Nn*ft;return vo<-ft?vo+=2*ft:vo>ft&&(vo-=2*ft),Hn[0]=vo,Hn}),_n}function zs(Zr,dn){var _n=ot(Zr),Sn=ot(dn),zn=mt(dn),Nn=mt(Zr)*zn,Hn=nt(Zr)*zn,vo=nt(Sn*dn);Zr=xt(Et(Hn,vo)),dn=It(Nn),xt(Zr-at)>dt&&(Zr%=at);var mo=Us(Zr>ft/4?at-Zr:Zr,dn);return Zr>ft/4&&(vo=mo[0],mo[0]=-mo[1],mo[1]=-vo),mo[0]*=_n,mo[1]*=-Sn,mo}zs.invert=function(Zr,dn){xt(Zr)>1&&(Zr=ot(Zr)*2-Zr),xt(dn)>1&&(dn=ot(dn)*2-dn);var _n=ot(Zr),Sn=ot(dn),zn=-_n*Zr,Nn=-Sn*dn,Hn=Nn/zn<1,vo=Qs(Hn?Nn:zn,Hn?zn:Nn),mo=vo[0],oo=vo[1],So=mt(oo);return Hn&&(mo=-at-mo),[_n*(Et(nt(mo)*So,-nt(oo))+ft),Sn*It(mt(mo)*So)]};function Us(Zr,dn){if(dn===at)return[0,0];var _n=nt(dn),Sn=_n*_n,zn=Sn*Sn,Nn=1+zn,Hn=1+3*zn,vo=1-zn,mo=It(1/Ot(Nn)),oo=vo+Sn*Nn*mo,So=(1-_n)/oo,Do=Ot(So),$o=So*Nn,os=Ot($o),Ss=Do*vo,Ns,$s;if(Zr===0)return[0,-(Ss+Sn*os)];var Al=mt(dn),pu=1/Al,du=2*_n*Al,gu=(-3*Sn+mo*Hn)*du,Eu=(-oo*Al-(1-_n)*gu)/(oo*oo),Nu=.5*Eu/Do,_c=vo*Nu-2*Sn*Do*du,Ip=Sn*Nn*Eu+So*Hn*du,dr=-pu*du,Lr=-pu*Ip,Hr=-2*pu*_c,nn=4*Zr/ft,cn;if(Zr>.222*ft||dn.175*ft){if(Ns=(Ss+Sn*Ot($o*(1+zn)-Ss*Ss))/(1+zn),Zr>ft/4)return[Ns,Ns];var vn=Ns,Dn=.5*Ns;Ns=.5*(Dn+vn),$s=50;do{var Rn=Ot($o-Ns*Ns),Yn=Ns*(Hr+dr*Rn)+Lr*It(Ns/os)-nn;if(!Yn)break;Yn<0?Dn=Ns:vn=Ns,Ns=.5*(Dn+vn)}while(xt(vn-Dn)>dt&&--$s>0)}else{Ns=dt,$s=25;do{var Zn=Ns*Ns,to=Ot($o-Zn),Co=Hr+dr*to,Ro=Ns*Co+Lr*It(Ns/os)-nn,ts=Co+(Lr-dr*Zn)/to;Ns-=cn=to?Ro/ts:0}while(xt(cn)>dt&&--$s>0)}return[Ns,-Ss-Sn*Ot($o-Ns*Ns)]}function Qs(Zr,dn){for(var _n=0,Sn=1,zn=.5,Nn=50;;){var Hn=zn*zn,vo=Ot(zn),mo=It(1/Ot(1+Hn)),oo=1-Hn+zn*(1+Hn)*mo,So=(1-vo)/oo,Do=Ot(So),$o=So*(1+Hn),os=Do*(1-Hn),Ss=$o-Zr*Zr,Ns=Ot(Ss),$s=dn+os+zn*Ns;if(xt(Sn-_n)0?_n=zn:Sn=zn,zn=.5*(_n+Sn)}if(!Nn)return null;var Al=It(vo),pu=mt(Al),du=1/pu,gu=2*vo*pu,Eu=(-3*zn+mo*(1+3*Hn))*gu,Nu=(-oo*pu-(1-vo)*Eu)/(oo*oo),_c=.5*Nu/Do,Ip=(1-Hn)*_c-2*zn*Do*gu,dr=-2*du*Ip,Lr=-du*gu,Hr=-du*(zn*(1+Hn)*Nu+So*(1+3*Hn)*gu);return[ft/4*(Zr*(dr+Lr*Ns)+Hr*It(Zr/Ot($o))),Al]}function Fl(){return(0,it.c)(gs(zs)).scale(239.75)}function Jl(Zr,dn,_n){var Sn,zn,Nn;return Zr?(Sn=nu(Zr,_n),dn?(zn=nu(dn,1-_n),Nn=zn[1]*zn[1]+_n*Sn[0]*Sn[0]*zn[0]*zn[0],[[Sn[0]*zn[2]/Nn,Sn[1]*Sn[2]*zn[0]*zn[1]/Nn],[Sn[1]*zn[1]/Nn,-Sn[0]*Sn[2]*zn[0]*zn[2]/Nn],[Sn[2]*zn[1]*zn[2]/Nn,-_n*Sn[0]*Sn[1]*zn[0]/Nn]]):[[Sn[0],0],[Sn[1],0],[Sn[2],0]]):(zn=nu(dn,1-_n),[[0,zn[0]/zn[1]],[1/zn[1],0],[zn[2]/zn[1],0]])}function nu(Zr,dn){var _n,Sn,zn,Nn,Hn;if(dn=1-dt)return _n=(1-dn)/4,Sn=Dt(Zr),Nn=Pt(Zr),zn=1/Sn,Hn=Sn*zt(Zr),[Nn+_n*(Hn-Zr)/(Sn*Sn),zn-_n*Nn*zn*(Hn-Zr),zn+_n*Nn*zn*(Hn+Zr),2*et(ut(Zr))-at+_n*(Hn-Zr)/Sn];var vo=[1,0,0,0,0,0,0,0,0],mo=[Ot(dn),0,0,0,0,0,0,0,0],oo=0;for(Sn=Ot(1-dn),Hn=1;xt(mo[oo]/vo[oo])>dt&&oo<8;)_n=vo[oo++],mo[oo]=(_n-Sn)/2,vo[oo]=(_n+Sn)/2,Sn=Ot(_n*Sn),Hn*=2;zn=Hn*vo[oo]*Zr;do Nn=mo[oo]*nt(Sn=zn)/vo[oo],zn=(It(Nn)+zn)/2;while(--oo);return[nt(zn),Nn=mt(zn),Nn/mt(zn-Sn),zn]}function Yl(Zr,dn,_n){var Sn=xt(Zr),zn=xt(dn),Nn=zt(zn);if(Sn){var Hn=1/nt(Sn),vo=1/(vt(Sn)*vt(Sn)),mo=-(vo+_n*(Nn*Nn*Hn*Hn)-1+_n),oo=(_n-1)*vo,So=(-mo+Ot(mo*mo-4*oo))/2;return[Zs(et(1/Ot(So)),_n)*ot(Zr),Zs(et(Ot((So/vo-1)/_n)),1-_n)*ot(dn)]}return[0,Zs(et(Nn),1-_n)*ot(dn)]}function Zs(Zr,dn){if(!dn)return Zr;if(dn===1)return j(vt(Zr/2+yt));for(var _n=1,Sn=Ot(1-dn),zn=Ot(dn),Nn=0;xt(zn)>dt;Nn++){if(Zr%ft){var Hn=et(Sn*vt(Zr)/_n);Hn<0&&(Hn+=ft),Zr+=Hn+~~(Zr/ft)*ft}else Zr+=Zr;zn=(_n+Sn)/2,Sn=Ot(_n*Sn),zn=((_n=zn)-Sn)/2}return Zr/(tt(2,Nn)*_n)}function xo(Zr,dn){var _n=(_t-1)/(_t+1),Sn=Ot(1-_n*_n),zn=Zs(at,Sn*Sn),Nn=-1,Hn=j(vt(ft/4+xt(dn)/2)),vo=ut(Nn*Hn)/Ot(_n),mo=Vo(vo*mt(Nn*Zr),vo*nt(Nn*Zr)),oo=Yl(mo[0],mo[1],Sn*Sn);return[-oo[1],(dn>=0?1:-1)*(.5*zn-oo[0])]}function Vo(Zr,dn){var _n=Zr*Zr,Sn=dn+1,zn=1-_n-dn*dn;return[.5*((Zr>=0?at:-at)-Et(zn,2*Zr)),-.25*j(zn*zn+4*_n)+.5*j(Sn*Sn+_n)]}function Go(Zr,dn){var _n=dn[0]*dn[0]+dn[1]*dn[1];return[(Zr[0]*dn[0]+Zr[1]*dn[1])/_n,(Zr[1]*dn[0]-Zr[0]*dn[1])/_n]}xo.invert=function(Zr,dn){var _n=(_t-1)/(_t+1),Sn=Ot(1-_n*_n),zn=Zs(at,Sn*Sn),Nn=-1,Hn=Jl(.5*zn-dn,-Zr,Sn*Sn),vo=Go(Hn[0],Hn[1]),mo=Et(vo[1],vo[0])/Nn;return[mo,2*et(ut(.5/Nn*j(_n*vo[0]*vo[0]+_n*vo[1]*vo[1])))-at]};function ms(){return(0,it.c)(gs(xo)).scale(151.496)}var Ws=o(61780);function ws(Zr){var dn=nt(Zr),_n=mt(Zr),Sn=Is(Zr);Sn.invert=Is(-Zr);function zn(Nn,Hn){var vo=Sn(Nn,Hn);Nn=vo[0],Hn=vo[1];var mo=nt(Hn),oo=mt(Hn),So=mt(Nn),Do=At(dn*mo+_n*oo*So),$o=nt(Do),os=xt($o)>dt?Do/$o:1;return[os*_n*nt(Nn),(xt(Nn)>at?os:-os)*(dn*oo-_n*mo*So)]}return zn.invert=function(Nn,Hn){var vo=Ot(Nn*Nn+Hn*Hn),mo=-nt(vo),oo=mt(vo),So=vo*oo,Do=-Hn*mo,$o=vo*dn,os=Ot(So*So+Do*Do-$o*$o),Ss=Et(So*$o+Do*os,Do*$o-So*os),Ns=(vo>at?-1:1)*Et(Nn*mo,vo*mt(Ss)*oo+Hn*nt(Ss)*mo);return Sn.invert(Ns,Ss)},zn}function Is(Zr){var dn=nt(Zr),_n=mt(Zr);return function(Sn,zn){var Nn=mt(zn),Hn=mt(Sn)*Nn,vo=nt(Sn)*Nn,mo=nt(zn);return[Et(vo,Hn*_n-mo*dn),It(mo*_n+Hn*dn)]}}function Xs(){var Zr=0,dn=(0,it.U)(ws),_n=dn(Zr),Sn=_n.rotate,zn=_n.stream,Nn=(0,Ws.c)();return _n.parallel=function(Hn){if(!arguments.length)return Zr*kt;var vo=_n.rotate();return dn(Zr=Hn*wt).rotate(vo)},_n.rotate=function(Hn){return arguments.length?(Sn.call(_n,[Hn[0],Hn[1]-Zr*kt]),Nn.center([-Hn[0],-Hn[1]]),_n):(Hn=Sn.call(_n),Hn[1]+=Zr*kt,Hn)},_n.stream=function(Hn){return Hn=zn(Hn),Hn.sphere=function(){Hn.polygonStart();var vo=.01,mo=Nn.radius(90-vo)().coordinates[0],oo=mo.length-1,So=-1,Do;for(Hn.lineStart();++So=0;)Hn.point((Do=mo[So])[0],Do[1]);Hn.lineEnd(),Hn.polygonEnd()},Hn},_n.scale(79.4187).parallel(45).clipAngle(179.999)}var Cl=o(84706),Wl=o(16016),yu=3,yo=It(1-1/yu)*kt,Fo=fn(0);function To(Zr){var dn=yo*wt,_n=xr(ft,dn)[0]-xr(-ft,dn)[0],Sn=Fo(0,dn)[1],zn=xr(0,dn)[1],Nn=Mt-zn,Hn=Tt/Zr,vo=4/Tt,mo=Sn+Nn*Nn*4/Tt;function oo(So,Do){var $o,os=xt(Do);if(os>dn){var Ss=rt(Zr-1,_(0,ht((So+ft)/Hn)));So+=ft*(Zr-1)/Zr-Ss*Hn,$o=xr(So,os),$o[0]=$o[0]*Tt/_n-Tt*(Zr-1)/(2*Zr)+Ss*Tt/Zr,$o[1]=Sn+($o[1]-zn)*4*Nn/Tt,Do<0&&($o[1]=-$o[1])}else $o=Fo(So,Do);return $o[0]*=vo,$o[1]/=mo,$o}return oo.invert=function(So,Do){So/=vo,Do*=mo;var $o=xt(Do);if($o>Sn){var os=rt(Zr-1,_(0,ht((So+ft)/Hn)));So=(So+ft*(Zr-1)/Zr-os*Hn)*_n/Tt;var Ss=xr.invert(So,.25*($o-Sn)*Tt/Nn+zn);return Ss[0]-=ft*(Zr-1)/Zr-os*Hn,Do<0&&(Ss[1]=-Ss[1]),Ss}return Fo.invert(So,Do)},oo}function Bo(Zr,dn){return[Zr,dn&1?90-dt:yo]}function Es(Zr,dn){return[Zr,dn&1?-90+dt:-yo]}function Ps(Zr){return[Zr[0]*(1-dt),Zr[1]]}function xs(Zr){var dn=[].concat((0,Cl.ik)(-180,180+Zr/2,Zr).map(Bo),(0,Cl.ik)(180,-180-Zr/2,-Zr).map(Es));return{type:"Polygon",coordinates:[Zr===180?dn.map(Ps):dn]}}function us(){var Zr=4,dn=(0,it.U)(To),_n=dn(Zr),Sn=_n.stream;return _n.lobes=function(zn){return arguments.length?dn(Zr=+zn):Zr},_n.stream=function(zn){var Nn=_n.rotate(),Hn=Sn(zn),vo=(_n.rotate([0,0]),Sn(zn));return _n.rotate(Nn),Hn.sphere=function(){(0,Wl.c)(xs(180/Zr),vo)},Hn},_n.scale(239.75)}function wo(Zr){var dn=1+Zr,_n=nt(1/dn),Sn=It(_n),zn=2*Ot(ft/(Nn=ft+4*Sn*dn)),Nn,Hn=.5*zn*(dn+Ot(Zr*(2+Zr))),vo=Zr*Zr,mo=dn*dn;function oo(So,Do){var $o=1-nt(Do),os,Ss;if($o&&$o<2){var Ns=at-Do,$s=25,Al;do{var pu=nt(Ns),du=mt(Ns),gu=Sn+Et(pu,dn-du),Eu=1+mo-2*dn*du;Ns-=Al=(Ns-vo*Sn-dn*pu+Eu*gu-.5*$o*Nn)/(2*dn*pu*gu)}while(xt(Al)>bt&&--$s>0);os=zn*Ot(Eu),Ss=So*gu/ft}else os=zn*(Zr+$o),Ss=So*Sn/ft;return[os*nt(Ss),Hn-os*mt(Ss)]}return oo.invert=function(So,Do){var $o=So*So+(Do-=Hn)*Do,os=(1+mo-$o/(zn*zn))/(2*dn),Ss=At(os),Ns=nt(Ss),$s=Sn+Et(Ns,dn-os);return[It(So/Ot($o))*ft/$s,It(1-2*(Ss-vo*Sn-dn*Ns+(1+mo-2*dn*os)*$s)/Nn)]},oo}function Qo(){var Zr=1,dn=(0,it.U)(wo),_n=dn(Zr);return _n.ratio=function(Sn){return arguments.length?dn(Zr=+Sn):Zr},_n.scale(167.774).center([0,18.67])}var Wo=.7109889596207567,rs=.0528035274542;function _s(Zr,dn){return dn>-Wo?(Zr=Rr(Zr,dn),Zr[1]+=rs,Zr):un(Zr,dn)}_s.invert=function(Zr,dn){return dn>-Wo?Rr.invert(Zr,dn-rs):un.invert(Zr,dn)};function Gs(){return(0,it.c)(_s).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function Cs(Zr,dn){return xt(dn)>Wo?(Zr=Rr(Zr,dn),Zr[1]-=dn>0?rs:-rs,Zr):un(Zr,dn)}Cs.invert=function(Zr,dn){return xt(dn)>Wo?Rr.invert(Zr,dn+(dn>0?rs:-rs)):un.invert(Zr,dn)};function Ks(){return(0,it.c)(Cs).scale(152.63)}function Ys(Zr,dn,_n,Sn){var zn=Ot(4*ft/(2*_n+(1+Zr-dn/2)*nt(2*_n)+(Zr+dn)/2*nt(4*_n)+dn/2*nt(6*_n))),Nn=Ot(Sn*nt(_n)*Ot((1+Zr*mt(2*_n)+dn*mt(4*_n))/(1+Zr+dn))),Hn=_n*mo(1);function vo(Do){return Ot(1+Zr*mt(2*Do)+dn*mt(4*Do))}function mo(Do){var $o=Do*_n;return(2*$o+(1+Zr-dn/2)*nt(2*$o)+(Zr+dn)/2*nt(4*$o)+dn/2*nt(6*$o))/_n}function oo(Do){return vo(Do)*nt(Do)}var So=function(Do,$o){var os=_n*br(mo,Hn*nt($o)/_n,$o/ft);isNaN(os)&&(os=_n*ot($o));var Ss=zn*vo(os);return[Ss*Nn*Do/ft*mt(os),Ss/Nn*nt(os)]};return So.invert=function(Do,$o){var os=br(oo,$o*Nn/zn);return[Do*ft/(mt(os)*zn*Nn*vo(os)),It(_n*mo(os/_n)/Hn)]},_n===0&&(zn=Ot(Sn/ft),So=function(Do,$o){return[Do*zn,nt($o)/zn]},So.invert=function(Do,$o){return[Do/zn,It($o*zn)]}),So}function Bl(){var Zr=1,dn=0,_n=45*wt,Sn=2,zn=(0,it.U)(Ys),Nn=zn(Zr,dn,_n,Sn);return Nn.a=function(Hn){return arguments.length?zn(Zr=+Hn,dn,_n,Sn):Zr},Nn.b=function(Hn){return arguments.length?zn(Zr,dn=+Hn,_n,Sn):dn},Nn.psiMax=function(Hn){return arguments.length?zn(Zr,dn,_n=+Hn*wt,Sn):_n*kt},Nn.ratio=function(Hn){return arguments.length?zn(Zr,dn,_n,Sn=+Hn):Sn},Nn.scale(180.739)}function zl(Zr,dn,_n,Sn,zn,Nn,Hn,vo,mo,oo,So){if(So.nanEncountered)return NaN;var Do,$o,os,Ss,Ns,$s,Al,pu,du,gu;if(Do=_n-dn,$o=Zr(dn+Do*.25),os=Zr(_n-Do*.25),isNaN($o)){So.nanEncountered=!0;return}if(isNaN(os)){So.nanEncountered=!0;return}return Ss=Do*(Sn+4*$o+zn)/12,Ns=Do*(zn+4*os+Nn)/12,$s=Ss+Ns,gu=($s-Hn)/15,oo>mo?(So.maxDepthCount++,$s+gu):Math.abs(gu)>1;do mo[$s]>os?Ns=$s:Ss=$s,$s=Ss+Ns>>1;while($s>Ss);var Al=mo[$s+1]-mo[$s];return Al&&(Al=(os-mo[$s+1])/Al),($s+1+Al)/Hn}var Do=2*So(1)/ft*Nn/_n,$o=function(os,Ss){var Ns=So(xt(nt(Ss))),$s=Sn(Ns)*os;return Ns/=Do,[$s,Ss>=0?Ns:-Ns]};return $o.invert=function(os,Ss){var Ns;return Ss*=Do,xt(Ss)<1&&(Ns=ot(Ss)*It(zn(xt(Ss))*Nn)),[os/Sn(xt(Ss)),Ns]},$o}function ju(){var Zr=0,dn=2.5,_n=1.183136,Sn=(0,it.U)(Zl),zn=Sn(Zr,dn,_n);return zn.alpha=function(Nn){return arguments.length?Sn(Zr=+Nn,dn,_n):Zr},zn.k=function(Nn){return arguments.length?Sn(Zr,dn=+Nn,_n):dn},zn.gamma=function(Nn){return arguments.length?Sn(Zr,dn,_n=+Nn):_n},zn.scale(152.63)}function Vu(Zr,dn){return xt(Zr[0]-dn[0])=0;--mo)_n=Zr[1][mo],Sn=_n[0][0],zn=_n[0][1],Nn=_n[1][1],Hn=_n[2][0],vo=_n[2][1],dn.push(Sv([[Hn-dt,vo-dt],[Hn-dt,Nn+dt],[Sn+dt,Nn+dt],[Sn+dt,zn-dt]],30));return{type:"Polygon",coordinates:[(0,Cl.Uf)(dn)]}}function Kp(Zr,dn,_n){var Sn,zn;function Nn(mo,oo){for(var So=oo<0?-1:1,Do=dn[+(oo<0)],$o=0,os=Do.length-1;$oDo[$o][2][0];++$o);var Ss=Zr(mo-Do[$o][1][0],oo);return Ss[0]+=Zr(Do[$o][1][0],So*oo>So*Do[$o][0][1]?Do[$o][0][1]:oo)[0],Ss}_n?Nn.invert=_n(Nn):Zr.invert&&(Nn.invert=function(mo,oo){for(var So=zn[+(oo<0)],Do=dn[+(oo<0)],$o=0,os=So.length;$oSs&&(Ns=os,os=Ss,Ss=Ns),[[Do,os],[$o,Ss]]})}),Hn):dn.map(function(oo){return oo.map(function(So){return[[So[0][0]*kt,So[0][1]*kt],[So[1][0]*kt,So[1][1]*kt],[So[2][0]*kt,So[2][1]*kt]]})})},dn!=null&&Hn.lobes(dn),Hn}var c1=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Fm(){return Kp(Nr,c1).scale(160.857)}var Bm=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Bu(){return Kp(Cs,Bm).scale(152.63)}var Qv=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function zm(){return Kp(Rr,Qv).scale(169.529)}var Op=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function av(){return Kp(Rr,Op).scale(169.529).rotate([20,0])}var C0=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function f1(){return Kp(_s,C0,Tr).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var Ap=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function d1(){return Kp(un,Ap).scale(152.63).rotate([-20,0])}function _p(Zr,dn){return[3/Tt*Zr*Ot(ft*ft/3-dn*dn),dn]}_p.invert=function(Zr,dn){return[Tt/3*Zr/Ot(ft*ft/3-dn*dn),dn]};function kp(){return(0,it.c)(_p).scale(158.837)}function h1(Zr){function dn(_n,Sn){if(xt(xt(Sn)-at)2)return null;_n/=2,Sn/=2;var Nn=_n*_n,Hn=Sn*Sn,vo=2*Sn/(1+Nn+Hn);return vo=tt((1+vo)/(1-vo),1/Zr),[Et(2*_n,1-Nn-Hn)/Zr,It((vo-1)/(vo+1))]},dn}function $p(){var Zr=.5,dn=(0,it.U)(h1),_n=dn(Zr);return _n.spacing=function(Sn){return arguments.length?dn(Zr=+Sn):Zr},_n.scale(124.75)}var op=ft/_t;function lv(Zr,dn){return[Zr*(1+Ot(mt(dn)))/2,dn/(mt(dn/2)*mt(Zr/6))]}lv.invert=function(Zr,dn){var _n=xt(Zr),Sn=xt(dn),zn=dt,Nn=at;Sndt||xt($s)>dt)&&--zn>0);return zn&&[_n,Sn]};function iy(){return(0,it.c)(uv).scale(139.98)}function qv(Zr,dn){return[nt(Zr)/mt(dn),vt(dn)*mt(Zr)]}qv.invert=function(Zr,dn){var _n=Zr*Zr,Sn=dn*dn,zn=Sn+1,Nn=_n+zn,Hn=Zr?St*Ot((Nn-Ot(Nn*Nn-4*_n))/_n):1/Ot(zn);return[It(Zr*Hn),ot(dn)*At(Hn)]};function Hp(){return(0,it.c)(qv).scale(144.049).clipAngle(89.999)}function Um(Zr){var dn=mt(Zr),_n=vt(yt+Zr/2);function Sn(zn,Nn){var Hn=Nn-Zr,vo=xt(Hn)=0;)So=Zr[oo],Do=So[0]+vo*(os=Do)-mo*$o,$o=So[1]+vo*$o+mo*os;return Do=vo*(os=Do)-mo*$o,$o=vo*$o+mo*os,[Do,$o]}return _n.invert=function(Sn,zn){var Nn=20,Hn=Sn,vo=zn;do{for(var mo=dn,oo=Zr[mo],So=oo[0],Do=oo[1],$o=0,os=0,Ss;--mo>=0;)oo=Zr[mo],$o=So+Hn*(Ss=$o)-vo*os,os=Do+Hn*os+vo*Ss,So=oo[0]+Hn*(Ss=So)-vo*Do,Do=oo[1]+Hn*Do+vo*Ss;$o=So+Hn*(Ss=$o)-vo*os,os=Do+Hn*os+vo*Ss,So=Hn*(Ss=So)-vo*Do-Sn,Do=Hn*Do+vo*Ss-zn;var Ns=$o*$o+os*os,$s,Al;Hn-=$s=(So*$o+Do*os)/Ns,vo-=Al=(Do*$o-So*os)/Ns}while(xt($s)+xt(Al)>dt*dt&&--Nn>0);if(Nn){var pu=Ot(Hn*Hn+vo*vo),du=2*et(pu*.5),gu=nt(du);return[Et(Hn*gu,pu*mt(du)),pu?It(vo*gu/pu):0]}},_n}var wy=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],v1=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],sy=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],I0=[[.9245,0],[0,0],[.01943,0]],mm=[[.721316,0],[0,0],[-.00881625,-.00617325]];function $m(){return k0(wy,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function Cy(){return k0(v1,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Ry(){return k0(sy,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function H0(){return k0(I0,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function Pv(){return k0(mm,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function k0(Zr,dn){var _n=(0,it.c)(oy(Zr)).rotate(dn).clipAngle(90),Sn=(0,Ur.c)(dn),zn=_n.center;return delete _n.rotate,_n.center=function(Nn){return arguments.length?zn(Sn(Nn)):Sn.invert(zn())},_n}var g1=Ot(6),V1=Ot(7);function W1(Zr,dn){var _n=It(7*nt(dn)/(3*g1));return[g1*Zr*(2*mt(2*_n/3)-1)/V1,9*nt(_n/3)/V1]}W1.invert=function(Zr,dn){var _n=3*It(dn*V1/9);return[Zr*V1/(g1*(2*mt(2*_n/3)-1)),It(nt(_n)*3*g1/7)]};function ly(){return(0,it.c)(W1).scale(164.859)}function h0(Zr,dn){for(var _n=(1+St)*nt(dn),Sn=dn,zn=0,Nn;zn<25&&(Sn-=Nn=(nt(Sn/2)+nt(Sn)-_n)/(.5*mt(Sn/2)+mt(Sn)),!(xt(Nn)bt&&--Sn>0);return Nn=_n*_n,Hn=Nn*Nn,vo=Nn*Hn,[Zr/(.84719-.13063*Nn+vo*vo*(-.04515+.05494*Nn-.02326*Hn+.00331*vo)),_n]};function Su(){return(0,it.c)(fu).scale(175.295)}function Yu(Zr,dn){return[Zr*(1+mt(dn))/2,2*(dn-vt(dn/2))]}Yu.invert=function(Zr,dn){for(var _n=dn/2,Sn=0,zn=1/0;Sn<10&&xt(zn)>dt;++Sn){var Nn=mt(dn/2);dn-=zn=(dn-vt(dn/2)-_n)/(1-.5/(Nn*Nn))}return[2*Zr/(1+mt(dn)),dn]};function mp(){return(0,it.c)(Yu).scale(152.63)}var np=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function e0(){return Kp(tr(1/0),np).rotate([20,0]).scale(152.63)}function t0(Zr,dn){var _n=nt(dn),Sn=mt(dn),zn=ot(Zr);if(Zr===0||xt(dn)===at)return[0,dn];if(dn===0)return[Zr,0];if(xt(Zr)===at)return[Zr*Sn,at*_n];var Nn=ft/(2*Zr)-2*Zr/ft,Hn=2*dn/ft,vo=(1-Hn*Hn)/(_n-Hn),mo=Nn*Nn,oo=vo*vo,So=1+mo/oo,Do=1+oo/mo,$o=(Nn*_n/vo-Nn/2)/So,os=(oo*_n/mo+vo/2)/Do,Ss=$o*$o+Sn*Sn/So,Ns=os*os-(oo*_n*_n/mo+vo*_n-1)/Do;return[at*($o+Ot(Ss)*zn),at*(os+Ot(Ns<0?0:Ns)*ot(-dn*Nn)*zn)]}t0.invert=function(Zr,dn){Zr/=at,dn/=at;var _n=Zr*Zr,Sn=dn*dn,zn=_n+Sn,Nn=ft*ft;return[Zr?(zn-1+Ot((1-zn)*(1-zn)+4*_n))/(2*Zr)*at:0,br(function(Hn){return zn*(ft*nt(Hn)-2*Hn)*ft+4*Hn*Hn*(dn-nt(Hn))+2*ft*Hn-Nn*dn},0)]};function vv(){return(0,it.c)(t0).scale(127.267)}var p0=1.0148,$v=.23185,up=-.14499,y1=.02406,ym=p0,ep=5*$v,x1=7*up,G0=9*y1,Zp=1.790857183;function xm(Zr,dn){var _n=dn*dn;return[Zr,dn*(p0+_n*_n*($v+_n*(up+y1*_n)))]}xm.invert=function(Zr,dn){dn>Zp?dn=Zp:dn<-Zp&&(dn=-Zp);var _n=dn,Sn;do{var zn=_n*_n;_n-=Sn=(_n*(p0+zn*zn*($v+zn*(up+y1*zn)))-dn)/(ym+zn*zn*(ep+zn*(x1+G0*zn)))}while(xt(Sn)>dt);return[Zr,_n]};function b1(){return(0,it.c)(xm).scale(139.319)}function bm(Zr,dn){if(xt(dn)dt&&--zn>0);return Hn=vt(Sn),[(xt(dn)=0;)if(Sn=dn[vo],_n[0]===Sn[0]&&_n[1]===Sn[1]){if(Nn)return[Nn,_n];Nn=_n}}}function Hm(Zr){for(var dn=Zr.length,_n=[],Sn=Zr[dn-1],zn=0;zn0?[-Sn[0],0]:[180-Sn[0],180])};var dn=Ep.map(function(_n){return{face:_n,project:Zr(_n)}});return[-1,0,0,1,0,1,4,5].forEach(function(_n,Sn){var zn=dn[_n];zn&&(zn.children||(zn.children=[])).push(dn[Sn])}),qu(dn[0],function(_n,Sn){return dn[_n<-ft/2?Sn<0?6:4:_n<0?Sn<0?2:0:_nSn^os>Sn&&_n<($o-oo)*(Sn-So)/(os-So)+oo&&(zn=!zn)}return zn}function Vm(Zr,dn){var _n=dn.stream,Sn;if(!_n)throw new Error("invalid projection");switch(Zr&&Zr.type){case"Feature":Sn=X0;break;case"FeatureCollection":Sn=A1;break;default:Sn=y0;break}return Sn(Zr,_n)}function A1(Zr,dn){return{type:"FeatureCollection",features:Zr.features.map(function(_n){return X0(_n,dn)})}}function X0(Zr,dn){return{type:"Feature",id:Zr.id,properties:Zr.properties,geometry:y0(Zr.geometry,dn)}}function _1(Zr,dn){return{type:"GeometryCollection",geometries:Zr.geometries.map(function(_n){return y0(_n,dn)})}}function y0(Zr,dn){if(!Zr)return null;if(Zr.type==="GeometryCollection")return _1(Zr,dn);var _n;switch(Zr.type){case"Point":_n=S1;break;case"MultiPoint":_n=S1;break;case"LineString":_n=cy;break;case"MultiLineString":_n=cy;break;case"Polygon":_n=J1;break;case"MultiPolygon":_n=J1;break;case"Sphere":_n=J1;break;default:return null}return(0,Wl.c)(Zr,dn(_n)),_n.result()}var Sp=[],Cv=[],S1={point:function(Zr,dn){Sp.push([Zr,dn])},result:function(){var Zr=Sp.length?Sp.length<2?{type:"Point",coordinates:Sp[0]}:{type:"MultiPoint",coordinates:Sp}:null;return Sp=[],Zr}},cy={lineStart:K1,point:function(Zr,dn){Sp.push([Zr,dn])},lineEnd:function(){Sp.length&&(Cv.push(Sp),Sp=[])},result:function(){var Zr=Cv.length?Cv.length<2?{type:"LineString",coordinates:Cv[0]}:{type:"MultiLineString",coordinates:Cv}:null;return Cv=[],Zr}},J1={polygonStart:K1,lineStart:K1,point:function(Zr,dn){Sp.push([Zr,dn])},lineEnd:function(){var Zr=Sp.length;if(Zr){do Sp.push(Sp[0].slice());while(++Zr<4);Cv.push(Sp),Sp=[]}},polygonEnd:K1,result:function(){if(!Cv.length)return null;var Zr=[],dn=[];return Cv.forEach(function(_n){Gm(_n)?Zr.push([_n]):dn.push(_n)}),dn.forEach(function(_n){var Sn=_n[0];Zr.some(function(zn){if(Z1(zn[0],Sn))return zn.push(_n),!0})||Zr.push([_n])}),Cv=[],Zr.length?Zr.length>1?{type:"MultiPolygon",coordinates:Zr}:{type:"Polygon",coordinates:Zr[0]}:null}};function x0(Zr){var dn=Zr(at,0)[0]-Zr(-at,0)[0];function _n(Sn,zn){var Nn=xt(Sn)0?Sn-ft:Sn+ft,zn),vo=(Hn[0]-Hn[1])*St,mo=(Hn[0]+Hn[1])*St;if(Nn)return[vo,mo];var oo=dn*St,So=vo>0^mo>0?-1:1;return[So*vo-ot(mo)*oo,So*mo-ot(vo)*oo]}return Zr.invert&&(_n.invert=function(Sn,zn){var Nn=(Sn+zn)*St,Hn=(zn-Sn)*St,vo=xt(Nn)<.5*dn&&xt(Hn)<.5*dn;if(!vo){var mo=dn*St,oo=Nn>0^Hn>0?-1:1,So=-oo*Sn+(Hn>0?1:-1)*mo,Do=-oo*zn+(Nn>0?1:-1)*mo;Nn=(-So-Do)*St,Hn=(So-Do)*St}var $o=Zr.invert(Nn,Hn);return vo||($o[0]+=Nn>0?ft:-ft),$o}),(0,it.c)(_n).rotate([-90,-90,45]).clipAngle(179.999)}function Am(){return x0(zs).scale(176.423)}function w1(){return x0(xo).scale(111.48)}function Wm(Zr,dn){if(!(0<=(dn=+dn)&&dn<=20))throw new Error("invalid digits");function _n(oo){var So=oo.length,Do=2,$o=new Array(So);for($o[0]=+oo[0].toFixed(dn),$o[1]=+oo[1].toFixed(dn);Do2||os[0]!=So[0]||os[1]!=So[1])&&(Do.push(os),So=os)}return Do.length===1&&oo.length>1&&Do.push(_n(oo[oo.length-1])),Do}function Nn(oo){return oo.map(zn)}function Hn(oo){if(oo==null)return oo;var So;switch(oo.type){case"GeometryCollection":So={type:"GeometryCollection",geometries:oo.geometries.map(Hn)};break;case"Point":So={type:"Point",coordinates:_n(oo.coordinates)};break;case"MultiPoint":So={type:oo.type,coordinates:Sn(oo.coordinates)};break;case"LineString":So={type:oo.type,coordinates:zn(oo.coordinates)};break;case"MultiLineString":case"Polygon":So={type:oo.type,coordinates:Nn(oo.coordinates)};break;case"MultiPolygon":So={type:"MultiPolygon",coordinates:oo.coordinates.map(Nn)};break;default:return oo}return oo.bbox!=null&&(So.bbox=oo.bbox),So}function vo(oo){var So={type:"Feature",properties:oo.properties,geometry:Hn(oo.geometry)};return oo.id!=null&&(So.id=oo.id),oo.bbox!=null&&(So.bbox=oo.bbox),So}if(Zr!=null)switch(Zr.type){case"Feature":return vo(Zr);case"FeatureCollection":{var mo={type:"FeatureCollection",features:Zr.features.map(vo)};return Zr.bbox!=null&&(mo.bbox=Zr.bbox),mo}default:return Hn(Zr)}return Zr}function Ao(Zr){var dn=nt(Zr);function _n(Sn,zn){var Nn=dn?vt(Sn*dn/2)/dn:Sn/2;if(!zn)return[2*Nn,-Zr];var Hn=2*et(Nn*nt(zn)),vo=1/vt(zn);return[nt(Hn)*vo,zn+(1-mt(Hn))*vo-Zr]}return _n.invert=function(Sn,zn){if(xt(zn+=Zr)dt&&--vo>0);var $o=Sn*(oo=vt(Hn)),os=vt(xt(zn)0?at:-at)*(mo+zn*(So-Hn)/2+zn*zn*(So-2*mo+Hn)/2)]}Mp.invert=function(Zr,dn){var _n=dn/at,Sn=_n*90,zn=rt(18,xt(Sn/5)),Nn=_(0,ht(zn));do{var Hn=Gp[Nn][1],vo=Gp[Nn+1][1],mo=Gp[rt(19,Nn+2)][1],oo=mo-Hn,So=mo-2*vo+Hn,Do=2*(xt(_n)-vo)/oo,$o=So/oo,os=Do*(1-$o*Do*(1-2*$o*Do));if(os>=0||Nn===1){Sn=(dn>=0?5:-5)*(os+zn);var Ss=50,Ns;do zn=rt(18,xt(Sn)/5),Nn=ht(zn),os=zn-Nn,Hn=Gp[Nn][1],vo=Gp[Nn+1][1],mo=Gp[rt(19,Nn+2)][1],Sn-=(Ns=(dn>=0?at:-at)*(vo+os*(mo-Hn)/2+os*os*(mo-2*vo+Hn)/2)-dn)*kt;while(xt(Ns)>bt&&--Ss>0);break}}while(--Nn>=0);var $s=Gp[Nn][0],Al=Gp[Nn+1][0],pu=Gp[rt(19,Nn+2)][0];return[Zr/(Al+os*(pu-$s)/2+os*os*(pu-2*Al+$s)/2),Sn*wt]};function Lu(){return(0,it.c)(Mp).scale(152.63)}function C1(Zr){function dn(_n,Sn){var zn=mt(Sn),Nn=(Zr-1)/(Zr-zn*mt(_n));return[Nn*zn*nt(_n),Nn*nt(Sn)]}return dn.invert=function(_n,Sn){var zn=_n*_n+Sn*Sn,Nn=Ot(zn),Hn=(Zr-Ot(1-zn*(Zr+1)/(Zr-1)))/((Zr-1)/Nn+Nn/(Zr-1));return[Et(_n*Hn,Nn*Ot(1-Hn*Hn)),Nn?It(Sn*Hn/Nn):0]},dn}function _m(Zr,dn){var _n=C1(Zr);if(!dn)return _n;var Sn=mt(dn),zn=nt(dn);function Nn(Hn,vo){var mo=_n(Hn,vo),oo=mo[1],So=oo*zn/(Zr-1)+Sn;return[mo[0]*Sn/So,oo/So]}return Nn.invert=function(Hn,vo){var mo=(Zr-1)/(Zr-1-vo*zn);return _n.invert(mo*Hn,mo*vo*Sn)},Nn}function Z0(){var Zr=2,dn=0,_n=(0,it.U)(_m),Sn=_n(Zr,dn);return Sn.distance=function(zn){return arguments.length?_n(Zr=+zn,dn):Zr},Sn.tilt=function(zn){return arguments.length?_n(Zr,dn=zn*wt):dn*kt},Sn.scale(432.147).clipAngle(At(1/Zr)*kt-1e-6)}var Rv=1e-4,fy=1e4,b0=-180,R1=b0+Rv,P0=180,E0=P0-Rv,Mv=-90,M1=Mv+Rv,tp=90,I1=tp-Rv;function Sm(Zr){return Zr.length>0}function dy(Zr){return Math.floor(Zr*fy)/fy}function mv(Zr){return Zr===Mv||Zr===tp?[0,Zr]:[b0,dy(Zr)]}function Q1(Zr){var dn=Zr[0],_n=Zr[1],Sn=!1;return dn<=R1?(dn=b0,Sn=!0):dn>=E0&&(dn=P0,Sn=!0),_n<=M1?(_n=Mv,Sn=!0):_n>=I1&&(_n=tp,Sn=!0),Sn?[dn,_n]:Zr}function wm(Zr){return Zr.map(Q1)}function jm(Zr,dn,_n){for(var Sn=0,zn=Zr.length;Sn=E0||So<=M1||So>=I1){Nn[Hn]=Q1(mo);for(var Do=Hn+1;DoR1&&osM1&&Ss=vo)break;_n.push({index:-1,polygon:dn,ring:Nn=Nn.slice(Do-1)}),Nn[0]=mv(Nn[0][1]),Hn=-1,vo=Nn.length}}}}function q1(Zr){var dn,_n=Zr.length,Sn={},zn={},Nn,Hn,vo,mo,oo;for(dn=0;dn<_n;++dn){if(Nn=Zr[dn],Hn=Nn.ring[0],mo=Nn.ring[Nn.ring.length-1],Hn[0]===mo[0]&&Hn[1]===mo[1]){Nn.polygon.push(Nn.ring),Zr[dn]=null;continue}Nn.index=dn,Sn[Hn]=zn[mo]=Nn}for(dn=0;dn<_n;++dn)if(Nn=Zr[dn],Nn){if(Hn=Nn.ring[0],mo=Nn.ring[Nn.ring.length-1],vo=zn[Hn],oo=Sn[mo],delete Sn[Hn],delete zn[mo],Hn[0]===mo[0]&&Hn[1]===mo[1]){Nn.polygon.push(Nn.ring);continue}vo?(delete zn[Hn],delete Sn[vo.ring[0]],vo.ring.pop(),Zr[vo.index]=null,Nn={index:-1,polygon:vo.polygon,ring:vo.ring.concat(Nn.ring)},vo===oo?Nn.polygon.push(Nn.ring):(Nn.index=_n++,Zr.push(Sn[Nn.ring[0]]=zn[Nn.ring[Nn.ring.length-1]]=Nn))):oo?(delete Sn[mo],delete zn[oo.ring[oo.ring.length-1]],Nn.ring.pop(),Nn={index:_n++,polygon:oo.polygon,ring:Nn.ring.concat(oo.ring)},Zr[oo.index]=null,Zr.push(Sn[Nn.ring[0]]=zn[Nn.ring[Nn.ring.length-1]]=Nn)):(Nn.ring.push(Nn.ring[0]),Nn.polygon.push(Nn.ring))}}function em(Zr){var dn={type:"Feature",geometry:yv(Zr.geometry)};return Zr.id!=null&&(dn.id=Zr.id),Zr.bbox!=null&&(dn.bbox=Zr.bbox),Zr.properties!=null&&(dn.properties=Zr.properties),dn}function yv(Zr){if(Zr==null)return Zr;var dn,_n,Sn,zn;switch(Zr.type){case"GeometryCollection":dn={type:"GeometryCollection",geometries:Zr.geometries.map(yv)};break;case"Point":dn={type:"Point",coordinates:Q1(Zr.coordinates)};break;case"MultiPoint":case"LineString":dn={type:Zr.type,coordinates:wm(Zr.coordinates)};break;case"MultiLineString":dn={type:"MultiLineString",coordinates:Zr.coordinates.map(wm)};break;case"Polygon":{var Nn=[];jm(Zr.coordinates,Nn,_n=[]),q1(_n),dn={type:"Polygon",coordinates:Nn};break}case"MultiPolygon":{_n=[],Sn=-1,zn=Zr.coordinates.length;for(var Hn=new Array(zn);++Sn0?ft-vo:vo)*kt],oo=(0,it.c)(Zr(Hn)).rotate(mo),So=(0,Ur.c)(mo),Do=oo.center;return delete oo.rotate,oo.center=function($o){return arguments.length?Do(So($o)):So.invert(Do())},oo.clipAngle(90)}function Ym(Zr){var dn=mt(Zr);function _n(Sn,zn){var Nn=(0,Hv.Y)(Sn,zn);return Nn[0]*=dn,Nn}return _n.invert=function(Sn,zn){return Hv.Y.invert(Sn/dn,zn)},_n}function J0(){return Cm([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function Cm(Zr,dn){return r0(Ym,Zr,dn)}function rm(Zr){if(!(Zr*=2))return sr.O;var dn=-Zr/2,_n=-dn,Sn=Zr*Zr,zn=vt(_n),Nn=.5/nt(_n);function Hn(vo,mo){var oo=At(mt(mo)*mt(vo-dn)),So=At(mt(mo)*mt(vo-_n)),Do=mo<0?-1:1;return oo*=oo,So*=So,[(oo-So)/(2*Zr),Do*Ot(4*Sn*So-(Sn-oo+So)*(Sn-oo+So))/(2*Zr)]}return Hn.invert=function(vo,mo){var oo=mo*mo,So=mt(Ot(oo+($o=vo+dn)*$o)),Do=mt(Ot(oo+($o=vo+_n)*$o)),$o,os;return[Et(os=So-Do,$o=(So+Do)*zn),(mo<0?-1:1)*At(Ot($o*$o+os*os)*Nn)]},Hn}function hy(){return Xm([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function Xm(Zr,dn){return r0(rm,Zr,dn)}function iv(Zr,dn){if(xt(dn)dt&&--vo>0);return[ot(Zr)*(Ot(zn*zn+4)+zn)*ft/4,at*Hn]};function am(){return(0,it.c)(cv).scale(127.16)}function Ov(Zr,dn,_n,Sn,zn){function Nn(Hn,vo){var mo=_n*nt(Sn*vo),oo=Ot(1-mo*mo),So=Ot(2/(1+oo*mt(Hn*=zn)));return[Zr*oo*So*nt(Hn),dn*mo*So]}return Nn.invert=function(Hn,vo){var mo=Hn/Zr,oo=vo/dn,So=Ot(mo*mo+oo*oo),Do=2*It(So/2);return[Et(Hn*vt(Do),Zr*So)/zn,So&&It(vo*nt(Do)/(dn*_n*So))/Sn]},Nn}function Wv(Zr,dn,_n,Sn){var zn=ft/3;Zr=_(Zr,dt),dn=_(dn,dt),Zr=rt(Zr,at),dn=rt(dn,ft-dt),_n=_(_n,0),_n=rt(_n,100-dt),Sn=_(Sn,dt);var Nn=_n/100+1,Hn=Sn/100,vo=At(Nn*mt(zn))/zn,mo=nt(Zr)/nt(vo*at),oo=dn/ft,So=Ot(Hn*nt(Zr/2)/nt(dn/2)),Do=So/Ot(oo*mo*vo),$o=1/(So*Ot(oo*mo*vo));return Ov(Do,$o,mo,vo,oo)}function xv(){var Zr=65*wt,dn=60*wt,_n=20,Sn=200,zn=(0,it.U)(Wv),Nn=zn(Zr,dn,_n,Sn);return Nn.poleline=function(Hn){return arguments.length?zn(Zr=+Hn*wt,dn,_n,Sn):Zr*kt},Nn.parallels=function(Hn){return arguments.length?zn(Zr,dn=+Hn*wt,_n,Sn):dn*kt},Nn.inflation=function(Hn){return arguments.length?zn(Zr,dn,_n=+Hn,Sn):_n},Nn.ratio=function(Hn){return arguments.length?zn(Zr,dn,_n,Sn=+Hn):Sn},Nn.scale(163.775)}function bv(){return xv().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var im=4*ft+3*Ot(3),L1=2*Ot(2*ft*Ot(3)/im),om=Er(L1*Ot(3)/ft,L1,im/6);function D1(){return(0,it.c)(om).scale(176.84)}function Fv(Zr,dn){return[Zr*Ot(1-3*dn*dn/(ft*ft)),dn]}Fv.invert=function(Zr,dn){return[Zr/Ot(1-3*dn*dn/(ft*ft)),dn]};function Rm(){return(0,it.c)(Fv).scale(152.63)}function Q0(Zr,dn){var _n=mt(dn),Sn=mt(Zr)*_n,zn=1-Sn,Nn=mt(Zr=Et(nt(Zr)*_n,-nt(dn))),Hn=nt(Zr);return _n=Ot(1-Sn*Sn),[Hn*_n-Nn*zn,-Nn*_n-Hn*zn]}Q0.invert=function(Zr,dn){var _n=(Zr*Zr+dn*dn)/-2,Sn=Ot(-_n*(2+_n)),zn=dn*_n+Zr*Sn,Nn=Zr*_n-dn*Sn,Hn=Ot(Nn*Nn+zn*zn);return[Et(Sn*zn,Hn*(1+_n)),Hn?-It(Sn*Nn/Hn):0]};function P1(){return(0,it.c)(Q0).rotate([0,-90,45]).scale(124.75).clipAngle(179.999)}function sm(Zr,dn){var _n=Vt(Zr,dn);return[(_n[0]+Zr/at)/2,(_n[1]+dn)/2]}sm.invert=function(Zr,dn){var _n=Zr,Sn=dn,zn=25;do{var Nn=mt(Sn),Hn=nt(Sn),vo=nt(2*Sn),mo=Hn*Hn,oo=Nn*Nn,So=nt(_n),Do=mt(_n/2),$o=nt(_n/2),os=$o*$o,Ss=1-oo*Do*Do,Ns=Ss?At(Nn*Do)*Ot($s=1/Ss):$s=0,$s,Al=.5*(2*Ns*Nn*$o+_n/at)-Zr,pu=.5*(Ns*Hn+Sn)-dn,du=.5*$s*(oo*os+Ns*Nn*Do*mo)+.5/at,gu=$s*(So*vo/4-Ns*Hn*$o),Eu=.125*$s*(vo*$o-Ns*Hn*oo*So),Nu=.5*$s*(mo*Do+Ns*os*Nn)+.5,_c=gu*Eu-Nu*du,Ip=(pu*gu-Al*Nu)/_c,dr=(Al*Eu-pu*du)/_c;_n-=Ip,Sn-=dr}while((xt(Ip)>dt||xt(dr)>dt)&&--zn>0);return[_n,Sn]};function Km(){return(0,it.c)(sm).scale(158.837)}},88728:function(Ct,Rt,o){o.d(Rt,{c:function(){return it}});function it(){return new xt}function xt(){this.reset()}xt.prototype={constructor:xt,reset:function(){this.s=this.t=0},add:function(mt){Et(et,mt,this.t),Et(this,et.s,this.s),this.s?this.t+=et.t:this.s=et.t},valueOf:function(){return this.s}};var et=new xt;function Et(mt,ut,ht){var j=mt.s=ut+ht,_=j-ut,rt=j-_;mt.t=ut-rt+(ht-_)}},95384:function(Ct,Rt,o){o.d(Rt,{cp:function(){return bt},mQ:function(){return mt},oB:function(){return st}});var it=o(88728),xt=o(64528),et=o(70932),Et=o(16016),mt=(0,it.c)(),ut=(0,it.c)(),ht,j,_,rt,tt,st={point:et.c,lineStart:et.c,lineEnd:et.c,polygonStart:function(){mt.reset(),st.lineStart=ot,st.lineEnd=nt},polygonEnd:function(){var ft=+mt;ut.add(ft<0?xt.kD+ft:ft),this.lineStart=this.lineEnd=this.point=et.c},sphere:function(){ut.add(xt.kD)}};function ot(){st.point=vt}function nt(){dt(ht,j)}function vt(ft,at){st.point=dt,ht=ft,j=at,ft*=xt.qw,at*=xt.qw,_=ft,rt=(0,xt.W8)(at=at/2+xt.wL),tt=(0,xt.g$)(at)}function dt(ft,at){ft*=xt.qw,at*=xt.qw,at=at/2+xt.wL;var yt=ft-_,St=yt>=0?1:-1,_t=St*yt,Mt=(0,xt.W8)(at),Tt=(0,xt.g$)(at),kt=tt*Tt,wt=rt*Mt+kt*(0,xt.W8)(_t),ct=kt*St*(0,xt.g$)(_t);mt.add((0,xt.WE)(ct,wt)),_=ft,rt=Mt,tt=Tt}function bt(ft){return ut.reset(),(0,Et.c)(ft,st),ut*2}},13696:function(Ct,Rt,o){o.d(Rt,{c:function(){return It}});var it=o(88728),xt=o(95384),et=o(84220),Et=o(64528),mt=o(16016),ut,ht,j,_,rt,tt,st,ot,nt=(0,it.c)(),vt,dt,bt={point:ft,lineStart:yt,lineEnd:St,polygonStart:function(){bt.point=_t,bt.lineStart=Mt,bt.lineEnd=Tt,nt.reset(),xt.oB.polygonStart()},polygonEnd:function(){xt.oB.polygonEnd(),bt.point=ft,bt.lineStart=yt,bt.lineEnd=St,xt.mQ<0?(ut=-(j=180),ht=-(_=90)):nt>Et.Gg?_=90:nt<-Et.Gg&&(ht=-90),dt[0]=ut,dt[1]=j},sphere:function(){ut=-(j=180),ht=-(_=90)}};function ft(At,Ot){vt.push(dt=[ut=At,j=At]),Ot_&&(_=Ot)}function at(At,Ot){var Pt=(0,et.ux)([At*Et.qw,Ot*Et.qw]);if(ot){var zt=(0,et.CW)(ot,Pt),Dt=[zt[1],-zt[0],0],Nt=(0,et.CW)(Dt,zt);(0,et.cJ)(Nt),Nt=(0,et.G)(Nt);var $t=At-rt,Ut=$t>0?1:-1,Ht=Nt[0]*Et.oh*Ut,Vt,Xt=(0,Et.a2)($t)>180;Xt^(Ut*rt_&&(_=Vt)):(Ht=(Ht+360)%360-180,Xt^(Ut*rt_&&(_=Ot))),Xt?Atkt(ut,j)&&(j=At):kt(At,j)>kt(ut,j)&&(ut=At):j>=ut?(Atj&&(j=At)):At>rt?kt(ut,At)>kt(ut,j)&&(j=At):kt(At,j)>kt(ut,j)&&(ut=At)}else vt.push(dt=[ut=At,j=At]);Ot_&&(_=Ot),ot=Pt,rt=At}function yt(){bt.point=at}function St(){dt[0]=ut,dt[1]=j,bt.point=ft,ot=null}function _t(At,Ot){if(ot){var Pt=At-rt;nt.add((0,Et.a2)(Pt)>180?Pt+(Pt>0?360:-360):Pt)}else tt=At,st=Ot;xt.oB.point(At,Ot),at(At,Ot)}function Mt(){xt.oB.lineStart()}function Tt(){_t(tt,st),xt.oB.lineEnd(),(0,Et.a2)(nt)>Et.Gg&&(ut=-(j=180)),dt[0]=ut,dt[1]=j,ot=null}function kt(At,Ot){return(Ot-=At)<0?Ot+360:Ot}function wt(At,Ot){return At[0]-Ot[0]}function ct(At,Ot){return At[0]<=At[1]?At[0]<=Ot&&Ot<=At[1]:Otkt(zt[0],zt[1])&&(zt[1]=Dt[1]),kt(Dt[0],zt[1])>kt(zt[0],zt[1])&&(zt[0]=Dt[0])):Nt.push(zt=Dt);for($t=-1/0,Pt=Nt.length-1,Ot=0,zt=Nt[Pt];Ot<=Pt;zt=Dt,++Ot)Dt=Nt[Ot],(Ut=kt(zt[1],Dt[0]))>$t&&($t=Ut,ut=Dt[0],j=zt[1])}return vt=dt=null,ut===1/0||ht===1/0?[[NaN,NaN],[NaN,NaN]]:[[ut,ht],[j,_]]}},84220:function(Ct,Rt,o){o.d(Rt,{CW:function(){return mt},Ez:function(){return Et},G:function(){return xt},cJ:function(){return j},mg:function(){return ut},ux:function(){return et},wx:function(){return ht}});var it=o(64528);function xt(_){return[(0,it.WE)(_[1],_[0]),(0,it.qR)(_[2])]}function et(_){var rt=_[0],tt=_[1],st=(0,it.W8)(tt);return[st*(0,it.W8)(rt),st*(0,it.g$)(rt),(0,it.g$)(tt)]}function Et(_,rt){return _[0]*rt[0]+_[1]*rt[1]+_[2]*rt[2]}function mt(_,rt){return[_[1]*rt[2]-_[2]*rt[1],_[2]*rt[0]-_[0]*rt[2],_[0]*rt[1]-_[1]*rt[0]]}function ut(_,rt){_[0]+=rt[0],_[1]+=rt[1],_[2]+=rt[2]}function ht(_,rt){return[_[0]*rt,_[1]*rt,_[2]*rt]}function j(_){var rt=(0,it._I)(_[0]*_[0]+_[1]*_[1]+_[2]*_[2]);_[0]/=rt,_[1]/=rt,_[2]/=rt}},24052:function(Ct,Rt,o){o.d(Rt,{c:function(){return Pt}});var it=o(64528),xt=o(70932),et=o(16016),Et,mt,ut,ht,j,_,rt,tt,st,ot,nt,vt,dt,bt,ft,at,yt={sphere:xt.c,point:St,lineStart:Mt,lineEnd:wt,polygonStart:function(){yt.lineStart=ct,yt.lineEnd=It},polygonEnd:function(){yt.lineStart=Mt,yt.lineEnd=wt}};function St(zt,Dt){zt*=it.qw,Dt*=it.qw;var Nt=(0,it.W8)(Dt);_t(Nt*(0,it.W8)(zt),Nt*(0,it.g$)(zt),(0,it.g$)(Dt))}function _t(zt,Dt,Nt){++Et,ut+=(zt-ut)/Et,ht+=(Dt-ht)/Et,j+=(Nt-j)/Et}function Mt(){yt.point=Tt}function Tt(zt,Dt){zt*=it.qw,Dt*=it.qw;var Nt=(0,it.W8)(Dt);bt=Nt*(0,it.W8)(zt),ft=Nt*(0,it.g$)(zt),at=(0,it.g$)(Dt),yt.point=kt,_t(bt,ft,at)}function kt(zt,Dt){zt*=it.qw,Dt*=it.qw;var Nt=(0,it.W8)(Dt),$t=Nt*(0,it.W8)(zt),Ut=Nt*(0,it.g$)(zt),Ht=(0,it.g$)(Dt),Vt=(0,it.WE)((0,it._I)((Vt=ft*Ht-at*Ut)*Vt+(Vt=at*$t-bt*Ht)*Vt+(Vt=bt*Ut-ft*$t)*Vt),bt*$t+ft*Ut+at*Ht);mt+=Vt,_+=Vt*(bt+(bt=$t)),rt+=Vt*(ft+(ft=Ut)),tt+=Vt*(at+(at=Ht)),_t(bt,ft,at)}function wt(){yt.point=St}function ct(){yt.point=At}function It(){Ot(vt,dt),yt.point=St}function At(zt,Dt){vt=zt,dt=Dt,zt*=it.qw,Dt*=it.qw,yt.point=Ot;var Nt=(0,it.W8)(Dt);bt=Nt*(0,it.W8)(zt),ft=Nt*(0,it.g$)(zt),at=(0,it.g$)(Dt),_t(bt,ft,at)}function Ot(zt,Dt){zt*=it.qw,Dt*=it.qw;var Nt=(0,it.W8)(Dt),$t=Nt*(0,it.W8)(zt),Ut=Nt*(0,it.g$)(zt),Ht=(0,it.g$)(Dt),Vt=ft*Ht-at*Ut,Xt=at*$t-bt*Ht,qt=bt*Ut-ft*$t,er=(0,it._I)(Vt*Vt+Xt*Xt+qt*qt),lr=(0,it.qR)(er),Jt=er&&-lr/er;st+=Jt*Vt,ot+=Jt*Xt,nt+=Jt*qt,mt+=lr,_+=lr*(bt+(bt=$t)),rt+=lr*(ft+(ft=Ut)),tt+=lr*(at+(at=Ht)),_t(bt,ft,at)}function Pt(zt){Et=mt=ut=ht=j=_=rt=tt=st=ot=nt=0,(0,et.c)(zt,yt);var Dt=st,Nt=ot,$t=nt,Ut=Dt*Dt+Nt*Nt+$t*$t;return Ut0?stot)&&(st+=tt*et.kD));for(var bt,ft=st;tt>0?ft>ot:ft0?xt.pi:-xt.pi,nt=(0,xt.a2)(tt-ht);(0,xt.a2)(nt-xt.pi)0?xt.or:-xt.or),ut.point(_,j),ut.lineEnd(),ut.lineStart(),ut.point(ot,j),ut.point(tt,j),rt=0):_!==ot&&nt>=xt.pi&&((0,xt.a2)(ht-_)xt.Gg?(0,xt.MQ)(((0,xt.g$)(ht)*(tt=(0,xt.W8)(_))*(0,xt.g$)(j)-(0,xt.g$)(_)*(rt=(0,xt.W8)(ht))*(0,xt.g$)(ut))/(rt*tt*st)):(ht+_)/2}function mt(ut,ht,j,_){var rt;if(ut==null)rt=j*xt.or,_.point(-xt.pi,rt),_.point(0,rt),_.point(xt.pi,rt),_.point(xt.pi,0),_.point(xt.pi,-rt),_.point(0,-rt),_.point(-xt.pi,-rt),_.point(-xt.pi,0),_.point(-xt.pi,rt);else if((0,xt.a2)(ut[0]-ht[0])>xt.Gg){var tt=ut[0]1&&et.push(et.pop().concat(et.shift()))},result:function(){var mt=et;return et=[],Et=null,mt}}}},2728:function(Ct,Rt,o){o.d(Rt,{c:function(){return ut}});var it=o(84220),xt=o(61780),et=o(64528),Et=o(41860),mt=o(14229);function ut(ht){var j=(0,et.W8)(ht),_=6*et.qw,rt=j>0,tt=(0,et.a2)(j)>et.Gg;function st(bt,ft,at,yt){(0,xt.Q)(yt,ht,_,at,bt,ft)}function ot(bt,ft){return(0,et.W8)(bt)*(0,et.W8)(ft)>j}function nt(bt){var ft,at,yt,St,_t;return{lineStart:function(){St=yt=!1,_t=1},point:function(Mt,Tt){var kt=[Mt,Tt],wt,ct=ot(Mt,Tt),It=rt?ct?0:dt(Mt,Tt):ct?dt(Mt+(Mt<0?et.pi:-et.pi),Tt):0;if(!ft&&(St=yt=ct)&&bt.lineStart(),ct!==yt&&(wt=vt(ft,kt),(!wt||(0,Et.c)(ft,wt)||(0,Et.c)(kt,wt))&&(kt[2]=1)),ct!==yt)_t=0,ct?(bt.lineStart(),wt=vt(kt,ft),bt.point(wt[0],wt[1])):(wt=vt(ft,kt),bt.point(wt[0],wt[1],2),bt.lineEnd()),ft=wt;else if(tt&&ft&&rt^ct){var At;!(It&at)&&(At=vt(kt,ft,!0))&&(_t=0,rt?(bt.lineStart(),bt.point(At[0][0],At[0][1]),bt.point(At[1][0],At[1][1]),bt.lineEnd()):(bt.point(At[1][0],At[1][1]),bt.lineEnd(),bt.lineStart(),bt.point(At[0][0],At[0][1],3)))}ct&&(!ft||!(0,Et.c)(ft,kt))&&bt.point(kt[0],kt[1]),ft=kt,yt=ct,at=It},lineEnd:function(){yt&&bt.lineEnd(),ft=null},clean:function(){return _t|(St&&yt)<<1}}}function vt(bt,ft,at){var yt=(0,it.ux)(bt),St=(0,it.ux)(ft),_t=[1,0,0],Mt=(0,it.CW)(yt,St),Tt=(0,it.Ez)(Mt,Mt),kt=Mt[0],wt=Tt-kt*kt;if(!wt)return!at&&bt;var ct=j*Tt/wt,It=-j*kt/wt,At=(0,it.CW)(_t,Mt),Ot=(0,it.wx)(_t,ct),Pt=(0,it.wx)(Mt,It);(0,it.mg)(Ot,Pt);var zt=At,Dt=(0,it.Ez)(Ot,zt),Nt=(0,it.Ez)(zt,zt),$t=Dt*Dt-Nt*((0,it.Ez)(Ot,Ot)-1);if(!($t<0)){var Ut=(0,et._I)($t),Ht=(0,it.wx)(zt,(-Dt-Ut)/Nt);if((0,it.mg)(Ht,Ot),Ht=(0,it.G)(Ht),!at)return Ht;var Vt=bt[0],Xt=ft[0],qt=bt[1],er=ft[1],lr;Xt0^Ht[1]<((0,et.a2)(Ht[0]-Vt)et.pi^(Vt<=Ht[0]&&Ht[0]<=Xt)){var jt=(0,it.wx)(zt,(-Dt+Ut)/Nt);return(0,it.mg)(jt,Ot),[Ht,(0,it.G)(jt)]}}}function dt(bt,ft){var at=rt?ht:et.pi-ht,yt=0;return bt<-at?yt|=1:bt>at&&(yt|=2),ft<-at?yt|=4:ft>at&&(yt|=8),yt}return(0,mt.c)(ot,nt,st,rt?[0,-ht]:[-et.pi,ht-et.pi])}},14229:function(Ct,Rt,o){o.d(Rt,{c:function(){return ut}});var it=o(97208),xt=o(32232),et=o(64528),Et=o(58196),mt=o(84706);function ut(_,rt,tt,st){return function(ot){var nt=rt(ot),vt=(0,it.c)(),dt=rt(vt),bt=!1,ft,at,yt,St={point:_t,lineStart:Tt,lineEnd:kt,polygonStart:function(){St.point=wt,St.lineStart=ct,St.lineEnd=It,at=[],ft=[]},polygonEnd:function(){St.point=_t,St.lineStart=Tt,St.lineEnd=kt,at=(0,mt.Uf)(at);var At=(0,Et.c)(ft,st);at.length?(bt||(ot.polygonStart(),bt=!0),(0,xt.c)(at,j,At,tt,ot)):At&&(bt||(ot.polygonStart(),bt=!0),ot.lineStart(),tt(null,null,1,ot),ot.lineEnd()),bt&&(ot.polygonEnd(),bt=!1),at=ft=null},sphere:function(){ot.polygonStart(),ot.lineStart(),tt(null,null,1,ot),ot.lineEnd(),ot.polygonEnd()}};function _t(At,Ot){_(At,Ot)&&ot.point(At,Ot)}function Mt(At,Ot){nt.point(At,Ot)}function Tt(){St.point=Mt,nt.lineStart()}function kt(){St.point=_t,nt.lineEnd()}function wt(At,Ot){yt.push([At,Ot]),dt.point(At,Ot)}function ct(){dt.lineStart(),yt=[]}function It(){wt(yt[0][0],yt[0][1]),dt.lineEnd();var At=dt.clean(),Ot=vt.result(),Pt,zt=Ot.length,Dt,Nt,$t;if(yt.pop(),ft.push(yt),yt=null,!!zt){if(At&1){if(Nt=Ot[0],(Dt=Nt.length-1)>0){for(bt||(ot.polygonStart(),bt=!0),ot.lineStart(),Pt=0;Pt1&&At&2&&Ot.push(Ot.pop().concat(Ot.shift())),at.push(Ot.filter(ht))}}return St}}function ht(_){return _.length>1}function j(_,rt){return((_=_.x)[0]<0?_[1]-et.or-et.Gg:et.or-_[1])-((rt=rt.x)[0]<0?rt[1]-et.or-et.Gg:et.or-rt[1])}},21676:function(Ct,Rt,o){o.d(Rt,{c:function(){return j}});var it=o(64528),xt=o(97208);function et(_,rt,tt,st,ot,nt){var vt=_[0],dt=_[1],bt=rt[0],ft=rt[1],at=0,yt=1,St=bt-vt,_t=ft-dt,Mt;if(Mt=tt-vt,!(!St&&Mt>0)){if(Mt/=St,St<0){if(Mt0){if(Mt>yt)return;Mt>at&&(at=Mt)}if(Mt=ot-vt,!(!St&&Mt<0)){if(Mt/=St,St<0){if(Mt>yt)return;Mt>at&&(at=Mt)}else if(St>0){if(Mt0)){if(Mt/=_t,_t<0){if(Mt0){if(Mt>yt)return;Mt>at&&(at=Mt)}if(Mt=nt-dt,!(!_t&&Mt<0)){if(Mt/=_t,_t<0){if(Mt>yt)return;Mt>at&&(at=Mt)}else if(_t>0){if(Mt0&&(_[0]=vt+at*St,_[1]=dt+at*_t),yt<1&&(rt[0]=vt+yt*St,rt[1]=dt+yt*_t),!0}}}}}var Et=o(32232),mt=o(84706),ut=1e9,ht=-ut;function j(_,rt,tt,st){function ot(ft,at){return _<=ft&&ft<=tt&&rt<=at&&at<=st}function nt(ft,at,yt,St){var _t=0,Mt=0;if(ft==null||(_t=vt(ft,yt))!==(Mt=vt(at,yt))||bt(ft,at)<0^yt>0)do St.point(_t===0||_t===3?_:tt,_t>1?st:rt);while((_t=(_t+yt+4)%4)!==Mt);else St.point(at[0],at[1])}function vt(ft,at){return(0,it.a2)(ft[0]-_)0?0:3:(0,it.a2)(ft[0]-tt)0?2:1:(0,it.a2)(ft[1]-rt)0?1:0:at>0?3:2}function dt(ft,at){return bt(ft.x,at.x)}function bt(ft,at){var yt=vt(ft,1),St=vt(at,1);return yt!==St?yt-St:yt===0?at[1]-ft[1]:yt===1?ft[0]-at[0]:yt===2?ft[1]-at[1]:at[0]-ft[0]}return function(ft){var at=ft,yt=(0,xt.c)(),St,_t,Mt,Tt,kt,wt,ct,It,At,Ot,Pt,zt={point:Dt,lineStart:Ht,lineEnd:Vt,polygonStart:$t,polygonEnd:Ut};function Dt(qt,er){ot(qt,er)&&at.point(qt,er)}function Nt(){for(var qt=0,er=0,lr=_t.length;erst&&(Zt-ar)*(st-sr)>(Kt-sr)*(_-ar)&&++qt:Kt<=st&&(Zt-ar)*(st-sr)<(Kt-sr)*(_-ar)&&--qt;return qt}function $t(){at=yt,St=[],_t=[],Pt=!0}function Ut(){var qt=Nt(),er=Pt&&qt,lr=(St=(0,mt.Uf)(St)).length;(er||lr)&&(ft.polygonStart(),er&&(ft.lineStart(),nt(null,null,1,ft),ft.lineEnd()),lr&&(0,Et.c)(St,dt,qt,nt,ft),ft.polygonEnd()),at=ft,St=_t=Mt=null}function Ht(){zt.point=Xt,_t&&_t.push(Mt=[]),Ot=!0,At=!1,ct=It=NaN}function Vt(){St&&(Xt(Tt,kt),wt&&At&&yt.rejoin(),St.push(yt.result())),zt.point=Dt,At&&at.lineEnd()}function Xt(qt,er){var lr=ot(qt,er);if(_t&&Mt.push([qt,er]),Ot)Tt=qt,kt=er,wt=lr,Ot=!1,lr&&(at.lineStart(),at.point(qt,er));else if(lr&&At)at.point(qt,er);else{var Jt=[ct=Math.max(ht,Math.min(ut,ct)),It=Math.max(ht,Math.min(ut,It))],Yt=[qt=Math.max(ht,Math.min(ut,qt)),er=Math.max(ht,Math.min(ut,er))];et(Jt,Yt,_,rt,tt,st)?(At||(at.lineStart(),at.point(Jt[0],Jt[1])),at.point(Yt[0],Yt[1]),lr||at.lineEnd(),Pt=!1):lr&&(at.lineStart(),at.point(qt,er),Pt=!1)}ct=qt,It=er,At=lr}return zt}}},32232:function(Ct,Rt,o){o.d(Rt,{c:function(){return Et}});var it=o(41860),xt=o(64528);function et(ut,ht,j,_){this.x=ut,this.z=ht,this.o=j,this.e=_,this.v=!1,this.n=this.p=null}function Et(ut,ht,j,_,rt){var tt=[],st=[],ot,nt;if(ut.forEach(function(yt){if(!((St=yt.length-1)<=0)){var St,_t=yt[0],Mt=yt[St],Tt;if((0,it.c)(_t,Mt)){if(!_t[2]&&!Mt[2]){for(rt.lineStart(),ot=0;ot=0;--ot)rt.point((bt=dt[ot])[0],bt[1]);else _(ft.x,ft.p.x,-1,rt);ft=ft.p}ft=ft.o,dt=ft.z,at=!at}while(!ft.v);rt.lineEnd()}}}function mt(ut){if(ht=ut.length){for(var ht,j=0,_=ut[0],rt;++j0&&(ys=wt(bo[gs],bo[gs-1]),ys>0&&Yo<=ys&&Oo<=ys&&(Yo+Oo-ys)*(1-Math.pow((Yo-Oo)/ys,2))tt.Gg}).map(Yl)).concat((0,Ut.ik)((0,tt.Km)(gs/Fl)*Fl,ys,Fl).filter(function(ws){return(0,tt.a2)(ws%nu)>tt.Gg}).map(Zs))}return ms.lines=function(){return Ws().map(function(ws){return{type:"LineString",coordinates:ws}})},ms.outline=function(){return{type:"Polygon",coordinates:[xo(Oo).concat(Vo(zs).slice(1),xo(Yo).reverse().slice(1),Vo(Us).reverse().slice(1))]}},ms.extent=function(ws){return arguments.length?ms.extentMajor(ws).extentMinor(ws):ms.extentMinor()},ms.extentMajor=function(ws){return arguments.length?(Oo=+ws[0][0],Yo=+ws[1][0],Us=+ws[0][1],zs=+ws[1][1],Oo>Yo&&(ws=Oo,Oo=Yo,Yo=ws),Us>zs&&(ws=Us,Us=zs,zs=ws),ms.precision(Go)):[[Oo,Us],[Yo,zs]]},ms.extentMinor=function(ws){return arguments.length?(No=+ws[0][0],bo=+ws[1][0],gs=+ws[0][1],ys=+ws[1][1],No>bo&&(ws=No,No=bo,bo=ws),gs>ys&&(ws=gs,gs=ys,ys=ws),ms.precision(Go)):[[No,gs],[bo,ys]]},ms.step=function(ws){return arguments.length?ms.stepMajor(ws).stepMinor(ws):ms.stepMinor()},ms.stepMajor=function(ws){return arguments.length?(Jl=+ws[0],nu=+ws[1],ms):[Jl,nu]},ms.stepMinor=function(ws){return arguments.length?(Qs=+ws[0],Fl=+ws[1],ms):[Qs,Fl]},ms.precision=function(ws){return arguments.length?(Go=+ws,Yl=Ht(gs,ys,90),Zs=Vt(No,bo,Go),xo=Ht(Us,zs,90),Vo=Vt(Oo,Yo,Go),ms):Go},ms.extentMajor([[-180,-90+tt.Gg],[180,90-tt.Gg]]).extentMinor([[-180,-80-tt.Gg],[180,80+tt.Gg]])}function qt(){return Xt()()}var er=o(27284),lr=o(7376),Jt=(0,rt.c)(),Yt=(0,rt.c)(),rr,jt,ar,sr,Zt={point:st.c,lineStart:st.c,lineEnd:st.c,polygonStart:function(){Zt.lineStart=Kt,Zt.lineEnd=cr},polygonEnd:function(){Zt.lineStart=Zt.lineEnd=Zt.point=st.c,Jt.add((0,tt.a2)(Yt)),Yt.reset()},result:function(){var bo=Jt/2;return Jt.reset(),bo}};function Kt(){Zt.point=or}function or(bo,No){Zt.point=tr,rr=ar=bo,jt=sr=No}function tr(bo,No){Yt.add(sr*bo-ar*No),ar=bo,sr=No}function cr(){tr(rr,jt)}var hr=Zt,br=o(73784),Tr=0,Ir=0,Ar=0,_r=0,Er=0,Rr=0,zr=0,Br=0,kr=0,Nr,Qr,sn,un,qr={point:Xr,lineStart:ln,lineEnd:En,polygonStart:function(){qr.lineStart=Jr,qr.lineEnd=Or},polygonEnd:function(){qr.point=Xr,qr.lineStart=ln,qr.lineEnd=En},result:function(){var bo=kr?[zr/kr,Br/kr]:Rr?[_r/Rr,Er/Rr]:Ar?[Tr/Ar,Ir/Ar]:[NaN,NaN];return Tr=Ir=Ar=_r=Er=Rr=zr=Br=kr=0,bo}};function Xr(bo,No){Tr+=bo,Ir+=No,++Ar}function ln(){qr.point=mn}function mn(bo,No){qr.point=pn,Xr(sn=bo,un=No)}function pn(bo,No){var Yo=bo-sn,Oo=No-un,ys=(0,tt._I)(Yo*Yo+Oo*Oo);_r+=ys*(sn+bo)/2,Er+=ys*(un+No)/2,Rr+=ys,Xr(sn=bo,un=No)}function En(){qr.point=Xr}function Jr(){qr.point=Ur}function Or(){jr(Nr,Qr)}function Ur(bo,No){qr.point=jr,Xr(Nr=sn=bo,Qr=un=No)}function jr(bo,No){var Yo=bo-sn,Oo=No-un,ys=(0,tt._I)(Yo*Yo+Oo*Oo);_r+=ys*(sn+bo)/2,Er+=ys*(un+No)/2,Rr+=ys,ys=un*bo-sn*No,zr+=ys*(sn+bo),Br+=ys*(un+No),kr+=ys*3,Xr(sn=bo,un=No)}var Gr=qr;function wr(bo){this._context=bo}wr.prototype={_radius:4.5,pointRadius:function(bo){return this._radius=bo,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(bo,No){switch(this._point){case 0:{this._context.moveTo(bo,No),this._point=1;break}case 1:{this._context.lineTo(bo,No);break}default:{this._context.moveTo(bo+this._radius,No),this._context.arc(bo,No,this._radius,0,tt.kD);break}}},result:st.c};var vr=(0,rt.c)(),Dr,Sr,ur,xr,Pr,Vr={point:st.c,lineStart:function(){Vr.point=en},lineEnd:function(){Dr&&rn(Sr,ur),Vr.point=st.c},polygonStart:function(){Dr=!0},polygonEnd:function(){Dr=null},result:function(){var bo=+vr;return vr.reset(),bo}};function en(bo,No){Vr.point=rn,Sr=xr=bo,ur=Pr=No}function rn(bo,No){xr-=bo,Pr-=No,vr.add((0,tt._I)(xr*xr+Pr*Pr)),xr=bo,Pr=No}var Cn=Vr;function xn(){this._string=[]}xn.prototype={_radius:4.5,_circle:fn(4.5),pointRadius:function(bo){return(bo=+bo)!==this._radius&&(this._radius=bo,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(bo,No){switch(this._point){case 0:{this._string.push("M",bo,",",No),this._point=1;break}case 1:{this._string.push("L",bo,",",No);break}default:{this._circle==null&&(this._circle=fn(this._radius)),this._string.push("M",bo,",",No,this._circle);break}}},result:function(){if(this._string.length){var bo=this._string.join("");return this._string=[],bo}else return null}};function fn(bo){return"m0,"+bo+"a"+bo+","+bo+" 0 1,1 0,"+-2*bo+"a"+bo+","+bo+" 0 1,1 0,"+2*bo+"z"}function bn(bo,No){var Yo=4.5,Oo,ys;function gs(zs){return zs&&(typeof Yo=="function"&&ys.pointRadius(+Yo.apply(this,arguments)),(0,ot.c)(zs,Oo(ys))),ys.result()}return gs.area=function(zs){return(0,ot.c)(zs,Oo(hr)),hr.result()},gs.measure=function(zs){return(0,ot.c)(zs,Oo(Cn)),Cn.result()},gs.bounds=function(zs){return(0,ot.c)(zs,Oo(br.c)),br.c.result()},gs.centroid=function(zs){return(0,ot.c)(zs,Oo(Gr)),Gr.result()},gs.projection=function(zs){return arguments.length?(Oo=zs==null?(bo=null,lr.c):(bo=zs).stream,gs):bo},gs.context=function(zs){return arguments.length?(ys=zs==null?(No=null,new xn):new wr(No=zs),typeof Yo!="function"&&ys.pointRadius(Yo),gs):No},gs.pointRadius=function(zs){return arguments.length?(Yo=typeof zs=="function"?zs:(ys.pointRadius(+zs),+zs),gs):Yo},gs.projection(bo).context(No)}var Un=o(87952);function _i(bo){var No=0,Yo=tt.pi/3,Oo=(0,Un.U)(bo),ys=Oo(No,Yo);return ys.parallels=function(gs){return arguments.length?Oo(No=gs[0]*tt.qw,Yo=gs[1]*tt.qw):[No*tt.oh,Yo*tt.oh]},ys}function yn(bo){var No=(0,tt.W8)(bo);function Yo(Oo,ys){return[Oo*No,(0,tt.g$)(ys)/No]}return Yo.invert=function(Oo,ys){return[Oo/No,(0,tt.qR)(ys*No)]},Yo}function Kn(bo,No){var Yo=(0,tt.g$)(bo),Oo=(Yo+(0,tt.g$)(No))/2;if((0,tt.a2)(Oo)=.12&&Go<.234&&Vo>=-.425&&Vo<-.214?ys:Go>=.166&&Go<.234&&Vo>=-.214&&Vo<-.115?zs:Yo).invert(Yl)},Jl.stream=function(Yl){return bo&&No===Yl?bo:bo=An([Yo.stream(No=Yl),ys.stream(Yl),zs.stream(Yl)])},Jl.precision=function(Yl){return arguments.length?(Yo.precision(Yl),ys.precision(Yl),zs.precision(Yl),nu()):Yo.precision()},Jl.scale=function(Yl){return arguments.length?(Yo.scale(Yl),ys.scale(Yl*.35),zs.scale(Yl),Jl.translate(Yo.translate())):Yo.scale()},Jl.translate=function(Yl){if(!arguments.length)return Yo.translate();var Zs=Yo.scale(),xo=+Yl[0],Vo=+Yl[1];return Oo=Yo.translate(Yl).clipExtent([[xo-.455*Zs,Vo-.238*Zs],[xo+.455*Zs,Vo+.238*Zs]]).stream(Fl),gs=ys.translate([xo-.307*Zs,Vo+.201*Zs]).clipExtent([[xo-.425*Zs+tt.Gg,Vo+.12*Zs+tt.Gg],[xo-.214*Zs-tt.Gg,Vo+.234*Zs-tt.Gg]]).stream(Fl),Us=zs.translate([xo-.205*Zs,Vo+.212*Zs]).clipExtent([[xo-.214*Zs+tt.Gg,Vo+.166*Zs+tt.Gg],[xo-.115*Zs-tt.Gg,Vo+.234*Zs-tt.Gg]]).stream(Fl),nu()},Jl.fitExtent=function(Yl,Zs){return(0,ba.QX)(Jl,Yl,Zs)},Jl.fitSize=function(Yl,Zs){return(0,ba.UV)(Jl,Yl,Zs)},Jl.fitWidth=function(Yl,Zs){return(0,ba.Qx)(Jl,Yl,Zs)},Jl.fitHeight=function(Yl,Zs){return(0,ba.OW)(Jl,Yl,Zs)};function nu(){return bo=No=null,Jl}return Jl.scale(1070)}var wn=o(54724),In=o(69020),Ln=o(92992);function Xn(bo,No){return[bo,(0,tt.Yz)((0,tt.a6)((tt.or+No)/2))]}Xn.invert=function(bo,No){return[bo,2*(0,tt.MQ)((0,tt.oN)(No))-tt.or]};function Wn(){return Vn(Xn).scale(961/tt.kD)}function Vn(bo){var No=(0,Un.c)(bo),Yo=No.center,Oo=No.scale,ys=No.translate,gs=No.clipExtent,zs=null,Us,Qs,Fl;No.scale=function(nu){return arguments.length?(Oo(nu),Jl()):Oo()},No.translate=function(nu){return arguments.length?(ys(nu),Jl()):ys()},No.center=function(nu){return arguments.length?(Yo(nu),Jl()):Yo()},No.clipExtent=function(nu){return arguments.length?(nu==null?zs=Us=Qs=Fl=null:(zs=+nu[0][0],Us=+nu[0][1],Qs=+nu[1][0],Fl=+nu[1][1]),Jl()):zs==null?null:[[zs,Us],[Qs,Fl]]};function Jl(){var nu=tt.pi*Oo(),Yl=No((0,Ln.c)(No.rotate()).invert([0,0]));return gs(zs==null?[[Yl[0]-nu,Yl[1]-nu],[Yl[0]+nu,Yl[1]+nu]]:bo===Xn?[[Math.max(Yl[0]-nu,zs),Us],[Math.min(Yl[0]+nu,Qs),Fl]]:[[zs,Math.max(Yl[1]-nu,Us)],[Qs,Math.min(Yl[1]+nu,Fl)]])}return Jl()}function ga(bo){return(0,tt.a6)((tt.or+bo)/2)}function fo(bo,No){var Yo=(0,tt.W8)(bo),Oo=bo===No?(0,tt.g$)(bo):(0,tt.Yz)(Yo/(0,tt.W8)(No))/(0,tt.Yz)(ga(No)/ga(bo)),ys=Yo*(0,tt.g3)(ga(bo),Oo)/Oo;if(!Oo)return Xn;function gs(zs,Us){ys>0?Us<-tt.or+tt.Gg&&(Us=-tt.or+tt.Gg):Us>tt.or-tt.Gg&&(Us=tt.or-tt.Gg);var Qs=ys/(0,tt.g3)(ga(Us),Oo);return[Qs*(0,tt.g$)(Oo*zs),ys-Qs*(0,tt.W8)(Oo*zs)]}return gs.invert=function(zs,Us){var Qs=ys-Us,Fl=(0,tt.kq)(Oo)*(0,tt._I)(zs*zs+Qs*Qs),Jl=(0,tt.WE)(zs,(0,tt.a2)(Qs))*(0,tt.kq)(Qs);return Qs*Oo<0&&(Jl-=tt.pi*(0,tt.kq)(zs)*(0,tt.kq)(Qs)),[Jl/Oo,2*(0,tt.MQ)((0,tt.g3)(ys/Fl,1/Oo))-tt.or]},gs}function qn(){return _i(fo).scale(109.5).parallels([30,30])}var po=o(69604);function Yr(bo,No){var Yo=(0,tt.W8)(bo),Oo=bo===No?(0,tt.g$)(bo):(Yo-(0,tt.W8)(No))/(No-bo),ys=Yo/Oo+bo;if((0,tt.a2)(Oo)2?Oo[2]+90:90]):(Oo=Yo(),[Oo[0],Oo[1],Oo[2]-90])},Yo([0,0,90]).scale(159.155)}},27284:function(Ct,Rt,o){o.d(Rt,{c:function(){return xt}});var it=o(64528);function xt(et,Et){var mt=et[0]*it.qw,ut=et[1]*it.qw,ht=Et[0]*it.qw,j=Et[1]*it.qw,_=(0,it.W8)(ut),rt=(0,it.g$)(ut),tt=(0,it.W8)(j),st=(0,it.g$)(j),ot=_*(0,it.W8)(mt),nt=_*(0,it.g$)(mt),vt=tt*(0,it.W8)(ht),dt=tt*(0,it.g$)(ht),bt=2*(0,it.qR)((0,it._I)((0,it.SD)(j-ut)+_*tt*(0,it.SD)(ht-mt))),ft=(0,it.g$)(bt),at=bt?function(yt){var St=(0,it.g$)(yt*=bt)/ft,_t=(0,it.g$)(bt-yt)/ft,Mt=_t*ot+St*vt,Tt=_t*nt+St*dt,kt=_t*rt+St*st;return[(0,it.WE)(Tt,Mt)*it.oh,(0,it.WE)(kt,(0,it._I)(Mt*Mt+Tt*Tt))*it.oh]}:function(){return[mt*it.oh,ut*it.oh]};return at.distance=bt,at}},64528:function(Ct,Rt,o){o.d(Rt,{Gg:function(){return it},Km:function(){return ot},MQ:function(){return rt},SD:function(){return Mt},W8:function(){return st},WE:function(){return tt},Yz:function(){return vt},_I:function(){return at},a2:function(){return _},a6:function(){return yt},a8:function(){return xt},g$:function(){return bt},g3:function(){return dt},kD:function(){return ut},kq:function(){return ft},mE:function(){return St},oN:function(){return nt},oh:function(){return ht},or:function(){return Et},pi:function(){return et},qR:function(){return _t},qw:function(){return j},wL:function(){return mt}});var it=1e-6,xt=1e-12,et=Math.PI,Et=et/2,mt=et/4,ut=et*2,ht=180/et,j=et/180,_=Math.abs,rt=Math.atan,tt=Math.atan2,st=Math.cos,ot=Math.ceil,nt=Math.exp,vt=Math.log,dt=Math.pow,bt=Math.sin,ft=Math.sign||function(Tt){return Tt>0?1:Tt<0?-1:0},at=Math.sqrt,yt=Math.tan;function St(Tt){return Tt>1?0:Tt<-1?et:Math.acos(Tt)}function _t(Tt){return Tt>1?Et:Tt<-1?-Et:Math.asin(Tt)}function Mt(Tt){return(Tt=bt(Tt/2))*Tt}},70932:function(Ct,Rt,o){o.d(Rt,{c:function(){return it}});function it(){}},73784:function(Ct,Rt,o){var it=o(70932),xt=1/0,et=xt,Et=-xt,mt=Et,ut={point:ht,lineStart:it.c,lineEnd:it.c,polygonStart:it.c,polygonEnd:it.c,result:function(){var j=[[xt,et],[Et,mt]];return Et=mt=-(et=xt=1/0),j}};function ht(j,_){jEt&&(Et=j),_mt&&(mt=_)}Rt.c=ut},41860:function(Ct,Rt,o){o.d(Rt,{c:function(){return xt}});var it=o(64528);function xt(et,Et){return(0,it.a2)(et[0]-Et[0])=0?1:-1,zt=Pt*Ot,Dt=zt>et.pi,Nt=_t*It;if(Et.add((0,et.WE)(Nt*Pt*(0,et.g$)(zt),Mt*At+Nt*(0,et.W8)(zt))),ot+=Dt?Ot+Pt*et.kD:Ot,Dt^yt>=_^wt>=_){var $t=(0,xt.CW)((0,xt.ux)(at),(0,xt.ux)(kt));(0,xt.cJ)($t);var Ut=(0,xt.CW)(st,$t);(0,xt.cJ)(Ut);var Ht=(Dt^Ot>=0?-1:1)*(0,et.qR)(Ut[2]);(rt>Ht||rt===Ht&&($t[0]||$t[1]))&&(nt+=Dt^Ot>=0?1:-1)}}return(ot<-et.Gg||ot4*Mt&&Ht--){var lr=It+Nt,Jt=At+$t,Yt=Ot+Ut,rr=(0,ut._I)(lr*lr+Jt*Jt+Yt*Yt),jt=(0,ut.qR)(Yt/=rr),ar=(0,ut.a2)((0,ut.a2)(Yt)-1)Mt||(0,ut.a2)((Xt*or+qt*tr)/er-.5)>.3||It*Nt+At*$t+Ot*Ut2?cr[2]%360*ut.qw:0,or()):[At*ut.oh,Ot*ut.oh,Pt*ut.oh]},Zt.angle=function(cr){return arguments.length?(Dt=cr%360*ut.qw,or()):Dt*ut.oh},Zt.reflectX=function(cr){return arguments.length?(Nt=cr?-1:1,or()):Nt<0},Zt.reflectY=function(cr){return arguments.length?($t=cr?-1:1,or()):$t<0},Zt.precision=function(cr){return arguments.length?(Yt=ot(rr,Jt=cr*cr),tr()):(0,ut._I)(Jt)},Zt.fitExtent=function(cr,hr){return(0,_.QX)(Zt,cr,hr)},Zt.fitSize=function(cr,hr){return(0,_.UV)(Zt,cr,hr)},Zt.fitWidth=function(cr,hr){return(0,_.Qx)(Zt,cr,hr)},Zt.fitHeight=function(cr,hr){return(0,_.OW)(Zt,cr,hr)};function or(){var cr=at(Tt,0,0,Nt,$t,Dt).apply(null,Mt(ct,It)),hr=(Dt?at:ft)(Tt,kt-cr[0],wt-cr[1],Nt,$t,Dt);return zt=(0,ht.O)(At,Ot,Pt),rr=(0,Et.c)(Mt,hr),jt=(0,Et.c)(zt,rr),Yt=ot(rr,Jt),tr()}function tr(){return ar=sr=null,Zt}return function(){return Mt=_t.apply(this,arguments),Zt.invert=Mt.invert&&Kt,or()}}},47984:function(Ct,Rt,o){o.d(Rt,{c:function(){return Et},g:function(){return et}});var it=o(87952),xt=o(64528);function et(mt,ut){var ht=ut*ut,j=ht*ht;return[mt*(.8707-.131979*ht+j*(-.013791+j*(.003971*ht-.001529*j))),ut*(1.007226+ht*(.015085+j*(-.044475+.028874*ht-.005916*j)))]}et.invert=function(mt,ut){var ht=ut,j=25,_;do{var rt=ht*ht,tt=rt*rt;ht-=_=(ht*(1.007226+rt*(.015085+tt*(-.044475+.028874*rt-.005916*tt)))-ut)/(1.007226+rt*(.045255+tt*(-.311325+.259866*rt-.06507600000000001*tt)))}while((0,xt.a2)(_)>xt.Gg&&--j>0);return[mt/(.8707+(rt=ht*ht)*(-.131979+rt*(-.013791+rt*rt*rt*(.003971-.001529*rt)))),ht]};function Et(){return(0,it.c)(et).scale(175.295)}},4888:function(Ct,Rt,o){o.d(Rt,{c:function(){return mt},t:function(){return Et}});var it=o(64528),xt=o(62280),et=o(87952);function Et(ut,ht){return[(0,it.W8)(ht)*(0,it.g$)(ut),(0,it.g$)(ht)]}Et.invert=(0,xt.g)(it.qR);function mt(){return(0,et.c)(Et).scale(249.5).clipAngle(90+it.Gg)}},92992:function(Ct,Rt,o){o.d(Rt,{O:function(){return Et},c:function(){return j}});var it=o(68120),xt=o(64528);function et(_,rt){return[(0,xt.a2)(_)>xt.pi?_+Math.round(-_/xt.kD)*xt.kD:_,rt]}et.invert=et;function Et(_,rt,tt){return(_%=xt.kD)?rt||tt?(0,it.c)(ut(_),ht(rt,tt)):ut(_):rt||tt?ht(rt,tt):et}function mt(_){return function(rt,tt){return rt+=_,[rt>xt.pi?rt-xt.kD:rt<-xt.pi?rt+xt.kD:rt,tt]}}function ut(_){var rt=mt(_);return rt.invert=mt(-_),rt}function ht(_,rt){var tt=(0,xt.W8)(_),st=(0,xt.g$)(_),ot=(0,xt.W8)(rt),nt=(0,xt.g$)(rt);function vt(dt,bt){var ft=(0,xt.W8)(bt),at=(0,xt.W8)(dt)*ft,yt=(0,xt.g$)(dt)*ft,St=(0,xt.g$)(bt),_t=St*tt+at*st;return[(0,xt.WE)(yt*ot-_t*nt,at*tt-St*st),(0,xt.qR)(_t*ot+yt*nt)]}return vt.invert=function(dt,bt){var ft=(0,xt.W8)(bt),at=(0,xt.W8)(dt)*ft,yt=(0,xt.g$)(dt)*ft,St=(0,xt.g$)(bt),_t=St*ot-yt*nt;return[(0,xt.WE)(yt*ot+St*nt,at*tt+_t*st),(0,xt.qR)(_t*tt-at*st)]},vt}function j(_){_=Et(_[0]*xt.qw,_[1]*xt.qw,_.length>2?_[2]*xt.qw:0);function rt(tt){return tt=_(tt[0]*xt.qw,tt[1]*xt.qw),tt[0]*=xt.oh,tt[1]*=xt.oh,tt}return rt.invert=function(tt){return tt=_.invert(tt[0]*xt.qw,tt[1]*xt.qw),tt[0]*=xt.oh,tt[1]*=xt.oh,tt},rt}},16016:function(Ct,Rt,o){o.d(Rt,{c:function(){return ut}});function it(ht,j){ht&&et.hasOwnProperty(ht.type)&&et[ht.type](ht,j)}var xt={Feature:function(ht,j){it(ht.geometry,j)},FeatureCollection:function(ht,j){for(var _=ht.features,rt=-1,tt=_.length;++rt=0;)vr+=Dr[Sr].value;wr.value=vr}function rt(){return this.eachAfter(_)}function tt(wr){var vr=this,Dr,Sr=[vr],ur,xr,Pr;do for(Dr=Sr.reverse(),Sr=[];vr=Dr.pop();)if(wr(vr),ur=vr.children,ur)for(xr=0,Pr=ur.length;xr=0;--ur)Dr.push(Sr[ur]);return this}function ot(wr){for(var vr=this,Dr=[vr],Sr=[],ur,xr,Pr;vr=Dr.pop();)if(Sr.push(vr),ur=vr.children,ur)for(xr=0,Pr=ur.length;xr=0;)Dr+=Sr[ur].value;vr.value=Dr})}function vt(wr){return this.eachBefore(function(vr){vr.children&&vr.children.sort(wr)})}function dt(wr){for(var vr=this,Dr=bt(vr,wr),Sr=[vr];vr!==Dr;)vr=vr.parent,Sr.push(vr);for(var ur=Sr.length;wr!==Dr;)Sr.splice(ur,0,wr),wr=wr.parent;return Sr}function bt(wr,vr){if(wr===vr)return wr;var Dr=wr.ancestors(),Sr=vr.ancestors(),ur=null;for(wr=Dr.pop(),vr=Sr.pop();wr===vr;)ur=wr,wr=Dr.pop(),vr=Sr.pop();return ur}function ft(){for(var wr=this,vr=[wr];wr=wr.parent;)vr.push(wr);return vr}function at(){var wr=[];return this.each(function(vr){wr.push(vr)}),wr}function yt(){var wr=[];return this.eachBefore(function(vr){vr.children||wr.push(vr)}),wr}function St(){var wr=this,vr=[];return wr.each(function(Dr){Dr!==wr&&vr.push({source:Dr.parent,target:Dr})}),vr}function _t(wr,vr){var Dr=new ct(wr),Sr=+wr.value&&(Dr.value=wr.value),ur,xr=[Dr],Pr,Vr,en,rn;for(vr==null&&(vr=Tt);ur=xr.pop();)if(Sr&&(ur.value=+ur.data.value),(Vr=vr(ur.data))&&(rn=Vr.length))for(ur.children=new Array(rn),en=rn-1;en>=0;--en)xr.push(Pr=ur.children[en]=new ct(Vr[en])),Pr.parent=ur,Pr.depth=ur.depth+1;return Dr.eachBefore(wt)}function Mt(){return _t(this).eachBefore(kt)}function Tt(wr){return wr.children}function kt(wr){wr.data=wr.data.data}function wt(wr){var vr=0;do wr.height=vr;while((wr=wr.parent)&&wr.height<++vr)}function ct(wr){this.data=wr,this.depth=this.height=0,this.parent=null}ct.prototype=_t.prototype={constructor:ct,count:rt,each:tt,eachAfter:ot,eachBefore:st,sum:nt,sort:vt,path:dt,ancestors:ft,descendants:at,leaves:yt,links:St,copy:Mt};var It=Array.prototype.slice;function At(wr){for(var vr=wr.length,Dr,Sr;vr;)Sr=Math.random()*vr--|0,Dr=wr[vr],wr[vr]=wr[Sr],wr[Sr]=Dr;return wr}function Ot(wr){for(var vr=0,Dr=(wr=At(It.call(wr))).length,Sr=[],ur,xr;vr0&&Dr*Dr>Sr*Sr+ur*ur}function Nt(wr,vr){for(var Dr=0;Dren?(ur=(rn+en-xr)/(2*rn),Vr=Math.sqrt(Math.max(0,en/rn-ur*ur)),Dr.x=wr.x-ur*Sr-Vr*Pr,Dr.y=wr.y-ur*Pr+Vr*Sr):(ur=(rn+xr-en)/(2*rn),Vr=Math.sqrt(Math.max(0,xr/rn-ur*ur)),Dr.x=vr.x+ur*Sr-Vr*Pr,Dr.y=vr.y+ur*Pr+Vr*Sr)):(Dr.x=vr.x+Dr.r,Dr.y=vr.y)}function qt(wr,vr){var Dr=wr.r+vr.r-1e-6,Sr=vr.x-wr.x,ur=vr.y-wr.y;return Dr>0&&Dr*Dr>Sr*Sr+ur*ur}function er(wr){var vr=wr._,Dr=wr.next._,Sr=vr.r+Dr.r,ur=(vr.x*Dr.r+Dr.x*vr.r)/Sr,xr=(vr.y*Dr.r+Dr.y*vr.r)/Sr;return ur*ur+xr*xr}function lr(wr){this._=wr,this.next=null,this.previous=null}function Jt(wr){if(!(ur=wr.length))return 0;var vr,Dr,Sr,ur,xr,Pr,Vr,en,rn,Cn,xn;if(vr=wr[0],vr.x=0,vr.y=0,!(ur>1))return vr.r;if(Dr=wr[1],vr.x=-Dr.r,Dr.x=vr.r,Dr.y=0,!(ur>2))return vr.r+Dr.r;Xt(Dr,vr,Sr=wr[2]),vr=new lr(vr),Dr=new lr(Dr),Sr=new lr(Sr),vr.next=Sr.previous=Dr,Dr.next=vr.previous=Sr,Sr.next=Dr.previous=vr;e:for(Vr=3;Vr0)throw new Error("cycle");return Vr}return Dr.id=function(Sr){return arguments.length?(wr=jt(Sr),Dr):wr},Dr.parentId=function(Sr){return arguments.length?(vr=jt(Sr),Dr):vr},Dr}function Br(wr,vr){return wr.parent===vr.parent?1:2}function kr(wr){var vr=wr.children;return vr?vr[0]:wr.t}function Nr(wr){var vr=wr.children;return vr?vr[vr.length-1]:wr.t}function Qr(wr,vr,Dr){var Sr=Dr/(vr.i-wr.i);vr.c-=Sr,vr.s+=Dr,wr.c+=Sr,vr.z+=Dr,vr.m+=Dr}function sn(wr){for(var vr=0,Dr=0,Sr=wr.children,ur=Sr.length,xr;--ur>=0;)xr=Sr[ur],xr.z+=vr,xr.m+=vr,vr+=xr.s+(Dr+=xr.c)}function un(wr,vr,Dr){return wr.a.parent===vr.parent?wr.a:Dr}function qr(wr,vr){this._=wr,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=vr}qr.prototype=Object.create(ct.prototype);function Xr(wr){for(var vr=new qr(wr,0),Dr,Sr=[vr],ur,xr,Pr,Vr;Dr=Sr.pop();)if(xr=Dr._.children)for(Dr.children=new Array(Vr=xr.length),Pr=Vr-1;Pr>=0;--Pr)Sr.push(ur=Dr.children[Pr]=new qr(xr[Pr],Pr)),ur.parent=Dr;return(vr.parent=new qr(null,0)).children=[vr],vr}function ln(){var wr=Br,vr=1,Dr=1,Sr=null;function ur(rn){var Cn=Xr(rn);if(Cn.eachAfter(xr),Cn.parent.m=-Cn.z,Cn.eachBefore(Pr),Sr)rn.eachBefore(en);else{var xn=rn,fn=rn,bn=rn;rn.eachBefore(function(Jn){Jn.xfn.x&&(fn=Jn),Jn.depth>bn.depth&&(bn=Jn)});var Un=xn===fn?1:wr(xn,fn)/2,_i=Un-xn.x,yn=vr/(fn.x+Un+_i),Kn=Dr/(bn.depth||1);rn.eachBefore(function(Jn){Jn.x=(Jn.x+_i)*yn,Jn.y=Jn.depth*Kn})}return rn}function xr(rn){var Cn=rn.children,xn=rn.parent.children,fn=rn.i?xn[rn.i-1]:null;if(Cn){sn(rn);var bn=(Cn[0].z+Cn[Cn.length-1].z)/2;fn?(rn.z=fn.z+wr(rn._,fn._),rn.m=rn.z-bn):rn.z=bn}else fn&&(rn.z=fn.z+wr(rn._,fn._));rn.parent.A=Vr(rn,fn,rn.parent.A||xn[0])}function Pr(rn){rn._.x=rn.z+rn.parent.m,rn.m+=rn.parent.m}function Vr(rn,Cn,xn){if(Cn){for(var fn=rn,bn=rn,Un=Cn,_i=fn.parent.children[0],yn=fn.m,Kn=bn.m,Jn=Un.m,so=_i.m,ba;Un=Nr(Un),fn=kr(fn),Un&&fn;)_i=kr(_i),bn=Nr(bn),bn.a=rn,ba=Un.z+Jn-fn.z-yn+wr(Un._,fn._),ba>0&&(Qr(un(Un,rn,xn),rn,ba),yn+=ba,Kn+=ba),Jn+=Un.m,yn+=fn.m,so+=_i.m,Kn+=bn.m;Un&&!Nr(bn)&&(bn.t=Un,bn.m+=Jn-Kn),fn&&!kr(_i)&&(_i.t=fn,_i.m+=yn-so,xn=rn)}return xn}function en(rn){rn.x*=vr,rn.y=rn.depth*Dr}return ur.separation=function(rn){return arguments.length?(wr=rn,ur):wr},ur.size=function(rn){return arguments.length?(Sr=!1,vr=+rn[0],Dr=+rn[1],ur):Sr?null:[vr,Dr]},ur.nodeSize=function(rn){return arguments.length?(Sr=!0,vr=+rn[0],Dr=+rn[1],ur):Sr?[vr,Dr]:null},ur}function mn(wr,vr,Dr,Sr,ur){for(var xr=wr.children,Pr,Vr=-1,en=xr.length,rn=wr.value&&(ur-Dr)/wr.value;++VrJn&&(Jn=rn),hn=yn*yn*An,so=Math.max(Jn/hn,hn/Kn),so>ba){yn-=rn;break}ba=so}Pr.push(en={value:yn,dice:bn1?Sr:1)},Dr}(pn);function Or(){var wr=Jr,vr=!1,Dr=1,Sr=1,ur=[0],xr=ar,Pr=ar,Vr=ar,en=ar,rn=ar;function Cn(fn){return fn.x0=fn.y0=0,fn.x1=Dr,fn.y1=Sr,fn.eachBefore(xn),ur=[0],vr&&fn.eachBefore(hr),fn}function xn(fn){var bn=ur[fn.depth],Un=fn.x0+bn,_i=fn.y0+bn,yn=fn.x1-bn,Kn=fn.y1-bn;yn=fn-1){var Jn=xr[xn];Jn.x0=Un,Jn.y0=_i,Jn.x1=yn,Jn.y1=Kn;return}for(var so=rn[xn],ba=bn/2+so,An=xn+1,hn=fn-1;An>>1;rn[wn]Kn-_i){var Xn=(Un*Ln+yn*In)/bn;Cn(xn,An,In,Un,_i,Xn,Kn),Cn(An,fn,Ln,Xn,_i,yn,Kn)}else{var Wn=(_i*Ln+Kn*In)/bn;Cn(xn,An,In,Un,_i,yn,Wn),Cn(An,fn,Ln,Un,Wn,yn,Kn)}}}function jr(wr,vr,Dr,Sr,ur){(wr.depth&1?mn:br)(wr,vr,Dr,Sr,ur)}var Gr=function wr(vr){function Dr(Sr,ur,xr,Pr,Vr){if((en=Sr._squarify)&&en.ratio===vr)for(var en,rn,Cn,xn,fn=-1,bn,Un=en.length,_i=Sr.value;++fn1?Sr:1)},Dr}(pn)},10132:function(Ct,Rt,o){o.d(Rt,{ak:function(){return dt}});var it=Math.PI,xt=2*it,et=1e-6,Et=xt-et;function mt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function ut(){return new mt}mt.prototype=ut.prototype={constructor:mt,moveTo:function(bt,ft){this._+="M"+(this._x0=this._x1=+bt)+","+(this._y0=this._y1=+ft)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(bt,ft){this._+="L"+(this._x1=+bt)+","+(this._y1=+ft)},quadraticCurveTo:function(bt,ft,at,yt){this._+="Q"+ +bt+","+ +ft+","+(this._x1=+at)+","+(this._y1=+yt)},bezierCurveTo:function(bt,ft,at,yt,St,_t){this._+="C"+ +bt+","+ +ft+","+ +at+","+ +yt+","+(this._x1=+St)+","+(this._y1=+_t)},arcTo:function(bt,ft,at,yt,St){bt=+bt,ft=+ft,at=+at,yt=+yt,St=+St;var _t=this._x1,Mt=this._y1,Tt=at-bt,kt=yt-ft,wt=_t-bt,ct=Mt-ft,It=wt*wt+ct*ct;if(St<0)throw new Error("negative radius: "+St);if(this._x1===null)this._+="M"+(this._x1=bt)+","+(this._y1=ft);else if(It>et)if(!(Math.abs(ct*Tt-kt*wt)>et)||!St)this._+="L"+(this._x1=bt)+","+(this._y1=ft);else{var At=at-_t,Ot=yt-Mt,Pt=Tt*Tt+kt*kt,zt=At*At+Ot*Ot,Dt=Math.sqrt(Pt),Nt=Math.sqrt(It),$t=St*Math.tan((it-Math.acos((Pt+It-zt)/(2*Dt*Nt)))/2),Ut=$t/Nt,Ht=$t/Dt;Math.abs(Ut-1)>et&&(this._+="L"+(bt+Ut*wt)+","+(ft+Ut*ct)),this._+="A"+St+","+St+",0,0,"+ +(ct*At>wt*Ot)+","+(this._x1=bt+Ht*Tt)+","+(this._y1=ft+Ht*kt)}},arc:function(bt,ft,at,yt,St,_t){bt=+bt,ft=+ft,at=+at,_t=!!_t;var Mt=at*Math.cos(yt),Tt=at*Math.sin(yt),kt=bt+Mt,wt=ft+Tt,ct=1^_t,It=_t?yt-St:St-yt;if(at<0)throw new Error("negative radius: "+at);this._x1===null?this._+="M"+kt+","+wt:(Math.abs(this._x1-kt)>et||Math.abs(this._y1-wt)>et)&&(this._+="L"+kt+","+wt),at&&(It<0&&(It=It%xt+xt),It>Et?this._+="A"+at+","+at+",0,1,"+ct+","+(bt-Mt)+","+(ft-Tt)+"A"+at+","+at+",0,1,"+ct+","+(this._x1=kt)+","+(this._y1=wt):It>et&&(this._+="A"+at+","+at+",0,"+ +(It>=it)+","+ct+","+(this._x1=bt+at*Math.cos(St))+","+(this._y1=ft+at*Math.sin(St))))},rect:function(bt,ft,at,yt){this._+="M"+(this._x0=this._x1=+bt)+","+(this._y0=this._y1=+ft)+"h"+ +at+"v"+ +yt+"h"+-at+"Z"},toString:function(){return this._}};var ht=ut,j=Array.prototype.slice;function _(bt){return function(){return bt}}function rt(bt){return bt[0]}function tt(bt){return bt[1]}function st(bt){return bt.source}function ot(bt){return bt.target}function nt(bt){var ft=st,at=ot,yt=rt,St=tt,_t=null;function Mt(){var Tt,kt=j.call(arguments),wt=ft.apply(this,kt),ct=at.apply(this,kt);if(_t||(_t=Tt=ht()),bt(_t,+yt.apply(this,(kt[0]=wt,kt)),+St.apply(this,kt),+yt.apply(this,(kt[0]=ct,kt)),+St.apply(this,kt)),Tt)return _t=null,Tt+""||null}return Mt.source=function(Tt){return arguments.length?(ft=Tt,Mt):ft},Mt.target=function(Tt){return arguments.length?(at=Tt,Mt):at},Mt.x=function(Tt){return arguments.length?(yt=typeof Tt=="function"?Tt:_(+Tt),Mt):yt},Mt.y=function(Tt){return arguments.length?(St=typeof Tt=="function"?Tt:_(+Tt),Mt):St},Mt.context=function(Tt){return arguments.length?(_t=Tt??null,Mt):_t},Mt}function vt(bt,ft,at,yt,St){bt.moveTo(ft,at),bt.bezierCurveTo(ft=(ft+yt)/2,at,ft,St,yt,St)}function dt(){return nt(vt)}},94336:function(Ct,Rt,o){o.d(Rt,{Yn:function(){return Ur},m_:function(){return rt},E9:function(){return jr}});var it=o(8208),xt=o(58931),et=o(46192),Et=o(68936),mt=o(32171),ut=o(53528);function ht(wr){if(0<=wr.y&&wr.y<100){var vr=new Date(-1,wr.m,wr.d,wr.H,wr.M,wr.S,wr.L);return vr.setFullYear(wr.y),vr}return new Date(wr.y,wr.m,wr.d,wr.H,wr.M,wr.S,wr.L)}function j(wr){if(0<=wr.y&&wr.y<100){var vr=new Date(Date.UTC(-1,wr.m,wr.d,wr.H,wr.M,wr.S,wr.L));return vr.setUTCFullYear(wr.y),vr}return new Date(Date.UTC(wr.y,wr.m,wr.d,wr.H,wr.M,wr.S,wr.L))}function _(wr,vr,Dr){return{y:wr,m:vr,d:Dr,H:0,M:0,S:0,L:0}}function rt(wr){var vr=wr.dateTime,Dr=wr.date,Sr=wr.time,ur=wr.periods,xr=wr.days,Pr=wr.shortDays,Vr=wr.months,en=wr.shortMonths,rn=bt(ur),Cn=ft(ur),xn=bt(xr),fn=ft(xr),bn=bt(Pr),Un=ft(Pr),_i=bt(Vr),yn=ft(Vr),Kn=bt(en),Jn=ft(en),so={a:Yr,A:Wr,b:$n,B:Bn,c:null,d:Xt,e:Xt,f:Yt,H:qt,I:er,j:lr,L:Jt,m:rr,M:jt,p:xa,q:ro,Q:En,s:Jr,S:ar,u:sr,U:Zt,V:Kt,w:or,W:tr,x:null,X:null,y:cr,Y:hr,Z:br,"%":pn},ba={a:io,A:eo,b:Gn,B:ho,c:null,d:Tr,e:Tr,f:Rr,H:Ir,I:Ar,j:_r,L:Er,m:zr,M:Br,p:go,q:_o,Q:En,s:Jr,S:kr,u:Nr,U:Qr,V:sn,w:un,W:qr,x:null,X:null,y:Xr,Y:ln,Z:mn,"%":pn},An={a:Xn,A:Wn,b:Vn,B:ga,c:fo,d:At,e:At,f:$t,H:Pt,I:Pt,j:Ot,L:Nt,m:It,M:zt,p:Ln,q:ct,Q:Ht,s:Vt,S:Dt,u:yt,U:St,V:_t,w:at,W:Mt,x:qn,X:po,y:kt,Y:Tt,Z:wt,"%":Ut};so.x=hn(Dr,so),so.X=hn(Sr,so),so.c=hn(vr,so),ba.x=hn(Dr,ba),ba.X=hn(Sr,ba),ba.c=hn(vr,ba);function hn(co,zo){return function(Io){var Lo=[],vs=-1,Zo=0,Ls=co.length,Ds,bo,No;for(Io instanceof Date||(Io=new Date(+Io));++vs53)return null;"w"in Lo||(Lo.w=1),"Z"in Lo?(Zo=j(_(Lo.y,0,1)),Ls=Zo.getUTCDay(),Zo=Ls>4||Ls===0?it.ot.ceil(Zo):(0,it.ot)(Zo),Zo=xt.c.offset(Zo,(Lo.V-1)*7),Lo.y=Zo.getUTCFullYear(),Lo.m=Zo.getUTCMonth(),Lo.d=Zo.getUTCDate()+(Lo.w+6)%7):(Zo=ht(_(Lo.y,0,1)),Ls=Zo.getDay(),Zo=Ls>4||Ls===0?et.qT.ceil(Zo):(0,et.qT)(Zo),Zo=Et.c.offset(Zo,(Lo.V-1)*7),Lo.y=Zo.getFullYear(),Lo.m=Zo.getMonth(),Lo.d=Zo.getDate()+(Lo.w+6)%7)}else("W"in Lo||"U"in Lo)&&("w"in Lo||(Lo.w="u"in Lo?Lo.u%7:"W"in Lo?1:0),Ls="Z"in Lo?j(_(Lo.y,0,1)).getUTCDay():ht(_(Lo.y,0,1)).getDay(),Lo.m=0,Lo.d="W"in Lo?(Lo.w+6)%7+Lo.W*7-(Ls+5)%7:Lo.w+Lo.U*7-(Ls+6)%7);return"Z"in Lo?(Lo.H+=Lo.Z/100|0,Lo.M+=Lo.Z%100,j(Lo)):ht(Lo)}}function In(co,zo,Io,Lo){for(var vs=0,Zo=zo.length,Ls=Io.length,Ds,bo;vs=Ls)return-1;if(Ds=zo.charCodeAt(vs++),Ds===37){if(Ds=zo.charAt(vs++),bo=An[Ds in tt?zo.charAt(vs++):Ds],!bo||(Lo=bo(co,Io,Lo))<0)return-1}else if(Ds!=Io.charCodeAt(Lo++))return-1}return Lo}function Ln(co,zo,Io){var Lo=rn.exec(zo.slice(Io));return Lo?(co.p=Cn[Lo[0].toLowerCase()],Io+Lo[0].length):-1}function Xn(co,zo,Io){var Lo=bn.exec(zo.slice(Io));return Lo?(co.w=Un[Lo[0].toLowerCase()],Io+Lo[0].length):-1}function Wn(co,zo,Io){var Lo=xn.exec(zo.slice(Io));return Lo?(co.w=fn[Lo[0].toLowerCase()],Io+Lo[0].length):-1}function Vn(co,zo,Io){var Lo=Kn.exec(zo.slice(Io));return Lo?(co.m=Jn[Lo[0].toLowerCase()],Io+Lo[0].length):-1}function ga(co,zo,Io){var Lo=_i.exec(zo.slice(Io));return Lo?(co.m=yn[Lo[0].toLowerCase()],Io+Lo[0].length):-1}function fo(co,zo,Io){return In(co,vr,zo,Io)}function qn(co,zo,Io){return In(co,Dr,zo,Io)}function po(co,zo,Io){return In(co,Sr,zo,Io)}function Yr(co){return Pr[co.getDay()]}function Wr(co){return xr[co.getDay()]}function $n(co){return en[co.getMonth()]}function Bn(co){return Vr[co.getMonth()]}function xa(co){return ur[+(co.getHours()>=12)]}function ro(co){return 1+~~(co.getMonth()/3)}function io(co){return Pr[co.getUTCDay()]}function eo(co){return xr[co.getUTCDay()]}function Gn(co){return en[co.getUTCMonth()]}function ho(co){return Vr[co.getUTCMonth()]}function go(co){return ur[+(co.getUTCHours()>=12)]}function _o(co){return 1+~~(co.getUTCMonth()/3)}return{format:function(co){var zo=hn(co+="",so);return zo.toString=function(){return co},zo},parse:function(co){var zo=wn(co+="",!1);return zo.toString=function(){return co},zo},utcFormat:function(co){var zo=hn(co+="",ba);return zo.toString=function(){return co},zo},utcParse:function(co){var zo=wn(co+="",!0);return zo.toString=function(){return co},zo}}}var tt={"-":"",_:" ",0:"0"},st=/^\s*\d+/,ot=/^%/,nt=/[\\^$*+?|[\]().{}]/g;function vt(wr,vr,Dr){var Sr=wr<0?"-":"",ur=(Sr?-wr:wr)+"",xr=ur.length;return Sr+(xr68?1900:2e3),Dr+Sr[0].length):-1}function wt(wr,vr,Dr){var Sr=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(vr.slice(Dr,Dr+6));return Sr?(wr.Z=Sr[1]?0:-(Sr[2]+(Sr[3]||"00")),Dr+Sr[0].length):-1}function ct(wr,vr,Dr){var Sr=st.exec(vr.slice(Dr,Dr+1));return Sr?(wr.q=Sr[0]*3-3,Dr+Sr[0].length):-1}function It(wr,vr,Dr){var Sr=st.exec(vr.slice(Dr,Dr+2));return Sr?(wr.m=Sr[0]-1,Dr+Sr[0].length):-1}function At(wr,vr,Dr){var Sr=st.exec(vr.slice(Dr,Dr+2));return Sr?(wr.d=+Sr[0],Dr+Sr[0].length):-1}function Ot(wr,vr,Dr){var Sr=st.exec(vr.slice(Dr,Dr+3));return Sr?(wr.m=0,wr.d=+Sr[0],Dr+Sr[0].length):-1}function Pt(wr,vr,Dr){var Sr=st.exec(vr.slice(Dr,Dr+2));return Sr?(wr.H=+Sr[0],Dr+Sr[0].length):-1}function zt(wr,vr,Dr){var Sr=st.exec(vr.slice(Dr,Dr+2));return Sr?(wr.M=+Sr[0],Dr+Sr[0].length):-1}function Dt(wr,vr,Dr){var Sr=st.exec(vr.slice(Dr,Dr+2));return Sr?(wr.S=+Sr[0],Dr+Sr[0].length):-1}function Nt(wr,vr,Dr){var Sr=st.exec(vr.slice(Dr,Dr+3));return Sr?(wr.L=+Sr[0],Dr+Sr[0].length):-1}function $t(wr,vr,Dr){var Sr=st.exec(vr.slice(Dr,Dr+6));return Sr?(wr.L=Math.floor(Sr[0]/1e3),Dr+Sr[0].length):-1}function Ut(wr,vr,Dr){var Sr=ot.exec(vr.slice(Dr,Dr+1));return Sr?Dr+Sr[0].length:-1}function Ht(wr,vr,Dr){var Sr=st.exec(vr.slice(Dr));return Sr?(wr.Q=+Sr[0],Dr+Sr[0].length):-1}function Vt(wr,vr,Dr){var Sr=st.exec(vr.slice(Dr));return Sr?(wr.s=+Sr[0],Dr+Sr[0].length):-1}function Xt(wr,vr){return vt(wr.getDate(),vr,2)}function qt(wr,vr){return vt(wr.getHours(),vr,2)}function er(wr,vr){return vt(wr.getHours()%12||12,vr,2)}function lr(wr,vr){return vt(1+Et.c.count((0,mt.c)(wr),wr),vr,3)}function Jt(wr,vr){return vt(wr.getMilliseconds(),vr,3)}function Yt(wr,vr){return Jt(wr,vr)+"000"}function rr(wr,vr){return vt(wr.getMonth()+1,vr,2)}function jt(wr,vr){return vt(wr.getMinutes(),vr,2)}function ar(wr,vr){return vt(wr.getSeconds(),vr,2)}function sr(wr){var vr=wr.getDay();return vr===0?7:vr}function Zt(wr,vr){return vt(et.uU.count((0,mt.c)(wr)-1,wr),vr,2)}function Kt(wr,vr){var Dr=wr.getDay();return wr=Dr>=4||Dr===0?(0,et.kD)(wr):et.kD.ceil(wr),vt(et.kD.count((0,mt.c)(wr),wr)+((0,mt.c)(wr).getDay()===4),vr,2)}function or(wr){return wr.getDay()}function tr(wr,vr){return vt(et.qT.count((0,mt.c)(wr)-1,wr),vr,2)}function cr(wr,vr){return vt(wr.getFullYear()%100,vr,2)}function hr(wr,vr){return vt(wr.getFullYear()%1e4,vr,4)}function br(wr){var vr=wr.getTimezoneOffset();return(vr>0?"-":(vr*=-1,"+"))+vt(vr/60|0,"0",2)+vt(vr%60,"0",2)}function Tr(wr,vr){return vt(wr.getUTCDate(),vr,2)}function Ir(wr,vr){return vt(wr.getUTCHours(),vr,2)}function Ar(wr,vr){return vt(wr.getUTCHours()%12||12,vr,2)}function _r(wr,vr){return vt(1+xt.c.count((0,ut.c)(wr),wr),vr,3)}function Er(wr,vr){return vt(wr.getUTCMilliseconds(),vr,3)}function Rr(wr,vr){return Er(wr,vr)+"000"}function zr(wr,vr){return vt(wr.getUTCMonth()+1,vr,2)}function Br(wr,vr){return vt(wr.getUTCMinutes(),vr,2)}function kr(wr,vr){return vt(wr.getUTCSeconds(),vr,2)}function Nr(wr){var vr=wr.getUTCDay();return vr===0?7:vr}function Qr(wr,vr){return vt(it.EV.count((0,ut.c)(wr)-1,wr),vr,2)}function sn(wr,vr){var Dr=wr.getUTCDay();return wr=Dr>=4||Dr===0?(0,it.yA)(wr):it.yA.ceil(wr),vt(it.yA.count((0,ut.c)(wr),wr)+((0,ut.c)(wr).getUTCDay()===4),vr,2)}function un(wr){return wr.getUTCDay()}function qr(wr,vr){return vt(it.ot.count((0,ut.c)(wr)-1,wr),vr,2)}function Xr(wr,vr){return vt(wr.getUTCFullYear()%100,vr,2)}function ln(wr,vr){return vt(wr.getUTCFullYear()%1e4,vr,4)}function mn(){return"+0000"}function pn(){return"%"}function En(wr){return+wr}function Jr(wr){return Math.floor(+wr/1e3)}var Or,Ur,jr;Gr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"]});function Gr(wr){return Or=rt(wr),Ur=Or.format,Or.parse,jr=Or.utcFormat,Or.utcParse,Or}},68936:function(Ct,Rt,o){o.d(Rt,{m:function(){return Et}});var it=o(81628),xt=o(69792),et=(0,it.c)(function(mt){mt.setHours(0,0,0,0)},function(mt,ut){mt.setDate(mt.getDate()+ut)},function(mt,ut){return(ut-mt-(ut.getTimezoneOffset()-mt.getTimezoneOffset())*xt.iy)/xt.SK},function(mt){return mt.getDate()-1});Rt.c=et;var Et=et.range},69792:function(Ct,Rt,o){o.d(Rt,{KK:function(){return mt},SK:function(){return Et},cg:function(){return et},iy:function(){return xt},yc:function(){return it}});var it=1e3,xt=6e4,et=36e5,Et=864e5,mt=6048e5},73220:function(Ct,Rt,o){o.r(Rt),o.d(Rt,{timeDay:function(){return vt.c},timeDays:function(){return vt.m},timeFriday:function(){return dt.iB},timeFridays:function(){return dt.sJ},timeHour:function(){return ot},timeHours:function(){return nt},timeInterval:function(){return it.c},timeMillisecond:function(){return et},timeMilliseconds:function(){return Et},timeMinute:function(){return rt},timeMinutes:function(){return tt},timeMonday:function(){return dt.qT},timeMondays:function(){return dt.QP},timeMonth:function(){return ft},timeMonths:function(){return at},timeSaturday:function(){return dt.Wc},timeSaturdays:function(){return dt.aI},timeSecond:function(){return ht},timeSeconds:function(){return j},timeSunday:function(){return dt.uU},timeSundays:function(){return dt.Ab},timeThursday:function(){return dt.kD},timeThursdays:function(){return dt.eC},timeTuesday:function(){return dt.Mf},timeTuesdays:function(){return dt.Oc},timeWednesday:function(){return dt.eg},timeWednesdays:function(){return dt.sn},timeWeek:function(){return dt.uU},timeWeeks:function(){return dt.Ab},timeYear:function(){return yt.c},timeYears:function(){return yt.Q},utcDay:function(){return ct.c},utcDays:function(){return ct.o},utcFriday:function(){return It.od},utcFridays:function(){return It.iG},utcHour:function(){return kt},utcHours:function(){return wt},utcMillisecond:function(){return et},utcMilliseconds:function(){return Et},utcMinute:function(){return _t},utcMinutes:function(){return Mt},utcMonday:function(){return It.ot},utcMondays:function(){return It.iO},utcMonth:function(){return Ot},utcMonths:function(){return Pt},utcSaturday:function(){return It.Ad},utcSaturdays:function(){return It.K8},utcSecond:function(){return ht},utcSeconds:function(){return j},utcSunday:function(){return It.EV},utcSundays:function(){return It.Wq},utcThursday:function(){return It.yA},utcThursdays:function(){return It.ob},utcTuesday:function(){return It.sG},utcTuesdays:function(){return It.kl},utcWednesday:function(){return It._6},utcWednesdays:function(){return It.W_},utcWeek:function(){return It.EV},utcWeeks:function(){return It.Wq},utcYear:function(){return zt.c},utcYears:function(){return zt.i}});var it=o(81628),xt=(0,it.c)(function(){},function(Dt,Nt){Dt.setTime(+Dt+Nt)},function(Dt,Nt){return Nt-Dt});xt.every=function(Dt){return Dt=Math.floor(Dt),!isFinite(Dt)||!(Dt>0)?null:Dt>1?(0,it.c)(function(Nt){Nt.setTime(Math.floor(Nt/Dt)*Dt)},function(Nt,$t){Nt.setTime(+Nt+$t*Dt)},function(Nt,$t){return($t-Nt)/Dt}):xt};var et=xt,Et=xt.range,mt=o(69792),ut=(0,it.c)(function(Dt){Dt.setTime(Dt-Dt.getMilliseconds())},function(Dt,Nt){Dt.setTime(+Dt+Nt*mt.yc)},function(Dt,Nt){return(Nt-Dt)/mt.yc},function(Dt){return Dt.getUTCSeconds()}),ht=ut,j=ut.range,_=(0,it.c)(function(Dt){Dt.setTime(Dt-Dt.getMilliseconds()-Dt.getSeconds()*mt.yc)},function(Dt,Nt){Dt.setTime(+Dt+Nt*mt.iy)},function(Dt,Nt){return(Nt-Dt)/mt.iy},function(Dt){return Dt.getMinutes()}),rt=_,tt=_.range,st=(0,it.c)(function(Dt){Dt.setTime(Dt-Dt.getMilliseconds()-Dt.getSeconds()*mt.yc-Dt.getMinutes()*mt.iy)},function(Dt,Nt){Dt.setTime(+Dt+Nt*mt.cg)},function(Dt,Nt){return(Nt-Dt)/mt.cg},function(Dt){return Dt.getHours()}),ot=st,nt=st.range,vt=o(68936),dt=o(46192),bt=(0,it.c)(function(Dt){Dt.setDate(1),Dt.setHours(0,0,0,0)},function(Dt,Nt){Dt.setMonth(Dt.getMonth()+Nt)},function(Dt,Nt){return Nt.getMonth()-Dt.getMonth()+(Nt.getFullYear()-Dt.getFullYear())*12},function(Dt){return Dt.getMonth()}),ft=bt,at=bt.range,yt=o(32171),St=(0,it.c)(function(Dt){Dt.setUTCSeconds(0,0)},function(Dt,Nt){Dt.setTime(+Dt+Nt*mt.iy)},function(Dt,Nt){return(Nt-Dt)/mt.iy},function(Dt){return Dt.getUTCMinutes()}),_t=St,Mt=St.range,Tt=(0,it.c)(function(Dt){Dt.setUTCMinutes(0,0,0)},function(Dt,Nt){Dt.setTime(+Dt+Nt*mt.cg)},function(Dt,Nt){return(Nt-Dt)/mt.cg},function(Dt){return Dt.getUTCHours()}),kt=Tt,wt=Tt.range,ct=o(58931),It=o(8208),At=(0,it.c)(function(Dt){Dt.setUTCDate(1),Dt.setUTCHours(0,0,0,0)},function(Dt,Nt){Dt.setUTCMonth(Dt.getUTCMonth()+Nt)},function(Dt,Nt){return Nt.getUTCMonth()-Dt.getUTCMonth()+(Nt.getUTCFullYear()-Dt.getUTCFullYear())*12},function(Dt){return Dt.getUTCMonth()}),Ot=At,Pt=At.range,zt=o(53528)},81628:function(Ct,Rt,o){o.d(Rt,{c:function(){return et}});var it=new Date,xt=new Date;function et(Et,mt,ut,ht){function j(_){return Et(_=arguments.length===0?new Date:new Date(+_)),_}return j.floor=function(_){return Et(_=new Date(+_)),_},j.ceil=function(_){return Et(_=new Date(_-1)),mt(_,1),Et(_),_},j.round=function(_){var rt=j(_),tt=j.ceil(_);return _-rt0))return st;do st.push(ot=new Date(+_)),mt(_,tt),Et(_);while(ot<_&&_=rt)for(;Et(rt),!_(rt);)rt.setTime(rt-1)},function(rt,tt){if(rt>=rt)if(tt<0)for(;++tt<=0;)for(;mt(rt,-1),!_(rt););else for(;--tt>=0;)for(;mt(rt,1),!_(rt););})},ut&&(j.count=function(_,rt){return it.setTime(+_),xt.setTime(+rt),Et(it),Et(xt),Math.floor(ut(it,xt))},j.every=function(_){return _=Math.floor(_),!isFinite(_)||!(_>0)?null:_>1?j.filter(ht?function(rt){return ht(rt)%_===0}:function(rt){return j.count(0,rt)%_===0}):j}),j}},58931:function(Ct,Rt,o){o.d(Rt,{o:function(){return Et}});var it=o(81628),xt=o(69792),et=(0,it.c)(function(mt){mt.setUTCHours(0,0,0,0)},function(mt,ut){mt.setUTCDate(mt.getUTCDate()+ut)},function(mt,ut){return(ut-mt)/xt.SK},function(mt){return mt.getUTCDate()-1});Rt.c=et;var Et=et.range},8208:function(Ct,Rt,o){o.d(Rt,{Ad:function(){return rt},EV:function(){return Et},K8:function(){return bt},W_:function(){return nt},Wq:function(){return tt},_6:function(){return ht},iG:function(){return dt},iO:function(){return st},kl:function(){return ot},ob:function(){return vt},od:function(){return _},ot:function(){return mt},sG:function(){return ut},yA:function(){return j}});var it=o(81628),xt=o(69792);function et(ft){return(0,it.c)(function(at){at.setUTCDate(at.getUTCDate()-(at.getUTCDay()+7-ft)%7),at.setUTCHours(0,0,0,0)},function(at,yt){at.setUTCDate(at.getUTCDate()+yt*7)},function(at,yt){return(yt-at)/xt.KK})}var Et=et(0),mt=et(1),ut=et(2),ht=et(3),j=et(4),_=et(5),rt=et(6),tt=Et.range,st=mt.range,ot=ut.range,nt=ht.range,vt=j.range,dt=_.range,bt=rt.range},53528:function(Ct,Rt,o){o.d(Rt,{i:function(){return et}});var it=o(81628),xt=(0,it.c)(function(Et){Et.setUTCMonth(0,1),Et.setUTCHours(0,0,0,0)},function(Et,mt){Et.setUTCFullYear(Et.getUTCFullYear()+mt)},function(Et,mt){return mt.getUTCFullYear()-Et.getUTCFullYear()},function(Et){return Et.getUTCFullYear()});xt.every=function(Et){return!isFinite(Et=Math.floor(Et))||!(Et>0)?null:(0,it.c)(function(mt){mt.setUTCFullYear(Math.floor(mt.getUTCFullYear()/Et)*Et),mt.setUTCMonth(0,1),mt.setUTCHours(0,0,0,0)},function(mt,ut){mt.setUTCFullYear(mt.getUTCFullYear()+ut*Et)})},Rt.c=xt;var et=xt.range},46192:function(Ct,Rt,o){o.d(Rt,{Ab:function(){return tt},Mf:function(){return ut},Oc:function(){return ot},QP:function(){return st},Wc:function(){return rt},aI:function(){return bt},eC:function(){return vt},eg:function(){return ht},iB:function(){return _},kD:function(){return j},qT:function(){return mt},sJ:function(){return dt},sn:function(){return nt},uU:function(){return Et}});var it=o(81628),xt=o(69792);function et(ft){return(0,it.c)(function(at){at.setDate(at.getDate()-(at.getDay()+7-ft)%7),at.setHours(0,0,0,0)},function(at,yt){at.setDate(at.getDate()+yt*7)},function(at,yt){return(yt-at-(yt.getTimezoneOffset()-at.getTimezoneOffset())*xt.iy)/xt.KK})}var Et=et(0),mt=et(1),ut=et(2),ht=et(3),j=et(4),_=et(5),rt=et(6),tt=Et.range,st=mt.range,ot=ut.range,nt=ht.range,vt=j.range,dt=_.range,bt=rt.range},32171:function(Ct,Rt,o){o.d(Rt,{Q:function(){return et}});var it=o(81628),xt=(0,it.c)(function(Et){Et.setMonth(0,1),Et.setHours(0,0,0,0)},function(Et,mt){Et.setFullYear(Et.getFullYear()+mt)},function(Et,mt){return mt.getFullYear()-Et.getFullYear()},function(Et){return Et.getFullYear()});xt.every=function(Et){return!isFinite(Et=Math.floor(Et))||!(Et>0)?null:(0,it.c)(function(mt){mt.setFullYear(Math.floor(mt.getFullYear()/Et)*Et),mt.setMonth(0,1),mt.setHours(0,0,0,0)},function(mt,ut){mt.setFullYear(mt.getFullYear()+ut*Et)})},Rt.c=xt;var et=xt.range},64348:function(Ct,Rt,o){var it=o(39640)(),xt=o(53664),et=it&&xt("%Object.defineProperty%",!0);if(et)try{et({},"a",{value:1})}catch{et=!1}var Et=xt("%SyntaxError%"),mt=xt("%TypeError%"),ut=o(2304);Ct.exports=function(j,_,rt){if(!j||typeof j!="object"&&typeof j!="function")throw new mt("`obj` must be an object or a function`");if(typeof _!="string"&&typeof _!="symbol")throw new mt("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new mt("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new mt("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new mt("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new mt("`loose`, if provided, must be a boolean");var tt=arguments.length>3?arguments[3]:null,st=arguments.length>4?arguments[4]:null,ot=arguments.length>5?arguments[5]:null,nt=arguments.length>6?arguments[6]:!1,vt=!!ut&&ut(j,_);if(et)et(j,_,{configurable:ot===null&&vt?vt.configurable:!ot,enumerable:tt===null&&vt?vt.enumerable:!tt,value:rt,writable:st===null&&vt?vt.writable:!st});else if(nt||!tt&&!st&&!ot)j[_]=rt;else throw new Et("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}},81288:function(Ct,Rt,o){var it=o(41820),xt=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",et=Object.prototype.toString,Et=Array.prototype.concat,mt=Object.defineProperty,ut=function(tt){return typeof tt=="function"&&et.call(tt)==="[object Function]"},ht=o(39640)(),j=mt&&ht,_=function(tt,st,ot,nt){if(st in tt){if(nt===!0){if(tt[st]===ot)return}else if(!ut(nt)||!nt())return}j?mt(tt,st,{configurable:!0,enumerable:!1,value:ot,writable:!0}):tt[st]=ot},rt=function(tt,st){var ot=arguments.length>2?arguments[2]:{},nt=it(st);xt&&(nt=Et.call(nt,Object.getOwnPropertySymbols(st)));for(var vt=0;vtj*_){var nt=(ot-st)/j;ut[tt]=nt*1e3}}return ut}function et(Et){for(var mt=[],ut=Et[0];ut<=Et[1];ut++)for(var ht=String.fromCharCode(ut),j=Et[0];j"u"&&(et=0),typeof xt){case"number":if(xt>0)return o(xt|0,et);break;case"object":if(typeof xt.length=="number")return Rt(xt,et,0);break}return[]}Ct.exports=it},28912:function(Ct){Ct.exports=Rt,Ct.exports.default=Rt;function Rt(Pt,zt,Dt){Dt=Dt||2;var Nt=zt&&zt.length,$t=Nt?zt[0]*Dt:Pt.length,Ut=o(Pt,0,$t,Dt,!0),Ht=[];if(!Ut||Ut.next===Ut.prev)return Ht;var Vt,Xt,qt,er,lr,Jt,Yt;if(Nt&&(Ut=ht(Pt,zt,Ut,Dt)),Pt.length>80*Dt){Vt=qt=Pt[0],Xt=er=Pt[1];for(var rr=Dt;rr<$t;rr+=Dt)lr=Pt[rr],Jt=Pt[rr+1],lrqt&&(qt=lr),Jt>er&&(er=Jt);Yt=Math.max(qt-Vt,er-Xt),Yt=Yt!==0?1/Yt:0}return xt(Ut,Ht,Dt,Vt,Xt,Yt),Ht}function o(Pt,zt,Dt,Nt,$t){var Ut,Ht;if($t===Ot(Pt,zt,Dt,Nt)>0)for(Ut=zt;Ut=zt;Ut-=Nt)Ht=ct(Ut,Pt[Ut],Pt[Ut+1],Ht);return Ht&&at(Ht,Ht.next)&&(It(Ht),Ht=Ht.next),Ht}function it(Pt,zt){if(!Pt)return Pt;zt||(zt=Pt);var Dt=Pt,Nt;do if(Nt=!1,!Dt.steiner&&(at(Dt,Dt.next)||ft(Dt.prev,Dt,Dt.next)===0)){if(It(Dt),Dt=zt=Dt.prev,Dt===Dt.next)break;Nt=!0}else Dt=Dt.next;while(Nt||Dt!==zt);return zt}function xt(Pt,zt,Dt,Nt,$t,Ut,Ht){if(Pt){!Ht&&Ut&&st(Pt,Nt,$t,Ut);for(var Vt=Pt,Xt,qt;Pt.prev!==Pt.next;){if(Xt=Pt.prev,qt=Pt.next,Ut?Et(Pt,Nt,$t,Ut):et(Pt)){zt.push(Xt.i/Dt),zt.push(Pt.i/Dt),zt.push(qt.i/Dt),It(Pt),Pt=qt.next,Vt=qt.next;continue}if(Pt=qt,Pt===Vt){Ht?Ht===1?(Pt=mt(it(Pt),zt,Dt),xt(Pt,zt,Dt,Nt,$t,Ut,2)):Ht===2&&ut(Pt,zt,Dt,Nt,$t,Ut):xt(it(Pt),zt,Dt,Nt,$t,Ut,1);break}}}}function et(Pt){var zt=Pt.prev,Dt=Pt,Nt=Pt.next;if(ft(zt,Dt,Nt)>=0)return!1;for(var $t=Pt.next.next;$t!==Pt.prev;){if(dt(zt.x,zt.y,Dt.x,Dt.y,Nt.x,Nt.y,$t.x,$t.y)&&ft($t.prev,$t,$t.next)>=0)return!1;$t=$t.next}return!0}function Et(Pt,zt,Dt,Nt){var $t=Pt.prev,Ut=Pt,Ht=Pt.next;if(ft($t,Ut,Ht)>=0)return!1;for(var Vt=$t.xUt.x?$t.x>Ht.x?$t.x:Ht.x:Ut.x>Ht.x?Ut.x:Ht.x,er=$t.y>Ut.y?$t.y>Ht.y?$t.y:Ht.y:Ut.y>Ht.y?Ut.y:Ht.y,lr=nt(Vt,Xt,zt,Dt,Nt),Jt=nt(qt,er,zt,Dt,Nt),Yt=Pt.prevZ,rr=Pt.nextZ;Yt&&Yt.z>=lr&&rr&&rr.z<=Jt;){if(Yt!==Pt.prev&&Yt!==Pt.next&&dt($t.x,$t.y,Ut.x,Ut.y,Ht.x,Ht.y,Yt.x,Yt.y)&&ft(Yt.prev,Yt,Yt.next)>=0||(Yt=Yt.prevZ,rr!==Pt.prev&&rr!==Pt.next&&dt($t.x,$t.y,Ut.x,Ut.y,Ht.x,Ht.y,rr.x,rr.y)&&ft(rr.prev,rr,rr.next)>=0))return!1;rr=rr.nextZ}for(;Yt&&Yt.z>=lr;){if(Yt!==Pt.prev&&Yt!==Pt.next&&dt($t.x,$t.y,Ut.x,Ut.y,Ht.x,Ht.y,Yt.x,Yt.y)&&ft(Yt.prev,Yt,Yt.next)>=0)return!1;Yt=Yt.prevZ}for(;rr&&rr.z<=Jt;){if(rr!==Pt.prev&&rr!==Pt.next&&dt($t.x,$t.y,Ut.x,Ut.y,Ht.x,Ht.y,rr.x,rr.y)&&ft(rr.prev,rr,rr.next)>=0)return!1;rr=rr.nextZ}return!0}function mt(Pt,zt,Dt){var Nt=Pt;do{var $t=Nt.prev,Ut=Nt.next.next;!at($t,Ut)&&yt($t,Nt,Nt.next,Ut)&&Tt($t,Ut)&&Tt(Ut,$t)&&(zt.push($t.i/Dt),zt.push(Nt.i/Dt),zt.push(Ut.i/Dt),It(Nt),It(Nt.next),Nt=Pt=Ut),Nt=Nt.next}while(Nt!==Pt);return it(Nt)}function ut(Pt,zt,Dt,Nt,$t,Ut){var Ht=Pt;do{for(var Vt=Ht.next.next;Vt!==Ht.prev;){if(Ht.i!==Vt.i&&bt(Ht,Vt)){var Xt=wt(Ht,Vt);Ht=it(Ht,Ht.next),Xt=it(Xt,Xt.next),xt(Ht,zt,Dt,Nt,$t,Ut),xt(Xt,zt,Dt,Nt,$t,Ut);return}Vt=Vt.next}Ht=Ht.next}while(Ht!==Pt)}function ht(Pt,zt,Dt,Nt){var $t=[],Ut,Ht,Vt,Xt,qt;for(Ut=0,Ht=zt.length;Ut=Dt.next.y&&Dt.next.y!==Dt.y){var Vt=Dt.x+($t-Dt.y)*(Dt.next.x-Dt.x)/(Dt.next.y-Dt.y);if(Vt<=Nt&&Vt>Ut){if(Ut=Vt,Vt===Nt){if($t===Dt.y)return Dt;if($t===Dt.next.y)return Dt.next}Ht=Dt.x=Dt.x&&Dt.x>=qt&&Nt!==Dt.x&&dt($tHt.x||Dt.x===Ht.x&&tt(Ht,Dt)))&&(Ht=Dt,lr=Jt)),Dt=Dt.next;while(Dt!==Xt);return Ht}function tt(Pt,zt){return ft(Pt.prev,Pt,zt.prev)<0&&ft(zt.next,Pt,Pt.next)<0}function st(Pt,zt,Dt,Nt){var $t=Pt;do $t.z===null&&($t.z=nt($t.x,$t.y,zt,Dt,Nt)),$t.prevZ=$t.prev,$t.nextZ=$t.next,$t=$t.next;while($t!==Pt);$t.prevZ.nextZ=null,$t.prevZ=null,ot($t)}function ot(Pt){var zt,Dt,Nt,$t,Ut,Ht,Vt,Xt,qt=1;do{for(Dt=Pt,Pt=null,Ut=null,Ht=0;Dt;){for(Ht++,Nt=Dt,Vt=0,zt=0;zt0||Xt>0&&Nt;)Vt!==0&&(Xt===0||!Nt||Dt.z<=Nt.z)?($t=Dt,Dt=Dt.nextZ,Vt--):($t=Nt,Nt=Nt.nextZ,Xt--),Ut?Ut.nextZ=$t:Pt=$t,$t.prevZ=Ut,Ut=$t;Dt=Nt}Ut.nextZ=null,qt*=2}while(Ht>1);return Pt}function nt(Pt,zt,Dt,Nt,$t){return Pt=32767*(Pt-Dt)*$t,zt=32767*(zt-Nt)*$t,Pt=(Pt|Pt<<8)&16711935,Pt=(Pt|Pt<<4)&252645135,Pt=(Pt|Pt<<2)&858993459,Pt=(Pt|Pt<<1)&1431655765,zt=(zt|zt<<8)&16711935,zt=(zt|zt<<4)&252645135,zt=(zt|zt<<2)&858993459,zt=(zt|zt<<1)&1431655765,Pt|zt<<1}function vt(Pt){var zt=Pt,Dt=Pt;do(zt.x=0&&(Pt-Ht)*(Nt-Vt)-(Dt-Ht)*(zt-Vt)>=0&&(Dt-Ht)*(Ut-Vt)-($t-Ht)*(Nt-Vt)>=0}function bt(Pt,zt){return Pt.next.i!==zt.i&&Pt.prev.i!==zt.i&&!Mt(Pt,zt)&&(Tt(Pt,zt)&&Tt(zt,Pt)&&kt(Pt,zt)&&(ft(Pt.prev,Pt,zt.prev)||ft(Pt,zt.prev,zt))||at(Pt,zt)&&ft(Pt.prev,Pt,Pt.next)>0&&ft(zt.prev,zt,zt.next)>0)}function ft(Pt,zt,Dt){return(zt.y-Pt.y)*(Dt.x-zt.x)-(zt.x-Pt.x)*(Dt.y-zt.y)}function at(Pt,zt){return Pt.x===zt.x&&Pt.y===zt.y}function yt(Pt,zt,Dt,Nt){var $t=_t(ft(Pt,zt,Dt)),Ut=_t(ft(Pt,zt,Nt)),Ht=_t(ft(Dt,Nt,Pt)),Vt=_t(ft(Dt,Nt,zt));return!!($t!==Ut&&Ht!==Vt||$t===0&&St(Pt,Dt,zt)||Ut===0&&St(Pt,Nt,zt)||Ht===0&&St(Dt,Pt,Nt)||Vt===0&&St(Dt,zt,Nt))}function St(Pt,zt,Dt){return zt.x<=Math.max(Pt.x,Dt.x)&&zt.x>=Math.min(Pt.x,Dt.x)&&zt.y<=Math.max(Pt.y,Dt.y)&&zt.y>=Math.min(Pt.y,Dt.y)}function _t(Pt){return Pt>0?1:Pt<0?-1:0}function Mt(Pt,zt){var Dt=Pt;do{if(Dt.i!==Pt.i&&Dt.next.i!==Pt.i&&Dt.i!==zt.i&&Dt.next.i!==zt.i&&yt(Dt,Dt.next,Pt,zt))return!0;Dt=Dt.next}while(Dt!==Pt);return!1}function Tt(Pt,zt){return ft(Pt.prev,Pt,Pt.next)<0?ft(Pt,zt,Pt.next)>=0&&ft(Pt,Pt.prev,zt)>=0:ft(Pt,zt,Pt.prev)<0||ft(Pt,Pt.next,zt)<0}function kt(Pt,zt){var Dt=Pt,Nt=!1,$t=(Pt.x+zt.x)/2,Ut=(Pt.y+zt.y)/2;do Dt.y>Ut!=Dt.next.y>Ut&&Dt.next.y!==Dt.y&&$t<(Dt.next.x-Dt.x)*(Ut-Dt.y)/(Dt.next.y-Dt.y)+Dt.x&&(Nt=!Nt),Dt=Dt.next;while(Dt!==Pt);return Nt}function wt(Pt,zt){var Dt=new At(Pt.i,Pt.x,Pt.y),Nt=new At(zt.i,zt.x,zt.y),$t=Pt.next,Ut=zt.prev;return Pt.next=zt,zt.prev=Pt,Dt.next=$t,$t.prev=Dt,Nt.next=Dt,Dt.prev=Nt,Ut.next=Nt,Nt.prev=Ut,Nt}function ct(Pt,zt,Dt,Nt){var $t=new At(Pt,zt,Dt);return Nt?($t.next=Nt.next,$t.prev=Nt,Nt.next.prev=$t,Nt.next=$t):($t.prev=$t,$t.next=$t),$t}function It(Pt){Pt.next.prev=Pt.prev,Pt.prev.next=Pt.next,Pt.prevZ&&(Pt.prevZ.nextZ=Pt.nextZ),Pt.nextZ&&(Pt.nextZ.prevZ=Pt.prevZ)}function At(Pt,zt,Dt){this.i=Pt,this.x=zt,this.y=Dt,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}Rt.deviation=function(Pt,zt,Dt,Nt){var $t=zt&&zt.length,Ut=$t?zt[0]*Dt:Pt.length,Ht=Math.abs(Ot(Pt,0,Ut,Dt));if($t)for(var Vt=0,Xt=zt.length;Vt0&&(Nt+=Pt[$t-1].length,Dt.holes.push(Nt))}return Dt}},6688:function(Ct,Rt,o){var it=o(78484);Ct.exports=function(et,Et){var mt=[],ut=[],ht=[],j={},_=[],rt;function tt(St){ht[St]=!1,j.hasOwnProperty(St)&&Object.keys(j[St]).forEach(function(_t){delete j[St][_t],ht[_t]&&tt(_t)})}function st(St){var _t=!1;ut.push(St),ht[St]=!0;var Mt,Tt;for(Mt=0;Mt<_[St].length;Mt++)Tt=_[St][Mt],Tt===rt?(ot(rt,ut),_t=!0):ht[Tt]||(_t=st(Tt));if(_t)tt(St);else for(Mt=0;Mt<_[St].length;Mt++){Tt=_[St][Mt];var kt=j[Tt];kt||(kt={},j[Tt]=kt),kt[Tt]=!0}return ut.pop(),_t}function ot(St,_t){var Mt=[].concat(_t).concat(St);Et?Et(st):mt.push(Mt)}function nt(St){for(var _t=0;_t=St})}function vt(St){nt(St);for(var _t=et,Mt=it(_t),Tt=Mt.components.filter(function(Pt){return Pt.length>1}),kt=1/0,wt,ct=0;ct=55296&&St<=56319&&(kt+=ot[++bt])),kt=nt?rt.call(nt,vt,kt,ft):kt,dt?(tt.value=kt,st(at,ft,tt)):at[ft]=kt,++ft;yt=ft}}if(yt===void 0)for(yt=Et(ot.length),dt&&(at=new dt(yt)),bt=0;bt0?1:-1}},96936:function(Ct,Rt,o){var it=o(85608),xt=Math.abs,et=Math.floor;Ct.exports=function(Et){return isNaN(Et)?0:(Et=Number(Et),Et===0||!isFinite(Et)?Et:it(Et)*et(xt(Et)))}},81304:function(Ct,Rt,o){var it=o(96936),xt=Math.max;Ct.exports=function(et){return xt(0,it(et))}},14428:function(Ct,Rt,o){var it=o(34044),xt=o(9252),et=Function.prototype.bind,Et=Function.prototype.call,mt=Object.keys,ut=Object.prototype.propertyIsEnumerable;Ct.exports=function(ht,j){return function(_,rt){var tt,st=arguments[2],ot=arguments[3];return _=Object(xt(_)),it(rt),tt=mt(_),ot&&tt.sort(typeof ot=="function"?et.call(ot,_):void 0),typeof ht!="function"&&(ht=tt[ht]),Et.call(ht,tt,function(nt,vt){return ut.call(_,nt)?Et.call(rt,st,_[nt],nt,_,vt):j})}}},38452:function(Ct,Rt,o){Ct.exports=o(96276)()?Object.assign:o(81892)},96276:function(Ct){Ct.exports=function(){var Rt=Object.assign,o;return typeof Rt!="function"?!1:(o={foo:"raz"},Rt(o,{bar:"dwa"},{trzy:"trzy"}),o.foo+o.bar+o.trzy==="razdwatrzy")}},81892:function(Ct,Rt,o){var it=o(54768),xt=o(9252),et=Math.max;Ct.exports=function(Et,mt){var ut,ht,j=et(arguments.length,2),_;for(Et=Object(xt(Et)),_=function(rt){try{Et[rt]=mt[rt]}catch(tt){ut||(ut=tt)}},ht=1;ht-1}},29768:function(Ct){var Rt=Object.prototype.toString,o=Rt.call("");Ct.exports=function(it){return typeof it=="string"||it&&typeof it=="object"&&(it instanceof String||Rt.call(it)===o)||!1}},82252:function(Ct){var Rt=Object.create(null),o=Math.random;Ct.exports=function(){var it;do it=o().toString(36).slice(2);while(Rt[it]);return it}},52104:function(Ct,Rt,o){var it=o(69932),xt=o(71056),et=o(21092),Et=o(92664),mt=o(85512),ut=Object.defineProperty,ht;ht=Ct.exports=function(j,_){if(!(this instanceof ht))throw new TypeError("Constructor requires 'new'");mt.call(this,j),_?xt.call(_,"key+value")?_="key+value":xt.call(_,"key")?_="key":_="value":_="value",ut(this,"__kind__",et("",_))},it&&it(ht,mt),delete ht.prototype.constructor,ht.prototype=Object.create(mt.prototype,{_resolve:et(function(j){return this.__kind__==="value"?this.__list__[j]:this.__kind__==="key+value"?[j,this.__list__[j]]:j})}),ut(ht.prototype,Et.toStringTag,et("c","Array Iterator"))},76024:function(Ct,Rt,o){var it=o(60948),xt=o(34044),et=o(29768),Et=o(76252),mt=Array.isArray,ut=Function.prototype.call,ht=Array.prototype.some;Ct.exports=function(j,_){var rt,tt=arguments[2],st,ot,nt,vt,dt,bt,ft;if(mt(j)||it(j)?rt="array":et(j)?rt="string":j=Et(j),xt(_),ot=function(){nt=!0},rt==="array"){ht.call(j,function(at){return ut.call(_,tt,at,ot),nt});return}if(rt==="string"){for(dt=j.length,vt=0;vt=55296&&ft<=56319&&(bt+=j[++vt])),ut.call(_,tt,bt,ot),!nt);++vt);return}for(st=j.next();!st.done;){if(ut.call(_,tt,st.value,ot),nt)return;st=j.next()}}},76252:function(Ct,Rt,o){var it=o(60948),xt=o(29768),et=o(52104),Et=o(80940),mt=o(52891),ut=o(92664).iterator;Ct.exports=function(ht){return typeof mt(ht)[ut]=="function"?ht[ut]():it(ht)?new et(ht):xt(ht)?new Et(ht):new et(ht)}},85512:function(Ct,Rt,o){var it=o(41476),xt=o(38452),et=o(34044),Et=o(9252),mt=o(21092),ut=o(27940),ht=o(92664),j=Object.defineProperty,_=Object.defineProperties,rt;Ct.exports=rt=function(tt,st){if(!(this instanceof rt))throw new TypeError("Constructor requires 'new'");_(this,{__list__:mt("w",Et(tt)),__context__:mt("w",st),__nextIndex__:mt("w",0)}),st&&(et(st.on),st.on("_add",this._onAdd),st.on("_delete",this._onDelete),st.on("_clear",this._onClear))},delete rt.prototype.constructor,_(rt.prototype,xt({_next:mt(function(){var tt;if(this.__list__){if(this.__redo__&&(tt=this.__redo__.shift(),tt!==void 0))return tt;if(this.__nextIndex__=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){j(this,"__redo__",mt("c",[tt]));return}this.__redo__.forEach(function(st,ot){st>=tt&&(this.__redo__[ot]=++st)},this),this.__redo__.push(tt)}}),_onDelete:mt(function(tt){var st;tt>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(st=this.__redo__.indexOf(tt),st!==-1&&this.__redo__.splice(st,1),this.__redo__.forEach(function(ot,nt){ot>tt&&(this.__redo__[nt]=--ot)},this)))}),_onClear:mt(function(){this.__redo__&&it.call(this.__redo__),this.__nextIndex__=0})}))),j(rt.prototype,ht.iterator,mt(function(){return this}))},76368:function(Ct,Rt,o){var it=o(60948),xt=o(42584),et=o(29768),Et=o(92664).iterator,mt=Array.isArray;Ct.exports=function(ut){return xt(ut)?mt(ut)||et(ut)||it(ut)?!0:typeof ut[Et]=="function":!1}},80940:function(Ct,Rt,o){var it=o(69932),xt=o(21092),et=o(92664),Et=o(85512),mt=Object.defineProperty,ut;ut=Ct.exports=function(ht){if(!(this instanceof ut))throw new TypeError("Constructor requires 'new'");ht=String(ht),Et.call(this,ht),mt(this,"__length__",xt("",ht.length))},it&&it(ut,Et),delete ut.prototype.constructor,ut.prototype=Object.create(Et.prototype,{_next:xt(function(){if(this.__list__){if(this.__nextIndex__=55296&&_<=56319?j+this.__list__[this.__nextIndex__++]:j)})}),mt(ut.prototype,et.toStringTag,xt("c","String Iterator"))},52891:function(Ct,Rt,o){var it=o(76368);Ct.exports=function(xt){if(!it(xt))throw new TypeError(xt+" is not iterable");return xt}},60964:function(Ct){function Rt(it,xt){if(it==null)throw new TypeError("Cannot convert first argument to object");for(var et=Object(it),Et=1;Et0&&(kt=St[0]),kt instanceof Error)throw kt;var wt=new Error("Unhandled error."+(kt?" ("+kt.message+")":""));throw wt.context=kt,wt}var ct=Tt[yt];if(ct===void 0)return!1;if(typeof ct=="function")o(ct,this,St);else for(var It=ct.length,At=ot(ct,It),_t=0;_t0&&kt.length>Mt&&!kt.warned){kt.warned=!0;var wt=new Error("Possible EventEmitter memory leak detected. "+kt.length+" "+String(yt)+" listeners added. Use emitter.setMaxListeners() to increase limit");wt.name="MaxListenersExceededWarning",wt.emitter=at,wt.type=yt,wt.count=kt.length,xt(wt)}return at}Et.prototype.addListener=function(yt,St){return j(this,yt,St,!1)},Et.prototype.on=Et.prototype.addListener,Et.prototype.prependListener=function(yt,St){return j(this,yt,St,!0)};function _(){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 rt(at,yt,St){var _t={fired:!1,wrapFn:void 0,target:at,type:yt,listener:St},Mt=_.bind(_t);return Mt.listener=St,_t.wrapFn=Mt,Mt}Et.prototype.once=function(yt,St){return ut(St),this.on(yt,rt(this,yt,St)),this},Et.prototype.prependOnceListener=function(yt,St){return ut(St),this.prependListener(yt,rt(this,yt,St)),this},Et.prototype.removeListener=function(yt,St){var _t,Mt,Tt,kt,wt;if(ut(St),Mt=this._events,Mt===void 0)return this;if(_t=Mt[yt],_t===void 0)return this;if(_t===St||_t.listener===St)--this._eventsCount===0?this._events=Object.create(null):(delete Mt[yt],Mt.removeListener&&this.emit("removeListener",yt,_t.listener||St));else if(typeof _t!="function"){for(Tt=-1,kt=_t.length-1;kt>=0;kt--)if(_t[kt]===St||_t[kt].listener===St){wt=_t[kt].listener,Tt=kt;break}if(Tt<0)return this;Tt===0?_t.shift():nt(_t,Tt),_t.length===1&&(Mt[yt]=_t[0]),Mt.removeListener!==void 0&&this.emit("removeListener",yt,wt||St)}return this},Et.prototype.off=Et.prototype.removeListener,Et.prototype.removeAllListeners=function(yt){var St,_t,Mt;if(_t=this._events,_t===void 0)return this;if(_t.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):_t[yt]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete _t[yt]),this;if(arguments.length===0){var Tt=Object.keys(_t),kt;for(Mt=0;Mt=0;Mt--)this.removeListener(yt,St[Mt]);return this};function tt(at,yt,St){var _t=at._events;if(_t===void 0)return[];var Mt=_t[yt];return Mt===void 0?[]:typeof Mt=="function"?St?[Mt.listener||Mt]:[Mt]:St?vt(Mt):ot(Mt,Mt.length)}Et.prototype.listeners=function(yt){return tt(this,yt,!0)},Et.prototype.rawListeners=function(yt){return tt(this,yt,!1)},Et.listenerCount=function(at,yt){return typeof at.listenerCount=="function"?at.listenerCount(yt):st.call(at,yt)},Et.prototype.listenerCount=st;function st(at){var yt=this._events;if(yt!==void 0){var St=yt[at];if(typeof St=="function")return 1;if(St!==void 0)return St.length}return 0}Et.prototype.eventNames=function(){return this._eventsCount>0?it(this._events):[]};function ot(at,yt){for(var St=new Array(yt),_t=0;_tmt[0]-j[0]/2&&(nt=j[0]/2,vt+=j[1]);return ut}},71920:function(Ct){Ct.exports=Rt,Rt.canvas=document.createElement("canvas"),Rt.cache={};function Rt(_,Et){Et||(Et={}),(typeof _=="string"||Array.isArray(_))&&(Et.family=_);var mt=Array.isArray(Et.family)?Et.family.join(", "):Et.family;if(!mt)throw Error("`family` must be defined");var ut=Et.size||Et.fontSize||Et.em||48,ht=Et.weight||Et.fontWeight||"",j=Et.style||Et.fontStyle||"",_=[j,ht,ut].join(" ")+"px "+mt,rt=Et.origin||"top";if(Rt.cache[mt]&&ut<=Rt.cache[mt].em)return o(Rt.cache[mt],rt);var tt=Et.canvas||Rt.canvas,st=tt.getContext("2d"),ot={upper:Et.upper!==void 0?Et.upper:"H",lower:Et.lower!==void 0?Et.lower:"x",descent:Et.descent!==void 0?Et.descent:"p",ascent:Et.ascent!==void 0?Et.ascent:"h",tittle:Et.tittle!==void 0?Et.tittle:"i",overshoot:Et.overshoot!==void 0?Et.overshoot:"O"},nt=Math.ceil(ut*1.5);tt.height=nt,tt.width=nt*.5,st.font=_;var vt="H",dt={top:0};st.clearRect(0,0,nt,nt),st.textBaseline="top",st.fillStyle="black",st.fillText(vt,0,0);var bt=it(st.getImageData(0,0,nt,nt));st.clearRect(0,0,nt,nt),st.textBaseline="bottom",st.fillText(vt,0,nt);var ft=it(st.getImageData(0,0,nt,nt));dt.lineHeight=dt.bottom=nt-ft+bt,st.clearRect(0,0,nt,nt),st.textBaseline="alphabetic",st.fillText(vt,0,nt);var at=it(st.getImageData(0,0,nt,nt)),yt=nt-at-1+bt;dt.baseline=dt.alphabetic=yt,st.clearRect(0,0,nt,nt),st.textBaseline="middle",st.fillText(vt,0,nt*.5);var St=it(st.getImageData(0,0,nt,nt));dt.median=dt.middle=nt-St-1+bt-nt*.5,st.clearRect(0,0,nt,nt),st.textBaseline="hanging",st.fillText(vt,0,nt*.5);var _t=it(st.getImageData(0,0,nt,nt));dt.hanging=nt-_t-1+bt-nt*.5,st.clearRect(0,0,nt,nt),st.textBaseline="ideographic",st.fillText(vt,0,nt);var Mt=it(st.getImageData(0,0,nt,nt));if(dt.ideographic=nt-Mt-1+bt,ot.upper&&(st.clearRect(0,0,nt,nt),st.textBaseline="top",st.fillText(ot.upper,0,0),dt.upper=it(st.getImageData(0,0,nt,nt)),dt.capHeight=dt.baseline-dt.upper),ot.lower&&(st.clearRect(0,0,nt,nt),st.textBaseline="top",st.fillText(ot.lower,0,0),dt.lower=it(st.getImageData(0,0,nt,nt)),dt.xHeight=dt.baseline-dt.lower),ot.tittle&&(st.clearRect(0,0,nt,nt),st.textBaseline="top",st.fillText(ot.tittle,0,0),dt.tittle=it(st.getImageData(0,0,nt,nt))),ot.ascent&&(st.clearRect(0,0,nt,nt),st.textBaseline="top",st.fillText(ot.ascent,0,0),dt.ascent=it(st.getImageData(0,0,nt,nt))),ot.descent&&(st.clearRect(0,0,nt,nt),st.textBaseline="top",st.fillText(ot.descent,0,0),dt.descent=xt(st.getImageData(0,0,nt,nt))),ot.overshoot){st.clearRect(0,0,nt,nt),st.textBaseline="top",st.fillText(ot.overshoot,0,0);var Tt=xt(st.getImageData(0,0,nt,nt));dt.overshoot=Tt-yt}for(var kt in dt)dt[kt]/=ut;return dt.em=ut,Rt.cache[mt]=dt,o(dt,rt)}function o(et,Et){var mt={};typeof Et=="string"&&(Et=et[Et]);for(var ut in et)ut!=="em"&&(mt[ut]=et[ut]-Et);return mt}function it(et){for(var Et=et.height,mt=et.data,ut=3;ut0;ut-=4)if(mt[ut]!==0)return Math.floor((ut-3)*.25/Et)}},46492:function(Ct,Rt,o){var it=o(90720),xt=Object.prototype.toString,et=Object.prototype.hasOwnProperty,Et=function(_,rt,tt){for(var st=0,ot=_.length;st=3&&(st=tt),xt.call(_)==="[object Array]"?Et(_,rt,st):typeof _=="string"?mt(_,rt,st):ut(_,rt,st)};Ct.exports=ht},74336:function(Ct){var Rt="Function.prototype.bind called on incompatible ",o=Object.prototype.toString,it=Math.max,xt="[object Function]",et=function(ht,j){for(var _=[],rt=0;rt"u"&&!it.canvas)return null;var xt=it.canvas||document.createElement("canvas");typeof it.width=="number"&&(xt.width=it.width),typeof it.height=="number"&&(xt.height=it.height);var et=it,Et;try{var mt=[o];o.indexOf("webgl")===0&&mt.push("experimental-"+o);for(var ut=0;ut"u"||!tt?it:tt(Uint8Array),nt={"%AggregateError%":typeof AggregateError>"u"?it:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?it:ArrayBuffer,"%ArrayIteratorPrototype%":_&&tt?tt([][Symbol.iterator]()):it,"%AsyncFromSyncIteratorPrototype%":it,"%AsyncFunction%":st,"%AsyncGenerator%":st,"%AsyncGeneratorFunction%":st,"%AsyncIteratorPrototype%":st,"%Atomics%":typeof Atomics>"u"?it:Atomics,"%BigInt%":typeof BigInt>"u"?it:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?it:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?it:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?it:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?it:Float32Array,"%Float64Array%":typeof Float64Array>"u"?it:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?it:FinalizationRegistry,"%Function%":et,"%GeneratorFunction%":st,"%Int8Array%":typeof Int8Array>"u"?it:Int8Array,"%Int16Array%":typeof Int16Array>"u"?it:Int16Array,"%Int32Array%":typeof Int32Array>"u"?it:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_&&tt?tt(tt([][Symbol.iterator]())):it,"%JSON%":typeof JSON=="object"?JSON:it,"%Map%":typeof Map>"u"?it:Map,"%MapIteratorPrototype%":typeof Map>"u"||!_||!tt?it:tt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?it:Promise,"%Proxy%":typeof Proxy>"u"?it:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?it:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?it:Set,"%SetIteratorPrototype%":typeof Set>"u"||!_||!tt?it:tt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?it:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_&&tt?tt(""[Symbol.iterator]()):it,"%Symbol%":_?Symbol:it,"%SyntaxError%":xt,"%ThrowTypeError%":j,"%TypedArray%":ot,"%TypeError%":Et,"%Uint8Array%":typeof Uint8Array>"u"?it:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?it:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?it:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?it:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?it:WeakMap,"%WeakRef%":typeof WeakRef>"u"?it:WeakRef,"%WeakSet%":typeof WeakSet>"u"?it:WeakSet};if(tt)try{null.error}catch(At){var vt=tt(tt(At));nt["%Error.prototype%"]=vt}var dt=function At(Ot){var Pt;if(Ot==="%AsyncFunction%")Pt=mt("async function () {}");else if(Ot==="%GeneratorFunction%")Pt=mt("function* () {}");else if(Ot==="%AsyncGeneratorFunction%")Pt=mt("async function* () {}");else if(Ot==="%AsyncGenerator%"){var zt=At("%AsyncGeneratorFunction%");zt&&(Pt=zt.prototype)}else if(Ot==="%AsyncIteratorPrototype%"){var Dt=At("%AsyncGenerator%");Dt&&tt&&(Pt=tt(Dt.prototype))}return nt[Ot]=Pt,Pt},bt={"%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"]},ft=o(8844),at=o(92064),yt=ft.call(Function.call,Array.prototype.concat),St=ft.call(Function.apply,Array.prototype.splice),_t=ft.call(Function.call,String.prototype.replace),Mt=ft.call(Function.call,String.prototype.slice),Tt=ft.call(Function.call,RegExp.prototype.exec),kt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,wt=/\\(\\)?/g,ct=function(Ot){var Pt=Mt(Ot,0,1),zt=Mt(Ot,-1);if(Pt==="%"&&zt!=="%")throw new xt("invalid intrinsic syntax, expected closing `%`");if(zt==="%"&&Pt!=="%")throw new xt("invalid intrinsic syntax, expected opening `%`");var Dt=[];return _t(Ot,kt,function(Nt,$t,Ut,Ht){Dt[Dt.length]=Ut?_t(Ht,wt,"$1"):$t||Nt}),Dt},It=function(Ot,Pt){var zt=Ot,Dt;if(at(bt,zt)&&(Dt=bt[zt],zt="%"+Dt[0]+"%"),at(nt,zt)){var Nt=nt[zt];if(Nt===st&&(Nt=dt(zt)),typeof Nt>"u"&&!Pt)throw new Et("intrinsic "+Ot+" exists, but is not available. Please file an issue!");return{alias:Dt,name:zt,value:Nt}}throw new xt("intrinsic "+Ot+" does not exist!")};Ct.exports=function(Ot,Pt){if(typeof Ot!="string"||Ot.length===0)throw new Et("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Pt!="boolean")throw new Et('"allowMissing" argument must be a boolean');if(Tt(/^%?[^%]*%?$/,Ot)===null)throw new xt("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var zt=ct(Ot),Dt=zt.length>0?zt[0]:"",Nt=It("%"+Dt+"%",Pt),$t=Nt.name,Ut=Nt.value,Ht=!1,Vt=Nt.alias;Vt&&(Dt=Vt[0],St(zt,yt([0,1],Vt)));for(var Xt=1,qt=!0;Xt=zt.length){var Yt=ut(Ut,er);qt=!!Yt,qt&&"get"in Yt&&!("originalValue"in Yt.get)?Ut=Yt.get:Ut=Ut[er]}else qt=at(Ut,er),Ut=Ut[er];qt&&!Ht&&(nt[$t]=Ut)}}return Ut}},12408:function(Ct){Ct.exports=Rt;function Rt(o,it){var xt=it[0],et=it[1],Et=it[2],mt=it[3],ut=it[4],ht=it[5],j=it[6],_=it[7],rt=it[8],tt=it[9],st=it[10],ot=it[11],nt=it[12],vt=it[13],dt=it[14],bt=it[15];return o[0]=ht*(st*bt-ot*dt)-tt*(j*bt-_*dt)+vt*(j*ot-_*st),o[1]=-(et*(st*bt-ot*dt)-tt*(Et*bt-mt*dt)+vt*(Et*ot-mt*st)),o[2]=et*(j*bt-_*dt)-ht*(Et*bt-mt*dt)+vt*(Et*_-mt*j),o[3]=-(et*(j*ot-_*st)-ht*(Et*ot-mt*st)+tt*(Et*_-mt*j)),o[4]=-(ut*(st*bt-ot*dt)-rt*(j*bt-_*dt)+nt*(j*ot-_*st)),o[5]=xt*(st*bt-ot*dt)-rt*(Et*bt-mt*dt)+nt*(Et*ot-mt*st),o[6]=-(xt*(j*bt-_*dt)-ut*(Et*bt-mt*dt)+nt*(Et*_-mt*j)),o[7]=xt*(j*ot-_*st)-ut*(Et*ot-mt*st)+rt*(Et*_-mt*j),o[8]=ut*(tt*bt-ot*vt)-rt*(ht*bt-_*vt)+nt*(ht*ot-_*tt),o[9]=-(xt*(tt*bt-ot*vt)-rt*(et*bt-mt*vt)+nt*(et*ot-mt*tt)),o[10]=xt*(ht*bt-_*vt)-ut*(et*bt-mt*vt)+nt*(et*_-mt*ht),o[11]=-(xt*(ht*ot-_*tt)-ut*(et*ot-mt*tt)+rt*(et*_-mt*ht)),o[12]=-(ut*(tt*dt-st*vt)-rt*(ht*dt-j*vt)+nt*(ht*st-j*tt)),o[13]=xt*(tt*dt-st*vt)-rt*(et*dt-Et*vt)+nt*(et*st-Et*tt),o[14]=-(xt*(ht*dt-j*vt)-ut*(et*dt-Et*vt)+nt*(et*j-Et*ht)),o[15]=xt*(ht*st-j*tt)-ut*(et*st-Et*tt)+rt*(et*j-Et*ht),o}},76860:function(Ct){Ct.exports=Rt;function Rt(o){var it=new Float32Array(16);return it[0]=o[0],it[1]=o[1],it[2]=o[2],it[3]=o[3],it[4]=o[4],it[5]=o[5],it[6]=o[6],it[7]=o[7],it[8]=o[8],it[9]=o[9],it[10]=o[10],it[11]=o[11],it[12]=o[12],it[13]=o[13],it[14]=o[14],it[15]=o[15],it}},64492:function(Ct){Ct.exports=Rt;function Rt(o,it){return o[0]=it[0],o[1]=it[1],o[2]=it[2],o[3]=it[3],o[4]=it[4],o[5]=it[5],o[6]=it[6],o[7]=it[7],o[8]=it[8],o[9]=it[9],o[10]=it[10],o[11]=it[11],o[12]=it[12],o[13]=it[13],o[14]=it[14],o[15]=it[15],o}},54212:function(Ct){Ct.exports=Rt;function Rt(){var o=new Float32Array(16);return o[0]=1,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=1,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=1,o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o}},70800:function(Ct){Ct.exports=Rt;function Rt(o){var it=o[0],xt=o[1],et=o[2],Et=o[3],mt=o[4],ut=o[5],ht=o[6],j=o[7],_=o[8],rt=o[9],tt=o[10],st=o[11],ot=o[12],nt=o[13],vt=o[14],dt=o[15],bt=it*ut-xt*mt,ft=it*ht-et*mt,at=it*j-Et*mt,yt=xt*ht-et*ut,St=xt*j-Et*ut,_t=et*j-Et*ht,Mt=_*nt-rt*ot,Tt=_*vt-tt*ot,kt=_*dt-st*ot,wt=rt*vt-tt*nt,ct=rt*dt-st*nt,It=tt*dt-st*vt;return bt*It-ft*ct+at*wt+yt*kt-St*Tt+_t*Mt}},61784:function(Ct){Ct.exports=Rt;function Rt(o,it){var xt=it[0],et=it[1],Et=it[2],mt=it[3],ut=xt+xt,ht=et+et,j=Et+Et,_=xt*ut,rt=et*ut,tt=et*ht,st=Et*ut,ot=Et*ht,nt=Et*j,vt=mt*ut,dt=mt*ht,bt=mt*j;return o[0]=1-tt-nt,o[1]=rt+bt,o[2]=st-dt,o[3]=0,o[4]=rt-bt,o[5]=1-_-nt,o[6]=ot+vt,o[7]=0,o[8]=st+dt,o[9]=ot-vt,o[10]=1-_-tt,o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o}},91616:function(Ct){Ct.exports=Rt;function Rt(o,it,xt){var et,Et,mt,ut=xt[0],ht=xt[1],j=xt[2],_=Math.sqrt(ut*ut+ht*ht+j*j);return Math.abs(_)<1e-6?null:(_=1/_,ut*=_,ht*=_,j*=_,et=Math.sin(it),Et=Math.cos(it),mt=1-Et,o[0]=ut*ut*mt+Et,o[1]=ht*ut*mt+j*et,o[2]=j*ut*mt-ht*et,o[3]=0,o[4]=ut*ht*mt-j*et,o[5]=ht*ht*mt+Et,o[6]=j*ht*mt+ut*et,o[7]=0,o[8]=ut*j*mt+ht*et,o[9]=ht*j*mt-ut*et,o[10]=j*j*mt+Et,o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o)}},51944:function(Ct){Ct.exports=Rt;function Rt(o,it,xt){var et=it[0],Et=it[1],mt=it[2],ut=it[3],ht=et+et,j=Et+Et,_=mt+mt,rt=et*ht,tt=et*j,st=et*_,ot=Et*j,nt=Et*_,vt=mt*_,dt=ut*ht,bt=ut*j,ft=ut*_;return o[0]=1-(ot+vt),o[1]=tt+ft,o[2]=st-bt,o[3]=0,o[4]=tt-ft,o[5]=1-(rt+vt),o[6]=nt+dt,o[7]=0,o[8]=st+bt,o[9]=nt-dt,o[10]=1-(rt+ot),o[11]=0,o[12]=xt[0],o[13]=xt[1],o[14]=xt[2],o[15]=1,o}},69444:function(Ct){Ct.exports=Rt;function Rt(o,it){return o[0]=it[0],o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=it[1],o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=it[2],o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o}},48268:function(Ct){Ct.exports=Rt;function Rt(o,it){return o[0]=1,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=1,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=1,o[11]=0,o[12]=it[0],o[13]=it[1],o[14]=it[2],o[15]=1,o}},21856:function(Ct){Ct.exports=Rt;function Rt(o,it){var xt=Math.sin(it),et=Math.cos(it);return o[0]=1,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=et,o[6]=xt,o[7]=0,o[8]=0,o[9]=-xt,o[10]=et,o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o}},79216:function(Ct){Ct.exports=Rt;function Rt(o,it){var xt=Math.sin(it),et=Math.cos(it);return o[0]=et,o[1]=0,o[2]=-xt,o[3]=0,o[4]=0,o[5]=1,o[6]=0,o[7]=0,o[8]=xt,o[9]=0,o[10]=et,o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o}},57736:function(Ct){Ct.exports=Rt;function Rt(o,it){var xt=Math.sin(it),et=Math.cos(it);return o[0]=et,o[1]=xt,o[2]=0,o[3]=0,o[4]=-xt,o[5]=et,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=1,o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o}},38848:function(Ct){Ct.exports=Rt;function Rt(o,it,xt,et,Et,mt,ut){var ht=1/(xt-it),j=1/(Et-et),_=1/(mt-ut);return o[0]=mt*2*ht,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=mt*2*j,o[6]=0,o[7]=0,o[8]=(xt+it)*ht,o[9]=(Et+et)*j,o[10]=(ut+mt)*_,o[11]=-1,o[12]=0,o[13]=0,o[14]=ut*mt*2*_,o[15]=0,o}},36635:function(Ct){Ct.exports=Rt;function Rt(o){return o[0]=1,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=1,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=1,o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o}},36524:function(Ct,Rt,o){Ct.exports={create:o(54212),clone:o(76860),copy:o(64492),identity:o(36635),transpose:o(86520),invert:o(4308),adjoint:o(12408),determinant:o(70800),multiply:o(80944),translate:o(35176),scale:o(68152),rotate:o(30016),rotateX:o(15456),rotateY:o(64840),rotateZ:o(4192),fromRotation:o(91616),fromRotationTranslation:o(51944),fromScaling:o(69444),fromTranslation:o(48268),fromXRotation:o(21856),fromYRotation:o(79216),fromZRotation:o(57736),fromQuat:o(61784),frustum:o(38848),perspective:o(51296),perspectiveFromFieldOfView:o(63688),ortho:o(97688),lookAt:o(56508),str:o(89412)}},4308:function(Ct){Ct.exports=Rt;function Rt(o,it){var xt=it[0],et=it[1],Et=it[2],mt=it[3],ut=it[4],ht=it[5],j=it[6],_=it[7],rt=it[8],tt=it[9],st=it[10],ot=it[11],nt=it[12],vt=it[13],dt=it[14],bt=it[15],ft=xt*ht-et*ut,at=xt*j-Et*ut,yt=xt*_-mt*ut,St=et*j-Et*ht,_t=et*_-mt*ht,Mt=Et*_-mt*j,Tt=rt*vt-tt*nt,kt=rt*dt-st*nt,wt=rt*bt-ot*nt,ct=tt*dt-st*vt,It=tt*bt-ot*vt,At=st*bt-ot*dt,Ot=ft*At-at*It+yt*ct+St*wt-_t*kt+Mt*Tt;return Ot?(Ot=1/Ot,o[0]=(ht*At-j*It+_*ct)*Ot,o[1]=(Et*It-et*At-mt*ct)*Ot,o[2]=(vt*Mt-dt*_t+bt*St)*Ot,o[3]=(st*_t-tt*Mt-ot*St)*Ot,o[4]=(j*wt-ut*At-_*kt)*Ot,o[5]=(xt*At-Et*wt+mt*kt)*Ot,o[6]=(dt*yt-nt*Mt-bt*at)*Ot,o[7]=(rt*Mt-st*yt+ot*at)*Ot,o[8]=(ut*It-ht*wt+_*Tt)*Ot,o[9]=(et*wt-xt*It-mt*Tt)*Ot,o[10]=(nt*_t-vt*yt+bt*ft)*Ot,o[11]=(tt*yt-rt*_t-ot*ft)*Ot,o[12]=(ht*kt-ut*ct-j*Tt)*Ot,o[13]=(xt*ct-et*kt+Et*Tt)*Ot,o[14]=(vt*at-nt*St-dt*ft)*Ot,o[15]=(rt*St-tt*at+st*ft)*Ot,o):null}},56508:function(Ct,Rt,o){var it=o(36635);Ct.exports=xt;function xt(et,Et,mt,ut){var ht,j,_,rt,tt,st,ot,nt,vt,dt,bt=Et[0],ft=Et[1],at=Et[2],yt=ut[0],St=ut[1],_t=ut[2],Mt=mt[0],Tt=mt[1],kt=mt[2];return Math.abs(bt-Mt)<1e-6&&Math.abs(ft-Tt)<1e-6&&Math.abs(at-kt)<1e-6?it(et):(ot=bt-Mt,nt=ft-Tt,vt=at-kt,dt=1/Math.sqrt(ot*ot+nt*nt+vt*vt),ot*=dt,nt*=dt,vt*=dt,ht=St*vt-_t*nt,j=_t*ot-yt*vt,_=yt*nt-St*ot,dt=Math.sqrt(ht*ht+j*j+_*_),dt?(dt=1/dt,ht*=dt,j*=dt,_*=dt):(ht=0,j=0,_=0),rt=nt*_-vt*j,tt=vt*ht-ot*_,st=ot*j-nt*ht,dt=Math.sqrt(rt*rt+tt*tt+st*st),dt?(dt=1/dt,rt*=dt,tt*=dt,st*=dt):(rt=0,tt=0,st=0),et[0]=ht,et[1]=rt,et[2]=ot,et[3]=0,et[4]=j,et[5]=tt,et[6]=nt,et[7]=0,et[8]=_,et[9]=st,et[10]=vt,et[11]=0,et[12]=-(ht*bt+j*ft+_*at),et[13]=-(rt*bt+tt*ft+st*at),et[14]=-(ot*bt+nt*ft+vt*at),et[15]=1,et)}},80944:function(Ct){Ct.exports=Rt;function Rt(o,it,xt){var et=it[0],Et=it[1],mt=it[2],ut=it[3],ht=it[4],j=it[5],_=it[6],rt=it[7],tt=it[8],st=it[9],ot=it[10],nt=it[11],vt=it[12],dt=it[13],bt=it[14],ft=it[15],at=xt[0],yt=xt[1],St=xt[2],_t=xt[3];return o[0]=at*et+yt*ht+St*tt+_t*vt,o[1]=at*Et+yt*j+St*st+_t*dt,o[2]=at*mt+yt*_+St*ot+_t*bt,o[3]=at*ut+yt*rt+St*nt+_t*ft,at=xt[4],yt=xt[5],St=xt[6],_t=xt[7],o[4]=at*et+yt*ht+St*tt+_t*vt,o[5]=at*Et+yt*j+St*st+_t*dt,o[6]=at*mt+yt*_+St*ot+_t*bt,o[7]=at*ut+yt*rt+St*nt+_t*ft,at=xt[8],yt=xt[9],St=xt[10],_t=xt[11],o[8]=at*et+yt*ht+St*tt+_t*vt,o[9]=at*Et+yt*j+St*st+_t*dt,o[10]=at*mt+yt*_+St*ot+_t*bt,o[11]=at*ut+yt*rt+St*nt+_t*ft,at=xt[12],yt=xt[13],St=xt[14],_t=xt[15],o[12]=at*et+yt*ht+St*tt+_t*vt,o[13]=at*Et+yt*j+St*st+_t*dt,o[14]=at*mt+yt*_+St*ot+_t*bt,o[15]=at*ut+yt*rt+St*nt+_t*ft,o}},97688:function(Ct){Ct.exports=Rt;function Rt(o,it,xt,et,Et,mt,ut){var ht=1/(it-xt),j=1/(et-Et),_=1/(mt-ut);return o[0]=-2*ht,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=-2*j,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=2*_,o[11]=0,o[12]=(it+xt)*ht,o[13]=(Et+et)*j,o[14]=(ut+mt)*_,o[15]=1,o}},51296:function(Ct){Ct.exports=Rt;function Rt(o,it,xt,et,Et){var mt=1/Math.tan(it/2),ut=1/(et-Et);return o[0]=mt/xt,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=mt,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=(Et+et)*ut,o[11]=-1,o[12]=0,o[13]=0,o[14]=2*Et*et*ut,o[15]=0,o}},63688:function(Ct){Ct.exports=Rt;function Rt(o,it,xt,et){var Et=Math.tan(it.upDegrees*Math.PI/180),mt=Math.tan(it.downDegrees*Math.PI/180),ut=Math.tan(it.leftDegrees*Math.PI/180),ht=Math.tan(it.rightDegrees*Math.PI/180),j=2/(ut+ht),_=2/(Et+mt);return o[0]=j,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=_,o[6]=0,o[7]=0,o[8]=-((ut-ht)*j*.5),o[9]=(Et-mt)*_*.5,o[10]=et/(xt-et),o[11]=-1,o[12]=0,o[13]=0,o[14]=et*xt/(xt-et),o[15]=0,o}},30016:function(Ct){Ct.exports=Rt;function Rt(o,it,xt,et){var Et=et[0],mt=et[1],ut=et[2],ht=Math.sqrt(Et*Et+mt*mt+ut*ut),j,_,rt,tt,st,ot,nt,vt,dt,bt,ft,at,yt,St,_t,Mt,Tt,kt,wt,ct,It,At,Ot,Pt;return Math.abs(ht)<1e-6?null:(ht=1/ht,Et*=ht,mt*=ht,ut*=ht,j=Math.sin(xt),_=Math.cos(xt),rt=1-_,tt=it[0],st=it[1],ot=it[2],nt=it[3],vt=it[4],dt=it[5],bt=it[6],ft=it[7],at=it[8],yt=it[9],St=it[10],_t=it[11],Mt=Et*Et*rt+_,Tt=mt*Et*rt+ut*j,kt=ut*Et*rt-mt*j,wt=Et*mt*rt-ut*j,ct=mt*mt*rt+_,It=ut*mt*rt+Et*j,At=Et*ut*rt+mt*j,Ot=mt*ut*rt-Et*j,Pt=ut*ut*rt+_,o[0]=tt*Mt+vt*Tt+at*kt,o[1]=st*Mt+dt*Tt+yt*kt,o[2]=ot*Mt+bt*Tt+St*kt,o[3]=nt*Mt+ft*Tt+_t*kt,o[4]=tt*wt+vt*ct+at*It,o[5]=st*wt+dt*ct+yt*It,o[6]=ot*wt+bt*ct+St*It,o[7]=nt*wt+ft*ct+_t*It,o[8]=tt*At+vt*Ot+at*Pt,o[9]=st*At+dt*Ot+yt*Pt,o[10]=ot*At+bt*Ot+St*Pt,o[11]=nt*At+ft*Ot+_t*Pt,it!==o&&(o[12]=it[12],o[13]=it[13],o[14]=it[14],o[15]=it[15]),o)}},15456:function(Ct){Ct.exports=Rt;function Rt(o,it,xt){var et=Math.sin(xt),Et=Math.cos(xt),mt=it[4],ut=it[5],ht=it[6],j=it[7],_=it[8],rt=it[9],tt=it[10],st=it[11];return it!==o&&(o[0]=it[0],o[1]=it[1],o[2]=it[2],o[3]=it[3],o[12]=it[12],o[13]=it[13],o[14]=it[14],o[15]=it[15]),o[4]=mt*Et+_*et,o[5]=ut*Et+rt*et,o[6]=ht*Et+tt*et,o[7]=j*Et+st*et,o[8]=_*Et-mt*et,o[9]=rt*Et-ut*et,o[10]=tt*Et-ht*et,o[11]=st*Et-j*et,o}},64840:function(Ct){Ct.exports=Rt;function Rt(o,it,xt){var et=Math.sin(xt),Et=Math.cos(xt),mt=it[0],ut=it[1],ht=it[2],j=it[3],_=it[8],rt=it[9],tt=it[10],st=it[11];return it!==o&&(o[4]=it[4],o[5]=it[5],o[6]=it[6],o[7]=it[7],o[12]=it[12],o[13]=it[13],o[14]=it[14],o[15]=it[15]),o[0]=mt*Et-_*et,o[1]=ut*Et-rt*et,o[2]=ht*Et-tt*et,o[3]=j*Et-st*et,o[8]=mt*et+_*Et,o[9]=ut*et+rt*Et,o[10]=ht*et+tt*Et,o[11]=j*et+st*Et,o}},4192:function(Ct){Ct.exports=Rt;function Rt(o,it,xt){var et=Math.sin(xt),Et=Math.cos(xt),mt=it[0],ut=it[1],ht=it[2],j=it[3],_=it[4],rt=it[5],tt=it[6],st=it[7];return it!==o&&(o[8]=it[8],o[9]=it[9],o[10]=it[10],o[11]=it[11],o[12]=it[12],o[13]=it[13],o[14]=it[14],o[15]=it[15]),o[0]=mt*Et+_*et,o[1]=ut*Et+rt*et,o[2]=ht*Et+tt*et,o[3]=j*Et+st*et,o[4]=_*Et-mt*et,o[5]=rt*Et-ut*et,o[6]=tt*Et-ht*et,o[7]=st*Et-j*et,o}},68152:function(Ct){Ct.exports=Rt;function Rt(o,it,xt){var et=xt[0],Et=xt[1],mt=xt[2];return o[0]=it[0]*et,o[1]=it[1]*et,o[2]=it[2]*et,o[3]=it[3]*et,o[4]=it[4]*Et,o[5]=it[5]*Et,o[6]=it[6]*Et,o[7]=it[7]*Et,o[8]=it[8]*mt,o[9]=it[9]*mt,o[10]=it[10]*mt,o[11]=it[11]*mt,o[12]=it[12],o[13]=it[13],o[14]=it[14],o[15]=it[15],o}},89412:function(Ct){Ct.exports=Rt;function Rt(o){return"mat4("+o[0]+", "+o[1]+", "+o[2]+", "+o[3]+", "+o[4]+", "+o[5]+", "+o[6]+", "+o[7]+", "+o[8]+", "+o[9]+", "+o[10]+", "+o[11]+", "+o[12]+", "+o[13]+", "+o[14]+", "+o[15]+")"}},35176:function(Ct){Ct.exports=Rt;function Rt(o,it,xt){var et=xt[0],Et=xt[1],mt=xt[2],ut,ht,j,_,rt,tt,st,ot,nt,vt,dt,bt;return it===o?(o[12]=it[0]*et+it[4]*Et+it[8]*mt+it[12],o[13]=it[1]*et+it[5]*Et+it[9]*mt+it[13],o[14]=it[2]*et+it[6]*Et+it[10]*mt+it[14],o[15]=it[3]*et+it[7]*Et+it[11]*mt+it[15]):(ut=it[0],ht=it[1],j=it[2],_=it[3],rt=it[4],tt=it[5],st=it[6],ot=it[7],nt=it[8],vt=it[9],dt=it[10],bt=it[11],o[0]=ut,o[1]=ht,o[2]=j,o[3]=_,o[4]=rt,o[5]=tt,o[6]=st,o[7]=ot,o[8]=nt,o[9]=vt,o[10]=dt,o[11]=bt,o[12]=ut*et+rt*Et+nt*mt+it[12],o[13]=ht*et+tt*Et+vt*mt+it[13],o[14]=j*et+st*Et+dt*mt+it[14],o[15]=_*et+ot*Et+bt*mt+it[15]),o}},86520:function(Ct){Ct.exports=Rt;function Rt(o,it){if(o===it){var xt=it[1],et=it[2],Et=it[3],mt=it[6],ut=it[7],ht=it[11];o[1]=it[4],o[2]=it[8],o[3]=it[12],o[4]=xt,o[6]=it[9],o[7]=it[13],o[8]=et,o[9]=mt,o[11]=it[14],o[12]=Et,o[13]=ut,o[14]=ht}else o[0]=it[0],o[1]=it[4],o[2]=it[8],o[3]=it[12],o[4]=it[1],o[5]=it[5],o[6]=it[9],o[7]=it[13],o[8]=it[2],o[9]=it[6],o[10]=it[10],o[11]=it[14],o[12]=it[3],o[13]=it[7],o[14]=it[11],o[15]=it[15];return o}},23352:function(Ct,Rt,o){var it=o(42771),xt=o(55616),et=o(28624),Et=o(55212),mt=o(60463),ut=o(72160),ht=o(33888),j=o(14144),_=o(51160),rt=o(58908),tt=o(65819),st=o(23464),ot=o(63768),nt=o(50896),vt=o(71920),dt=o(47520),bt=o(308),ft=bt.nextPow2,at=new mt,yt=!1;if(document.body){var St=document.body.appendChild(document.createElement("div"));St.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(St).fontStretch&&(yt=!0),document.body.removeChild(St)}var _t=function(kt){Mt(kt)?(kt={regl:kt},this.gl=kt.regl._gl):this.gl=Et(kt),this.shader=at.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=kt.regl||et({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),at.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(rt(kt)?kt:{})};_t.prototype.createShader=function(){var kt=this.regl,wt=kt({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:kt.prop("count"),offset:kt.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:kt.this("sizeBuffer")},width:{offset:0,stride:8,buffer:kt.this("sizeBuffer")},char:kt.this("charBuffer"),position:kt.this("position")},uniforms:{atlasSize:function(It,At){return[At.atlas.width,At.atlas.height]},atlasDim:function(It,At){return[At.atlas.cols,At.atlas.rows]},atlas:function(It,At){return At.atlas.texture},charStep:function(It,At){return At.atlas.step},em:function(It,At){return At.atlas.em},color:kt.prop("color"),opacity:kt.prop("opacity"),viewport:kt.this("viewportArray"),scale:kt.this("scale"),align:kt.prop("align"),baseline:kt.prop("baseline"),translate:kt.this("translate"),positionOffset:kt.prop("positionOffset")},primitive:"points",viewport:kt.this("viewport"),vert:` + */function Nt(_r,Er){if(_r===Er)return 0;for(var Rr=_r.length,zr=Er.length,Or=0,kr=Math.min(Rr,zr);Or"u"?[]:new Uint8Array(256),et=0;et>2],rt+=it[(ht[j]&3)<<4|ht[j+1]>>4],rt+=it[(ht[j+1]&15)<<2|ht[j+2]>>6],rt+=it[ht[j+2]&63];return _%3===2?rt=rt.substring(0,rt.length-1)+"=":_%3===1&&(rt=rt.substring(0,rt.length-2)+"=="),rt},yt=function(ut){var ht=ut.length*.75,j=ut.length,_,rt=0,tt,st,ot,nt;ut[ut.length-1]==="="&&(ht--,ut[ut.length-2]==="="&&ht--);var vt=new ArrayBuffer(ht),dt=new Uint8Array(vt);for(_=0;_>4,dt[rt++]=(st&15)<<4|ot>>2,dt[rt++]=(ot&3)<<6|nt&63;return vt}},59968:function(Ct,Rt){Rt.byteLength=ht,Rt.toByteArray=_,Rt.fromByteArray=st;for(var o=[],it=[],xt=typeof Uint8Array<"u"?Uint8Array:Array,et="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Tt=0,yt=et.length;Tt0)throw new Error("Invalid string. Length must be a multiple of 4");var vt=ot.indexOf("=");vt===-1&&(vt=nt);var dt=vt===nt?0:4-vt%4;return[vt,dt]}function ht(ot){var nt=ut(ot),vt=nt[0],dt=nt[1];return(vt+dt)*3/4-dt}function j(ot,nt,vt){return(nt+vt)*3/4-vt}function _(ot){var nt,vt=ut(ot),dt=vt[0],bt=vt[1],ft=new xt(j(ot,dt,bt)),at=0,mt=bt>0?dt-4:dt,St;for(St=0;St>16&255,ft[at++]=nt>>8&255,ft[at++]=nt&255;return bt===2&&(nt=it[ot.charCodeAt(St)]<<2|it[ot.charCodeAt(St+1)]>>4,ft[at++]=nt&255),bt===1&&(nt=it[ot.charCodeAt(St)]<<10|it[ot.charCodeAt(St+1)]<<4|it[ot.charCodeAt(St+2)]>>2,ft[at++]=nt>>8&255,ft[at++]=nt&255),ft}function rt(ot){return o[ot>>18&63]+o[ot>>12&63]+o[ot>>6&63]+o[ot&63]}function tt(ot,nt,vt){for(var dt,bt=[],ft=nt;ftmt?mt:at+ft));return dt===1?(nt=ot[vt-1],bt.push(o[nt>>2]+o[nt<<4&63]+"==")):dt===2&&(nt=(ot[vt-2]<<8)+ot[vt-1],bt.push(o[nt>>10]+o[nt>>4&63]+o[nt<<2&63]+"=")),bt.join("")}},64928:function(Ct){function Rt(yt,ut,ht,j,_){for(var rt=_+1;j<=_;){var tt=j+_>>>1,st=yt[tt],ot=ht!==void 0?ht(st,ut):st-ut;ot>=0?(rt=tt,_=tt-1):j=tt+1}return rt}function o(yt,ut,ht,j,_){for(var rt=_+1;j<=_;){var tt=j+_>>>1,st=yt[tt],ot=ht!==void 0?ht(st,ut):st-ut;ot>0?(rt=tt,_=tt-1):j=tt+1}return rt}function it(yt,ut,ht,j,_){for(var rt=j-1;j<=_;){var tt=j+_>>>1,st=yt[tt],ot=ht!==void 0?ht(st,ut):st-ut;ot<0?(rt=tt,j=tt+1):_=tt-1}return rt}function xt(yt,ut,ht,j,_){for(var rt=j-1;j<=_;){var tt=j+_>>>1,st=yt[tt],ot=ht!==void 0?ht(st,ut):st-ut;ot<=0?(rt=tt,j=tt+1):_=tt-1}return rt}function et(yt,ut,ht,j,_){for(;j<=_;){var rt=j+_>>>1,tt=yt[rt],st=ht!==void 0?ht(tt,ut):tt-ut;if(st===0)return rt;st<=0?j=rt+1:_=rt-1}return-1}function Tt(yt,ut,ht,j,_,rt){return typeof ht=="function"?rt(yt,ut,ht,j===void 0?0:j|0,_===void 0?yt.length-1:_|0):rt(yt,ut,void 0,ht===void 0?0:ht|0,j===void 0?yt.length-1:j|0)}Ct.exports={ge:function(yt,ut,ht,j,_){return Tt(yt,ut,ht,j,_,Rt)},gt:function(yt,ut,ht,j,_){return Tt(yt,ut,ht,j,_,o)},lt:function(yt,ut,ht,j,_){return Tt(yt,ut,ht,j,_,it)},le:function(yt,ut,ht,j,_){return Tt(yt,ut,ht,j,_,xt)},eq:function(yt,ut,ht,j,_){return Tt(yt,ut,ht,j,_,et)}}},308:function(Ct,Rt){var o=32;Rt.INT_BITS=o,Rt.INT_MAX=2147483647,Rt.INT_MIN=-1<0)-(et<0)},Rt.abs=function(et){var Tt=et>>o-1;return(et^Tt)-Tt},Rt.min=function(et,Tt){return Tt^(et^Tt)&-(et65535)<<4,et>>>=Tt,yt=(et>255)<<3,et>>>=yt,Tt|=yt,yt=(et>15)<<2,et>>>=yt,Tt|=yt,yt=(et>3)<<1,et>>>=yt,Tt|=yt,Tt|et>>1},Rt.log10=function(et){return et>=1e9?9:et>=1e8?8:et>=1e7?7:et>=1e6?6:et>=1e5?5:et>=1e4?4:et>=1e3?3:et>=100?2:et>=10?1:0},Rt.popCount=function(et){return et=et-(et>>>1&1431655765),et=(et&858993459)+(et>>>2&858993459),(et+(et>>>4)&252645135)*16843009>>>24};function it(et){var Tt=32;return et&=-et,et&&Tt--,et&65535&&(Tt-=16),et&16711935&&(Tt-=8),et&252645135&&(Tt-=4),et&858993459&&(Tt-=2),et&1431655765&&(Tt-=1),Tt}Rt.countTrailingZeros=it,Rt.nextPow2=function(et){return et+=et===0,--et,et|=et>>>1,et|=et>>>2,et|=et>>>4,et|=et>>>8,et|=et>>>16,et+1},Rt.prevPow2=function(et){return et|=et>>>1,et|=et>>>2,et|=et>>>4,et|=et>>>8,et|=et>>>16,et-(et>>>1)},Rt.parity=function(et){return et^=et>>>16,et^=et>>>8,et^=et>>>4,et&=15,27030>>>et&1};var xt=new Array(256);(function(et){for(var Tt=0;Tt<256;++Tt){var yt=Tt,ut=Tt,ht=7;for(yt>>>=1;yt;yt>>>=1)ut<<=1,ut|=yt&1,--ht;et[Tt]=ut<>>8&255]<<16|xt[et>>>16&255]<<8|xt[et>>>24&255]},Rt.interleave2=function(et,Tt){return et&=65535,et=(et|et<<8)&16711935,et=(et|et<<4)&252645135,et=(et|et<<2)&858993459,et=(et|et<<1)&1431655765,Tt&=65535,Tt=(Tt|Tt<<8)&16711935,Tt=(Tt|Tt<<4)&252645135,Tt=(Tt|Tt<<2)&858993459,Tt=(Tt|Tt<<1)&1431655765,et|Tt<<1},Rt.deinterleave2=function(et,Tt){return et=et>>>Tt&1431655765,et=(et|et>>>1)&858993459,et=(et|et>>>2)&252645135,et=(et|et>>>4)&16711935,et=(et|et>>>16)&65535,et<<16>>16},Rt.interleave3=function(et,Tt,yt){return et&=1023,et=(et|et<<16)&4278190335,et=(et|et<<8)&251719695,et=(et|et<<4)&3272356035,et=(et|et<<2)&1227133513,Tt&=1023,Tt=(Tt|Tt<<16)&4278190335,Tt=(Tt|Tt<<8)&251719695,Tt=(Tt|Tt<<4)&3272356035,Tt=(Tt|Tt<<2)&1227133513,et|=Tt<<1,yt&=1023,yt=(yt|yt<<16)&4278190335,yt=(yt|yt<<8)&251719695,yt=(yt|yt<<4)&3272356035,yt=(yt|yt<<2)&1227133513,et|yt<<2},Rt.deinterleave3=function(et,Tt){return et=et>>>Tt&1227133513,et=(et|et>>>2)&3272356035,et=(et|et>>>4)&251719695,et=(et|et>>>8)&4278190335,et=(et|et>>>16)&1023,et<<22>>22},Rt.nextCombination=function(et){var Tt=et|et-1;return Tt+1|(~Tt&-~Tt)-1>>>it(et)+1}},29620:function(Ct,Rt,o){var it=o(32420);Ct.exports=et;var xt=1e20;function et(ut,ht){ht||(ht={});var j=ht.cutoff==null?.25:ht.cutoff,_=ht.radius==null?8:ht.radius,rt=ht.channel||0,tt,st,ot,nt,vt,dt,bt,ft,at,mt,St;if(ArrayBuffer.isView(ut)||Array.isArray(ut)){if(!ht.width||!ht.height)throw Error("For raw data width and height should be provided by options");tt=ht.width,st=ht.height,nt=ut,ht.stride?dt=ht.stride:dt=Math.floor(ut.length/tt/st)}else window.HTMLCanvasElement&&ut instanceof window.HTMLCanvasElement?(ft=ut,bt=ft.getContext("2d"),tt=ft.width,st=ft.height,at=bt.getImageData(0,0,tt,st),nt=at.data,dt=4):window.CanvasRenderingContext2D&&ut instanceof window.CanvasRenderingContext2D?(ft=ut.canvas,bt=ut,tt=ft.width,st=ft.height,at=bt.getImageData(0,0,tt,st),nt=at.data,dt=4):window.ImageData&&ut instanceof window.ImageData&&(at=ut,tt=ut.width,st=ut.height,nt=at.data,dt=4);if(ot=Math.max(tt,st),window.Uint8ClampedArray&&nt instanceof window.Uint8ClampedArray||window.Uint8Array&&nt instanceof window.Uint8Array)for(vt=nt,nt=Array(tt*st),mt=0,St=vt.length;mt-1?xt(ht):ht}},57916:function(Ct,Rt,o){var it=o(8844),xt=o(53664),et=o(14500),Tt=xt("%TypeError%"),yt=xt("%Function.prototype.apply%"),ut=xt("%Function.prototype.call%"),ht=xt("%Reflect.apply%",!0)||it.call(ut,yt),j=xt("%Object.defineProperty%",!0),_=xt("%Math.max%");if(j)try{j({},"a",{value:1})}catch{j=null}Ct.exports=function(st){if(typeof st!="function")throw new Tt("a function is required");var ot=ht(it,ut,arguments);return et(ot,1+_(0,st.length-(arguments.length-1)),!0)};var rt=function(){return ht(it,yt,arguments)};j?j(Ct.exports,"apply",{value:rt}):Ct.exports.apply=rt},32420:function(Ct){Ct.exports=Rt;function Rt(o,it,xt){return itxt?xt:o:oit?it:o}},3808:function(Ct,Rt,o){var it=o(32420);Ct.exports=xt,Ct.exports.to=xt,Ct.exports.from=et;function xt(Tt,yt){yt==null&&(yt=!0);var ut=Tt[0],ht=Tt[1],j=Tt[2],_=Tt[3];_==null&&(_=yt?1:255),yt&&(ut*=255,ht*=255,j*=255,_*=255),ut=it(ut,0,255)&255,ht=it(ht,0,255)&255,j=it(j,0,255)&255,_=it(_,0,255)&255;var rt=ut*16777216+(ht<<16)+(j<<8)+_;return rt}function et(Tt,yt){Tt=+Tt;var ut=Tt>>>24,ht=(Tt&16711680)>>>16,j=(Tt&65280)>>>8,_=Tt&255;return yt===!1?[ut,ht,j,_]:[ut/255,ht/255,j/255,_/255]}},17592:function(Ct){Ct.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},72160:function(Ct,Rt,o){var it=o(96824),xt=o(32420),et=o(72512);Ct.exports=function(ut,ht){(ht==="float"||!ht)&&(ht="array"),ht==="uint"&&(ht="uint8"),ht==="uint_clamped"&&(ht="uint8_clamped");var j=et(ht),_=new j(4),rt=ht!=="uint8"&&ht!=="uint8_clamped";return(!ut.length||typeof ut=="string")&&(ut=it(ut),ut[0]/=255,ut[1]/=255,ut[2]/=255),Tt(ut)?(_[0]=ut[0],_[1]=ut[1],_[2]=ut[2],_[3]=ut[3]!=null?ut[3]:255,rt&&(_[0]/=255,_[1]/=255,_[2]/=255,_[3]/=255),_):(rt?(_[0]=ut[0],_[1]=ut[1],_[2]=ut[2],_[3]=ut[3]!=null?ut[3]:1):(_[0]=xt(Math.floor(ut[0]*255),0,255),_[1]=xt(Math.floor(ut[1]*255),0,255),_[2]=xt(Math.floor(ut[2]*255),0,255),_[3]=ut[3]==null?255:xt(Math.floor(ut[3]*255),0,255)),_)};function Tt(yt){return!!(yt instanceof Uint8Array||yt instanceof Uint8ClampedArray||Array.isArray(yt)&&(yt[0]>1||yt[0]===0)&&(yt[1]>1||yt[1]===0)&&(yt[2]>1||yt[2]===0)&&(!yt[3]||yt[3]>1))}},96824:function(Ct,Rt,o){var it=o(95532),xt=o(53576),et=o(32420);Ct.exports=function(yt){var ut,ht=it(yt);return ht.space?(ut=Array(3),ut[0]=et(ht.values[0],0,255),ut[1]=et(ht.values[1],0,255),ut[2]=et(ht.values[2],0,255),ht.space[0]==="h"&&(ut=xt.rgb(ut)),ut.push(et(ht.alpha,0,1)),ut):[]}},95532:function(Ct,Rt,o){var it=o(17592);Ct.exports=et;var xt={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function et(Tt){var yt,ut=[],ht=1,j;if(typeof Tt=="string")if(Tt=Tt.toLowerCase(),it[Tt])ut=it[Tt].slice(),j="rgb";else if(Tt==="transparent")ht=0,j="rgb",ut=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(Tt)){var _=Tt.slice(1),rt=_.length,tt=rt<=4;ht=1,tt?(ut=[parseInt(_[0]+_[0],16),parseInt(_[1]+_[1],16),parseInt(_[2]+_[2],16)],rt===4&&(ht=parseInt(_[3]+_[3],16)/255)):(ut=[parseInt(_[0]+_[1],16),parseInt(_[2]+_[3],16),parseInt(_[4]+_[5],16)],rt===8&&(ht=parseInt(_[6]+_[7],16)/255)),ut[0]||(ut[0]=0),ut[1]||(ut[1]=0),ut[2]||(ut[2]=0),j="rgb"}else if(yt=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(Tt)){var st=yt[1],ot=st==="rgb",_=st.replace(/a$/,"");j=_;var rt=_==="cmyk"?4:_==="gray"?1:3;ut=yt[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(dt,bt){if(/%$/.test(dt))return bt===rt?parseFloat(dt)/100:_==="rgb"?parseFloat(dt)*255/100:parseFloat(dt);if(_[bt]==="h"){if(/deg$/.test(dt))return parseFloat(dt);if(xt[dt]!==void 0)return xt[dt]}return parseFloat(dt)}),st===_&&ut.push(1),ht=ot||ut[rt]===void 0?1:ut[rt],ut=ut.slice(0,rt)}else Tt.length>10&&/[0-9](?:\s|\/)/.test(Tt)&&(ut=Tt.match(/([0-9]+)/g).map(function(nt){return parseFloat(nt)}),j=Tt.match(/([a-z])/ig).join("").toLowerCase());else isNaN(Tt)?Array.isArray(Tt)||Tt.length?(ut=[Tt[0],Tt[1],Tt[2]],j="rgb",ht=Tt.length===4?Tt[3]:1):Tt instanceof Object&&(Tt.r!=null||Tt.red!=null||Tt.R!=null?(j="rgb",ut=[Tt.r||Tt.red||Tt.R||0,Tt.g||Tt.green||Tt.G||0,Tt.b||Tt.blue||Tt.B||0]):(j="hsl",ut=[Tt.h||Tt.hue||Tt.H||0,Tt.s||Tt.saturation||Tt.S||0,Tt.l||Tt.lightness||Tt.L||Tt.b||Tt.brightness]),ht=Tt.a||Tt.alpha||Tt.opacity||1,Tt.opacity!=null&&(ht/=100)):(j="rgb",ut=[Tt>>>16,(Tt&65280)>>>8,Tt&255]);return{space:j,values:ut,alpha:ht}}},53576:function(Ct,Rt,o){var it=o(19336);Ct.exports={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(xt){var et=xt[0]/360,Tt=xt[1]/100,yt=xt[2]/100,ut,ht,j,_,rt;if(Tt===0)return rt=yt*255,[rt,rt,rt];yt<.5?ht=yt*(1+Tt):ht=yt+Tt-yt*Tt,ut=2*yt-ht,_=[0,0,0];for(var tt=0;tt<3;tt++)j=et+.3333333333333333*-(tt-1),j<0?j++:j>1&&j--,6*j<1?rt=ut+(ht-ut)*6*j:2*j<1?rt=ht:3*j<2?rt=ut+(ht-ut)*(.6666666666666666-j)*6:rt=ut,_[tt]=rt*255;return _}},it.hsl=function(xt){var et=xt[0]/255,Tt=xt[1]/255,yt=xt[2]/255,ut=Math.min(et,Tt,yt),ht=Math.max(et,Tt,yt),j=ht-ut,_,rt,tt;return ht===ut?_=0:et===ht?_=(Tt-yt)/j:Tt===ht?_=2+(yt-et)/j:yt===ht&&(_=4+(et-Tt)/j),_=Math.min(_*60,360),_<0&&(_+=360),tt=(ut+ht)/2,ht===ut?rt=0:tt<=.5?rt=j/(ht+ut):rt=j/(2-ht-ut),[_,rt*100,tt*100]}},19336:function(Ct){Ct.exports={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}},36116:function(Ct){Ct.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|ç)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|é)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|é)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|ã)o.?tom(e|é)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}},42771:function(Ct,Rt,o){Ct.exports={parse:o(46416),stringify:o(49395)}},8744:function(Ct,Rt,o){var it=o(30584);Ct.exports={isSize:function(et){return/^[\d\.]/.test(et)||et.indexOf("/")!==-1||it.indexOf(et)!==-1}}},46416:function(Ct,Rt,o){var it=o(92384),xt=o(68194),et=o(3748),Tt=o(2904),yt=o(47916),ut=o(7294),ht=o(39956),j=o(8744).isSize;Ct.exports=rt;var _=rt.cache={};function rt(st){if(typeof st!="string")throw new Error("Font argument must be a string.");if(_[st])return _[st];if(st==="")throw new Error("Cannot parse an empty string.");if(et.indexOf(st)!==-1)return _[st]={system:st};for(var ot={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},nt=ht(st,/\s+/),vt;vt=nt.shift();){if(xt.indexOf(vt)!==-1)return["style","variant","weight","stretch"].forEach(function(bt){ot[bt]=vt}),_[st]=ot;if(yt.indexOf(vt)!==-1){ot.style=vt;continue}if(vt==="normal"||vt==="small-caps"){ot.variant=vt;continue}if(ut.indexOf(vt)!==-1){ot.stretch=vt;continue}if(Tt.indexOf(vt)!==-1){ot.weight=vt;continue}if(j(vt)){var dt=ht(vt,"/");if(ot.size=dt[0],dt[1]!=null?ot.lineHeight=tt(dt[1]):nt[0]==="/"&&(nt.shift(),ot.lineHeight=tt(nt.shift())),!nt.length)throw new Error("Missing required font-family.");return ot.family=ht(nt.join(" "),/\s*,\s*/).map(it),_[st]=ot}throw new Error("Unknown or unsupported font token: "+vt)}throw new Error("Missing required font-size.")}function tt(st){var ot=parseFloat(st);return ot.toString()===st?ot:st}},49395:function(Ct,Rt,o){var it=o(55616),xt=o(8744).isSize,et=st(o(68194)),Tt=st(o(3748)),yt=st(o(2904)),ut=st(o(47916)),ht=st(o(7294)),j={normal:1,"small-caps":1},_={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},rt={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};Ct.exports=function(nt){if(nt=it(nt,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"}),nt.system)return nt.system&&tt(nt.system,Tt),nt.system;if(tt(nt.style,ut),tt(nt.variant,j),tt(nt.weight,yt),tt(nt.stretch,ht),nt.size==null&&(nt.size=rt.size),typeof nt.size=="number"&&(nt.size+="px"),!xt)throw Error("Bad size value `"+nt.size+"`");nt.family||(nt.family=rt.family),Array.isArray(nt.family)&&(nt.family.length||(nt.family=[rt.family]),nt.family=nt.family.map(function(dt){return _[dt]?dt:'"'+dt+'"'}).join(", "));var vt=[];return vt.push(nt.style),nt.variant!==nt.style&&vt.push(nt.variant),nt.weight!==nt.variant&&nt.weight!==nt.style&&vt.push(nt.weight),nt.stretch!==nt.weight&&nt.stretch!==nt.variant&&nt.stretch!==nt.style&&vt.push(nt.stretch),vt.push(nt.size+(nt.lineHeight==null||nt.lineHeight==="normal"||nt.lineHeight+""=="1"?"":"/"+nt.lineHeight)),vt.push(nt.family),vt.filter(Boolean).join(" ")};function tt(ot,nt){if(ot&&!nt[ot]&&!et[ot])throw Error("Unknown keyword `"+ot+"`");return ot}function st(ot){for(var nt={},vt=0;vtst?1:tt>=st?0:NaN}function xt(tt){return tt.length===1&&(tt=et(tt)),{left:function(st,ot,nt,vt){for(nt==null&&(nt=0),vt==null&&(vt=st.length);nt>>1;tt(st[dt],ot)<0?nt=dt+1:vt=dt}return nt},right:function(st,ot,nt,vt){for(nt==null&&(nt=0),vt==null&&(vt=st.length);nt>>1;tt(st[dt],ot)>0?vt=dt:nt=dt+1}return nt}}}function et(tt){return function(st,ot){return it(tt(st),ot)}}xt(it);function Tt(tt,st){var ot=tt.length,nt=-1,vt,dt;if(st==null){for(;++nt=vt)for(dt=vt;++ntdt&&(dt=vt)}else for(;++nt=vt)for(dt=vt;++ntdt&&(dt=vt);return dt}function yt(tt){return tt===null?NaN:+tt}function ut(tt,st){var ot=tt.length,nt=ot,vt=-1,dt,bt=0;if(st==null)for(;++vt=0;)for(bt=tt[st],ot=bt.length;--ot>=0;)dt[--vt]=bt[ot];return dt}function j(tt,st){var ot=tt.length,nt=-1,vt,dt;if(st==null){for(;++nt=vt)for(dt=vt;++ntvt&&(dt=vt)}else for(;++nt=vt)for(dt=vt;++ntvt&&(dt=vt);return dt}function _(tt,st,ot){tt=+tt,st=+st,ot=(vt=arguments.length)<2?(st=tt,tt=0,1):vt<3?1:+ot;for(var nt=-1,vt=Math.max(0,Math.ceil((st-tt)/ot))|0,dt=new Array(vt);++nt=st.length)return nt!=null&&at.sort(nt),vt!=null?vt(at):at;for(var Mt=-1,Et=at.length,kt=st[mt++],wt,ct,It=Tt(),At,Ot=St();++Mtst.length)return at;var St,_t=ot[mt-1];return vt!=null&&mt>=st.length?St=at.entries():(St=[],at.each(function(Mt,Et){St.push({key:Et,values:ft(Mt,mt)})})),_t!=null?St.sort(function(Mt,Et){return _t(Mt.key,Et.key)}):St}return dt={object:function(at){return bt(at,0,ut,ht)},map:function(at){return bt(at,0,j,_)},entries:function(at){return ft(bt(at,0,j,_),0)},key:function(at){return st.push(at),dt},sortKeys:function(at){return ot[st.length-1]=at,dt},sortValues:function(at){return nt=at,dt},rollup:function(at){return vt=at,dt}}}function ut(){return{}}function ht(st,ot,nt){st[ot]=nt}function j(){return Tt()}function _(st,ot,nt){st.set(ot,nt)}function rt(){}var tt=Tt.prototype;rt.prototype={constructor:rt,has:tt.has,add:function(st){return st+="",this[it+st]=st,this},remove:tt.remove,clear:tt.clear,values:tt.keys,size:tt.size,empty:tt.empty,each:tt.each}},49812:function(Ct,Rt,o){o.r(Rt),o.d(Rt,{forceCenter:function(){return it},forceCollide:function(){return It},forceLink:function(){return zt},forceManyBody:function(){return Nr},forceRadial:function(){return Qr},forceSimulation:function(){return kr},forceX:function(){return sn},forceY:function(){return un}});function it(en,Xr){var ln;en==null&&(en=0),Xr==null&&(Xr=0);function mn(){var pn,Tn=ln.length,Zr,Fr=0,Ur=0;for(pn=0;pn=(wr=(Fr+Wr)/2))?Fr=wr:Wr=wr,(xr=ln>=(pr=(Ur+Gr)/2))?Ur=pr:Gr=pr,pn=Tn,!(Tn=Tn[Pr=xr<<1|ur]))return pn[Pr]=Zr,en;if(Dr=+en._x.call(null,Tn.data),Sr=+en._y.call(null,Tn.data),Xr===Dr&&ln===Sr)return Zr.next=Tn,pn?pn[Pr]=Zr:en._root=Zr,en;do pn=pn?pn[Pr]=new Array(4):en._root=new Array(4),(ur=Xr>=(wr=(Fr+Wr)/2))?Fr=wr:Wr=wr,(xr=ln>=(pr=(Ur+Gr)/2))?Ur=pr:Gr=pr;while((Pr=xr<<1|ur)===(Vr=(Sr>=pr)<<1|Dr>=wr));return pn[Vr]=Tn,pn[Pr]=Zr,en}function ut(en){var Xr,ln,mn=en.length,pn,Tn,Zr=new Array(mn),Fr=new Array(mn),Ur=1/0,Wr=1/0,Gr=-1/0,wr=-1/0;for(ln=0;lnGr&&(Gr=pn),Tnwr&&(wr=Tn));if(Ur>Gr||Wr>wr)return this;for(this.cover(Ur,Wr).cover(Gr,wr),ln=0;lnen||en>=pn||mn>Xr||Xr>=Tn;)switch(Wr=(XrGr||(Fr=Sr.y0)>wr||(Ur=Sr.x1)=Pr)<<1|en>=xr)&&(Sr=pr[pr.length-1],pr[pr.length-1]=pr[pr.length-1-ur],pr[pr.length-1-ur]=Sr)}else{var Vr=en-+this._x.call(null,Dr.data),qr=Xr-+this._y.call(null,Dr.data),rn=Vr*Vr+qr*qr;if(rn=(pr=(Zr+Ur)/2))?Zr=pr:Ur=pr,(ur=wr>=(Dr=(Fr+Wr)/2))?Fr=Dr:Wr=Dr,Xr=ln,!(ln=ln[xr=ur<<1|Sr]))return this;if(!ln.length)break;(Xr[xr+1&3]||Xr[xr+2&3]||Xr[xr+3&3])&&(mn=Xr,Pr=xr)}for(;ln.data!==en;)if(pn=ln,!(ln=ln.next))return this;return(Tn=ln.next)&&delete ln.next,pn?(Tn?pn.next=Tn:delete pn.next,this):Xr?(Tn?Xr[xr]=Tn:delete Xr[xr],(ln=Xr[0]||Xr[1]||Xr[2]||Xr[3])&&ln===(Xr[3]||Xr[2]||Xr[1]||Xr[0])&&!ln.length&&(mn?mn[Pr]=ln:this._root=ln),this):(this._root=Tn,this)}function ot(en){for(var Xr=0,ln=en.length;Xrwr.index){var _i=pr-fn.x-fn.vx,yn=Dr-fn.y-fn.vy,Kn=_i*_i+yn*yn;Knpr+Un||CnDr+Un||xnUr.r&&(Ur.r=Ur[Wr].r)}function Fr(){if(Xr){var Ur,Wr=Xr.length,Gr;for(ln=new Array(Wr),Ur=0;Ur=0&&(mn=ln.slice(pn+1),ln=ln.slice(0,pn)),ln&&!Xr.hasOwnProperty(ln))throw new Error("unknown type: "+ln);return{type:ln,name:mn}})}$t.prototype=Nt.prototype={constructor:$t,on:function(en,Xr){var ln=this._,mn=Ut(en+"",ln),pn,Tn=-1,Zr=mn.length;if(arguments.length<2){for(;++Tn0)for(var ln=new Array(pn),mn=0,pn,Tn;mn=0&&en._call.call(null,Xr),en=en._next;--qt}function br(){ar=(jt=Zt.now())+sr,qt=er=0;try{Ar()}finally{qt=0,Tr(),ar=0}}function Ir(){var en=Zt.now(),Xr=en-jt;Xr>Jt&&(sr-=Xr,jt=en)}function Tr(){for(var en,Xr=Yt,ln,mn=1/0;Xr;)Xr._call?(mn>Xr._time&&(mn=Xr._time),en=Xr,Xr=Xr._next):(ln=Xr._next,Xr._next=null,Xr=en?en._next=ln:Yt=ln);rr=en,_r(mn)}function _r(en){if(!qt){er&&(er=clearTimeout(er));var Xr=en-ar;Xr>24?(en<1/0&&(er=setTimeout(br,en-Zt.now()-sr)),lr&&(lr=clearInterval(lr))):(lr||(jt=Zt.now(),lr=setInterval(Ir,Jt)),qt=1,Kt(br))}}function Er(en){return en.x}function Rr(en){return en.y}var zr=10,Or=Math.PI*(3-Math.sqrt(5));function kr(en){var Xr,ln=1,mn=.001,pn=1-Math.pow(mn,1/300),Tn=0,Zr=.6,Fr=(0,At.kH)(),Ur=mr(Gr),Wr=Xt("tick","end");en==null&&(en=[]);function Gr(){wr(),Wr.call("tick",Xr),ln1?(ur==null?Fr.remove(Sr):Fr.set(Sr,Dr(ur)),Xr):Fr.get(Sr)},find:function(Sr,ur,xr){var Pr=0,Vr=en.length,qr,rn,Cn,xn,fn;for(xr==null?xr=1/0:xr*=xr,Pr=0;Pr1?(Wr.on(Sr,ur),Xr):Wr.on(Sr)}}}function Nr(){var en,Xr,ln,mn=xt(-30),pn,Tn=1,Zr=1/0,Fr=.81;function Ur(pr){var Dr,Sr=en.length,ur=_t(en,Er,Rr).visitAfter(Gr);for(ln=pr,Dr=0;Dr=Zr)return;(pr.data!==Xr||pr.next)&&(xr===0&&(xr=et(),qr+=xr*xr),Pr===0&&(Pr=et(),qr+=Pr*Pr),qr=1e21?St.toLocaleString("en").replace(/,/g,""):St.toString(10)}function xt(St,_t){if((Mt=(St=_t?St.toExponential(_t-1):St.toExponential()).indexOf("e"))<0)return null;var Mt,Et=St.slice(0,Mt);return[Et.length>1?Et[0]+Et.slice(2):Et,+St.slice(Mt+1)]}function et(St){return St=xt(Math.abs(St)),St?St[1]:NaN}function Tt(St,_t){return function(Mt,Et){for(var kt=Mt.length,wt=[],ct=0,It=St[0],At=0;kt>0&&It>0&&(At+It+1>Et&&(It=Math.max(1,Et-At)),wt.push(Mt.substring(kt-=It,kt+It)),!((At+=It+1)>Et));)It=St[ct=(ct+1)%St.length];return wt.reverse().join(_t)}}function yt(St){return function(_t){return _t.replace(/[0-9]/g,function(Mt){return St[+Mt]})}}var ut=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ht(St){if(!(_t=ut.exec(St)))throw new Error("invalid format: "+St);var _t;return new j({fill:_t[1],align:_t[2],sign:_t[3],symbol:_t[4],zero:_t[5],width:_t[6],comma:_t[7],precision:_t[8]&&_t[8].slice(1),trim:_t[9],type:_t[10]})}ht.prototype=j.prototype;function j(St){this.fill=St.fill===void 0?" ":St.fill+"",this.align=St.align===void 0?">":St.align+"",this.sign=St.sign===void 0?"-":St.sign+"",this.symbol=St.symbol===void 0?"":St.symbol+"",this.zero=!!St.zero,this.width=St.width===void 0?void 0:+St.width,this.comma=!!St.comma,this.precision=St.precision===void 0?void 0:+St.precision,this.trim=!!St.trim,this.type=St.type===void 0?"":St.type+""}j.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function _(St){e:for(var _t=St.length,Mt=1,Et=-1,kt;Mt<_t;++Mt)switch(St[Mt]){case".":Et=kt=Mt;break;case"0":Et===0&&(Et=Mt),kt=Mt;break;default:if(!+St[Mt])break e;Et>0&&(Et=0);break}return Et>0?St.slice(0,Et)+St.slice(kt+1):St}var rt;function tt(St,_t){var Mt=xt(St,_t);if(!Mt)return St+"";var Et=Mt[0],kt=Mt[1],wt=kt-(rt=Math.max(-8,Math.min(8,Math.floor(kt/3)))*3)+1,ct=Et.length;return wt===ct?Et:wt>ct?Et+new Array(wt-ct+1).join("0"):wt>0?Et.slice(0,wt)+"."+Et.slice(wt):"0."+new Array(1-wt).join("0")+xt(St,Math.max(0,_t+wt-1))[0]}function st(St,_t){var Mt=xt(St,_t);if(!Mt)return St+"";var Et=Mt[0],kt=Mt[1];return kt<0?"0."+new Array(-kt).join("0")+Et:Et.length>kt+1?Et.slice(0,kt+1)+"."+Et.slice(kt+1):Et+new Array(kt-Et.length+2).join("0")}var ot={"%":function(St,_t){return(St*100).toFixed(_t)},b:function(St){return Math.round(St).toString(2)},c:function(St){return St+""},d:it,e:function(St,_t){return St.toExponential(_t)},f:function(St,_t){return St.toFixed(_t)},g:function(St,_t){return St.toPrecision(_t)},o:function(St){return Math.round(St).toString(8)},p:function(St,_t){return st(St*100,_t)},r:st,s:tt,X:function(St){return Math.round(St).toString(16).toUpperCase()},x:function(St){return Math.round(St).toString(16)}};function nt(St){return St}var vt=Array.prototype.map,dt=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function bt(St){var _t=St.grouping===void 0||St.thousands===void 0?nt:Tt(vt.call(St.grouping,Number),St.thousands+""),Mt=St.currency===void 0?"":St.currency[0]+"",Et=St.currency===void 0?"":St.currency[1]+"",kt=St.decimal===void 0?".":St.decimal+"",wt=St.numerals===void 0?nt:yt(vt.call(St.numerals,String)),ct=St.percent===void 0?"%":St.percent+"",It=St.minus===void 0?"-":St.minus+"",At=St.nan===void 0?"NaN":St.nan+"";function Ot(zt){zt=ht(zt);var Dt=zt.fill,Nt=zt.align,$t=zt.sign,Ut=zt.symbol,Ht=zt.zero,Vt=zt.width,Xt=zt.comma,qt=zt.precision,er=zt.trim,lr=zt.type;lr==="n"?(Xt=!0,lr="g"):ot[lr]||(qt===void 0&&(qt=12),er=!0,lr="g"),(Ht||Dt==="0"&&Nt==="=")&&(Ht=!0,Dt="0",Nt="=");var Jt=Ut==="$"?Mt:Ut==="#"&&/[boxX]/.test(lr)?"0"+lr.toLowerCase():"",Yt=Ut==="$"?Et:/[%p]/.test(lr)?ct:"",rr=ot[lr],jt=/[defgprs%]/.test(lr);qt=qt===void 0?6:/[gprs]/.test(lr)?Math.max(1,Math.min(21,qt)):Math.max(0,Math.min(20,qt));function ar(sr){var Zt=Jt,Kt=Yt,or,tr,cr;if(lr==="c")Kt=rr(sr)+Kt,sr="";else{sr=+sr;var mr=sr<0||1/sr<0;if(sr=isNaN(sr)?At:rr(Math.abs(sr),qt),er&&(sr=_(sr)),mr&&+sr==0&&$t!=="+"&&(mr=!1),Zt=(mr?$t==="("?$t:It:$t==="-"||$t==="("?"":$t)+Zt,Kt=(lr==="s"?dt[8+rt/3]:"")+Kt+(mr&&$t==="("?")":""),jt){for(or=-1,tr=sr.length;++orcr||cr>57){Kt=(cr===46?kt+sr.slice(or+1):sr.slice(or))+Kt,sr=sr.slice(0,or);break}}}Xt&&!Ht&&(sr=_t(sr,1/0));var Ar=Zt.length+sr.length+Kt.length,br=Ar>1)+Zt+sr+Kt+br.slice(Ar);break;default:sr=br+Zt+sr+Kt;break}return wt(sr)}return ar.toString=function(){return zt+""},ar}function Pt(zt,Dt){var Nt=Ot((zt=ht(zt),zt.type="f",zt)),$t=Math.max(-8,Math.min(8,Math.floor(et(Dt)/3)))*3,Ut=Math.pow(10,-$t),Ht=dt[8+$t/3];return function(Vt){return Nt(Ut*Vt)+Ht}}return{format:Ot,formatPrefix:Pt}}var ft,at;mt({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function mt(St){return ft=bt(St),at=ft.format,ft.formatPrefix,ft}},87108:function(Ct,Rt,o){o.r(Rt),o.d(Rt,{geoAiry:function(){return Ht},geoAiryRaw:function(){return Ut},geoAitoff:function(){return Xt},geoAitoffRaw:function(){return Vt},geoArmadillo:function(){return er},geoArmadilloRaw:function(){return qt},geoAugust:function(){return Jt},geoAugustRaw:function(){return lr},geoBaker:function(){return ar},geoBakerRaw:function(){return jt},geoBerghaus:function(){return Kt},geoBerghausRaw:function(){return Zt},geoBertin1953:function(){return Tr},geoBertin1953Raw:function(){return Ir},geoBoggs:function(){return Qr},geoBoggsRaw:function(){return Nr},geoBonne:function(){return ln},geoBonneRaw:function(){return Xr},geoBottomley:function(){return pn},geoBottomleyRaw:function(){return mn},geoBromley:function(){return Zr},geoBromleyRaw:function(){return Tn},geoChamberlin:function(){return ur},geoChamberlinAfrica:function(){return Sr},geoChamberlinRaw:function(){return pr},geoCollignon:function(){return Pr},geoCollignonRaw:function(){return xr},geoCraig:function(){return qr},geoCraigRaw:function(){return Vr},geoCraster:function(){return xn},geoCrasterRaw:function(){return Cn},geoCylindricalEqualArea:function(){return bn},geoCylindricalEqualAreaRaw:function(){return fn},geoCylindricalStereographic:function(){return _i},geoCylindricalStereographicRaw:function(){return Un},geoEckert1:function(){return Kn},geoEckert1Raw:function(){return yn},geoEckert2:function(){return so},geoEckert2Raw:function(){return Jn},geoEckert3:function(){return An},geoEckert3Raw:function(){return ba},geoEckert4:function(){return wn},geoEckert4Raw:function(){return hn},geoEckert5:function(){return Ln},geoEckert5Raw:function(){return In},geoEckert6:function(){return Wn},geoEckert6Raw:function(){return Xn},geoEisenlohr:function(){return fo},geoEisenlohrRaw:function(){return ga},geoFahey:function(){return Yr},geoFaheyRaw:function(){return po},geoFoucaut:function(){return $n},geoFoucautRaw:function(){return jr},geoFoucautSinusoidal:function(){return xa},geoFoucautSinusoidalRaw:function(){return Bn},geoGilbert:function(){return ho},geoGingery:function(){return zo},geoGingeryRaw:function(){return go},geoGinzburg4:function(){return vs},geoGinzburg4Raw:function(){return Lo},geoGinzburg5:function(){return Ls},geoGinzburg5Raw:function(){return Zo},geoGinzburg6:function(){return bo},geoGinzburg6Raw:function(){return Ds},geoGinzburg8:function(){return Yo},geoGinzburg8Raw:function(){return No},geoGinzburg9:function(){return ys},geoGinzburg9Raw:function(){return Oo},geoGringorten:function(){return Fl},geoGringortenQuincuncial:function(){return Am},geoGringortenRaw:function(){return zs},geoGuyou:function(){return ms},geoGuyouRaw:function(){return xo},geoHammer:function(){return mr},geoHammerRaw:function(){return tr},geoHammerRetroazimuthal:function(){return Xs},geoHammerRetroazimuthalRaw:function(){return ws},geoHealpix:function(){return us},geoHealpixRaw:function(){return To},geoHill:function(){return Qo},geoHillRaw:function(){return wo},geoHomolosine:function(){return Ks},geoHomolosineRaw:function(){return Cs},geoHufnagel:function(){return Bl},geoHufnagelRaw:function(){return Ys},geoHyperelliptical:function(){return ju},geoHyperellipticalRaw:function(){return Zl},geoInterrupt:function(){return Kp},geoInterruptedBoggs:function(){return Fm},geoInterruptedHomolosine:function(){return Bu},geoInterruptedMollweide:function(){return zm},geoInterruptedMollweideHemispheres:function(){return av},geoInterruptedQuarticAuthalic:function(){return e0},geoInterruptedSinuMollweide:function(){return f1},geoInterruptedSinusoidal:function(){return d1},geoKavrayskiy7:function(){return kp},geoKavrayskiy7Raw:function(){return _p},geoLagrange:function(){return $p},geoLagrangeRaw:function(){return h1},geoLarrivee:function(){return p1},geoLarriveeRaw:function(){return lv},geoLaskowski:function(){return iy},geoLaskowskiRaw:function(){return uv},geoLittrow:function(){return Hp},geoLittrowRaw:function(){return qv},geoLoximuthal:function(){return R0},geoLoximuthalRaw:function(){return Um},geoMiller:function(){return M0},geoMillerRaw:function(){return _g},geoModifiedStereographic:function(){return k0},geoModifiedStereographicAlaska:function(){return $m},geoModifiedStereographicGs48:function(){return Cy},geoModifiedStereographicGs50:function(){return Ry},geoModifiedStereographicLee:function(){return Pv},geoModifiedStereographicMiller:function(){return H0},geoModifiedStereographicRaw:function(){return oy},geoMollweide:function(){return zr},geoMollweideRaw:function(){return Rr},geoMtFlatPolarParabolic:function(){return ly},geoMtFlatPolarParabolicRaw:function(){return W1},geoMtFlatPolarQuartic:function(){return m1},geoMtFlatPolarQuarticRaw:function(){return h0},geoMtFlatPolarSinusoidal:function(){return xl},geoMtFlatPolarSinusoidalRaw:function(){return Ts},geoNaturalEarth:function(){return Js.c},geoNaturalEarth2:function(){return Su},geoNaturalEarth2Raw:function(){return fu},geoNaturalEarthRaw:function(){return Js.g},geoNellHammer:function(){return mp},geoNellHammerRaw:function(){return Yu},geoNicolosi:function(){return vv},geoNicolosiRaw:function(){return t0},geoPatterson:function(){return b1},geoPattersonRaw:function(){return xm},geoPeirceQuincuncial:function(){return w1},geoPierceQuincuncial:function(){return w1},geoPolyconic:function(){return Em},geoPolyconicRaw:function(){return bm},geoPolyhedral:function(){return qu},geoPolyhedralButterfly:function(){return X1},geoPolyhedralCollignon:function(){return Y0},geoPolyhedralWaterman:function(){return pp},geoProject:function(){return Vm},geoQuantize:function(){return Wm},geoQuincuncial:function(){return x0},geoRectangularPolyconic:function(){return K0},geoRectangularPolyconicRaw:function(){return Ao},geoRobinson:function(){return Lu},geoRobinsonRaw:function(){return Mp},geoSatellite:function(){return Z0},geoSatelliteRaw:function(){return _m},geoSinuMollweide:function(){return Gs},geoSinuMollweideRaw:function(){return _s},geoSinusoidal:function(){return en},geoSinusoidalRaw:function(){return un},geoStitch:function(){return tm},geoTimes:function(){return sp},geoTimesRaw:function(){return N0},geoTwoPointAzimuthal:function(){return Cm},geoTwoPointAzimuthalRaw:function(){return Ym},geoTwoPointAzimuthalUsa:function(){return J0},geoTwoPointEquidistant:function(){return Xm},geoTwoPointEquidistantRaw:function(){return rm},geoTwoPointEquidistantUsa:function(){return hy},geoVanDerGrinten:function(){return nm},geoVanDerGrinten2:function(){return k1},geoVanDerGrinten2Raw:function(){return O0},geoVanDerGrinten3:function(){return My},geoVanDerGrinten3Raw:function(){return Vv},geoVanDerGrinten4:function(){return am},geoVanDerGrinten4Raw:function(){return cv},geoVanDerGrintenRaw:function(){return iv},geoWagner:function(){return xv},geoWagner4:function(){return D1},geoWagner4Raw:function(){return om},geoWagner6:function(){return Rm},geoWagner6Raw:function(){return Fv},geoWagner7:function(){return bv},geoWagnerRaw:function(){return Wv},geoWiechel:function(){return P1},geoWiechelRaw:function(){return Q0},geoWinkel3:function(){return Km},geoWinkel3Raw:function(){return sm}});var it=o(87952),xt=Math.abs,et=Math.atan,Tt=Math.atan2,yt=Math.cos,ut=Math.exp,ht=Math.floor,j=Math.log,_=Math.max,rt=Math.min,tt=Math.pow,st=Math.round,ot=Math.sign||function(Jr){return Jr>0?1:Jr<0?-1:0},nt=Math.sin,vt=Math.tan,dt=1e-6,bt=1e-12,ft=Math.PI,at=ft/2,mt=ft/4,St=Math.SQRT1_2,_t=Ot(2),Mt=Ot(ft),Et=ft*2,kt=180/ft,wt=ft/180;function ct(Jr){return Jr?Jr/Math.sin(Jr):1}function It(Jr){return Jr>1?at:Jr<-1?-at:Math.asin(Jr)}function At(Jr){return Jr>1?0:Jr<-1?ft:Math.acos(Jr)}function Ot(Jr){return Jr>0?Math.sqrt(Jr):0}function Pt(Jr){return Jr=ut(2*Jr),(Jr-1)/(Jr+1)}function zt(Jr){return(ut(Jr)-ut(-Jr))/2}function Dt(Jr){return(ut(Jr)+ut(-Jr))/2}function Nt(Jr){return j(Jr+Ot(Jr*Jr+1))}function $t(Jr){return j(Jr+Ot(Jr*Jr-1))}function Ut(Jr){var dn=vt(Jr/2),_n=2*j(yt(Jr/2))/(dn*dn);function Sn(zn,Nn){var Hn=yt(zn),vo=yt(Nn),mo=nt(Nn),oo=vo*Hn,So=-((1-oo?j((1+oo)/2)/(1-oo):-.5)+_n/(1+oo));return[So*vo*nt(zn),So*mo]}return Sn.invert=function(zn,Nn){var Hn=Ot(zn*zn+Nn*Nn),vo=-Jr/2,mo=50,oo;if(!Hn)return[0,0];do{var So=vo/2,Do=yt(So),$o=nt(So),os=$o/Do,Ss=-j(xt(Do));vo-=oo=(2/os*Ss-_n*os-Hn)/(-Ss/($o*$o)+1-_n/(2*Do*Do))*(Do<0?.7:1)}while(xt(oo)>dt&&--mo>0);var Ns=nt(vo);return[Tt(zn*Ns,Hn*yt(vo)),It(Nn*Ns/Hn)]},Sn}function Ht(){var Jr=at,dn=(0,it.U)(Ut),_n=dn(Jr);return _n.radius=function(Sn){return arguments.length?dn(Jr=Sn*wt):Jr*kt},_n.scale(179.976).clipAngle(147)}function Vt(Jr,dn){var _n=yt(dn),Sn=ct(At(_n*yt(Jr/=2)));return[2*_n*nt(Jr)*Sn,nt(dn)*Sn]}Vt.invert=function(Jr,dn){if(!(Jr*Jr+4*dn*dn>ft*ft+dt)){var _n=Jr,Sn=dn,zn=25;do{var Nn=nt(_n),Hn=nt(_n/2),vo=yt(_n/2),mo=nt(Sn),oo=yt(Sn),So=nt(2*Sn),Do=mo*mo,$o=oo*oo,os=Hn*Hn,Ss=1-$o*vo*vo,Ns=Ss?At(oo*vo)*Ot($s=1/Ss):$s=0,$s,Al=2*Ns*oo*Hn-Jr,pu=Ns*mo-dn,du=$s*($o*os+Ns*oo*vo*Do),gu=$s*(.5*Nn*So-Ns*2*mo*Hn),Eu=$s*.25*(So*Hn-Ns*mo*$o*Nn),Nu=$s*(Do*vo+Ns*os*oo),_c=gu*Eu-Nu*du;if(!_c)break;var Ip=(pu*gu-Al*Nu)/_c,dr=(Al*Eu-pu*du)/_c;_n-=Ip,Sn-=dr}while((xt(Ip)>dt||xt(dr)>dt)&&--zn>0);return[_n,Sn]}};function Xt(){return(0,it.c)(Vt).scale(152.63)}function qt(Jr){var dn=nt(Jr),_n=yt(Jr),Sn=Jr>=0?1:-1,zn=vt(Sn*Jr),Nn=(1+dn-_n)/2;function Hn(vo,mo){var oo=yt(mo),So=yt(vo/=2);return[(1+oo)*nt(vo),(Sn*mo>-Tt(So,zn)-.001?0:-Sn*10)+Nn+nt(mo)*_n-(1+oo)*dn*So]}return Hn.invert=function(vo,mo){var oo=0,So=0,Do=50;do{var $o=yt(oo),os=nt(oo),Ss=yt(So),Ns=nt(So),$s=1+Ss,Al=$s*os-vo,pu=Nn+Ns*_n-$s*dn*$o-mo,du=$s*$o/2,gu=-os*Ns,Eu=dn*$s*os/2,Nu=_n*Ss+dn*$o*Ns,_c=gu*Eu-Nu*du,Ip=(pu*gu-Al*Nu)/_c/2,dr=(Al*Eu-pu*du)/_c;xt(dr)>2&&(dr/=2),oo-=Ip,So-=dr}while((xt(Ip)>dt||xt(dr)>dt)&&--Do>0);return Sn*So>-Tt(yt(oo),zn)-.001?[oo*2,So]:null},Hn}function er(){var Jr=20*wt,dn=Jr>=0?1:-1,_n=vt(dn*Jr),Sn=(0,it.U)(qt),zn=Sn(Jr),Nn=zn.stream;return zn.parallel=function(Hn){return arguments.length?(_n=vt((dn=(Jr=Hn*wt)>=0?1:-1)*Jr),Sn(Jr)):Jr*kt},zn.stream=function(Hn){var vo=zn.rotate(),mo=Nn(Hn),oo=(zn.rotate([0,0]),Nn(Hn)),So=zn.precision();return zn.rotate(vo),mo.sphere=function(){oo.polygonStart(),oo.lineStart();for(var Do=dn*-180;dn*Do<180;Do+=dn*90)oo.point(Do,dn*90);if(Jr)for(;dn*(Do-=3*dn*So)>=-180;)oo.point(Do,dn*-Tt(yt(Do*wt/2),_n)*kt);oo.lineEnd(),oo.polygonEnd()},mo},zn.scale(218.695).center([0,28.0974])}function lr(Jr,dn){var _n=vt(dn/2),Sn=Ot(1-_n*_n),zn=1+Sn*yt(Jr/=2),Nn=nt(Jr)*Sn/zn,Hn=_n/zn,vo=Nn*Nn,mo=Hn*Hn;return[1.3333333333333333*Nn*(3+vo-3*mo),1.3333333333333333*Hn*(3+3*vo-mo)]}lr.invert=function(Jr,dn){if(Jr*=.375,dn*=.375,!Jr&&xt(dn)>1)return null;var _n=Jr*Jr,Sn=dn*dn,zn=1+_n+Sn,Nn=Ot((zn-Ot(zn*zn-4*dn*dn))/2),Hn=It(Nn)/3,vo=Nn?$t(xt(dn/Nn))/3:Nt(xt(Jr))/3,mo=yt(Hn),oo=Dt(vo),So=oo*oo-mo*mo;return[ot(Jr)*2*Tt(zt(vo)*mo,.25-So),ot(dn)*2*Tt(oo*nt(Hn),.25+So)]};function Jt(){return(0,it.c)(lr).scale(66.1603)}var Yt=Ot(8),rr=j(1+_t);function jt(Jr,dn){var _n=xt(dn);return _nbt&&--Sn>0);return[Jr/(yt(_n)*(Yt-1/nt(_n))),ot(dn)*_n]};function ar(){return(0,it.c)(jt).scale(112.314)}var sr=o(69020);function Zt(Jr){var dn=2*ft/Jr;function _n(Sn,zn){var Nn=(0,sr.O)(Sn,zn);if(xt(Sn)>at){var Hn=Tt(Nn[1],Nn[0]),vo=Ot(Nn[0]*Nn[0]+Nn[1]*Nn[1]),mo=dn*st((Hn-at)/dn)+at,oo=Tt(nt(Hn-=mo),2-yt(Hn));Hn=mo+It(ft/vo*nt(oo))-oo,Nn[0]=vo*yt(Hn),Nn[1]=vo*nt(Hn)}return Nn}return _n.invert=function(Sn,zn){var Nn=Ot(Sn*Sn+zn*zn);if(Nn>at){var Hn=Tt(zn,Sn),vo=dn*st((Hn-at)/dn)+at,mo=Hn>vo?-1:1,oo=Nn*yt(vo-Hn),So=1/vt(mo*At((oo-ft)/Ot(ft*(ft-2*oo)+Nn*Nn)));Hn=vo+2*et((So+mo*Ot(So*So-3))/3),Sn=Nn*yt(Hn),zn=Nn*nt(Hn)}return sr.O.invert(Sn,zn)},_n}function Kt(){var Jr=5,dn=(0,it.U)(Zt),_n=dn(Jr),Sn=_n.stream,zn=.01,Nn=-yt(zn*wt),Hn=nt(zn*wt);return _n.lobes=function(vo){return arguments.length?dn(Jr=+vo):Jr},_n.stream=function(vo){var mo=_n.rotate(),oo=Sn(vo),So=(_n.rotate([0,0]),Sn(vo));return _n.rotate(mo),oo.sphere=function(){So.polygonStart(),So.lineStart();for(var Do=0,$o=360/Jr,os=2*ft/Jr,Ss=90-180/Jr,Ns=at;Do0&&xt(zn)>dt);return Sn<0?NaN:_n}function br(Jr,dn,_n){return dn===void 0&&(dn=40),_n===void 0&&(_n=bt),function(Sn,zn,Nn,Hn){var vo,mo,oo;Nn=Nn===void 0?0:+Nn,Hn=Hn===void 0?0:+Hn;for(var So=0;Sovo){Nn-=mo/=2,Hn-=oo/=2;continue}vo=Ss;var Ns=(Nn>0?-1:1)*_n,$s=(Hn>0?-1:1)*_n,Al=Jr(Nn+Ns,Hn),pu=Jr(Nn,Hn+$s),du=(Al[0]-Do[0])/Ns,gu=(Al[1]-Do[1])/Ns,Eu=(pu[0]-Do[0])/$s,Nu=(pu[1]-Do[1])/$s,_c=Nu*du-gu*Eu,Ip=(xt(_c)<.5?.5:1)/_c;if(mo=(os*Eu-$o*Nu)*Ip,oo=($o*gu-os*du)*Ip,Nn+=mo,Hn+=oo,xt(mo)<_n&&xt(oo)<_n)break}return[Nn,Hn]}}function Ir(){var Jr=tr(1.68,2),dn=1.4,_n=12;function Sn(zn,Nn){if(zn+Nn<-dn){var Hn=(zn-Nn+1.6)*(zn+Nn+dn)/8;zn+=Hn,Nn-=.8*Hn*nt(Nn+ft/2)}var vo=Jr(zn,Nn),mo=(1-yt(zn*Nn))/_n;return vo[1]<0&&(vo[0]*=1+mo),vo[1]>0&&(vo[1]*=1+mo/1.5*vo[0]*vo[0]),vo}return Sn.invert=br(Sn),Sn}function Tr(){return(0,it.c)(Ir()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function _r(Jr,dn){var _n=Jr*nt(dn),Sn=30,zn;do dn-=zn=(dn+nt(dn)-_n)/(1+yt(dn));while(xt(zn)>dt&&--Sn>0);return dn/2}function Er(Jr,dn,_n){function Sn(zn,Nn){return[Jr*zn*yt(Nn=_r(_n,Nn)),dn*nt(Nn)]}return Sn.invert=function(zn,Nn){return Nn=It(Nn/dn),[zn/(Jr*yt(Nn)),It((2*Nn+nt(2*Nn))/_n)]},Sn}var Rr=Er(_t/at,_t,ft);function zr(){return(0,it.c)(Rr).scale(169.529)}var Or=2.00276,kr=1.11072;function Nr(Jr,dn){var _n=_r(ft,dn);return[Or*Jr/(1/yt(dn)+kr/yt(_n)),(dn+_t*nt(_n))/Or]}Nr.invert=function(Jr,dn){var _n=Or*dn,Sn=dn<0?-mt:mt,zn=25,Nn,Hn;do Hn=_n-_t*nt(Sn),Sn-=Nn=(nt(2*Sn)+2*Sn-ft*nt(Hn))/(2*yt(2*Sn)+2+ft*yt(Hn)*_t*yt(Sn));while(xt(Nn)>dt&&--zn>0);return Hn=_n-_t*nt(Sn),[Jr*(1/yt(Hn)+kr/yt(Sn))/Or,Hn]};function Qr(){return(0,it.c)(Nr).scale(160.857)}function sn(Jr){var dn=0,_n=(0,it.U)(Jr),Sn=_n(dn);return Sn.parallel=function(zn){return arguments.length?_n(dn=zn*wt):dn*kt},Sn}function un(Jr,dn){return[Jr*yt(dn),dn]}un.invert=function(Jr,dn){return[Jr/yt(dn),dn]};function en(){return(0,it.c)(un).scale(152.63)}function Xr(Jr){if(!Jr)return un;var dn=1/vt(Jr);function _n(Sn,zn){var Nn=dn+Jr-zn,Hn=Nn&&Sn*yt(zn)/Nn;return[Nn*nt(Hn),dn-Nn*yt(Hn)]}return _n.invert=function(Sn,zn){var Nn=Ot(Sn*Sn+(zn=dn-zn)*zn),Hn=dn+Jr-Nn;return[Nn/yt(Hn)*Tt(Sn,zn),Hn]},_n}function ln(){return sn(Xr).scale(123.082).center([0,26.1441]).parallel(45)}function mn(Jr){function dn(_n,Sn){var zn=at-Sn,Nn=zn&&_n*Jr*nt(zn)/zn;return[zn*nt(Nn)/Jr,at-zn*yt(Nn)]}return dn.invert=function(_n,Sn){var zn=_n*Jr,Nn=at-Sn,Hn=Ot(zn*zn+Nn*Nn),vo=Tt(zn,Nn);return[(Hn?Hn/nt(Hn):1)*vo/Jr,at-Hn]},dn}function pn(){var Jr=.5,dn=(0,it.U)(mn),_n=dn(Jr);return _n.fraction=function(Sn){return arguments.length?dn(Jr=+Sn):Jr},_n.scale(158.837)}var Tn=Er(1,4/ft,ft);function Zr(){return(0,it.c)(Tn).scale(152.63)}var Fr=o(24052),Ur=o(92992);function Wr(Jr,dn,_n,Sn,zn,Nn){var Hn=yt(Nn),vo;if(xt(Jr)>1||xt(Nn)>1)vo=At(_n*zn+dn*Sn*Hn);else{var mo=nt(Jr/2),oo=nt(Nn/2);vo=2*It(Ot(mo*mo+dn*Sn*oo*oo))}return xt(vo)>dt?[vo,Tt(Sn*nt(Nn),dn*zn-_n*Sn*Hn)]:[0,0]}function Gr(Jr,dn,_n){return At((Jr*Jr+dn*dn-_n*_n)/(2*Jr*dn))}function wr(Jr){return Jr-2*ft*ht((Jr+ft)/(2*ft))}function pr(Jr,dn,_n){for(var Sn=[[Jr[0],Jr[1],nt(Jr[1]),yt(Jr[1])],[dn[0],dn[1],nt(dn[1]),yt(dn[1])],[_n[0],_n[1],nt(_n[1]),yt(_n[1])]],zn=Sn[2],Nn,Hn=0;Hn<3;++Hn,zn=Nn)Nn=Sn[Hn],zn.v=Wr(Nn[1]-zn[1],zn[3],zn[2],Nn[3],Nn[2],Nn[0]-zn[0]),zn.point=[0,0];var vo=Gr(Sn[0].v[0],Sn[2].v[0],Sn[1].v[0]),mo=Gr(Sn[0].v[0],Sn[1].v[0],Sn[2].v[0]),oo=ft-vo;Sn[2].point[1]=0,Sn[0].point[0]=-(Sn[1].point[0]=Sn[0].v[0]/2);var So=[Sn[2].point[0]=Sn[0].point[0]+Sn[2].v[0]*yt(vo),2*(Sn[0].point[1]=Sn[1].point[1]=Sn[2].v[0]*nt(vo))];function Do($o,os){var Ss=nt(os),Ns=yt(os),$s=new Array(3),Al;for(Al=0;Al<3;++Al){var pu=Sn[Al];if($s[Al]=Wr(os-pu[1],pu[3],pu[2],Ns,Ss,$o-pu[0]),!$s[Al][0])return pu.point;$s[Al][1]=wr($s[Al][1]-pu.v[1])}var du=So.slice();for(Al=0;Al<3;++Al){var gu=Al==2?0:Al+1,Eu=Gr(Sn[Al].v[0],$s[Al][0],$s[gu][0]);$s[Al][1]<0&&(Eu=-Eu),Al?Al==1?(Eu=mo-Eu,du[0]-=$s[Al][0]*yt(Eu),du[1]-=$s[Al][0]*nt(Eu)):(Eu=oo-Eu,du[0]+=$s[Al][0]*yt(Eu),du[1]+=$s[Al][0]*nt(Eu)):(du[0]+=$s[Al][0]*yt(Eu),du[1]-=$s[Al][0]*nt(Eu))}return du[0]/=3,du[1]/=3,du}return Do}function Dr(Jr){return Jr[0]*=wt,Jr[1]*=wt,Jr}function Sr(){return ur([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function ur(Jr,dn,_n){var Sn=(0,Fr.c)({type:"MultiPoint",coordinates:[Jr,dn,_n]}),zn=[-Sn[0],-Sn[1]],Nn=(0,Ur.c)(zn),Hn=pr(Dr(Nn(Jr)),Dr(Nn(dn)),Dr(Nn(_n)));Hn.invert=br(Hn);var vo=(0,it.c)(Hn).rotate(zn),mo=vo.center;return delete vo.rotate,vo.center=function(oo){return arguments.length?mo(Nn(oo)):Nn.invert(mo())},vo.clipAngle(90)}function xr(Jr,dn){var _n=Ot(1-nt(dn));return[2/Mt*Jr*_n,Mt*(1-_n)]}xr.invert=function(Jr,dn){var _n=(_n=dn/Mt-1)*_n;return[_n>0?Jr*Ot(ft/_n)/2:0,It(1-_n)]};function Pr(){return(0,it.c)(xr).scale(95.6464).center([0,30])}function Vr(Jr){var dn=vt(Jr);function _n(Sn,zn){return[Sn,(Sn?Sn/nt(Sn):1)*(nt(zn)*yt(Sn)-dn*yt(zn))]}return _n.invert=dn?function(Sn,zn){Sn&&(zn*=nt(Sn)/Sn);var Nn=yt(Sn);return[Sn,2*Tt(Ot(Nn*Nn+dn*dn-zn*zn)-Nn,dn-zn)]}:function(Sn,zn){return[Sn,It(Sn?zn*vt(Sn)/Sn:zn)]},_n}function qr(){return sn(Vr).scale(249.828).clipAngle(90)}var rn=Ot(3);function Cn(Jr,dn){return[rn*Jr*(2*yt(2*dn/3)-1)/Mt,rn*Mt*nt(dn/3)]}Cn.invert=function(Jr,dn){var _n=3*It(dn/(rn*Mt));return[Mt*Jr/(rn*(2*yt(2*_n/3)-1)),_n]};function xn(){return(0,it.c)(Cn).scale(156.19)}function fn(Jr){var dn=yt(Jr);function _n(Sn,zn){return[Sn*dn,nt(zn)/dn]}return _n.invert=function(Sn,zn){return[Sn/dn,It(zn*dn)]},_n}function bn(){return sn(fn).parallel(38.58).scale(195.044)}function Un(Jr){var dn=yt(Jr);function _n(Sn,zn){return[Sn*dn,(1+dn)*vt(zn/2)]}return _n.invert=function(Sn,zn){return[Sn/dn,et(zn/(1+dn))*2]},_n}function _i(){return sn(Un).scale(124.75)}function yn(Jr,dn){var _n=Ot(8/(3*ft));return[_n*Jr*(1-xt(dn)/ft),_n*dn]}yn.invert=function(Jr,dn){var _n=Ot(8/(3*ft)),Sn=dn/_n;return[Jr/(_n*(1-xt(Sn)/ft)),Sn]};function Kn(){return(0,it.c)(yn).scale(165.664)}function Jn(Jr,dn){var _n=Ot(4-3*nt(xt(dn)));return[2/Ot(6*ft)*Jr*_n,ot(dn)*Ot(2*ft/3)*(2-_n)]}Jn.invert=function(Jr,dn){var _n=2-xt(dn)/Ot(2*ft/3);return[Jr*Ot(6*ft)/(2*_n),ot(dn)*It((4-_n*_n)/3)]};function so(){return(0,it.c)(Jn).scale(165.664)}function ba(Jr,dn){var _n=Ot(ft*(4+ft));return[2/_n*Jr*(1+Ot(1-4*dn*dn/(ft*ft))),4/_n*dn]}ba.invert=function(Jr,dn){var _n=Ot(ft*(4+ft))/2;return[Jr*_n/(1+Ot(1-dn*dn*(4+ft)/(4*ft))),dn*_n/2]};function An(){return(0,it.c)(ba).scale(180.739)}function hn(Jr,dn){var _n=(2+at)*nt(dn);dn/=2;for(var Sn=0,zn=1/0;Sn<10&&xt(zn)>dt;Sn++){var Nn=yt(dn);dn-=zn=(dn+nt(dn)*(Nn+2)-_n)/(2*Nn*(1+Nn))}return[2/Ot(ft*(4+ft))*Jr*(1+yt(dn)),2*Ot(ft/(4+ft))*nt(dn)]}hn.invert=function(Jr,dn){var _n=dn*Ot((4+ft)/ft)/2,Sn=It(_n),zn=yt(Sn);return[Jr/(2/Ot(ft*(4+ft))*(1+zn)),It((Sn+_n*(zn+2))/(2+at))]};function wn(){return(0,it.c)(hn).scale(180.739)}function In(Jr,dn){return[Jr*(1+yt(dn))/Ot(2+ft),2*dn/Ot(2+ft)]}In.invert=function(Jr,dn){var _n=Ot(2+ft),Sn=dn*_n/2;return[_n*Jr/(1+yt(Sn)),Sn]};function Ln(){return(0,it.c)(In).scale(173.044)}function Xn(Jr,dn){for(var _n=(1+at)*nt(dn),Sn=0,zn=1/0;Sn<10&&xt(zn)>dt;Sn++)dn-=zn=(dn+nt(dn)-_n)/(1+yt(dn));return _n=Ot(2+ft),[Jr*(1+yt(dn))/_n,2*dn/_n]}Xn.invert=function(Jr,dn){var _n=1+at,Sn=Ot(_n/2);return[Jr*2*Sn/(1+yt(dn*=Sn)),It((dn+nt(dn))/_n)]};function Wn(){return(0,it.c)(Xn).scale(173.044)}var Vn=3+2*_t;function ga(Jr,dn){var _n=nt(Jr/=2),Sn=yt(Jr),zn=Ot(yt(dn)),Nn=yt(dn/=2),Hn=nt(dn)/(Nn+_t*Sn*zn),vo=Ot(2/(1+Hn*Hn)),mo=Ot((_t*Nn+(Sn+_n)*zn)/(_t*Nn+(Sn-_n)*zn));return[Vn*(vo*(mo-1/mo)-2*j(mo)),Vn*(vo*Hn*(mo+1/mo)-2*et(Hn))]}ga.invert=function(Jr,dn){if(!(Nn=lr.invert(Jr/1.2,dn*1.065)))return null;var _n=Nn[0],Sn=Nn[1],zn=20,Nn;Jr/=Vn,dn/=Vn;do{var Hn=_n/2,vo=Sn/2,mo=nt(Hn),oo=yt(Hn),So=nt(vo),Do=yt(vo),$o=yt(Sn),os=Ot($o),Ss=So/(Do+_t*oo*os),Ns=Ss*Ss,$s=Ot(2/(1+Ns)),Al=_t*Do+(oo+mo)*os,pu=_t*Do+(oo-mo)*os,du=Al/pu,gu=Ot(du),Eu=gu-1/gu,Nu=gu+1/gu,_c=$s*Eu-2*j(gu)-Jr,Ip=$s*Ss*Nu-2*et(Ss)-dn,dr=So&&St*os*mo*Ns/So,Lr=(_t*oo*Do+os)/(2*(Do+_t*oo*os)*(Do+_t*oo*os)*os),Hr=-.5*Ss*$s*$s*$s,nn=Hr*dr,cn=Hr*Lr,vn=(vn=2*Do+_t*os*(oo-mo))*vn*gu,Dn=(_t*oo*Do*os+$o)/vn,Rn=-(_t*mo*So)/(os*vn),Yn=Eu*nn-2*Dn/gu+$s*(Dn+Dn/du),Zn=Eu*cn-2*Rn/gu+$s*(Rn+Rn/du),to=Ss*Nu*nn-2*dr/(1+Ns)+$s*Nu*dr+$s*Ss*(Dn-Dn/du),Co=Ss*Nu*cn-2*Lr/(1+Ns)+$s*Nu*Lr+$s*Ss*(Rn-Rn/du),Ro=Zn*to-Co*Yn;if(!Ro)break;var ts=(Ip*Zn-_c*Co)/Ro,ls=(_c*to-Ip*Yn)/Ro;_n-=ts,Sn=_(-at,rt(at,Sn-ls))}while((xt(ts)>dt||xt(ls)>dt)&&--zn>0);return xt(xt(Sn)-at)Sn){var Do=Ot(So),$o=Tt(oo,mo),os=_n*st($o/_n),Ss=$o-os,Ns=Jr*yt(Ss),$s=(Jr*nt(Ss)-Ss*nt(Ns))/(at-Ns),Al=_o(Ss,$s),pu=(ft-Jr)/co(Al,Ns,ft);mo=Do;var du=50,gu;do mo-=gu=(Jr+co(Al,Ns,mo)*pu-Do)/(Al(mo)*pu);while(xt(gu)>dt&&--du>0);oo=Ss*nt(mo),moSn){var mo=Ot(vo),oo=Tt(Hn,Nn),So=_n*st(oo/_n),Do=oo-So;Nn=mo*yt(Do),Hn=mo*nt(Do);for(var $o=Nn-at,os=nt(Nn),Ss=Hn/os,Ns=Nndt||xt(Ss)>dt)&&--Ns>0);return[Do,$o]},mo}var Lo=Io(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function vs(){return(0,it.c)(Lo).scale(149.995)}var Zo=Io(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function Ls(){return(0,it.c)(Zo).scale(153.93)}var Ds=Io(5/6*ft,-.62636,-.0344,0,1.3493,-.05524,0,.045);function bo(){return(0,it.c)(Ds).scale(130.945)}function No(Jr,dn){var _n=Jr*Jr,Sn=dn*dn;return[Jr*(1-.162388*Sn)*(.87-952426e-9*_n*_n),dn*(1+Sn/12)]}No.invert=function(Jr,dn){var _n=Jr,Sn=dn,zn=50,Nn;do{var Hn=Sn*Sn;Sn-=Nn=(Sn*(1+Hn/12)-dn)/(1+Hn/4)}while(xt(Nn)>dt&&--zn>0);zn=50,Jr/=1-.162388*Hn;do{var vo=(vo=_n*_n)*vo;_n-=Nn=(_n*(.87-952426e-9*vo)-Jr)/(.87-.00476213*vo)}while(xt(Nn)>dt&&--zn>0);return[_n,Sn]};function Yo(){return(0,it.c)(No).scale(131.747)}var Oo=Io(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function ys(){return(0,it.c)(Oo).scale(131.087)}function gs(Jr){var dn=Jr(at,0)[0]-Jr(-at,0)[0];function _n(Sn,zn){var Nn=Sn>0?-.5:.5,Hn=Jr(Sn+Nn*ft,zn);return Hn[0]-=Nn*dn,Hn}return Jr.invert&&(_n.invert=function(Sn,zn){var Nn=Sn>0?-.5:.5,Hn=Jr.invert(Sn+Nn*dn,zn),vo=Hn[0]-Nn*ft;return vo<-ft?vo+=2*ft:vo>ft&&(vo-=2*ft),Hn[0]=vo,Hn}),_n}function zs(Jr,dn){var _n=ot(Jr),Sn=ot(dn),zn=yt(dn),Nn=yt(Jr)*zn,Hn=nt(Jr)*zn,vo=nt(Sn*dn);Jr=xt(Tt(Hn,vo)),dn=It(Nn),xt(Jr-at)>dt&&(Jr%=at);var mo=Us(Jr>ft/4?at-Jr:Jr,dn);return Jr>ft/4&&(vo=mo[0],mo[0]=-mo[1],mo[1]=-vo),mo[0]*=_n,mo[1]*=-Sn,mo}zs.invert=function(Jr,dn){xt(Jr)>1&&(Jr=ot(Jr)*2-Jr),xt(dn)>1&&(dn=ot(dn)*2-dn);var _n=ot(Jr),Sn=ot(dn),zn=-_n*Jr,Nn=-Sn*dn,Hn=Nn/zn<1,vo=Qs(Hn?Nn:zn,Hn?zn:Nn),mo=vo[0],oo=vo[1],So=yt(oo);return Hn&&(mo=-at-mo),[_n*(Tt(nt(mo)*So,-nt(oo))+ft),Sn*It(yt(mo)*So)]};function Us(Jr,dn){if(dn===at)return[0,0];var _n=nt(dn),Sn=_n*_n,zn=Sn*Sn,Nn=1+zn,Hn=1+3*zn,vo=1-zn,mo=It(1/Ot(Nn)),oo=vo+Sn*Nn*mo,So=(1-_n)/oo,Do=Ot(So),$o=So*Nn,os=Ot($o),Ss=Do*vo,Ns,$s;if(Jr===0)return[0,-(Ss+Sn*os)];var Al=yt(dn),pu=1/Al,du=2*_n*Al,gu=(-3*Sn+mo*Hn)*du,Eu=(-oo*Al-(1-_n)*gu)/(oo*oo),Nu=.5*Eu/Do,_c=vo*Nu-2*Sn*Do*du,Ip=Sn*Nn*Eu+So*Hn*du,dr=-pu*du,Lr=-pu*Ip,Hr=-2*pu*_c,nn=4*Jr/ft,cn;if(Jr>.222*ft||dn.175*ft){if(Ns=(Ss+Sn*Ot($o*(1+zn)-Ss*Ss))/(1+zn),Jr>ft/4)return[Ns,Ns];var vn=Ns,Dn=.5*Ns;Ns=.5*(Dn+vn),$s=50;do{var Rn=Ot($o-Ns*Ns),Yn=Ns*(Hr+dr*Rn)+Lr*It(Ns/os)-nn;if(!Yn)break;Yn<0?Dn=Ns:vn=Ns,Ns=.5*(Dn+vn)}while(xt(vn-Dn)>dt&&--$s>0)}else{Ns=dt,$s=25;do{var Zn=Ns*Ns,to=Ot($o-Zn),Co=Hr+dr*to,Ro=Ns*Co+Lr*It(Ns/os)-nn,ts=Co+(Lr-dr*Zn)/to;Ns-=cn=to?Ro/ts:0}while(xt(cn)>dt&&--$s>0)}return[Ns,-Ss-Sn*Ot($o-Ns*Ns)]}function Qs(Jr,dn){for(var _n=0,Sn=1,zn=.5,Nn=50;;){var Hn=zn*zn,vo=Ot(zn),mo=It(1/Ot(1+Hn)),oo=1-Hn+zn*(1+Hn)*mo,So=(1-vo)/oo,Do=Ot(So),$o=So*(1+Hn),os=Do*(1-Hn),Ss=$o-Jr*Jr,Ns=Ot(Ss),$s=dn+os+zn*Ns;if(xt(Sn-_n)0?_n=zn:Sn=zn,zn=.5*(_n+Sn)}if(!Nn)return null;var Al=It(vo),pu=yt(Al),du=1/pu,gu=2*vo*pu,Eu=(-3*zn+mo*(1+3*Hn))*gu,Nu=(-oo*pu-(1-vo)*Eu)/(oo*oo),_c=.5*Nu/Do,Ip=(1-Hn)*_c-2*zn*Do*gu,dr=-2*du*Ip,Lr=-du*gu,Hr=-du*(zn*(1+Hn)*Nu+So*(1+3*Hn)*gu);return[ft/4*(Jr*(dr+Lr*Ns)+Hr*It(Jr/Ot($o))),Al]}function Fl(){return(0,it.c)(gs(zs)).scale(239.75)}function Jl(Jr,dn,_n){var Sn,zn,Nn;return Jr?(Sn=nu(Jr,_n),dn?(zn=nu(dn,1-_n),Nn=zn[1]*zn[1]+_n*Sn[0]*Sn[0]*zn[0]*zn[0],[[Sn[0]*zn[2]/Nn,Sn[1]*Sn[2]*zn[0]*zn[1]/Nn],[Sn[1]*zn[1]/Nn,-Sn[0]*Sn[2]*zn[0]*zn[2]/Nn],[Sn[2]*zn[1]*zn[2]/Nn,-_n*Sn[0]*Sn[1]*zn[0]/Nn]]):[[Sn[0],0],[Sn[1],0],[Sn[2],0]]):(zn=nu(dn,1-_n),[[0,zn[0]/zn[1]],[1/zn[1],0],[zn[2]/zn[1],0]])}function nu(Jr,dn){var _n,Sn,zn,Nn,Hn;if(dn=1-dt)return _n=(1-dn)/4,Sn=Dt(Jr),Nn=Pt(Jr),zn=1/Sn,Hn=Sn*zt(Jr),[Nn+_n*(Hn-Jr)/(Sn*Sn),zn-_n*Nn*zn*(Hn-Jr),zn+_n*Nn*zn*(Hn+Jr),2*et(ut(Jr))-at+_n*(Hn-Jr)/Sn];var vo=[1,0,0,0,0,0,0,0,0],mo=[Ot(dn),0,0,0,0,0,0,0,0],oo=0;for(Sn=Ot(1-dn),Hn=1;xt(mo[oo]/vo[oo])>dt&&oo<8;)_n=vo[oo++],mo[oo]=(_n-Sn)/2,vo[oo]=(_n+Sn)/2,Sn=Ot(_n*Sn),Hn*=2;zn=Hn*vo[oo]*Jr;do Nn=mo[oo]*nt(Sn=zn)/vo[oo],zn=(It(Nn)+zn)/2;while(--oo);return[nt(zn),Nn=yt(zn),Nn/yt(zn-Sn),zn]}function Yl(Jr,dn,_n){var Sn=xt(Jr),zn=xt(dn),Nn=zt(zn);if(Sn){var Hn=1/nt(Sn),vo=1/(vt(Sn)*vt(Sn)),mo=-(vo+_n*(Nn*Nn*Hn*Hn)-1+_n),oo=(_n-1)*vo,So=(-mo+Ot(mo*mo-4*oo))/2;return[Zs(et(1/Ot(So)),_n)*ot(Jr),Zs(et(Ot((So/vo-1)/_n)),1-_n)*ot(dn)]}return[0,Zs(et(Nn),1-_n)*ot(dn)]}function Zs(Jr,dn){if(!dn)return Jr;if(dn===1)return j(vt(Jr/2+mt));for(var _n=1,Sn=Ot(1-dn),zn=Ot(dn),Nn=0;xt(zn)>dt;Nn++){if(Jr%ft){var Hn=et(Sn*vt(Jr)/_n);Hn<0&&(Hn+=ft),Jr+=Hn+~~(Jr/ft)*ft}else Jr+=Jr;zn=(_n+Sn)/2,Sn=Ot(_n*Sn),zn=((_n=zn)-Sn)/2}return Jr/(tt(2,Nn)*_n)}function xo(Jr,dn){var _n=(_t-1)/(_t+1),Sn=Ot(1-_n*_n),zn=Zs(at,Sn*Sn),Nn=-1,Hn=j(vt(ft/4+xt(dn)/2)),vo=ut(Nn*Hn)/Ot(_n),mo=Vo(vo*yt(Nn*Jr),vo*nt(Nn*Jr)),oo=Yl(mo[0],mo[1],Sn*Sn);return[-oo[1],(dn>=0?1:-1)*(.5*zn-oo[0])]}function Vo(Jr,dn){var _n=Jr*Jr,Sn=dn+1,zn=1-_n-dn*dn;return[.5*((Jr>=0?at:-at)-Tt(zn,2*Jr)),-.25*j(zn*zn+4*_n)+.5*j(Sn*Sn+_n)]}function Go(Jr,dn){var _n=dn[0]*dn[0]+dn[1]*dn[1];return[(Jr[0]*dn[0]+Jr[1]*dn[1])/_n,(Jr[1]*dn[0]-Jr[0]*dn[1])/_n]}xo.invert=function(Jr,dn){var _n=(_t-1)/(_t+1),Sn=Ot(1-_n*_n),zn=Zs(at,Sn*Sn),Nn=-1,Hn=Jl(.5*zn-dn,-Jr,Sn*Sn),vo=Go(Hn[0],Hn[1]),mo=Tt(vo[1],vo[0])/Nn;return[mo,2*et(ut(.5/Nn*j(_n*vo[0]*vo[0]+_n*vo[1]*vo[1])))-at]};function ms(){return(0,it.c)(gs(xo)).scale(151.496)}var Ws=o(61780);function ws(Jr){var dn=nt(Jr),_n=yt(Jr),Sn=Is(Jr);Sn.invert=Is(-Jr);function zn(Nn,Hn){var vo=Sn(Nn,Hn);Nn=vo[0],Hn=vo[1];var mo=nt(Hn),oo=yt(Hn),So=yt(Nn),Do=At(dn*mo+_n*oo*So),$o=nt(Do),os=xt($o)>dt?Do/$o:1;return[os*_n*nt(Nn),(xt(Nn)>at?os:-os)*(dn*oo-_n*mo*So)]}return zn.invert=function(Nn,Hn){var vo=Ot(Nn*Nn+Hn*Hn),mo=-nt(vo),oo=yt(vo),So=vo*oo,Do=-Hn*mo,$o=vo*dn,os=Ot(So*So+Do*Do-$o*$o),Ss=Tt(So*$o+Do*os,Do*$o-So*os),Ns=(vo>at?-1:1)*Tt(Nn*mo,vo*yt(Ss)*oo+Hn*nt(Ss)*mo);return Sn.invert(Ns,Ss)},zn}function Is(Jr){var dn=nt(Jr),_n=yt(Jr);return function(Sn,zn){var Nn=yt(zn),Hn=yt(Sn)*Nn,vo=nt(Sn)*Nn,mo=nt(zn);return[Tt(vo,Hn*_n-mo*dn),It(mo*_n+Hn*dn)]}}function Xs(){var Jr=0,dn=(0,it.U)(ws),_n=dn(Jr),Sn=_n.rotate,zn=_n.stream,Nn=(0,Ws.c)();return _n.parallel=function(Hn){if(!arguments.length)return Jr*kt;var vo=_n.rotate();return dn(Jr=Hn*wt).rotate(vo)},_n.rotate=function(Hn){return arguments.length?(Sn.call(_n,[Hn[0],Hn[1]-Jr*kt]),Nn.center([-Hn[0],-Hn[1]]),_n):(Hn=Sn.call(_n),Hn[1]+=Jr*kt,Hn)},_n.stream=function(Hn){return Hn=zn(Hn),Hn.sphere=function(){Hn.polygonStart();var vo=.01,mo=Nn.radius(90-vo)().coordinates[0],oo=mo.length-1,So=-1,Do;for(Hn.lineStart();++So=0;)Hn.point((Do=mo[So])[0],Do[1]);Hn.lineEnd(),Hn.polygonEnd()},Hn},_n.scale(79.4187).parallel(45).clipAngle(179.999)}var Cl=o(84706),Wl=o(16016),yu=3,yo=It(1-1/yu)*kt,Fo=fn(0);function To(Jr){var dn=yo*wt,_n=xr(ft,dn)[0]-xr(-ft,dn)[0],Sn=Fo(0,dn)[1],zn=xr(0,dn)[1],Nn=Mt-zn,Hn=Et/Jr,vo=4/Et,mo=Sn+Nn*Nn*4/Et;function oo(So,Do){var $o,os=xt(Do);if(os>dn){var Ss=rt(Jr-1,_(0,ht((So+ft)/Hn)));So+=ft*(Jr-1)/Jr-Ss*Hn,$o=xr(So,os),$o[0]=$o[0]*Et/_n-Et*(Jr-1)/(2*Jr)+Ss*Et/Jr,$o[1]=Sn+($o[1]-zn)*4*Nn/Et,Do<0&&($o[1]=-$o[1])}else $o=Fo(So,Do);return $o[0]*=vo,$o[1]/=mo,$o}return oo.invert=function(So,Do){So/=vo,Do*=mo;var $o=xt(Do);if($o>Sn){var os=rt(Jr-1,_(0,ht((So+ft)/Hn)));So=(So+ft*(Jr-1)/Jr-os*Hn)*_n/Et;var Ss=xr.invert(So,.25*($o-Sn)*Et/Nn+zn);return Ss[0]-=ft*(Jr-1)/Jr-os*Hn,Do<0&&(Ss[1]=-Ss[1]),Ss}return Fo.invert(So,Do)},oo}function Bo(Jr,dn){return[Jr,dn&1?90-dt:yo]}function Es(Jr,dn){return[Jr,dn&1?-90+dt:-yo]}function Ps(Jr){return[Jr[0]*(1-dt),Jr[1]]}function xs(Jr){var dn=[].concat((0,Cl.ik)(-180,180+Jr/2,Jr).map(Bo),(0,Cl.ik)(180,-180-Jr/2,-Jr).map(Es));return{type:"Polygon",coordinates:[Jr===180?dn.map(Ps):dn]}}function us(){var Jr=4,dn=(0,it.U)(To),_n=dn(Jr),Sn=_n.stream;return _n.lobes=function(zn){return arguments.length?dn(Jr=+zn):Jr},_n.stream=function(zn){var Nn=_n.rotate(),Hn=Sn(zn),vo=(_n.rotate([0,0]),Sn(zn));return _n.rotate(Nn),Hn.sphere=function(){(0,Wl.c)(xs(180/Jr),vo)},Hn},_n.scale(239.75)}function wo(Jr){var dn=1+Jr,_n=nt(1/dn),Sn=It(_n),zn=2*Ot(ft/(Nn=ft+4*Sn*dn)),Nn,Hn=.5*zn*(dn+Ot(Jr*(2+Jr))),vo=Jr*Jr,mo=dn*dn;function oo(So,Do){var $o=1-nt(Do),os,Ss;if($o&&$o<2){var Ns=at-Do,$s=25,Al;do{var pu=nt(Ns),du=yt(Ns),gu=Sn+Tt(pu,dn-du),Eu=1+mo-2*dn*du;Ns-=Al=(Ns-vo*Sn-dn*pu+Eu*gu-.5*$o*Nn)/(2*dn*pu*gu)}while(xt(Al)>bt&&--$s>0);os=zn*Ot(Eu),Ss=So*gu/ft}else os=zn*(Jr+$o),Ss=So*Sn/ft;return[os*nt(Ss),Hn-os*yt(Ss)]}return oo.invert=function(So,Do){var $o=So*So+(Do-=Hn)*Do,os=(1+mo-$o/(zn*zn))/(2*dn),Ss=At(os),Ns=nt(Ss),$s=Sn+Tt(Ns,dn-os);return[It(So/Ot($o))*ft/$s,It(1-2*(Ss-vo*Sn-dn*Ns+(1+mo-2*dn*os)*$s)/Nn)]},oo}function Qo(){var Jr=1,dn=(0,it.U)(wo),_n=dn(Jr);return _n.ratio=function(Sn){return arguments.length?dn(Jr=+Sn):Jr},_n.scale(167.774).center([0,18.67])}var Wo=.7109889596207567,rs=.0528035274542;function _s(Jr,dn){return dn>-Wo?(Jr=Rr(Jr,dn),Jr[1]+=rs,Jr):un(Jr,dn)}_s.invert=function(Jr,dn){return dn>-Wo?Rr.invert(Jr,dn-rs):un.invert(Jr,dn)};function Gs(){return(0,it.c)(_s).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function Cs(Jr,dn){return xt(dn)>Wo?(Jr=Rr(Jr,dn),Jr[1]-=dn>0?rs:-rs,Jr):un(Jr,dn)}Cs.invert=function(Jr,dn){return xt(dn)>Wo?Rr.invert(Jr,dn+(dn>0?rs:-rs)):un.invert(Jr,dn)};function Ks(){return(0,it.c)(Cs).scale(152.63)}function Ys(Jr,dn,_n,Sn){var zn=Ot(4*ft/(2*_n+(1+Jr-dn/2)*nt(2*_n)+(Jr+dn)/2*nt(4*_n)+dn/2*nt(6*_n))),Nn=Ot(Sn*nt(_n)*Ot((1+Jr*yt(2*_n)+dn*yt(4*_n))/(1+Jr+dn))),Hn=_n*mo(1);function vo(Do){return Ot(1+Jr*yt(2*Do)+dn*yt(4*Do))}function mo(Do){var $o=Do*_n;return(2*$o+(1+Jr-dn/2)*nt(2*$o)+(Jr+dn)/2*nt(4*$o)+dn/2*nt(6*$o))/_n}function oo(Do){return vo(Do)*nt(Do)}var So=function(Do,$o){var os=_n*Ar(mo,Hn*nt($o)/_n,$o/ft);isNaN(os)&&(os=_n*ot($o));var Ss=zn*vo(os);return[Ss*Nn*Do/ft*yt(os),Ss/Nn*nt(os)]};return So.invert=function(Do,$o){var os=Ar(oo,$o*Nn/zn);return[Do*ft/(yt(os)*zn*Nn*vo(os)),It(_n*mo(os/_n)/Hn)]},_n===0&&(zn=Ot(Sn/ft),So=function(Do,$o){return[Do*zn,nt($o)/zn]},So.invert=function(Do,$o){return[Do/zn,It($o*zn)]}),So}function Bl(){var Jr=1,dn=0,_n=45*wt,Sn=2,zn=(0,it.U)(Ys),Nn=zn(Jr,dn,_n,Sn);return Nn.a=function(Hn){return arguments.length?zn(Jr=+Hn,dn,_n,Sn):Jr},Nn.b=function(Hn){return arguments.length?zn(Jr,dn=+Hn,_n,Sn):dn},Nn.psiMax=function(Hn){return arguments.length?zn(Jr,dn,_n=+Hn*wt,Sn):_n*kt},Nn.ratio=function(Hn){return arguments.length?zn(Jr,dn,_n,Sn=+Hn):Sn},Nn.scale(180.739)}function zl(Jr,dn,_n,Sn,zn,Nn,Hn,vo,mo,oo,So){if(So.nanEncountered)return NaN;var Do,$o,os,Ss,Ns,$s,Al,pu,du,gu;if(Do=_n-dn,$o=Jr(dn+Do*.25),os=Jr(_n-Do*.25),isNaN($o)){So.nanEncountered=!0;return}if(isNaN(os)){So.nanEncountered=!0;return}return Ss=Do*(Sn+4*$o+zn)/12,Ns=Do*(zn+4*os+Nn)/12,$s=Ss+Ns,gu=($s-Hn)/15,oo>mo?(So.maxDepthCount++,$s+gu):Math.abs(gu)>1;do mo[$s]>os?Ns=$s:Ss=$s,$s=Ss+Ns>>1;while($s>Ss);var Al=mo[$s+1]-mo[$s];return Al&&(Al=(os-mo[$s+1])/Al),($s+1+Al)/Hn}var Do=2*So(1)/ft*Nn/_n,$o=function(os,Ss){var Ns=So(xt(nt(Ss))),$s=Sn(Ns)*os;return Ns/=Do,[$s,Ss>=0?Ns:-Ns]};return $o.invert=function(os,Ss){var Ns;return Ss*=Do,xt(Ss)<1&&(Ns=ot(Ss)*It(zn(xt(Ss))*Nn)),[os/Sn(xt(Ss)),Ns]},$o}function ju(){var Jr=0,dn=2.5,_n=1.183136,Sn=(0,it.U)(Zl),zn=Sn(Jr,dn,_n);return zn.alpha=function(Nn){return arguments.length?Sn(Jr=+Nn,dn,_n):Jr},zn.k=function(Nn){return arguments.length?Sn(Jr,dn=+Nn,_n):dn},zn.gamma=function(Nn){return arguments.length?Sn(Jr,dn,_n=+Nn):_n},zn.scale(152.63)}function Vu(Jr,dn){return xt(Jr[0]-dn[0])=0;--mo)_n=Jr[1][mo],Sn=_n[0][0],zn=_n[0][1],Nn=_n[1][1],Hn=_n[2][0],vo=_n[2][1],dn.push(Sv([[Hn-dt,vo-dt],[Hn-dt,Nn+dt],[Sn+dt,Nn+dt],[Sn+dt,zn-dt]],30));return{type:"Polygon",coordinates:[(0,Cl.Uf)(dn)]}}function Kp(Jr,dn,_n){var Sn,zn;function Nn(mo,oo){for(var So=oo<0?-1:1,Do=dn[+(oo<0)],$o=0,os=Do.length-1;$oDo[$o][2][0];++$o);var Ss=Jr(mo-Do[$o][1][0],oo);return Ss[0]+=Jr(Do[$o][1][0],So*oo>So*Do[$o][0][1]?Do[$o][0][1]:oo)[0],Ss}_n?Nn.invert=_n(Nn):Jr.invert&&(Nn.invert=function(mo,oo){for(var So=zn[+(oo<0)],Do=dn[+(oo<0)],$o=0,os=So.length;$oSs&&(Ns=os,os=Ss,Ss=Ns),[[Do,os],[$o,Ss]]})}),Hn):dn.map(function(oo){return oo.map(function(So){return[[So[0][0]*kt,So[0][1]*kt],[So[1][0]*kt,So[1][1]*kt],[So[2][0]*kt,So[2][1]*kt]]})})},dn!=null&&Hn.lobes(dn),Hn}var c1=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Fm(){return Kp(Nr,c1).scale(160.857)}var Bm=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Bu(){return Kp(Cs,Bm).scale(152.63)}var Qv=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function zm(){return Kp(Rr,Qv).scale(169.529)}var Op=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function av(){return Kp(Rr,Op).scale(169.529).rotate([20,0])}var C0=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function f1(){return Kp(_s,C0,br).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var Ap=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function d1(){return Kp(un,Ap).scale(152.63).rotate([-20,0])}function _p(Jr,dn){return[3/Et*Jr*Ot(ft*ft/3-dn*dn),dn]}_p.invert=function(Jr,dn){return[Et/3*Jr/Ot(ft*ft/3-dn*dn),dn]};function kp(){return(0,it.c)(_p).scale(158.837)}function h1(Jr){function dn(_n,Sn){if(xt(xt(Sn)-at)2)return null;_n/=2,Sn/=2;var Nn=_n*_n,Hn=Sn*Sn,vo=2*Sn/(1+Nn+Hn);return vo=tt((1+vo)/(1-vo),1/Jr),[Tt(2*_n,1-Nn-Hn)/Jr,It((vo-1)/(vo+1))]},dn}function $p(){var Jr=.5,dn=(0,it.U)(h1),_n=dn(Jr);return _n.spacing=function(Sn){return arguments.length?dn(Jr=+Sn):Jr},_n.scale(124.75)}var op=ft/_t;function lv(Jr,dn){return[Jr*(1+Ot(yt(dn)))/2,dn/(yt(dn/2)*yt(Jr/6))]}lv.invert=function(Jr,dn){var _n=xt(Jr),Sn=xt(dn),zn=dt,Nn=at;Sndt||xt($s)>dt)&&--zn>0);return zn&&[_n,Sn]};function iy(){return(0,it.c)(uv).scale(139.98)}function qv(Jr,dn){return[nt(Jr)/yt(dn),vt(dn)*yt(Jr)]}qv.invert=function(Jr,dn){var _n=Jr*Jr,Sn=dn*dn,zn=Sn+1,Nn=_n+zn,Hn=Jr?St*Ot((Nn-Ot(Nn*Nn-4*_n))/_n):1/Ot(zn);return[It(Jr*Hn),ot(dn)*At(Hn)]};function Hp(){return(0,it.c)(qv).scale(144.049).clipAngle(89.999)}function Um(Jr){var dn=yt(Jr),_n=vt(mt+Jr/2);function Sn(zn,Nn){var Hn=Nn-Jr,vo=xt(Hn)=0;)So=Jr[oo],Do=So[0]+vo*(os=Do)-mo*$o,$o=So[1]+vo*$o+mo*os;return Do=vo*(os=Do)-mo*$o,$o=vo*$o+mo*os,[Do,$o]}return _n.invert=function(Sn,zn){var Nn=20,Hn=Sn,vo=zn;do{for(var mo=dn,oo=Jr[mo],So=oo[0],Do=oo[1],$o=0,os=0,Ss;--mo>=0;)oo=Jr[mo],$o=So+Hn*(Ss=$o)-vo*os,os=Do+Hn*os+vo*Ss,So=oo[0]+Hn*(Ss=So)-vo*Do,Do=oo[1]+Hn*Do+vo*Ss;$o=So+Hn*(Ss=$o)-vo*os,os=Do+Hn*os+vo*Ss,So=Hn*(Ss=So)-vo*Do-Sn,Do=Hn*Do+vo*Ss-zn;var Ns=$o*$o+os*os,$s,Al;Hn-=$s=(So*$o+Do*os)/Ns,vo-=Al=(Do*$o-So*os)/Ns}while(xt($s)+xt(Al)>dt*dt&&--Nn>0);if(Nn){var pu=Ot(Hn*Hn+vo*vo),du=2*et(pu*.5),gu=nt(du);return[Tt(Hn*gu,pu*yt(du)),pu?It(vo*gu/pu):0]}},_n}var wy=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],v1=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],sy=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],I0=[[.9245,0],[0,0],[.01943,0]],mm=[[.721316,0],[0,0],[-.00881625,-.00617325]];function $m(){return k0(wy,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function Cy(){return k0(v1,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Ry(){return k0(sy,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function H0(){return k0(I0,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function Pv(){return k0(mm,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function k0(Jr,dn){var _n=(0,it.c)(oy(Jr)).rotate(dn).clipAngle(90),Sn=(0,Ur.c)(dn),zn=_n.center;return delete _n.rotate,_n.center=function(Nn){return arguments.length?zn(Sn(Nn)):Sn.invert(zn())},_n}var g1=Ot(6),V1=Ot(7);function W1(Jr,dn){var _n=It(7*nt(dn)/(3*g1));return[g1*Jr*(2*yt(2*_n/3)-1)/V1,9*nt(_n/3)/V1]}W1.invert=function(Jr,dn){var _n=3*It(dn*V1/9);return[Jr*V1/(g1*(2*yt(2*_n/3)-1)),It(nt(_n)*3*g1/7)]};function ly(){return(0,it.c)(W1).scale(164.859)}function h0(Jr,dn){for(var _n=(1+St)*nt(dn),Sn=dn,zn=0,Nn;zn<25&&(Sn-=Nn=(nt(Sn/2)+nt(Sn)-_n)/(.5*yt(Sn/2)+yt(Sn)),!(xt(Nn)bt&&--Sn>0);return Nn=_n*_n,Hn=Nn*Nn,vo=Nn*Hn,[Jr/(.84719-.13063*Nn+vo*vo*(-.04515+.05494*Nn-.02326*Hn+.00331*vo)),_n]};function Su(){return(0,it.c)(fu).scale(175.295)}function Yu(Jr,dn){return[Jr*(1+yt(dn))/2,2*(dn-vt(dn/2))]}Yu.invert=function(Jr,dn){for(var _n=dn/2,Sn=0,zn=1/0;Sn<10&&xt(zn)>dt;++Sn){var Nn=yt(dn/2);dn-=zn=(dn-vt(dn/2)-_n)/(1-.5/(Nn*Nn))}return[2*Jr/(1+yt(dn)),dn]};function mp(){return(0,it.c)(Yu).scale(152.63)}var np=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function e0(){return Kp(tr(1/0),np).rotate([20,0]).scale(152.63)}function t0(Jr,dn){var _n=nt(dn),Sn=yt(dn),zn=ot(Jr);if(Jr===0||xt(dn)===at)return[0,dn];if(dn===0)return[Jr,0];if(xt(Jr)===at)return[Jr*Sn,at*_n];var Nn=ft/(2*Jr)-2*Jr/ft,Hn=2*dn/ft,vo=(1-Hn*Hn)/(_n-Hn),mo=Nn*Nn,oo=vo*vo,So=1+mo/oo,Do=1+oo/mo,$o=(Nn*_n/vo-Nn/2)/So,os=(oo*_n/mo+vo/2)/Do,Ss=$o*$o+Sn*Sn/So,Ns=os*os-(oo*_n*_n/mo+vo*_n-1)/Do;return[at*($o+Ot(Ss)*zn),at*(os+Ot(Ns<0?0:Ns)*ot(-dn*Nn)*zn)]}t0.invert=function(Jr,dn){Jr/=at,dn/=at;var _n=Jr*Jr,Sn=dn*dn,zn=_n+Sn,Nn=ft*ft;return[Jr?(zn-1+Ot((1-zn)*(1-zn)+4*_n))/(2*Jr)*at:0,Ar(function(Hn){return zn*(ft*nt(Hn)-2*Hn)*ft+4*Hn*Hn*(dn-nt(Hn))+2*ft*Hn-Nn*dn},0)]};function vv(){return(0,it.c)(t0).scale(127.267)}var p0=1.0148,$v=.23185,up=-.14499,y1=.02406,ym=p0,ep=5*$v,x1=7*up,G0=9*y1,Zp=1.790857183;function xm(Jr,dn){var _n=dn*dn;return[Jr,dn*(p0+_n*_n*($v+_n*(up+y1*_n)))]}xm.invert=function(Jr,dn){dn>Zp?dn=Zp:dn<-Zp&&(dn=-Zp);var _n=dn,Sn;do{var zn=_n*_n;_n-=Sn=(_n*(p0+zn*zn*($v+zn*(up+y1*zn)))-dn)/(ym+zn*zn*(ep+zn*(x1+G0*zn)))}while(xt(Sn)>dt);return[Jr,_n]};function b1(){return(0,it.c)(xm).scale(139.319)}function bm(Jr,dn){if(xt(dn)dt&&--zn>0);return Hn=vt(Sn),[(xt(dn)=0;)if(Sn=dn[vo],_n[0]===Sn[0]&&_n[1]===Sn[1]){if(Nn)return[Nn,_n];Nn=_n}}}function Hm(Jr){for(var dn=Jr.length,_n=[],Sn=Jr[dn-1],zn=0;zn0?[-Sn[0],0]:[180-Sn[0],180])};var dn=Ep.map(function(_n){return{face:_n,project:Jr(_n)}});return[-1,0,0,1,0,1,4,5].forEach(function(_n,Sn){var zn=dn[_n];zn&&(zn.children||(zn.children=[])).push(dn[Sn])}),qu(dn[0],function(_n,Sn){return dn[_n<-ft/2?Sn<0?6:4:_n<0?Sn<0?2:0:_nSn^os>Sn&&_n<($o-oo)*(Sn-So)/(os-So)+oo&&(zn=!zn)}return zn}function Vm(Jr,dn){var _n=dn.stream,Sn;if(!_n)throw new Error("invalid projection");switch(Jr&&Jr.type){case"Feature":Sn=X0;break;case"FeatureCollection":Sn=A1;break;default:Sn=y0;break}return Sn(Jr,_n)}function A1(Jr,dn){return{type:"FeatureCollection",features:Jr.features.map(function(_n){return X0(_n,dn)})}}function X0(Jr,dn){return{type:"Feature",id:Jr.id,properties:Jr.properties,geometry:y0(Jr.geometry,dn)}}function _1(Jr,dn){return{type:"GeometryCollection",geometries:Jr.geometries.map(function(_n){return y0(_n,dn)})}}function y0(Jr,dn){if(!Jr)return null;if(Jr.type==="GeometryCollection")return _1(Jr,dn);var _n;switch(Jr.type){case"Point":_n=S1;break;case"MultiPoint":_n=S1;break;case"LineString":_n=cy;break;case"MultiLineString":_n=cy;break;case"Polygon":_n=J1;break;case"MultiPolygon":_n=J1;break;case"Sphere":_n=J1;break;default:return null}return(0,Wl.c)(Jr,dn(_n)),_n.result()}var Sp=[],Cv=[],S1={point:function(Jr,dn){Sp.push([Jr,dn])},result:function(){var Jr=Sp.length?Sp.length<2?{type:"Point",coordinates:Sp[0]}:{type:"MultiPoint",coordinates:Sp}:null;return Sp=[],Jr}},cy={lineStart:K1,point:function(Jr,dn){Sp.push([Jr,dn])},lineEnd:function(){Sp.length&&(Cv.push(Sp),Sp=[])},result:function(){var Jr=Cv.length?Cv.length<2?{type:"LineString",coordinates:Cv[0]}:{type:"MultiLineString",coordinates:Cv}:null;return Cv=[],Jr}},J1={polygonStart:K1,lineStart:K1,point:function(Jr,dn){Sp.push([Jr,dn])},lineEnd:function(){var Jr=Sp.length;if(Jr){do Sp.push(Sp[0].slice());while(++Jr<4);Cv.push(Sp),Sp=[]}},polygonEnd:K1,result:function(){if(!Cv.length)return null;var Jr=[],dn=[];return Cv.forEach(function(_n){Gm(_n)?Jr.push([_n]):dn.push(_n)}),dn.forEach(function(_n){var Sn=_n[0];Jr.some(function(zn){if(Z1(zn[0],Sn))return zn.push(_n),!0})||Jr.push([_n])}),Cv=[],Jr.length?Jr.length>1?{type:"MultiPolygon",coordinates:Jr}:{type:"Polygon",coordinates:Jr[0]}:null}};function x0(Jr){var dn=Jr(at,0)[0]-Jr(-at,0)[0];function _n(Sn,zn){var Nn=xt(Sn)0?Sn-ft:Sn+ft,zn),vo=(Hn[0]-Hn[1])*St,mo=(Hn[0]+Hn[1])*St;if(Nn)return[vo,mo];var oo=dn*St,So=vo>0^mo>0?-1:1;return[So*vo-ot(mo)*oo,So*mo-ot(vo)*oo]}return Jr.invert&&(_n.invert=function(Sn,zn){var Nn=(Sn+zn)*St,Hn=(zn-Sn)*St,vo=xt(Nn)<.5*dn&&xt(Hn)<.5*dn;if(!vo){var mo=dn*St,oo=Nn>0^Hn>0?-1:1,So=-oo*Sn+(Hn>0?1:-1)*mo,Do=-oo*zn+(Nn>0?1:-1)*mo;Nn=(-So-Do)*St,Hn=(So-Do)*St}var $o=Jr.invert(Nn,Hn);return vo||($o[0]+=Nn>0?ft:-ft),$o}),(0,it.c)(_n).rotate([-90,-90,45]).clipAngle(179.999)}function Am(){return x0(zs).scale(176.423)}function w1(){return x0(xo).scale(111.48)}function Wm(Jr,dn){if(!(0<=(dn=+dn)&&dn<=20))throw new Error("invalid digits");function _n(oo){var So=oo.length,Do=2,$o=new Array(So);for($o[0]=+oo[0].toFixed(dn),$o[1]=+oo[1].toFixed(dn);Do2||os[0]!=So[0]||os[1]!=So[1])&&(Do.push(os),So=os)}return Do.length===1&&oo.length>1&&Do.push(_n(oo[oo.length-1])),Do}function Nn(oo){return oo.map(zn)}function Hn(oo){if(oo==null)return oo;var So;switch(oo.type){case"GeometryCollection":So={type:"GeometryCollection",geometries:oo.geometries.map(Hn)};break;case"Point":So={type:"Point",coordinates:_n(oo.coordinates)};break;case"MultiPoint":So={type:oo.type,coordinates:Sn(oo.coordinates)};break;case"LineString":So={type:oo.type,coordinates:zn(oo.coordinates)};break;case"MultiLineString":case"Polygon":So={type:oo.type,coordinates:Nn(oo.coordinates)};break;case"MultiPolygon":So={type:"MultiPolygon",coordinates:oo.coordinates.map(Nn)};break;default:return oo}return oo.bbox!=null&&(So.bbox=oo.bbox),So}function vo(oo){var So={type:"Feature",properties:oo.properties,geometry:Hn(oo.geometry)};return oo.id!=null&&(So.id=oo.id),oo.bbox!=null&&(So.bbox=oo.bbox),So}if(Jr!=null)switch(Jr.type){case"Feature":return vo(Jr);case"FeatureCollection":{var mo={type:"FeatureCollection",features:Jr.features.map(vo)};return Jr.bbox!=null&&(mo.bbox=Jr.bbox),mo}default:return Hn(Jr)}return Jr}function Ao(Jr){var dn=nt(Jr);function _n(Sn,zn){var Nn=dn?vt(Sn*dn/2)/dn:Sn/2;if(!zn)return[2*Nn,-Jr];var Hn=2*et(Nn*nt(zn)),vo=1/vt(zn);return[nt(Hn)*vo,zn+(1-yt(Hn))*vo-Jr]}return _n.invert=function(Sn,zn){if(xt(zn+=Jr)dt&&--vo>0);var $o=Sn*(oo=vt(Hn)),os=vt(xt(zn)0?at:-at)*(mo+zn*(So-Hn)/2+zn*zn*(So-2*mo+Hn)/2)]}Mp.invert=function(Jr,dn){var _n=dn/at,Sn=_n*90,zn=rt(18,xt(Sn/5)),Nn=_(0,ht(zn));do{var Hn=Gp[Nn][1],vo=Gp[Nn+1][1],mo=Gp[rt(19,Nn+2)][1],oo=mo-Hn,So=mo-2*vo+Hn,Do=2*(xt(_n)-vo)/oo,$o=So/oo,os=Do*(1-$o*Do*(1-2*$o*Do));if(os>=0||Nn===1){Sn=(dn>=0?5:-5)*(os+zn);var Ss=50,Ns;do zn=rt(18,xt(Sn)/5),Nn=ht(zn),os=zn-Nn,Hn=Gp[Nn][1],vo=Gp[Nn+1][1],mo=Gp[rt(19,Nn+2)][1],Sn-=(Ns=(dn>=0?at:-at)*(vo+os*(mo-Hn)/2+os*os*(mo-2*vo+Hn)/2)-dn)*kt;while(xt(Ns)>bt&&--Ss>0);break}}while(--Nn>=0);var $s=Gp[Nn][0],Al=Gp[Nn+1][0],pu=Gp[rt(19,Nn+2)][0];return[Jr/(Al+os*(pu-$s)/2+os*os*(pu-2*Al+$s)/2),Sn*wt]};function Lu(){return(0,it.c)(Mp).scale(152.63)}function C1(Jr){function dn(_n,Sn){var zn=yt(Sn),Nn=(Jr-1)/(Jr-zn*yt(_n));return[Nn*zn*nt(_n),Nn*nt(Sn)]}return dn.invert=function(_n,Sn){var zn=_n*_n+Sn*Sn,Nn=Ot(zn),Hn=(Jr-Ot(1-zn*(Jr+1)/(Jr-1)))/((Jr-1)/Nn+Nn/(Jr-1));return[Tt(_n*Hn,Nn*Ot(1-Hn*Hn)),Nn?It(Sn*Hn/Nn):0]},dn}function _m(Jr,dn){var _n=C1(Jr);if(!dn)return _n;var Sn=yt(dn),zn=nt(dn);function Nn(Hn,vo){var mo=_n(Hn,vo),oo=mo[1],So=oo*zn/(Jr-1)+Sn;return[mo[0]*Sn/So,oo/So]}return Nn.invert=function(Hn,vo){var mo=(Jr-1)/(Jr-1-vo*zn);return _n.invert(mo*Hn,mo*vo*Sn)},Nn}function Z0(){var Jr=2,dn=0,_n=(0,it.U)(_m),Sn=_n(Jr,dn);return Sn.distance=function(zn){return arguments.length?_n(Jr=+zn,dn):Jr},Sn.tilt=function(zn){return arguments.length?_n(Jr,dn=zn*wt):dn*kt},Sn.scale(432.147).clipAngle(At(1/Jr)*kt-1e-6)}var Rv=1e-4,fy=1e4,b0=-180,R1=b0+Rv,P0=180,E0=P0-Rv,Mv=-90,M1=Mv+Rv,tp=90,I1=tp-Rv;function Sm(Jr){return Jr.length>0}function dy(Jr){return Math.floor(Jr*fy)/fy}function mv(Jr){return Jr===Mv||Jr===tp?[0,Jr]:[b0,dy(Jr)]}function Q1(Jr){var dn=Jr[0],_n=Jr[1],Sn=!1;return dn<=R1?(dn=b0,Sn=!0):dn>=E0&&(dn=P0,Sn=!0),_n<=M1?(_n=Mv,Sn=!0):_n>=I1&&(_n=tp,Sn=!0),Sn?[dn,_n]:Jr}function wm(Jr){return Jr.map(Q1)}function jm(Jr,dn,_n){for(var Sn=0,zn=Jr.length;Sn=E0||So<=M1||So>=I1){Nn[Hn]=Q1(mo);for(var Do=Hn+1;DoR1&&osM1&&Ss=vo)break;_n.push({index:-1,polygon:dn,ring:Nn=Nn.slice(Do-1)}),Nn[0]=mv(Nn[0][1]),Hn=-1,vo=Nn.length}}}}function q1(Jr){var dn,_n=Jr.length,Sn={},zn={},Nn,Hn,vo,mo,oo;for(dn=0;dn<_n;++dn){if(Nn=Jr[dn],Hn=Nn.ring[0],mo=Nn.ring[Nn.ring.length-1],Hn[0]===mo[0]&&Hn[1]===mo[1]){Nn.polygon.push(Nn.ring),Jr[dn]=null;continue}Nn.index=dn,Sn[Hn]=zn[mo]=Nn}for(dn=0;dn<_n;++dn)if(Nn=Jr[dn],Nn){if(Hn=Nn.ring[0],mo=Nn.ring[Nn.ring.length-1],vo=zn[Hn],oo=Sn[mo],delete Sn[Hn],delete zn[mo],Hn[0]===mo[0]&&Hn[1]===mo[1]){Nn.polygon.push(Nn.ring);continue}vo?(delete zn[Hn],delete Sn[vo.ring[0]],vo.ring.pop(),Jr[vo.index]=null,Nn={index:-1,polygon:vo.polygon,ring:vo.ring.concat(Nn.ring)},vo===oo?Nn.polygon.push(Nn.ring):(Nn.index=_n++,Jr.push(Sn[Nn.ring[0]]=zn[Nn.ring[Nn.ring.length-1]]=Nn))):oo?(delete Sn[mo],delete zn[oo.ring[oo.ring.length-1]],Nn.ring.pop(),Nn={index:_n++,polygon:oo.polygon,ring:Nn.ring.concat(oo.ring)},Jr[oo.index]=null,Jr.push(Sn[Nn.ring[0]]=zn[Nn.ring[Nn.ring.length-1]]=Nn)):(Nn.ring.push(Nn.ring[0]),Nn.polygon.push(Nn.ring))}}function em(Jr){var dn={type:"Feature",geometry:yv(Jr.geometry)};return Jr.id!=null&&(dn.id=Jr.id),Jr.bbox!=null&&(dn.bbox=Jr.bbox),Jr.properties!=null&&(dn.properties=Jr.properties),dn}function yv(Jr){if(Jr==null)return Jr;var dn,_n,Sn,zn;switch(Jr.type){case"GeometryCollection":dn={type:"GeometryCollection",geometries:Jr.geometries.map(yv)};break;case"Point":dn={type:"Point",coordinates:Q1(Jr.coordinates)};break;case"MultiPoint":case"LineString":dn={type:Jr.type,coordinates:wm(Jr.coordinates)};break;case"MultiLineString":dn={type:"MultiLineString",coordinates:Jr.coordinates.map(wm)};break;case"Polygon":{var Nn=[];jm(Jr.coordinates,Nn,_n=[]),q1(_n),dn={type:"Polygon",coordinates:Nn};break}case"MultiPolygon":{_n=[],Sn=-1,zn=Jr.coordinates.length;for(var Hn=new Array(zn);++Sn0?ft-vo:vo)*kt],oo=(0,it.c)(Jr(Hn)).rotate(mo),So=(0,Ur.c)(mo),Do=oo.center;return delete oo.rotate,oo.center=function($o){return arguments.length?Do(So($o)):So.invert(Do())},oo.clipAngle(90)}function Ym(Jr){var dn=yt(Jr);function _n(Sn,zn){var Nn=(0,Hv.Y)(Sn,zn);return Nn[0]*=dn,Nn}return _n.invert=function(Sn,zn){return Hv.Y.invert(Sn/dn,zn)},_n}function J0(){return Cm([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function Cm(Jr,dn){return r0(Ym,Jr,dn)}function rm(Jr){if(!(Jr*=2))return sr.O;var dn=-Jr/2,_n=-dn,Sn=Jr*Jr,zn=vt(_n),Nn=.5/nt(_n);function Hn(vo,mo){var oo=At(yt(mo)*yt(vo-dn)),So=At(yt(mo)*yt(vo-_n)),Do=mo<0?-1:1;return oo*=oo,So*=So,[(oo-So)/(2*Jr),Do*Ot(4*Sn*So-(Sn-oo+So)*(Sn-oo+So))/(2*Jr)]}return Hn.invert=function(vo,mo){var oo=mo*mo,So=yt(Ot(oo+($o=vo+dn)*$o)),Do=yt(Ot(oo+($o=vo+_n)*$o)),$o,os;return[Tt(os=So-Do,$o=(So+Do)*zn),(mo<0?-1:1)*At(Ot($o*$o+os*os)*Nn)]},Hn}function hy(){return Xm([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function Xm(Jr,dn){return r0(rm,Jr,dn)}function iv(Jr,dn){if(xt(dn)dt&&--vo>0);return[ot(Jr)*(Ot(zn*zn+4)+zn)*ft/4,at*Hn]};function am(){return(0,it.c)(cv).scale(127.16)}function Ov(Jr,dn,_n,Sn,zn){function Nn(Hn,vo){var mo=_n*nt(Sn*vo),oo=Ot(1-mo*mo),So=Ot(2/(1+oo*yt(Hn*=zn)));return[Jr*oo*So*nt(Hn),dn*mo*So]}return Nn.invert=function(Hn,vo){var mo=Hn/Jr,oo=vo/dn,So=Ot(mo*mo+oo*oo),Do=2*It(So/2);return[Tt(Hn*vt(Do),Jr*So)/zn,So&&It(vo*nt(Do)/(dn*_n*So))/Sn]},Nn}function Wv(Jr,dn,_n,Sn){var zn=ft/3;Jr=_(Jr,dt),dn=_(dn,dt),Jr=rt(Jr,at),dn=rt(dn,ft-dt),_n=_(_n,0),_n=rt(_n,100-dt),Sn=_(Sn,dt);var Nn=_n/100+1,Hn=Sn/100,vo=At(Nn*yt(zn))/zn,mo=nt(Jr)/nt(vo*at),oo=dn/ft,So=Ot(Hn*nt(Jr/2)/nt(dn/2)),Do=So/Ot(oo*mo*vo),$o=1/(So*Ot(oo*mo*vo));return Ov(Do,$o,mo,vo,oo)}function xv(){var Jr=65*wt,dn=60*wt,_n=20,Sn=200,zn=(0,it.U)(Wv),Nn=zn(Jr,dn,_n,Sn);return Nn.poleline=function(Hn){return arguments.length?zn(Jr=+Hn*wt,dn,_n,Sn):Jr*kt},Nn.parallels=function(Hn){return arguments.length?zn(Jr,dn=+Hn*wt,_n,Sn):dn*kt},Nn.inflation=function(Hn){return arguments.length?zn(Jr,dn,_n=+Hn,Sn):_n},Nn.ratio=function(Hn){return arguments.length?zn(Jr,dn,_n,Sn=+Hn):Sn},Nn.scale(163.775)}function bv(){return xv().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var im=4*ft+3*Ot(3),L1=2*Ot(2*ft*Ot(3)/im),om=Er(L1*Ot(3)/ft,L1,im/6);function D1(){return(0,it.c)(om).scale(176.84)}function Fv(Jr,dn){return[Jr*Ot(1-3*dn*dn/(ft*ft)),dn]}Fv.invert=function(Jr,dn){return[Jr/Ot(1-3*dn*dn/(ft*ft)),dn]};function Rm(){return(0,it.c)(Fv).scale(152.63)}function Q0(Jr,dn){var _n=yt(dn),Sn=yt(Jr)*_n,zn=1-Sn,Nn=yt(Jr=Tt(nt(Jr)*_n,-nt(dn))),Hn=nt(Jr);return _n=Ot(1-Sn*Sn),[Hn*_n-Nn*zn,-Nn*_n-Hn*zn]}Q0.invert=function(Jr,dn){var _n=(Jr*Jr+dn*dn)/-2,Sn=Ot(-_n*(2+_n)),zn=dn*_n+Jr*Sn,Nn=Jr*_n-dn*Sn,Hn=Ot(Nn*Nn+zn*zn);return[Tt(Sn*zn,Hn*(1+_n)),Hn?-It(Sn*Nn/Hn):0]};function P1(){return(0,it.c)(Q0).rotate([0,-90,45]).scale(124.75).clipAngle(179.999)}function sm(Jr,dn){var _n=Vt(Jr,dn);return[(_n[0]+Jr/at)/2,(_n[1]+dn)/2]}sm.invert=function(Jr,dn){var _n=Jr,Sn=dn,zn=25;do{var Nn=yt(Sn),Hn=nt(Sn),vo=nt(2*Sn),mo=Hn*Hn,oo=Nn*Nn,So=nt(_n),Do=yt(_n/2),$o=nt(_n/2),os=$o*$o,Ss=1-oo*Do*Do,Ns=Ss?At(Nn*Do)*Ot($s=1/Ss):$s=0,$s,Al=.5*(2*Ns*Nn*$o+_n/at)-Jr,pu=.5*(Ns*Hn+Sn)-dn,du=.5*$s*(oo*os+Ns*Nn*Do*mo)+.5/at,gu=$s*(So*vo/4-Ns*Hn*$o),Eu=.125*$s*(vo*$o-Ns*Hn*oo*So),Nu=.5*$s*(mo*Do+Ns*os*Nn)+.5,_c=gu*Eu-Nu*du,Ip=(pu*gu-Al*Nu)/_c,dr=(Al*Eu-pu*du)/_c;_n-=Ip,Sn-=dr}while((xt(Ip)>dt||xt(dr)>dt)&&--zn>0);return[_n,Sn]};function Km(){return(0,it.c)(sm).scale(158.837)}},88728:function(Ct,Rt,o){o.d(Rt,{c:function(){return it}});function it(){return new xt}function xt(){this.reset()}xt.prototype={constructor:xt,reset:function(){this.s=this.t=0},add:function(yt){Tt(et,yt,this.t),Tt(this,et.s,this.s),this.s?this.t+=et.t:this.s=et.t},valueOf:function(){return this.s}};var et=new xt;function Tt(yt,ut,ht){var j=yt.s=ut+ht,_=j-ut,rt=j-_;yt.t=ut-rt+(ht-_)}},95384:function(Ct,Rt,o){o.d(Rt,{cp:function(){return bt},mQ:function(){return yt},oB:function(){return st}});var it=o(88728),xt=o(64528),et=o(70932),Tt=o(16016),yt=(0,it.c)(),ut=(0,it.c)(),ht,j,_,rt,tt,st={point:et.c,lineStart:et.c,lineEnd:et.c,polygonStart:function(){yt.reset(),st.lineStart=ot,st.lineEnd=nt},polygonEnd:function(){var ft=+yt;ut.add(ft<0?xt.kD+ft:ft),this.lineStart=this.lineEnd=this.point=et.c},sphere:function(){ut.add(xt.kD)}};function ot(){st.point=vt}function nt(){dt(ht,j)}function vt(ft,at){st.point=dt,ht=ft,j=at,ft*=xt.qw,at*=xt.qw,_=ft,rt=(0,xt.W8)(at=at/2+xt.wL),tt=(0,xt.g$)(at)}function dt(ft,at){ft*=xt.qw,at*=xt.qw,at=at/2+xt.wL;var mt=ft-_,St=mt>=0?1:-1,_t=St*mt,Mt=(0,xt.W8)(at),Et=(0,xt.g$)(at),kt=tt*Et,wt=rt*Mt+kt*(0,xt.W8)(_t),ct=kt*St*(0,xt.g$)(_t);yt.add((0,xt.WE)(ct,wt)),_=ft,rt=Mt,tt=Et}function bt(ft){return ut.reset(),(0,Tt.c)(ft,st),ut*2}},13696:function(Ct,Rt,o){o.d(Rt,{c:function(){return It}});var it=o(88728),xt=o(95384),et=o(84220),Tt=o(64528),yt=o(16016),ut,ht,j,_,rt,tt,st,ot,nt=(0,it.c)(),vt,dt,bt={point:ft,lineStart:mt,lineEnd:St,polygonStart:function(){bt.point=_t,bt.lineStart=Mt,bt.lineEnd=Et,nt.reset(),xt.oB.polygonStart()},polygonEnd:function(){xt.oB.polygonEnd(),bt.point=ft,bt.lineStart=mt,bt.lineEnd=St,xt.mQ<0?(ut=-(j=180),ht=-(_=90)):nt>Tt.Gg?_=90:nt<-Tt.Gg&&(ht=-90),dt[0]=ut,dt[1]=j},sphere:function(){ut=-(j=180),ht=-(_=90)}};function ft(At,Ot){vt.push(dt=[ut=At,j=At]),Ot_&&(_=Ot)}function at(At,Ot){var Pt=(0,et.ux)([At*Tt.qw,Ot*Tt.qw]);if(ot){var zt=(0,et.CW)(ot,Pt),Dt=[zt[1],-zt[0],0],Nt=(0,et.CW)(Dt,zt);(0,et.cJ)(Nt),Nt=(0,et.G)(Nt);var $t=At-rt,Ut=$t>0?1:-1,Ht=Nt[0]*Tt.oh*Ut,Vt,Xt=(0,Tt.a2)($t)>180;Xt^(Ut*rt_&&(_=Vt)):(Ht=(Ht+360)%360-180,Xt^(Ut*rt_&&(_=Ot))),Xt?Atkt(ut,j)&&(j=At):kt(At,j)>kt(ut,j)&&(ut=At):j>=ut?(Atj&&(j=At)):At>rt?kt(ut,At)>kt(ut,j)&&(j=At):kt(At,j)>kt(ut,j)&&(ut=At)}else vt.push(dt=[ut=At,j=At]);Ot_&&(_=Ot),ot=Pt,rt=At}function mt(){bt.point=at}function St(){dt[0]=ut,dt[1]=j,bt.point=ft,ot=null}function _t(At,Ot){if(ot){var Pt=At-rt;nt.add((0,Tt.a2)(Pt)>180?Pt+(Pt>0?360:-360):Pt)}else tt=At,st=Ot;xt.oB.point(At,Ot),at(At,Ot)}function Mt(){xt.oB.lineStart()}function Et(){_t(tt,st),xt.oB.lineEnd(),(0,Tt.a2)(nt)>Tt.Gg&&(ut=-(j=180)),dt[0]=ut,dt[1]=j,ot=null}function kt(At,Ot){return(Ot-=At)<0?Ot+360:Ot}function wt(At,Ot){return At[0]-Ot[0]}function ct(At,Ot){return At[0]<=At[1]?At[0]<=Ot&&Ot<=At[1]:Otkt(zt[0],zt[1])&&(zt[1]=Dt[1]),kt(Dt[0],zt[1])>kt(zt[0],zt[1])&&(zt[0]=Dt[0])):Nt.push(zt=Dt);for($t=-1/0,Pt=Nt.length-1,Ot=0,zt=Nt[Pt];Ot<=Pt;zt=Dt,++Ot)Dt=Nt[Ot],(Ut=kt(zt[1],Dt[0]))>$t&&($t=Ut,ut=Dt[0],j=zt[1])}return vt=dt=null,ut===1/0||ht===1/0?[[NaN,NaN],[NaN,NaN]]:[[ut,ht],[j,_]]}},84220:function(Ct,Rt,o){o.d(Rt,{CW:function(){return yt},Ez:function(){return Tt},G:function(){return xt},cJ:function(){return j},mg:function(){return ut},ux:function(){return et},wx:function(){return ht}});var it=o(64528);function xt(_){return[(0,it.WE)(_[1],_[0]),(0,it.qR)(_[2])]}function et(_){var rt=_[0],tt=_[1],st=(0,it.W8)(tt);return[st*(0,it.W8)(rt),st*(0,it.g$)(rt),(0,it.g$)(tt)]}function Tt(_,rt){return _[0]*rt[0]+_[1]*rt[1]+_[2]*rt[2]}function yt(_,rt){return[_[1]*rt[2]-_[2]*rt[1],_[2]*rt[0]-_[0]*rt[2],_[0]*rt[1]-_[1]*rt[0]]}function ut(_,rt){_[0]+=rt[0],_[1]+=rt[1],_[2]+=rt[2]}function ht(_,rt){return[_[0]*rt,_[1]*rt,_[2]*rt]}function j(_){var rt=(0,it._I)(_[0]*_[0]+_[1]*_[1]+_[2]*_[2]);_[0]/=rt,_[1]/=rt,_[2]/=rt}},24052:function(Ct,Rt,o){o.d(Rt,{c:function(){return Pt}});var it=o(64528),xt=o(70932),et=o(16016),Tt,yt,ut,ht,j,_,rt,tt,st,ot,nt,vt,dt,bt,ft,at,mt={sphere:xt.c,point:St,lineStart:Mt,lineEnd:wt,polygonStart:function(){mt.lineStart=ct,mt.lineEnd=It},polygonEnd:function(){mt.lineStart=Mt,mt.lineEnd=wt}};function St(zt,Dt){zt*=it.qw,Dt*=it.qw;var Nt=(0,it.W8)(Dt);_t(Nt*(0,it.W8)(zt),Nt*(0,it.g$)(zt),(0,it.g$)(Dt))}function _t(zt,Dt,Nt){++Tt,ut+=(zt-ut)/Tt,ht+=(Dt-ht)/Tt,j+=(Nt-j)/Tt}function Mt(){mt.point=Et}function Et(zt,Dt){zt*=it.qw,Dt*=it.qw;var Nt=(0,it.W8)(Dt);bt=Nt*(0,it.W8)(zt),ft=Nt*(0,it.g$)(zt),at=(0,it.g$)(Dt),mt.point=kt,_t(bt,ft,at)}function kt(zt,Dt){zt*=it.qw,Dt*=it.qw;var Nt=(0,it.W8)(Dt),$t=Nt*(0,it.W8)(zt),Ut=Nt*(0,it.g$)(zt),Ht=(0,it.g$)(Dt),Vt=(0,it.WE)((0,it._I)((Vt=ft*Ht-at*Ut)*Vt+(Vt=at*$t-bt*Ht)*Vt+(Vt=bt*Ut-ft*$t)*Vt),bt*$t+ft*Ut+at*Ht);yt+=Vt,_+=Vt*(bt+(bt=$t)),rt+=Vt*(ft+(ft=Ut)),tt+=Vt*(at+(at=Ht)),_t(bt,ft,at)}function wt(){mt.point=St}function ct(){mt.point=At}function It(){Ot(vt,dt),mt.point=St}function At(zt,Dt){vt=zt,dt=Dt,zt*=it.qw,Dt*=it.qw,mt.point=Ot;var Nt=(0,it.W8)(Dt);bt=Nt*(0,it.W8)(zt),ft=Nt*(0,it.g$)(zt),at=(0,it.g$)(Dt),_t(bt,ft,at)}function Ot(zt,Dt){zt*=it.qw,Dt*=it.qw;var Nt=(0,it.W8)(Dt),$t=Nt*(0,it.W8)(zt),Ut=Nt*(0,it.g$)(zt),Ht=(0,it.g$)(Dt),Vt=ft*Ht-at*Ut,Xt=at*$t-bt*Ht,qt=bt*Ut-ft*$t,er=(0,it._I)(Vt*Vt+Xt*Xt+qt*qt),lr=(0,it.qR)(er),Jt=er&&-lr/er;st+=Jt*Vt,ot+=Jt*Xt,nt+=Jt*qt,yt+=lr,_+=lr*(bt+(bt=$t)),rt+=lr*(ft+(ft=Ut)),tt+=lr*(at+(at=Ht)),_t(bt,ft,at)}function Pt(zt){Tt=yt=ut=ht=j=_=rt=tt=st=ot=nt=0,(0,et.c)(zt,mt);var Dt=st,Nt=ot,$t=nt,Ut=Dt*Dt+Nt*Nt+$t*$t;return Ut0?stot)&&(st+=tt*et.kD));for(var bt,ft=st;tt>0?ft>ot:ft0?xt.pi:-xt.pi,nt=(0,xt.a2)(tt-ht);(0,xt.a2)(nt-xt.pi)0?xt.or:-xt.or),ut.point(_,j),ut.lineEnd(),ut.lineStart(),ut.point(ot,j),ut.point(tt,j),rt=0):_!==ot&&nt>=xt.pi&&((0,xt.a2)(ht-_)xt.Gg?(0,xt.MQ)(((0,xt.g$)(ht)*(tt=(0,xt.W8)(_))*(0,xt.g$)(j)-(0,xt.g$)(_)*(rt=(0,xt.W8)(ht))*(0,xt.g$)(ut))/(rt*tt*st)):(ht+_)/2}function yt(ut,ht,j,_){var rt;if(ut==null)rt=j*xt.or,_.point(-xt.pi,rt),_.point(0,rt),_.point(xt.pi,rt),_.point(xt.pi,0),_.point(xt.pi,-rt),_.point(0,-rt),_.point(-xt.pi,-rt),_.point(-xt.pi,0),_.point(-xt.pi,rt);else if((0,xt.a2)(ut[0]-ht[0])>xt.Gg){var tt=ut[0]1&&et.push(et.pop().concat(et.shift()))},result:function(){var yt=et;return et=[],Tt=null,yt}}}},2728:function(Ct,Rt,o){o.d(Rt,{c:function(){return ut}});var it=o(84220),xt=o(61780),et=o(64528),Tt=o(41860),yt=o(14229);function ut(ht){var j=(0,et.W8)(ht),_=6*et.qw,rt=j>0,tt=(0,et.a2)(j)>et.Gg;function st(bt,ft,at,mt){(0,xt.Q)(mt,ht,_,at,bt,ft)}function ot(bt,ft){return(0,et.W8)(bt)*(0,et.W8)(ft)>j}function nt(bt){var ft,at,mt,St,_t;return{lineStart:function(){St=mt=!1,_t=1},point:function(Mt,Et){var kt=[Mt,Et],wt,ct=ot(Mt,Et),It=rt?ct?0:dt(Mt,Et):ct?dt(Mt+(Mt<0?et.pi:-et.pi),Et):0;if(!ft&&(St=mt=ct)&&bt.lineStart(),ct!==mt&&(wt=vt(ft,kt),(!wt||(0,Tt.c)(ft,wt)||(0,Tt.c)(kt,wt))&&(kt[2]=1)),ct!==mt)_t=0,ct?(bt.lineStart(),wt=vt(kt,ft),bt.point(wt[0],wt[1])):(wt=vt(ft,kt),bt.point(wt[0],wt[1],2),bt.lineEnd()),ft=wt;else if(tt&&ft&&rt^ct){var At;!(It&at)&&(At=vt(kt,ft,!0))&&(_t=0,rt?(bt.lineStart(),bt.point(At[0][0],At[0][1]),bt.point(At[1][0],At[1][1]),bt.lineEnd()):(bt.point(At[1][0],At[1][1]),bt.lineEnd(),bt.lineStart(),bt.point(At[0][0],At[0][1],3)))}ct&&(!ft||!(0,Tt.c)(ft,kt))&&bt.point(kt[0],kt[1]),ft=kt,mt=ct,at=It},lineEnd:function(){mt&&bt.lineEnd(),ft=null},clean:function(){return _t|(St&&mt)<<1}}}function vt(bt,ft,at){var mt=(0,it.ux)(bt),St=(0,it.ux)(ft),_t=[1,0,0],Mt=(0,it.CW)(mt,St),Et=(0,it.Ez)(Mt,Mt),kt=Mt[0],wt=Et-kt*kt;if(!wt)return!at&&bt;var ct=j*Et/wt,It=-j*kt/wt,At=(0,it.CW)(_t,Mt),Ot=(0,it.wx)(_t,ct),Pt=(0,it.wx)(Mt,It);(0,it.mg)(Ot,Pt);var zt=At,Dt=(0,it.Ez)(Ot,zt),Nt=(0,it.Ez)(zt,zt),$t=Dt*Dt-Nt*((0,it.Ez)(Ot,Ot)-1);if(!($t<0)){var Ut=(0,et._I)($t),Ht=(0,it.wx)(zt,(-Dt-Ut)/Nt);if((0,it.mg)(Ht,Ot),Ht=(0,it.G)(Ht),!at)return Ht;var Vt=bt[0],Xt=ft[0],qt=bt[1],er=ft[1],lr;Xt0^Ht[1]<((0,et.a2)(Ht[0]-Vt)et.pi^(Vt<=Ht[0]&&Ht[0]<=Xt)){var jt=(0,it.wx)(zt,(-Dt+Ut)/Nt);return(0,it.mg)(jt,Ot),[Ht,(0,it.G)(jt)]}}}function dt(bt,ft){var at=rt?ht:et.pi-ht,mt=0;return bt<-at?mt|=1:bt>at&&(mt|=2),ft<-at?mt|=4:ft>at&&(mt|=8),mt}return(0,yt.c)(ot,nt,st,rt?[0,-ht]:[-et.pi,ht-et.pi])}},14229:function(Ct,Rt,o){o.d(Rt,{c:function(){return ut}});var it=o(97208),xt=o(32232),et=o(64528),Tt=o(58196),yt=o(84706);function ut(_,rt,tt,st){return function(ot){var nt=rt(ot),vt=(0,it.c)(),dt=rt(vt),bt=!1,ft,at,mt,St={point:_t,lineStart:Et,lineEnd:kt,polygonStart:function(){St.point=wt,St.lineStart=ct,St.lineEnd=It,at=[],ft=[]},polygonEnd:function(){St.point=_t,St.lineStart=Et,St.lineEnd=kt,at=(0,yt.Uf)(at);var At=(0,Tt.c)(ft,st);at.length?(bt||(ot.polygonStart(),bt=!0),(0,xt.c)(at,j,At,tt,ot)):At&&(bt||(ot.polygonStart(),bt=!0),ot.lineStart(),tt(null,null,1,ot),ot.lineEnd()),bt&&(ot.polygonEnd(),bt=!1),at=ft=null},sphere:function(){ot.polygonStart(),ot.lineStart(),tt(null,null,1,ot),ot.lineEnd(),ot.polygonEnd()}};function _t(At,Ot){_(At,Ot)&&ot.point(At,Ot)}function Mt(At,Ot){nt.point(At,Ot)}function Et(){St.point=Mt,nt.lineStart()}function kt(){St.point=_t,nt.lineEnd()}function wt(At,Ot){mt.push([At,Ot]),dt.point(At,Ot)}function ct(){dt.lineStart(),mt=[]}function It(){wt(mt[0][0],mt[0][1]),dt.lineEnd();var At=dt.clean(),Ot=vt.result(),Pt,zt=Ot.length,Dt,Nt,$t;if(mt.pop(),ft.push(mt),mt=null,!!zt){if(At&1){if(Nt=Ot[0],(Dt=Nt.length-1)>0){for(bt||(ot.polygonStart(),bt=!0),ot.lineStart(),Pt=0;Pt1&&At&2&&Ot.push(Ot.pop().concat(Ot.shift())),at.push(Ot.filter(ht))}}return St}}function ht(_){return _.length>1}function j(_,rt){return((_=_.x)[0]<0?_[1]-et.or-et.Gg:et.or-_[1])-((rt=rt.x)[0]<0?rt[1]-et.or-et.Gg:et.or-rt[1])}},21676:function(Ct,Rt,o){o.d(Rt,{c:function(){return j}});var it=o(64528),xt=o(97208);function et(_,rt,tt,st,ot,nt){var vt=_[0],dt=_[1],bt=rt[0],ft=rt[1],at=0,mt=1,St=bt-vt,_t=ft-dt,Mt;if(Mt=tt-vt,!(!St&&Mt>0)){if(Mt/=St,St<0){if(Mt0){if(Mt>mt)return;Mt>at&&(at=Mt)}if(Mt=ot-vt,!(!St&&Mt<0)){if(Mt/=St,St<0){if(Mt>mt)return;Mt>at&&(at=Mt)}else if(St>0){if(Mt0)){if(Mt/=_t,_t<0){if(Mt0){if(Mt>mt)return;Mt>at&&(at=Mt)}if(Mt=nt-dt,!(!_t&&Mt<0)){if(Mt/=_t,_t<0){if(Mt>mt)return;Mt>at&&(at=Mt)}else if(_t>0){if(Mt0&&(_[0]=vt+at*St,_[1]=dt+at*_t),mt<1&&(rt[0]=vt+mt*St,rt[1]=dt+mt*_t),!0}}}}}var Tt=o(32232),yt=o(84706),ut=1e9,ht=-ut;function j(_,rt,tt,st){function ot(ft,at){return _<=ft&&ft<=tt&&rt<=at&&at<=st}function nt(ft,at,mt,St){var _t=0,Mt=0;if(ft==null||(_t=vt(ft,mt))!==(Mt=vt(at,mt))||bt(ft,at)<0^mt>0)do St.point(_t===0||_t===3?_:tt,_t>1?st:rt);while((_t=(_t+mt+4)%4)!==Mt);else St.point(at[0],at[1])}function vt(ft,at){return(0,it.a2)(ft[0]-_)0?0:3:(0,it.a2)(ft[0]-tt)0?2:1:(0,it.a2)(ft[1]-rt)0?1:0:at>0?3:2}function dt(ft,at){return bt(ft.x,at.x)}function bt(ft,at){var mt=vt(ft,1),St=vt(at,1);return mt!==St?mt-St:mt===0?at[1]-ft[1]:mt===1?ft[0]-at[0]:mt===2?ft[1]-at[1]:at[0]-ft[0]}return function(ft){var at=ft,mt=(0,xt.c)(),St,_t,Mt,Et,kt,wt,ct,It,At,Ot,Pt,zt={point:Dt,lineStart:Ht,lineEnd:Vt,polygonStart:$t,polygonEnd:Ut};function Dt(qt,er){ot(qt,er)&&at.point(qt,er)}function Nt(){for(var qt=0,er=0,lr=_t.length;erst&&(Zt-ar)*(st-sr)>(Kt-sr)*(_-ar)&&++qt:Kt<=st&&(Zt-ar)*(st-sr)<(Kt-sr)*(_-ar)&&--qt;return qt}function $t(){at=mt,St=[],_t=[],Pt=!0}function Ut(){var qt=Nt(),er=Pt&&qt,lr=(St=(0,yt.Uf)(St)).length;(er||lr)&&(ft.polygonStart(),er&&(ft.lineStart(),nt(null,null,1,ft),ft.lineEnd()),lr&&(0,Tt.c)(St,dt,qt,nt,ft),ft.polygonEnd()),at=ft,St=_t=Mt=null}function Ht(){zt.point=Xt,_t&&_t.push(Mt=[]),Ot=!0,At=!1,ct=It=NaN}function Vt(){St&&(Xt(Et,kt),wt&&At&&mt.rejoin(),St.push(mt.result())),zt.point=Dt,At&&at.lineEnd()}function Xt(qt,er){var lr=ot(qt,er);if(_t&&Mt.push([qt,er]),Ot)Et=qt,kt=er,wt=lr,Ot=!1,lr&&(at.lineStart(),at.point(qt,er));else if(lr&&At)at.point(qt,er);else{var Jt=[ct=Math.max(ht,Math.min(ut,ct)),It=Math.max(ht,Math.min(ut,It))],Yt=[qt=Math.max(ht,Math.min(ut,qt)),er=Math.max(ht,Math.min(ut,er))];et(Jt,Yt,_,rt,tt,st)?(At||(at.lineStart(),at.point(Jt[0],Jt[1])),at.point(Yt[0],Yt[1]),lr||at.lineEnd(),Pt=!1):lr&&(at.lineStart(),at.point(qt,er),Pt=!1)}ct=qt,It=er,At=lr}return zt}}},32232:function(Ct,Rt,o){o.d(Rt,{c:function(){return Tt}});var it=o(41860),xt=o(64528);function et(ut,ht,j,_){this.x=ut,this.z=ht,this.o=j,this.e=_,this.v=!1,this.n=this.p=null}function Tt(ut,ht,j,_,rt){var tt=[],st=[],ot,nt;if(ut.forEach(function(mt){if(!((St=mt.length-1)<=0)){var St,_t=mt[0],Mt=mt[St],Et;if((0,it.c)(_t,Mt)){if(!_t[2]&&!Mt[2]){for(rt.lineStart(),ot=0;ot=0;--ot)rt.point((bt=dt[ot])[0],bt[1]);else _(ft.x,ft.p.x,-1,rt);ft=ft.p}ft=ft.o,dt=ft.z,at=!at}while(!ft.v);rt.lineEnd()}}}function yt(ut){if(ht=ut.length){for(var ht,j=0,_=ut[0],rt;++j0&&(ys=wt(bo[gs],bo[gs-1]),ys>0&&Yo<=ys&&Oo<=ys&&(Yo+Oo-ys)*(1-Math.pow((Yo-Oo)/ys,2))tt.Gg}).map(Yl)).concat((0,Ut.ik)((0,tt.Km)(gs/Fl)*Fl,ys,Fl).filter(function(ws){return(0,tt.a2)(ws%nu)>tt.Gg}).map(Zs))}return ms.lines=function(){return Ws().map(function(ws){return{type:"LineString",coordinates:ws}})},ms.outline=function(){return{type:"Polygon",coordinates:[xo(Oo).concat(Vo(zs).slice(1),xo(Yo).reverse().slice(1),Vo(Us).reverse().slice(1))]}},ms.extent=function(ws){return arguments.length?ms.extentMajor(ws).extentMinor(ws):ms.extentMinor()},ms.extentMajor=function(ws){return arguments.length?(Oo=+ws[0][0],Yo=+ws[1][0],Us=+ws[0][1],zs=+ws[1][1],Oo>Yo&&(ws=Oo,Oo=Yo,Yo=ws),Us>zs&&(ws=Us,Us=zs,zs=ws),ms.precision(Go)):[[Oo,Us],[Yo,zs]]},ms.extentMinor=function(ws){return arguments.length?(No=+ws[0][0],bo=+ws[1][0],gs=+ws[0][1],ys=+ws[1][1],No>bo&&(ws=No,No=bo,bo=ws),gs>ys&&(ws=gs,gs=ys,ys=ws),ms.precision(Go)):[[No,gs],[bo,ys]]},ms.step=function(ws){return arguments.length?ms.stepMajor(ws).stepMinor(ws):ms.stepMinor()},ms.stepMajor=function(ws){return arguments.length?(Jl=+ws[0],nu=+ws[1],ms):[Jl,nu]},ms.stepMinor=function(ws){return arguments.length?(Qs=+ws[0],Fl=+ws[1],ms):[Qs,Fl]},ms.precision=function(ws){return arguments.length?(Go=+ws,Yl=Ht(gs,ys,90),Zs=Vt(No,bo,Go),xo=Ht(Us,zs,90),Vo=Vt(Oo,Yo,Go),ms):Go},ms.extentMajor([[-180,-90+tt.Gg],[180,90-tt.Gg]]).extentMinor([[-180,-80-tt.Gg],[180,80+tt.Gg]])}function qt(){return Xt()()}var er=o(27284),lr=o(7376),Jt=(0,rt.c)(),Yt=(0,rt.c)(),rr,jt,ar,sr,Zt={point:st.c,lineStart:st.c,lineEnd:st.c,polygonStart:function(){Zt.lineStart=Kt,Zt.lineEnd=cr},polygonEnd:function(){Zt.lineStart=Zt.lineEnd=Zt.point=st.c,Jt.add((0,tt.a2)(Yt)),Yt.reset()},result:function(){var bo=Jt/2;return Jt.reset(),bo}};function Kt(){Zt.point=or}function or(bo,No){Zt.point=tr,rr=ar=bo,jt=sr=No}function tr(bo,No){Yt.add(sr*bo-ar*No),ar=bo,sr=No}function cr(){tr(rr,jt)}var mr=Zt,Ar=o(73784),br=0,Ir=0,Tr=0,_r=0,Er=0,Rr=0,zr=0,Or=0,kr=0,Nr,Qr,sn,un,en={point:Xr,lineStart:ln,lineEnd:Tn,polygonStart:function(){en.lineStart=Zr,en.lineEnd=Fr},polygonEnd:function(){en.point=Xr,en.lineStart=ln,en.lineEnd=Tn},result:function(){var bo=kr?[zr/kr,Or/kr]:Rr?[_r/Rr,Er/Rr]:Tr?[br/Tr,Ir/Tr]:[NaN,NaN];return br=Ir=Tr=_r=Er=Rr=zr=Or=kr=0,bo}};function Xr(bo,No){br+=bo,Ir+=No,++Tr}function ln(){en.point=mn}function mn(bo,No){en.point=pn,Xr(sn=bo,un=No)}function pn(bo,No){var Yo=bo-sn,Oo=No-un,ys=(0,tt._I)(Yo*Yo+Oo*Oo);_r+=ys*(sn+bo)/2,Er+=ys*(un+No)/2,Rr+=ys,Xr(sn=bo,un=No)}function Tn(){en.point=Xr}function Zr(){en.point=Ur}function Fr(){Wr(Nr,Qr)}function Ur(bo,No){en.point=Wr,Xr(Nr=sn=bo,Qr=un=No)}function Wr(bo,No){var Yo=bo-sn,Oo=No-un,ys=(0,tt._I)(Yo*Yo+Oo*Oo);_r+=ys*(sn+bo)/2,Er+=ys*(un+No)/2,Rr+=ys,ys=un*bo-sn*No,zr+=ys*(sn+bo),Or+=ys*(un+No),kr+=ys*3,Xr(sn=bo,un=No)}var Gr=en;function wr(bo){this._context=bo}wr.prototype={_radius:4.5,pointRadius:function(bo){return this._radius=bo,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(bo,No){switch(this._point){case 0:{this._context.moveTo(bo,No),this._point=1;break}case 1:{this._context.lineTo(bo,No);break}default:{this._context.moveTo(bo+this._radius,No),this._context.arc(bo,No,this._radius,0,tt.kD);break}}},result:st.c};var pr=(0,rt.c)(),Dr,Sr,ur,xr,Pr,Vr={point:st.c,lineStart:function(){Vr.point=qr},lineEnd:function(){Dr&&rn(Sr,ur),Vr.point=st.c},polygonStart:function(){Dr=!0},polygonEnd:function(){Dr=null},result:function(){var bo=+pr;return pr.reset(),bo}};function qr(bo,No){Vr.point=rn,Sr=xr=bo,ur=Pr=No}function rn(bo,No){xr-=bo,Pr-=No,pr.add((0,tt._I)(xr*xr+Pr*Pr)),xr=bo,Pr=No}var Cn=Vr;function xn(){this._string=[]}xn.prototype={_radius:4.5,_circle:fn(4.5),pointRadius:function(bo){return(bo=+bo)!==this._radius&&(this._radius=bo,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(bo,No){switch(this._point){case 0:{this._string.push("M",bo,",",No),this._point=1;break}case 1:{this._string.push("L",bo,",",No);break}default:{this._circle==null&&(this._circle=fn(this._radius)),this._string.push("M",bo,",",No,this._circle);break}}},result:function(){if(this._string.length){var bo=this._string.join("");return this._string=[],bo}else return null}};function fn(bo){return"m0,"+bo+"a"+bo+","+bo+" 0 1,1 0,"+-2*bo+"a"+bo+","+bo+" 0 1,1 0,"+2*bo+"z"}function bn(bo,No){var Yo=4.5,Oo,ys;function gs(zs){return zs&&(typeof Yo=="function"&&ys.pointRadius(+Yo.apply(this,arguments)),(0,ot.c)(zs,Oo(ys))),ys.result()}return gs.area=function(zs){return(0,ot.c)(zs,Oo(mr)),mr.result()},gs.measure=function(zs){return(0,ot.c)(zs,Oo(Cn)),Cn.result()},gs.bounds=function(zs){return(0,ot.c)(zs,Oo(Ar.c)),Ar.c.result()},gs.centroid=function(zs){return(0,ot.c)(zs,Oo(Gr)),Gr.result()},gs.projection=function(zs){return arguments.length?(Oo=zs==null?(bo=null,lr.c):(bo=zs).stream,gs):bo},gs.context=function(zs){return arguments.length?(ys=zs==null?(No=null,new xn):new wr(No=zs),typeof Yo!="function"&&ys.pointRadius(Yo),gs):No},gs.pointRadius=function(zs){return arguments.length?(Yo=typeof zs=="function"?zs:(ys.pointRadius(+zs),+zs),gs):Yo},gs.projection(bo).context(No)}var Un=o(87952);function _i(bo){var No=0,Yo=tt.pi/3,Oo=(0,Un.U)(bo),ys=Oo(No,Yo);return ys.parallels=function(gs){return arguments.length?Oo(No=gs[0]*tt.qw,Yo=gs[1]*tt.qw):[No*tt.oh,Yo*tt.oh]},ys}function yn(bo){var No=(0,tt.W8)(bo);function Yo(Oo,ys){return[Oo*No,(0,tt.g$)(ys)/No]}return Yo.invert=function(Oo,ys){return[Oo/No,(0,tt.qR)(ys*No)]},Yo}function Kn(bo,No){var Yo=(0,tt.g$)(bo),Oo=(Yo+(0,tt.g$)(No))/2;if((0,tt.a2)(Oo)=.12&&Go<.234&&Vo>=-.425&&Vo<-.214?ys:Go>=.166&&Go<.234&&Vo>=-.214&&Vo<-.115?zs:Yo).invert(Yl)},Jl.stream=function(Yl){return bo&&No===Yl?bo:bo=An([Yo.stream(No=Yl),ys.stream(Yl),zs.stream(Yl)])},Jl.precision=function(Yl){return arguments.length?(Yo.precision(Yl),ys.precision(Yl),zs.precision(Yl),nu()):Yo.precision()},Jl.scale=function(Yl){return arguments.length?(Yo.scale(Yl),ys.scale(Yl*.35),zs.scale(Yl),Jl.translate(Yo.translate())):Yo.scale()},Jl.translate=function(Yl){if(!arguments.length)return Yo.translate();var Zs=Yo.scale(),xo=+Yl[0],Vo=+Yl[1];return Oo=Yo.translate(Yl).clipExtent([[xo-.455*Zs,Vo-.238*Zs],[xo+.455*Zs,Vo+.238*Zs]]).stream(Fl),gs=ys.translate([xo-.307*Zs,Vo+.201*Zs]).clipExtent([[xo-.425*Zs+tt.Gg,Vo+.12*Zs+tt.Gg],[xo-.214*Zs-tt.Gg,Vo+.234*Zs-tt.Gg]]).stream(Fl),Us=zs.translate([xo-.205*Zs,Vo+.212*Zs]).clipExtent([[xo-.214*Zs+tt.Gg,Vo+.166*Zs+tt.Gg],[xo-.115*Zs-tt.Gg,Vo+.234*Zs-tt.Gg]]).stream(Fl),nu()},Jl.fitExtent=function(Yl,Zs){return(0,ba.QX)(Jl,Yl,Zs)},Jl.fitSize=function(Yl,Zs){return(0,ba.UV)(Jl,Yl,Zs)},Jl.fitWidth=function(Yl,Zs){return(0,ba.Qx)(Jl,Yl,Zs)},Jl.fitHeight=function(Yl,Zs){return(0,ba.OW)(Jl,Yl,Zs)};function nu(){return bo=No=null,Jl}return Jl.scale(1070)}var wn=o(54724),In=o(69020),Ln=o(92992);function Xn(bo,No){return[bo,(0,tt.Yz)((0,tt.a6)((tt.or+No)/2))]}Xn.invert=function(bo,No){return[bo,2*(0,tt.MQ)((0,tt.oN)(No))-tt.or]};function Wn(){return Vn(Xn).scale(961/tt.kD)}function Vn(bo){var No=(0,Un.c)(bo),Yo=No.center,Oo=No.scale,ys=No.translate,gs=No.clipExtent,zs=null,Us,Qs,Fl;No.scale=function(nu){return arguments.length?(Oo(nu),Jl()):Oo()},No.translate=function(nu){return arguments.length?(ys(nu),Jl()):ys()},No.center=function(nu){return arguments.length?(Yo(nu),Jl()):Yo()},No.clipExtent=function(nu){return arguments.length?(nu==null?zs=Us=Qs=Fl=null:(zs=+nu[0][0],Us=+nu[0][1],Qs=+nu[1][0],Fl=+nu[1][1]),Jl()):zs==null?null:[[zs,Us],[Qs,Fl]]};function Jl(){var nu=tt.pi*Oo(),Yl=No((0,Ln.c)(No.rotate()).invert([0,0]));return gs(zs==null?[[Yl[0]-nu,Yl[1]-nu],[Yl[0]+nu,Yl[1]+nu]]:bo===Xn?[[Math.max(Yl[0]-nu,zs),Us],[Math.min(Yl[0]+nu,Qs),Fl]]:[[zs,Math.max(Yl[1]-nu,Us)],[Qs,Math.min(Yl[1]+nu,Fl)]])}return Jl()}function ga(bo){return(0,tt.a6)((tt.or+bo)/2)}function fo(bo,No){var Yo=(0,tt.W8)(bo),Oo=bo===No?(0,tt.g$)(bo):(0,tt.Yz)(Yo/(0,tt.W8)(No))/(0,tt.Yz)(ga(No)/ga(bo)),ys=Yo*(0,tt.g3)(ga(bo),Oo)/Oo;if(!Oo)return Xn;function gs(zs,Us){ys>0?Us<-tt.or+tt.Gg&&(Us=-tt.or+tt.Gg):Us>tt.or-tt.Gg&&(Us=tt.or-tt.Gg);var Qs=ys/(0,tt.g3)(ga(Us),Oo);return[Qs*(0,tt.g$)(Oo*zs),ys-Qs*(0,tt.W8)(Oo*zs)]}return gs.invert=function(zs,Us){var Qs=ys-Us,Fl=(0,tt.kq)(Oo)*(0,tt._I)(zs*zs+Qs*Qs),Jl=(0,tt.WE)(zs,(0,tt.a2)(Qs))*(0,tt.kq)(Qs);return Qs*Oo<0&&(Jl-=tt.pi*(0,tt.kq)(zs)*(0,tt.kq)(Qs)),[Jl/Oo,2*(0,tt.MQ)((0,tt.g3)(ys/Fl,1/Oo))-tt.or]},gs}function qn(){return _i(fo).scale(109.5).parallels([30,30])}var po=o(69604);function Yr(bo,No){var Yo=(0,tt.W8)(bo),Oo=bo===No?(0,tt.g$)(bo):(Yo-(0,tt.W8)(No))/(No-bo),ys=Yo/Oo+bo;if((0,tt.a2)(Oo)2?Oo[2]+90:90]):(Oo=Yo(),[Oo[0],Oo[1],Oo[2]-90])},Yo([0,0,90]).scale(159.155)}},27284:function(Ct,Rt,o){o.d(Rt,{c:function(){return xt}});var it=o(64528);function xt(et,Tt){var yt=et[0]*it.qw,ut=et[1]*it.qw,ht=Tt[0]*it.qw,j=Tt[1]*it.qw,_=(0,it.W8)(ut),rt=(0,it.g$)(ut),tt=(0,it.W8)(j),st=(0,it.g$)(j),ot=_*(0,it.W8)(yt),nt=_*(0,it.g$)(yt),vt=tt*(0,it.W8)(ht),dt=tt*(0,it.g$)(ht),bt=2*(0,it.qR)((0,it._I)((0,it.SD)(j-ut)+_*tt*(0,it.SD)(ht-yt))),ft=(0,it.g$)(bt),at=bt?function(mt){var St=(0,it.g$)(mt*=bt)/ft,_t=(0,it.g$)(bt-mt)/ft,Mt=_t*ot+St*vt,Et=_t*nt+St*dt,kt=_t*rt+St*st;return[(0,it.WE)(Et,Mt)*it.oh,(0,it.WE)(kt,(0,it._I)(Mt*Mt+Et*Et))*it.oh]}:function(){return[yt*it.oh,ut*it.oh]};return at.distance=bt,at}},64528:function(Ct,Rt,o){o.d(Rt,{Gg:function(){return it},Km:function(){return ot},MQ:function(){return rt},SD:function(){return Mt},W8:function(){return st},WE:function(){return tt},Yz:function(){return vt},_I:function(){return at},a2:function(){return _},a6:function(){return mt},a8:function(){return xt},g$:function(){return bt},g3:function(){return dt},kD:function(){return ut},kq:function(){return ft},mE:function(){return St},oN:function(){return nt},oh:function(){return ht},or:function(){return Tt},pi:function(){return et},qR:function(){return _t},qw:function(){return j},wL:function(){return yt}});var it=1e-6,xt=1e-12,et=Math.PI,Tt=et/2,yt=et/4,ut=et*2,ht=180/et,j=et/180,_=Math.abs,rt=Math.atan,tt=Math.atan2,st=Math.cos,ot=Math.ceil,nt=Math.exp,vt=Math.log,dt=Math.pow,bt=Math.sin,ft=Math.sign||function(Et){return Et>0?1:Et<0?-1:0},at=Math.sqrt,mt=Math.tan;function St(Et){return Et>1?0:Et<-1?et:Math.acos(Et)}function _t(Et){return Et>1?Tt:Et<-1?-Tt:Math.asin(Et)}function Mt(Et){return(Et=bt(Et/2))*Et}},70932:function(Ct,Rt,o){o.d(Rt,{c:function(){return it}});function it(){}},73784:function(Ct,Rt,o){var it=o(70932),xt=1/0,et=xt,Tt=-xt,yt=Tt,ut={point:ht,lineStart:it.c,lineEnd:it.c,polygonStart:it.c,polygonEnd:it.c,result:function(){var j=[[xt,et],[Tt,yt]];return Tt=yt=-(et=xt=1/0),j}};function ht(j,_){jTt&&(Tt=j),_yt&&(yt=_)}Rt.c=ut},41860:function(Ct,Rt,o){o.d(Rt,{c:function(){return xt}});var it=o(64528);function xt(et,Tt){return(0,it.a2)(et[0]-Tt[0])=0?1:-1,zt=Pt*Ot,Dt=zt>et.pi,Nt=_t*It;if(Tt.add((0,et.WE)(Nt*Pt*(0,et.g$)(zt),Mt*At+Nt*(0,et.W8)(zt))),ot+=Dt?Ot+Pt*et.kD:Ot,Dt^mt>=_^wt>=_){var $t=(0,xt.CW)((0,xt.ux)(at),(0,xt.ux)(kt));(0,xt.cJ)($t);var Ut=(0,xt.CW)(st,$t);(0,xt.cJ)(Ut);var Ht=(Dt^Ot>=0?-1:1)*(0,et.qR)(Ut[2]);(rt>Ht||rt===Ht&&($t[0]||$t[1]))&&(nt+=Dt^Ot>=0?1:-1)}}return(ot<-et.Gg||ot4*Mt&&Ht--){var lr=It+Nt,Jt=At+$t,Yt=Ot+Ut,rr=(0,ut._I)(lr*lr+Jt*Jt+Yt*Yt),jt=(0,ut.qR)(Yt/=rr),ar=(0,ut.a2)((0,ut.a2)(Yt)-1)Mt||(0,ut.a2)((Xt*or+qt*tr)/er-.5)>.3||It*Nt+At*$t+Ot*Ut2?cr[2]%360*ut.qw:0,or()):[At*ut.oh,Ot*ut.oh,Pt*ut.oh]},Zt.angle=function(cr){return arguments.length?(Dt=cr%360*ut.qw,or()):Dt*ut.oh},Zt.reflectX=function(cr){return arguments.length?(Nt=cr?-1:1,or()):Nt<0},Zt.reflectY=function(cr){return arguments.length?($t=cr?-1:1,or()):$t<0},Zt.precision=function(cr){return arguments.length?(Yt=ot(rr,Jt=cr*cr),tr()):(0,ut._I)(Jt)},Zt.fitExtent=function(cr,mr){return(0,_.QX)(Zt,cr,mr)},Zt.fitSize=function(cr,mr){return(0,_.UV)(Zt,cr,mr)},Zt.fitWidth=function(cr,mr){return(0,_.Qx)(Zt,cr,mr)},Zt.fitHeight=function(cr,mr){return(0,_.OW)(Zt,cr,mr)};function or(){var cr=at(Et,0,0,Nt,$t,Dt).apply(null,Mt(ct,It)),mr=(Dt?at:ft)(Et,kt-cr[0],wt-cr[1],Nt,$t,Dt);return zt=(0,ht.O)(At,Ot,Pt),rr=(0,Tt.c)(Mt,mr),jt=(0,Tt.c)(zt,rr),Yt=ot(rr,Jt),tr()}function tr(){return ar=sr=null,Zt}return function(){return Mt=_t.apply(this,arguments),Zt.invert=Mt.invert&&Kt,or()}}},47984:function(Ct,Rt,o){o.d(Rt,{c:function(){return Tt},g:function(){return et}});var it=o(87952),xt=o(64528);function et(yt,ut){var ht=ut*ut,j=ht*ht;return[yt*(.8707-.131979*ht+j*(-.013791+j*(.003971*ht-.001529*j))),ut*(1.007226+ht*(.015085+j*(-.044475+.028874*ht-.005916*j)))]}et.invert=function(yt,ut){var ht=ut,j=25,_;do{var rt=ht*ht,tt=rt*rt;ht-=_=(ht*(1.007226+rt*(.015085+tt*(-.044475+.028874*rt-.005916*tt)))-ut)/(1.007226+rt*(.045255+tt*(-.311325+.259866*rt-.06507600000000001*tt)))}while((0,xt.a2)(_)>xt.Gg&&--j>0);return[yt/(.8707+(rt=ht*ht)*(-.131979+rt*(-.013791+rt*rt*rt*(.003971-.001529*rt)))),ht]};function Tt(){return(0,it.c)(et).scale(175.295)}},4888:function(Ct,Rt,o){o.d(Rt,{c:function(){return yt},t:function(){return Tt}});var it=o(64528),xt=o(62280),et=o(87952);function Tt(ut,ht){return[(0,it.W8)(ht)*(0,it.g$)(ut),(0,it.g$)(ht)]}Tt.invert=(0,xt.g)(it.qR);function yt(){return(0,et.c)(Tt).scale(249.5).clipAngle(90+it.Gg)}},92992:function(Ct,Rt,o){o.d(Rt,{O:function(){return Tt},c:function(){return j}});var it=o(68120),xt=o(64528);function et(_,rt){return[(0,xt.a2)(_)>xt.pi?_+Math.round(-_/xt.kD)*xt.kD:_,rt]}et.invert=et;function Tt(_,rt,tt){return(_%=xt.kD)?rt||tt?(0,it.c)(ut(_),ht(rt,tt)):ut(_):rt||tt?ht(rt,tt):et}function yt(_){return function(rt,tt){return rt+=_,[rt>xt.pi?rt-xt.kD:rt<-xt.pi?rt+xt.kD:rt,tt]}}function ut(_){var rt=yt(_);return rt.invert=yt(-_),rt}function ht(_,rt){var tt=(0,xt.W8)(_),st=(0,xt.g$)(_),ot=(0,xt.W8)(rt),nt=(0,xt.g$)(rt);function vt(dt,bt){var ft=(0,xt.W8)(bt),at=(0,xt.W8)(dt)*ft,mt=(0,xt.g$)(dt)*ft,St=(0,xt.g$)(bt),_t=St*tt+at*st;return[(0,xt.WE)(mt*ot-_t*nt,at*tt-St*st),(0,xt.qR)(_t*ot+mt*nt)]}return vt.invert=function(dt,bt){var ft=(0,xt.W8)(bt),at=(0,xt.W8)(dt)*ft,mt=(0,xt.g$)(dt)*ft,St=(0,xt.g$)(bt),_t=St*ot-mt*nt;return[(0,xt.WE)(mt*ot+St*nt,at*tt+_t*st),(0,xt.qR)(_t*tt-at*st)]},vt}function j(_){_=Tt(_[0]*xt.qw,_[1]*xt.qw,_.length>2?_[2]*xt.qw:0);function rt(tt){return tt=_(tt[0]*xt.qw,tt[1]*xt.qw),tt[0]*=xt.oh,tt[1]*=xt.oh,tt}return rt.invert=function(tt){return tt=_.invert(tt[0]*xt.qw,tt[1]*xt.qw),tt[0]*=xt.oh,tt[1]*=xt.oh,tt},rt}},16016:function(Ct,Rt,o){o.d(Rt,{c:function(){return ut}});function it(ht,j){ht&&et.hasOwnProperty(ht.type)&&et[ht.type](ht,j)}var xt={Feature:function(ht,j){it(ht.geometry,j)},FeatureCollection:function(ht,j){for(var _=ht.features,rt=-1,tt=_.length;++rt=0;)pr+=Dr[Sr].value;wr.value=pr}function rt(){return this.eachAfter(_)}function tt(wr){var pr=this,Dr,Sr=[pr],ur,xr,Pr;do for(Dr=Sr.reverse(),Sr=[];pr=Dr.pop();)if(wr(pr),ur=pr.children,ur)for(xr=0,Pr=ur.length;xr=0;--ur)Dr.push(Sr[ur]);return this}function ot(wr){for(var pr=this,Dr=[pr],Sr=[],ur,xr,Pr;pr=Dr.pop();)if(Sr.push(pr),ur=pr.children,ur)for(xr=0,Pr=ur.length;xr=0;)Dr+=Sr[ur].value;pr.value=Dr})}function vt(wr){return this.eachBefore(function(pr){pr.children&&pr.children.sort(wr)})}function dt(wr){for(var pr=this,Dr=bt(pr,wr),Sr=[pr];pr!==Dr;)pr=pr.parent,Sr.push(pr);for(var ur=Sr.length;wr!==Dr;)Sr.splice(ur,0,wr),wr=wr.parent;return Sr}function bt(wr,pr){if(wr===pr)return wr;var Dr=wr.ancestors(),Sr=pr.ancestors(),ur=null;for(wr=Dr.pop(),pr=Sr.pop();wr===pr;)ur=wr,wr=Dr.pop(),pr=Sr.pop();return ur}function ft(){for(var wr=this,pr=[wr];wr=wr.parent;)pr.push(wr);return pr}function at(){var wr=[];return this.each(function(pr){wr.push(pr)}),wr}function mt(){var wr=[];return this.eachBefore(function(pr){pr.children||wr.push(pr)}),wr}function St(){var wr=this,pr=[];return wr.each(function(Dr){Dr!==wr&&pr.push({source:Dr.parent,target:Dr})}),pr}function _t(wr,pr){var Dr=new ct(wr),Sr=+wr.value&&(Dr.value=wr.value),ur,xr=[Dr],Pr,Vr,qr,rn;for(pr==null&&(pr=Et);ur=xr.pop();)if(Sr&&(ur.value=+ur.data.value),(Vr=pr(ur.data))&&(rn=Vr.length))for(ur.children=new Array(rn),qr=rn-1;qr>=0;--qr)xr.push(Pr=ur.children[qr]=new ct(Vr[qr])),Pr.parent=ur,Pr.depth=ur.depth+1;return Dr.eachBefore(wt)}function Mt(){return _t(this).eachBefore(kt)}function Et(wr){return wr.children}function kt(wr){wr.data=wr.data.data}function wt(wr){var pr=0;do wr.height=pr;while((wr=wr.parent)&&wr.height<++pr)}function ct(wr){this.data=wr,this.depth=this.height=0,this.parent=null}ct.prototype=_t.prototype={constructor:ct,count:rt,each:tt,eachAfter:ot,eachBefore:st,sum:nt,sort:vt,path:dt,ancestors:ft,descendants:at,leaves:mt,links:St,copy:Mt};var It=Array.prototype.slice;function At(wr){for(var pr=wr.length,Dr,Sr;pr;)Sr=Math.random()*pr--|0,Dr=wr[pr],wr[pr]=wr[Sr],wr[Sr]=Dr;return wr}function Ot(wr){for(var pr=0,Dr=(wr=At(It.call(wr))).length,Sr=[],ur,xr;pr0&&Dr*Dr>Sr*Sr+ur*ur}function Nt(wr,pr){for(var Dr=0;Drqr?(ur=(rn+qr-xr)/(2*rn),Vr=Math.sqrt(Math.max(0,qr/rn-ur*ur)),Dr.x=wr.x-ur*Sr-Vr*Pr,Dr.y=wr.y-ur*Pr+Vr*Sr):(ur=(rn+xr-qr)/(2*rn),Vr=Math.sqrt(Math.max(0,xr/rn-ur*ur)),Dr.x=pr.x+ur*Sr-Vr*Pr,Dr.y=pr.y+ur*Pr+Vr*Sr)):(Dr.x=pr.x+Dr.r,Dr.y=pr.y)}function qt(wr,pr){var Dr=wr.r+pr.r-1e-6,Sr=pr.x-wr.x,ur=pr.y-wr.y;return Dr>0&&Dr*Dr>Sr*Sr+ur*ur}function er(wr){var pr=wr._,Dr=wr.next._,Sr=pr.r+Dr.r,ur=(pr.x*Dr.r+Dr.x*pr.r)/Sr,xr=(pr.y*Dr.r+Dr.y*pr.r)/Sr;return ur*ur+xr*xr}function lr(wr){this._=wr,this.next=null,this.previous=null}function Jt(wr){if(!(ur=wr.length))return 0;var pr,Dr,Sr,ur,xr,Pr,Vr,qr,rn,Cn,xn;if(pr=wr[0],pr.x=0,pr.y=0,!(ur>1))return pr.r;if(Dr=wr[1],pr.x=-Dr.r,Dr.x=pr.r,Dr.y=0,!(ur>2))return pr.r+Dr.r;Xt(Dr,pr,Sr=wr[2]),pr=new lr(pr),Dr=new lr(Dr),Sr=new lr(Sr),pr.next=Sr.previous=Dr,Dr.next=pr.previous=Sr,Sr.next=Dr.previous=pr;e:for(Vr=3;Vr0)throw new Error("cycle");return Vr}return Dr.id=function(Sr){return arguments.length?(wr=jt(Sr),Dr):wr},Dr.parentId=function(Sr){return arguments.length?(pr=jt(Sr),Dr):pr},Dr}function Or(wr,pr){return wr.parent===pr.parent?1:2}function kr(wr){var pr=wr.children;return pr?pr[0]:wr.t}function Nr(wr){var pr=wr.children;return pr?pr[pr.length-1]:wr.t}function Qr(wr,pr,Dr){var Sr=Dr/(pr.i-wr.i);pr.c-=Sr,pr.s+=Dr,wr.c+=Sr,pr.z+=Dr,pr.m+=Dr}function sn(wr){for(var pr=0,Dr=0,Sr=wr.children,ur=Sr.length,xr;--ur>=0;)xr=Sr[ur],xr.z+=pr,xr.m+=pr,pr+=xr.s+(Dr+=xr.c)}function un(wr,pr,Dr){return wr.a.parent===pr.parent?wr.a:Dr}function en(wr,pr){this._=wr,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=pr}en.prototype=Object.create(ct.prototype);function Xr(wr){for(var pr=new en(wr,0),Dr,Sr=[pr],ur,xr,Pr,Vr;Dr=Sr.pop();)if(xr=Dr._.children)for(Dr.children=new Array(Vr=xr.length),Pr=Vr-1;Pr>=0;--Pr)Sr.push(ur=Dr.children[Pr]=new en(xr[Pr],Pr)),ur.parent=Dr;return(pr.parent=new en(null,0)).children=[pr],pr}function ln(){var wr=Or,pr=1,Dr=1,Sr=null;function ur(rn){var Cn=Xr(rn);if(Cn.eachAfter(xr),Cn.parent.m=-Cn.z,Cn.eachBefore(Pr),Sr)rn.eachBefore(qr);else{var xn=rn,fn=rn,bn=rn;rn.eachBefore(function(Jn){Jn.xfn.x&&(fn=Jn),Jn.depth>bn.depth&&(bn=Jn)});var Un=xn===fn?1:wr(xn,fn)/2,_i=Un-xn.x,yn=pr/(fn.x+Un+_i),Kn=Dr/(bn.depth||1);rn.eachBefore(function(Jn){Jn.x=(Jn.x+_i)*yn,Jn.y=Jn.depth*Kn})}return rn}function xr(rn){var Cn=rn.children,xn=rn.parent.children,fn=rn.i?xn[rn.i-1]:null;if(Cn){sn(rn);var bn=(Cn[0].z+Cn[Cn.length-1].z)/2;fn?(rn.z=fn.z+wr(rn._,fn._),rn.m=rn.z-bn):rn.z=bn}else fn&&(rn.z=fn.z+wr(rn._,fn._));rn.parent.A=Vr(rn,fn,rn.parent.A||xn[0])}function Pr(rn){rn._.x=rn.z+rn.parent.m,rn.m+=rn.parent.m}function Vr(rn,Cn,xn){if(Cn){for(var fn=rn,bn=rn,Un=Cn,_i=fn.parent.children[0],yn=fn.m,Kn=bn.m,Jn=Un.m,so=_i.m,ba;Un=Nr(Un),fn=kr(fn),Un&&fn;)_i=kr(_i),bn=Nr(bn),bn.a=rn,ba=Un.z+Jn-fn.z-yn+wr(Un._,fn._),ba>0&&(Qr(un(Un,rn,xn),rn,ba),yn+=ba,Kn+=ba),Jn+=Un.m,yn+=fn.m,so+=_i.m,Kn+=bn.m;Un&&!Nr(bn)&&(bn.t=Un,bn.m+=Jn-Kn),fn&&!kr(_i)&&(_i.t=fn,_i.m+=yn-so,xn=rn)}return xn}function qr(rn){rn.x*=pr,rn.y=rn.depth*Dr}return ur.separation=function(rn){return arguments.length?(wr=rn,ur):wr},ur.size=function(rn){return arguments.length?(Sr=!1,pr=+rn[0],Dr=+rn[1],ur):Sr?null:[pr,Dr]},ur.nodeSize=function(rn){return arguments.length?(Sr=!0,pr=+rn[0],Dr=+rn[1],ur):Sr?[pr,Dr]:null},ur}function mn(wr,pr,Dr,Sr,ur){for(var xr=wr.children,Pr,Vr=-1,qr=xr.length,rn=wr.value&&(ur-Dr)/wr.value;++VrJn&&(Jn=rn),hn=yn*yn*An,so=Math.max(Jn/hn,hn/Kn),so>ba){yn-=rn;break}ba=so}Pr.push(qr={value:yn,dice:bn1?Sr:1)},Dr}(pn);function Fr(){var wr=Zr,pr=!1,Dr=1,Sr=1,ur=[0],xr=ar,Pr=ar,Vr=ar,qr=ar,rn=ar;function Cn(fn){return fn.x0=fn.y0=0,fn.x1=Dr,fn.y1=Sr,fn.eachBefore(xn),ur=[0],pr&&fn.eachBefore(mr),fn}function xn(fn){var bn=ur[fn.depth],Un=fn.x0+bn,_i=fn.y0+bn,yn=fn.x1-bn,Kn=fn.y1-bn;yn=fn-1){var Jn=xr[xn];Jn.x0=Un,Jn.y0=_i,Jn.x1=yn,Jn.y1=Kn;return}for(var so=rn[xn],ba=bn/2+so,An=xn+1,hn=fn-1;An>>1;rn[wn]Kn-_i){var Xn=(Un*Ln+yn*In)/bn;Cn(xn,An,In,Un,_i,Xn,Kn),Cn(An,fn,Ln,Xn,_i,yn,Kn)}else{var Wn=(_i*Ln+Kn*In)/bn;Cn(xn,An,In,Un,_i,yn,Wn),Cn(An,fn,Ln,Un,Wn,yn,Kn)}}}function Wr(wr,pr,Dr,Sr,ur){(wr.depth&1?mn:Ar)(wr,pr,Dr,Sr,ur)}var Gr=function wr(pr){function Dr(Sr,ur,xr,Pr,Vr){if((qr=Sr._squarify)&&qr.ratio===pr)for(var qr,rn,Cn,xn,fn=-1,bn,Un=qr.length,_i=Sr.value;++fn1?Sr:1)},Dr}(pn)},10132:function(Ct,Rt,o){o.d(Rt,{ak:function(){return dt}});var it=Math.PI,xt=2*it,et=1e-6,Tt=xt-et;function yt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function ut(){return new yt}yt.prototype=ut.prototype={constructor:yt,moveTo:function(bt,ft){this._+="M"+(this._x0=this._x1=+bt)+","+(this._y0=this._y1=+ft)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(bt,ft){this._+="L"+(this._x1=+bt)+","+(this._y1=+ft)},quadraticCurveTo:function(bt,ft,at,mt){this._+="Q"+ +bt+","+ +ft+","+(this._x1=+at)+","+(this._y1=+mt)},bezierCurveTo:function(bt,ft,at,mt,St,_t){this._+="C"+ +bt+","+ +ft+","+ +at+","+ +mt+","+(this._x1=+St)+","+(this._y1=+_t)},arcTo:function(bt,ft,at,mt,St){bt=+bt,ft=+ft,at=+at,mt=+mt,St=+St;var _t=this._x1,Mt=this._y1,Et=at-bt,kt=mt-ft,wt=_t-bt,ct=Mt-ft,It=wt*wt+ct*ct;if(St<0)throw new Error("negative radius: "+St);if(this._x1===null)this._+="M"+(this._x1=bt)+","+(this._y1=ft);else if(It>et)if(!(Math.abs(ct*Et-kt*wt)>et)||!St)this._+="L"+(this._x1=bt)+","+(this._y1=ft);else{var At=at-_t,Ot=mt-Mt,Pt=Et*Et+kt*kt,zt=At*At+Ot*Ot,Dt=Math.sqrt(Pt),Nt=Math.sqrt(It),$t=St*Math.tan((it-Math.acos((Pt+It-zt)/(2*Dt*Nt)))/2),Ut=$t/Nt,Ht=$t/Dt;Math.abs(Ut-1)>et&&(this._+="L"+(bt+Ut*wt)+","+(ft+Ut*ct)),this._+="A"+St+","+St+",0,0,"+ +(ct*At>wt*Ot)+","+(this._x1=bt+Ht*Et)+","+(this._y1=ft+Ht*kt)}},arc:function(bt,ft,at,mt,St,_t){bt=+bt,ft=+ft,at=+at,_t=!!_t;var Mt=at*Math.cos(mt),Et=at*Math.sin(mt),kt=bt+Mt,wt=ft+Et,ct=1^_t,It=_t?mt-St:St-mt;if(at<0)throw new Error("negative radius: "+at);this._x1===null?this._+="M"+kt+","+wt:(Math.abs(this._x1-kt)>et||Math.abs(this._y1-wt)>et)&&(this._+="L"+kt+","+wt),at&&(It<0&&(It=It%xt+xt),It>Tt?this._+="A"+at+","+at+",0,1,"+ct+","+(bt-Mt)+","+(ft-Et)+"A"+at+","+at+",0,1,"+ct+","+(this._x1=kt)+","+(this._y1=wt):It>et&&(this._+="A"+at+","+at+",0,"+ +(It>=it)+","+ct+","+(this._x1=bt+at*Math.cos(St))+","+(this._y1=ft+at*Math.sin(St))))},rect:function(bt,ft,at,mt){this._+="M"+(this._x0=this._x1=+bt)+","+(this._y0=this._y1=+ft)+"h"+ +at+"v"+ +mt+"h"+-at+"Z"},toString:function(){return this._}};var ht=ut,j=Array.prototype.slice;function _(bt){return function(){return bt}}function rt(bt){return bt[0]}function tt(bt){return bt[1]}function st(bt){return bt.source}function ot(bt){return bt.target}function nt(bt){var ft=st,at=ot,mt=rt,St=tt,_t=null;function Mt(){var Et,kt=j.call(arguments),wt=ft.apply(this,kt),ct=at.apply(this,kt);if(_t||(_t=Et=ht()),bt(_t,+mt.apply(this,(kt[0]=wt,kt)),+St.apply(this,kt),+mt.apply(this,(kt[0]=ct,kt)),+St.apply(this,kt)),Et)return _t=null,Et+""||null}return Mt.source=function(Et){return arguments.length?(ft=Et,Mt):ft},Mt.target=function(Et){return arguments.length?(at=Et,Mt):at},Mt.x=function(Et){return arguments.length?(mt=typeof Et=="function"?Et:_(+Et),Mt):mt},Mt.y=function(Et){return arguments.length?(St=typeof Et=="function"?Et:_(+Et),Mt):St},Mt.context=function(Et){return arguments.length?(_t=Et??null,Mt):_t},Mt}function vt(bt,ft,at,mt,St){bt.moveTo(ft,at),bt.bezierCurveTo(ft=(ft+mt)/2,at,ft,St,mt,St)}function dt(){return nt(vt)}},94336:function(Ct,Rt,o){o.d(Rt,{Yn:function(){return Ur},m_:function(){return rt},E9:function(){return Wr}});var it=o(8208),xt=o(58931),et=o(46192),Tt=o(68936),yt=o(32171),ut=o(53528);function ht(wr){if(0<=wr.y&&wr.y<100){var pr=new Date(-1,wr.m,wr.d,wr.H,wr.M,wr.S,wr.L);return pr.setFullYear(wr.y),pr}return new Date(wr.y,wr.m,wr.d,wr.H,wr.M,wr.S,wr.L)}function j(wr){if(0<=wr.y&&wr.y<100){var pr=new Date(Date.UTC(-1,wr.m,wr.d,wr.H,wr.M,wr.S,wr.L));return pr.setUTCFullYear(wr.y),pr}return new Date(Date.UTC(wr.y,wr.m,wr.d,wr.H,wr.M,wr.S,wr.L))}function _(wr,pr,Dr){return{y:wr,m:pr,d:Dr,H:0,M:0,S:0,L:0}}function rt(wr){var pr=wr.dateTime,Dr=wr.date,Sr=wr.time,ur=wr.periods,xr=wr.days,Pr=wr.shortDays,Vr=wr.months,qr=wr.shortMonths,rn=bt(ur),Cn=ft(ur),xn=bt(xr),fn=ft(xr),bn=bt(Pr),Un=ft(Pr),_i=bt(Vr),yn=ft(Vr),Kn=bt(qr),Jn=ft(qr),so={a:Yr,A:jr,b:$n,B:Bn,c:null,d:Xt,e:Xt,f:Yt,H:qt,I:er,j:lr,L:Jt,m:rr,M:jt,p:xa,q:ro,Q:Tn,s:Zr,S:ar,u:sr,U:Zt,V:Kt,w:or,W:tr,x:null,X:null,y:cr,Y:mr,Z:Ar,"%":pn},ba={a:io,A:eo,b:Gn,B:ho,c:null,d:br,e:br,f:Rr,H:Ir,I:Tr,j:_r,L:Er,m:zr,M:Or,p:go,q:_o,Q:Tn,s:Zr,S:kr,u:Nr,U:Qr,V:sn,w:un,W:en,x:null,X:null,y:Xr,Y:ln,Z:mn,"%":pn},An={a:Xn,A:Wn,b:Vn,B:ga,c:fo,d:At,e:At,f:$t,H:Pt,I:Pt,j:Ot,L:Nt,m:It,M:zt,p:Ln,q:ct,Q:Ht,s:Vt,S:Dt,u:mt,U:St,V:_t,w:at,W:Mt,x:qn,X:po,y:kt,Y:Et,Z:wt,"%":Ut};so.x=hn(Dr,so),so.X=hn(Sr,so),so.c=hn(pr,so),ba.x=hn(Dr,ba),ba.X=hn(Sr,ba),ba.c=hn(pr,ba);function hn(co,zo){return function(Io){var Lo=[],vs=-1,Zo=0,Ls=co.length,Ds,bo,No;for(Io instanceof Date||(Io=new Date(+Io));++vs53)return null;"w"in Lo||(Lo.w=1),"Z"in Lo?(Zo=j(_(Lo.y,0,1)),Ls=Zo.getUTCDay(),Zo=Ls>4||Ls===0?it.ot.ceil(Zo):(0,it.ot)(Zo),Zo=xt.c.offset(Zo,(Lo.V-1)*7),Lo.y=Zo.getUTCFullYear(),Lo.m=Zo.getUTCMonth(),Lo.d=Zo.getUTCDate()+(Lo.w+6)%7):(Zo=ht(_(Lo.y,0,1)),Ls=Zo.getDay(),Zo=Ls>4||Ls===0?et.qT.ceil(Zo):(0,et.qT)(Zo),Zo=Tt.c.offset(Zo,(Lo.V-1)*7),Lo.y=Zo.getFullYear(),Lo.m=Zo.getMonth(),Lo.d=Zo.getDate()+(Lo.w+6)%7)}else("W"in Lo||"U"in Lo)&&("w"in Lo||(Lo.w="u"in Lo?Lo.u%7:"W"in Lo?1:0),Ls="Z"in Lo?j(_(Lo.y,0,1)).getUTCDay():ht(_(Lo.y,0,1)).getDay(),Lo.m=0,Lo.d="W"in Lo?(Lo.w+6)%7+Lo.W*7-(Ls+5)%7:Lo.w+Lo.U*7-(Ls+6)%7);return"Z"in Lo?(Lo.H+=Lo.Z/100|0,Lo.M+=Lo.Z%100,j(Lo)):ht(Lo)}}function In(co,zo,Io,Lo){for(var vs=0,Zo=zo.length,Ls=Io.length,Ds,bo;vs=Ls)return-1;if(Ds=zo.charCodeAt(vs++),Ds===37){if(Ds=zo.charAt(vs++),bo=An[Ds in tt?zo.charAt(vs++):Ds],!bo||(Lo=bo(co,Io,Lo))<0)return-1}else if(Ds!=Io.charCodeAt(Lo++))return-1}return Lo}function Ln(co,zo,Io){var Lo=rn.exec(zo.slice(Io));return Lo?(co.p=Cn[Lo[0].toLowerCase()],Io+Lo[0].length):-1}function Xn(co,zo,Io){var Lo=bn.exec(zo.slice(Io));return Lo?(co.w=Un[Lo[0].toLowerCase()],Io+Lo[0].length):-1}function Wn(co,zo,Io){var Lo=xn.exec(zo.slice(Io));return Lo?(co.w=fn[Lo[0].toLowerCase()],Io+Lo[0].length):-1}function Vn(co,zo,Io){var Lo=Kn.exec(zo.slice(Io));return Lo?(co.m=Jn[Lo[0].toLowerCase()],Io+Lo[0].length):-1}function ga(co,zo,Io){var Lo=_i.exec(zo.slice(Io));return Lo?(co.m=yn[Lo[0].toLowerCase()],Io+Lo[0].length):-1}function fo(co,zo,Io){return In(co,pr,zo,Io)}function qn(co,zo,Io){return In(co,Dr,zo,Io)}function po(co,zo,Io){return In(co,Sr,zo,Io)}function Yr(co){return Pr[co.getDay()]}function jr(co){return xr[co.getDay()]}function $n(co){return qr[co.getMonth()]}function Bn(co){return Vr[co.getMonth()]}function xa(co){return ur[+(co.getHours()>=12)]}function ro(co){return 1+~~(co.getMonth()/3)}function io(co){return Pr[co.getUTCDay()]}function eo(co){return xr[co.getUTCDay()]}function Gn(co){return qr[co.getUTCMonth()]}function ho(co){return Vr[co.getUTCMonth()]}function go(co){return ur[+(co.getUTCHours()>=12)]}function _o(co){return 1+~~(co.getUTCMonth()/3)}return{format:function(co){var zo=hn(co+="",so);return zo.toString=function(){return co},zo},parse:function(co){var zo=wn(co+="",!1);return zo.toString=function(){return co},zo},utcFormat:function(co){var zo=hn(co+="",ba);return zo.toString=function(){return co},zo},utcParse:function(co){var zo=wn(co+="",!0);return zo.toString=function(){return co},zo}}}var tt={"-":"",_:" ",0:"0"},st=/^\s*\d+/,ot=/^%/,nt=/[\\^$*+?|[\]().{}]/g;function vt(wr,pr,Dr){var Sr=wr<0?"-":"",ur=(Sr?-wr:wr)+"",xr=ur.length;return Sr+(xr68?1900:2e3),Dr+Sr[0].length):-1}function wt(wr,pr,Dr){var Sr=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(pr.slice(Dr,Dr+6));return Sr?(wr.Z=Sr[1]?0:-(Sr[2]+(Sr[3]||"00")),Dr+Sr[0].length):-1}function ct(wr,pr,Dr){var Sr=st.exec(pr.slice(Dr,Dr+1));return Sr?(wr.q=Sr[0]*3-3,Dr+Sr[0].length):-1}function It(wr,pr,Dr){var Sr=st.exec(pr.slice(Dr,Dr+2));return Sr?(wr.m=Sr[0]-1,Dr+Sr[0].length):-1}function At(wr,pr,Dr){var Sr=st.exec(pr.slice(Dr,Dr+2));return Sr?(wr.d=+Sr[0],Dr+Sr[0].length):-1}function Ot(wr,pr,Dr){var Sr=st.exec(pr.slice(Dr,Dr+3));return Sr?(wr.m=0,wr.d=+Sr[0],Dr+Sr[0].length):-1}function Pt(wr,pr,Dr){var Sr=st.exec(pr.slice(Dr,Dr+2));return Sr?(wr.H=+Sr[0],Dr+Sr[0].length):-1}function zt(wr,pr,Dr){var Sr=st.exec(pr.slice(Dr,Dr+2));return Sr?(wr.M=+Sr[0],Dr+Sr[0].length):-1}function Dt(wr,pr,Dr){var Sr=st.exec(pr.slice(Dr,Dr+2));return Sr?(wr.S=+Sr[0],Dr+Sr[0].length):-1}function Nt(wr,pr,Dr){var Sr=st.exec(pr.slice(Dr,Dr+3));return Sr?(wr.L=+Sr[0],Dr+Sr[0].length):-1}function $t(wr,pr,Dr){var Sr=st.exec(pr.slice(Dr,Dr+6));return Sr?(wr.L=Math.floor(Sr[0]/1e3),Dr+Sr[0].length):-1}function Ut(wr,pr,Dr){var Sr=ot.exec(pr.slice(Dr,Dr+1));return Sr?Dr+Sr[0].length:-1}function Ht(wr,pr,Dr){var Sr=st.exec(pr.slice(Dr));return Sr?(wr.Q=+Sr[0],Dr+Sr[0].length):-1}function Vt(wr,pr,Dr){var Sr=st.exec(pr.slice(Dr));return Sr?(wr.s=+Sr[0],Dr+Sr[0].length):-1}function Xt(wr,pr){return vt(wr.getDate(),pr,2)}function qt(wr,pr){return vt(wr.getHours(),pr,2)}function er(wr,pr){return vt(wr.getHours()%12||12,pr,2)}function lr(wr,pr){return vt(1+Tt.c.count((0,yt.c)(wr),wr),pr,3)}function Jt(wr,pr){return vt(wr.getMilliseconds(),pr,3)}function Yt(wr,pr){return Jt(wr,pr)+"000"}function rr(wr,pr){return vt(wr.getMonth()+1,pr,2)}function jt(wr,pr){return vt(wr.getMinutes(),pr,2)}function ar(wr,pr){return vt(wr.getSeconds(),pr,2)}function sr(wr){var pr=wr.getDay();return pr===0?7:pr}function Zt(wr,pr){return vt(et.uU.count((0,yt.c)(wr)-1,wr),pr,2)}function Kt(wr,pr){var Dr=wr.getDay();return wr=Dr>=4||Dr===0?(0,et.kD)(wr):et.kD.ceil(wr),vt(et.kD.count((0,yt.c)(wr),wr)+((0,yt.c)(wr).getDay()===4),pr,2)}function or(wr){return wr.getDay()}function tr(wr,pr){return vt(et.qT.count((0,yt.c)(wr)-1,wr),pr,2)}function cr(wr,pr){return vt(wr.getFullYear()%100,pr,2)}function mr(wr,pr){return vt(wr.getFullYear()%1e4,pr,4)}function Ar(wr){var pr=wr.getTimezoneOffset();return(pr>0?"-":(pr*=-1,"+"))+vt(pr/60|0,"0",2)+vt(pr%60,"0",2)}function br(wr,pr){return vt(wr.getUTCDate(),pr,2)}function Ir(wr,pr){return vt(wr.getUTCHours(),pr,2)}function Tr(wr,pr){return vt(wr.getUTCHours()%12||12,pr,2)}function _r(wr,pr){return vt(1+xt.c.count((0,ut.c)(wr),wr),pr,3)}function Er(wr,pr){return vt(wr.getUTCMilliseconds(),pr,3)}function Rr(wr,pr){return Er(wr,pr)+"000"}function zr(wr,pr){return vt(wr.getUTCMonth()+1,pr,2)}function Or(wr,pr){return vt(wr.getUTCMinutes(),pr,2)}function kr(wr,pr){return vt(wr.getUTCSeconds(),pr,2)}function Nr(wr){var pr=wr.getUTCDay();return pr===0?7:pr}function Qr(wr,pr){return vt(it.EV.count((0,ut.c)(wr)-1,wr),pr,2)}function sn(wr,pr){var Dr=wr.getUTCDay();return wr=Dr>=4||Dr===0?(0,it.yA)(wr):it.yA.ceil(wr),vt(it.yA.count((0,ut.c)(wr),wr)+((0,ut.c)(wr).getUTCDay()===4),pr,2)}function un(wr){return wr.getUTCDay()}function en(wr,pr){return vt(it.ot.count((0,ut.c)(wr)-1,wr),pr,2)}function Xr(wr,pr){return vt(wr.getUTCFullYear()%100,pr,2)}function ln(wr,pr){return vt(wr.getUTCFullYear()%1e4,pr,4)}function mn(){return"+0000"}function pn(){return"%"}function Tn(wr){return+wr}function Zr(wr){return Math.floor(+wr/1e3)}var Fr,Ur,Wr;Gr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"]});function Gr(wr){return Fr=rt(wr),Ur=Fr.format,Fr.parse,Wr=Fr.utcFormat,Fr.utcParse,Fr}},68936:function(Ct,Rt,o){o.d(Rt,{m:function(){return Tt}});var it=o(81628),xt=o(69792),et=(0,it.c)(function(yt){yt.setHours(0,0,0,0)},function(yt,ut){yt.setDate(yt.getDate()+ut)},function(yt,ut){return(ut-yt-(ut.getTimezoneOffset()-yt.getTimezoneOffset())*xt.iy)/xt.SK},function(yt){return yt.getDate()-1});Rt.c=et;var Tt=et.range},69792:function(Ct,Rt,o){o.d(Rt,{KK:function(){return yt},SK:function(){return Tt},cg:function(){return et},iy:function(){return xt},yc:function(){return it}});var it=1e3,xt=6e4,et=36e5,Tt=864e5,yt=6048e5},73220:function(Ct,Rt,o){o.r(Rt),o.d(Rt,{timeDay:function(){return vt.c},timeDays:function(){return vt.m},timeFriday:function(){return dt.iB},timeFridays:function(){return dt.sJ},timeHour:function(){return ot},timeHours:function(){return nt},timeInterval:function(){return it.c},timeMillisecond:function(){return et},timeMilliseconds:function(){return Tt},timeMinute:function(){return rt},timeMinutes:function(){return tt},timeMonday:function(){return dt.qT},timeMondays:function(){return dt.QP},timeMonth:function(){return ft},timeMonths:function(){return at},timeSaturday:function(){return dt.Wc},timeSaturdays:function(){return dt.aI},timeSecond:function(){return ht},timeSeconds:function(){return j},timeSunday:function(){return dt.uU},timeSundays:function(){return dt.Ab},timeThursday:function(){return dt.kD},timeThursdays:function(){return dt.eC},timeTuesday:function(){return dt.Mf},timeTuesdays:function(){return dt.Oc},timeWednesday:function(){return dt.eg},timeWednesdays:function(){return dt.sn},timeWeek:function(){return dt.uU},timeWeeks:function(){return dt.Ab},timeYear:function(){return mt.c},timeYears:function(){return mt.Q},utcDay:function(){return ct.c},utcDays:function(){return ct.o},utcFriday:function(){return It.od},utcFridays:function(){return It.iG},utcHour:function(){return kt},utcHours:function(){return wt},utcMillisecond:function(){return et},utcMilliseconds:function(){return Tt},utcMinute:function(){return _t},utcMinutes:function(){return Mt},utcMonday:function(){return It.ot},utcMondays:function(){return It.iO},utcMonth:function(){return Ot},utcMonths:function(){return Pt},utcSaturday:function(){return It.Ad},utcSaturdays:function(){return It.K8},utcSecond:function(){return ht},utcSeconds:function(){return j},utcSunday:function(){return It.EV},utcSundays:function(){return It.Wq},utcThursday:function(){return It.yA},utcThursdays:function(){return It.ob},utcTuesday:function(){return It.sG},utcTuesdays:function(){return It.kl},utcWednesday:function(){return It._6},utcWednesdays:function(){return It.W_},utcWeek:function(){return It.EV},utcWeeks:function(){return It.Wq},utcYear:function(){return zt.c},utcYears:function(){return zt.i}});var it=o(81628),xt=(0,it.c)(function(){},function(Dt,Nt){Dt.setTime(+Dt+Nt)},function(Dt,Nt){return Nt-Dt});xt.every=function(Dt){return Dt=Math.floor(Dt),!isFinite(Dt)||!(Dt>0)?null:Dt>1?(0,it.c)(function(Nt){Nt.setTime(Math.floor(Nt/Dt)*Dt)},function(Nt,$t){Nt.setTime(+Nt+$t*Dt)},function(Nt,$t){return($t-Nt)/Dt}):xt};var et=xt,Tt=xt.range,yt=o(69792),ut=(0,it.c)(function(Dt){Dt.setTime(Dt-Dt.getMilliseconds())},function(Dt,Nt){Dt.setTime(+Dt+Nt*yt.yc)},function(Dt,Nt){return(Nt-Dt)/yt.yc},function(Dt){return Dt.getUTCSeconds()}),ht=ut,j=ut.range,_=(0,it.c)(function(Dt){Dt.setTime(Dt-Dt.getMilliseconds()-Dt.getSeconds()*yt.yc)},function(Dt,Nt){Dt.setTime(+Dt+Nt*yt.iy)},function(Dt,Nt){return(Nt-Dt)/yt.iy},function(Dt){return Dt.getMinutes()}),rt=_,tt=_.range,st=(0,it.c)(function(Dt){Dt.setTime(Dt-Dt.getMilliseconds()-Dt.getSeconds()*yt.yc-Dt.getMinutes()*yt.iy)},function(Dt,Nt){Dt.setTime(+Dt+Nt*yt.cg)},function(Dt,Nt){return(Nt-Dt)/yt.cg},function(Dt){return Dt.getHours()}),ot=st,nt=st.range,vt=o(68936),dt=o(46192),bt=(0,it.c)(function(Dt){Dt.setDate(1),Dt.setHours(0,0,0,0)},function(Dt,Nt){Dt.setMonth(Dt.getMonth()+Nt)},function(Dt,Nt){return Nt.getMonth()-Dt.getMonth()+(Nt.getFullYear()-Dt.getFullYear())*12},function(Dt){return Dt.getMonth()}),ft=bt,at=bt.range,mt=o(32171),St=(0,it.c)(function(Dt){Dt.setUTCSeconds(0,0)},function(Dt,Nt){Dt.setTime(+Dt+Nt*yt.iy)},function(Dt,Nt){return(Nt-Dt)/yt.iy},function(Dt){return Dt.getUTCMinutes()}),_t=St,Mt=St.range,Et=(0,it.c)(function(Dt){Dt.setUTCMinutes(0,0,0)},function(Dt,Nt){Dt.setTime(+Dt+Nt*yt.cg)},function(Dt,Nt){return(Nt-Dt)/yt.cg},function(Dt){return Dt.getUTCHours()}),kt=Et,wt=Et.range,ct=o(58931),It=o(8208),At=(0,it.c)(function(Dt){Dt.setUTCDate(1),Dt.setUTCHours(0,0,0,0)},function(Dt,Nt){Dt.setUTCMonth(Dt.getUTCMonth()+Nt)},function(Dt,Nt){return Nt.getUTCMonth()-Dt.getUTCMonth()+(Nt.getUTCFullYear()-Dt.getUTCFullYear())*12},function(Dt){return Dt.getUTCMonth()}),Ot=At,Pt=At.range,zt=o(53528)},81628:function(Ct,Rt,o){o.d(Rt,{c:function(){return et}});var it=new Date,xt=new Date;function et(Tt,yt,ut,ht){function j(_){return Tt(_=arguments.length===0?new Date:new Date(+_)),_}return j.floor=function(_){return Tt(_=new Date(+_)),_},j.ceil=function(_){return Tt(_=new Date(_-1)),yt(_,1),Tt(_),_},j.round=function(_){var rt=j(_),tt=j.ceil(_);return _-rt0))return st;do st.push(ot=new Date(+_)),yt(_,tt),Tt(_);while(ot<_&&_=rt)for(;Tt(rt),!_(rt);)rt.setTime(rt-1)},function(rt,tt){if(rt>=rt)if(tt<0)for(;++tt<=0;)for(;yt(rt,-1),!_(rt););else for(;--tt>=0;)for(;yt(rt,1),!_(rt););})},ut&&(j.count=function(_,rt){return it.setTime(+_),xt.setTime(+rt),Tt(it),Tt(xt),Math.floor(ut(it,xt))},j.every=function(_){return _=Math.floor(_),!isFinite(_)||!(_>0)?null:_>1?j.filter(ht?function(rt){return ht(rt)%_===0}:function(rt){return j.count(0,rt)%_===0}):j}),j}},58931:function(Ct,Rt,o){o.d(Rt,{o:function(){return Tt}});var it=o(81628),xt=o(69792),et=(0,it.c)(function(yt){yt.setUTCHours(0,0,0,0)},function(yt,ut){yt.setUTCDate(yt.getUTCDate()+ut)},function(yt,ut){return(ut-yt)/xt.SK},function(yt){return yt.getUTCDate()-1});Rt.c=et;var Tt=et.range},8208:function(Ct,Rt,o){o.d(Rt,{Ad:function(){return rt},EV:function(){return Tt},K8:function(){return bt},W_:function(){return nt},Wq:function(){return tt},_6:function(){return ht},iG:function(){return dt},iO:function(){return st},kl:function(){return ot},ob:function(){return vt},od:function(){return _},ot:function(){return yt},sG:function(){return ut},yA:function(){return j}});var it=o(81628),xt=o(69792);function et(ft){return(0,it.c)(function(at){at.setUTCDate(at.getUTCDate()-(at.getUTCDay()+7-ft)%7),at.setUTCHours(0,0,0,0)},function(at,mt){at.setUTCDate(at.getUTCDate()+mt*7)},function(at,mt){return(mt-at)/xt.KK})}var Tt=et(0),yt=et(1),ut=et(2),ht=et(3),j=et(4),_=et(5),rt=et(6),tt=Tt.range,st=yt.range,ot=ut.range,nt=ht.range,vt=j.range,dt=_.range,bt=rt.range},53528:function(Ct,Rt,o){o.d(Rt,{i:function(){return et}});var it=o(81628),xt=(0,it.c)(function(Tt){Tt.setUTCMonth(0,1),Tt.setUTCHours(0,0,0,0)},function(Tt,yt){Tt.setUTCFullYear(Tt.getUTCFullYear()+yt)},function(Tt,yt){return yt.getUTCFullYear()-Tt.getUTCFullYear()},function(Tt){return Tt.getUTCFullYear()});xt.every=function(Tt){return!isFinite(Tt=Math.floor(Tt))||!(Tt>0)?null:(0,it.c)(function(yt){yt.setUTCFullYear(Math.floor(yt.getUTCFullYear()/Tt)*Tt),yt.setUTCMonth(0,1),yt.setUTCHours(0,0,0,0)},function(yt,ut){yt.setUTCFullYear(yt.getUTCFullYear()+ut*Tt)})},Rt.c=xt;var et=xt.range},46192:function(Ct,Rt,o){o.d(Rt,{Ab:function(){return tt},Mf:function(){return ut},Oc:function(){return ot},QP:function(){return st},Wc:function(){return rt},aI:function(){return bt},eC:function(){return vt},eg:function(){return ht},iB:function(){return _},kD:function(){return j},qT:function(){return yt},sJ:function(){return dt},sn:function(){return nt},uU:function(){return Tt}});var it=o(81628),xt=o(69792);function et(ft){return(0,it.c)(function(at){at.setDate(at.getDate()-(at.getDay()+7-ft)%7),at.setHours(0,0,0,0)},function(at,mt){at.setDate(at.getDate()+mt*7)},function(at,mt){return(mt-at-(mt.getTimezoneOffset()-at.getTimezoneOffset())*xt.iy)/xt.KK})}var Tt=et(0),yt=et(1),ut=et(2),ht=et(3),j=et(4),_=et(5),rt=et(6),tt=Tt.range,st=yt.range,ot=ut.range,nt=ht.range,vt=j.range,dt=_.range,bt=rt.range},32171:function(Ct,Rt,o){o.d(Rt,{Q:function(){return et}});var it=o(81628),xt=(0,it.c)(function(Tt){Tt.setMonth(0,1),Tt.setHours(0,0,0,0)},function(Tt,yt){Tt.setFullYear(Tt.getFullYear()+yt)},function(Tt,yt){return yt.getFullYear()-Tt.getFullYear()},function(Tt){return Tt.getFullYear()});xt.every=function(Tt){return!isFinite(Tt=Math.floor(Tt))||!(Tt>0)?null:(0,it.c)(function(yt){yt.setFullYear(Math.floor(yt.getFullYear()/Tt)*Tt),yt.setMonth(0,1),yt.setHours(0,0,0,0)},function(yt,ut){yt.setFullYear(yt.getFullYear()+ut*Tt)})},Rt.c=xt;var et=xt.range},64348:function(Ct,Rt,o){var it=o(39640)(),xt=o(53664),et=it&&xt("%Object.defineProperty%",!0);if(et)try{et({},"a",{value:1})}catch{et=!1}var Tt=xt("%SyntaxError%"),yt=xt("%TypeError%"),ut=o(2304);Ct.exports=function(j,_,rt){if(!j||typeof j!="object"&&typeof j!="function")throw new yt("`obj` must be an object or a function`");if(typeof _!="string"&&typeof _!="symbol")throw new yt("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new yt("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new yt("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new yt("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new yt("`loose`, if provided, must be a boolean");var tt=arguments.length>3?arguments[3]:null,st=arguments.length>4?arguments[4]:null,ot=arguments.length>5?arguments[5]:null,nt=arguments.length>6?arguments[6]:!1,vt=!!ut&&ut(j,_);if(et)et(j,_,{configurable:ot===null&&vt?vt.configurable:!ot,enumerable:tt===null&&vt?vt.enumerable:!tt,value:rt,writable:st===null&&vt?vt.writable:!st});else if(nt||!tt&&!st&&!ot)j[_]=rt;else throw new Tt("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}},81288:function(Ct,Rt,o){var it=o(41820),xt=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",et=Object.prototype.toString,Tt=Array.prototype.concat,yt=Object.defineProperty,ut=function(tt){return typeof tt=="function"&&et.call(tt)==="[object Function]"},ht=o(39640)(),j=yt&&ht,_=function(tt,st,ot,nt){if(st in tt){if(nt===!0){if(tt[st]===ot)return}else if(!ut(nt)||!nt())return}j?yt(tt,st,{configurable:!0,enumerable:!1,value:ot,writable:!0}):tt[st]=ot},rt=function(tt,st){var ot=arguments.length>2?arguments[2]:{},nt=it(st);xt&&(nt=Tt.call(nt,Object.getOwnPropertySymbols(st)));for(var vt=0;vtj*_){var nt=(ot-st)/j;ut[tt]=nt*1e3}}return ut}function et(Tt){for(var yt=[],ut=Tt[0];ut<=Tt[1];ut++)for(var ht=String.fromCharCode(ut),j=Tt[0];j"u"&&(et=0),typeof xt){case"number":if(xt>0)return o(xt|0,et);break;case"object":if(typeof xt.length=="number")return Rt(xt,et,0);break}return[]}Ct.exports=it},28912:function(Ct){Ct.exports=Rt,Ct.exports.default=Rt;function Rt(Pt,zt,Dt){Dt=Dt||2;var Nt=zt&&zt.length,$t=Nt?zt[0]*Dt:Pt.length,Ut=o(Pt,0,$t,Dt,!0),Ht=[];if(!Ut||Ut.next===Ut.prev)return Ht;var Vt,Xt,qt,er,lr,Jt,Yt;if(Nt&&(Ut=ht(Pt,zt,Ut,Dt)),Pt.length>80*Dt){Vt=qt=Pt[0],Xt=er=Pt[1];for(var rr=Dt;rr<$t;rr+=Dt)lr=Pt[rr],Jt=Pt[rr+1],lrqt&&(qt=lr),Jt>er&&(er=Jt);Yt=Math.max(qt-Vt,er-Xt),Yt=Yt!==0?1/Yt:0}return xt(Ut,Ht,Dt,Vt,Xt,Yt),Ht}function o(Pt,zt,Dt,Nt,$t){var Ut,Ht;if($t===Ot(Pt,zt,Dt,Nt)>0)for(Ut=zt;Ut=zt;Ut-=Nt)Ht=ct(Ut,Pt[Ut],Pt[Ut+1],Ht);return Ht&&at(Ht,Ht.next)&&(It(Ht),Ht=Ht.next),Ht}function it(Pt,zt){if(!Pt)return Pt;zt||(zt=Pt);var Dt=Pt,Nt;do if(Nt=!1,!Dt.steiner&&(at(Dt,Dt.next)||ft(Dt.prev,Dt,Dt.next)===0)){if(It(Dt),Dt=zt=Dt.prev,Dt===Dt.next)break;Nt=!0}else Dt=Dt.next;while(Nt||Dt!==zt);return zt}function xt(Pt,zt,Dt,Nt,$t,Ut,Ht){if(Pt){!Ht&&Ut&&st(Pt,Nt,$t,Ut);for(var Vt=Pt,Xt,qt;Pt.prev!==Pt.next;){if(Xt=Pt.prev,qt=Pt.next,Ut?Tt(Pt,Nt,$t,Ut):et(Pt)){zt.push(Xt.i/Dt),zt.push(Pt.i/Dt),zt.push(qt.i/Dt),It(Pt),Pt=qt.next,Vt=qt.next;continue}if(Pt=qt,Pt===Vt){Ht?Ht===1?(Pt=yt(it(Pt),zt,Dt),xt(Pt,zt,Dt,Nt,$t,Ut,2)):Ht===2&&ut(Pt,zt,Dt,Nt,$t,Ut):xt(it(Pt),zt,Dt,Nt,$t,Ut,1);break}}}}function et(Pt){var zt=Pt.prev,Dt=Pt,Nt=Pt.next;if(ft(zt,Dt,Nt)>=0)return!1;for(var $t=Pt.next.next;$t!==Pt.prev;){if(dt(zt.x,zt.y,Dt.x,Dt.y,Nt.x,Nt.y,$t.x,$t.y)&&ft($t.prev,$t,$t.next)>=0)return!1;$t=$t.next}return!0}function Tt(Pt,zt,Dt,Nt){var $t=Pt.prev,Ut=Pt,Ht=Pt.next;if(ft($t,Ut,Ht)>=0)return!1;for(var Vt=$t.xUt.x?$t.x>Ht.x?$t.x:Ht.x:Ut.x>Ht.x?Ut.x:Ht.x,er=$t.y>Ut.y?$t.y>Ht.y?$t.y:Ht.y:Ut.y>Ht.y?Ut.y:Ht.y,lr=nt(Vt,Xt,zt,Dt,Nt),Jt=nt(qt,er,zt,Dt,Nt),Yt=Pt.prevZ,rr=Pt.nextZ;Yt&&Yt.z>=lr&&rr&&rr.z<=Jt;){if(Yt!==Pt.prev&&Yt!==Pt.next&&dt($t.x,$t.y,Ut.x,Ut.y,Ht.x,Ht.y,Yt.x,Yt.y)&&ft(Yt.prev,Yt,Yt.next)>=0||(Yt=Yt.prevZ,rr!==Pt.prev&&rr!==Pt.next&&dt($t.x,$t.y,Ut.x,Ut.y,Ht.x,Ht.y,rr.x,rr.y)&&ft(rr.prev,rr,rr.next)>=0))return!1;rr=rr.nextZ}for(;Yt&&Yt.z>=lr;){if(Yt!==Pt.prev&&Yt!==Pt.next&&dt($t.x,$t.y,Ut.x,Ut.y,Ht.x,Ht.y,Yt.x,Yt.y)&&ft(Yt.prev,Yt,Yt.next)>=0)return!1;Yt=Yt.prevZ}for(;rr&&rr.z<=Jt;){if(rr!==Pt.prev&&rr!==Pt.next&&dt($t.x,$t.y,Ut.x,Ut.y,Ht.x,Ht.y,rr.x,rr.y)&&ft(rr.prev,rr,rr.next)>=0)return!1;rr=rr.nextZ}return!0}function yt(Pt,zt,Dt){var Nt=Pt;do{var $t=Nt.prev,Ut=Nt.next.next;!at($t,Ut)&&mt($t,Nt,Nt.next,Ut)&&Et($t,Ut)&&Et(Ut,$t)&&(zt.push($t.i/Dt),zt.push(Nt.i/Dt),zt.push(Ut.i/Dt),It(Nt),It(Nt.next),Nt=Pt=Ut),Nt=Nt.next}while(Nt!==Pt);return it(Nt)}function ut(Pt,zt,Dt,Nt,$t,Ut){var Ht=Pt;do{for(var Vt=Ht.next.next;Vt!==Ht.prev;){if(Ht.i!==Vt.i&&bt(Ht,Vt)){var Xt=wt(Ht,Vt);Ht=it(Ht,Ht.next),Xt=it(Xt,Xt.next),xt(Ht,zt,Dt,Nt,$t,Ut),xt(Xt,zt,Dt,Nt,$t,Ut);return}Vt=Vt.next}Ht=Ht.next}while(Ht!==Pt)}function ht(Pt,zt,Dt,Nt){var $t=[],Ut,Ht,Vt,Xt,qt;for(Ut=0,Ht=zt.length;Ut=Dt.next.y&&Dt.next.y!==Dt.y){var Vt=Dt.x+($t-Dt.y)*(Dt.next.x-Dt.x)/(Dt.next.y-Dt.y);if(Vt<=Nt&&Vt>Ut){if(Ut=Vt,Vt===Nt){if($t===Dt.y)return Dt;if($t===Dt.next.y)return Dt.next}Ht=Dt.x=Dt.x&&Dt.x>=qt&&Nt!==Dt.x&&dt($tHt.x||Dt.x===Ht.x&&tt(Ht,Dt)))&&(Ht=Dt,lr=Jt)),Dt=Dt.next;while(Dt!==Xt);return Ht}function tt(Pt,zt){return ft(Pt.prev,Pt,zt.prev)<0&&ft(zt.next,Pt,Pt.next)<0}function st(Pt,zt,Dt,Nt){var $t=Pt;do $t.z===null&&($t.z=nt($t.x,$t.y,zt,Dt,Nt)),$t.prevZ=$t.prev,$t.nextZ=$t.next,$t=$t.next;while($t!==Pt);$t.prevZ.nextZ=null,$t.prevZ=null,ot($t)}function ot(Pt){var zt,Dt,Nt,$t,Ut,Ht,Vt,Xt,qt=1;do{for(Dt=Pt,Pt=null,Ut=null,Ht=0;Dt;){for(Ht++,Nt=Dt,Vt=0,zt=0;zt0||Xt>0&&Nt;)Vt!==0&&(Xt===0||!Nt||Dt.z<=Nt.z)?($t=Dt,Dt=Dt.nextZ,Vt--):($t=Nt,Nt=Nt.nextZ,Xt--),Ut?Ut.nextZ=$t:Pt=$t,$t.prevZ=Ut,Ut=$t;Dt=Nt}Ut.nextZ=null,qt*=2}while(Ht>1);return Pt}function nt(Pt,zt,Dt,Nt,$t){return Pt=32767*(Pt-Dt)*$t,zt=32767*(zt-Nt)*$t,Pt=(Pt|Pt<<8)&16711935,Pt=(Pt|Pt<<4)&252645135,Pt=(Pt|Pt<<2)&858993459,Pt=(Pt|Pt<<1)&1431655765,zt=(zt|zt<<8)&16711935,zt=(zt|zt<<4)&252645135,zt=(zt|zt<<2)&858993459,zt=(zt|zt<<1)&1431655765,Pt|zt<<1}function vt(Pt){var zt=Pt,Dt=Pt;do(zt.x=0&&(Pt-Ht)*(Nt-Vt)-(Dt-Ht)*(zt-Vt)>=0&&(Dt-Ht)*(Ut-Vt)-($t-Ht)*(Nt-Vt)>=0}function bt(Pt,zt){return Pt.next.i!==zt.i&&Pt.prev.i!==zt.i&&!Mt(Pt,zt)&&(Et(Pt,zt)&&Et(zt,Pt)&&kt(Pt,zt)&&(ft(Pt.prev,Pt,zt.prev)||ft(Pt,zt.prev,zt))||at(Pt,zt)&&ft(Pt.prev,Pt,Pt.next)>0&&ft(zt.prev,zt,zt.next)>0)}function ft(Pt,zt,Dt){return(zt.y-Pt.y)*(Dt.x-zt.x)-(zt.x-Pt.x)*(Dt.y-zt.y)}function at(Pt,zt){return Pt.x===zt.x&&Pt.y===zt.y}function mt(Pt,zt,Dt,Nt){var $t=_t(ft(Pt,zt,Dt)),Ut=_t(ft(Pt,zt,Nt)),Ht=_t(ft(Dt,Nt,Pt)),Vt=_t(ft(Dt,Nt,zt));return!!($t!==Ut&&Ht!==Vt||$t===0&&St(Pt,Dt,zt)||Ut===0&&St(Pt,Nt,zt)||Ht===0&&St(Dt,Pt,Nt)||Vt===0&&St(Dt,zt,Nt))}function St(Pt,zt,Dt){return zt.x<=Math.max(Pt.x,Dt.x)&&zt.x>=Math.min(Pt.x,Dt.x)&&zt.y<=Math.max(Pt.y,Dt.y)&&zt.y>=Math.min(Pt.y,Dt.y)}function _t(Pt){return Pt>0?1:Pt<0?-1:0}function Mt(Pt,zt){var Dt=Pt;do{if(Dt.i!==Pt.i&&Dt.next.i!==Pt.i&&Dt.i!==zt.i&&Dt.next.i!==zt.i&&mt(Dt,Dt.next,Pt,zt))return!0;Dt=Dt.next}while(Dt!==Pt);return!1}function Et(Pt,zt){return ft(Pt.prev,Pt,Pt.next)<0?ft(Pt,zt,Pt.next)>=0&&ft(Pt,Pt.prev,zt)>=0:ft(Pt,zt,Pt.prev)<0||ft(Pt,Pt.next,zt)<0}function kt(Pt,zt){var Dt=Pt,Nt=!1,$t=(Pt.x+zt.x)/2,Ut=(Pt.y+zt.y)/2;do Dt.y>Ut!=Dt.next.y>Ut&&Dt.next.y!==Dt.y&&$t<(Dt.next.x-Dt.x)*(Ut-Dt.y)/(Dt.next.y-Dt.y)+Dt.x&&(Nt=!Nt),Dt=Dt.next;while(Dt!==Pt);return Nt}function wt(Pt,zt){var Dt=new At(Pt.i,Pt.x,Pt.y),Nt=new At(zt.i,zt.x,zt.y),$t=Pt.next,Ut=zt.prev;return Pt.next=zt,zt.prev=Pt,Dt.next=$t,$t.prev=Dt,Nt.next=Dt,Dt.prev=Nt,Ut.next=Nt,Nt.prev=Ut,Nt}function ct(Pt,zt,Dt,Nt){var $t=new At(Pt,zt,Dt);return Nt?($t.next=Nt.next,$t.prev=Nt,Nt.next.prev=$t,Nt.next=$t):($t.prev=$t,$t.next=$t),$t}function It(Pt){Pt.next.prev=Pt.prev,Pt.prev.next=Pt.next,Pt.prevZ&&(Pt.prevZ.nextZ=Pt.nextZ),Pt.nextZ&&(Pt.nextZ.prevZ=Pt.prevZ)}function At(Pt,zt,Dt){this.i=Pt,this.x=zt,this.y=Dt,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}Rt.deviation=function(Pt,zt,Dt,Nt){var $t=zt&&zt.length,Ut=$t?zt[0]*Dt:Pt.length,Ht=Math.abs(Ot(Pt,0,Ut,Dt));if($t)for(var Vt=0,Xt=zt.length;Vt0&&(Nt+=Pt[$t-1].length,Dt.holes.push(Nt))}return Dt}},6688:function(Ct,Rt,o){var it=o(78484);Ct.exports=function(et,Tt){var yt=[],ut=[],ht=[],j={},_=[],rt;function tt(St){ht[St]=!1,j.hasOwnProperty(St)&&Object.keys(j[St]).forEach(function(_t){delete j[St][_t],ht[_t]&&tt(_t)})}function st(St){var _t=!1;ut.push(St),ht[St]=!0;var Mt,Et;for(Mt=0;Mt<_[St].length;Mt++)Et=_[St][Mt],Et===rt?(ot(rt,ut),_t=!0):ht[Et]||(_t=st(Et));if(_t)tt(St);else for(Mt=0;Mt<_[St].length;Mt++){Et=_[St][Mt];var kt=j[Et];kt||(kt={},j[Et]=kt),kt[Et]=!0}return ut.pop(),_t}function ot(St,_t){var Mt=[].concat(_t).concat(St);Tt?Tt(st):yt.push(Mt)}function nt(St){for(var _t=0;_t=St})}function vt(St){nt(St);for(var _t=et,Mt=it(_t),Et=Mt.components.filter(function(Pt){return Pt.length>1}),kt=1/0,wt,ct=0;ct=55296&&St<=56319&&(kt+=ot[++bt])),kt=nt?rt.call(nt,vt,kt,ft):kt,dt?(tt.value=kt,st(at,ft,tt)):at[ft]=kt,++ft;mt=ft}}if(mt===void 0)for(mt=Tt(ot.length),dt&&(at=new dt(mt)),bt=0;bt0?1:-1}},96936:function(Ct,Rt,o){var it=o(85608),xt=Math.abs,et=Math.floor;Ct.exports=function(Tt){return isNaN(Tt)?0:(Tt=Number(Tt),Tt===0||!isFinite(Tt)?Tt:it(Tt)*et(xt(Tt)))}},81304:function(Ct,Rt,o){var it=o(96936),xt=Math.max;Ct.exports=function(et){return xt(0,it(et))}},14428:function(Ct,Rt,o){var it=o(34044),xt=o(9252),et=Function.prototype.bind,Tt=Function.prototype.call,yt=Object.keys,ut=Object.prototype.propertyIsEnumerable;Ct.exports=function(ht,j){return function(_,rt){var tt,st=arguments[2],ot=arguments[3];return _=Object(xt(_)),it(rt),tt=yt(_),ot&&tt.sort(typeof ot=="function"?et.call(ot,_):void 0),typeof ht!="function"&&(ht=tt[ht]),Tt.call(ht,tt,function(nt,vt){return ut.call(_,nt)?Tt.call(rt,st,_[nt],nt,_,vt):j})}}},38452:function(Ct,Rt,o){Ct.exports=o(96276)()?Object.assign:o(81892)},96276:function(Ct){Ct.exports=function(){var Rt=Object.assign,o;return typeof Rt!="function"?!1:(o={foo:"raz"},Rt(o,{bar:"dwa"},{trzy:"trzy"}),o.foo+o.bar+o.trzy==="razdwatrzy")}},81892:function(Ct,Rt,o){var it=o(54768),xt=o(9252),et=Math.max;Ct.exports=function(Tt,yt){var ut,ht,j=et(arguments.length,2),_;for(Tt=Object(xt(Tt)),_=function(rt){try{Tt[rt]=yt[rt]}catch(tt){ut||(ut=tt)}},ht=1;ht-1}},29768:function(Ct){var Rt=Object.prototype.toString,o=Rt.call("");Ct.exports=function(it){return typeof it=="string"||it&&typeof it=="object"&&(it instanceof String||Rt.call(it)===o)||!1}},82252:function(Ct){var Rt=Object.create(null),o=Math.random;Ct.exports=function(){var it;do it=o().toString(36).slice(2);while(Rt[it]);return it}},52104:function(Ct,Rt,o){var it=o(69932),xt=o(71056),et=o(21092),Tt=o(92664),yt=o(85512),ut=Object.defineProperty,ht;ht=Ct.exports=function(j,_){if(!(this instanceof ht))throw new TypeError("Constructor requires 'new'");yt.call(this,j),_?xt.call(_,"key+value")?_="key+value":xt.call(_,"key")?_="key":_="value":_="value",ut(this,"__kind__",et("",_))},it&&it(ht,yt),delete ht.prototype.constructor,ht.prototype=Object.create(yt.prototype,{_resolve:et(function(j){return this.__kind__==="value"?this.__list__[j]:this.__kind__==="key+value"?[j,this.__list__[j]]:j})}),ut(ht.prototype,Tt.toStringTag,et("c","Array Iterator"))},76024:function(Ct,Rt,o){var it=o(60948),xt=o(34044),et=o(29768),Tt=o(76252),yt=Array.isArray,ut=Function.prototype.call,ht=Array.prototype.some;Ct.exports=function(j,_){var rt,tt=arguments[2],st,ot,nt,vt,dt,bt,ft;if(yt(j)||it(j)?rt="array":et(j)?rt="string":j=Tt(j),xt(_),ot=function(){nt=!0},rt==="array"){ht.call(j,function(at){return ut.call(_,tt,at,ot),nt});return}if(rt==="string"){for(dt=j.length,vt=0;vt=55296&&ft<=56319&&(bt+=j[++vt])),ut.call(_,tt,bt,ot),!nt);++vt);return}for(st=j.next();!st.done;){if(ut.call(_,tt,st.value,ot),nt)return;st=j.next()}}},76252:function(Ct,Rt,o){var it=o(60948),xt=o(29768),et=o(52104),Tt=o(80940),yt=o(52891),ut=o(92664).iterator;Ct.exports=function(ht){return typeof yt(ht)[ut]=="function"?ht[ut]():it(ht)?new et(ht):xt(ht)?new Tt(ht):new et(ht)}},85512:function(Ct,Rt,o){var it=o(41476),xt=o(38452),et=o(34044),Tt=o(9252),yt=o(21092),ut=o(27940),ht=o(92664),j=Object.defineProperty,_=Object.defineProperties,rt;Ct.exports=rt=function(tt,st){if(!(this instanceof rt))throw new TypeError("Constructor requires 'new'");_(this,{__list__:yt("w",Tt(tt)),__context__:yt("w",st),__nextIndex__:yt("w",0)}),st&&(et(st.on),st.on("_add",this._onAdd),st.on("_delete",this._onDelete),st.on("_clear",this._onClear))},delete rt.prototype.constructor,_(rt.prototype,xt({_next:yt(function(){var tt;if(this.__list__){if(this.__redo__&&(tt=this.__redo__.shift(),tt!==void 0))return tt;if(this.__nextIndex__=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){j(this,"__redo__",yt("c",[tt]));return}this.__redo__.forEach(function(st,ot){st>=tt&&(this.__redo__[ot]=++st)},this),this.__redo__.push(tt)}}),_onDelete:yt(function(tt){var st;tt>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(st=this.__redo__.indexOf(tt),st!==-1&&this.__redo__.splice(st,1),this.__redo__.forEach(function(ot,nt){ot>tt&&(this.__redo__[nt]=--ot)},this)))}),_onClear:yt(function(){this.__redo__&&it.call(this.__redo__),this.__nextIndex__=0})}))),j(rt.prototype,ht.iterator,yt(function(){return this}))},76368:function(Ct,Rt,o){var it=o(60948),xt=o(42584),et=o(29768),Tt=o(92664).iterator,yt=Array.isArray;Ct.exports=function(ut){return xt(ut)?yt(ut)||et(ut)||it(ut)?!0:typeof ut[Tt]=="function":!1}},80940:function(Ct,Rt,o){var it=o(69932),xt=o(21092),et=o(92664),Tt=o(85512),yt=Object.defineProperty,ut;ut=Ct.exports=function(ht){if(!(this instanceof ut))throw new TypeError("Constructor requires 'new'");ht=String(ht),Tt.call(this,ht),yt(this,"__length__",xt("",ht.length))},it&&it(ut,Tt),delete ut.prototype.constructor,ut.prototype=Object.create(Tt.prototype,{_next:xt(function(){if(this.__list__){if(this.__nextIndex__=55296&&_<=56319?j+this.__list__[this.__nextIndex__++]:j)})}),yt(ut.prototype,et.toStringTag,xt("c","String Iterator"))},52891:function(Ct,Rt,o){var it=o(76368);Ct.exports=function(xt){if(!it(xt))throw new TypeError(xt+" is not iterable");return xt}},60964:function(Ct){function Rt(it,xt){if(it==null)throw new TypeError("Cannot convert first argument to object");for(var et=Object(it),Tt=1;Tt0&&(kt=St[0]),kt instanceof Error)throw kt;var wt=new Error("Unhandled error."+(kt?" ("+kt.message+")":""));throw wt.context=kt,wt}var ct=Et[mt];if(ct===void 0)return!1;if(typeof ct=="function")o(ct,this,St);else for(var It=ct.length,At=ot(ct,It),_t=0;_t0&&kt.length>Mt&&!kt.warned){kt.warned=!0;var wt=new Error("Possible EventEmitter memory leak detected. "+kt.length+" "+String(mt)+" listeners added. Use emitter.setMaxListeners() to increase limit");wt.name="MaxListenersExceededWarning",wt.emitter=at,wt.type=mt,wt.count=kt.length,xt(wt)}return at}Tt.prototype.addListener=function(mt,St){return j(this,mt,St,!1)},Tt.prototype.on=Tt.prototype.addListener,Tt.prototype.prependListener=function(mt,St){return j(this,mt,St,!0)};function _(){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 rt(at,mt,St){var _t={fired:!1,wrapFn:void 0,target:at,type:mt,listener:St},Mt=_.bind(_t);return Mt.listener=St,_t.wrapFn=Mt,Mt}Tt.prototype.once=function(mt,St){return ut(St),this.on(mt,rt(this,mt,St)),this},Tt.prototype.prependOnceListener=function(mt,St){return ut(St),this.prependListener(mt,rt(this,mt,St)),this},Tt.prototype.removeListener=function(mt,St){var _t,Mt,Et,kt,wt;if(ut(St),Mt=this._events,Mt===void 0)return this;if(_t=Mt[mt],_t===void 0)return this;if(_t===St||_t.listener===St)--this._eventsCount===0?this._events=Object.create(null):(delete Mt[mt],Mt.removeListener&&this.emit("removeListener",mt,_t.listener||St));else if(typeof _t!="function"){for(Et=-1,kt=_t.length-1;kt>=0;kt--)if(_t[kt]===St||_t[kt].listener===St){wt=_t[kt].listener,Et=kt;break}if(Et<0)return this;Et===0?_t.shift():nt(_t,Et),_t.length===1&&(Mt[mt]=_t[0]),Mt.removeListener!==void 0&&this.emit("removeListener",mt,wt||St)}return this},Tt.prototype.off=Tt.prototype.removeListener,Tt.prototype.removeAllListeners=function(mt){var St,_t,Mt;if(_t=this._events,_t===void 0)return this;if(_t.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):_t[mt]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete _t[mt]),this;if(arguments.length===0){var Et=Object.keys(_t),kt;for(Mt=0;Mt=0;Mt--)this.removeListener(mt,St[Mt]);return this};function tt(at,mt,St){var _t=at._events;if(_t===void 0)return[];var Mt=_t[mt];return Mt===void 0?[]:typeof Mt=="function"?St?[Mt.listener||Mt]:[Mt]:St?vt(Mt):ot(Mt,Mt.length)}Tt.prototype.listeners=function(mt){return tt(this,mt,!0)},Tt.prototype.rawListeners=function(mt){return tt(this,mt,!1)},Tt.listenerCount=function(at,mt){return typeof at.listenerCount=="function"?at.listenerCount(mt):st.call(at,mt)},Tt.prototype.listenerCount=st;function st(at){var mt=this._events;if(mt!==void 0){var St=mt[at];if(typeof St=="function")return 1;if(St!==void 0)return St.length}return 0}Tt.prototype.eventNames=function(){return this._eventsCount>0?it(this._events):[]};function ot(at,mt){for(var St=new Array(mt),_t=0;_tyt[0]-j[0]/2&&(nt=j[0]/2,vt+=j[1]);return ut}},71920:function(Ct){Ct.exports=Rt,Rt.canvas=document.createElement("canvas"),Rt.cache={};function Rt(_,Tt){Tt||(Tt={}),(typeof _=="string"||Array.isArray(_))&&(Tt.family=_);var yt=Array.isArray(Tt.family)?Tt.family.join(", "):Tt.family;if(!yt)throw Error("`family` must be defined");var ut=Tt.size||Tt.fontSize||Tt.em||48,ht=Tt.weight||Tt.fontWeight||"",j=Tt.style||Tt.fontStyle||"",_=[j,ht,ut].join(" ")+"px "+yt,rt=Tt.origin||"top";if(Rt.cache[yt]&&ut<=Rt.cache[yt].em)return o(Rt.cache[yt],rt);var tt=Tt.canvas||Rt.canvas,st=tt.getContext("2d"),ot={upper:Tt.upper!==void 0?Tt.upper:"H",lower:Tt.lower!==void 0?Tt.lower:"x",descent:Tt.descent!==void 0?Tt.descent:"p",ascent:Tt.ascent!==void 0?Tt.ascent:"h",tittle:Tt.tittle!==void 0?Tt.tittle:"i",overshoot:Tt.overshoot!==void 0?Tt.overshoot:"O"},nt=Math.ceil(ut*1.5);tt.height=nt,tt.width=nt*.5,st.font=_;var vt="H",dt={top:0};st.clearRect(0,0,nt,nt),st.textBaseline="top",st.fillStyle="black",st.fillText(vt,0,0);var bt=it(st.getImageData(0,0,nt,nt));st.clearRect(0,0,nt,nt),st.textBaseline="bottom",st.fillText(vt,0,nt);var ft=it(st.getImageData(0,0,nt,nt));dt.lineHeight=dt.bottom=nt-ft+bt,st.clearRect(0,0,nt,nt),st.textBaseline="alphabetic",st.fillText(vt,0,nt);var at=it(st.getImageData(0,0,nt,nt)),mt=nt-at-1+bt;dt.baseline=dt.alphabetic=mt,st.clearRect(0,0,nt,nt),st.textBaseline="middle",st.fillText(vt,0,nt*.5);var St=it(st.getImageData(0,0,nt,nt));dt.median=dt.middle=nt-St-1+bt-nt*.5,st.clearRect(0,0,nt,nt),st.textBaseline="hanging",st.fillText(vt,0,nt*.5);var _t=it(st.getImageData(0,0,nt,nt));dt.hanging=nt-_t-1+bt-nt*.5,st.clearRect(0,0,nt,nt),st.textBaseline="ideographic",st.fillText(vt,0,nt);var Mt=it(st.getImageData(0,0,nt,nt));if(dt.ideographic=nt-Mt-1+bt,ot.upper&&(st.clearRect(0,0,nt,nt),st.textBaseline="top",st.fillText(ot.upper,0,0),dt.upper=it(st.getImageData(0,0,nt,nt)),dt.capHeight=dt.baseline-dt.upper),ot.lower&&(st.clearRect(0,0,nt,nt),st.textBaseline="top",st.fillText(ot.lower,0,0),dt.lower=it(st.getImageData(0,0,nt,nt)),dt.xHeight=dt.baseline-dt.lower),ot.tittle&&(st.clearRect(0,0,nt,nt),st.textBaseline="top",st.fillText(ot.tittle,0,0),dt.tittle=it(st.getImageData(0,0,nt,nt))),ot.ascent&&(st.clearRect(0,0,nt,nt),st.textBaseline="top",st.fillText(ot.ascent,0,0),dt.ascent=it(st.getImageData(0,0,nt,nt))),ot.descent&&(st.clearRect(0,0,nt,nt),st.textBaseline="top",st.fillText(ot.descent,0,0),dt.descent=xt(st.getImageData(0,0,nt,nt))),ot.overshoot){st.clearRect(0,0,nt,nt),st.textBaseline="top",st.fillText(ot.overshoot,0,0);var Et=xt(st.getImageData(0,0,nt,nt));dt.overshoot=Et-mt}for(var kt in dt)dt[kt]/=ut;return dt.em=ut,Rt.cache[yt]=dt,o(dt,rt)}function o(et,Tt){var yt={};typeof Tt=="string"&&(Tt=et[Tt]);for(var ut in et)ut!=="em"&&(yt[ut]=et[ut]-Tt);return yt}function it(et){for(var Tt=et.height,yt=et.data,ut=3;ut0;ut-=4)if(yt[ut]!==0)return Math.floor((ut-3)*.25/Tt)}},46492:function(Ct,Rt,o){var it=o(90720),xt=Object.prototype.toString,et=Object.prototype.hasOwnProperty,Tt=function(_,rt,tt){for(var st=0,ot=_.length;st=3&&(st=tt),xt.call(_)==="[object Array]"?Tt(_,rt,st):typeof _=="string"?yt(_,rt,st):ut(_,rt,st)};Ct.exports=ht},74336:function(Ct){var Rt="Function.prototype.bind called on incompatible ",o=Object.prototype.toString,it=Math.max,xt="[object Function]",et=function(ht,j){for(var _=[],rt=0;rt"u"&&!it.canvas)return null;var xt=it.canvas||document.createElement("canvas");typeof it.width=="number"&&(xt.width=it.width),typeof it.height=="number"&&(xt.height=it.height);var et=it,Tt;try{var yt=[o];o.indexOf("webgl")===0&&yt.push("experimental-"+o);for(var ut=0;ut"u"||!tt?it:tt(Uint8Array),nt={"%AggregateError%":typeof AggregateError>"u"?it:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?it:ArrayBuffer,"%ArrayIteratorPrototype%":_&&tt?tt([][Symbol.iterator]()):it,"%AsyncFromSyncIteratorPrototype%":it,"%AsyncFunction%":st,"%AsyncGenerator%":st,"%AsyncGeneratorFunction%":st,"%AsyncIteratorPrototype%":st,"%Atomics%":typeof Atomics>"u"?it:Atomics,"%BigInt%":typeof BigInt>"u"?it:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?it:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?it:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?it:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?it:Float32Array,"%Float64Array%":typeof Float64Array>"u"?it:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?it:FinalizationRegistry,"%Function%":et,"%GeneratorFunction%":st,"%Int8Array%":typeof Int8Array>"u"?it:Int8Array,"%Int16Array%":typeof Int16Array>"u"?it:Int16Array,"%Int32Array%":typeof Int32Array>"u"?it:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_&&tt?tt(tt([][Symbol.iterator]())):it,"%JSON%":typeof JSON=="object"?JSON:it,"%Map%":typeof Map>"u"?it:Map,"%MapIteratorPrototype%":typeof Map>"u"||!_||!tt?it:tt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?it:Promise,"%Proxy%":typeof Proxy>"u"?it:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?it:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?it:Set,"%SetIteratorPrototype%":typeof Set>"u"||!_||!tt?it:tt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?it:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_&&tt?tt(""[Symbol.iterator]()):it,"%Symbol%":_?Symbol:it,"%SyntaxError%":xt,"%ThrowTypeError%":j,"%TypedArray%":ot,"%TypeError%":Tt,"%Uint8Array%":typeof Uint8Array>"u"?it:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?it:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?it:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?it:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?it:WeakMap,"%WeakRef%":typeof WeakRef>"u"?it:WeakRef,"%WeakSet%":typeof WeakSet>"u"?it:WeakSet};if(tt)try{null.error}catch(At){var vt=tt(tt(At));nt["%Error.prototype%"]=vt}var dt=function At(Ot){var Pt;if(Ot==="%AsyncFunction%")Pt=yt("async function () {}");else if(Ot==="%GeneratorFunction%")Pt=yt("function* () {}");else if(Ot==="%AsyncGeneratorFunction%")Pt=yt("async function* () {}");else if(Ot==="%AsyncGenerator%"){var zt=At("%AsyncGeneratorFunction%");zt&&(Pt=zt.prototype)}else if(Ot==="%AsyncIteratorPrototype%"){var Dt=At("%AsyncGenerator%");Dt&&tt&&(Pt=tt(Dt.prototype))}return nt[Ot]=Pt,Pt},bt={"%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"]},ft=o(8844),at=o(92064),mt=ft.call(Function.call,Array.prototype.concat),St=ft.call(Function.apply,Array.prototype.splice),_t=ft.call(Function.call,String.prototype.replace),Mt=ft.call(Function.call,String.prototype.slice),Et=ft.call(Function.call,RegExp.prototype.exec),kt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,wt=/\\(\\)?/g,ct=function(Ot){var Pt=Mt(Ot,0,1),zt=Mt(Ot,-1);if(Pt==="%"&&zt!=="%")throw new xt("invalid intrinsic syntax, expected closing `%`");if(zt==="%"&&Pt!=="%")throw new xt("invalid intrinsic syntax, expected opening `%`");var Dt=[];return _t(Ot,kt,function(Nt,$t,Ut,Ht){Dt[Dt.length]=Ut?_t(Ht,wt,"$1"):$t||Nt}),Dt},It=function(Ot,Pt){var zt=Ot,Dt;if(at(bt,zt)&&(Dt=bt[zt],zt="%"+Dt[0]+"%"),at(nt,zt)){var Nt=nt[zt];if(Nt===st&&(Nt=dt(zt)),typeof Nt>"u"&&!Pt)throw new Tt("intrinsic "+Ot+" exists, but is not available. Please file an issue!");return{alias:Dt,name:zt,value:Nt}}throw new xt("intrinsic "+Ot+" does not exist!")};Ct.exports=function(Ot,Pt){if(typeof Ot!="string"||Ot.length===0)throw new Tt("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Pt!="boolean")throw new Tt('"allowMissing" argument must be a boolean');if(Et(/^%?[^%]*%?$/,Ot)===null)throw new xt("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var zt=ct(Ot),Dt=zt.length>0?zt[0]:"",Nt=It("%"+Dt+"%",Pt),$t=Nt.name,Ut=Nt.value,Ht=!1,Vt=Nt.alias;Vt&&(Dt=Vt[0],St(zt,mt([0,1],Vt)));for(var Xt=1,qt=!0;Xt=zt.length){var Yt=ut(Ut,er);qt=!!Yt,qt&&"get"in Yt&&!("originalValue"in Yt.get)?Ut=Yt.get:Ut=Ut[er]}else qt=at(Ut,er),Ut=Ut[er];qt&&!Ht&&(nt[$t]=Ut)}}return Ut}},12408:function(Ct){Ct.exports=Rt;function Rt(o,it){var xt=it[0],et=it[1],Tt=it[2],yt=it[3],ut=it[4],ht=it[5],j=it[6],_=it[7],rt=it[8],tt=it[9],st=it[10],ot=it[11],nt=it[12],vt=it[13],dt=it[14],bt=it[15];return o[0]=ht*(st*bt-ot*dt)-tt*(j*bt-_*dt)+vt*(j*ot-_*st),o[1]=-(et*(st*bt-ot*dt)-tt*(Tt*bt-yt*dt)+vt*(Tt*ot-yt*st)),o[2]=et*(j*bt-_*dt)-ht*(Tt*bt-yt*dt)+vt*(Tt*_-yt*j),o[3]=-(et*(j*ot-_*st)-ht*(Tt*ot-yt*st)+tt*(Tt*_-yt*j)),o[4]=-(ut*(st*bt-ot*dt)-rt*(j*bt-_*dt)+nt*(j*ot-_*st)),o[5]=xt*(st*bt-ot*dt)-rt*(Tt*bt-yt*dt)+nt*(Tt*ot-yt*st),o[6]=-(xt*(j*bt-_*dt)-ut*(Tt*bt-yt*dt)+nt*(Tt*_-yt*j)),o[7]=xt*(j*ot-_*st)-ut*(Tt*ot-yt*st)+rt*(Tt*_-yt*j),o[8]=ut*(tt*bt-ot*vt)-rt*(ht*bt-_*vt)+nt*(ht*ot-_*tt),o[9]=-(xt*(tt*bt-ot*vt)-rt*(et*bt-yt*vt)+nt*(et*ot-yt*tt)),o[10]=xt*(ht*bt-_*vt)-ut*(et*bt-yt*vt)+nt*(et*_-yt*ht),o[11]=-(xt*(ht*ot-_*tt)-ut*(et*ot-yt*tt)+rt*(et*_-yt*ht)),o[12]=-(ut*(tt*dt-st*vt)-rt*(ht*dt-j*vt)+nt*(ht*st-j*tt)),o[13]=xt*(tt*dt-st*vt)-rt*(et*dt-Tt*vt)+nt*(et*st-Tt*tt),o[14]=-(xt*(ht*dt-j*vt)-ut*(et*dt-Tt*vt)+nt*(et*j-Tt*ht)),o[15]=xt*(ht*st-j*tt)-ut*(et*st-Tt*tt)+rt*(et*j-Tt*ht),o}},76860:function(Ct){Ct.exports=Rt;function Rt(o){var it=new Float32Array(16);return it[0]=o[0],it[1]=o[1],it[2]=o[2],it[3]=o[3],it[4]=o[4],it[5]=o[5],it[6]=o[6],it[7]=o[7],it[8]=o[8],it[9]=o[9],it[10]=o[10],it[11]=o[11],it[12]=o[12],it[13]=o[13],it[14]=o[14],it[15]=o[15],it}},64492:function(Ct){Ct.exports=Rt;function Rt(o,it){return o[0]=it[0],o[1]=it[1],o[2]=it[2],o[3]=it[3],o[4]=it[4],o[5]=it[5],o[6]=it[6],o[7]=it[7],o[8]=it[8],o[9]=it[9],o[10]=it[10],o[11]=it[11],o[12]=it[12],o[13]=it[13],o[14]=it[14],o[15]=it[15],o}},54212:function(Ct){Ct.exports=Rt;function Rt(){var o=new Float32Array(16);return o[0]=1,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=1,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=1,o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o}},70800:function(Ct){Ct.exports=Rt;function Rt(o){var it=o[0],xt=o[1],et=o[2],Tt=o[3],yt=o[4],ut=o[5],ht=o[6],j=o[7],_=o[8],rt=o[9],tt=o[10],st=o[11],ot=o[12],nt=o[13],vt=o[14],dt=o[15],bt=it*ut-xt*yt,ft=it*ht-et*yt,at=it*j-Tt*yt,mt=xt*ht-et*ut,St=xt*j-Tt*ut,_t=et*j-Tt*ht,Mt=_*nt-rt*ot,Et=_*vt-tt*ot,kt=_*dt-st*ot,wt=rt*vt-tt*nt,ct=rt*dt-st*nt,It=tt*dt-st*vt;return bt*It-ft*ct+at*wt+mt*kt-St*Et+_t*Mt}},61784:function(Ct){Ct.exports=Rt;function Rt(o,it){var xt=it[0],et=it[1],Tt=it[2],yt=it[3],ut=xt+xt,ht=et+et,j=Tt+Tt,_=xt*ut,rt=et*ut,tt=et*ht,st=Tt*ut,ot=Tt*ht,nt=Tt*j,vt=yt*ut,dt=yt*ht,bt=yt*j;return o[0]=1-tt-nt,o[1]=rt+bt,o[2]=st-dt,o[3]=0,o[4]=rt-bt,o[5]=1-_-nt,o[6]=ot+vt,o[7]=0,o[8]=st+dt,o[9]=ot-vt,o[10]=1-_-tt,o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o}},91616:function(Ct){Ct.exports=Rt;function Rt(o,it,xt){var et,Tt,yt,ut=xt[0],ht=xt[1],j=xt[2],_=Math.sqrt(ut*ut+ht*ht+j*j);return Math.abs(_)<1e-6?null:(_=1/_,ut*=_,ht*=_,j*=_,et=Math.sin(it),Tt=Math.cos(it),yt=1-Tt,o[0]=ut*ut*yt+Tt,o[1]=ht*ut*yt+j*et,o[2]=j*ut*yt-ht*et,o[3]=0,o[4]=ut*ht*yt-j*et,o[5]=ht*ht*yt+Tt,o[6]=j*ht*yt+ut*et,o[7]=0,o[8]=ut*j*yt+ht*et,o[9]=ht*j*yt-ut*et,o[10]=j*j*yt+Tt,o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o)}},51944:function(Ct){Ct.exports=Rt;function Rt(o,it,xt){var et=it[0],Tt=it[1],yt=it[2],ut=it[3],ht=et+et,j=Tt+Tt,_=yt+yt,rt=et*ht,tt=et*j,st=et*_,ot=Tt*j,nt=Tt*_,vt=yt*_,dt=ut*ht,bt=ut*j,ft=ut*_;return o[0]=1-(ot+vt),o[1]=tt+ft,o[2]=st-bt,o[3]=0,o[4]=tt-ft,o[5]=1-(rt+vt),o[6]=nt+dt,o[7]=0,o[8]=st+bt,o[9]=nt-dt,o[10]=1-(rt+ot),o[11]=0,o[12]=xt[0],o[13]=xt[1],o[14]=xt[2],o[15]=1,o}},69444:function(Ct){Ct.exports=Rt;function Rt(o,it){return o[0]=it[0],o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=it[1],o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=it[2],o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o}},48268:function(Ct){Ct.exports=Rt;function Rt(o,it){return o[0]=1,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=1,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=1,o[11]=0,o[12]=it[0],o[13]=it[1],o[14]=it[2],o[15]=1,o}},21856:function(Ct){Ct.exports=Rt;function Rt(o,it){var xt=Math.sin(it),et=Math.cos(it);return o[0]=1,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=et,o[6]=xt,o[7]=0,o[8]=0,o[9]=-xt,o[10]=et,o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o}},79216:function(Ct){Ct.exports=Rt;function Rt(o,it){var xt=Math.sin(it),et=Math.cos(it);return o[0]=et,o[1]=0,o[2]=-xt,o[3]=0,o[4]=0,o[5]=1,o[6]=0,o[7]=0,o[8]=xt,o[9]=0,o[10]=et,o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o}},57736:function(Ct){Ct.exports=Rt;function Rt(o,it){var xt=Math.sin(it),et=Math.cos(it);return o[0]=et,o[1]=xt,o[2]=0,o[3]=0,o[4]=-xt,o[5]=et,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=1,o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o}},38848:function(Ct){Ct.exports=Rt;function Rt(o,it,xt,et,Tt,yt,ut){var ht=1/(xt-it),j=1/(Tt-et),_=1/(yt-ut);return o[0]=yt*2*ht,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=yt*2*j,o[6]=0,o[7]=0,o[8]=(xt+it)*ht,o[9]=(Tt+et)*j,o[10]=(ut+yt)*_,o[11]=-1,o[12]=0,o[13]=0,o[14]=ut*yt*2*_,o[15]=0,o}},36635:function(Ct){Ct.exports=Rt;function Rt(o){return o[0]=1,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=1,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=1,o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o}},36524:function(Ct,Rt,o){Ct.exports={create:o(54212),clone:o(76860),copy:o(64492),identity:o(36635),transpose:o(86520),invert:o(4308),adjoint:o(12408),determinant:o(70800),multiply:o(80944),translate:o(35176),scale:o(68152),rotate:o(30016),rotateX:o(15456),rotateY:o(64840),rotateZ:o(4192),fromRotation:o(91616),fromRotationTranslation:o(51944),fromScaling:o(69444),fromTranslation:o(48268),fromXRotation:o(21856),fromYRotation:o(79216),fromZRotation:o(57736),fromQuat:o(61784),frustum:o(38848),perspective:o(51296),perspectiveFromFieldOfView:o(63688),ortho:o(97688),lookAt:o(56508),str:o(89412)}},4308:function(Ct){Ct.exports=Rt;function Rt(o,it){var xt=it[0],et=it[1],Tt=it[2],yt=it[3],ut=it[4],ht=it[5],j=it[6],_=it[7],rt=it[8],tt=it[9],st=it[10],ot=it[11],nt=it[12],vt=it[13],dt=it[14],bt=it[15],ft=xt*ht-et*ut,at=xt*j-Tt*ut,mt=xt*_-yt*ut,St=et*j-Tt*ht,_t=et*_-yt*ht,Mt=Tt*_-yt*j,Et=rt*vt-tt*nt,kt=rt*dt-st*nt,wt=rt*bt-ot*nt,ct=tt*dt-st*vt,It=tt*bt-ot*vt,At=st*bt-ot*dt,Ot=ft*At-at*It+mt*ct+St*wt-_t*kt+Mt*Et;return Ot?(Ot=1/Ot,o[0]=(ht*At-j*It+_*ct)*Ot,o[1]=(Tt*It-et*At-yt*ct)*Ot,o[2]=(vt*Mt-dt*_t+bt*St)*Ot,o[3]=(st*_t-tt*Mt-ot*St)*Ot,o[4]=(j*wt-ut*At-_*kt)*Ot,o[5]=(xt*At-Tt*wt+yt*kt)*Ot,o[6]=(dt*mt-nt*Mt-bt*at)*Ot,o[7]=(rt*Mt-st*mt+ot*at)*Ot,o[8]=(ut*It-ht*wt+_*Et)*Ot,o[9]=(et*wt-xt*It-yt*Et)*Ot,o[10]=(nt*_t-vt*mt+bt*ft)*Ot,o[11]=(tt*mt-rt*_t-ot*ft)*Ot,o[12]=(ht*kt-ut*ct-j*Et)*Ot,o[13]=(xt*ct-et*kt+Tt*Et)*Ot,o[14]=(vt*at-nt*St-dt*ft)*Ot,o[15]=(rt*St-tt*at+st*ft)*Ot,o):null}},56508:function(Ct,Rt,o){var it=o(36635);Ct.exports=xt;function xt(et,Tt,yt,ut){var ht,j,_,rt,tt,st,ot,nt,vt,dt,bt=Tt[0],ft=Tt[1],at=Tt[2],mt=ut[0],St=ut[1],_t=ut[2],Mt=yt[0],Et=yt[1],kt=yt[2];return Math.abs(bt-Mt)<1e-6&&Math.abs(ft-Et)<1e-6&&Math.abs(at-kt)<1e-6?it(et):(ot=bt-Mt,nt=ft-Et,vt=at-kt,dt=1/Math.sqrt(ot*ot+nt*nt+vt*vt),ot*=dt,nt*=dt,vt*=dt,ht=St*vt-_t*nt,j=_t*ot-mt*vt,_=mt*nt-St*ot,dt=Math.sqrt(ht*ht+j*j+_*_),dt?(dt=1/dt,ht*=dt,j*=dt,_*=dt):(ht=0,j=0,_=0),rt=nt*_-vt*j,tt=vt*ht-ot*_,st=ot*j-nt*ht,dt=Math.sqrt(rt*rt+tt*tt+st*st),dt?(dt=1/dt,rt*=dt,tt*=dt,st*=dt):(rt=0,tt=0,st=0),et[0]=ht,et[1]=rt,et[2]=ot,et[3]=0,et[4]=j,et[5]=tt,et[6]=nt,et[7]=0,et[8]=_,et[9]=st,et[10]=vt,et[11]=0,et[12]=-(ht*bt+j*ft+_*at),et[13]=-(rt*bt+tt*ft+st*at),et[14]=-(ot*bt+nt*ft+vt*at),et[15]=1,et)}},80944:function(Ct){Ct.exports=Rt;function Rt(o,it,xt){var et=it[0],Tt=it[1],yt=it[2],ut=it[3],ht=it[4],j=it[5],_=it[6],rt=it[7],tt=it[8],st=it[9],ot=it[10],nt=it[11],vt=it[12],dt=it[13],bt=it[14],ft=it[15],at=xt[0],mt=xt[1],St=xt[2],_t=xt[3];return o[0]=at*et+mt*ht+St*tt+_t*vt,o[1]=at*Tt+mt*j+St*st+_t*dt,o[2]=at*yt+mt*_+St*ot+_t*bt,o[3]=at*ut+mt*rt+St*nt+_t*ft,at=xt[4],mt=xt[5],St=xt[6],_t=xt[7],o[4]=at*et+mt*ht+St*tt+_t*vt,o[5]=at*Tt+mt*j+St*st+_t*dt,o[6]=at*yt+mt*_+St*ot+_t*bt,o[7]=at*ut+mt*rt+St*nt+_t*ft,at=xt[8],mt=xt[9],St=xt[10],_t=xt[11],o[8]=at*et+mt*ht+St*tt+_t*vt,o[9]=at*Tt+mt*j+St*st+_t*dt,o[10]=at*yt+mt*_+St*ot+_t*bt,o[11]=at*ut+mt*rt+St*nt+_t*ft,at=xt[12],mt=xt[13],St=xt[14],_t=xt[15],o[12]=at*et+mt*ht+St*tt+_t*vt,o[13]=at*Tt+mt*j+St*st+_t*dt,o[14]=at*yt+mt*_+St*ot+_t*bt,o[15]=at*ut+mt*rt+St*nt+_t*ft,o}},97688:function(Ct){Ct.exports=Rt;function Rt(o,it,xt,et,Tt,yt,ut){var ht=1/(it-xt),j=1/(et-Tt),_=1/(yt-ut);return o[0]=-2*ht,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=-2*j,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=2*_,o[11]=0,o[12]=(it+xt)*ht,o[13]=(Tt+et)*j,o[14]=(ut+yt)*_,o[15]=1,o}},51296:function(Ct){Ct.exports=Rt;function Rt(o,it,xt,et,Tt){var yt=1/Math.tan(it/2),ut=1/(et-Tt);return o[0]=yt/xt,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=yt,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=(Tt+et)*ut,o[11]=-1,o[12]=0,o[13]=0,o[14]=2*Tt*et*ut,o[15]=0,o}},63688:function(Ct){Ct.exports=Rt;function Rt(o,it,xt,et){var Tt=Math.tan(it.upDegrees*Math.PI/180),yt=Math.tan(it.downDegrees*Math.PI/180),ut=Math.tan(it.leftDegrees*Math.PI/180),ht=Math.tan(it.rightDegrees*Math.PI/180),j=2/(ut+ht),_=2/(Tt+yt);return o[0]=j,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=_,o[6]=0,o[7]=0,o[8]=-((ut-ht)*j*.5),o[9]=(Tt-yt)*_*.5,o[10]=et/(xt-et),o[11]=-1,o[12]=0,o[13]=0,o[14]=et*xt/(xt-et),o[15]=0,o}},30016:function(Ct){Ct.exports=Rt;function Rt(o,it,xt,et){var Tt=et[0],yt=et[1],ut=et[2],ht=Math.sqrt(Tt*Tt+yt*yt+ut*ut),j,_,rt,tt,st,ot,nt,vt,dt,bt,ft,at,mt,St,_t,Mt,Et,kt,wt,ct,It,At,Ot,Pt;return Math.abs(ht)<1e-6?null:(ht=1/ht,Tt*=ht,yt*=ht,ut*=ht,j=Math.sin(xt),_=Math.cos(xt),rt=1-_,tt=it[0],st=it[1],ot=it[2],nt=it[3],vt=it[4],dt=it[5],bt=it[6],ft=it[7],at=it[8],mt=it[9],St=it[10],_t=it[11],Mt=Tt*Tt*rt+_,Et=yt*Tt*rt+ut*j,kt=ut*Tt*rt-yt*j,wt=Tt*yt*rt-ut*j,ct=yt*yt*rt+_,It=ut*yt*rt+Tt*j,At=Tt*ut*rt+yt*j,Ot=yt*ut*rt-Tt*j,Pt=ut*ut*rt+_,o[0]=tt*Mt+vt*Et+at*kt,o[1]=st*Mt+dt*Et+mt*kt,o[2]=ot*Mt+bt*Et+St*kt,o[3]=nt*Mt+ft*Et+_t*kt,o[4]=tt*wt+vt*ct+at*It,o[5]=st*wt+dt*ct+mt*It,o[6]=ot*wt+bt*ct+St*It,o[7]=nt*wt+ft*ct+_t*It,o[8]=tt*At+vt*Ot+at*Pt,o[9]=st*At+dt*Ot+mt*Pt,o[10]=ot*At+bt*Ot+St*Pt,o[11]=nt*At+ft*Ot+_t*Pt,it!==o&&(o[12]=it[12],o[13]=it[13],o[14]=it[14],o[15]=it[15]),o)}},15456:function(Ct){Ct.exports=Rt;function Rt(o,it,xt){var et=Math.sin(xt),Tt=Math.cos(xt),yt=it[4],ut=it[5],ht=it[6],j=it[7],_=it[8],rt=it[9],tt=it[10],st=it[11];return it!==o&&(o[0]=it[0],o[1]=it[1],o[2]=it[2],o[3]=it[3],o[12]=it[12],o[13]=it[13],o[14]=it[14],o[15]=it[15]),o[4]=yt*Tt+_*et,o[5]=ut*Tt+rt*et,o[6]=ht*Tt+tt*et,o[7]=j*Tt+st*et,o[8]=_*Tt-yt*et,o[9]=rt*Tt-ut*et,o[10]=tt*Tt-ht*et,o[11]=st*Tt-j*et,o}},64840:function(Ct){Ct.exports=Rt;function Rt(o,it,xt){var et=Math.sin(xt),Tt=Math.cos(xt),yt=it[0],ut=it[1],ht=it[2],j=it[3],_=it[8],rt=it[9],tt=it[10],st=it[11];return it!==o&&(o[4]=it[4],o[5]=it[5],o[6]=it[6],o[7]=it[7],o[12]=it[12],o[13]=it[13],o[14]=it[14],o[15]=it[15]),o[0]=yt*Tt-_*et,o[1]=ut*Tt-rt*et,o[2]=ht*Tt-tt*et,o[3]=j*Tt-st*et,o[8]=yt*et+_*Tt,o[9]=ut*et+rt*Tt,o[10]=ht*et+tt*Tt,o[11]=j*et+st*Tt,o}},4192:function(Ct){Ct.exports=Rt;function Rt(o,it,xt){var et=Math.sin(xt),Tt=Math.cos(xt),yt=it[0],ut=it[1],ht=it[2],j=it[3],_=it[4],rt=it[5],tt=it[6],st=it[7];return it!==o&&(o[8]=it[8],o[9]=it[9],o[10]=it[10],o[11]=it[11],o[12]=it[12],o[13]=it[13],o[14]=it[14],o[15]=it[15]),o[0]=yt*Tt+_*et,o[1]=ut*Tt+rt*et,o[2]=ht*Tt+tt*et,o[3]=j*Tt+st*et,o[4]=_*Tt-yt*et,o[5]=rt*Tt-ut*et,o[6]=tt*Tt-ht*et,o[7]=st*Tt-j*et,o}},68152:function(Ct){Ct.exports=Rt;function Rt(o,it,xt){var et=xt[0],Tt=xt[1],yt=xt[2];return o[0]=it[0]*et,o[1]=it[1]*et,o[2]=it[2]*et,o[3]=it[3]*et,o[4]=it[4]*Tt,o[5]=it[5]*Tt,o[6]=it[6]*Tt,o[7]=it[7]*Tt,o[8]=it[8]*yt,o[9]=it[9]*yt,o[10]=it[10]*yt,o[11]=it[11]*yt,o[12]=it[12],o[13]=it[13],o[14]=it[14],o[15]=it[15],o}},89412:function(Ct){Ct.exports=Rt;function Rt(o){return"mat4("+o[0]+", "+o[1]+", "+o[2]+", "+o[3]+", "+o[4]+", "+o[5]+", "+o[6]+", "+o[7]+", "+o[8]+", "+o[9]+", "+o[10]+", "+o[11]+", "+o[12]+", "+o[13]+", "+o[14]+", "+o[15]+")"}},35176:function(Ct){Ct.exports=Rt;function Rt(o,it,xt){var et=xt[0],Tt=xt[1],yt=xt[2],ut,ht,j,_,rt,tt,st,ot,nt,vt,dt,bt;return it===o?(o[12]=it[0]*et+it[4]*Tt+it[8]*yt+it[12],o[13]=it[1]*et+it[5]*Tt+it[9]*yt+it[13],o[14]=it[2]*et+it[6]*Tt+it[10]*yt+it[14],o[15]=it[3]*et+it[7]*Tt+it[11]*yt+it[15]):(ut=it[0],ht=it[1],j=it[2],_=it[3],rt=it[4],tt=it[5],st=it[6],ot=it[7],nt=it[8],vt=it[9],dt=it[10],bt=it[11],o[0]=ut,o[1]=ht,o[2]=j,o[3]=_,o[4]=rt,o[5]=tt,o[6]=st,o[7]=ot,o[8]=nt,o[9]=vt,o[10]=dt,o[11]=bt,o[12]=ut*et+rt*Tt+nt*yt+it[12],o[13]=ht*et+tt*Tt+vt*yt+it[13],o[14]=j*et+st*Tt+dt*yt+it[14],o[15]=_*et+ot*Tt+bt*yt+it[15]),o}},86520:function(Ct){Ct.exports=Rt;function Rt(o,it){if(o===it){var xt=it[1],et=it[2],Tt=it[3],yt=it[6],ut=it[7],ht=it[11];o[1]=it[4],o[2]=it[8],o[3]=it[12],o[4]=xt,o[6]=it[9],o[7]=it[13],o[8]=et,o[9]=yt,o[11]=it[14],o[12]=Tt,o[13]=ut,o[14]=ht}else o[0]=it[0],o[1]=it[4],o[2]=it[8],o[3]=it[12],o[4]=it[1],o[5]=it[5],o[6]=it[9],o[7]=it[13],o[8]=it[2],o[9]=it[6],o[10]=it[10],o[11]=it[14],o[12]=it[3],o[13]=it[7],o[14]=it[11],o[15]=it[15];return o}},23352:function(Ct,Rt,o){var it=o(42771),xt=o(55616),et=o(28624),Tt=o(55212),yt=o(60463),ut=o(72160),ht=o(33888),j=o(14144),_=o(51160),rt=o(58908),tt=o(65819),st=o(23464),ot=o(63768),nt=o(50896),vt=o(71920),dt=o(47520),bt=o(308),ft=bt.nextPow2,at=new yt,mt=!1;if(document.body){var St=document.body.appendChild(document.createElement("div"));St.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(St).fontStretch&&(mt=!0),document.body.removeChild(St)}var _t=function(kt){Mt(kt)?(kt={regl:kt},this.gl=kt.regl._gl):this.gl=Tt(kt),this.shader=at.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=kt.regl||et({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),at.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(rt(kt)?kt:{})};_t.prototype.createShader=function(){var kt=this.regl,wt=kt({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:kt.prop("count"),offset:kt.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:kt.this("sizeBuffer")},width:{offset:0,stride:8,buffer:kt.this("sizeBuffer")},char:kt.this("charBuffer"),position:kt.this("position")},uniforms:{atlasSize:function(It,At){return[At.atlas.width,At.atlas.height]},atlasDim:function(It,At){return[At.atlas.cols,At.atlas.rows]},atlas:function(It,At){return At.atlas.texture},charStep:function(It,At){return At.atlas.step},em:function(It,At){return At.atlas.em},color:kt.prop("color"),opacity:kt.prop("opacity"),viewport:kt.this("viewportArray"),scale:kt.this("scale"),align:kt.prop("align"),baseline:kt.prop("baseline"),translate:kt.this("translate"),positionOffset:kt.prop("positionOffset")},primitive:"points",viewport:kt.this("viewport"),vert:` precision highp float; attribute float width, charOffset, char; attribute vec2 position; @@ -2982,20 +2982,20 @@ should equal // color.rgb += (1. - color.rgb) * (1. - mask.rgb); gl_FragColor = color; - }`}),ct={};return{regl:kt,draw:wt,atlas:ct}},_t.prototype.update=function(kt){var wt=this;if(typeof kt=="string")kt={text:kt};else if(!kt)return;kt=xt(kt,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0),kt.opacity!=null&&(Array.isArray(kt.opacity)?this.opacity=kt.opacity.map(function(kr){return parseFloat(kr)}):this.opacity=parseFloat(kt.opacity)),kt.viewport!=null&&(this.viewport=_(kt.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),this.viewport==null&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),kt.kerning!=null&&(this.kerning=kt.kerning),kt.offset!=null&&(typeof kt.offset=="number"&&(kt.offset=[kt.offset,0]),this.positionOffset=dt(kt.offset)),kt.direction&&(this.direction=kt.direction),kt.range&&(this.range=kt.range,this.scale=[1/(kt.range[2]-kt.range[0]),1/(kt.range[3]-kt.range[1])],this.translate=[-kt.range[0],-kt.range[1]]),kt.scale&&(this.scale=kt.scale),kt.translate&&(this.translate=kt.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!kt.font&&(kt.font=_t.baseFontSize+"px sans-serif");var ct=!1,It=!1;if(kt.font&&(Array.isArray(kt.font)?kt.font:[kt.font]).forEach(function(kr,Nr){if(typeof kr=="string")try{kr=it.parse(kr)}catch{kr=it.parse(_t.baseFontSize+"px "+kr)}else{var Qr=kr.style,sn=kr.weight,un=kr.stretch,qr=kr.variant;kr=it.parse(it.stringify(kr)),Qr&&(kr.style=Qr),sn&&(kr.weight=sn),un&&(kr.stretch=un),qr&&(kr.variant=qr)}var Xr=it.stringify({size:_t.baseFontSize,family:kr.family,stretch:yt?kr.stretch:void 0,variant:kr.variant,weight:kr.weight,style:kr.style}),ln=tt(kr.size),mn=Math.round(ln[0]*st(ln[1]));if(mn!==wt.fontSize[Nr]&&(It=!0,wt.fontSize[Nr]=mn),(!wt.font[Nr]||Xr!=wt.font[Nr].baseString)&&(ct=!0,wt.font[Nr]=_t.fonts[Xr],!wt.font[Nr])){var pn=kr.family.join(", "),En=[kr.style];kr.style!=kr.variant&&En.push(kr.variant),kr.variant!=kr.weight&&En.push(kr.weight),yt&&kr.weight!=kr.stretch&&En.push(kr.stretch),wt.font[Nr]={baseString:Xr,family:pn,weight:kr.weight,stretch:kr.stretch,style:kr.style,variant:kr.variant,width:{},kerning:{},metrics:vt(pn,{origin:"top",fontSize:_t.baseFontSize,fontStyle:En.join(" ")})},_t.fonts[Xr]=wt.font[Nr]}}),(ct||It)&&this.font.forEach(function(kr,Nr){var Qr=it.stringify({size:wt.fontSize[Nr],family:kr.family,stretch:yt?kr.stretch:void 0,variant:kr.variant,weight:kr.weight,style:kr.style});if(wt.fontAtlas[Nr]=wt.shader.atlas[Qr],!wt.fontAtlas[Nr]){var sn=kr.metrics;wt.shader.atlas[Qr]=wt.fontAtlas[Nr]={fontString:Qr,step:Math.ceil(wt.fontSize[Nr]*sn.bottom*.5)*2,em:wt.fontSize[Nr],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:wt.regl.texture()}}kt.text==null&&(kt.text=wt.text)}),typeof kt.text=="string"&&kt.position&&kt.position.length>2){for(var At=Array(kt.position.length*.5),Ot=0;Ot2){for(var Dt=!kt.position[0].length,Nt=j.mallocFloat(this.count*2),$t=0,Ut=0;$t1?wt.align[Nr]:wt.align[0]:wt.align;if(typeof Qr=="number")return Qr;switch(Qr){case"right":case"end":return-kr;case"center":case"centre":case"middle":return-kr*.5}return 0})),this.baseline==null&&kt.baseline==null&&(kt.baseline=0),kt.baseline!=null&&(this.baseline=kt.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(kr,Nr){var Qr=(wt.font[Nr]||wt.font[0]).metrics,sn=0;return sn+=Qr.bottom*.5,typeof kr=="number"?sn+=kr-Qr.baseline:sn+=-Qr[kr],sn*=-1,sn})),kt.color!=null)if(kt.color||(kt.color="transparent"),typeof kt.color=="string"||!isNaN(kt.color))this.color=ut(kt.color,"uint8");else{var br;if(typeof kt.color[0]=="number"&&kt.color.length>this.counts.length){var Tr=kt.color.length;br=j.mallocUint8(Tr);for(var Ir=(kt.color.subarray||kt.color.slice).bind(kt.color),Ar=0;Ar4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(Rr){var zr=Math.max(this.position.length*.5||0,this.color.length*.25||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,this.positionOffset.length*.5||0);this.batch=Array(zr);for(var Br=0;Br1?this.counts[Br]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[Br]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(Br*4,Br*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[Br]:this.opacity,baseline:this.baselineOffset[Br]!=null?this.baselineOffset[Br]:this.baselineOffset[0],align:this.align?this.alignOffset[Br]!=null?this.alignOffset[Br]:this.alignOffset[0]:0,atlas:this.fontAtlas[Br]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(Br*2,Br*2+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]}},_t.prototype.destroy=function(){},_t.prototype.kerning=!0,_t.prototype.position={constant:new Float32Array(2)},_t.prototype.translate=null,_t.prototype.scale=null,_t.prototype.font=null,_t.prototype.text="",_t.prototype.positionOffset=[0,0],_t.prototype.opacity=1,_t.prototype.color=new Uint8Array([0,0,0,255]),_t.prototype.alignOffset=[0,0],_t.maxAtlasSize=1024,_t.atlasCanvas=document.createElement("canvas"),_t.atlasContext=_t.atlasCanvas.getContext("2d",{alpha:!1}),_t.baseFontSize=64,_t.fonts={};function Mt(Tt){return typeof Tt=="function"&&Tt._gl&&Tt.prop&&Tt.texture&&Tt.buffer}Ct.exports=_t},55212:function(Ct,Rt,o){var it=o(55616);Ct.exports=function(j){if(j?typeof j=="string"&&(j={container:j}):j={},et(j)?j={container:j}:Et(j)?j={container:j}:mt(j)?j={gl:j}:j=it(j,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0),j.pixelRatio||(j.pixelRatio=o.g.pixelRatio||1),j.gl)return j.gl;if(j.canvas&&(j.container=j.canvas.parentNode),j.container){if(typeof j.container=="string"){var _=document.querySelector(j.container);if(!_)throw Error("Element "+j.container+" is not found");j.container=_}et(j.container)?(j.canvas=j.container,j.container=j.canvas.parentNode):j.canvas||(j.canvas=ut(),j.container.appendChild(j.canvas),xt(j))}else if(!j.canvas)if(typeof document<"u")j.container=document.body||document.documentElement,j.canvas=ut(),j.container.appendChild(j.canvas),xt(j);else throw Error("Not DOM environment. Use headless-gl.");return j.gl||["webgl","experimental-webgl","webgl-experimental"].some(function(rt){try{j.gl=j.canvas.getContext(rt,j.attrs)}catch{}return j.gl}),j.gl};function xt(ht){if(ht.container)if(ht.container==document.body)document.body.style.width||(ht.canvas.width=ht.width||ht.pixelRatio*o.g.innerWidth),document.body.style.height||(ht.canvas.height=ht.height||ht.pixelRatio*o.g.innerHeight);else{var j=ht.container.getBoundingClientRect();ht.canvas.width=ht.width||j.right-j.left,ht.canvas.height=ht.height||j.bottom-j.top}}function et(ht){return typeof ht.getContext=="function"&&"width"in ht&&"height"in ht}function Et(ht){return typeof ht.nodeName=="string"&&typeof ht.appendChild=="function"&&typeof ht.getBoundingClientRect=="function"}function mt(ht){return typeof ht.drawArrays=="function"||typeof ht.drawElements=="function"}function ut(){var ht=document.createElement("canvas");return ht.style.position="absolute",ht.style.top=0,ht.style.left=0,ht}},26444:function(Ct){Ct.exports=function(Rt){typeof Rt=="string"&&(Rt=[Rt]);for(var o=[].slice.call(arguments,1),it=[],xt=0;xt */Rt.read=function(o,it,xt,et,Et){var mt,ut,ht=Et*8-et-1,j=(1<>1,rt=-7,tt=xt?Et-1:0,st=xt?-1:1,ot=o[it+tt];for(tt+=st,mt=ot&(1<<-rt)-1,ot>>=-rt,rt+=ht;rt>0;mt=mt*256+o[it+tt],tt+=st,rt-=8);for(ut=mt&(1<<-rt)-1,mt>>=-rt,rt+=et;rt>0;ut=ut*256+o[it+tt],tt+=st,rt-=8);if(mt===0)mt=1-_;else{if(mt===j)return ut?NaN:(ot?-1:1)*(1/0);ut=ut+Math.pow(2,et),mt=mt-_}return(ot?-1:1)*ut*Math.pow(2,mt-et)},Rt.write=function(o,it,xt,et,Et,mt){var ut,ht,j,_=mt*8-Et-1,rt=(1<<_)-1,tt=rt>>1,st=Et===23?Math.pow(2,-24)-Math.pow(2,-77):0,ot=et?0:mt-1,nt=et?1:-1,vt=it<0||it===0&&1/it<0?1:0;for(it=Math.abs(it),isNaN(it)||it===1/0?(ht=isNaN(it)?1:0,ut=rt):(ut=Math.floor(Math.log(it)/Math.LN2),it*(j=Math.pow(2,-ut))<1&&(ut--,j*=2),ut+tt>=1?it+=st/j:it+=st*Math.pow(2,1-tt),it*j>=2&&(ut++,j/=2),ut+tt>=rt?(ht=0,ut=rt):ut+tt>=1?(ht=(it*j-1)*Math.pow(2,Et),ut=ut+tt):(ht=it*Math.pow(2,tt-1)*Math.pow(2,Et),ut=0));Et>=8;o[xt+ot]=ht&255,ot+=nt,ht/=256,Et-=8);for(ut=ut<0;o[xt+ot]=ut&255,ot+=nt,ut/=256,_-=8);o[xt+ot-nt]|=vt*128}},6768:function(Ct){typeof Object.create=="function"?Ct.exports=function(o,it){it&&(o.super_=it,o.prototype=Object.create(it.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}))}:Ct.exports=function(o,it){if(it){o.super_=it;var xt=function(){};xt.prototype=it.prototype,o.prototype=new xt,o.prototype.constructor=o}}},91148:function(Ct,Rt,o){var it=o(46672)(),xt=o(99676),et=xt("Object.prototype.toString"),Et=function(j){return it&&j&&typeof j=="object"&&Symbol.toStringTag in j?!1:et(j)==="[object Arguments]"},mt=function(j){return Et(j)?!0:j!==null&&typeof j=="object"&&typeof j.length=="number"&&j.length>=0&&et(j)!=="[object Array]"&&et(j.callee)==="[object Function]"},ut=function(){return Et(arguments)}();Et.isLegacyArguments=mt,Ct.exports=ut?Et:mt},24200:function(Ct){Ct.exports=!0},90720:function(Ct){var Rt=Function.prototype.toString,o=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,it,xt;if(typeof o=="function"&&typeof Object.defineProperty=="function")try{it=Object.defineProperty({},"length",{get:function(){throw xt}}),xt={},o(function(){throw 42},null,it)}catch(bt){bt!==xt&&(o=null)}else o=null;var et=/^\s*class\b/,Et=function(ft){try{var at=Rt.call(ft);return et.test(at)}catch{return!1}},mt=function(ft){try{return Et(ft)?!1:(Rt.call(ft),!0)}catch{return!1}},ut=Object.prototype.toString,ht="[object Object]",j="[object Function]",_="[object GeneratorFunction]",rt="[object HTMLAllCollection]",tt="[object HTML document.all class]",st="[object HTMLCollection]",ot=typeof Symbol=="function"&&!!Symbol.toStringTag,nt=!(0 in[,]),vt=function(){return!1};if(typeof document=="object"){var dt=document.all;ut.call(dt)===ut.call(document.all)&&(vt=function(ft){if((nt||!ft)&&(typeof ft>"u"||typeof ft=="object"))try{var at=ut.call(ft);return(at===rt||at===tt||at===st||at===ht)&&ft("")==null}catch{}return!1})}Ct.exports=o?function(ft){if(vt(ft))return!0;if(!ft||typeof ft!="function"&&typeof ft!="object")return!1;try{o(ft,null,it)}catch(at){if(at!==xt)return!1}return!Et(ft)&&mt(ft)}:function(ft){if(vt(ft))return!0;if(!ft||typeof ft!="function"&&typeof ft!="object")return!1;if(ot)return mt(ft);if(Et(ft))return!1;var at=ut.call(ft);return at!==j&&at!==_&&!/^\[object HTML/.test(at)?!1:mt(ft)}},84420:function(Ct,Rt,o){var it=Object.prototype.toString,xt=Function.prototype.toString,et=/^\s*(?:function)?\*/,Et=o(46672)(),mt=Object.getPrototypeOf,ut=function(){if(!Et)return!1;try{return Function("return function*() {}")()}catch{}},ht;Ct.exports=function(_){if(typeof _!="function")return!1;if(et.test(xt.call(_)))return!0;if(!Et){var rt=it.call(_);return rt==="[object GeneratorFunction]"}if(!mt)return!1;if(typeof ht>"u"){var tt=ut();ht=tt?mt(tt):!1}return mt(_)===ht}},96604:function(Ct){Ct.exports=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))},85992:function(Ct){Ct.exports=function(o){return o!==o}},1560:function(Ct,Rt,o){var it=o(57916),xt=o(81288),et=o(85992),Et=o(57740),mt=o(59736),ut=it(Et(),Number);xt(ut,{getPolyfill:Et,implementation:et,shim:mt}),Ct.exports=ut},57740:function(Ct,Rt,o){var it=o(85992);Ct.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:it}},59736:function(Ct,Rt,o){var it=o(81288),xt=o(57740);Ct.exports=function(){var Et=xt();return it(Number,{isNaN:Et},{isNaN:function(){return Number.isNaN!==Et}}),Et}},18400:function(Ct){Ct.exports=function(Rt){var o=typeof Rt;return Rt!==null&&(o==="object"||o==="function")}},58908:function(Ct){var Rt=Object.prototype.toString;Ct.exports=function(o){var it;return Rt.call(o)==="[object Object]"&&(it=Object.getPrototypeOf(o),it===null||it===Object.getPrototypeOf({}))}},94576:function(Ct){Ct.exports=function(Rt){for(var o=Rt.length,it,xt=0;xt13)&&it!==32&&it!==133&&it!==160&&it!==5760&&it!==6158&&(it<8192||it>8205)&&it!==8232&&it!==8233&&it!==8239&&it!==8287&&it!==8288&&it!==12288&&it!==65279)return!1;return!0}},53520:function(Ct){Ct.exports=function(o){return typeof o!="string"?!1:(o=o.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(o)&&/[\dz]$/i.test(o)&&o.length>4))}},7728:function(Ct,Rt,o){var it=o(46492),xt=o(63436),et=o(99676),Et=et("Object.prototype.toString"),mt=o(46672)(),ut=o(2304),ht=typeof globalThis>"u"?o.g:globalThis,j=xt(),_=et("Array.prototype.indexOf",!0)||function(vt,dt){for(var bt=0;bt-1}return ut?ot(vt):!1}},76244:function(Ct){Ct.exports=Math.log2||function(Rt){return Math.log(Rt)*Math.LOG2E}},62644:function(Ct,Rt,o){Ct.exports=xt;var it=o(93784);function xt(et,Et){Et||(Et=et,et=window);var mt=0,ut=0,ht=0,j={shift:!1,alt:!1,control:!1,meta:!1},_=!1;function rt(St){var _t=!1;return"altKey"in St&&(_t=_t||St.altKey!==j.alt,j.alt=!!St.altKey),"shiftKey"in St&&(_t=_t||St.shiftKey!==j.shift,j.shift=!!St.shiftKey),"ctrlKey"in St&&(_t=_t||St.ctrlKey!==j.control,j.control=!!St.ctrlKey),"metaKey"in St&&(_t=_t||St.metaKey!==j.meta,j.meta=!!St.metaKey),_t}function tt(St,_t){var Mt=it.x(_t),Tt=it.y(_t);"buttons"in _t&&(St=_t.buttons|0),(St!==mt||Mt!==ut||Tt!==ht||rt(_t))&&(mt=St|0,ut=Mt||0,ht=Tt||0,Et&&Et(mt,ut,ht,j))}function st(St){tt(0,St)}function ot(){(mt||ut||ht||j.shift||j.alt||j.meta||j.control)&&(ut=ht=0,mt=0,j.shift=j.alt=j.control=j.meta=!1,Et&&Et(0,0,0,j))}function nt(St){rt(St)&&Et&&Et(mt,ut,ht,j)}function vt(St){it.buttons(St)===0?tt(0,St):tt(mt,St)}function dt(St){tt(mt|it.buttons(St),St)}function bt(St){tt(mt&~it.buttons(St),St)}function ft(){_||(_=!0,et.addEventListener("mousemove",vt),et.addEventListener("mousedown",dt),et.addEventListener("mouseup",bt),et.addEventListener("mouseleave",st),et.addEventListener("mouseenter",st),et.addEventListener("mouseout",st),et.addEventListener("mouseover",st),et.addEventListener("blur",ot),et.addEventListener("keyup",nt),et.addEventListener("keydown",nt),et.addEventListener("keypress",nt),et!==window&&(window.addEventListener("blur",ot),window.addEventListener("keyup",nt),window.addEventListener("keydown",nt),window.addEventListener("keypress",nt)))}function at(){_&&(_=!1,et.removeEventListener("mousemove",vt),et.removeEventListener("mousedown",dt),et.removeEventListener("mouseup",bt),et.removeEventListener("mouseleave",st),et.removeEventListener("mouseenter",st),et.removeEventListener("mouseout",st),et.removeEventListener("mouseover",st),et.removeEventListener("blur",ot),et.removeEventListener("keyup",nt),et.removeEventListener("keydown",nt),et.removeEventListener("keypress",nt),et!==window&&(window.removeEventListener("blur",ot),window.removeEventListener("keyup",nt),window.removeEventListener("keydown",nt),window.removeEventListener("keypress",nt)))}ft();var yt={element:et};return Object.defineProperties(yt,{enabled:{get:function(){return _},set:function(St){St?ft():at()},enumerable:!0},buttons:{get:function(){return mt},enumerable:!0},x:{get:function(){return ut},enumerable:!0},y:{get:function(){return ht},enumerable:!0},mods:{get:function(){return j},enumerable:!0}}),yt}},29128:function(Ct){var Rt={left:0,top:0};Ct.exports=o;function o(xt,et,Et){et=et||xt.currentTarget||xt.srcElement,Array.isArray(Et)||(Et=[0,0]);var mt=xt.clientX||0,ut=xt.clientY||0,ht=it(et);return Et[0]=mt-ht.left,Et[1]=ut-ht.top,Et}function it(xt){return xt===window||xt===document||xt===document.body?Rt:xt.getBoundingClientRect()}},93784:function(Ct,Rt){function o(Et){if(typeof Et=="object"){if("buttons"in Et)return Et.buttons;if("which"in Et){var mt=Et.which;if(mt===2)return 4;if(mt===3)return 2;if(mt>0)return 1<=0)return 1<2){for(var At=Array(kt.position.length*.5),Ot=0;Ot2){for(var Dt=!kt.position[0].length,Nt=j.mallocFloat(this.count*2),$t=0,Ut=0;$t1?wt.align[Nr]:wt.align[0]:wt.align;if(typeof Qr=="number")return Qr;switch(Qr){case"right":case"end":return-kr;case"center":case"centre":case"middle":return-kr*.5}return 0})),this.baseline==null&&kt.baseline==null&&(kt.baseline=0),kt.baseline!=null&&(this.baseline=kt.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(kr,Nr){var Qr=(wt.font[Nr]||wt.font[0]).metrics,sn=0;return sn+=Qr.bottom*.5,typeof kr=="number"?sn+=kr-Qr.baseline:sn+=-Qr[kr],sn*=-1,sn})),kt.color!=null)if(kt.color||(kt.color="transparent"),typeof kt.color=="string"||!isNaN(kt.color))this.color=ut(kt.color,"uint8");else{var Ar;if(typeof kt.color[0]=="number"&&kt.color.length>this.counts.length){var br=kt.color.length;Ar=j.mallocUint8(br);for(var Ir=(kt.color.subarray||kt.color.slice).bind(kt.color),Tr=0;Tr4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(Rr){var zr=Math.max(this.position.length*.5||0,this.color.length*.25||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,this.positionOffset.length*.5||0);this.batch=Array(zr);for(var Or=0;Or1?this.counts[Or]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[Or]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(Or*4,Or*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[Or]:this.opacity,baseline:this.baselineOffset[Or]!=null?this.baselineOffset[Or]:this.baselineOffset[0],align:this.align?this.alignOffset[Or]!=null?this.alignOffset[Or]:this.alignOffset[0]:0,atlas:this.fontAtlas[Or]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(Or*2,Or*2+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]}},_t.prototype.destroy=function(){},_t.prototype.kerning=!0,_t.prototype.position={constant:new Float32Array(2)},_t.prototype.translate=null,_t.prototype.scale=null,_t.prototype.font=null,_t.prototype.text="",_t.prototype.positionOffset=[0,0],_t.prototype.opacity=1,_t.prototype.color=new Uint8Array([0,0,0,255]),_t.prototype.alignOffset=[0,0],_t.maxAtlasSize=1024,_t.atlasCanvas=document.createElement("canvas"),_t.atlasContext=_t.atlasCanvas.getContext("2d",{alpha:!1}),_t.baseFontSize=64,_t.fonts={};function Mt(Et){return typeof Et=="function"&&Et._gl&&Et.prop&&Et.texture&&Et.buffer}Ct.exports=_t},55212:function(Ct,Rt,o){var it=o(55616);Ct.exports=function(j){if(j?typeof j=="string"&&(j={container:j}):j={},et(j)?j={container:j}:Tt(j)?j={container:j}:yt(j)?j={gl:j}:j=it(j,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0),j.pixelRatio||(j.pixelRatio=o.g.pixelRatio||1),j.gl)return j.gl;if(j.canvas&&(j.container=j.canvas.parentNode),j.container){if(typeof j.container=="string"){var _=document.querySelector(j.container);if(!_)throw Error("Element "+j.container+" is not found");j.container=_}et(j.container)?(j.canvas=j.container,j.container=j.canvas.parentNode):j.canvas||(j.canvas=ut(),j.container.appendChild(j.canvas),xt(j))}else if(!j.canvas)if(typeof document<"u")j.container=document.body||document.documentElement,j.canvas=ut(),j.container.appendChild(j.canvas),xt(j);else throw Error("Not DOM environment. Use headless-gl.");return j.gl||["webgl","experimental-webgl","webgl-experimental"].some(function(rt){try{j.gl=j.canvas.getContext(rt,j.attrs)}catch{}return j.gl}),j.gl};function xt(ht){if(ht.container)if(ht.container==document.body)document.body.style.width||(ht.canvas.width=ht.width||ht.pixelRatio*o.g.innerWidth),document.body.style.height||(ht.canvas.height=ht.height||ht.pixelRatio*o.g.innerHeight);else{var j=ht.container.getBoundingClientRect();ht.canvas.width=ht.width||j.right-j.left,ht.canvas.height=ht.height||j.bottom-j.top}}function et(ht){return typeof ht.getContext=="function"&&"width"in ht&&"height"in ht}function Tt(ht){return typeof ht.nodeName=="string"&&typeof ht.appendChild=="function"&&typeof ht.getBoundingClientRect=="function"}function yt(ht){return typeof ht.drawArrays=="function"||typeof ht.drawElements=="function"}function ut(){var ht=document.createElement("canvas");return ht.style.position="absolute",ht.style.top=0,ht.style.left=0,ht}},26444:function(Ct){Ct.exports=function(Rt){typeof Rt=="string"&&(Rt=[Rt]);for(var o=[].slice.call(arguments,1),it=[],xt=0;xt */Rt.read=function(o,it,xt,et,Tt){var yt,ut,ht=Tt*8-et-1,j=(1<>1,rt=-7,tt=xt?Tt-1:0,st=xt?-1:1,ot=o[it+tt];for(tt+=st,yt=ot&(1<<-rt)-1,ot>>=-rt,rt+=ht;rt>0;yt=yt*256+o[it+tt],tt+=st,rt-=8);for(ut=yt&(1<<-rt)-1,yt>>=-rt,rt+=et;rt>0;ut=ut*256+o[it+tt],tt+=st,rt-=8);if(yt===0)yt=1-_;else{if(yt===j)return ut?NaN:(ot?-1:1)*(1/0);ut=ut+Math.pow(2,et),yt=yt-_}return(ot?-1:1)*ut*Math.pow(2,yt-et)},Rt.write=function(o,it,xt,et,Tt,yt){var ut,ht,j,_=yt*8-Tt-1,rt=(1<<_)-1,tt=rt>>1,st=Tt===23?Math.pow(2,-24)-Math.pow(2,-77):0,ot=et?0:yt-1,nt=et?1:-1,vt=it<0||it===0&&1/it<0?1:0;for(it=Math.abs(it),isNaN(it)||it===1/0?(ht=isNaN(it)?1:0,ut=rt):(ut=Math.floor(Math.log(it)/Math.LN2),it*(j=Math.pow(2,-ut))<1&&(ut--,j*=2),ut+tt>=1?it+=st/j:it+=st*Math.pow(2,1-tt),it*j>=2&&(ut++,j/=2),ut+tt>=rt?(ht=0,ut=rt):ut+tt>=1?(ht=(it*j-1)*Math.pow(2,Tt),ut=ut+tt):(ht=it*Math.pow(2,tt-1)*Math.pow(2,Tt),ut=0));Tt>=8;o[xt+ot]=ht&255,ot+=nt,ht/=256,Tt-=8);for(ut=ut<0;o[xt+ot]=ut&255,ot+=nt,ut/=256,_-=8);o[xt+ot-nt]|=vt*128}},6768:function(Ct){typeof Object.create=="function"?Ct.exports=function(o,it){it&&(o.super_=it,o.prototype=Object.create(it.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}))}:Ct.exports=function(o,it){if(it){o.super_=it;var xt=function(){};xt.prototype=it.prototype,o.prototype=new xt,o.prototype.constructor=o}}},91148:function(Ct,Rt,o){var it=o(46672)(),xt=o(99676),et=xt("Object.prototype.toString"),Tt=function(j){return it&&j&&typeof j=="object"&&Symbol.toStringTag in j?!1:et(j)==="[object Arguments]"},yt=function(j){return Tt(j)?!0:j!==null&&typeof j=="object"&&typeof j.length=="number"&&j.length>=0&&et(j)!=="[object Array]"&&et(j.callee)==="[object Function]"},ut=function(){return Tt(arguments)}();Tt.isLegacyArguments=yt,Ct.exports=ut?Tt:yt},24200:function(Ct){Ct.exports=!0},90720:function(Ct){var Rt=Function.prototype.toString,o=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,it,xt;if(typeof o=="function"&&typeof Object.defineProperty=="function")try{it=Object.defineProperty({},"length",{get:function(){throw xt}}),xt={},o(function(){throw 42},null,it)}catch(bt){bt!==xt&&(o=null)}else o=null;var et=/^\s*class\b/,Tt=function(ft){try{var at=Rt.call(ft);return et.test(at)}catch{return!1}},yt=function(ft){try{return Tt(ft)?!1:(Rt.call(ft),!0)}catch{return!1}},ut=Object.prototype.toString,ht="[object Object]",j="[object Function]",_="[object GeneratorFunction]",rt="[object HTMLAllCollection]",tt="[object HTML document.all class]",st="[object HTMLCollection]",ot=typeof Symbol=="function"&&!!Symbol.toStringTag,nt=!(0 in[,]),vt=function(){return!1};if(typeof document=="object"){var dt=document.all;ut.call(dt)===ut.call(document.all)&&(vt=function(ft){if((nt||!ft)&&(typeof ft>"u"||typeof ft=="object"))try{var at=ut.call(ft);return(at===rt||at===tt||at===st||at===ht)&&ft("")==null}catch{}return!1})}Ct.exports=o?function(ft){if(vt(ft))return!0;if(!ft||typeof ft!="function"&&typeof ft!="object")return!1;try{o(ft,null,it)}catch(at){if(at!==xt)return!1}return!Tt(ft)&&yt(ft)}:function(ft){if(vt(ft))return!0;if(!ft||typeof ft!="function"&&typeof ft!="object")return!1;if(ot)return yt(ft);if(Tt(ft))return!1;var at=ut.call(ft);return at!==j&&at!==_&&!/^\[object HTML/.test(at)?!1:yt(ft)}},84420:function(Ct,Rt,o){var it=Object.prototype.toString,xt=Function.prototype.toString,et=/^\s*(?:function)?\*/,Tt=o(46672)(),yt=Object.getPrototypeOf,ut=function(){if(!Tt)return!1;try{return Function("return function*() {}")()}catch{}},ht;Ct.exports=function(_){if(typeof _!="function")return!1;if(et.test(xt.call(_)))return!0;if(!Tt){var rt=it.call(_);return rt==="[object GeneratorFunction]"}if(!yt)return!1;if(typeof ht>"u"){var tt=ut();ht=tt?yt(tt):!1}return yt(_)===ht}},96604:function(Ct){Ct.exports=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))},85992:function(Ct){Ct.exports=function(o){return o!==o}},1560:function(Ct,Rt,o){var it=o(57916),xt=o(81288),et=o(85992),Tt=o(57740),yt=o(59736),ut=it(Tt(),Number);xt(ut,{getPolyfill:Tt,implementation:et,shim:yt}),Ct.exports=ut},57740:function(Ct,Rt,o){var it=o(85992);Ct.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:it}},59736:function(Ct,Rt,o){var it=o(81288),xt=o(57740);Ct.exports=function(){var Tt=xt();return it(Number,{isNaN:Tt},{isNaN:function(){return Number.isNaN!==Tt}}),Tt}},18400:function(Ct){Ct.exports=function(Rt){var o=typeof Rt;return Rt!==null&&(o==="object"||o==="function")}},58908:function(Ct){var Rt=Object.prototype.toString;Ct.exports=function(o){var it;return Rt.call(o)==="[object Object]"&&(it=Object.getPrototypeOf(o),it===null||it===Object.getPrototypeOf({}))}},94576:function(Ct){Ct.exports=function(Rt){for(var o=Rt.length,it,xt=0;xt13)&&it!==32&&it!==133&&it!==160&&it!==5760&&it!==6158&&(it<8192||it>8205)&&it!==8232&&it!==8233&&it!==8239&&it!==8287&&it!==8288&&it!==12288&&it!==65279)return!1;return!0}},53520:function(Ct){Ct.exports=function(o){return typeof o!="string"?!1:(o=o.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(o)&&/[\dz]$/i.test(o)&&o.length>4))}},7728:function(Ct,Rt,o){var it=o(46492),xt=o(63436),et=o(99676),Tt=et("Object.prototype.toString"),yt=o(46672)(),ut=o(2304),ht=typeof globalThis>"u"?o.g:globalThis,j=xt(),_=et("Array.prototype.indexOf",!0)||function(vt,dt){for(var bt=0;bt-1}return ut?ot(vt):!1}},76244:function(Ct){Ct.exports=Math.log2||function(Rt){return Math.log(Rt)*Math.LOG2E}},62644:function(Ct,Rt,o){Ct.exports=xt;var it=o(93784);function xt(et,Tt){Tt||(Tt=et,et=window);var yt=0,ut=0,ht=0,j={shift:!1,alt:!1,control:!1,meta:!1},_=!1;function rt(St){var _t=!1;return"altKey"in St&&(_t=_t||St.altKey!==j.alt,j.alt=!!St.altKey),"shiftKey"in St&&(_t=_t||St.shiftKey!==j.shift,j.shift=!!St.shiftKey),"ctrlKey"in St&&(_t=_t||St.ctrlKey!==j.control,j.control=!!St.ctrlKey),"metaKey"in St&&(_t=_t||St.metaKey!==j.meta,j.meta=!!St.metaKey),_t}function tt(St,_t){var Mt=it.x(_t),Et=it.y(_t);"buttons"in _t&&(St=_t.buttons|0),(St!==yt||Mt!==ut||Et!==ht||rt(_t))&&(yt=St|0,ut=Mt||0,ht=Et||0,Tt&&Tt(yt,ut,ht,j))}function st(St){tt(0,St)}function ot(){(yt||ut||ht||j.shift||j.alt||j.meta||j.control)&&(ut=ht=0,yt=0,j.shift=j.alt=j.control=j.meta=!1,Tt&&Tt(0,0,0,j))}function nt(St){rt(St)&&Tt&&Tt(yt,ut,ht,j)}function vt(St){it.buttons(St)===0?tt(0,St):tt(yt,St)}function dt(St){tt(yt|it.buttons(St),St)}function bt(St){tt(yt&~it.buttons(St),St)}function ft(){_||(_=!0,et.addEventListener("mousemove",vt),et.addEventListener("mousedown",dt),et.addEventListener("mouseup",bt),et.addEventListener("mouseleave",st),et.addEventListener("mouseenter",st),et.addEventListener("mouseout",st),et.addEventListener("mouseover",st),et.addEventListener("blur",ot),et.addEventListener("keyup",nt),et.addEventListener("keydown",nt),et.addEventListener("keypress",nt),et!==window&&(window.addEventListener("blur",ot),window.addEventListener("keyup",nt),window.addEventListener("keydown",nt),window.addEventListener("keypress",nt)))}function at(){_&&(_=!1,et.removeEventListener("mousemove",vt),et.removeEventListener("mousedown",dt),et.removeEventListener("mouseup",bt),et.removeEventListener("mouseleave",st),et.removeEventListener("mouseenter",st),et.removeEventListener("mouseout",st),et.removeEventListener("mouseover",st),et.removeEventListener("blur",ot),et.removeEventListener("keyup",nt),et.removeEventListener("keydown",nt),et.removeEventListener("keypress",nt),et!==window&&(window.removeEventListener("blur",ot),window.removeEventListener("keyup",nt),window.removeEventListener("keydown",nt),window.removeEventListener("keypress",nt)))}ft();var mt={element:et};return Object.defineProperties(mt,{enabled:{get:function(){return _},set:function(St){St?ft():at()},enumerable:!0},buttons:{get:function(){return yt},enumerable:!0},x:{get:function(){return ut},enumerable:!0},y:{get:function(){return ht},enumerable:!0},mods:{get:function(){return j},enumerable:!0}}),mt}},29128:function(Ct){var Rt={left:0,top:0};Ct.exports=o;function o(xt,et,Tt){et=et||xt.currentTarget||xt.srcElement,Array.isArray(Tt)||(Tt=[0,0]);var yt=xt.clientX||0,ut=xt.clientY||0,ht=it(et);return Tt[0]=yt-ht.left,Tt[1]=ut-ht.top,Tt}function it(xt){return xt===window||xt===document||xt===document.body?Rt:xt.getBoundingClientRect()}},93784:function(Ct,Rt){function o(Tt){if(typeof Tt=="object"){if("buttons"in Tt)return Tt.buttons;if("which"in Tt){var yt=Tt.which;if(yt===2)return 4;if(yt===3)return 2;if(yt>0)return 1<=0)return 1<0&&j(rt,St))}catch(_t){ot.call(new vt(St),_t)}}}function ot(at){var yt=this;yt.triggered||(yt.triggered=!0,yt.def&&(yt=yt.def),yt.msg=at,yt.state=2,yt.chain.length>0&&j(rt,yt))}function nt(at,yt,St,_t){for(var Mt=0;Mt7&&(_.push(yt.splice(0,7)),yt.unshift("C"));break;case"S":var _t=dt,Mt=bt;(j=="C"||j=="S")&&(_t+=_t-rt,Mt+=Mt-tt),yt=["C",_t,Mt,yt[1],yt[2],yt[3],yt[4]];break;case"T":j=="Q"||j=="T"?(nt=dt*2-nt,vt=bt*2-vt):(nt=dt,vt=bt),yt=et(dt,bt,nt,vt,yt[1],yt[2]);break;case"Q":nt=yt[1],vt=yt[2],yt=et(dt,bt,yt[1],yt[2],yt[3],yt[4]);break;case"L":yt=xt(dt,bt,yt[1],yt[2]);break;case"H":yt=xt(dt,bt,yt[1],bt);break;case"V":yt=xt(dt,bt,dt,yt[1]);break;case"Z":yt=xt(dt,bt,st,ot);break}j=St,dt=yt[yt.length-2],bt=yt[yt.length-1],yt.length>4?(rt=yt[yt.length-4],tt=yt[yt.length-3]):(rt=dt,tt=bt),_.push(yt)}return _}function xt(ht,j,_,rt){return["C",ht,j,_,rt,_,rt]}function et(ht,j,_,rt,tt,st){return["C",ht/3+.6666666666666666*_,j/3+.6666666666666666*rt,tt/3+.6666666666666666*_,st/3+.6666666666666666*rt,tt,st]}function Et(ht,j,_,rt,tt,st,ot,nt,vt,dt){if(dt)wt=dt[0],ct=dt[1],Tt=dt[2],kt=dt[3];else{var bt=mt(ht,j,-tt);ht=bt.x,j=bt.y,bt=mt(nt,vt,-tt),nt=bt.x,vt=bt.y;var ft=(ht-nt)/2,at=(j-vt)/2,yt=ft*ft/(_*_)+at*at/(rt*rt);yt>1&&(yt=Math.sqrt(yt),_=yt*_,rt=yt*rt);var St=_*_,_t=rt*rt,Mt=(st==ot?-1:1)*Math.sqrt(Math.abs((St*_t-St*at*at-_t*ft*ft)/(St*at*at+_t*ft*ft)));Mt==1/0&&(Mt=1);var Tt=Mt*_*at/rt+(ht+nt)/2,kt=Mt*-rt*ft/_+(j+vt)/2,wt=Math.asin(((j-kt)/rt).toFixed(9)),ct=Math.asin(((vt-kt)/rt).toFixed(9));wt=htct&&(wt=wt-Rt*2),!ot&&ct>wt&&(ct=ct-Rt*2)}if(Math.abs(ct-wt)>o){var It=ct,At=nt,Ot=vt;ct=wt+o*(ot&&ct>wt?1:-1),nt=Tt+_*Math.cos(ct),vt=kt+rt*Math.sin(ct);var Pt=Et(nt,vt,_,rt,tt,0,ot,At,Ot,[ct,It,Tt,kt])}var zt=Math.tan((ct-wt)/4),Dt=4/3*_*zt,Nt=4/3*rt*zt,$t=[2*ht-(ht+Dt*Math.sin(wt)),2*j-(j-Nt*Math.cos(wt)),nt+Dt*Math.sin(ct),vt-Nt*Math.cos(ct),nt,vt];if(dt)return $t;Pt&&($t=$t.concat(Pt));for(var Ut=0;Ut<$t.length;){var Ht=mt($t[Ut],$t[Ut+1],tt);$t[Ut++]=Ht.x,$t[Ut++]=Ht.y}return $t}function mt(ht,j,_){return{x:ht*Math.cos(_)-j*Math.sin(_),y:ht*Math.sin(_)+j*Math.cos(_)}}function ut(ht){return ht*(Rt/180)}},50896:function(Ct){/* +*/(function(et,Tt,yt){Tt[et]=Tt[et]||yt(),Ct.exports?Ct.exports=Tt[et]:(it=function(){return Tt[et]}.call(Rt,o,Rt,Ct),it!==void 0&&(Ct.exports=it))})("Promise",typeof o.g<"u"?o.g:this,function(){var et,Tt,yt,ut=Object.prototype.toString,ht=typeof setImmediate<"u"?function(mt){return setImmediate(mt)}:setTimeout;try{Object.defineProperty({},"x",{}),et=function(mt,St,_t,Mt){return Object.defineProperty(mt,St,{value:_t,writable:!0,configurable:Mt!==!1})}}catch{et=function(St,_t,Mt){return St[_t]=Mt,St}}yt=function(){var mt,St,_t;function Mt(Et,kt){this.fn=Et,this.self=kt,this.next=void 0}return{add:function(kt,wt){_t=new Mt(kt,wt),St?St.next=_t:mt=_t,St=_t,_t=void 0},drain:function(){var kt=mt;for(mt=St=Tt=void 0;kt;)kt.fn.call(kt.self),kt=kt.next}}}();function j(at,mt){yt.add(at,mt),Tt||(Tt=ht(yt.drain))}function _(at){var mt,St=typeof at;return at!=null&&(St=="object"||St=="function")&&(mt=at.then),typeof mt=="function"?mt:!1}function rt(){for(var at=0;at0&&j(rt,St))}catch(_t){ot.call(new vt(St),_t)}}}function ot(at){var mt=this;mt.triggered||(mt.triggered=!0,mt.def&&(mt=mt.def),mt.msg=at,mt.state=2,mt.chain.length>0&&j(rt,mt))}function nt(at,mt,St,_t){for(var Mt=0;Mt7&&(_.push(mt.splice(0,7)),mt.unshift("C"));break;case"S":var _t=dt,Mt=bt;(j=="C"||j=="S")&&(_t+=_t-rt,Mt+=Mt-tt),mt=["C",_t,Mt,mt[1],mt[2],mt[3],mt[4]];break;case"T":j=="Q"||j=="T"?(nt=dt*2-nt,vt=bt*2-vt):(nt=dt,vt=bt),mt=et(dt,bt,nt,vt,mt[1],mt[2]);break;case"Q":nt=mt[1],vt=mt[2],mt=et(dt,bt,mt[1],mt[2],mt[3],mt[4]);break;case"L":mt=xt(dt,bt,mt[1],mt[2]);break;case"H":mt=xt(dt,bt,mt[1],bt);break;case"V":mt=xt(dt,bt,dt,mt[1]);break;case"Z":mt=xt(dt,bt,st,ot);break}j=St,dt=mt[mt.length-2],bt=mt[mt.length-1],mt.length>4?(rt=mt[mt.length-4],tt=mt[mt.length-3]):(rt=dt,tt=bt),_.push(mt)}return _}function xt(ht,j,_,rt){return["C",ht,j,_,rt,_,rt]}function et(ht,j,_,rt,tt,st){return["C",ht/3+.6666666666666666*_,j/3+.6666666666666666*rt,tt/3+.6666666666666666*_,st/3+.6666666666666666*rt,tt,st]}function Tt(ht,j,_,rt,tt,st,ot,nt,vt,dt){if(dt)wt=dt[0],ct=dt[1],Et=dt[2],kt=dt[3];else{var bt=yt(ht,j,-tt);ht=bt.x,j=bt.y,bt=yt(nt,vt,-tt),nt=bt.x,vt=bt.y;var ft=(ht-nt)/2,at=(j-vt)/2,mt=ft*ft/(_*_)+at*at/(rt*rt);mt>1&&(mt=Math.sqrt(mt),_=mt*_,rt=mt*rt);var St=_*_,_t=rt*rt,Mt=(st==ot?-1:1)*Math.sqrt(Math.abs((St*_t-St*at*at-_t*ft*ft)/(St*at*at+_t*ft*ft)));Mt==1/0&&(Mt=1);var Et=Mt*_*at/rt+(ht+nt)/2,kt=Mt*-rt*ft/_+(j+vt)/2,wt=Math.asin(((j-kt)/rt).toFixed(9)),ct=Math.asin(((vt-kt)/rt).toFixed(9));wt=htct&&(wt=wt-Rt*2),!ot&&ct>wt&&(ct=ct-Rt*2)}if(Math.abs(ct-wt)>o){var It=ct,At=nt,Ot=vt;ct=wt+o*(ot&&ct>wt?1:-1),nt=Et+_*Math.cos(ct),vt=kt+rt*Math.sin(ct);var Pt=Tt(nt,vt,_,rt,tt,0,ot,At,Ot,[ct,It,Et,kt])}var zt=Math.tan((ct-wt)/4),Dt=4/3*_*zt,Nt=4/3*rt*zt,$t=[2*ht-(ht+Dt*Math.sin(wt)),2*j-(j-Nt*Math.cos(wt)),nt+Dt*Math.sin(ct),vt-Nt*Math.cos(ct),nt,vt];if(dt)return $t;Pt&&($t=$t.concat(Pt));for(var Ut=0;Ut<$t.length;){var Ht=yt($t[Ut],$t[Ut+1],tt);$t[Ut++]=Ht.x,$t[Ut++]=Ht.y}return $t}function yt(ht,j,_){return{x:ht*Math.cos(_)-j*Math.sin(_),y:ht*Math.sin(_)+j*Math.cos(_)}}function ut(ht){return ht*(Rt/180)}},50896:function(Ct){/* object-assign (c) Sindre Sorhus @license MIT -*/var Rt=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable;function xt(Et){if(Et==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(Et)}function et(){try{if(!Object.assign)return!1;var Et=new String("abc");if(Et[5]="de",Object.getOwnPropertyNames(Et)[0]==="5")return!1;for(var mt={},ut=0;ut<10;ut++)mt["_"+String.fromCharCode(ut)]=ut;var ht=Object.getOwnPropertyNames(mt).map(function(_){return mt[_]});if(ht.join("")!=="0123456789")return!1;var j={};return"abcdefghijklmnopqrst".split("").forEach(function(_){j[_]=_}),Object.keys(Object.assign({},j)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}Ct.exports=et()?Object.assign:function(Et,mt){for(var ut,ht=xt(Et),j,_=1;_"u")return!1;for(var ot in window)try{if(!rt["$"+ot]&&xt.call(window,ot)&&window[ot]!==null&&typeof window[ot]=="object")try{_(window[ot])}catch{return!0}}catch{return!0}return!1}(),st=function(ot){if(typeof window>"u"||!tt)return _(ot);try{return _(ot)}catch{return!1}};it=function(nt){var vt=nt!==null&&typeof nt=="object",dt=et.call(nt)==="[object Function]",bt=Et(nt),ft=vt&&et.call(nt)==="[object String]",at=[];if(!vt&&!dt&&!bt)throw new TypeError("Object.keys called on a non-object");var yt=ht&&dt;if(ft&&nt.length>0&&!xt.call(nt,0))for(var St=0;St0)for(var _t=0;_t=0&&Rt.call(it.callee)==="[object Function]"),et}},32868:function(Ct){function Rt(xt,et){if(typeof xt!="string")return[xt];var Et=[xt];typeof et=="string"||Array.isArray(et)?et={brackets:et}:et||(et={});var mt=et.brackets?Array.isArray(et.brackets)?et.brackets:[et.brackets]:["{}","[]","()"],ut=et.escape||"___",ht=!!et.flat;mt.forEach(function(rt){var tt=new RegExp(["\\",rt[0],"[^\\",rt[0],"\\",rt[1],"]*\\",rt[1]].join("")),st=[];function ot(nt,vt,dt){var bt=Et.push(nt.slice(rt[0].length,-rt[1].length))-1;return st.push(bt),ut+bt+ut}Et.forEach(function(nt,vt){for(var dt,bt=0;nt!=dt;)if(dt=nt,nt=nt.replace(tt,ot),bt++>1e4)throw Error("References have circular dependency. Please, check them.");Et[vt]=nt}),st=st.reverse(),Et=Et.map(function(nt){return st.forEach(function(vt){nt=nt.replace(new RegExp("(\\"+ut+vt+"\\"+ut+")","g"),rt[0]+"$1"+rt[1])}),nt})});var j=new RegExp("\\"+ut+"([0-9]+)\\"+ut);function _(rt,tt,st){for(var ot=[],nt,vt=0;nt=j.exec(rt);){if(vt++>1e4)throw Error("Circular references in parenthesis");ot.push(rt.slice(0,nt.index)),ot.push(_(tt[nt[1]],tt)),rt=rt.slice(nt.index+nt[0].length)}return ot.push(rt),ot}return ht?Et:_(Et[0],Et)}function o(xt,et){if(et&&et.flat){var Et=et&&et.escape||"___",mt=xt[0],ut;if(!mt)return"";for(var ht=new RegExp("\\"+Et+"([0-9]+)\\"+Et),j=0;mt!=ut;){if(j++>1e4)throw Error("Circular references in "+xt);ut=mt,mt=mt.replace(ht,_)}return mt}return xt.reduce(function rt(tt,st){return Array.isArray(st)&&(st=st.reduce(rt,"")),tt+st},"");function _(rt,tt){if(xt[tt]==null)throw Error("Reference "+tt+"is undefined");return xt[tt]}}function it(xt,et){return Array.isArray(xt)?o(xt,et):Rt(xt,et)}it.parse=Rt,it.stringify=o,Ct.exports=it},51160:function(Ct,Rt,o){var it=o(55616);Ct.exports=xt;function xt(et){var Et;return arguments.length>1&&(et=arguments),typeof et=="string"?et=et.split(/\s/).map(parseFloat):typeof et=="number"&&(et=[et]),et.length&&typeof et[0]=="number"?et.length===1?Et={width:et[0],height:et[0],x:0,y:0}:et.length===2?Et={width:et[0],height:et[1],x:0,y:0}:Et={x:et[0],y:et[1],width:et[2]-et[0]||0,height:et[3]-et[1]||0}:et&&(et=it(et,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),Et={x:et.left||0,y:et.top||0},et.width==null?et.right?Et.width=et.right-Et.x:Et.width=0:Et.width=et.width,et.height==null?et.bottom?Et.height=et.bottom-Et.y:Et.height=0:Et.height=et.height),Et}},21984:function(Ct){Ct.exports=it;var Rt={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},o=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function it(Et){var mt=[];return Et.replace(o,function(ut,ht,j){var _=ht.toLowerCase();for(j=et(j),_=="m"&&j.length>2&&(mt.push([ht].concat(j.splice(0,2))),_="l",ht=ht=="m"?"l":"L");;){if(j.length==Rt[_])return j.unshift(ht),mt.push(j);if(j.lengthmt!=ot>mt&&Et<(st-rt)*(mt-tt)/(ot-tt)+rt;nt&&(ut=!ut)}return ut}},14756:function(Ct,Rt,o){/* +*/var Rt=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable;function xt(Tt){if(Tt==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(Tt)}function et(){try{if(!Object.assign)return!1;var Tt=new String("abc");if(Tt[5]="de",Object.getOwnPropertyNames(Tt)[0]==="5")return!1;for(var yt={},ut=0;ut<10;ut++)yt["_"+String.fromCharCode(ut)]=ut;var ht=Object.getOwnPropertyNames(yt).map(function(_){return yt[_]});if(ht.join("")!=="0123456789")return!1;var j={};return"abcdefghijklmnopqrst".split("").forEach(function(_){j[_]=_}),Object.keys(Object.assign({},j)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}Ct.exports=et()?Object.assign:function(Tt,yt){for(var ut,ht=xt(Tt),j,_=1;_"u")return!1;for(var ot in window)try{if(!rt["$"+ot]&&xt.call(window,ot)&&window[ot]!==null&&typeof window[ot]=="object")try{_(window[ot])}catch{return!0}}catch{return!0}return!1}(),st=function(ot){if(typeof window>"u"||!tt)return _(ot);try{return _(ot)}catch{return!1}};it=function(nt){var vt=nt!==null&&typeof nt=="object",dt=et.call(nt)==="[object Function]",bt=Tt(nt),ft=vt&&et.call(nt)==="[object String]",at=[];if(!vt&&!dt&&!bt)throw new TypeError("Object.keys called on a non-object");var mt=ht&&dt;if(ft&&nt.length>0&&!xt.call(nt,0))for(var St=0;St0)for(var _t=0;_t=0&&Rt.call(it.callee)==="[object Function]"),et}},32868:function(Ct){function Rt(xt,et){if(typeof xt!="string")return[xt];var Tt=[xt];typeof et=="string"||Array.isArray(et)?et={brackets:et}:et||(et={});var yt=et.brackets?Array.isArray(et.brackets)?et.brackets:[et.brackets]:["{}","[]","()"],ut=et.escape||"___",ht=!!et.flat;yt.forEach(function(rt){var tt=new RegExp(["\\",rt[0],"[^\\",rt[0],"\\",rt[1],"]*\\",rt[1]].join("")),st=[];function ot(nt,vt,dt){var bt=Tt.push(nt.slice(rt[0].length,-rt[1].length))-1;return st.push(bt),ut+bt+ut}Tt.forEach(function(nt,vt){for(var dt,bt=0;nt!=dt;)if(dt=nt,nt=nt.replace(tt,ot),bt++>1e4)throw Error("References have circular dependency. Please, check them.");Tt[vt]=nt}),st=st.reverse(),Tt=Tt.map(function(nt){return st.forEach(function(vt){nt=nt.replace(new RegExp("(\\"+ut+vt+"\\"+ut+")","g"),rt[0]+"$1"+rt[1])}),nt})});var j=new RegExp("\\"+ut+"([0-9]+)\\"+ut);function _(rt,tt,st){for(var ot=[],nt,vt=0;nt=j.exec(rt);){if(vt++>1e4)throw Error("Circular references in parenthesis");ot.push(rt.slice(0,nt.index)),ot.push(_(tt[nt[1]],tt)),rt=rt.slice(nt.index+nt[0].length)}return ot.push(rt),ot}return ht?Tt:_(Tt[0],Tt)}function o(xt,et){if(et&&et.flat){var Tt=et&&et.escape||"___",yt=xt[0],ut;if(!yt)return"";for(var ht=new RegExp("\\"+Tt+"([0-9]+)\\"+Tt),j=0;yt!=ut;){if(j++>1e4)throw Error("Circular references in "+xt);ut=yt,yt=yt.replace(ht,_)}return yt}return xt.reduce(function rt(tt,st){return Array.isArray(st)&&(st=st.reduce(rt,"")),tt+st},"");function _(rt,tt){if(xt[tt]==null)throw Error("Reference "+tt+"is undefined");return xt[tt]}}function it(xt,et){return Array.isArray(xt)?o(xt,et):Rt(xt,et)}it.parse=Rt,it.stringify=o,Ct.exports=it},51160:function(Ct,Rt,o){var it=o(55616);Ct.exports=xt;function xt(et){var Tt;return arguments.length>1&&(et=arguments),typeof et=="string"?et=et.split(/\s/).map(parseFloat):typeof et=="number"&&(et=[et]),et.length&&typeof et[0]=="number"?et.length===1?Tt={width:et[0],height:et[0],x:0,y:0}:et.length===2?Tt={width:et[0],height:et[1],x:0,y:0}:Tt={x:et[0],y:et[1],width:et[2]-et[0]||0,height:et[3]-et[1]||0}:et&&(et=it(et,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),Tt={x:et.left||0,y:et.top||0},et.width==null?et.right?Tt.width=et.right-Tt.x:Tt.width=0:Tt.width=et.width,et.height==null?et.bottom?Tt.height=et.bottom-Tt.y:Tt.height=0:Tt.height=et.height),Tt}},21984:function(Ct){Ct.exports=it;var Rt={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},o=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function it(Tt){var yt=[];return Tt.replace(o,function(ut,ht,j){var _=ht.toLowerCase();for(j=et(j),_=="m"&&j.length>2&&(yt.push([ht].concat(j.splice(0,2))),_="l",ht=ht=="m"?"l":"L");;){if(j.length==Rt[_])return j.unshift(ht),yt.push(j);if(j.lengthyt!=ot>yt&&Tt<(st-rt)*(yt-tt)/(ot-tt)+rt;nt&&(ut=!ut)}return ut}},14756:function(Ct,Rt,o){/* * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc * @license MIT * @preserve Project Home: https://github.com/voidqk/polybooljs - */var it=o(7688),xt=o(28648),et=o(72200),Et=o(11403),mt=o(82368),ut=o(17792),ht=!1,j=xt(),_;_={buildLog:function(tt){return tt===!0?ht=it():tt===!1&&(ht=!1),ht===!1?!1:ht.list},epsilon:function(tt){return j.epsilon(tt)},segments:function(tt){var st=et(!0,j,ht);return tt.regions.forEach(st.addRegion),{segments:st.calculate(tt.inverted),inverted:tt.inverted}},combine:function(tt,st){var ot=et(!1,j,ht);return{combined:ot.calculate(tt.segments,tt.inverted,st.segments,st.inverted),inverted1:tt.inverted,inverted2:st.inverted}},selectUnion:function(tt){return{segments:mt.union(tt.combined,ht),inverted:tt.inverted1||tt.inverted2}},selectIntersect:function(tt){return{segments:mt.intersect(tt.combined,ht),inverted:tt.inverted1&&tt.inverted2}},selectDifference:function(tt){return{segments:mt.difference(tt.combined,ht),inverted:tt.inverted1&&!tt.inverted2}},selectDifferenceRev:function(tt){return{segments:mt.differenceRev(tt.combined,ht),inverted:!tt.inverted1&&tt.inverted2}},selectXor:function(tt){return{segments:mt.xor(tt.combined,ht),inverted:tt.inverted1!==tt.inverted2}},polygon:function(tt){return{regions:Et(tt.segments,j,ht),inverted:tt.inverted}},polygonFromGeoJSON:function(tt){return ut.toPolygon(_,tt)},polygonToGeoJSON:function(tt){return ut.fromPolygon(_,j,tt)},union:function(tt,st){return rt(tt,st,_.selectUnion)},intersect:function(tt,st){return rt(tt,st,_.selectIntersect)},difference:function(tt,st){return rt(tt,st,_.selectDifference)},differenceRev:function(tt,st){return rt(tt,st,_.selectDifferenceRev)},xor:function(tt,st){return rt(tt,st,_.selectXor)}};function rt(tt,st,ot){var nt=_.segments(tt),vt=_.segments(st),dt=_.combine(nt,vt),bt=ot(dt);return _.polygon(bt)}typeof window=="object"&&(window.PolyBool=_),Ct.exports=_},7688:function(Ct){function Rt(){var o,it=0,xt=!1;function et(Et,mt){return o.list.push({type:Et,data:mt?JSON.parse(JSON.stringify(mt)):void 0}),o}return o={list:[],segmentId:function(){return it++},checkIntersection:function(Et,mt){return et("check",{seg1:Et,seg2:mt})},segmentChop:function(Et,mt){return et("div_seg",{seg:Et,pt:mt}),et("chop",{seg:Et,pt:mt})},statusRemove:function(Et){return et("pop_seg",{seg:Et})},segmentUpdate:function(Et){return et("seg_update",{seg:Et})},segmentNew:function(Et,mt){return et("new_seg",{seg:Et,primary:mt})},segmentRemove:function(Et){return et("rem_seg",{seg:Et})},tempStatus:function(Et,mt,ut){return et("temp_status",{seg:Et,above:mt,below:ut})},rewind:function(Et){return et("rewind",{seg:Et})},status:function(Et,mt,ut){return et("status",{seg:Et,above:mt,below:ut})},vert:function(Et){return Et===xt?o:(xt=Et,et("vert",{x:Et}))},log:function(Et){return typeof Et!="string"&&(Et=JSON.stringify(Et,!1," ")),et("log",{txt:Et})},reset:function(){return et("reset")},selected:function(Et){return et("selected",{segs:Et})},chainStart:function(Et){return et("chain_start",{seg:Et})},chainRemoveHead:function(Et,mt){return et("chain_rem_head",{index:Et,pt:mt})},chainRemoveTail:function(Et,mt){return et("chain_rem_tail",{index:Et,pt:mt})},chainNew:function(Et,mt){return et("chain_new",{pt1:Et,pt2:mt})},chainMatch:function(Et){return et("chain_match",{index:Et})},chainClose:function(Et){return et("chain_close",{index:Et})},chainAddHead:function(Et,mt){return et("chain_add_head",{index:Et,pt:mt})},chainAddTail:function(Et,mt){return et("chain_add_tail",{index:Et,pt:mt})},chainConnect:function(Et,mt){return et("chain_con",{index1:Et,index2:mt})},chainReverse:function(Et){return et("chain_rev",{index:Et})},chainJoin:function(Et,mt){return et("chain_join",{index1:Et,index2:mt})},done:function(){return et("done")}},o}Ct.exports=Rt},28648:function(Ct){function Rt(o){typeof o!="number"&&(o=1e-10);var it={epsilon:function(xt){return typeof xt=="number"&&(o=xt),o},pointAboveOrOnLine:function(xt,et,Et){var mt=et[0],ut=et[1],ht=Et[0],j=Et[1],_=xt[0],rt=xt[1];return(ht-mt)*(rt-ut)-(j-ut)*(_-mt)>=-o},pointBetween:function(xt,et,Et){var mt=xt[1]-et[1],ut=Et[0]-et[0],ht=xt[0]-et[0],j=Et[1]-et[1],_=ht*ut+mt*j;if(_-o)},pointsSameX:function(xt,et){return Math.abs(xt[0]-et[0])o!=ht-mt>o&&(ut-rt)*(mt-tt)/(ht-tt)+rt-Et>o&&(j=!j),ut=rt,ht=tt}return j}};return it}Ct.exports=Rt},17792:function(Ct){var Rt={toPolygon:function(o,it){function xt(mt){if(mt.length<=0)return o.segments({inverted:!1,regions:[]});function ut(_){var rt=_.slice(0,_.length-1);return o.segments({inverted:!1,regions:[rt]})}for(var ht=ut(mt[0]),j=1;j0})}function _t(Nt,$t){var Ut=Nt.seg,Ht=$t.seg,Vt=Ut.start,Xt=Ut.end,qt=Ht.start,er=Ht.end;mt&&mt.checkIntersection(Ut,Ht);var lr=Et.linesIntersect(Vt,Xt,qt,er);if(lr===!1){if(!Et.pointsCollinear(Vt,Xt,qt)||Et.pointsSame(Vt,er)||Et.pointsSame(Xt,qt))return!1;var Jt=Et.pointsSame(Vt,qt),Yt=Et.pointsSame(Xt,er);if(Jt&&Yt)return $t;var rr=!Jt&&Et.pointBetween(Vt,qt,er),jt=!Yt&&Et.pointBetween(Xt,qt,er);if(Jt)return jt?vt($t,Xt):vt(Nt,er),$t;rr&&(Yt||(jt?vt($t,Xt):vt(Nt,er)),vt($t,Vt))}else lr.alongA===0&&(lr.alongB===-1?vt(Nt,qt):lr.alongB===0?vt(Nt,lr.pt):lr.alongB===1&&vt(Nt,er)),lr.alongB===0&&(lr.alongA===-1?vt($t,Vt):lr.alongA===0?vt($t,lr.pt):lr.alongA===1&&vt($t,Xt));return!1}for(var Mt=[];!j.isEmpty();){var Tt=j.getHead();if(mt&&mt.vert(Tt.pt[0]),Tt.isStart){let Nt=function(){if(wt){var $t=_t(Tt,wt);if($t)return $t}return ct?_t(Tt,ct):!1};var Dt=Nt;mt&&mt.segmentNew(Tt.seg,Tt.primary);var kt=St(Tt),wt=kt.before?kt.before.ev:null,ct=kt.after?kt.after.ev:null;mt&&mt.tempStatus(Tt.seg,wt?wt.seg:!1,ct?ct.seg:!1);var It=Nt();if(It){if(et){var At;Tt.seg.myFill.below===null?At=!0:At=Tt.seg.myFill.above!==Tt.seg.myFill.below,At&&(It.seg.myFill.above=!It.seg.myFill.above)}else It.seg.otherFill=Tt.seg.myFill;mt&&mt.segmentUpdate(It.seg),Tt.other.remove(),Tt.remove()}if(j.getHead()!==Tt){mt&&mt.rewind(Tt.seg);continue}if(et){var At;Tt.seg.myFill.below===null?At=!0:At=Tt.seg.myFill.above!==Tt.seg.myFill.below,ct?Tt.seg.myFill.below=ct.seg.myFill.above:Tt.seg.myFill.below=bt,At?Tt.seg.myFill.above=!Tt.seg.myFill.below:Tt.seg.myFill.above=Tt.seg.myFill.below}else if(Tt.seg.otherFill===null){var Ot;ct?Tt.primary===ct.primary?Ot=ct.seg.otherFill.above:Ot=ct.seg.myFill.above:Ot=Tt.primary?ft:bt,Tt.seg.otherFill={above:Ot,below:Ot}}mt&&mt.status(Tt.seg,wt?wt.seg:!1,ct?ct.seg:!1),Tt.other.status=kt.insert(it.node({ev:Tt}))}else{var Pt=Tt.status;if(Pt===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(at.exists(Pt.prev)&&at.exists(Pt.next)&&_t(Pt.prev.ev,Pt.next.ev),mt&&mt.statusRemove(Pt.ev.seg),Pt.remove(),!Tt.primary){var zt=Tt.seg.myFill;Tt.seg.myFill=Tt.seg.otherFill,Tt.seg.otherFill=zt}Mt.push(Tt.seg)}j.getHead().remove()}return mt&&mt.done(),Mt}return et?{addRegion:function(bt){for(var ft,at=bt[bt.length-1],yt=0;yt0&&!this.aborted;){var Et=this.ifds_to_read.shift();Et.offset&&this.scan_ifd(Et.id,Et.offset,xt)}},it.prototype.read_uint16=function(xt){var et=this.input;if(xt+2>et.length)throw Rt("unexpected EOF","EBADDATA");return this.big_endian?et[xt]*256+et[xt+1]:et[xt]+et[xt+1]*256},it.prototype.read_uint32=function(xt){var et=this.input;if(xt+4>et.length)throw Rt("unexpected EOF","EBADDATA");return this.big_endian?et[xt]*16777216+et[xt+1]*65536+et[xt+2]*256+et[xt+3]:et[xt]+et[xt+1]*256+et[xt+2]*65536+et[xt+3]*16777216},it.prototype.is_subifd_link=function(xt,et){return xt===0&&et===34665||xt===0&&et===34853||xt===34665&&et===40965},it.prototype.exif_format_length=function(xt){switch(xt){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}},it.prototype.exif_format_read=function(xt,et){var Et;switch(xt){case 1:case 2:return Et=this.input[et],Et;case 6:return Et=this.input[et],Et|(Et&128)*33554430;case 3:return Et=this.read_uint16(et),Et;case 8:return Et=this.read_uint16(et),Et|(Et&32768)*131070;case 4:return Et=this.read_uint32(et),Et;case 9:return Et=this.read_uint32(et),Et|0;case 5:case 10:case 11:case 12:return null;case 7:return null;default:return null}},it.prototype.scan_ifd=function(xt,et,Et){var mt=this.read_uint16(et);et+=2;for(var ut=0;utthis.input.length)throw Rt("unexpected EOF","EBADDATA");for(var nt=[],vt=st,dt=0;dt<_;dt++,vt+=rt){var bt=this.exif_format_read(j,vt);if(bt===null){nt=null;break}nt.push(bt)}Array.isArray(nt)&&j===2&&(nt=o(String.fromCharCode.apply(null,nt)),nt&&nt[nt.length-1]==="\0"&&(nt=nt.slice(0,-1))),this.is_subifd_link(xt,ht)&&Array.isArray(nt)&&Number.isInteger(nt[0])&&nt[0]>0&&(this.ifds_to_read.push({id:ht,offset:nt[0]}),ot=!0);var ft={is_big_endian:this.big_endian,ifd:xt,tag:ht,format:j,count:_,entry_offset:et+this.start,data_length:tt,data_offset:st+this.start,value:nt,is_subifd_link:ot};if(Et(ft)===!1){this.aborted=!0;return}et+=12}xt===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(et)})},Ct.exports.ExifParser=it,Ct.exports.get_orientation=function(xt){var et=0;try{return new it(xt,0,xt.length).each(function(Et){if(Et.ifd===0&&Et.tag===274&&Array.isArray(Et.value))return et=Et.value[0],!1}),et}catch{return-1}}},44600:function(Ct,Rt,o){var it=o(9696).eW,xt=o(9696).eI;function et(tt,st){if(tt.length<4+st)return null;var ot=xt(tt,st);return tt.length>4&15,nt=tt[4]&15,vt=tt[5]>>4&15,dt=it(tt,6),bt=8,ft=0;ftdt.width||vt.width===dt.width&&vt.height>dt.height?vt:dt}),ot=tt.reduce(function(vt,dt){return vt.height>dt.height||vt.height===dt.height&&vt.width>dt.width?vt:dt}),nt;return st.width>ot.height||st.width===ot.height&&st.height>ot.width?nt=st:nt=ot,nt}Ct.exports.readSizeFromMeta=function(tt){var st={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(_(tt,st),!!st.sizes.length){var ot=rt(st.sizes),nt=1;st.transforms.forEach(function(dt){var bt={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},ft={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(dt.type==="imir"&&(dt.value===0?nt=ft[nt]:(nt=ft[nt],nt=bt[nt],nt=bt[nt])),dt.type==="irot")for(var at=0;at1&&(nt.variants=ot.variants),ot.orientation&&(nt.orientation=ot.orientation),ot.exif_location&&ot.exif_location.offset+ot.exif_location.length<=ht.length){var vt=et(ht,ot.exif_location.offset),dt=ht.slice(ot.exif_location.offset+vt+4,ot.exif_location.offset+ot.exif_location.length),bt=mt.get_orientation(dt);bt>0&&(nt.orientation=bt)}return nt}}}}}}},38728:function(Ct,Rt,o){var it=o(9696).wR,xt=o(9696).gS,et=o(9696).Bz,Et=it("BM");Ct.exports=function(mt){if(!(mt.length<26)&&xt(mt,0,Et))return{width:et(mt,18),height:et(mt,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}},5588:function(Ct,Rt,o){var it=o(9696).wR,xt=o(9696).gS,et=o(9696).Bz,Et=it("GIF87a"),mt=it("GIF89a");Ct.exports=function(ut){if(!(ut.length<10)&&!(!xt(ut,0,Et)&&!xt(ut,0,mt)))return{width:et(ut,6),height:et(ut,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}},41924:function(Ct,Rt,o){var it=o(9696).Bz,xt=0,et=1,Et=16;Ct.exports=function(mt){var ut=it(mt,0),ht=it(mt,2),j=it(mt,4);if(!(ut!==xt||ht!==et||!j)){for(var _=[],rt={width:0,height:0},tt=0;ttrt.width||ot>rt.height)&&(rt=nt)}return{width:rt.width,height:rt.height,variants:_,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}},87968:function(Ct,Rt,o){var it=o(9696).eW,xt=o(9696).wR,et=o(9696).gS,Et=o(11688),mt=xt("Exif\0\0");Ct.exports=function(ut){if(!(ut.length<2)&&!(ut[0]!==255||ut[1]!==216||ut[2]!==255))for(var ht=2;;){for(;;){if(ut.length-ht<2)return;if(ut[ht++]===255)break}for(var j=ut[ht++],_;j===255;)j=ut[ht++];if(208<=j&&j<=217||j===1)_=0;else if(192<=j&&j<=254){if(ut.length-ht<2)return;_=it(ut,ht)-2,ht+=2}else return;if(j===217||j===218)return;var rt;if(j===225&&_>=10&&et(ut,ht,mt)&&(rt=Et.get_orientation(ut.slice(ht+6,ht+_))),_>=5&&192<=j&&j<=207&&j!==196&&j!==200&&j!==204){if(ut.length-ht<_)return;var tt={width:it(ut,ht+3),height:it(ut,ht+1),type:"jpg",mime:"image/jpeg",wUnits:"px",hUnits:"px"};return rt>0&&(tt.orientation=rt),tt}ht+=_}}},37276:function(Ct,Rt,o){var it=o(9696).wR,xt=o(9696).gS,et=o(9696).eI,Et=it(`‰PNG\r + */var it=o(7688),xt=o(28648),et=o(72200),Tt=o(11403),yt=o(82368),ut=o(17792),ht=!1,j=xt(),_;_={buildLog:function(tt){return tt===!0?ht=it():tt===!1&&(ht=!1),ht===!1?!1:ht.list},epsilon:function(tt){return j.epsilon(tt)},segments:function(tt){var st=et(!0,j,ht);return tt.regions.forEach(st.addRegion),{segments:st.calculate(tt.inverted),inverted:tt.inverted}},combine:function(tt,st){var ot=et(!1,j,ht);return{combined:ot.calculate(tt.segments,tt.inverted,st.segments,st.inverted),inverted1:tt.inverted,inverted2:st.inverted}},selectUnion:function(tt){return{segments:yt.union(tt.combined,ht),inverted:tt.inverted1||tt.inverted2}},selectIntersect:function(tt){return{segments:yt.intersect(tt.combined,ht),inverted:tt.inverted1&&tt.inverted2}},selectDifference:function(tt){return{segments:yt.difference(tt.combined,ht),inverted:tt.inverted1&&!tt.inverted2}},selectDifferenceRev:function(tt){return{segments:yt.differenceRev(tt.combined,ht),inverted:!tt.inverted1&&tt.inverted2}},selectXor:function(tt){return{segments:yt.xor(tt.combined,ht),inverted:tt.inverted1!==tt.inverted2}},polygon:function(tt){return{regions:Tt(tt.segments,j,ht),inverted:tt.inverted}},polygonFromGeoJSON:function(tt){return ut.toPolygon(_,tt)},polygonToGeoJSON:function(tt){return ut.fromPolygon(_,j,tt)},union:function(tt,st){return rt(tt,st,_.selectUnion)},intersect:function(tt,st){return rt(tt,st,_.selectIntersect)},difference:function(tt,st){return rt(tt,st,_.selectDifference)},differenceRev:function(tt,st){return rt(tt,st,_.selectDifferenceRev)},xor:function(tt,st){return rt(tt,st,_.selectXor)}};function rt(tt,st,ot){var nt=_.segments(tt),vt=_.segments(st),dt=_.combine(nt,vt),bt=ot(dt);return _.polygon(bt)}typeof window=="object"&&(window.PolyBool=_),Ct.exports=_},7688:function(Ct){function Rt(){var o,it=0,xt=!1;function et(Tt,yt){return o.list.push({type:Tt,data:yt?JSON.parse(JSON.stringify(yt)):void 0}),o}return o={list:[],segmentId:function(){return it++},checkIntersection:function(Tt,yt){return et("check",{seg1:Tt,seg2:yt})},segmentChop:function(Tt,yt){return et("div_seg",{seg:Tt,pt:yt}),et("chop",{seg:Tt,pt:yt})},statusRemove:function(Tt){return et("pop_seg",{seg:Tt})},segmentUpdate:function(Tt){return et("seg_update",{seg:Tt})},segmentNew:function(Tt,yt){return et("new_seg",{seg:Tt,primary:yt})},segmentRemove:function(Tt){return et("rem_seg",{seg:Tt})},tempStatus:function(Tt,yt,ut){return et("temp_status",{seg:Tt,above:yt,below:ut})},rewind:function(Tt){return et("rewind",{seg:Tt})},status:function(Tt,yt,ut){return et("status",{seg:Tt,above:yt,below:ut})},vert:function(Tt){return Tt===xt?o:(xt=Tt,et("vert",{x:Tt}))},log:function(Tt){return typeof Tt!="string"&&(Tt=JSON.stringify(Tt,!1," ")),et("log",{txt:Tt})},reset:function(){return et("reset")},selected:function(Tt){return et("selected",{segs:Tt})},chainStart:function(Tt){return et("chain_start",{seg:Tt})},chainRemoveHead:function(Tt,yt){return et("chain_rem_head",{index:Tt,pt:yt})},chainRemoveTail:function(Tt,yt){return et("chain_rem_tail",{index:Tt,pt:yt})},chainNew:function(Tt,yt){return et("chain_new",{pt1:Tt,pt2:yt})},chainMatch:function(Tt){return et("chain_match",{index:Tt})},chainClose:function(Tt){return et("chain_close",{index:Tt})},chainAddHead:function(Tt,yt){return et("chain_add_head",{index:Tt,pt:yt})},chainAddTail:function(Tt,yt){return et("chain_add_tail",{index:Tt,pt:yt})},chainConnect:function(Tt,yt){return et("chain_con",{index1:Tt,index2:yt})},chainReverse:function(Tt){return et("chain_rev",{index:Tt})},chainJoin:function(Tt,yt){return et("chain_join",{index1:Tt,index2:yt})},done:function(){return et("done")}},o}Ct.exports=Rt},28648:function(Ct){function Rt(o){typeof o!="number"&&(o=1e-10);var it={epsilon:function(xt){return typeof xt=="number"&&(o=xt),o},pointAboveOrOnLine:function(xt,et,Tt){var yt=et[0],ut=et[1],ht=Tt[0],j=Tt[1],_=xt[0],rt=xt[1];return(ht-yt)*(rt-ut)-(j-ut)*(_-yt)>=-o},pointBetween:function(xt,et,Tt){var yt=xt[1]-et[1],ut=Tt[0]-et[0],ht=xt[0]-et[0],j=Tt[1]-et[1],_=ht*ut+yt*j;if(_-o)},pointsSameX:function(xt,et){return Math.abs(xt[0]-et[0])o!=ht-yt>o&&(ut-rt)*(yt-tt)/(ht-tt)+rt-Tt>o&&(j=!j),ut=rt,ht=tt}return j}};return it}Ct.exports=Rt},17792:function(Ct){var Rt={toPolygon:function(o,it){function xt(yt){if(yt.length<=0)return o.segments({inverted:!1,regions:[]});function ut(_){var rt=_.slice(0,_.length-1);return o.segments({inverted:!1,regions:[rt]})}for(var ht=ut(yt[0]),j=1;j0})}function _t(Nt,$t){var Ut=Nt.seg,Ht=$t.seg,Vt=Ut.start,Xt=Ut.end,qt=Ht.start,er=Ht.end;yt&&yt.checkIntersection(Ut,Ht);var lr=Tt.linesIntersect(Vt,Xt,qt,er);if(lr===!1){if(!Tt.pointsCollinear(Vt,Xt,qt)||Tt.pointsSame(Vt,er)||Tt.pointsSame(Xt,qt))return!1;var Jt=Tt.pointsSame(Vt,qt),Yt=Tt.pointsSame(Xt,er);if(Jt&&Yt)return $t;var rr=!Jt&&Tt.pointBetween(Vt,qt,er),jt=!Yt&&Tt.pointBetween(Xt,qt,er);if(Jt)return jt?vt($t,Xt):vt(Nt,er),$t;rr&&(Yt||(jt?vt($t,Xt):vt(Nt,er)),vt($t,Vt))}else lr.alongA===0&&(lr.alongB===-1?vt(Nt,qt):lr.alongB===0?vt(Nt,lr.pt):lr.alongB===1&&vt(Nt,er)),lr.alongB===0&&(lr.alongA===-1?vt($t,Vt):lr.alongA===0?vt($t,lr.pt):lr.alongA===1&&vt($t,Xt));return!1}for(var Mt=[];!j.isEmpty();){var Et=j.getHead();if(yt&&yt.vert(Et.pt[0]),Et.isStart){let Nt=function(){if(wt){var $t=_t(Et,wt);if($t)return $t}return ct?_t(Et,ct):!1};var Dt=Nt;yt&&yt.segmentNew(Et.seg,Et.primary);var kt=St(Et),wt=kt.before?kt.before.ev:null,ct=kt.after?kt.after.ev:null;yt&&yt.tempStatus(Et.seg,wt?wt.seg:!1,ct?ct.seg:!1);var It=Nt();if(It){if(et){var At;Et.seg.myFill.below===null?At=!0:At=Et.seg.myFill.above!==Et.seg.myFill.below,At&&(It.seg.myFill.above=!It.seg.myFill.above)}else It.seg.otherFill=Et.seg.myFill;yt&&yt.segmentUpdate(It.seg),Et.other.remove(),Et.remove()}if(j.getHead()!==Et){yt&&yt.rewind(Et.seg);continue}if(et){var At;Et.seg.myFill.below===null?At=!0:At=Et.seg.myFill.above!==Et.seg.myFill.below,ct?Et.seg.myFill.below=ct.seg.myFill.above:Et.seg.myFill.below=bt,At?Et.seg.myFill.above=!Et.seg.myFill.below:Et.seg.myFill.above=Et.seg.myFill.below}else if(Et.seg.otherFill===null){var Ot;ct?Et.primary===ct.primary?Ot=ct.seg.otherFill.above:Ot=ct.seg.myFill.above:Ot=Et.primary?ft:bt,Et.seg.otherFill={above:Ot,below:Ot}}yt&&yt.status(Et.seg,wt?wt.seg:!1,ct?ct.seg:!1),Et.other.status=kt.insert(it.node({ev:Et}))}else{var Pt=Et.status;if(Pt===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(at.exists(Pt.prev)&&at.exists(Pt.next)&&_t(Pt.prev.ev,Pt.next.ev),yt&&yt.statusRemove(Pt.ev.seg),Pt.remove(),!Et.primary){var zt=Et.seg.myFill;Et.seg.myFill=Et.seg.otherFill,Et.seg.otherFill=zt}Mt.push(Et.seg)}j.getHead().remove()}return yt&&yt.done(),Mt}return et?{addRegion:function(bt){for(var ft,at=bt[bt.length-1],mt=0;mt0&&!this.aborted;){var Tt=this.ifds_to_read.shift();Tt.offset&&this.scan_ifd(Tt.id,Tt.offset,xt)}},it.prototype.read_uint16=function(xt){var et=this.input;if(xt+2>et.length)throw Rt("unexpected EOF","EBADDATA");return this.big_endian?et[xt]*256+et[xt+1]:et[xt]+et[xt+1]*256},it.prototype.read_uint32=function(xt){var et=this.input;if(xt+4>et.length)throw Rt("unexpected EOF","EBADDATA");return this.big_endian?et[xt]*16777216+et[xt+1]*65536+et[xt+2]*256+et[xt+3]:et[xt]+et[xt+1]*256+et[xt+2]*65536+et[xt+3]*16777216},it.prototype.is_subifd_link=function(xt,et){return xt===0&&et===34665||xt===0&&et===34853||xt===34665&&et===40965},it.prototype.exif_format_length=function(xt){switch(xt){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}},it.prototype.exif_format_read=function(xt,et){var Tt;switch(xt){case 1:case 2:return Tt=this.input[et],Tt;case 6:return Tt=this.input[et],Tt|(Tt&128)*33554430;case 3:return Tt=this.read_uint16(et),Tt;case 8:return Tt=this.read_uint16(et),Tt|(Tt&32768)*131070;case 4:return Tt=this.read_uint32(et),Tt;case 9:return Tt=this.read_uint32(et),Tt|0;case 5:case 10:case 11:case 12:return null;case 7:return null;default:return null}},it.prototype.scan_ifd=function(xt,et,Tt){var yt=this.read_uint16(et);et+=2;for(var ut=0;utthis.input.length)throw Rt("unexpected EOF","EBADDATA");for(var nt=[],vt=st,dt=0;dt<_;dt++,vt+=rt){var bt=this.exif_format_read(j,vt);if(bt===null){nt=null;break}nt.push(bt)}Array.isArray(nt)&&j===2&&(nt=o(String.fromCharCode.apply(null,nt)),nt&&nt[nt.length-1]==="\0"&&(nt=nt.slice(0,-1))),this.is_subifd_link(xt,ht)&&Array.isArray(nt)&&Number.isInteger(nt[0])&&nt[0]>0&&(this.ifds_to_read.push({id:ht,offset:nt[0]}),ot=!0);var ft={is_big_endian:this.big_endian,ifd:xt,tag:ht,format:j,count:_,entry_offset:et+this.start,data_length:tt,data_offset:st+this.start,value:nt,is_subifd_link:ot};if(Tt(ft)===!1){this.aborted=!0;return}et+=12}xt===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(et)})},Ct.exports.ExifParser=it,Ct.exports.get_orientation=function(xt){var et=0;try{return new it(xt,0,xt.length).each(function(Tt){if(Tt.ifd===0&&Tt.tag===274&&Array.isArray(Tt.value))return et=Tt.value[0],!1}),et}catch{return-1}}},44600:function(Ct,Rt,o){var it=o(9696).eW,xt=o(9696).eI;function et(tt,st){if(tt.length<4+st)return null;var ot=xt(tt,st);return tt.length>4&15,nt=tt[4]&15,vt=tt[5]>>4&15,dt=it(tt,6),bt=8,ft=0;ftdt.width||vt.width===dt.width&&vt.height>dt.height?vt:dt}),ot=tt.reduce(function(vt,dt){return vt.height>dt.height||vt.height===dt.height&&vt.width>dt.width?vt:dt}),nt;return st.width>ot.height||st.width===ot.height&&st.height>ot.width?nt=st:nt=ot,nt}Ct.exports.readSizeFromMeta=function(tt){var st={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(_(tt,st),!!st.sizes.length){var ot=rt(st.sizes),nt=1;st.transforms.forEach(function(dt){var bt={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},ft={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(dt.type==="imir"&&(dt.value===0?nt=ft[nt]:(nt=ft[nt],nt=bt[nt],nt=bt[nt])),dt.type==="irot")for(var at=0;at1&&(nt.variants=ot.variants),ot.orientation&&(nt.orientation=ot.orientation),ot.exif_location&&ot.exif_location.offset+ot.exif_location.length<=ht.length){var vt=et(ht,ot.exif_location.offset),dt=ht.slice(ot.exif_location.offset+vt+4,ot.exif_location.offset+ot.exif_location.length),bt=yt.get_orientation(dt);bt>0&&(nt.orientation=bt)}return nt}}}}}}},38728:function(Ct,Rt,o){var it=o(9696).wR,xt=o(9696).gS,et=o(9696).Bz,Tt=it("BM");Ct.exports=function(yt){if(!(yt.length<26)&&xt(yt,0,Tt))return{width:et(yt,18),height:et(yt,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}},5588:function(Ct,Rt,o){var it=o(9696).wR,xt=o(9696).gS,et=o(9696).Bz,Tt=it("GIF87a"),yt=it("GIF89a");Ct.exports=function(ut){if(!(ut.length<10)&&!(!xt(ut,0,Tt)&&!xt(ut,0,yt)))return{width:et(ut,6),height:et(ut,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}},41924:function(Ct,Rt,o){var it=o(9696).Bz,xt=0,et=1,Tt=16;Ct.exports=function(yt){var ut=it(yt,0),ht=it(yt,2),j=it(yt,4);if(!(ut!==xt||ht!==et||!j)){for(var _=[],rt={width:0,height:0},tt=0;ttrt.width||ot>rt.height)&&(rt=nt)}return{width:rt.width,height:rt.height,variants:_,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}},87968:function(Ct,Rt,o){var it=o(9696).eW,xt=o(9696).wR,et=o(9696).gS,Tt=o(11688),yt=xt("Exif\0\0");Ct.exports=function(ut){if(!(ut.length<2)&&!(ut[0]!==255||ut[1]!==216||ut[2]!==255))for(var ht=2;;){for(;;){if(ut.length-ht<2)return;if(ut[ht++]===255)break}for(var j=ut[ht++],_;j===255;)j=ut[ht++];if(208<=j&&j<=217||j===1)_=0;else if(192<=j&&j<=254){if(ut.length-ht<2)return;_=it(ut,ht)-2,ht+=2}else return;if(j===217||j===218)return;var rt;if(j===225&&_>=10&&et(ut,ht,yt)&&(rt=Tt.get_orientation(ut.slice(ht+6,ht+_))),_>=5&&192<=j&&j<=207&&j!==196&&j!==200&&j!==204){if(ut.length-ht<_)return;var tt={width:it(ut,ht+3),height:it(ut,ht+1),type:"jpg",mime:"image/jpeg",wUnits:"px",hUnits:"px"};return rt>0&&(tt.orientation=rt),tt}ht+=_}}},37276:function(Ct,Rt,o){var it=o(9696).wR,xt=o(9696).gS,et=o(9696).eI,Tt=it(`‰PNG\r  -`),mt=it("IHDR");Ct.exports=function(ut){if(!(ut.length<24)&&xt(ut,0,Et)&&xt(ut,12,mt))return{width:et(ut,16),height:et(ut,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}},90328:function(Ct,Rt,o){var it=o(9696).wR,xt=o(9696).gS,et=o(9696).eI,Et=it("8BPS\0");Ct.exports=function(mt){if(!(mt.length<22)&&xt(mt,0,Et))return{width:et(mt,18),height:et(mt,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}},16024:function(Ct){function Rt(rt){return rt===32||rt===9||rt===13||rt===10}function o(rt){return typeof rt=="number"&&isFinite(rt)&&rt>0}function it(rt){var tt=0,st=rt.length;for(rt[0]===239&&rt[1]===187&&rt[2]===191&&(tt=3);tt]*>/,et=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,Et=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,mt=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,ut=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,ht=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function j(rt){var tt=rt.match(Et),st=rt.match(mt),ot=rt.match(ut);return{width:tt&&(tt[1]||tt[2]),height:st&&(st[1]||st[2]),viewbox:ot&&(ot[1]||ot[2])}}function _(rt){return ht.test(rt)?rt.match(ht)[0]:"px"}Ct.exports=function(rt){if(it(rt)){for(var tt="",st=0;st>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function rt(tt,st){return{width:(tt[st+6]<<16|tt[st+5]<<8|tt[st+4])+1,height:(tt[st+9]<tt.length)){for(;st+8=10?ot=ot||j(tt,st+8):dt==="VP8L"&&bt>=9?ot=ot||_(tt,st+8):dt==="VP8X"&&bt>=10?ot=ot||rt(tt,st+8):dt==="EXIF"&&(nt=mt.get_orientation(tt.slice(st+8,st+8+bt)),st=1/0),st+=8+bt}if(ot)return nt>0&&(ot.orientation=nt),ot}}}},87480:function(Ct,Rt,o){Ct.exports={avif:o(40528),bmp:o(38728),gif:o(5588),ico:o(41924),jpeg:o(87968),png:o(37276),psd:o(90328),svg:o(16024),tiff:o(98792),webp:o(20704)}},19480:function(Ct,Rt,o){var it=o(87480);function xt(et){for(var Et=Object.keys(it),mt=0;mt1)for(var dt=1;dt"u"?o.g:window,et=["moz","webkit"],Et="AnimationFrame",mt=xt["request"+Et],ut=xt["cancel"+Et]||xt["cancelRequest"+Et],ht=0;!mt&&ht0}function it(rt){var tt=0,st=rt.length;for(rt[0]===239&&rt[1]===187&&rt[2]===191&&(tt=3);tt]*>/,et=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,Tt=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,yt=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,ut=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,ht=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function j(rt){var tt=rt.match(Tt),st=rt.match(yt),ot=rt.match(ut);return{width:tt&&(tt[1]||tt[2]),height:st&&(st[1]||st[2]),viewbox:ot&&(ot[1]||ot[2])}}function _(rt){return ht.test(rt)?rt.match(ht)[0]:"px"}Ct.exports=function(rt){if(it(rt)){for(var tt="",st=0;st>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function rt(tt,st){return{width:(tt[st+6]<<16|tt[st+5]<<8|tt[st+4])+1,height:(tt[st+9]<tt.length)){for(;st+8=10?ot=ot||j(tt,st+8):dt==="VP8L"&&bt>=9?ot=ot||_(tt,st+8):dt==="VP8X"&&bt>=10?ot=ot||rt(tt,st+8):dt==="EXIF"&&(nt=yt.get_orientation(tt.slice(st+8,st+8+bt)),st=1/0),st+=8+bt}if(ot)return nt>0&&(ot.orientation=nt),ot}}}},87480:function(Ct,Rt,o){Ct.exports={avif:o(40528),bmp:o(38728),gif:o(5588),ico:o(41924),jpeg:o(87968),png:o(37276),psd:o(90328),svg:o(16024),tiff:o(98792),webp:o(20704)}},19480:function(Ct,Rt,o){var it=o(87480);function xt(et){for(var Tt=Object.keys(it),yt=0;yt1)for(var dt=1;dt"u"?o.g:window,et=["moz","webkit"],Tt="AnimationFrame",yt=xt["request"+Tt],ut=xt["cancel"+Tt]||xt["cancelRequest"+Tt],ht=0;!yt&&ht1&&(It.scaleRatio=[It.scale[0]*It.viewport.width,It.scale[1]*It.viewport.height],vt(It),It.after&&It.after(It))}function wt(It){if(It){It.length!=null?typeof It[0]=="number"&&(It=[{positions:It}]):Array.isArray(It)||(It=[It]);var At=0,Ot=0;if(Mt.groups=_t=It.map(function(Ht,Vt){var Xt=_t[Vt];if(Ht)typeof Ht=="function"?Ht={after:Ht}:typeof Ht[0]=="number"&&(Ht={positions:Ht});else return Xt;return Ht=Et(Ht,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),Xt||(_t[Vt]=Xt={id:Vt,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},Ht=mt({},St,Ht)),et(Xt,Ht,[{lineWidth:function(qt){return+qt*.5},capSize:function(qt){return+qt*.5},opacity:parseFloat,errors:function(qt){return qt=ut(qt),Ot+=qt.length,qt},positions:function(qt,er){return qt=ut(qt,"float64"),er.count=Math.floor(qt.length/2),er.bounds=it(qt,2),er.offset=At,At+=er.count,qt}},{color:function(qt,er){var lr=er.count;if(qt||(qt="transparent"),!Array.isArray(qt)||typeof qt[0]=="number"){var Jt=qt;qt=Array(lr);for(var Yt=0;Yt1&&(It.scaleRatio=[It.scale[0]*It.viewport.width,It.scale[1]*It.viewport.height],vt(It),It.after&&It.after(It))}function wt(It){if(It){It.length!=null?typeof It[0]=="number"&&(It=[{positions:It}]):Array.isArray(It)||(It=[It]);var At=0,Ot=0;if(Mt.groups=_t=It.map(function(Ht,Vt){var Xt=_t[Vt];if(Ht)typeof Ht=="function"?Ht={after:Ht}:typeof Ht[0]=="number"&&(Ht={positions:Ht});else return Xt;return Ht=Tt(Ht,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),Xt||(_t[Vt]=Xt={id:Vt,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},Ht=yt({},St,Ht)),et(Xt,Ht,[{lineWidth:function(qt){return+qt*.5},capSize:function(qt){return+qt*.5},opacity:parseFloat,errors:function(qt){return qt=ut(qt),Ot+=qt.length,qt},positions:function(qt,er){return qt=ut(qt,"float64"),er.count=Math.floor(qt.length/2),er.bounds=it(qt,2),er.offset=At,At+=er.count,qt}},{color:function(qt,er){var lr=er.count;if(qt||(qt="transparent"),!Array.isArray(qt)||typeof qt[0]=="number"){var Jt=qt;qt=Array(lr);for(var Yt=0;Yt1&&Tt.opacity&&(St.regl._refresh(),Tt.fill&&Tt.triangles&&Tt.triangles.length>2&&St.shaders.fill(Tt),Tt.thickness&&(Tt.scale[0]*Tt.viewport.width>yt.precisionThreshold||Tt.scale[1]*Tt.viewport.height>yt.precisionThreshold||Tt.join==="rect"||!Tt.join&&(Tt.thickness<=2||Tt.count>=yt.maxPoints)?St.shaders.rect(Tt):St.shaders.miter(Tt)))}),this},yt.prototype.update=function(St){var _t=this;if(St){St.length!=null?typeof St[0]=="number"&&(St=[{positions:St}]):Array.isArray(St)||(St=[St]);var Mt=this,Tt=Mt.regl,kt=Mt.gl;if(St.forEach(function(Ot,Pt){var zt=_t.passes[Pt];if(Ot!==void 0){if(Ot===null){_t.passes[Pt]=null;return}if(typeof Ot[0]=="number"&&(Ot={positions:Ot}),Ot=Et(Ot,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),zt||(_t.passes[Pt]=zt={id:Pt,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:Tt.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:Tt.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:Tt.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:Tt.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},Ot=et({},yt.defaults,Ot)),Ot.thickness!=null&&(zt.thickness=parseFloat(Ot.thickness)),Ot.opacity!=null&&(zt.opacity=parseFloat(Ot.opacity)),Ot.miterLimit!=null&&(zt.miterLimit=parseFloat(Ot.miterLimit)),Ot.overlay!=null&&(zt.overlay=!!Ot.overlay,Pt=Kt});ar=ar.slice(0,or),ar.push(Kt)}for(var tr=function(ur){var xr=Xt.slice(Zt*2,ar[ur]*2).concat(Kt?Xt.slice(Kt*2):[]),Pr=(zt.hole||[]).map(function(en){return en-Kt+(ar[ur]-Zt)}),Vr=ut(xr,Pr);Vr=Vr.map(function(en){return en+Zt+(en+Ztct.length)&&(It=ct.length);for(var At=0,Ot=new Array(It);At1&&Et.opacity&&(St.regl._refresh(),Et.fill&&Et.triangles&&Et.triangles.length>2&&St.shaders.fill(Et),Et.thickness&&(Et.scale[0]*Et.viewport.width>mt.precisionThreshold||Et.scale[1]*Et.viewport.height>mt.precisionThreshold||Et.join==="rect"||!Et.join&&(Et.thickness<=2||Et.count>=mt.maxPoints)?St.shaders.rect(Et):St.shaders.miter(Et)))}),this},mt.prototype.update=function(St){var _t=this;if(St){St.length!=null?typeof St[0]=="number"&&(St=[{positions:St}]):Array.isArray(St)||(St=[St]);var Mt=this,Et=Mt.regl,kt=Mt.gl;if(St.forEach(function(Ot,Pt){var zt=_t.passes[Pt];if(Ot!==void 0){if(Ot===null){_t.passes[Pt]=null;return}if(typeof Ot[0]=="number"&&(Ot={positions:Ot}),Ot=Tt(Ot,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),zt||(_t.passes[Pt]=zt={id:Pt,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:Et.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:Et.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:Et.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:Et.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},Ot=et({},mt.defaults,Ot)),Ot.thickness!=null&&(zt.thickness=parseFloat(Ot.thickness)),Ot.opacity!=null&&(zt.opacity=parseFloat(Ot.opacity)),Ot.miterLimit!=null&&(zt.miterLimit=parseFloat(Ot.miterLimit)),Ot.overlay!=null&&(zt.overlay=!!Ot.overlay,Pt=Kt});ar=ar.slice(0,or),ar.push(Kt)}for(var tr=function(ur){var xr=Xt.slice(Zt*2,ar[ur]*2).concat(Kt?Xt.slice(Kt*2):[]),Pr=(zt.hole||[]).map(function(qr){return qr-Kt+(ar[ur]-Zt)}),Vr=ut(xr,Pr);Vr=Vr.map(function(qr){return qr+Zt+(qr+Ztct.length)&&(It=ct.length);for(var At=0,Ot=new Array(It);AtBr)?Rr.tree=nt(Er,{bounds:un}):Br&&Br.length&&(Rr.tree=Br),Rr.tree){var qr={primitive:"points",usage:"static",data:Rr.tree,type:"uint32"};Rr.elements?Rr.elements(qr):Rr.elements=Dt.elements(qr)}var Xr=St.float32(Er);kr({data:Xr,usage:"dynamic"});var ln=St.fract32(Er,Xr);return Nr({data:ln,usage:"dynamic"}),Qr({data:new Uint8Array(sn),type:"uint8",usage:"stream"}),Er}},{marker:function(Er,Rr,zr){var Br=Rr.activation;if(Br.forEach(function(ln){return ln&&ln.destroy&&ln.destroy()}),Br.length=0,!Er||typeof Er[0]=="number"){var kr=ct.addMarker(Er);Br[kr]=!0}else{for(var Nr=[],Qr=0,sn=Math.min(Er.length,Rr.count);Qr=0)return Pt;var zt;if(ct instanceof Uint8Array||ct instanceof Uint8ClampedArray)zt=ct;else{zt=new Uint8Array(ct.length);for(var Dt=0,Nt=ct.length;DtOt*4&&(this.tooManyColors=!0),this.updatePalette(At),Pt.length===1?Pt[0]:Pt},Tt.prototype.updatePalette=function(ct){if(!this.tooManyColors){var It=this.maxColors,At=this.paletteTexture,Ot=Math.ceil(ct.length*.25/It);if(Ot>1){ct=ct.slice();for(var Pt=ct.length*.25%It;PtOt)&&!(!bt.lower&&At2?(at[0],at[2],vt=at[1],dt=at[3]):at.length?(vt=at[0],dt=at[1]):(at.x,vt=at.y,at.x+at.width,dt=at.y+at.height),yt.length>2?(bt=yt[0],ft=yt[2],yt[1],yt[3]):yt.length?(bt=yt[0],ft=yt[1]):(bt=yt.x,yt.y,ft=yt.x+yt.width,yt.y+yt.height),[bt,vt,ft,dt]}function tt(st){if(typeof st=="number")return[st,st,st,st];if(st.length===2)return[st[0],st[1],st[0],st[1]];var ot=ut(st);return[ot.x,ot.y,ot.x+ot.width,ot.y+ot.height]}},28624:function(Ct){(function(Rt,o){Ct.exports=o()})(this,function(){function Rt(yn,Kn){this.id=cr++,this.type=yn,this.data=Kn}function o(yn){if(yn.length===0)return[];var Kn=yn.charAt(0),Jn=yn.charAt(yn.length-1);if(1"u"?1:window.devicePixelRatio,Ln=!1,Xn={},Wn=function(ga){},Vn=function(){};if(typeof Kn=="string"?Jn=document.querySelector(Kn):typeof Kn=="object"&&(typeof Kn.nodeName=="string"&&typeof Kn.appendChild=="function"&&typeof Kn.getBoundingClientRect=="function"?Jn=Kn:typeof Kn.drawArrays=="function"||typeof Kn.drawElements=="function"?(An=Kn,ba=An.canvas):("gl"in Kn?An=Kn.gl:"canvas"in Kn?ba=ht(Kn.canvas):"container"in Kn&&(so=ht(Kn.container)),"attributes"in Kn&&(yn=Kn.attributes),"extensions"in Kn&&(hn=ut(Kn.extensions)),"optionalExtensions"in Kn&&(wn=ut(Kn.optionalExtensions)),"onDone"in Kn&&(Wn=Kn.onDone),"profile"in Kn&&(Ln=!!Kn.profile),"pixelRatio"in Kn&&(In=+Kn.pixelRatio),"cachedCode"in Kn&&(Xn=Kn.cachedCode))),Jn&&(Jn.nodeName.toLowerCase()==="canvas"?ba=Jn:so=Jn),!An){if(!ba){if(Jn=Et(so||document.body,Wn,In),!Jn)return null;ba=Jn.canvas,Vn=Jn.onDestroy}yn.premultipliedAlpha===void 0&&(yn.premultipliedAlpha=!0),An=mt(ba,yn)}return An?{gl:An,canvas:ba,container:so,extensions:hn,optionalExtensions:wn,pixelRatio:In,profile:Ln,cachedCode:Xn,onDone:Wn,onDestroy:Vn}:(Vn(),Wn("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function _(yn,Kn){function Jn(hn){hn=hn.toLowerCase();var wn;try{wn=so[hn]=yn.getExtension(hn)}catch{}return!!wn}for(var so={},ba=0;ba>>=Kn,Jn=(255>>=Jn,Kn|=Jn,Jn=(15>>=Jn,Kn|=Jn,Jn=(3>>Jn>>1}function st(){function yn(so){e:{for(var ba=16;268435456>=ba;ba*=16)if(so<=ba){so=ba;break e}so=0}return ba=Jn[tt(so)>>2],0>2].push(so)}var Jn=rt(8,function(){return[]});return{alloc:yn,free:Kn,allocType:function(so,ba){var An=null;switch(so){case 5120:An=new Int8Array(yn(ba),0,ba);break;case 5121:An=new Uint8Array(yn(ba),0,ba);break;case 5122:An=new Int16Array(yn(2*ba),0,ba);break;case 5123:An=new Uint16Array(yn(2*ba),0,ba);break;case 5124:An=new Int32Array(yn(4*ba),0,ba);break;case 5125:An=new Uint32Array(yn(4*ba),0,ba);break;case 5126:An=new Float32Array(yn(4*ba),0,ba);break;default:return null}return An.length!==ba?An.subarray(0,ba):An},freeType:function(so){Kn(so.buffer)}}}function ot(yn){return!!yn&&typeof yn=="object"&&Array.isArray(yn.shape)&&Array.isArray(yn.stride)&&typeof yn.offset=="number"&&yn.shape.length===yn.stride.length&&(Array.isArray(yn.data)||_r(yn.data))}function nt(yn,Kn,Jn,so,ba,An){for(var hn=0;hnVn&&(Vn=Wn.buffer.byteLength,Wr===5123?Vn>>=1:Wr===5125&&(Vn>>=2)),Wn.vertCount=Vn,Vn=fo,0>fo&&(Vn=4,fo=Wn.buffer.dimension,fo===1&&(Vn=0),fo===2&&(Vn=1),fo===3&&(Vn=4)),Wn.primType=Vn}function hn(Wn){so.elementsCount--,delete wn[Wn.id],Wn.buffer.destroy(),Wn.buffer=null}var wn={},In=0,Ln={uint8:5121,uint16:5123};Kn.oes_element_index_uint&&(Ln.uint32=5125),ba.prototype.bind=function(){this.buffer.bind()};var Xn=[];return{create:function(Wn,Vn){function ga(po){if(po)if(typeof po=="number")fo(po),qn.primType=4,qn.vertCount=po|0,qn.type=5121;else{var Yr=null,Wr=35044,$n=-1,Bn=-1,xa=0,ro=0;Array.isArray(po)||_r(po)||ot(po)?Yr=po:("data"in po&&(Yr=po.data),"usage"in po&&(Wr=kr[po.usage]),"primitive"in po&&($n=un[po.primitive]),"count"in po&&(Bn=po.count|0),"type"in po&&(ro=Ln[po.type]),"length"in po?xa=po.length|0:(xa=Bn,ro===5123||ro===5122?xa*=2:(ro===5125||ro===5124)&&(xa*=4))),An(qn,Yr,Wr,$n,Bn,xa,ro)}else fo(),qn.primType=4,qn.vertCount=0,qn.type=5121;return ga}var fo=Jn.create(null,34963,!0),qn=new ba(fo._buffer);return so.elementsCount++,ga(Wn),ga._reglType="elements",ga._elements=qn,ga.subdata=function(po,Yr){return fo.subdata(po,Yr),ga},ga.destroy=function(){hn(qn)},ga},createStream:function(Wn){var Vn=Xn.pop();return Vn||(Vn=new ba(Jn.create(null,34963,!0,!1)._buffer)),An(Vn,Wn,35040,-1,-1,0,0),Vn},destroyStream:function(Wn){Xn.push(Wn)},getElements:function(Wn){return typeof Wn=="function"&&Wn._elements instanceof ba?Wn._elements:null},clear:function(){Er(wn).forEach(hn)}}}function St(yn){for(var Kn=Ir.allocType(5123,yn.length),Jn=0;Jn>>31<<15,ba=(An<<1>>>24)-127,An=An>>13&1023;Kn[Jn]=-24>ba?so:-14>ba?so+(An+1024>>-14-ba):15>=Ws,Go.height>>=Ws,Vn(Go,ms[Ws]),xo.mipmask|=1<Vo;++Vo)xo.images[Vo]=null;return xo}function xa(xo){for(var Vo=xo.images,Go=0;Goxo){for(var Vo=0;Vo=--this.refCount&&_o(this)}}),hn.profile&&(An.getTotalTextureSize=function(){var xo=0;return Object.keys(nu).forEach(function(Vo){xo+=nu[Vo].stats.size}),xo}),{create2D:function(xo,Vo){function Go(Ws,ws){var Is=ms.texInfo;ro.call(Is);var Xs=Bn();return typeof Ws=="number"?typeof ws=="number"?Yr(Xs,Ws|0,ws|0):Yr(Xs,Ws|0,Ws|0):Ws?(io(Is,Ws),Wr(Xs,Ws)):Yr(Xs,1,1),Is.genMipmaps&&(Xs.mipmask=(Xs.width<<1)-1),ms.mipmask=Xs.mipmask,In(ms,Xs),ms.internalformat=Xs.internalformat,Go.width=Xs.width,Go.height=Xs.height,ho(ms),$n(Xs,3553),eo(Is,3553),go(),xa(Xs),hn.profile&&(ms.stats.size=At(ms.internalformat,ms.type,Xs.width,Xs.height,Is.genMipmaps,!1)),Go.format=Yo[ms.internalformat],Go.type=Oo[ms.type],Go.mag=ys[Is.magFilter],Go.min=gs[Is.minFilter],Go.wrapS=zs[Is.wrapS],Go.wrapT=zs[Is.wrapT],Go}var ms=new Gn(3553);return nu[ms.id]=ms,An.textureCount++,Go(xo,Vo),Go.subimage=function(Ws,ws,Is,Xs){ws|=0,Is|=0,Xs|=0;var Cl=fo();return In(Cl,ms),Cl.width=0,Cl.height=0,Vn(Cl,Ws),Cl.width=Cl.width||(ms.width>>Xs)-ws,Cl.height=Cl.height||(ms.height>>Xs)-Is,ho(ms),ga(Cl,3553,ws,Is,Xs),go(),qn(Cl),Go},Go.resize=function(Ws,ws){var Is=Ws|0,Xs=ws|0||Is;if(Is===ms.width&&Xs===ms.height)return Go;Go.width=ms.width=Is,Go.height=ms.height=Xs,ho(ms);for(var Cl=0;ms.mipmask>>Cl;++Cl){var Wl=Is>>Cl,yu=Xs>>Cl;if(!Wl||!yu)break;yn.texImage2D(3553,Cl,ms.format,Wl,yu,0,ms.format,ms.type,null)}return go(),hn.profile&&(ms.stats.size=At(ms.internalformat,ms.type,Is,Xs,!1,!1)),Go},Go._reglType="texture2d",Go._texture=ms,hn.profile&&(Go.stats=ms.stats),Go.destroy=function(){ms.decRef()},Go},createCube:function(xo,Vo,Go,ms,Ws,ws){function Is(Wl,yu,yo,Fo,To,Bo){var Es,Ps=Xs.texInfo;for(ro.call(Ps),Es=0;6>Es;++Es)Cl[Es]=Bn();if(typeof Wl=="number"||!Wl)for(Wl=Wl|0||1,Es=0;6>Es;++Es)Yr(Cl[Es],Wl,Wl);else if(typeof Wl=="object")if(yu)Wr(Cl[0],Wl),Wr(Cl[1],yu),Wr(Cl[2],yo),Wr(Cl[3],Fo),Wr(Cl[4],To),Wr(Cl[5],Bo);else if(io(Ps,Wl),Ln(Xs,Wl),"faces"in Wl)for(Wl=Wl.faces,Es=0;6>Es;++Es)In(Cl[Es],Xs),Wr(Cl[Es],Wl[Es]);else for(Es=0;6>Es;++Es)Wr(Cl[Es],Wl);for(In(Xs,Cl[0]),Xs.mipmask=Ps.genMipmaps?(Cl[0].width<<1)-1:Cl[0].mipmask,Xs.internalformat=Cl[0].internalformat,Is.width=Cl[0].width,Is.height=Cl[0].height,ho(Xs),Es=0;6>Es;++Es)$n(Cl[Es],34069+Es);for(eo(Ps,34067),go(),hn.profile&&(Xs.stats.size=At(Xs.internalformat,Xs.type,Is.width,Is.height,Ps.genMipmaps,!0)),Is.format=Yo[Xs.internalformat],Is.type=Oo[Xs.type],Is.mag=ys[Ps.magFilter],Is.min=gs[Ps.minFilter],Is.wrapS=zs[Ps.wrapS],Is.wrapT=zs[Ps.wrapT],Es=0;6>Es;++Es)xa(Cl[Es]);return Is}var Xs=new Gn(34067);nu[Xs.id]=Xs,An.cubeCount++;var Cl=Array(6);return Is(xo,Vo,Go,ms,Ws,ws),Is.subimage=function(Wl,yu,yo,Fo,To){yo|=0,Fo|=0,To|=0;var Bo=fo();return In(Bo,Xs),Bo.width=0,Bo.height=0,Vn(Bo,yu),Bo.width=Bo.width||(Xs.width>>To)-yo,Bo.height=Bo.height||(Xs.height>>To)-Fo,ho(Xs),ga(Bo,34069+Wl,yo,Fo,To),go(),qn(Bo),Is},Is.resize=function(Wl){if(Wl|=0,Wl!==Xs.width){Is.width=Xs.width=Wl,Is.height=Xs.height=Wl,ho(Xs);for(var yu=0;6>yu;++yu)for(var yo=0;Xs.mipmask>>yo;++yo)yn.texImage2D(34069+yu,yo,Xs.format,Wl>>yo,Wl>>yo,0,Xs.format,Xs.type,null);return go(),hn.profile&&(Xs.stats.size=At(Xs.internalformat,Xs.type,Is.width,Is.height,!1,!0)),Is}},Is._reglType="textureCube",Is._texture=Xs,hn.profile&&(Is.stats=Xs.stats),Is.destroy=function(){Xs.decRef()},Is},clear:function(){for(var xo=0;xoms;++ms)if(Go.mipmask&1<>ms,Go.height>>ms,0,Go.internalformat,Go.type,null);else for(var Ws=0;6>Ws;++Ws)yn.texImage2D(34069+Ws,ms,Go.internalformat,Go.width>>ms,Go.height>>ms,0,Go.internalformat,Go.type,null);eo(Go.texInfo,Go.target)})},refresh:function(){for(var xo=0;xoco;++co){for(Zo=0;Zo<_o.length;++Zo)zo.color[Zo].target=34069+co;0_o;++_o)go[_o].resize(co);return ho.width=ho.height=co,ho},_reglType:"framebufferCube",destroy:function(){go.forEach(function(_o){_o.destroy()})}})},clear:function(){Er(eo).forEach(po)},restore:function(){$n.cur=null,$n.next=null,$n.dirty=!0,Er(eo).forEach(function(Gn){Gn.framebuffer=yn.createFramebuffer(),Yr(Gn)})}})}function zt(){this.w=this.z=this.y=this.x=this.state=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=5126,this.divisor=this.stride=this.offset=0}function Dt(yn,Kn,Jn,so,ba,An,hn){function wn(Yr){if(Yr!==po.currentVAO){var Wr=Kn.oes_vertex_array_object;Yr?Wr.bindVertexArrayOES(Yr.vao):Wr.bindVertexArrayOES(null),po.currentVAO=Yr}}function In(Yr){if(Yr!==po.currentVAO){if(Yr)Yr.bindAttrs();else{for(var Wr=Kn.angle_instanced_arrays,$n=0;$n=ho.byteLength?go.subdata(ho):(go.destroy(),$n.buffers[io]=null)),$n.buffers[io]||(go=$n.buffers[io]=ba.create(eo,34962,!1,!0)),Gn.buffer=ba.getBuffer(go),Gn.size=Gn.buffer.dimension|0,Gn.normalized=!1,Gn.type=Gn.buffer.dtype,Gn.offset=0,Gn.stride=0,Gn.divisor=0,Gn.state=1,Bn[io]=1}else ba.getBuffer(eo)?(Gn.buffer=ba.getBuffer(eo),Gn.size=Gn.buffer.dimension|0,Gn.normalized=!1,Gn.type=Gn.buffer.dtype,Gn.offset=0,Gn.stride=0,Gn.divisor=0,Gn.state=1):ba.getBuffer(eo.buffer)?(Gn.buffer=ba.getBuffer(eo.buffer),Gn.size=(+eo.size||Gn.buffer.dimension)|0,Gn.normalized=!!eo.normalized||!1,Gn.type="type"in eo?Br[eo.type]:Gn.buffer.dtype,Gn.offset=(eo.offset||0)|0,Gn.stride=(eo.stride||0)|0,Gn.divisor=(eo.divisor||0)|0,Gn.state=1):"x"in eo&&(Gn.x=+eo.x||0,Gn.y=+eo.y||0,Gn.z=+eo.z||0,Gn.w=+eo.w||0,Gn.state=2)}for(go=0;go<$n.buffers.length;++go)!Bn[go]&&$n.buffers[go]&&($n.buffers[go].destroy(),$n.buffers[go]=null);return $n.refresh(),Wr}var $n=new Xn;return so.vaoCount+=1,Wr.destroy=function(){for(var Bn=0;Bn<$n.buffers.length;++Bn)$n.buffers[Bn]&&$n.buffers[Bn].destroy();$n.buffers.length=0,$n.ownsElements&&($n.elements.destroy(),$n.elements=null,$n.ownsElements=!1),$n.destroy()},Wr._vao=$n,Wr._reglType="vao",Wr(Yr)},getVAO:function(Yr){return typeof Yr=="function"&&Yr._vao?Yr._vao:null},destroyBuffer:function(Yr){for(var Wr=0;Wrfo&&(fo=qn.stats.uniformsCount)}),fo},Jn.getMaxAttributesCount=function(){var fo=0;return Vn.forEach(function(qn){qn.stats.attributesCount>fo&&(fo=qn.stats.attributesCount)}),fo}),{clear:function(){var fo=yn.deleteShader.bind(yn);Er(Ln).forEach(fo),Ln={},Er(Xn).forEach(fo),Xn={},Vn.forEach(function(qn){yn.deleteProgram(qn.program)}),Vn.length=0,Wn={},Jn.shaderCount=0},program:function(fo,qn,po,Yr){var Wr=Wn[qn];Wr||(Wr=Wn[qn]={});var $n=Wr[fo];if($n&&($n.refCount++,!Yr))return $n;var Bn=new wn(qn,fo);return Jn.shaderCount++,In(Bn,po,Yr),$n||(Wr[fo]=Bn),Vn.push(Bn),tr(Bn,{destroy:function(){if(Bn.refCount--,0>=Bn.refCount){yn.deleteProgram(Bn.program);var xa=Vn.indexOf(Bn);Vn.splice(xa,1),Jn.shaderCount--}0>=Wr[Bn.vertId].refCount&&(yn.deleteShader(Xn[Bn.vertId]),delete Xn[Bn.vertId],delete Wn[Bn.fragId][Bn.vertId]),Object.keys(Wn[Bn.fragId]).length||(yn.deleteShader(Ln[Bn.fragId]),delete Ln[Bn.fragId],delete Wn[Bn.fragId])}})},restore:function(){Ln={},Xn={};for(var fo=0;fo>2),so=0;so>5]|=(yn.charCodeAt(so/8)&255)<<24-so%32;var Jn=8*yn.length;yn=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225];var so=Array(64),ba,An,hn,wn,In,Ln,Xn,Wn,Vn,ga,fo;for(Kn[Jn>>5]|=128<<24-Jn%32,Kn[(Jn+64>>9<<4)+15]=Jn,Wn=0;WnVn;Vn++){if(16>Vn)so[Vn]=Kn[Vn+Wn];else{ga=Vn,fo=so[Vn-2],fo=Xt(fo,17)^Xt(fo,19)^fo>>>10,fo=qt(fo,so[Vn-7]);var qn;qn=so[Vn-15],qn=Xt(qn,7)^Xt(qn,18)^qn>>>3,so[ga]=qt(qt(fo,qn),so[Vn-16])}ga=wn,ga=Xt(ga,6)^Xt(ga,11)^Xt(ga,25),ga=qt(qt(qt(qt(Xn,ga),wn&In^~wn&Ln),Vr[Vn]),so[Vn]),Xn=Jn,Xn=Xt(Xn,2)^Xt(Xn,13)^Xt(Xn,22),fo=qt(Xn,Jn&ba^Jn&An^ba&An),Xn=Ln,Ln=In,In=wn,wn=qt(hn,ga),hn=An,An=ba,ba=Jn,Jn=qt(ga,fo)}yn[0]=qt(Jn,yn[0]),yn[1]=qt(ba,yn[1]),yn[2]=qt(An,yn[2]),yn[3]=qt(hn,yn[3]),yn[4]=qt(wn,yn[4]),yn[5]=qt(In,yn[5]),yn[6]=qt(Ln,yn[6]),yn[7]=qt(Xn,yn[7])}for(Kn="",so=0;so<32*yn.length;so+=8)Kn+=String.fromCharCode(yn[so>>5]>>>24-so%32&255);return Kn}function Ht(yn){for(var Kn="",Jn,so=0;so>>4&15)+"0123456789abcdef".charAt(Jn&15);return Kn}function Vt(yn){for(var Kn="",Jn=-1,so,ba;++Jn=so&&56320<=ba&&57343>=ba&&(so=65536+((so&1023)<<10)+(ba&1023),Jn++),127>=so?Kn+=String.fromCharCode(so):2047>=so?Kn+=String.fromCharCode(192|so>>>6&31,128|so&63):65535>=so?Kn+=String.fromCharCode(224|so>>>12&15,128|so>>>6&63,128|so&63):2097151>=so&&(Kn+=String.fromCharCode(240|so>>>18&7,128|so>>>12&63,128|so>>>6&63,128|so&63));return Kn}function Xt(yn,Kn){return yn>>>Kn|yn<<32-Kn}function qt(yn,Kn){var Jn=(yn&65535)+(Kn&65535);return(yn>>16)+(Kn>>16)+(Jn>>16)<<16|Jn&65535}function er(yn){return Array.prototype.slice.call(yn)}function lr(yn){return er(yn).join("")}function Jt(yn){function Kn(){var Xn=[],Wn=[];return tr(function(){Xn.push.apply(Xn,er(arguments))},{def:function(){var Vn="v"+ba++;return Wn.push(Vn),0Or)?Rr.tree=nt(Er,{bounds:un}):Or&&Or.length&&(Rr.tree=Or),Rr.tree){var en={primitive:"points",usage:"static",data:Rr.tree,type:"uint32"};Rr.elements?Rr.elements(en):Rr.elements=Dt.elements(en)}var Xr=St.float32(Er);kr({data:Xr,usage:"dynamic"});var ln=St.fract32(Er,Xr);return Nr({data:ln,usage:"dynamic"}),Qr({data:new Uint8Array(sn),type:"uint8",usage:"stream"}),Er}},{marker:function(Er,Rr,zr){var Or=Rr.activation;if(Or.forEach(function(ln){return ln&&ln.destroy&&ln.destroy()}),Or.length=0,!Er||typeof Er[0]=="number"){var kr=ct.addMarker(Er);Or[kr]=!0}else{for(var Nr=[],Qr=0,sn=Math.min(Er.length,Rr.count);Qr=0)return Pt;var zt;if(ct instanceof Uint8Array||ct instanceof Uint8ClampedArray)zt=ct;else{zt=new Uint8Array(ct.length);for(var Dt=0,Nt=ct.length;DtOt*4&&(this.tooManyColors=!0),this.updatePalette(At),Pt.length===1?Pt[0]:Pt},Et.prototype.updatePalette=function(ct){if(!this.tooManyColors){var It=this.maxColors,At=this.paletteTexture,Ot=Math.ceil(ct.length*.25/It);if(Ot>1){ct=ct.slice();for(var Pt=ct.length*.25%It;PtOt)&&!(!bt.lower&&At2?(at[0],at[2],vt=at[1],dt=at[3]):at.length?(vt=at[0],dt=at[1]):(at.x,vt=at.y,at.x+at.width,dt=at.y+at.height),mt.length>2?(bt=mt[0],ft=mt[2],mt[1],mt[3]):mt.length?(bt=mt[0],ft=mt[1]):(bt=mt.x,mt.y,ft=mt.x+mt.width,mt.y+mt.height),[bt,vt,ft,dt]}function tt(st){if(typeof st=="number")return[st,st,st,st];if(st.length===2)return[st[0],st[1],st[0],st[1]];var ot=ut(st);return[ot.x,ot.y,ot.x+ot.width,ot.y+ot.height]}},28624:function(Ct){(function(Rt,o){Ct.exports=o()})(this,function(){function Rt(yn,Kn){this.id=cr++,this.type=yn,this.data=Kn}function o(yn){if(yn.length===0)return[];var Kn=yn.charAt(0),Jn=yn.charAt(yn.length-1);if(1"u"?1:window.devicePixelRatio,Ln=!1,Xn={},Wn=function(ga){},Vn=function(){};if(typeof Kn=="string"?Jn=document.querySelector(Kn):typeof Kn=="object"&&(typeof Kn.nodeName=="string"&&typeof Kn.appendChild=="function"&&typeof Kn.getBoundingClientRect=="function"?Jn=Kn:typeof Kn.drawArrays=="function"||typeof Kn.drawElements=="function"?(An=Kn,ba=An.canvas):("gl"in Kn?An=Kn.gl:"canvas"in Kn?ba=ht(Kn.canvas):"container"in Kn&&(so=ht(Kn.container)),"attributes"in Kn&&(yn=Kn.attributes),"extensions"in Kn&&(hn=ut(Kn.extensions)),"optionalExtensions"in Kn&&(wn=ut(Kn.optionalExtensions)),"onDone"in Kn&&(Wn=Kn.onDone),"profile"in Kn&&(Ln=!!Kn.profile),"pixelRatio"in Kn&&(In=+Kn.pixelRatio),"cachedCode"in Kn&&(Xn=Kn.cachedCode))),Jn&&(Jn.nodeName.toLowerCase()==="canvas"?ba=Jn:so=Jn),!An){if(!ba){if(Jn=Tt(so||document.body,Wn,In),!Jn)return null;ba=Jn.canvas,Vn=Jn.onDestroy}yn.premultipliedAlpha===void 0&&(yn.premultipliedAlpha=!0),An=yt(ba,yn)}return An?{gl:An,canvas:ba,container:so,extensions:hn,optionalExtensions:wn,pixelRatio:In,profile:Ln,cachedCode:Xn,onDone:Wn,onDestroy:Vn}:(Vn(),Wn("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function _(yn,Kn){function Jn(hn){hn=hn.toLowerCase();var wn;try{wn=so[hn]=yn.getExtension(hn)}catch{}return!!wn}for(var so={},ba=0;ba>>=Kn,Jn=(255>>=Jn,Kn|=Jn,Jn=(15>>=Jn,Kn|=Jn,Jn=(3>>Jn>>1}function st(){function yn(so){e:{for(var ba=16;268435456>=ba;ba*=16)if(so<=ba){so=ba;break e}so=0}return ba=Jn[tt(so)>>2],0>2].push(so)}var Jn=rt(8,function(){return[]});return{alloc:yn,free:Kn,allocType:function(so,ba){var An=null;switch(so){case 5120:An=new Int8Array(yn(ba),0,ba);break;case 5121:An=new Uint8Array(yn(ba),0,ba);break;case 5122:An=new Int16Array(yn(2*ba),0,ba);break;case 5123:An=new Uint16Array(yn(2*ba),0,ba);break;case 5124:An=new Int32Array(yn(4*ba),0,ba);break;case 5125:An=new Uint32Array(yn(4*ba),0,ba);break;case 5126:An=new Float32Array(yn(4*ba),0,ba);break;default:return null}return An.length!==ba?An.subarray(0,ba):An},freeType:function(so){Kn(so.buffer)}}}function ot(yn){return!!yn&&typeof yn=="object"&&Array.isArray(yn.shape)&&Array.isArray(yn.stride)&&typeof yn.offset=="number"&&yn.shape.length===yn.stride.length&&(Array.isArray(yn.data)||_r(yn.data))}function nt(yn,Kn,Jn,so,ba,An){for(var hn=0;hnVn&&(Vn=Wn.buffer.byteLength,jr===5123?Vn>>=1:jr===5125&&(Vn>>=2)),Wn.vertCount=Vn,Vn=fo,0>fo&&(Vn=4,fo=Wn.buffer.dimension,fo===1&&(Vn=0),fo===2&&(Vn=1),fo===3&&(Vn=4)),Wn.primType=Vn}function hn(Wn){so.elementsCount--,delete wn[Wn.id],Wn.buffer.destroy(),Wn.buffer=null}var wn={},In=0,Ln={uint8:5121,uint16:5123};Kn.oes_element_index_uint&&(Ln.uint32=5125),ba.prototype.bind=function(){this.buffer.bind()};var Xn=[];return{create:function(Wn,Vn){function ga(po){if(po)if(typeof po=="number")fo(po),qn.primType=4,qn.vertCount=po|0,qn.type=5121;else{var Yr=null,jr=35044,$n=-1,Bn=-1,xa=0,ro=0;Array.isArray(po)||_r(po)||ot(po)?Yr=po:("data"in po&&(Yr=po.data),"usage"in po&&(jr=kr[po.usage]),"primitive"in po&&($n=un[po.primitive]),"count"in po&&(Bn=po.count|0),"type"in po&&(ro=Ln[po.type]),"length"in po?xa=po.length|0:(xa=Bn,ro===5123||ro===5122?xa*=2:(ro===5125||ro===5124)&&(xa*=4))),An(qn,Yr,jr,$n,Bn,xa,ro)}else fo(),qn.primType=4,qn.vertCount=0,qn.type=5121;return ga}var fo=Jn.create(null,34963,!0),qn=new ba(fo._buffer);return so.elementsCount++,ga(Wn),ga._reglType="elements",ga._elements=qn,ga.subdata=function(po,Yr){return fo.subdata(po,Yr),ga},ga.destroy=function(){hn(qn)},ga},createStream:function(Wn){var Vn=Xn.pop();return Vn||(Vn=new ba(Jn.create(null,34963,!0,!1)._buffer)),An(Vn,Wn,35040,-1,-1,0,0),Vn},destroyStream:function(Wn){Xn.push(Wn)},getElements:function(Wn){return typeof Wn=="function"&&Wn._elements instanceof ba?Wn._elements:null},clear:function(){Er(wn).forEach(hn)}}}function St(yn){for(var Kn=Ir.allocType(5123,yn.length),Jn=0;Jn>>31<<15,ba=(An<<1>>>24)-127,An=An>>13&1023;Kn[Jn]=-24>ba?so:-14>ba?so+(An+1024>>-14-ba):15>=Ws,Go.height>>=Ws,Vn(Go,ms[Ws]),xo.mipmask|=1<Vo;++Vo)xo.images[Vo]=null;return xo}function xa(xo){for(var Vo=xo.images,Go=0;Goxo){for(var Vo=0;Vo=--this.refCount&&_o(this)}}),hn.profile&&(An.getTotalTextureSize=function(){var xo=0;return Object.keys(nu).forEach(function(Vo){xo+=nu[Vo].stats.size}),xo}),{create2D:function(xo,Vo){function Go(Ws,ws){var Is=ms.texInfo;ro.call(Is);var Xs=Bn();return typeof Ws=="number"?typeof ws=="number"?Yr(Xs,Ws|0,ws|0):Yr(Xs,Ws|0,Ws|0):Ws?(io(Is,Ws),jr(Xs,Ws)):Yr(Xs,1,1),Is.genMipmaps&&(Xs.mipmask=(Xs.width<<1)-1),ms.mipmask=Xs.mipmask,In(ms,Xs),ms.internalformat=Xs.internalformat,Go.width=Xs.width,Go.height=Xs.height,ho(ms),$n(Xs,3553),eo(Is,3553),go(),xa(Xs),hn.profile&&(ms.stats.size=At(ms.internalformat,ms.type,Xs.width,Xs.height,Is.genMipmaps,!1)),Go.format=Yo[ms.internalformat],Go.type=Oo[ms.type],Go.mag=ys[Is.magFilter],Go.min=gs[Is.minFilter],Go.wrapS=zs[Is.wrapS],Go.wrapT=zs[Is.wrapT],Go}var ms=new Gn(3553);return nu[ms.id]=ms,An.textureCount++,Go(xo,Vo),Go.subimage=function(Ws,ws,Is,Xs){ws|=0,Is|=0,Xs|=0;var Cl=fo();return In(Cl,ms),Cl.width=0,Cl.height=0,Vn(Cl,Ws),Cl.width=Cl.width||(ms.width>>Xs)-ws,Cl.height=Cl.height||(ms.height>>Xs)-Is,ho(ms),ga(Cl,3553,ws,Is,Xs),go(),qn(Cl),Go},Go.resize=function(Ws,ws){var Is=Ws|0,Xs=ws|0||Is;if(Is===ms.width&&Xs===ms.height)return Go;Go.width=ms.width=Is,Go.height=ms.height=Xs,ho(ms);for(var Cl=0;ms.mipmask>>Cl;++Cl){var Wl=Is>>Cl,yu=Xs>>Cl;if(!Wl||!yu)break;yn.texImage2D(3553,Cl,ms.format,Wl,yu,0,ms.format,ms.type,null)}return go(),hn.profile&&(ms.stats.size=At(ms.internalformat,ms.type,Is,Xs,!1,!1)),Go},Go._reglType="texture2d",Go._texture=ms,hn.profile&&(Go.stats=ms.stats),Go.destroy=function(){ms.decRef()},Go},createCube:function(xo,Vo,Go,ms,Ws,ws){function Is(Wl,yu,yo,Fo,To,Bo){var Es,Ps=Xs.texInfo;for(ro.call(Ps),Es=0;6>Es;++Es)Cl[Es]=Bn();if(typeof Wl=="number"||!Wl)for(Wl=Wl|0||1,Es=0;6>Es;++Es)Yr(Cl[Es],Wl,Wl);else if(typeof Wl=="object")if(yu)jr(Cl[0],Wl),jr(Cl[1],yu),jr(Cl[2],yo),jr(Cl[3],Fo),jr(Cl[4],To),jr(Cl[5],Bo);else if(io(Ps,Wl),Ln(Xs,Wl),"faces"in Wl)for(Wl=Wl.faces,Es=0;6>Es;++Es)In(Cl[Es],Xs),jr(Cl[Es],Wl[Es]);else for(Es=0;6>Es;++Es)jr(Cl[Es],Wl);for(In(Xs,Cl[0]),Xs.mipmask=Ps.genMipmaps?(Cl[0].width<<1)-1:Cl[0].mipmask,Xs.internalformat=Cl[0].internalformat,Is.width=Cl[0].width,Is.height=Cl[0].height,ho(Xs),Es=0;6>Es;++Es)$n(Cl[Es],34069+Es);for(eo(Ps,34067),go(),hn.profile&&(Xs.stats.size=At(Xs.internalformat,Xs.type,Is.width,Is.height,Ps.genMipmaps,!0)),Is.format=Yo[Xs.internalformat],Is.type=Oo[Xs.type],Is.mag=ys[Ps.magFilter],Is.min=gs[Ps.minFilter],Is.wrapS=zs[Ps.wrapS],Is.wrapT=zs[Ps.wrapT],Es=0;6>Es;++Es)xa(Cl[Es]);return Is}var Xs=new Gn(34067);nu[Xs.id]=Xs,An.cubeCount++;var Cl=Array(6);return Is(xo,Vo,Go,ms,Ws,ws),Is.subimage=function(Wl,yu,yo,Fo,To){yo|=0,Fo|=0,To|=0;var Bo=fo();return In(Bo,Xs),Bo.width=0,Bo.height=0,Vn(Bo,yu),Bo.width=Bo.width||(Xs.width>>To)-yo,Bo.height=Bo.height||(Xs.height>>To)-Fo,ho(Xs),ga(Bo,34069+Wl,yo,Fo,To),go(),qn(Bo),Is},Is.resize=function(Wl){if(Wl|=0,Wl!==Xs.width){Is.width=Xs.width=Wl,Is.height=Xs.height=Wl,ho(Xs);for(var yu=0;6>yu;++yu)for(var yo=0;Xs.mipmask>>yo;++yo)yn.texImage2D(34069+yu,yo,Xs.format,Wl>>yo,Wl>>yo,0,Xs.format,Xs.type,null);return go(),hn.profile&&(Xs.stats.size=At(Xs.internalformat,Xs.type,Is.width,Is.height,!1,!0)),Is}},Is._reglType="textureCube",Is._texture=Xs,hn.profile&&(Is.stats=Xs.stats),Is.destroy=function(){Xs.decRef()},Is},clear:function(){for(var xo=0;xoms;++ms)if(Go.mipmask&1<>ms,Go.height>>ms,0,Go.internalformat,Go.type,null);else for(var Ws=0;6>Ws;++Ws)yn.texImage2D(34069+Ws,ms,Go.internalformat,Go.width>>ms,Go.height>>ms,0,Go.internalformat,Go.type,null);eo(Go.texInfo,Go.target)})},refresh:function(){for(var xo=0;xoco;++co){for(Zo=0;Zo<_o.length;++Zo)zo.color[Zo].target=34069+co;0_o;++_o)go[_o].resize(co);return ho.width=ho.height=co,ho},_reglType:"framebufferCube",destroy:function(){go.forEach(function(_o){_o.destroy()})}})},clear:function(){Er(eo).forEach(po)},restore:function(){$n.cur=null,$n.next=null,$n.dirty=!0,Er(eo).forEach(function(Gn){Gn.framebuffer=yn.createFramebuffer(),Yr(Gn)})}})}function zt(){this.w=this.z=this.y=this.x=this.state=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=5126,this.divisor=this.stride=this.offset=0}function Dt(yn,Kn,Jn,so,ba,An,hn){function wn(Yr){if(Yr!==po.currentVAO){var jr=Kn.oes_vertex_array_object;Yr?jr.bindVertexArrayOES(Yr.vao):jr.bindVertexArrayOES(null),po.currentVAO=Yr}}function In(Yr){if(Yr!==po.currentVAO){if(Yr)Yr.bindAttrs();else{for(var jr=Kn.angle_instanced_arrays,$n=0;$n=ho.byteLength?go.subdata(ho):(go.destroy(),$n.buffers[io]=null)),$n.buffers[io]||(go=$n.buffers[io]=ba.create(eo,34962,!1,!0)),Gn.buffer=ba.getBuffer(go),Gn.size=Gn.buffer.dimension|0,Gn.normalized=!1,Gn.type=Gn.buffer.dtype,Gn.offset=0,Gn.stride=0,Gn.divisor=0,Gn.state=1,Bn[io]=1}else ba.getBuffer(eo)?(Gn.buffer=ba.getBuffer(eo),Gn.size=Gn.buffer.dimension|0,Gn.normalized=!1,Gn.type=Gn.buffer.dtype,Gn.offset=0,Gn.stride=0,Gn.divisor=0,Gn.state=1):ba.getBuffer(eo.buffer)?(Gn.buffer=ba.getBuffer(eo.buffer),Gn.size=(+eo.size||Gn.buffer.dimension)|0,Gn.normalized=!!eo.normalized||!1,Gn.type="type"in eo?Or[eo.type]:Gn.buffer.dtype,Gn.offset=(eo.offset||0)|0,Gn.stride=(eo.stride||0)|0,Gn.divisor=(eo.divisor||0)|0,Gn.state=1):"x"in eo&&(Gn.x=+eo.x||0,Gn.y=+eo.y||0,Gn.z=+eo.z||0,Gn.w=+eo.w||0,Gn.state=2)}for(go=0;go<$n.buffers.length;++go)!Bn[go]&&$n.buffers[go]&&($n.buffers[go].destroy(),$n.buffers[go]=null);return $n.refresh(),jr}var $n=new Xn;return so.vaoCount+=1,jr.destroy=function(){for(var Bn=0;Bn<$n.buffers.length;++Bn)$n.buffers[Bn]&&$n.buffers[Bn].destroy();$n.buffers.length=0,$n.ownsElements&&($n.elements.destroy(),$n.elements=null,$n.ownsElements=!1),$n.destroy()},jr._vao=$n,jr._reglType="vao",jr(Yr)},getVAO:function(Yr){return typeof Yr=="function"&&Yr._vao?Yr._vao:null},destroyBuffer:function(Yr){for(var jr=0;jrfo&&(fo=qn.stats.uniformsCount)}),fo},Jn.getMaxAttributesCount=function(){var fo=0;return Vn.forEach(function(qn){qn.stats.attributesCount>fo&&(fo=qn.stats.attributesCount)}),fo}),{clear:function(){var fo=yn.deleteShader.bind(yn);Er(Ln).forEach(fo),Ln={},Er(Xn).forEach(fo),Xn={},Vn.forEach(function(qn){yn.deleteProgram(qn.program)}),Vn.length=0,Wn={},Jn.shaderCount=0},program:function(fo,qn,po,Yr){var jr=Wn[qn];jr||(jr=Wn[qn]={});var $n=jr[fo];if($n&&($n.refCount++,!Yr))return $n;var Bn=new wn(qn,fo);return Jn.shaderCount++,In(Bn,po,Yr),$n||(jr[fo]=Bn),Vn.push(Bn),tr(Bn,{destroy:function(){if(Bn.refCount--,0>=Bn.refCount){yn.deleteProgram(Bn.program);var xa=Vn.indexOf(Bn);Vn.splice(xa,1),Jn.shaderCount--}0>=jr[Bn.vertId].refCount&&(yn.deleteShader(Xn[Bn.vertId]),delete Xn[Bn.vertId],delete Wn[Bn.fragId][Bn.vertId]),Object.keys(Wn[Bn.fragId]).length||(yn.deleteShader(Ln[Bn.fragId]),delete Ln[Bn.fragId],delete Wn[Bn.fragId])}})},restore:function(){Ln={},Xn={};for(var fo=0;fo>2),so=0;so>5]|=(yn.charCodeAt(so/8)&255)<<24-so%32;var Jn=8*yn.length;yn=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225];var so=Array(64),ba,An,hn,wn,In,Ln,Xn,Wn,Vn,ga,fo;for(Kn[Jn>>5]|=128<<24-Jn%32,Kn[(Jn+64>>9<<4)+15]=Jn,Wn=0;WnVn;Vn++){if(16>Vn)so[Vn]=Kn[Vn+Wn];else{ga=Vn,fo=so[Vn-2],fo=Xt(fo,17)^Xt(fo,19)^fo>>>10,fo=qt(fo,so[Vn-7]);var qn;qn=so[Vn-15],qn=Xt(qn,7)^Xt(qn,18)^qn>>>3,so[ga]=qt(qt(fo,qn),so[Vn-16])}ga=wn,ga=Xt(ga,6)^Xt(ga,11)^Xt(ga,25),ga=qt(qt(qt(qt(Xn,ga),wn&In^~wn&Ln),Vr[Vn]),so[Vn]),Xn=Jn,Xn=Xt(Xn,2)^Xt(Xn,13)^Xt(Xn,22),fo=qt(Xn,Jn&ba^Jn&An^ba&An),Xn=Ln,Ln=In,In=wn,wn=qt(hn,ga),hn=An,An=ba,ba=Jn,Jn=qt(ga,fo)}yn[0]=qt(Jn,yn[0]),yn[1]=qt(ba,yn[1]),yn[2]=qt(An,yn[2]),yn[3]=qt(hn,yn[3]),yn[4]=qt(wn,yn[4]),yn[5]=qt(In,yn[5]),yn[6]=qt(Ln,yn[6]),yn[7]=qt(Xn,yn[7])}for(Kn="",so=0;so<32*yn.length;so+=8)Kn+=String.fromCharCode(yn[so>>5]>>>24-so%32&255);return Kn}function Ht(yn){for(var Kn="",Jn,so=0;so>>4&15)+"0123456789abcdef".charAt(Jn&15);return Kn}function Vt(yn){for(var Kn="",Jn=-1,so,ba;++Jn=so&&56320<=ba&&57343>=ba&&(so=65536+((so&1023)<<10)+(ba&1023),Jn++),127>=so?Kn+=String.fromCharCode(so):2047>=so?Kn+=String.fromCharCode(192|so>>>6&31,128|so&63):65535>=so?Kn+=String.fromCharCode(224|so>>>12&15,128|so>>>6&63,128|so&63):2097151>=so&&(Kn+=String.fromCharCode(240|so>>>18&7,128|so>>>12&63,128|so>>>6&63,128|so&63));return Kn}function Xt(yn,Kn){return yn>>>Kn|yn<<32-Kn}function qt(yn,Kn){var Jn=(yn&65535)+(Kn&65535);return(yn>>16)+(Kn>>16)+(Jn>>16)<<16|Jn&65535}function er(yn){return Array.prototype.slice.call(yn)}function lr(yn){return er(yn).join("")}function Jt(yn){function Kn(){var Xn=[],Wn=[];return tr(function(){Xn.push.apply(Xn,er(arguments))},{def:function(){var Vn="v"+ba++;return Wn.push(Vn),0"+Xl+"?"+Wo+".constant["+Xl+"]:0;"}).join(""),"}}else{","if(",_s,"(",Wo,".buffer)){",Ys,"=",Gs,".createStream(",34962,",",Wo,".buffer);","}else{",Ys,"=",Gs,".getBuffer(",Wo,".buffer);","}",Bl,'="type" in ',Wo,"?",rs.glTypes,"[",Wo,".type]:",Ys,".dtype;",Cs.normalized,"=!!",Wo,".normalized;"),Qo("size"),Qo("offset"),Qo("stride"),Qo("divisor"),wo("}}"),wo.exit("if(",Cs.isStream,"){",Gs,".destroyStream(",Ys,");","}"),Cs})}),Es}function co(yo){var Fo=yo.static,To=yo.dynamic,Bo={};return Object.keys(Fo).forEach(function(Es){var Ps=Fo[Es];Bo[Es]=sr(function(xs,us){return typeof Ps=="number"||typeof Ps=="boolean"?""+Ps:xs.link(Ps)})}),Object.keys(To).forEach(function(Es){var Ps=To[Es];Bo[Es]=Zt(Ps,function(xs,us){return xs.invoke(us,Ps)})}),Bo}function zo(yo,Fo,To,Bo,Es){function Ps(Ks){var Ys=us[Ks];Ys&&(Qo[Ks]=Ys)}var xs=io(yo,Fo),_s=xa(yo),us=ro(yo,_s),wo=Gn(yo),Qo=ho(yo),Wo=eo(yo,Es,xs);Ps("viewport"),Ps(po("scissor.box"));var rs=0"u"?"Date.now()":"performance.now()"}function xs(Ks){Gs=Fo.def(),Ks(Gs,"=",Ps(),";"),typeof Es=="string"?Ks(Wo,".count+=",Es,";"):Ks(Wo,".count++;"),ga&&(Bo?(Cs=Fo.def(),Ks(Cs,"=",_s,".getNumPendingQueries();")):Ks(_s,".beginQuery(",Wo,");"))}function us(Ks){Ks(Wo,".cpuTime+=",Ps(),"-",Gs,";"),ga&&(Bo?Ks(_s,".pushScopeStats(",Cs,",",_s,".getNumPendingQueries(),",Wo,");"):Ks(_s,".endQuery();"))}function wo(Ks){var Ys=Fo.def(rs,".profile");Fo(rs,".profile=",Ks,";"),Fo.exit(rs,".profile=",Ys,";")}var Qo=yo.shared,Wo=yo.stats,rs=Qo.current,_s=Qo.timer;To=To.profile;var Gs,Cs;if(To){if(ar(To)){To.enable?(xs(Fo),us(Fo.exit),wo("true")):wo("false");return}To=To.append(yo,Fo),wo(To)}else To=Fo.def(rs,".profile");Qo=yo.block(),xs(Qo),Fo("if(",To,"){",Qo,"}"),yo=yo.block(),us(yo),Fo.exit("if(",To,"){",yo,"}")}function bo(yo,Fo,To,Bo,Es){function Ps(wo){switch(wo){case 35664:case 35667:case 35671:return 2;case 35665:case 35668:case 35672:return 3;case 35666:case 35669:case 35673:return 4;default:return 1}}function xs(wo,Qo,Wo){function rs(){Fo("if(!",Ks,".buffer){",Gs,".enableVertexAttribArray(",Cs,");}");var Xl=Wo.type,Zl;Zl=Wo.size?Fo.def(Wo.size,"||",Qo):Qo,Fo("if(",Ks,".type!==",Xl,"||",Ks,".size!==",Zl,"||",zl.map(function(ju){return Ks+"."+ju+"!=="+Wo[ju]}).join("||"),"){",Gs,".bindBuffer(",34962,",",Ys,".buffer);",Gs,".vertexAttribPointer(",[Cs,Zl,Xl,Wo.normalized,Wo.stride,Wo.offset],");",Ks,".type=",Xl,";",Ks,".size=",Zl,";",zl.map(function(ju){return Ks+"."+ju+"="+Wo[ju]+";"}).join(""),"}"),xo&&(Xl=Wo.divisor,Fo("if(",Ks,".divisor!==",Xl,"){",yo.instancing,".vertexAttribDivisorANGLE(",[Cs,Xl],");",Ks,".divisor=",Xl,";}"))}function _s(){Fo("if(",Ks,".buffer){",Gs,".disableVertexAttribArray(",Cs,");",Ks,".buffer=null;","}if(",en.map(function(Xl,Zl){return Ks+"."+Xl+"!=="+Bl[Zl]}).join("||"),"){",Gs,".vertexAttrib4f(",Cs,",",Bl,");",en.map(function(Xl,Zl){return Ks+"."+Xl+"="+Bl[Zl]+";"}).join(""),"}")}var Gs=us.gl,Cs=Fo.def(wo,".location"),Ks=Fo.def(us.attributes,"[",Cs,"]");wo=Wo.state;var Ys=Wo.buffer,Bl=[Wo.x,Wo.y,Wo.z,Wo.w],zl=["buffer","normalized","offset","stride"];wo===1?rs():wo===2?_s():(Fo("if(",wo,"===",1,"){"),rs(),Fo("}else{"),_s(),Fo("}"))}var us=yo.shared;Bo.forEach(function(wo){var Qo=wo.name,Wo=To.attributes[Qo],rs;if(Wo){if(!Es(Wo))return;rs=Wo.append(yo,Fo)}else{if(!Es(Un))return;var _s=yo.scopeAttrib(Qo);rs={},Object.keys(new Yl).forEach(function(Gs){rs[Gs]=Fo.def(_s,".",Gs)})}xs(yo.link(wo),Ps(wo.info.type),rs)})}function No(yo,Fo,To,Bo,Es,Ps){for(var xs=yo.shared,us=xs.gl,wo,Qo=0;Qo>1)",Ks],");")}function Zl(){To(Ys,".drawArraysInstancedANGLE(",[_s,Gs,Cs,Ks],");")}rs&&rs!=="null"?zl?Xl():(To("if(",rs,"){"),Xl(),To("}else{"),Zl(),To("}")):Zl()}function xs(){function Xl(){To(wo+".drawElements("+[_s,Cs,Bl,Gs+"<<(("+Bl+"-5121)>>1)"]+");")}function Zl(){To(wo+".drawArrays("+[_s,Gs,Cs]+");")}rs&&rs!=="null"?zl?Xl():(To("if(",rs,"){"),Xl(),To("}else{"),Zl(),To("}")):Zl()}var us=yo.shared,wo=us.gl,Qo=us.draw,Wo=Bo.draw,rs=function(){var Xl=Wo.elements,Zl=Fo;return Xl?((Xl.contextDep&&Bo.contextDynamic||Xl.propDep)&&(Zl=To),Xl=Xl.append(yo,Zl),Wo.elementsActive&&Zl("if("+Xl+")"+wo+".bindBuffer(34963,"+Xl+".buffer.buffer);")):(Xl=Zl.def(),Zl(Xl,"=",Qo,".","elements",";","if(",Xl,"){",wo,".bindBuffer(",34963,",",Xl,".buffer.buffer);}","else if(",us.vao,".currentVAO){",Xl,"=",yo.shared.elements+".getElements("+us.vao,".currentVAO.elements);",Go?"":"if("+Xl+")"+wo+".bindBuffer(34963,"+Xl+".buffer.buffer);","}")),Xl}(),_s=Es("primitive"),Gs=Es("offset"),Cs=function(){var Xl=Wo.count,Zl=Fo;return Xl?((Xl.contextDep&&Bo.contextDynamic||Xl.propDep)&&(Zl=To),Xl=Xl.append(yo,Zl)):Xl=Zl.def(Qo,".","count"),Xl}();if(typeof Cs=="number"){if(Cs===0)return}else To("if(",Cs,"){"),To.exit("}");var Ks,Ys;xo&&(Ks=Es("instances"),Ys=yo.instancing);var Bl=rs+".type",zl=Wo.elements&&ar(Wo.elements)&&!Wo.vaoActive;xo&&(typeof Ks!="number"||0<=Ks)?typeof Ks=="string"?(To("if(",Ks,">0){"),Ps(),To("}else if(",Ks,"<0){"),xs(),To("}")):Ps():xs()}function Oo(yo,Fo,To,Bo,Es){return Fo=$n(),Es=Fo.proc("body",Es),xo&&(Fo.instancing=Es.def(Fo.shared.extensions,".angle_instanced_arrays")),yo(Fo,Es,To,Bo),Fo.compile().body}function ys(yo,Fo,To,Bo){Ls(yo,Fo),To.useVAO?To.drawVAO?Fo(yo.shared.vao,".setVAO(",To.drawVAO.append(yo,Fo),");"):Fo(yo.shared.vao,".setVAO(",yo.shared.vao,".targetVAO);"):(Fo(yo.shared.vao,".setVAO(null);"),bo(yo,Fo,To,Bo.attributes,function(){return!0})),No(yo,Fo,To,Bo.uniforms,function(){return!0},!1),Yo(yo,Fo,Fo,To)}function gs(yo,Fo){var To=yo.proc("draw",1);Ls(yo,To),Io(yo,To,Fo.context),Lo(yo,To,Fo.framebuffer),vs(yo,To,Fo),Zo(yo,To,Fo.state),Ds(yo,To,Fo,!1,!0);var Bo=Fo.shader.progVar.append(yo,To);if(To(yo.shared.gl,".useProgram(",Bo,".program);"),Fo.shader.program)ys(yo,To,Fo,Fo.shader.program);else{To(yo.shared.vao,".setVAO(null);");var Es=yo.global.def("{}"),Ps=To.def(Bo,".id"),xs=To.def(Es,"[",Ps,"]");To(yo.cond(xs).then(xs,".call(this,a0);").else(xs,"=",Es,"[",Ps,"]=",yo.link(function(us){return Oo(ys,yo,Fo,us,1)}),"(",Bo,");",xs,".call(this,a0);"))}0=--this.refCount&&hn(this)},ba.profile&&(so.getTotalRenderbufferSize=function(){var Wn=0;return Object.keys(Xn).forEach(function(Vn){Wn+=Xn[Vn].stats.size}),Wn}),{create:function(Wn,Vn){function ga(qn,po){var Yr=0,Wr=0,$n=32854;if(typeof qn=="object"&&qn?("shape"in qn?(Wr=qn.shape,Yr=Wr[0]|0,Wr=Wr[1]|0):("radius"in qn&&(Yr=Wr=qn.radius|0),"width"in qn&&(Yr=qn.width|0),"height"in qn&&(Wr=qn.height|0)),"format"in qn&&($n=wn[qn.format])):typeof qn=="number"?(Yr=qn|0,Wr=typeof po=="number"?po|0:Yr):qn||(Yr=Wr=1),Yr!==fo.width||Wr!==fo.height||$n!==fo.format)return ga.width=fo.width=Yr,ga.height=fo.height=Wr,fo.format=$n,yn.bindRenderbuffer(36161,fo.renderbuffer),yn.renderbufferStorage(36161,$n,Yr,Wr),ba.profile&&(fo.stats.size=Sr[fo.format]*fo.width*fo.height),ga.format=In[fo.format],ga}var fo=new An(yn.createRenderbuffer());return Xn[fo.id]=fo,so.renderbufferCount++,ga(Wn,Vn),ga.resize=function(qn,po){var Yr=qn|0,Wr=po|0||Yr;return Yr===fo.width&&Wr===fo.height||(ga.width=fo.width=Yr,ga.height=fo.height=Wr,yn.bindRenderbuffer(36161,fo.renderbuffer),yn.renderbufferStorage(36161,fo.format,Yr,Wr),ba.profile&&(fo.stats.size=Sr[fo.format]*fo.width*fo.height)),ga},ga._reglType="renderbuffer",ga._renderbuffer=fo,ba.profile&&(ga.stats=fo.stats),ga.destroy=function(){fo.decRef()},ga},clear:function(){Er(Xn).forEach(hn)},restore:function(){Er(Xn).forEach(function(Wn){Wn.renderbuffer=yn.createRenderbuffer(),yn.bindRenderbuffer(36161,Wn.renderbuffer),yn.renderbufferStorage(36161,Wn.format,Wn.width,Wn.height)}),yn.bindRenderbuffer(36161,null)}}},xr=[];xr[6408]=4,xr[6407]=3;var Pr=[];Pr[5121]=1,Pr[5126]=4,Pr[36193]=2;var Vr=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],en=["x","y","z","w"],rn="blend.func blend.equation stencil.func stencil.opFront stencil.opBack sample.coverage viewport scissor.box polygonOffset.offset".split(" "),Cn={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},xn={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},fn={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},bn={cw:2304,ccw:2305},Un=new jt(!1,!1,!1,function(){}),_i=function(yn,Kn){function Jn(){this.endQueryIndex=this.startQueryIndex=-1,this.sum=0,this.stats=null}function so(Xn,Wn,Vn){var ga=hn.pop()||new Jn;ga.startQueryIndex=Xn,ga.endQueryIndex=Wn,ga.sum=0,ga.stats=Vn,wn.push(ga)}if(!Kn.ext_disjoint_timer_query)return null;var ba=[],An=[],hn=[],wn=[],In=[],Ln=[];return{beginQuery:function(Xn){var Wn=ba.pop()||Kn.ext_disjoint_timer_query.createQueryEXT();Kn.ext_disjoint_timer_query.beginQueryEXT(35007,Wn),An.push(Wn),so(An.length-1,An.length,Xn)},endQuery:function(){Kn.ext_disjoint_timer_query.endQueryEXT(35007)},pushScopeStats:so,update:function(){var Xn,Wn;if(Xn=An.length,Xn!==0){Ln.length=Math.max(Ln.length,Xn+1),In.length=Math.max(In.length,Xn+1),In[0]=0;var Vn=Ln[0]=0;for(Wn=Xn=0;Wn=Ds.length&&so()}var Us=or(Ds,gs);Ds[Us]=zs}}}function Ln(){var gs=Zo.viewport,zs=Zo.scissor_box;gs[0]=gs[1]=zs[0]=zs[1]=0,ro.viewportWidth=ro.framebufferWidth=ro.drawingBufferWidth=gs[2]=zs[2]=ga.drawingBufferWidth,ro.viewportHeight=ro.framebufferHeight=ro.drawingBufferHeight=gs[3]=zs[3]=ga.drawingBufferHeight}function Xn(){ro.tick+=1,ro.time=Vn(),Ln(),Lo.procs.poll()}function Wn(){co.refresh(),Ln(),Lo.procs.refresh(),$n&&$n.update()}function Vn(){return(Tr()-Bn)/1e3}if(yn=j(yn),!yn)return null;var ga=yn.gl,fo=ga.getContextAttributes();ga.isContextLost();var qn=_(ga,yn);if(!qn)return null;var vs=et(),po={vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0},Yr=yn.cachedCode||{},Wr=qn.extensions,$n=_i(ga,Wr),Bn=Tr(),io=ga.drawingBufferWidth,xa=ga.drawingBufferHeight,ro={tick:0,time:0,viewportWidth:io,viewportHeight:xa,framebufferWidth:io,framebufferHeight:xa,drawingBufferWidth:io,drawingBufferHeight:xa,pixelRatio:yn.pixelRatio},io={elements:null,primitive:4,count:-1,offset:0,instances:-1},eo=Ar(ga,Wr),Gn=at(ga,po,yn,function(gs){return go.destroyBuffer(gs)}),ho=yt(ga,Wr,Gn,po),go=Dt(ga,Wr,eo,po,Gn,ho,io),_o=Nt(ga,vs,po,yn),co=Ot(ga,Wr,eo,function(){Lo.procs.poll()},ro,po,yn),zo=ur(ga,Wr,eo,po,yn),Io=Pt(ga,Wr,eo,co,zo,po),Lo=Kt(ga,vs,Wr,eo,Gn,ho,co,Io,{},go,_o,io,ro,$n,Yr,yn),vs=$t(ga,Io,Lo.procs.poll,ro),Zo=Lo.next,Ls=ga.canvas,Ds=[],bo=[],No=[],Yo=[yn.onDestroy],Oo=null;Ls&&(Ls.addEventListener("webglcontextlost",ba,!1),Ls.addEventListener("webglcontextrestored",An,!1));var ys=Io.setFBO=hn({framebuffer:hr.define.call(null,1,"framebuffer")});return Wn(),fo=tr(hn,{clear:function(gs){if("framebuffer"in gs)if(gs.framebuffer&&gs.framebuffer_reglType==="framebufferCube")for(var zs=0;6>zs;++zs)ys(tr({framebuffer:gs.framebuffer.faces[zs]},gs),wn);else ys(gs,wn);else wn(null,gs)},prop:hr.define.bind(null,1),context:hr.define.bind(null,2),this:hr.define.bind(null,3),draw:hn({}),buffer:function(gs){return Gn.create(gs,34962,!1,!1)},elements:function(gs){return ho.create(gs,!1)},texture:co.create2D,cube:co.createCube,renderbuffer:zo.create,framebuffer:Io.create,framebufferCube:Io.createCube,vao:go.createVAO,attributes:fo,frame:In,on:function(gs,zs){var Us;switch(gs){case"frame":return In(zs);case"lost":Us=bo;break;case"restore":Us=No;break;case"destroy":Us=Yo}return Us.push(zs),{cancel:function(){for(var Qs=0;Qs */var it=o(33576),xt=it.Buffer;function et(mt,ut){for(var ht in mt)ut[ht]=mt[ht]}xt.from&&xt.alloc&&xt.allocUnsafe&&xt.allocUnsafeSlow?Ct.exports=it:(et(it,Rt),Rt.Buffer=Et);function Et(mt,ut,ht){return xt(mt,ut,ht)}Et.prototype=Object.create(xt.prototype),et(xt,Et),Et.from=function(mt,ut,ht){if(typeof mt=="number")throw new TypeError("Argument must not be a number");return xt(mt,ut,ht)},Et.alloc=function(mt,ut,ht){if(typeof mt!="number")throw new TypeError("Argument must be a number");var j=xt(mt);return ut!==void 0?typeof ht=="string"?j.fill(ut,ht):j.fill(ut):j.fill(0),j},Et.allocUnsafe=function(mt){if(typeof mt!="number")throw new TypeError("Argument must be a number");return xt(mt)},Et.allocUnsafeSlow=function(mt){if(typeof mt!="number")throw new TypeError("Argument must be a number");return it.SlowBuffer(mt)}},14500:function(Ct,Rt,o){var it=o(53664),xt=o(64348),et=o(39640)(),Et=o(2304),mt=it("%TypeError%"),ut=it("%Math.floor%");Ct.exports=function(j,_){if(typeof j!="function")throw new mt("`fn` is not a function");if(typeof _!="number"||_<0||_>4294967295||ut(_)!==_)throw new mt("`length` must be a positive 32-bit integer");var rt=arguments.length>2&&!!arguments[2],tt=!0,st=!0;if("length"in j&&Et){var ot=Et(j,"length");ot&&!ot.configurable&&(tt=!1),ot&&!ot.writable&&(st=!1)}return(tt||st||!rt)&&(et?xt(j,"length",_,!0,!0):xt(j,"length",_)),j}},29936:function(Ct,Rt,o){Ct.exports=et;var it=o(61252).EventEmitter,xt=o(6768);xt(et,it),et.Readable=o(12348),et.Writable=o(11288),et.Duplex=o(15316),et.Transform=o(22477),et.PassThrough=o(27136),et.finished=o(15932),et.pipeline=o(38180),et.Stream=et;function et(){it.call(this)}et.prototype.pipe=function(Et,mt){var ut=this;function ht(nt){Et.writable&&Et.write(nt)===!1&&ut.pause&&ut.pause()}ut.on("data",ht);function j(){ut.readable&&ut.resume&&ut.resume()}Et.on("drain",j),!Et._isStdio&&(!mt||mt.end!==!1)&&(ut.on("end",rt),ut.on("close",tt));var _=!1;function rt(){_||(_=!0,Et.end())}function tt(){_||(_=!0,typeof Et.destroy=="function"&&Et.destroy())}function st(nt){if(ot(),it.listenerCount(this,"error")===0)throw nt}ut.on("error",st),Et.on("error",st);function ot(){ut.removeListener("data",ht),Et.removeListener("drain",j),ut.removeListener("end",rt),ut.removeListener("close",tt),ut.removeListener("error",st),Et.removeListener("error",st),ut.removeListener("end",ot),ut.removeListener("close",ot),Et.removeListener("close",ot)}return ut.on("end",ot),ut.on("close",ot),Et.on("close",ot),Et.emit("pipe",ut),Et}},92784:function(Ct){function Rt(ut,ht){ut.prototype=Object.create(ht.prototype),ut.prototype.constructor=ut,ut.__proto__=ht}var o={};function it(ut,ht,j){j||(j=Error);function _(tt,st,ot){return typeof ht=="string"?ht:ht(tt,st,ot)}var rt=function(tt){Rt(st,tt);function st(ot,nt,vt){return tt.call(this,_(ot,nt,vt))||this}return st}(j);rt.prototype.name=j.name,rt.prototype.code=ut,o[ut]=rt}function xt(ut,ht){if(Array.isArray(ut)){var j=ut.length;return ut=ut.map(function(_){return String(_)}),j>2?"one of ".concat(ht," ").concat(ut.slice(0,j-1).join(", "),", or ")+ut[j-1]:j===2?"one of ".concat(ht," ").concat(ut[0]," or ").concat(ut[1]):"of ".concat(ht," ").concat(ut[0])}else return"of ".concat(ht," ").concat(String(ut))}function et(ut,ht,j){return ut.substr(!j||j<0?0:+j,ht.length)===ht}function Et(ut,ht,j){return(j===void 0||j>ut.length)&&(j=ut.length),ut.substring(j-ht.length,j)===ht}function mt(ut,ht,j){return typeof j!="number"&&(j=0),j+ht.length>ut.length?!1:ut.indexOf(ht,j)!==-1}it("ERR_INVALID_OPT_VALUE",function(ut,ht){return'The value "'+ht+'" is invalid for option "'+ut+'"'},TypeError),it("ERR_INVALID_ARG_TYPE",function(ut,ht,j){var _;typeof ht=="string"&&et(ht,"not ")?(_="must not be",ht=ht.replace(/^not /,"")):_="must be";var rt;if(Et(ut," argument"))rt="The ".concat(ut," ").concat(_," ").concat(xt(ht,"type"));else{var tt=mt(ut,".")?"property":"argument";rt='The "'.concat(ut,'" ').concat(tt," ").concat(_," ").concat(xt(ht,"type"))}return rt+=". Received type ".concat(typeof j),rt},TypeError),it("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),it("ERR_METHOD_NOT_IMPLEMENTED",function(ut){return"The "+ut+" method is not implemented"}),it("ERR_STREAM_PREMATURE_CLOSE","Premature close"),it("ERR_STREAM_DESTROYED",function(ut){return"Cannot call "+ut+" after a stream was destroyed"}),it("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),it("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),it("ERR_STREAM_WRITE_AFTER_END","write after end"),it("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),it("ERR_UNKNOWN_ENCODING",function(ut){return"Unknown encoding: "+ut},TypeError),it("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Ct.exports.i=o},15316:function(Ct,Rt,o){var it=o(4168),xt=Object.keys||function(tt){var st=[];for(var ot in tt)st.push(ot);return st};Ct.exports=j;var et=o(12348),Et=o(11288);o(6768)(j,et);for(var mt=xt(Et.prototype),ut=0;ut0)if(typeof Kt!="string"&&!hr.objectMode&&Object.getPrototypeOf(Kt)!==mt.prototype&&(Kt=ht(Kt)),tr)hr.endEmitted?Mt(Zt,new at):At(Zt,hr,Kt,!0);else if(hr.ended)Mt(Zt,new bt);else{if(hr.destroyed)return!1;hr.reading=!1,hr.decoder&&!or?(Kt=hr.decoder.write(Kt),hr.objectMode||Kt.length!==0?At(Zt,hr,Kt,!1):Ht(Zt,hr)):At(Zt,hr,Kt,!1)}else tr||(hr.reading=!1,Ht(Zt,hr))}return!hr.ended&&(hr.length=Pt?Zt=Pt:(Zt--,Zt|=Zt>>>1,Zt|=Zt>>>2,Zt|=Zt>>>4,Zt|=Zt>>>8,Zt|=Zt>>>16,Zt++),Zt}function Dt(Zt,Kt){return Zt<=0||Kt.length===0&&Kt.ended?0:Kt.objectMode?1:Zt!==Zt?Kt.flowing&&Kt.length?Kt.buffer.head.data.length:Kt.length:(Zt>Kt.highWaterMark&&(Kt.highWaterMark=zt(Zt)),Zt<=Kt.length?Zt:Kt.ended?Kt.length:(Kt.needReadable=!0,0))}ct.prototype.read=function(Zt){rt("read",Zt),Zt=parseInt(Zt,10);var Kt=this._readableState,or=Zt;if(Zt!==0&&(Kt.emittedReadable=!1),Zt===0&&Kt.needReadable&&((Kt.highWaterMark!==0?Kt.length>=Kt.highWaterMark:Kt.length>0)||Kt.ended))return rt("read: emitReadable",Kt.length,Kt.ended),Kt.length===0&&Kt.ended?jt(this):$t(this),null;if(Zt=Dt(Zt,Kt),Zt===0&&Kt.ended)return Kt.length===0&&jt(this),null;var tr=Kt.needReadable;rt("need readable",tr),(Kt.length===0||Kt.length-Zt0?cr=rr(Zt,Kt):cr=null,cr===null?(Kt.needReadable=Kt.length<=Kt.highWaterMark,Zt=0):(Kt.length-=Zt,Kt.awaitDrain=0),Kt.length===0&&(Kt.ended||(Kt.needReadable=!0),or!==Zt&&Kt.ended&&jt(this)),cr!==null&&this.emit("data",cr),cr};function Nt(Zt,Kt){if(rt("onEofChunk"),!Kt.ended){if(Kt.decoder){var or=Kt.decoder.end();or&&or.length&&(Kt.buffer.push(or),Kt.length+=Kt.objectMode?1:or.length)}Kt.ended=!0,Kt.sync?$t(Zt):(Kt.needReadable=!1,Kt.emittedReadable||(Kt.emittedReadable=!0,Ut(Zt)))}}function $t(Zt){var Kt=Zt._readableState;rt("emitReadable",Kt.needReadable,Kt.emittedReadable),Kt.needReadable=!1,Kt.emittedReadable||(rt("emitReadable",Kt.flowing),Kt.emittedReadable=!0,it.nextTick(Ut,Zt))}function Ut(Zt){var Kt=Zt._readableState;rt("emitReadable_",Kt.destroyed,Kt.length,Kt.ended),!Kt.destroyed&&(Kt.length||Kt.ended)&&(Zt.emit("readable"),Kt.emittedReadable=!1),Kt.needReadable=!Kt.flowing&&!Kt.ended&&Kt.length<=Kt.highWaterMark,Yt(Zt)}function Ht(Zt,Kt){Kt.readingMore||(Kt.readingMore=!0,it.nextTick(Vt,Zt,Kt))}function Vt(Zt,Kt){for(;!Kt.reading&&!Kt.ended&&(Kt.length1&&sr(tr.pipes,Zt)!==-1)&&!Ar&&(rt("false write response, pause",tr.awaitDrain),tr.awaitDrain++),or.pause())}function Rr(Nr){rt("onerror",Nr),kr(),Zt.removeListener("error",Rr),et(Zt,"error")===0&&Mt(Zt,Nr)}kt(Zt,"error",Rr);function zr(){Zt.removeListener("finish",Br),kr()}Zt.once("close",zr);function Br(){rt("onfinish"),Zt.removeListener("close",zr),kr()}Zt.once("finish",Br);function kr(){rt("unpipe"),or.unpipe(Zt)}return Zt.emit("pipe",or),tr.flowing||(rt("pipe resume"),or.resume()),Zt};function Xt(Zt){return function(){var or=Zt._readableState;rt("pipeOnDrain",or.awaitDrain),or.awaitDrain&&or.awaitDrain--,or.awaitDrain===0&&et(Zt,"data")&&(or.flowing=!0,Yt(Zt))}}ct.prototype.unpipe=function(Zt){var Kt=this._readableState,or={hasUnpiped:!1};if(Kt.pipesCount===0)return this;if(Kt.pipesCount===1)return Zt&&Zt!==Kt.pipes?this:(Zt||(Zt=Kt.pipes),Kt.pipes=null,Kt.pipesCount=0,Kt.flowing=!1,Zt&&Zt.emit("unpipe",this,or),this);if(!Zt){var tr=Kt.pipes,cr=Kt.pipesCount;Kt.pipes=null,Kt.pipesCount=0,Kt.flowing=!1;for(var hr=0;hr0,tr.flowing!==!1&&this.resume()):Zt==="readable"&&!tr.endEmitted&&!tr.readableListening&&(tr.readableListening=tr.needReadable=!0,tr.flowing=!1,tr.emittedReadable=!1,rt("on readable",tr.length,tr.reading),tr.length?$t(this):tr.reading||it.nextTick(er,this)),or},ct.prototype.addListener=ct.prototype.on,ct.prototype.removeListener=function(Zt,Kt){var or=Et.prototype.removeListener.call(this,Zt,Kt);return Zt==="readable"&&it.nextTick(qt,this),or},ct.prototype.removeAllListeners=function(Zt){var Kt=Et.prototype.removeAllListeners.apply(this,arguments);return(Zt==="readable"||Zt===void 0)&&it.nextTick(qt,this),Kt};function qt(Zt){var Kt=Zt._readableState;Kt.readableListening=Zt.listenerCount("readable")>0,Kt.resumeScheduled&&!Kt.paused?Kt.flowing=!0:Zt.listenerCount("data")>0&&Zt.resume()}function er(Zt){rt("readable nexttick read 0"),Zt.read(0)}ct.prototype.resume=function(){var Zt=this._readableState;return Zt.flowing||(rt("resume"),Zt.flowing=!Zt.readableListening,lr(this,Zt)),Zt.paused=!1,this};function lr(Zt,Kt){Kt.resumeScheduled||(Kt.resumeScheduled=!0,it.nextTick(Jt,Zt,Kt))}function Jt(Zt,Kt){rt("resume",Kt.reading),Kt.reading||Zt.read(0),Kt.resumeScheduled=!1,Zt.emit("resume"),Yt(Zt),Kt.flowing&&!Kt.reading&&Zt.read(0)}ct.prototype.pause=function(){return rt("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(rt("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Yt(Zt){var Kt=Zt._readableState;for(rt("flow",Kt.flowing);Kt.flowing&&Zt.read()!==null;);}ct.prototype.wrap=function(Zt){var Kt=this,or=this._readableState,tr=!1;Zt.on("end",function(){if(rt("wrapped end"),or.decoder&&!or.ended){var br=or.decoder.end();br&&br.length&&Kt.push(br)}Kt.push(null)}),Zt.on("data",function(br){if(rt("wrapped data"),or.decoder&&(br=or.decoder.write(br)),!(or.objectMode&&br==null)&&!(!or.objectMode&&(!br||!br.length))){var Tr=Kt.push(br);Tr||(tr=!0,Zt.pause())}});for(var cr in Zt)this[cr]===void 0&&typeof Zt[cr]=="function"&&(this[cr]=function(Tr){return function(){return Zt[Tr].apply(Zt,arguments)}}(cr));for(var hr=0;hr=Kt.length?(Kt.decoder?or=Kt.buffer.join(""):Kt.buffer.length===1?or=Kt.buffer.first():or=Kt.buffer.concat(Kt.length),Kt.buffer.clear()):or=Kt.buffer.consume(Zt,Kt.decoder),or}function jt(Zt){var Kt=Zt._readableState;rt("endReadable",Kt.endEmitted),Kt.endEmitted||(Kt.ended=!0,it.nextTick(ar,Kt,Zt))}function ar(Zt,Kt){if(rt("endReadableNT",Zt.endEmitted,Zt.length),!Zt.endEmitted&&Zt.length===0&&(Zt.endEmitted=!0,Kt.readable=!1,Kt.emit("end"),Zt.autoDestroy)){var or=Kt._writableState;(!or||or.autoDestroy&&or.finished)&&Kt.destroy()}}typeof Symbol=="function"&&(ct.from=function(Zt,Kt){return _t===void 0&&(_t=o(90555)),_t(ct,Zt,Kt)});function sr(Zt,Kt){for(var or=0,tr=Zt.length;or-1))throw new St(rr);return this._writableState.defaultEncoding=rr,this},Object.defineProperty(wt.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function At(Yt,rr,jt){return!Yt.objectMode&&Yt.decodeStrings!==!1&&typeof rr=="string"&&(rr=ut.from(rr,jt)),rr}Object.defineProperty(wt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Ot(Yt,rr,jt,ar,sr,Zt){if(!jt){var Kt=At(rr,ar,sr);ar!==Kt&&(jt=!0,sr="buffer",ar=Kt)}var or=rr.objectMode?1:ar.length;rr.length+=or;var tr=rr.length0?this.tail.next=dt:this.head=dt,this.tail=dt,++this.length}},{key:"unshift",value:function(vt){var dt={data:vt,next:this.head};this.length===0&&(this.tail=dt),this.head=dt,++this.length}},{key:"shift",value:function(){if(this.length!==0){var vt=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,vt}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(vt){if(this.length===0)return"";for(var dt=this.head,bt=""+dt.data;dt=dt.next;)bt+=vt+dt.data;return bt}},{key:"concat",value:function(vt){if(this.length===0)return j.alloc(0);for(var dt=j.allocUnsafe(vt>>>0),bt=this.head,ft=0;bt;)st(bt.data,dt,ft),ft+=bt.data.length,bt=bt.next;return dt}},{key:"consume",value:function(vt,dt){var bt;return vtat.length?at.length:vt;if(yt===at.length?ft+=at:ft+=at.slice(0,vt),vt-=yt,vt===0){yt===at.length?(++bt,dt.next?this.head=dt.next:this.head=this.tail=null):(this.head=dt,dt.data=at.slice(yt));break}++bt}return this.length-=bt,ft}},{key:"_getBuffer",value:function(vt){var dt=j.allocUnsafe(vt),bt=this.head,ft=1;for(bt.data.copy(dt),vt-=bt.data.length;bt=bt.next;){var at=bt.data,yt=vt>at.length?at.length:vt;if(at.copy(dt,dt.length-vt,0,yt),vt-=yt,vt===0){yt===at.length?(++ft,bt.next?this.head=bt.next:this.head=this.tail=null):(this.head=bt,bt.data=at.slice(yt));break}++ft}return this.length-=ft,dt}},{key:tt,value:function(vt,dt){return rt(this,xt({},dt,{depth:0,customInspect:!1}))}}]),ot}()},55324:function(Ct,Rt,o){var it=o(4168);function xt(j,_){var rt=this,tt=this._readableState&&this._readableState.destroyed,st=this._writableState&&this._writableState.destroyed;return tt||st?(_?_(j):j&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,it.nextTick(ut,this,j)):it.nextTick(ut,this,j)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(j||null,function(ot){!_&&ot?rt._writableState?rt._writableState.errorEmitted?it.nextTick(Et,rt):(rt._writableState.errorEmitted=!0,it.nextTick(et,rt,ot)):it.nextTick(et,rt,ot):_?(it.nextTick(Et,rt),_(ot)):it.nextTick(Et,rt)}),this)}function et(j,_){ut(j,_),Et(j)}function Et(j){j._writableState&&!j._writableState.emitClose||j._readableState&&!j._readableState.emitClose||j.emit("close")}function mt(){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 ut(j,_){j.emit("error",_)}function ht(j,_){var rt=j._readableState,tt=j._writableState;rt&&rt.autoDestroy||tt&&tt.autoDestroy?j.destroy(_):j.emit("error",_)}Ct.exports={destroy:xt,undestroy:mt,errorOrDestroy:ht}},15932:function(Ct,Rt,o){var it=o(92784).i.ERR_STREAM_PREMATURE_CLOSE;function xt(ut){var ht=!1;return function(){if(!ht){ht=!0;for(var j=arguments.length,_=new Array(j),rt=0;rt0;return j(at,St,_t,function(Mt){bt||(bt=Mt),Mt&&ft.forEach(_),!St&&(ft.forEach(_),dt(bt))})});return nt.reduce(rt)}Ct.exports=st},24888:function(Ct,Rt,o){var it=o(92784).i.ERR_INVALID_OPT_VALUE;function xt(Et,mt,ut){return Et.highWaterMark!=null?Et.highWaterMark:mt?Et[ut]:null}function et(Et,mt,ut,ht){var j=xt(mt,ht,ut);if(j!=null){if(!(isFinite(j)&&Math.floor(j)===j)||j<0){var _=ht?ut:"highWaterMark";throw new it(_,j)}return Math.floor(j)}return Et.objectMode?16:16384}Ct.exports={getHighWaterMark:et}},4776:function(Ct,Rt,o){Ct.exports=o(61252).EventEmitter},86032:function(Ct,Rt,o){var it=o(30456).Buffer,xt=it.isEncoding||function(ft){switch(ft=""+ft,ft&&ft.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 et(ft){if(!ft)return"utf8";for(var at;;)switch(ft){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 ft;default:if(at)return;ft=(""+ft).toLowerCase(),at=!0}}function Et(ft){var at=et(ft);if(typeof at!="string"&&(it.isEncoding===xt||!xt(ft)))throw new Error("Unknown encoding: "+ft);return at||ft}Rt.o=mt;function mt(ft){this.encoding=Et(ft);var at;switch(this.encoding){case"utf16le":this.text=st,this.end=ot,at=4;break;case"utf8":this.fillLast=_,at=4;break;case"base64":this.text=nt,this.end=vt,at=3;break;default:this.write=dt,this.end=bt;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=it.allocUnsafe(at)}mt.prototype.write=function(ft){if(ft.length===0)return"";var at,yt;if(this.lastNeed){if(at=this.fillLast(ft),at===void 0)return"";yt=this.lastNeed,this.lastNeed=0}else yt=0;return yt>5===6?2:ft>>4===14?3:ft>>3===30?4:ft>>6===2?-1:-2}function ht(ft,at,yt){var St=at.length-1;if(St=0?(_t>0&&(ft.lastNeed=_t-1),_t):--St=0?(_t>0&&(ft.lastNeed=_t-2),_t):--St=0?(_t>0&&(_t===2?_t=0:ft.lastNeed=_t-3),_t):0))}function j(ft,at,yt){if((at[0]&192)!==128)return ft.lastNeed=0,"�";if(ft.lastNeed>1&&at.length>1){if((at[1]&192)!==128)return ft.lastNeed=1,"�";if(ft.lastNeed>2&&at.length>2&&(at[2]&192)!==128)return ft.lastNeed=2,"�"}}function _(ft){var at=this.lastTotal-this.lastNeed,yt=j(this,ft);if(yt!==void 0)return yt;if(this.lastNeed<=ft.length)return ft.copy(this.lastChar,at,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);ft.copy(this.lastChar,at,0,ft.length),this.lastNeed-=ft.length}function rt(ft,at){var yt=ht(this,ft,at);if(!this.lastNeed)return ft.toString("utf8",at);this.lastTotal=yt;var St=ft.length-(yt-this.lastNeed);return ft.copy(this.lastChar,0,St),ft.toString("utf8",at,St)}function tt(ft){var at=ft&&ft.length?this.write(ft):"";return this.lastNeed?at+"�":at}function st(ft,at){if((ft.length-at)%2===0){var yt=ft.toString("utf16le",at);if(yt){var St=yt.charCodeAt(yt.length-1);if(St>=55296&&St<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=ft[ft.length-2],this.lastChar[1]=ft[ft.length-1],yt.slice(0,-1)}return yt}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=ft[ft.length-1],ft.toString("utf16le",at,ft.length-1)}function ot(ft){var at=ft&&ft.length?this.write(ft):"";if(this.lastNeed){var yt=this.lastTotal-this.lastNeed;return at+this.lastChar.toString("utf16le",0,yt)}return at}function nt(ft,at){var yt=(ft.length-at)%3;return yt===0?ft.toString("base64",at):(this.lastNeed=3-yt,this.lastTotal=3,yt===1?this.lastChar[0]=ft[ft.length-1]:(this.lastChar[0]=ft[ft.length-2],this.lastChar[1]=ft[ft.length-1]),ft.toString("base64",at,ft.length-yt))}function vt(ft){var at=ft&&ft.length?this.write(ft):"";return this.lastNeed?at+this.lastChar.toString("base64",0,3-this.lastNeed):at}function dt(ft){return ft.toString(this.encoding)}function bt(ft){return ft&&ft.length?this.write(ft):""}},55619:function(Ct,Rt,o){var it=o(45408),xt=o(86844)("stream-parser");Ct.exports=ht;var et=-1,Et=0,mt=1,ut=2;function ht(ft){var at=ft&&typeof ft._transform=="function",yt=ft&&typeof ft._write=="function";if(!at&&!yt)throw new Error("must pass a Writable or Transform stream in");xt("extending Parser into stream"),ft._bytes=_,ft._skipBytes=rt,at&&(ft._passthrough=tt),at?ft._transform=ot:ft._write=st}function j(ft){xt("initializing parser stream"),ft._parserBytesLeft=0,ft._parserBuffers=[],ft._parserBuffered=0,ft._parserState=et,ft._parserCallback=null,typeof ft.push=="function"&&(ft._parserOutput=ft.push.bind(ft)),ft._parserInit=!0}function _(ft,at){it(!this._parserCallback,'there is already a "callback" set!'),it(isFinite(ft)&&ft>0,'can only buffer a finite number of bytes > 0, got "'+ft+'"'),this._parserInit||j(this),xt("buffering %o bytes",ft),this._parserBytesLeft=ft,this._parserCallback=at,this._parserState=Et}function rt(ft,at){it(!this._parserCallback,'there is already a "callback" set!'),it(ft>0,'can only skip > 0 bytes, got "'+ft+'"'),this._parserInit||j(this),xt("skipping %o bytes",ft),this._parserBytesLeft=ft,this._parserCallback=at,this._parserState=mt}function tt(ft,at){it(!this._parserCallback,'There is already a "callback" set!'),it(ft>0,'can only pass through > 0 bytes, got "'+ft+'"'),this._parserInit||j(this),xt("passing through %o bytes",ft),this._parserBytesLeft=ft,this._parserCallback=at,this._parserState=ut}function st(ft,at,yt){this._parserInit||j(this),xt("write(%o bytes)",ft.length),typeof at=="function"&&(yt=at),dt(this,ft,null,yt)}function ot(ft,at,yt){this._parserInit||j(this),xt("transform(%o bytes)",ft.length),typeof at!="function"&&(at=this._parserOutput),dt(this,ft,at,yt)}function nt(ft,at,yt,St){return ft._parserBytesLeft<=0?St(new Error("got data but not currently parsing anything")):at.length<=ft._parserBytesLeft?function(){return vt(ft,at,yt,St)}:function(){var _t=at.slice(0,ft._parserBytesLeft);return vt(ft,_t,yt,function(Mt){if(Mt)return St(Mt);if(at.length>_t.length)return function(){return nt(ft,at.slice(_t.length),yt,St)}})}}function vt(ft,at,yt,St){if(ft._parserBytesLeft-=at.length,xt("%o bytes left for stream piece",ft._parserBytesLeft),ft._parserState===Et?(ft._parserBuffers.push(at),ft._parserBuffered+=at.length):ft._parserState===ut&&yt(at),ft._parserBytesLeft===0){var _t=ft._parserCallback;if(_t&&ft._parserState===Et&&ft._parserBuffers.length>1&&(at=Buffer.concat(ft._parserBuffers,ft._parserBuffered)),ft._parserState!==Et&&(at=null),ft._parserCallback=null,ft._parserBuffered=0,ft._parserState=et,ft._parserBuffers.splice(0),_t){var Mt=[];at&&Mt.push(at),yt&&Mt.push(yt);var Tt=_t.length>Mt.length;Tt&&Mt.push(bt(St));var kt=_t.apply(ft,Mt);if(!Tt||St===kt)return St}}else return St}var dt=bt(nt);function bt(ft){return function(){for(var at=ft.apply(this,arguments);typeof at=="function";)at=at();return at}}},86844:function(Ct,Rt,o){var it=o(4168);Rt=Ct.exports=o(89416),Rt.log=Et,Rt.formatArgs=et,Rt.save=mt,Rt.load=ut,Rt.useColors=xt,Rt.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:ht(),Rt.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function xt(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}Rt.formatters.j=function(j){try{return JSON.stringify(j)}catch(_){return"[UnexpectedJSONParseError]: "+_.message}};function et(j){var _=this.useColors;if(j[0]=(_?"%c":"")+this.namespace+(_?" %c":" ")+j[0]+(_?"%c ":" ")+"+"+Rt.humanize(this.diff),!!_){var rt="color: "+this.color;j.splice(1,0,rt,"color: inherit");var tt=0,st=0;j[0].replace(/%[a-zA-Z%]/g,function(ot){ot!=="%%"&&(tt++,ot==="%c"&&(st=tt))}),j.splice(st,0,rt)}}function Et(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function mt(j){try{j==null?Rt.storage.removeItem("debug"):Rt.storage.debug=j}catch{}}function ut(){var j;try{j=Rt.storage.debug}catch{}return!j&&typeof it<"u"&&"env"in it&&(j={}.DEBUG),j}Rt.enable(ut());function ht(){try{return window.localStorage}catch{}}},89416:function(Ct,Rt,o){Rt=Ct.exports=et.debug=et.default=et,Rt.coerce=ht,Rt.disable=mt,Rt.enable=Et,Rt.enabled=ut,Rt.humanize=o(93744),Rt.names=[],Rt.skips=[],Rt.formatters={};var it;function xt(j){var _=0,rt;for(rt in j)_=(_<<5)-_+j.charCodeAt(rt),_|=0;return Rt.colors[Math.abs(_)%Rt.colors.length]}function et(j){function _(){if(_.enabled){var rt=_,tt=+new Date,st=tt-(it||tt);rt.diff=st,rt.prev=it,rt.curr=tt,it=tt;for(var ot=new Array(arguments.length),nt=0;nt0)return Et(j);if(rt==="number"&&isNaN(j)===!1)return _.long?ut(j):mt(j);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(j))};function Et(j){if(j=String(j),!(j.length>100)){var _=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(j);if(_){var rt=parseFloat(_[1]),tt=(_[2]||"ms").toLowerCase();switch(tt){case"years":case"year":case"yrs":case"yr":case"y":return rt*et;case"days":case"day":case"d":return rt*xt;case"hours":case"hour":case"hrs":case"hr":case"h":return rt*it;case"minutes":case"minute":case"mins":case"min":case"m":return rt*o;case"seconds":case"second":case"secs":case"sec":case"s":return rt*Rt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return rt;default:return}}}}function mt(j){return j>=xt?Math.round(j/xt)+"d":j>=it?Math.round(j/it)+"h":j>=o?Math.round(j/o)+"m":j>=Rt?Math.round(j/Rt)+"s":j+"ms"}function ut(j){return ht(j,xt,"day")||ht(j,it,"hour")||ht(j,o,"minute")||ht(j,Rt,"second")||j+" ms"}function ht(j,_,rt){if(!(j<_))return j<_*1.5?Math.floor(j/_)+" "+rt:Math.ceil(j/_)+" "+rt+"s"}},39956:function(Ct,Rt,o){var it=o(32868);Ct.exports=function(et,Et,mt){if(et==null)throw Error("First argument should be a string");if(Et==null)throw Error("Separator should be a string or a RegExp");mt?(typeof mt=="string"||Array.isArray(mt))&&(mt={ignore:mt}):mt={},mt.escape==null&&(mt.escape=!0),mt.ignore==null?mt.ignore=["[]","()","{}","<>",'""',"''","``","“”","«»"]:(typeof mt.ignore=="string"&&(mt.ignore=[mt.ignore]),mt.ignore=mt.ignore.map(function(ot){return ot.length===1&&(ot=ot+ot),ot}));var ut=it.parse(et,{flat:!0,brackets:mt.ignore}),ht=ut[0],j=ht.split(Et);if(mt.escape){for(var _=[],rt=0;rt0;){dt=ft[ft.length-1];var at=o[dt];if(mt[dt]=0&&ht[dt].push(ut[St])}mt[dt]=yt}else{if(et[dt]===xt[dt]){for(var _t=[],Mt=[],Tt=0,yt=bt.length-1;yt>=0;--yt){var kt=bt[yt];if(Et[kt]=!1,_t.push(kt),Mt.push(ht[kt]),Tt+=ht[kt].length,ut[kt]=rt.length,kt===dt){bt.length=yt;break}}rt.push(_t);for(var wt=new Array(Tt),yt=0;yt1&&(nt=1),nt<-1&&(nt=-1),ot*Math.acos(nt)},ut=function(_,rt,tt,st,ot,nt,vt,dt,bt,ft,at,yt){var St=Math.pow(ot,2),_t=Math.pow(nt,2),Mt=Math.pow(at,2),Tt=Math.pow(yt,2),kt=St*_t-St*Tt-_t*Mt;kt<0&&(kt=0),kt/=St*Tt+_t*Mt,kt=Math.sqrt(kt)*(vt===dt?-1:1);var wt=kt*ot/nt*yt,ct=kt*-nt/ot*at,It=ft*wt-bt*ct+(_+tt)/2,At=bt*wt+ft*ct+(rt+st)/2,Ot=(at-wt)/ot,Pt=(yt-ct)/nt,zt=(-at-wt)/ot,Dt=(-yt-ct)/nt,Nt=mt(1,0,Ot,Pt),$t=mt(Ot,Pt,zt,Dt);return dt===0&&$t>0&&($t-=xt),dt===1&&$t<0&&($t+=xt),[It,At,Nt,$t]},ht=function(_){var rt=_.px,tt=_.py,st=_.cx,ot=_.cy,nt=_.rx,vt=_.ry,dt=_.xAxisRotation,bt=dt===void 0?0:dt,ft=_.largeArcFlag,at=ft===void 0?0:ft,yt=_.sweepFlag,St=yt===void 0?0:yt,_t=[];if(nt===0||vt===0)return[];var Mt=Math.sin(bt*xt/360),Tt=Math.cos(bt*xt/360),kt=Tt*(rt-st)/2+Mt*(tt-ot)/2,wt=-Mt*(rt-st)/2+Tt*(tt-ot)/2;if(kt===0&&wt===0)return[];nt=Math.abs(nt),vt=Math.abs(vt);var ct=Math.pow(kt,2)/Math.pow(nt,2)+Math.pow(wt,2)/Math.pow(vt,2);ct>1&&(nt*=Math.sqrt(ct),vt*=Math.sqrt(ct));var It=ut(rt,tt,st,ot,nt,vt,at,St,Mt,Tt,kt,wt),At=it(It,4),Ot=At[0],Pt=At[1],zt=At[2],Dt=At[3],Nt=Math.abs(Dt)/(xt/4);Math.abs(1-Nt)<1e-7&&(Nt=1);var $t=Math.max(Math.ceil(Nt),1);Dt/=$t;for(var Ut=0;Ut<$t;Ut++)_t.push(Et(zt,Dt)),zt+=Dt;return _t.map(function(Ht){var Vt=et(Ht[0],nt,vt,Tt,Mt,Ot,Pt),Xt=Vt.x,qt=Vt.y,er=et(Ht[1],nt,vt,Tt,Mt,Ot,Pt),lr=er.x,Jt=er.y,Yt=et(Ht[2],nt,vt,Tt,Mt,Ot,Pt),rr=Yt.x,jt=Yt.y;return{x1:Xt,y1:qt,x2:lr,y2:Jt,x:rr,y:jt}})};Rt.default=ht},74840:function(Ct,Rt,o){var it=o(21984),xt=o(49972),et=o(41976),Et=o(53520),mt=o(45408);Ct.exports=ut;function ut(ht){if(Array.isArray(ht)&&ht.length===1&&typeof ht[0]=="string"&&(ht=ht[0]),typeof ht=="string"&&(mt(Et(ht),"String is not an SVG path."),ht=it(ht)),mt(Array.isArray(ht),"Argument should be a string or an array of path segments."),ht=xt(ht),ht=et(ht),!ht.length)return[0,0,0,0];for(var j=[1/0,1/0,-1/0,-1/0],_=0,rt=ht.length;_j[2]&&(j[2]=tt[st+0]),tt[st+1]>j[3]&&(j[3]=tt[st+1]);return j}},41976:function(Ct,Rt,o){Ct.exports=xt;var it=o(92848);function xt(mt){for(var ut,ht=[],j=0,_=0,rt=0,tt=0,st=null,ot=null,nt=0,vt=0,dt=0,bt=mt.length;dt4?(j=ft[ft.length-4],_=ft[ft.length-3]):(j=nt,_=vt),ht.push(ft)}return ht}function et(mt,ut,ht,j){return["C",mt,ut,ht,j,ht,j]}function Et(mt,ut,ht,j,_,rt){return["C",mt/3+.6666666666666666*ht,ut/3+.6666666666666666*j,_/3+.6666666666666666*ht,rt/3+.6666666666666666*j,_,rt]}},20472:function(Ct,Rt,o){var it=o(74840),xt=o(21984),et=o(22235),Et=o(53520),mt=o(29620),ut=document.createElement("canvas"),ht=ut.getContext("2d");Ct.exports=j;function j(tt,st){if(!Et(tt))throw Error("Argument should be valid svg path string");st||(st={});var ot,nt;st.shape?(ot=st.shape[0],nt=st.shape[1]):(ot=ut.width=st.w||st.width||200,nt=ut.height=st.h||st.height||200);var vt=Math.min(ot,nt),dt=st.stroke||0,bt=st.viewbox||st.viewBox||it(tt),ft=[ot/(bt[2]-bt[0]),nt/(bt[3]-bt[1])],at=Math.min(ft[0]||0,ft[1]||0)/2;if(ht.fillStyle="black",ht.fillRect(0,0,ot,nt),ht.fillStyle="white",dt&&(typeof dt!="number"&&(dt=1),dt>0?ht.strokeStyle="white":ht.strokeStyle="black",ht.lineWidth=Math.abs(dt)),ht.translate(ot*.5,nt*.5),ht.scale(at,at),rt()){var yt=new Path2D(tt);ht.fill(yt),dt&&ht.stroke(yt)}else{var St=xt(tt);et(ht,St),ht.fill(),dt&&ht.stroke()}ht.setTransform(1,0,0,1,0,0);var _t=mt(ht,{cutoff:st.cutoff!=null?st.cutoff:.5,radius:st.radius!=null?st.radius:vt*.5});return _t}var _;function rt(){if(_!=null)return _;var tt=document.createElement("canvas").getContext("2d");if(tt.canvas.width=tt.canvas.height=1,!window.Path2D)return _=!1;var st=new Path2D("M0,0h1v1h-1v-1Z");tt.fillStyle="black",tt.fill(st);var ot=tt.getImageData(0,0,1,1);return _=ot&&ot.data&&ot.data[3]===255}},49760:function(Ct,Rt,o){var it;(function(xt){var et=/^\s+/,Et=/\s+$/,mt=0,ut=xt.round,ht=xt.min,j=xt.max,_=xt.random;function rt(Kt,or){if(Kt=Kt||"",or=or||{},Kt instanceof rt)return Kt;if(!(this instanceof rt))return new rt(Kt,or);var tr=tt(Kt);this._originalInput=Kt,this._r=tr.r,this._g=tr.g,this._b=tr.b,this._a=tr.a,this._roundA=ut(100*this._a)/100,this._format=or.format||tr.format,this._gradientType=or.gradientType,this._r<1&&(this._r=ut(this._r)),this._g<1&&(this._g=ut(this._g)),this._b<1&&(this._b=ut(this._b)),this._ok=tr.ok,this._tc_id=mt++}rt.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Kt=this.toRgb();return(Kt.r*299+Kt.g*587+Kt.b*114)/1e3},getLuminance:function(){var Kt=this.toRgb(),or,tr,cr,hr,br,Tr;return or=Kt.r/255,tr=Kt.g/255,cr=Kt.b/255,or<=.03928?hr=or/12.92:hr=xt.pow((or+.055)/1.055,2.4),tr<=.03928?br=tr/12.92:br=xt.pow((tr+.055)/1.055,2.4),cr<=.03928?Tr=cr/12.92:Tr=xt.pow((cr+.055)/1.055,2.4),.2126*hr+.7152*br+.0722*Tr},setAlpha:function(Kt){return this._a=Ut(Kt),this._roundA=ut(100*this._a)/100,this},toHsv:function(){var Kt=vt(this._r,this._g,this._b);return{h:Kt.h*360,s:Kt.s,v:Kt.v,a:this._a}},toHsvString:function(){var Kt=vt(this._r,this._g,this._b),or=ut(Kt.h*360),tr=ut(Kt.s*100),cr=ut(Kt.v*100);return this._a==1?"hsv("+or+", "+tr+"%, "+cr+"%)":"hsva("+or+", "+tr+"%, "+cr+"%, "+this._roundA+")"},toHsl:function(){var Kt=ot(this._r,this._g,this._b);return{h:Kt.h*360,s:Kt.s,l:Kt.l,a:this._a}},toHslString:function(){var Kt=ot(this._r,this._g,this._b),or=ut(Kt.h*360),tr=ut(Kt.s*100),cr=ut(Kt.l*100);return this._a==1?"hsl("+or+", "+tr+"%, "+cr+"%)":"hsla("+or+", "+tr+"%, "+cr+"%, "+this._roundA+")"},toHex:function(Kt){return bt(this._r,this._g,this._b,Kt)},toHexString:function(Kt){return"#"+this.toHex(Kt)},toHex8:function(Kt){return ft(this._r,this._g,this._b,this._a,Kt)},toHex8String:function(Kt){return"#"+this.toHex8(Kt)},toRgb:function(){return{r:ut(this._r),g:ut(this._g),b:ut(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+ut(this._r)+", "+ut(this._g)+", "+ut(this._b)+")":"rgba("+ut(this._r)+", "+ut(this._g)+", "+ut(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:ut(Ht(this._r,255)*100)+"%",g:ut(Ht(this._g,255)*100)+"%",b:ut(Ht(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+ut(Ht(this._r,255)*100)+"%, "+ut(Ht(this._g,255)*100)+"%, "+ut(Ht(this._b,255)*100)+"%)":"rgba("+ut(Ht(this._r,255)*100)+"%, "+ut(Ht(this._g,255)*100)+"%, "+ut(Ht(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Nt[bt(this._r,this._g,this._b,!0)]||!1},toFilter:function(Kt){var or="#"+at(this._r,this._g,this._b,this._a),tr=or,cr=this._gradientType?"GradientType = 1, ":"";if(Kt){var hr=rt(Kt);tr="#"+at(hr._r,hr._g,hr._b,hr._a)}return"progid:DXImageTransform.Microsoft.gradient("+cr+"startColorstr="+or+",endColorstr="+tr+")"},toString:function(Kt){var or=!!Kt;Kt=Kt||this._format;var tr=!1,cr=this._a<1&&this._a>=0,hr=!or&&cr&&(Kt==="hex"||Kt==="hex6"||Kt==="hex3"||Kt==="hex4"||Kt==="hex8"||Kt==="name");return hr?Kt==="name"&&this._a===0?this.toName():this.toRgbString():(Kt==="rgb"&&(tr=this.toRgbString()),Kt==="prgb"&&(tr=this.toPercentageRgbString()),(Kt==="hex"||Kt==="hex6")&&(tr=this.toHexString()),Kt==="hex3"&&(tr=this.toHexString(!0)),Kt==="hex4"&&(tr=this.toHex8String(!0)),Kt==="hex8"&&(tr=this.toHex8String()),Kt==="name"&&(tr=this.toName()),Kt==="hsl"&&(tr=this.toHslString()),Kt==="hsv"&&(tr=this.toHsvString()),tr||this.toHexString())},clone:function(){return rt(this.toString())},_applyModification:function(Kt,or){var tr=Kt.apply(null,[this].concat([].slice.call(or)));return this._r=tr._r,this._g=tr._g,this._b=tr._b,this.setAlpha(tr._a),this},lighten:function(){return this._applyModification(Mt,arguments)},brighten:function(){return this._applyModification(Tt,arguments)},darken:function(){return this._applyModification(kt,arguments)},desaturate:function(){return this._applyModification(yt,arguments)},saturate:function(){return this._applyModification(St,arguments)},greyscale:function(){return this._applyModification(_t,arguments)},spin:function(){return this._applyModification(wt,arguments)},_applyCombination:function(Kt,or){return Kt.apply(null,[this].concat([].slice.call(or)))},analogous:function(){return this._applyCombination(Pt,arguments)},complement:function(){return this._applyCombination(ct,arguments)},monochromatic:function(){return this._applyCombination(zt,arguments)},splitcomplement:function(){return this._applyCombination(Ot,arguments)},triad:function(){return this._applyCombination(It,arguments)},tetrad:function(){return this._applyCombination(At,arguments)}},rt.fromRatio=function(Kt,or){if(typeof Kt=="object"){var tr={};for(var cr in Kt)Kt.hasOwnProperty(cr)&&(cr==="a"?tr[cr]=Kt[cr]:tr[cr]=Jt(Kt[cr]));Kt=tr}return rt(Kt,or)};function tt(Kt){var or={r:0,g:0,b:0},tr=1,cr=null,hr=null,br=null,Tr=!1,Ir=!1;return typeof Kt=="string"&&(Kt=sr(Kt)),typeof Kt=="object"&&(ar(Kt.r)&&ar(Kt.g)&&ar(Kt.b)?(or=st(Kt.r,Kt.g,Kt.b),Tr=!0,Ir=String(Kt.r).substr(-1)==="%"?"prgb":"rgb"):ar(Kt.h)&&ar(Kt.s)&&ar(Kt.v)?(cr=Jt(Kt.s),hr=Jt(Kt.v),or=dt(Kt.h,cr,hr),Tr=!0,Ir="hsv"):ar(Kt.h)&&ar(Kt.s)&&ar(Kt.l)&&(cr=Jt(Kt.s),br=Jt(Kt.l),or=nt(Kt.h,cr,br),Tr=!0,Ir="hsl"),Kt.hasOwnProperty("a")&&(tr=Kt.a)),tr=Ut(tr),{ok:Tr,format:Kt.format||Ir,r:ht(255,j(or.r,0)),g:ht(255,j(or.g,0)),b:ht(255,j(or.b,0)),a:tr}}function st(Kt,or,tr){return{r:Ht(Kt,255)*255,g:Ht(or,255)*255,b:Ht(tr,255)*255}}function ot(Kt,or,tr){Kt=Ht(Kt,255),or=Ht(or,255),tr=Ht(tr,255);var cr=j(Kt,or,tr),hr=ht(Kt,or,tr),br,Tr,Ir=(cr+hr)/2;if(cr==hr)br=Tr=0;else{var Ar=cr-hr;switch(Tr=Ir>.5?Ar/(2-cr-hr):Ar/(cr+hr),cr){case Kt:br=(or-tr)/Ar+(or1&&(Rr-=1),Rr<.16666666666666666?_r+(Er-_r)*6*Rr:Rr<.5?Er:Rr<.6666666666666666?_r+(Er-_r)*(.6666666666666666-Rr)*6:_r}if(or===0)cr=hr=br=tr;else{var Ir=tr<.5?tr*(1+or):tr+or-tr*or,Ar=2*tr-Ir;cr=Tr(Ar,Ir,Kt+.3333333333333333),hr=Tr(Ar,Ir,Kt),br=Tr(Ar,Ir,Kt-.3333333333333333)}return{r:cr*255,g:hr*255,b:br*255}}function vt(Kt,or,tr){Kt=Ht(Kt,255),or=Ht(or,255),tr=Ht(tr,255);var cr=j(Kt,or,tr),hr=ht(Kt,or,tr),br,Tr,Ir=cr,Ar=cr-hr;if(Tr=cr===0?0:Ar/cr,cr==hr)br=0;else{switch(cr){case Kt:br=(or-tr)/Ar+(or>1)+720)%360;--or;)cr.h=(cr.h+hr)%360,br.push(rt(cr));return br}function zt(Kt,or){or=or||6;for(var tr=rt(Kt).toHsv(),cr=tr.h,hr=tr.s,br=tr.v,Tr=[],Ir=1/or;or--;)Tr.push(rt({h:cr,s:hr,v:br})),br=(br+Ir)%1;return Tr}rt.mix=function(Kt,or,tr){tr=tr===0?0:tr||50;var cr=rt(Kt).toRgb(),hr=rt(or).toRgb(),br=tr/100,Tr={r:(hr.r-cr.r)*br+cr.r,g:(hr.g-cr.g)*br+cr.g,b:(hr.b-cr.b)*br+cr.b,a:(hr.a-cr.a)*br+cr.a};return rt(Tr)},rt.readability=function(Kt,or){var tr=rt(Kt),cr=rt(or);return(xt.max(tr.getLuminance(),cr.getLuminance())+.05)/(xt.min(tr.getLuminance(),cr.getLuminance())+.05)},rt.isReadable=function(Kt,or,tr){var cr=rt.readability(Kt,or),hr,br;switch(br=!1,hr=Zt(tr),hr.level+hr.size){case"AAsmall":case"AAAlarge":br=cr>=4.5;break;case"AAlarge":br=cr>=3;break;case"AAAsmall":br=cr>=7;break}return br},rt.mostReadable=function(Kt,or,tr){var cr=null,hr=0,br,Tr,Ir,Ar;tr=tr||{},Tr=tr.includeFallbackColors,Ir=tr.level,Ar=tr.size;for(var _r=0;_rhr&&(hr=br,cr=rt(or[_r]));return rt.isReadable(Kt,cr,{level:Ir,size:Ar})||!Tr?cr:(tr.includeFallbackColors=!1,rt.mostReadable(Kt,["#fff","#000"],tr))};var Dt=rt.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Nt=rt.hexNames=$t(Dt);function $t(Kt){var or={};for(var tr in Kt)Kt.hasOwnProperty(tr)&&(or[Kt[tr]]=tr);return or}function Ut(Kt){return Kt=parseFloat(Kt),(isNaN(Kt)||Kt<0||Kt>1)&&(Kt=1),Kt}function Ht(Kt,or){qt(Kt)&&(Kt="100%");var tr=er(Kt);return Kt=ht(or,j(0,parseFloat(Kt))),tr&&(Kt=parseInt(Kt*or,10)/100),xt.abs(Kt-or)<1e-6?1:Kt%or/parseFloat(or)}function Vt(Kt){return ht(1,j(0,Kt))}function Xt(Kt){return parseInt(Kt,16)}function qt(Kt){return typeof Kt=="string"&&Kt.indexOf(".")!=-1&&parseFloat(Kt)===1}function er(Kt){return typeof Kt=="string"&&Kt.indexOf("%")!=-1}function lr(Kt){return Kt.length==1?"0"+Kt:""+Kt}function Jt(Kt){return Kt<=1&&(Kt=Kt*100+"%"),Kt}function Yt(Kt){return xt.round(parseFloat(Kt)*255).toString(16)}function rr(Kt){return Xt(Kt)/255}var jt=function(){var Kt="[-\\+]?\\d+%?",or="[-\\+]?\\d*\\.\\d+%?",tr="(?:"+or+")|(?:"+Kt+")",cr="[\\s|\\(]+("+tr+")[,|\\s]+("+tr+")[,|\\s]+("+tr+")\\s*\\)?",hr="[\\s|\\(]+("+tr+")[,|\\s]+("+tr+")[,|\\s]+("+tr+")[,|\\s]+("+tr+")\\s*\\)?";return{CSS_UNIT:new RegExp(tr),rgb:new RegExp("rgb"+cr),rgba:new RegExp("rgba"+hr),hsl:new RegExp("hsl"+cr),hsla:new RegExp("hsla"+hr),hsv:new RegExp("hsv"+cr),hsva:new RegExp("hsva"+hr),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ar(Kt){return!!jt.CSS_UNIT.exec(Kt)}function sr(Kt){Kt=Kt.replace(et,"").replace(Et,"").toLowerCase();var or=!1;if(Dt[Kt])Kt=Dt[Kt],or=!0;else if(Kt=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var tr;return(tr=jt.rgb.exec(Kt))?{r:tr[1],g:tr[2],b:tr[3]}:(tr=jt.rgba.exec(Kt))?{r:tr[1],g:tr[2],b:tr[3],a:tr[4]}:(tr=jt.hsl.exec(Kt))?{h:tr[1],s:tr[2],l:tr[3]}:(tr=jt.hsla.exec(Kt))?{h:tr[1],s:tr[2],l:tr[3],a:tr[4]}:(tr=jt.hsv.exec(Kt))?{h:tr[1],s:tr[2],v:tr[3]}:(tr=jt.hsva.exec(Kt))?{h:tr[1],s:tr[2],v:tr[3],a:tr[4]}:(tr=jt.hex8.exec(Kt))?{r:Xt(tr[1]),g:Xt(tr[2]),b:Xt(tr[3]),a:rr(tr[4]),format:or?"name":"hex8"}:(tr=jt.hex6.exec(Kt))?{r:Xt(tr[1]),g:Xt(tr[2]),b:Xt(tr[3]),format:or?"name":"hex"}:(tr=jt.hex4.exec(Kt))?{r:Xt(tr[1]+""+tr[1]),g:Xt(tr[2]+""+tr[2]),b:Xt(tr[3]+""+tr[3]),a:rr(tr[4]+""+tr[4]),format:or?"name":"hex8"}:(tr=jt.hex3.exec(Kt))?{r:Xt(tr[1]+""+tr[1]),g:Xt(tr[2]+""+tr[2]),b:Xt(tr[3]+""+tr[3]),format:or?"name":"hex"}:!1}function Zt(Kt){var or,tr;return Kt=Kt||{level:"AA",size:"small"},or=(Kt.level||"AA").toUpperCase(),tr=(Kt.size||"small").toLowerCase(),or!=="AA"&&or!=="AAA"&&(or="AA"),tr!=="small"&&tr!=="large"&&(tr="small"),{level:or,size:tr}}Ct.exports?Ct.exports=rt:(it=function(){return rt}.call(Rt,o,Rt,Ct),it!==void 0&&(Ct.exports=it))})(Math)},37816:function(Ct){Ct.exports=it,Ct.exports.float32=Ct.exports.float=it,Ct.exports.fract32=Ct.exports.fract=o;var Rt=new Float32Array(1);function o(xt,et){if(xt.length){if(xt instanceof Float32Array)return new Float32Array(xt.length);et instanceof Float32Array||(et=it(xt));for(var Et=0,mt=et.length;Et":(Et.length>100&&(Et=Et.slice(0,99)+"…"),Et=Et.replace(xt,function(mt){switch(mt){case` -`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),Et)}},7328:function(Ct,Rt,o){var it=o(81680),xt={object:!0,function:!0,undefined:!0};Ct.exports=function(et){return it(et)?hasOwnProperty.call(xt,typeof et):!1}},87396:function(Ct,Rt,o){var it=o(57980),xt=o(85488);Ct.exports=function(et){return xt(et)?et:it(et,"%v is not a plain function",arguments[1])}},85488:function(Ct,Rt,o){var it=o(73384),xt=/^\s*class[\s{/}]/,et=Function.prototype.toString;Ct.exports=function(Et){return!(!it(Et)||xt.test(et.call(Et)))}},54612:function(Ct,Rt,o){var it=o(7328);Ct.exports=function(xt){if(!it(xt))return!1;try{return xt.constructor?xt.constructor.prototype===xt:!1}catch{return!1}}},33940:function(Ct,Rt,o){var it=o(81680),xt=o(7328),et=Object.prototype.toString;Ct.exports=function(Et){if(!it(Et))return null;if(xt(Et)){var mt=Et.toString;if(typeof mt!="function"||mt===et)return null}try{return""+Et}catch{return null}}},18496:function(Ct,Rt,o){var it=o(57980),xt=o(81680);Ct.exports=function(et){return xt(et)?et:it(et,"Cannot use %v",arguments[1])}},81680:function(Ct){var Rt=void 0;Ct.exports=function(o){return o!==Rt&&o!==null}},14144:function(Ct,Rt,o){var it=o(308),xt=o(10352),et=o(33576).Buffer;o.g.__TYPEDARRAY_POOL||(o.g.__TYPEDARRAY_POOL={UINT8:xt([32,0]),UINT16:xt([32,0]),UINT32:xt([32,0]),BIGUINT64:xt([32,0]),INT8:xt([32,0]),INT16:xt([32,0]),INT32:xt([32,0]),BIGINT64:xt([32,0]),FLOAT:xt([32,0]),DOUBLE:xt([32,0]),DATA:xt([32,0]),UINT8C:xt([32,0]),BUFFER:xt([32,0])});var Et=typeof Uint8ClampedArray<"u",mt=typeof BigUint64Array<"u",ut=typeof BigInt64Array<"u",ht=o.g.__TYPEDARRAY_POOL;ht.UINT8C||(ht.UINT8C=xt([32,0])),ht.BIGUINT64||(ht.BIGUINT64=xt([32,0])),ht.BIGINT64||(ht.BIGINT64=xt([32,0])),ht.BUFFER||(ht.BUFFER=xt([32,0]));var j=ht.DATA,_=ht.BUFFER;Rt.free=function(ct){if(et.isBuffer(ct))_[it.log2(ct.length)].push(ct);else{if(Object.prototype.toString.call(ct)!=="[object ArrayBuffer]"&&(ct=ct.buffer),!ct)return;var It=ct.length||ct.byteLength,At=it.log2(It)|0;j[At].push(ct)}};function rt(wt){if(wt){var ct=wt.length||wt.byteLength,It=it.log2(ct);j[It].push(wt)}}function tt(wt){rt(wt.buffer)}Rt.freeUint8=Rt.freeUint16=Rt.freeUint32=Rt.freeBigUint64=Rt.freeInt8=Rt.freeInt16=Rt.freeInt32=Rt.freeBigInt64=Rt.freeFloat32=Rt.freeFloat=Rt.freeFloat64=Rt.freeDouble=Rt.freeUint8Clamped=Rt.freeDataView=tt,Rt.freeArrayBuffer=rt,Rt.freeBuffer=function(ct){_[it.log2(ct.length)].push(ct)},Rt.malloc=function(ct,It){if(It===void 0||It==="arraybuffer")return st(ct);switch(It){case"uint8":return ot(ct);case"uint16":return nt(ct);case"uint32":return vt(ct);case"int8":return dt(ct);case"int16":return bt(ct);case"int32":return ft(ct);case"float":case"float32":return at(ct);case"double":case"float64":return yt(ct);case"uint8_clamped":return St(ct);case"bigint64":return Mt(ct);case"biguint64":return _t(ct);case"buffer":return kt(ct);case"data":case"dataview":return Tt(ct);default:return null}return null};function st(ct){var ct=it.nextPow2(ct),It=it.log2(ct),At=j[It];return At.length>0?At.pop():new ArrayBuffer(ct)}Rt.mallocArrayBuffer=st;function ot(wt){return new Uint8Array(st(wt),0,wt)}Rt.mallocUint8=ot;function nt(wt){return new Uint16Array(st(2*wt),0,wt)}Rt.mallocUint16=nt;function vt(wt){return new Uint32Array(st(4*wt),0,wt)}Rt.mallocUint32=vt;function dt(wt){return new Int8Array(st(wt),0,wt)}Rt.mallocInt8=dt;function bt(wt){return new Int16Array(st(2*wt),0,wt)}Rt.mallocInt16=bt;function ft(wt){return new Int32Array(st(4*wt),0,wt)}Rt.mallocInt32=ft;function at(wt){return new Float32Array(st(4*wt),0,wt)}Rt.mallocFloat32=Rt.mallocFloat=at;function yt(wt){return new Float64Array(st(8*wt),0,wt)}Rt.mallocFloat64=Rt.mallocDouble=yt;function St(wt){return Et?new Uint8ClampedArray(st(wt),0,wt):ot(wt)}Rt.mallocUint8Clamped=St;function _t(wt){return mt?new BigUint64Array(st(8*wt),0,wt):null}Rt.mallocBigUint64=_t;function Mt(wt){return ut?new BigInt64Array(st(8*wt),0,wt):null}Rt.mallocBigInt64=Mt;function Tt(wt){return new DataView(st(wt),0,wt)}Rt.mallocDataView=Tt;function kt(wt){wt=it.nextPow2(wt);var ct=it.log2(wt),It=_[ct];return It.length>0?It.pop():new et(wt)}Rt.mallocBuffer=kt,Rt.clearCache=function(){for(var ct=0;ct<32;++ct)ht.UINT8[ct].length=0,ht.UINT16[ct].length=0,ht.UINT32[ct].length=0,ht.INT8[ct].length=0,ht.INT16[ct].length=0,ht.INT32[ct].length=0,ht.FLOAT[ct].length=0,ht.DOUBLE[ct].length=0,ht.BIGUINT64[ct].length=0,ht.BIGINT64[ct].length=0,ht.UINT8C[ct].length=0,j[ct].length=0,_[ct].length=0}},92384:function(Ct){var Rt=/[\'\"]/;Ct.exports=function(it){return it?(Rt.test(it.charAt(0))&&(it=it.substr(1)),Rt.test(it.charAt(it.length-1))&&(it=it.substr(0,it.length-1)),it):""}},45223:function(Ct){Ct.exports=function(o,it,xt){Array.isArray(xt)||(xt=[].slice.call(arguments,2));for(var et=0,Et=xt.length;et"u"?!1:It.working?It(br):br instanceof Map}Rt.isMap=At;function Ot(br){return j(br)==="[object Set]"}Ot.working=typeof Set<"u"&&Ot(new Set);function Pt(br){return typeof Set>"u"?!1:Ot.working?Ot(br):br instanceof Set}Rt.isSet=Pt;function zt(br){return j(br)==="[object WeakMap]"}zt.working=typeof WeakMap<"u"&&zt(new WeakMap);function Dt(br){return typeof WeakMap>"u"?!1:zt.working?zt(br):br instanceof WeakMap}Rt.isWeakMap=Dt;function Nt(br){return j(br)==="[object WeakSet]"}Nt.working=typeof WeakSet<"u"&&Nt(new WeakSet);function $t(br){return Nt(br)}Rt.isWeakSet=$t;function Ut(br){return j(br)==="[object ArrayBuffer]"}Ut.working=typeof ArrayBuffer<"u"&&Ut(new ArrayBuffer);function Ht(br){return typeof ArrayBuffer>"u"?!1:Ut.working?Ut(br):br instanceof ArrayBuffer}Rt.isArrayBuffer=Ht;function Vt(br){return j(br)==="[object DataView]"}Vt.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Vt(new DataView(new ArrayBuffer(1),0,1));function Xt(br){return typeof DataView>"u"?!1:Vt.working?Vt(br):br instanceof DataView}Rt.isDataView=Xt;var qt=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function er(br){return j(br)==="[object SharedArrayBuffer]"}function lr(br){return typeof qt>"u"?!1:(typeof er.working>"u"&&(er.working=er(new qt)),er.working?er(br):br instanceof qt)}Rt.isSharedArrayBuffer=lr;function Jt(br){return j(br)==="[object AsyncFunction]"}Rt.isAsyncFunction=Jt;function Yt(br){return j(br)==="[object Map Iterator]"}Rt.isMapIterator=Yt;function rr(br){return j(br)==="[object Set Iterator]"}Rt.isSetIterator=rr;function jt(br){return j(br)==="[object Generator]"}Rt.isGeneratorObject=jt;function ar(br){return j(br)==="[object WebAssembly.Module]"}Rt.isWebAssemblyCompiledModule=ar;function sr(br){return nt(br,_)}Rt.isNumberObject=sr;function Zt(br){return nt(br,rt)}Rt.isStringObject=Zt;function Kt(br){return nt(br,tt)}Rt.isBooleanObject=Kt;function or(br){return ut&&nt(br,st)}Rt.isBigIntObject=or;function tr(br){return ht&&nt(br,ot)}Rt.isSymbolObject=tr;function cr(br){return sr(br)||Zt(br)||Kt(br)||or(br)||tr(br)}Rt.isBoxedPrimitive=cr;function hr(br){return typeof Uint8Array<"u"&&(Ht(br)||lr(br))}Rt.isAnyArrayBuffer=hr,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(br){Object.defineProperty(Rt,br,{enumerable:!1,value:function(){throw new Error(br+" is not supported in userland")}})})},35840:function(Ct,Rt,o){var it=o(4168),xt=Object.getOwnPropertyDescriptors||function(qt){for(var er=Object.keys(qt),lr={},Jt=0;Jt=Jt)return jt;switch(jt){case"%s":return String(lr[er++]);case"%d":return Number(lr[er++]);case"%j":try{return JSON.stringify(lr[er++])}catch{return"[Circular]"}default:return jt}}),rr=lr[er];er"u")return function(){return Rt.deprecate(Xt,qt).apply(this,arguments)};var er=!1;function lr(){if(!er){if(it.throwDeprecation)throw new Error(qt);it.traceDeprecation?console.trace(qt):console.error(qt),er=!0}return Xt.apply(this,arguments)}return lr};var Et={},mt=/^$/;if({}.NODE_DEBUG){var ut={}.NODE_DEBUG;ut=ut.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),mt=new RegExp("^"+ut+"$","i")}Rt.debuglog=function(Xt){if(Xt=Xt.toUpperCase(),!Et[Xt])if(mt.test(Xt)){var qt=it.pid;Et[Xt]=function(){var er=Rt.format.apply(Rt,arguments);console.error("%s %d: %s",Xt,qt,er)}}else Et[Xt]=function(){};return Et[Xt]};function ht(Xt,qt){var er={seen:[],stylize:_};return arguments.length>=3&&(er.depth=arguments[2]),arguments.length>=4&&(er.colors=arguments[3]),ft(qt)?er.showHidden=qt:qt&&Rt._extend(er,qt),Tt(er.showHidden)&&(er.showHidden=!1),Tt(er.depth)&&(er.depth=2),Tt(er.colors)&&(er.colors=!1),Tt(er.customInspect)&&(er.customInspect=!0),er.colors&&(er.stylize=j),tt(er,Xt,er.depth)}Rt.inspect=ht,ht.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]},ht.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function j(Xt,qt){var er=ht.styles[qt];return er?"\x1B["+ht.colors[er][0]+"m"+Xt+"\x1B["+ht.colors[er][1]+"m":Xt}function _(Xt,qt){return Xt}function rt(Xt){var qt={};return Xt.forEach(function(er,lr){qt[er]=!0}),qt}function tt(Xt,qt,er){if(Xt.customInspect&&qt&&At(qt.inspect)&&qt.inspect!==Rt.inspect&&!(qt.constructor&&qt.constructor.prototype===qt)){var lr=qt.inspect(er,Xt);return _t(lr)||(lr=tt(Xt,lr,er)),lr}var Jt=st(Xt,qt);if(Jt)return Jt;var Yt=Object.keys(qt),rr=rt(Yt);if(Xt.showHidden&&(Yt=Object.getOwnPropertyNames(qt)),It(qt)&&(Yt.indexOf("message")>=0||Yt.indexOf("description")>=0))return ot(qt);if(Yt.length===0){if(At(qt)){var jt=qt.name?": "+qt.name:"";return Xt.stylize("[Function"+jt+"]","special")}if(kt(qt))return Xt.stylize(RegExp.prototype.toString.call(qt),"regexp");if(ct(qt))return Xt.stylize(Date.prototype.toString.call(qt),"date");if(It(qt))return ot(qt)}var ar="",sr=!1,Zt=["{","}"];if(bt(qt)&&(sr=!0,Zt=["[","]"]),At(qt)){var Kt=qt.name?": "+qt.name:"";ar=" [Function"+Kt+"]"}if(kt(qt)&&(ar=" "+RegExp.prototype.toString.call(qt)),ct(qt)&&(ar=" "+Date.prototype.toUTCString.call(qt)),It(qt)&&(ar=" "+ot(qt)),Yt.length===0&&(!sr||qt.length==0))return Zt[0]+ar+Zt[1];if(er<0)return kt(qt)?Xt.stylize(RegExp.prototype.toString.call(qt),"regexp"):Xt.stylize("[Object]","special");Xt.seen.push(qt);var or;return sr?or=nt(Xt,qt,er,rr,Yt):or=Yt.map(function(tr){return vt(Xt,qt,er,rr,tr,sr)}),Xt.seen.pop(),dt(or,ar,Zt)}function st(Xt,qt){if(Tt(qt))return Xt.stylize("undefined","undefined");if(_t(qt)){var er="'"+JSON.stringify(qt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Xt.stylize(er,"string")}if(St(qt))return Xt.stylize(""+qt,"number");if(ft(qt))return Xt.stylize(""+qt,"boolean");if(at(qt))return Xt.stylize("null","null")}function ot(Xt){return"["+Error.prototype.toString.call(Xt)+"]"}function nt(Xt,qt,er,lr,Jt){for(var Yt=[],rr=0,jt=qt.length;rr"+Xl+"?"+Wo+".constant["+Xl+"]:0;"}).join(""),"}}else{","if(",_s,"(",Wo,".buffer)){",Ys,"=",Gs,".createStream(",34962,",",Wo,".buffer);","}else{",Ys,"=",Gs,".getBuffer(",Wo,".buffer);","}",Bl,'="type" in ',Wo,"?",rs.glTypes,"[",Wo,".type]:",Ys,".dtype;",Cs.normalized,"=!!",Wo,".normalized;"),Qo("size"),Qo("offset"),Qo("stride"),Qo("divisor"),wo("}}"),wo.exit("if(",Cs.isStream,"){",Gs,".destroyStream(",Ys,");","}"),Cs})}),Es}function co(yo){var Fo=yo.static,To=yo.dynamic,Bo={};return Object.keys(Fo).forEach(function(Es){var Ps=Fo[Es];Bo[Es]=sr(function(xs,us){return typeof Ps=="number"||typeof Ps=="boolean"?""+Ps:xs.link(Ps)})}),Object.keys(To).forEach(function(Es){var Ps=To[Es];Bo[Es]=Zt(Ps,function(xs,us){return xs.invoke(us,Ps)})}),Bo}function zo(yo,Fo,To,Bo,Es){function Ps(Ks){var Ys=us[Ks];Ys&&(Qo[Ks]=Ys)}var xs=io(yo,Fo),_s=xa(yo),us=ro(yo,_s),wo=Gn(yo),Qo=ho(yo),Wo=eo(yo,Es,xs);Ps("viewport"),Ps(po("scissor.box"));var rs=0"u"?"Date.now()":"performance.now()"}function xs(Ks){Gs=Fo.def(),Ks(Gs,"=",Ps(),";"),typeof Es=="string"?Ks(Wo,".count+=",Es,";"):Ks(Wo,".count++;"),ga&&(Bo?(Cs=Fo.def(),Ks(Cs,"=",_s,".getNumPendingQueries();")):Ks(_s,".beginQuery(",Wo,");"))}function us(Ks){Ks(Wo,".cpuTime+=",Ps(),"-",Gs,";"),ga&&(Bo?Ks(_s,".pushScopeStats(",Cs,",",_s,".getNumPendingQueries(),",Wo,");"):Ks(_s,".endQuery();"))}function wo(Ks){var Ys=Fo.def(rs,".profile");Fo(rs,".profile=",Ks,";"),Fo.exit(rs,".profile=",Ys,";")}var Qo=yo.shared,Wo=yo.stats,rs=Qo.current,_s=Qo.timer;To=To.profile;var Gs,Cs;if(To){if(ar(To)){To.enable?(xs(Fo),us(Fo.exit),wo("true")):wo("false");return}To=To.append(yo,Fo),wo(To)}else To=Fo.def(rs,".profile");Qo=yo.block(),xs(Qo),Fo("if(",To,"){",Qo,"}"),yo=yo.block(),us(yo),Fo.exit("if(",To,"){",yo,"}")}function bo(yo,Fo,To,Bo,Es){function Ps(wo){switch(wo){case 35664:case 35667:case 35671:return 2;case 35665:case 35668:case 35672:return 3;case 35666:case 35669:case 35673:return 4;default:return 1}}function xs(wo,Qo,Wo){function rs(){Fo("if(!",Ks,".buffer){",Gs,".enableVertexAttribArray(",Cs,");}");var Xl=Wo.type,Zl;Zl=Wo.size?Fo.def(Wo.size,"||",Qo):Qo,Fo("if(",Ks,".type!==",Xl,"||",Ks,".size!==",Zl,"||",zl.map(function(ju){return Ks+"."+ju+"!=="+Wo[ju]}).join("||"),"){",Gs,".bindBuffer(",34962,",",Ys,".buffer);",Gs,".vertexAttribPointer(",[Cs,Zl,Xl,Wo.normalized,Wo.stride,Wo.offset],");",Ks,".type=",Xl,";",Ks,".size=",Zl,";",zl.map(function(ju){return Ks+"."+ju+"="+Wo[ju]+";"}).join(""),"}"),xo&&(Xl=Wo.divisor,Fo("if(",Ks,".divisor!==",Xl,"){",yo.instancing,".vertexAttribDivisorANGLE(",[Cs,Xl],");",Ks,".divisor=",Xl,";}"))}function _s(){Fo("if(",Ks,".buffer){",Gs,".disableVertexAttribArray(",Cs,");",Ks,".buffer=null;","}if(",qr.map(function(Xl,Zl){return Ks+"."+Xl+"!=="+Bl[Zl]}).join("||"),"){",Gs,".vertexAttrib4f(",Cs,",",Bl,");",qr.map(function(Xl,Zl){return Ks+"."+Xl+"="+Bl[Zl]+";"}).join(""),"}")}var Gs=us.gl,Cs=Fo.def(wo,".location"),Ks=Fo.def(us.attributes,"[",Cs,"]");wo=Wo.state;var Ys=Wo.buffer,Bl=[Wo.x,Wo.y,Wo.z,Wo.w],zl=["buffer","normalized","offset","stride"];wo===1?rs():wo===2?_s():(Fo("if(",wo,"===",1,"){"),rs(),Fo("}else{"),_s(),Fo("}"))}var us=yo.shared;Bo.forEach(function(wo){var Qo=wo.name,Wo=To.attributes[Qo],rs;if(Wo){if(!Es(Wo))return;rs=Wo.append(yo,Fo)}else{if(!Es(Un))return;var _s=yo.scopeAttrib(Qo);rs={},Object.keys(new Yl).forEach(function(Gs){rs[Gs]=Fo.def(_s,".",Gs)})}xs(yo.link(wo),Ps(wo.info.type),rs)})}function No(yo,Fo,To,Bo,Es,Ps){for(var xs=yo.shared,us=xs.gl,wo,Qo=0;Qo>1)",Ks],");")}function Zl(){To(Ys,".drawArraysInstancedANGLE(",[_s,Gs,Cs,Ks],");")}rs&&rs!=="null"?zl?Xl():(To("if(",rs,"){"),Xl(),To("}else{"),Zl(),To("}")):Zl()}function xs(){function Xl(){To(wo+".drawElements("+[_s,Cs,Bl,Gs+"<<(("+Bl+"-5121)>>1)"]+");")}function Zl(){To(wo+".drawArrays("+[_s,Gs,Cs]+");")}rs&&rs!=="null"?zl?Xl():(To("if(",rs,"){"),Xl(),To("}else{"),Zl(),To("}")):Zl()}var us=yo.shared,wo=us.gl,Qo=us.draw,Wo=Bo.draw,rs=function(){var Xl=Wo.elements,Zl=Fo;return Xl?((Xl.contextDep&&Bo.contextDynamic||Xl.propDep)&&(Zl=To),Xl=Xl.append(yo,Zl),Wo.elementsActive&&Zl("if("+Xl+")"+wo+".bindBuffer(34963,"+Xl+".buffer.buffer);")):(Xl=Zl.def(),Zl(Xl,"=",Qo,".","elements",";","if(",Xl,"){",wo,".bindBuffer(",34963,",",Xl,".buffer.buffer);}","else if(",us.vao,".currentVAO){",Xl,"=",yo.shared.elements+".getElements("+us.vao,".currentVAO.elements);",Go?"":"if("+Xl+")"+wo+".bindBuffer(34963,"+Xl+".buffer.buffer);","}")),Xl}(),_s=Es("primitive"),Gs=Es("offset"),Cs=function(){var Xl=Wo.count,Zl=Fo;return Xl?((Xl.contextDep&&Bo.contextDynamic||Xl.propDep)&&(Zl=To),Xl=Xl.append(yo,Zl)):Xl=Zl.def(Qo,".","count"),Xl}();if(typeof Cs=="number"){if(Cs===0)return}else To("if(",Cs,"){"),To.exit("}");var Ks,Ys;xo&&(Ks=Es("instances"),Ys=yo.instancing);var Bl=rs+".type",zl=Wo.elements&&ar(Wo.elements)&&!Wo.vaoActive;xo&&(typeof Ks!="number"||0<=Ks)?typeof Ks=="string"?(To("if(",Ks,">0){"),Ps(),To("}else if(",Ks,"<0){"),xs(),To("}")):Ps():xs()}function Oo(yo,Fo,To,Bo,Es){return Fo=$n(),Es=Fo.proc("body",Es),xo&&(Fo.instancing=Es.def(Fo.shared.extensions,".angle_instanced_arrays")),yo(Fo,Es,To,Bo),Fo.compile().body}function ys(yo,Fo,To,Bo){Ls(yo,Fo),To.useVAO?To.drawVAO?Fo(yo.shared.vao,".setVAO(",To.drawVAO.append(yo,Fo),");"):Fo(yo.shared.vao,".setVAO(",yo.shared.vao,".targetVAO);"):(Fo(yo.shared.vao,".setVAO(null);"),bo(yo,Fo,To,Bo.attributes,function(){return!0})),No(yo,Fo,To,Bo.uniforms,function(){return!0},!1),Yo(yo,Fo,Fo,To)}function gs(yo,Fo){var To=yo.proc("draw",1);Ls(yo,To),Io(yo,To,Fo.context),Lo(yo,To,Fo.framebuffer),vs(yo,To,Fo),Zo(yo,To,Fo.state),Ds(yo,To,Fo,!1,!0);var Bo=Fo.shader.progVar.append(yo,To);if(To(yo.shared.gl,".useProgram(",Bo,".program);"),Fo.shader.program)ys(yo,To,Fo,Fo.shader.program);else{To(yo.shared.vao,".setVAO(null);");var Es=yo.global.def("{}"),Ps=To.def(Bo,".id"),xs=To.def(Es,"[",Ps,"]");To(yo.cond(xs).then(xs,".call(this,a0);").else(xs,"=",Es,"[",Ps,"]=",yo.link(function(us){return Oo(ys,yo,Fo,us,1)}),"(",Bo,");",xs,".call(this,a0);"))}0=--this.refCount&&hn(this)},ba.profile&&(so.getTotalRenderbufferSize=function(){var Wn=0;return Object.keys(Xn).forEach(function(Vn){Wn+=Xn[Vn].stats.size}),Wn}),{create:function(Wn,Vn){function ga(qn,po){var Yr=0,jr=0,$n=32854;if(typeof qn=="object"&&qn?("shape"in qn?(jr=qn.shape,Yr=jr[0]|0,jr=jr[1]|0):("radius"in qn&&(Yr=jr=qn.radius|0),"width"in qn&&(Yr=qn.width|0),"height"in qn&&(jr=qn.height|0)),"format"in qn&&($n=wn[qn.format])):typeof qn=="number"?(Yr=qn|0,jr=typeof po=="number"?po|0:Yr):qn||(Yr=jr=1),Yr!==fo.width||jr!==fo.height||$n!==fo.format)return ga.width=fo.width=Yr,ga.height=fo.height=jr,fo.format=$n,yn.bindRenderbuffer(36161,fo.renderbuffer),yn.renderbufferStorage(36161,$n,Yr,jr),ba.profile&&(fo.stats.size=Sr[fo.format]*fo.width*fo.height),ga.format=In[fo.format],ga}var fo=new An(yn.createRenderbuffer());return Xn[fo.id]=fo,so.renderbufferCount++,ga(Wn,Vn),ga.resize=function(qn,po){var Yr=qn|0,jr=po|0||Yr;return Yr===fo.width&&jr===fo.height||(ga.width=fo.width=Yr,ga.height=fo.height=jr,yn.bindRenderbuffer(36161,fo.renderbuffer),yn.renderbufferStorage(36161,fo.format,Yr,jr),ba.profile&&(fo.stats.size=Sr[fo.format]*fo.width*fo.height)),ga},ga._reglType="renderbuffer",ga._renderbuffer=fo,ba.profile&&(ga.stats=fo.stats),ga.destroy=function(){fo.decRef()},ga},clear:function(){Er(Xn).forEach(hn)},restore:function(){Er(Xn).forEach(function(Wn){Wn.renderbuffer=yn.createRenderbuffer(),yn.bindRenderbuffer(36161,Wn.renderbuffer),yn.renderbufferStorage(36161,Wn.format,Wn.width,Wn.height)}),yn.bindRenderbuffer(36161,null)}}},xr=[];xr[6408]=4,xr[6407]=3;var Pr=[];Pr[5121]=1,Pr[5126]=4,Pr[36193]=2;var Vr=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],qr=["x","y","z","w"],rn="blend.func blend.equation stencil.func stencil.opFront stencil.opBack sample.coverage viewport scissor.box polygonOffset.offset".split(" "),Cn={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},xn={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},fn={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},bn={cw:2304,ccw:2305},Un=new jt(!1,!1,!1,function(){}),_i=function(yn,Kn){function Jn(){this.endQueryIndex=this.startQueryIndex=-1,this.sum=0,this.stats=null}function so(Xn,Wn,Vn){var ga=hn.pop()||new Jn;ga.startQueryIndex=Xn,ga.endQueryIndex=Wn,ga.sum=0,ga.stats=Vn,wn.push(ga)}if(!Kn.ext_disjoint_timer_query)return null;var ba=[],An=[],hn=[],wn=[],In=[],Ln=[];return{beginQuery:function(Xn){var Wn=ba.pop()||Kn.ext_disjoint_timer_query.createQueryEXT();Kn.ext_disjoint_timer_query.beginQueryEXT(35007,Wn),An.push(Wn),so(An.length-1,An.length,Xn)},endQuery:function(){Kn.ext_disjoint_timer_query.endQueryEXT(35007)},pushScopeStats:so,update:function(){var Xn,Wn;if(Xn=An.length,Xn!==0){Ln.length=Math.max(Ln.length,Xn+1),In.length=Math.max(In.length,Xn+1),In[0]=0;var Vn=Ln[0]=0;for(Wn=Xn=0;Wn=Ds.length&&so()}var Us=or(Ds,gs);Ds[Us]=zs}}}function Ln(){var gs=Zo.viewport,zs=Zo.scissor_box;gs[0]=gs[1]=zs[0]=zs[1]=0,ro.viewportWidth=ro.framebufferWidth=ro.drawingBufferWidth=gs[2]=zs[2]=ga.drawingBufferWidth,ro.viewportHeight=ro.framebufferHeight=ro.drawingBufferHeight=gs[3]=zs[3]=ga.drawingBufferHeight}function Xn(){ro.tick+=1,ro.time=Vn(),Ln(),Lo.procs.poll()}function Wn(){co.refresh(),Ln(),Lo.procs.refresh(),$n&&$n.update()}function Vn(){return(br()-Bn)/1e3}if(yn=j(yn),!yn)return null;var ga=yn.gl,fo=ga.getContextAttributes();ga.isContextLost();var qn=_(ga,yn);if(!qn)return null;var vs=et(),po={vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0},Yr=yn.cachedCode||{},jr=qn.extensions,$n=_i(ga,jr),Bn=br(),io=ga.drawingBufferWidth,xa=ga.drawingBufferHeight,ro={tick:0,time:0,viewportWidth:io,viewportHeight:xa,framebufferWidth:io,framebufferHeight:xa,drawingBufferWidth:io,drawingBufferHeight:xa,pixelRatio:yn.pixelRatio},io={elements:null,primitive:4,count:-1,offset:0,instances:-1},eo=Tr(ga,jr),Gn=at(ga,po,yn,function(gs){return go.destroyBuffer(gs)}),ho=mt(ga,jr,Gn,po),go=Dt(ga,jr,eo,po,Gn,ho,io),_o=Nt(ga,vs,po,yn),co=Ot(ga,jr,eo,function(){Lo.procs.poll()},ro,po,yn),zo=ur(ga,jr,eo,po,yn),Io=Pt(ga,jr,eo,co,zo,po),Lo=Kt(ga,vs,jr,eo,Gn,ho,co,Io,{},go,_o,io,ro,$n,Yr,yn),vs=$t(ga,Io,Lo.procs.poll,ro),Zo=Lo.next,Ls=ga.canvas,Ds=[],bo=[],No=[],Yo=[yn.onDestroy],Oo=null;Ls&&(Ls.addEventListener("webglcontextlost",ba,!1),Ls.addEventListener("webglcontextrestored",An,!1));var ys=Io.setFBO=hn({framebuffer:mr.define.call(null,1,"framebuffer")});return Wn(),fo=tr(hn,{clear:function(gs){if("framebuffer"in gs)if(gs.framebuffer&&gs.framebuffer_reglType==="framebufferCube")for(var zs=0;6>zs;++zs)ys(tr({framebuffer:gs.framebuffer.faces[zs]},gs),wn);else ys(gs,wn);else wn(null,gs)},prop:mr.define.bind(null,1),context:mr.define.bind(null,2),this:mr.define.bind(null,3),draw:hn({}),buffer:function(gs){return Gn.create(gs,34962,!1,!1)},elements:function(gs){return ho.create(gs,!1)},texture:co.create2D,cube:co.createCube,renderbuffer:zo.create,framebuffer:Io.create,framebufferCube:Io.createCube,vao:go.createVAO,attributes:fo,frame:In,on:function(gs,zs){var Us;switch(gs){case"frame":return In(zs);case"lost":Us=bo;break;case"restore":Us=No;break;case"destroy":Us=Yo}return Us.push(zs),{cancel:function(){for(var Qs=0;Qs */var it=o(33576),xt=it.Buffer;function et(yt,ut){for(var ht in yt)ut[ht]=yt[ht]}xt.from&&xt.alloc&&xt.allocUnsafe&&xt.allocUnsafeSlow?Ct.exports=it:(et(it,Rt),Rt.Buffer=Tt);function Tt(yt,ut,ht){return xt(yt,ut,ht)}Tt.prototype=Object.create(xt.prototype),et(xt,Tt),Tt.from=function(yt,ut,ht){if(typeof yt=="number")throw new TypeError("Argument must not be a number");return xt(yt,ut,ht)},Tt.alloc=function(yt,ut,ht){if(typeof yt!="number")throw new TypeError("Argument must be a number");var j=xt(yt);return ut!==void 0?typeof ht=="string"?j.fill(ut,ht):j.fill(ut):j.fill(0),j},Tt.allocUnsafe=function(yt){if(typeof yt!="number")throw new TypeError("Argument must be a number");return xt(yt)},Tt.allocUnsafeSlow=function(yt){if(typeof yt!="number")throw new TypeError("Argument must be a number");return it.SlowBuffer(yt)}},14500:function(Ct,Rt,o){var it=o(53664),xt=o(64348),et=o(39640)(),Tt=o(2304),yt=it("%TypeError%"),ut=it("%Math.floor%");Ct.exports=function(j,_){if(typeof j!="function")throw new yt("`fn` is not a function");if(typeof _!="number"||_<0||_>4294967295||ut(_)!==_)throw new yt("`length` must be a positive 32-bit integer");var rt=arguments.length>2&&!!arguments[2],tt=!0,st=!0;if("length"in j&&Tt){var ot=Tt(j,"length");ot&&!ot.configurable&&(tt=!1),ot&&!ot.writable&&(st=!1)}return(tt||st||!rt)&&(et?xt(j,"length",_,!0,!0):xt(j,"length",_)),j}},29936:function(Ct,Rt,o){Ct.exports=et;var it=o(61252).EventEmitter,xt=o(6768);xt(et,it),et.Readable=o(12348),et.Writable=o(11288),et.Duplex=o(15316),et.Transform=o(22477),et.PassThrough=o(27136),et.finished=o(15932),et.pipeline=o(38180),et.Stream=et;function et(){it.call(this)}et.prototype.pipe=function(Tt,yt){var ut=this;function ht(nt){Tt.writable&&Tt.write(nt)===!1&&ut.pause&&ut.pause()}ut.on("data",ht);function j(){ut.readable&&ut.resume&&ut.resume()}Tt.on("drain",j),!Tt._isStdio&&(!yt||yt.end!==!1)&&(ut.on("end",rt),ut.on("close",tt));var _=!1;function rt(){_||(_=!0,Tt.end())}function tt(){_||(_=!0,typeof Tt.destroy=="function"&&Tt.destroy())}function st(nt){if(ot(),it.listenerCount(this,"error")===0)throw nt}ut.on("error",st),Tt.on("error",st);function ot(){ut.removeListener("data",ht),Tt.removeListener("drain",j),ut.removeListener("end",rt),ut.removeListener("close",tt),ut.removeListener("error",st),Tt.removeListener("error",st),ut.removeListener("end",ot),ut.removeListener("close",ot),Tt.removeListener("close",ot)}return ut.on("end",ot),ut.on("close",ot),Tt.on("close",ot),Tt.emit("pipe",ut),Tt}},92784:function(Ct){function Rt(ut,ht){ut.prototype=Object.create(ht.prototype),ut.prototype.constructor=ut,ut.__proto__=ht}var o={};function it(ut,ht,j){j||(j=Error);function _(tt,st,ot){return typeof ht=="string"?ht:ht(tt,st,ot)}var rt=function(tt){Rt(st,tt);function st(ot,nt,vt){return tt.call(this,_(ot,nt,vt))||this}return st}(j);rt.prototype.name=j.name,rt.prototype.code=ut,o[ut]=rt}function xt(ut,ht){if(Array.isArray(ut)){var j=ut.length;return ut=ut.map(function(_){return String(_)}),j>2?"one of ".concat(ht," ").concat(ut.slice(0,j-1).join(", "),", or ")+ut[j-1]:j===2?"one of ".concat(ht," ").concat(ut[0]," or ").concat(ut[1]):"of ".concat(ht," ").concat(ut[0])}else return"of ".concat(ht," ").concat(String(ut))}function et(ut,ht,j){return ut.substr(!j||j<0?0:+j,ht.length)===ht}function Tt(ut,ht,j){return(j===void 0||j>ut.length)&&(j=ut.length),ut.substring(j-ht.length,j)===ht}function yt(ut,ht,j){return typeof j!="number"&&(j=0),j+ht.length>ut.length?!1:ut.indexOf(ht,j)!==-1}it("ERR_INVALID_OPT_VALUE",function(ut,ht){return'The value "'+ht+'" is invalid for option "'+ut+'"'},TypeError),it("ERR_INVALID_ARG_TYPE",function(ut,ht,j){var _;typeof ht=="string"&&et(ht,"not ")?(_="must not be",ht=ht.replace(/^not /,"")):_="must be";var rt;if(Tt(ut," argument"))rt="The ".concat(ut," ").concat(_," ").concat(xt(ht,"type"));else{var tt=yt(ut,".")?"property":"argument";rt='The "'.concat(ut,'" ').concat(tt," ").concat(_," ").concat(xt(ht,"type"))}return rt+=". Received type ".concat(typeof j),rt},TypeError),it("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),it("ERR_METHOD_NOT_IMPLEMENTED",function(ut){return"The "+ut+" method is not implemented"}),it("ERR_STREAM_PREMATURE_CLOSE","Premature close"),it("ERR_STREAM_DESTROYED",function(ut){return"Cannot call "+ut+" after a stream was destroyed"}),it("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),it("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),it("ERR_STREAM_WRITE_AFTER_END","write after end"),it("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),it("ERR_UNKNOWN_ENCODING",function(ut){return"Unknown encoding: "+ut},TypeError),it("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Ct.exports.i=o},15316:function(Ct,Rt,o){var it=o(4168),xt=Object.keys||function(tt){var st=[];for(var ot in tt)st.push(ot);return st};Ct.exports=j;var et=o(12348),Tt=o(11288);o(6768)(j,et);for(var yt=xt(Tt.prototype),ut=0;ut0)if(typeof Kt!="string"&&!mr.objectMode&&Object.getPrototypeOf(Kt)!==yt.prototype&&(Kt=ht(Kt)),tr)mr.endEmitted?Mt(Zt,new at):At(Zt,mr,Kt,!0);else if(mr.ended)Mt(Zt,new bt);else{if(mr.destroyed)return!1;mr.reading=!1,mr.decoder&&!or?(Kt=mr.decoder.write(Kt),mr.objectMode||Kt.length!==0?At(Zt,mr,Kt,!1):Ht(Zt,mr)):At(Zt,mr,Kt,!1)}else tr||(mr.reading=!1,Ht(Zt,mr))}return!mr.ended&&(mr.length=Pt?Zt=Pt:(Zt--,Zt|=Zt>>>1,Zt|=Zt>>>2,Zt|=Zt>>>4,Zt|=Zt>>>8,Zt|=Zt>>>16,Zt++),Zt}function Dt(Zt,Kt){return Zt<=0||Kt.length===0&&Kt.ended?0:Kt.objectMode?1:Zt!==Zt?Kt.flowing&&Kt.length?Kt.buffer.head.data.length:Kt.length:(Zt>Kt.highWaterMark&&(Kt.highWaterMark=zt(Zt)),Zt<=Kt.length?Zt:Kt.ended?Kt.length:(Kt.needReadable=!0,0))}ct.prototype.read=function(Zt){rt("read",Zt),Zt=parseInt(Zt,10);var Kt=this._readableState,or=Zt;if(Zt!==0&&(Kt.emittedReadable=!1),Zt===0&&Kt.needReadable&&((Kt.highWaterMark!==0?Kt.length>=Kt.highWaterMark:Kt.length>0)||Kt.ended))return rt("read: emitReadable",Kt.length,Kt.ended),Kt.length===0&&Kt.ended?jt(this):$t(this),null;if(Zt=Dt(Zt,Kt),Zt===0&&Kt.ended)return Kt.length===0&&jt(this),null;var tr=Kt.needReadable;rt("need readable",tr),(Kt.length===0||Kt.length-Zt0?cr=rr(Zt,Kt):cr=null,cr===null?(Kt.needReadable=Kt.length<=Kt.highWaterMark,Zt=0):(Kt.length-=Zt,Kt.awaitDrain=0),Kt.length===0&&(Kt.ended||(Kt.needReadable=!0),or!==Zt&&Kt.ended&&jt(this)),cr!==null&&this.emit("data",cr),cr};function Nt(Zt,Kt){if(rt("onEofChunk"),!Kt.ended){if(Kt.decoder){var or=Kt.decoder.end();or&&or.length&&(Kt.buffer.push(or),Kt.length+=Kt.objectMode?1:or.length)}Kt.ended=!0,Kt.sync?$t(Zt):(Kt.needReadable=!1,Kt.emittedReadable||(Kt.emittedReadable=!0,Ut(Zt)))}}function $t(Zt){var Kt=Zt._readableState;rt("emitReadable",Kt.needReadable,Kt.emittedReadable),Kt.needReadable=!1,Kt.emittedReadable||(rt("emitReadable",Kt.flowing),Kt.emittedReadable=!0,it.nextTick(Ut,Zt))}function Ut(Zt){var Kt=Zt._readableState;rt("emitReadable_",Kt.destroyed,Kt.length,Kt.ended),!Kt.destroyed&&(Kt.length||Kt.ended)&&(Zt.emit("readable"),Kt.emittedReadable=!1),Kt.needReadable=!Kt.flowing&&!Kt.ended&&Kt.length<=Kt.highWaterMark,Yt(Zt)}function Ht(Zt,Kt){Kt.readingMore||(Kt.readingMore=!0,it.nextTick(Vt,Zt,Kt))}function Vt(Zt,Kt){for(;!Kt.reading&&!Kt.ended&&(Kt.length1&&sr(tr.pipes,Zt)!==-1)&&!Tr&&(rt("false write response, pause",tr.awaitDrain),tr.awaitDrain++),or.pause())}function Rr(Nr){rt("onerror",Nr),kr(),Zt.removeListener("error",Rr),et(Zt,"error")===0&&Mt(Zt,Nr)}kt(Zt,"error",Rr);function zr(){Zt.removeListener("finish",Or),kr()}Zt.once("close",zr);function Or(){rt("onfinish"),Zt.removeListener("close",zr),kr()}Zt.once("finish",Or);function kr(){rt("unpipe"),or.unpipe(Zt)}return Zt.emit("pipe",or),tr.flowing||(rt("pipe resume"),or.resume()),Zt};function Xt(Zt){return function(){var or=Zt._readableState;rt("pipeOnDrain",or.awaitDrain),or.awaitDrain&&or.awaitDrain--,or.awaitDrain===0&&et(Zt,"data")&&(or.flowing=!0,Yt(Zt))}}ct.prototype.unpipe=function(Zt){var Kt=this._readableState,or={hasUnpiped:!1};if(Kt.pipesCount===0)return this;if(Kt.pipesCount===1)return Zt&&Zt!==Kt.pipes?this:(Zt||(Zt=Kt.pipes),Kt.pipes=null,Kt.pipesCount=0,Kt.flowing=!1,Zt&&Zt.emit("unpipe",this,or),this);if(!Zt){var tr=Kt.pipes,cr=Kt.pipesCount;Kt.pipes=null,Kt.pipesCount=0,Kt.flowing=!1;for(var mr=0;mr0,tr.flowing!==!1&&this.resume()):Zt==="readable"&&!tr.endEmitted&&!tr.readableListening&&(tr.readableListening=tr.needReadable=!0,tr.flowing=!1,tr.emittedReadable=!1,rt("on readable",tr.length,tr.reading),tr.length?$t(this):tr.reading||it.nextTick(er,this)),or},ct.prototype.addListener=ct.prototype.on,ct.prototype.removeListener=function(Zt,Kt){var or=Tt.prototype.removeListener.call(this,Zt,Kt);return Zt==="readable"&&it.nextTick(qt,this),or},ct.prototype.removeAllListeners=function(Zt){var Kt=Tt.prototype.removeAllListeners.apply(this,arguments);return(Zt==="readable"||Zt===void 0)&&it.nextTick(qt,this),Kt};function qt(Zt){var Kt=Zt._readableState;Kt.readableListening=Zt.listenerCount("readable")>0,Kt.resumeScheduled&&!Kt.paused?Kt.flowing=!0:Zt.listenerCount("data")>0&&Zt.resume()}function er(Zt){rt("readable nexttick read 0"),Zt.read(0)}ct.prototype.resume=function(){var Zt=this._readableState;return Zt.flowing||(rt("resume"),Zt.flowing=!Zt.readableListening,lr(this,Zt)),Zt.paused=!1,this};function lr(Zt,Kt){Kt.resumeScheduled||(Kt.resumeScheduled=!0,it.nextTick(Jt,Zt,Kt))}function Jt(Zt,Kt){rt("resume",Kt.reading),Kt.reading||Zt.read(0),Kt.resumeScheduled=!1,Zt.emit("resume"),Yt(Zt),Kt.flowing&&!Kt.reading&&Zt.read(0)}ct.prototype.pause=function(){return rt("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(rt("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Yt(Zt){var Kt=Zt._readableState;for(rt("flow",Kt.flowing);Kt.flowing&&Zt.read()!==null;);}ct.prototype.wrap=function(Zt){var Kt=this,or=this._readableState,tr=!1;Zt.on("end",function(){if(rt("wrapped end"),or.decoder&&!or.ended){var Ar=or.decoder.end();Ar&&Ar.length&&Kt.push(Ar)}Kt.push(null)}),Zt.on("data",function(Ar){if(rt("wrapped data"),or.decoder&&(Ar=or.decoder.write(Ar)),!(or.objectMode&&Ar==null)&&!(!or.objectMode&&(!Ar||!Ar.length))){var br=Kt.push(Ar);br||(tr=!0,Zt.pause())}});for(var cr in Zt)this[cr]===void 0&&typeof Zt[cr]=="function"&&(this[cr]=function(br){return function(){return Zt[br].apply(Zt,arguments)}}(cr));for(var mr=0;mr=Kt.length?(Kt.decoder?or=Kt.buffer.join(""):Kt.buffer.length===1?or=Kt.buffer.first():or=Kt.buffer.concat(Kt.length),Kt.buffer.clear()):or=Kt.buffer.consume(Zt,Kt.decoder),or}function jt(Zt){var Kt=Zt._readableState;rt("endReadable",Kt.endEmitted),Kt.endEmitted||(Kt.ended=!0,it.nextTick(ar,Kt,Zt))}function ar(Zt,Kt){if(rt("endReadableNT",Zt.endEmitted,Zt.length),!Zt.endEmitted&&Zt.length===0&&(Zt.endEmitted=!0,Kt.readable=!1,Kt.emit("end"),Zt.autoDestroy)){var or=Kt._writableState;(!or||or.autoDestroy&&or.finished)&&Kt.destroy()}}typeof Symbol=="function"&&(ct.from=function(Zt,Kt){return _t===void 0&&(_t=o(90555)),_t(ct,Zt,Kt)});function sr(Zt,Kt){for(var or=0,tr=Zt.length;or-1))throw new St(rr);return this._writableState.defaultEncoding=rr,this},Object.defineProperty(wt.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function At(Yt,rr,jt){return!Yt.objectMode&&Yt.decodeStrings!==!1&&typeof rr=="string"&&(rr=ut.from(rr,jt)),rr}Object.defineProperty(wt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Ot(Yt,rr,jt,ar,sr,Zt){if(!jt){var Kt=At(rr,ar,sr);ar!==Kt&&(jt=!0,sr="buffer",ar=Kt)}var or=rr.objectMode?1:ar.length;rr.length+=or;var tr=rr.length0?this.tail.next=dt:this.head=dt,this.tail=dt,++this.length}},{key:"unshift",value:function(vt){var dt={data:vt,next:this.head};this.length===0&&(this.tail=dt),this.head=dt,++this.length}},{key:"shift",value:function(){if(this.length!==0){var vt=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,vt}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(vt){if(this.length===0)return"";for(var dt=this.head,bt=""+dt.data;dt=dt.next;)bt+=vt+dt.data;return bt}},{key:"concat",value:function(vt){if(this.length===0)return j.alloc(0);for(var dt=j.allocUnsafe(vt>>>0),bt=this.head,ft=0;bt;)st(bt.data,dt,ft),ft+=bt.data.length,bt=bt.next;return dt}},{key:"consume",value:function(vt,dt){var bt;return vtat.length?at.length:vt;if(mt===at.length?ft+=at:ft+=at.slice(0,vt),vt-=mt,vt===0){mt===at.length?(++bt,dt.next?this.head=dt.next:this.head=this.tail=null):(this.head=dt,dt.data=at.slice(mt));break}++bt}return this.length-=bt,ft}},{key:"_getBuffer",value:function(vt){var dt=j.allocUnsafe(vt),bt=this.head,ft=1;for(bt.data.copy(dt),vt-=bt.data.length;bt=bt.next;){var at=bt.data,mt=vt>at.length?at.length:vt;if(at.copy(dt,dt.length-vt,0,mt),vt-=mt,vt===0){mt===at.length?(++ft,bt.next?this.head=bt.next:this.head=this.tail=null):(this.head=bt,bt.data=at.slice(mt));break}++ft}return this.length-=ft,dt}},{key:tt,value:function(vt,dt){return rt(this,xt({},dt,{depth:0,customInspect:!1}))}}]),ot}()},55324:function(Ct,Rt,o){var it=o(4168);function xt(j,_){var rt=this,tt=this._readableState&&this._readableState.destroyed,st=this._writableState&&this._writableState.destroyed;return tt||st?(_?_(j):j&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,it.nextTick(ut,this,j)):it.nextTick(ut,this,j)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(j||null,function(ot){!_&&ot?rt._writableState?rt._writableState.errorEmitted?it.nextTick(Tt,rt):(rt._writableState.errorEmitted=!0,it.nextTick(et,rt,ot)):it.nextTick(et,rt,ot):_?(it.nextTick(Tt,rt),_(ot)):it.nextTick(Tt,rt)}),this)}function et(j,_){ut(j,_),Tt(j)}function Tt(j){j._writableState&&!j._writableState.emitClose||j._readableState&&!j._readableState.emitClose||j.emit("close")}function yt(){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 ut(j,_){j.emit("error",_)}function ht(j,_){var rt=j._readableState,tt=j._writableState;rt&&rt.autoDestroy||tt&&tt.autoDestroy?j.destroy(_):j.emit("error",_)}Ct.exports={destroy:xt,undestroy:yt,errorOrDestroy:ht}},15932:function(Ct,Rt,o){var it=o(92784).i.ERR_STREAM_PREMATURE_CLOSE;function xt(ut){var ht=!1;return function(){if(!ht){ht=!0;for(var j=arguments.length,_=new Array(j),rt=0;rt0;return j(at,St,_t,function(Mt){bt||(bt=Mt),Mt&&ft.forEach(_),!St&&(ft.forEach(_),dt(bt))})});return nt.reduce(rt)}Ct.exports=st},24888:function(Ct,Rt,o){var it=o(92784).i.ERR_INVALID_OPT_VALUE;function xt(Tt,yt,ut){return Tt.highWaterMark!=null?Tt.highWaterMark:yt?Tt[ut]:null}function et(Tt,yt,ut,ht){var j=xt(yt,ht,ut);if(j!=null){if(!(isFinite(j)&&Math.floor(j)===j)||j<0){var _=ht?ut:"highWaterMark";throw new it(_,j)}return Math.floor(j)}return Tt.objectMode?16:16384}Ct.exports={getHighWaterMark:et}},4776:function(Ct,Rt,o){Ct.exports=o(61252).EventEmitter},86032:function(Ct,Rt,o){var it=o(30456).Buffer,xt=it.isEncoding||function(ft){switch(ft=""+ft,ft&&ft.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 et(ft){if(!ft)return"utf8";for(var at;;)switch(ft){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 ft;default:if(at)return;ft=(""+ft).toLowerCase(),at=!0}}function Tt(ft){var at=et(ft);if(typeof at!="string"&&(it.isEncoding===xt||!xt(ft)))throw new Error("Unknown encoding: "+ft);return at||ft}Rt.o=yt;function yt(ft){this.encoding=Tt(ft);var at;switch(this.encoding){case"utf16le":this.text=st,this.end=ot,at=4;break;case"utf8":this.fillLast=_,at=4;break;case"base64":this.text=nt,this.end=vt,at=3;break;default:this.write=dt,this.end=bt;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=it.allocUnsafe(at)}yt.prototype.write=function(ft){if(ft.length===0)return"";var at,mt;if(this.lastNeed){if(at=this.fillLast(ft),at===void 0)return"";mt=this.lastNeed,this.lastNeed=0}else mt=0;return mt>5===6?2:ft>>4===14?3:ft>>3===30?4:ft>>6===2?-1:-2}function ht(ft,at,mt){var St=at.length-1;if(St=0?(_t>0&&(ft.lastNeed=_t-1),_t):--St=0?(_t>0&&(ft.lastNeed=_t-2),_t):--St=0?(_t>0&&(_t===2?_t=0:ft.lastNeed=_t-3),_t):0))}function j(ft,at,mt){if((at[0]&192)!==128)return ft.lastNeed=0,"�";if(ft.lastNeed>1&&at.length>1){if((at[1]&192)!==128)return ft.lastNeed=1,"�";if(ft.lastNeed>2&&at.length>2&&(at[2]&192)!==128)return ft.lastNeed=2,"�"}}function _(ft){var at=this.lastTotal-this.lastNeed,mt=j(this,ft);if(mt!==void 0)return mt;if(this.lastNeed<=ft.length)return ft.copy(this.lastChar,at,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);ft.copy(this.lastChar,at,0,ft.length),this.lastNeed-=ft.length}function rt(ft,at){var mt=ht(this,ft,at);if(!this.lastNeed)return ft.toString("utf8",at);this.lastTotal=mt;var St=ft.length-(mt-this.lastNeed);return ft.copy(this.lastChar,0,St),ft.toString("utf8",at,St)}function tt(ft){var at=ft&&ft.length?this.write(ft):"";return this.lastNeed?at+"�":at}function st(ft,at){if((ft.length-at)%2===0){var mt=ft.toString("utf16le",at);if(mt){var St=mt.charCodeAt(mt.length-1);if(St>=55296&&St<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=ft[ft.length-2],this.lastChar[1]=ft[ft.length-1],mt.slice(0,-1)}return mt}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=ft[ft.length-1],ft.toString("utf16le",at,ft.length-1)}function ot(ft){var at=ft&&ft.length?this.write(ft):"";if(this.lastNeed){var mt=this.lastTotal-this.lastNeed;return at+this.lastChar.toString("utf16le",0,mt)}return at}function nt(ft,at){var mt=(ft.length-at)%3;return mt===0?ft.toString("base64",at):(this.lastNeed=3-mt,this.lastTotal=3,mt===1?this.lastChar[0]=ft[ft.length-1]:(this.lastChar[0]=ft[ft.length-2],this.lastChar[1]=ft[ft.length-1]),ft.toString("base64",at,ft.length-mt))}function vt(ft){var at=ft&&ft.length?this.write(ft):"";return this.lastNeed?at+this.lastChar.toString("base64",0,3-this.lastNeed):at}function dt(ft){return ft.toString(this.encoding)}function bt(ft){return ft&&ft.length?this.write(ft):""}},55619:function(Ct,Rt,o){var it=o(45408),xt=o(86844)("stream-parser");Ct.exports=ht;var et=-1,Tt=0,yt=1,ut=2;function ht(ft){var at=ft&&typeof ft._transform=="function",mt=ft&&typeof ft._write=="function";if(!at&&!mt)throw new Error("must pass a Writable or Transform stream in");xt("extending Parser into stream"),ft._bytes=_,ft._skipBytes=rt,at&&(ft._passthrough=tt),at?ft._transform=ot:ft._write=st}function j(ft){xt("initializing parser stream"),ft._parserBytesLeft=0,ft._parserBuffers=[],ft._parserBuffered=0,ft._parserState=et,ft._parserCallback=null,typeof ft.push=="function"&&(ft._parserOutput=ft.push.bind(ft)),ft._parserInit=!0}function _(ft,at){it(!this._parserCallback,'there is already a "callback" set!'),it(isFinite(ft)&&ft>0,'can only buffer a finite number of bytes > 0, got "'+ft+'"'),this._parserInit||j(this),xt("buffering %o bytes",ft),this._parserBytesLeft=ft,this._parserCallback=at,this._parserState=Tt}function rt(ft,at){it(!this._parserCallback,'there is already a "callback" set!'),it(ft>0,'can only skip > 0 bytes, got "'+ft+'"'),this._parserInit||j(this),xt("skipping %o bytes",ft),this._parserBytesLeft=ft,this._parserCallback=at,this._parserState=yt}function tt(ft,at){it(!this._parserCallback,'There is already a "callback" set!'),it(ft>0,'can only pass through > 0 bytes, got "'+ft+'"'),this._parserInit||j(this),xt("passing through %o bytes",ft),this._parserBytesLeft=ft,this._parserCallback=at,this._parserState=ut}function st(ft,at,mt){this._parserInit||j(this),xt("write(%o bytes)",ft.length),typeof at=="function"&&(mt=at),dt(this,ft,null,mt)}function ot(ft,at,mt){this._parserInit||j(this),xt("transform(%o bytes)",ft.length),typeof at!="function"&&(at=this._parserOutput),dt(this,ft,at,mt)}function nt(ft,at,mt,St){return ft._parserBytesLeft<=0?St(new Error("got data but not currently parsing anything")):at.length<=ft._parserBytesLeft?function(){return vt(ft,at,mt,St)}:function(){var _t=at.slice(0,ft._parserBytesLeft);return vt(ft,_t,mt,function(Mt){if(Mt)return St(Mt);if(at.length>_t.length)return function(){return nt(ft,at.slice(_t.length),mt,St)}})}}function vt(ft,at,mt,St){if(ft._parserBytesLeft-=at.length,xt("%o bytes left for stream piece",ft._parserBytesLeft),ft._parserState===Tt?(ft._parserBuffers.push(at),ft._parserBuffered+=at.length):ft._parserState===ut&&mt(at),ft._parserBytesLeft===0){var _t=ft._parserCallback;if(_t&&ft._parserState===Tt&&ft._parserBuffers.length>1&&(at=Buffer.concat(ft._parserBuffers,ft._parserBuffered)),ft._parserState!==Tt&&(at=null),ft._parserCallback=null,ft._parserBuffered=0,ft._parserState=et,ft._parserBuffers.splice(0),_t){var Mt=[];at&&Mt.push(at),mt&&Mt.push(mt);var Et=_t.length>Mt.length;Et&&Mt.push(bt(St));var kt=_t.apply(ft,Mt);if(!Et||St===kt)return St}}else return St}var dt=bt(nt);function bt(ft){return function(){for(var at=ft.apply(this,arguments);typeof at=="function";)at=at();return at}}},86844:function(Ct,Rt,o){var it=o(4168);Rt=Ct.exports=o(89416),Rt.log=Tt,Rt.formatArgs=et,Rt.save=yt,Rt.load=ut,Rt.useColors=xt,Rt.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:ht(),Rt.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function xt(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}Rt.formatters.j=function(j){try{return JSON.stringify(j)}catch(_){return"[UnexpectedJSONParseError]: "+_.message}};function et(j){var _=this.useColors;if(j[0]=(_?"%c":"")+this.namespace+(_?" %c":" ")+j[0]+(_?"%c ":" ")+"+"+Rt.humanize(this.diff),!!_){var rt="color: "+this.color;j.splice(1,0,rt,"color: inherit");var tt=0,st=0;j[0].replace(/%[a-zA-Z%]/g,function(ot){ot!=="%%"&&(tt++,ot==="%c"&&(st=tt))}),j.splice(st,0,rt)}}function Tt(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function yt(j){try{j==null?Rt.storage.removeItem("debug"):Rt.storage.debug=j}catch{}}function ut(){var j;try{j=Rt.storage.debug}catch{}return!j&&typeof it<"u"&&"env"in it&&(j={}.DEBUG),j}Rt.enable(ut());function ht(){try{return window.localStorage}catch{}}},89416:function(Ct,Rt,o){Rt=Ct.exports=et.debug=et.default=et,Rt.coerce=ht,Rt.disable=yt,Rt.enable=Tt,Rt.enabled=ut,Rt.humanize=o(93744),Rt.names=[],Rt.skips=[],Rt.formatters={};var it;function xt(j){var _=0,rt;for(rt in j)_=(_<<5)-_+j.charCodeAt(rt),_|=0;return Rt.colors[Math.abs(_)%Rt.colors.length]}function et(j){function _(){if(_.enabled){var rt=_,tt=+new Date,st=tt-(it||tt);rt.diff=st,rt.prev=it,rt.curr=tt,it=tt;for(var ot=new Array(arguments.length),nt=0;nt0)return Tt(j);if(rt==="number"&&isNaN(j)===!1)return _.long?ut(j):yt(j);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(j))};function Tt(j){if(j=String(j),!(j.length>100)){var _=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(j);if(_){var rt=parseFloat(_[1]),tt=(_[2]||"ms").toLowerCase();switch(tt){case"years":case"year":case"yrs":case"yr":case"y":return rt*et;case"days":case"day":case"d":return rt*xt;case"hours":case"hour":case"hrs":case"hr":case"h":return rt*it;case"minutes":case"minute":case"mins":case"min":case"m":return rt*o;case"seconds":case"second":case"secs":case"sec":case"s":return rt*Rt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return rt;default:return}}}}function yt(j){return j>=xt?Math.round(j/xt)+"d":j>=it?Math.round(j/it)+"h":j>=o?Math.round(j/o)+"m":j>=Rt?Math.round(j/Rt)+"s":j+"ms"}function ut(j){return ht(j,xt,"day")||ht(j,it,"hour")||ht(j,o,"minute")||ht(j,Rt,"second")||j+" ms"}function ht(j,_,rt){if(!(j<_))return j<_*1.5?Math.floor(j/_)+" "+rt:Math.ceil(j/_)+" "+rt+"s"}},39956:function(Ct,Rt,o){var it=o(32868);Ct.exports=function(et,Tt,yt){if(et==null)throw Error("First argument should be a string");if(Tt==null)throw Error("Separator should be a string or a RegExp");yt?(typeof yt=="string"||Array.isArray(yt))&&(yt={ignore:yt}):yt={},yt.escape==null&&(yt.escape=!0),yt.ignore==null?yt.ignore=["[]","()","{}","<>",'""',"''","``","“”","«»"]:(typeof yt.ignore=="string"&&(yt.ignore=[yt.ignore]),yt.ignore=yt.ignore.map(function(ot){return ot.length===1&&(ot=ot+ot),ot}));var ut=it.parse(et,{flat:!0,brackets:yt.ignore}),ht=ut[0],j=ht.split(Tt);if(yt.escape){for(var _=[],rt=0;rt0;){dt=ft[ft.length-1];var at=o[dt];if(yt[dt]=0&&ht[dt].push(ut[St])}yt[dt]=mt}else{if(et[dt]===xt[dt]){for(var _t=[],Mt=[],Et=0,mt=bt.length-1;mt>=0;--mt){var kt=bt[mt];if(Tt[kt]=!1,_t.push(kt),Mt.push(ht[kt]),Et+=ht[kt].length,ut[kt]=rt.length,kt===dt){bt.length=mt;break}}rt.push(_t);for(var wt=new Array(Et),mt=0;mt1&&(nt=1),nt<-1&&(nt=-1),ot*Math.acos(nt)},ut=function(_,rt,tt,st,ot,nt,vt,dt,bt,ft,at,mt){var St=Math.pow(ot,2),_t=Math.pow(nt,2),Mt=Math.pow(at,2),Et=Math.pow(mt,2),kt=St*_t-St*Et-_t*Mt;kt<0&&(kt=0),kt/=St*Et+_t*Mt,kt=Math.sqrt(kt)*(vt===dt?-1:1);var wt=kt*ot/nt*mt,ct=kt*-nt/ot*at,It=ft*wt-bt*ct+(_+tt)/2,At=bt*wt+ft*ct+(rt+st)/2,Ot=(at-wt)/ot,Pt=(mt-ct)/nt,zt=(-at-wt)/ot,Dt=(-mt-ct)/nt,Nt=yt(1,0,Ot,Pt),$t=yt(Ot,Pt,zt,Dt);return dt===0&&$t>0&&($t-=xt),dt===1&&$t<0&&($t+=xt),[It,At,Nt,$t]},ht=function(_){var rt=_.px,tt=_.py,st=_.cx,ot=_.cy,nt=_.rx,vt=_.ry,dt=_.xAxisRotation,bt=dt===void 0?0:dt,ft=_.largeArcFlag,at=ft===void 0?0:ft,mt=_.sweepFlag,St=mt===void 0?0:mt,_t=[];if(nt===0||vt===0)return[];var Mt=Math.sin(bt*xt/360),Et=Math.cos(bt*xt/360),kt=Et*(rt-st)/2+Mt*(tt-ot)/2,wt=-Mt*(rt-st)/2+Et*(tt-ot)/2;if(kt===0&&wt===0)return[];nt=Math.abs(nt),vt=Math.abs(vt);var ct=Math.pow(kt,2)/Math.pow(nt,2)+Math.pow(wt,2)/Math.pow(vt,2);ct>1&&(nt*=Math.sqrt(ct),vt*=Math.sqrt(ct));var It=ut(rt,tt,st,ot,nt,vt,at,St,Mt,Et,kt,wt),At=it(It,4),Ot=At[0],Pt=At[1],zt=At[2],Dt=At[3],Nt=Math.abs(Dt)/(xt/4);Math.abs(1-Nt)<1e-7&&(Nt=1);var $t=Math.max(Math.ceil(Nt),1);Dt/=$t;for(var Ut=0;Ut<$t;Ut++)_t.push(Tt(zt,Dt)),zt+=Dt;return _t.map(function(Ht){var Vt=et(Ht[0],nt,vt,Et,Mt,Ot,Pt),Xt=Vt.x,qt=Vt.y,er=et(Ht[1],nt,vt,Et,Mt,Ot,Pt),lr=er.x,Jt=er.y,Yt=et(Ht[2],nt,vt,Et,Mt,Ot,Pt),rr=Yt.x,jt=Yt.y;return{x1:Xt,y1:qt,x2:lr,y2:Jt,x:rr,y:jt}})};Rt.default=ht},74840:function(Ct,Rt,o){var it=o(21984),xt=o(49972),et=o(41976),Tt=o(53520),yt=o(45408);Ct.exports=ut;function ut(ht){if(Array.isArray(ht)&&ht.length===1&&typeof ht[0]=="string"&&(ht=ht[0]),typeof ht=="string"&&(yt(Tt(ht),"String is not an SVG path."),ht=it(ht)),yt(Array.isArray(ht),"Argument should be a string or an array of path segments."),ht=xt(ht),ht=et(ht),!ht.length)return[0,0,0,0];for(var j=[1/0,1/0,-1/0,-1/0],_=0,rt=ht.length;_j[2]&&(j[2]=tt[st+0]),tt[st+1]>j[3]&&(j[3]=tt[st+1]);return j}},41976:function(Ct,Rt,o){Ct.exports=xt;var it=o(92848);function xt(yt){for(var ut,ht=[],j=0,_=0,rt=0,tt=0,st=null,ot=null,nt=0,vt=0,dt=0,bt=yt.length;dt4?(j=ft[ft.length-4],_=ft[ft.length-3]):(j=nt,_=vt),ht.push(ft)}return ht}function et(yt,ut,ht,j){return["C",yt,ut,ht,j,ht,j]}function Tt(yt,ut,ht,j,_,rt){return["C",yt/3+.6666666666666666*ht,ut/3+.6666666666666666*j,_/3+.6666666666666666*ht,rt/3+.6666666666666666*j,_,rt]}},20472:function(Ct,Rt,o){var it=o(74840),xt=o(21984),et=o(22235),Tt=o(53520),yt=o(29620),ut=document.createElement("canvas"),ht=ut.getContext("2d");Ct.exports=j;function j(tt,st){if(!Tt(tt))throw Error("Argument should be valid svg path string");st||(st={});var ot,nt;st.shape?(ot=st.shape[0],nt=st.shape[1]):(ot=ut.width=st.w||st.width||200,nt=ut.height=st.h||st.height||200);var vt=Math.min(ot,nt),dt=st.stroke||0,bt=st.viewbox||st.viewBox||it(tt),ft=[ot/(bt[2]-bt[0]),nt/(bt[3]-bt[1])],at=Math.min(ft[0]||0,ft[1]||0)/2;if(ht.fillStyle="black",ht.fillRect(0,0,ot,nt),ht.fillStyle="white",dt&&(typeof dt!="number"&&(dt=1),dt>0?ht.strokeStyle="white":ht.strokeStyle="black",ht.lineWidth=Math.abs(dt)),ht.translate(ot*.5,nt*.5),ht.scale(at,at),rt()){var mt=new Path2D(tt);ht.fill(mt),dt&&ht.stroke(mt)}else{var St=xt(tt);et(ht,St),ht.fill(),dt&&ht.stroke()}ht.setTransform(1,0,0,1,0,0);var _t=yt(ht,{cutoff:st.cutoff!=null?st.cutoff:.5,radius:st.radius!=null?st.radius:vt*.5});return _t}var _;function rt(){if(_!=null)return _;var tt=document.createElement("canvas").getContext("2d");if(tt.canvas.width=tt.canvas.height=1,!window.Path2D)return _=!1;var st=new Path2D("M0,0h1v1h-1v-1Z");tt.fillStyle="black",tt.fill(st);var ot=tt.getImageData(0,0,1,1);return _=ot&&ot.data&&ot.data[3]===255}},49760:function(Ct,Rt,o){var it;(function(xt){var et=/^\s+/,Tt=/\s+$/,yt=0,ut=xt.round,ht=xt.min,j=xt.max,_=xt.random;function rt(Kt,or){if(Kt=Kt||"",or=or||{},Kt instanceof rt)return Kt;if(!(this instanceof rt))return new rt(Kt,or);var tr=tt(Kt);this._originalInput=Kt,this._r=tr.r,this._g=tr.g,this._b=tr.b,this._a=tr.a,this._roundA=ut(100*this._a)/100,this._format=or.format||tr.format,this._gradientType=or.gradientType,this._r<1&&(this._r=ut(this._r)),this._g<1&&(this._g=ut(this._g)),this._b<1&&(this._b=ut(this._b)),this._ok=tr.ok,this._tc_id=yt++}rt.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Kt=this.toRgb();return(Kt.r*299+Kt.g*587+Kt.b*114)/1e3},getLuminance:function(){var Kt=this.toRgb(),or,tr,cr,mr,Ar,br;return or=Kt.r/255,tr=Kt.g/255,cr=Kt.b/255,or<=.03928?mr=or/12.92:mr=xt.pow((or+.055)/1.055,2.4),tr<=.03928?Ar=tr/12.92:Ar=xt.pow((tr+.055)/1.055,2.4),cr<=.03928?br=cr/12.92:br=xt.pow((cr+.055)/1.055,2.4),.2126*mr+.7152*Ar+.0722*br},setAlpha:function(Kt){return this._a=Ut(Kt),this._roundA=ut(100*this._a)/100,this},toHsv:function(){var Kt=vt(this._r,this._g,this._b);return{h:Kt.h*360,s:Kt.s,v:Kt.v,a:this._a}},toHsvString:function(){var Kt=vt(this._r,this._g,this._b),or=ut(Kt.h*360),tr=ut(Kt.s*100),cr=ut(Kt.v*100);return this._a==1?"hsv("+or+", "+tr+"%, "+cr+"%)":"hsva("+or+", "+tr+"%, "+cr+"%, "+this._roundA+")"},toHsl:function(){var Kt=ot(this._r,this._g,this._b);return{h:Kt.h*360,s:Kt.s,l:Kt.l,a:this._a}},toHslString:function(){var Kt=ot(this._r,this._g,this._b),or=ut(Kt.h*360),tr=ut(Kt.s*100),cr=ut(Kt.l*100);return this._a==1?"hsl("+or+", "+tr+"%, "+cr+"%)":"hsla("+or+", "+tr+"%, "+cr+"%, "+this._roundA+")"},toHex:function(Kt){return bt(this._r,this._g,this._b,Kt)},toHexString:function(Kt){return"#"+this.toHex(Kt)},toHex8:function(Kt){return ft(this._r,this._g,this._b,this._a,Kt)},toHex8String:function(Kt){return"#"+this.toHex8(Kt)},toRgb:function(){return{r:ut(this._r),g:ut(this._g),b:ut(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+ut(this._r)+", "+ut(this._g)+", "+ut(this._b)+")":"rgba("+ut(this._r)+", "+ut(this._g)+", "+ut(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:ut(Ht(this._r,255)*100)+"%",g:ut(Ht(this._g,255)*100)+"%",b:ut(Ht(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+ut(Ht(this._r,255)*100)+"%, "+ut(Ht(this._g,255)*100)+"%, "+ut(Ht(this._b,255)*100)+"%)":"rgba("+ut(Ht(this._r,255)*100)+"%, "+ut(Ht(this._g,255)*100)+"%, "+ut(Ht(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Nt[bt(this._r,this._g,this._b,!0)]||!1},toFilter:function(Kt){var or="#"+at(this._r,this._g,this._b,this._a),tr=or,cr=this._gradientType?"GradientType = 1, ":"";if(Kt){var mr=rt(Kt);tr="#"+at(mr._r,mr._g,mr._b,mr._a)}return"progid:DXImageTransform.Microsoft.gradient("+cr+"startColorstr="+or+",endColorstr="+tr+")"},toString:function(Kt){var or=!!Kt;Kt=Kt||this._format;var tr=!1,cr=this._a<1&&this._a>=0,mr=!or&&cr&&(Kt==="hex"||Kt==="hex6"||Kt==="hex3"||Kt==="hex4"||Kt==="hex8"||Kt==="name");return mr?Kt==="name"&&this._a===0?this.toName():this.toRgbString():(Kt==="rgb"&&(tr=this.toRgbString()),Kt==="prgb"&&(tr=this.toPercentageRgbString()),(Kt==="hex"||Kt==="hex6")&&(tr=this.toHexString()),Kt==="hex3"&&(tr=this.toHexString(!0)),Kt==="hex4"&&(tr=this.toHex8String(!0)),Kt==="hex8"&&(tr=this.toHex8String()),Kt==="name"&&(tr=this.toName()),Kt==="hsl"&&(tr=this.toHslString()),Kt==="hsv"&&(tr=this.toHsvString()),tr||this.toHexString())},clone:function(){return rt(this.toString())},_applyModification:function(Kt,or){var tr=Kt.apply(null,[this].concat([].slice.call(or)));return this._r=tr._r,this._g=tr._g,this._b=tr._b,this.setAlpha(tr._a),this},lighten:function(){return this._applyModification(Mt,arguments)},brighten:function(){return this._applyModification(Et,arguments)},darken:function(){return this._applyModification(kt,arguments)},desaturate:function(){return this._applyModification(mt,arguments)},saturate:function(){return this._applyModification(St,arguments)},greyscale:function(){return this._applyModification(_t,arguments)},spin:function(){return this._applyModification(wt,arguments)},_applyCombination:function(Kt,or){return Kt.apply(null,[this].concat([].slice.call(or)))},analogous:function(){return this._applyCombination(Pt,arguments)},complement:function(){return this._applyCombination(ct,arguments)},monochromatic:function(){return this._applyCombination(zt,arguments)},splitcomplement:function(){return this._applyCombination(Ot,arguments)},triad:function(){return this._applyCombination(It,arguments)},tetrad:function(){return this._applyCombination(At,arguments)}},rt.fromRatio=function(Kt,or){if(typeof Kt=="object"){var tr={};for(var cr in Kt)Kt.hasOwnProperty(cr)&&(cr==="a"?tr[cr]=Kt[cr]:tr[cr]=Jt(Kt[cr]));Kt=tr}return rt(Kt,or)};function tt(Kt){var or={r:0,g:0,b:0},tr=1,cr=null,mr=null,Ar=null,br=!1,Ir=!1;return typeof Kt=="string"&&(Kt=sr(Kt)),typeof Kt=="object"&&(ar(Kt.r)&&ar(Kt.g)&&ar(Kt.b)?(or=st(Kt.r,Kt.g,Kt.b),br=!0,Ir=String(Kt.r).substr(-1)==="%"?"prgb":"rgb"):ar(Kt.h)&&ar(Kt.s)&&ar(Kt.v)?(cr=Jt(Kt.s),mr=Jt(Kt.v),or=dt(Kt.h,cr,mr),br=!0,Ir="hsv"):ar(Kt.h)&&ar(Kt.s)&&ar(Kt.l)&&(cr=Jt(Kt.s),Ar=Jt(Kt.l),or=nt(Kt.h,cr,Ar),br=!0,Ir="hsl"),Kt.hasOwnProperty("a")&&(tr=Kt.a)),tr=Ut(tr),{ok:br,format:Kt.format||Ir,r:ht(255,j(or.r,0)),g:ht(255,j(or.g,0)),b:ht(255,j(or.b,0)),a:tr}}function st(Kt,or,tr){return{r:Ht(Kt,255)*255,g:Ht(or,255)*255,b:Ht(tr,255)*255}}function ot(Kt,or,tr){Kt=Ht(Kt,255),or=Ht(or,255),tr=Ht(tr,255);var cr=j(Kt,or,tr),mr=ht(Kt,or,tr),Ar,br,Ir=(cr+mr)/2;if(cr==mr)Ar=br=0;else{var Tr=cr-mr;switch(br=Ir>.5?Tr/(2-cr-mr):Tr/(cr+mr),cr){case Kt:Ar=(or-tr)/Tr+(or1&&(Rr-=1),Rr<.16666666666666666?_r+(Er-_r)*6*Rr:Rr<.5?Er:Rr<.6666666666666666?_r+(Er-_r)*(.6666666666666666-Rr)*6:_r}if(or===0)cr=mr=Ar=tr;else{var Ir=tr<.5?tr*(1+or):tr+or-tr*or,Tr=2*tr-Ir;cr=br(Tr,Ir,Kt+.3333333333333333),mr=br(Tr,Ir,Kt),Ar=br(Tr,Ir,Kt-.3333333333333333)}return{r:cr*255,g:mr*255,b:Ar*255}}function vt(Kt,or,tr){Kt=Ht(Kt,255),or=Ht(or,255),tr=Ht(tr,255);var cr=j(Kt,or,tr),mr=ht(Kt,or,tr),Ar,br,Ir=cr,Tr=cr-mr;if(br=cr===0?0:Tr/cr,cr==mr)Ar=0;else{switch(cr){case Kt:Ar=(or-tr)/Tr+(or>1)+720)%360;--or;)cr.h=(cr.h+mr)%360,Ar.push(rt(cr));return Ar}function zt(Kt,or){or=or||6;for(var tr=rt(Kt).toHsv(),cr=tr.h,mr=tr.s,Ar=tr.v,br=[],Ir=1/or;or--;)br.push(rt({h:cr,s:mr,v:Ar})),Ar=(Ar+Ir)%1;return br}rt.mix=function(Kt,or,tr){tr=tr===0?0:tr||50;var cr=rt(Kt).toRgb(),mr=rt(or).toRgb(),Ar=tr/100,br={r:(mr.r-cr.r)*Ar+cr.r,g:(mr.g-cr.g)*Ar+cr.g,b:(mr.b-cr.b)*Ar+cr.b,a:(mr.a-cr.a)*Ar+cr.a};return rt(br)},rt.readability=function(Kt,or){var tr=rt(Kt),cr=rt(or);return(xt.max(tr.getLuminance(),cr.getLuminance())+.05)/(xt.min(tr.getLuminance(),cr.getLuminance())+.05)},rt.isReadable=function(Kt,or,tr){var cr=rt.readability(Kt,or),mr,Ar;switch(Ar=!1,mr=Zt(tr),mr.level+mr.size){case"AAsmall":case"AAAlarge":Ar=cr>=4.5;break;case"AAlarge":Ar=cr>=3;break;case"AAAsmall":Ar=cr>=7;break}return Ar},rt.mostReadable=function(Kt,or,tr){var cr=null,mr=0,Ar,br,Ir,Tr;tr=tr||{},br=tr.includeFallbackColors,Ir=tr.level,Tr=tr.size;for(var _r=0;_rmr&&(mr=Ar,cr=rt(or[_r]));return rt.isReadable(Kt,cr,{level:Ir,size:Tr})||!br?cr:(tr.includeFallbackColors=!1,rt.mostReadable(Kt,["#fff","#000"],tr))};var Dt=rt.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Nt=rt.hexNames=$t(Dt);function $t(Kt){var or={};for(var tr in Kt)Kt.hasOwnProperty(tr)&&(or[Kt[tr]]=tr);return or}function Ut(Kt){return Kt=parseFloat(Kt),(isNaN(Kt)||Kt<0||Kt>1)&&(Kt=1),Kt}function Ht(Kt,or){qt(Kt)&&(Kt="100%");var tr=er(Kt);return Kt=ht(or,j(0,parseFloat(Kt))),tr&&(Kt=parseInt(Kt*or,10)/100),xt.abs(Kt-or)<1e-6?1:Kt%or/parseFloat(or)}function Vt(Kt){return ht(1,j(0,Kt))}function Xt(Kt){return parseInt(Kt,16)}function qt(Kt){return typeof Kt=="string"&&Kt.indexOf(".")!=-1&&parseFloat(Kt)===1}function er(Kt){return typeof Kt=="string"&&Kt.indexOf("%")!=-1}function lr(Kt){return Kt.length==1?"0"+Kt:""+Kt}function Jt(Kt){return Kt<=1&&(Kt=Kt*100+"%"),Kt}function Yt(Kt){return xt.round(parseFloat(Kt)*255).toString(16)}function rr(Kt){return Xt(Kt)/255}var jt=function(){var Kt="[-\\+]?\\d+%?",or="[-\\+]?\\d*\\.\\d+%?",tr="(?:"+or+")|(?:"+Kt+")",cr="[\\s|\\(]+("+tr+")[,|\\s]+("+tr+")[,|\\s]+("+tr+")\\s*\\)?",mr="[\\s|\\(]+("+tr+")[,|\\s]+("+tr+")[,|\\s]+("+tr+")[,|\\s]+("+tr+")\\s*\\)?";return{CSS_UNIT:new RegExp(tr),rgb:new RegExp("rgb"+cr),rgba:new RegExp("rgba"+mr),hsl:new RegExp("hsl"+cr),hsla:new RegExp("hsla"+mr),hsv:new RegExp("hsv"+cr),hsva:new RegExp("hsva"+mr),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ar(Kt){return!!jt.CSS_UNIT.exec(Kt)}function sr(Kt){Kt=Kt.replace(et,"").replace(Tt,"").toLowerCase();var or=!1;if(Dt[Kt])Kt=Dt[Kt],or=!0;else if(Kt=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var tr;return(tr=jt.rgb.exec(Kt))?{r:tr[1],g:tr[2],b:tr[3]}:(tr=jt.rgba.exec(Kt))?{r:tr[1],g:tr[2],b:tr[3],a:tr[4]}:(tr=jt.hsl.exec(Kt))?{h:tr[1],s:tr[2],l:tr[3]}:(tr=jt.hsla.exec(Kt))?{h:tr[1],s:tr[2],l:tr[3],a:tr[4]}:(tr=jt.hsv.exec(Kt))?{h:tr[1],s:tr[2],v:tr[3]}:(tr=jt.hsva.exec(Kt))?{h:tr[1],s:tr[2],v:tr[3],a:tr[4]}:(tr=jt.hex8.exec(Kt))?{r:Xt(tr[1]),g:Xt(tr[2]),b:Xt(tr[3]),a:rr(tr[4]),format:or?"name":"hex8"}:(tr=jt.hex6.exec(Kt))?{r:Xt(tr[1]),g:Xt(tr[2]),b:Xt(tr[3]),format:or?"name":"hex"}:(tr=jt.hex4.exec(Kt))?{r:Xt(tr[1]+""+tr[1]),g:Xt(tr[2]+""+tr[2]),b:Xt(tr[3]+""+tr[3]),a:rr(tr[4]+""+tr[4]),format:or?"name":"hex8"}:(tr=jt.hex3.exec(Kt))?{r:Xt(tr[1]+""+tr[1]),g:Xt(tr[2]+""+tr[2]),b:Xt(tr[3]+""+tr[3]),format:or?"name":"hex"}:!1}function Zt(Kt){var or,tr;return Kt=Kt||{level:"AA",size:"small"},or=(Kt.level||"AA").toUpperCase(),tr=(Kt.size||"small").toLowerCase(),or!=="AA"&&or!=="AAA"&&(or="AA"),tr!=="small"&&tr!=="large"&&(tr="small"),{level:or,size:tr}}Ct.exports?Ct.exports=rt:(it=function(){return rt}.call(Rt,o,Rt,Ct),it!==void 0&&(Ct.exports=it))})(Math)},37816:function(Ct){Ct.exports=it,Ct.exports.float32=Ct.exports.float=it,Ct.exports.fract32=Ct.exports.fract=o;var Rt=new Float32Array(1);function o(xt,et){if(xt.length){if(xt instanceof Float32Array)return new Float32Array(xt.length);et instanceof Float32Array||(et=it(xt));for(var Tt=0,yt=et.length;Tt":(Tt.length>100&&(Tt=Tt.slice(0,99)+"…"),Tt=Tt.replace(xt,function(yt){switch(yt){case` +`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),Tt)}},7328:function(Ct,Rt,o){var it=o(81680),xt={object:!0,function:!0,undefined:!0};Ct.exports=function(et){return it(et)?hasOwnProperty.call(xt,typeof et):!1}},87396:function(Ct,Rt,o){var it=o(57980),xt=o(85488);Ct.exports=function(et){return xt(et)?et:it(et,"%v is not a plain function",arguments[1])}},85488:function(Ct,Rt,o){var it=o(73384),xt=/^\s*class[\s{/}]/,et=Function.prototype.toString;Ct.exports=function(Tt){return!(!it(Tt)||xt.test(et.call(Tt)))}},54612:function(Ct,Rt,o){var it=o(7328);Ct.exports=function(xt){if(!it(xt))return!1;try{return xt.constructor?xt.constructor.prototype===xt:!1}catch{return!1}}},33940:function(Ct,Rt,o){var it=o(81680),xt=o(7328),et=Object.prototype.toString;Ct.exports=function(Tt){if(!it(Tt))return null;if(xt(Tt)){var yt=Tt.toString;if(typeof yt!="function"||yt===et)return null}try{return""+Tt}catch{return null}}},18496:function(Ct,Rt,o){var it=o(57980),xt=o(81680);Ct.exports=function(et){return xt(et)?et:it(et,"Cannot use %v",arguments[1])}},81680:function(Ct){var Rt=void 0;Ct.exports=function(o){return o!==Rt&&o!==null}},14144:function(Ct,Rt,o){var it=o(308),xt=o(10352),et=o(33576).Buffer;o.g.__TYPEDARRAY_POOL||(o.g.__TYPEDARRAY_POOL={UINT8:xt([32,0]),UINT16:xt([32,0]),UINT32:xt([32,0]),BIGUINT64:xt([32,0]),INT8:xt([32,0]),INT16:xt([32,0]),INT32:xt([32,0]),BIGINT64:xt([32,0]),FLOAT:xt([32,0]),DOUBLE:xt([32,0]),DATA:xt([32,0]),UINT8C:xt([32,0]),BUFFER:xt([32,0])});var Tt=typeof Uint8ClampedArray<"u",yt=typeof BigUint64Array<"u",ut=typeof BigInt64Array<"u",ht=o.g.__TYPEDARRAY_POOL;ht.UINT8C||(ht.UINT8C=xt([32,0])),ht.BIGUINT64||(ht.BIGUINT64=xt([32,0])),ht.BIGINT64||(ht.BIGINT64=xt([32,0])),ht.BUFFER||(ht.BUFFER=xt([32,0]));var j=ht.DATA,_=ht.BUFFER;Rt.free=function(ct){if(et.isBuffer(ct))_[it.log2(ct.length)].push(ct);else{if(Object.prototype.toString.call(ct)!=="[object ArrayBuffer]"&&(ct=ct.buffer),!ct)return;var It=ct.length||ct.byteLength,At=it.log2(It)|0;j[At].push(ct)}};function rt(wt){if(wt){var ct=wt.length||wt.byteLength,It=it.log2(ct);j[It].push(wt)}}function tt(wt){rt(wt.buffer)}Rt.freeUint8=Rt.freeUint16=Rt.freeUint32=Rt.freeBigUint64=Rt.freeInt8=Rt.freeInt16=Rt.freeInt32=Rt.freeBigInt64=Rt.freeFloat32=Rt.freeFloat=Rt.freeFloat64=Rt.freeDouble=Rt.freeUint8Clamped=Rt.freeDataView=tt,Rt.freeArrayBuffer=rt,Rt.freeBuffer=function(ct){_[it.log2(ct.length)].push(ct)},Rt.malloc=function(ct,It){if(It===void 0||It==="arraybuffer")return st(ct);switch(It){case"uint8":return ot(ct);case"uint16":return nt(ct);case"uint32":return vt(ct);case"int8":return dt(ct);case"int16":return bt(ct);case"int32":return ft(ct);case"float":case"float32":return at(ct);case"double":case"float64":return mt(ct);case"uint8_clamped":return St(ct);case"bigint64":return Mt(ct);case"biguint64":return _t(ct);case"buffer":return kt(ct);case"data":case"dataview":return Et(ct);default:return null}return null};function st(ct){var ct=it.nextPow2(ct),It=it.log2(ct),At=j[It];return At.length>0?At.pop():new ArrayBuffer(ct)}Rt.mallocArrayBuffer=st;function ot(wt){return new Uint8Array(st(wt),0,wt)}Rt.mallocUint8=ot;function nt(wt){return new Uint16Array(st(2*wt),0,wt)}Rt.mallocUint16=nt;function vt(wt){return new Uint32Array(st(4*wt),0,wt)}Rt.mallocUint32=vt;function dt(wt){return new Int8Array(st(wt),0,wt)}Rt.mallocInt8=dt;function bt(wt){return new Int16Array(st(2*wt),0,wt)}Rt.mallocInt16=bt;function ft(wt){return new Int32Array(st(4*wt),0,wt)}Rt.mallocInt32=ft;function at(wt){return new Float32Array(st(4*wt),0,wt)}Rt.mallocFloat32=Rt.mallocFloat=at;function mt(wt){return new Float64Array(st(8*wt),0,wt)}Rt.mallocFloat64=Rt.mallocDouble=mt;function St(wt){return Tt?new Uint8ClampedArray(st(wt),0,wt):ot(wt)}Rt.mallocUint8Clamped=St;function _t(wt){return yt?new BigUint64Array(st(8*wt),0,wt):null}Rt.mallocBigUint64=_t;function Mt(wt){return ut?new BigInt64Array(st(8*wt),0,wt):null}Rt.mallocBigInt64=Mt;function Et(wt){return new DataView(st(wt),0,wt)}Rt.mallocDataView=Et;function kt(wt){wt=it.nextPow2(wt);var ct=it.log2(wt),It=_[ct];return It.length>0?It.pop():new et(wt)}Rt.mallocBuffer=kt,Rt.clearCache=function(){for(var ct=0;ct<32;++ct)ht.UINT8[ct].length=0,ht.UINT16[ct].length=0,ht.UINT32[ct].length=0,ht.INT8[ct].length=0,ht.INT16[ct].length=0,ht.INT32[ct].length=0,ht.FLOAT[ct].length=0,ht.DOUBLE[ct].length=0,ht.BIGUINT64[ct].length=0,ht.BIGINT64[ct].length=0,ht.UINT8C[ct].length=0,j[ct].length=0,_[ct].length=0}},92384:function(Ct){var Rt=/[\'\"]/;Ct.exports=function(it){return it?(Rt.test(it.charAt(0))&&(it=it.substr(1)),Rt.test(it.charAt(it.length-1))&&(it=it.substr(0,it.length-1)),it):""}},45223:function(Ct){Ct.exports=function(o,it,xt){Array.isArray(xt)||(xt=[].slice.call(arguments,2));for(var et=0,Tt=xt.length;et"u"?!1:It.working?It(Ar):Ar instanceof Map}Rt.isMap=At;function Ot(Ar){return j(Ar)==="[object Set]"}Ot.working=typeof Set<"u"&&Ot(new Set);function Pt(Ar){return typeof Set>"u"?!1:Ot.working?Ot(Ar):Ar instanceof Set}Rt.isSet=Pt;function zt(Ar){return j(Ar)==="[object WeakMap]"}zt.working=typeof WeakMap<"u"&&zt(new WeakMap);function Dt(Ar){return typeof WeakMap>"u"?!1:zt.working?zt(Ar):Ar instanceof WeakMap}Rt.isWeakMap=Dt;function Nt(Ar){return j(Ar)==="[object WeakSet]"}Nt.working=typeof WeakSet<"u"&&Nt(new WeakSet);function $t(Ar){return Nt(Ar)}Rt.isWeakSet=$t;function Ut(Ar){return j(Ar)==="[object ArrayBuffer]"}Ut.working=typeof ArrayBuffer<"u"&&Ut(new ArrayBuffer);function Ht(Ar){return typeof ArrayBuffer>"u"?!1:Ut.working?Ut(Ar):Ar instanceof ArrayBuffer}Rt.isArrayBuffer=Ht;function Vt(Ar){return j(Ar)==="[object DataView]"}Vt.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Vt(new DataView(new ArrayBuffer(1),0,1));function Xt(Ar){return typeof DataView>"u"?!1:Vt.working?Vt(Ar):Ar instanceof DataView}Rt.isDataView=Xt;var qt=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function er(Ar){return j(Ar)==="[object SharedArrayBuffer]"}function lr(Ar){return typeof qt>"u"?!1:(typeof er.working>"u"&&(er.working=er(new qt)),er.working?er(Ar):Ar instanceof qt)}Rt.isSharedArrayBuffer=lr;function Jt(Ar){return j(Ar)==="[object AsyncFunction]"}Rt.isAsyncFunction=Jt;function Yt(Ar){return j(Ar)==="[object Map Iterator]"}Rt.isMapIterator=Yt;function rr(Ar){return j(Ar)==="[object Set Iterator]"}Rt.isSetIterator=rr;function jt(Ar){return j(Ar)==="[object Generator]"}Rt.isGeneratorObject=jt;function ar(Ar){return j(Ar)==="[object WebAssembly.Module]"}Rt.isWebAssemblyCompiledModule=ar;function sr(Ar){return nt(Ar,_)}Rt.isNumberObject=sr;function Zt(Ar){return nt(Ar,rt)}Rt.isStringObject=Zt;function Kt(Ar){return nt(Ar,tt)}Rt.isBooleanObject=Kt;function or(Ar){return ut&&nt(Ar,st)}Rt.isBigIntObject=or;function tr(Ar){return ht&&nt(Ar,ot)}Rt.isSymbolObject=tr;function cr(Ar){return sr(Ar)||Zt(Ar)||Kt(Ar)||or(Ar)||tr(Ar)}Rt.isBoxedPrimitive=cr;function mr(Ar){return typeof Uint8Array<"u"&&(Ht(Ar)||lr(Ar))}Rt.isAnyArrayBuffer=mr,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(Ar){Object.defineProperty(Rt,Ar,{enumerable:!1,value:function(){throw new Error(Ar+" is not supported in userland")}})})},35840:function(Ct,Rt,o){var it=o(4168),xt=Object.getOwnPropertyDescriptors||function(qt){for(var er=Object.keys(qt),lr={},Jt=0;Jt=Jt)return jt;switch(jt){case"%s":return String(lr[er++]);case"%d":return Number(lr[er++]);case"%j":try{return JSON.stringify(lr[er++])}catch{return"[Circular]"}default:return jt}}),rr=lr[er];er"u")return function(){return Rt.deprecate(Xt,qt).apply(this,arguments)};var er=!1;function lr(){if(!er){if(it.throwDeprecation)throw new Error(qt);it.traceDeprecation?console.trace(qt):console.error(qt),er=!0}return Xt.apply(this,arguments)}return lr};var Tt={},yt=/^$/;if({}.NODE_DEBUG){var ut={}.NODE_DEBUG;ut=ut.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),yt=new RegExp("^"+ut+"$","i")}Rt.debuglog=function(Xt){if(Xt=Xt.toUpperCase(),!Tt[Xt])if(yt.test(Xt)){var qt=it.pid;Tt[Xt]=function(){var er=Rt.format.apply(Rt,arguments);console.error("%s %d: %s",Xt,qt,er)}}else Tt[Xt]=function(){};return Tt[Xt]};function ht(Xt,qt){var er={seen:[],stylize:_};return arguments.length>=3&&(er.depth=arguments[2]),arguments.length>=4&&(er.colors=arguments[3]),ft(qt)?er.showHidden=qt:qt&&Rt._extend(er,qt),Et(er.showHidden)&&(er.showHidden=!1),Et(er.depth)&&(er.depth=2),Et(er.colors)&&(er.colors=!1),Et(er.customInspect)&&(er.customInspect=!0),er.colors&&(er.stylize=j),tt(er,Xt,er.depth)}Rt.inspect=ht,ht.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]},ht.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function j(Xt,qt){var er=ht.styles[qt];return er?"\x1B["+ht.colors[er][0]+"m"+Xt+"\x1B["+ht.colors[er][1]+"m":Xt}function _(Xt,qt){return Xt}function rt(Xt){var qt={};return Xt.forEach(function(er,lr){qt[er]=!0}),qt}function tt(Xt,qt,er){if(Xt.customInspect&&qt&&At(qt.inspect)&&qt.inspect!==Rt.inspect&&!(qt.constructor&&qt.constructor.prototype===qt)){var lr=qt.inspect(er,Xt);return _t(lr)||(lr=tt(Xt,lr,er)),lr}var Jt=st(Xt,qt);if(Jt)return Jt;var Yt=Object.keys(qt),rr=rt(Yt);if(Xt.showHidden&&(Yt=Object.getOwnPropertyNames(qt)),It(qt)&&(Yt.indexOf("message")>=0||Yt.indexOf("description")>=0))return ot(qt);if(Yt.length===0){if(At(qt)){var jt=qt.name?": "+qt.name:"";return Xt.stylize("[Function"+jt+"]","special")}if(kt(qt))return Xt.stylize(RegExp.prototype.toString.call(qt),"regexp");if(ct(qt))return Xt.stylize(Date.prototype.toString.call(qt),"date");if(It(qt))return ot(qt)}var ar="",sr=!1,Zt=["{","}"];if(bt(qt)&&(sr=!0,Zt=["[","]"]),At(qt)){var Kt=qt.name?": "+qt.name:"";ar=" [Function"+Kt+"]"}if(kt(qt)&&(ar=" "+RegExp.prototype.toString.call(qt)),ct(qt)&&(ar=" "+Date.prototype.toUTCString.call(qt)),It(qt)&&(ar=" "+ot(qt)),Yt.length===0&&(!sr||qt.length==0))return Zt[0]+ar+Zt[1];if(er<0)return kt(qt)?Xt.stylize(RegExp.prototype.toString.call(qt),"regexp"):Xt.stylize("[Object]","special");Xt.seen.push(qt);var or;return sr?or=nt(Xt,qt,er,rr,Yt):or=Yt.map(function(tr){return vt(Xt,qt,er,rr,tr,sr)}),Xt.seen.pop(),dt(or,ar,Zt)}function st(Xt,qt){if(Et(qt))return Xt.stylize("undefined","undefined");if(_t(qt)){var er="'"+JSON.stringify(qt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Xt.stylize(er,"string")}if(St(qt))return Xt.stylize(""+qt,"number");if(ft(qt))return Xt.stylize(""+qt,"boolean");if(at(qt))return Xt.stylize("null","null")}function ot(Xt){return"["+Error.prototype.toString.call(Xt)+"]"}function nt(Xt,qt,er,lr,Jt){for(var Yt=[],rr=0,jt=qt.length;rr-1&&(Yt?jt=jt.split(` `).map(function(sr){return" "+sr}).join(` `).slice(2):jt=` `+jt.split(` `).map(function(sr){return" "+sr}).join(` -`))):jt=Xt.stylize("[Circular]","special")),Tt(rr)){if(Yt&&Jt.match(/^\d+$/))return jt;rr=JSON.stringify(""+Jt),rr.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(rr=rr.slice(1,-1),rr=Xt.stylize(rr,"name")):(rr=rr.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),rr=Xt.stylize(rr,"string"))}return rr+": "+jt}function dt(Xt,qt,er){var lr=Xt.reduce(function(Jt,Yt){return Yt.indexOf(` +`))):jt=Xt.stylize("[Circular]","special")),Et(rr)){if(Yt&&Jt.match(/^\d+$/))return jt;rr=JSON.stringify(""+Jt),rr.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(rr=rr.slice(1,-1),rr=Xt.stylize(rr,"name")):(rr=rr.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),rr=Xt.stylize(rr,"string"))}return rr+": "+jt}function dt(Xt,qt,er){var lr=Xt.reduce(function(Jt,Yt){return Yt.indexOf(` `)>=0,Jt+Yt.replace(/\u001b\[\d\d?m/g,"").length+1},0);return lr>60?er[0]+(qt===""?"":qt+` `)+" "+Xt.join(`, - `)+" "+er[1]:er[0]+qt+" "+Xt.join(", ")+" "+er[1]}Rt.types=o(41088);function bt(Xt){return Array.isArray(Xt)}Rt.isArray=bt;function ft(Xt){return typeof Xt=="boolean"}Rt.isBoolean=ft;function at(Xt){return Xt===null}Rt.isNull=at;function yt(Xt){return Xt==null}Rt.isNullOrUndefined=yt;function St(Xt){return typeof Xt=="number"}Rt.isNumber=St;function _t(Xt){return typeof Xt=="string"}Rt.isString=_t;function Mt(Xt){return typeof Xt=="symbol"}Rt.isSymbol=Mt;function Tt(Xt){return Xt===void 0}Rt.isUndefined=Tt;function kt(Xt){return wt(Xt)&&Pt(Xt)==="[object RegExp]"}Rt.isRegExp=kt,Rt.types.isRegExp=kt;function wt(Xt){return typeof Xt=="object"&&Xt!==null}Rt.isObject=wt;function ct(Xt){return wt(Xt)&&Pt(Xt)==="[object Date]"}Rt.isDate=ct,Rt.types.isDate=ct;function It(Xt){return wt(Xt)&&(Pt(Xt)==="[object Error]"||Xt instanceof Error)}Rt.isError=It,Rt.types.isNativeError=It;function At(Xt){return typeof Xt=="function"}Rt.isFunction=At;function Ot(Xt){return Xt===null||typeof Xt=="boolean"||typeof Xt=="number"||typeof Xt=="string"||typeof Xt=="symbol"||typeof Xt>"u"}Rt.isPrimitive=Ot,Rt.isBuffer=o(75272);function Pt(Xt){return Object.prototype.toString.call(Xt)}function zt(Xt){return Xt<10?"0"+Xt.toString(10):Xt.toString(10)}var Dt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Nt(){var Xt=new Date,qt=[zt(Xt.getHours()),zt(Xt.getMinutes()),zt(Xt.getSeconds())].join(":");return[Xt.getDate(),Dt[Xt.getMonth()],qt].join(" ")}Rt.log=function(){console.log("%s - %s",Nt(),Rt.format.apply(Rt,arguments))},Rt.inherits=o(6768),Rt._extend=function(Xt,qt){if(!qt||!wt(qt))return Xt;for(var er=Object.keys(qt),lr=er.length;lr--;)Xt[er[lr]]=qt[er[lr]];return Xt};function $t(Xt,qt){return Object.prototype.hasOwnProperty.call(Xt,qt)}var Ut=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Rt.promisify=function(qt){if(typeof qt!="function")throw new TypeError('The "original" argument must be of type Function');if(Ut&&qt[Ut]){var er=qt[Ut];if(typeof er!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(er,Ut,{value:er,enumerable:!1,writable:!1,configurable:!0}),er}function er(){for(var lr,Jt,Yt=new Promise(function(ar,sr){lr=ar,Jt=sr}),rr=[],jt=0;jt"u"?o.g:globalThis,_=xt(),rt=Et("String.prototype.slice"),tt=Object.getPrototypeOf,st=Et("Array.prototype.indexOf",!0)||function(bt,ft){for(var at=0;at-1?ft:ft!=="Object"?!1:vt(bt)}return mt?nt(bt):null}},67020:function(Ct,Rt,o){var it=o(38700),xt=o(50896),et=it.instance();function Et(ot){this.local=this.regionalOptions[ot||""]||this.regionalOptions[""]}Et.prototype=new it.baseCalendar,xt(Et.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(ot,nt){if(typeof ot=="string"){var vt=ot.match(ut);return vt?vt[0]:""}var dt=this._validateYear(ot),bt=ot.month(),ft=""+this.toChineseMonth(dt,bt);return nt&&ft.length<2&&(ft="0"+ft),this.isIntercalaryMonth(dt,bt)&&(ft+="i"),ft},monthNames:function(ot){if(typeof ot=="string"){var nt=ot.match(ht);return nt?nt[0]:""}var vt=this._validateYear(ot),dt=ot.month(),bt=this.toChineseMonth(vt,dt),ft=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][bt-1];return this.isIntercalaryMonth(vt,dt)&&(ft="闰"+ft),ft},monthNamesShort:function(ot){if(typeof ot=="string"){var nt=ot.match(j);return nt?nt[0]:""}var vt=this._validateYear(ot),dt=ot.month(),bt=this.toChineseMonth(vt,dt),ft=["一","二","三","四","五","六","七","八","九","十","十一","十二"][bt-1];return this.isIntercalaryMonth(vt,dt)&&(ft="闰"+ft),ft},parseMonth:function(ot,nt){ot=this._validateYear(ot);var vt=parseInt(nt),dt;if(isNaN(vt))nt[0]==="闰"&&(dt=!0,nt=nt.substring(1)),nt[nt.length-1]==="月"&&(nt=nt.substring(0,nt.length-1)),vt=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(nt);else{var bt=nt[nt.length-1];dt=bt==="i"||bt==="I"}var ft=this.toMonthIndex(ot,vt,dt);return ft},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(ot,nt){if(ot.year&&(ot=ot.year()),typeof ot!="number"||ot<1888||ot>2111)throw nt.replace(/\{0\}/,this.local.name);return ot},toMonthIndex:function(ot,nt,vt){var dt=this.intercalaryMonth(ot),bt=vt&&nt!==dt;if(bt||nt<1||nt>12)throw it.local.invalidMonth.replace(/\{0\}/,this.local.name);var ft;return dt?!vt&&nt<=dt?ft=nt-1:ft=nt:ft=nt-1,ft},toChineseMonth:function(ot,nt){ot.year&&(ot=ot.year(),nt=ot.month());var vt=this.intercalaryMonth(ot),dt=vt?12:11;if(nt<0||nt>dt)throw it.local.invalidMonth.replace(/\{0\}/,this.local.name);var bt;return vt?nt>13;return vt},isIntercalaryMonth:function(ot,nt){ot.year&&(ot=ot.year(),nt=ot.month());var vt=this.intercalaryMonth(ot);return!!vt&&vt===nt},leapYear:function(ot){return this.intercalaryMonth(ot)!==0},weekOfYear:function(ot,nt,vt){var dt=this._validateYear(ot,it.local.invalidyear),bt=rt[dt-rt[0]],ft=bt>>9&4095,at=bt>>5&15,yt=bt&31,St;St=et.newDate(ft,at,yt),St.add(4-(St.dayOfWeek()||7),"d");var _t=this.toJD(ot,nt,vt)-St.toJD();return 1+Math.floor(_t/7)},monthsInYear:function(ot){return this.leapYear(ot)?13:12},daysInMonth:function(ot,nt){ot.year&&(nt=ot.month(),ot=ot.year()),ot=this._validateYear(ot);var vt=_[ot-_[0]],dt=vt>>13,bt=dt?12:11;if(nt>bt)throw it.local.invalidMonth.replace(/\{0\}/,this.local.name);var ft=vt&1<<12-nt?30:29;return ft},weekDay:function(ot,nt,vt){return(this.dayOfWeek(ot,nt,vt)||7)<6},toJD:function(ot,nt,vt){var dt=this._validate(ot,ft,vt,it.local.invalidDate);ot=this._validateYear(dt.year()),nt=dt.month(),vt=dt.day();var bt=this.isIntercalaryMonth(ot,nt),ft=this.toChineseMonth(ot,nt),at=st(ot,ft,vt,bt);return et.toJD(at.year,at.month,at.day)},fromJD:function(ot){var nt=et.fromJD(ot),vt=tt(nt.year(),nt.month(),nt.day()),dt=this.toMonthIndex(vt.year,vt.month,vt.isIntercalary);return this.newDate(vt.year,dt,vt.day)},fromString:function(ot){var nt=ot.match(mt),vt=this._validateYear(+nt[1]),dt=+nt[2],bt=!!nt[3],ft=this.toMonthIndex(vt,dt,bt),at=+nt[4];return this.newDate(vt,ft,at)},add:function(ot,nt,vt){var dt=ot.year(),bt=ot.month(),ft=this.isIntercalaryMonth(dt,bt),at=this.toChineseMonth(dt,bt),yt=Object.getPrototypeOf(Et.prototype).add.call(this,ot,nt,vt);if(vt==="y"){var St=yt.year(),_t=yt.month(),Mt=this.isIntercalaryMonth(St,at),Tt=ft&&Mt?this.toMonthIndex(St,at,!0):this.toMonthIndex(St,at,!1);Tt!==_t&&yt.month(Tt)}return yt}});var mt=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,ut=/^\d?\d[iI]?/m,ht=/^闰?十?[一二三四五六七八九]?月/m,j=/^闰?十?[一二三四五六七八九]?/m;it.calendars.chinese=Et;var _=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],rt=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function tt(ot,nt,vt,dt){var bt,ft;if(typeof ot=="object")bt=ot,ft=nt||{};else{var at=typeof ot=="number"&&ot>=1888&&ot<=2111;if(!at)throw new Error("Solar year outside range 1888-2111");var yt=typeof nt=="number"&&nt>=1&&nt<=12;if(!yt)throw new Error("Solar month outside range 1 - 12");var St=typeof vt=="number"&&vt>=1&&vt<=31;if(!St)throw new Error("Solar day outside range 1 - 31");bt={year:ot,month:nt,day:vt},ft=dt||{}}var _t=rt[bt.year-rt[0]],Mt=bt.year<<9|bt.month<<5|bt.day;ft.year=Mt>=_t?bt.year:bt.year-1,_t=rt[ft.year-rt[0]];var Tt=_t>>9&4095,kt=_t>>5&15,wt=_t&31,ct,It=new Date(Tt,kt-1,wt),At=new Date(bt.year,bt.month-1,bt.day);ct=Math.round((At-It)/864e5);var Ot=_[ft.year-_[0]],Pt;for(Pt=0;Pt<13;Pt++){var zt=Ot&1<<12-Pt?30:29;if(ct>13;return!Dt||Pt=1888&&ot<=2111;if(!yt)throw new Error("Lunar year outside range 1888-2111");var St=typeof nt=="number"&&nt>=1&&nt<=12;if(!St)throw new Error("Lunar month outside range 1 - 12");var _t=typeof vt=="number"&&vt>=1&&vt<=30;if(!_t)throw new Error("Lunar day outside range 1 - 30");var Mt;typeof dt=="object"?(Mt=!1,ft=dt):(Mt=!!dt,ft=bt||{}),at={year:ot,month:nt,day:vt,isIntercalary:Mt}}var Tt;Tt=at.day-1;var kt=_[at.year-_[0]],wt=kt>>13,ct;wt&&(at.month>wt||at.isIntercalary)?ct=at.month:ct=at.month-1;for(var It=0;It>9&4095,zt=Ot>>5&15,Dt=Ot&31,Nt=new Date(Pt,zt-1,Dt+Tt);return ft.year=Nt.getFullYear(),ft.month=1+Nt.getMonth(),ft.day=Nt.getDate(),ft}},89792:function(Ct,Rt,o){var it=o(38700),xt=o(50896);function et(Et){this.local=this.regionalOptions[Et||""]||this.regionalOptions[""]}et.prototype=new it.baseCalendar,xt(et.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(ut){var mt=this._validate(ut,this.minMonth,this.minDay,it.local.invalidYear),ut=mt.year()+(mt.year()<0?1:0);return ut%4===3||ut%4===-1},monthsInYear:function(Et){return this._validate(Et,this.minMonth,this.minDay,it.local.invalidYear||it.regionalOptions[""].invalidYear),13},weekOfYear:function(Et,mt,ut){var ht=this.newDate(Et,mt,ut);return ht.add(-ht.dayOfWeek(),"d"),Math.floor((ht.dayOfYear()-1)/7)+1},daysInMonth:function(Et,mt){var ut=this._validate(Et,mt,this.minDay,it.local.invalidMonth);return this.daysPerMonth[ut.month()-1]+(ut.month()===13&&this.leapYear(ut.year())?1:0)},weekDay:function(Et,mt,ut){return(this.dayOfWeek(Et,mt,ut)||7)<6},toJD:function(Et,mt,ut){var ht=this._validate(Et,mt,ut,it.local.invalidDate);return Et=ht.year(),Et<0&&Et++,ht.day()+(ht.month()-1)*30+(Et-1)*365+Math.floor(Et/4)+this.jdEpoch-1},fromJD:function(Et){var mt=Math.floor(Et)+.5-this.jdEpoch,ut=Math.floor((mt-Math.floor((mt+366)/1461))/365)+1;ut<=0&&ut--,mt=Math.floor(Et)+.5-this.newDate(ut,1,1).toJD();var ht=Math.floor(mt/30)+1,j=mt-(ht-1)*30+1;return this.newDate(ut,ht,j)}}),it.calendars.coptic=et},55668:function(Ct,Rt,o){var it=o(38700),xt=o(50896);function et(mt){this.local=this.regionalOptions[mt||""]||this.regionalOptions[""]}et.prototype=new it.baseCalendar,xt(et.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(mt){return this._validate(mt,this.minMonth,this.minDay,it.local.invalidYear),!1},monthsInYear:function(mt){return this._validate(mt,this.minMonth,this.minDay,it.local.invalidYear),13},daysInYear:function(mt){return this._validate(mt,this.minMonth,this.minDay,it.local.invalidYear),400},weekOfYear:function(mt,ut,ht){var j=this.newDate(mt,ut,ht);return j.add(-j.dayOfWeek(),"d"),Math.floor((j.dayOfYear()-1)/8)+1},daysInMonth:function(mt,ut){var ht=this._validate(mt,ut,this.minDay,it.local.invalidMonth);return this.daysPerMonth[ht.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(mt,ut,ht){var j=this._validate(mt,ut,ht,it.local.invalidDate);return(j.day()+1)%8},weekDay:function(mt,ut,ht){var j=this.dayOfWeek(mt,ut,ht);return j>=2&&j<=6},extraInfo:function(mt,ut,ht){var j=this._validate(mt,ut,ht,it.local.invalidDate);return{century:Et[Math.floor((j.year()-1)/100)+1]||""}},toJD:function(mt,ut,ht){var j=this._validate(mt,ut,ht,it.local.invalidDate);return mt=j.year()+(j.year()<0?1:0),ut=j.month(),ht=j.day(),ht+(ut>1?16:0)+(ut>2?(ut-2)*32:0)+(mt-1)*400+this.jdEpoch-1},fromJD:function(mt){mt=Math.floor(mt+.5)-Math.floor(this.jdEpoch)-1;var ut=Math.floor(mt/400)+1;mt-=(ut-1)*400,mt+=mt>15?16:0;var ht=Math.floor(mt/32)+1,j=mt-(ht-1)*32+1;return this.newDate(ut<=0?ut-1:ut,ht,j)}});var Et={20:"Fruitbat",21:"Anchovy"};it.calendars.discworld=et},65168:function(Ct,Rt,o){var it=o(38700),xt=o(50896);function et(Et){this.local=this.regionalOptions[Et||""]||this.regionalOptions[""]}et.prototype=new it.baseCalendar,xt(et.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(ut){var mt=this._validate(ut,this.minMonth,this.minDay,it.local.invalidYear),ut=mt.year()+(mt.year()<0?1:0);return ut%4===3||ut%4===-1},monthsInYear:function(Et){return this._validate(Et,this.minMonth,this.minDay,it.local.invalidYear||it.regionalOptions[""].invalidYear),13},weekOfYear:function(Et,mt,ut){var ht=this.newDate(Et,mt,ut);return ht.add(-ht.dayOfWeek(),"d"),Math.floor((ht.dayOfYear()-1)/7)+1},daysInMonth:function(Et,mt){var ut=this._validate(Et,mt,this.minDay,it.local.invalidMonth);return this.daysPerMonth[ut.month()-1]+(ut.month()===13&&this.leapYear(ut.year())?1:0)},weekDay:function(Et,mt,ut){return(this.dayOfWeek(Et,mt,ut)||7)<6},toJD:function(Et,mt,ut){var ht=this._validate(Et,mt,ut,it.local.invalidDate);return Et=ht.year(),Et<0&&Et++,ht.day()+(ht.month()-1)*30+(Et-1)*365+Math.floor(Et/4)+this.jdEpoch-1},fromJD:function(Et){var mt=Math.floor(Et)+.5-this.jdEpoch,ut=Math.floor((mt-Math.floor((mt+366)/1461))/365)+1;ut<=0&&ut--,mt=Math.floor(Et)+.5-this.newDate(ut,1,1).toJD();var ht=Math.floor(mt/30)+1,j=mt-(ht-1)*30+1;return this.newDate(ut,ht,j)}}),it.calendars.ethiopian=et},2084:function(Ct,Rt,o){var it=o(38700),xt=o(50896);function et(mt){this.local=this.regionalOptions[mt||""]||this.regionalOptions[""]}et.prototype=new it.baseCalendar,xt(et.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(mt){var ut=this._validate(mt,this.minMonth,this.minDay,it.local.invalidYear);return this._leapYear(ut.year())},_leapYear:function(mt){return mt=mt<0?mt+1:mt,Et(mt*7+1,19)<7},monthsInYear:function(mt){return this._validate(mt,this.minMonth,this.minDay,it.local.invalidYear),this._leapYear(mt.year?mt.year():mt)?13:12},weekOfYear:function(mt,ut,ht){var j=this.newDate(mt,ut,ht);return j.add(-j.dayOfWeek(),"d"),Math.floor((j.dayOfYear()-1)/7)+1},daysInYear:function(mt){var ut=this._validate(mt,this.minMonth,this.minDay,it.local.invalidYear);return mt=ut.year(),this.toJD(mt===-1?1:mt+1,7,1)-this.toJD(mt,7,1)},daysInMonth:function(mt,ut){return mt.year&&(ut=mt.month(),mt=mt.year()),this._validate(mt,ut,this.minDay,it.local.invalidMonth),ut===12&&this.leapYear(mt)||ut===8&&Et(this.daysInYear(mt),10)===5?30:ut===9&&Et(this.daysInYear(mt),10)===3?29:this.daysPerMonth[ut-1]},weekDay:function(mt,ut,ht){return this.dayOfWeek(mt,ut,ht)!==6},extraInfo:function(mt,ut,ht){var j=this._validate(mt,ut,ht,it.local.invalidDate);return{yearType:(this.leapYear(j)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(j)%10-3]}},toJD:function(mt,ut,ht){var j=this._validate(mt,ut,ht,it.local.invalidDate);mt=j.year(),ut=j.month(),ht=j.day();var _=mt<=0?mt+1:mt,rt=this.jdEpoch+this._delay1(_)+this._delay2(_)+ht+1;if(ut<7){for(var tt=7;tt<=this.monthsInYear(mt);tt++)rt+=this.daysInMonth(mt,tt);for(var tt=1;tt=this.toJD(ut===-1?1:ut+1,7,1);)ut++;for(var ht=mtthis.toJD(ut,ht,this.daysInMonth(ut,ht));)ht++;var j=mt-this.toJD(ut,ht,1)+1;return this.newDate(ut,ht,j)}});function Et(mt,ut){return mt-ut*Math.floor(mt/ut)}it.calendars.hebrew=et},26368:function(Ct,Rt,o){var it=o(38700),xt=o(50896);function et(Et){this.local=this.regionalOptions[Et||""]||this.regionalOptions[""]}et.prototype=new it.baseCalendar,xt(et.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(Et){var mt=this._validate(Et,this.minMonth,this.minDay,it.local.invalidYear);return(mt.year()*11+14)%30<11},weekOfYear:function(Et,mt,ut){var ht=this.newDate(Et,mt,ut);return ht.add(-ht.dayOfWeek(),"d"),Math.floor((ht.dayOfYear()-1)/7)+1},daysInYear:function(Et){return this.leapYear(Et)?355:354},daysInMonth:function(Et,mt){var ut=this._validate(Et,mt,this.minDay,it.local.invalidMonth);return this.daysPerMonth[ut.month()-1]+(ut.month()===12&&this.leapYear(ut.year())?1:0)},weekDay:function(Et,mt,ut){return this.dayOfWeek(Et,mt,ut)!==5},toJD:function(Et,mt,ut){var ht=this._validate(Et,mt,ut,it.local.invalidDate);return Et=ht.year(),mt=ht.month(),ut=ht.day(),Et=Et<=0?Et+1:Et,ut+Math.ceil(29.5*(mt-1))+(Et-1)*354+Math.floor((3+11*Et)/30)+this.jdEpoch-1},fromJD:function(Et){Et=Math.floor(Et)+.5;var mt=Math.floor((30*(Et-this.jdEpoch)+10646)/10631);mt=mt<=0?mt-1:mt;var ut=Math.min(12,Math.ceil((Et-29-this.toJD(mt,1,1))/29.5)+1),ht=Et-this.toJD(mt,ut,1)+1;return this.newDate(mt,ut,ht)}}),it.calendars.islamic=et},24747:function(Ct,Rt,o){var it=o(38700),xt=o(50896);function et(Et){this.local=this.regionalOptions[Et||""]||this.regionalOptions[""]}et.prototype=new it.baseCalendar,xt(et.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(ut){var mt=this._validate(ut,this.minMonth,this.minDay,it.local.invalidYear),ut=mt.year()<0?mt.year()+1:mt.year();return ut%4===0},weekOfYear:function(Et,mt,ut){var ht=this.newDate(Et,mt,ut);return ht.add(4-(ht.dayOfWeek()||7),"d"),Math.floor((ht.dayOfYear()-1)/7)+1},daysInMonth:function(Et,mt){var ut=this._validate(Et,mt,this.minDay,it.local.invalidMonth);return this.daysPerMonth[ut.month()-1]+(ut.month()===2&&this.leapYear(ut.year())?1:0)},weekDay:function(Et,mt,ut){return(this.dayOfWeek(Et,mt,ut)||7)<6},toJD:function(Et,mt,ut){var ht=this._validate(Et,mt,ut,it.local.invalidDate);return Et=ht.year(),mt=ht.month(),ut=ht.day(),Et<0&&Et++,mt<=2&&(Et--,mt+=12),Math.floor(365.25*(Et+4716))+Math.floor(30.6001*(mt+1))+ut-1524.5},fromJD:function(Et){var mt=Math.floor(Et+.5),ut=mt+1524,ht=Math.floor((ut-122.1)/365.25),j=Math.floor(365.25*ht),_=Math.floor((ut-j)/30.6001),rt=_-Math.floor(_<14?1:13),tt=ht-Math.floor(rt>2?4716:4715),st=ut-j-Math.floor(30.6001*_);return tt<=0&&tt--,this.newDate(tt,rt,st)}}),it.calendars.julian=et},65616:function(Ct,Rt,o){var it=o(38700),xt=o(50896);function et(ut){this.local=this.regionalOptions[ut||""]||this.regionalOptions[""]}et.prototype=new it.baseCalendar,xt(et.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(ut){return this._validate(ut,this.minMonth,this.minDay,it.local.invalidYear),!1},formatYear:function(ut){var ht=this._validate(ut,this.minMonth,this.minDay,it.local.invalidYear);ut=ht.year();var j=Math.floor(ut/400);ut=ut%400,ut+=ut<0?400:0;var _=Math.floor(ut/20);return j+"."+_+"."+ut%20},forYear:function(ut){if(ut=ut.split("."),ut.length<3)throw"Invalid Mayan year";for(var ht=0,j=0;j19||j>0&&_<0)throw"Invalid Mayan year";ht=ht*20+_}return ht},monthsInYear:function(ut){return this._validate(ut,this.minMonth,this.minDay,it.local.invalidYear),18},weekOfYear:function(ut,ht,j){return this._validate(ut,ht,j,it.local.invalidDate),0},daysInYear:function(ut){return this._validate(ut,this.minMonth,this.minDay,it.local.invalidYear),360},daysInMonth:function(ut,ht){return this._validate(ut,ht,this.minDay,it.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(ut,ht,j){var _=this._validate(ut,ht,j,it.local.invalidDate);return _.day()},weekDay:function(ut,ht,j){return this._validate(ut,ht,j,it.local.invalidDate),!0},extraInfo:function(ut,ht,j){var _=this._validate(ut,ht,j,it.local.invalidDate),rt=_.toJD(),tt=this._toHaab(rt),st=this._toTzolkin(rt);return{haabMonthName:this.local.haabMonths[tt[0]-1],haabMonth:tt[0],haabDay:tt[1],tzolkinDayName:this.local.tzolkinMonths[st[0]-1],tzolkinDay:st[0],tzolkinTrecena:st[1]}},_toHaab:function(ut){ut-=this.jdEpoch;var ht=Et(ut+8+(18-1)*20,365);return[Math.floor(ht/20)+1,Et(ht,20)]},_toTzolkin:function(ut){return ut-=this.jdEpoch,[mt(ut+20,20),mt(ut+4,13)]},toJD:function(ut,ht,j){var _=this._validate(ut,ht,j,it.local.invalidDate);return _.day()+_.month()*20+_.year()*360+this.jdEpoch},fromJD:function(ut){ut=Math.floor(ut)+.5-this.jdEpoch;var ht=Math.floor(ut/360);ut=ut%360,ut+=ut<0?360:0;var j=Math.floor(ut/20),_=ut%20;return this.newDate(ht,j,_)}});function Et(ut,ht){return ut-ht*Math.floor(ut/ht)}function mt(ut,ht){return Et(ut-1,ht)+1}it.calendars.mayan=et},30632:function(Ct,Rt,o){var it=o(38700),xt=o(50896);function et(mt){this.local=this.regionalOptions[mt||""]||this.regionalOptions[""]}et.prototype=new it.baseCalendar;var Et=it.instance("gregorian");xt(et.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(mt){var ut=this._validate(mt,this.minMonth,this.minDay,it.local.invalidYear||it.regionalOptions[""].invalidYear);return Et.leapYear(ut.year()+(ut.year()<1?1:0)+1469)},weekOfYear:function(mt,ut,ht){var j=this.newDate(mt,ut,ht);return j.add(1-(j.dayOfWeek()||7),"d"),Math.floor((j.dayOfYear()-1)/7)+1},daysInMonth:function(mt,ut){var ht=this._validate(mt,ut,this.minDay,it.local.invalidMonth);return this.daysPerMonth[ht.month()-1]+(ht.month()===12&&this.leapYear(ht.year())?1:0)},weekDay:function(mt,ut,ht){return(this.dayOfWeek(mt,ut,ht)||7)<6},toJD:function(_,ut,ht){var j=this._validate(_,ut,ht,it.local.invalidMonth),_=j.year();_<0&&_++;for(var rt=j.day(),tt=1;tt=this.toJD(ut+1,1,1);)ut++;for(var ht=mt-Math.floor(this.toJD(ut,1,1)+.5)+1,j=1;ht>this.daysInMonth(ut,j);)ht-=this.daysInMonth(ut,j),j++;return this.newDate(ut,j,ht)}}),it.calendars.nanakshahi=et},73040:function(Ct,Rt,o){var it=o(38700),xt=o(50896);function et(Et){this.local=this.regionalOptions[Et||""]||this.regionalOptions[""]}et.prototype=new it.baseCalendar,xt(et.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(Et){return this.daysInYear(Et)!==this.daysPerYear},weekOfYear:function(Et,mt,ut){var ht=this.newDate(Et,mt,ut);return ht.add(-ht.dayOfWeek(),"d"),Math.floor((ht.dayOfYear()-1)/7)+1},daysInYear:function(Et){var mt=this._validate(Et,this.minMonth,this.minDay,it.local.invalidYear);if(Et=mt.year(),typeof this.NEPALI_CALENDAR_DATA[Et]>"u")return this.daysPerYear;for(var ut=0,ht=this.minMonth;ht<=12;ht++)ut+=this.NEPALI_CALENDAR_DATA[Et][ht];return ut},daysInMonth:function(Et,mt){return Et.year&&(mt=Et.month(),Et=Et.year()),this._validate(Et,mt,this.minDay,it.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[Et]>"u"?this.daysPerMonth[mt-1]:this.NEPALI_CALENDAR_DATA[Et][mt]},weekDay:function(Et,mt,ut){return this.dayOfWeek(Et,mt,ut)!==6},toJD:function(Et,mt,ut){var ht=this._validate(Et,mt,ut,it.local.invalidDate);Et=ht.year(),mt=ht.month(),ut=ht.day();var j=it.instance(),_=0,rt=mt,tt=Et;this._createMissingCalendarData(Et);var st=Et-(rt>9||rt===9&&ut>=this.NEPALI_CALENDAR_DATA[tt][0]?56:57);for(mt!==9&&(_=ut,rt--);rt!==9;)rt<=0&&(rt=12,tt--),_+=this.NEPALI_CALENDAR_DATA[tt][rt],rt--;return mt===9?(_+=ut-this.NEPALI_CALENDAR_DATA[tt][0],_<0&&(_+=j.daysInYear(st))):_+=this.NEPALI_CALENDAR_DATA[tt][9]-this.NEPALI_CALENDAR_DATA[tt][0],j.newDate(st,1,1).add(_,"d").toJD()},fromJD:function(Et){var mt=it.instance(),ut=mt.fromJD(Et),ht=ut.year(),j=ut.dayOfYear(),_=ht+56;this._createMissingCalendarData(_);for(var rt=9,tt=this.NEPALI_CALENDAR_DATA[_][0],st=this.NEPALI_CALENDAR_DATA[_][rt]-tt+1;j>st;)rt++,rt>12&&(rt=1,_++),st+=this.NEPALI_CALENDAR_DATA[_][rt];var ot=this.NEPALI_CALENDAR_DATA[_][rt]-(st-j);return this.newDate(_,rt,ot)},_createMissingCalendarData:function(Et){var mt=this.daysPerMonth.slice(0);mt.unshift(17);for(var ut=Et-1;ut"u"&&(this.NEPALI_CALENDAR_DATA[ut]=mt)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),it.calendars.nepali=et},1104:function(Ct,Rt,o){var it=o(38700),xt=o(50896);function et(mt){this.local=this.regionalOptions[mt||""]||this.regionalOptions[""]}et.prototype=new it.baseCalendar,xt(et.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Day","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Day","Bah","Esf"],dayNames:["Yekshambe","Doshambe","Seshambe","Chæharshambe","Panjshambe","Jom'e","Shambe"],dayNamesShort:["Yek","Do","Se","Chæ","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(mt){var ut=this._validate(mt,this.minMonth,this.minDay,it.local.invalidYear);return((ut.year()-(ut.year()>0?474:473))%2820+474+38)*682%2816<682},weekOfYear:function(mt,ut,ht){var j=this.newDate(mt,ut,ht);return j.add(-((j.dayOfWeek()+1)%7),"d"),Math.floor((j.dayOfYear()-1)/7)+1},daysInMonth:function(mt,ut){var ht=this._validate(mt,ut,this.minDay,it.local.invalidMonth);return this.daysPerMonth[ht.month()-1]+(ht.month()===12&&this.leapYear(ht.year())?1:0)},weekDay:function(mt,ut,ht){return this.dayOfWeek(mt,ut,ht)!==5},toJD:function(mt,ut,ht){var j=this._validate(mt,ut,ht,it.local.invalidDate);mt=j.year(),ut=j.month(),ht=j.day();var _=mt-(mt>=0?474:473),rt=474+Et(_,2820);return ht+(ut<=7?(ut-1)*31:(ut-1)*30+6)+Math.floor((rt*682-110)/2816)+(rt-1)*365+Math.floor(_/2820)*1029983+this.jdEpoch-1},fromJD:function(mt){mt=Math.floor(mt)+.5;var ut=mt-this.toJD(475,1,1),ht=Math.floor(ut/1029983),j=Et(ut,1029983),_=2820;if(j!==1029982){var rt=Math.floor(j/366),tt=Et(j,366);_=Math.floor((2134*rt+2816*tt+2815)/1028522)+rt+1}var st=_+2820*ht+474;st=st<=0?st-1:st;var ot=mt-this.toJD(st,1,1)+1,nt=ot<=186?Math.ceil(ot/31):Math.ceil((ot-6)/30),vt=mt-this.toJD(st,nt,1)+1;return this.newDate(st,nt,vt)}});function Et(mt,ut){return mt-ut*Math.floor(mt/ut)}it.calendars.persian=et,it.calendars.jalali=et},51456:function(Ct,Rt,o){var it=o(38700),xt=o(50896),et=it.instance();function Et(mt){this.local=this.regionalOptions[mt||""]||this.regionalOptions[""]}Et.prototype=new it.baseCalendar,xt(Et.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(ht){var ut=this._validate(ht,this.minMonth,this.minDay,it.local.invalidYear),ht=this._t2gYear(ut.year());return et.leapYear(ht)},weekOfYear:function(_,ut,ht){var j=this._validate(_,this.minMonth,this.minDay,it.local.invalidYear),_=this._t2gYear(j.year());return et.weekOfYear(_,j.month(),j.day())},daysInMonth:function(mt,ut){var ht=this._validate(mt,ut,this.minDay,it.local.invalidMonth);return this.daysPerMonth[ht.month()-1]+(ht.month()===2&&this.leapYear(ht.year())?1:0)},weekDay:function(mt,ut,ht){return(this.dayOfWeek(mt,ut,ht)||7)<6},toJD:function(_,ut,ht){var j=this._validate(_,ut,ht,it.local.invalidDate),_=this._t2gYear(j.year());return et.toJD(_,j.month(),j.day())},fromJD:function(mt){var ut=et.fromJD(mt),ht=this._g2tYear(ut.year());return this.newDate(ht,ut.month(),ut.day())},_t2gYear:function(mt){return mt+this.yearsOffset+(mt>=-this.yearsOffset&&mt<=-1?1:0)},_g2tYear:function(mt){return mt-this.yearsOffset-(mt>=1&&mt<=this.yearsOffset?1:0)}}),it.calendars.taiwan=Et},4592:function(Ct,Rt,o){var it=o(38700),xt=o(50896),et=it.instance();function Et(mt){this.local=this.regionalOptions[mt||""]||this.regionalOptions[""]}Et.prototype=new it.baseCalendar,xt(Et.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(ht){var ut=this._validate(ht,this.minMonth,this.minDay,it.local.invalidYear),ht=this._t2gYear(ut.year());return et.leapYear(ht)},weekOfYear:function(_,ut,ht){var j=this._validate(_,this.minMonth,this.minDay,it.local.invalidYear),_=this._t2gYear(j.year());return et.weekOfYear(_,j.month(),j.day())},daysInMonth:function(mt,ut){var ht=this._validate(mt,ut,this.minDay,it.local.invalidMonth);return this.daysPerMonth[ht.month()-1]+(ht.month()===2&&this.leapYear(ht.year())?1:0)},weekDay:function(mt,ut,ht){return(this.dayOfWeek(mt,ut,ht)||7)<6},toJD:function(_,ut,ht){var j=this._validate(_,ut,ht,it.local.invalidDate),_=this._t2gYear(j.year());return et.toJD(_,j.month(),j.day())},fromJD:function(mt){var ut=et.fromJD(mt),ht=this._g2tYear(ut.year());return this.newDate(ht,ut.month(),ut.day())},_t2gYear:function(mt){return mt-this.yearsOffset-(mt>=1&&mt<=this.yearsOffset?1:0)},_g2tYear:function(mt){return mt+this.yearsOffset+(mt>=-this.yearsOffset&&mt<=-1?1:0)}}),it.calendars.thai=Et},45348:function(Ct,Rt,o){var it=o(38700),xt=o(50896);function et(mt){this.local=this.regionalOptions[mt||""]||this.regionalOptions[""]}et.prototype=new it.baseCalendar,xt(et.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(mt){var ut=this._validate(mt,this.minMonth,this.minDay,it.local.invalidYear);return this.daysInYear(ut.year())===355},weekOfYear:function(mt,ut,ht){var j=this.newDate(mt,ut,ht);return j.add(-j.dayOfWeek(),"d"),Math.floor((j.dayOfYear()-1)/7)+1},daysInYear:function(mt){for(var ut=0,ht=1;ht<=12;ht++)ut+=this.daysInMonth(mt,ht);return ut},daysInMonth:function(mt,ut){for(var ht=this._validate(mt,ut,this.minDay,it.local.invalidMonth),j=ht.toJD()-24e5+.5,_=0,rt=0;rtj)return Et[_]-Et[_-1];_++}return 30},weekDay:function(mt,ut,ht){return this.dayOfWeek(mt,ut,ht)!==5},toJD:function(mt,ut,ht){var j=this._validate(mt,ut,ht,it.local.invalidDate),_=12*(j.year()-1)+j.month()-15292,rt=j.day()+Et[_-1]-1;return rt+24e5-.5},fromJD:function(mt){for(var ut=mt-24e5+.5,ht=0,j=0;jut);j++)ht++;var _=ht+15292,rt=Math.floor((_-1)/12),tt=rt+1,st=_-12*rt,ot=ut-Et[ht-1]+1;return this.newDate(tt,st,ot)},isValid:function(mt,ut,ht){var j=it.baseCalendar.prototype.isValid.apply(this,arguments);return j&&(mt=mt.year!=null?mt.year:mt,j=mt>=1276&&mt<=1500),j},_validate:function(mt,ut,ht,j){var _=it.baseCalendar.prototype._validate.apply(this,arguments);if(_.year<1276||_.year>1500)throw j.replace(/\{0\}/,this.local.name);return _}}),it.calendars.ummalqura=et;var Et=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},38700:function(Ct,Rt,o){var it=o(50896);function xt(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}it(xt.prototype,{instance:function(j,_){j=(j||"gregorian").toLowerCase(),_=_||"";var rt=this._localCals[j+"-"+_];if(!rt&&this.calendars[j]&&(rt=new this.calendars[j](_),this._localCals[j+"-"+_]=rt),!rt)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,j);return rt},newDate:function(j,_,rt,tt,st){return tt=(j!=null&&j.year?j.calendar():typeof tt=="string"?this.instance(tt,st):tt)||this.instance(),tt.newDate(j,_,rt)},substituteDigits:function(j){return function(_){return(_+"").replace(/[0-9]/g,function(rt){return j[rt]})}},substituteChineseDigits:function(j,_){return function(rt){for(var tt="",st=0;rt>0;){var ot=rt%10;tt=(ot===0?"":j[ot]+_[st])+tt,st++,rt=Math.floor(rt/10)}return tt.indexOf(j[1]+_[1])===0&&(tt=tt.substr(1)),tt||j[0]}}});function et(j,_,rt,tt){if(this._calendar=j,this._year=_,this._month=rt,this._day=tt,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(ht.local.invalidDate||ht.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function Et(j,_){return j=""+j,"000000".substring(0,_-j.length)+j}it(et.prototype,{newDate:function(j,_,rt){return this._calendar.newDate(j??this,_,rt)},year:function(j){return arguments.length===0?this._year:this.set(j,"y")},month:function(j){return arguments.length===0?this._month:this.set(j,"m")},day:function(j){return arguments.length===0?this._day:this.set(j,"d")},date:function(j,_,rt){if(!this._calendar.isValid(j,_,rt))throw(ht.local.invalidDate||ht.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=j,this._month=_,this._day=rt,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(j,_){return this._calendar.add(this,j,_)},set:function(j,_){return this._calendar.set(this,j,_)},compareTo:function(j){if(this._calendar.name!==j._calendar.name)throw(ht.local.differentCalendars||ht.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,j._calendar.local.name);var _=this._year!==j._year?this._year-j._year:this._month!==j._month?this.monthOfYear()-j.monthOfYear():this._day-j._day;return _===0?0:_<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(j){return this._calendar.fromJD(j)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(j){return this._calendar.fromJSDate(j)},toString:function(){return(this.year()<0?"-":"")+Et(Math.abs(this.year()),4)+"-"+Et(this.month(),2)+"-"+Et(this.day(),2)}});function mt(){this.shortYearCutoff="+10"}it(mt.prototype,{_validateLevel:0,newDate:function(j,_,rt){return j==null?this.today():(j.year&&(this._validate(j,_,rt,ht.local.invalidDate||ht.regionalOptions[""].invalidDate),rt=j.day(),_=j.month(),j=j.year()),new et(this,j,_,rt))},today:function(){return this.fromJSDate(new Date)},epoch:function(j){var _=this._validate(j,this.minMonth,this.minDay,ht.local.invalidYear||ht.regionalOptions[""].invalidYear);return _.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(j){var _=this._validate(j,this.minMonth,this.minDay,ht.local.invalidYear||ht.regionalOptions[""].invalidYear);return(_.year()<0?"-":"")+Et(Math.abs(_.year()),4)},monthsInYear:function(j){return this._validate(j,this.minMonth,this.minDay,ht.local.invalidYear||ht.regionalOptions[""].invalidYear),12},monthOfYear:function(j,_){var rt=this._validate(j,_,this.minDay,ht.local.invalidMonth||ht.regionalOptions[""].invalidMonth);return(rt.month()+this.monthsInYear(rt)-this.firstMonth)%this.monthsInYear(rt)+this.minMonth},fromMonthOfYear:function(j,_){var rt=(_+this.firstMonth-2*this.minMonth)%this.monthsInYear(j)+this.minMonth;return this._validate(j,rt,this.minDay,ht.local.invalidMonth||ht.regionalOptions[""].invalidMonth),rt},daysInYear:function(j){var _=this._validate(j,this.minMonth,this.minDay,ht.local.invalidYear||ht.regionalOptions[""].invalidYear);return this.leapYear(_)?366:365},dayOfYear:function(j,_,rt){var tt=this._validate(j,_,rt,ht.local.invalidDate||ht.regionalOptions[""].invalidDate);return tt.toJD()-this.newDate(tt.year(),this.fromMonthOfYear(tt.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(j,_,rt){var tt=this._validate(j,_,rt,ht.local.invalidDate||ht.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(tt))+2)%this.daysInWeek()},extraInfo:function(j,_,rt){return this._validate(j,_,rt,ht.local.invalidDate||ht.regionalOptions[""].invalidDate),{}},add:function(j,_,rt){return this._validate(j,this.minMonth,this.minDay,ht.local.invalidDate||ht.regionalOptions[""].invalidDate),this._correctAdd(j,this._add(j,_,rt),_,rt)},_add:function(j,_,rt){if(this._validateLevel++,rt==="d"||rt==="w"){var tt=j.toJD()+_*(rt==="w"?this.daysInWeek():1),st=j.calendar().fromJD(tt);return this._validateLevel--,[st.year(),st.month(),st.day()]}try{var ot=j.year()+(rt==="y"?_:0),nt=j.monthOfYear()+(rt==="m"?_:0),st=j.day(),vt=function(ft){for(;ntat-1+ft.minMonth;)ot++,nt-=at,at=ft.monthsInYear(ot)};rt==="y"?(j.month()!==this.fromMonthOfYear(ot,nt)&&(nt=this.newDate(ot,j.month(),this.minDay).monthOfYear()),nt=Math.min(nt,this.monthsInYear(ot)),st=Math.min(st,this.daysInMonth(ot,this.fromMonthOfYear(ot,nt)))):rt==="m"&&(vt(this),st=Math.min(st,this.daysInMonth(ot,this.fromMonthOfYear(ot,nt))));var dt=[ot,this.fromMonthOfYear(ot,nt),st];return this._validateLevel--,dt}catch(bt){throw this._validateLevel--,bt}},_correctAdd:function(j,_,rt,tt){if(!this.hasYearZero&&(tt==="y"||tt==="m")&&(_[0]===0||j.year()>0!=_[0]>0)){var st={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[tt],ot=rt<0?-1:1;_=this._add(j,rt*st[0]+ot*st[1],st[2])}return j.date(_[0],_[1],_[2])},set:function(j,_,rt){this._validate(j,this.minMonth,this.minDay,ht.local.invalidDate||ht.regionalOptions[""].invalidDate);var tt=rt==="y"?_:j.year(),st=rt==="m"?_:j.month(),ot=rt==="d"?_:j.day();return(rt==="y"||rt==="m")&&(ot=Math.min(ot,this.daysInMonth(tt,st))),j.date(tt,st,ot)},isValid:function(j,_,rt){this._validateLevel++;var tt=this.hasYearZero||j!==0;if(tt){var st=this.newDate(j,_,this.minDay);tt=_>=this.minMonth&&_-this.minMonth=this.minDay&&rt-this.minDay13.5?13:1),bt=st-(dt>2.5?4716:4715);return bt<=0&&bt--,this.newDate(bt,dt,vt)},toJSDate:function(j,_,rt){var tt=this._validate(j,_,rt,ht.local.invalidDate||ht.regionalOptions[""].invalidDate),st=new Date(tt.year(),tt.month()-1,tt.day());return st.setHours(0),st.setMinutes(0),st.setSeconds(0),st.setMilliseconds(0),st.setHours(st.getHours()>12?st.getHours()+2:0),st},fromJSDate:function(j){return this.newDate(j.getFullYear(),j.getMonth()+1,j.getDate())}});var ht=Ct.exports=new xt;ht.cdate=et,ht.baseCalendar=mt,ht.calendars.gregorian=ut},15168:function(Ct,Rt,o){var it=o(50896),xt=o(38700);it(xt.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),xt.local=xt.regionalOptions[""],it(xt.cdate.prototype,{formatDate:function(et,Et){return typeof et!="string"&&(Et=et,et=""),this._calendar.formatDate(et||"",this,Et)}}),it(xt.baseCalendar.prototype,{UNIX_EPOCH:xt.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:xt.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(et,Et,mt){if(typeof et!="string"&&(mt=Et,Et=et,et=""),!Et)return"";if(Et.calendar()!==this)throw xt.local.invalidFormat||xt.regionalOptions[""].invalidFormat;et=et||this.local.dateFormat,mt=mt||{};var ut=mt.dayNamesShort||this.local.dayNamesShort,ht=mt.dayNames||this.local.dayNames,j=mt.monthNumbers||this.local.monthNumbers,_=mt.monthNamesShort||this.local.monthNamesShort,rt=mt.monthNames||this.local.monthNames;mt.calculateWeek||this.local.calculateWeek;for(var tt=function(_t,Mt){for(var Tt=1;St+Tt1},st=function(_t,Mt,Tt,kt){var wt=""+Mt;if(tt(_t,kt))for(;wt.length1},St=function(Pt,zt){var Dt=yt(Pt,zt),Nt=[2,3,Dt?4:2,Dt?4:2,10,11,20]["oyYJ@!".indexOf(Pt)+1],$t=new RegExp("^-?\\d{1,"+Nt+"}"),Ut=Et.substring(ct).match($t);if(!Ut)throw(xt.local.missingNumberAt||xt.regionalOptions[""].missingNumberAt).replace(/\{0\}/,ct);return ct+=Ut[0].length,parseInt(Ut[0],10)},_t=this,Mt=function(){if(typeof rt=="function"){yt("m");var Pt=rt.call(_t,Et.substring(ct));return ct+=Pt.length,Pt}return St("m")},Tt=function(Pt,zt,Dt,Nt){for(var $t=yt(Pt,Nt)?Dt:zt,Ut=0;Ut<$t.length;Ut++)if(Et.substr(ct,$t[Ut].length).toLowerCase()===$t[Ut].toLowerCase())return ct+=$t[Ut].length,Ut+_t.minMonth;throw(xt.local.unknownNameAt||xt.regionalOptions[""].unknownNameAt).replace(/\{0\}/,ct)},kt=function(){if(typeof st=="function"){var Pt=yt("M")?st.call(_t,Et.substring(ct)):tt.call(_t,Et.substring(ct));return ct+=Pt.length,Pt}return Tt("M",tt,st)},wt=function(){if(Et.charAt(ct)!==et.charAt(It))throw(xt.local.unexpectedLiteralAt||xt.regionalOptions[""].unexpectedLiteralAt).replace(/\{0\}/,ct);ct++},ct=0,It=0;It-1){vt=1,dt=bt;for(var Ot=this.daysInMonth(nt,vt);dt>Ot;Ot=this.daysInMonth(nt,vt))vt++,dt-=Ot}return ot>-1?this.fromJD(ot):this.newDate(nt,vt,dt)},determineDate:function(et,Et,mt,ut,ht){mt&&typeof mt!="object"&&(ht=ut,ut=mt,mt=null),typeof ut!="string"&&(ht=ut,ut="");var j=this,_=function(rt){try{return j.parseDate(ut,rt,ht)}catch{}rt=rt.toLowerCase();for(var tt=(rt.match(/^c/)&&mt?mt.newDate():null)||j.today(),st=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,ot=st.exec(rt);ot;)tt.add(parseInt(ot[1],10),ot[2]||"d"),ot=st.exec(rt);return tt};return Et=Et?Et.newDate():null,et=et==null?Et:typeof et=="string"?_(et):typeof et=="number"?isNaN(et)||et===1/0||et===-1/0?Et:j.today().add(et,"d"):j.newDate(et),et}})},21576:function(){},19768:function(){},63436:function(Ct,Rt,o){var it=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],xt=typeof globalThis>"u"?o.g:globalThis;Ct.exports=function(){for(var Et=[],mt=0;mt>8&15|Rr>>4&240,Rr>>4&15|Rr&240,(Rr&15)<<4|Rr&15,1):zr===8?Mt(Rr>>24&255,Rr>>16&255,Rr>>8&255,(Rr&255)/255):zr===4?Mt(Rr>>12&15|Rr>>8&240,Rr>>8&15|Rr>>4&240,Rr>>4&15|Rr&240,((Rr&15)<<4|Rr&15)/255):null):(Rr=rt.exec(Er))?new wt(Rr[1],Rr[2],Rr[3],1):(Rr=tt.exec(Er))?new wt(Rr[1]*255/100,Rr[2]*255/100,Rr[3]*255/100,1):(Rr=st.exec(Er))?Mt(Rr[1],Rr[2],Rr[3],Rr[4]):(Rr=ot.exec(Er))?Mt(Rr[1]*255/100,Rr[2]*255/100,Rr[3]*255/100,Rr[4]):(Rr=nt.exec(Er))?Dt(Rr[1],Rr[2]/100,Rr[3]/100,1):(Rr=vt.exec(Er))?Dt(Rr[1],Rr[2]/100,Rr[3]/100,Rr[4]):dt.hasOwnProperty(Er)?_t(dt[Er]):Er==="transparent"?new wt(NaN,NaN,NaN,0):null}function _t(Er){return new wt(Er>>16&255,Er>>8&255,Er&255,1)}function Mt(Er,Rr,zr,Br){return Br<=0&&(Er=Rr=zr=NaN),new wt(Er,Rr,zr,Br)}function Tt(Er){return Er instanceof et||(Er=St(Er)),Er?(Er=Er.rgb(),new wt(Er.r,Er.g,Er.b,Er.opacity)):new wt}function kt(Er,Rr,zr,Br){return arguments.length===1?Tt(Er):new wt(Er,Rr,zr,Br??1)}function wt(Er,Rr,zr,Br){this.r=+Er,this.g=+Rr,this.b=+zr,this.opacity=+Br}it(wt,kt,xt(et,{brighter:function(Rr){return Rr=Rr==null?mt:Math.pow(mt,Rr),new wt(this.r*Rr,this.g*Rr,this.b*Rr,this.opacity)},darker:function(Rr){return Rr=Rr==null?Et:Math.pow(Et,Rr),new wt(this.r*Rr,this.g*Rr,this.b*Rr,this.opacity)},rgb:function(){return this},clamp:function(){return new wt(Pt(this.r),Pt(this.g),Pt(this.b),Ot(this.opacity))},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ct,formatHex:ct,formatHex8:It,formatRgb:At,toString:At}));function ct(){return"#".concat(zt(this.r)).concat(zt(this.g)).concat(zt(this.b))}function It(){return"#".concat(zt(this.r)).concat(zt(this.g)).concat(zt(this.b)).concat(zt((isNaN(this.opacity)?1:this.opacity)*255))}function At(){var Er=Ot(this.opacity);return"".concat(Er===1?"rgb(":"rgba(").concat(Pt(this.r),", ").concat(Pt(this.g),", ").concat(Pt(this.b)).concat(Er===1?")":", ".concat(Er,")"))}function Ot(Er){return isNaN(Er)?1:Math.max(0,Math.min(1,Er))}function Pt(Er){return Math.max(0,Math.min(255,Math.round(Er)||0))}function zt(Er){return Er=Pt(Er),(Er<16?"0":"")+Er.toString(16)}function Dt(Er,Rr,zr,Br){return Br<=0?Er=Rr=zr=NaN:zr<=0||zr>=1?Er=Rr=NaN:Rr<=0&&(Er=NaN),new Ut(Er,Rr,zr,Br)}function Nt(Er){if(Er instanceof Ut)return new Ut(Er.h,Er.s,Er.l,Er.opacity);if(Er instanceof et||(Er=St(Er)),!Er)return new Ut;if(Er instanceof Ut)return Er;Er=Er.rgb();var Rr=Er.r/255,zr=Er.g/255,Br=Er.b/255,kr=Math.min(Rr,zr,Br),Nr=Math.max(Rr,zr,Br),Qr=NaN,sn=Nr-kr,un=(Nr+kr)/2;return sn?(Rr===Nr?Qr=(zr-Br)/sn+(zr0&&un<1?0:Qr,new Ut(Qr,sn,un,Er.opacity)}function $t(Er,Rr,zr,Br){return arguments.length===1?Nt(Er):new Ut(Er,Rr,zr,Br??1)}function Ut(Er,Rr,zr,Br){this.h=+Er,this.s=+Rr,this.l=+zr,this.opacity=+Br}it(Ut,$t,xt(et,{brighter:function(Rr){return Rr=Rr==null?mt:Math.pow(mt,Rr),new Ut(this.h,this.s,this.l*Rr,this.opacity)},darker:function(Rr){return Rr=Rr==null?Et:Math.pow(Et,Rr),new Ut(this.h,this.s,this.l*Rr,this.opacity)},rgb:function(){var Rr=this.h%360+(this.h<0)*360,zr=isNaN(Rr)||isNaN(this.s)?0:this.s,Br=this.l,kr=Br+(Br<.5?Br:1-Br)*zr,Nr=2*Br-kr;return new wt(Xt(Rr>=240?Rr-240:Rr+120,Nr,kr),Xt(Rr,Nr,kr),Xt(Rr<120?Rr+240:Rr-120,Nr,kr),this.opacity)},clamp:function(){return new Ut(Ht(this.h),Vt(this.s),Vt(this.l),Ot(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var Rr=Ot(this.opacity);return"".concat(Rr===1?"hsl(":"hsla(").concat(Ht(this.h),", ").concat(Vt(this.s)*100,"%, ").concat(Vt(this.l)*100,"%").concat(Rr===1?")":", ".concat(Rr,")"))}}));function Ht(Er){return Er=(Er||0)%360,Er<0?Er+360:Er}function Vt(Er){return Math.max(0,Math.min(1,Er||0))}function Xt(Er,Rr,zr){return(Er<60?Rr+(zr-Rr)*Er/60:Er<180?zr:Er<240?Rr+(zr-Rr)*(240-Er)/60:Rr)*255}var qt=function(Er){return function(){return Er}};function er(Er,Rr){return function(zr){return Er+zr*Rr}}function lr(Er,Rr,zr){return Er=Math.pow(Er,zr),Rr=Math.pow(Rr,zr)-Er,zr=1/zr,function(Br){return Math.pow(Er+Br*Rr,zr)}}function Jt(Er){return(Er=+Er)==1?Yt:function(Rr,zr){return zr-Rr?lr(Rr,zr,Er):qt(isNaN(Rr)?zr:Rr)}}function Yt(Er,Rr){var zr=Rr-Er;return zr?er(Er,zr):qt(isNaN(Er)?Rr:Er)}var rr=function Er(Rr){var zr=Jt(Rr);function Br(kr,Nr){var Qr=zr((kr=kt(kr)).r,(Nr=kt(Nr)).r),sn=zr(kr.g,Nr.g),un=zr(kr.b,Nr.b),qr=Yt(kr.opacity,Nr.opacity);return function(Xr){return kr.r=Qr(Xr),kr.g=sn(Xr),kr.b=un(Xr),kr.opacity=qr(Xr),kr+""}}return Br.gamma=Er,Br}(1);function jt(Er,Rr){var zr=Rr?Rr.length:0,Br=Er?Math.min(zr,Er.length):0,kr=new Array(Br),Nr=new Array(zr),Qr;for(Qr=0;Qrzr&&(Nr=Rr.slice(zr,Nr),sn[Qr]?sn[Qr]+=Nr:sn[++Qr]=Nr),(Br=Br[0])===(kr=kr[0])?sn[Qr]?sn[Qr]+=kr:sn[++Qr]=kr:(sn[++Qr]=null,un.push({i:Qr,x:sr(Br,kr)})),zr=tr.lastIndex;return zr{switch(i.type){case"TOGGLE_CHAT_HISTORY":return{...a,isChatHistoryOpen:!a.isChatHistoryOpen};case"UPDATE_CURRENT_CHAT":return{...a,currentChat:i.payload};case"UPDATE_CHAT_HISTORY_LOADING_STATE":return{...a,chatHistoryLoadingState:i.payload};case"UPDATE_CHAT_HISTORY":if(!a.chatHistory||!a.currentChat)return a;const _e=a.chatHistory.findIndex(Ct=>Ct.id===i.payload.id);if(_e!==-1){const Ct=[...a.chatHistory];return Ct[_e]=a.currentChat,{...a,chatHistory:Ct}}else return{...a,chatHistory:[...a.chatHistory,i.payload]};case"UPDATE_CHAT_TITLE":if(!a.chatHistory)return{...a,chatHistory:[]};const pt=a.chatHistory.map(Ct=>{var Rt;return Ct.id===i.payload.id?(((Rt=a.currentChat)==null?void 0:Rt.id)===i.payload.id&&(a.currentChat.title=i.payload.title),{...Ct,title:i.payload.title}):Ct});return{...a,chatHistory:pt};case"DELETE_CHAT_ENTRY":if(!a.chatHistory)return{...a,chatHistory:[]};const Lt=a.chatHistory.filter(Ct=>Ct.id!==i.payload);return a.currentChat=null,{...a,chatHistory:Lt};case"DELETE_CHAT_HISTORY":return{...a,chatHistory:[],filteredChatHistory:[],currentChat:null};case"DELETE_CURRENT_CHAT_MESSAGES":if(!a.currentChat||!a.chatHistory)return a;const Gt={...a.currentChat,messages:[]};return{...a,currentChat:Gt};case"FETCH_CHAT_HISTORY":return{...a,chatHistory:i.payload};case"SET_COSMOSDB_STATUS":return{...a,isCosmosDBAvailable:i.payload};case"FETCH_FRONTEND_SETTINGS":return{...a,frontendSettings:i.payload};case"SET_FEEDBACK_STATE":return{...a,feedbackState:{...a.feedbackState,[i.payload.answerId]:i.payload.feedback}};default:return a}},initialState={isChatHistoryOpen:!1,chatHistoryLoadingState:ChatHistoryLoadingState.Loading,chatHistory:null,filteredChatHistory:null,currentChat:null,isCosmosDBAvailable:{cosmosDB:!1,status:CosmosDBStatus.NotConfigured},frontendSettings:null,feedbackState:{}},AppStateContext=reactExports.createContext(void 0),AppStateProvider=({children:a})=>{const[i,_e]=reactExports.useReducer(appStateReducer,initialState);return reactExports.useEffect(()=>{const pt=async(Gt=0)=>await historyList(Gt).then(Rt=>(_e(Rt?{type:"FETCH_CHAT_HISTORY",payload:Rt}:{type:"FETCH_CHAT_HISTORY",payload:null}),Rt)).catch(Rt=>(_e({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:ChatHistoryLoadingState.Fail}),_e({type:"FETCH_CHAT_HISTORY",payload:null}),console.error("There was an issue fetching your data."),null));(async()=>{_e({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:ChatHistoryLoadingState.Loading}),historyEnsure().then(Gt=>{Gt!=null&&Gt.cosmosDB?pt().then(Ct=>{Ct?(_e({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:ChatHistoryLoadingState.Success}),_e({type:"SET_COSMOSDB_STATUS",payload:Gt})):(_e({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:ChatHistoryLoadingState.Fail}),_e({type:"SET_COSMOSDB_STATUS",payload:{cosmosDB:!1,status:CosmosDBStatus.NotWorking}}))}).catch(Ct=>{_e({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:ChatHistoryLoadingState.Fail}),_e({type:"SET_COSMOSDB_STATUS",payload:{cosmosDB:!1,status:CosmosDBStatus.NotWorking}})}):(_e({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:ChatHistoryLoadingState.Fail}),_e({type:"SET_COSMOSDB_STATUS",payload:Gt}))}).catch(Gt=>{_e({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:ChatHistoryLoadingState.Fail}),_e({type:"SET_COSMOSDB_STATUS",payload:{cosmosDB:!1,status:CosmosDBStatus.NotConfigured}})})})()},[]),reactExports.useEffect(()=>{(async()=>{frontendSettings().then(Lt=>{_e({type:"FETCH_FRONTEND_SETTINGS",payload:Lt})}).catch(Lt=>{console.error("There was an issue fetching your data.")})})()},[]),jsx(AppStateContext.Provider,{value:{state:i,dispatch:_e},children:a})},enumerateCitations=a=>{const i=new Map;for(const _e of a){const{filepath:pt}=_e;let Lt=1;i.has(pt)&&(Lt=i.get(pt)+1),i.set(pt,Lt),_e.part_index=Lt}return a};function parseAnswer(a){let i=a.answer;const _e=i.match(/\[(doc\d\d?\d?)]/g),pt=4;let Lt=[],Gt=0;return _e==null||_e.forEach(Ct=>{const Rt=Ct.slice(pt,Ct.length-1),o=lodashExports.cloneDeep(a.citations[Number(Rt)-1]);!Lt.find(it=>it.id===Rt)&&o&&(i=i.replaceAll(Ct,` ^${++Gt}^ `),o.id=Rt,o.reindex_id=Gt.toString(),Lt.push(o))}),Lt=enumerateCitations(Lt),{citations:Lt,markdownFormatText:i,plotly_data:a.plotly_data}}const answerContainer="_answerContainer_1qm4u_1",answerText="_answerText_1qm4u_14",answerHeader="_answerHeader_1qm4u_31",answerFooter="_answerFooter_1qm4u_35",answerDisclaimerContainer="_answerDisclaimerContainer_1qm4u_44",answerDisclaimer="_answerDisclaimer_1qm4u_44",citationWrapper="_citationWrapper_1qm4u_64",citationContainer="_citationContainer_1qm4u_72",citation="_citation_1qm4u_64",accordionIcon="_accordionIcon_1qm4u_122",accordionTitle="_accordionTitle_1qm4u_137",clickableSup="_clickableSup_1qm4u_153",styles$4={answerContainer,answerText,answerHeader,answerFooter,answerDisclaimerContainer,answerDisclaimer,citationWrapper,citationContainer,citation,accordionIcon,accordionTitle,clickableSup},Answer=({answer:a,onCitationClicked:i,onExectResultClicked:_e})=>{var Mt,Tt,kt,wt;const pt=ct=>{if(ct.message_id!=null&&ct.feedback!=null)return ct.feedback.split(",").length>1?Feedback.Negative:Object.values(Feedback).includes(ct.feedback)?ct.feedback:Feedback.Neutral},[Lt,{toggle:Gt}]=useBoolean(!1),Ct=50,Rt=reactExports.useMemo(()=>parseAnswer(a),[a]),[o,it]=reactExports.useState(Lt),[xt,et]=reactExports.useState(pt(a)),[Et,mt]=reactExports.useState(!1),[ut,ht]=reactExports.useState(!1),[j,_]=reactExports.useState([]),rt=reactExports.useContext(AppStateContext),tt=((Mt=rt==null?void 0:rt.state.frontendSettings)==null?void 0:Mt.feedback_enabled)&&((Tt=rt==null?void 0:rt.state.isCosmosDBAvailable)==null?void 0:Tt.cosmosDB),st=(kt=rt==null?void 0:rt.state.frontendSettings)==null?void 0:kt.sanitize_answer,ot=()=>{it(!o),Gt()};reactExports.useEffect(()=>{it(Lt)},[Lt]),reactExports.useEffect(()=>{if(a.message_id==null)return;let ct;rt!=null&&rt.state.feedbackState&&(rt!=null&&rt.state.feedbackState[a.message_id])?ct=rt==null?void 0:rt.state.feedbackState[a.message_id]:ct=pt(a),et(ct)},[rt==null?void 0:rt.state.feedbackState,xt,a.message_id]);const nt=(ct,It,At=!1)=>{let Ot="";if(ct.filepath){const Pt=ct.part_index??(ct.chunk_id?parseInt(ct.chunk_id)+1:"");if(At&&ct.filepath.length>Ct){const zt=ct.filepath.length;Ot=`${ct.filepath.substring(0,20)}...${ct.filepath.substring(zt-20)} - Part ${Pt}`}else Ot=`${ct.filepath} - Part ${Pt}`}else ct.filepath&&ct.reindex_id?Ot=`${ct.filepath} - Part ${ct.reindex_id}`:Ot=`Citation ${It}`;return Ot},vt=async()=>{if(a.message_id==null)return;let ct=xt;xt==Feedback.Positive?ct=Feedback.Neutral:ct=Feedback.Positive,rt==null||rt.dispatch({type:"SET_FEEDBACK_STATE",payload:{answerId:a.message_id,feedback:ct}}),et(ct),await historyMessageFeedback(a.message_id,ct)},dt=async()=>{if(a.message_id==null)return;let ct=xt;xt===void 0||xt===Feedback.Neutral||xt===Feedback.Positive?(ct=Feedback.Negative,et(ct),mt(!0)):(ct=Feedback.Neutral,et(ct),await historyMessageFeedback(a.message_id,Feedback.Neutral)),rt==null||rt.dispatch({type:"SET_FEEDBACK_STATE",payload:{answerId:a.message_id,feedback:ct}})},bt=(ct,It)=>{var Pt;if(a.message_id==null)return;const At=(Pt=ct==null?void 0:ct.target)==null?void 0:Pt.id;let Ot=j.slice();It?Ot.push(At):Ot=Ot.filter(zt=>zt!==At),_(Ot)},ft=async()=>{a.message_id!=null&&(await historyMessageFeedback(a.message_id,j.join(",")),at())},at=()=>{mt(!1),ht(!1),_([])},yt=()=>jsxs(Fragment,{children:[jsx("div",{children:"Why wasn't this response helpful?"}),jsxs(Stack,{tokens:{childrenGap:4},children:[jsx(Checkbox,{label:"Citations are missing",id:Feedback.MissingCitation,defaultChecked:j.includes(Feedback.MissingCitation),onChange:bt}),jsx(Checkbox,{label:"Citations are wrong",id:Feedback.WrongCitation,defaultChecked:j.includes(Feedback.WrongCitation),onChange:bt}),jsx(Checkbox,{label:"The response is not from my data",id:Feedback.OutOfScope,defaultChecked:j.includes(Feedback.OutOfScope),onChange:bt}),jsx(Checkbox,{label:"Inaccurate or irrelevant",id:Feedback.InaccurateOrIrrelevant,defaultChecked:j.includes(Feedback.InaccurateOrIrrelevant),onChange:bt}),jsx(Checkbox,{label:"Other",id:Feedback.OtherUnhelpful,defaultChecked:j.includes(Feedback.OtherUnhelpful),onChange:bt})]}),jsx("div",{onClick:()=>ht(!0),style:{color:"#115EA3",cursor:"pointer"},children:"Report inappropriate content"})]}),St=()=>jsxs(Fragment,{children:[jsxs("div",{children:["The content is ",jsx("span",{style:{color:"red"},children:"*"})]}),jsxs(Stack,{tokens:{childrenGap:4},children:[jsx(Checkbox,{label:"Hate speech, stereotyping, demeaning",id:Feedback.HateSpeech,defaultChecked:j.includes(Feedback.HateSpeech),onChange:bt}),jsx(Checkbox,{label:"Violent: glorification of violence, self-harm",id:Feedback.Violent,defaultChecked:j.includes(Feedback.Violent),onChange:bt}),jsx(Checkbox,{label:"Sexual: explicit content, grooming",id:Feedback.Sexual,defaultChecked:j.includes(Feedback.Sexual),onChange:bt}),jsx(Checkbox,{label:"Manipulative: devious, emotional, pushy, bullying",defaultChecked:j.includes(Feedback.Manipulative),id:Feedback.Manipulative,onChange:bt}),jsx(Checkbox,{label:"Other",id:Feedback.OtherHarmful,defaultChecked:j.includes(Feedback.OtherHarmful),onChange:bt})]})]}),_t={code({node:ct,...It}){let At;if(It.className){const Pt=It.className.match(/language-(\w+)/);At=Pt?Pt[1]:void 0}const Ot=ct.children[0].value??"";return jsx(SyntaxHighlighter,{style:nord,language:At,PreTag:"div",...It,children:Ot})}};return jsxs(Fragment,{children:[jsxs(Stack,{className:styles$4.answerContainer,tabIndex:0,children:[jsx(Stack.Item,{children:jsxs(Stack,{horizontal:!0,grow:!0,children:[jsx(Stack.Item,{grow:!0,children:jsx(ReactMarkdown,{linkTarget:"_blank",remarkPlugins:[remarkGfm,supersub],children:st?purify.sanitize(Rt.markdownFormatText,{ALLOWED_TAGS:XSSAllowTags,ALLOWED_ATTR:XSSAllowAttributes}):Rt.markdownFormatText,className:styles$4.answerText,components:_t})}),jsx(Stack.Item,{className:styles$4.answerHeader,children:tt&&a.message_id!==void 0&&jsxs(Stack,{horizontal:!0,horizontalAlign:"space-between",children:[jsx(ThumbLike20Filled,{"aria-hidden":"false","aria-label":"Like this response",onClick:()=>vt(),style:xt===Feedback.Positive||(rt==null?void 0:rt.state.feedbackState[a.message_id])===Feedback.Positive?{color:"darkgreen",cursor:"pointer"}:{color:"slategray",cursor:"pointer"}}),jsx(ThumbDislike20Filled,{"aria-hidden":"false","aria-label":"Dislike this response",onClick:()=>dt(),style:xt!==Feedback.Positive&&xt!==Feedback.Neutral&&xt!==void 0?{color:"darkred",cursor:"pointer"}:{color:"slategray",cursor:"pointer"}})]})})]})}),Rt.plotly_data!==null&&jsx(Stack,{className:styles$4.answerContainer,children:jsx(Stack.Item,{grow:!0,children:jsx(Plot,{data:Rt.plotly_data.data,layout:Rt.plotly_data.layout})})}),jsxs(Stack,{horizontal:!0,className:styles$4.answerFooter,children:[!!Rt.citations.length&&jsx(Stack.Item,{onKeyDown:ct=>ct.key==="Enter"||ct.key===" "?Gt():null,children:jsx(Stack,{style:{width:"100%"},children:jsxs(Stack,{horizontal:!0,horizontalAlign:"start",verticalAlign:"center",children:[jsx(Text,{className:styles$4.accordionTitle,onClick:Gt,"aria-label":"Open references",tabIndex:0,role:"button",children:jsx("span",{children:Rt.citations.length>1?Rt.citations.length+" references":"1 reference"})}),jsx(FontIcon,{className:styles$4.accordionIcon,onClick:ot,iconName:o?"ChevronDown":"ChevronRight"})]})})}),jsx(Stack.Item,{className:styles$4.answerDisclaimerContainer,children:jsx("span",{className:styles$4.answerDisclaimer,children:"AI-generated content may be incorrect"})}),!!((wt=a.exec_results)!=null&&wt.length)&&jsx(Stack.Item,{onKeyDown:ct=>ct.key==="Enter"||ct.key===" "?Gt():null,children:jsx(Stack,{style:{width:"100%"},children:jsxs(Stack,{horizontal:!0,horizontalAlign:"start",verticalAlign:"center",children:[jsx(Text,{className:styles$4.accordionTitle,onClick:()=>_e(),"aria-label":"Open Intents",tabIndex:0,role:"button",children:jsx("span",{children:"Show Intents"})}),jsx(FontIcon,{className:styles$4.accordionIcon,onClick:ot,iconName:"ChevronRight"})]})})})]}),o&&jsx("div",{className:styles$4.citationWrapper,children:Rt.citations.map((ct,It)=>jsxs("span",{title:nt(ct,++It),tabIndex:0,role:"link",onClick:()=>i(ct),onKeyDown:At=>At.key==="Enter"||At.key===" "?i(ct):null,className:styles$4.citationContainer,"aria-label":nt(ct,It),children:[jsx("div",{className:styles$4.citation,children:It}),nt(ct,It,!0)]},It))})]}),jsx(Dialog,{onDismiss:()=>{at(),et(Feedback.Neutral)},hidden:!Et,styles:{main:[{selectors:{["@media (min-width: 480px)"]:{maxWidth:"600px",background:"#FFFFFF",boxShadow:"0px 14px 28.8px rgba(0, 0, 0, 0.24), 0px 0px 8px rgba(0, 0, 0, 0.2)",borderRadius:"8px",maxHeight:"600px",minHeight:"100px"}}}]},dialogContentProps:{title:"Submit Feedback",showCloseButton:!0},children:jsxs(Stack,{tokens:{childrenGap:4},children:[jsx("div",{children:"Your feedback will improve this experience."}),ut?jsx(St,{}):jsx(yt,{}),jsx("div",{children:"By pressing submit, your feedback will be visible to the application owner."}),jsx(DefaultButton,{disabled:j.length<1,onClick:ft,children:"Submit"})]})})]})};var dist$1={},cjs$3={},pdfjs$1={};function commonjsRequire(a){throw new Error('Could not dynamically require "'+a+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pdfExports={},pdf={get exports(){return pdfExports},set exports(a){pdfExports=a}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$5=getAugmentedNamespace(__viteBrowserExternal$1);(function(module,exports){(function(i,_e){module.exports=i.pdfjsLib=_e()})(globalThis,()=>(()=>{var __webpack_modules__=[,(a,i)=>{var zr;Object.defineProperty(i,"__esModule",{value:!0}),i.VerbosityLevel=i.Util=i.UnknownErrorException=i.UnexpectedResponseException=i.TextRenderingMode=i.RenderingIntentFlag=i.PromiseCapability=i.PermissionFlag=i.PasswordResponses=i.PasswordException=i.PageActionEventType=i.OPS=i.MissingPDFException=i.MAX_IMAGE_SIZE_TO_CACHE=i.LINE_FACTOR=i.LINE_DESCENT_FACTOR=i.InvalidPDFException=i.ImageKind=i.IDENTITY_MATRIX=i.FormatError=i.FeatureTest=i.FONT_IDENTITY_MATRIX=i.DocumentActionEventType=i.CMapCompressionType=i.BaseException=i.BASELINE_FACTOR=i.AnnotationType=i.AnnotationReplyType=i.AnnotationPrefix=i.AnnotationMode=i.AnnotationFlag=i.AnnotationFieldFlag=i.AnnotationEditorType=i.AnnotationEditorPrefix=i.AnnotationEditorParamsType=i.AnnotationBorderStyleType=i.AnnotationActionEventType=i.AbortException=void 0,i.assert=ct,i.bytesToString=Xt,i.createValidAbsoluteUrl=At,i.getModificationDate=br,i.getUuid=Er,i.getVerbosityLevel=Mt,i.info=Tt,i.isArrayBuffer=cr,i.isArrayEqual=hr,i.isNodeJS=void 0,i.normalizeUnicode=_r,i.objectFromMap=Jt,i.objectSize=lr,i.setVerbosityLevel=_t,i.shadow=Ot,i.string32=er,i.stringToBytes=qt,i.stringToPDFString=Kt,i.stringToUTF8String=or,i.unreachable=wt,i.utf8StringToString=tr,i.warn=kt;const _e=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser");i.isNodeJS=_e;const pt=[1,0,0,1,0,0];i.IDENTITY_MATRIX=pt;const Lt=[.001,0,0,.001,0,0];i.FONT_IDENTITY_MATRIX=Lt;const Gt=1e7;i.MAX_IMAGE_SIZE_TO_CACHE=Gt;const Ct=1.35;i.LINE_FACTOR=Ct;const Rt=.35;i.LINE_DESCENT_FACTOR=Rt;const o=Rt/Ct;i.BASELINE_FACTOR=o;const it={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256};i.RenderingIntentFlag=it;const xt={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3};i.AnnotationMode=xt;const et="pdfjs_internal_editor_";i.AnnotationEditorPrefix=et;const Et={DISABLE:-1,NONE:0,FREETEXT:3,STAMP:13,INK:15};i.AnnotationEditorType=Et;const mt={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23};i.AnnotationEditorParamsType=mt;const ut={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};i.PermissionFlag=ut;const ht={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};i.TextRenderingMode=ht;const j={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};i.ImageKind=j;const _={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};i.AnnotationType=_;const rt={GROUP:"Group",REPLY:"R"};i.AnnotationReplyType=rt;const tt={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};i.AnnotationFlag=tt;const st={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};i.AnnotationFieldFlag=st;const ot={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};i.AnnotationBorderStyleType=ot;const nt={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"};i.AnnotationActionEventType=nt;const vt={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"};i.DocumentActionEventType=vt;const dt={O:"PageOpen",C:"PageClose"};i.PageActionEventType=dt;const bt={ERRORS:0,WARNINGS:1,INFOS:5};i.VerbosityLevel=bt;const ft={NONE:0,BINARY:1};i.CMapCompressionType=ft;const at={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};i.OPS=at;const yt={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};i.PasswordResponses=yt;let St=bt.WARNINGS;function _t(Br){Number.isInteger(Br)&&(St=Br)}function Mt(){return St}function Tt(Br){St>=bt.INFOS&&console.log(`Info: ${Br}`)}function kt(Br){St>=bt.WARNINGS&&console.log(`Warning: ${Br}`)}function wt(Br){throw new Error(Br)}function ct(Br,kr){Br||wt(kr)}function It(Br){switch(Br==null?void 0:Br.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function At(Br,kr=null,Nr=null){if(!Br)return null;try{if(Nr&&typeof Br=="string"){if(Nr.addDefaultProtocol&&Br.startsWith("www.")){const sn=Br.match(/\./g);(sn==null?void 0:sn.length)>=2&&(Br=`http://${Br}`)}if(Nr.tryConvertEncoding)try{Br=or(Br)}catch{}}const Qr=kr?new URL(Br,kr):new URL(Br);if(It(Qr))return Qr}catch{}return null}function Ot(Br,kr,Nr,Qr=!1){return Object.defineProperty(Br,kr,{value:Nr,enumerable:!Qr,configurable:!0,writable:!1}),Nr}const Pt=function(){function kr(Nr,Qr){this.constructor===kr&&wt("Cannot initialize BaseException."),this.message=Nr,this.name=Qr}return kr.prototype=new Error,kr.constructor=kr,kr}();i.BaseException=Pt;class zt extends Pt{constructor(kr,Nr){super(kr,"PasswordException"),this.code=Nr}}i.PasswordException=zt;class Dt extends Pt{constructor(kr,Nr){super(kr,"UnknownErrorException"),this.details=Nr}}i.UnknownErrorException=Dt;class Nt extends Pt{constructor(kr){super(kr,"InvalidPDFException")}}i.InvalidPDFException=Nt;class $t extends Pt{constructor(kr){super(kr,"MissingPDFException")}}i.MissingPDFException=$t;class Ut extends Pt{constructor(kr,Nr){super(kr,"UnexpectedResponseException"),this.status=Nr}}i.UnexpectedResponseException=Ut;class Ht extends Pt{constructor(kr){super(kr,"FormatError")}}i.FormatError=Ht;class Vt extends Pt{constructor(kr){super(kr,"AbortException")}}i.AbortException=Vt;function Xt(Br){(typeof Br!="object"||(Br==null?void 0:Br.length)===void 0)&&wt("Invalid argument for bytesToString");const kr=Br.length,Nr=8192;if(kr>24&255,Br>>16&255,Br>>8&255,Br&255)}function lr(Br){return Object.keys(Br).length}function Jt(Br){const kr=Object.create(null);for(const[Nr,Qr]of Br)kr[Nr]=Qr;return kr}function Yt(){const Br=new Uint8Array(4);return Br[0]=1,new Uint32Array(Br.buffer,0,1)[0]===1}function rr(){try{return new Function(""),!0}catch{return!1}}class jt{static get isLittleEndian(){return Ot(this,"isLittleEndian",Yt())}static get isEvalSupported(){return Ot(this,"isEvalSupported",rr())}static get isOffscreenCanvasSupported(){return Ot(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get platform(){return typeof navigator>"u"?Ot(this,"platform",{isWin:!1,isMac:!1}):Ot(this,"platform",{isWin:navigator.platform.includes("Win"),isMac:navigator.platform.includes("Mac")})}static get isCSSRoundSupported(){var kr,Nr;return Ot(this,"isCSSRoundSupported",(Nr=(kr=globalThis.CSS)==null?void 0:kr.supports)==null?void 0:Nr.call(kr,"width: round(1.5px, 1px)"))}}i.FeatureTest=jt;const ar=[...Array(256).keys()].map(Br=>Br.toString(16).padStart(2,"0"));class sr{static makeHexColor(kr,Nr,Qr){return`#${ar[kr]}${ar[Nr]}${ar[Qr]}`}static scaleMinMax(kr,Nr){let Qr;kr[0]?(kr[0]<0&&(Qr=Nr[0],Nr[0]=Nr[1],Nr[1]=Qr),Nr[0]*=kr[0],Nr[1]*=kr[0],kr[3]<0&&(Qr=Nr[2],Nr[2]=Nr[3],Nr[3]=Qr),Nr[2]*=kr[3],Nr[3]*=kr[3]):(Qr=Nr[0],Nr[0]=Nr[2],Nr[2]=Qr,Qr=Nr[1],Nr[1]=Nr[3],Nr[3]=Qr,kr[1]<0&&(Qr=Nr[2],Nr[2]=Nr[3],Nr[3]=Qr),Nr[2]*=kr[1],Nr[3]*=kr[1],kr[2]<0&&(Qr=Nr[0],Nr[0]=Nr[1],Nr[1]=Qr),Nr[0]*=kr[2],Nr[1]*=kr[2]),Nr[0]+=kr[4],Nr[1]+=kr[4],Nr[2]+=kr[5],Nr[3]+=kr[5]}static transform(kr,Nr){return[kr[0]*Nr[0]+kr[2]*Nr[1],kr[1]*Nr[0]+kr[3]*Nr[1],kr[0]*Nr[2]+kr[2]*Nr[3],kr[1]*Nr[2]+kr[3]*Nr[3],kr[0]*Nr[4]+kr[2]*Nr[5]+kr[4],kr[1]*Nr[4]+kr[3]*Nr[5]+kr[5]]}static applyTransform(kr,Nr){const Qr=kr[0]*Nr[0]+kr[1]*Nr[2]+Nr[4],sn=kr[0]*Nr[1]+kr[1]*Nr[3]+Nr[5];return[Qr,sn]}static applyInverseTransform(kr,Nr){const Qr=Nr[0]*Nr[3]-Nr[1]*Nr[2],sn=(kr[0]*Nr[3]-kr[1]*Nr[2]+Nr[2]*Nr[5]-Nr[4]*Nr[3])/Qr,un=(-kr[0]*Nr[1]+kr[1]*Nr[0]+Nr[4]*Nr[1]-Nr[5]*Nr[0])/Qr;return[sn,un]}static getAxialAlignedBoundingBox(kr,Nr){const Qr=this.applyTransform(kr,Nr),sn=this.applyTransform(kr.slice(2,4),Nr),un=this.applyTransform([kr[0],kr[3]],Nr),qr=this.applyTransform([kr[2],kr[1]],Nr);return[Math.min(Qr[0],sn[0],un[0],qr[0]),Math.min(Qr[1],sn[1],un[1],qr[1]),Math.max(Qr[0],sn[0],un[0],qr[0]),Math.max(Qr[1],sn[1],un[1],qr[1])]}static inverseTransform(kr){const Nr=kr[0]*kr[3]-kr[1]*kr[2];return[kr[3]/Nr,-kr[1]/Nr,-kr[2]/Nr,kr[0]/Nr,(kr[2]*kr[5]-kr[4]*kr[3])/Nr,(kr[4]*kr[1]-kr[5]*kr[0])/Nr]}static singularValueDecompose2dScale(kr){const Nr=[kr[0],kr[2],kr[1],kr[3]],Qr=kr[0]*Nr[0]+kr[1]*Nr[2],sn=kr[0]*Nr[1]+kr[1]*Nr[3],un=kr[2]*Nr[0]+kr[3]*Nr[2],qr=kr[2]*Nr[1]+kr[3]*Nr[3],Xr=(Qr+qr)/2,ln=Math.sqrt((Qr+qr)**2-4*(Qr*qr-un*sn))/2,mn=Xr+ln||1,pn=Xr-ln||1;return[Math.sqrt(mn),Math.sqrt(pn)]}static normalizeRect(kr){const Nr=kr.slice(0);return kr[0]>kr[2]&&(Nr[0]=kr[2],Nr[2]=kr[0]),kr[1]>kr[3]&&(Nr[1]=kr[3],Nr[3]=kr[1]),Nr}static intersect(kr,Nr){const Qr=Math.max(Math.min(kr[0],kr[2]),Math.min(Nr[0],Nr[2])),sn=Math.min(Math.max(kr[0],kr[2]),Math.max(Nr[0],Nr[2]));if(Qr>sn)return null;const un=Math.max(Math.min(kr[1],kr[3]),Math.min(Nr[1],Nr[3])),qr=Math.min(Math.max(kr[1],kr[3]),Math.max(Nr[1],Nr[3]));return un>qr?null:[Qr,un,sn,qr]}static bezierBoundingBox(kr,Nr,Qr,sn,un,qr,Xr,ln){const mn=[],pn=[[],[]];let En,Jr,Or,Ur,jr,Gr,wr,vr;for(let xr=0;xr<2;++xr){if(xr===0?(Jr=6*kr-12*Qr+6*un,En=-3*kr+9*Qr-9*un+3*Xr,Or=3*Qr-3*kr):(Jr=6*Nr-12*sn+6*qr,En=-3*Nr+9*sn-9*qr+3*ln,Or=3*sn-3*Nr),Math.abs(En)<1e-12){if(Math.abs(Jr)<1e-12)continue;Ur=-Or/Jr,0="ï"){let Nr;if(Br[0]==="þ"&&Br[1]==="ÿ"?Nr="utf-16be":Br[0]==="ÿ"&&Br[1]==="þ"?Nr="utf-16le":Br[0]==="ï"&&Br[1]==="»"&&Br[2]==="¿"&&(Nr="utf-8"),Nr)try{const Qr=new TextDecoder(Nr,{fatal:!0}),sn=qt(Br);return Qr.decode(sn)}catch(Qr){kt(`stringToPDFString: "${Qr}".`)}}const kr=[];for(let Nr=0,Qr=Br.length;Nr{this.resolve=Qr=>{ks(this,zr,!0),kr(Qr)},this.reject=Qr=>{ks(this,zr,!0),Nr(Qr)}})}get settled(){return On(this,zr)}}zr=new WeakMap,i.PromiseCapability=Tr;let Ir=null,Ar=null;function _r(Br){return Ir||(Ir=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,Ar=new Map([["ſt","ſt"]])),Br.replaceAll(Ir,(kr,Nr,Qr)=>Nr?Nr.normalize("NFKC"):Ar.get(Qr))}function Er(){if(typeof crypto<"u"&&typeof(crypto==null?void 0:crypto.randomUUID)=="function")return crypto.randomUUID();const Br=new Uint8Array(32);if(typeof crypto<"u"&&typeof(crypto==null?void 0:crypto.getRandomValues)=="function")crypto.getRandomValues(Br);else for(let kr=0;kr<32;kr++)Br[kr]=Math.floor(Math.random()*255);return Xt(Br)}const Rr="pdfjs_internal_id_";i.AnnotationPrefix=Rr},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{var a,_e,pt,Lt,i2,Ct,KE,o,it,xt,et,Et,mt,ut,ht,j,ZE,rt,tt,x_,ot,nt;Object.defineProperty(exports,"__esModule",{value:!0}),exports.RenderTask=exports.PDFWorkerUtil=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultFilterFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,Object.defineProperty(exports,"SVGGraphics",{enumerable:!0,get:function(){return _displaySvg.SVGGraphics}}),exports.build=void 0,exports.getDocument=getDocument,exports.version=void 0;var _util=__w_pdfjs_require__(1),_annotation_storage=__w_pdfjs_require__(3),_display_utils=__w_pdfjs_require__(6),_font_loader=__w_pdfjs_require__(9),_displayNode_utils=__w_pdfjs_require__(10),_canvas=__w_pdfjs_require__(11),_worker_options=__w_pdfjs_require__(14),_message_handler=__w_pdfjs_require__(15),_metadata=__w_pdfjs_require__(16),_optional_content_config=__w_pdfjs_require__(17),_transport_stream=__w_pdfjs_require__(18),_displayFetch_stream=__w_pdfjs_require__(19),_displayNetwork=__w_pdfjs_require__(22),_displayNode_stream=__w_pdfjs_require__(23),_displaySvg=__w_pdfjs_require__(24),_xfa_text=__w_pdfjs_require__(25);const DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,DELAYED_CLEANUP_TIMEOUT=5e3,DefaultCanvasFactory=_util.isNodeJS?_displayNode_utils.NodeCanvasFactory:_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;const DefaultCMapReaderFactory=_util.isNodeJS?_displayNode_utils.NodeCMapReaderFactory:_display_utils.DOMCMapReaderFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;const DefaultFilterFactory=_util.isNodeJS?_displayNode_utils.NodeFilterFactory:_display_utils.DOMFilterFactory;exports.DefaultFilterFactory=DefaultFilterFactory;const DefaultStandardFontDataFactory=_util.isNodeJS?_displayNode_utils.NodeStandardFontDataFactory:_display_utils.DOMStandardFontDataFactory;exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory;function getDocument(dt){if(typeof dt=="string"||dt instanceof URL?dt={url:dt}:(0,_util.isArrayBuffer)(dt)&&(dt={data:dt}),typeof dt!="object")throw new Error("Invalid parameter in getDocument, need parameter object.");if(!dt.url&&!dt.data&&!dt.range)throw new Error("Invalid parameter object: need either .data, .range or .url");const bt=new PDFDocumentLoadingTask,{docId:ft}=bt,at=dt.url?getUrlProp(dt.url):null,yt=dt.data?getDataProp(dt.data):null,St=dt.httpHeaders||null,_t=dt.withCredentials===!0,Mt=dt.password??null,Tt=dt.range instanceof PDFDataRangeTransport?dt.range:null,kt=Number.isInteger(dt.rangeChunkSize)&&dt.rangeChunkSize>0?dt.rangeChunkSize:DEFAULT_RANGE_CHUNK_SIZE;let wt=dt.worker instanceof PDFWorker?dt.worker:null;const ct=dt.verbosity,It=typeof dt.docBaseUrl=="string"&&!(0,_display_utils.isDataScheme)(dt.docBaseUrl)?dt.docBaseUrl:null,At=typeof dt.cMapUrl=="string"?dt.cMapUrl:null,Ot=dt.cMapPacked!==!1,Pt=dt.CMapReaderFactory||DefaultCMapReaderFactory,zt=typeof dt.standardFontDataUrl=="string"?dt.standardFontDataUrl:null,Dt=dt.StandardFontDataFactory||DefaultStandardFontDataFactory,Nt=dt.stopAtErrors!==!0,$t=Number.isInteger(dt.maxImageSize)&&dt.maxImageSize>-1?dt.maxImageSize:-1,Ut=dt.isEvalSupported!==!1,Ht=typeof dt.isOffscreenCanvasSupported=="boolean"?dt.isOffscreenCanvasSupported:!_util.isNodeJS,Vt=Number.isInteger(dt.canvasMaxAreaInBytes)?dt.canvasMaxAreaInBytes:-1,Xt=typeof dt.disableFontFace=="boolean"?dt.disableFontFace:_util.isNodeJS,qt=dt.fontExtraProperties===!0,er=dt.enableXfa===!0,lr=dt.ownerDocument||globalThis.document,Jt=dt.disableRange===!0,Yt=dt.disableStream===!0,rr=dt.disableAutoFetch===!0,jt=dt.pdfBug===!0,ar=Tt?Tt.length:dt.length??NaN,sr=typeof dt.useSystemFonts=="boolean"?dt.useSystemFonts:!_util.isNodeJS&&!Xt,Zt=typeof dt.useWorkerFetch=="boolean"?dt.useWorkerFetch:Pt===_display_utils.DOMCMapReaderFactory&&Dt===_display_utils.DOMStandardFontDataFactory&&At&&zt&&(0,_display_utils.isValidFetchUrl)(At,document.baseURI)&&(0,_display_utils.isValidFetchUrl)(zt,document.baseURI),Kt=dt.canvasFactory||new DefaultCanvasFactory({ownerDocument:lr}),or=dt.filterFactory||new DefaultFilterFactory({docId:ft,ownerDocument:lr}),tr=null;(0,_util.setVerbosityLevel)(ct);const cr={canvasFactory:Kt,filterFactory:or};if(Zt||(cr.cMapReaderFactory=new Pt({baseUrl:At,isCompressed:Ot}),cr.standardFontDataFactory=new Dt({baseUrl:zt})),!wt){const Tr={verbosity:ct,port:_worker_options.GlobalWorkerOptions.workerPort};wt=Tr.port?PDFWorker.fromPort(Tr):new PDFWorker(Tr),bt._worker=wt}const hr={docId:ft,apiVersion:"3.11.174",data:yt,password:Mt,disableAutoFetch:rr,rangeChunkSize:kt,length:ar,docBaseUrl:It,enableXfa:er,evaluatorOptions:{maxImageSize:$t,disableFontFace:Xt,ignoreErrors:Nt,isEvalSupported:Ut,isOffscreenCanvasSupported:Ht,canvasMaxAreaInBytes:Vt,fontExtraProperties:qt,useSystemFonts:sr,cMapUrl:Zt?At:null,standardFontDataUrl:Zt?zt:null}},br={ignoreErrors:Nt,isEvalSupported:Ut,disableFontFace:Xt,fontExtraProperties:qt,enableXfa:er,ownerDocument:lr,disableAutoFetch:rr,pdfBug:jt,styleElement:tr};return wt.promise.then(function(){if(bt.destroyed)throw new Error("Loading aborted");const Tr=_fetchDocument(wt,hr),Ir=new Promise(function(Ar){let _r;Tt?_r=new _transport_stream.PDFDataTransportStream({length:ar,initialData:Tt.initialData,progressiveDone:Tt.progressiveDone,contentDispositionFilename:Tt.contentDispositionFilename,disableRange:Jt,disableStream:Yt},Tt):yt||(_r=(Rr=>_util.isNodeJS?new _displayNode_stream.PDFNodeStream(Rr):(0,_display_utils.isValidFetchUrl)(Rr.url)?new _displayFetch_stream.PDFFetchStream(Rr):new _displayNetwork.PDFNetworkStream(Rr))({url:at,length:ar,httpHeaders:St,withCredentials:_t,rangeChunkSize:kt,disableRange:Jt,disableStream:Yt})),Ar(_r)});return Promise.all([Tr,Ir]).then(function([Ar,_r]){if(bt.destroyed)throw new Error("Loading aborted");const Er=new _message_handler.MessageHandler(ft,Ar,wt.port),Rr=new WorkerTransport(Er,bt,_r,br,cr);bt._transport=Rr,Er.send("Ready",null)})}).catch(bt._capability.reject),bt}async function _fetchDocument(dt,bt){if(dt.destroyed)throw new Error("Worker was destroyed");const ft=await dt.messageHandler.sendWithPromise("GetDocRequest",bt,bt.data?[bt.data.buffer]:null);if(dt.destroyed)throw new Error("Worker was destroyed");return ft}function getUrlProp(dt){if(dt instanceof URL)return dt.href;try{return new URL(dt,window.location).href}catch{if(_util.isNodeJS&&typeof dt=="string")return dt}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function getDataProp(dt){if(_util.isNodeJS&&typeof Buffer<"u"&&dt instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(dt instanceof Uint8Array&&dt.byteLength===dt.buffer.byteLength)return dt;if(typeof dt=="string")return(0,_util.stringToBytes)(dt);if(typeof dt=="object"&&!isNaN(dt==null?void 0:dt.length)||(0,_util.isArrayBuffer)(dt))return new Uint8Array(dt);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}const i=class{constructor(){this._capability=new _util.PromiseCapability,this._transport=null,this._worker=null,this.docId=`d${G2(i,a)._++}`,this.destroyed=!1,this.onPassword=null,this.onProgress=null}get promise(){return this._capability.promise}async destroy(){var bt,ft,at;this.destroyed=!0;try{(bt=this._worker)!=null&&bt.port&&(this._worker._pendingDestroy=!0),await((ft=this._transport)==null?void 0:ft.destroy())}catch(yt){throw(at=this._worker)!=null&&at.port&&delete this._worker._pendingDestroy,yt}this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}};let PDFDocumentLoadingTask=i;a=new WeakMap,Xo(PDFDocumentLoadingTask,a,0),exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;class PDFDataRangeTransport{constructor(bt,ft,at=!1,yt=null){this.length=bt,this.initialData=ft,this.progressiveDone=at,this.contentDispositionFilename=yt,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=new _util.PromiseCapability}addRangeListener(bt){this._rangeListeners.push(bt)}addProgressListener(bt){this._progressListeners.push(bt)}addProgressiveReadListener(bt){this._progressiveReadListeners.push(bt)}addProgressiveDoneListener(bt){this._progressiveDoneListeners.push(bt)}onDataRange(bt,ft){for(const at of this._rangeListeners)at(bt,ft)}onDataProgress(bt,ft){this._readyCapability.promise.then(()=>{for(const at of this._progressListeners)at(bt,ft)})}onDataProgressiveRead(bt){this._readyCapability.promise.then(()=>{for(const ft of this._progressiveReadListeners)ft(bt)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const bt of this._progressiveDoneListeners)bt()})}transportReady(){this._readyCapability.resolve()}requestDataRange(bt,ft){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(bt,ft){this._pdfInfo=bt,this._transport=ft,Object.defineProperty(this,"getJavaScript",{value:()=>((0,_display_utils.deprecated)("`PDFDocumentProxy.getJavaScript`, please use `PDFDocumentProxy.getJSActions` instead."),this.getJSActions().then(at=>{if(!at)return at;const yt=[];for(const St in at)yt.push(...at[St]);return yt}))})}get annotationStorage(){return this._transport.annotationStorage}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(bt){return this._transport.getPage(bt)}getPageIndex(bt){return this._transport.getPageIndex(bt)}getDestinations(){return this._transport.getDestinations()}getDestination(bt){return this._transport.getDestination(bt)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig(){return this._transport.getOptionalContentConfig()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(bt=!1){return this._transport.startCleanup(bt||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}exports.PDFDocumentProxy=PDFDocumentProxy;class PDFPageProxy{constructor(bt,ft,at,yt=!1){Xo(this,Lt);Xo(this,Ct);Xo(this,_e,null);Xo(this,pt,!1);this._pageIndex=bt,this._pageInfo=ft,this._transport=at,this._stats=yt?new _display_utils.StatTimer:null,this._pdfBug=yt,this.commonObjs=at.commonObjs,this.objs=new PDFObjects,this._maybeCleanupAfterRender=!1,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:bt,rotation:ft=this.rotate,offsetX:at=0,offsetY:yt=0,dontFlip:St=!1}={}){return new _display_utils.PageViewport({viewBox:this.view,scale:bt,rotation:ft,offsetX:at,offsetY:yt,dontFlip:St})}getAnnotations({intent:bt="display"}={}){const ft=this._transport.getRenderingIntent(bt);return this._transport.getAnnotations(this._pageIndex,ft.renderingIntent)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){var bt;return((bt=this._transport._htmlForXfa)==null?void 0:bt.children[this._pageIndex])||null}render({canvasContext:bt,viewport:ft,intent:at="display",annotationMode:yt=_util.AnnotationMode.ENABLE,transform:St=null,background:_t=null,optionalContentConfigPromise:Mt=null,annotationCanvasMap:Tt=null,pageColors:kt=null,printAnnotationStorage:wt=null}){var Dt,Nt;(Dt=this._stats)==null||Dt.time("Overall");const ct=this._transport.getRenderingIntent(at,yt,wt);ks(this,pt,!1),hs(this,Ct,KE).call(this),Mt||(Mt=this._transport.getOptionalContentConfig());let It=this._intentStates.get(ct.cacheKey);It||(It=Object.create(null),this._intentStates.set(ct.cacheKey,It)),It.streamReaderCancelTimeout&&(clearTimeout(It.streamReaderCancelTimeout),It.streamReaderCancelTimeout=null);const At=!!(ct.renderingIntent&_util.RenderingIntentFlag.PRINT);It.displayReadyCapability||(It.displayReadyCapability=new _util.PromiseCapability,It.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},(Nt=this._stats)==null||Nt.time("Page Request"),this._pumpOperatorList(ct));const Ot=$t=>{var Ut,Ht;It.renderTasks.delete(Pt),(this._maybeCleanupAfterRender||At)&&ks(this,pt,!0),hs(this,Lt,i2).call(this,!At),$t?(Pt.capability.reject($t),this._abortOperatorList({intentState:It,reason:$t instanceof Error?$t:new Error($t)})):Pt.capability.resolve(),(Ut=this._stats)==null||Ut.timeEnd("Rendering"),(Ht=this._stats)==null||Ht.timeEnd("Overall")},Pt=new InternalRenderTask({callback:Ot,params:{canvasContext:bt,viewport:ft,transform:St,background:_t},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:Tt,operatorList:It.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!At,pdfBug:this._pdfBug,pageColors:kt});(It.renderTasks||(It.renderTasks=new Set)).add(Pt);const zt=Pt.task;return Promise.all([It.displayReadyCapability.promise,Mt]).then(([$t,Ut])=>{var Ht;if(this.destroyed){Ot();return}(Ht=this._stats)==null||Ht.time("Rendering"),Pt.initializeGraphics({transparency:$t,optionalContentConfig:Ut}),Pt.operatorListChanged()}).catch(Ot),zt}getOperatorList({intent:bt="display",annotationMode:ft=_util.AnnotationMode.ENABLE,printAnnotationStorage:at=null}={}){var Tt;function yt(){_t.operatorList.lastChunk&&(_t.opListReadCapability.resolve(_t.operatorList),_t.renderTasks.delete(Mt))}const St=this._transport.getRenderingIntent(bt,ft,at,!0);let _t=this._intentStates.get(St.cacheKey);_t||(_t=Object.create(null),this._intentStates.set(St.cacheKey,_t));let Mt;return _t.opListReadCapability||(Mt=Object.create(null),Mt.operatorListChanged=yt,_t.opListReadCapability=new _util.PromiseCapability,(_t.renderTasks||(_t.renderTasks=new Set)).add(Mt),_t.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},(Tt=this._stats)==null||Tt.time("Page Request"),this._pumpOperatorList(St)),_t.opListReadCapability.promise}streamTextContent({includeMarkedContent:bt=!1,disableNormalization:ft=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:bt===!0,disableNormalization:ft===!0},{highWaterMark:100,size(yt){return yt.items.length}})}getTextContent(bt={}){if(this._transport._htmlForXfa)return this.getXfa().then(at=>_xfa_text.XfaText.textContent(at));const ft=this.streamTextContent(bt);return new Promise(function(at,yt){function St(){_t.read().then(function({value:Tt,done:kt}){if(kt){at(Mt);return}Object.assign(Mt.styles,Tt.styles),Mt.items.push(...Tt.items),St()},yt)}const _t=ft.getReader(),Mt={items:[],styles:Object.create(null)};St()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const bt=[];for(const ft of this._intentStates.values())if(this._abortOperatorList({intentState:ft,reason:new Error("Page was destroyed."),force:!0}),!ft.opListReadCapability)for(const at of ft.renderTasks)bt.push(at.completed),at.cancel();return this.objs.clear(),ks(this,pt,!1),hs(this,Ct,KE).call(this),Promise.all(bt)}cleanup(bt=!1){ks(this,pt,!0);const ft=hs(this,Lt,i2).call(this,!1);return bt&&ft&&this._stats&&(this._stats=new _display_utils.StatTimer),ft}_startRenderPage(bt,ft){var yt,St;const at=this._intentStates.get(ft);at&&((yt=this._stats)==null||yt.timeEnd("Page Request"),(St=at.displayReadyCapability)==null||St.resolve(bt))}_renderPageChunk(bt,ft){for(let at=0,yt=bt.length;at{Mt.read().then(({value:wt,done:ct})=>{if(ct){Tt.streamReader=null;return}this._transport.destroyed||(this._renderPageChunk(wt,Tt),kt())},wt=>{if(Tt.streamReader=null,!this._transport.destroyed){if(Tt.operatorList){Tt.operatorList.lastChunk=!0;for(const ct of Tt.renderTasks)ct.operatorListChanged();hs(this,Lt,i2).call(this,!0)}if(Tt.displayReadyCapability)Tt.displayReadyCapability.reject(wt);else if(Tt.opListReadCapability)Tt.opListReadCapability.reject(wt);else throw wt}})};kt()}_abortOperatorList({intentState:bt,reason:ft,force:at=!1}){if(bt.streamReader){if(bt.streamReaderCancelTimeout&&(clearTimeout(bt.streamReaderCancelTimeout),bt.streamReaderCancelTimeout=null),!at){if(bt.renderTasks.size>0)return;if(ft instanceof _display_utils.RenderingCancelledException){let yt=RENDERING_CANCELLED_TIMEOUT;ft.extraDelay>0&&ft.extraDelay<1e3&&(yt+=ft.extraDelay),bt.streamReaderCancelTimeout=setTimeout(()=>{bt.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:bt,reason:ft,force:!0})},yt);return}}if(bt.streamReader.cancel(new _util.AbortException(ft.message)).catch(()=>{}),bt.streamReader=null,!this._transport.destroyed){for(const[yt,St]of this._intentStates)if(St===bt){this._intentStates.delete(yt);break}this.cleanup()}}}get stats(){return this._stats}}_e=new WeakMap,pt=new WeakMap,Lt=new WeakSet,i2=function(bt=!1){if(hs(this,Ct,KE).call(this),!On(this,pt)||this.destroyed)return!1;if(bt)return ks(this,_e,setTimeout(()=>{ks(this,_e,null),hs(this,Lt,i2).call(this,!1)},DELAYED_CLEANUP_TIMEOUT)),!1;for(const{renderTasks:ft,operatorList:at}of this._intentStates.values())if(ft.size>0||!at.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),ks(this,pt,!1),!0},Ct=new WeakSet,KE=function(){On(this,_e)&&(clearTimeout(On(this,_e)),ks(this,_e,null))},exports.PDFPageProxy=PDFPageProxy;class LoopbackPort{constructor(){Xo(this,o,new Set);Xo(this,it,Promise.resolve())}postMessage(bt,ft){const at={data:structuredClone(bt,ft?{transfer:ft}:null)};On(this,it).then(()=>{for(const yt of On(this,o))yt.call(this,at)})}addEventListener(bt,ft){On(this,o).add(ft)}removeEventListener(bt,ft){On(this,o).delete(ft)}terminate(){On(this,o).clear()}}o=new WeakMap,it=new WeakMap,exports.LoopbackPort=LoopbackPort;const PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};exports.PDFWorkerUtil=PDFWorkerUtil;{if(_util.isNodeJS&&typeof commonjsRequire=="function")PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if(typeof document=="object"){const dt=(xt=document==null?void 0:document.currentScript)==null?void 0:xt.src;dt&&(PDFWorkerUtil.fallbackWorkerSrc=dt.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.isSameOrigin=function(dt,bt){let ft;try{if(ft=new URL(dt),!ft.origin||ft.origin==="null")return!1}catch{return!1}const at=new URL(bt,ft);return ft.origin===at.origin},PDFWorkerUtil.createCDNWrapper=function(dt){const bt=`importScripts("${dt}");`;return URL.createObjectURL(new Blob([bt]))}}const _PDFWorker=class{constructor({name:dt=null,port:bt=null,verbosity:ft=(0,_util.getVerbosityLevel)()}={}){var at;if(this.name=dt,this.destroyed=!1,this.verbosity=ft,this._readyCapability=new _util.PromiseCapability,this._port=null,this._webWorker=null,this._messageHandler=null,bt){if((at=On(_PDFWorker,et))!=null&&at.has(bt))throw new Error("Cannot use more than one PDFWorker per port.");(On(_PDFWorker,et)||ks(_PDFWorker,et,new WeakMap)).set(bt,this),this._initializeFromPort(bt);return}this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(dt){this._port=dt,this._messageHandler=new _message_handler.MessageHandler("main","worker",dt),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})}_initialize(){if(!PDFWorkerUtil.isWorkerDisabled&&!_PDFWorker._mainThreadWorkerMessageHandler){let{workerSrc:dt}=_PDFWorker;try{PDFWorkerUtil.isSameOrigin(window.location.href,dt)||(dt=PDFWorkerUtil.createCDNWrapper(new URL(dt,window.location).href));const bt=new Worker(dt),ft=new _message_handler.MessageHandler("main","worker",bt),at=()=>{bt.removeEventListener("error",yt),ft.destroy(),bt.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},yt=()=>{this._webWorker||at()};bt.addEventListener("error",yt),ft.on("test",_t=>{if(bt.removeEventListener("error",yt),this.destroyed){at();return}_t?(this._messageHandler=ft,this._port=bt,this._webWorker=bt,this._readyCapability.resolve(),ft.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),ft.destroy(),bt.terminate())}),ft.on("ready",_t=>{if(bt.removeEventListener("error",yt),this.destroyed){at();return}try{St()}catch{this._setupFakeWorker()}});const St=()=>{const _t=new Uint8Array;ft.send("test",_t,[_t.buffer])};St();return}catch{(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),_PDFWorker._setupFakeWorkerGlobal.then(dt=>{if(this.destroyed){this._readyCapability.reject(new Error("Worker was destroyed"));return}const bt=new LoopbackPort;this._port=bt;const ft=`fake${PDFWorkerUtil.fakeWorkerId++}`,at=new _message_handler.MessageHandler(ft+"_worker",ft,bt);dt.setup(at,bt);const yt=new _message_handler.MessageHandler(ft,ft+"_worker",bt);this._messageHandler=yt,this._readyCapability.resolve(),yt.send("configure",{verbosity:this.verbosity})}).catch(dt=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${dt.message}".`))})}destroy(){var dt;this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),(dt=On(_PDFWorker,et))==null||dt.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(dt){var ft;if(!(dt!=null&&dt.port))throw new Error("PDFWorker.fromPort - invalid method signature.");const bt=(ft=On(this,et))==null?void 0:ft.get(dt.port);if(bt){if(bt._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return bt}return new _PDFWorker(dt)}static get workerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(PDFWorkerUtil.fallbackWorkerSrc!==null)return _util.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _mainThreadWorkerMessageHandler(){var dt;try{return((dt=globalThis.pdfjsWorker)==null?void 0:dt.WorkerMessageHandler)||null}catch{return null}}static get _setupFakeWorkerGlobal(){const loader=async()=>{const mainWorkerMessageHandler=this._mainThreadWorkerMessageHandler;if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_util.isNodeJS&&typeof commonjsRequire=="function"){const worker=eval("require")(this.workerSrc);return worker.WorkerMessageHandler}return await(0,_display_utils.loadScript)(this.workerSrc),window.pdfjsWorker.WorkerMessageHandler};return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}};let PDFWorker=_PDFWorker;et=new WeakMap,Xo(PDFWorker,et,void 0),exports.PDFWorker=PDFWorker;class WorkerTransport{constructor(bt,ft,at,yt,St){Xo(this,j);Xo(this,Et,new Map);Xo(this,mt,new Map);Xo(this,ut,new Map);Xo(this,ht,null);this.messageHandler=bt,this.loadingTask=ft,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({ownerDocument:yt.ownerDocument,styleElement:yt.styleElement}),this._params=yt,this.canvasFactory=St.canvasFactory,this.filterFactory=St.filterFactory,this.cMapReaderFactory=St.cMapReaderFactory,this.standardFontDataFactory=St.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=at,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=new _util.PromiseCapability,this.setupMessageHandler()}get annotationStorage(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}getRenderingIntent(bt,ft=_util.AnnotationMode.ENABLE,at=null,yt=!1){let St=_util.RenderingIntentFlag.DISPLAY,_t=_annotation_storage.SerializableEmpty;switch(bt){case"any":St=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":St=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)(`getRenderingIntent - invalid intent: ${bt}`)}switch(ft){case _util.AnnotationMode.DISABLE:St+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:St+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:St+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE,_t=(St&_util.RenderingIntentFlag.PRINT&&at instanceof _annotation_storage.PrintAnnotationStorage?at:this.annotationStorage).serializable;break;default:(0,_util.warn)(`getRenderingIntent - invalid annotationMode: ${ft}`)}return yt&&(St+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:St,cacheKey:`${St}_${_t.hash}`,annotationStorageSerializable:_t}}destroy(){var at;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=new _util.PromiseCapability,(at=On(this,ht))==null||at.reject(new Error("Worker was destroyed during onPassword callback"));const bt=[];for(const yt of On(this,mt).values())bt.push(yt._destroy());On(this,mt).clear(),On(this,ut).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const ft=this.messageHandler.sendWithPromise("Terminate",null);return bt.push(ft),Promise.all(bt).then(()=>{var yt;this.commonObjs.clear(),this.fontLoader.clear(),On(this,Et).clear(),this.filterFactory.destroy(),(yt=this._networkStream)==null||yt.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:bt,loadingTask:ft}=this;bt.on("GetReader",(at,yt)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=St=>{this._lastProgress={loaded:St.loaded,total:St.total}},yt.onPull=()=>{this._fullReader.read().then(function({value:St,done:_t}){if(_t){yt.close();return}(0,_util.assert)(St instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),yt.enqueue(new Uint8Array(St),1,[St])}).catch(St=>{yt.error(St)})},yt.onCancel=St=>{this._fullReader.cancel(St),yt.ready.catch(_t=>{if(!this.destroyed)throw _t})}}),bt.on("ReaderHeadersReady",at=>{const yt=new _util.PromiseCapability,St=this._fullReader;return St.headersReady.then(()=>{var _t;(!St.isStreamingSupported||!St.isRangeSupported)&&(this._lastProgress&&((_t=ft.onProgress)==null||_t.call(ft,this._lastProgress)),St.onProgress=Mt=>{var Tt;(Tt=ft.onProgress)==null||Tt.call(ft,{loaded:Mt.loaded,total:Mt.total})}),yt.resolve({isStreamingSupported:St.isStreamingSupported,isRangeSupported:St.isRangeSupported,contentLength:St.contentLength})},yt.reject),yt.promise}),bt.on("GetRangeReader",(at,yt)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const St=this._networkStream.getRangeReader(at.begin,at.end);if(!St){yt.close();return}yt.onPull=()=>{St.read().then(function({value:_t,done:Mt}){if(Mt){yt.close();return}(0,_util.assert)(_t instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),yt.enqueue(new Uint8Array(_t),1,[_t])}).catch(_t=>{yt.error(_t)})},yt.onCancel=_t=>{St.cancel(_t),yt.ready.catch(Mt=>{if(!this.destroyed)throw Mt})}}),bt.on("GetDoc",({pdfInfo:at})=>{this._numPages=at.numPages,this._htmlForXfa=at.htmlForXfa,delete at.htmlForXfa,ft._capability.resolve(new PDFDocumentProxy(at,this))}),bt.on("DocException",function(at){let yt;switch(at.name){case"PasswordException":yt=new _util.PasswordException(at.message,at.code);break;case"InvalidPDFException":yt=new _util.InvalidPDFException(at.message);break;case"MissingPDFException":yt=new _util.MissingPDFException(at.message);break;case"UnexpectedResponseException":yt=new _util.UnexpectedResponseException(at.message,at.status);break;case"UnknownErrorException":yt=new _util.UnknownErrorException(at.message,at.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}ft._capability.reject(yt)}),bt.on("PasswordRequest",at=>{if(ks(this,ht,new _util.PromiseCapability),ft.onPassword){const yt=St=>{St instanceof Error?On(this,ht).reject(St):On(this,ht).resolve({password:St})};try{ft.onPassword(yt,at.code)}catch(St){On(this,ht).reject(St)}}else On(this,ht).reject(new _util.PasswordException(at.message,at.code));return On(this,ht).promise}),bt.on("DataLoaded",at=>{var yt;(yt=ft.onProgress)==null||yt.call(ft,{loaded:at.length,total:at.length}),this.downloadInfoCapability.resolve(at)}),bt.on("StartRenderPage",at=>{if(this.destroyed)return;On(this,mt).get(at.pageIndex)._startRenderPage(at.transparency,at.cacheKey)}),bt.on("commonobj",([at,yt,St])=>{var _t;if(!this.destroyed&&!this.commonObjs.has(at))switch(yt){case"Font":const Mt=this._params;if("error"in St){const wt=St.error;(0,_util.warn)(`Error during font loading: ${wt}`),this.commonObjs.resolve(at,wt);break}const Tt=Mt.pdfBug&&((_t=globalThis.FontInspector)!=null&&_t.enabled)?(wt,ct)=>globalThis.FontInspector.fontAdded(wt,ct):null,kt=new _font_loader.FontFaceObject(St,{isEvalSupported:Mt.isEvalSupported,disableFontFace:Mt.disableFontFace,ignoreErrors:Mt.ignoreErrors,inspectFont:Tt});this.fontLoader.bind(kt).catch(wt=>bt.sendWithPromise("FontFallback",{id:at})).finally(()=>{!Mt.fontExtraProperties&&kt.data&&(kt.data=null),this.commonObjs.resolve(at,kt)});break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(at,St);break;default:throw new Error(`Got unknown common object type ${yt}`)}}),bt.on("obj",([at,yt,St,_t])=>{var Tt;if(this.destroyed)return;const Mt=On(this,mt).get(yt);if(!Mt.objs.has(at))switch(St){case"Image":if(Mt.objs.resolve(at,_t),_t){let kt;if(_t.bitmap){const{width:wt,height:ct}=_t;kt=wt*ct*4}else kt=((Tt=_t.data)==null?void 0:Tt.length)||0;kt>_util.MAX_IMAGE_SIZE_TO_CACHE&&(Mt._maybeCleanupAfterRender=!0)}break;case"Pattern":Mt.objs.resolve(at,_t);break;default:throw new Error(`Got unknown object type ${St}`)}}),bt.on("DocProgress",at=>{var yt;this.destroyed||(yt=ft.onProgress)==null||yt.call(ft,{loaded:at.loaded,total:at.total})}),bt.on("FetchBuiltInCMap",at=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.cMapReaderFactory?this.cMapReaderFactory.fetch(at):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))),bt.on("FetchStandardFontData",at=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.standardFontDataFactory?this.standardFontDataFactory.fetch(at):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.")))}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){var at;this.annotationStorage.size<=0&&(0,_util.warn)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");const{map:bt,transfers:ft}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:bt,filename:((at=this._fullReader)==null?void 0:at.filename)??null},ft).finally(()=>{this.annotationStorage.resetModified()})}getPage(bt){if(!Number.isInteger(bt)||bt<=0||bt>this._numPages)return Promise.reject(new Error("Invalid page request."));const ft=bt-1,at=On(this,ut).get(ft);if(at)return at;const yt=this.messageHandler.sendWithPromise("GetPage",{pageIndex:ft}).then(St=>{if(this.destroyed)throw new Error("Transport destroyed");const _t=new PDFPageProxy(ft,St,this,this._params.pdfBug);return On(this,mt).set(ft,_t),_t});return On(this,ut).set(ft,yt),yt}getPageIndex(bt){return typeof bt!="object"||bt===null||!Number.isInteger(bt.num)||bt.num<0||!Number.isInteger(bt.gen)||bt.gen<0?Promise.reject(new Error("Invalid pageIndex request.")):this.messageHandler.sendWithPromise("GetPageIndex",{num:bt.num,gen:bt.gen})}getAnnotations(bt,ft){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:bt,intent:ft})}getFieldObjects(){return hs(this,j,ZE).call(this,"GetFieldObjects")}hasJSActions(){return hs(this,j,ZE).call(this,"HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(bt){return typeof bt!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:bt})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getDocJSActions(){return hs(this,j,ZE).call(this,"GetDocJSActions")}getPageJSActions(bt){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:bt})}getStructTree(bt){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:bt})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then(bt=>new _optional_content_config.OptionalContentConfig(bt))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const bt="GetMetadata",ft=On(this,Et).get(bt);if(ft)return ft;const at=this.messageHandler.sendWithPromise(bt,null).then(yt=>{var St,_t;return{info:yt[0],metadata:yt[1]?new _metadata.Metadata(yt[1]):null,contentDispositionFilename:((St=this._fullReader)==null?void 0:St.filename)??null,contentLength:((_t=this._fullReader)==null?void 0:_t.contentLength)??null}});return On(this,Et).set(bt,at),at}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(bt=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(const ft of On(this,mt).values())if(!ft.cleanup())throw new Error(`startCleanup: Page ${ft.pageNumber} is currently rendering.`);this.commonObjs.clear(),bt||this.fontLoader.clear(),On(this,Et).clear(),this.filterFactory.destroy(!0)}}get loadingParams(){const{disableAutoFetch:bt,enableXfa:ft}=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:bt,enableXfa:ft})}}Et=new WeakMap,mt=new WeakMap,ut=new WeakMap,ht=new WeakMap,j=new WeakSet,ZE=function(bt,ft=null){const at=On(this,Et).get(bt);if(at)return at;const yt=this.messageHandler.sendWithPromise(bt,ft);return On(this,Et).set(bt,yt),yt};class PDFObjects{constructor(){Xo(this,tt);Xo(this,rt,Object.create(null))}get(bt,ft=null){if(ft){const yt=hs(this,tt,x_).call(this,bt);return yt.capability.promise.then(()=>ft(yt.data)),null}const at=On(this,rt)[bt];if(!(at!=null&&at.capability.settled))throw new Error(`Requesting object that isn't resolved yet ${bt}.`);return at.data}has(bt){const ft=On(this,rt)[bt];return(ft==null?void 0:ft.capability.settled)||!1}resolve(bt,ft=null){const at=hs(this,tt,x_).call(this,bt);at.data=ft,at.capability.resolve()}clear(){var bt;for(const ft in On(this,rt)){const{data:at}=On(this,rt)[ft];(bt=at==null?void 0:at.bitmap)==null||bt.close()}ks(this,rt,Object.create(null))}}rt=new WeakMap,tt=new WeakSet,x_=function(bt){var ft;return(ft=On(this,rt))[bt]||(ft[bt]={capability:new _util.PromiseCapability,data:null})};class RenderTask{constructor(bt){Xo(this,ot,null);ks(this,ot,bt),this.onContinue=null}get promise(){return On(this,ot).capability.promise}cancel(bt=0){On(this,ot).cancel(null,bt)}get separateAnnots(){const{separateAnnots:bt}=On(this,ot).operatorList;if(!bt)return!1;const{annotationCanvasMap:ft}=On(this,ot);return bt.form||bt.canvas&&(ft==null?void 0:ft.size)>0}}ot=new WeakMap,exports.RenderTask=RenderTask;const vt=class{constructor({callback:bt,params:ft,objs:at,commonObjs:yt,annotationCanvasMap:St,operatorList:_t,pageIndex:Mt,canvasFactory:Tt,filterFactory:kt,useRequestAnimationFrame:wt=!1,pdfBug:ct=!1,pageColors:It=null}){this.callback=bt,this.params=ft,this.objs=at,this.commonObjs=yt,this.annotationCanvasMap=St,this.operatorListIdx=null,this.operatorList=_t,this._pageIndex=Mt,this.canvasFactory=Tt,this.filterFactory=kt,this._pdfBug=ct,this.pageColors=It,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=wt===!0&&typeof window<"u",this.cancelled=!1,this.capability=new _util.PromiseCapability,this.task=new RenderTask(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=ft.canvasContext.canvas}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:bt=!1,optionalContentConfig:ft}){var Mt,Tt;if(this.cancelled)return;if(this._canvas){if(On(vt,nt).has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");On(vt,nt).add(this._canvas)}this._pdfBug&&((Mt=globalThis.StepperManager)!=null&&Mt.enabled)&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:at,viewport:yt,transform:St,background:_t}=this.params;this.gfx=new _canvas.CanvasGraphics(at,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:ft},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:St,viewport:yt,transparency:bt,background:_t}),this.operatorListIdx=0,this.graphicsReady=!0,(Tt=this.graphicsReadyCallback)==null||Tt.call(this)}cancel(bt=null,ft=0){var at;this.running=!1,this.cancelled=!0,(at=this.gfx)==null||at.endDrawing(),On(vt,nt).delete(this._canvas),this.callback(bt||new _display_utils.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex+1}`,ft))}operatorListChanged(){var bt;if(!this.graphicsReady){this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound);return}(bt=this.stepper)==null||bt.updateOperatorList(this.operatorList),!this.running&&this._continue()}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame(()=>{this._nextBound().catch(this._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),On(vt,nt).delete(this._canvas),this.callback())))}};let InternalRenderTask=vt;nt=new WeakMap,Xo(InternalRenderTask,nt,new WeakSet);const version="3.11.174";exports.version=version;const build="ce8716743";exports.build=build},(a,i,_e)=>{var it,xt,et,aS,mt;Object.defineProperty(i,"__esModule",{value:!0}),i.SerializableEmpty=i.PrintAnnotationStorage=i.AnnotationStorage=void 0;var pt=_e(1),Lt=_e(4),Gt=_e(8);const Ct=Object.freeze({map:null,hash:"",transfers:void 0});i.SerializableEmpty=Ct;class Rt{constructor(){Xo(this,et);Xo(this,it,!1);Xo(this,xt,new Map);this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(ht,j){const _=On(this,xt).get(ht);return _===void 0?j:Object.assign(j,_)}getRawValue(ht){return On(this,xt).get(ht)}remove(ht){if(On(this,xt).delete(ht),On(this,xt).size===0&&this.resetModified(),typeof this.onAnnotationEditor=="function"){for(const j of On(this,xt).values())if(j instanceof Lt.AnnotationEditor)return;this.onAnnotationEditor(null)}}setValue(ht,j){const _=On(this,xt).get(ht);let rt=!1;if(_!==void 0)for(const[tt,st]of Object.entries(j))_[tt]!==st&&(rt=!0,_[tt]=st);else rt=!0,On(this,xt).set(ht,j);rt&&hs(this,et,aS).call(this),j instanceof Lt.AnnotationEditor&&typeof this.onAnnotationEditor=="function"&&this.onAnnotationEditor(j.constructor._type)}has(ht){return On(this,xt).has(ht)}getAll(){return On(this,xt).size>0?(0,pt.objectFromMap)(On(this,xt)):null}setAll(ht){for(const[j,_]of Object.entries(ht))this.setValue(j,_)}get size(){return On(this,xt).size}resetModified(){On(this,it)&&(ks(this,it,!1),typeof this.onResetModified=="function"&&this.onResetModified())}get print(){return new o(this)}get serializable(){if(On(this,xt).size===0)return Ct;const ht=new Map,j=new Gt.MurmurHash3_64,_=[],rt=Object.create(null);let tt=!1;for(const[st,ot]of On(this,xt)){const nt=ot instanceof Lt.AnnotationEditor?ot.serialize(!1,rt):ot;nt&&(ht.set(st,nt),j.update(`${st}:${JSON.stringify(nt)}`),tt||(tt=!!nt.bitmap))}if(tt)for(const st of ht.values())st.bitmap&&_.push(st.bitmap);return ht.size>0?{map:ht,hash:j.hexdigest(),transfers:_}:Ct}}it=new WeakMap,xt=new WeakMap,et=new WeakSet,aS=function(){On(this,it)||(ks(this,it,!0),typeof this.onSetModified=="function"&&this.onSetModified())},i.AnnotationStorage=Rt;class o extends Rt{constructor(j){super();Xo(this,mt,void 0);const{map:_,hash:rt,transfers:tt}=j.serializable,st=structuredClone(_,tt?{transfer:tt}:null);ks(this,mt,{map:st,hash:rt,transfers:tt})}get print(){(0,pt.unreachable)("Should not call PrintAnnotationStorage.print")}get serializable(){return On(this,mt)}}mt=new WeakMap,i.PrintAnnotationStorage=o},(a,i,_e)=>{var o,it,xt,et,Et,mt,ut,ht,j,_,rt,tt,st,ot,nt,b_,dt,E_,ft,T_,yt,A_,_t,iS,Tt,oS,wt,sS,It,__,Ot,lS;Object.defineProperty(i,"__esModule",{value:!0}),i.AnnotationEditor=void 0;var pt=_e(5),Lt=_e(1),Gt=_e(6);const zt=class{constructor(Nt){Xo(this,nt);Xo(this,dt);Xo(this,yt);Xo(this,_t);Xo(this,Tt);Xo(this,wt);Xo(this,It);Xo(this,Ot);Xo(this,o,"");Xo(this,it,!1);Xo(this,xt,null);Xo(this,et,null);Xo(this,Et,null);Xo(this,mt,!1);Xo(this,ut,null);Xo(this,ht,this.focusin.bind(this));Xo(this,j,this.focusout.bind(this));Xo(this,_,!1);Xo(this,rt,!1);Xo(this,tt,!1);Dp(this,"_initialOptions",Object.create(null));Dp(this,"_uiManager",null);Dp(this,"_focusEventsAllowed",!0);Dp(this,"_l10nPromise",null);Xo(this,st,!1);Xo(this,ot,zt._zIndex++);this.constructor===zt&&(0,Lt.unreachable)("Cannot initialize AnnotationEditor."),this.parent=Nt.parent,this.id=Nt.id,this.width=this.height=null,this.pageIndex=Nt.parent.pageIndex,this.name=Nt.name,this.div=null,this._uiManager=Nt.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=Nt.isCentered,this._structTreeParentId=null;const{rotation:$t,rawDims:{pageWidth:Ut,pageHeight:Ht,pageX:Vt,pageY:Xt}}=this.parent.viewport;this.rotation=$t,this.pageRotation=(360+$t-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[Ut,Ht],this.pageTranslation=[Vt,Xt];const[qt,er]=this.parentDimensions;this.x=Nt.x/qt,this.y=Nt.y/er,this.isAttachedToDOM=!1,this.deleted=!1}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get _defaultLineColor(){return(0,Lt.shadow)(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(Nt){const $t=new Rt({id:Nt.parent.getNextId(),parent:Nt.parent,uiManager:Nt._uiManager});$t.annotationElementId=Nt.annotationElementId,$t.deleted=!0,$t._uiManager.addToAnnotationStorage($t)}static initialize(Nt,$t=null){if(zt._l10nPromise||(zt._l10nPromise=new Map(["editor_alt_text_button_label","editor_alt_text_edit_button_label","editor_alt_text_decorative_tooltip"].map(Ht=>[Ht,Nt.get(Ht)]))),$t!=null&&$t.strings)for(const Ht of $t.strings)zt._l10nPromise.set(Ht,Nt.get(Ht));if(zt._borderLineWidth!==-1)return;const Ut=getComputedStyle(document.documentElement);zt._borderLineWidth=parseFloat(Ut.getPropertyValue("--outline-width"))||0}static updateDefaultParams(Nt,$t){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(Nt){return!1}static paste(Nt,$t){(0,Lt.unreachable)("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return On(this,st)}set _isDraggable(Nt){var $t;ks(this,st,Nt),($t=this.div)==null||$t.classList.toggle("draggable",Nt)}center(){const[Nt,$t]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*$t/(Nt*2),this.y+=this.width*Nt/($t*2);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*$t/(Nt*2),this.y-=this.width*Nt/($t*2);break;default:this.x-=this.width/2,this.y-=this.height/2;break}this.fixAndSetPosition()}addCommands(Nt){this._uiManager.addCommands(Nt)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=On(this,ot)}setParent(Nt){Nt!==null&&(this.pageIndex=Nt.pageIndex,this.pageDimensions=Nt.pageDimensions),this.parent=Nt}focusin(Nt){this._focusEventsAllowed&&(On(this,_)?ks(this,_,!1):this.parent.setSelected(this))}focusout(Nt){var Ut;if(!this._focusEventsAllowed||!this.isAttachedToDOM)return;const $t=Nt.relatedTarget;$t!=null&&$t.closest(`#${this.id}`)||(Nt.preventDefault(),(Ut=this.parent)!=null&&Ut.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(Nt,$t,Ut,Ht){const[Vt,Xt]=this.parentDimensions;[Ut,Ht]=this.screenToPageTranslation(Ut,Ht),this.x=(Nt+Ut)/Vt,this.y=($t+Ht)/Xt,this.fixAndSetPosition()}translate(Nt,$t){hs(this,nt,b_).call(this,this.parentDimensions,Nt,$t)}translateInPage(Nt,$t){hs(this,nt,b_).call(this,this.pageDimensions,Nt,$t),this.div.scrollIntoView({block:"nearest"})}drag(Nt,$t){const[Ut,Ht]=this.parentDimensions;if(this.x+=Nt/Ut,this.y+=$t/Ht,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){const{x:lr,y:Jt}=this.div.getBoundingClientRect();this.parent.findNewParent(this,lr,Jt)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:Vt,y:Xt}=this;const[qt,er]=hs(this,dt,E_).call(this);Vt+=qt,Xt+=er,this.div.style.left=`${(100*Vt).toFixed(2)}%`,this.div.style.top=`${(100*Xt).toFixed(2)}%`,this.div.scrollIntoView({block:"nearest"})}fixAndSetPosition(){const[Nt,$t]=this.pageDimensions;let{x:Ut,y:Ht,width:Vt,height:Xt}=this;switch(Vt*=Nt,Xt*=$t,Ut*=Nt,Ht*=$t,this.rotation){case 0:Ut=Math.max(0,Math.min(Nt-Vt,Ut)),Ht=Math.max(0,Math.min($t-Xt,Ht));break;case 90:Ut=Math.max(0,Math.min(Nt-Xt,Ut)),Ht=Math.min($t,Math.max(Vt,Ht));break;case 180:Ut=Math.min(Nt,Math.max(Vt,Ut)),Ht=Math.min($t,Math.max(Xt,Ht));break;case 270:Ut=Math.min(Nt,Math.max(Xt,Ut)),Ht=Math.max(0,Math.min($t-Vt,Ht));break}this.x=Ut/=Nt,this.y=Ht/=$t;const[qt,er]=hs(this,dt,E_).call(this);Ut+=qt,Ht+=er;const{style:lr}=this.div;lr.left=`${(100*Ut).toFixed(2)}%`,lr.top=`${(100*Ht).toFixed(2)}%`,this.moveInDOM()}screenToPageTranslation(Nt,$t){var Ut;return hs(Ut=zt,ft,T_).call(Ut,Nt,$t,this.parentRotation)}pageTranslationToScreen(Nt,$t){var Ut;return hs(Ut=zt,ft,T_).call(Ut,Nt,$t,360-this.parentRotation)}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){const{parentScale:Nt,pageDimensions:[$t,Ut]}=this,Ht=$t*Nt,Vt=Ut*Nt;return Lt.FeatureTest.isCSSRoundSupported?[Math.round(Ht),Math.round(Vt)]:[Ht,Vt]}setDims(Nt,$t){var Vt;const[Ut,Ht]=this.parentDimensions;this.div.style.width=`${(100*Nt/Ut).toFixed(2)}%`,On(this,mt)||(this.div.style.height=`${(100*$t/Ht).toFixed(2)}%`),(Vt=On(this,xt))==null||Vt.classList.toggle("small",NtUt.stopPropagation()),Nt.addEventListener("click",Ut=>{Ut.preventDefault(),this._uiManager.editAltText(this)},{capture:!0}),Nt.addEventListener("keydown",Ut=>{Ut.target===Nt&&Ut.key==="Enter"&&(Ut.preventDefault(),this._uiManager.editAltText(this))}),hs(this,It,__).call(this),this.div.append(Nt),zt.SMALL_EDITOR_SIZE||(zt.SMALL_EDITOR_SIZE=Math.min(128,Math.round(Nt.getBoundingClientRect().width*1.4)))}getClientDimensions(){return this.div.getBoundingClientRect()}get altTextData(){return{altText:On(this,o),decorative:On(this,it)}}set altTextData({altText:Nt,decorative:$t}){On(this,o)===Nt&&On(this,it)===$t||(ks(this,o,Nt),ks(this,it,$t),hs(this,It,__).call(this))}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.setAttribute("tabIndex",0),this.setInForeground(),this.div.addEventListener("focusin",On(this,ht)),this.div.addEventListener("focusout",On(this,j));const[Nt,$t]=this.parentDimensions;this.parentRotation%180!==0&&(this.div.style.maxWidth=`${(100*$t/Nt).toFixed(2)}%`,this.div.style.maxHeight=`${(100*Nt/$t).toFixed(2)}%`);const[Ut,Ht]=this.getInitialTranslation();return this.translate(Ut,Ht),(0,pt.bindEvents)(this,this.div,["pointerdown"]),this.div}pointerdown(Nt){const{isMac:$t}=Lt.FeatureTest.platform;if(Nt.button!==0||Nt.ctrlKey&&$t){Nt.preventDefault();return}ks(this,_,!0),hs(this,Ot,lS).call(this,Nt)}moveInDOM(){var Nt;(Nt=this.parent)==null||Nt.moveEditorInDOM(this)}_setParentAndPosition(Nt,$t,Ut){Nt.changeParent(this),this.x=$t,this.y=Ut,this.fixAndSetPosition()}getRect(Nt,$t){const Ut=this.parentScale,[Ht,Vt]=this.pageDimensions,[Xt,qt]=this.pageTranslation,er=Nt/Ut,lr=$t/Ut,Jt=this.x*Ht,Yt=this.y*Vt,rr=this.width*Ht,jt=this.height*Vt;switch(this.rotation){case 0:return[Jt+er+Xt,Vt-Yt-lr-jt+qt,Jt+er+rr+Xt,Vt-Yt-lr+qt];case 90:return[Jt+lr+Xt,Vt-Yt+er+qt,Jt+lr+jt+Xt,Vt-Yt+er+rr+qt];case 180:return[Jt-er-rr+Xt,Vt-Yt+lr+qt,Jt-er+Xt,Vt-Yt+lr+jt+qt];case 270:return[Jt-lr-jt+Xt,Vt-Yt-er-rr+qt,Jt-lr+Xt,Vt-Yt-er+qt];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(Nt,$t){const[Ut,Ht,Vt,Xt]=Nt,qt=Vt-Ut,er=Xt-Ht;switch(this.rotation){case 0:return[Ut,$t-Xt,qt,er];case 90:return[Ut,$t-Ht,er,qt];case 180:return[Vt,$t-Ht,qt,er];case 270:return[Vt,$t-Xt,er,qt];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){ks(this,tt,!0)}disableEditMode(){ks(this,tt,!1)}isInEditMode(){return On(this,tt)}shouldGetKeyboardEvents(){return!1}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){var Nt,$t;(Nt=this.div)==null||Nt.addEventListener("focusin",On(this,ht)),($t=this.div)==null||$t.addEventListener("focusout",On(this,j))}serialize(Nt=!1,$t=null){(0,Lt.unreachable)("An editor must be serializable")}static deserialize(Nt,$t,Ut){const Ht=new this.prototype.constructor({parent:$t,id:$t.getNextId(),uiManager:Ut});Ht.rotation=Nt.rotation;const[Vt,Xt]=Ht.pageDimensions,[qt,er,lr,Jt]=Ht.getRectInCurrentCoords(Nt.rect,Xt);return Ht.x=qt/Vt,Ht.y=er/Xt,Ht.width=lr/Vt,Ht.height=Jt/Xt,Ht}remove(){var Nt;this.div.removeEventListener("focusin",On(this,ht)),this.div.removeEventListener("focusout",On(this,j)),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),(Nt=On(this,xt))==null||Nt.remove(),ks(this,xt,null),ks(this,et,null)}get isResizable(){return!1}makeResizable(){this.isResizable&&(hs(this,_t,iS).call(this),On(this,ut).classList.remove("hidden"))}select(){var Nt;this.makeResizable(),(Nt=this.div)==null||Nt.classList.add("selectedEditor")}unselect(){var Nt,$t,Ut;(Nt=On(this,ut))==null||Nt.classList.add("hidden"),($t=this.div)==null||$t.classList.remove("selectedEditor"),(Ut=this.div)!=null&&Ut.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus()}updateParams(Nt,$t){}disableEditing(){On(this,xt)&&(On(this,xt).hidden=!0)}enableEditing(){On(this,xt)&&(On(this,xt).hidden=!1)}enterInEditMode(){}get contentDiv(){return this.div}get isEditing(){return On(this,rt)}set isEditing(Nt){ks(this,rt,Nt),this.parent&&(Nt?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(Nt,$t){ks(this,mt,!0);const Ut=Nt/$t,{style:Ht}=this.div;Ht.aspectRatio=Ut,Ht.height="auto"}static get MIN_SIZE(){return 16}};let Ct=zt;o=new WeakMap,it=new WeakMap,xt=new WeakMap,et=new WeakMap,Et=new WeakMap,mt=new WeakMap,ut=new WeakMap,ht=new WeakMap,j=new WeakMap,_=new WeakMap,rt=new WeakMap,tt=new WeakMap,st=new WeakMap,ot=new WeakMap,nt=new WeakSet,b_=function([Nt,$t],Ut,Ht){[Ut,Ht]=this.screenToPageTranslation(Ut,Ht),this.x+=Ut/Nt,this.y+=Ht/$t,this.fixAndSetPosition()},dt=new WeakSet,E_=function(){const[Nt,$t]=this.parentDimensions,{_borderLineWidth:Ut}=zt,Ht=Ut/Nt,Vt=Ut/$t;switch(this.rotation){case 90:return[-Ht,Vt];case 180:return[Ht,Vt];case 270:return[Ht,-Vt];default:return[-Ht,-Vt]}},ft=new WeakSet,T_=function(Nt,$t,Ut){switch(Ut){case 90:return[$t,-Nt];case 180:return[-Nt,-$t];case 270:return[-$t,Nt];default:return[Nt,$t]}},yt=new WeakSet,A_=function(Nt){switch(Nt){case 90:{const[$t,Ut]=this.pageDimensions;return[0,-$t/Ut,Ut/$t,0]}case 180:return[-1,0,0,-1];case 270:{const[$t,Ut]=this.pageDimensions;return[0,$t/Ut,-Ut/$t,0]}default:return[1,0,0,1]}},_t=new WeakSet,iS=function(){if(On(this,ut))return;ks(this,ut,document.createElement("div")),On(this,ut).classList.add("resizers");const Nt=["topLeft","topRight","bottomRight","bottomLeft"];this._willKeepAspectRatio||Nt.push("topMiddle","middleRight","bottomMiddle","middleLeft");for(const $t of Nt){const Ut=document.createElement("div");On(this,ut).append(Ut),Ut.classList.add("resizer",$t),Ut.addEventListener("pointerdown",hs(this,Tt,oS).bind(this,$t)),Ut.addEventListener("contextmenu",Gt.noContextMenu)}this.div.prepend(On(this,ut))},Tt=new WeakSet,oS=function(Nt,$t){$t.preventDefault();const{isMac:Ut}=Lt.FeatureTest.platform;if($t.button!==0||$t.ctrlKey&&Ut)return;const Ht=hs(this,wt,sS).bind(this,Nt),Vt=this._isDraggable;this._isDraggable=!1;const Xt={passive:!0,capture:!0};window.addEventListener("pointermove",Ht,Xt);const qt=this.x,er=this.y,lr=this.width,Jt=this.height,Yt=this.parent.div.style.cursor,rr=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle($t.target).cursor;const jt=()=>{this._isDraggable=Vt,window.removeEventListener("pointerup",jt),window.removeEventListener("blur",jt),window.removeEventListener("pointermove",Ht,Xt),this.parent.div.style.cursor=Yt,this.div.style.cursor=rr;const ar=this.x,sr=this.y,Zt=this.width,Kt=this.height;ar===qt&&sr===er&&Zt===lr&&Kt===Jt||this.addCommands({cmd:()=>{this.width=Zt,this.height=Kt,this.x=ar,this.y=sr;const[or,tr]=this.parentDimensions;this.setDims(or*Zt,tr*Kt),this.fixAndSetPosition()},undo:()=>{this.width=lr,this.height=Jt,this.x=qt,this.y=er;const[or,tr]=this.parentDimensions;this.setDims(or*lr,tr*Jt),this.fixAndSetPosition()},mustExec:!0})};window.addEventListener("pointerup",jt),window.addEventListener("blur",jt)},wt=new WeakSet,sS=function(Nt,$t){const[Ut,Ht]=this.parentDimensions,Vt=this.x,Xt=this.y,qt=this.width,er=this.height,lr=zt.MIN_SIZE/Ut,Jt=zt.MIN_SIZE/Ht,Yt=Qr=>Math.round(Qr*1e4)/1e4,rr=hs(this,yt,A_).call(this,this.rotation),jt=(Qr,sn)=>[rr[0]*Qr+rr[2]*sn,rr[1]*Qr+rr[3]*sn],ar=hs(this,yt,A_).call(this,360-this.rotation),sr=(Qr,sn)=>[ar[0]*Qr+ar[2]*sn,ar[1]*Qr+ar[3]*sn];let Zt,Kt,or=!1,tr=!1;switch(Nt){case"topLeft":or=!0,Zt=(Qr,sn)=>[0,0],Kt=(Qr,sn)=>[Qr,sn];break;case"topMiddle":Zt=(Qr,sn)=>[Qr/2,0],Kt=(Qr,sn)=>[Qr/2,sn];break;case"topRight":or=!0,Zt=(Qr,sn)=>[Qr,0],Kt=(Qr,sn)=>[0,sn];break;case"middleRight":tr=!0,Zt=(Qr,sn)=>[Qr,sn/2],Kt=(Qr,sn)=>[0,sn/2];break;case"bottomRight":or=!0,Zt=(Qr,sn)=>[Qr,sn],Kt=(Qr,sn)=>[0,0];break;case"bottomMiddle":Zt=(Qr,sn)=>[Qr/2,sn],Kt=(Qr,sn)=>[Qr/2,0];break;case"bottomLeft":or=!0,Zt=(Qr,sn)=>[0,sn],Kt=(Qr,sn)=>[Qr,0];break;case"middleLeft":tr=!0,Zt=(Qr,sn)=>[0,sn/2],Kt=(Qr,sn)=>[Qr,sn/2];break}const cr=Zt(qt,er),hr=Kt(qt,er);let br=jt(...hr);const Tr=Yt(Vt+br[0]),Ir=Yt(Xt+br[1]);let Ar=1,_r=1,[Er,Rr]=this.screenToPageTranslation($t.movementX,$t.movementY);if([Er,Rr]=sr(Er/Ut,Rr/Ht),or){const Qr=Math.hypot(qt,er);Ar=_r=Math.max(Math.min(Math.hypot(hr[0]-cr[0]-Er,hr[1]-cr[1]-Rr)/Qr,1/qt,1/er),lr/qt,Jt/er)}else tr?Ar=Math.max(lr,Math.min(1,Math.abs(hr[0]-cr[0]-Er)))/qt:_r=Math.max(Jt,Math.min(1,Math.abs(hr[1]-cr[1]-Rr)))/er;const zr=Yt(qt*Ar),Br=Yt(er*_r);br=jt(...Kt(zr,Br));const kr=Tr-br[0],Nr=Ir-br[1];this.width=zr,this.height=Br,this.x=kr,this.y=Nr,this.setDims(Ut*zr,Ht*Br),this.fixAndSetPosition()},It=new WeakSet,__=async function(){var Ut;const Nt=On(this,xt);if(!Nt)return;if(!On(this,o)&&!On(this,it)){Nt.classList.remove("done"),(Ut=On(this,et))==null||Ut.remove();return}zt._l10nPromise.get("editor_alt_text_edit_button_label").then(Ht=>{Nt.setAttribute("aria-label",Ht)});let $t=On(this,et);if(!$t){ks(this,et,$t=document.createElement("span")),$t.className="tooltip",$t.setAttribute("role","tooltip");const Ht=$t.id=`alt-text-tooltip-${this.id}`;Nt.setAttribute("aria-describedby",Ht);const Vt=100;Nt.addEventListener("mouseenter",()=>{ks(this,Et,setTimeout(()=>{ks(this,Et,null),On(this,et).classList.add("show"),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",subtype:this.editorType,data:{action:"alt_text_tooltip"}}})},Vt))}),Nt.addEventListener("mouseleave",()=>{var Xt;clearTimeout(On(this,Et)),ks(this,Et,null),(Xt=On(this,et))==null||Xt.classList.remove("show")})}Nt.classList.add("done"),$t.innerText=On(this,it)?await zt._l10nPromise.get("editor_alt_text_decorative_tooltip"):On(this,o),$t.parentNode||Nt.append($t)},Ot=new WeakSet,lS=function(Nt){if(!this._isDraggable)return;const $t=this._uiManager.isSelected(this);this._uiManager.setUpDragSession();let Ut,Ht;$t&&(Ut={passive:!0,capture:!0},Ht=Xt=>{const[qt,er]=this.screenToPageTranslation(Xt.movementX,Xt.movementY);this._uiManager.dragSelectedEditors(qt,er)},window.addEventListener("pointermove",Ht,Ut));const Vt=()=>{if(window.removeEventListener("pointerup",Vt),window.removeEventListener("blur",Vt),$t&&window.removeEventListener("pointermove",Ht,Ut),ks(this,_,!1),!this._uiManager.endDragSession()){const{isMac:Xt}=Lt.FeatureTest.platform;Nt.ctrlKey&&!Xt||Nt.shiftKey||Nt.metaKey&&Xt?this.parent.toggleSelected(this):this.parent.setSelected(this)}};window.addEventListener("pointerup",Vt),window.addEventListener("blur",Vt)},Xo(Ct,ft),Dp(Ct,"_borderLineWidth",-1),Dp(Ct,"_colorManager",new pt.ColorManager),Dp(Ct,"_zIndex",1),Dp(Ct,"SMALL_EDITOR_SIZE",0),i.AnnotationEditor=Ct;class Rt extends Ct{constructor(Nt){super(Nt),this.annotationElementId=Nt.annotationElementId,this.deleted=!0}serialize(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex}}}},(a,i,_e)=>{var mt,ut,ht,j,_,S_,st,ot,nt,vt,dt,uS,at,yt,St,_t,Mt,Tt,kt,wt,ct,It,At,Ot,Pt,zt,Dt,Nt,$t,Ut,Ht,Vt,Xt,qt,er,lr,Jt,Yt,rr,jt,ar,sr,Zt,Kt,or,tr,cr,cS,br,w_,Ir,C_,_r,JE,Rr,R_,Br,M_,Nr,Om,sn,V2,qr,fS,ln,dS,pn,I_,Jr,W2,Ur,k_;Object.defineProperty(i,"__esModule",{value:!0}),i.KeyboardManager=i.CommandManager=i.ColorManager=i.AnnotationEditorUIManager=void 0,i.bindEvents=Gt,i.opacityToHex=Ct;var pt=_e(1),Lt=_e(6);function Gt(wr,vr,Dr){for(const Sr of Dr)vr.addEventListener(Sr,wr[Sr].bind(wr))}function Ct(wr){return Math.round(Math.min(255,Math.max(1,255*wr))).toString(16).padStart(2,"0")}class Rt{constructor(){Xo(this,mt,0)}getId(){return`${pt.AnnotationEditorPrefix}${G2(this,mt)._++}`}}mt=new WeakMap;const tt=class{constructor(){Xo(this,_);Xo(this,ut,(0,pt.getUuid)());Xo(this,ht,0);Xo(this,j,null)}static get _isSVGFittingCanvas(){const vr='data:image/svg+xml;charset=UTF-8,',Sr=new OffscreenCanvas(1,3).getContext("2d"),ur=new Image;ur.src=vr;const xr=ur.decode().then(()=>(Sr.drawImage(ur,0,0,1,1,0,0,1,3),new Uint32Array(Sr.getImageData(0,0,1,1).data.buffer)[0]===0));return(0,pt.shadow)(this,"_isSVGFittingCanvas",xr)}async getFromFile(vr){const{lastModified:Dr,name:Sr,size:ur,type:xr}=vr;return hs(this,_,S_).call(this,`${Dr}_${Sr}_${ur}_${xr}`,vr)}async getFromUrl(vr){return hs(this,_,S_).call(this,vr,vr)}async getFromId(vr){On(this,j)||ks(this,j,new Map);const Dr=On(this,j).get(vr);return Dr?Dr.bitmap?(Dr.refCounter+=1,Dr):Dr.file?this.getFromFile(Dr.file):this.getFromUrl(Dr.url):null}getSvgUrl(vr){const Dr=On(this,j).get(vr);return Dr!=null&&Dr.isSvg?Dr.svgUrl:null}deleteId(vr){On(this,j)||ks(this,j,new Map);const Dr=On(this,j).get(vr);Dr&&(Dr.refCounter-=1,Dr.refCounter===0&&(Dr.bitmap=null))}isValidId(vr){return vr.startsWith(`image_${On(this,ut)}_`)}};let o=tt;ut=new WeakMap,ht=new WeakMap,j=new WeakMap,_=new WeakSet,S_=async function(vr,Dr){On(this,j)||ks(this,j,new Map);let Sr=On(this,j).get(vr);if(Sr===null)return null;if(Sr!=null&&Sr.bitmap)return Sr.refCounter+=1,Sr;try{Sr||(Sr={bitmap:null,id:`image_${On(this,ut)}_${G2(this,ht)._++}`,refCounter:0,isSvg:!1});let ur;if(typeof Dr=="string"){Sr.url=Dr;const xr=await fetch(Dr);if(!xr.ok)throw new Error(xr.statusText);ur=await xr.blob()}else ur=Sr.file=Dr;if(ur.type==="image/svg+xml"){const xr=tt._isSVGFittingCanvas,Pr=new FileReader,Vr=new Image,en=new Promise((rn,Cn)=>{Vr.onload=()=>{Sr.bitmap=Vr,Sr.isSvg=!0,rn()},Pr.onload=async()=>{const xn=Sr.svgUrl=Pr.result;Vr.src=await xr?`${xn}#svgView(preserveAspectRatio(none))`:xn},Vr.onerror=Pr.onerror=Cn});Pr.readAsDataURL(ur),await en}else Sr.bitmap=await createImageBitmap(ur);Sr.refCounter=1}catch(ur){console.error(ur),Sr=null}return On(this,j).set(vr,Sr),Sr&&On(this,j).set(Sr.id,Sr),Sr};class it{constructor(vr=128){Xo(this,st,[]);Xo(this,ot,!1);Xo(this,nt,void 0);Xo(this,vt,-1);ks(this,nt,vr)}add({cmd:vr,undo:Dr,mustExec:Sr,type:ur=NaN,overwriteIfSameType:xr=!1,keepUndo:Pr=!1}){if(Sr&&vr(),On(this,ot))return;const Vr={cmd:vr,undo:Dr,type:ur};if(On(this,vt)===-1){On(this,st).length>0&&(On(this,st).length=0),ks(this,vt,0),On(this,st).push(Vr);return}if(xr&&On(this,st)[On(this,vt)].type===ur){Pr&&(Vr.undo=On(this,st)[On(this,vt)].undo),On(this,st)[On(this,vt)]=Vr;return}const en=On(this,vt)+1;en===On(this,nt)?On(this,st).splice(0,1):(ks(this,vt,en),enxr===Dr[Pr]))return ft._colorsMapping.get(Sr);return Dr}getHexCode(vr){const Dr=this._colors.get(vr);return Dr?pt.Util.makeHexColor(...Dr):vr}};let et=ft;Dp(et,"_colorsMapping",new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]])),i.ColorManager=et;const Gr=class{constructor(vr,Dr,Sr,ur,xr,Pr){Xo(this,cr);Xo(this,br);Xo(this,Ir);Xo(this,_r);Xo(this,Rr);Xo(this,Br);Xo(this,Nr);Xo(this,sn);Xo(this,qr);Xo(this,ln);Xo(this,pn);Xo(this,Jr);Xo(this,Ur);Xo(this,at,null);Xo(this,yt,new Map);Xo(this,St,new Map);Xo(this,_t,null);Xo(this,Mt,null);Xo(this,Tt,new it);Xo(this,kt,0);Xo(this,wt,new Set);Xo(this,ct,null);Xo(this,It,null);Xo(this,At,new Set);Xo(this,Ot,null);Xo(this,Pt,new Rt);Xo(this,zt,!1);Xo(this,Dt,!1);Xo(this,Nt,null);Xo(this,$t,pt.AnnotationEditorType.NONE);Xo(this,Ut,new Set);Xo(this,Ht,null);Xo(this,Vt,this.blur.bind(this));Xo(this,Xt,this.focus.bind(this));Xo(this,qt,this.copy.bind(this));Xo(this,er,this.cut.bind(this));Xo(this,lr,this.paste.bind(this));Xo(this,Jt,this.keydown.bind(this));Xo(this,Yt,this.onEditingAction.bind(this));Xo(this,rr,this.onPageChanging.bind(this));Xo(this,jt,this.onScaleChanging.bind(this));Xo(this,ar,this.onRotationChanging.bind(this));Xo(this,sr,{isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1});Xo(this,Zt,[0,0]);Xo(this,Kt,null);Xo(this,or,null);Xo(this,tr,null);ks(this,or,vr),ks(this,tr,Dr),ks(this,_t,Sr),this._eventBus=ur,this._eventBus._on("editingaction",On(this,Yt)),this._eventBus._on("pagechanging",On(this,rr)),this._eventBus._on("scalechanging",On(this,jt)),this._eventBus._on("rotationchanging",On(this,ar)),ks(this,Mt,xr.annotationStorage),ks(this,Ot,xr.filterFactory),ks(this,Ht,Pr),this.viewParameters={realScale:Lt.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:0}}static get _keyboardManager(){const vr=Gr.prototype,Dr=xr=>{const{activeElement:Pr}=document;return Pr&&On(xr,or).contains(Pr)&&xr.hasSomethingToControl()},Sr=this.TRANSLATE_SMALL,ur=this.TRANSLATE_BIG;return(0,pt.shadow)(this,"_keyboardManager",new xt([[["ctrl+a","mac+meta+a"],vr.selectAll],[["ctrl+z","mac+meta+z"],vr.undo],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],vr.redo],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],vr.delete],[["Escape","mac+Escape"],vr.unselectAll],[["ArrowLeft","mac+ArrowLeft"],vr.translateSelectedEditors,{args:[-Sr,0],checker:Dr}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],vr.translateSelectedEditors,{args:[-ur,0],checker:Dr}],[["ArrowRight","mac+ArrowRight"],vr.translateSelectedEditors,{args:[Sr,0],checker:Dr}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],vr.translateSelectedEditors,{args:[ur,0],checker:Dr}],[["ArrowUp","mac+ArrowUp"],vr.translateSelectedEditors,{args:[0,-Sr],checker:Dr}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],vr.translateSelectedEditors,{args:[0,-ur],checker:Dr}],[["ArrowDown","mac+ArrowDown"],vr.translateSelectedEditors,{args:[0,Sr],checker:Dr}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],vr.translateSelectedEditors,{args:[0,ur],checker:Dr}]]))}destroy(){hs(this,_r,JE).call(this),hs(this,br,w_).call(this),this._eventBus._off("editingaction",On(this,Yt)),this._eventBus._off("pagechanging",On(this,rr)),this._eventBus._off("scalechanging",On(this,jt)),this._eventBus._off("rotationchanging",On(this,ar));for(const vr of On(this,St).values())vr.destroy();On(this,St).clear(),On(this,yt).clear(),On(this,At).clear(),ks(this,at,null),On(this,Ut).clear(),On(this,Tt).destroy(),On(this,_t).destroy()}get hcmFilter(){return(0,pt.shadow)(this,"hcmFilter",On(this,Ht)?On(this,Ot).addHCMFilter(On(this,Ht).foreground,On(this,Ht).background):"none")}get direction(){return(0,pt.shadow)(this,"direction",getComputedStyle(On(this,or)).direction)}editAltText(vr){var Dr;(Dr=On(this,_t))==null||Dr.editAltText(this,vr)}onPageChanging({pageNumber:vr}){ks(this,kt,vr-1)}focusMainContainer(){On(this,or).focus()}findParent(vr,Dr){for(const Sr of On(this,St).values()){const{x:ur,y:xr,width:Pr,height:Vr}=Sr.div.getBoundingClientRect();if(vr>=ur&&vr<=ur+Pr&&Dr>=xr&&Dr<=xr+Vr)return Sr}return null}disableUserSelect(vr=!1){On(this,tr).classList.toggle("noUserSelect",vr)}addShouldRescale(vr){On(this,At).add(vr)}removeShouldRescale(vr){On(this,At).delete(vr)}onScaleChanging({scale:vr}){this.commitOrRemove(),this.viewParameters.realScale=vr*Lt.PixelsPerInch.PDF_TO_CSS_UNITS;for(const Dr of On(this,At))Dr.onScaleChanging()}onRotationChanging({pagesRotation:vr}){this.commitOrRemove(),this.viewParameters.rotation=vr}addToAnnotationStorage(vr){!vr.isEmpty()&&On(this,Mt)&&!On(this,Mt).has(vr.id)&&On(this,Mt).setValue(vr.id,vr)}blur(){if(!this.hasSelection)return;const{activeElement:vr}=document;for(const Dr of On(this,Ut))if(Dr.div.contains(vr)){ks(this,Nt,[Dr,vr]),Dr._focusEventsAllowed=!1;break}}focus(){if(!On(this,Nt))return;const[vr,Dr]=On(this,Nt);ks(this,Nt,null),Dr.addEventListener("focusin",()=>{vr._focusEventsAllowed=!0},{once:!0}),Dr.focus()}addEditListeners(){hs(this,Ir,C_).call(this),hs(this,Rr,R_).call(this)}removeEditListeners(){hs(this,_r,JE).call(this),hs(this,Br,M_).call(this)}copy(vr){var Sr;if(vr.preventDefault(),(Sr=On(this,at))==null||Sr.commitOrRemove(),!this.hasSelection)return;const Dr=[];for(const ur of On(this,Ut)){const xr=ur.serialize(!0);xr&&Dr.push(xr)}Dr.length!==0&&vr.clipboardData.setData("application/pdfjs",JSON.stringify(Dr))}cut(vr){this.copy(vr),this.delete()}paste(vr){vr.preventDefault();const{clipboardData:Dr}=vr;for(const xr of Dr.items)for(const Pr of On(this,It))if(Pr.isHandlingMimeForPasting(xr.type)){Pr.paste(xr,this.currentLayer);return}let Sr=Dr.getData("application/pdfjs");if(!Sr)return;try{Sr=JSON.parse(Sr)}catch(xr){(0,pt.warn)(`paste: "${xr.message}".`);return}if(!Array.isArray(Sr))return;this.unselectAll();const ur=this.currentLayer;try{const xr=[];for(const en of Sr){const rn=ur.deserialize(en);if(!rn)return;xr.push(rn)}const Pr=()=>{for(const en of xr)hs(this,pn,I_).call(this,en);hs(this,Ur,k_).call(this,xr)},Vr=()=>{for(const en of xr)en.remove()};this.addCommands({cmd:Pr,undo:Vr,mustExec:!0})}catch(xr){(0,pt.warn)(`paste: "${xr.message}".`)}}keydown(vr){var Dr;(Dr=this.getActive())!=null&&Dr.shouldGetKeyboardEvents()||Gr._keyboardManager.exec(this,vr)}onEditingAction(vr){["undo","redo","delete","selectAll"].includes(vr.name)&&this[vr.name]()}setEditingState(vr){vr?(hs(this,cr,cS).call(this),hs(this,Ir,C_).call(this),hs(this,Rr,R_).call(this),hs(this,Nr,Om).call(this,{isEditing:On(this,$t)!==pt.AnnotationEditorType.NONE,isEmpty:hs(this,Jr,W2).call(this),hasSomethingToUndo:On(this,Tt).hasSomethingToUndo(),hasSomethingToRedo:On(this,Tt).hasSomethingToRedo(),hasSelectedEditor:!1})):(hs(this,br,w_).call(this),hs(this,_r,JE).call(this),hs(this,Br,M_).call(this),hs(this,Nr,Om).call(this,{isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(vr){if(!On(this,It)){ks(this,It,vr);for(const Dr of On(this,It))hs(this,sn,V2).call(this,Dr.defaultPropertiesToUpdate)}}getId(){return On(this,Pt).getId()}get currentLayer(){return On(this,St).get(On(this,kt))}getLayer(vr){return On(this,St).get(vr)}get currentPageIndex(){return On(this,kt)}addLayer(vr){On(this,St).set(vr.pageIndex,vr),On(this,zt)?vr.enable():vr.disable()}removeLayer(vr){On(this,St).delete(vr.pageIndex)}updateMode(vr,Dr=null){if(On(this,$t)!==vr){if(ks(this,$t,vr),vr===pt.AnnotationEditorType.NONE){this.setEditingState(!1),hs(this,ln,dS).call(this);return}this.setEditingState(!0),hs(this,qr,fS).call(this),this.unselectAll();for(const Sr of On(this,St).values())Sr.updateMode(vr);if(Dr){for(const Sr of On(this,yt).values())if(Sr.annotationElementId===Dr){this.setSelected(Sr),Sr.enterInEditMode();break}}}}updateToolbar(vr){vr!==On(this,$t)&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:vr})}updateParams(vr,Dr){if(On(this,It)){if(vr===pt.AnnotationEditorParamsType.CREATE){this.currentLayer.addNewEditor(vr);return}for(const Sr of On(this,Ut))Sr.updateParams(vr,Dr);for(const Sr of On(this,It))Sr.updateDefaultParams(vr,Dr)}}enableWaiting(vr=!1){if(On(this,Dt)!==vr){ks(this,Dt,vr);for(const Dr of On(this,St).values())vr?Dr.disableClick():Dr.enableClick(),Dr.div.classList.toggle("waiting",vr)}}getEditors(vr){const Dr=[];for(const Sr of On(this,yt).values())Sr.pageIndex===vr&&Dr.push(Sr);return Dr}getEditor(vr){return On(this,yt).get(vr)}addEditor(vr){On(this,yt).set(vr.id,vr)}removeEditor(vr){var Dr;On(this,yt).delete(vr.id),this.unselect(vr),(!vr.annotationElementId||!On(this,wt).has(vr.annotationElementId))&&((Dr=On(this,Mt))==null||Dr.remove(vr.id))}addDeletedAnnotationElement(vr){On(this,wt).add(vr.annotationElementId),vr.deleted=!0}isDeletedAnnotationElement(vr){return On(this,wt).has(vr)}removeDeletedAnnotationElement(vr){On(this,wt).delete(vr.annotationElementId),vr.deleted=!1}setActiveEditor(vr){On(this,at)!==vr&&(ks(this,at,vr),vr&&hs(this,sn,V2).call(this,vr.propertiesToUpdate))}toggleSelected(vr){if(On(this,Ut).has(vr)){On(this,Ut).delete(vr),vr.unselect(),hs(this,Nr,Om).call(this,{hasSelectedEditor:this.hasSelection});return}On(this,Ut).add(vr),vr.select(),hs(this,sn,V2).call(this,vr.propertiesToUpdate),hs(this,Nr,Om).call(this,{hasSelectedEditor:!0})}setSelected(vr){for(const Dr of On(this,Ut))Dr!==vr&&Dr.unselect();On(this,Ut).clear(),On(this,Ut).add(vr),vr.select(),hs(this,sn,V2).call(this,vr.propertiesToUpdate),hs(this,Nr,Om).call(this,{hasSelectedEditor:!0})}isSelected(vr){return On(this,Ut).has(vr)}unselect(vr){vr.unselect(),On(this,Ut).delete(vr),hs(this,Nr,Om).call(this,{hasSelectedEditor:this.hasSelection})}get hasSelection(){return On(this,Ut).size!==0}undo(){On(this,Tt).undo(),hs(this,Nr,Om).call(this,{hasSomethingToUndo:On(this,Tt).hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:hs(this,Jr,W2).call(this)})}redo(){On(this,Tt).redo(),hs(this,Nr,Om).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:On(this,Tt).hasSomethingToRedo(),isEmpty:hs(this,Jr,W2).call(this)})}addCommands(vr){On(this,Tt).add(vr),hs(this,Nr,Om).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:hs(this,Jr,W2).call(this)})}delete(){if(this.commitOrRemove(),!this.hasSelection)return;const vr=[...On(this,Ut)],Dr=()=>{for(const ur of vr)ur.remove()},Sr=()=>{for(const ur of vr)hs(this,pn,I_).call(this,ur)};this.addCommands({cmd:Dr,undo:Sr,mustExec:!0})}commitOrRemove(){var vr;(vr=On(this,at))==null||vr.commitOrRemove()}hasSomethingToControl(){return On(this,at)||this.hasSelection}selectAll(){for(const vr of On(this,Ut))vr.commit();hs(this,Ur,k_).call(this,On(this,yt).values())}unselectAll(){if(On(this,at)){On(this,at).commitOrRemove();return}if(this.hasSelection){for(const vr of On(this,Ut))vr.unselect();On(this,Ut).clear(),hs(this,Nr,Om).call(this,{hasSelectedEditor:!1})}}translateSelectedEditors(vr,Dr,Sr=!1){if(Sr||this.commitOrRemove(),!this.hasSelection)return;On(this,Zt)[0]+=vr,On(this,Zt)[1]+=Dr;const[ur,xr]=On(this,Zt),Pr=[...On(this,Ut)],Vr=1e3;On(this,Kt)&&clearTimeout(On(this,Kt)),ks(this,Kt,setTimeout(()=>{ks(this,Kt,null),On(this,Zt)[0]=On(this,Zt)[1]=0,this.addCommands({cmd:()=>{for(const en of Pr)On(this,yt).has(en.id)&&en.translateInPage(ur,xr)},undo:()=>{for(const en of Pr)On(this,yt).has(en.id)&&en.translateInPage(-ur,-xr)},mustExec:!1})},Vr));for(const en of Pr)en.translateInPage(vr,Dr)}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),ks(this,ct,new Map);for(const vr of On(this,Ut))On(this,ct).set(vr,{savedX:vr.x,savedY:vr.y,savedPageIndex:vr.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!On(this,ct))return!1;this.disableUserSelect(!1);const vr=On(this,ct);ks(this,ct,null);let Dr=!1;for(const[{x:ur,y:xr,pageIndex:Pr},Vr]of vr)Vr.newX=ur,Vr.newY=xr,Vr.newPageIndex=Pr,Dr||(Dr=ur!==Vr.savedX||xr!==Vr.savedY||Pr!==Vr.savedPageIndex);if(!Dr)return!1;const Sr=(ur,xr,Pr,Vr)=>{if(On(this,yt).has(ur.id)){const en=On(this,St).get(Vr);en?ur._setParentAndPosition(en,xr,Pr):(ur.pageIndex=Vr,ur.x=xr,ur.y=Pr)}};return this.addCommands({cmd:()=>{for(const[ur,{newX:xr,newY:Pr,newPageIndex:Vr}]of vr)Sr(ur,xr,Pr,Vr)},undo:()=>{for(const[ur,{savedX:xr,savedY:Pr,savedPageIndex:Vr}]of vr)Sr(ur,xr,Pr,Vr)},mustExec:!0}),!0}dragSelectedEditors(vr,Dr){if(On(this,ct))for(const Sr of On(this,ct).keys())Sr.drag(vr,Dr)}rebuild(vr){if(vr.parent===null){const Dr=this.getLayer(vr.pageIndex);Dr?(Dr.changeParent(vr),Dr.addOrRebuild(vr)):(this.addEditor(vr),this.addToAnnotationStorage(vr),vr.rebuild())}else vr.parent.addOrRebuild(vr)}isActive(vr){return On(this,at)===vr}getActive(){return On(this,at)}getMode(){return On(this,$t)}get imageManager(){return(0,pt.shadow)(this,"imageManager",new o)}};let Et=Gr;at=new WeakMap,yt=new WeakMap,St=new WeakMap,_t=new WeakMap,Mt=new WeakMap,Tt=new WeakMap,kt=new WeakMap,wt=new WeakMap,ct=new WeakMap,It=new WeakMap,At=new WeakMap,Ot=new WeakMap,Pt=new WeakMap,zt=new WeakMap,Dt=new WeakMap,Nt=new WeakMap,$t=new WeakMap,Ut=new WeakMap,Ht=new WeakMap,Vt=new WeakMap,Xt=new WeakMap,qt=new WeakMap,er=new WeakMap,lr=new WeakMap,Jt=new WeakMap,Yt=new WeakMap,rr=new WeakMap,jt=new WeakMap,ar=new WeakMap,sr=new WeakMap,Zt=new WeakMap,Kt=new WeakMap,or=new WeakMap,tr=new WeakMap,cr=new WeakSet,cS=function(){window.addEventListener("focus",On(this,Xt)),window.addEventListener("blur",On(this,Vt))},br=new WeakSet,w_=function(){window.removeEventListener("focus",On(this,Xt)),window.removeEventListener("blur",On(this,Vt))},Ir=new WeakSet,C_=function(){window.addEventListener("keydown",On(this,Jt),{capture:!0})},_r=new WeakSet,JE=function(){window.removeEventListener("keydown",On(this,Jt),{capture:!0})},Rr=new WeakSet,R_=function(){document.addEventListener("copy",On(this,qt)),document.addEventListener("cut",On(this,er)),document.addEventListener("paste",On(this,lr))},Br=new WeakSet,M_=function(){document.removeEventListener("copy",On(this,qt)),document.removeEventListener("cut",On(this,er)),document.removeEventListener("paste",On(this,lr))},Nr=new WeakSet,Om=function(vr){Object.entries(vr).some(([Sr,ur])=>On(this,sr)[Sr]!==ur)&&this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(On(this,sr),vr)})},sn=new WeakSet,V2=function(vr){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:vr})},qr=new WeakSet,fS=function(){if(!On(this,zt)){ks(this,zt,!0);for(const vr of On(this,St).values())vr.enable()}},ln=new WeakSet,dS=function(){if(this.unselectAll(),On(this,zt)){ks(this,zt,!1);for(const vr of On(this,St).values())vr.disable()}},pn=new WeakSet,I_=function(vr){const Dr=On(this,St).get(vr.pageIndex);Dr?Dr.addOrRebuild(vr):this.addEditor(vr)},Jr=new WeakSet,W2=function(){if(On(this,yt).size===0)return!0;if(On(this,yt).size===1)for(const vr of On(this,yt).values())return vr.isEmpty();return!1},Ur=new WeakSet,k_=function(vr){On(this,Ut).clear();for(const Dr of vr)Dr.isEmpty()||(On(this,Ut).add(Dr),Dr.select());hs(this,Nr,Om).call(this,{hasSelectedEditor:!0})},Dp(Et,"TRANSLATE_SMALL",1),Dp(Et,"TRANSLATE_BIG",10),i.AnnotationEditorUIManager=Et},(a,i,_e)=>{var kt,wt,ct,It,At,Ot,Pt,zt,Dt,Nt,$t,Ut,o2,Vt,s2,qt,L_,lr,QE,Yt,qE,jt,j2,sr,Y2;Object.defineProperty(i,"__esModule",{value:!0}),i.StatTimer=i.RenderingCancelledException=i.PixelsPerInch=i.PageViewport=i.PDFDateString=i.DOMStandardFontDataFactory=i.DOMSVGFactory=i.DOMFilterFactory=i.DOMCanvasFactory=i.DOMCMapReaderFactory=void 0,i.deprecated=vt,i.getColorValues=yt,i.getCurrentTransform=St,i.getCurrentTransformInverse=_t,i.getFilenameFromUrl=_,i.getPdfFilenameFromUrl=rt,i.getRGB=at,i.getXfaPageViewport=ft,i.isDataScheme=ht,i.isPdfFile=j,i.isValidFetchUrl=st,i.loadScript=nt,i.noContextMenu=ot,i.setLayerDimensions=Mt;var pt=_e(7),Lt=_e(1);const Gt="http://www.w3.org/2000/svg",Tt=class{};let Ct=Tt;Dp(Ct,"CSS",96),Dp(Ct,"PDF",72),Dp(Ct,"PDF_TO_CSS_UNITS",Tt.CSS/Tt.PDF),i.PixelsPerInch=Ct;class Rt extends pt.BaseFilterFactory{constructor({docId:tr,ownerDocument:cr=globalThis.document}={}){super();Xo(this,Ut);Xo(this,Vt);Xo(this,qt);Xo(this,lr);Xo(this,Yt);Xo(this,jt);Xo(this,sr);Xo(this,kt,void 0);Xo(this,wt,void 0);Xo(this,ct,void 0);Xo(this,It,void 0);Xo(this,At,void 0);Xo(this,Ot,void 0);Xo(this,Pt,void 0);Xo(this,zt,void 0);Xo(this,Dt,void 0);Xo(this,Nt,void 0);Xo(this,$t,0);ks(this,ct,tr),ks(this,It,cr)}addFilter(tr){if(!tr)return"none";let cr=On(this,Ut,o2).get(tr);if(cr)return cr;let hr,br,Tr,Ir;if(tr.length===1){const Rr=tr[0],zr=new Array(256);for(let Br=0;Br<256;Br++)zr[Br]=Rr[Br]/255;Ir=hr=br=Tr=zr.join(",")}else{const[Rr,zr,Br]=tr,kr=new Array(256),Nr=new Array(256),Qr=new Array(256);for(let sn=0;sn<256;sn++)kr[sn]=Rr[sn]/255,Nr[sn]=zr[sn]/255,Qr[sn]=Br[sn]/255;hr=kr.join(","),br=Nr.join(","),Tr=Qr.join(","),Ir=`${hr}${br}${Tr}`}if(cr=On(this,Ut,o2).get(Ir),cr)return On(this,Ut,o2).set(tr,cr),cr;const Ar=`g_${On(this,ct)}_transfer_map_${G2(this,$t)._++}`,_r=`url(#${Ar})`;On(this,Ut,o2).set(tr,_r),On(this,Ut,o2).set(Ir,_r);const Er=hs(this,lr,QE).call(this,Ar);return hs(this,jt,j2).call(this,hr,br,Tr,Er),_r}addHCMFilter(tr,cr){var zr;const hr=`${tr}-${cr}`;if(On(this,Ot)===hr)return On(this,Pt);if(ks(this,Ot,hr),ks(this,Pt,"none"),(zr=On(this,At))==null||zr.remove(),!tr||!cr)return On(this,Pt);const br=hs(this,sr,Y2).call(this,tr);tr=Lt.Util.makeHexColor(...br);const Tr=hs(this,sr,Y2).call(this,cr);if(cr=Lt.Util.makeHexColor(...Tr),On(this,Vt,s2).style.color="",tr==="#000000"&&cr==="#ffffff"||tr===cr)return On(this,Pt);const Ir=new Array(256);for(let Br=0;Br<=255;Br++){const kr=Br/255;Ir[Br]=kr<=.03928?kr/12.92:((kr+.055)/1.055)**2.4}const Ar=Ir.join(","),_r=`g_${On(this,ct)}_hcm_filter`,Er=ks(this,zt,hs(this,lr,QE).call(this,_r));hs(this,jt,j2).call(this,Ar,Ar,Ar,Er),hs(this,qt,L_).call(this,Er);const Rr=(Br,kr)=>{const Nr=br[Br]/255,Qr=Tr[Br]/255,sn=new Array(kr+1);for(let un=0;un<=kr;un++)sn[un]=Nr+un/kr*(Qr-Nr);return sn.join(",")};return hs(this,jt,j2).call(this,Rr(0,5),Rr(1,5),Rr(2,5),Er),ks(this,Pt,`url(#${_r})`),On(this,Pt)}addHighlightHCMFilter(tr,cr,hr,br){var Qr;const Tr=`${tr}-${cr}-${hr}-${br}`;if(On(this,Dt)===Tr)return On(this,Nt);if(ks(this,Dt,Tr),ks(this,Nt,"none"),(Qr=On(this,zt))==null||Qr.remove(),!tr||!cr)return On(this,Nt);const[Ir,Ar]=[tr,cr].map(hs(this,sr,Y2).bind(this));let _r=Math.round(.2126*Ir[0]+.7152*Ir[1]+.0722*Ir[2]),Er=Math.round(.2126*Ar[0]+.7152*Ar[1]+.0722*Ar[2]),[Rr,zr]=[hr,br].map(hs(this,sr,Y2).bind(this));Er<_r&&([_r,Er,Rr,zr]=[Er,_r,zr,Rr]),On(this,Vt,s2).style.color="";const Br=(sn,un,qr)=>{const Xr=new Array(256),ln=(Er-_r)/qr,mn=sn/255,pn=(un-sn)/(255*qr);let En=0;for(let Jr=0;Jr<=qr;Jr++){const Or=Math.round(_r+Jr*ln),Ur=mn+Jr*pn;for(let jr=En;jr<=Or;jr++)Xr[jr]=Ur;En=Or+1}for(let Jr=En;Jr<256;Jr++)Xr[Jr]=Xr[En-1];return Xr.join(",")},kr=`g_${On(this,ct)}_hcm_highlight_filter`,Nr=ks(this,zt,hs(this,lr,QE).call(this,kr));return hs(this,qt,L_).call(this,Nr),hs(this,jt,j2).call(this,Br(Rr[0],zr[0],5),Br(Rr[1],zr[1],5),Br(Rr[2],zr[2],5),Nr),ks(this,Nt,`url(#${kr})`),On(this,Nt)}destroy(tr=!1){tr&&(On(this,Pt)||On(this,Nt))||(On(this,wt)&&(On(this,wt).parentNode.parentNode.remove(),ks(this,wt,null)),On(this,kt)&&(On(this,kt).clear(),ks(this,kt,null)),ks(this,$t,0))}}kt=new WeakMap,wt=new WeakMap,ct=new WeakMap,It=new WeakMap,At=new WeakMap,Ot=new WeakMap,Pt=new WeakMap,zt=new WeakMap,Dt=new WeakMap,Nt=new WeakMap,$t=new WeakMap,Ut=new WeakSet,o2=function(){return On(this,kt)||ks(this,kt,new Map)},Vt=new WeakSet,s2=function(){if(!On(this,wt)){const tr=On(this,It).createElement("div"),{style:cr}=tr;cr.visibility="hidden",cr.contain="strict",cr.width=cr.height=0,cr.position="absolute",cr.top=cr.left=0,cr.zIndex=-1;const hr=On(this,It).createElementNS(Gt,"svg");hr.setAttribute("width",0),hr.setAttribute("height",0),ks(this,wt,On(this,It).createElementNS(Gt,"defs")),tr.append(hr),hr.append(On(this,wt)),On(this,It).body.append(tr)}return On(this,wt)},qt=new WeakSet,L_=function(tr){const cr=On(this,It).createElementNS(Gt,"feColorMatrix");cr.setAttribute("type","matrix"),cr.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),tr.append(cr)},lr=new WeakSet,QE=function(tr){const cr=On(this,It).createElementNS(Gt,"filter");return cr.setAttribute("color-interpolation-filters","sRGB"),cr.setAttribute("id",tr),On(this,Vt,s2).append(cr),cr},Yt=new WeakSet,qE=function(tr,cr,hr){const br=On(this,It).createElementNS(Gt,cr);br.setAttribute("type","discrete"),br.setAttribute("tableValues",hr),tr.append(br)},jt=new WeakSet,j2=function(tr,cr,hr,br){const Tr=On(this,It).createElementNS(Gt,"feComponentTransfer");br.append(Tr),hs(this,Yt,qE).call(this,Tr,"feFuncR",tr),hs(this,Yt,qE).call(this,Tr,"feFuncG",cr),hs(this,Yt,qE).call(this,Tr,"feFuncB",hr)},sr=new WeakSet,Y2=function(tr){return On(this,Vt,s2).style.color=tr,at(getComputedStyle(On(this,Vt,s2)).getPropertyValue("color"))},i.DOMFilterFactory=Rt;class o extends pt.BaseCanvasFactory{constructor({ownerDocument:or=globalThis.document}={}){super(),this._document=or}_createCanvas(or,tr){const cr=this._document.createElement("canvas");return cr.width=or,cr.height=tr,cr}}i.DOMCanvasFactory=o;async function it(Kt,or=!1){if(st(Kt,document.baseURI)){const tr=await fetch(Kt);if(!tr.ok)throw new Error(tr.statusText);return or?new Uint8Array(await tr.arrayBuffer()):(0,Lt.stringToBytes)(await tr.text())}return new Promise((tr,cr)=>{const hr=new XMLHttpRequest;hr.open("GET",Kt,!0),or&&(hr.responseType="arraybuffer"),hr.onreadystatechange=()=>{if(hr.readyState===XMLHttpRequest.DONE){if(hr.status===200||hr.status===0){let br;if(or&&hr.response?br=new Uint8Array(hr.response):!or&&hr.responseText&&(br=(0,Lt.stringToBytes)(hr.responseText)),br){tr(br);return}}cr(new Error(hr.statusText))}},hr.send(null)})}class xt extends pt.BaseCMapReaderFactory{_fetchData(or,tr){return it(or,this.isCompressed).then(cr=>({cMapData:cr,compressionType:tr}))}}i.DOMCMapReaderFactory=xt;class et extends pt.BaseStandardFontDataFactory{_fetchData(or){return it(or,!0)}}i.DOMStandardFontDataFactory=et;class Et extends pt.BaseSVGFactory{_createSVG(or){return document.createElementNS(Gt,or)}}i.DOMSVGFactory=Et;class mt{constructor({viewBox:or,scale:tr,rotation:cr,offsetX:hr=0,offsetY:br=0,dontFlip:Tr=!1}){this.viewBox=or,this.scale=tr,this.rotation=cr,this.offsetX=hr,this.offsetY=br;const Ir=(or[2]+or[0])/2,Ar=(or[3]+or[1])/2;let _r,Er,Rr,zr;switch(cr%=360,cr<0&&(cr+=360),cr){case 180:_r=-1,Er=0,Rr=0,zr=1;break;case 90:_r=0,Er=1,Rr=1,zr=0;break;case 270:_r=0,Er=-1,Rr=-1,zr=0;break;case 0:_r=1,Er=0,Rr=0,zr=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}Tr&&(Rr=-Rr,zr=-zr);let Br,kr,Nr,Qr;_r===0?(Br=Math.abs(Ar-or[1])*tr+hr,kr=Math.abs(Ir-or[0])*tr+br,Nr=(or[3]-or[1])*tr,Qr=(or[2]-or[0])*tr):(Br=Math.abs(Ir-or[0])*tr+hr,kr=Math.abs(Ar-or[1])*tr+br,Nr=(or[2]-or[0])*tr,Qr=(or[3]-or[1])*tr),this.transform=[_r*tr,Er*tr,Rr*tr,zr*tr,Br-_r*tr*Ir-Rr*tr*Ar,kr-Er*tr*Ir-zr*tr*Ar],this.width=Nr,this.height=Qr}get rawDims(){const{viewBox:or}=this;return(0,Lt.shadow)(this,"rawDims",{pageWidth:or[2]-or[0],pageHeight:or[3]-or[1],pageX:or[0],pageY:or[1]})}clone({scale:or=this.scale,rotation:tr=this.rotation,offsetX:cr=this.offsetX,offsetY:hr=this.offsetY,dontFlip:br=!1}={}){return new mt({viewBox:this.viewBox.slice(),scale:or,rotation:tr,offsetX:cr,offsetY:hr,dontFlip:br})}convertToViewportPoint(or,tr){return Lt.Util.applyTransform([or,tr],this.transform)}convertToViewportRectangle(or){const tr=Lt.Util.applyTransform([or[0],or[1]],this.transform),cr=Lt.Util.applyTransform([or[2],or[3]],this.transform);return[tr[0],tr[1],cr[0],cr[1]]}convertToPdfPoint(or,tr){return Lt.Util.applyInverseTransform([or,tr],this.transform)}}i.PageViewport=mt;class ut extends Lt.BaseException{constructor(or,tr=0){super(or,"RenderingCancelledException"),this.extraDelay=tr}}i.RenderingCancelledException=ut;function ht(Kt){const or=Kt.length;let tr=0;for(;tr{const hr=document.createElement("script");hr.src=Kt,hr.onload=function(br){or&&hr.remove(),tr(br)},hr.onerror=function(){cr(new Error(`Cannot load script at: ${hr.src}`))},(document.head||document.documentElement).append(hr)})}function vt(Kt){console.log("Deprecated API usage: "+Kt)}let dt;class bt{static toDateObject(or){if(!or||typeof or!="string")return null;dt||(dt=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const tr=dt.exec(or);if(!tr)return null;const cr=parseInt(tr[1],10);let hr=parseInt(tr[2],10);hr=hr>=1&&hr<=12?hr-1:0;let br=parseInt(tr[3],10);br=br>=1&&br<=31?br:1;let Tr=parseInt(tr[4],10);Tr=Tr>=0&&Tr<=23?Tr:0;let Ir=parseInt(tr[5],10);Ir=Ir>=0&&Ir<=59?Ir:0;let Ar=parseInt(tr[6],10);Ar=Ar>=0&&Ar<=59?Ar:0;const _r=tr[7]||"Z";let Er=parseInt(tr[8],10);Er=Er>=0&&Er<=23?Er:0;let Rr=parseInt(tr[9],10)||0;return Rr=Rr>=0&&Rr<=59?Rr:0,_r==="-"?(Tr+=Er,Ir+=Rr):_r==="+"&&(Tr-=Er,Ir-=Rr),new Date(Date.UTC(cr,hr,br,Tr,Ir,Ar))}}i.PDFDateString=bt;function ft(Kt,{scale:or=1,rotation:tr=0}){const{width:cr,height:hr}=Kt.attributes.style,br=[0,0,parseInt(cr),parseInt(hr)];return new mt({viewBox:br,scale:or,rotation:tr})}function at(Kt){if(Kt.startsWith("#")){const or=parseInt(Kt.slice(1),16);return[(or&16711680)>>16,(or&65280)>>8,or&255]}return Kt.startsWith("rgb(")?Kt.slice(4,-1).split(",").map(or=>parseInt(or)):Kt.startsWith("rgba(")?Kt.slice(5,-1).split(",").map(or=>parseInt(or)).slice(0,3):((0,Lt.warn)(`Not a valid color format: "${Kt}"`),[0,0,0])}function yt(Kt){const or=document.createElement("span");or.style.visibility="hidden",document.body.append(or);for(const tr of Kt.keys()){or.style.color=tr;const cr=window.getComputedStyle(or).color;Kt.set(tr,at(cr))}or.remove()}function St(Kt){const{a:or,b:tr,c:cr,d:hr,e:br,f:Tr}=Kt.getTransform();return[or,tr,cr,hr,br,Tr]}function _t(Kt){const{a:or,b:tr,c:cr,d:hr,e:br,f:Tr}=Kt.getTransform().invertSelf();return[or,tr,cr,hr,br,Tr]}function Mt(Kt,or,tr=!1,cr=!0){if(or instanceof mt){const{pageWidth:hr,pageHeight:br}=or.rawDims,{style:Tr}=Kt,Ir=Lt.FeatureTest.isCSSRoundSupported,Ar=`var(--scale-factor) * ${hr}px`,_r=`var(--scale-factor) * ${br}px`,Er=Ir?`round(${Ar}, 1px)`:`calc(${Ar})`,Rr=Ir?`round(${_r}, 1px)`:`calc(${_r})`;!tr||or.rotation%180===0?(Tr.width=Er,Tr.height=Rr):(Tr.width=Rr,Tr.height=Er)}cr&&Kt.setAttribute("data-main-rotation",or.rotation)}},(a,i,_e)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.BaseStandardFontDataFactory=i.BaseSVGFactory=i.BaseFilterFactory=i.BaseCanvasFactory=i.BaseCMapReaderFactory=void 0;var pt=_e(1);class Lt{constructor(){this.constructor===Lt&&(0,pt.unreachable)("Cannot initialize BaseFilterFactory.")}addFilter(xt){return"none"}addHCMFilter(xt,et){return"none"}addHighlightHCMFilter(xt,et,Et,mt){return"none"}destroy(xt=!1){}}i.BaseFilterFactory=Lt;class Gt{constructor(){this.constructor===Gt&&(0,pt.unreachable)("Cannot initialize BaseCanvasFactory.")}create(xt,et){if(xt<=0||et<=0)throw new Error("Invalid canvas size");const Et=this._createCanvas(xt,et);return{canvas:Et,context:Et.getContext("2d")}}reset(xt,et,Et){if(!xt.canvas)throw new Error("Canvas is not specified");if(et<=0||Et<=0)throw new Error("Invalid canvas size");xt.canvas.width=et,xt.canvas.height=Et}destroy(xt){if(!xt.canvas)throw new Error("Canvas is not specified");xt.canvas.width=0,xt.canvas.height=0,xt.canvas=null,xt.context=null}_createCanvas(xt,et){(0,pt.unreachable)("Abstract method `_createCanvas` called.")}}i.BaseCanvasFactory=Gt;class Ct{constructor({baseUrl:xt=null,isCompressed:et=!0}){this.constructor===Ct&&(0,pt.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=xt,this.isCompressed=et}async fetch({name:xt}){if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!xt)throw new Error("CMap name must be specified.");const et=this.baseUrl+xt+(this.isCompressed?".bcmap":""),Et=this.isCompressed?pt.CMapCompressionType.BINARY:pt.CMapCompressionType.NONE;return this._fetchData(et,Et).catch(mt=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${et}`)})}_fetchData(xt,et){(0,pt.unreachable)("Abstract method `_fetchData` called.")}}i.BaseCMapReaderFactory=Ct;class Rt{constructor({baseUrl:xt=null}){this.constructor===Rt&&(0,pt.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=xt}async fetch({filename:xt}){if(!this.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!xt)throw new Error("Font filename must be specified.");const et=`${this.baseUrl}${xt}`;return this._fetchData(et).catch(Et=>{throw new Error(`Unable to load font data at: ${et}`)})}_fetchData(xt){(0,pt.unreachable)("Abstract method `_fetchData` called.")}}i.BaseStandardFontDataFactory=Rt;class o{constructor(){this.constructor===o&&(0,pt.unreachable)("Cannot initialize BaseSVGFactory.")}create(xt,et,Et=!1){if(xt<=0||et<=0)throw new Error("Invalid SVG dimensions");const mt=this._createSVG("svg:svg");return mt.setAttribute("version","1.1"),Et||(mt.setAttribute("width",`${xt}px`),mt.setAttribute("height",`${et}px`)),mt.setAttribute("preserveAspectRatio","none"),mt.setAttribute("viewBox",`0 0 ${xt} ${et}`),mt}createElement(xt){if(typeof xt!="string")throw new Error("Invalid SVG element type");return this._createSVG(xt)}_createSVG(xt){(0,pt.unreachable)("Abstract method `_createSVG` called.")}}i.BaseSVGFactory=o},(a,i,_e)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.MurmurHash3_64=void 0;var pt=_e(1);const Lt=3285377520,Gt=4294901760,Ct=65535;class Rt{constructor(it){this.h1=it?it&4294967295:Lt,this.h2=it?it&4294967295:Lt}update(it){let xt,et;if(typeof it=="string"){xt=new Uint8Array(it.length*2),et=0;for(let vt=0,dt=it.length;vt>>8,xt[et++]=bt&255)}}else if((0,pt.isArrayBuffer)(it))xt=it.slice(),et=xt.byteLength;else throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");const Et=et>>2,mt=et-Et*4,ut=new Uint32Array(xt.buffer,0,Et);let ht=0,j=0,_=this.h1,rt=this.h2;const tt=3432918353,st=461845907,ot=tt&Ct,nt=st&Ct;for(let vt=0;vt>>17,ht=ht*st&Gt|ht*nt&Ct,_^=ht,_=_<<13|_>>>19,_=_*5+3864292196):(j=ut[vt],j=j*tt&Gt|j*ot&Ct,j=j<<15|j>>>17,j=j*st&Gt|j*nt&Ct,rt^=j,rt=rt<<13|rt>>>19,rt=rt*5+3864292196);switch(ht=0,mt){case 3:ht^=xt[Et*4+2]<<16;case 2:ht^=xt[Et*4+1]<<8;case 1:ht^=xt[Et*4],ht=ht*tt&Gt|ht*ot&Ct,ht=ht<<15|ht>>>17,ht=ht*st&Gt|ht*nt&Ct,Et&1?_^=ht:rt^=ht}this.h1=_,this.h2=rt}hexdigest(){let it=this.h1,xt=this.h2;return it^=xt>>>1,it=it*3981806797&Gt|it*36045&Ct,xt=xt*4283543511&Gt|((xt<<16|it>>>16)*2950163797&Gt)>>>16,it^=xt>>>1,it=it*444984403&Gt|it*60499&Ct,xt=xt*3301882366&Gt|((xt<<16|it>>>16)*3120437893&Gt)>>>16,it^=xt>>>1,(it>>>0).toString(16).padStart(8,"0")+(xt>>>0).toString(16).padStart(8,"0")}}i.MurmurHash3_64=Rt},(a,i,_e)=>{var Ct;Object.defineProperty(i,"__esModule",{value:!0}),i.FontLoader=i.FontFaceObject=void 0;var pt=_e(1);class Lt{constructor({ownerDocument:o=globalThis.document,styleElement:it=null}){Xo(this,Ct,new Set);this._document=o,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(o){this.nativeFontFaces.add(o),this._document.fonts.add(o)}removeNativeFontFace(o){this.nativeFontFaces.delete(o),this._document.fonts.delete(o)}insertRule(o){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));const it=this.styleElement.sheet;it.insertRule(o,it.cssRules.length)}clear(){for(const o of this.nativeFontFaces)this._document.fonts.delete(o);this.nativeFontFaces.clear(),On(this,Ct).clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont(o){if(!(!o||On(this,Ct).has(o.loadedName))){if((0,pt.assert)(!this.disableFontFace,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){const{loadedName:it,src:xt,style:et}=o,Et=new FontFace(it,xt,et);this.addNativeFontFace(Et);try{await Et.load(),On(this,Ct).add(it)}catch{(0,pt.warn)(`Cannot load system font: ${o.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(Et)}return}(0,pt.unreachable)("Not implemented: loadSystemFont without the Font Loading API.")}}async bind(o){if(o.attached||o.missingFile&&!o.systemFontInfo)return;if(o.attached=!0,o.systemFontInfo){await this.loadSystemFont(o.systemFontInfo);return}if(this.isFontLoadingAPISupported){const xt=o.createNativeFontFace();if(xt){this.addNativeFontFace(xt);try{await xt.loaded}catch(et){throw(0,pt.warn)(`Failed to load font '${xt.family}': '${et}'.`),o.disableFontFace=!0,et}}return}const it=o.createFontFaceRule();if(it){if(this.insertRule(it),this.isSyncFontLoadingSupported)return;await new Promise(xt=>{const et=this._queueLoadingCallback(xt);this._prepareFontLoadEvent(o,et)})}}get isFontLoadingAPISupported(){var it;const o=!!((it=this._document)!=null&&it.fonts);return(0,pt.shadow)(this,"isFontLoadingAPISupported",o)}get isSyncFontLoadingSupported(){let o=!1;return(pt.isNodeJS||typeof navigator<"u"&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(o=!0),(0,pt.shadow)(this,"isSyncFontLoadingSupported",o)}_queueLoadingCallback(o){function it(){for((0,pt.assert)(!et.done,"completeRequest() cannot be called twice."),et.done=!0;xt.length>0&&xt[0].done;){const Et=xt.shift();setTimeout(Et.callback,0)}}const{loadingRequests:xt}=this,et={done:!1,complete:it,callback:o};return xt.push(et),et}get _loadTestFont(){const o=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return(0,pt.shadow)(this,"_loadTestFont",o)}_prepareFontLoadEvent(o,it){function xt(at,yt){return at.charCodeAt(yt)<<24|at.charCodeAt(yt+1)<<16|at.charCodeAt(yt+2)<<8|at.charCodeAt(yt+3)&255}function et(at,yt,St,_t){const Mt=at.substring(0,yt),Tt=at.substring(yt+St);return Mt+_t+Tt}let Et,mt;const ut=this._document.createElement("canvas");ut.width=1,ut.height=1;const ht=ut.getContext("2d");let j=0;function _(at,yt){if(++j>30){(0,pt.warn)("Load test font never loaded."),yt();return}if(ht.font="30px "+at,ht.fillText(".",0,20),ht.getImageData(0,0,1,1).data[3]>0){yt();return}setTimeout(_.bind(null,at,yt))}const rt=`lt${Date.now()}${this.loadTestFontId++}`;let tt=this._loadTestFont;tt=et(tt,976,rt.length,rt);const ot=16,nt=1482184792;let vt=xt(tt,ot);for(Et=0,mt=rt.length-3;Et{ft.remove(),it.complete()})}}Ct=new WeakMap,i.FontLoader=Lt;class Gt{constructor(o,{isEvalSupported:it=!0,disableFontFace:xt=!1,ignoreErrors:et=!1,inspectFont:Et=null}){this.compiledGlyphs=Object.create(null);for(const mt in o)this[mt]=o[mt];this.isEvalSupported=it!==!1,this.disableFontFace=xt===!0,this.ignoreErrors=et===!0,this._inspectFont=Et}createNativeFontFace(){var it;if(!this.data||this.disableFontFace)return null;let o;if(!this.cssFontInfo)o=new FontFace(this.loadedName,this.data,{});else{const xt={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(xt.style=`oblique ${this.cssFontInfo.italicAngle}deg`),o=new FontFace(this.cssFontInfo.fontFamily,this.data,xt)}return(it=this._inspectFont)==null||it.call(this,this),o}createFontFaceRule(){var et;if(!this.data||this.disableFontFace)return null;const o=(0,pt.bytesToString)(this.data),it=`url(data:${this.mimetype};base64,${btoa(o)});`;let xt;if(!this.cssFontInfo)xt=`@font-face {font-family:"${this.loadedName}";src:${it}}`;else{let Et=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(Et+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),xt=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${Et}src:${it}}`}return(et=this._inspectFont)==null||et.call(this,this,it),xt}getPathGenerator(o,it){if(this.compiledGlyphs[it]!==void 0)return this.compiledGlyphs[it];let xt;try{xt=o.get(this.loadedName+"_path_"+it)}catch(et){if(!this.ignoreErrors)throw et;return(0,pt.warn)(`getPathGenerator - ignoring character: "${et}".`),this.compiledGlyphs[it]=function(Et,mt){}}if(this.isEvalSupported&&pt.FeatureTest.isEvalSupported){const et=[];for(const Et of xt){const mt=Et.args!==void 0?Et.args.join(","):"";et.push("c.",Et.cmd,"(",mt,`); -`)}return this.compiledGlyphs[it]=new Function("c","size",et.join(""))}return this.compiledGlyphs[it]=function(et,Et){for(const mt of xt)mt.cmd==="scale"&&(mt.args=[Et,-Et]),et[mt.cmd].apply(et,mt.args)}}}i.FontFaceObject=Gt},(a,i,_e)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.NodeStandardFontDataFactory=i.NodeFilterFactory=i.NodeCanvasFactory=i.NodeCMapReaderFactory=void 0;var pt=_e(7);_e(1);const Lt=function(it){return new Promise((xt,et)=>{require$$5.readFile(it,(mt,ut)=>{if(mt||!ut){et(new Error(mt));return}xt(new Uint8Array(ut))})})};class Gt extends pt.BaseFilterFactory{}i.NodeFilterFactory=Gt;class Ct extends pt.BaseCanvasFactory{_createCanvas(xt,et){return require$$5.createCanvas(xt,et)}}i.NodeCanvasFactory=Ct;class Rt extends pt.BaseCMapReaderFactory{_fetchData(xt,et){return Lt(xt).then(Et=>({cMapData:Et,compressionType:et}))}}i.NodeCMapReaderFactory=Rt;class o extends pt.BaseStandardFontDataFactory{_fetchData(xt){return Lt(xt)}}i.NodeStandardFontDataFactory=o},(a,i,_e)=>{var wt,D_,It,P_;Object.defineProperty(i,"__esModule",{value:!0}),i.CanvasGraphics=void 0;var pt=_e(1),Lt=_e(6),Gt=_e(12),Ct=_e(13);const Rt=16,o=100,it=4096,xt=15,et=10,Et=1e3,mt=16;function ut(Pt,zt){if(Pt._removeMirroring)throw new Error("Context is already forwarding operations.");Pt.__originalSave=Pt.save,Pt.__originalRestore=Pt.restore,Pt.__originalRotate=Pt.rotate,Pt.__originalScale=Pt.scale,Pt.__originalTranslate=Pt.translate,Pt.__originalTransform=Pt.transform,Pt.__originalSetTransform=Pt.setTransform,Pt.__originalResetTransform=Pt.resetTransform,Pt.__originalClip=Pt.clip,Pt.__originalMoveTo=Pt.moveTo,Pt.__originalLineTo=Pt.lineTo,Pt.__originalBezierCurveTo=Pt.bezierCurveTo,Pt.__originalRect=Pt.rect,Pt.__originalClosePath=Pt.closePath,Pt.__originalBeginPath=Pt.beginPath,Pt._removeMirroring=()=>{Pt.save=Pt.__originalSave,Pt.restore=Pt.__originalRestore,Pt.rotate=Pt.__originalRotate,Pt.scale=Pt.__originalScale,Pt.translate=Pt.__originalTranslate,Pt.transform=Pt.__originalTransform,Pt.setTransform=Pt.__originalSetTransform,Pt.resetTransform=Pt.__originalResetTransform,Pt.clip=Pt.__originalClip,Pt.moveTo=Pt.__originalMoveTo,Pt.lineTo=Pt.__originalLineTo,Pt.bezierCurveTo=Pt.__originalBezierCurveTo,Pt.rect=Pt.__originalRect,Pt.closePath=Pt.__originalClosePath,Pt.beginPath=Pt.__originalBeginPath,delete Pt._removeMirroring},Pt.save=function(){zt.save(),this.__originalSave()},Pt.restore=function(){zt.restore(),this.__originalRestore()},Pt.translate=function(Nt,$t){zt.translate(Nt,$t),this.__originalTranslate(Nt,$t)},Pt.scale=function(Nt,$t){zt.scale(Nt,$t),this.__originalScale(Nt,$t)},Pt.transform=function(Nt,$t,Ut,Ht,Vt,Xt){zt.transform(Nt,$t,Ut,Ht,Vt,Xt),this.__originalTransform(Nt,$t,Ut,Ht,Vt,Xt)},Pt.setTransform=function(Nt,$t,Ut,Ht,Vt,Xt){zt.setTransform(Nt,$t,Ut,Ht,Vt,Xt),this.__originalSetTransform(Nt,$t,Ut,Ht,Vt,Xt)},Pt.resetTransform=function(){zt.resetTransform(),this.__originalResetTransform()},Pt.rotate=function(Nt){zt.rotate(Nt),this.__originalRotate(Nt)},Pt.clip=function(Nt){zt.clip(Nt),this.__originalClip(Nt)},Pt.moveTo=function(Dt,Nt){zt.moveTo(Dt,Nt),this.__originalMoveTo(Dt,Nt)},Pt.lineTo=function(Dt,Nt){zt.lineTo(Dt,Nt),this.__originalLineTo(Dt,Nt)},Pt.bezierCurveTo=function(Dt,Nt,$t,Ut,Ht,Vt){zt.bezierCurveTo(Dt,Nt,$t,Ut,Ht,Vt),this.__originalBezierCurveTo(Dt,Nt,$t,Ut,Ht,Vt)},Pt.rect=function(Dt,Nt,$t,Ut){zt.rect(Dt,Nt,$t,Ut),this.__originalRect(Dt,Nt,$t,Ut)},Pt.closePath=function(){zt.closePath(),this.__originalClosePath()},Pt.beginPath=function(){zt.beginPath(),this.__originalBeginPath()}}class ht{constructor(zt){this.canvasFactory=zt,this.cache=Object.create(null)}getCanvas(zt,Dt,Nt){let $t;return this.cache[zt]!==void 0?($t=this.cache[zt],this.canvasFactory.reset($t,Dt,Nt)):($t=this.canvasFactory.create(Dt,Nt),this.cache[zt]=$t),$t}delete(zt){delete this.cache[zt]}clear(){for(const zt in this.cache){const Dt=this.cache[zt];this.canvasFactory.destroy(Dt),delete this.cache[zt]}}}function j(Pt,zt,Dt,Nt,$t,Ut,Ht,Vt,Xt,qt){const[er,lr,Jt,Yt,rr,jt]=(0,Lt.getCurrentTransform)(Pt);if(lr===0&&Jt===0){const Zt=Ht*er+rr,Kt=Math.round(Zt),or=Vt*Yt+jt,tr=Math.round(or),cr=(Ht+Xt)*er+rr,hr=Math.abs(Math.round(cr)-Kt)||1,br=(Vt+qt)*Yt+jt,Tr=Math.abs(Math.round(br)-tr)||1;return Pt.setTransform(Math.sign(er),0,0,Math.sign(Yt),Kt,tr),Pt.drawImage(zt,Dt,Nt,$t,Ut,0,0,hr,Tr),Pt.setTransform(er,lr,Jt,Yt,rr,jt),[hr,Tr]}if(er===0&&Yt===0){const Zt=Vt*Jt+rr,Kt=Math.round(Zt),or=Ht*lr+jt,tr=Math.round(or),cr=(Vt+qt)*Jt+rr,hr=Math.abs(Math.round(cr)-Kt)||1,br=(Ht+Xt)*lr+jt,Tr=Math.abs(Math.round(br)-tr)||1;return Pt.setTransform(0,Math.sign(lr),Math.sign(Jt),0,Kt,tr),Pt.drawImage(zt,Dt,Nt,$t,Ut,0,0,Tr,hr),Pt.setTransform(er,lr,Jt,Yt,rr,jt),[Tr,hr]}Pt.drawImage(zt,Dt,Nt,$t,Ut,Ht,Vt,Xt,qt);const ar=Math.hypot(er,lr),sr=Math.hypot(Jt,Yt);return[ar*Xt,sr*qt]}function _(Pt){const{width:zt,height:Dt}=Pt;if(zt>Et||Dt>Et)return null;const Nt=1e3,$t=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),Ut=zt+1;let Ht=new Uint8Array(Ut*(Dt+1)),Vt,Xt,qt;const er=zt+7&-8;let lr=new Uint8Array(er*Dt),Jt=0;for(const sr of Pt.data){let Zt=128;for(;Zt>0;)lr[Jt++]=sr&Zt?0:255,Zt>>=1}let Yt=0;for(Jt=0,lr[Jt]!==0&&(Ht[0]=1,++Yt),Xt=1;Xt>2)+(lr[Jt+1]?4:0)+(lr[Jt-er+1]?8:0),$t[sr]&&(Ht[qt+Xt]=$t[sr],++Yt),Jt++;if(lr[Jt-er]!==lr[Jt]&&(Ht[qt+Xt]=lr[Jt]?2:4,++Yt),Yt>Nt)return null}for(Jt=er*(Dt-1),qt=Vt*Ut,lr[Jt]!==0&&(Ht[qt]=8,++Yt),Xt=1;XtNt)return null;const rr=new Int32Array([0,Ut,-1,0,-Ut,0,0,0,1]),jt=new Path2D;for(Vt=0;Yt&&Vt<=Dt;Vt++){let sr=Vt*Ut;const Zt=sr+zt;for(;sr>4,Ht[sr]&=or>>2|or<<2),jt.lineTo(sr%Ut,sr/Ut|0),Ht[sr]||--Yt}while(Kt!==sr);--Vt}return lr=null,Ht=null,function(sr){sr.save(),sr.scale(1/zt,-1/Dt),sr.translate(0,-Dt),sr.fill(jt),sr.beginPath(),sr.restore()}}class rt{constructor(zt,Dt){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=pt.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=pt.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=pt.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps="none",this.startNewPathAndClipBox([0,0,zt,Dt])}clone(){const zt=Object.create(this);return zt.clipBox=this.clipBox.slice(),zt}setCurrentPoint(zt,Dt){this.x=zt,this.y=Dt}updatePathMinMax(zt,Dt,Nt){[Dt,Nt]=pt.Util.applyTransform([Dt,Nt],zt),this.minX=Math.min(this.minX,Dt),this.minY=Math.min(this.minY,Nt),this.maxX=Math.max(this.maxX,Dt),this.maxY=Math.max(this.maxY,Nt)}updateRectMinMax(zt,Dt){const Nt=pt.Util.applyTransform(Dt,zt),$t=pt.Util.applyTransform(Dt.slice(2),zt);this.minX=Math.min(this.minX,Nt[0],$t[0]),this.minY=Math.min(this.minY,Nt[1],$t[1]),this.maxX=Math.max(this.maxX,Nt[0],$t[0]),this.maxY=Math.max(this.maxY,Nt[1],$t[1])}updateScalingPathMinMax(zt,Dt){pt.Util.scaleMinMax(zt,Dt),this.minX=Math.min(this.minX,Dt[0]),this.maxX=Math.max(this.maxX,Dt[1]),this.minY=Math.min(this.minY,Dt[2]),this.maxY=Math.max(this.maxY,Dt[3])}updateCurvePathMinMax(zt,Dt,Nt,$t,Ut,Ht,Vt,Xt,qt,er){const lr=pt.Util.bezierBoundingBox(Dt,Nt,$t,Ut,Ht,Vt,Xt,qt);if(er){er[0]=Math.min(er[0],lr[0],lr[2]),er[1]=Math.max(er[1],lr[0],lr[2]),er[2]=Math.min(er[2],lr[1],lr[3]),er[3]=Math.max(er[3],lr[1],lr[3]);return}this.updateRectMinMax(zt,lr)}getPathBoundingBox(zt=Gt.PathType.FILL,Dt=null){const Nt=[this.minX,this.minY,this.maxX,this.maxY];if(zt===Gt.PathType.STROKE){Dt||(0,pt.unreachable)("Stroke bounding box must include transform.");const $t=pt.Util.singularValueDecompose2dScale(Dt),Ut=$t[0]*this.lineWidth/2,Ht=$t[1]*this.lineWidth/2;Nt[0]-=Ut,Nt[1]-=Ht,Nt[2]+=Ut,Nt[3]+=Ht}return Nt}updateClipFromPath(){const zt=pt.Util.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(zt||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(zt){this.clipBox=zt,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(zt=Gt.PathType.FILL,Dt=null){return pt.Util.intersect(this.clipBox,this.getPathBoundingBox(zt,Dt))}}function tt(Pt,zt){if(typeof ImageData<"u"&&zt instanceof ImageData){Pt.putImageData(zt,0,0);return}const Dt=zt.height,Nt=zt.width,$t=Dt%mt,Ut=(Dt-$t)/mt,Ht=$t===0?Ut:Ut+1,Vt=Pt.createImageData(Nt,mt);let Xt=0,qt;const er=zt.data,lr=Vt.data;let Jt,Yt,rr,jt;if(zt.kind===pt.ImageKind.GRAYSCALE_1BPP){const ar=er.byteLength,sr=new Uint32Array(lr.buffer,0,lr.byteLength>>2),Zt=sr.length,Kt=Nt+7>>3,or=4294967295,tr=pt.FeatureTest.isLittleEndian?4278190080:255;for(Jt=0;JtKt?Nt:cr*8-7,Tr=br&-8;let Ir=0,Ar=0;for(;hr>=1}for(;qt=Ut&&(rr=$t,jt=Nt*rr),qt=0,Yt=jt;Yt--;)lr[qt++]=er[Xt++],lr[qt++]=er[Xt++],lr[qt++]=er[Xt++],lr[qt++]=255;Pt.putImageData(Vt,0,Jt*mt)}else throw new Error(`bad image kind: ${zt.kind}`)}function st(Pt,zt){if(zt.bitmap){Pt.drawImage(zt.bitmap,0,0);return}const Dt=zt.height,Nt=zt.width,$t=Dt%mt,Ut=(Dt-$t)/mt,Ht=$t===0?Ut:Ut+1,Vt=Pt.createImageData(Nt,mt);let Xt=0;const qt=zt.data,er=Vt.data;for(let lr=0;lr>8,Pt[Ut-2]=Pt[Ut-2]*Ht+Dt*Vt>>8,Pt[Ut-1]=Pt[Ut-1]*Ht+Nt*Vt>>8}}}function dt(Pt,zt,Dt){const Nt=Pt.length,$t=1/255;for(let Ut=3;Ut>8]>>8:zt[$t]*Ut>>16}}function ft(Pt,zt,Dt,Nt,$t,Ut,Ht,Vt,Xt,qt,er){const lr=!!Ut,Jt=lr?Ut[0]:0,Yt=lr?Ut[1]:0,rr=lr?Ut[2]:0,jt=$t==="Luminosity"?bt:dt,sr=Math.min(Nt,Math.ceil(1048576/Dt));for(let Zt=0;Ztet&&typeof Nt=="function",er=qt?Date.now()+xt:0;let lr=0;const Jt=this.commonObjs,Yt=this.objs;let rr;for(;;){if($t!==void 0&&Vt===$t.nextBreakPoint)return $t.breakIt(Vt,Nt),Vt;if(rr=Ht[Vt],rr!==pt.OPS.dependency)this[rr].apply(this,Ut[Vt]);else for(const jt of Ut[Vt]){const ar=jt.startsWith("g_")?Jt:Yt;if(!ar.has(jt))return ar.get(jt,Nt),Vt}if(Vt++,Vt===Xt)return Vt;if(qt&&++lr>et){if(Date.now()>er)return Nt(),Vt;lr=0}}}endDrawing(){hs(this,wt,D_).call(this),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const zt of this._cachedBitmapsMap.values()){for(const Dt of zt.values())typeof HTMLCanvasElement<"u"&&Dt instanceof HTMLCanvasElement&&(Dt.width=Dt.height=0);zt.clear()}this._cachedBitmapsMap.clear(),hs(this,It,P_).call(this)}_scaleImage(zt,Dt){const Nt=zt.width,$t=zt.height;let Ut=Math.max(Math.hypot(Dt[0],Dt[1]),1),Ht=Math.max(Math.hypot(Dt[2],Dt[3]),1),Vt=Nt,Xt=$t,qt="prescale1",er,lr;for(;Ut>2&&Vt>1||Ht>2&&Xt>1;){let Jt=Vt,Yt=Xt;Ut>2&&Vt>1&&(Jt=Vt>=16384?Math.floor(Vt/2)-1||1:Math.ceil(Vt/2),Ut/=Vt/Jt),Ht>2&&Xt>1&&(Yt=Xt>=16384?Math.floor(Xt/2)-1||1:Math.ceil(Xt)/2,Ht/=Xt/Yt),er=this.cachedCanvases.getCanvas(qt,Jt,Yt),lr=er.context,lr.clearRect(0,0,Jt,Yt),lr.drawImage(zt,0,0,Vt,Xt,0,0,Jt,Yt),zt=er.canvas,Vt=Jt,Xt=Yt,qt=qt==="prescale1"?"prescale2":"prescale1"}return{img:zt,paintWidth:Vt,paintHeight:Xt}}_createMaskCanvas(zt){const Dt=this.ctx,{width:Nt,height:$t}=zt,Ut=this.current.fillColor,Ht=this.current.patternFill,Vt=(0,Lt.getCurrentTransform)(Dt);let Xt,qt,er,lr;if((zt.bitmap||zt.data)&&zt.count>1){const hr=zt.bitmap||zt.data.buffer;qt=JSON.stringify(Ht?Vt:[Vt.slice(0,4),Ut]),Xt=this._cachedBitmapsMap.get(hr),Xt||(Xt=new Map,this._cachedBitmapsMap.set(hr,Xt));const br=Xt.get(qt);if(br&&!Ht){const Tr=Math.round(Math.min(Vt[0],Vt[2])+Vt[4]),Ir=Math.round(Math.min(Vt[1],Vt[3])+Vt[5]);return{canvas:br,offsetX:Tr,offsetY:Ir}}er=br}er||(lr=this.cachedCanvases.getCanvas("maskCanvas",Nt,$t),st(lr.context,zt));let Jt=pt.Util.transform(Vt,[1/Nt,0,0,-1/$t,0,0]);Jt=pt.Util.transform(Jt,[1,0,0,1,0,-$t]);const Yt=pt.Util.applyTransform([0,0],Jt),rr=pt.Util.applyTransform([Nt,$t],Jt),jt=pt.Util.normalizeRect([Yt[0],Yt[1],rr[0],rr[1]]),ar=Math.round(jt[2]-jt[0])||1,sr=Math.round(jt[3]-jt[1])||1,Zt=this.cachedCanvases.getCanvas("fillCanvas",ar,sr),Kt=Zt.context,or=Math.min(Yt[0],rr[0]),tr=Math.min(Yt[1],rr[1]);Kt.translate(-or,-tr),Kt.transform(...Jt),er||(er=this._scaleImage(lr.canvas,(0,Lt.getCurrentTransformInverse)(Kt)),er=er.img,Xt&&Ht&&Xt.set(qt,er)),Kt.imageSmoothingEnabled=yt((0,Lt.getCurrentTransform)(Kt),zt.interpolate),j(Kt,er,0,0,er.width,er.height,0,0,Nt,$t),Kt.globalCompositeOperation="source-in";const cr=pt.Util.transform((0,Lt.getCurrentTransformInverse)(Kt),[1,0,0,1,-or,-tr]);return Kt.fillStyle=Ht?Ut.getPattern(Dt,this,cr,Gt.PathType.FILL):Ut,Kt.fillRect(0,0,Nt,$t),Xt&&!Ht&&(this.cachedCanvases.delete("fillCanvas"),Xt.set(qt,Zt.canvas)),{canvas:Zt.canvas,offsetX:Math.round(or),offsetY:Math.round(tr)}}setLineWidth(zt){zt!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=zt,this.ctx.lineWidth=zt}setLineCap(zt){this.ctx.lineCap=St[zt]}setLineJoin(zt){this.ctx.lineJoin=_t[zt]}setMiterLimit(zt){this.ctx.miterLimit=zt}setDash(zt,Dt){const Nt=this.ctx;Nt.setLineDash!==void 0&&(Nt.setLineDash(zt),Nt.lineDashOffset=Dt)}setRenderingIntent(zt){}setFlatness(zt){}setGState(zt){for(const[Dt,Nt]of zt)switch(Dt){case"LW":this.setLineWidth(Nt);break;case"LC":this.setLineCap(Nt);break;case"LJ":this.setLineJoin(Nt);break;case"ML":this.setMiterLimit(Nt);break;case"D":this.setDash(Nt[0],Nt[1]);break;case"RI":this.setRenderingIntent(Nt);break;case"FL":this.setFlatness(Nt);break;case"Font":this.setFont(Nt[0],Nt[1]);break;case"CA":this.current.strokeAlpha=Nt;break;case"ca":this.current.fillAlpha=Nt,this.ctx.globalAlpha=Nt;break;case"BM":this.ctx.globalCompositeOperation=Nt;break;case"SMask":this.current.activeSMask=Nt?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(Nt);break}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const zt=this.inSMaskMode;this.current.activeSMask&&!zt?this.beginSMaskMode():!this.current.activeSMask&&zt&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const zt=this.ctx.canvas.width,Dt=this.ctx.canvas.height,Nt="smaskGroupAt"+this.groupLevel,$t=this.cachedCanvases.getCanvas(Nt,zt,Dt);this.suspendedCtx=this.ctx,this.ctx=$t.context;const Ut=this.ctx;Ut.setTransform(...(0,Lt.getCurrentTransform)(this.suspendedCtx)),ot(this.suspendedCtx,Ut),ut(Ut,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),ot(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(zt){if(!this.current.activeSMask)return;zt?(zt[0]=Math.floor(zt[0]),zt[1]=Math.floor(zt[1]),zt[2]=Math.ceil(zt[2]),zt[3]=Math.ceil(zt[3])):zt=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const Dt=this.current.activeSMask,Nt=this.suspendedCtx;at(Nt,Dt,this.ctx,zt),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}save(){this.inSMaskMode?(ot(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const zt=this.current;this.stateStack.push(zt),this.current=zt.clone()}restore(){this.stateStack.length===0&&this.inSMaskMode&&this.endSMaskMode(),this.stateStack.length!==0&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),ot(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}transform(zt,Dt,Nt,$t,Ut,Ht){this.ctx.transform(zt,Dt,Nt,$t,Ut,Ht),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(zt,Dt,Nt){const $t=this.ctx,Ut=this.current;let Ht=Ut.x,Vt=Ut.y,Xt,qt;const er=(0,Lt.getCurrentTransform)($t),lr=er[0]===0&&er[3]===0||er[1]===0&&er[2]===0,Jt=lr?Nt.slice(0):null;for(let Yt=0,rr=0,jt=zt.length;Yto&&(qt=o),this.current.fontSizeScale=Dt/qt,this.ctx.font=`${Xt} ${Vt} ${qt}px ${Ht}`}setTextRenderingMode(zt){this.current.textRenderingMode=zt}setTextRise(zt){this.current.textRise=zt}moveText(zt,Dt){this.current.x=this.current.lineX+=zt,this.current.y=this.current.lineY+=Dt}setLeadingMoveText(zt,Dt){this.setLeading(-Dt),this.moveText(zt,Dt)}setTextMatrix(zt,Dt,Nt,$t,Ut,Ht){this.current.textMatrix=[zt,Dt,Nt,$t,Ut,Ht],this.current.textMatrixScale=Math.hypot(zt,Dt),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(zt,Dt,Nt,$t){const Ut=this.ctx,Ht=this.current,Vt=Ht.font,Xt=Ht.textRenderingMode,qt=Ht.fontSize/Ht.fontSizeScale,er=Xt&pt.TextRenderingMode.FILL_STROKE_MASK,lr=!!(Xt&pt.TextRenderingMode.ADD_TO_PATH_FLAG),Jt=Ht.patternFill&&!Vt.missingFile;let Yt;(Vt.disableFontFace||lr||Jt)&&(Yt=Vt.getPathGenerator(this.commonObjs,zt)),Vt.disableFontFace||Jt?(Ut.save(),Ut.translate(Dt,Nt),Ut.beginPath(),Yt(Ut,qt),$t&&Ut.setTransform(...$t),(er===pt.TextRenderingMode.FILL||er===pt.TextRenderingMode.FILL_STROKE)&&Ut.fill(),(er===pt.TextRenderingMode.STROKE||er===pt.TextRenderingMode.FILL_STROKE)&&Ut.stroke(),Ut.restore()):((er===pt.TextRenderingMode.FILL||er===pt.TextRenderingMode.FILL_STROKE)&&Ut.fillText(zt,Dt,Nt),(er===pt.TextRenderingMode.STROKE||er===pt.TextRenderingMode.FILL_STROKE)&&Ut.strokeText(zt,Dt,Nt)),lr&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:(0,Lt.getCurrentTransform)(Ut),x:Dt,y:Nt,fontSize:qt,addToPath:Yt})}get isFontSubpixelAAEnabled(){const{context:zt}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);zt.scale(1.5,1),zt.fillText("I",0,10);const Dt=zt.getImageData(0,0,10,10).data;let Nt=!1;for(let $t=3;$t0&&Dt[$t]<255){Nt=!0;break}return(0,pt.shadow)(this,"isFontSubpixelAAEnabled",Nt)}showText(zt){const Dt=this.current,Nt=Dt.font;if(Nt.isType3Font)return this.showType3Text(zt);const $t=Dt.fontSize;if($t===0)return;const Ut=this.ctx,Ht=Dt.fontSizeScale,Vt=Dt.charSpacing,Xt=Dt.wordSpacing,qt=Dt.fontDirection,er=Dt.textHScale*qt,lr=zt.length,Jt=Nt.vertical,Yt=Jt?1:-1,rr=Nt.defaultVMetrics,jt=$t*Dt.fontMatrix[0],ar=Dt.textRenderingMode===pt.TextRenderingMode.FILL&&!Nt.disableFontFace&&!Dt.patternFill;Ut.save(),Ut.transform(...Dt.textMatrix),Ut.translate(Dt.x,Dt.y+Dt.textRise),qt>0?Ut.scale(er,-1):Ut.scale(er,1);let sr;if(Dt.patternFill){Ut.save();const cr=Dt.fillColor.getPattern(Ut,this,(0,Lt.getCurrentTransformInverse)(Ut),Gt.PathType.FILL);sr=(0,Lt.getCurrentTransform)(Ut),Ut.restore(),Ut.fillStyle=cr}let Zt=Dt.lineWidth;const Kt=Dt.textMatrixScale;if(Kt===0||Zt===0){const cr=Dt.textRenderingMode&pt.TextRenderingMode.FILL_STROKE_MASK;(cr===pt.TextRenderingMode.STROKE||cr===pt.TextRenderingMode.FILL_STROKE)&&(Zt=this.getSinglePixelWidth())}else Zt/=Kt;if(Ht!==1&&(Ut.scale(Ht,Ht),Zt/=Ht),Ut.lineWidth=Zt,Nt.isInvalidPDFjsFont){const cr=[];let hr=0;for(const br of zt)cr.push(br.unicode),hr+=br.width;Ut.fillText(cr.join(""),0,0),Dt.x+=hr*jt*er,Ut.restore(),this.compose();return}let or=0,tr;for(tr=0;tr0){const zr=Ut.measureText(Tr).width*1e3/$t*Ht;if(Ernew Ot(Ht,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})};Dt=new Gt.TilingPattern(zt,Nt,this.ctx,Ut,$t)}else Dt=this._getPattern(zt[1],zt[2]);return Dt}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(zt,Dt,Nt){const $t=pt.Util.makeHexColor(zt,Dt,Nt);this.ctx.strokeStyle=$t,this.current.strokeColor=$t}setFillRGBColor(zt,Dt,Nt){const $t=pt.Util.makeHexColor(zt,Dt,Nt);this.ctx.fillStyle=$t,this.current.fillColor=$t,this.current.patternFill=!1}_getPattern(zt,Dt=null){let Nt;return this.cachedPatterns.has(zt)?Nt=this.cachedPatterns.get(zt):(Nt=(0,Gt.getShadingPattern)(this.getObject(zt)),this.cachedPatterns.set(zt,Nt)),Dt&&(Nt.matrix=Dt),Nt}shadingFill(zt){if(!this.contentVisible)return;const Dt=this.ctx;this.save();const Nt=this._getPattern(zt);Dt.fillStyle=Nt.getPattern(Dt,this,(0,Lt.getCurrentTransformInverse)(Dt),Gt.PathType.SHADING);const $t=(0,Lt.getCurrentTransformInverse)(Dt);if($t){const{width:Ut,height:Ht}=Dt.canvas,[Vt,Xt,qt,er]=pt.Util.getAxialAlignedBoundingBox([0,0,Ut,Ht],$t);this.ctx.fillRect(Vt,Xt,qt-Vt,er-Xt)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){(0,pt.unreachable)("Should not call beginInlineImage")}beginImageData(){(0,pt.unreachable)("Should not call beginImageData")}paintFormXObjectBegin(zt,Dt){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(zt)&&zt.length===6&&this.transform(...zt),this.baseTransform=(0,Lt.getCurrentTransform)(this.ctx),Dt)){const Nt=Dt[2]-Dt[0],$t=Dt[3]-Dt[1];this.ctx.rect(Dt[0],Dt[1],Nt,$t),this.current.updateRectMinMax((0,Lt.getCurrentTransform)(this.ctx),Dt),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(zt){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const Dt=this.ctx;zt.isolated||(0,pt.info)("TODO: Support non-isolated groups."),zt.knockout&&(0,pt.warn)("Knockout groups not supported.");const Nt=(0,Lt.getCurrentTransform)(Dt);if(zt.matrix&&Dt.transform(...zt.matrix),!zt.bbox)throw new Error("Bounding box is required.");let $t=pt.Util.getAxialAlignedBoundingBox(zt.bbox,(0,Lt.getCurrentTransform)(Dt));const Ut=[0,0,Dt.canvas.width,Dt.canvas.height];$t=pt.Util.intersect($t,Ut)||[0,0,0,0];const Ht=Math.floor($t[0]),Vt=Math.floor($t[1]);let Xt=Math.max(Math.ceil($t[2])-Ht,1),qt=Math.max(Math.ceil($t[3])-Vt,1),er=1,lr=1;Xt>it&&(er=Xt/it,Xt=it),qt>it&&(lr=qt/it,qt=it),this.current.startNewPathAndClipBox([0,0,Xt,qt]);let Jt="groupAt"+this.groupLevel;zt.smask&&(Jt+="_smask_"+this.smaskCounter++%2);const Yt=this.cachedCanvases.getCanvas(Jt,Xt,qt),rr=Yt.context;rr.scale(1/er,1/lr),rr.translate(-Ht,-Vt),rr.transform(...Nt),zt.smask?this.smaskStack.push({canvas:Yt.canvas,context:rr,offsetX:Ht,offsetY:Vt,scaleX:er,scaleY:lr,subtype:zt.smask.subtype,backdrop:zt.smask.backdrop,transferMap:zt.smask.transferMap||null,startTransformInverse:null}):(Dt.setTransform(1,0,0,1,0,0),Dt.translate(Ht,Vt),Dt.scale(er,lr),Dt.save()),ot(Dt,rr),this.ctx=rr,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(Dt),this.groupLevel++}endGroup(zt){if(!this.contentVisible)return;this.groupLevel--;const Dt=this.ctx,Nt=this.groupStack.pop();if(this.ctx=Nt,this.ctx.imageSmoothingEnabled=!1,zt.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const $t=(0,Lt.getCurrentTransform)(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...$t);const Ut=pt.Util.getAxialAlignedBoundingBox([0,0,Dt.canvas.width,Dt.canvas.height],$t);this.ctx.drawImage(Dt.canvas,0,0),this.ctx.restore(),this.compose(Ut)}}beginAnnotation(zt,Dt,Nt,$t,Ut){if(hs(this,wt,D_).call(this),nt(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),Array.isArray(Dt)&&Dt.length===4){const Ht=Dt[2]-Dt[0],Vt=Dt[3]-Dt[1];if(Ut&&this.annotationCanvasMap){Nt=Nt.slice(),Nt[4]-=Dt[0],Nt[5]-=Dt[1],Dt=Dt.slice(),Dt[0]=Dt[1]=0,Dt[2]=Ht,Dt[3]=Vt;const[Xt,qt]=pt.Util.singularValueDecompose2dScale((0,Lt.getCurrentTransform)(this.ctx)),{viewportScale:er}=this,lr=Math.ceil(Ht*this.outputScaleX*er),Jt=Math.ceil(Vt*this.outputScaleY*er);this.annotationCanvas=this.canvasFactory.create(lr,Jt);const{canvas:Yt,context:rr}=this.annotationCanvas;this.annotationCanvasMap.set(zt,Yt),this.annotationCanvas.savedCtx=this.ctx,this.ctx=rr,this.ctx.save(),this.ctx.setTransform(Xt,0,0,-qt,0,Vt*qt),nt(this.ctx)}else nt(this.ctx),this.ctx.rect(Dt[0],Dt[1],Ht,Vt),this.ctx.clip(),this.endPath()}this.current=new rt(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...Nt),this.transform(...$t)}endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),hs(this,It,P_).call(this),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(zt){if(!this.contentVisible)return;const Dt=zt.count;zt=this.getObject(zt.data,zt),zt.count=Dt;const Nt=this.ctx,$t=this.processingType3;if($t&&($t.compiled===void 0&&($t.compiled=_(zt)),$t.compiled)){$t.compiled(Nt);return}const Ut=this._createMaskCanvas(zt),Ht=Ut.canvas;Nt.save(),Nt.setTransform(1,0,0,1,0,0),Nt.drawImage(Ht,Ut.offsetX,Ut.offsetY),Nt.restore(),this.compose()}paintImageMaskXObjectRepeat(zt,Dt,Nt=0,$t=0,Ut,Ht){if(!this.contentVisible)return;zt=this.getObject(zt.data,zt);const Vt=this.ctx;Vt.save();const Xt=(0,Lt.getCurrentTransform)(Vt);Vt.transform(Dt,Nt,$t,Ut,0,0);const qt=this._createMaskCanvas(zt);Vt.setTransform(1,0,0,1,qt.offsetX-Xt[4],qt.offsetY-Xt[5]);for(let er=0,lr=Ht.length;erlr?er/lr:1,Vt=qt>lr?qt/lr:1}}this._cachedScaleForStroking[0]=Ht,this._cachedScaleForStroking[1]=Vt}return this._cachedScaleForStroking}rescaleAndStroke(zt){const{ctx:Dt}=this,{lineWidth:Nt}=this.current,[$t,Ut]=this.getScaleForStroking();if(Dt.lineWidth=Nt||1,$t===1&&Ut===1){Dt.stroke();return}const Ht=Dt.getLineDash();if(zt&&Dt.save(),Dt.scale($t,Ut),Ht.length>0){const Vt=Math.max($t,Ut);Dt.setLineDash(Ht.map(Xt=>Xt/Vt)),Dt.lineDashOffset/=Vt}Dt.stroke(),zt&&Dt.restore()}isContentVisible(){for(let zt=this.markedContentStack.length-1;zt>=0;zt--)if(!this.markedContentStack[zt].visible)return!1;return!0}};let kt=Ot;wt=new WeakSet,D_=function(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)},It=new WeakSet,P_=function(){if(this.pageColors){const zt=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if(zt!=="none"){const Dt=this.ctx.filter;this.ctx.filter=zt,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=Dt}}},i.CanvasGraphics=kt;for(const Pt in pt.OPS)kt.prototype[Pt]!==void 0&&(kt.prototype[pt.OPS[Pt]]=kt.prototype[Pt])},(a,i,_e)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.TilingPattern=i.PathType=void 0,i.getShadingPattern=mt;var pt=_e(1),Lt=_e(6);const Gt={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};i.PathType=Gt;function Ct(_,rt){if(!rt)return;const tt=rt[2]-rt[0],st=rt[3]-rt[1],ot=new Path2D;ot.rect(rt[0],rt[1],tt,st),_.clip(ot)}class Rt{constructor(){this.constructor===Rt&&(0,pt.unreachable)("Cannot initialize BaseShadingPattern.")}getPattern(){(0,pt.unreachable)("Abstract method `getPattern` called.")}}class o extends Rt{constructor(rt){super(),this._type=rt[1],this._bbox=rt[2],this._colorStops=rt[3],this._p0=rt[4],this._p1=rt[5],this._r0=rt[6],this._r1=rt[7],this.matrix=null}_createGradient(rt){let tt;this._type==="axial"?tt=rt.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):this._type==="radial"&&(tt=rt.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const st of this._colorStops)tt.addColorStop(st[0],st[1]);return tt}getPattern(rt,tt,st,ot){let nt;if(ot===Gt.STROKE||ot===Gt.FILL){const vt=tt.current.getClippedPathBoundingBox(ot,(0,Lt.getCurrentTransform)(rt))||[0,0,0,0],dt=Math.ceil(vt[2]-vt[0])||1,bt=Math.ceil(vt[3]-vt[1])||1,ft=tt.cachedCanvases.getCanvas("pattern",dt,bt,!0),at=ft.context;at.clearRect(0,0,at.canvas.width,at.canvas.height),at.beginPath(),at.rect(0,0,at.canvas.width,at.canvas.height),at.translate(-vt[0],-vt[1]),st=pt.Util.transform(st,[1,0,0,1,vt[0],vt[1]]),at.transform(...tt.baseTransform),this.matrix&&at.transform(...this.matrix),Ct(at,this._bbox),at.fillStyle=this._createGradient(at),at.fill(),nt=rt.createPattern(ft.canvas,"no-repeat");const yt=new DOMMatrix(st);nt.setTransform(yt)}else Ct(rt,this._bbox),nt=this._createGradient(rt);return nt}}function it(_,rt,tt,st,ot,nt,vt,dt){const bt=rt.coords,ft=rt.colors,at=_.data,yt=_.width*4;let St;bt[tt+1]>bt[st+1]&&(St=tt,tt=st,st=St,St=nt,nt=vt,vt=St),bt[st+1]>bt[ot+1]&&(St=st,st=ot,ot=St,St=vt,vt=dt,dt=St),bt[tt+1]>bt[st+1]&&(St=tt,tt=st,st=St,St=nt,nt=vt,vt=St);const _t=(bt[tt]+rt.offsetX)*rt.scaleX,Mt=(bt[tt+1]+rt.offsetY)*rt.scaleY,Tt=(bt[st]+rt.offsetX)*rt.scaleX,kt=(bt[st+1]+rt.offsetY)*rt.scaleY,wt=(bt[ot]+rt.offsetX)*rt.scaleX,ct=(bt[ot+1]+rt.offsetY)*rt.scaleY;if(Mt>=ct)return;const It=ft[nt],At=ft[nt+1],Ot=ft[nt+2],Pt=ft[vt],zt=ft[vt+1],Dt=ft[vt+2],Nt=ft[dt],$t=ft[dt+1],Ut=ft[dt+2],Ht=Math.round(Mt),Vt=Math.round(ct);let Xt,qt,er,lr,Jt,Yt,rr,jt;for(let ar=Ht;ar<=Vt;ar++){if(arct?tr=1:kt===ct?tr=0:tr=(kt-ar)/(kt-ct),Xt=Tt-(Tt-wt)*tr,qt=Pt-(Pt-Nt)*tr,er=zt-(zt-$t)*tr,lr=Dt-(Dt-Ut)*tr}let sr;arct?sr=1:sr=(Mt-ar)/(Mt-ct),Jt=_t-(_t-wt)*sr,Yt=It-(It-Nt)*sr,rr=At-(At-$t)*sr,jt=Ot-(Ot-Ut)*sr;const Zt=Math.round(Math.min(Xt,Jt)),Kt=Math.round(Math.max(Xt,Jt));let or=yt*ar+Zt*4;for(let tr=Zt;tr<=Kt;tr++)sr=(Xt-tr)/(Xt-Jt),sr<0?sr=0:sr>1&&(sr=1),at[or++]=qt-(qt-Yt)*sr|0,at[or++]=er-(er-rr)*sr|0,at[or++]=lr-(lr-jt)*sr|0,at[or++]=255}}function xt(_,rt,tt){const st=rt.coords,ot=rt.colors;let nt,vt;switch(rt.type){case"lattice":const dt=rt.verticesPerRow,bt=Math.floor(st.length/dt)-1,ft=dt-1;for(nt=0;nt=ot?nt=ot:st=nt/rt,{scale:st,size:nt}}clipBbox(rt,tt,st,ot,nt){const vt=ot-tt,dt=nt-st;rt.ctx.rect(tt,st,vt,dt),rt.current.updateRectMinMax((0,Lt.getCurrentTransform)(rt.ctx),[tt,st,ot,nt]),rt.clip(),rt.endPath()}setFillAndStrokeStyleToContext(rt,tt,st){const ot=rt.ctx,nt=rt.current;switch(tt){case ut.COLORED:const vt=this.ctx;ot.fillStyle=vt.fillStyle,ot.strokeStyle=vt.strokeStyle,nt.fillColor=vt.fillStyle,nt.strokeColor=vt.strokeStyle;break;case ut.UNCOLORED:const dt=pt.Util.makeHexColor(st[0],st[1],st[2]);ot.fillStyle=dt,ot.strokeStyle=dt,nt.fillColor=dt,nt.strokeColor=dt;break;default:throw new pt.FormatError(`Unsupported paint type: ${tt}`)}}getPattern(rt,tt,st,ot){let nt=st;ot!==Gt.SHADING&&(nt=pt.Util.transform(nt,tt.baseTransform),this.matrix&&(nt=pt.Util.transform(nt,this.matrix)));const vt=this.createPatternCanvas(tt);let dt=new DOMMatrix(nt);dt=dt.translate(vt.offsetX,vt.offsetY),dt=dt.scale(1/vt.scaleX,1/vt.scaleY);const bt=rt.createPattern(vt.canvas,"repeat");return bt.setTransform(dt),bt}};let ht=j;Dp(ht,"MAX_PATTERN_SIZE",3e3),i.TilingPattern=ht},(a,i,_e)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.convertBlackAndWhiteToRGBA=Gt,i.convertToRGBA=Lt,i.grayToRGBA=Rt;var pt=_e(1);function Lt(o){switch(o.kind){case pt.ImageKind.GRAYSCALE_1BPP:return Gt(o);case pt.ImageKind.RGB_24BPP:return Ct(o)}return null}function Gt({src:o,srcPos:it=0,dest:xt,width:et,height:Et,nonBlackColor:mt=4294967295,inverseDecode:ut=!1}){const ht=pt.FeatureTest.isLittleEndian?4278190080:255,[j,_]=ut?[mt,ht]:[ht,mt],rt=et>>3,tt=et&7,st=o.length;xt=new Uint32Array(xt.buffer);let ot=0;for(let nt=0;nt>2,j=new Uint32Array(o.buffer,it,ht);if(pt.FeatureTest.isLittleEndian){for(;ut>>24|rt<<8|4278190080,xt[et+2]=rt>>>16|tt<<16|4278190080,xt[et+3]=tt>>>8|4278190080}for(let _=ut*4,rt=o.length;_>>8|255,xt[et+2]=rt<<16|tt>>>16|255,xt[et+3]=tt<<8|255}for(let _=ut*4,rt=o.length;_{Object.defineProperty(i,"__esModule",{value:!0}),i.GlobalWorkerOptions=void 0;const _e=Object.create(null);i.GlobalWorkerOptions=_e,_e.workerPort=null,_e.workerSrc=""},(a,i,_e)=>{var o,hS,xt,pS,Et,eT;Object.defineProperty(i,"__esModule",{value:!0}),i.MessageHandler=void 0;var pt=_e(1);const Lt={UNKNOWN:0,DATA:1,ERROR:2},Gt={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function Ct(ut){switch(ut instanceof Error||typeof ut=="object"&&ut!==null||(0,pt.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),ut.name){case"AbortException":return new pt.AbortException(ut.message);case"MissingPDFException":return new pt.MissingPDFException(ut.message);case"PasswordException":return new pt.PasswordException(ut.message,ut.code);case"UnexpectedResponseException":return new pt.UnexpectedResponseException(ut.message,ut.status);case"UnknownErrorException":return new pt.UnknownErrorException(ut.message,ut.details);default:return new pt.UnknownErrorException(ut.message,ut.toString())}}class Rt{constructor(ht,j,_){Xo(this,o);Xo(this,xt);Xo(this,Et);this.sourceName=ht,this.targetName=j,this.comObj=_,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=rt=>{const tt=rt.data;if(tt.targetName!==this.sourceName)return;if(tt.stream){hs(this,xt,pS).call(this,tt);return}if(tt.callback){const ot=tt.callbackId,nt=this.callbackCapabilities[ot];if(!nt)throw new Error(`Cannot resolve callback ${ot}`);if(delete this.callbackCapabilities[ot],tt.callback===Lt.DATA)nt.resolve(tt.data);else if(tt.callback===Lt.ERROR)nt.reject(Ct(tt.reason));else throw new Error("Unexpected callback case");return}const st=this.actionHandler[tt.action];if(!st)throw new Error(`Unknown action from worker: ${tt.action}`);if(tt.callbackId){const ot=this.sourceName,nt=tt.sourceName;new Promise(function(vt){vt(st(tt.data))}).then(function(vt){_.postMessage({sourceName:ot,targetName:nt,callback:Lt.DATA,callbackId:tt.callbackId,data:vt})},function(vt){_.postMessage({sourceName:ot,targetName:nt,callback:Lt.ERROR,callbackId:tt.callbackId,reason:Ct(vt)})});return}if(tt.streamId){hs(this,o,hS).call(this,tt);return}st(tt.data)},_.addEventListener("message",this._onComObjOnMessage)}on(ht,j){const _=this.actionHandler;if(_[ht])throw new Error(`There is already an actionName called "${ht}"`);_[ht]=j}send(ht,j,_){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:ht,data:j},_)}sendWithPromise(ht,j,_){const rt=this.callbackId++,tt=new pt.PromiseCapability;this.callbackCapabilities[rt]=tt;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:ht,callbackId:rt,data:j},_)}catch(st){tt.reject(st)}return tt.promise}sendWithStream(ht,j,_,rt){const tt=this.streamId++,st=this.sourceName,ot=this.targetName,nt=this.comObj;return new ReadableStream({start:vt=>{const dt=new pt.PromiseCapability;return this.streamControllers[tt]={controller:vt,startCall:dt,pullCall:null,cancelCall:null,isClosed:!1},nt.postMessage({sourceName:st,targetName:ot,action:ht,streamId:tt,data:j,desiredSize:vt.desiredSize},rt),dt.promise},pull:vt=>{const dt=new pt.PromiseCapability;return this.streamControllers[tt].pullCall=dt,nt.postMessage({sourceName:st,targetName:ot,stream:Gt.PULL,streamId:tt,desiredSize:vt.desiredSize}),dt.promise},cancel:vt=>{(0,pt.assert)(vt instanceof Error,"cancel must have a valid reason");const dt=new pt.PromiseCapability;return this.streamControllers[tt].cancelCall=dt,this.streamControllers[tt].isClosed=!0,nt.postMessage({sourceName:st,targetName:ot,stream:Gt.CANCEL,streamId:tt,reason:Ct(vt)}),dt.promise}},_)}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}o=new WeakSet,hS=function(ht){const j=ht.streamId,_=this.sourceName,rt=ht.sourceName,tt=this.comObj,st=this,ot=this.actionHandler[ht.action],nt={enqueue(vt,dt=1,bt){if(this.isCancelled)return;const ft=this.desiredSize;this.desiredSize-=dt,ft>0&&this.desiredSize<=0&&(this.sinkCapability=new pt.PromiseCapability,this.ready=this.sinkCapability.promise),tt.postMessage({sourceName:_,targetName:rt,stream:Gt.ENQUEUE,streamId:j,chunk:vt},bt)},close(){this.isCancelled||(this.isCancelled=!0,tt.postMessage({sourceName:_,targetName:rt,stream:Gt.CLOSE,streamId:j}),delete st.streamSinks[j])},error(vt){(0,pt.assert)(vt instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,tt.postMessage({sourceName:_,targetName:rt,stream:Gt.ERROR,streamId:j,reason:Ct(vt)}))},sinkCapability:new pt.PromiseCapability,onPull:null,onCancel:null,isCancelled:!1,desiredSize:ht.desiredSize,ready:null};nt.sinkCapability.resolve(),nt.ready=nt.sinkCapability.promise,this.streamSinks[j]=nt,new Promise(function(vt){vt(ot(ht.data,nt))}).then(function(){tt.postMessage({sourceName:_,targetName:rt,stream:Gt.START_COMPLETE,streamId:j,success:!0})},function(vt){tt.postMessage({sourceName:_,targetName:rt,stream:Gt.START_COMPLETE,streamId:j,reason:Ct(vt)})})},xt=new WeakSet,pS=function(ht){const j=ht.streamId,_=this.sourceName,rt=ht.sourceName,tt=this.comObj,st=this.streamControllers[j],ot=this.streamSinks[j];switch(ht.stream){case Gt.START_COMPLETE:ht.success?st.startCall.resolve():st.startCall.reject(Ct(ht.reason));break;case Gt.PULL_COMPLETE:ht.success?st.pullCall.resolve():st.pullCall.reject(Ct(ht.reason));break;case Gt.PULL:if(!ot){tt.postMessage({sourceName:_,targetName:rt,stream:Gt.PULL_COMPLETE,streamId:j,success:!0});break}ot.desiredSize<=0&&ht.desiredSize>0&&ot.sinkCapability.resolve(),ot.desiredSize=ht.desiredSize,new Promise(function(nt){var vt;nt((vt=ot.onPull)==null?void 0:vt.call(ot))}).then(function(){tt.postMessage({sourceName:_,targetName:rt,stream:Gt.PULL_COMPLETE,streamId:j,success:!0})},function(nt){tt.postMessage({sourceName:_,targetName:rt,stream:Gt.PULL_COMPLETE,streamId:j,reason:Ct(nt)})});break;case Gt.ENQUEUE:if((0,pt.assert)(st,"enqueue should have stream controller"),st.isClosed)break;st.controller.enqueue(ht.chunk);break;case Gt.CLOSE:if((0,pt.assert)(st,"close should have stream controller"),st.isClosed)break;st.isClosed=!0,st.controller.close(),hs(this,Et,eT).call(this,st,j);break;case Gt.ERROR:(0,pt.assert)(st,"error should have stream controller"),st.controller.error(Ct(ht.reason)),hs(this,Et,eT).call(this,st,j);break;case Gt.CANCEL_COMPLETE:ht.success?st.cancelCall.resolve():st.cancelCall.reject(Ct(ht.reason)),hs(this,Et,eT).call(this,st,j);break;case Gt.CANCEL:if(!ot)break;new Promise(function(nt){var vt;nt((vt=ot.onCancel)==null?void 0:vt.call(ot,Ct(ht.reason)))}).then(function(){tt.postMessage({sourceName:_,targetName:rt,stream:Gt.CANCEL_COMPLETE,streamId:j,success:!0})},function(nt){tt.postMessage({sourceName:_,targetName:rt,stream:Gt.CANCEL_COMPLETE,streamId:j,reason:Ct(nt)})}),ot.sinkCapability.reject(Ct(ht.reason)),ot.isCancelled=!0,delete this.streamSinks[j];break;default:throw new Error("Unexpected stream case")}},Et=new WeakSet,eT=async function(ht,j){var _,rt,tt;await Promise.allSettled([(_=ht.startCall)==null?void 0:_.promise,(rt=ht.pullCall)==null?void 0:rt.promise,(tt=ht.cancelCall)==null?void 0:tt.promise]),delete this.streamControllers[j]},i.MessageHandler=Rt},(a,i,_e)=>{var Gt,Ct;Object.defineProperty(i,"__esModule",{value:!0}),i.Metadata=void 0;var pt=_e(1);class Lt{constructor({parsedData:o,rawData:it}){Xo(this,Gt,void 0);Xo(this,Ct,void 0);ks(this,Gt,o),ks(this,Ct,it)}getRaw(){return On(this,Ct)}get(o){return On(this,Gt).get(o)??null}getAll(){return(0,pt.objectFromMap)(On(this,Gt))}has(o){return On(this,Gt).has(o)}}Gt=new WeakMap,Ct=new WeakMap,i.Metadata=Lt},(a,i,_e)=>{var o,it,xt,et,Et,mt,N_;Object.defineProperty(i,"__esModule",{value:!0}),i.OptionalContentConfig=void 0;var pt=_e(1),Lt=_e(8);const Gt=Symbol("INTERNAL");class Ct{constructor(j,_){Xo(this,o,!0);this.name=j,this.intent=_}get visible(){return On(this,o)}_setVisible(j,_){j!==Gt&&(0,pt.unreachable)("Internal method `_setVisible` called."),ks(this,o,_)}}o=new WeakMap;class Rt{constructor(j){Xo(this,mt);Xo(this,it,null);Xo(this,xt,new Map);Xo(this,et,null);Xo(this,Et,null);if(this.name=null,this.creator=null,j!==null){this.name=j.name,this.creator=j.creator,ks(this,Et,j.order);for(const _ of j.groups)On(this,xt).set(_.id,new Ct(_.name,_.intent));if(j.baseState==="OFF")for(const _ of On(this,xt).values())_._setVisible(Gt,!1);for(const _ of j.on)On(this,xt).get(_)._setVisible(Gt,!0);for(const _ of j.off)On(this,xt).get(_)._setVisible(Gt,!1);ks(this,et,this.getHash())}}isVisible(j){if(On(this,xt).size===0)return!0;if(!j)return(0,pt.warn)("Optional content group not defined."),!0;if(j.type==="OCG")return On(this,xt).has(j.id)?On(this,xt).get(j.id).visible:((0,pt.warn)(`Optional content group not found: ${j.id}`),!0);if(j.type==="OCMD"){if(j.expression)return hs(this,mt,N_).call(this,j.expression);if(!j.policy||j.policy==="AnyOn"){for(const _ of j.ids){if(!On(this,xt).has(_))return(0,pt.warn)(`Optional content group not found: ${_}`),!0;if(On(this,xt).get(_).visible)return!0}return!1}else if(j.policy==="AllOn"){for(const _ of j.ids){if(!On(this,xt).has(_))return(0,pt.warn)(`Optional content group not found: ${_}`),!0;if(!On(this,xt).get(_).visible)return!1}return!0}else if(j.policy==="AnyOff"){for(const _ of j.ids){if(!On(this,xt).has(_))return(0,pt.warn)(`Optional content group not found: ${_}`),!0;if(!On(this,xt).get(_).visible)return!0}return!1}else if(j.policy==="AllOff"){for(const _ of j.ids){if(!On(this,xt).has(_))return(0,pt.warn)(`Optional content group not found: ${_}`),!0;if(On(this,xt).get(_).visible)return!1}return!0}return(0,pt.warn)(`Unknown optional content policy ${j.policy}.`),!0}return(0,pt.warn)(`Unknown group type ${j.type}.`),!0}setVisibility(j,_=!0){if(!On(this,xt).has(j)){(0,pt.warn)(`Optional content group not found: ${j}`);return}On(this,xt).get(j)._setVisible(Gt,!!_),ks(this,it,null)}get hasInitialVisibility(){return On(this,et)===null||this.getHash()===On(this,et)}getOrder(){return On(this,xt).size?On(this,Et)?On(this,Et).slice():[...On(this,xt).keys()]:null}getGroups(){return On(this,xt).size>0?(0,pt.objectFromMap)(On(this,xt)):null}getGroup(j){return On(this,xt).get(j)||null}getHash(){if(On(this,it)!==null)return On(this,it);const j=new Lt.MurmurHash3_64;for(const[_,rt]of On(this,xt))j.update(`${_}:${rt.visible}`);return ks(this,it,j.hexdigest())}}it=new WeakMap,xt=new WeakMap,et=new WeakMap,Et=new WeakMap,mt=new WeakSet,N_=function(j){const _=j.length;if(_<2)return!0;const rt=j[0];for(let tt=1;tt<_;tt++){const st=j[tt];let ot;if(Array.isArray(st))ot=hs(this,mt,N_).call(this,st);else if(On(this,xt).has(st))ot=On(this,xt).get(st).visible;else return(0,pt.warn)(`Optional content group not found: ${st}`),!0;switch(rt){case"And":if(!ot)return!1;break;case"Or":if(ot)return!0;break;case"Not":return!ot;default:return!0}}return rt==="And"},i.OptionalContentConfig=Rt},(a,i,_e)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.PDFDataTransportStream=void 0;var pt=_e(1),Lt=_e(6);class Gt{constructor({length:it,initialData:xt,progressiveDone:et=!1,contentDispositionFilename:Et=null,disableRange:mt=!1,disableStream:ut=!1},ht){if((0,pt.assert)(ht,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=et,this._contentDispositionFilename=Et,(xt==null?void 0:xt.length)>0){const j=xt instanceof Uint8Array&&xt.byteLength===xt.buffer.byteLength?xt.buffer:new Uint8Array(xt).buffer;this._queuedChunks.push(j)}this._pdfDataRangeTransport=ht,this._isStreamingSupported=!ut,this._isRangeSupported=!mt,this._contentLength=it,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((j,_)=>{this._onReceiveData({begin:j,chunk:_})}),this._pdfDataRangeTransport.addProgressListener((j,_)=>{this._onProgress({loaded:j,total:_})}),this._pdfDataRangeTransport.addProgressiveReadListener(j=>{this._onReceiveData({chunk:j})}),this._pdfDataRangeTransport.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}_onReceiveData({begin:it,chunk:xt}){const et=xt instanceof Uint8Array&&xt.byteLength===xt.buffer.byteLength?xt.buffer:new Uint8Array(xt).buffer;if(it===void 0)this._fullRequestReader?this._fullRequestReader._enqueue(et):this._queuedChunks.push(et);else{const Et=this._rangeReaders.some(function(mt){return mt._begin!==it?!1:(mt._enqueue(et),!0)});(0,pt.assert)(Et,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){var it;return((it=this._fullRequestReader)==null?void 0:it._loaded)??0}_onProgress(it){var xt,et,Et,mt;it.total===void 0?(et=(xt=this._rangeReaders[0])==null?void 0:xt.onProgress)==null||et.call(xt,{loaded:it.loaded}):(mt=(Et=this._fullRequestReader)==null?void 0:Et.onProgress)==null||mt.call(Et,{loaded:it.loaded,total:it.total})}_onProgressiveDone(){var it;(it=this._fullRequestReader)==null||it.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(it){const xt=this._rangeReaders.indexOf(it);xt>=0&&this._rangeReaders.splice(xt,1)}getFullReader(){(0,pt.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const it=this._queuedChunks;return this._queuedChunks=null,new Ct(this,it,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(it,xt){if(xt<=this._progressiveDataLength)return null;const et=new Rt(this,it,xt);return this._pdfDataRangeTransport.requestDataRange(it,xt),this._rangeReaders.push(et),et}cancelAllRequests(it){var xt;(xt=this._fullRequestReader)==null||xt.cancel(it);for(const et of this._rangeReaders.slice(0))et.cancel(it);this._pdfDataRangeTransport.abort()}}i.PDFDataTransportStream=Gt;class Ct{constructor(it,xt,et=!1,Et=null){this._stream=it,this._done=et||!1,this._filename=(0,Lt.isPdfFile)(Et)?Et:null,this._queuedChunks=xt||[],this._loaded=0;for(const mt of this._queuedChunks)this._loaded+=mt.byteLength;this._requests=[],this._headersReady=Promise.resolve(),it._fullRequestReader=this,this.onProgress=null}_enqueue(it){this._done||(this._requests.length>0?this._requests.shift().resolve({value:it,done:!1}):this._queuedChunks.push(it),this._loaded+=it.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const it=new pt.PromiseCapability;return this._requests.push(it),it.promise}cancel(it){this._done=!0;for(const xt of this._requests)xt.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class Rt{constructor(it,xt,et){this._stream=it,this._begin=xt,this._end=et,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(it){if(!this._done){if(this._requests.length===0)this._queuedChunk=it;else{this._requests.shift().resolve({value:it,done:!1});for(const et of this._requests)et.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const xt=this._queuedChunk;return this._queuedChunk=null,{value:xt,done:!1}}if(this._done)return{value:void 0,done:!0};const it=new pt.PromiseCapability;return this._requests.push(it),it.promise}cancel(it){this._done=!0;for(const xt of this._requests)xt.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}},(a,i,_e)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.PDFFetchStream=void 0;var pt=_e(1),Lt=_e(20);function Gt(et,Et,mt){return{method:"GET",headers:et,signal:mt.signal,mode:"cors",credentials:Et?"include":"same-origin",redirect:"follow"}}function Ct(et){const Et=new Headers;for(const mt in et){const ut=et[mt];ut!==void 0&&Et.append(mt,ut)}return Et}function Rt(et){return et instanceof Uint8Array?et.buffer:et instanceof ArrayBuffer?et:((0,pt.warn)(`getArrayBuffer - unexpected data format: ${et}`),new Uint8Array(et).buffer)}class o{constructor(Et){this.source=Et,this.isHttp=/^https?:/i.test(Et.url),this.httpHeaders=this.isHttp&&Et.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var Et;return((Et=this._fullRequestReader)==null?void 0:Et._loaded)??0}getFullReader(){return(0,pt.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new it(this),this._fullRequestReader}getRangeReader(Et,mt){if(mt<=this._progressiveDataLength)return null;const ut=new xt(this,Et,mt);return this._rangeRequestReaders.push(ut),ut}cancelAllRequests(Et){var mt;(mt=this._fullRequestReader)==null||mt.cancel(Et);for(const ut of this._rangeRequestReaders.slice(0))ut.cancel(Et)}}i.PDFFetchStream=o;class it{constructor(Et){this._stream=Et,this._reader=null,this._loaded=0,this._filename=null;const mt=Et.source;this._withCredentials=mt.withCredentials||!1,this._contentLength=mt.length,this._headersCapability=new pt.PromiseCapability,this._disableRange=mt.disableRange||!1,this._rangeChunkSize=mt.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!mt.disableStream,this._isRangeSupported=!mt.disableRange,this._headers=Ct(this._stream.httpHeaders);const ut=mt.url;fetch(ut,Gt(this._headers,this._withCredentials,this._abortController)).then(ht=>{if(!(0,Lt.validateResponseStatus)(ht.status))throw(0,Lt.createResponseStatusError)(ht.status,ut);this._reader=ht.body.getReader(),this._headersCapability.resolve();const j=tt=>ht.headers.get(tt),{allowRangeRequests:_,suggestedLength:rt}=(0,Lt.validateRangeRequestCapabilities)({getResponseHeader:j,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=_,this._contentLength=rt||this._contentLength,this._filename=(0,Lt.extractFilenameFromHeader)(j),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new pt.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var ut;await this._headersCapability.promise;const{value:Et,done:mt}=await this._reader.read();return mt?{value:Et,done:mt}:(this._loaded+=Et.byteLength,(ut=this.onProgress)==null||ut.call(this,{loaded:this._loaded,total:this._contentLength}),{value:Rt(Et),done:!1})}cancel(Et){var mt;(mt=this._reader)==null||mt.cancel(Et),this._abortController.abort()}}class xt{constructor(Et,mt,ut){this._stream=Et,this._reader=null,this._loaded=0;const ht=Et.source;this._withCredentials=ht.withCredentials||!1,this._readCapability=new pt.PromiseCapability,this._isStreamingSupported=!ht.disableStream,this._abortController=new AbortController,this._headers=Ct(this._stream.httpHeaders),this._headers.append("Range",`bytes=${mt}-${ut-1}`);const j=ht.url;fetch(j,Gt(this._headers,this._withCredentials,this._abortController)).then(_=>{if(!(0,Lt.validateResponseStatus)(_.status))throw(0,Lt.createResponseStatusError)(_.status,j);this._readCapability.resolve(),this._reader=_.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){var ut;await this._readCapability.promise;const{value:Et,done:mt}=await this._reader.read();return mt?{value:Et,done:mt}:(this._loaded+=Et.byteLength,(ut=this.onProgress)==null||ut.call(this,{loaded:this._loaded}),{value:Rt(Et),done:!1})}cancel(Et){var mt;(mt=this._reader)==null||mt.cancel(Et),this._abortController.abort()}}},(a,i,_e)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.createResponseStatusError=o,i.extractFilenameFromHeader=Rt,i.validateRangeRequestCapabilities=Ct,i.validateResponseStatus=it;var pt=_e(1),Lt=_e(21),Gt=_e(6);function Ct({getResponseHeader:xt,isHttp:et,rangeChunkSize:Et,disableRange:mt}){const ut={allowRangeRequests:!1,suggestedLength:void 0},ht=parseInt(xt("Content-Length"),10);return!Number.isInteger(ht)||(ut.suggestedLength=ht,ht<=2*Et)||mt||!et||xt("Accept-Ranges")!=="bytes"||(xt("Content-Encoding")||"identity")!=="identity"||(ut.allowRangeRequests=!0),ut}function Rt(xt){const et=xt("Content-Disposition");if(et){let Et=(0,Lt.getFilenameFromContentDispositionHeader)(et);if(Et.includes("%"))try{Et=decodeURIComponent(Et)}catch{}if((0,Gt.isPdfFile)(Et))return Et}return null}function o(xt,et){return xt===404||xt===0&&et.startsWith("file:")?new pt.MissingPDFException('Missing PDF "'+et+'".'):new pt.UnexpectedResponseException(`Unexpected server response (${xt}) while retrieving PDF "${et}".`,xt)}function it(xt){return xt===200||xt===206}},(a,i,_e)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.getFilenameFromContentDispositionHeader=Lt;var pt=_e(1);function Lt(Gt){let Ct=!0,Rt=o("filename\\*","i").exec(Gt);if(Rt){Rt=Rt[1];let ht=Et(Rt);return ht=unescape(ht),ht=mt(ht),ht=ut(ht),xt(ht)}if(Rt=et(Gt),Rt){const ht=ut(Rt);return xt(ht)}if(Rt=o("filename","i").exec(Gt),Rt){Rt=Rt[1];let ht=Et(Rt);return ht=ut(ht),xt(ht)}function o(ht,j){return new RegExp("(?:^|;)\\s*"+ht+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',j)}function it(ht,j){if(ht){if(!/^[\x00-\xFF]+$/.test(j))return j;try{const _=new TextDecoder(ht,{fatal:!0}),rt=(0,pt.stringToBytes)(j);j=_.decode(rt),Ct=!1}catch{}}return j}function xt(ht){return Ct&&/[\x80-\xff]/.test(ht)&&(ht=it("utf-8",ht),Ct&&(ht=it("iso-8859-1",ht))),ht}function et(ht){const j=[];let _;const rt=o("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(_=rt.exec(ht))!==null;){let[,st,ot,nt]=_;if(st=parseInt(st,10),st in j){if(st===0)break;continue}j[st]=[ot,nt]}const tt=[];for(let st=0;st{Object.defineProperty(i,"__esModule",{value:!0}),i.PDFNetworkStream=void 0;var pt=_e(1),Lt=_e(20);const Gt=200,Ct=206;function Rt(Et){const mt=Et.response;return typeof mt!="string"?mt:(0,pt.stringToBytes)(mt).buffer}class o{constructor(mt,ut={}){this.url=mt,this.isHttp=/^https?:/i.test(mt),this.httpHeaders=this.isHttp&&ut.httpHeaders||Object.create(null),this.withCredentials=ut.withCredentials||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(mt,ut,ht){const j={begin:mt,end:ut};for(const _ in ht)j[_]=ht[_];return this.request(j)}requestFull(mt){return this.request(mt)}request(mt){const ut=new XMLHttpRequest,ht=this.currXhrId++,j=this.pendingRequests[ht]={xhr:ut};ut.open("GET",this.url),ut.withCredentials=this.withCredentials;for(const _ in this.httpHeaders){const rt=this.httpHeaders[_];rt!==void 0&&ut.setRequestHeader(_,rt)}return this.isHttp&&"begin"in mt&&"end"in mt?(ut.setRequestHeader("Range",`bytes=${mt.begin}-${mt.end-1}`),j.expectedStatus=Ct):j.expectedStatus=Gt,ut.responseType="arraybuffer",mt.onError&&(ut.onerror=function(_){mt.onError(ut.status)}),ut.onreadystatechange=this.onStateChange.bind(this,ht),ut.onprogress=this.onProgress.bind(this,ht),j.onHeadersReceived=mt.onHeadersReceived,j.onDone=mt.onDone,j.onError=mt.onError,j.onProgress=mt.onProgress,ut.send(null),ht}onProgress(mt,ut){var j;const ht=this.pendingRequests[mt];ht&&((j=ht.onProgress)==null||j.call(ht,ut))}onStateChange(mt,ut){var st,ot,nt;const ht=this.pendingRequests[mt];if(!ht)return;const j=ht.xhr;if(j.readyState>=2&&ht.onHeadersReceived&&(ht.onHeadersReceived(),delete ht.onHeadersReceived),j.readyState!==4||!(mt in this.pendingRequests))return;if(delete this.pendingRequests[mt],j.status===0&&this.isHttp){(st=ht.onError)==null||st.call(ht,j.status);return}const _=j.status||Gt;if(!(_===Gt&&ht.expectedStatus===Ct)&&_!==ht.expectedStatus){(ot=ht.onError)==null||ot.call(ht,j.status);return}const tt=Rt(j);if(_===Ct){const vt=j.getResponseHeader("Content-Range"),dt=/bytes (\d+)-(\d+)\/(\d+)/.exec(vt);ht.onDone({begin:parseInt(dt[1],10),chunk:tt})}else tt?ht.onDone({begin:0,chunk:tt}):(nt=ht.onError)==null||nt.call(ht,j.status)}getRequestXhr(mt){return this.pendingRequests[mt].xhr}isPendingRequest(mt){return mt in this.pendingRequests}abortRequest(mt){const ut=this.pendingRequests[mt].xhr;delete this.pendingRequests[mt],ut.abort()}}class it{constructor(mt){this._source=mt,this._manager=new o(mt.url,{httpHeaders:mt.httpHeaders,withCredentials:mt.withCredentials}),this._rangeChunkSize=mt.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(mt){const ut=this._rangeRequestReaders.indexOf(mt);ut>=0&&this._rangeRequestReaders.splice(ut,1)}getFullReader(){return(0,pt.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new xt(this._manager,this._source),this._fullRequestReader}getRangeReader(mt,ut){const ht=new et(this._manager,mt,ut);return ht.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(ht),ht}cancelAllRequests(mt){var ut;(ut=this._fullRequestReader)==null||ut.cancel(mt);for(const ht of this._rangeRequestReaders.slice(0))ht.cancel(mt)}}i.PDFNetworkStream=it;class xt{constructor(mt,ut){this._manager=mt;const ht={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=ut.url,this._fullRequestId=mt.requestFull(ht),this._headersReceivedCapability=new pt.PromiseCapability,this._disableRange=ut.disableRange||!1,this._contentLength=ut.length,this._rangeChunkSize=ut.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const mt=this._fullRequestId,ut=this._manager.getRequestXhr(mt),ht=rt=>ut.getResponseHeader(rt),{allowRangeRequests:j,suggestedLength:_}=(0,Lt.validateRangeRequestCapabilities)({getResponseHeader:ht,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});j&&(this._isRangeSupported=!0),this._contentLength=_||this._contentLength,this._filename=(0,Lt.extractFilenameFromHeader)(ht),this._isRangeSupported&&this._manager.abortRequest(mt),this._headersReceivedCapability.resolve()}_onDone(mt){if(mt&&(this._requests.length>0?this._requests.shift().resolve({value:mt.chunk,done:!1}):this._cachedChunks.push(mt.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const ut of this._requests)ut.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(mt){this._storedError=(0,Lt.createResponseStatusError)(mt,this._url),this._headersReceivedCapability.reject(this._storedError);for(const ut of this._requests)ut.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(mt){var ut;(ut=this.onProgress)==null||ut.call(this,{loaded:mt.loaded,total:mt.lengthComputable?mt.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const mt=new pt.PromiseCapability;return this._requests.push(mt),mt.promise}cancel(mt){this._done=!0,this._headersReceivedCapability.reject(mt);for(const ut of this._requests)ut.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class et{constructor(mt,ut,ht){this._manager=mt;const j={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=mt.url,this._requestId=mt.requestRange(ut,ht,j),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){var mt;(mt=this.onClosed)==null||mt.call(this,this)}_onDone(mt){const ut=mt.chunk;this._requests.length>0?this._requests.shift().resolve({value:ut,done:!1}):this._queuedChunk=ut,this._done=!0;for(const ht of this._requests)ht.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(mt){this._storedError=(0,Lt.createResponseStatusError)(mt,this._url);for(const ut of this._requests)ut.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(mt){var ut;this.isStreamingSupported||(ut=this.onProgress)==null||ut.call(this,{loaded:mt.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(this._queuedChunk!==null){const ut=this._queuedChunk;return this._queuedChunk=null,{value:ut,done:!1}}if(this._done)return{value:void 0,done:!0};const mt=new pt.PromiseCapability;return this._requests.push(mt),mt.promise}cancel(mt){this._done=!0;for(const ut of this._requests)ut.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},(a,i,_e)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.PDFNodeStream=void 0;var pt=_e(1),Lt=_e(20);const Gt=/^file:\/\/\/[a-zA-Z]:\//;function Ct(ht){const j=require$$5,_=j.parse(ht);return _.protocol==="file:"||_.host?_:/^[a-z]:[/\\]/i.test(ht)?j.parse(`file:///${ht}`):(_.host||(_.protocol="file:"),_)}class Rt{constructor(j){this.source=j,this.url=Ct(j.url),this.isHttp=this.url.protocol==="http:"||this.url.protocol==="https:",this.isFsUrl=this.url.protocol==="file:",this.httpHeaders=this.isHttp&&j.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var j;return((j=this._fullRequestReader)==null?void 0:j._loaded)??0}getFullReader(){return(0,pt.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new mt(this):new et(this),this._fullRequestReader}getRangeReader(j,_){if(_<=this._progressiveDataLength)return null;const rt=this.isFsUrl?new ut(this,j,_):new Et(this,j,_);return this._rangeRequestReaders.push(rt),rt}cancelAllRequests(j){var _;(_=this._fullRequestReader)==null||_.cancel(j);for(const rt of this._rangeRequestReaders.slice(0))rt.cancel(j)}}i.PDFNodeStream=Rt;class o{constructor(j){this._url=j.url,this._done=!1,this._storedError=null,this.onProgress=null;const _=j.source;this._contentLength=_.length,this._loaded=0,this._filename=null,this._disableRange=_.disableRange||!1,this._rangeChunkSize=_.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!_.disableStream,this._isRangeSupported=!_.disableRange,this._readableStream=null,this._readCapability=new pt.PromiseCapability,this._headersCapability=new pt.PromiseCapability}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var rt;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const j=this._readableStream.read();return j===null?(this._readCapability=new pt.PromiseCapability,this.read()):(this._loaded+=j.length,(rt=this.onProgress)==null||rt.call(this,{loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(j).buffer,done:!1})}cancel(j){if(!this._readableStream){this._error(j);return}this._readableStream.destroy(j)}_error(j){this._storedError=j,this._readCapability.resolve()}_setReadableStream(j){this._readableStream=j,j.on("readable",()=>{this._readCapability.resolve()}),j.on("end",()=>{j.destroy(),this._done=!0,this._readCapability.resolve()}),j.on("error",_=>{this._error(_)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new pt.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class it{constructor(j){this._url=j.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=new pt.PromiseCapability;const _=j.source;this._isStreamingSupported=!_.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){var rt;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const j=this._readableStream.read();return j===null?(this._readCapability=new pt.PromiseCapability,this.read()):(this._loaded+=j.length,(rt=this.onProgress)==null||rt.call(this,{loaded:this._loaded}),{value:new Uint8Array(j).buffer,done:!1})}cancel(j){if(!this._readableStream){this._error(j);return}this._readableStream.destroy(j)}_error(j){this._storedError=j,this._readCapability.resolve()}_setReadableStream(j){this._readableStream=j,j.on("readable",()=>{this._readCapability.resolve()}),j.on("end",()=>{j.destroy(),this._done=!0,this._readCapability.resolve()}),j.on("error",_=>{this._error(_)}),this._storedError&&this._readableStream.destroy(this._storedError)}}function xt(ht,j){return{protocol:ht.protocol,auth:ht.auth,host:ht.hostname,port:ht.port,path:ht.path,method:"GET",headers:j}}class et extends o{constructor(j){super(j);const _=rt=>{if(rt.statusCode===404){const nt=new pt.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=nt,this._headersCapability.reject(nt);return}this._headersCapability.resolve(),this._setReadableStream(rt);const tt=nt=>this._readableStream.headers[nt.toLowerCase()],{allowRangeRequests:st,suggestedLength:ot}=(0,Lt.validateRangeRequestCapabilities)({getResponseHeader:tt,isHttp:j.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=st,this._contentLength=ot||this._contentLength,this._filename=(0,Lt.extractFilenameFromHeader)(tt)};if(this._request=null,this._url.protocol==="http:"){const rt=require$$5;this._request=rt.request(xt(this._url,j.httpHeaders),_)}else{const rt=require$$5;this._request=rt.request(xt(this._url,j.httpHeaders),_)}this._request.on("error",rt=>{this._storedError=rt,this._headersCapability.reject(rt)}),this._request.end()}}class Et extends it{constructor(j,_,rt){super(j),this._httpHeaders={};for(const st in j.httpHeaders){const ot=j.httpHeaders[st];ot!==void 0&&(this._httpHeaders[st]=ot)}this._httpHeaders.Range=`bytes=${_}-${rt-1}`;const tt=st=>{if(st.statusCode===404){const ot=new pt.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=ot;return}this._setReadableStream(st)};if(this._request=null,this._url.protocol==="http:"){const st=require$$5;this._request=st.request(xt(this._url,this._httpHeaders),tt)}else{const st=require$$5;this._request=st.request(xt(this._url,this._httpHeaders),tt)}this._request.on("error",st=>{this._storedError=st}),this._request.end()}}class mt extends o{constructor(j){super(j);let _=decodeURIComponent(this._url.path);Gt.test(this._url.href)&&(_=_.replace(/^\//,""));const rt=require$$5;rt.lstat(_,(tt,st)=>{if(tt){tt.code==="ENOENT"&&(tt=new pt.MissingPDFException(`Missing PDF "${_}".`)),this._storedError=tt,this._headersCapability.reject(tt);return}this._contentLength=st.size,this._setReadableStream(rt.createReadStream(_)),this._headersCapability.resolve()})}}class ut extends it{constructor(j,_,rt){super(j);let tt=decodeURIComponent(this._url.path);Gt.test(this._url.href)&&(tt=tt.replace(/^\//,""));const st=require$$5;this._setReadableStream(st.createReadStream(tt,{start:_,end:rt-1}))}}},(a,i,_e)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.SVGGraphics=void 0;var pt=_e(6),Lt=_e(1);const Gt={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},Ct="http://www.w3.org/XML/1998/namespace",Rt="http://www.w3.org/1999/xlink",o=["butt","round","square"],it=["miter","round","bevel"],xt=function(st,ot="",nt=!1){if(URL.createObjectURL&&typeof Blob<"u"&&!nt)return URL.createObjectURL(new Blob([st],{type:ot}));const vt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let dt=`data:${ot};base64,`;for(let bt=0,ft=st.length;bt>2,Mt=(at&3)<<4|yt>>4,Tt=bt+1>6:64,kt=bt+2>1&2147483647:_t>>1&2147483647;nt[St]=_t}function vt(St,_t,Mt){let Tt=-1;for(let kt=_t;kt>>8^ct}return Tt^-1}function dt(St,_t,Mt,Tt){let kt=Tt;const wt=_t.length;Mt[kt]=wt>>24&255,Mt[kt+1]=wt>>16&255,Mt[kt+2]=wt>>8&255,Mt[kt+3]=wt&255,kt+=4,Mt[kt]=St.charCodeAt(0)&255,Mt[kt+1]=St.charCodeAt(1)&255,Mt[kt+2]=St.charCodeAt(2)&255,Mt[kt+3]=St.charCodeAt(3)&255,kt+=4,Mt.set(_t,kt),kt+=_t.length;const ct=vt(Mt,Tt+4,kt);Mt[kt]=ct>>24&255,Mt[kt+1]=ct>>16&255,Mt[kt+2]=ct>>8&255,Mt[kt+3]=ct&255}function bt(St,_t,Mt){let Tt=1,kt=0;for(let wt=_t;wt=8?St:Buffer.from(St),Mt=require$$5.deflateSync(_t,{level:9});return Mt instanceof Uint8Array?Mt:new Uint8Array(Mt)}catch(_t){(0,Lt.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+_t)}return at(St)}function at(St){let _t=St.length;const Mt=65535,Tt=Math.ceil(_t/Mt),kt=new Uint8Array(2+_t+Tt*5+4);let wt=0;kt[wt++]=120,kt[wt++]=156;let ct=0;for(;_t>Mt;)kt[wt++]=0,kt[wt++]=255,kt[wt++]=255,kt[wt++]=0,kt[wt++]=0,kt.set(St.subarray(ct,ct+Mt),wt),wt+=Mt,ct+=Mt,_t-=Mt;kt[wt++]=1,kt[wt++]=_t&255,kt[wt++]=_t>>8&255,kt[wt++]=~_t&65535&255,kt[wt++]=(~_t&65535)>>8&255,kt.set(St.subarray(ct),wt),wt+=St.length-ct;const It=bt(St,0,St.length);return kt[wt++]=It>>24&255,kt[wt++]=It>>16&255,kt[wt++]=It>>8&255,kt[wt++]=It&255,kt}function yt(St,_t,Mt,Tt){const kt=St.width,wt=St.height;let ct,It,At;const Ot=St.data;switch(_t){case Lt.ImageKind.GRAYSCALE_1BPP:It=0,ct=1,At=kt+7>>3;break;case Lt.ImageKind.RGB_24BPP:It=2,ct=8,At=kt*3;break;case Lt.ImageKind.RGBA_32BPP:It=6,ct=8,At=kt*4;break;default:throw new Error("invalid format")}const Pt=new Uint8Array((1+At)*wt);let zt=0,Dt=0;for(let Xt=0;Xt>24&255,kt>>16&255,kt>>8&255,kt&255,wt>>24&255,wt>>16&255,wt>>8&255,wt&255,ct,It,0,0,0]),$t=ft(Pt),Ut=st.length+ot*3+Nt.length+$t.length,Ht=new Uint8Array(Ut);let Vt=0;return Ht.set(st,Vt),Vt+=st.length,dt("IHDR",Nt,Ht,Vt),Vt+=ot+Nt.length,dt("IDATA",$t,Ht,Vt),Vt+=ot+$t.length,dt("IEND",new Uint8Array(0),Ht,Vt),xt(Ht,"image/png",Mt)}return function(_t,Mt,Tt){const kt=_t.kind===void 0?Lt.ImageKind.GRAYSCALE_1BPP:_t.kind;return yt(_t,kt,Mt,Tt)}}();class Et{constructor(){this.fontSizeScale=1,this.fontWeight=Gt.fontWeight,this.fontSize=0,this.textMatrix=Lt.IDENTITY_MATRIX,this.fontMatrix=Lt.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=Lt.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=Gt.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(ot,nt){this.x=ot,this.y=nt}}function mt(st){let ot=[];const nt=[];for(const vt of st){if(vt.fn==="save"){ot.push({fnId:92,fn:"group",items:[]}),nt.push(ot),ot=ot.at(-1).items;continue}vt.fn==="restore"?ot=nt.pop():ot.push(vt)}return ot}function ut(st){if(Number.isInteger(st))return st.toString();const ot=st.toFixed(10);let nt=ot.length-1;if(ot[nt]!=="0")return ot;do nt--;while(ot[nt]==="0");return ot.substring(0,ot[nt]==="."?nt:nt+1)}function ht(st){if(st[4]===0&&st[5]===0){if(st[1]===0&&st[2]===0)return st[0]===1&&st[3]===1?"":`scale(${ut(st[0])} ${ut(st[3])})`;if(st[0]===st[3]&&st[1]===-st[2]){const ot=Math.acos(st[0])*180/Math.PI;return`rotate(${ut(ot)})`}}else if(st[0]===1&&st[1]===0&&st[2]===0&&st[3]===1)return`translate(${ut(st[4])} ${ut(st[5])})`;return`matrix(${ut(st[0])} ${ut(st[1])} ${ut(st[2])} ${ut(st[3])} ${ut(st[4])} ${ut(st[5])})`}let j=0,_=0,rt=0;class tt{constructor(ot,nt,vt=!1){(0,pt.deprecated)("The SVG back-end is no longer maintained and *may* be removed in the future."),this.svgFactory=new pt.DOMSVGFactory,this.current=new Et,this.transformMatrix=Lt.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=ot,this.objs=nt,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!vt,this._operatorIdMapping=[];for(const dt in Lt.OPS)this._operatorIdMapping[Lt.OPS[dt]]=dt}getObject(ot,nt=null){return typeof ot=="string"?ot.startsWith("g_")?this.commonObjs.get(ot):this.objs.get(ot):nt}save(){this.transformStack.push(this.transformMatrix);const ot=this.current;this.extraStack.push(ot),this.current=ot.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(ot){this.save(),this.executeOpTree(ot),this.restore()}loadDependencies(ot){const nt=ot.fnArray,vt=ot.argsArray;for(let dt=0,bt=nt.length;dt{at.get(ft,St)});this.current.dependencies.push(yt)}return Promise.all(this.current.dependencies)}transform(ot,nt,vt,dt,bt,ft){const at=[ot,nt,vt,dt,bt,ft];this.transformMatrix=Lt.Util.transform(this.transformMatrix,at),this.tgrp=null}getSVG(ot,nt){this.viewport=nt;const vt=this._initialize(nt);return this.loadDependencies(ot).then(()=>(this.transformMatrix=Lt.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(ot)),vt))}convertOpList(ot){const nt=this._operatorIdMapping,vt=ot.argsArray,dt=ot.fnArray,bt=[];for(let ft=0,at=dt.length;ft0&&(this.current.lineWidth=ot)}setLineCap(ot){this.current.lineCap=o[ot]}setLineJoin(ot){this.current.lineJoin=it[ot]}setMiterLimit(ot){this.current.miterLimit=ot}setStrokeAlpha(ot){this.current.strokeAlpha=ot}setStrokeRGBColor(ot,nt,vt){this.current.strokeColor=Lt.Util.makeHexColor(ot,nt,vt)}setFillAlpha(ot){this.current.fillAlpha=ot}setFillRGBColor(ot,nt,vt){this.current.fillColor=Lt.Util.makeHexColor(ot,nt,vt),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(ot){this.current.strokeColor=this._makeColorN_Pattern(ot)}setFillColorN(ot){this.current.fillColor=this._makeColorN_Pattern(ot)}shadingFill(ot){const{width:nt,height:vt}=this.viewport,dt=Lt.Util.inverseTransform(this.transformMatrix),[bt,ft,at,yt]=Lt.Util.getAxialAlignedBoundingBox([0,0,nt,vt],dt),St=this.svgFactory.createElement("svg:rect");St.setAttributeNS(null,"x",bt),St.setAttributeNS(null,"y",ft),St.setAttributeNS(null,"width",at-bt),St.setAttributeNS(null,"height",yt-ft),St.setAttributeNS(null,"fill",this._makeShadingPattern(ot)),this.current.fillAlpha<1&&St.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().append(St)}_makeColorN_Pattern(ot){return ot[0]==="TilingPattern"?this._makeTilingPattern(ot):this._makeShadingPattern(ot)}_makeTilingPattern(ot){const nt=ot[1],vt=ot[2],dt=ot[3]||Lt.IDENTITY_MATRIX,[bt,ft,at,yt]=ot[4],St=ot[5],_t=ot[6],Mt=ot[7],Tt=`shading${rt++}`,[kt,wt,ct,It]=Lt.Util.normalizeRect([...Lt.Util.applyTransform([bt,ft],dt),...Lt.Util.applyTransform([at,yt],dt)]),[At,Ot]=Lt.Util.singularValueDecompose2dScale(dt),Pt=St*At,zt=_t*Ot,Dt=this.svgFactory.createElement("svg:pattern");Dt.setAttributeNS(null,"id",Tt),Dt.setAttributeNS(null,"patternUnits","userSpaceOnUse"),Dt.setAttributeNS(null,"width",Pt),Dt.setAttributeNS(null,"height",zt),Dt.setAttributeNS(null,"x",`${kt}`),Dt.setAttributeNS(null,"y",`${wt}`);const Nt=this.svg,$t=this.transformMatrix,Ut=this.current.fillColor,Ht=this.current.strokeColor,Vt=this.svgFactory.create(ct-kt,It-wt);if(this.svg=Vt,this.transformMatrix=dt,Mt===2){const Xt=Lt.Util.makeHexColor(...nt);this.current.fillColor=Xt,this.current.strokeColor=Xt}return this.executeOpTree(this.convertOpList(vt)),this.svg=Nt,this.transformMatrix=$t,this.current.fillColor=Ut,this.current.strokeColor=Ht,Dt.append(Vt.childNodes[0]),this.defs.append(Dt),`url(#${Tt})`}_makeShadingPattern(ot){switch(typeof ot=="string"&&(ot=this.objs.get(ot)),ot[0]){case"RadialAxial":const nt=`shading${rt++}`,vt=ot[3];let dt;switch(ot[1]){case"axial":const bt=ot[4],ft=ot[5];dt=this.svgFactory.createElement("svg:linearGradient"),dt.setAttributeNS(null,"id",nt),dt.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),dt.setAttributeNS(null,"x1",bt[0]),dt.setAttributeNS(null,"y1",bt[1]),dt.setAttributeNS(null,"x2",ft[0]),dt.setAttributeNS(null,"y2",ft[1]);break;case"radial":const at=ot[4],yt=ot[5],St=ot[6],_t=ot[7];dt=this.svgFactory.createElement("svg:radialGradient"),dt.setAttributeNS(null,"id",nt),dt.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),dt.setAttributeNS(null,"cx",yt[0]),dt.setAttributeNS(null,"cy",yt[1]),dt.setAttributeNS(null,"r",_t),dt.setAttributeNS(null,"fx",at[0]),dt.setAttributeNS(null,"fy",at[1]),dt.setAttributeNS(null,"fr",St);break;default:throw new Error(`Unknown RadialAxial type: ${ot[1]}`)}for(const bt of vt){const ft=this.svgFactory.createElement("svg:stop");ft.setAttributeNS(null,"offset",bt[0]),ft.setAttributeNS(null,"stop-color",bt[1]),dt.append(ft)}return this.defs.append(dt),`url(#${nt})`;case"Mesh":return(0,Lt.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${ot[0]}`)}}setDash(ot,nt){this.current.dashArray=ot,this.current.dashPhase=nt}constructPath(ot,nt){const vt=this.current;let dt=vt.x,bt=vt.y,ft=[],at=0;for(const yt of ot)switch(yt|0){case Lt.OPS.rectangle:dt=nt[at++],bt=nt[at++];const St=nt[at++],_t=nt[at++],Mt=dt+St,Tt=bt+_t;ft.push("M",ut(dt),ut(bt),"L",ut(Mt),ut(bt),"L",ut(Mt),ut(Tt),"L",ut(dt),ut(Tt),"Z");break;case Lt.OPS.moveTo:dt=nt[at++],bt=nt[at++],ft.push("M",ut(dt),ut(bt));break;case Lt.OPS.lineTo:dt=nt[at++],bt=nt[at++],ft.push("L",ut(dt),ut(bt));break;case Lt.OPS.curveTo:dt=nt[at+4],bt=nt[at+5],ft.push("C",ut(nt[at]),ut(nt[at+1]),ut(nt[at+2]),ut(nt[at+3]),ut(dt),ut(bt)),at+=6;break;case Lt.OPS.curveTo2:ft.push("C",ut(dt),ut(bt),ut(nt[at]),ut(nt[at+1]),ut(nt[at+2]),ut(nt[at+3])),dt=nt[at+2],bt=nt[at+3],at+=4;break;case Lt.OPS.curveTo3:dt=nt[at+2],bt=nt[at+3],ft.push("C",ut(nt[at]),ut(nt[at+1]),ut(dt),ut(bt),ut(dt),ut(bt)),at+=4;break;case Lt.OPS.closePath:ft.push("Z");break}ft=ft.join(" "),vt.path&&ot.length>0&&ot[0]!==Lt.OPS.rectangle&&ot[0]!==Lt.OPS.moveTo?ft=vt.path.getAttributeNS(null,"d")+ft:(vt.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().append(vt.path)),vt.path.setAttributeNS(null,"d",ft),vt.path.setAttributeNS(null,"fill","none"),vt.element=vt.path,vt.setCurrentPoint(dt,bt)}endPath(){const ot=this.current;if(ot.path=null,!this.pendingClip)return;if(!ot.element){this.pendingClip=null;return}const nt=`clippath${j++}`,vt=this.svgFactory.createElement("svg:clipPath");vt.setAttributeNS(null,"id",nt),vt.setAttributeNS(null,"transform",ht(this.transformMatrix));const dt=ot.element.cloneNode(!0);if(this.pendingClip==="evenodd"?dt.setAttributeNS(null,"clip-rule","evenodd"):dt.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,vt.append(dt),this.defs.append(vt),ot.activeClipUrl){ot.clipGroup=null;for(const bt of this.extraStack)bt.clipGroup=null;vt.setAttributeNS(null,"clip-path",ot.activeClipUrl)}ot.activeClipUrl=`url(#${nt})`,this.tgrp=null}clip(ot){this.pendingClip=ot}closePath(){const ot=this.current;if(ot.path){const nt=`${ot.path.getAttributeNS(null,"d")}Z`;ot.path.setAttributeNS(null,"d",nt)}}setLeading(ot){this.current.leading=-ot}setTextRise(ot){this.current.textRise=ot}setTextRenderingMode(ot){this.current.textRenderingMode=ot}setHScale(ot){this.current.textHScale=ot/100}setRenderingIntent(ot){}setFlatness(ot){}setGState(ot){for(const[nt,vt]of ot)switch(nt){case"LW":this.setLineWidth(vt);break;case"LC":this.setLineCap(vt);break;case"LJ":this.setLineJoin(vt);break;case"ML":this.setMiterLimit(vt);break;case"D":this.setDash(vt[0],vt[1]);break;case"RI":this.setRenderingIntent(vt);break;case"FL":this.setFlatness(vt);break;case"Font":this.setFont(vt);break;case"CA":this.setStrokeAlpha(vt);break;case"ca":this.setFillAlpha(vt);break;default:(0,Lt.warn)(`Unimplemented graphic state operator ${nt}`);break}}fill(){const ot=this.current;ot.element&&(ot.element.setAttributeNS(null,"fill",ot.fillColor),ot.element.setAttributeNS(null,"fill-opacity",ot.fillAlpha),this.endPath())}stroke(){const ot=this.current;ot.element&&(this._setStrokeAttributes(ot.element),ot.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(ot,nt=1){const vt=this.current;let dt=vt.dashArray;nt!==1&&dt.length>0&&(dt=dt.map(function(bt){return nt*bt})),ot.setAttributeNS(null,"stroke",vt.strokeColor),ot.setAttributeNS(null,"stroke-opacity",vt.strokeAlpha),ot.setAttributeNS(null,"stroke-miterlimit",ut(vt.miterLimit)),ot.setAttributeNS(null,"stroke-linecap",vt.lineCap),ot.setAttributeNS(null,"stroke-linejoin",vt.lineJoin),ot.setAttributeNS(null,"stroke-width",ut(nt*vt.lineWidth)+"px"),ot.setAttributeNS(null,"stroke-dasharray",dt.map(ut).join(" ")),ot.setAttributeNS(null,"stroke-dashoffset",ut(nt*vt.dashPhase)+"px")}eoFill(){var ot;(ot=this.current.element)==null||ot.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){var ot;(ot=this.current.element)==null||ot.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const ot=this.svgFactory.createElement("svg:rect");ot.setAttributeNS(null,"x","0"),ot.setAttributeNS(null,"y","0"),ot.setAttributeNS(null,"width","1px"),ot.setAttributeNS(null,"height","1px"),ot.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().append(ot)}paintImageXObject(ot){const nt=this.getObject(ot);if(!nt){(0,Lt.warn)(`Dependent image with object ID ${ot} is not ready yet`);return}this.paintInlineImageXObject(nt)}paintInlineImageXObject(ot,nt){const vt=ot.width,dt=ot.height,bt=et(ot,this.forceDataSchema,!!nt),ft=this.svgFactory.createElement("svg:rect");ft.setAttributeNS(null,"x","0"),ft.setAttributeNS(null,"y","0"),ft.setAttributeNS(null,"width",ut(vt)),ft.setAttributeNS(null,"height",ut(dt)),this.current.element=ft,this.clip("nonzero");const at=this.svgFactory.createElement("svg:image");at.setAttributeNS(Rt,"xlink:href",bt),at.setAttributeNS(null,"x","0"),at.setAttributeNS(null,"y",ut(-dt)),at.setAttributeNS(null,"width",ut(vt)+"px"),at.setAttributeNS(null,"height",ut(dt)+"px"),at.setAttributeNS(null,"transform",`scale(${ut(1/vt)} ${ut(-1/dt)})`),nt?nt.append(at):this._ensureTransformGroup().append(at)}paintImageMaskXObject(ot){const nt=this.getObject(ot.data,ot);if(nt.bitmap){(0,Lt.warn)("paintImageMaskXObject: ImageBitmap support is not implemented, ensure that the `isOffscreenCanvasSupported` API parameter is disabled.");return}const vt=this.current,dt=nt.width,bt=nt.height,ft=vt.fillColor;vt.maskId=`mask${_++}`;const at=this.svgFactory.createElement("svg:mask");at.setAttributeNS(null,"id",vt.maskId);const yt=this.svgFactory.createElement("svg:rect");yt.setAttributeNS(null,"x","0"),yt.setAttributeNS(null,"y","0"),yt.setAttributeNS(null,"width",ut(dt)),yt.setAttributeNS(null,"height",ut(bt)),yt.setAttributeNS(null,"fill",ft),yt.setAttributeNS(null,"mask",`url(#${vt.maskId})`),this.defs.append(at),this._ensureTransformGroup().append(yt),this.paintInlineImageXObject(nt,at)}paintFormXObjectBegin(ot,nt){if(Array.isArray(ot)&&ot.length===6&&this.transform(ot[0],ot[1],ot[2],ot[3],ot[4],ot[5]),nt){const vt=nt[2]-nt[0],dt=nt[3]-nt[1],bt=this.svgFactory.createElement("svg:rect");bt.setAttributeNS(null,"x",nt[0]),bt.setAttributeNS(null,"y",nt[1]),bt.setAttributeNS(null,"width",ut(vt)),bt.setAttributeNS(null,"height",ut(dt)),this.current.element=bt,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(ot){const nt=this.svgFactory.create(ot.width,ot.height),vt=this.svgFactory.createElement("svg:defs");nt.append(vt),this.defs=vt;const dt=this.svgFactory.createElement("svg:g");return dt.setAttributeNS(null,"transform",ht(ot.transform)),nt.append(dt),this.svg=dt,nt}_ensureClipGroup(){if(!this.current.clipGroup){const ot=this.svgFactory.createElement("svg:g");ot.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.append(ot),this.current.clipGroup=ot}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",ht(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().append(this.tgrp):this.svg.append(this.tgrp)),this.tgrp}}i.SVGGraphics=tt},(a,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.XfaText=void 0;class _e{static textContent(Lt){const Gt=[],Ct={items:Gt,styles:Object.create(null)};function Rt(o){var et;if(!o)return;let it=null;const xt=o.name;if(xt==="#text")it=o.value;else if(_e.shouldBuildText(xt))(et=o==null?void 0:o.attributes)!=null&&et.textContent?it=o.attributes.textContent:o.value&&(it=o.value);else return;if(it!==null&&Gt.push({str:it}),!!o.children)for(const Et of o.children)Rt(Et)}return Rt(Lt),Ct}static shouldBuildText(Lt){return!(Lt==="textarea"||Lt==="input"||Lt==="option"||Lt==="select")}}i.XfaText=_e},(a,i,_e)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.TextLayerRenderTask=void 0,i.renderTextLayer=ht,i.updateTextLayer=j;var pt=_e(1),Lt=_e(6);const Gt=1e5,Ct=30,Rt=.8,o=new Map;function it(_,rt){let tt;if(rt&&pt.FeatureTest.isOffscreenCanvasSupported)tt=new OffscreenCanvas(_,_).getContext("2d",{alpha:!1});else{const st=document.createElement("canvas");st.width=st.height=_,tt=st.getContext("2d",{alpha:!1})}return tt}function xt(_,rt){const tt=o.get(_);if(tt)return tt;const st=it(Ct,rt);st.font=`${Ct}px ${_}`;const ot=st.measureText("");let nt=ot.fontBoundingBoxAscent,vt=Math.abs(ot.fontBoundingBoxDescent);if(nt){const bt=nt/(nt+vt);return o.set(_,bt),st.canvas.width=st.canvas.height=0,bt}st.strokeStyle="red",st.clearRect(0,0,Ct,Ct),st.strokeText("g",0,0);let dt=st.getImageData(0,0,Ct,Ct).data;vt=0;for(let bt=dt.length-1-3;bt>=0;bt-=4)if(dt[bt]>0){vt=Math.ceil(bt/4/Ct);break}st.clearRect(0,0,Ct,Ct),st.strokeText("A",0,Ct),dt=st.getImageData(0,0,Ct,Ct).data,nt=0;for(let bt=0,ft=dt.length;bt0){nt=Ct-Math.floor(bt/4/Ct);break}if(st.canvas.width=st.canvas.height=0,nt){const bt=nt/(nt+vt);return o.set(_,bt),bt}return o.set(_,Rt),Rt}function et(_,rt,tt){const st=document.createElement("span"),ot={angle:0,canvasWidth:0,hasText:rt.str!=="",hasEOL:rt.hasEOL,fontSize:0};_._textDivs.push(st);const nt=pt.Util.transform(_._transform,rt.transform);let vt=Math.atan2(nt[1],nt[0]);const dt=tt[rt.fontName];dt.vertical&&(vt+=Math.PI/2);const bt=Math.hypot(nt[2],nt[3]),ft=bt*xt(dt.fontFamily,_._isOffscreenCanvasSupported);let at,yt;vt===0?(at=nt[4],yt=nt[5]-ft):(at=nt[4]+ft*Math.sin(vt),yt=nt[5]-ft*Math.cos(vt));const St="calc(var(--scale-factor)*",_t=st.style;_._container===_._rootContainer?(_t.left=`${(100*at/_._pageWidth).toFixed(2)}%`,_t.top=`${(100*yt/_._pageHeight).toFixed(2)}%`):(_t.left=`${St}${at.toFixed(2)}px)`,_t.top=`${St}${yt.toFixed(2)}px)`),_t.fontSize=`${St}${bt.toFixed(2)}px)`,_t.fontFamily=dt.fontFamily,ot.fontSize=bt,st.setAttribute("role","presentation"),st.textContent=rt.str,st.dir=rt.dir,_._fontInspectorEnabled&&(st.dataset.fontName=rt.fontName),vt!==0&&(ot.angle=vt*(180/Math.PI));let Mt=!1;if(rt.str.length>1)Mt=!0;else if(rt.str!==" "&&rt.transform[0]!==rt.transform[3]){const Tt=Math.abs(rt.transform[0]),kt=Math.abs(rt.transform[3]);Tt!==kt&&Math.max(Tt,kt)/Math.min(Tt,kt)>1.5&&(Mt=!0)}Mt&&(ot.canvasWidth=dt.vertical?rt.height:rt.width),_._textDivProperties.set(st,ot),_._isReadableStream&&_._layoutText(st)}function Et(_){const{div:rt,scale:tt,properties:st,ctx:ot,prevFontSize:nt,prevFontFamily:vt}=_,{style:dt}=rt;let bt="";if(st.canvasWidth!==0&&st.hasText){const{fontFamily:ft}=dt,{canvasWidth:at,fontSize:yt}=st;(nt!==yt||vt!==ft)&&(ot.font=`${yt*tt}px ${ft}`,_.prevFontSize=yt,_.prevFontFamily=ft);const{width:St}=ot.measureText(rt.textContent);St>0&&(bt=`scaleX(${at*tt/St})`)}st.angle!==0&&(bt=`rotate(${st.angle}deg) ${bt}`),bt.length>0&&(dt.transform=bt)}function mt(_){if(_._canceled)return;const rt=_._textDivs,tt=_._capability;if(rt.length>Gt){tt.resolve();return}if(!_._isReadableStream)for(const ot of rt)_._layoutText(ot);tt.resolve()}class ut{constructor({textContentSource:rt,container:tt,viewport:st,textDivs:ot,textDivProperties:nt,textContentItemsStr:vt,isOffscreenCanvasSupported:dt}){var St;this._textContentSource=rt,this._isReadableStream=rt instanceof ReadableStream,this._container=this._rootContainer=tt,this._textDivs=ot||[],this._textContentItemsStr=vt||[],this._isOffscreenCanvasSupported=dt,this._fontInspectorEnabled=!!((St=globalThis.FontInspector)!=null&&St.enabled),this._reader=null,this._textDivProperties=nt||new WeakMap,this._canceled=!1,this._capability=new pt.PromiseCapability,this._layoutTextParams={prevFontSize:null,prevFontFamily:null,div:null,scale:st.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:it(0,dt)};const{pageWidth:bt,pageHeight:ft,pageX:at,pageY:yt}=st.rawDims;this._transform=[1,0,0,-1,-at,yt+ft],this._pageWidth=bt,this._pageHeight=ft,(0,Lt.setLayerDimensions)(tt,st),this._capability.promise.finally(()=>{this._layoutTextParams=null}).catch(()=>{})}get promise(){return this._capability.promise}cancel(){this._canceled=!0,this._reader&&(this._reader.cancel(new pt.AbortException("TextLayer task cancelled.")).catch(()=>{}),this._reader=null),this._capability.reject(new pt.AbortException("TextLayer task cancelled."))}_processItems(rt,tt){for(const st of rt){if(st.str===void 0){if(st.type==="beginMarkedContentProps"||st.type==="beginMarkedContent"){const ot=this._container;this._container=document.createElement("span"),this._container.classList.add("markedContent"),st.id!==null&&this._container.setAttribute("id",`${st.id}`),ot.append(this._container)}else st.type==="endMarkedContent"&&(this._container=this._container.parentNode);continue}this._textContentItemsStr.push(st.str),et(this,st,tt)}}_layoutText(rt){const tt=this._layoutTextParams.properties=this._textDivProperties.get(rt);if(this._layoutTextParams.div=rt,Et(this._layoutTextParams),tt.hasText&&this._container.append(rt),tt.hasEOL){const st=document.createElement("br");st.setAttribute("role","presentation"),this._container.append(st)}}_render(){const rt=new pt.PromiseCapability;let tt=Object.create(null);if(this._isReadableStream){const st=()=>{this._reader.read().then(({value:ot,done:nt})=>{if(nt){rt.resolve();return}Object.assign(tt,ot.styles),this._processItems(ot.items,tt),st()},rt.reject)};this._reader=this._textContentSource.getReader(),st()}else if(this._textContentSource){const{items:st,styles:ot}=this._textContentSource;this._processItems(st,ot),rt.resolve()}else throw new Error('No "textContentSource" parameter specified.');rt.promise.then(()=>{tt=null,mt(this)},this._capability.reject)}}i.TextLayerRenderTask=ut;function ht(_){!_.textContentSource&&(_.textContent||_.textContentStream)&&((0,Lt.deprecated)("The TextLayerRender `textContent`/`textContentStream` parameters will be removed in the future, please use `textContentSource` instead."),_.textContentSource=_.textContent||_.textContentStream);const{container:rt,viewport:tt}=_,st=getComputedStyle(rt),ot=st.getPropertyValue("visibility"),nt=parseFloat(st.getPropertyValue("--scale-factor"));ot==="visible"&&(!nt||Math.abs(nt-tt.scale)>1e-5)&&console.error("The `--scale-factor` CSS-variable must be set, to the same value as `viewport.scale`, either on the `container`-element itself or higher up in the DOM.");const vt=new ut(_);return vt._render(),vt}function j({container:_,viewport:rt,textDivs:tt,textDivProperties:st,isOffscreenCanvasSupported:ot,mustRotate:nt=!0,mustRescale:vt=!0}){if(nt&&(0,Lt.setLayerDimensions)(_,{rotation:rt.rotation}),vt){const dt=it(0,ot),ft={prevFontSize:null,prevFontFamily:null,div:null,scale:rt.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:dt};for(const at of tt)ft.properties=st.get(at),ft.div=at,Et(ft)}}},(a,i,_e)=>{var xt,et,Et,mt,ut,ht,j,_,rt,tt,st,O_,nt,tT,dt,F_,ft,B_;Object.defineProperty(i,"__esModule",{value:!0}),i.AnnotationEditorLayer=void 0;var pt=_e(1),Lt=_e(4),Gt=_e(28),Ct=_e(33),Rt=_e(6),o=_e(34);const yt=class{constructor({uiManager:_t,pageIndex:Mt,div:Tt,accessibilityManager:kt,annotationLayer:wt,viewport:ct,l10n:It}){Xo(this,st);Xo(this,nt);Xo(this,dt);Xo(this,ft);Xo(this,xt,void 0);Xo(this,et,!1);Xo(this,Et,null);Xo(this,mt,this.pointerup.bind(this));Xo(this,ut,this.pointerdown.bind(this));Xo(this,ht,new Map);Xo(this,j,!1);Xo(this,_,!1);Xo(this,rt,!1);Xo(this,tt,void 0);const At=[Gt.FreeTextEditor,Ct.InkEditor,o.StampEditor];if(!yt._initialized){yt._initialized=!0;for(const Ot of At)Ot.initialize(It)}_t.registerEditorTypes(At),ks(this,tt,_t),this.pageIndex=Mt,this.div=Tt,ks(this,xt,kt),ks(this,Et,wt),this.viewport=ct,On(this,tt).addLayer(this)}get isEmpty(){return On(this,ht).size===0}updateToolbar(_t){On(this,tt).updateToolbar(_t)}updateMode(_t=On(this,tt).getMode()){hs(this,ft,B_).call(this),_t===pt.AnnotationEditorType.INK?(this.addInkEditorIfNeeded(!1),this.disableClick()):this.enableClick(),_t!==pt.AnnotationEditorType.NONE&&(this.div.classList.toggle("freeTextEditing",_t===pt.AnnotationEditorType.FREETEXT),this.div.classList.toggle("inkEditing",_t===pt.AnnotationEditorType.INK),this.div.classList.toggle("stampEditing",_t===pt.AnnotationEditorType.STAMP),this.div.hidden=!1)}addInkEditorIfNeeded(_t){if(!_t&&On(this,tt).getMode()!==pt.AnnotationEditorType.INK)return;if(!_t){for(const Tt of On(this,ht).values())if(Tt.isEmpty()){Tt.setInBackground();return}}hs(this,nt,tT).call(this,{offsetX:0,offsetY:0},!1).setInBackground()}setEditingState(_t){On(this,tt).setEditingState(_t)}addCommands(_t){On(this,tt).addCommands(_t)}enable(){this.div.style.pointerEvents="auto";const _t=new Set;for(const Tt of On(this,ht).values())Tt.enableEditing(),Tt.annotationElementId&&_t.add(Tt.annotationElementId);if(!On(this,Et))return;const Mt=On(this,Et).getEditableAnnotations();for(const Tt of Mt){if(Tt.hide(),On(this,tt).isDeletedAnnotationElement(Tt.data.id)||_t.has(Tt.data.id))continue;const kt=this.deserialize(Tt);kt&&(this.addOrRebuild(kt),kt.enableEditing())}}disable(){var Mt;ks(this,rt,!0),this.div.style.pointerEvents="none";const _t=new Set;for(const Tt of On(this,ht).values()){if(Tt.disableEditing(),!Tt.annotationElementId||Tt.serialize()!==null){_t.add(Tt.annotationElementId);continue}(Mt=this.getEditableAnnotation(Tt.annotationElementId))==null||Mt.show(),Tt.remove()}if(On(this,Et)){const Tt=On(this,Et).getEditableAnnotations();for(const kt of Tt){const{id:wt}=kt.data;_t.has(wt)||On(this,tt).isDeletedAnnotationElement(wt)||kt.show()}}hs(this,ft,B_).call(this),this.isEmpty&&(this.div.hidden=!0),ks(this,rt,!1)}getEditableAnnotation(_t){var Mt;return((Mt=On(this,Et))==null?void 0:Mt.getEditableAnnotation(_t))||null}setActiveEditor(_t){On(this,tt).getActive()!==_t&&On(this,tt).setActiveEditor(_t)}enableClick(){this.div.addEventListener("pointerdown",On(this,ut)),this.div.addEventListener("pointerup",On(this,mt))}disableClick(){this.div.removeEventListener("pointerdown",On(this,ut)),this.div.removeEventListener("pointerup",On(this,mt))}attach(_t){On(this,ht).set(_t.id,_t);const{annotationElementId:Mt}=_t;Mt&&On(this,tt).isDeletedAnnotationElement(Mt)&&On(this,tt).removeDeletedAnnotationElement(_t)}detach(_t){var Mt;On(this,ht).delete(_t.id),(Mt=On(this,xt))==null||Mt.removePointerInTextLayer(_t.contentDiv),!On(this,rt)&&_t.annotationElementId&&On(this,tt).addDeletedAnnotationElement(_t)}remove(_t){this.detach(_t),On(this,tt).removeEditor(_t),_t.div.contains(document.activeElement)&&setTimeout(()=>{On(this,tt).focusMainContainer()},0),_t.div.remove(),_t.isAttachedToDOM=!1,On(this,_)||this.addInkEditorIfNeeded(!1)}changeParent(_t){var Mt;_t.parent!==this&&(_t.annotationElementId&&(On(this,tt).addDeletedAnnotationElement(_t.annotationElementId),Lt.AnnotationEditor.deleteAnnotationElement(_t),_t.annotationElementId=null),this.attach(_t),(Mt=_t.parent)==null||Mt.detach(_t),_t.setParent(this),_t.div&&_t.isAttachedToDOM&&(_t.div.remove(),this.div.append(_t.div)))}add(_t){if(this.changeParent(_t),On(this,tt).addEditor(_t),this.attach(_t),!_t.isAttachedToDOM){const Mt=_t.render();this.div.append(Mt),_t.isAttachedToDOM=!0}_t.fixAndSetPosition(),_t.onceAdded(),On(this,tt).addToAnnotationStorage(_t)}moveEditorInDOM(_t){var Tt;if(!_t.isAttachedToDOM)return;const{activeElement:Mt}=document;_t.div.contains(Mt)&&(_t._focusEventsAllowed=!1,setTimeout(()=>{_t.div.contains(document.activeElement)?_t._focusEventsAllowed=!0:(_t.div.addEventListener("focusin",()=>{_t._focusEventsAllowed=!0},{once:!0}),Mt.focus())},0)),_t._structTreeParentId=(Tt=On(this,xt))==null?void 0:Tt.moveElementInDOM(this.div,_t.div,_t.contentDiv,!0)}addOrRebuild(_t){_t.needsToBeRebuilt()?_t.rebuild():this.add(_t)}addUndoableEditor(_t){const Mt=()=>_t._uiManager.rebuild(_t),Tt=()=>{_t.remove()};this.addCommands({cmd:Mt,undo:Tt,mustExec:!1})}getNextId(){return On(this,tt).getId()}pasteEditor(_t,Mt){On(this,tt).updateToolbar(_t),On(this,tt).updateMode(_t);const{offsetX:Tt,offsetY:kt}=hs(this,dt,F_).call(this),wt=this.getNextId(),ct=hs(this,st,O_).call(this,{parent:this,id:wt,x:Tt,y:kt,uiManager:On(this,tt),isCentered:!0,...Mt});ct&&this.add(ct)}deserialize(_t){switch(_t.annotationType??_t.annotationEditorType){case pt.AnnotationEditorType.FREETEXT:return Gt.FreeTextEditor.deserialize(_t,this,On(this,tt));case pt.AnnotationEditorType.INK:return Ct.InkEditor.deserialize(_t,this,On(this,tt));case pt.AnnotationEditorType.STAMP:return o.StampEditor.deserialize(_t,this,On(this,tt))}return null}addNewEditor(){hs(this,nt,tT).call(this,hs(this,dt,F_).call(this),!0)}setSelected(_t){On(this,tt).setSelected(_t)}toggleSelected(_t){On(this,tt).toggleSelected(_t)}isSelected(_t){return On(this,tt).isSelected(_t)}unselect(_t){On(this,tt).unselect(_t)}pointerup(_t){const{isMac:Mt}=pt.FeatureTest.platform;if(!(_t.button!==0||_t.ctrlKey&&Mt)&&_t.target===this.div&&On(this,j)){if(ks(this,j,!1),!On(this,et)){ks(this,et,!0);return}if(On(this,tt).getMode()===pt.AnnotationEditorType.STAMP){On(this,tt).unselectAll();return}hs(this,nt,tT).call(this,_t,!1)}}pointerdown(_t){if(On(this,j)){ks(this,j,!1);return}const{isMac:Mt}=pt.FeatureTest.platform;if(_t.button!==0||_t.ctrlKey&&Mt||_t.target!==this.div)return;ks(this,j,!0);const Tt=On(this,tt).getActive();ks(this,et,!Tt||Tt.isEmpty())}findNewParent(_t,Mt,Tt){const kt=On(this,tt).findParent(Mt,Tt);return kt===null||kt===this?!1:(kt.changeParent(_t),!0)}destroy(){var _t,Mt;((_t=On(this,tt).getActive())==null?void 0:_t.parent)===this&&(On(this,tt).commitOrRemove(),On(this,tt).setActiveEditor(null));for(const Tt of On(this,ht).values())(Mt=On(this,xt))==null||Mt.removePointerInTextLayer(Tt.contentDiv),Tt.setParent(null),Tt.isAttachedToDOM=!1,Tt.div.remove();this.div=null,On(this,ht).clear(),On(this,tt).removeLayer(this)}render({viewport:_t}){this.viewport=_t,(0,Rt.setLayerDimensions)(this.div,_t);for(const Mt of On(this,tt).getEditors(this.pageIndex))this.add(Mt);this.updateMode()}update({viewport:_t}){On(this,tt).commitOrRemove(),this.viewport=_t,(0,Rt.setLayerDimensions)(this.div,{rotation:_t.rotation}),this.updateMode()}get pageDimensions(){const{pageWidth:_t,pageHeight:Mt}=this.viewport.rawDims;return[_t,Mt]}};let it=yt;xt=new WeakMap,et=new WeakMap,Et=new WeakMap,mt=new WeakMap,ut=new WeakMap,ht=new WeakMap,j=new WeakMap,_=new WeakMap,rt=new WeakMap,tt=new WeakMap,st=new WeakSet,O_=function(_t){switch(On(this,tt).getMode()){case pt.AnnotationEditorType.FREETEXT:return new Gt.FreeTextEditor(_t);case pt.AnnotationEditorType.INK:return new Ct.InkEditor(_t);case pt.AnnotationEditorType.STAMP:return new o.StampEditor(_t)}return null},nt=new WeakSet,tT=function(_t,Mt){const Tt=this.getNextId(),kt=hs(this,st,O_).call(this,{parent:this,id:Tt,x:_t.offsetX,y:_t.offsetY,uiManager:On(this,tt),isCentered:Mt});return kt&&this.add(kt),kt},dt=new WeakSet,F_=function(){const{x:_t,y:Mt,width:Tt,height:kt}=this.div.getBoundingClientRect(),wt=Math.max(0,_t),ct=Math.max(0,Mt),It=Math.min(window.innerWidth,_t+Tt),At=Math.min(window.innerHeight,Mt+kt),Ot=(wt+It)/2-_t,Pt=(ct+At)/2-Mt,[zt,Dt]=this.viewport.rotation%180===0?[Ot,Pt]:[Pt,Ot];return{offsetX:zt,offsetY:Dt}},ft=new WeakSet,B_=function(){ks(this,_,!0);for(const _t of On(this,ht).values())_t.isEmpty()&&_t.remove();ks(this,_,!1)},Dp(it,"_initialized",!1),i.AnnotationEditorLayer=it},(a,i,_e)=>{var o,it,xt,et,Et,mt,ut,ht,j,_,vS,tt,gS,ot,mS,vt,X2,bt,z_,at,yS,St,U_;Object.defineProperty(i,"__esModule",{value:!0}),i.FreeTextEditor=void 0;var pt=_e(1),Lt=_e(5),Gt=_e(4),Ct=_e(29);const Mt=class extends Gt.AnnotationEditor{constructor(wt){super({...wt,name:"freeTextEditor"});Xo(this,_);Xo(this,tt);Xo(this,ot);Xo(this,vt);Xo(this,bt);Xo(this,at);Xo(this,St);Xo(this,o,this.editorDivBlur.bind(this));Xo(this,it,this.editorDivFocus.bind(this));Xo(this,xt,this.editorDivInput.bind(this));Xo(this,et,this.editorDivKeydown.bind(this));Xo(this,Et,void 0);Xo(this,mt,"");Xo(this,ut,`${this.id}-editor`);Xo(this,ht,void 0);Xo(this,j,null);ks(this,Et,wt.color||Mt._defaultColor||Gt.AnnotationEditor._defaultLineColor),ks(this,ht,wt.fontSize||Mt._defaultFontSize)}static get _keyboardManager(){const wt=Mt.prototype,ct=Ot=>Ot.isEmpty(),It=Lt.AnnotationEditorUIManager.TRANSLATE_SMALL,At=Lt.AnnotationEditorUIManager.TRANSLATE_BIG;return(0,pt.shadow)(this,"_keyboardManager",new Lt.KeyboardManager([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],wt.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],wt.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],wt._translateEmpty,{args:[-It,0],checker:ct}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],wt._translateEmpty,{args:[-At,0],checker:ct}],[["ArrowRight","mac+ArrowRight"],wt._translateEmpty,{args:[It,0],checker:ct}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],wt._translateEmpty,{args:[At,0],checker:ct}],[["ArrowUp","mac+ArrowUp"],wt._translateEmpty,{args:[0,-It],checker:ct}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],wt._translateEmpty,{args:[0,-At],checker:ct}],[["ArrowDown","mac+ArrowDown"],wt._translateEmpty,{args:[0,It],checker:ct}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],wt._translateEmpty,{args:[0,At],checker:ct}]]))}static initialize(wt){Gt.AnnotationEditor.initialize(wt,{strings:["free_text2_default_content","editor_free_text2_aria_label"]});const ct=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(ct.getPropertyValue("--freetext-padding"))}static updateDefaultParams(wt,ct){switch(wt){case pt.AnnotationEditorParamsType.FREETEXT_SIZE:Mt._defaultFontSize=ct;break;case pt.AnnotationEditorParamsType.FREETEXT_COLOR:Mt._defaultColor=ct;break}}updateParams(wt,ct){switch(wt){case pt.AnnotationEditorParamsType.FREETEXT_SIZE:hs(this,_,vS).call(this,ct);break;case pt.AnnotationEditorParamsType.FREETEXT_COLOR:hs(this,tt,gS).call(this,ct);break}}static get defaultPropertiesToUpdate(){return[[pt.AnnotationEditorParamsType.FREETEXT_SIZE,Mt._defaultFontSize],[pt.AnnotationEditorParamsType.FREETEXT_COLOR,Mt._defaultColor||Gt.AnnotationEditor._defaultLineColor]]}get propertiesToUpdate(){return[[pt.AnnotationEditorParamsType.FREETEXT_SIZE,On(this,ht)],[pt.AnnotationEditorParamsType.FREETEXT_COLOR,On(this,Et)]]}_translateEmpty(wt,ct){this._uiManager.translateSelectedEditors(wt,ct,!0)}getInitialTranslation(){const wt=this.parentScale;return[-Mt._internalPadding*wt,-(Mt._internalPadding+On(this,ht))*wt]}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.isAttachedToDOM||this.parent.add(this)))}enableEditMode(){this.isInEditMode()||(this.parent.setEditingState(!1),this.parent.updateToolbar(pt.AnnotationEditorType.FREETEXT),super.enableEditMode(),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant"),this.editorDiv.addEventListener("keydown",On(this,et)),this.editorDiv.addEventListener("focus",On(this,it)),this.editorDiv.addEventListener("blur",On(this,o)),this.editorDiv.addEventListener("input",On(this,xt)))}disableEditMode(){this.isInEditMode()&&(this.parent.setEditingState(!0),super.disableEditMode(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",On(this,ut)),this._isDraggable=!0,this.editorDiv.removeEventListener("keydown",On(this,et)),this.editorDiv.removeEventListener("focus",On(this,it)),this.editorDiv.removeEventListener("blur",On(this,o)),this.editorDiv.removeEventListener("input",On(this,xt)),this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freeTextEditing"))}focusin(wt){this._focusEventsAllowed&&(super.focusin(wt),wt.target!==this.editorDiv&&this.editorDiv.focus())}onceAdded(){var wt;if(this.width){hs(this,St,U_).call(this);return}this.enableEditMode(),this.editorDiv.focus(),(wt=this._initialOptions)!=null&&wt.isCentered&&this.center(),this._initialOptions=null}isEmpty(){return!this.editorDiv||this.editorDiv.innerText.trim()===""}remove(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add("freeTextEditing")),super.remove()}commit(){if(!this.isInEditMode())return;super.commit(),this.disableEditMode();const wt=On(this,mt),ct=ks(this,mt,hs(this,ot,mS).call(this).trimEnd());if(wt===ct)return;const It=At=>{if(ks(this,mt,At),!At){this.remove();return}hs(this,bt,z_).call(this),this._uiManager.rebuild(this),hs(this,vt,X2).call(this)};this.addCommands({cmd:()=>{It(ct)},undo:()=>{It(wt)},mustExec:!1}),hs(this,vt,X2).call(this)}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}dblclick(wt){this.enterInEditMode()}keydown(wt){wt.target===this.div&&wt.key==="Enter"&&(this.enterInEditMode(),wt.preventDefault())}editorDivKeydown(wt){Mt._keyboardManager.exec(this,wt)}editorDivFocus(wt){this.isEditing=!0}editorDivBlur(wt){this.isEditing=!1}editorDivInput(wt){this.parent.div.classList.toggle("freeTextEditing",this.isEmpty())}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}render(){if(this.div)return this.div;let wt,ct;this.width&&(wt=this.x,ct=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",On(this,ut)),this.enableEditing(),Gt.AnnotationEditor._l10nPromise.get("editor_free_text2_aria_label").then(At=>{var Ot;return(Ot=this.editorDiv)==null?void 0:Ot.setAttribute("aria-label",At)}),Gt.AnnotationEditor._l10nPromise.get("free_text2_default_content").then(At=>{var Ot;return(Ot=this.editorDiv)==null?void 0:Ot.setAttribute("default-content",At)}),this.editorDiv.contentEditable=!0;const{style:It}=this.editorDiv;if(It.fontSize=`calc(${On(this,ht)}px * var(--scale-factor))`,It.color=On(this,Et),this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),(0,Lt.bindEvents)(this,this.div,["dblclick","keydown"]),this.width){const[At,Ot]=this.parentDimensions;if(this.annotationElementId){const{position:Pt}=On(this,j);let[zt,Dt]=this.getInitialTranslation();[zt,Dt]=this.pageTranslationToScreen(zt,Dt);const[Nt,$t]=this.pageDimensions,[Ut,Ht]=this.pageTranslation;let Vt,Xt;switch(this.rotation){case 0:Vt=wt+(Pt[0]-Ut)/Nt,Xt=ct+this.height-(Pt[1]-Ht)/$t;break;case 90:Vt=wt+(Pt[0]-Ut)/Nt,Xt=ct-(Pt[1]-Ht)/$t,[zt,Dt]=[Dt,-zt];break;case 180:Vt=wt-this.width+(Pt[0]-Ut)/Nt,Xt=ct-(Pt[1]-Ht)/$t,[zt,Dt]=[-zt,-Dt];break;case 270:Vt=wt+(Pt[0]-Ut-this.height*$t)/Nt,Xt=ct+(Pt[1]-Ht-this.width*Nt)/$t,[zt,Dt]=[-Dt,zt];break}this.setAt(Vt*At,Xt*Ot,zt,Dt)}else this.setAt(wt*At,ct*Ot,this.width*At,this.height*Ot);hs(this,bt,z_).call(this),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}get contentDiv(){return this.editorDiv}static deserialize(wt,ct,It){let At=null;if(wt instanceof Ct.FreeTextAnnotationElement){const{data:{defaultAppearanceData:{fontSize:Pt,fontColor:zt},rect:Dt,rotation:Nt,id:$t},textContent:Ut,textPosition:Ht,parent:{page:{pageNumber:Vt}}}=wt;if(!Ut||Ut.length===0)return null;At=wt={annotationType:pt.AnnotationEditorType.FREETEXT,color:Array.from(zt),fontSize:Pt,value:Ut.join(` -`),position:Ht,pageIndex:Vt-1,rect:Dt,rotation:Nt,id:$t,deleted:!1}}const Ot=super.deserialize(wt,ct,It);return ks(Ot,ht,wt.fontSize),ks(Ot,Et,pt.Util.makeHexColor(...wt.color)),ks(Ot,mt,wt.value),Ot.annotationElementId=wt.id||null,ks(Ot,j,At),Ot}serialize(wt=!1){if(this.isEmpty())return null;if(this.deleted)return{pageIndex:this.pageIndex,id:this.annotationElementId,deleted:!0};const ct=Mt._internalPadding*this.parentScale,It=this.getRect(ct,ct),At=Gt.AnnotationEditor._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:On(this,Et)),Ot={annotationType:pt.AnnotationEditorType.FREETEXT,color:At,fontSize:On(this,ht),value:On(this,mt),pageIndex:this.pageIndex,rect:It,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return wt?Ot:this.annotationElementId&&!hs(this,at,yS).call(this,Ot)?null:(Ot.id=this.annotationElementId,Ot)}};let Rt=Mt;o=new WeakMap,it=new WeakMap,xt=new WeakMap,et=new WeakMap,Et=new WeakMap,mt=new WeakMap,ut=new WeakMap,ht=new WeakMap,j=new WeakMap,_=new WeakSet,vS=function(wt){const ct=At=>{this.editorDiv.style.fontSize=`calc(${At}px * var(--scale-factor))`,this.translate(0,-(At-On(this,ht))*this.parentScale),ks(this,ht,At),hs(this,vt,X2).call(this)},It=On(this,ht);this.addCommands({cmd:()=>{ct(wt)},undo:()=>{ct(It)},mustExec:!0,type:pt.AnnotationEditorParamsType.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})},tt=new WeakSet,gS=function(wt){const ct=On(this,Et);this.addCommands({cmd:()=>{ks(this,Et,this.editorDiv.style.color=wt)},undo:()=>{ks(this,Et,this.editorDiv.style.color=ct)},mustExec:!0,type:pt.AnnotationEditorParamsType.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})},ot=new WeakSet,mS=function(){const wt=this.editorDiv.getElementsByTagName("div");if(wt.length===0)return this.editorDiv.innerText;const ct=[];for(const It of wt)ct.push(It.innerText.replace(/\r\n?|\n/,""));return ct.join(` -`)},vt=new WeakSet,X2=function(){const[wt,ct]=this.parentDimensions;let It;if(this.isAttachedToDOM)It=this.div.getBoundingClientRect();else{const{currentLayer:At,div:Ot}=this,Pt=Ot.style.display;Ot.style.display="hidden",At.div.append(this.div),It=Ot.getBoundingClientRect(),Ot.remove(),Ot.style.display=Pt}this.rotation%180===this.parentRotation%180?(this.width=It.width/wt,this.height=It.height/ct):(this.width=It.height/wt,this.height=It.width/ct),this.fixAndSetPosition()},bt=new WeakSet,z_=function(){if(this.editorDiv.replaceChildren(),!!On(this,mt))for(const wt of On(this,mt).split(` -`)){const ct=document.createElement("div");ct.append(wt?document.createTextNode(wt):document.createElement("br")),this.editorDiv.append(ct)}},at=new WeakSet,yS=function(wt){const{value:ct,fontSize:It,color:At,rect:Ot,pageIndex:Pt}=On(this,j);return wt.value!==ct||wt.fontSize!==It||wt.rect.some((zt,Dt)=>Math.abs(zt-Ot[Dt])>=1)||wt.color.some((zt,Dt)=>zt!==At[Dt])||wt.pageIndex!==Pt},St=new WeakSet,U_=function(wt=!1){if(!this.annotationElementId)return;if(hs(this,vt,X2).call(this),!wt&&(this.width===0||this.height===0)){setTimeout(()=>hs(this,St,U_).call(this,!0),0);return}const ct=Mt._internalPadding*this.parentScale;On(this,j).rect=this.getRect(ct,ct)},Dp(Rt,"_freeTextDefaultContent",""),Dp(Rt,"_internalPadding",0),Dp(Rt,"_defaultColor",null),Dp(Rt,"_defaultFontSize",10),Dp(Rt,"_type","freetext"),i.FreeTextEditor=Rt},(a,i,_e)=>{var Dt,$t,Dx,Ht,xS,Xt,qt,er,lr,Jt,Yt,rr,jt,ar,sr,Zt,Kt,or,tr,cr,hr,br,Tr,bS,Ar,rT,Er,$_,zr,H_,kr,Nr,Qr,sn,un,qr,Xr,G_,mn,pn,En,Jr,ES,Ur,V_;Object.defineProperty(i,"__esModule",{value:!0}),i.StampAnnotationElement=i.InkAnnotationElement=i.FreeTextAnnotationElement=i.AnnotationLayer=void 0;var pt=_e(1),Lt=_e(6),Gt=_e(3),Ct=_e(30),Rt=_e(31),o=_e(32);const it=1e3,xt=9,et=new WeakSet;function Et(Gr){return{width:Gr[2]-Gr[0],height:Gr[3]-Gr[1]}}class mt{static create(wr){switch(wr.data.annotationType){case pt.AnnotationType.LINK:return new ht(wr);case pt.AnnotationType.TEXT:return new j(wr);case pt.AnnotationType.WIDGET:switch(wr.data.fieldType){case"Tx":return new rt(wr);case"Btn":return wr.data.radioButton?new ot(wr):wr.data.checkBox?new st(wr):new nt(wr);case"Ch":return new vt(wr);case"Sig":return new tt(wr)}return new _(wr);case pt.AnnotationType.POPUP:return new dt(wr);case pt.AnnotationType.FREETEXT:return new ft(wr);case pt.AnnotationType.LINE:return new at(wr);case pt.AnnotationType.SQUARE:return new yt(wr);case pt.AnnotationType.CIRCLE:return new St(wr);case pt.AnnotationType.POLYLINE:return new _t(wr);case pt.AnnotationType.CARET:return new Tt(wr);case pt.AnnotationType.INK:return new kt(wr);case pt.AnnotationType.POLYGON:return new Mt(wr);case pt.AnnotationType.HIGHLIGHT:return new wt(wr);case pt.AnnotationType.UNDERLINE:return new ct(wr);case pt.AnnotationType.SQUIGGLY:return new It(wr);case pt.AnnotationType.STRIKEOUT:return new At(wr);case pt.AnnotationType.STAMP:return new Ot(wr);case pt.AnnotationType.FILEATTACHMENT:return new Pt(wr);default:return new ut(wr)}}}const Nt=class{constructor(wr,{isRenderable:vr=!1,ignoreBorder:Dr=!1,createQuadrilaterals:Sr=!1}={}){Xo(this,Dt,!1);this.isRenderable=vr,this.data=wr.data,this.layer=wr.layer,this.linkService=wr.linkService,this.downloadManager=wr.downloadManager,this.imageResourcesPath=wr.imageResourcesPath,this.renderForms=wr.renderForms,this.svgFactory=wr.svgFactory,this.annotationStorage=wr.annotationStorage,this.enableScripting=wr.enableScripting,this.hasJSActions=wr.hasJSActions,this._fieldObjects=wr.fieldObjects,this.parent=wr.parent,vr&&(this.container=this._createContainer(Dr)),Sr&&this._createQuadrilaterals()}static _hasPopupData({titleObj:wr,contentsObj:vr,richText:Dr}){return!!(wr!=null&&wr.str||vr!=null&&vr.str||Dr!=null&&Dr.str)}get hasPopupData(){return Nt._hasPopupData(this.data)}_createContainer(wr){const{data:vr,parent:{page:Dr,viewport:Sr}}=this,ur=document.createElement("section");ur.setAttribute("data-annotation-id",vr.id),this instanceof _||(ur.tabIndex=it),ur.style.zIndex=this.parent.zIndex++,this.data.popupRef&&ur.setAttribute("aria-haspopup","dialog"),vr.noRotate&&ur.classList.add("norotate");const{pageWidth:xr,pageHeight:Pr,pageX:Vr,pageY:en}=Sr.rawDims;if(!vr.rect||this instanceof dt){const{rotation:bn}=vr;return!vr.hasOwnCanvas&&bn!==0&&this.setRotation(bn,ur),ur}const{width:rn,height:Cn}=Et(vr.rect),xn=pt.Util.normalizeRect([vr.rect[0],Dr.view[3]-vr.rect[1]+Dr.view[1],vr.rect[2],Dr.view[3]-vr.rect[3]+Dr.view[1]]);if(!wr&&vr.borderStyle.width>0){ur.style.borderWidth=`${vr.borderStyle.width}px`;const bn=vr.borderStyle.horizontalCornerRadius,Un=vr.borderStyle.verticalCornerRadius;if(bn>0||Un>0){const yn=`calc(${bn}px * var(--scale-factor)) / calc(${Un}px * var(--scale-factor))`;ur.style.borderRadius=yn}else if(this instanceof ot){const yn=`calc(${rn}px * var(--scale-factor)) / calc(${Cn}px * var(--scale-factor))`;ur.style.borderRadius=yn}switch(vr.borderStyle.style){case pt.AnnotationBorderStyleType.SOLID:ur.style.borderStyle="solid";break;case pt.AnnotationBorderStyleType.DASHED:ur.style.borderStyle="dashed";break;case pt.AnnotationBorderStyleType.BEVELED:(0,pt.warn)("Unimplemented border style: beveled");break;case pt.AnnotationBorderStyleType.INSET:(0,pt.warn)("Unimplemented border style: inset");break;case pt.AnnotationBorderStyleType.UNDERLINE:ur.style.borderBottomStyle="solid";break}const _i=vr.borderColor||null;_i?(ks(this,Dt,!0),ur.style.borderColor=pt.Util.makeHexColor(_i[0]|0,_i[1]|0,_i[2]|0)):ur.style.borderWidth=0}ur.style.left=`${100*(xn[0]-Vr)/xr}%`,ur.style.top=`${100*(xn[1]-en)/Pr}%`;const{rotation:fn}=vr;return vr.hasOwnCanvas||fn===0?(ur.style.width=`${100*rn/xr}%`,ur.style.height=`${100*Cn/Pr}%`):this.setRotation(fn,ur),ur}setRotation(wr,vr=this.container){if(!this.data.rect)return;const{pageWidth:Dr,pageHeight:Sr}=this.parent.viewport.rawDims,{width:ur,height:xr}=Et(this.data.rect);let Pr,Vr;wr%180===0?(Pr=100*ur/Dr,Vr=100*xr/Sr):(Pr=100*xr/Dr,Vr=100*ur/Sr),vr.style.width=`${Pr}%`,vr.style.height=`${Vr}%`,vr.setAttribute("data-main-rotation",(360-wr)%360)}get _commonActions(){const wr=(vr,Dr,Sr)=>{const ur=Sr.detail[vr],xr=ur[0],Pr=ur.slice(1);Sr.target.style[Dr]=Ct.ColorConverters[`${xr}_HTML`](Pr),this.annotationStorage.setValue(this.data.id,{[Dr]:Ct.ColorConverters[`${xr}_rgb`](Pr)})};return(0,pt.shadow)(this,"_commonActions",{display:vr=>{const{display:Dr}=vr.detail,Sr=Dr%2===1;this.container.style.visibility=Sr?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:Sr,noPrint:Dr===1||Dr===2})},print:vr=>{this.annotationStorage.setValue(this.data.id,{noPrint:!vr.detail.print})},hidden:vr=>{const{hidden:Dr}=vr.detail;this.container.style.visibility=Dr?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:Dr,noView:Dr})},focus:vr=>{setTimeout(()=>vr.target.focus({preventScroll:!1}),0)},userName:vr=>{vr.target.title=vr.detail.userName},readonly:vr=>{vr.target.disabled=vr.detail.readonly},required:vr=>{this._setRequired(vr.target,vr.detail.required)},bgColor:vr=>{wr("bgColor","backgroundColor",vr)},fillColor:vr=>{wr("fillColor","backgroundColor",vr)},fgColor:vr=>{wr("fgColor","color",vr)},textColor:vr=>{wr("textColor","color",vr)},borderColor:vr=>{wr("borderColor","borderColor",vr)},strokeColor:vr=>{wr("strokeColor","borderColor",vr)},rotation:vr=>{const Dr=vr.detail.rotation;this.setRotation(Dr),this.annotationStorage.setValue(this.data.id,{rotation:Dr})}})}_dispatchEventFromSandbox(wr,vr){const Dr=this._commonActions;for(const Sr of Object.keys(vr.detail)){const ur=wr[Sr]||Dr[Sr];ur==null||ur(vr)}}_setDefaultPropertiesFromJS(wr){if(!this.enableScripting)return;const vr=this.annotationStorage.getRawValue(this.data.id);if(!vr)return;const Dr=this._commonActions;for(const[Sr,ur]of Object.entries(vr)){const xr=Dr[Sr];if(xr){const Pr={detail:{[Sr]:ur},target:wr};xr(Pr),delete vr[Sr]}}}_createQuadrilaterals(){if(!this.container)return;const{quadPoints:wr}=this.data;if(!wr)return;const[vr,Dr,Sr,ur]=this.data.rect;if(wr.length===1){const[,{x:Un,y:_i},{x:yn,y:Kn}]=wr[0];if(Sr===Un&&ur===_i&&vr===yn&&Dr===Kn)return}const{style:xr}=this.container;let Pr;if(On(this,Dt)){const{borderColor:Un,borderWidth:_i}=xr;xr.borderWidth=0,Pr=["url('data:image/svg+xml;utf8,",'',``],this.container.classList.add("hasBorder")}const Vr=Sr-vr,en=ur-Dr,{svgFactory:rn}=this,Cn=rn.createElement("svg");Cn.classList.add("quadrilateralsContainer"),Cn.setAttribute("width",0),Cn.setAttribute("height",0);const xn=rn.createElement("defs");Cn.append(xn);const fn=rn.createElement("clipPath"),bn=`clippath_${this.data.id}`;fn.setAttribute("id",bn),fn.setAttribute("clipPathUnits","objectBoundingBox"),xn.append(fn);for(const[,{x:Un,y:_i},{x:yn,y:Kn}]of wr){const Jn=rn.createElement("rect"),so=(yn-vr)/Vr,ba=(ur-_i)/en,An=(Un-yn)/Vr,hn=(_i-Kn)/en;Jn.setAttribute("x",so),Jn.setAttribute("y",ba),Jn.setAttribute("width",An),Jn.setAttribute("height",hn),fn.append(Jn),Pr==null||Pr.push(``)}On(this,Dt)&&(Pr.push("')"),xr.backgroundImage=Pr.join("")),this.container.append(Cn),this.container.style.clipPath=`url(#${bn})`}_createPopup(){const{container:wr,data:vr}=this;wr.setAttribute("aria-haspopup","dialog");const Dr=new dt({data:{color:vr.color,titleObj:vr.titleObj,modificationDate:vr.modificationDate,contentsObj:vr.contentsObj,richText:vr.richText,parentRect:vr.rect,borderStyle:0,id:`popup_${vr.id}`,rotation:vr.rotation},parent:this.parent,elements:[this]});this.parent.div.append(Dr.render())}render(){(0,pt.unreachable)("Abstract method `AnnotationElement.render` called")}_getElementsByName(wr,vr=null){const Dr=[];if(this._fieldObjects){const Sr=this._fieldObjects[wr];if(Sr)for(const{page:ur,id:xr,exportValues:Pr}of Sr){if(ur===-1||xr===vr)continue;const Vr=typeof Pr=="string"?Pr:null,en=document.querySelector(`[data-element-id="${xr}"]`);if(en&&!et.has(en)){(0,pt.warn)(`_getElementsByName - element not allowed: ${xr}`);continue}Dr.push({id:xr,exportValue:Vr,domElement:en})}return Dr}for(const Sr of document.getElementsByName(wr)){const{exportValue:ur}=Sr,xr=Sr.getAttribute("data-element-id");xr!==vr&&et.has(Sr)&&Dr.push({id:xr,exportValue:ur,domElement:Sr})}return Dr}show(){var wr;this.container&&(this.container.hidden=!1),(wr=this.popup)==null||wr.maybeShow()}hide(){var wr;this.container&&(this.container.hidden=!0),(wr=this.popup)==null||wr.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){const wr=this.getElementsToTriggerPopup();if(Array.isArray(wr))for(const vr of wr)vr.classList.add("highlightArea");else wr.classList.add("highlightArea")}_editOnDoubleClick(){const{annotationEditorType:wr,data:{id:vr}}=this;this.container.addEventListener("dblclick",()=>{var Dr;(Dr=this.linkService.eventBus)==null||Dr.dispatch("switchannotationeditormode",{source:this,mode:wr,editId:vr})})}};let ut=Nt;Dt=new WeakMap;class ht extends ut{constructor(vr,Dr=null){super(vr,{isRenderable:!0,ignoreBorder:!!(Dr!=null&&Dr.ignoreBorder),createQuadrilaterals:!0});Xo(this,$t);Xo(this,Ht);this.isTooltipOnly=vr.data.isTooltipOnly}render(){const{data:vr,linkService:Dr}=this,Sr=document.createElement("a");Sr.setAttribute("data-element-id",vr.id);let ur=!1;return vr.url?(Dr.addLinkAttributes(Sr,vr.url,vr.newWindow),ur=!0):vr.action?(this._bindNamedAction(Sr,vr.action),ur=!0):vr.attachment?(this._bindAttachment(Sr,vr.attachment),ur=!0):vr.setOCGState?(hs(this,Ht,xS).call(this,Sr,vr.setOCGState),ur=!0):vr.dest?(this._bindLink(Sr,vr.dest),ur=!0):(vr.actions&&(vr.actions.Action||vr.actions["Mouse Up"]||vr.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(Sr,vr),ur=!0),vr.resetForm?(this._bindResetFormAction(Sr,vr.resetForm),ur=!0):this.isTooltipOnly&&!ur&&(this._bindLink(Sr,""),ur=!0)),this.container.classList.add("linkAnnotation"),ur&&this.container.append(Sr),this.container}_bindLink(vr,Dr){vr.href=this.linkService.getDestinationHash(Dr),vr.onclick=()=>(Dr&&this.linkService.goToDestination(Dr),!1),(Dr||Dr==="")&&hs(this,$t,Dx).call(this)}_bindNamedAction(vr,Dr){vr.href=this.linkService.getAnchorUrl(""),vr.onclick=()=>(this.linkService.executeNamedAction(Dr),!1),hs(this,$t,Dx).call(this)}_bindAttachment(vr,Dr){vr.href=this.linkService.getAnchorUrl(""),vr.onclick=()=>{var Sr;return(Sr=this.downloadManager)==null||Sr.openOrDownloadData(this.container,Dr.content,Dr.filename),!1},hs(this,$t,Dx).call(this)}_bindJSAction(vr,Dr){vr.href=this.linkService.getAnchorUrl("");const Sr=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const ur of Object.keys(Dr.actions)){const xr=Sr.get(ur);xr&&(vr[xr]=()=>{var Pr;return(Pr=this.linkService.eventBus)==null||Pr.dispatch("dispatcheventinsandbox",{source:this,detail:{id:Dr.id,name:ur}}),!1})}vr.onclick||(vr.onclick=()=>!1),hs(this,$t,Dx).call(this)}_bindResetFormAction(vr,Dr){const Sr=vr.onclick;if(Sr||(vr.href=this.linkService.getAnchorUrl("")),hs(this,$t,Dx).call(this),!this._fieldObjects){(0,pt.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),Sr||(vr.onclick=()=>!1);return}vr.onclick=()=>{var Cn;Sr==null||Sr();const{fields:ur,refs:xr,include:Pr}=Dr,Vr=[];if(ur.length!==0||xr.length!==0){const xn=new Set(xr);for(const fn of ur){const bn=this._fieldObjects[fn]||[];for(const{id:Un}of bn)xn.add(Un)}for(const fn of Object.values(this._fieldObjects))for(const bn of fn)xn.has(bn.id)===Pr&&Vr.push(bn)}else for(const xn of Object.values(this._fieldObjects))Vr.push(...xn);const en=this.annotationStorage,rn=[];for(const xn of Vr){const{id:fn}=xn;switch(rn.push(fn),xn.type){case"text":{const Un=xn.defaultValue||"";en.setValue(fn,{value:Un});break}case"checkbox":case"radiobutton":{const Un=xn.defaultValue===xn.exportValues;en.setValue(fn,{value:Un});break}case"combobox":case"listbox":{const Un=xn.defaultValue||"";en.setValue(fn,{value:Un});break}default:continue}const bn=document.querySelector(`[data-element-id="${fn}"]`);if(bn){if(!et.has(bn)){(0,pt.warn)(`_bindResetFormAction - element not allowed: ${fn}`);continue}}else continue;bn.dispatchEvent(new Event("resetform"))}return this.enableScripting&&((Cn=this.linkService.eventBus)==null||Cn.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:rn,name:"ResetForm"}})),!1}}}$t=new WeakSet,Dx=function(){this.container.setAttribute("data-internal-link","")},Ht=new WeakSet,xS=function(vr,Dr){vr.href=this.linkService.getAnchorUrl(""),vr.onclick=()=>(this.linkService.executeSetOCGState(Dr),!1),hs(this,$t,Dx).call(this)};class j extends ut{constructor(wr){super(wr,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");const wr=document.createElement("img");return wr.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",wr.alt="[{{type}} Annotation]",wr.dataset.l10nId="text_annotation_type",wr.dataset.l10nArgs=JSON.stringify({type:this.data.name}),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(wr),this.container}}class _ extends ut{render(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}showElementAndHideCanvas(wr){var vr;this.data.hasOwnCanvas&&(((vr=wr.previousSibling)==null?void 0:vr.nodeName)==="CANVAS"&&(wr.previousSibling.hidden=!0),wr.hidden=!1)}_getKeyModifier(wr){const{isWin:vr,isMac:Dr}=pt.FeatureTest.platform;return vr&&wr.ctrlKey||Dr&&wr.metaKey}_setEventListener(wr,vr,Dr,Sr,ur){Dr.includes("mouse")?wr.addEventListener(Dr,xr=>{var Pr;(Pr=this.linkService.eventBus)==null||Pr.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:Sr,value:ur(xr),shift:xr.shiftKey,modifier:this._getKeyModifier(xr)}})}):wr.addEventListener(Dr,xr=>{var Pr;if(Dr==="blur"){if(!vr.focused||!xr.relatedTarget)return;vr.focused=!1}else if(Dr==="focus"){if(vr.focused)return;vr.focused=!0}ur&&((Pr=this.linkService.eventBus)==null||Pr.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:Sr,value:ur(xr)}}))})}_setEventListeners(wr,vr,Dr,Sr){var ur,xr,Pr;for(const[Vr,en]of Dr)(en==="Action"||(ur=this.data.actions)!=null&&ur[en])&&((en==="Focus"||en==="Blur")&&(vr||(vr={focused:!1})),this._setEventListener(wr,vr,Vr,en,Sr),en==="Focus"&&!((xr=this.data.actions)!=null&&xr.Blur)?this._setEventListener(wr,vr,"blur","Blur",null):en==="Blur"&&!((Pr=this.data.actions)!=null&&Pr.Focus)&&this._setEventListener(wr,vr,"focus","Focus",null))}_setBackgroundColor(wr){const vr=this.data.backgroundColor||null;wr.style.backgroundColor=vr===null?"transparent":pt.Util.makeHexColor(vr[0],vr[1],vr[2])}_setTextStyle(wr){const vr=["left","center","right"],{fontColor:Dr}=this.data.defaultAppearanceData,Sr=this.data.defaultAppearanceData.fontSize||xt,ur=wr.style;let xr;const Pr=2,Vr=en=>Math.round(10*en)/10;if(this.data.multiLine){const en=Math.abs(this.data.rect[3]-this.data.rect[1]-Pr),rn=Math.round(en/(pt.LINE_FACTOR*Sr))||1,Cn=en/rn;xr=Math.min(Sr,Vr(Cn/pt.LINE_FACTOR))}else{const en=Math.abs(this.data.rect[3]-this.data.rect[1]-Pr);xr=Math.min(Sr,Vr(en/pt.LINE_FACTOR))}ur.fontSize=`calc(${xr}px * var(--scale-factor))`,ur.color=pt.Util.makeHexColor(Dr[0],Dr[1],Dr[2]),this.data.textAlignment!==null&&(ur.textAlign=vr[this.data.textAlignment])}_setRequired(wr,vr){vr?wr.setAttribute("required",!0):wr.removeAttribute("required"),wr.setAttribute("aria-required",vr)}}class rt extends _{constructor(wr){const vr=wr.renderForms||!wr.data.hasAppearance&&!!wr.data.fieldValue;super(wr,{isRenderable:vr})}setPropertyOnSiblings(wr,vr,Dr,Sr){const ur=this.annotationStorage;for(const xr of this._getElementsByName(wr.name,wr.id))xr.domElement&&(xr.domElement[vr]=Dr),ur.setValue(xr.id,{[Sr]:Dr})}render(){var Sr,ur;const wr=this.annotationStorage,vr=this.data.id;this.container.classList.add("textWidgetAnnotation");let Dr=null;if(this.renderForms){const xr=wr.getValue(vr,{value:this.data.fieldValue});let Pr=xr.value||"";const Vr=wr.getValue(vr,{charLimit:this.data.maxLen}).charLimit;Vr&&Pr.length>Vr&&(Pr=Pr.slice(0,Vr));let en=xr.formattedValue||((Sr=this.data.textContent)==null?void 0:Sr.join(` -`))||null;en&&this.data.comb&&(en=en.replaceAll(/\s+/g,""));const rn={userValue:Pr,formattedValue:en,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?(Dr=document.createElement("textarea"),Dr.textContent=en??Pr,this.data.doNotScroll&&(Dr.style.overflowY="hidden")):(Dr=document.createElement("input"),Dr.type="text",Dr.setAttribute("value",en??Pr),this.data.doNotScroll&&(Dr.style.overflowX="hidden")),this.data.hasOwnCanvas&&(Dr.hidden=!0),et.add(Dr),Dr.setAttribute("data-element-id",vr),Dr.disabled=this.data.readOnly,Dr.name=this.data.fieldName,Dr.tabIndex=it,this._setRequired(Dr,this.data.required),Vr&&(Dr.maxLength=Vr),Dr.addEventListener("input",xn=>{wr.setValue(vr,{value:xn.target.value}),this.setPropertyOnSiblings(Dr,"value",xn.target.value,"value"),rn.formattedValue=null}),Dr.addEventListener("resetform",xn=>{const fn=this.data.defaultFieldValue??"";Dr.value=rn.userValue=fn,rn.formattedValue=null});let Cn=xn=>{const{formattedValue:fn}=rn;fn!=null&&(xn.target.value=fn),xn.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){Dr.addEventListener("focus",fn=>{if(rn.focused)return;const{target:bn}=fn;rn.userValue&&(bn.value=rn.userValue),rn.lastCommittedValue=bn.value,rn.commitKey=1,rn.focused=!0}),Dr.addEventListener("updatefromsandbox",fn=>{this.showElementAndHideCanvas(fn.target);const bn={value(Un){rn.userValue=Un.detail.value??"",wr.setValue(vr,{value:rn.userValue.toString()}),Un.target.value=rn.userValue},formattedValue(Un){const{formattedValue:_i}=Un.detail;rn.formattedValue=_i,_i!=null&&Un.target!==document.activeElement&&(Un.target.value=_i),wr.setValue(vr,{formattedValue:_i})},selRange(Un){Un.target.setSelectionRange(...Un.detail.selRange)},charLimit:Un=>{var Jn;const{charLimit:_i}=Un.detail,{target:yn}=Un;if(_i===0){yn.removeAttribute("maxLength");return}yn.setAttribute("maxLength",_i);let Kn=rn.userValue;!Kn||Kn.length<=_i||(Kn=Kn.slice(0,_i),yn.value=rn.userValue=Kn,wr.setValue(vr,{value:Kn}),(Jn=this.linkService.eventBus)==null||Jn.dispatch("dispatcheventinsandbox",{source:this,detail:{id:vr,name:"Keystroke",value:Kn,willCommit:!0,commitKey:1,selStart:yn.selectionStart,selEnd:yn.selectionEnd}}))}};this._dispatchEventFromSandbox(bn,fn)}),Dr.addEventListener("keydown",fn=>{var _i;rn.commitKey=1;let bn=-1;if(fn.key==="Escape"?bn=0:fn.key==="Enter"&&!this.data.multiLine?bn=2:fn.key==="Tab"&&(rn.commitKey=3),bn===-1)return;const{value:Un}=fn.target;rn.lastCommittedValue!==Un&&(rn.lastCommittedValue=Un,rn.userValue=Un,(_i=this.linkService.eventBus)==null||_i.dispatch("dispatcheventinsandbox",{source:this,detail:{id:vr,name:"Keystroke",value:Un,willCommit:!0,commitKey:bn,selStart:fn.target.selectionStart,selEnd:fn.target.selectionEnd}}))});const xn=Cn;Cn=null,Dr.addEventListener("blur",fn=>{var Un;if(!rn.focused||!fn.relatedTarget)return;rn.focused=!1;const{value:bn}=fn.target;rn.userValue=bn,rn.lastCommittedValue!==bn&&((Un=this.linkService.eventBus)==null||Un.dispatch("dispatcheventinsandbox",{source:this,detail:{id:vr,name:"Keystroke",value:bn,willCommit:!0,commitKey:rn.commitKey,selStart:fn.target.selectionStart,selEnd:fn.target.selectionEnd}})),xn(fn)}),(ur=this.data.actions)!=null&&ur.Keystroke&&Dr.addEventListener("beforeinput",fn=>{var ba;rn.lastCommittedValue=null;const{data:bn,target:Un}=fn,{value:_i,selectionStart:yn,selectionEnd:Kn}=Un;let Jn=yn,so=Kn;switch(fn.inputType){case"deleteWordBackward":{const An=_i.substring(0,yn).match(/\w*[^\w]*$/);An&&(Jn-=An[0].length);break}case"deleteWordForward":{const An=_i.substring(yn).match(/^[^\w]*\w*/);An&&(so+=An[0].length);break}case"deleteContentBackward":yn===Kn&&(Jn-=1);break;case"deleteContentForward":yn===Kn&&(so+=1);break}fn.preventDefault(),(ba=this.linkService.eventBus)==null||ba.dispatch("dispatcheventinsandbox",{source:this,detail:{id:vr,name:"Keystroke",value:_i,change:bn||"",willCommit:!1,selStart:Jn,selEnd:so}})}),this._setEventListeners(Dr,rn,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],fn=>fn.target.value)}if(Cn&&Dr.addEventListener("blur",Cn),this.data.comb){const fn=(this.data.rect[2]-this.data.rect[0])/Vr;Dr.classList.add("comb"),Dr.style.letterSpacing=`calc(${fn}px * var(--scale-factor) - 1ch)`}}else Dr=document.createElement("div"),Dr.textContent=this.data.fieldValue,Dr.style.verticalAlign="middle",Dr.style.display="table-cell";return this._setTextStyle(Dr),this._setBackgroundColor(Dr),this._setDefaultPropertiesFromJS(Dr),this.container.append(Dr),this.container}}class tt extends _{constructor(wr){super(wr,{isRenderable:!!wr.data.hasOwnCanvas})}}class st extends _{constructor(wr){super(wr,{isRenderable:wr.renderForms})}render(){const wr=this.annotationStorage,vr=this.data,Dr=vr.id;let Sr=wr.getValue(Dr,{value:vr.exportValue===vr.fieldValue}).value;typeof Sr=="string"&&(Sr=Sr!=="Off",wr.setValue(Dr,{value:Sr})),this.container.classList.add("buttonWidgetAnnotation","checkBox");const ur=document.createElement("input");return et.add(ur),ur.setAttribute("data-element-id",Dr),ur.disabled=vr.readOnly,this._setRequired(ur,this.data.required),ur.type="checkbox",ur.name=vr.fieldName,Sr&&ur.setAttribute("checked",!0),ur.setAttribute("exportValue",vr.exportValue),ur.tabIndex=it,ur.addEventListener("change",xr=>{const{name:Pr,checked:Vr}=xr.target;for(const en of this._getElementsByName(Pr,Dr)){const rn=Vr&&en.exportValue===vr.exportValue;en.domElement&&(en.domElement.checked=rn),wr.setValue(en.id,{value:rn})}wr.setValue(Dr,{value:Vr})}),ur.addEventListener("resetform",xr=>{const Pr=vr.defaultFieldValue||"Off";xr.target.checked=Pr===vr.exportValue}),this.enableScripting&&this.hasJSActions&&(ur.addEventListener("updatefromsandbox",xr=>{const Pr={value(Vr){Vr.target.checked=Vr.detail.value!=="Off",wr.setValue(Dr,{value:Vr.target.checked})}};this._dispatchEventFromSandbox(Pr,xr)}),this._setEventListeners(ur,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],xr=>xr.target.checked)),this._setBackgroundColor(ur),this._setDefaultPropertiesFromJS(ur),this.container.append(ur),this.container}}class ot extends _{constructor(wr){super(wr,{isRenderable:wr.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");const wr=this.annotationStorage,vr=this.data,Dr=vr.id;let Sr=wr.getValue(Dr,{value:vr.fieldValue===vr.buttonValue}).value;typeof Sr=="string"&&(Sr=Sr!==vr.buttonValue,wr.setValue(Dr,{value:Sr}));const ur=document.createElement("input");if(et.add(ur),ur.setAttribute("data-element-id",Dr),ur.disabled=vr.readOnly,this._setRequired(ur,this.data.required),ur.type="radio",ur.name=vr.fieldName,Sr&&ur.setAttribute("checked",!0),ur.tabIndex=it,ur.addEventListener("change",xr=>{const{name:Pr,checked:Vr}=xr.target;for(const en of this._getElementsByName(Pr,Dr))wr.setValue(en.id,{value:!1});wr.setValue(Dr,{value:Vr})}),ur.addEventListener("resetform",xr=>{const Pr=vr.defaultFieldValue;xr.target.checked=Pr!=null&&Pr===vr.buttonValue}),this.enableScripting&&this.hasJSActions){const xr=vr.buttonValue;ur.addEventListener("updatefromsandbox",Pr=>{const Vr={value:en=>{const rn=xr===en.detail.value;for(const Cn of this._getElementsByName(en.target.name)){const xn=rn&&Cn.id===Dr;Cn.domElement&&(Cn.domElement.checked=xn),wr.setValue(Cn.id,{value:xn})}}};this._dispatchEventFromSandbox(Vr,Pr)}),this._setEventListeners(ur,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],Pr=>Pr.target.checked)}return this._setBackgroundColor(ur),this._setDefaultPropertiesFromJS(ur),this.container.append(ur),this.container}}class nt extends ht{constructor(wr){super(wr,{ignoreBorder:wr.data.hasAppearance})}render(){const wr=super.render();wr.classList.add("buttonWidgetAnnotation","pushButton"),this.data.alternativeText&&(wr.title=this.data.alternativeText);const vr=wr.lastChild;return this.enableScripting&&this.hasJSActions&&vr&&(this._setDefaultPropertiesFromJS(vr),vr.addEventListener("updatefromsandbox",Dr=>{this._dispatchEventFromSandbox({},Dr)})),wr}}class vt extends _{constructor(wr){super(wr,{isRenderable:wr.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");const wr=this.annotationStorage,vr=this.data.id,Dr=wr.getValue(vr,{value:this.data.fieldValue}),Sr=document.createElement("select");et.add(Sr),Sr.setAttribute("data-element-id",vr),Sr.disabled=this.data.readOnly,this._setRequired(Sr,this.data.required),Sr.name=this.data.fieldName,Sr.tabIndex=it;let ur=this.data.combo&&this.data.options.length>0;this.data.combo||(Sr.size=this.data.options.length,this.data.multiSelect&&(Sr.multiple=!0)),Sr.addEventListener("resetform",rn=>{const Cn=this.data.defaultFieldValue;for(const xn of Sr.options)xn.selected=xn.value===Cn});for(const rn of this.data.options){const Cn=document.createElement("option");Cn.textContent=rn.displayValue,Cn.value=rn.exportValue,Dr.value.includes(rn.exportValue)&&(Cn.setAttribute("selected",!0),ur=!1),Sr.append(Cn)}let xr=null;if(ur){const rn=document.createElement("option");rn.value=" ",rn.setAttribute("hidden",!0),rn.setAttribute("selected",!0),Sr.prepend(rn),xr=()=>{rn.remove(),Sr.removeEventListener("input",xr),xr=null},Sr.addEventListener("input",xr)}const Pr=rn=>{const Cn=rn?"value":"textContent",{options:xn,multiple:fn}=Sr;return fn?Array.prototype.filter.call(xn,bn=>bn.selected).map(bn=>bn[Cn]):xn.selectedIndex===-1?null:xn[xn.selectedIndex][Cn]};let Vr=Pr(!1);const en=rn=>{const Cn=rn.target.options;return Array.prototype.map.call(Cn,xn=>({displayValue:xn.textContent,exportValue:xn.value}))};return this.enableScripting&&this.hasJSActions?(Sr.addEventListener("updatefromsandbox",rn=>{const Cn={value(xn){xr==null||xr();const fn=xn.detail.value,bn=new Set(Array.isArray(fn)?fn:[fn]);for(const Un of Sr.options)Un.selected=bn.has(Un.value);wr.setValue(vr,{value:Pr(!0)}),Vr=Pr(!1)},multipleSelection(xn){Sr.multiple=!0},remove(xn){const fn=Sr.options,bn=xn.detail.remove;fn[bn].selected=!1,Sr.remove(bn),fn.length>0&&Array.prototype.findIndex.call(fn,_i=>_i.selected)===-1&&(fn[0].selected=!0),wr.setValue(vr,{value:Pr(!0),items:en(xn)}),Vr=Pr(!1)},clear(xn){for(;Sr.length!==0;)Sr.remove(0);wr.setValue(vr,{value:null,items:[]}),Vr=Pr(!1)},insert(xn){const{index:fn,displayValue:bn,exportValue:Un}=xn.detail.insert,_i=Sr.children[fn],yn=document.createElement("option");yn.textContent=bn,yn.value=Un,_i?_i.before(yn):Sr.append(yn),wr.setValue(vr,{value:Pr(!0),items:en(xn)}),Vr=Pr(!1)},items(xn){const{items:fn}=xn.detail;for(;Sr.length!==0;)Sr.remove(0);for(const bn of fn){const{displayValue:Un,exportValue:_i}=bn,yn=document.createElement("option");yn.textContent=Un,yn.value=_i,Sr.append(yn)}Sr.options.length>0&&(Sr.options[0].selected=!0),wr.setValue(vr,{value:Pr(!0),items:en(xn)}),Vr=Pr(!1)},indices(xn){const fn=new Set(xn.detail.indices);for(const bn of xn.target.options)bn.selected=fn.has(bn.index);wr.setValue(vr,{value:Pr(!0)}),Vr=Pr(!1)},editable(xn){xn.target.disabled=!xn.detail.editable}};this._dispatchEventFromSandbox(Cn,rn)}),Sr.addEventListener("input",rn=>{var xn;const Cn=Pr(!0);wr.setValue(vr,{value:Cn}),rn.preventDefault(),(xn=this.linkService.eventBus)==null||xn.dispatch("dispatcheventinsandbox",{source:this,detail:{id:vr,name:"Keystroke",value:Vr,changeEx:Cn,willCommit:!1,commitKey:1,keyDown:!1}})}),this._setEventListeners(Sr,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],rn=>rn.target.value)):Sr.addEventListener("input",function(rn){wr.setValue(vr,{value:Pr(!0)})}),this.data.combo&&this._setTextStyle(Sr),this._setBackgroundColor(Sr),this._setDefaultPropertiesFromJS(Sr),this.container.append(Sr),this.container}}class dt extends ut{constructor(wr){const{data:vr,elements:Dr}=wr;super(wr,{isRenderable:ut._hasPopupData(vr)}),this.elements=Dr}render(){this.container.classList.add("popupAnnotation");const wr=new bt({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open}),vr=[];for(const Dr of this.elements)Dr.popup=wr,vr.push(Dr.data.id),Dr.addHighlightArea();return this.container.setAttribute("aria-controls",vr.map(Dr=>`${pt.AnnotationPrefix}${Dr}`).join(",")),this.container}}class bt{constructor({container:wr,color:vr,elements:Dr,titleObj:Sr,modificationDate:ur,contentsObj:xr,richText:Pr,parent:Vr,rect:en,parentRect:rn,open:Cn}){Xo(this,Tr);Xo(this,Ar);Xo(this,Er);Xo(this,zr);Xo(this,Xt,null);Xo(this,qt,hs(this,Tr,bS).bind(this));Xo(this,er,hs(this,zr,H_).bind(this));Xo(this,lr,hs(this,Er,$_).bind(this));Xo(this,Jt,hs(this,Ar,rT).bind(this));Xo(this,Yt,null);Xo(this,rr,null);Xo(this,jt,null);Xo(this,ar,null);Xo(this,sr,null);Xo(this,Zt,null);Xo(this,Kt,!1);Xo(this,or,null);Xo(this,tr,null);Xo(this,cr,null);Xo(this,hr,null);Xo(this,br,!1);var fn;ks(this,rr,wr),ks(this,hr,Sr),ks(this,jt,xr),ks(this,cr,Pr),ks(this,sr,Vr),ks(this,Yt,vr),ks(this,tr,en),ks(this,Zt,rn),ks(this,ar,Dr);const xn=Lt.PDFDateString.toDateObject(ur);xn&&ks(this,Xt,Vr.l10n.get("annotation_date_string",{date:xn.toLocaleDateString(),time:xn.toLocaleTimeString()})),this.trigger=Dr.flatMap(bn=>bn.getElementsToTriggerPopup());for(const bn of this.trigger)bn.addEventListener("click",On(this,Jt)),bn.addEventListener("mouseenter",On(this,lr)),bn.addEventListener("mouseleave",On(this,er)),bn.classList.add("popupTriggerArea");for(const bn of Dr)(fn=bn.container)==null||fn.addEventListener("keydown",On(this,qt));On(this,rr).hidden=!0,Cn&&hs(this,Ar,rT).call(this)}render(){if(On(this,or))return;const{page:{view:wr},viewport:{rawDims:{pageWidth:vr,pageHeight:Dr,pageX:Sr,pageY:ur}}}=On(this,sr),xr=ks(this,or,document.createElement("div"));if(xr.className="popup",On(this,Yt)){const Jn=xr.style.outlineColor=pt.Util.makeHexColor(...On(this,Yt));CSS.supports("background-color","color-mix(in srgb, red 30%, white)")?xr.style.backgroundColor=`color-mix(in srgb, ${Jn} 30%, white)`:xr.style.backgroundColor=pt.Util.makeHexColor(...On(this,Yt).map(ba=>Math.floor(.7*(255-ba)+ba)))}const Pr=document.createElement("span");Pr.className="header";const Vr=document.createElement("h1");if(Pr.append(Vr),{dir:Vr.dir,str:Vr.textContent}=On(this,hr),xr.append(Pr),On(this,Xt)){const Jn=document.createElement("span");Jn.classList.add("popupDate"),On(this,Xt).then(so=>{Jn.textContent=so}),Pr.append(Jn)}const en=On(this,jt),rn=On(this,cr);if(rn!=null&&rn.str&&(!(en!=null&&en.str)||en.str===rn.str))o.XfaLayer.render({xfaHtml:rn.html,intent:"richText",div:xr}),xr.lastChild.classList.add("richText","popupContent");else{const Jn=this._formatContents(en);xr.append(Jn)}let Cn=!!On(this,Zt),xn=Cn?On(this,Zt):On(this,tr);for(const Jn of On(this,ar))if(!xn||pt.Util.intersect(Jn.data.rect,xn)!==null){xn=Jn.data.rect,Cn=!0;break}const fn=pt.Util.normalizeRect([xn[0],wr[3]-xn[1]+wr[1],xn[2],wr[3]-xn[3]+wr[1]]),bn=5,Un=Cn?xn[2]-xn[0]+bn:0,_i=fn[0]+Un,yn=fn[1],{style:Kn}=On(this,rr);Kn.left=`${100*(_i-Sr)/vr}%`,Kn.top=`${100*(yn-ur)/Dr}%`,On(this,rr).append(xr)}_formatContents({str:wr,dir:vr}){const Dr=document.createElement("p");Dr.classList.add("popupContent"),Dr.dir=vr;const Sr=wr.split(/(?:\r\n?|\n)/);for(let ur=0,xr=Sr.length;ur{xr.key==="Enter"&&(ur?xr.metaKey:xr.ctrlKey)&&hs(this,Xr,G_).call(this)}),!Dr.popupRef&&this.hasPopupData?this._createPopup():Sr.classList.add("popupTriggerArea"),vr.append(Sr),vr}getElementsToTriggerPopup(){return On(this,qr)}addHighlightArea(){this.container.classList.add("highlightArea")}}qr=new WeakMap,Xr=new WeakSet,G_=function(){var vr;(vr=this.downloadManager)==null||vr.openOrDownloadData(this.container,this.content,this.filename)};class zt{constructor({div:wr,accessibilityManager:vr,annotationCanvasMap:Dr,l10n:Sr,page:ur,viewport:xr}){Xo(this,Jr);Xo(this,Ur);Xo(this,mn,null);Xo(this,pn,null);Xo(this,En,new Map);this.div=wr,ks(this,mn,vr),ks(this,pn,Dr),this.l10n=Sr,this.page=ur,this.viewport=xr,this.zIndex=0,this.l10n||(this.l10n=Rt.NullL10n)}async render(wr){const{annotations:vr}=wr,Dr=this.div;(0,Lt.setLayerDimensions)(Dr,this.viewport);const Sr=new Map,ur={data:null,layer:Dr,linkService:wr.linkService,downloadManager:wr.downloadManager,imageResourcesPath:wr.imageResourcesPath||"",renderForms:wr.renderForms!==!1,svgFactory:new Lt.DOMSVGFactory,annotationStorage:wr.annotationStorage||new Gt.AnnotationStorage,enableScripting:wr.enableScripting===!0,hasJSActions:wr.hasJSActions,fieldObjects:wr.fieldObjects,parent:this,elements:null};for(const xr of vr){if(xr.noHTML)continue;const Pr=xr.annotationType===pt.AnnotationType.POPUP;if(Pr){const rn=Sr.get(xr.id);if(!rn)continue;ur.elements=rn}else{const{width:rn,height:Cn}=Et(xr.rect);if(rn<=0||Cn<=0)continue}ur.data=xr;const Vr=mt.create(ur);if(!Vr.isRenderable)continue;if(!Pr&&xr.popupRef){const rn=Sr.get(xr.popupRef);rn?rn.push(Vr):Sr.set(xr.popupRef,[Vr])}Vr.annotationEditorType>0&&On(this,En).set(Vr.data.id,Vr);const en=Vr.render();xr.hidden&&(en.style.visibility="hidden"),hs(this,Jr,ES).call(this,en,xr.id)}hs(this,Ur,V_).call(this),await this.l10n.translate(Dr)}update({viewport:wr}){const vr=this.div;this.viewport=wr,(0,Lt.setLayerDimensions)(vr,{rotation:wr.rotation}),hs(this,Ur,V_).call(this),vr.hidden=!1}getEditableAnnotations(){return Array.from(On(this,En).values())}getEditableAnnotation(wr){return On(this,En).get(wr)}}mn=new WeakMap,pn=new WeakMap,En=new WeakMap,Jr=new WeakSet,ES=function(wr,vr){var Sr;const Dr=wr.firstChild||wr;Dr.id=`${pt.AnnotationPrefix}${vr}`,this.div.append(wr),(Sr=On(this,mn))==null||Sr.moveElementInDOM(this.div,wr,Dr,!1)},Ur=new WeakSet,V_=function(){if(!On(this,pn))return;const wr=this.div;for(const[vr,Dr]of On(this,pn)){const Sr=wr.querySelector(`[data-annotation-id="${vr}"]`);if(!Sr)continue;const{firstChild:ur}=Sr;ur?ur.nodeName==="CANVAS"?ur.replaceWith(Dr):ur.before(Dr):Sr.append(Dr)}On(this,pn).clear()},i.AnnotationLayer=zt},(a,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.ColorConverters=void 0;function _e(Gt){return Math.floor(Math.max(0,Math.min(1,Gt))*255).toString(16).padStart(2,"0")}function pt(Gt){return Math.max(0,Math.min(255,255*Gt))}class Lt{static CMYK_G([Ct,Rt,o,it]){return["G",1-Math.min(1,.3*Ct+.59*o+.11*Rt+it)]}static G_CMYK([Ct]){return["CMYK",0,0,0,1-Ct]}static G_RGB([Ct]){return["RGB",Ct,Ct,Ct]}static G_rgb([Ct]){return Ct=pt(Ct),[Ct,Ct,Ct]}static G_HTML([Ct]){const Rt=_e(Ct);return`#${Rt}${Rt}${Rt}`}static RGB_G([Ct,Rt,o]){return["G",.3*Ct+.59*Rt+.11*o]}static RGB_rgb(Ct){return Ct.map(pt)}static RGB_HTML(Ct){return`#${Ct.map(_e).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB([Ct,Rt,o,it]){return["RGB",1-Math.min(1,Ct+it),1-Math.min(1,o+it),1-Math.min(1,Rt+it)]}static CMYK_rgb([Ct,Rt,o,it]){return[pt(1-Math.min(1,Ct+it)),pt(1-Math.min(1,o+it)),pt(1-Math.min(1,Rt+it))]}static CMYK_HTML(Ct){const Rt=this.CMYK_RGB(Ct).slice(1);return this.RGB_HTML(Rt)}static RGB_CMYK([Ct,Rt,o]){const it=1-Ct,xt=1-Rt,et=1-o,Et=Math.min(it,xt,et);return["CMYK",it,xt,et,Et]}}i.ColorConverters=Lt},(a,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.NullL10n=void 0,i.getL10nFallback=pt;const _e={of_pages:"of {{pagesCount}}",page_of_pages:"({{pageNumber}} of {{pagesCount}})",document_properties_kb:"{{size_kb}} KB ({{size_b}} bytes)",document_properties_mb:"{{size_mb}} MB ({{size_b}} bytes)",document_properties_date_string:"{{date}}, {{time}}",document_properties_page_size_unit_inches:"in",document_properties_page_size_unit_millimeters:"mm",document_properties_page_size_orientation_portrait:"portrait",document_properties_page_size_orientation_landscape:"landscape",document_properties_page_size_name_a3:"A3",document_properties_page_size_name_a4:"A4",document_properties_page_size_name_letter:"Letter",document_properties_page_size_name_legal:"Legal",document_properties_page_size_dimension_string:"{{width}} × {{height}} {{unit}} ({{orientation}})",document_properties_page_size_dimension_name_string:"{{width}} × {{height}} {{unit}} ({{name}}, {{orientation}})",document_properties_linearized_yes:"Yes",document_properties_linearized_no:"No",additional_layers:"Additional Layers",page_landmark:"Page {{page}}",thumb_page_title:"Page {{page}}",thumb_page_canvas:"Thumbnail of Page {{page}}",find_reached_top:"Reached top of document, continued from bottom",find_reached_bottom:"Reached end of document, continued from top","find_match_count[one]":"{{current}} of {{total}} match","find_match_count[other]":"{{current}} of {{total}} matches","find_match_count_limit[one]":"More than {{limit}} match","find_match_count_limit[other]":"More than {{limit}} matches",find_not_found:"Phrase not found",page_scale_width:"Page Width",page_scale_fit:"Page Fit",page_scale_auto:"Automatic Zoom",page_scale_actual:"Actual Size",page_scale_percent:"{{scale}}%",loading_error:"An error occurred while loading the PDF.",invalid_file_error:"Invalid or corrupted PDF file.",missing_file_error:"Missing PDF file.",unexpected_response_error:"Unexpected server response.",rendering_error:"An error occurred while rendering the page.",annotation_date_string:"{{date}}, {{time}}",printing_not_supported:"Warning: Printing is not fully supported by this browser.",printing_not_ready:"Warning: The PDF is not fully loaded for printing.",web_fonts_disabled:"Web fonts are disabled: unable to use embedded PDF fonts.",free_text2_default_content:"Start typing…",editor_free_text2_aria_label:"Text Editor",editor_ink2_aria_label:"Draw Editor",editor_ink_canvas_aria_label:"User-created image",editor_alt_text_button_label:"Alt text",editor_alt_text_edit_button_label:"Edit alt text",editor_alt_text_decorative_tooltip:"Marked as decorative"};_e.print_progress_percent="{{progress}}%";function pt(Ct,Rt){switch(Ct){case"find_match_count":Ct=`find_match_count[${Rt.total===1?"one":"other"}]`;break;case"find_match_count_limit":Ct=`find_match_count_limit[${Rt.limit===1?"one":"other"}]`;break}return _e[Ct]||""}function Lt(Ct,Rt){return Rt?Ct.replaceAll(/\{\{\s*(\w+)\s*\}\}/g,(o,it)=>it in Rt?Rt[it]:"{{"+it+"}}"):Ct}const Gt={async getLanguage(){return"en-us"},async getDirection(){return"ltr"},async get(Ct,Rt=null,o=pt(Ct,Rt)){return Lt(o,Rt)},async translate(Ct){}};i.NullL10n=Gt},(a,i,_e)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.XfaLayer=void 0;var pt=_e(25);class Lt{static setupStorage(Ct,Rt,o,it,xt){const et=it.getValue(Rt,{value:null});switch(o.name){case"textarea":if(et.value!==null&&(Ct.textContent=et.value),xt==="print")break;Ct.addEventListener("input",Et=>{it.setValue(Rt,{value:Et.target.value})});break;case"input":if(o.attributes.type==="radio"||o.attributes.type==="checkbox"){if(et.value===o.attributes.xfaOn?Ct.setAttribute("checked",!0):et.value===o.attributes.xfaOff&&Ct.removeAttribute("checked"),xt==="print")break;Ct.addEventListener("change",Et=>{it.setValue(Rt,{value:Et.target.checked?Et.target.getAttribute("xfaOn"):Et.target.getAttribute("xfaOff")})})}else{if(et.value!==null&&Ct.setAttribute("value",et.value),xt==="print")break;Ct.addEventListener("input",Et=>{it.setValue(Rt,{value:Et.target.value})})}break;case"select":if(et.value!==null){Ct.setAttribute("value",et.value);for(const Et of o.children)Et.attributes.value===et.value?Et.attributes.selected=!0:Et.attributes.hasOwnProperty("selected")&&delete Et.attributes.selected}Ct.addEventListener("input",Et=>{const mt=Et.target.options,ut=mt.selectedIndex===-1?"":mt[mt.selectedIndex].value;it.setValue(Rt,{value:ut})});break}}static setAttributes({html:Ct,element:Rt,storage:o=null,intent:it,linkService:xt}){const{attributes:et}=Rt,Et=Ct instanceof HTMLAnchorElement;et.type==="radio"&&(et.name=`${et.name}-${it}`);for(const[mt,ut]of Object.entries(et))if(ut!=null)switch(mt){case"class":ut.length&&Ct.setAttribute(mt,ut.join(" "));break;case"dataId":break;case"id":Ct.setAttribute("data-element-id",ut);break;case"style":Object.assign(Ct.style,ut);break;case"textContent":Ct.textContent=ut;break;default:(!Et||mt!=="href"&&mt!=="newWindow")&&Ct.setAttribute(mt,ut)}Et&&xt.addLinkAttributes(Ct,et.href,et.newWindow),o&&et.dataId&&this.setupStorage(Ct,et.dataId,Rt,o)}static render(Ct){var ht;const Rt=Ct.annotationStorage,o=Ct.linkService,it=Ct.xfaHtml,xt=Ct.intent||"display",et=document.createElement(it.name);it.attributes&&this.setAttributes({html:et,element:it,intent:xt,linkService:o});const Et=[[it,-1,et]],mt=Ct.div;if(mt.append(et),Ct.viewport){const j=`matrix(${Ct.viewport.transform.join(",")})`;mt.style.transform=j}xt!=="richText"&&mt.setAttribute("class","xfaLayer xfaFont");const ut=[];for(;Et.length>0;){const[j,_,rt]=Et.at(-1);if(_+1===j.children.length){Et.pop();continue}const tt=j.children[++Et.at(-1)[1]];if(tt===null)continue;const{name:st}=tt;if(st==="#text"){const nt=document.createTextNode(tt.value);ut.push(nt),rt.append(nt);continue}const ot=(ht=tt==null?void 0:tt.attributes)!=null&&ht.xmlns?document.createElementNS(tt.attributes.xmlns,st):document.createElement(st);if(rt.append(ot),tt.attributes&&this.setAttributes({html:ot,element:tt,storage:Rt,intent:xt,linkService:o}),tt.children&&tt.children.length>0)Et.push([tt,-1,ot]);else if(tt.value){const nt=document.createTextNode(tt.value);pt.XfaText.shouldBuildText(st)&&ut.push(nt),ot.append(nt)}}for(const j of mt.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))j.setAttribute("readOnly",!0);return{textDivs:ut}}static update(Ct){const Rt=`matrix(${Ct.viewport.transform.join(",")})`;Ct.div.style.transform=Rt,Ct.div.hidden=!1}}i.XfaLayer=Lt},(a,i,_e)=>{var it,xt,et,Et,mt,ut,ht,j,_,rt,tt,st,ot,nt,vt,TS,bt,AS,at,_S,St,SS,Mt,W_,kt,wS,ct,j_,At,CS,Pt,RS,Dt,MS,$t,IS,Ht,kS,Xt,zy,er,Y_,Jt,nT,rr,aT,ar,l2,Zt,X_,or,iT,cr,LS,br,K_,Ir,DS,_r,PS,Rr,Z_,Br,oT,Nr,u2;Object.defineProperty(i,"__esModule",{value:!0}),i.InkEditor=void 0;var pt=_e(1),Lt=_e(4),Gt=_e(29),Ct=_e(6),Rt=_e(5);const sn=class extends Lt.AnnotationEditor{constructor(Xr){super({...Xr,name:"inkEditor"});Xo(this,vt);Xo(this,bt);Xo(this,at);Xo(this,St);Xo(this,Mt);Xo(this,kt);Xo(this,ct);Xo(this,At);Xo(this,Pt);Xo(this,Dt);Xo(this,$t);Xo(this,Ht);Xo(this,Xt);Xo(this,er);Xo(this,Jt);Xo(this,rr);Xo(this,ar);Xo(this,Zt);Xo(this,or);Xo(this,_r);Xo(this,Rr);Xo(this,Br);Xo(this,Nr);Xo(this,it,0);Xo(this,xt,0);Xo(this,et,this.canvasPointermove.bind(this));Xo(this,Et,this.canvasPointerleave.bind(this));Xo(this,mt,this.canvasPointerup.bind(this));Xo(this,ut,this.canvasPointerdown.bind(this));Xo(this,ht,new Path2D);Xo(this,j,!1);Xo(this,_,!1);Xo(this,rt,!1);Xo(this,tt,null);Xo(this,st,0);Xo(this,ot,0);Xo(this,nt,null);this.color=Xr.color||null,this.thickness=Xr.thickness||null,this.opacity=Xr.opacity||null,this.paths=[],this.bezierPath2D=[],this.allRawPaths=[],this.currentPath=[],this.scaleFactor=1,this.translationX=this.translationY=0,this.x=0,this.y=0,this._willKeepAspectRatio=!0}static initialize(Xr){Lt.AnnotationEditor.initialize(Xr,{strings:["editor_ink_canvas_aria_label","editor_ink2_aria_label"]})}static updateDefaultParams(Xr,ln){switch(Xr){case pt.AnnotationEditorParamsType.INK_THICKNESS:sn._defaultThickness=ln;break;case pt.AnnotationEditorParamsType.INK_COLOR:sn._defaultColor=ln;break;case pt.AnnotationEditorParamsType.INK_OPACITY:sn._defaultOpacity=ln/100;break}}updateParams(Xr,ln){switch(Xr){case pt.AnnotationEditorParamsType.INK_THICKNESS:hs(this,vt,TS).call(this,ln);break;case pt.AnnotationEditorParamsType.INK_COLOR:hs(this,bt,AS).call(this,ln);break;case pt.AnnotationEditorParamsType.INK_OPACITY:hs(this,at,_S).call(this,ln);break}}static get defaultPropertiesToUpdate(){return[[pt.AnnotationEditorParamsType.INK_THICKNESS,sn._defaultThickness],[pt.AnnotationEditorParamsType.INK_COLOR,sn._defaultColor||Lt.AnnotationEditor._defaultLineColor],[pt.AnnotationEditorParamsType.INK_OPACITY,Math.round(sn._defaultOpacity*100)]]}get propertiesToUpdate(){return[[pt.AnnotationEditorParamsType.INK_THICKNESS,this.thickness||sn._defaultThickness],[pt.AnnotationEditorParamsType.INK_COLOR,this.color||sn._defaultColor||Lt.AnnotationEditor._defaultLineColor],[pt.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*(this.opacity??sn._defaultOpacity))]]}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.canvas||(hs(this,Jt,nT).call(this),hs(this,rr,aT).call(this)),this.isAttachedToDOM||(this.parent.add(this),hs(this,ar,l2).call(this)),hs(this,Nr,u2).call(this)))}remove(){this.canvas!==null&&(this.isEmpty()||this.commit(),this.canvas.width=this.canvas.height=0,this.canvas.remove(),this.canvas=null,On(this,tt).disconnect(),ks(this,tt,null),super.remove())}setParent(Xr){!this.parent&&Xr?this._uiManager.removeShouldRescale(this):this.parent&&Xr===null&&this._uiManager.addShouldRescale(this),super.setParent(Xr)}onScaleChanging(){const[Xr,ln]=this.parentDimensions,mn=this.width*Xr,pn=this.height*ln;this.setDimensions(mn,pn)}enableEditMode(){On(this,j)||this.canvas===null||(super.enableEditMode(),this._isDraggable=!1,this.canvas.addEventListener("pointerdown",On(this,ut)))}disableEditMode(){!this.isInEditMode()||this.canvas===null||(super.disableEditMode(),this._isDraggable=!this.isEmpty(),this.div.classList.remove("editing"),this.canvas.removeEventListener("pointerdown",On(this,ut)))}onceAdded(){this._isDraggable=!this.isEmpty()}isEmpty(){return this.paths.length===0||this.paths.length===1&&this.paths[0].length===0}commit(){On(this,j)||(super.commit(),this.isEditing=!1,this.disableEditMode(),this.setInForeground(),ks(this,j,!0),this.div.classList.add("disabled"),hs(this,Nr,u2).call(this,!0),this.makeResizable(),this.parent.addInkEditorIfNeeded(!0),this.moveInDOM(),this.div.focus({preventScroll:!0}))}focusin(Xr){this._focusEventsAllowed&&(super.focusin(Xr),this.enableEditMode())}canvasPointerdown(Xr){Xr.button!==0||!this.isInEditMode()||On(this,j)||(this.setInForeground(),Xr.preventDefault(),Xr.type!=="mouse"&&this.div.focus(),hs(this,kt,wS).call(this,Xr.offsetX,Xr.offsetY))}canvasPointermove(Xr){Xr.preventDefault(),hs(this,ct,j_).call(this,Xr.offsetX,Xr.offsetY)}canvasPointerup(Xr){Xr.preventDefault(),hs(this,er,Y_).call(this,Xr)}canvasPointerleave(Xr){hs(this,er,Y_).call(this,Xr)}get isResizable(){return!this.isEmpty()&&On(this,j)}render(){if(this.div)return this.div;let Xr,ln;this.width&&(Xr=this.x,ln=this.y),super.render(),Lt.AnnotationEditor._l10nPromise.get("editor_ink2_aria_label").then(Or=>{var Ur;return(Ur=this.div)==null?void 0:Ur.setAttribute("aria-label",Or)});const[mn,pn,En,Jr]=hs(this,St,SS).call(this);if(this.setAt(mn,pn,0,0),this.setDims(En,Jr),hs(this,Jt,nT).call(this),this.width){const[Or,Ur]=this.parentDimensions;this.setAspectRatio(this.width*Or,this.height*Ur),this.setAt(Xr*Or,ln*Ur,this.width*Or,this.height*Ur),ks(this,rt,!0),hs(this,ar,l2).call(this),this.setDims(this.width*Or,this.height*Ur),hs(this,Xt,zy).call(this),this.div.classList.add("disabled")}else this.div.classList.add("editing"),this.enableEditMode();return hs(this,rr,aT).call(this),this.div}setDimensions(Xr,ln){const mn=Math.round(Xr),pn=Math.round(ln);if(On(this,st)===mn&&On(this,ot)===pn)return;ks(this,st,mn),ks(this,ot,pn),this.canvas.style.visibility="hidden";const[En,Jr]=this.parentDimensions;this.width=Xr/En,this.height=ln/Jr,this.fixAndSetPosition(),On(this,j)&&hs(this,Zt,X_).call(this,Xr,ln),hs(this,ar,l2).call(this),hs(this,Xt,zy).call(this),this.canvas.style.visibility="visible",this.fixDims()}static deserialize(Xr,ln,mn){var ur,xr,Pr;if(Xr instanceof Gt.InkAnnotationElement)return null;const pn=super.deserialize(Xr,ln,mn);pn.thickness=Xr.thickness,pn.color=pt.Util.makeHexColor(...Xr.color),pn.opacity=Xr.opacity;const[En,Jr]=pn.pageDimensions,Or=pn.width*En,Ur=pn.height*Jr,jr=pn.parentScale,Gr=Xr.thickness/2;ks(pn,j,!0),ks(pn,st,Math.round(Or)),ks(pn,ot,Math.round(Ur));const{paths:wr,rect:vr,rotation:Dr}=Xr;for(let{bezier:Vr}of wr){Vr=hs(ur=sn,Ir,DS).call(ur,Vr,vr,Dr);const en=[];pn.paths.push(en);let rn=jr*(Vr[0]-Gr),Cn=jr*(Vr[1]-Gr);for(let fn=2,bn=Vr.length;fn{this.thickness=Xr,hs(this,Nr,u2).call(this)},undo:()=>{this.thickness=ln,hs(this,Nr,u2).call(this)},mustExec:!0,type:pt.AnnotationEditorParamsType.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0})},bt=new WeakSet,AS=function(Xr){const ln=this.color;this.addCommands({cmd:()=>{this.color=Xr,hs(this,Xt,zy).call(this)},undo:()=>{this.color=ln,hs(this,Xt,zy).call(this)},mustExec:!0,type:pt.AnnotationEditorParamsType.INK_COLOR,overwriteIfSameType:!0,keepUndo:!0})},at=new WeakSet,_S=function(Xr){Xr/=100;const ln=this.opacity;this.addCommands({cmd:()=>{this.opacity=Xr,hs(this,Xt,zy).call(this)},undo:()=>{this.opacity=ln,hs(this,Xt,zy).call(this)},mustExec:!0,type:pt.AnnotationEditorParamsType.INK_OPACITY,overwriteIfSameType:!0,keepUndo:!0})},St=new WeakSet,SS=function(){const{parentRotation:Xr,parentDimensions:[ln,mn]}=this;switch(Xr){case 90:return[0,mn,mn,ln];case 180:return[ln,mn,ln,mn];case 270:return[ln,0,mn,ln];default:return[0,0,ln,mn]}},Mt=new WeakSet,W_=function(){const{ctx:Xr,color:ln,opacity:mn,thickness:pn,parentScale:En,scaleFactor:Jr}=this;Xr.lineWidth=pn*En/Jr,Xr.lineCap="round",Xr.lineJoin="round",Xr.miterLimit=10,Xr.strokeStyle=`${ln}${(0,Rt.opacityToHex)(mn)}`},kt=new WeakSet,wS=function(Xr,ln){this.canvas.addEventListener("contextmenu",Ct.noContextMenu),this.canvas.addEventListener("pointerleave",On(this,Et)),this.canvas.addEventListener("pointermove",On(this,et)),this.canvas.addEventListener("pointerup",On(this,mt)),this.canvas.removeEventListener("pointerdown",On(this,ut)),this.isEditing=!0,On(this,rt)||(ks(this,rt,!0),hs(this,ar,l2).call(this),this.thickness||(this.thickness=sn._defaultThickness),this.color||(this.color=sn._defaultColor||Lt.AnnotationEditor._defaultLineColor),this.opacity??(this.opacity=sn._defaultOpacity)),this.currentPath.push([Xr,ln]),ks(this,_,!1),hs(this,Mt,W_).call(this),ks(this,nt,()=>{hs(this,Dt,MS).call(this),On(this,nt)&&window.requestAnimationFrame(On(this,nt))}),window.requestAnimationFrame(On(this,nt))},ct=new WeakSet,j_=function(Xr,ln){const[mn,pn]=this.currentPath.at(-1);if(this.currentPath.length>1&&Xr===mn&&ln===pn)return;const En=this.currentPath;let Jr=On(this,ht);if(En.push([Xr,ln]),ks(this,_,!0),En.length<=2){Jr.moveTo(...En[0]),Jr.lineTo(Xr,ln);return}En.length===3&&(ks(this,ht,Jr=new Path2D),Jr.moveTo(...En[0])),hs(this,$t,IS).call(this,Jr,...En.at(-3),...En.at(-2),Xr,ln)},At=new WeakSet,CS=function(){if(this.currentPath.length===0)return;const Xr=this.currentPath.at(-1);On(this,ht).lineTo(...Xr)},Pt=new WeakSet,RS=function(Xr,ln){ks(this,nt,null),Xr=Math.min(Math.max(Xr,0),this.canvas.width),ln=Math.min(Math.max(ln,0),this.canvas.height),hs(this,ct,j_).call(this,Xr,ln),hs(this,At,CS).call(this);let mn;if(this.currentPath.length!==1)mn=hs(this,Ht,kS).call(this);else{const Ur=[Xr,ln];mn=[[Ur,Ur.slice(),Ur.slice(),Ur]]}const pn=On(this,ht),En=this.currentPath;this.currentPath=[],ks(this,ht,new Path2D);const Jr=()=>{this.allRawPaths.push(En),this.paths.push(mn),this.bezierPath2D.push(pn),this.rebuild()},Or=()=>{this.allRawPaths.pop(),this.paths.pop(),this.bezierPath2D.pop(),this.paths.length===0?this.remove():(this.canvas||(hs(this,Jt,nT).call(this),hs(this,rr,aT).call(this)),hs(this,Nr,u2).call(this))};this.addCommands({cmd:Jr,undo:Or,mustExec:!0})},Dt=new WeakSet,MS=function(){if(!On(this,_))return;ks(this,_,!1);const Xr=Math.ceil(this.thickness*this.parentScale),ln=this.currentPath.slice(-3),mn=ln.map(Jr=>Jr[0]),pn=ln.map(Jr=>Jr[1]);Math.min(...mn)-Xr,Math.max(...mn)+Xr,Math.min(...pn)-Xr,Math.max(...pn)+Xr;const{ctx:En}=this;En.save(),En.clearRect(0,0,this.canvas.width,this.canvas.height);for(const Jr of this.bezierPath2D)En.stroke(Jr);En.stroke(On(this,ht)),En.restore()},$t=new WeakSet,IS=function(Xr,ln,mn,pn,En,Jr,Or){const Ur=(ln+pn)/2,jr=(mn+En)/2,Gr=(pn+Jr)/2,wr=(En+Or)/2;Xr.bezierCurveTo(Ur+2*(pn-Ur)/3,jr+2*(En-jr)/3,Gr+2*(pn-Gr)/3,wr+2*(En-wr)/3,Gr,wr)},Ht=new WeakSet,kS=function(){const Xr=this.currentPath;if(Xr.length<=2)return[[Xr[0],Xr[0],Xr.at(-1),Xr.at(-1)]];const ln=[];let mn,[pn,En]=Xr[0];for(mn=1;mn{this.canvas.removeEventListener("contextmenu",Ct.noContextMenu)},10),hs(this,Pt,RS).call(this,Xr.offsetX,Xr.offsetY),this.addToAnnotationStorage(),this.setInBackground()},Jt=new WeakSet,nT=function(){this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=0,this.canvas.className="inkEditorCanvas",Lt.AnnotationEditor._l10nPromise.get("editor_ink_canvas_aria_label").then(Xr=>{var ln;return(ln=this.canvas)==null?void 0:ln.setAttribute("aria-label",Xr)}),this.div.append(this.canvas),this.ctx=this.canvas.getContext("2d")},rr=new WeakSet,aT=function(){ks(this,tt,new ResizeObserver(Xr=>{const ln=Xr[0].contentRect;ln.width&&ln.height&&this.setDimensions(ln.width,ln.height)})),On(this,tt).observe(this.div)},ar=new WeakSet,l2=function(){if(!On(this,rt))return;const[Xr,ln]=this.parentDimensions;this.canvas.width=Math.ceil(this.width*Xr),this.canvas.height=Math.ceil(this.height*ln),hs(this,or,iT).call(this)},Zt=new WeakSet,X_=function(Xr,ln){const mn=hs(this,Br,oT).call(this),pn=(Xr-mn)/On(this,xt),En=(ln-mn)/On(this,it);this.scaleFactor=Math.min(pn,En)},or=new WeakSet,iT=function(){const Xr=hs(this,Br,oT).call(this)/2;this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+Xr,this.translationY*this.scaleFactor+Xr)},cr=new WeakSet,LS=function(Xr){const ln=new Path2D;for(let mn=0,pn=Xr.length;mn{var o,it,xt,et,Et,mt,ut,ht,j,_,rt,K2,st,Z2,nt,sT,dt,J_,ft,OS,yt,FS,_t,Q_,Tt,lT,wt,BS;Object.defineProperty(i,"__esModule",{value:!0}),i.StampEditor=void 0;var pt=_e(1),Lt=_e(4),Gt=_e(6),Ct=_e(29);const It=class extends Lt.AnnotationEditor{constructor(Pt){super({...Pt,name:"stampEditor"});Xo(this,rt);Xo(this,st);Xo(this,nt);Xo(this,dt);Xo(this,ft);Xo(this,yt);Xo(this,_t);Xo(this,Tt);Xo(this,wt);Xo(this,o,null);Xo(this,it,null);Xo(this,xt,null);Xo(this,et,null);Xo(this,Et,null);Xo(this,mt,null);Xo(this,ut,null);Xo(this,ht,null);Xo(this,j,!1);Xo(this,_,!1);ks(this,et,Pt.bitmapUrl),ks(this,Et,Pt.bitmapFile)}static initialize(Pt){Lt.AnnotationEditor.initialize(Pt)}static get supportedTypes(){const Pt=["apng","avif","bmp","gif","jpeg","png","svg+xml","webp","x-icon"];return(0,pt.shadow)(this,"supportedTypes",Pt.map(zt=>`image/${zt}`))}static get supportedTypesStr(){return(0,pt.shadow)(this,"supportedTypesStr",this.supportedTypes.join(","))}static isHandlingMimeForPasting(Pt){return this.supportedTypes.includes(Pt)}static paste(Pt,zt){zt.pasteEditor(pt.AnnotationEditorType.STAMP,{bitmapFile:Pt.getAsFile()})}remove(){var Pt,zt;On(this,it)&&(ks(this,o,null),this._uiManager.imageManager.deleteId(On(this,it)),(Pt=On(this,mt))==null||Pt.remove(),ks(this,mt,null),(zt=On(this,ut))==null||zt.disconnect(),ks(this,ut,null)),super.remove()}rebuild(){if(!this.parent){On(this,it)&&hs(this,nt,sT).call(this);return}super.rebuild(),this.div!==null&&(On(this,it)&&hs(this,nt,sT).call(this),this.isAttachedToDOM||this.parent.add(this))}onceAdded(){this._isDraggable=!0,this.div.focus()}isEmpty(){return!(On(this,xt)||On(this,o)||On(this,et)||On(this,Et))}get isResizable(){return!0}render(){if(this.div)return this.div;let Pt,zt;if(this.width&&(Pt=this.x,zt=this.y),super.render(),this.div.hidden=!0,On(this,o)?hs(this,dt,J_).call(this):hs(this,nt,sT).call(this),this.width){const[Dt,Nt]=this.parentDimensions;this.setAt(Pt*Dt,zt*Nt,this.width*Dt,this.height*Nt)}return this.div}static deserialize(Pt,zt,Dt){if(Pt instanceof Ct.StampAnnotationElement)return null;const Nt=super.deserialize(Pt,zt,Dt),{rect:$t,bitmapUrl:Ut,bitmapId:Ht,isSvg:Vt,accessibilityData:Xt}=Pt;Ht&&Dt.imageManager.isValidId(Ht)?ks(Nt,it,Ht):ks(Nt,et,Ut),ks(Nt,j,Vt);const[qt,er]=Nt.pageDimensions;return Nt.width=($t[2]-$t[0])/qt,Nt.height=($t[3]-$t[1])/er,Xt&&(Nt.altTextData=Xt),Nt}serialize(Pt=!1,zt=null){if(this.isEmpty())return null;const Dt={annotationType:pt.AnnotationEditorType.STAMP,bitmapId:On(this,it),pageIndex:this.pageIndex,rect:this.getRect(0,0),rotation:this.rotation,isSvg:On(this,j),structTreeParentId:this._structTreeParentId};if(Pt)return Dt.bitmapUrl=hs(this,Tt,lT).call(this,!0),Dt.accessibilityData=this.altTextData,Dt;const{decorative:Nt,altText:$t}=this.altTextData;if(!Nt&&$t&&(Dt.accessibilityData={type:"Figure",alt:$t}),zt===null)return Dt;zt.stamps||(zt.stamps=new Map);const Ut=On(this,j)?(Dt.rect[2]-Dt.rect[0])*(Dt.rect[3]-Dt.rect[1]):null;if(!zt.stamps.has(On(this,it)))zt.stamps.set(On(this,it),{area:Ut,serialized:Dt}),Dt.bitmap=hs(this,Tt,lT).call(this,!1);else if(On(this,j)){const Ht=zt.stamps.get(On(this,it));Ut>Ht.area&&(Ht.area=Ut,Ht.serialized.bitmap.close(),Ht.serialized.bitmap=hs(this,Tt,lT).call(this,!1))}return Dt}};let Rt=It;o=new WeakMap,it=new WeakMap,xt=new WeakMap,et=new WeakMap,Et=new WeakMap,mt=new WeakMap,ut=new WeakMap,ht=new WeakMap,j=new WeakMap,_=new WeakMap,rt=new WeakSet,K2=function(Pt,zt=!1){if(!Pt){this.remove();return}ks(this,o,Pt.bitmap),zt||(ks(this,it,Pt.id),ks(this,j,Pt.isSvg)),hs(this,dt,J_).call(this)},st=new WeakSet,Z2=function(){ks(this,xt,null),this._uiManager.enableWaiting(!1),On(this,mt)&&this.div.focus()},nt=new WeakSet,sT=function(){if(On(this,it)){this._uiManager.enableWaiting(!0),this._uiManager.imageManager.getFromId(On(this,it)).then(zt=>hs(this,rt,K2).call(this,zt,!0)).finally(()=>hs(this,st,Z2).call(this));return}if(On(this,et)){const zt=On(this,et);ks(this,et,null),this._uiManager.enableWaiting(!0),ks(this,xt,this._uiManager.imageManager.getFromUrl(zt).then(Dt=>hs(this,rt,K2).call(this,Dt)).finally(()=>hs(this,st,Z2).call(this)));return}if(On(this,Et)){const zt=On(this,Et);ks(this,Et,null),this._uiManager.enableWaiting(!0),ks(this,xt,this._uiManager.imageManager.getFromFile(zt).then(Dt=>hs(this,rt,K2).call(this,Dt)).finally(()=>hs(this,st,Z2).call(this)));return}const Pt=document.createElement("input");Pt.type="file",Pt.accept=It.supportedTypesStr,ks(this,xt,new Promise(zt=>{Pt.addEventListener("change",async()=>{if(!Pt.files||Pt.files.length===0)this.remove();else{this._uiManager.enableWaiting(!0);const Dt=await this._uiManager.imageManager.getFromFile(Pt.files[0]);hs(this,rt,K2).call(this,Dt)}zt()}),Pt.addEventListener("cancel",()=>{this.remove(),zt()})}).finally(()=>hs(this,st,Z2).call(this))),Pt.click()},dt=new WeakSet,J_=function(){const{div:Pt}=this;let{width:zt,height:Dt}=On(this,o);const[Nt,$t]=this.pageDimensions,Ut=.75;if(this.width)zt=this.width*Nt,Dt=this.height*$t;else if(zt>Ut*Nt||Dt>Ut*$t){const qt=Math.min(Ut*Nt/zt,Ut*$t/Dt);zt*=qt,Dt*=qt}const[Ht,Vt]=this.parentDimensions;this.setDims(zt*Ht/Nt,Dt*Vt/$t),this._uiManager.enableWaiting(!1);const Xt=ks(this,mt,document.createElement("canvas"));Pt.append(Xt),Pt.hidden=!1,hs(this,_t,Q_).call(this,zt,Dt),hs(this,wt,BS).call(this),On(this,_)||(this.parent.addUndoableEditor(this),ks(this,_,!0)),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",subtype:this.editorType,data:{action:"inserted_image"}}}),this.addAltTextButton()},ft=new WeakSet,OS=function(Pt,zt){var Ut;const[Dt,Nt]=this.parentDimensions;this.width=Pt/Dt,this.height=zt/Nt,this.setDims(Pt,zt),(Ut=this._initialOptions)!=null&&Ut.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,On(this,ht)!==null&&clearTimeout(On(this,ht)),ks(this,ht,setTimeout(()=>{ks(this,ht,null),hs(this,_t,Q_).call(this,Pt,zt)},200))},yt=new WeakSet,FS=function(Pt,zt){const{width:Dt,height:Nt}=On(this,o);let $t=Dt,Ut=Nt,Ht=On(this,o);for(;$t>2*Pt||Ut>2*zt;){const Vt=$t,Xt=Ut;$t>2*Pt&&($t=$t>=16384?Math.floor($t/2)-1:Math.ceil($t/2)),Ut>2*zt&&(Ut=Ut>=16384?Math.floor(Ut/2)-1:Math.ceil(Ut/2));const qt=new OffscreenCanvas($t,Ut);qt.getContext("2d").drawImage(Ht,0,0,Vt,Xt,0,0,$t,Ut),Ht=qt.transferToImageBitmap()}return Ht},_t=new WeakSet,Q_=function(Pt,zt){Pt=Math.ceil(Pt),zt=Math.ceil(zt);const Dt=On(this,mt);if(!Dt||Dt.width===Pt&&Dt.height===zt)return;Dt.width=Pt,Dt.height=zt;const Nt=On(this,j)?On(this,o):hs(this,yt,FS).call(this,Pt,zt),$t=Dt.getContext("2d");$t.filter=this._uiManager.hcmFilter,$t.drawImage(Nt,0,0,Nt.width,Nt.height,0,0,Pt,zt)},Tt=new WeakSet,lT=function(Pt){if(Pt){if(On(this,j)){const Nt=this._uiManager.imageManager.getSvgUrl(On(this,it));if(Nt)return Nt}const zt=document.createElement("canvas");return{width:zt.width,height:zt.height}=On(this,o),zt.getContext("2d").drawImage(On(this,o),0,0),zt.toDataURL()}if(On(this,j)){const[zt,Dt]=this.pageDimensions,Nt=Math.round(this.width*zt*Gt.PixelsPerInch.PDF_TO_CSS_UNITS),$t=Math.round(this.height*Dt*Gt.PixelsPerInch.PDF_TO_CSS_UNITS),Ut=new OffscreenCanvas(Nt,$t);return Ut.getContext("2d").drawImage(On(this,o),0,0,On(this,o).width,On(this,o).height,0,0,Nt,$t),Ut.transferToImageBitmap()}return structuredClone(On(this,o))},wt=new WeakSet,BS=function(){ks(this,ut,new ResizeObserver(Pt=>{const zt=Pt[0].contentRect;zt.width&&zt.height&&hs(this,ft,OS).call(this,zt.width,zt.height)})),On(this,ut).observe(this.div)},Dp(Rt,"_type","stamp"),i.StampEditor=Rt}],__webpack_module_cache__={};function __w_pdfjs_require__(a){var i=__webpack_module_cache__[a];if(i!==void 0)return i.exports;var _e=__webpack_module_cache__[a]={exports:{}};return __webpack_modules__[a](_e,_e.exports,__w_pdfjs_require__),_e.exports}var __webpack_exports__={};return(()=>{var a=__webpack_exports__;Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"AbortException",{enumerable:!0,get:function(){return i.AbortException}}),Object.defineProperty(a,"AnnotationEditorLayer",{enumerable:!0,get:function(){return Gt.AnnotationEditorLayer}}),Object.defineProperty(a,"AnnotationEditorParamsType",{enumerable:!0,get:function(){return i.AnnotationEditorParamsType}}),Object.defineProperty(a,"AnnotationEditorType",{enumerable:!0,get:function(){return i.AnnotationEditorType}}),Object.defineProperty(a,"AnnotationEditorUIManager",{enumerable:!0,get:function(){return Ct.AnnotationEditorUIManager}}),Object.defineProperty(a,"AnnotationLayer",{enumerable:!0,get:function(){return Rt.AnnotationLayer}}),Object.defineProperty(a,"AnnotationMode",{enumerable:!0,get:function(){return i.AnnotationMode}}),Object.defineProperty(a,"CMapCompressionType",{enumerable:!0,get:function(){return i.CMapCompressionType}}),Object.defineProperty(a,"DOMSVGFactory",{enumerable:!0,get:function(){return pt.DOMSVGFactory}}),Object.defineProperty(a,"FeatureTest",{enumerable:!0,get:function(){return i.FeatureTest}}),Object.defineProperty(a,"GlobalWorkerOptions",{enumerable:!0,get:function(){return o.GlobalWorkerOptions}}),Object.defineProperty(a,"ImageKind",{enumerable:!0,get:function(){return i.ImageKind}}),Object.defineProperty(a,"InvalidPDFException",{enumerable:!0,get:function(){return i.InvalidPDFException}}),Object.defineProperty(a,"MissingPDFException",{enumerable:!0,get:function(){return i.MissingPDFException}}),Object.defineProperty(a,"OPS",{enumerable:!0,get:function(){return i.OPS}}),Object.defineProperty(a,"PDFDataRangeTransport",{enumerable:!0,get:function(){return _e.PDFDataRangeTransport}}),Object.defineProperty(a,"PDFDateString",{enumerable:!0,get:function(){return pt.PDFDateString}}),Object.defineProperty(a,"PDFWorker",{enumerable:!0,get:function(){return _e.PDFWorker}}),Object.defineProperty(a,"PasswordResponses",{enumerable:!0,get:function(){return i.PasswordResponses}}),Object.defineProperty(a,"PermissionFlag",{enumerable:!0,get:function(){return i.PermissionFlag}}),Object.defineProperty(a,"PixelsPerInch",{enumerable:!0,get:function(){return pt.PixelsPerInch}}),Object.defineProperty(a,"PromiseCapability",{enumerable:!0,get:function(){return i.PromiseCapability}}),Object.defineProperty(a,"RenderingCancelledException",{enumerable:!0,get:function(){return pt.RenderingCancelledException}}),Object.defineProperty(a,"SVGGraphics",{enumerable:!0,get:function(){return _e.SVGGraphics}}),Object.defineProperty(a,"UnexpectedResponseException",{enumerable:!0,get:function(){return i.UnexpectedResponseException}}),Object.defineProperty(a,"Util",{enumerable:!0,get:function(){return i.Util}}),Object.defineProperty(a,"VerbosityLevel",{enumerable:!0,get:function(){return i.VerbosityLevel}}),Object.defineProperty(a,"XfaLayer",{enumerable:!0,get:function(){return it.XfaLayer}}),Object.defineProperty(a,"build",{enumerable:!0,get:function(){return _e.build}}),Object.defineProperty(a,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return i.createValidAbsoluteUrl}}),Object.defineProperty(a,"getDocument",{enumerable:!0,get:function(){return _e.getDocument}}),Object.defineProperty(a,"getFilenameFromUrl",{enumerable:!0,get:function(){return pt.getFilenameFromUrl}}),Object.defineProperty(a,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return pt.getPdfFilenameFromUrl}}),Object.defineProperty(a,"getXfaPageViewport",{enumerable:!0,get:function(){return pt.getXfaPageViewport}}),Object.defineProperty(a,"isDataScheme",{enumerable:!0,get:function(){return pt.isDataScheme}}),Object.defineProperty(a,"isPdfFile",{enumerable:!0,get:function(){return pt.isPdfFile}}),Object.defineProperty(a,"loadScript",{enumerable:!0,get:function(){return pt.loadScript}}),Object.defineProperty(a,"noContextMenu",{enumerable:!0,get:function(){return pt.noContextMenu}}),Object.defineProperty(a,"normalizeUnicode",{enumerable:!0,get:function(){return i.normalizeUnicode}}),Object.defineProperty(a,"renderTextLayer",{enumerable:!0,get:function(){return Lt.renderTextLayer}}),Object.defineProperty(a,"setLayerDimensions",{enumerable:!0,get:function(){return pt.setLayerDimensions}}),Object.defineProperty(a,"shadow",{enumerable:!0,get:function(){return i.shadow}}),Object.defineProperty(a,"updateTextLayer",{enumerable:!0,get:function(){return Lt.updateTextLayer}}),Object.defineProperty(a,"version",{enumerable:!0,get:function(){return _e.version}});var i=__w_pdfjs_require__(1),_e=__w_pdfjs_require__(2),pt=__w_pdfjs_require__(6),Lt=__w_pdfjs_require__(26),Gt=__w_pdfjs_require__(27),Ct=__w_pdfjs_require__(5),Rt=__w_pdfjs_require__(29),o=__w_pdfjs_require__(14),it=__w_pdfjs_require__(32)})(),__webpack_exports__})())})(pdf);var __createBinding=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(a,i,_e,pt){pt===void 0&&(pt=_e);var Lt=Object.getOwnPropertyDescriptor(i,_e);(!Lt||("get"in Lt?!i.__esModule:Lt.writable||Lt.configurable))&&(Lt={enumerable:!0,get:function(){return i[_e]}}),Object.defineProperty(a,pt,Lt)}:function(a,i,_e,pt){pt===void 0&&(pt=_e),a[pt]=i[_e]}),__setModuleDefault=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(a,i){Object.defineProperty(a,"default",{enumerable:!0,value:i})}:function(a,i){a.default=i}),__importStar=commonjsGlobal&&commonjsGlobal.__importStar||function(a){if(a&&a.__esModule)return a;var i={};if(a!=null)for(var _e in a)_e!=="default"&&Object.prototype.hasOwnProperty.call(a,_e)&&__createBinding(i,a,_e);return __setModuleDefault(i,a),i};Object.defineProperty(pdfjs$1,"__esModule",{value:!0});const pdfjsModule=__importStar(pdfExports),pdfjs="default"in pdfjsModule?pdfjsModule.default:pdfjsModule;pdfjs$1.default=pdfjs;var Document$1={};const require$$0=getAugmentedNamespace(jsxRuntime);var cjs$2={};(function(a){var i=commonjsGlobal&&commonjsGlobal.__spreadArray||function(pt,Lt,Gt){if(Gt||arguments.length===2)for(var Ct=0,Rt=Lt.length,o;Ct{(0,tiny_invariant_1$a.default)(this.pdfDocument,"PDF document not loaded."),(0,tiny_invariant_1$a.default)(i,"Destination is not specified."),typeof i=="string"?this.pdfDocument.getDestination(i).then(_e):Array.isArray(i)?_e(i):i.then(_e)}).then(_e=>{(0,tiny_invariant_1$a.default)(Array.isArray(_e),`"${_e}" is not a valid destination array.`);const pt=_e[0];new Promise(Lt=>{(0,tiny_invariant_1$a.default)(this.pdfDocument,"PDF document not loaded."),pt instanceof Object?this.pdfDocument.getPageIndex(pt).then(Gt=>{Lt(Gt)}).catch(()=>{(0,tiny_invariant_1$a.default)(!1,`"${pt}" is not a valid page reference.`)}):typeof pt=="number"?Lt(pt):(0,tiny_invariant_1$a.default)(!1,`"${pt}" is not a valid destination reference.`)}).then(Lt=>{const Gt=Lt+1;(0,tiny_invariant_1$a.default)(this.pdfViewer,"PDF viewer is not initialized."),(0,tiny_invariant_1$a.default)(Gt>=1&&Gt<=this.pagesCount,`"${Gt}" is not a valid page number.`),this.pdfViewer.scrollPageIntoView({dest:_e,pageIndex:Lt,pageNumber:Gt})})})}navigateTo(i){this.goToDestination(i)}goToPage(i){const _e=i-1;(0,tiny_invariant_1$a.default)(this.pdfViewer,"PDF viewer is not initialized."),(0,tiny_invariant_1$a.default)(i>=1&&i<=this.pagesCount,`"${i}" is not a valid page number.`),this.pdfViewer.scrollPageIntoView({pageIndex:_e,pageNumber:i})}addLinkAttributes(i,_e,pt){i.href=_e,i.rel=this.externalLinkRel||DEFAULT_LINK_REL,i.target=pt?"_blank":this.externalLinkTarget||""}getDestinationHash(){return"#"}getAnchorUrl(){return"#"}setHash(){}executeNamedAction(){}cachePageRef(){}isPageVisible(){return!0}isPageCached(){return!0}executeSetOCGState(){}}LinkService$1.default=LinkService;var PasswordResponses$1={};Object.defineProperty(PasswordResponses$1,"__esModule",{value:!0});const PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};PasswordResponses$1.default=PasswordResponses;var utils={};(function(a){var i=commonjsGlobal&&commonjsGlobal.__importDefault||function(tt){return tt&&tt.__esModule?tt:{default:tt}};Object.defineProperty(a,"__esModule",{value:!0}),a.loadFromFile=a.isCancelException=a.makePageCallback=a.cancelRunningTask=a.displayWorkerWarning=a.displayCORSWarning=a.getDevicePixelRatio=a.dataURItoByteString=a.isDataURI=a.isBlob=a.isArrayBuffer=a.isString=a.isProvided=a.isDefined=a.isLocalFileSystem=a.isBrowser=void 0;const _e=i(tinyInvariant_cjs),pt=i(warning_1$8);a.isBrowser=typeof document<"u",a.isLocalFileSystem=a.isBrowser&&window.location.protocol==="file:";function Lt(tt){return typeof tt<"u"}a.isDefined=Lt;function Gt(tt){return Lt(tt)&&tt!==null}a.isProvided=Gt;function Ct(tt){return typeof tt=="string"}a.isString=Ct;function Rt(tt){return tt instanceof ArrayBuffer}a.isArrayBuffer=Rt;function o(tt){return(0,_e.default)(a.isBrowser,"isBlob can only be used in a browser environment"),tt instanceof Blob}a.isBlob=o;function it(tt){return Ct(tt)&&/^data:/.test(tt)}a.isDataURI=it;function xt(tt){(0,_e.default)(it(tt),"Invalid data URI.");const[st="",ot=""]=tt.split(",");return st.split(";").indexOf("base64")!==-1?atob(ot):unescape(ot)}a.dataURItoByteString=xt;function et(){return a.isBrowser&&window.devicePixelRatio||1}a.getDevicePixelRatio=et;const Et="On Chromium based browsers, you can use --allow-file-access-from-files flag for debugging purposes.";function mt(){(0,pt.default)(!a.isLocalFileSystem,`Loading PDF as base64 strings/URLs may not work on protocols other than HTTP/HTTPS. ${Et}`)}a.displayCORSWarning=mt;function ut(){(0,pt.default)(!a.isLocalFileSystem,`Loading PDF.js worker may not work on protocols other than HTTP/HTTPS. ${Et}`)}a.displayWorkerWarning=ut;function ht(tt){tt&&tt.cancel&&tt.cancel()}a.cancelRunningTask=ht;function j(tt,st){return Object.defineProperty(tt,"width",{get(){return this.view[2]*st},configurable:!0}),Object.defineProperty(tt,"height",{get(){return this.view[3]*st},configurable:!0}),Object.defineProperty(tt,"originalWidth",{get(){return this.view[2]},configurable:!0}),Object.defineProperty(tt,"originalHeight",{get(){return this.view[3]},configurable:!0}),tt}a.makePageCallback=j;function _(tt){return tt.name==="RenderingCancelledException"}a.isCancelException=_;function rt(tt){return new Promise((st,ot)=>{const nt=new FileReader;nt.onload=()=>{if(!nt.result)return ot(new Error("Error while reading a file."));st(nt.result)},nt.onerror=vt=>{if(!vt.target)return ot(new Error("Error while reading a file."));const{error:dt}=vt.target;if(!dt)return ot(new Error("Error while reading a file."));switch(dt.code){case dt.NOT_FOUND_ERR:return ot(new Error("Error while reading a file: File not found."));case dt.SECURITY_ERR:return ot(new Error("Error while reading a file: Security error."));case dt.ABORT_ERR:return ot(new Error("Error while reading a file: Aborted."));default:return ot(new Error("Error while reading a file."))}},nt.readAsArrayBuffer(tt)})}a.loadFromFile=rt})(utils);var useResolver$1={};Object.defineProperty(useResolver$1,"__esModule",{value:!0});const react_1$f=reactExports;function reducer(a,i){switch(i.type){case"RESOLVE":return{value:i.value,error:void 0};case"REJECT":return{value:!1,error:i.error};case"RESET":return{value:void 0,error:void 0};default:return a}}function useResolver(){return(0,react_1$f.useReducer)(reducer,{value:void 0,error:void 0})}useResolver$1.default=useResolver;var __awaiter$2=commonjsGlobal&&commonjsGlobal.__awaiter||function(a,i,_e,pt){function Lt(Gt){return Gt instanceof _e?Gt:new _e(function(Ct){Ct(Gt)})}return new(_e||(_e=Promise))(function(Gt,Ct){function Rt(xt){try{it(pt.next(xt))}catch(et){Ct(et)}}function o(xt){try{it(pt.throw(xt))}catch(et){Ct(et)}}function it(xt){xt.done?Gt(xt.value):Lt(xt.value).then(Rt,o)}it((pt=pt.apply(a,i||[])).next())})},__rest$4=commonjsGlobal&&commonjsGlobal.__rest||function(a,i){var _e={};for(var pt in a)Object.prototype.hasOwnProperty.call(a,pt)&&i.indexOf(pt)<0&&(_e[pt]=a[pt]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,pt=Object.getOwnPropertySymbols(a);Lt{switch(i){case PasswordResponses_js_1$1.default.NEED_PASSWORD:{const _e=prompt("Enter the password to open this PDF file.");a(_e);break}case PasswordResponses_js_1$1.default.INCORRECT_PASSWORD:{const _e=prompt("Invalid password. Please try again.");a(_e);break}}};function isParameterObject(a){return typeof a=="object"&&a!==null&&("data"in a||"range"in a||"url"in a)}const Document=(0,react_1$e.forwardRef)(function a(i,_e){var{children:pt,className:Lt,error:Gt="Failed to load PDF file.",externalLinkRel:Ct,externalLinkTarget:Rt,file:o,inputRef:it,imageResourcesPath:xt,loading:et="Loading PDF…",noData:Et="No PDF file specified.",onItemClick:mt,onLoadError:ut,onLoadProgress:ht,onLoadSuccess:j,onPassword:_=defaultOnPassword,onSourceError:rt,onSourceSuccess:tt,options:st,renderMode:ot,rotate:nt}=i,vt=__rest$4(i,["children","className","error","externalLinkRel","externalLinkTarget","file","inputRef","imageResourcesPath","loading","noData","onItemClick","onLoadError","onLoadProgress","onLoadSuccess","onPassword","onSourceError","onSourceSuccess","options","renderMode","rotate"]);const[dt,bt]=(0,useResolver_js_1$6.default)(),{value:ft,error:at}=dt,[yt,St]=(0,useResolver_js_1$6.default)(),{value:_t,error:Mt}=yt,Tt=(0,react_1$e.useRef)(new LinkService_js_1.default),kt=(0,react_1$e.useRef)([]),wt=(0,react_1$e.useRef)(void 0),ct=(0,react_1$e.useRef)(void 0);o&&o!==wt.current&&isParameterObject(o)&&((0,warning_1$7.default)(!(0,dequal_1.dequal)(o,wt.current),`File prop passed to changed, but it's equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "file" prop.`),wt.current=o),st&&st!==ct.current&&((0,warning_1$7.default)(!(0,dequal_1.dequal)(st,ct.current),`Options prop passed to changed, but it's equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "options" prop.`),ct.current=st);const It=(0,react_1$e.useRef)({scrollPageIntoView:Yt=>{const{dest:rr,pageNumber:jt,pageIndex:ar=jt-1}=Yt;if(mt){mt({dest:rr,pageIndex:ar,pageNumber:jt});return}const sr=kt.current[ar];if(sr){sr.scrollIntoView();return}(0,warning_1$7.default)(!1,`An internal link leading to page ${jt} was clicked, but neither was provided with onItemClick nor it was able to find the page within itself. Either provide onItemClick to and handle navigating by yourself or ensure that all pages are rendered within .`)}});(0,react_1$e.useImperativeHandle)(_e,()=>({linkService:Tt,pages:kt,viewer:It}),[]);function At(){tt&&tt()}function Ot(){at&&((0,warning_1$7.default)(!1,at.toString()),rt&&rt(at))}function Pt(){bt({type:"RESET"})}(0,react_1$e.useEffect)(Pt,[o,bt]);const zt=(0,react_1$e.useCallback)(()=>__awaiter$2(this,void 0,void 0,function*(){if(!o)return null;if(typeof o=="string")return(0,utils_js_1$a.isDataURI)(o)?{data:(0,utils_js_1$a.dataURItoByteString)(o)}:((0,utils_js_1$a.displayCORSWarning)(),{url:o});if(o instanceof PDFDataRangeTransport)return{range:o};if((0,utils_js_1$a.isArrayBuffer)(o))return{data:o};if(utils_js_1$a.isBrowser&&(0,utils_js_1$a.isBlob)(o))return{data:yield(0,utils_js_1$a.loadFromFile)(o)};if((0,tiny_invariant_1$9.default)(typeof o=="object","Invalid parameter in file, need either Uint8Array, string or a parameter object"),(0,tiny_invariant_1$9.default)(isParameterObject(o),"Invalid parameter object: need either .data, .range or .url"),"url"in o&&typeof o.url=="string"){if((0,utils_js_1$a.isDataURI)(o.url)){const{url:Yt}=o,rr=__rest$4(o,["url"]),jt=(0,utils_js_1$a.dataURItoByteString)(Yt);return Object.assign({data:jt},rr)}(0,utils_js_1$a.displayCORSWarning)()}return o}),[o]);(0,react_1$e.useEffect)(()=>{const Yt=(0,make_cancellable_promise_1$6.default)(zt());return Yt.promise.then(rr=>{bt({type:"RESOLVE",value:rr})}).catch(rr=>{bt({type:"REJECT",error:rr})}),()=>{(0,utils_js_1$a.cancelRunningTask)(Yt)}},[zt,bt]),(0,react_1$e.useEffect)(()=>{if(!(typeof ft>"u")){if(ft===!1){Ot();return}At()}},[ft]);function Dt(){_t&&(j&&j(_t),kt.current=new Array(_t.numPages),Tt.current.setDocument(_t))}function Nt(){Mt&&((0,warning_1$7.default)(!1,Mt.toString()),ut&&ut(Mt))}function $t(){St({type:"RESET"})}(0,react_1$e.useEffect)($t,[St,ft]);function Ut(){if(!ft)return;const Yt=Object.assign(Object.assign({},st),{isEvalSupported:!1}),rr=Object.assign(Object.assign({},ft),Yt),jt=pdfjs_js_1$5.default.getDocument(rr);ht&&(jt.onProgress=ht),_&&(jt.onPassword=_);const ar=jt;return ar.promise.then(sr=>{St({type:"RESOLVE",value:sr})}).catch(sr=>{ar.destroyed||St({type:"REJECT",error:sr})}),()=>{ar.destroy()}}(0,react_1$e.useEffect)(Ut,[st,St,ft]),(0,react_1$e.useEffect)(()=>{if(!(typeof _t>"u")){if(_t===!1){Nt();return}Dt()}},[_t]);function Ht(){Tt.current.setViewer(It.current),Tt.current.setExternalLinkRel(Ct),Tt.current.setExternalLinkTarget(Rt)}(0,react_1$e.useEffect)(Ht,[Ct,Rt]);function Vt(Yt,rr){kt.current[Yt]=rr}function Xt(Yt){delete kt.current[Yt]}const qt=(0,react_1$e.useMemo)(()=>({imageResourcesPath:xt,linkService:Tt.current,onItemClick:mt,pdf:_t,registerPage:Vt,renderMode:ot,rotate:nt,unregisterPage:Xt}),[xt,mt,_t,ot,nt]),er=(0,react_1$e.useMemo)(()=>(0,make_event_props_1$2.default)(vt,()=>_t),[vt,_t]);function lr(){return(0,jsx_runtime_1$a.jsx)(DocumentContext_js_1$1.default.Provider,{value:qt,children:pt})}function Jt(){return o?_t==null?(0,jsx_runtime_1$a.jsx)(Message_js_1$1.default,{type:"loading",children:typeof et=="function"?et():et}):_t===!1?(0,jsx_runtime_1$a.jsx)(Message_js_1$1.default,{type:"error",children:typeof Gt=="function"?Gt():Gt}):lr():(0,jsx_runtime_1$a.jsx)(Message_js_1$1.default,{type:"no-data",children:typeof Et=="function"?Et():Et})}return(0,jsx_runtime_1$a.jsx)("div",Object.assign({className:(0,clsx_1$5.default)("react-pdf__Document",Lt),ref:it,style:{["--scale-factor"]:"1"}},er,{children:Jt()}))});Document$1.default=Document;var Outline$1={},OutlineContext={};Object.defineProperty(OutlineContext,"__esModule",{value:!0});const react_1$d=reactExports;OutlineContext.default=(0,react_1$d.createContext)(null);var OutlineItem$1={},Ref$1={};Object.defineProperty(Ref$1,"__esModule",{value:!0});class Ref{constructor({num:i,gen:_e}){this.num=i,this.gen=_e}toString(){let i=`${this.num}R`;return this.gen!==0&&(i+=this.gen),i}}Ref$1.default=Ref;var useCachedValue$1={};Object.defineProperty(useCachedValue$1,"__esModule",{value:!0});const react_1$c=reactExports,utils_js_1$9=utils;function useCachedValue(a){const i=(0,react_1$c.useRef)(void 0),_e=i.current;return(0,utils_js_1$9.isDefined)(_e)?()=>_e:()=>{const pt=a();return i.current=pt,pt}}useCachedValue$1.default=useCachedValue;var useDocumentContext$1={},__importDefault$c=commonjsGlobal&&commonjsGlobal.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(useDocumentContext$1,"__esModule",{value:!0});const react_1$b=reactExports,DocumentContext_js_1=__importDefault$c(DocumentContext);function useDocumentContext(){return(0,react_1$b.useContext)(DocumentContext_js_1.default)}useDocumentContext$1.default=useDocumentContext;var useOutlineContext$1={},__importDefault$b=commonjsGlobal&&commonjsGlobal.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(useOutlineContext$1,"__esModule",{value:!0});const react_1$a=reactExports,OutlineContext_js_1$1=__importDefault$b(OutlineContext);function useOutlineContext(){return(0,react_1$a.useContext)(OutlineContext_js_1$1.default)}useOutlineContext$1.default=useOutlineContext;var __awaiter$1=commonjsGlobal&&commonjsGlobal.__awaiter||function(a,i,_e,pt){function Lt(Gt){return Gt instanceof _e?Gt:new _e(function(Ct){Ct(Gt)})}return new(_e||(_e=Promise))(function(Gt,Ct){function Rt(xt){try{it(pt.next(xt))}catch(et){Ct(et)}}function o(xt){try{it(pt.throw(xt))}catch(et){Ct(et)}}function it(xt){xt.done?Gt(xt.value):Lt(xt.value).then(Rt,o)}it((pt=pt.apply(a,i||[])).next())})},__rest$3=commonjsGlobal&&commonjsGlobal.__rest||function(a,i){var _e={};for(var pt in a)Object.prototype.hasOwnProperty.call(a,pt)&&i.indexOf(pt)<0&&(_e[pt]=a[pt]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,pt=Object.getOwnPropertySymbols(a);Lt in a or pass explicit `pdf` prop.");const it=(0,useCachedValue_js_1.default)(()=>typeof Lt.dest=="string"?Rt.getDestination(Lt.dest):Lt.dest),xt=(0,useCachedValue_js_1.default)(()=>__awaiter$1(this,void 0,void 0,function*(){const ut=yield it();if(!ut)throw new Error("Destination not found.");const[ht]=ut;return Rt.getPageIndex(new Ref_js_1.default(ht))})),et=(0,useCachedValue_js_1.default)(()=>__awaiter$1(this,void 0,void 0,function*(){return(yield xt())+1}));function Et(ut){ut.preventDefault(),(0,tiny_invariant_1$8.default)(Ct||Gt,"Either onItemClick callback or linkService must be defined in order to navigate to an outline item."),Ct?Promise.all([it(),xt(),et()]).then(([ht,j,_])=>{Ct({dest:ht,pageIndex:j,pageNumber:_})}):Gt&&Gt.goToDestination(Lt.dest)}function mt(){if(!Lt.items||!Lt.items.length)return null;const{items:ut}=Lt;return(0,jsx_runtime_1$9.jsx)("ul",{children:ut.map((ht,j)=>(0,jsx_runtime_1$9.jsx)(OutlineItem,Object.assign({item:ht,pdf:Rt},o),typeof ht.dest=="string"?ht.dest:j))})}return(0,jsx_runtime_1$9.jsxs)("li",{children:[(0,jsx_runtime_1$9.jsx)("a",{href:"#",onClick:Et,children:Lt.title}),mt()]})}OutlineItem$1.default=OutlineItem;var __rest$2=commonjsGlobal&&commonjsGlobal.__rest||function(a,i){var _e={};for(var pt in a)Object.prototype.hasOwnProperty.call(a,pt)&&i.indexOf(pt)<0&&(_e[pt]=a[pt]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,pt=Object.getOwnPropertySymbols(a);Lt in a or pass explicit `pdf` prop.");const[xt,et]=(0,useResolver_js_1$5.default)(),{value:Et,error:mt}=xt;function ut(){typeof Et>"u"||Et===!1||Rt&&Rt(Et)}function ht(){mt&&((0,warning_1$6.default)(!1,mt.toString()),Ct&&Ct(mt))}function j(){et({type:"RESET"})}(0,react_1$9.useEffect)(j,[et,o]);function _(){if(!o)return;const ot=(0,make_cancellable_promise_1$5.default)(o.getOutline()),nt=ot;return ot.promise.then(vt=>{et({type:"RESOLVE",value:vt})}).catch(vt=>{et({type:"REJECT",error:vt})}),()=>(0,utils_js_1$8.cancelRunningTask)(nt)}(0,react_1$9.useEffect)(_,[et,o]),(0,react_1$9.useEffect)(()=>{if(Et!==void 0){if(Et===!1){ht();return}ut()}},[Et]);const rt=(0,react_1$9.useMemo)(()=>({onItemClick:Gt}),[Gt]),tt=(0,react_1$9.useMemo)(()=>(0,make_event_props_1$1.default)(it,()=>Et),[it,Et]);if(!Et)return null;function st(){return Et?(0,jsx_runtime_1$8.jsx)("ul",{children:Et.map((ot,nt)=>(0,jsx_runtime_1$8.jsx)(OutlineItem_js_1.default,{item:ot,pdf:o},typeof ot.dest=="string"?ot.dest:nt))}):null}return(0,jsx_runtime_1$8.jsx)("div",Object.assign({className:(0,clsx_1$4.default)("react-pdf__Outline",pt),ref:Lt},tt,{children:(0,jsx_runtime_1$8.jsx)(OutlineContext_js_1.default.Provider,{value:rt,children:st()})}))}Outline$1.default=Outline;var Page$1={},cjs={};Object.defineProperty(cjs,"__esModule",{value:!0});function mergeRefs(){for(var a=[],i=0;i(0,structTreeUtils_js_1.getAttributes)(i),[i]),pt=(0,react_1$7.useMemo)(()=>!(0,structTreeUtils_js_1.isStructTreeNode)(i)||(0,structTreeUtils_js_1.isStructTreeNodeWithOnlyContentChild)(i)?null:i.children.map((Lt,Gt)=>(0,jsx_runtime_1$7.jsx)(StructTreeItem,{node:Lt},Gt)),[i]);return(0,jsx_runtime_1$7.jsx)("span",Object.assign({className:a},_e,{children:pt}))}StructTreeItem$1.default=StructTreeItem;var usePageContext$1={},__importDefault$8=commonjsGlobal&&commonjsGlobal.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(usePageContext$1,"__esModule",{value:!0});const react_1$6=reactExports,PageContext_js_1$1=__importDefault$8(PageContext);function usePageContext(){return(0,react_1$6.useContext)(PageContext_js_1$1.default)}usePageContext$1.default=usePageContext;var __importDefault$7=commonjsGlobal&&commonjsGlobal.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(StructTree$1,"__esModule",{value:!0});const jsx_runtime_1$6=require$$0,react_1$5=reactExports,make_cancellable_promise_1$4=__importDefault$7(cjs$1),tiny_invariant_1$6=__importDefault$7(tinyInvariant_cjs),warning_1$5=__importDefault$7(warning_1$8),StructTreeItem_js_1=__importDefault$7(StructTreeItem$1),usePageContext_js_1$5=__importDefault$7(usePageContext$1),useResolver_js_1$4=__importDefault$7(useResolver$1),utils_js_1$7=utils;function StructTree(){const a=(0,usePageContext_js_1$5.default)();(0,tiny_invariant_1$6.default)(a,"Unable to find Page context.");const{onGetStructTreeError:i,onGetStructTreeSuccess:_e}=a,[pt,Lt]=(0,useResolver_js_1$4.default)(),{value:Gt,error:Ct}=pt,{customTextRenderer:Rt,page:o}=a;function it(){Gt&&_e&&_e(Gt)}function xt(){Ct&&((0,warning_1$5.default)(!1,Ct.toString()),i&&i(Ct))}function et(){Lt({type:"RESET"})}(0,react_1$5.useEffect)(et,[Lt,o]);function Et(){if(Rt||!o)return;const mt=(0,make_cancellable_promise_1$4.default)(o.getStructTree()),ut=mt;return mt.promise.then(ht=>{Lt({type:"RESOLVE",value:ht})}).catch(ht=>{Lt({type:"REJECT",error:ht})}),()=>(0,utils_js_1$7.cancelRunningTask)(ut)}return(0,react_1$5.useEffect)(Et,[Rt,o,Lt]),(0,react_1$5.useEffect)(()=>{if(Gt!==void 0){if(Gt===!1){xt();return}it()}},[Gt]),Gt?(0,jsx_runtime_1$6.jsx)(StructTreeItem_js_1.default,{className:"react-pdf__Page__structTree structTree",node:Gt}):null}StructTree$1.default=StructTree;var __importDefault$6=commonjsGlobal&&commonjsGlobal.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(PageCanvas$1,"__esModule",{value:!0});const jsx_runtime_1$5=require$$0,react_1$4=reactExports,merge_refs_1$1=__importDefault$6(cjs),tiny_invariant_1$5=__importDefault$6(tinyInvariant_cjs),warning_1$4=__importDefault$6(warning_1$8),pdfjs_js_1$4=__importDefault$6(pdfjs$1),StructTree_js_1=__importDefault$6(StructTree$1),usePageContext_js_1$4=__importDefault$6(usePageContext$1),utils_js_1$6=utils,ANNOTATION_MODE=pdfjs_js_1$4.default.AnnotationMode;function PageCanvas(a){const i=(0,usePageContext_js_1$4.default)();(0,tiny_invariant_1$5.default)(i,"Unable to find Page context.");const _e=Object.assign(Object.assign({},i),a),{_className:pt,canvasBackground:Lt,devicePixelRatio:Gt=(0,utils_js_1$6.getDevicePixelRatio)(),onRenderError:Ct,onRenderSuccess:Rt,page:o,renderForms:it,renderTextLayer:xt,rotate:et,scale:Et}=_e,{canvasRef:mt}=a;(0,tiny_invariant_1$5.default)(o,"Attempted to render page canvas, but no page was specified.");const ut=(0,react_1$4.useRef)(null);function ht(){o&&Rt&&Rt((0,utils_js_1$6.makePageCallback)(o,Et))}function j(ot){(0,utils_js_1$6.isCancelException)(ot)||((0,warning_1$4.default)(!1,ot.toString()),Ct&&Ct(ot))}const _=(0,react_1$4.useMemo)(()=>o.getViewport({scale:Et*Gt,rotation:et}),[Gt,o,et,Et]),rt=(0,react_1$4.useMemo)(()=>o.getViewport({scale:Et,rotation:et}),[o,et,Et]);function tt(){if(!o)return;o.cleanup();const{current:ot}=ut;if(!ot)return;ot.width=_.width,ot.height=_.height,ot.style.width=`${Math.floor(rt.width)}px`,ot.style.height=`${Math.floor(rt.height)}px`,ot.style.visibility="hidden";const nt={annotationMode:it?ANNOTATION_MODE.ENABLE_FORMS:ANNOTATION_MODE.ENABLE,canvasContext:ot.getContext("2d",{alpha:!1}),viewport:_};Lt&&(nt.background=Lt);const vt=o.render(nt),dt=vt;return vt.promise.then(()=>{ot.style.visibility="",ht()}).catch(j),()=>(0,utils_js_1$6.cancelRunningTask)(dt)}(0,react_1$4.useEffect)(tt,[Lt,ut,Gt,o,it,_,rt]);const st=(0,react_1$4.useCallback)(()=>{const{current:ot}=ut;ot&&(ot.width=0,ot.height=0)},[ut]);return(0,react_1$4.useEffect)(()=>st,[st]),(0,jsx_runtime_1$5.jsx)("canvas",{className:`${pt}__canvas`,dir:"ltr",ref:(0,merge_refs_1$1.default)(mt,ut),style:{display:"block",userSelect:"none"},children:xt?(0,jsx_runtime_1$5.jsx)(StructTree_js_1.default,{}):null})}PageCanvas$1.default=PageCanvas;var PageSVG$1={},__importDefault$5=commonjsGlobal&&commonjsGlobal.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(PageSVG$1,"__esModule",{value:!0});const jsx_runtime_1$4=require$$0,react_1$3=reactExports,make_cancellable_promise_1$3=__importDefault$5(cjs$1),tiny_invariant_1$4=__importDefault$5(tinyInvariant_cjs),warning_1$3=__importDefault$5(warning_1$8),pdfjs_js_1$3=__importDefault$5(pdfjs$1),usePageContext_js_1$3=__importDefault$5(usePageContext$1),useResolver_js_1$3=__importDefault$5(useResolver$1),utils_js_1$5=utils;function PageSVG(){const a=(0,usePageContext_js_1$3.default)();(0,tiny_invariant_1$4.default)(a,"Unable to find Page context.");const{_className:i,onRenderSuccess:_e,onRenderError:pt,page:Lt,rotate:Gt,scale:Ct}=a;(0,tiny_invariant_1$4.default)(Lt,"Attempted to render page SVG, but no page was specified.");const[Rt,o]=(0,useResolver_js_1$3.default)(),{value:it,error:xt}=Rt;function et(){Lt&&_e&&_e((0,utils_js_1$5.makePageCallback)(Lt,Ct))}function Et(){xt&&((0,utils_js_1$5.isCancelException)(xt)||((0,warning_1$3.default)(!1,xt.toString()),pt&&pt(xt)))}const mt=(0,react_1$3.useMemo)(()=>Lt.getViewport({scale:Ct,rotation:Gt}),[Lt,Gt,Ct]);function ut(){o({type:"RESET"})}(0,react_1$3.useEffect)(ut,[Lt,o,mt]);function ht(){if(!Lt)return;const tt=(0,make_cancellable_promise_1$3.default)(Lt.getOperatorList());return tt.promise.then(st=>{new pdfjs_js_1$3.default.SVGGraphics(Lt.commonObjs,Lt.objs).getSVG(st,mt).then(nt=>{if(!(nt instanceof SVGElement))throw new Error("getSVG returned unexpected result.");o({type:"RESOLVE",value:nt})}).catch(nt=>{o({type:"REJECT",error:nt})})}).catch(st=>{o({type:"REJECT",error:st})}),()=>(0,utils_js_1$5.cancelRunningTask)(tt)}(0,react_1$3.useEffect)(ht,[Lt,o,mt]),(0,react_1$3.useEffect)(()=>{if(it!==void 0){if(it===!1){Et();return}et()}},[it]);function j(tt){if(!tt||!it)return;tt.firstElementChild||tt.appendChild(it);const{width:st,height:ot}=mt;it.setAttribute("width",`${st}`),it.setAttribute("height",`${ot}`)}const{width:_,height:rt}=mt;return(0,jsx_runtime_1$4.jsx)("div",{className:`${i}__svg`,ref:tt=>j(tt),style:{display:"block",backgroundColor:"white",overflow:"hidden",width:_,height:rt,userSelect:"none"}})}PageSVG$1.default=PageSVG;var TextLayer$1={},__importDefault$4=commonjsGlobal&&commonjsGlobal.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(TextLayer$1,"__esModule",{value:!0});const jsx_runtime_1$3=require$$0,react_1$2=reactExports,make_cancellable_promise_1$2=__importDefault$4(cjs$1),clsx_1$3=__importDefault$4(clsxExports),tiny_invariant_1$3=__importDefault$4(tinyInvariant_cjs),warning_1$2=__importDefault$4(warning_1$8),pdfjs_js_1$2=__importDefault$4(pdfjs$1),usePageContext_js_1$2=__importDefault$4(usePageContext$1),useResolver_js_1$2=__importDefault$4(useResolver$1),utils_js_1$4=utils;function isTextItem(a){return"str"in a}function TextLayer(){const a=(0,usePageContext_js_1$2.default)();(0,tiny_invariant_1$3.default)(a,"Unable to find Page context.");const{customTextRenderer:i,onGetTextError:_e,onGetTextSuccess:pt,onRenderTextLayerError:Lt,onRenderTextLayerSuccess:Gt,page:Ct,pageIndex:Rt,pageNumber:o,rotate:it,scale:xt}=a;(0,tiny_invariant_1$3.default)(Ct,"Attempted to load page text content, but no page was specified.");const[et,Et]=(0,useResolver_js_1$2.default)(),{value:mt,error:ut}=et,ht=(0,react_1$2.useRef)(null),j=(0,react_1$2.useRef)(void 0);(0,warning_1$2.default)(parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-text-layer"),10)===1,"TextLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-text-layer");function _(){mt&&pt&&pt(mt)}function rt(){ut&&((0,warning_1$2.default)(!1,ut.toString()),_e&&_e(ut))}function tt(){Et({type:"RESET"})}(0,react_1$2.useEffect)(tt,[Ct,Et]);function st(){if(!Ct)return;const at=(0,make_cancellable_promise_1$2.default)(Ct.getTextContent()),yt=at;return at.promise.then(St=>{Et({type:"RESOLVE",value:St})}).catch(St=>{Et({type:"REJECT",error:St})}),()=>(0,utils_js_1$4.cancelRunningTask)(yt)}(0,react_1$2.useEffect)(st,[Ct,Et]),(0,react_1$2.useEffect)(()=>{if(mt!==void 0){if(mt===!1){rt();return}_()}},[mt]);const ot=(0,react_1$2.useCallback)(()=>{Gt&&Gt()},[Gt]),nt=(0,react_1$2.useCallback)(at=>{(0,warning_1$2.default)(!1,at.toString()),Lt&&Lt(at)},[Lt]);function vt(){const at=j.current;at&&at.classList.add("active")}function dt(){const at=j.current;at&&at.classList.remove("active")}const bt=(0,react_1$2.useMemo)(()=>Ct.getViewport({scale:xt,rotation:it}),[Ct,it,xt]);function ft(){if(!Ct||!mt)return;const{current:at}=ht;if(!at)return;at.innerHTML="";const yt=Ct.streamTextContent({includeMarkedContent:!0}),St={container:at,textContentSource:yt,viewport:bt},_t=pdfjs_js_1$2.default.renderTextLayer(St),Mt=_t;return _t.promise.then(()=>{const Tt=document.createElement("div");Tt.className="endOfContent",at.append(Tt),j.current=Tt;const kt=at.querySelectorAll('[role="presentation"]');if(i){let wt=0;mt.items.forEach((ct,It)=>{if(!isTextItem(ct))return;const At=kt[wt];if(!At)return;const Ot=i(Object.assign({pageIndex:Rt,pageNumber:o,itemIndex:It},ct));At.innerHTML=Ot,wt+=ct.str&&ct.hasEOL?2:1})}ot()}).catch(nt),()=>(0,utils_js_1$4.cancelRunningTask)(Mt)}return(0,react_1$2.useLayoutEffect)(ft,[i,nt,ot,Ct,Rt,o,mt,bt]),(0,jsx_runtime_1$3.jsx)("div",{className:(0,clsx_1$3.default)("react-pdf__Page__textContent","textLayer"),onMouseUp:dt,onMouseDown:vt,ref:ht})}TextLayer$1.default=TextLayer;var AnnotationLayer$1={},__importDefault$3=commonjsGlobal&&commonjsGlobal.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(AnnotationLayer$1,"__esModule",{value:!0});const jsx_runtime_1$2=require$$0,react_1$1=reactExports,make_cancellable_promise_1$1=__importDefault$3(cjs$1),clsx_1$2=__importDefault$3(clsxExports),tiny_invariant_1$2=__importDefault$3(tinyInvariant_cjs),warning_1$1=__importDefault$3(warning_1$8),pdfjs_js_1$1=__importDefault$3(pdfjs$1),useDocumentContext_js_1$3=__importDefault$3(useDocumentContext$1),usePageContext_js_1$1=__importDefault$3(usePageContext$1),useResolver_js_1$1=__importDefault$3(useResolver$1),utils_js_1$3=utils;function AnnotationLayer(){const a=(0,useDocumentContext_js_1$3.default)(),i=(0,usePageContext_js_1$1.default)();(0,tiny_invariant_1$2.default)(i,"Unable to find Page context.");const _e=Object.assign(Object.assign({},a),i),{imageResourcesPath:pt,linkService:Lt,onGetAnnotationsError:Gt,onGetAnnotationsSuccess:Ct,onRenderAnnotationLayerError:Rt,onRenderAnnotationLayerSuccess:o,page:it,pdf:xt,renderForms:et,rotate:Et,scale:mt=1}=_e;(0,tiny_invariant_1$2.default)(xt,"Attempted to load page annotations, but no document was specified. Wrap in a or pass explicit `pdf` prop."),(0,tiny_invariant_1$2.default)(it,"Attempted to load page annotations, but no page was specified."),(0,tiny_invariant_1$2.default)(Lt,"Attempted to load page annotations, but no linkService was specified.");const[ut,ht]=(0,useResolver_js_1$1.default)(),{value:j,error:_}=ut,rt=(0,react_1$1.useRef)(null);(0,warning_1$1.default)(parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-annotation-layer"),10)===1,"AnnotationLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-annotations");function tt(){j&&Ct&&Ct(j)}function st(){_&&((0,warning_1$1.default)(!1,_.toString()),Gt&&Gt(_))}function ot(){ht({type:"RESET"})}(0,react_1$1.useEffect)(ot,[ht,it]);function nt(){if(!it)return;const at=(0,make_cancellable_promise_1$1.default)(it.getAnnotations()),yt=at;return at.promise.then(St=>{ht({type:"RESOLVE",value:St})}).catch(St=>{ht({type:"REJECT",error:St})}),()=>{(0,utils_js_1$3.cancelRunningTask)(yt)}}(0,react_1$1.useEffect)(nt,[ht,it,et]),(0,react_1$1.useEffect)(()=>{if(j!==void 0){if(j===!1){st();return}tt()}},[j]);function vt(){o&&o()}function dt(at){(0,warning_1$1.default)(!1,`${at}`),Rt&&Rt(at)}const bt=(0,react_1$1.useMemo)(()=>it.getViewport({scale:mt,rotation:Et}),[it,Et,mt]);function ft(){if(!xt||!it||!Lt||!j)return;const{current:at}=rt;if(!at)return;const yt=bt.clone({dontFlip:!0}),St={accessibilityManager:null,annotationCanvasMap:null,div:at,l10n:null,page:it,viewport:yt},_t={annotations:j,annotationStorage:xt.annotationStorage,div:at,downloadManager:null,imageResourcesPath:pt,linkService:Lt,page:it,renderForms:et,viewport:yt};at.innerHTML="";try{new pdfjs_js_1$1.default.AnnotationLayer(St).render(_t),vt()}catch(Mt){dt(Mt)}return()=>{}}return(0,react_1$1.useEffect)(ft,[j,pt,Lt,it,et,bt]),(0,jsx_runtime_1$2.jsx)("div",{className:(0,clsx_1$2.default)("react-pdf__Page__annotations","annotationLayer"),ref:rt})}AnnotationLayer$1.default=AnnotationLayer;var __rest$1=commonjsGlobal&&commonjsGlobal.__rest||function(a,i){var _e={};for(var pt in a)Object.prototype.hasOwnProperty.call(a,pt)&&i.indexOf(pt)<0&&(_e[pt]=a[pt]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,pt=Object.getOwnPropertySymbols(a);Lt in a or pass explicit `pdf` prop.");const er=(0,utils_js_1$2.isProvided)(Tt)?Tt-1:Mt??null,lr=Tt??((0,utils_js_1$2.isProvided)(Mt)?Mt+1:null),Jt=Pt??(Vt?Vt.rotate:null),Yt=(0,react_1.useMemo)(()=>{if(!Vt)return null;let _r=1;const Er=zt??defaultScale;if(Nt||mt){const Rr=Vt.getViewport({scale:1,rotation:Jt});Nt?_r=Nt/Rr.width:mt&&(_r=mt/Rr.height)}return Er*_r},[mt,Vt,Jt,zt,Nt]);function rr(){return()=>{(0,utils_js_1$2.isProvided)(er)&&Lt&&Dt&&Dt(er)}}(0,react_1.useEffect)(rr,[Lt,kt,er,Dt]);function jt(){if(dt){if(!Vt||!Yt)return;dt((0,utils_js_1$2.makePageCallback)(Vt,Yt))}if(Lt&&wt){if(!(0,utils_js_1$2.isProvided)(er)||!qt.current)return;wt(er,qt.current)}}function ar(){Xt&&((0,warning_1.default)(!1,Xt.toString()),vt&&vt(Xt))}function sr(){Ht({type:"RESET"})}(0,react_1.useEffect)(sr,[Ht,kt,er]);function Zt(){if(!kt||!lr)return;const _r=(0,make_cancellable_promise_1.default)(kt.getPage(lr)),Er=_r;return _r.promise.then(Rr=>{Ht({type:"RESOLVE",value:Rr})}).catch(Rr=>{Ht({type:"REJECT",error:Rr})}),()=>(0,utils_js_1$2.cancelRunningTask)(Er)}(0,react_1.useEffect)(Zt,[Ht,kt,er,lr,wt]),(0,react_1.useEffect)(()=>{if(Vt!==void 0){if(Vt===!1){ar();return}jt()}},[Vt,Yt]);const Kt=(0,react_1.useMemo)(()=>Vt&&(0,utils_js_1$2.isProvided)(er)&&lr&&(0,utils_js_1$2.isProvided)(Jt)&&(0,utils_js_1$2.isProvided)(Yt)?{_className:pt,canvasBackground:Gt,customTextRenderer:xt,devicePixelRatio:et,onGetAnnotationsError:_,onGetAnnotationsSuccess:rt,onGetStructTreeError:tt,onGetStructTreeSuccess:st,onGetTextError:ot,onGetTextSuccess:nt,onRenderAnnotationLayerError:bt,onRenderAnnotationLayerSuccess:ft,onRenderError:at,onRenderSuccess:yt,onRenderTextLayerError:St,onRenderTextLayerSuccess:_t,page:Vt,pageIndex:er,pageNumber:lr,renderForms:It,renderTextLayer:Ot,rotate:Jt,scale:Yt}:null,[pt,Gt,xt,et,_,rt,tt,st,ot,nt,bt,ft,at,yt,St,_t,Vt,er,lr,It,Ot,Jt,Yt]),or=(0,react_1.useMemo)(()=>(0,make_event_props_1.default)($t,()=>Vt&&(Yt?(0,utils_js_1$2.makePageCallback)(Vt,Yt):void 0)),[$t,Vt,Yt]),tr=`${er}@${Yt}/${Jt}`,cr=`${er}/${Jt}`;function hr(){switch(At){case"custom":return(0,tiny_invariant_1$1.default)(it,'renderMode was set to "custom", but no customRenderer was passed.'),(0,jsx_runtime_1$1.jsx)(it,{},`${tr}_custom`);case"none":return null;case"svg":return(0,jsx_runtime_1$1.jsx)(PageSVG_js_1.default,{},`${cr}_svg`);case"canvas":default:return(0,jsx_runtime_1$1.jsx)(PageCanvas_js_1.default,{canvasRef:Ct},`${tr}_canvas`)}}function br(){return Ot?(0,jsx_runtime_1$1.jsx)(TextLayer_js_1.default,{},`${tr}_text`):null}function Tr(){return ct?(0,jsx_runtime_1$1.jsx)(AnnotationLayer_js_1.default,{},`${tr}_annotations`):null}function Ir(){return(0,jsx_runtime_1$1.jsxs)(PageContext_js_1.default.Provider,{value:Kt,children:[hr(),br(),Tr(),Rt]})}function Ar(){return lr?kt===null||Vt===void 0||Vt===null?(0,jsx_runtime_1$1.jsx)(Message_js_1.default,{type:"loading",children:typeof ht=="function"?ht():ht}):kt===!1||Vt===!1?(0,jsx_runtime_1$1.jsx)(Message_js_1.default,{type:"error",children:typeof Et=="function"?Et():Et}):Ir():(0,jsx_runtime_1$1.jsx)(Message_js_1.default,{type:"no-data",children:typeof j=="function"?j():j})}return(0,jsx_runtime_1$1.jsx)("div",Object.assign({className:(0,clsx_1$1.default)(pt,o),"data-page-number":lr,ref:(0,merge_refs_1.default)(ut,qt),style:{["--scale-factor"]:`${Yt}`,backgroundColor:Gt||"white",position:"relative",minWidth:"min-content",minHeight:"min-content"}},or,{children:Ar()}))}Page$1.default=Page;var Thumbnail$1={},__rest=commonjsGlobal&&commonjsGlobal.__rest||function(a,i){var _e={};for(var pt in a)Object.prototype.hasOwnProperty.call(a,pt)&&i.indexOf(pt)<0&&(_e[pt]=a[pt]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,pt=Object.getOwnPropertySymbols(a);Lt in a or pass explicit `pdf` prop.");const it=(0,utils_js_1$1.isProvided)(Rt)?Rt-1:Ct??null,xt=Rt??((0,utils_js_1$1.isProvided)(Ct)?Ct+1:null);function et(mt){mt.preventDefault(),!(!(0,utils_js_1$1.isProvided)(it)||!xt)&&((0,tiny_invariant_1.default)(Gt||Lt,"Either onItemClick callback or linkService must be defined in order to navigate to an outline item."),Gt?Gt({pageIndex:it,pageNumber:xt}):Lt&&Lt.goToPage(xt))}const Et=__rest(a,["className","onItemClick"]);return(0,jsx_runtime_1.jsx)("a",{className:(0,clsx_1.default)("react-pdf__Thumbnail",pt),href:xt?"#":void 0,onClick:et,children:(0,jsx_runtime_1.jsx)(Page_js_1$1.default,Object.assign({},Et,{_className:"react-pdf__Thumbnail__page",_enableRegisterUnregisterPage:!1,renderAnnotationLayer:!1,renderTextLayer:!1}))})}Thumbnail$1.default=Thumbnail;var __importDefault=commonjsGlobal&&commonjsGlobal.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(cjs$3,"__esModule",{value:!0});cjs$3.PasswordResponses=cjs$3.usePageContext=cjs$3.useOutlineContext=cjs$3.useDocumentContext=cjs$3.Thumbnail=cjs$3.Page=cjs$3.Outline=cjs$3.Document=cjs$3.pdfjs=void 0;const pdfjs_js_1=__importDefault(pdfjs$1);cjs$3.pdfjs=pdfjs_js_1.default;const Document_js_1=__importDefault(Document$1);cjs$3.Document=Document_js_1.default;const Outline_js_1=__importDefault(Outline$1);cjs$3.Outline=Outline_js_1.default;const Page_js_1=__importDefault(Page$1);cjs$3.Page=Page_js_1.default;const Thumbnail_js_1=__importDefault(Thumbnail$1);cjs$3.Thumbnail=Thumbnail_js_1.default;const useDocumentContext_js_1=__importDefault(useDocumentContext$1);cjs$3.useDocumentContext=useDocumentContext_js_1.default;const useOutlineContext_js_1=__importDefault(useOutlineContext$1);cjs$3.useOutlineContext=useOutlineContext_js_1.default;const usePageContext_js_1=__importDefault(usePageContext$1);cjs$3.usePageContext=usePageContext_js_1.default;const PasswordResponses_js_1=__importDefault(PasswordResponses$1);cjs$3.PasswordResponses=PasswordResponses_js_1.default;const utils_js_1=utils;(0,utils_js_1.displayWorkerWarning)();pdfjs_js_1.default.GlobalWorkerOptions.workerSrc="pdf.worker.js";var __awaiter=commonjsGlobal&&commonjsGlobal.__awaiter||function(a,i,_e,pt){function Lt(Gt){return Gt instanceof _e?Gt:new _e(function(Ct){Ct(Gt)})}return new(_e||(_e=Promise))(function(Gt,Ct){function Rt(xt){try{it(pt.next(xt))}catch(et){Ct(et)}}function o(xt){try{it(pt.throw(xt))}catch(et){Ct(et)}}function it(xt){xt.done?Gt(xt.value):Lt(xt.value).then(Rt,o)}it((pt=pt.apply(a,i||[])).next())})};Object.defineProperty(dist$1,"__esModule",{value:!0});const react_pdf_1=cjs$3;react_pdf_1.pdfjs.GlobalWorkerOptions.workerSrc=`//cdnjs.cloudflare.com/ajax/libs/pdf.js/${react_pdf_1.pdfjs.version}/pdf.worker.js`;const pdfToText=a=>__awaiter(void 0,void 0,void 0,function*(){const i=URL.createObjectURL(a),_e=react_pdf_1.pdfjs.getDocument(i);let pt="",Lt=!1;try{const Gt=yield _e.promise,Ct=Gt.numPages;for(let Rt=1;Rt<=Ct;Rt++){const xt=(yield(yield Gt.getPage(Rt)).getTextContent()).items.map(et=>"str"in et?et.str:"").join(" ");pt+=xt}}catch(Gt){Lt=!0,console.error("Error extracting text from PDF:",Gt)}if(URL.revokeObjectURL(i),_e.destroy(),!Lt)return pt});var _default=dist$1.default=pdfToText;const Send="/assets/Send-d0601aaa.svg",questionInputContainer="_questionInputContainer_ddain_1",questionInputTextArea="_questionInputTextArea_ddain_15",questionInputSendButtonContainer="_questionInputSendButtonContainer_ddain_24",questionInputSendButton="_questionInputSendButton_ddain_24",questionInputSendButtonDisabled="_questionInputSendButtonDisabled_ddain_37",questionInputBottomBorder="_questionInputBottomBorder_ddain_45",questionInputOptionsButton="_questionInputOptionsButton_ddain_56",fileInput="_fileInput_ddain_68",errorText="_errorText_ddain_96",textAreaOverrides="_textAreaOverrides_ddain_110",styles$3={questionInputContainer,questionInputTextArea,questionInputSendButtonContainer,questionInputSendButton,questionInputSendButtonDisabled,questionInputBottomBorder,questionInputOptionsButton,fileInput,errorText,textAreaOverrides};function logEvent(a,i){window.dataLayer!=null?window.dataLayer.push({event:a,...i}):console.log("In production, the following event would be logged to Google Analytics:",{eventName:a,extraParameters:i})}const InfoIcon="/assets/info-2e1a5c0f.svg",MAX_INPUT_LENGTH=1048576;function isValidLength(a){return a.length<=MAX_INPUT_LENGTH}const QuestionInput=({onSend:a,disabled:i,placeholder:_e,clearOnSend:pt,conversationId:Lt})=>{const[Gt,Ct]=reactExports.useState(""),[Rt,o]=reactExports.useState(null),it=reactExports.useRef(null),[xt,et]=reactExports.useState(""),Et=()=>{if(i||!Gt.trim())return;const _=rt=>{var tt;if(!isValidLength(Gt)){et(`Prompt cannot exceed ${MAX_INPUT_LENGTH} characters. Please try a smaller prompt.`),logEvent("submit_prompt_client_error_prompt_length",{object_length:Gt.length});return}Lt?a(Gt,Lt,rt):a(Gt,void 0,rt),pt&&(Ct(""),o(null),et(""),(tt=it==null?void 0:it.current)!=null&&tt.value&&(it.current.value=""))};if(Rt)if(Rt.type==="application/pdf")_default(Rt).then(rt=>{rt.length===0?et("Could not read text from PDF. Please try uploading a different file."):_({name:Rt.name,type:FileType.Pdf,contents:rt,extension:Rt.type,size:Rt.size})}).catch(rt=>{et("Failed to upload PDF. Please try uploading a different file.")});else{const rt=new FileReader;rt.onloadend=()=>{_({name:Rt.name,type:FileType.Image,contents:rt.result,extension:Rt.type,size:Rt.size})},rt.readAsDataURL(Rt)}else _()},mt=_=>{var rt;_.key==="Enter"&&!_.shiftKey&&((rt=_.nativeEvent)==null?void 0:rt.isComposing)!==!0&&(_.preventDefault(),Et())},ut=(_,rt)=>{Ct(rt||"")},ht=_=>{var tt,st;const rt=(tt=_.target.files)==null?void 0:tt[0];rt&&(rt.size>5*1024*1024?(et("File size of attachments cannot exceed 5 MB. Please try a smaller file."),o(null),(st=it==null?void 0:it.current)!=null&&st.value&&(it.current.value=""),logEvent("submit_prompt_client_error_file_size",{object_size:rt.size,object_type:rt.type})):(et(""),o(rt)))},j=i||!Gt.trim();return jsxs(Stack,{horizontal:!0,className:styles$3.questionInputContainer,children:[xt&&jsxs("div",{className:styles$3.errorText,children:[jsx("img",{src:InfoIcon,alt:""}),xt]}),jsx("input",{ref:it,type:"file",accept:ACCEPTED_FILE_TYPES.join(","),onChange:ht,disabled:i,className:styles$3.fileInput,"aria-label":"Upload file"}),jsx(TextField,{className:styles$3.questionInputTextArea,placeholder:_e,multiline:!0,resizable:!1,borderless:!0,value:Gt,onChange:ut,onKeyDown:mt,ariaLabel:"Type a question",inputClassName:styles$3.textAreaOverrides}),jsx("div",{className:styles$3.questionInputSendButtonContainer,role:"button",tabIndex:0,"aria-label":"Ask question button",onClick:Et,onKeyDown:_=>_.key==="Enter"||_.key===" "?Et():null,children:j?jsx(SendRegular,{className:styles$3.questionInputSendButtonDisabled}):jsx("img",{src:Send,className:styles$3.questionInputSendButton,alt:"Send Button"})}),jsx("div",{className:styles$3.questionInputBottomBorder})]})},container="_container_1epg5_1",listContainer="_listContainer_1epg5_6",itemCell="_itemCell_1epg5_11",itemButton="_itemButton_1epg5_28",chatGroup="_chatGroup_1epg5_45",spinnerContainer="_spinnerContainer_1epg5_50",chatList="_chatList_1epg5_57",chatMonth="_chatMonth_1epg5_61",chatTitle="_chatTitle_1epg5_68",styles$2={container,listContainer,itemCell,itemButton,chatGroup,spinnerContainer,chatList,chatMonth,chatTitle},formatMonth=a=>{const _e=new Date().getFullYear(),[pt,Lt]=a.split(" ");return parseInt(Lt)===_e?pt:a},ChatHistoryListItemCell=({item:a,onSelect:i})=>{var Mt,Tt,kt;const[_e,pt]=reactExports.useState(!1),[Lt,Gt]=reactExports.useState(!1),[Ct,Rt]=reactExports.useState(""),[o,{toggle:it}]=useBoolean(!0),[xt,et]=reactExports.useState(!1),[Et,mt]=reactExports.useState(!1),[ut,ht]=reactExports.useState(void 0),[j,_]=reactExports.useState(!1),rt=reactExports.useRef(null),tt=reactExports.useContext(AppStateContext),st=(a==null?void 0:a.id)===((Mt=tt==null?void 0:tt.state.currentChat)==null?void 0:Mt.id),ot={type:DialogType.close,title:"Are you sure you want to delete this item?",closeButtonAriaLabel:"Close",subText:"The history of this chat session will permanently removed."},nt={titleAriaId:"labelId",subtitleAriaId:"subTextId",isBlocking:!0,styles:{main:{maxWidth:450}}};if(!a)return null;reactExports.useEffect(()=>{j&&rt.current&&(rt.current.focus(),_(!1))},[j]),reactExports.useEffect(()=>{var wt;((wt=tt==null?void 0:tt.state.currentChat)==null?void 0:wt.id)!==(a==null?void 0:a.id)&&(Gt(!1),Rt(""))},[(Tt=tt==null?void 0:tt.state.currentChat)==null?void 0:Tt.id,a==null?void 0:a.id]);const vt=async()=>{(await historyDelete(a.id)).ok?tt==null||tt.dispatch({type:"DELETE_CHAT_ENTRY",payload:a.id}):(et(!0),setTimeout(()=>{et(!1)},5e3)),it()},dt=()=>{Gt(!0),_(!0),Rt(a==null?void 0:a.title)},bt=()=>{i(a),tt==null||tt.dispatch({type:"UPDATE_CURRENT_CHAT",payload:a})},ft=((kt=a==null?void 0:a.title)==null?void 0:kt.length)>28?`${a.title.substring(0,28)} ...`:a.title,at=async wt=>{if(wt.preventDefault(),ut||Et)return;if(Ct==a.title){ht("Error: Enter a new title to proceed."),setTimeout(()=>{ht(void 0),_(!0),rt.current&&rt.current.focus()},5e3);return}mt(!0),(await historyRename(a.id,Ct)).ok?(mt(!1),Gt(!1),tt==null||tt.dispatch({type:"UPDATE_CHAT_TITLE",payload:{...a,title:Ct}}),Rt("")):(ht("Error: could not rename item"),setTimeout(()=>{_(!0),ht(void 0),rt.current&&rt.current.focus()},5e3))},yt=wt=>{Rt(wt.target.value)},St=()=>{Gt(!1),Rt("")},_t=wt=>{if(wt.key==="Enter")return at(wt);if(wt.key==="Escape"){St();return}};return jsxs(Stack,{tabIndex:0,"aria-label":"chat history item",className:styles$2.itemCell,onClick:()=>bt(),onKeyDown:wt=>wt.key==="Enter"||wt.key===" "?bt():null,verticalAlign:"center",onMouseEnter:()=>pt(!0),onMouseLeave:()=>pt(!1),styles:{root:{backgroundColor:st?"#e6e6e6":"transparent"}},children:[Lt?jsx(Fragment,{children:jsx(Stack.Item,{style:{width:"100%"},children:jsxs("form",{"aria-label":"edit title form",onSubmit:wt=>at(wt),style:{padding:"5px 0px"},children:[jsxs(Stack,{horizontal:!0,verticalAlign:"start",children:[jsx(Stack.Item,{children:jsx(TextField,{componentRef:rt,autoFocus:j,value:Ct,placeholder:a.title,onChange:yt,onKeyDown:_t,disabled:!!ut})}),Ct&&jsx(Stack.Item,{children:jsxs(Stack,{"aria-label":"action button group",horizontal:!0,verticalAlign:"center",children:[jsx(IconButton,{role:"button",disabled:ut!==void 0,onKeyDown:wt=>wt.key===" "||wt.key==="Enter"?at(wt):null,onClick:wt=>at(wt),"aria-label":"confirm new title",iconProps:{iconName:"CheckMark"},styles:{root:{color:"green",marginLeft:"5px"}}}),jsx(IconButton,{role:"button",disabled:ut!==void 0,onKeyDown:wt=>wt.key===" "||wt.key==="Enter"?St():null,onClick:()=>St(),"aria-label":"cancel edit title",iconProps:{iconName:"Cancel"},styles:{root:{color:"red",marginLeft:"5px"}}})]})})]}),ut&&jsx(Text,{role:"alert","aria-label":ut,style:{fontSize:12,fontWeight:400,color:"rgb(164,38,44)"},children:ut})]})})}):jsx(Fragment,{children:jsxs(Stack,{horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[jsx("div",{className:styles$2.chatTitle,children:ft}),(st||_e)&&jsxs(Stack,{horizontal:!0,horizontalAlign:"end",children:[jsx(IconButton,{className:styles$2.itemButton,iconProps:{iconName:"Delete"},title:"Delete",onClick:it,onKeyDown:wt=>wt.key===" "?it():null}),jsx(IconButton,{className:styles$2.itemButton,iconProps:{iconName:"Edit"},title:"Edit",onClick:dt,onKeyDown:wt=>wt.key===" "?dt():null})]})]})}),xt&&jsx(Text,{styles:{root:{color:"red",marginTop:5,fontSize:14}},children:"Error: could not delete item"}),jsx(Dialog,{hidden:o,onDismiss:it,dialogContentProps:ot,modalProps:nt,children:jsxs(DialogFooter,{children:[jsx(PrimaryButton,{onClick:vt,text:"Delete"}),jsx(DefaultButton,{onClick:it,text:"Cancel"})]})})]},a.id)},ChatHistoryListItemGroups=({groupedChatHistory:a})=>{const i=reactExports.useContext(AppStateContext),_e=reactExports.useRef(null),[,pt]=reactExports.useState(null),[Lt,Gt]=reactExports.useState(25),[Ct,Rt]=reactExports.useState(0),[o,it]=reactExports.useState(!1),xt=reactExports.useRef(!0),et=ut=>{ut&&pt(ut)},Et=ut=>jsx(ChatHistoryListItemCell,{item:ut,onSelect:()=>et(ut)});reactExports.useEffect(()=>{if(xt.current){xt.current=!1;return}mt(),Gt(ut=>ut+=25)},[Ct]);const mt=async()=>{const ut=i==null?void 0:i.state.chatHistory;it(!0),await historyList(Lt).then(ht=>{const j=ut&&ht&&ut.concat(...ht);return ht?i==null||i.dispatch({type:"FETCH_CHAT_HISTORY",payload:j||ht}):i==null||i.dispatch({type:"FETCH_CHAT_HISTORY",payload:null}),it(!1),ht})};return reactExports.useEffect(()=>{const ut=new IntersectionObserver(ht=>{ht[0].isIntersecting&&Rt(j=>j+=1)},{threshold:1});return _e.current&&ut.observe(_e.current),()=>{_e.current&&ut.unobserve(_e.current)}},[_e]),jsxs("div",{className:styles$2.listContainer,"data-is-scrollable":!0,children:[a.map(ut=>ut.entries.length>0&&jsxs(Stack,{horizontalAlign:"start",verticalAlign:"center",className:styles$2.chatGroup,"aria-label":`chat history group: ${ut.month}`,children:[jsx(Stack,{"aria-label":ut.month,className:styles$2.chatMonth,children:formatMonth(ut.month)}),jsx(List,{"aria-label":"chat history list",items:ut.entries,onRenderCell:Et,className:styles$2.chatList}),jsx("div",{ref:_e}),jsx(Separator,{styles:{root:{width:"100%",position:"relative","::before":{backgroundColor:"#d6d6d6"}}}})]},ut.month)),o&&jsx("div",{className:styles$2.spinnerContainer,children:jsx(Spinner,{size:SpinnerSize.small,"aria-label":"loading more chat history",className:styles$2.spinner})})]})},groupByMonth=a=>{const i=[{month:"Recent",entries:[]}],_e=new Date;return a.forEach(pt=>{const Lt=new Date(pt.date),Gt=(_e.getTime()-Lt.getTime())/(1e3*60*60*24),Ct=Lt.toLocaleString("default",{month:"long",year:"numeric"}),Rt=i.find(o=>o.month===Ct);Gt<=7?i[0].entries.push(pt):Rt?Rt.entries.push(pt):i.push({month:Ct,entries:[pt]})}),i.sort((pt,Lt)=>{if(pt.entries.length===0&&Lt.entries.length===0)return 0;if(pt.entries.length===0)return 1;if(Lt.entries.length===0)return-1;const Gt=new Date(pt.entries[0].date);return new Date(Lt.entries[0].date).getTime()-Gt.getTime()}),i.forEach(pt=>{pt.entries.sort((Lt,Gt)=>{const Ct=new Date(Lt.date);return new Date(Gt.date).getTime()-Ct.getTime()})}),i},ChatHistoryList=()=>{const a=reactExports.useContext(AppStateContext),i=a==null?void 0:a.state.chatHistory;React.useEffect(()=>{},[a==null?void 0:a.state.chatHistory]);let _e;if(i&&i.length>0)_e=groupByMonth(i);else return jsx(Stack,{horizontal:!0,horizontalAlign:"center",verticalAlign:"center",style:{width:"100%",marginTop:10},children:jsx(StackItem,{children:jsx(Text,{style:{alignSelf:"center",fontWeight:"400",fontSize:14},children:jsx("span",{children:"No chat history."})})})});return jsx(ChatHistoryListItemGroups,{groupedChatHistory:_e})},commandBarStyle={root:{padding:"0",display:"flex",justifyContent:"center",backgroundColor:"transparent"}},commandBarButtonStyle={root:{height:"50px"}};function ChatHistoryPanel(a){var rt,tt,st;const i=reactExports.useContext(AppStateContext),[_e,pt]=React.useState(!1),[Lt,{toggle:Gt}]=useBoolean(!0),[Ct,Rt]=React.useState(!1),[o,it]=React.useState(!1),xt={type:DialogType.close,title:o?"Error deleting all of chat history":"Are you sure you want to clear all chat history?",closeButtonAriaLabel:"Close",subText:o?"Please try again. If the problem persists, please contact the site administrator.":"All chat history will be permanently removed."},et={titleAriaId:"labelId",subtitleAriaId:"subTextId",isBlocking:!0,styles:{main:{maxWidth:450}}},Et=[{key:"clearAll",text:"Clear all chat history",iconProps:{iconName:"Delete"}}],mt=()=>{i==null||i.dispatch({type:"TOGGLE_CHAT_HISTORY"})},ut=React.useCallback(ot=>{ot.preventDefault(),pt(!0)},[]),ht=React.useCallback(()=>pt(!1),[]),j=async()=>{Rt(!0),(await historyDeleteAll()).ok?(i==null||i.dispatch({type:"DELETE_CHAT_HISTORY"}),Gt()):it(!0),Rt(!1)},_=()=>{Gt(),setTimeout(()=>{it(!1)},2e3)};return React.useEffect(()=>{},[i==null?void 0:i.state.chatHistory,o]),jsxs("section",{className:styles$2.container,"data-is-scrollable":!0,"aria-label":"chat history panel",children:[jsxs(Stack,{horizontal:!0,horizontalAlign:"space-between",verticalAlign:"center",wrap:!0,"aria-label":"chat history header",children:[jsx(StackItem,{children:jsx(Text,{role:"heading","aria-level":2,style:{alignSelf:"center",fontWeight:"600",fontSize:"18px",marginRight:"auto",paddingLeft:"20px"},children:"Chat history"})}),jsx(Stack,{verticalAlign:"start",children:jsxs(Stack,{horizontal:!0,styles:commandBarButtonStyle,children:[jsx(CommandBarButton,{iconProps:{iconName:"More"},title:"Clear all chat history",onClick:ut,"aria-label":"clear all chat history",styles:commandBarStyle,role:"button",id:"moreButton"}),jsx(ContextualMenu,{items:Et,hidden:!_e,target:"#moreButton",onItemClick:Gt,onDismiss:ht}),jsx(CommandBarButton,{iconProps:{iconName:"Cancel"},title:"Hide",onClick:mt,"aria-label":"hide button",styles:commandBarStyle,role:"button"})]})})]}),jsx(Stack,{"aria-label":"chat history panel content",styles:{root:{display:"flex",flexGrow:1,flexDirection:"column",paddingTop:"2.5px",maxWidth:"100%"}},style:{display:"flex",flexGrow:1,flexDirection:"column",flexWrap:"wrap",padding:"1px"},children:jsxs(Stack,{className:styles$2.chatHistoryListContainer,children:[(i==null?void 0:i.state.chatHistoryLoadingState)===ChatHistoryLoadingState.Success&&(i==null?void 0:i.state.isCosmosDBAvailable.cosmosDB)&&jsx(ChatHistoryList,{}),(i==null?void 0:i.state.chatHistoryLoadingState)===ChatHistoryLoadingState.Fail&&(i==null?void 0:i.state.isCosmosDBAvailable)&&jsx(Fragment,{children:jsx(Stack,{children:jsxs(Stack,{horizontalAlign:"center",verticalAlign:"center",style:{width:"100%",marginTop:10},children:[jsx(StackItem,{children:jsxs(Text,{style:{alignSelf:"center",fontWeight:"400",fontSize:16},children:[((rt=i==null?void 0:i.state.isCosmosDBAvailable)==null?void 0:rt.status)&&jsx("span",{children:(tt=i==null?void 0:i.state.isCosmosDBAvailable)==null?void 0:tt.status}),!((st=i==null?void 0:i.state.isCosmosDBAvailable)!=null&&st.status)&&jsx("span",{children:"Error loading chat history"})]})}),jsx(StackItem,{children:jsx(Text,{style:{alignSelf:"center",fontWeight:"400",fontSize:14},children:jsx("span",{children:"Chat history can't be saved at this time"})})})]})})}),(i==null?void 0:i.state.chatHistoryLoadingState)===ChatHistoryLoadingState.Loading&&jsx(Fragment,{children:jsx(Stack,{children:jsxs(Stack,{horizontal:!0,horizontalAlign:"center",verticalAlign:"center",style:{width:"100%",marginTop:10},children:[jsx(StackItem,{style:{justifyContent:"center",alignItems:"center"},children:jsx(Spinner,{style:{alignSelf:"flex-start",height:"100%",marginRight:"5px"},size:SpinnerSize.medium})}),jsx(StackItem,{children:jsx(Text,{style:{alignSelf:"center",fontWeight:"400",fontSize:14},children:jsx("span",{style:{whiteSpace:"pre-wrap"},children:"Loading chat history"})})})]})})})]})}),jsx(Dialog,{hidden:Lt,onDismiss:Ct?()=>{}:_,dialogContentProps:xt,modalProps:et,children:jsxs(DialogFooter,{children:[!o&&jsx(PrimaryButton,{onClick:j,disabled:Ct,text:"Clear All"}),jsx(DefaultButton,{onClick:_,disabled:Ct,text:o?"Close":"Cancel"})]})})]})}const Chat=()=>{var jt,ar,sr,Zt,Kt,or,tr,cr;const a=reactExports.useContext(AppStateContext),i=(jt=a==null?void 0:a.state.frontendSettings)==null?void 0:jt.ui,_e=(ar=a==null?void 0:a.state.frontendSettings)==null?void 0:ar.auth_enabled,pt=reactExports.useRef(null),[Lt,Gt]=reactExports.useState(!1),[Ct,Rt]=reactExports.useState(!1),[o,it]=reactExports.useState(),[xt,et]=reactExports.useState(!1),[Et,mt]=reactExports.useState(!1),ut=reactExports.useRef([]),[ht,j]=reactExports.useState(),[_,rt]=reactExports.useState([]),[tt,st]=reactExports.useState([]),[ot,nt]=reactExports.useState("Not Running"),[vt,dt]=reactExports.useState(!1),[bt,{toggle:ft}]=useBoolean(!0),[at,yt]=reactExports.useState(),St={type:DialogType.close,title:at==null?void 0:at.title,closeButtonAriaLabel:"Close",subText:at==null?void 0:at.subtitle},_t={titleAriaId:"labelId",subtitleAriaId:"subTextId",isBlocking:!0,styles:{main:{maxWidth:450}}},[Mt,Tt,kt]=["assistant","tool","error"],wt="No content in messages object.";reactExports.useEffect(()=>{var hr,br;if(((hr=a==null?void 0:a.state.isCosmosDBAvailable)==null?void 0:hr.status)!==CosmosDBStatus.Working&&((br=a==null?void 0:a.state.isCosmosDBAvailable)==null?void 0:br.status)!==CosmosDBStatus.NotConfigured&&(a==null?void 0:a.state.chatHistoryLoadingState)===ChatHistoryLoadingState.Fail&&bt){let Tr=`${a.state.isCosmosDBAvailable.status}. Please contact the site administrator.`;yt({title:"Chat history is not enabled",subtitle:Tr}),ft()}},[a==null?void 0:a.state.isCosmosDBAvailable]);const ct=()=>{ft(),setTimeout(()=>{yt(null)},500)};reactExports.useEffect(()=>{Gt((a==null?void 0:a.state.chatHistoryLoadingState)===ChatHistoryLoadingState.Loading)},[a==null?void 0:a.state.chatHistoryLoadingState]);const It=async()=>{if(!_e){j(!1);return}(await getUserInfo()).length===0&&window.location.hostname!=="127.0.0.1"?j(!0):j(!1)};let At={},Ot={},Pt="";const zt=(hr,br,Tr)=>{if(hr.content.includes("all_exec_results")){const Ir=JSON.parse(hr.content);st(Ir.all_exec_results)}hr.role===Mt&&(Pt+=hr.content,At=hr,At.content=Pt,hr.context&&(Ot={id:uuid_1(),role:Tt,content:hr.context,date:new Date().toISOString()})),hr.role===Tt&&(Ot=hr),Tr?lodashExports.isEmpty(Ot)?rt([..._,At]):rt([..._,Ot,At]):lodashExports.isEmpty(Ot)?rt([..._,br,At]):rt([..._,br,Ot,At])},Dt=async(hr,br,Tr)=>{var Br,kr,Nr,Qr;Gt(!0),Rt(!0);const Ir=new AbortController;ut.current.unshift(Ir);const Ar={id:uuid_1(),role:"user",content:hr,date:new Date().toISOString(),uploaded_file:Tr};let _r;if(!br)_r={id:br??uuid_1(),title:hr,messages:[Ar],date:new Date().toISOString()};else if(_r=(Br=a==null?void 0:a.state)==null?void 0:Br.currentChat,_r)_r.messages.push(Ar);else{console.error("Conversation not found."),Gt(!1),Rt(!1),ut.current=ut.current.filter(sn=>sn!==Ir);return}a==null||a.dispatch({type:"UPDATE_CURRENT_CHAT",payload:_r}),rt(_r.messages);const Er={messages:[..._r.messages.filter(sn=>sn.role!==kt)]};let Rr={};try{const sn=await conversationApi(Er,Ir.signal);if(sn!=null&&sn.body){const un=sn.body.getReader();let qr="";for(;;){nt("Processing");const{done:Xr,value:ln}=await un.read();if(Xr)break;var zr=new TextDecoder("utf-8").decode(ln);zr.split(` -`).forEach(pn=>{var En,Jr;try{if(pn!==""&&pn!=="{}"){if(qr+=pn,Rr=JSON.parse(qr),((En=Rr.choices)==null?void 0:En.length)>0)Rr.choices[0].messages.forEach(Or=>{Or.id=Rr.id,Or.date=new Date().toISOString()}),(Jr=Rr.choices[0].messages)!=null&&Jr.some(Or=>Or.role===Mt)&&Rt(!1),Rr.choices[0].messages.forEach(Or=>{zt(Or,Ar,br)});else if(Rr.error)throw Error(Rr.error);qr=""}}catch(Or){if(Or instanceof SyntaxError)console.log("Incomplete message. Continuing...");else throw console.error(Or),Or}})}_r.messages.push(Ot,At),a==null||a.dispatch({type:"UPDATE_CURRENT_CHAT",payload:_r}),rt([..._,Ot,At]),logEvent("submit_prompt_success",{input_length:hr.length,object_length:((kr=Tr==null?void 0:Tr.contents)==null?void 0:kr.length)??"",object_type:(Tr==null?void 0:Tr.extension)??"",object_size:(Tr==null?void 0:Tr.size)??""})}}catch{if(Ir.signal.aborted)rt([..._,Ar]);else{let un="An error occurred. Please try again. If the problem persists, please contact the site administrator.";(Nr=Rr.error)!=null&&Nr.message?un=Rr.error.message:typeof Rr.error=="string"&&(un=Rr.error),un=Ht(un);let qr={id:uuid_1(),role:kt,content:un,date:new Date().toISOString()};_r.messages.push(qr),a==null||a.dispatch({type:"UPDATE_CURRENT_CHAT",payload:_r}),rt([..._,qr]),logEvent("submit_prompt_server_error",{input_length:hr.length,object_length:((Qr=Tr==null?void 0:Tr.contents)==null?void 0:Qr.length)??"",object_type:(Tr==null?void 0:Tr.extension)??"",object_size:(Tr==null?void 0:Tr.size)??"",object_description:un})}}finally{Gt(!1),Rt(!1),ut.current=ut.current.filter(sn=>sn!==Ir),nt("Done")}return Ir.abort()},Nt=async(hr,br,Tr)=>{var kr,Nr,Qr,sn,un,qr,Xr,ln,mn;Gt(!0),Rt(!0);const Ir=new AbortController;ut.current.unshift(Ir);const Ar={id:uuid_1(),role:"user",content:hr,date:new Date().toISOString()};let _r,Er;if(br)if(Er=(Nr=(kr=a==null?void 0:a.state)==null?void 0:kr.chatHistory)==null?void 0:Nr.find(pn=>pn.id===br),Er)Er.messages.push(Ar),_r={messages:[...Er.messages.filter(pn=>pn.role!==kt)]};else{console.error("Conversation not found."),Gt(!1),Rt(!1),ut.current=ut.current.filter(pn=>pn!==Ir);return}else _r={messages:[Ar].filter(pn=>pn.role!==kt)},rt(_r.messages);let Rr={};var zr="Please try again. If the problem persists, please contact the site administrator.";try{const pn=br?await historyGenerate(_r,Ir.signal,br):await historyGenerate(_r,Ir.signal);if(!(pn!=null&&pn.ok)){const En=await pn.json();zr=En.error===void 0?zr:Ht(En.error);let Jr={id:uuid_1(),role:kt,content:`There was an error generating a response. Chat history can't be saved at this time. ${zr}`,date:new Date().toISOString()},Or;if(br){if(Or=(sn=(Qr=a==null?void 0:a.state)==null?void 0:Qr.chatHistory)==null?void 0:sn.find(Ur=>Ur.id===br),!Or){console.error("Conversation not found."),Gt(!1),Rt(!1),ut.current=ut.current.filter(Ur=>Ur!==Ir);return}Or.messages.push(Jr)}else{rt([..._,Ar,Jr]),Gt(!1),Rt(!1),ut.current=ut.current.filter(Ur=>Ur!==Ir);return}a==null||a.dispatch({type:"UPDATE_CURRENT_CHAT",payload:Or}),rt([...Or.messages]);return}if(pn!=null&&pn.body){const En=pn.body.getReader();let Jr="";for(;;){nt("Processing");const{done:Ur,value:jr}=await En.read();if(Ur)break;var Br=new TextDecoder("utf-8").decode(jr);Br.split(` -`).forEach(wr=>{var vr,Dr,Sr,ur,xr;try{if(wr!==""&&wr!=="{}"){if(Jr+=wr,Rr=JSON.parse(Jr),!((Sr=(Dr=(vr=Rr.choices)==null?void 0:vr[0])==null?void 0:Dr.messages)!=null&&Sr[0].content))throw zr=wt,Error();((ur=Rr.choices)==null?void 0:ur.length)>0&&(Rr.choices[0].messages.forEach(Pr=>{Pr.id=Rr.id,Pr.date=new Date().toISOString()}),(xr=Rr.choices[0].messages)!=null&&xr.some(Pr=>Pr.role===Mt)&&Rt(!1),Rr.choices[0].messages.forEach(Pr=>{zt(Pr,Ar,br)})),Jr=""}else if(Rr.error)throw Error(Rr.error)}catch(Pr){if(Pr instanceof SyntaxError)console.log("Incomplete message. Continuing...");else throw console.error(Pr),Pr}})}let Or;if(br){if(Or=(qr=(un=a==null?void 0:a.state)==null?void 0:un.chatHistory)==null?void 0:qr.find(Ur=>Ur.id===br),!Or){console.error("Conversation not found."),Gt(!1),Rt(!1),ut.current=ut.current.filter(Ur=>Ur!==Ir);return}lodashExports.isEmpty(Ot)?Or.messages.push(At):Or.messages.push(Ot,At)}else Or={id:Rr.history_metadata.conversation_id,title:Rr.history_metadata.title,messages:[Ar],date:Rr.history_metadata.date},lodashExports.isEmpty(Ot)?Or.messages.push(At):Or.messages.push(Ot,At);if(!Or){Gt(!1),Rt(!1),ut.current=ut.current.filter(Ur=>Ur!==Ir);return}a==null||a.dispatch({type:"UPDATE_CURRENT_CHAT",payload:Or}),lodashExports.isEmpty(Ot)?rt([..._,At]):rt([..._,Ot,At])}}catch{if(Ir.signal.aborted)rt([..._,Ar]);else{let En=`An error occurred. ${zr}`;(Xr=Rr.error)!=null&&Xr.message?En=Rr.error.message:typeof Rr.error=="string"&&(En=Rr.error),En=Ht(En);let Jr={id:uuid_1(),role:kt,content:En,date:new Date().toISOString()},Or;if(br){if(Or=(mn=(ln=a==null?void 0:a.state)==null?void 0:ln.chatHistory)==null?void 0:mn.find(Ur=>Ur.id===br),!Or){console.error("Conversation not found."),Gt(!1),Rt(!1),ut.current=ut.current.filter(Ur=>Ur!==Ir);return}Or.messages.push(Jr)}else{if(!Rr.history_metadata){console.error("Error retrieving data.",Rr);let Ur={id:uuid_1(),role:kt,content:En,date:new Date().toISOString()};rt([..._,Ar,Ur]),Gt(!1),Rt(!1),ut.current=ut.current.filter(jr=>jr!==Ir);return}Or={id:Rr.history_metadata.conversation_id,title:Rr.history_metadata.title,messages:[Ar],date:Rr.history_metadata.date},Or.messages.push(Jr)}if(!Or){Gt(!1),Rt(!1),ut.current=ut.current.filter(Ur=>Ur!==Ir);return}a==null||a.dispatch({type:"UPDATE_CURRENT_CHAT",payload:Or}),rt([..._,Jr])}}finally{Gt(!1),Rt(!1),ut.current=ut.current.filter(pn=>pn!==Ir),nt("Done")}return Ir.abort()},$t=async()=>{var hr;dt(!0),(hr=a==null?void 0:a.state.currentChat)!=null&&hr.id&&(a!=null&&a.state.isCosmosDBAvailable.cosmosDB)&&((await historyClear(a==null?void 0:a.state.currentChat.id)).ok?(a==null||a.dispatch({type:"DELETE_CURRENT_CHAT_MESSAGES",payload:a==null?void 0:a.state.currentChat.id}),a==null||a.dispatch({type:"UPDATE_CHAT_HISTORY",payload:a==null?void 0:a.state.currentChat}),it(void 0),et(!1),mt(!1),rt([])):(yt({title:"Error clearing current chat",subtitle:"Please try again. If the problem persists, please contact the site administrator."}),ft())),dt(!1)},Ut=hr=>{try{const br=hr.match(/'innererror': ({.*})\}\}/);if(br){const Tr=br[1].replace(/'/g,'"').replace(/\bTrue\b/g,"true").replace(/\bFalse\b/g,"false"),Ir=JSON.parse(Tr);let Ar="";if(Ir.content_filter_result.jailbreak.filtered===!0&&(Ar="Jailbreak"),Ar!=="")return`The prompt was filtered due to triggering Azure OpenAI’s content filtering system. -Reason: This prompt contains content flagged as `+Ar+` - -Please modify your prompt and retry. Learn more: https://go.microsoft.com/fwlink/?linkid=2198766`}}catch(br){console.error("Failed to parse the error:",br)}return hr},Ht=hr=>{let br=hr.substring(0,hr.indexOf("-")+1);const Tr="{\\'error\\': {\\'message\\': ";if(hr.includes(Tr))try{let Ir=hr.substring(hr.indexOf(Tr));Ir.endsWith("'}}")&&(Ir=Ir.substring(0,Ir.length-3)),Ir=Ir.replaceAll("\\'","'"),hr=br+" "+Ir}catch(Ir){console.error("Error parsing inner error message: ",Ir)}return Ut(hr)},Vt=()=>{nt("Processing"),rt([]),et(!1),mt(!1),it(void 0),a==null||a.dispatch({type:"UPDATE_CURRENT_CHAT",payload:null}),nt("Done"),logEvent("click_clear_chat",{})},Xt=()=>{ut.current.forEach(hr=>hr.abort()),Rt(!1),Gt(!1)};reactExports.useEffect(()=>{a!=null&&a.state.currentChat?rt(a.state.currentChat.messages):rt([])},[a==null?void 0:a.state.currentChat]),reactExports.useLayoutEffect(()=>{var br;const hr=async(Tr,Ir)=>await historyUpdate(Tr,Ir);if(a&&a.state.currentChat&&ot==="Done"){if(a.state.isCosmosDBAvailable.cosmosDB){if(!((br=a==null?void 0:a.state.currentChat)!=null&&br.messages)){console.error("Failure fetching current chat state.");return}const Tr=a.state.currentChat.messages.find(Ir=>Ir.role===kt);Tr!=null&&Tr.content.includes(wt)||hr(a.state.currentChat.messages,a.state.currentChat.id).then(Ir=>{var Ar,_r;if(!Ir.ok){let Er="An error occurred. Answers can't be saved at this time. If the problem persists, please contact the site administrator.",Rr={id:uuid_1(),role:kt,content:Er,date:new Date().toISOString()};if(!((Ar=a==null?void 0:a.state.currentChat)!=null&&Ar.messages))throw{...new Error,message:"Failure fetching current chat state."};rt([...(_r=a==null?void 0:a.state.currentChat)==null?void 0:_r.messages,Rr])}return Ir}).catch(Ir=>(console.error("Error: ",Ir),{...new Response,ok:!1,status:500}))}a==null||a.dispatch({type:"UPDATE_CHAT_HISTORY",payload:a.state.currentChat}),rt(a.state.currentChat.messages),nt("Not Running")}},[ot]),reactExports.useEffect(()=>{_e!==void 0&&It()},[_e]),reactExports.useLayoutEffect(()=>{var hr;(hr=pt.current)==null||hr.scrollIntoView({behavior:"smooth"})},[Ct,ot]);const qt=hr=>{it(hr),et(!0)},er=()=>{mt(!0)},lr=hr=>{hr.url&&!hr.url.includes("blob.core")&&window.open(hr.url,"_blank")},Jt=hr=>{if(hr!=null&&hr.role&&(hr==null?void 0:hr.role)==="tool")try{return JSON.parse(hr.content).citations}catch{return[]}return[]},Yt=hr=>{var br;if(hr!=null&&hr.role&&(hr==null?void 0:hr.role)==="tool")try{const Ir=(br=JSON.parse(hr.content).all_exec_results.at(-1))==null?void 0:br.code_exec_result;return Ir===void 0?null:Ir}catch{return null}return null},rr=()=>Lt||_&&_.length===0||vt||(a==null?void 0:a.state.chatHistoryLoadingState)===ChatHistoryLoadingState.Loading;return jsx("div",{className:styles$5.container,role:"main",children:ht?jsxs(Stack,{className:styles$5.chatEmptyState,children:[jsx(ShieldLockRegular,{className:styles$5.chatIcon,style:{color:"darkorange",height:"200px",width:"200px"}}),jsx("h1",{className:styles$5.chatEmptyStateTitle,children:"Authentication Not Configured"}),jsxs("h2",{className:styles$5.chatEmptyStateSubtitle,children:["This app does not have authentication configured. Please add an identity provider by finding your app in the"," ",jsx("a",{href:"https://portal.azure.com/",target:"_blank",children:"Azure Portal"}),"and following"," ",jsx("a",{href:"https://learn.microsoft.com/en-us/azure/app-service/scenario-secure-app-authentication-app-service#3-configure-authentication-and-authorization",target:"_blank",children:"these instructions"}),"."]}),jsx("h2",{className:styles$5.chatEmptyStateSubtitle,style:{fontSize:"20px"},children:jsx("strong",{children:"Authentication configuration takes a few minutes to apply. "})}),jsx("h2",{className:styles$5.chatEmptyStateSubtitle,style:{fontSize:"20px"},children:jsx("strong",{children:"If you deployed in the last 10 minutes, please wait and reload the page after 10 minutes."})})]}):jsxs(Stack,{horizontal:!0,className:styles$5.chatRoot,children:[jsxs("div",{className:styles$5.chatContainer,children:[!_||_.length<1?jsxs(Stack,{className:styles$5.chatEmptyState,children:[jsx("img",{src:i!=null&&i.chat_logo?i.chat_logo:Contoso,className:styles$5.chatIcon,"aria-hidden":"true",alt:"Official logo for the State of New Jersey"}),jsx("h1",{className:styles$5.chatEmptyStateTitle,children:i==null?void 0:i.chat_title}),jsx("h2",{className:styles$5.chatEmptyStateSubtitle,dangerouslySetInnerHTML:{__html:(i==null?void 0:i.chat_description)??""}})]}):jsxs("div",{className:styles$5.chatMessageStream,style:{marginBottom:Lt?"40px":"0px"},role:"log",children:[_.map((hr,br)=>jsx(Fragment,{children:hr.role==="user"?jsx("div",{className:styles$5.chatMessageUser,tabIndex:0,children:jsxs("div",{className:styles$5.chatMessageUserMessage,children:[hr.uploaded_file!=null&&hr.uploaded_file.type===FileType.Image&&hr.uploaded_file.contents&&jsx("div",{className:styles$5.chatMessageUserAttachment,children:jsx("img",{width:"100",height:"auto",src:hr.uploaded_file.contents,alt:hr.uploaded_file.name})}),jsx("div",{children:hr.content}),hr.uploaded_file!=null&&hr.uploaded_file.contents&&jsxs("div",{className:styles$5.userAttachmentDisclaimer,children:[hr.uploaded_file.name," is being referenced"]})]})}):hr.role==="assistant"?jsx("div",{className:styles$5.chatMessageGpt,children:jsx(Answer,{answer:{answer:hr.content,citations:Jt(_[br-1]),plotly_data:Yt(_[br-1]),message_id:hr.id,feedback:hr.feedback,exec_results:tt},onCitationClicked:Tr=>qt(Tr),onExectResultClicked:()=>er()})}):hr.role===kt?jsxs("div",{className:styles$5.chatMessageError,children:[jsxs(Stack,{horizontal:!0,className:styles$5.chatMessageErrorContent,children:[jsx(ErrorCircleRegular,{className:styles$5.errorIcon,style:{color:"rgba(182, 52, 67, 1)"}}),jsx("span",{children:"Error"})]}),jsx("span",{className:styles$5.chatMessageErrorContent,children:hr.content})]}):null})),Ct&&jsx(Fragment,{children:jsx("div",{className:styles$5.chatMessageGpt,children:jsx(Answer,{answer:{answer:"Generating answer...",citations:[],plotly_data:null},onCitationClicked:()=>null,onExectResultClicked:()=>null})})}),jsx("div",{ref:pt})]}),jsxs(Stack,{horizontal:!0,className:styles$5.chatInput,children:[Lt&&_.length>0&&jsxs(Stack,{horizontal:!0,className:styles$5.stopGeneratingContainer,role:"button","aria-label":"Stop generating",tabIndex:0,onClick:Xt,onKeyDown:hr=>hr.key==="Enter"||hr.key===" "?Xt():null,children:[jsx(SquareRegular,{className:styles$5.stopGeneratingIcon,"aria-hidden":"true"}),jsx("span",{className:styles$5.stopGeneratingText,"aria-hidden":"true",children:"Stop generating"})]}),jsxs(Stack,{children:[((sr=a==null?void 0:a.state.isCosmosDBAvailable)==null?void 0:sr.status)!==CosmosDBStatus.NotConfigured&&jsx(CommandBarButton,{role:"button",styles:{icon:{color:"#FFFFFF"},iconDisabled:{color:"#BDBDBD !important"},root:{color:"#FFFFFF",background:"radial-gradient(109.81% 107.82% at 100.1% 90.19%, #0F6CBD 33.63%, #2D87C3 70.31%, #8DDDD8 100%)"},rootDisabled:{background:"#F0F0F0"}},className:styles$5.newChatIcon,iconProps:{iconName:"Add"},onClick:Vt,disabled:rr(),"aria-label":"start a new chat button"}),jsx(CommandBarButton,{role:"button",styles:{icon:{color:"#FFFFFF"},iconDisabled:{color:"#BDBDBD !important"},root:{color:"#FFFFFF",background:"radial-gradient(109.81% 107.82% at 100.1% 90.19%, #0F6CBD 33.63%, #2D87C3 70.31%, #8DDDD8 100%)"},rootDisabled:{background:"#F0F0F0"}},className:((Zt=a==null?void 0:a.state.isCosmosDBAvailable)==null?void 0:Zt.status)!==CosmosDBStatus.NotConfigured?styles$5.clearChatBroom:styles$5.clearChatBroomNoCosmos,iconProps:{iconName:"Broom"},onClick:((Kt=a==null?void 0:a.state.isCosmosDBAvailable)==null?void 0:Kt.status)!==CosmosDBStatus.NotConfigured?$t:Vt,disabled:rr(),"aria-label":"clear chat button"}),jsx(Dialog,{hidden:bt,onDismiss:ct,dialogContentProps:St,modalProps:_t})]}),jsx(QuestionInput,{clearOnSend:!0,placeholder:"Type a new question...",disabled:Lt,onSend:(hr,br,Tr)=>{var Ir;(Ir=a==null?void 0:a.state.isCosmosDBAvailable)!=null&&Ir.cosmosDB?Nt(hr,br):Dt(hr,br,Tr)},conversationId:(or=a==null?void 0:a.state.currentChat)!=null&&or.id?(tr=a==null?void 0:a.state.currentChat)==null?void 0:tr.id:void 0})]})]}),_&&_.length>0&&xt&&o&&jsxs(Stack.Item,{className:styles$5.citationPanel,tabIndex:0,role:"tabpanel","aria-label":"Citations Panel",children:[jsxs(Stack,{"aria-label":"Citations Panel Header Container",horizontal:!0,className:styles$5.citationPanelHeaderContainer,horizontalAlign:"space-between",verticalAlign:"center",children:[jsx("span",{"aria-label":"Citations",className:styles$5.citationPanelHeader,children:"Citations"}),jsx(IconButton,{iconProps:{iconName:"Cancel"},"aria-label":"Close citations panel",onClick:()=>et(!1)})]}),jsx("h5",{className:styles$5.citationPanelTitle,tabIndex:0,title:o.url&&!o.url.includes("blob.core")?o.url:o.title??"",onClick:()=>lr(o),children:o.title}),jsx("div",{tabIndex:0,children:jsx(ReactMarkdown,{linkTarget:"_blank",className:styles$5.citationPanelContent,children:purify.sanitize(o.content,{ALLOWED_TAGS:XSSAllowTags}),remarkPlugins:[remarkGfm],rehypePlugins:[rehypeRaw]})})]}),_&&_.length>0&&Et&&jsxs(Stack.Item,{className:styles$5.citationPanel,tabIndex:0,role:"tabpanel","aria-label":"Intents Panel",children:[jsxs(Stack,{"aria-label":"Intents Panel Header Container",horizontal:!0,className:styles$5.citationPanelHeaderContainer,horizontalAlign:"space-between",verticalAlign:"center",children:[jsx("span",{"aria-label":"Intents",className:styles$5.citationPanelHeader,children:"Intents"}),jsx(IconButton,{iconProps:{iconName:"Cancel"},"aria-label":"Close intents panel",onClick:()=>mt(!1)})]}),jsx(Stack,{horizontalAlign:"space-between",children:tt.map(hr=>jsxs(Stack,{className:styles$5.exectResultList,verticalAlign:"space-between",children:[jsxs(Fragment,{children:[jsx("span",{children:"Intent:"})," ",jsx("p",{children:hr.intent})]}),hr.search_query&&jsxs(Fragment,{children:[jsx("span",{children:"Search Query:"}),jsx(SyntaxHighlighter,{style:nord,wrapLines:!0,lineProps:{style:{wordBreak:"break-all",whiteSpace:"pre-wrap"}},language:"sql",PreTag:"p",children:hr.search_query})]}),hr.search_result&&jsxs(Fragment,{children:[jsx("span",{children:"Search Result:"})," ",jsx("p",{children:hr.search_result})]}),hr.code_generated&&jsxs(Fragment,{children:[jsx("span",{children:"Code Generated:"}),jsx(SyntaxHighlighter,{style:nord,wrapLines:!0,lineProps:{style:{wordBreak:"break-all",whiteSpace:"pre-wrap"}},language:"python",PreTag:"p",children:hr.code_generated})]})]}))})]}),(a==null?void 0:a.state.isChatHistoryOpen)&&((cr=a==null?void 0:a.state.isCosmosDBAvailable)==null?void 0:cr.status)!==CosmosDBStatus.NotConfigured&&jsx(ChatHistoryPanel,{})]})})},shareButtonRoot="_shareButtonRoot_1ep5g_1",historyButtonRoot="_historyButtonRoot_1ep5g_25",styles$1={shareButtonRoot,historyButtonRoot},ShareButton=({onClick:a,text:i})=>jsx(CommandBarButton,{className:styles$1.shareButtonRoot,iconProps:{iconName:"Share"},onClick:a,text:i}),HistoryButton=({onClick:a,text:i})=>jsx(DefaultButton,{className:styles$1.historyButtonRoot,text:i,iconProps:{iconName:"History"},onClick:a}),layout="_layout_1e0ns_1",header="_header_1e0ns_7",headerContainer="_headerContainer_1e0ns_11",headerTitleContainer="_headerTitleContainer_1e0ns_17",headerTitle="_headerTitle_1e0ns_17",headerIcon="_headerIcon_1e0ns_34",shareButtonContainer="_shareButtonContainer_1e0ns_40",shareButton="_shareButton_1e0ns_40",shareButtonText="_shareButtonText_1e0ns_51",urlTextBox="_urlTextBox_1e0ns_61",copyButtonContainer="_copyButtonContainer_1e0ns_71",copyButton="_copyButton_1e0ns_71",copyButtonText="_copyButtonText_1e0ns_93",styles={layout,header,headerContainer,headerTitleContainer,headerTitle,headerIcon,shareButtonContainer,shareButton,shareButtonText,urlTextBox,copyButtonContainer,copyButton,copyButtonText},Layout=()=>{var rt,tt,st;const[a,i]=reactExports.useState(!1),[_e,pt]=reactExports.useState(!1),[Lt,Gt]=reactExports.useState("Copy URL"),[Ct,Rt]=reactExports.useState("Share"),[o,it]=reactExports.useState("Hide chat history"),[xt,et]=reactExports.useState("Show chat history"),Et=reactExports.useContext(AppStateContext),mt=(rt=Et==null?void 0:Et.state.frontendSettings)==null?void 0:rt.ui,ut=()=>{i(!0)},ht=()=>{i(!1),pt(!1),Gt("Copy URL")},j=()=>{navigator.clipboard.writeText(window.location.href),pt(!0)},_=()=>{Et==null||Et.dispatch({type:"TOGGLE_CHAT_HISTORY"})};return reactExports.useEffect(()=>{_e&&Gt("Copied URL")},[_e]),reactExports.useEffect(()=>{},[Et==null?void 0:Et.state.isCosmosDBAvailable.status]),reactExports.useEffect(()=>{const ot=()=>{window.innerWidth<480?(Rt(void 0),it("Hide history"),et("Show history")):(Rt("Share"),it("Hide chat history"),et("Show chat history"))};return window.addEventListener("resize",ot),ot(),()=>window.removeEventListener("resize",ot)},[]),jsxs("div",{className:styles.layout,children:[jsx("header",{className:styles.header,role:"banner",children:jsxs(Stack,{horizontal:!0,verticalAlign:"center",horizontalAlign:"space-between",children:[jsxs(Stack,{horizontal:!0,verticalAlign:"center",children:[jsx("img",{src:mt!=null&&mt.logo?mt.logo:Contoso,className:styles.headerIcon,"aria-hidden":"true",alt:""}),jsx(Link,{to:"/",className:styles.headerTitleContainer,children:jsx("h1",{className:styles.headerTitle,children:mt==null?void 0:mt.title})})]}),jsxs(Stack,{horizontal:!0,tokens:{childrenGap:4},className:styles.shareButtonContainer,children:[((tt=Et==null?void 0:Et.state.isCosmosDBAvailable)==null?void 0:tt.status)!==CosmosDBStatus.NotConfigured&&jsx(HistoryButton,{onClick:_,text:(st=Et==null?void 0:Et.state)!=null&&st.isChatHistoryOpen?o:xt}),(mt==null?void 0:mt.show_share_button)&&jsx(ShareButton,{onClick:ut,text:Ct})]})]})}),jsx(Outlet,{}),jsx(Dialog,{onDismiss:ht,hidden:!a,styles:{main:[{selectors:{["@media (min-width: 480px)"]:{maxWidth:"600px",background:"#FFFFFF",boxShadow:"0px 14px 28.8px rgba(0, 0, 0, 0.24), 0px 0px 8px rgba(0, 0, 0, 0.2)",borderRadius:"8px",maxHeight:"200px",minHeight:"100px"}}}]},dialogContentProps:{title:"Share the web app",showCloseButton:!0},children:jsxs(Stack,{horizontal:!0,verticalAlign:"center",style:{gap:"8px"},children:[jsx(TextField,{className:styles.urlTextBox,defaultValue:window.location.href,readOnly:!0}),jsxs("div",{className:styles.copyButtonContainer,role:"button",tabIndex:0,"aria-label":"Copy",onClick:j,onKeyDown:ot=>ot.key==="Enter"||ot.key===" "?j():null,children:[jsx(CopyRegular,{className:styles.copyButton}),jsx("span",{className:styles.copyButtonText,children:Lt})]})]})}),jsx("feedback-widget",{"only-save-rating-to-analytics":"true","show-comment-disclaimer":"false","skip-email-step":"true"})]})},NoPage=()=>jsx("h1",{children:"404"}),index="";function logGoogleEvent(a,i=void 0){typeof window.gtag=="function"&&window.gtag("event",a,{event_category:"Page feedback",event_label:i})}let LANG_TO_CONTENT={en:{ratingPrompt:"Did you find what you were looking for on this page?",ratingPositive:"Yes",ratingNegative:"No",commentPromptPositive:"Great! We're looking for ways to improve this page — what ideas come to mind?",commentPromptNegative:"Sorry to hear that. What were you looking for today?",commentPromptDisclaimer:"Your feedback helps improve this web page. For specific questions about your situation, ",commentPromptDisclaimerLink:"contact us",commentSubmit:"Send feedback",commentSubmitLoading:"Sending...",commentConfirmation:"Thanks for sharing your thoughts!",emailPrompt:"To hear about paid feedback opportunities in the future, join our user testing list.",emailLabel:"Email address",emailSubmit:"Join the list",emailSubmitLoading:"Joining...",errorMessage:"Try again, please. We didn't get your answer because of a technical issue.",emailConfirmation:"Thanks for signing up!"},es:{ratingPrompt:"¿Encontraste lo que buscabas en esta página?",ratingPositive:"Sí",ratingNegative:"No",commentPromptPositive:"¡Excelente! Estamos buscando formas de mejorar esta página. ¿Qué ideas se te ocurren?",commentPromptNegative:"Lamentamos escuchar eso. ¿De que se trataba su búsqueda?",commentPromptDisclaimer:"Sus comentarios nos ayudan a mejorar nuestro sitio de web. Si tiene preguntas específicas sobre su situación, ",commentPromptDisclaimerLink:"por favor póngase en contacto con nosotros",commentSubmit:"Enviar comentarios",commentSubmitLoading:"Enviando...",commentConfirmation:"¡Gracias por compartir tus ideas!",emailPrompt:"Para conocer mas oportunidades de comentarios pagados en el futuro, sea parte de nuestra lista de prueba de usuarios.",emailLabel:"Dirección de correo electrónico",emailSubmit:"Sea parte de la lista",emailSubmitLoading:"Enviando...",errorMessage:"Por favor, inténtalo de nuevo. No obtuvimos su respuesta debido a un problema técnico.",emailConfirmation:"¡Gracias por registrarte!"}},API_URL="https://innovation.nj.gov/app/feedback/dev",JSON_HEADER={"Content-Type":"application/json"};class NJFeedbackWidget extends window.HTMLElement{constructor(){super(),this.rating=!1,this.feedbackId=void 0,this.retryRating=!1,this.language=new URL(window.location).searchParams.get("lang")??"en"}connectedCallback(){this.innerHTML=this.getHTML(),this.applyListeners(),this.addStyling(),document.addEventListener("changeLanguage",this.handleChangeLanguage.bind(this))}disconnectedCallback(){document.removeEventListener("changeLanguage",this.handleChangeLanguage.bind(this))}handleChangeLanguage(i){this.language=i.detail,this.innerHTML=this.getHTML(),this.applyListeners()}applyListeners(){this.querySelector("#yesButton").addEventListener("click",i=>{this.handleRating(!0)}),this.querySelector("#noButton").addEventListener("click",i=>{this.handleRating(!1)}),this.querySelector("#commentForm").addEventListener("submit",i=>{i.preventDefault();let _e=document.getElementById("commentSubmit");_e.disabled=!0,_e.textContent=LANG_TO_CONTENT[this.language].commentSubmitLoading,this.hideElement("#commentSubmitError"),i=i.target.elements.comment.value,i=this.retryRating||this.feedbackId==null?{comment:i,rating:this.rating,pageURL:window.location.href}:{feedbackId:this.feedbackId,comment:i},fetch(API_URL+"/comment",{method:"POST",headers:JSON_HEADER,body:JSON.stringify(i)}).then(pt=>pt.json()).then(pt=>{this.feedbackId==null&&(this.feedbackId=pt.feedbackId),pt.message==="Success"&&this.feedbackId!=null?(this.hideElement("#commentPrompt"),this.getAttribute("skip-email-step")==="true"?this.showElement("#confirmation","flex"):this.showElement("#emailPrompt")):this.showElement("#commentSubmitError")}).catch(pt=>{this.showElement("#commentSubmitError")}).finally(()=>{_e.disabled=!1,_e.textContent=LANG_TO_CONTENT[this.language].commentSubmit})}),this.querySelector("#emailForm").addEventListener("submit",i=>{i.preventDefault();let _e=document.getElementById("emailSubmit");_e.disabled=!0,_e.textContent=LANG_TO_CONTENT[this.language].emailSubmitLoading,this.hideElement("#emailSubmitError"),i={feedbackId:this.feedbackId,email:i.target.elements.email.value},fetch(API_URL+"/email",{method:"POST",headers:JSON_HEADER,body:JSON.stringify(i)}).then(pt=>pt.json()).then(pt=>{pt.message==="Success"&&pt.feedbackId!=null?(this.hideElement("#emailPrompt"),this.showElement("#confirmation","flex")):this.showElement("#emailSubmitError")}).catch(pt=>{this.showElement("#emailSubmitError")}).finally(()=>{_e.disabled=!1,_e.textContent=LANG_TO_CONTENT[this.language].emailSubmit})})}handleRating(i){var _e;(this.rating=i)||(this.querySelector("#commentPromptText").innerText=LANG_TO_CONTENT[this.language].commentPromptNegative),this.hideElement("#ratingPrompt"),this.showElement("#commentPrompt"),this.getAttribute("only-save-rating-to-analytics")==="true"?logGoogleEvent("Clicked initial button",i?"Yes":"No"):(document.getElementById("commentSubmit").disabled=!0,_e={pageURL:window.location.href,rating:i},fetch(API_URL+"/rating",{method:"POST",headers:JSON_HEADER,body:JSON.stringify(_e)}).then(pt=>pt.json()).then(pt=>{pt.message==="Success"&&pt.feedbackId!=null?(this.feedbackId=pt.feedbackId,logGoogleEvent("Clicked initial button",i?"Yes":"No")):this.retryRating=!0}).catch(pt=>{this.retryRating=!0}).finally(()=>{document.getElementById("commentSubmit").disabled=!1}))}showElement(i,_e="block"){this.querySelector(i).style.display=_e}hideElement(i){this.querySelector(i).style.display="none"}getHTML(){var i=LANG_TO_CONTENT[this.language],_e=this.getAttribute("contact-link")||"https://www.nj.gov/nj/feedback.html",pt=this.getAttribute("show-comment-disclaimer")!=="false";return` + `)+" "+er[1]:er[0]+qt+" "+Xt.join(", ")+" "+er[1]}Rt.types=o(41088);function bt(Xt){return Array.isArray(Xt)}Rt.isArray=bt;function ft(Xt){return typeof Xt=="boolean"}Rt.isBoolean=ft;function at(Xt){return Xt===null}Rt.isNull=at;function mt(Xt){return Xt==null}Rt.isNullOrUndefined=mt;function St(Xt){return typeof Xt=="number"}Rt.isNumber=St;function _t(Xt){return typeof Xt=="string"}Rt.isString=_t;function Mt(Xt){return typeof Xt=="symbol"}Rt.isSymbol=Mt;function Et(Xt){return Xt===void 0}Rt.isUndefined=Et;function kt(Xt){return wt(Xt)&&Pt(Xt)==="[object RegExp]"}Rt.isRegExp=kt,Rt.types.isRegExp=kt;function wt(Xt){return typeof Xt=="object"&&Xt!==null}Rt.isObject=wt;function ct(Xt){return wt(Xt)&&Pt(Xt)==="[object Date]"}Rt.isDate=ct,Rt.types.isDate=ct;function It(Xt){return wt(Xt)&&(Pt(Xt)==="[object Error]"||Xt instanceof Error)}Rt.isError=It,Rt.types.isNativeError=It;function At(Xt){return typeof Xt=="function"}Rt.isFunction=At;function Ot(Xt){return Xt===null||typeof Xt=="boolean"||typeof Xt=="number"||typeof Xt=="string"||typeof Xt=="symbol"||typeof Xt>"u"}Rt.isPrimitive=Ot,Rt.isBuffer=o(75272);function Pt(Xt){return Object.prototype.toString.call(Xt)}function zt(Xt){return Xt<10?"0"+Xt.toString(10):Xt.toString(10)}var Dt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Nt(){var Xt=new Date,qt=[zt(Xt.getHours()),zt(Xt.getMinutes()),zt(Xt.getSeconds())].join(":");return[Xt.getDate(),Dt[Xt.getMonth()],qt].join(" ")}Rt.log=function(){console.log("%s - %s",Nt(),Rt.format.apply(Rt,arguments))},Rt.inherits=o(6768),Rt._extend=function(Xt,qt){if(!qt||!wt(qt))return Xt;for(var er=Object.keys(qt),lr=er.length;lr--;)Xt[er[lr]]=qt[er[lr]];return Xt};function $t(Xt,qt){return Object.prototype.hasOwnProperty.call(Xt,qt)}var Ut=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Rt.promisify=function(qt){if(typeof qt!="function")throw new TypeError('The "original" argument must be of type Function');if(Ut&&qt[Ut]){var er=qt[Ut];if(typeof er!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(er,Ut,{value:er,enumerable:!1,writable:!1,configurable:!0}),er}function er(){for(var lr,Jt,Yt=new Promise(function(ar,sr){lr=ar,Jt=sr}),rr=[],jt=0;jt"u"?o.g:globalThis,_=xt(),rt=Tt("String.prototype.slice"),tt=Object.getPrototypeOf,st=Tt("Array.prototype.indexOf",!0)||function(bt,ft){for(var at=0;at-1?ft:ft!=="Object"?!1:vt(bt)}return yt?nt(bt):null}},67020:function(Ct,Rt,o){var it=o(38700),xt=o(50896),et=it.instance();function Tt(ot){this.local=this.regionalOptions[ot||""]||this.regionalOptions[""]}Tt.prototype=new it.baseCalendar,xt(Tt.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(ot,nt){if(typeof ot=="string"){var vt=ot.match(ut);return vt?vt[0]:""}var dt=this._validateYear(ot),bt=ot.month(),ft=""+this.toChineseMonth(dt,bt);return nt&&ft.length<2&&(ft="0"+ft),this.isIntercalaryMonth(dt,bt)&&(ft+="i"),ft},monthNames:function(ot){if(typeof ot=="string"){var nt=ot.match(ht);return nt?nt[0]:""}var vt=this._validateYear(ot),dt=ot.month(),bt=this.toChineseMonth(vt,dt),ft=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][bt-1];return this.isIntercalaryMonth(vt,dt)&&(ft="闰"+ft),ft},monthNamesShort:function(ot){if(typeof ot=="string"){var nt=ot.match(j);return nt?nt[0]:""}var vt=this._validateYear(ot),dt=ot.month(),bt=this.toChineseMonth(vt,dt),ft=["一","二","三","四","五","六","七","八","九","十","十一","十二"][bt-1];return this.isIntercalaryMonth(vt,dt)&&(ft="闰"+ft),ft},parseMonth:function(ot,nt){ot=this._validateYear(ot);var vt=parseInt(nt),dt;if(isNaN(vt))nt[0]==="闰"&&(dt=!0,nt=nt.substring(1)),nt[nt.length-1]==="月"&&(nt=nt.substring(0,nt.length-1)),vt=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(nt);else{var bt=nt[nt.length-1];dt=bt==="i"||bt==="I"}var ft=this.toMonthIndex(ot,vt,dt);return ft},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(ot,nt){if(ot.year&&(ot=ot.year()),typeof ot!="number"||ot<1888||ot>2111)throw nt.replace(/\{0\}/,this.local.name);return ot},toMonthIndex:function(ot,nt,vt){var dt=this.intercalaryMonth(ot),bt=vt&&nt!==dt;if(bt||nt<1||nt>12)throw it.local.invalidMonth.replace(/\{0\}/,this.local.name);var ft;return dt?!vt&&nt<=dt?ft=nt-1:ft=nt:ft=nt-1,ft},toChineseMonth:function(ot,nt){ot.year&&(ot=ot.year(),nt=ot.month());var vt=this.intercalaryMonth(ot),dt=vt?12:11;if(nt<0||nt>dt)throw it.local.invalidMonth.replace(/\{0\}/,this.local.name);var bt;return vt?nt>13;return vt},isIntercalaryMonth:function(ot,nt){ot.year&&(ot=ot.year(),nt=ot.month());var vt=this.intercalaryMonth(ot);return!!vt&&vt===nt},leapYear:function(ot){return this.intercalaryMonth(ot)!==0},weekOfYear:function(ot,nt,vt){var dt=this._validateYear(ot,it.local.invalidyear),bt=rt[dt-rt[0]],ft=bt>>9&4095,at=bt>>5&15,mt=bt&31,St;St=et.newDate(ft,at,mt),St.add(4-(St.dayOfWeek()||7),"d");var _t=this.toJD(ot,nt,vt)-St.toJD();return 1+Math.floor(_t/7)},monthsInYear:function(ot){return this.leapYear(ot)?13:12},daysInMonth:function(ot,nt){ot.year&&(nt=ot.month(),ot=ot.year()),ot=this._validateYear(ot);var vt=_[ot-_[0]],dt=vt>>13,bt=dt?12:11;if(nt>bt)throw it.local.invalidMonth.replace(/\{0\}/,this.local.name);var ft=vt&1<<12-nt?30:29;return ft},weekDay:function(ot,nt,vt){return(this.dayOfWeek(ot,nt,vt)||7)<6},toJD:function(ot,nt,vt){var dt=this._validate(ot,ft,vt,it.local.invalidDate);ot=this._validateYear(dt.year()),nt=dt.month(),vt=dt.day();var bt=this.isIntercalaryMonth(ot,nt),ft=this.toChineseMonth(ot,nt),at=st(ot,ft,vt,bt);return et.toJD(at.year,at.month,at.day)},fromJD:function(ot){var nt=et.fromJD(ot),vt=tt(nt.year(),nt.month(),nt.day()),dt=this.toMonthIndex(vt.year,vt.month,vt.isIntercalary);return this.newDate(vt.year,dt,vt.day)},fromString:function(ot){var nt=ot.match(yt),vt=this._validateYear(+nt[1]),dt=+nt[2],bt=!!nt[3],ft=this.toMonthIndex(vt,dt,bt),at=+nt[4];return this.newDate(vt,ft,at)},add:function(ot,nt,vt){var dt=ot.year(),bt=ot.month(),ft=this.isIntercalaryMonth(dt,bt),at=this.toChineseMonth(dt,bt),mt=Object.getPrototypeOf(Tt.prototype).add.call(this,ot,nt,vt);if(vt==="y"){var St=mt.year(),_t=mt.month(),Mt=this.isIntercalaryMonth(St,at),Et=ft&&Mt?this.toMonthIndex(St,at,!0):this.toMonthIndex(St,at,!1);Et!==_t&&mt.month(Et)}return mt}});var yt=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,ut=/^\d?\d[iI]?/m,ht=/^闰?十?[一二三四五六七八九]?月/m,j=/^闰?十?[一二三四五六七八九]?/m;it.calendars.chinese=Tt;var _=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],rt=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function tt(ot,nt,vt,dt){var bt,ft;if(typeof ot=="object")bt=ot,ft=nt||{};else{var at=typeof ot=="number"&&ot>=1888&&ot<=2111;if(!at)throw new Error("Solar year outside range 1888-2111");var mt=typeof nt=="number"&&nt>=1&&nt<=12;if(!mt)throw new Error("Solar month outside range 1 - 12");var St=typeof vt=="number"&&vt>=1&&vt<=31;if(!St)throw new Error("Solar day outside range 1 - 31");bt={year:ot,month:nt,day:vt},ft=dt||{}}var _t=rt[bt.year-rt[0]],Mt=bt.year<<9|bt.month<<5|bt.day;ft.year=Mt>=_t?bt.year:bt.year-1,_t=rt[ft.year-rt[0]];var Et=_t>>9&4095,kt=_t>>5&15,wt=_t&31,ct,It=new Date(Et,kt-1,wt),At=new Date(bt.year,bt.month-1,bt.day);ct=Math.round((At-It)/864e5);var Ot=_[ft.year-_[0]],Pt;for(Pt=0;Pt<13;Pt++){var zt=Ot&1<<12-Pt?30:29;if(ct>13;return!Dt||Pt=1888&&ot<=2111;if(!mt)throw new Error("Lunar year outside range 1888-2111");var St=typeof nt=="number"&&nt>=1&&nt<=12;if(!St)throw new Error("Lunar month outside range 1 - 12");var _t=typeof vt=="number"&&vt>=1&&vt<=30;if(!_t)throw new Error("Lunar day outside range 1 - 30");var Mt;typeof dt=="object"?(Mt=!1,ft=dt):(Mt=!!dt,ft=bt||{}),at={year:ot,month:nt,day:vt,isIntercalary:Mt}}var Et;Et=at.day-1;var kt=_[at.year-_[0]],wt=kt>>13,ct;wt&&(at.month>wt||at.isIntercalary)?ct=at.month:ct=at.month-1;for(var It=0;It>9&4095,zt=Ot>>5&15,Dt=Ot&31,Nt=new Date(Pt,zt-1,Dt+Et);return ft.year=Nt.getFullYear(),ft.month=1+Nt.getMonth(),ft.day=Nt.getDate(),ft}},89792:function(Ct,Rt,o){var it=o(38700),xt=o(50896);function et(Tt){this.local=this.regionalOptions[Tt||""]||this.regionalOptions[""]}et.prototype=new it.baseCalendar,xt(et.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(ut){var yt=this._validate(ut,this.minMonth,this.minDay,it.local.invalidYear),ut=yt.year()+(yt.year()<0?1:0);return ut%4===3||ut%4===-1},monthsInYear:function(Tt){return this._validate(Tt,this.minMonth,this.minDay,it.local.invalidYear||it.regionalOptions[""].invalidYear),13},weekOfYear:function(Tt,yt,ut){var ht=this.newDate(Tt,yt,ut);return ht.add(-ht.dayOfWeek(),"d"),Math.floor((ht.dayOfYear()-1)/7)+1},daysInMonth:function(Tt,yt){var ut=this._validate(Tt,yt,this.minDay,it.local.invalidMonth);return this.daysPerMonth[ut.month()-1]+(ut.month()===13&&this.leapYear(ut.year())?1:0)},weekDay:function(Tt,yt,ut){return(this.dayOfWeek(Tt,yt,ut)||7)<6},toJD:function(Tt,yt,ut){var ht=this._validate(Tt,yt,ut,it.local.invalidDate);return Tt=ht.year(),Tt<0&&Tt++,ht.day()+(ht.month()-1)*30+(Tt-1)*365+Math.floor(Tt/4)+this.jdEpoch-1},fromJD:function(Tt){var yt=Math.floor(Tt)+.5-this.jdEpoch,ut=Math.floor((yt-Math.floor((yt+366)/1461))/365)+1;ut<=0&&ut--,yt=Math.floor(Tt)+.5-this.newDate(ut,1,1).toJD();var ht=Math.floor(yt/30)+1,j=yt-(ht-1)*30+1;return this.newDate(ut,ht,j)}}),it.calendars.coptic=et},55668:function(Ct,Rt,o){var it=o(38700),xt=o(50896);function et(yt){this.local=this.regionalOptions[yt||""]||this.regionalOptions[""]}et.prototype=new it.baseCalendar,xt(et.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(yt){return this._validate(yt,this.minMonth,this.minDay,it.local.invalidYear),!1},monthsInYear:function(yt){return this._validate(yt,this.minMonth,this.minDay,it.local.invalidYear),13},daysInYear:function(yt){return this._validate(yt,this.minMonth,this.minDay,it.local.invalidYear),400},weekOfYear:function(yt,ut,ht){var j=this.newDate(yt,ut,ht);return j.add(-j.dayOfWeek(),"d"),Math.floor((j.dayOfYear()-1)/8)+1},daysInMonth:function(yt,ut){var ht=this._validate(yt,ut,this.minDay,it.local.invalidMonth);return this.daysPerMonth[ht.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(yt,ut,ht){var j=this._validate(yt,ut,ht,it.local.invalidDate);return(j.day()+1)%8},weekDay:function(yt,ut,ht){var j=this.dayOfWeek(yt,ut,ht);return j>=2&&j<=6},extraInfo:function(yt,ut,ht){var j=this._validate(yt,ut,ht,it.local.invalidDate);return{century:Tt[Math.floor((j.year()-1)/100)+1]||""}},toJD:function(yt,ut,ht){var j=this._validate(yt,ut,ht,it.local.invalidDate);return yt=j.year()+(j.year()<0?1:0),ut=j.month(),ht=j.day(),ht+(ut>1?16:0)+(ut>2?(ut-2)*32:0)+(yt-1)*400+this.jdEpoch-1},fromJD:function(yt){yt=Math.floor(yt+.5)-Math.floor(this.jdEpoch)-1;var ut=Math.floor(yt/400)+1;yt-=(ut-1)*400,yt+=yt>15?16:0;var ht=Math.floor(yt/32)+1,j=yt-(ht-1)*32+1;return this.newDate(ut<=0?ut-1:ut,ht,j)}});var Tt={20:"Fruitbat",21:"Anchovy"};it.calendars.discworld=et},65168:function(Ct,Rt,o){var it=o(38700),xt=o(50896);function et(Tt){this.local=this.regionalOptions[Tt||""]||this.regionalOptions[""]}et.prototype=new it.baseCalendar,xt(et.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(ut){var yt=this._validate(ut,this.minMonth,this.minDay,it.local.invalidYear),ut=yt.year()+(yt.year()<0?1:0);return ut%4===3||ut%4===-1},monthsInYear:function(Tt){return this._validate(Tt,this.minMonth,this.minDay,it.local.invalidYear||it.regionalOptions[""].invalidYear),13},weekOfYear:function(Tt,yt,ut){var ht=this.newDate(Tt,yt,ut);return ht.add(-ht.dayOfWeek(),"d"),Math.floor((ht.dayOfYear()-1)/7)+1},daysInMonth:function(Tt,yt){var ut=this._validate(Tt,yt,this.minDay,it.local.invalidMonth);return this.daysPerMonth[ut.month()-1]+(ut.month()===13&&this.leapYear(ut.year())?1:0)},weekDay:function(Tt,yt,ut){return(this.dayOfWeek(Tt,yt,ut)||7)<6},toJD:function(Tt,yt,ut){var ht=this._validate(Tt,yt,ut,it.local.invalidDate);return Tt=ht.year(),Tt<0&&Tt++,ht.day()+(ht.month()-1)*30+(Tt-1)*365+Math.floor(Tt/4)+this.jdEpoch-1},fromJD:function(Tt){var yt=Math.floor(Tt)+.5-this.jdEpoch,ut=Math.floor((yt-Math.floor((yt+366)/1461))/365)+1;ut<=0&&ut--,yt=Math.floor(Tt)+.5-this.newDate(ut,1,1).toJD();var ht=Math.floor(yt/30)+1,j=yt-(ht-1)*30+1;return this.newDate(ut,ht,j)}}),it.calendars.ethiopian=et},2084:function(Ct,Rt,o){var it=o(38700),xt=o(50896);function et(yt){this.local=this.regionalOptions[yt||""]||this.regionalOptions[""]}et.prototype=new it.baseCalendar,xt(et.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(yt){var ut=this._validate(yt,this.minMonth,this.minDay,it.local.invalidYear);return this._leapYear(ut.year())},_leapYear:function(yt){return yt=yt<0?yt+1:yt,Tt(yt*7+1,19)<7},monthsInYear:function(yt){return this._validate(yt,this.minMonth,this.minDay,it.local.invalidYear),this._leapYear(yt.year?yt.year():yt)?13:12},weekOfYear:function(yt,ut,ht){var j=this.newDate(yt,ut,ht);return j.add(-j.dayOfWeek(),"d"),Math.floor((j.dayOfYear()-1)/7)+1},daysInYear:function(yt){var ut=this._validate(yt,this.minMonth,this.minDay,it.local.invalidYear);return yt=ut.year(),this.toJD(yt===-1?1:yt+1,7,1)-this.toJD(yt,7,1)},daysInMonth:function(yt,ut){return yt.year&&(ut=yt.month(),yt=yt.year()),this._validate(yt,ut,this.minDay,it.local.invalidMonth),ut===12&&this.leapYear(yt)||ut===8&&Tt(this.daysInYear(yt),10)===5?30:ut===9&&Tt(this.daysInYear(yt),10)===3?29:this.daysPerMonth[ut-1]},weekDay:function(yt,ut,ht){return this.dayOfWeek(yt,ut,ht)!==6},extraInfo:function(yt,ut,ht){var j=this._validate(yt,ut,ht,it.local.invalidDate);return{yearType:(this.leapYear(j)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(j)%10-3]}},toJD:function(yt,ut,ht){var j=this._validate(yt,ut,ht,it.local.invalidDate);yt=j.year(),ut=j.month(),ht=j.day();var _=yt<=0?yt+1:yt,rt=this.jdEpoch+this._delay1(_)+this._delay2(_)+ht+1;if(ut<7){for(var tt=7;tt<=this.monthsInYear(yt);tt++)rt+=this.daysInMonth(yt,tt);for(var tt=1;tt=this.toJD(ut===-1?1:ut+1,7,1);)ut++;for(var ht=ytthis.toJD(ut,ht,this.daysInMonth(ut,ht));)ht++;var j=yt-this.toJD(ut,ht,1)+1;return this.newDate(ut,ht,j)}});function Tt(yt,ut){return yt-ut*Math.floor(yt/ut)}it.calendars.hebrew=et},26368:function(Ct,Rt,o){var it=o(38700),xt=o(50896);function et(Tt){this.local=this.regionalOptions[Tt||""]||this.regionalOptions[""]}et.prototype=new it.baseCalendar,xt(et.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(Tt){var yt=this._validate(Tt,this.minMonth,this.minDay,it.local.invalidYear);return(yt.year()*11+14)%30<11},weekOfYear:function(Tt,yt,ut){var ht=this.newDate(Tt,yt,ut);return ht.add(-ht.dayOfWeek(),"d"),Math.floor((ht.dayOfYear()-1)/7)+1},daysInYear:function(Tt){return this.leapYear(Tt)?355:354},daysInMonth:function(Tt,yt){var ut=this._validate(Tt,yt,this.minDay,it.local.invalidMonth);return this.daysPerMonth[ut.month()-1]+(ut.month()===12&&this.leapYear(ut.year())?1:0)},weekDay:function(Tt,yt,ut){return this.dayOfWeek(Tt,yt,ut)!==5},toJD:function(Tt,yt,ut){var ht=this._validate(Tt,yt,ut,it.local.invalidDate);return Tt=ht.year(),yt=ht.month(),ut=ht.day(),Tt=Tt<=0?Tt+1:Tt,ut+Math.ceil(29.5*(yt-1))+(Tt-1)*354+Math.floor((3+11*Tt)/30)+this.jdEpoch-1},fromJD:function(Tt){Tt=Math.floor(Tt)+.5;var yt=Math.floor((30*(Tt-this.jdEpoch)+10646)/10631);yt=yt<=0?yt-1:yt;var ut=Math.min(12,Math.ceil((Tt-29-this.toJD(yt,1,1))/29.5)+1),ht=Tt-this.toJD(yt,ut,1)+1;return this.newDate(yt,ut,ht)}}),it.calendars.islamic=et},24747:function(Ct,Rt,o){var it=o(38700),xt=o(50896);function et(Tt){this.local=this.regionalOptions[Tt||""]||this.regionalOptions[""]}et.prototype=new it.baseCalendar,xt(et.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(ut){var yt=this._validate(ut,this.minMonth,this.minDay,it.local.invalidYear),ut=yt.year()<0?yt.year()+1:yt.year();return ut%4===0},weekOfYear:function(Tt,yt,ut){var ht=this.newDate(Tt,yt,ut);return ht.add(4-(ht.dayOfWeek()||7),"d"),Math.floor((ht.dayOfYear()-1)/7)+1},daysInMonth:function(Tt,yt){var ut=this._validate(Tt,yt,this.minDay,it.local.invalidMonth);return this.daysPerMonth[ut.month()-1]+(ut.month()===2&&this.leapYear(ut.year())?1:0)},weekDay:function(Tt,yt,ut){return(this.dayOfWeek(Tt,yt,ut)||7)<6},toJD:function(Tt,yt,ut){var ht=this._validate(Tt,yt,ut,it.local.invalidDate);return Tt=ht.year(),yt=ht.month(),ut=ht.day(),Tt<0&&Tt++,yt<=2&&(Tt--,yt+=12),Math.floor(365.25*(Tt+4716))+Math.floor(30.6001*(yt+1))+ut-1524.5},fromJD:function(Tt){var yt=Math.floor(Tt+.5),ut=yt+1524,ht=Math.floor((ut-122.1)/365.25),j=Math.floor(365.25*ht),_=Math.floor((ut-j)/30.6001),rt=_-Math.floor(_<14?1:13),tt=ht-Math.floor(rt>2?4716:4715),st=ut-j-Math.floor(30.6001*_);return tt<=0&&tt--,this.newDate(tt,rt,st)}}),it.calendars.julian=et},65616:function(Ct,Rt,o){var it=o(38700),xt=o(50896);function et(ut){this.local=this.regionalOptions[ut||""]||this.regionalOptions[""]}et.prototype=new it.baseCalendar,xt(et.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(ut){return this._validate(ut,this.minMonth,this.minDay,it.local.invalidYear),!1},formatYear:function(ut){var ht=this._validate(ut,this.minMonth,this.minDay,it.local.invalidYear);ut=ht.year();var j=Math.floor(ut/400);ut=ut%400,ut+=ut<0?400:0;var _=Math.floor(ut/20);return j+"."+_+"."+ut%20},forYear:function(ut){if(ut=ut.split("."),ut.length<3)throw"Invalid Mayan year";for(var ht=0,j=0;j19||j>0&&_<0)throw"Invalid Mayan year";ht=ht*20+_}return ht},monthsInYear:function(ut){return this._validate(ut,this.minMonth,this.minDay,it.local.invalidYear),18},weekOfYear:function(ut,ht,j){return this._validate(ut,ht,j,it.local.invalidDate),0},daysInYear:function(ut){return this._validate(ut,this.minMonth,this.minDay,it.local.invalidYear),360},daysInMonth:function(ut,ht){return this._validate(ut,ht,this.minDay,it.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(ut,ht,j){var _=this._validate(ut,ht,j,it.local.invalidDate);return _.day()},weekDay:function(ut,ht,j){return this._validate(ut,ht,j,it.local.invalidDate),!0},extraInfo:function(ut,ht,j){var _=this._validate(ut,ht,j,it.local.invalidDate),rt=_.toJD(),tt=this._toHaab(rt),st=this._toTzolkin(rt);return{haabMonthName:this.local.haabMonths[tt[0]-1],haabMonth:tt[0],haabDay:tt[1],tzolkinDayName:this.local.tzolkinMonths[st[0]-1],tzolkinDay:st[0],tzolkinTrecena:st[1]}},_toHaab:function(ut){ut-=this.jdEpoch;var ht=Tt(ut+8+(18-1)*20,365);return[Math.floor(ht/20)+1,Tt(ht,20)]},_toTzolkin:function(ut){return ut-=this.jdEpoch,[yt(ut+20,20),yt(ut+4,13)]},toJD:function(ut,ht,j){var _=this._validate(ut,ht,j,it.local.invalidDate);return _.day()+_.month()*20+_.year()*360+this.jdEpoch},fromJD:function(ut){ut=Math.floor(ut)+.5-this.jdEpoch;var ht=Math.floor(ut/360);ut=ut%360,ut+=ut<0?360:0;var j=Math.floor(ut/20),_=ut%20;return this.newDate(ht,j,_)}});function Tt(ut,ht){return ut-ht*Math.floor(ut/ht)}function yt(ut,ht){return Tt(ut-1,ht)+1}it.calendars.mayan=et},30632:function(Ct,Rt,o){var it=o(38700),xt=o(50896);function et(yt){this.local=this.regionalOptions[yt||""]||this.regionalOptions[""]}et.prototype=new it.baseCalendar;var Tt=it.instance("gregorian");xt(et.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(yt){var ut=this._validate(yt,this.minMonth,this.minDay,it.local.invalidYear||it.regionalOptions[""].invalidYear);return Tt.leapYear(ut.year()+(ut.year()<1?1:0)+1469)},weekOfYear:function(yt,ut,ht){var j=this.newDate(yt,ut,ht);return j.add(1-(j.dayOfWeek()||7),"d"),Math.floor((j.dayOfYear()-1)/7)+1},daysInMonth:function(yt,ut){var ht=this._validate(yt,ut,this.minDay,it.local.invalidMonth);return this.daysPerMonth[ht.month()-1]+(ht.month()===12&&this.leapYear(ht.year())?1:0)},weekDay:function(yt,ut,ht){return(this.dayOfWeek(yt,ut,ht)||7)<6},toJD:function(_,ut,ht){var j=this._validate(_,ut,ht,it.local.invalidMonth),_=j.year();_<0&&_++;for(var rt=j.day(),tt=1;tt=this.toJD(ut+1,1,1);)ut++;for(var ht=yt-Math.floor(this.toJD(ut,1,1)+.5)+1,j=1;ht>this.daysInMonth(ut,j);)ht-=this.daysInMonth(ut,j),j++;return this.newDate(ut,j,ht)}}),it.calendars.nanakshahi=et},73040:function(Ct,Rt,o){var it=o(38700),xt=o(50896);function et(Tt){this.local=this.regionalOptions[Tt||""]||this.regionalOptions[""]}et.prototype=new it.baseCalendar,xt(et.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(Tt){return this.daysInYear(Tt)!==this.daysPerYear},weekOfYear:function(Tt,yt,ut){var ht=this.newDate(Tt,yt,ut);return ht.add(-ht.dayOfWeek(),"d"),Math.floor((ht.dayOfYear()-1)/7)+1},daysInYear:function(Tt){var yt=this._validate(Tt,this.minMonth,this.minDay,it.local.invalidYear);if(Tt=yt.year(),typeof this.NEPALI_CALENDAR_DATA[Tt]>"u")return this.daysPerYear;for(var ut=0,ht=this.minMonth;ht<=12;ht++)ut+=this.NEPALI_CALENDAR_DATA[Tt][ht];return ut},daysInMonth:function(Tt,yt){return Tt.year&&(yt=Tt.month(),Tt=Tt.year()),this._validate(Tt,yt,this.minDay,it.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[Tt]>"u"?this.daysPerMonth[yt-1]:this.NEPALI_CALENDAR_DATA[Tt][yt]},weekDay:function(Tt,yt,ut){return this.dayOfWeek(Tt,yt,ut)!==6},toJD:function(Tt,yt,ut){var ht=this._validate(Tt,yt,ut,it.local.invalidDate);Tt=ht.year(),yt=ht.month(),ut=ht.day();var j=it.instance(),_=0,rt=yt,tt=Tt;this._createMissingCalendarData(Tt);var st=Tt-(rt>9||rt===9&&ut>=this.NEPALI_CALENDAR_DATA[tt][0]?56:57);for(yt!==9&&(_=ut,rt--);rt!==9;)rt<=0&&(rt=12,tt--),_+=this.NEPALI_CALENDAR_DATA[tt][rt],rt--;return yt===9?(_+=ut-this.NEPALI_CALENDAR_DATA[tt][0],_<0&&(_+=j.daysInYear(st))):_+=this.NEPALI_CALENDAR_DATA[tt][9]-this.NEPALI_CALENDAR_DATA[tt][0],j.newDate(st,1,1).add(_,"d").toJD()},fromJD:function(Tt){var yt=it.instance(),ut=yt.fromJD(Tt),ht=ut.year(),j=ut.dayOfYear(),_=ht+56;this._createMissingCalendarData(_);for(var rt=9,tt=this.NEPALI_CALENDAR_DATA[_][0],st=this.NEPALI_CALENDAR_DATA[_][rt]-tt+1;j>st;)rt++,rt>12&&(rt=1,_++),st+=this.NEPALI_CALENDAR_DATA[_][rt];var ot=this.NEPALI_CALENDAR_DATA[_][rt]-(st-j);return this.newDate(_,rt,ot)},_createMissingCalendarData:function(Tt){var yt=this.daysPerMonth.slice(0);yt.unshift(17);for(var ut=Tt-1;ut"u"&&(this.NEPALI_CALENDAR_DATA[ut]=yt)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),it.calendars.nepali=et},1104:function(Ct,Rt,o){var it=o(38700),xt=o(50896);function et(yt){this.local=this.regionalOptions[yt||""]||this.regionalOptions[""]}et.prototype=new it.baseCalendar,xt(et.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Day","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Day","Bah","Esf"],dayNames:["Yekshambe","Doshambe","Seshambe","Chæharshambe","Panjshambe","Jom'e","Shambe"],dayNamesShort:["Yek","Do","Se","Chæ","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(yt){var ut=this._validate(yt,this.minMonth,this.minDay,it.local.invalidYear);return((ut.year()-(ut.year()>0?474:473))%2820+474+38)*682%2816<682},weekOfYear:function(yt,ut,ht){var j=this.newDate(yt,ut,ht);return j.add(-((j.dayOfWeek()+1)%7),"d"),Math.floor((j.dayOfYear()-1)/7)+1},daysInMonth:function(yt,ut){var ht=this._validate(yt,ut,this.minDay,it.local.invalidMonth);return this.daysPerMonth[ht.month()-1]+(ht.month()===12&&this.leapYear(ht.year())?1:0)},weekDay:function(yt,ut,ht){return this.dayOfWeek(yt,ut,ht)!==5},toJD:function(yt,ut,ht){var j=this._validate(yt,ut,ht,it.local.invalidDate);yt=j.year(),ut=j.month(),ht=j.day();var _=yt-(yt>=0?474:473),rt=474+Tt(_,2820);return ht+(ut<=7?(ut-1)*31:(ut-1)*30+6)+Math.floor((rt*682-110)/2816)+(rt-1)*365+Math.floor(_/2820)*1029983+this.jdEpoch-1},fromJD:function(yt){yt=Math.floor(yt)+.5;var ut=yt-this.toJD(475,1,1),ht=Math.floor(ut/1029983),j=Tt(ut,1029983),_=2820;if(j!==1029982){var rt=Math.floor(j/366),tt=Tt(j,366);_=Math.floor((2134*rt+2816*tt+2815)/1028522)+rt+1}var st=_+2820*ht+474;st=st<=0?st-1:st;var ot=yt-this.toJD(st,1,1)+1,nt=ot<=186?Math.ceil(ot/31):Math.ceil((ot-6)/30),vt=yt-this.toJD(st,nt,1)+1;return this.newDate(st,nt,vt)}});function Tt(yt,ut){return yt-ut*Math.floor(yt/ut)}it.calendars.persian=et,it.calendars.jalali=et},51456:function(Ct,Rt,o){var it=o(38700),xt=o(50896),et=it.instance();function Tt(yt){this.local=this.regionalOptions[yt||""]||this.regionalOptions[""]}Tt.prototype=new it.baseCalendar,xt(Tt.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(ht){var ut=this._validate(ht,this.minMonth,this.minDay,it.local.invalidYear),ht=this._t2gYear(ut.year());return et.leapYear(ht)},weekOfYear:function(_,ut,ht){var j=this._validate(_,this.minMonth,this.minDay,it.local.invalidYear),_=this._t2gYear(j.year());return et.weekOfYear(_,j.month(),j.day())},daysInMonth:function(yt,ut){var ht=this._validate(yt,ut,this.minDay,it.local.invalidMonth);return this.daysPerMonth[ht.month()-1]+(ht.month()===2&&this.leapYear(ht.year())?1:0)},weekDay:function(yt,ut,ht){return(this.dayOfWeek(yt,ut,ht)||7)<6},toJD:function(_,ut,ht){var j=this._validate(_,ut,ht,it.local.invalidDate),_=this._t2gYear(j.year());return et.toJD(_,j.month(),j.day())},fromJD:function(yt){var ut=et.fromJD(yt),ht=this._g2tYear(ut.year());return this.newDate(ht,ut.month(),ut.day())},_t2gYear:function(yt){return yt+this.yearsOffset+(yt>=-this.yearsOffset&&yt<=-1?1:0)},_g2tYear:function(yt){return yt-this.yearsOffset-(yt>=1&&yt<=this.yearsOffset?1:0)}}),it.calendars.taiwan=Tt},4592:function(Ct,Rt,o){var it=o(38700),xt=o(50896),et=it.instance();function Tt(yt){this.local=this.regionalOptions[yt||""]||this.regionalOptions[""]}Tt.prototype=new it.baseCalendar,xt(Tt.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(ht){var ut=this._validate(ht,this.minMonth,this.minDay,it.local.invalidYear),ht=this._t2gYear(ut.year());return et.leapYear(ht)},weekOfYear:function(_,ut,ht){var j=this._validate(_,this.minMonth,this.minDay,it.local.invalidYear),_=this._t2gYear(j.year());return et.weekOfYear(_,j.month(),j.day())},daysInMonth:function(yt,ut){var ht=this._validate(yt,ut,this.minDay,it.local.invalidMonth);return this.daysPerMonth[ht.month()-1]+(ht.month()===2&&this.leapYear(ht.year())?1:0)},weekDay:function(yt,ut,ht){return(this.dayOfWeek(yt,ut,ht)||7)<6},toJD:function(_,ut,ht){var j=this._validate(_,ut,ht,it.local.invalidDate),_=this._t2gYear(j.year());return et.toJD(_,j.month(),j.day())},fromJD:function(yt){var ut=et.fromJD(yt),ht=this._g2tYear(ut.year());return this.newDate(ht,ut.month(),ut.day())},_t2gYear:function(yt){return yt-this.yearsOffset-(yt>=1&&yt<=this.yearsOffset?1:0)},_g2tYear:function(yt){return yt+this.yearsOffset+(yt>=-this.yearsOffset&&yt<=-1?1:0)}}),it.calendars.thai=Tt},45348:function(Ct,Rt,o){var it=o(38700),xt=o(50896);function et(yt){this.local=this.regionalOptions[yt||""]||this.regionalOptions[""]}et.prototype=new it.baseCalendar,xt(et.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(yt){var ut=this._validate(yt,this.minMonth,this.minDay,it.local.invalidYear);return this.daysInYear(ut.year())===355},weekOfYear:function(yt,ut,ht){var j=this.newDate(yt,ut,ht);return j.add(-j.dayOfWeek(),"d"),Math.floor((j.dayOfYear()-1)/7)+1},daysInYear:function(yt){for(var ut=0,ht=1;ht<=12;ht++)ut+=this.daysInMonth(yt,ht);return ut},daysInMonth:function(yt,ut){for(var ht=this._validate(yt,ut,this.minDay,it.local.invalidMonth),j=ht.toJD()-24e5+.5,_=0,rt=0;rtj)return Tt[_]-Tt[_-1];_++}return 30},weekDay:function(yt,ut,ht){return this.dayOfWeek(yt,ut,ht)!==5},toJD:function(yt,ut,ht){var j=this._validate(yt,ut,ht,it.local.invalidDate),_=12*(j.year()-1)+j.month()-15292,rt=j.day()+Tt[_-1]-1;return rt+24e5-.5},fromJD:function(yt){for(var ut=yt-24e5+.5,ht=0,j=0;jut);j++)ht++;var _=ht+15292,rt=Math.floor((_-1)/12),tt=rt+1,st=_-12*rt,ot=ut-Tt[ht-1]+1;return this.newDate(tt,st,ot)},isValid:function(yt,ut,ht){var j=it.baseCalendar.prototype.isValid.apply(this,arguments);return j&&(yt=yt.year!=null?yt.year:yt,j=yt>=1276&&yt<=1500),j},_validate:function(yt,ut,ht,j){var _=it.baseCalendar.prototype._validate.apply(this,arguments);if(_.year<1276||_.year>1500)throw j.replace(/\{0\}/,this.local.name);return _}}),it.calendars.ummalqura=et;var Tt=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},38700:function(Ct,Rt,o){var it=o(50896);function xt(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}it(xt.prototype,{instance:function(j,_){j=(j||"gregorian").toLowerCase(),_=_||"";var rt=this._localCals[j+"-"+_];if(!rt&&this.calendars[j]&&(rt=new this.calendars[j](_),this._localCals[j+"-"+_]=rt),!rt)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,j);return rt},newDate:function(j,_,rt,tt,st){return tt=(j!=null&&j.year?j.calendar():typeof tt=="string"?this.instance(tt,st):tt)||this.instance(),tt.newDate(j,_,rt)},substituteDigits:function(j){return function(_){return(_+"").replace(/[0-9]/g,function(rt){return j[rt]})}},substituteChineseDigits:function(j,_){return function(rt){for(var tt="",st=0;rt>0;){var ot=rt%10;tt=(ot===0?"":j[ot]+_[st])+tt,st++,rt=Math.floor(rt/10)}return tt.indexOf(j[1]+_[1])===0&&(tt=tt.substr(1)),tt||j[0]}}});function et(j,_,rt,tt){if(this._calendar=j,this._year=_,this._month=rt,this._day=tt,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(ht.local.invalidDate||ht.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function Tt(j,_){return j=""+j,"000000".substring(0,_-j.length)+j}it(et.prototype,{newDate:function(j,_,rt){return this._calendar.newDate(j??this,_,rt)},year:function(j){return arguments.length===0?this._year:this.set(j,"y")},month:function(j){return arguments.length===0?this._month:this.set(j,"m")},day:function(j){return arguments.length===0?this._day:this.set(j,"d")},date:function(j,_,rt){if(!this._calendar.isValid(j,_,rt))throw(ht.local.invalidDate||ht.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=j,this._month=_,this._day=rt,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(j,_){return this._calendar.add(this,j,_)},set:function(j,_){return this._calendar.set(this,j,_)},compareTo:function(j){if(this._calendar.name!==j._calendar.name)throw(ht.local.differentCalendars||ht.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,j._calendar.local.name);var _=this._year!==j._year?this._year-j._year:this._month!==j._month?this.monthOfYear()-j.monthOfYear():this._day-j._day;return _===0?0:_<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(j){return this._calendar.fromJD(j)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(j){return this._calendar.fromJSDate(j)},toString:function(){return(this.year()<0?"-":"")+Tt(Math.abs(this.year()),4)+"-"+Tt(this.month(),2)+"-"+Tt(this.day(),2)}});function yt(){this.shortYearCutoff="+10"}it(yt.prototype,{_validateLevel:0,newDate:function(j,_,rt){return j==null?this.today():(j.year&&(this._validate(j,_,rt,ht.local.invalidDate||ht.regionalOptions[""].invalidDate),rt=j.day(),_=j.month(),j=j.year()),new et(this,j,_,rt))},today:function(){return this.fromJSDate(new Date)},epoch:function(j){var _=this._validate(j,this.minMonth,this.minDay,ht.local.invalidYear||ht.regionalOptions[""].invalidYear);return _.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(j){var _=this._validate(j,this.minMonth,this.minDay,ht.local.invalidYear||ht.regionalOptions[""].invalidYear);return(_.year()<0?"-":"")+Tt(Math.abs(_.year()),4)},monthsInYear:function(j){return this._validate(j,this.minMonth,this.minDay,ht.local.invalidYear||ht.regionalOptions[""].invalidYear),12},monthOfYear:function(j,_){var rt=this._validate(j,_,this.minDay,ht.local.invalidMonth||ht.regionalOptions[""].invalidMonth);return(rt.month()+this.monthsInYear(rt)-this.firstMonth)%this.monthsInYear(rt)+this.minMonth},fromMonthOfYear:function(j,_){var rt=(_+this.firstMonth-2*this.minMonth)%this.monthsInYear(j)+this.minMonth;return this._validate(j,rt,this.minDay,ht.local.invalidMonth||ht.regionalOptions[""].invalidMonth),rt},daysInYear:function(j){var _=this._validate(j,this.minMonth,this.minDay,ht.local.invalidYear||ht.regionalOptions[""].invalidYear);return this.leapYear(_)?366:365},dayOfYear:function(j,_,rt){var tt=this._validate(j,_,rt,ht.local.invalidDate||ht.regionalOptions[""].invalidDate);return tt.toJD()-this.newDate(tt.year(),this.fromMonthOfYear(tt.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(j,_,rt){var tt=this._validate(j,_,rt,ht.local.invalidDate||ht.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(tt))+2)%this.daysInWeek()},extraInfo:function(j,_,rt){return this._validate(j,_,rt,ht.local.invalidDate||ht.regionalOptions[""].invalidDate),{}},add:function(j,_,rt){return this._validate(j,this.minMonth,this.minDay,ht.local.invalidDate||ht.regionalOptions[""].invalidDate),this._correctAdd(j,this._add(j,_,rt),_,rt)},_add:function(j,_,rt){if(this._validateLevel++,rt==="d"||rt==="w"){var tt=j.toJD()+_*(rt==="w"?this.daysInWeek():1),st=j.calendar().fromJD(tt);return this._validateLevel--,[st.year(),st.month(),st.day()]}try{var ot=j.year()+(rt==="y"?_:0),nt=j.monthOfYear()+(rt==="m"?_:0),st=j.day(),vt=function(ft){for(;ntat-1+ft.minMonth;)ot++,nt-=at,at=ft.monthsInYear(ot)};rt==="y"?(j.month()!==this.fromMonthOfYear(ot,nt)&&(nt=this.newDate(ot,j.month(),this.minDay).monthOfYear()),nt=Math.min(nt,this.monthsInYear(ot)),st=Math.min(st,this.daysInMonth(ot,this.fromMonthOfYear(ot,nt)))):rt==="m"&&(vt(this),st=Math.min(st,this.daysInMonth(ot,this.fromMonthOfYear(ot,nt))));var dt=[ot,this.fromMonthOfYear(ot,nt),st];return this._validateLevel--,dt}catch(bt){throw this._validateLevel--,bt}},_correctAdd:function(j,_,rt,tt){if(!this.hasYearZero&&(tt==="y"||tt==="m")&&(_[0]===0||j.year()>0!=_[0]>0)){var st={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[tt],ot=rt<0?-1:1;_=this._add(j,rt*st[0]+ot*st[1],st[2])}return j.date(_[0],_[1],_[2])},set:function(j,_,rt){this._validate(j,this.minMonth,this.minDay,ht.local.invalidDate||ht.regionalOptions[""].invalidDate);var tt=rt==="y"?_:j.year(),st=rt==="m"?_:j.month(),ot=rt==="d"?_:j.day();return(rt==="y"||rt==="m")&&(ot=Math.min(ot,this.daysInMonth(tt,st))),j.date(tt,st,ot)},isValid:function(j,_,rt){this._validateLevel++;var tt=this.hasYearZero||j!==0;if(tt){var st=this.newDate(j,_,this.minDay);tt=_>=this.minMonth&&_-this.minMonth=this.minDay&&rt-this.minDay13.5?13:1),bt=st-(dt>2.5?4716:4715);return bt<=0&&bt--,this.newDate(bt,dt,vt)},toJSDate:function(j,_,rt){var tt=this._validate(j,_,rt,ht.local.invalidDate||ht.regionalOptions[""].invalidDate),st=new Date(tt.year(),tt.month()-1,tt.day());return st.setHours(0),st.setMinutes(0),st.setSeconds(0),st.setMilliseconds(0),st.setHours(st.getHours()>12?st.getHours()+2:0),st},fromJSDate:function(j){return this.newDate(j.getFullYear(),j.getMonth()+1,j.getDate())}});var ht=Ct.exports=new xt;ht.cdate=et,ht.baseCalendar=yt,ht.calendars.gregorian=ut},15168:function(Ct,Rt,o){var it=o(50896),xt=o(38700);it(xt.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),xt.local=xt.regionalOptions[""],it(xt.cdate.prototype,{formatDate:function(et,Tt){return typeof et!="string"&&(Tt=et,et=""),this._calendar.formatDate(et||"",this,Tt)}}),it(xt.baseCalendar.prototype,{UNIX_EPOCH:xt.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:xt.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(et,Tt,yt){if(typeof et!="string"&&(yt=Tt,Tt=et,et=""),!Tt)return"";if(Tt.calendar()!==this)throw xt.local.invalidFormat||xt.regionalOptions[""].invalidFormat;et=et||this.local.dateFormat,yt=yt||{};var ut=yt.dayNamesShort||this.local.dayNamesShort,ht=yt.dayNames||this.local.dayNames,j=yt.monthNumbers||this.local.monthNumbers,_=yt.monthNamesShort||this.local.monthNamesShort,rt=yt.monthNames||this.local.monthNames;yt.calculateWeek||this.local.calculateWeek;for(var tt=function(_t,Mt){for(var Et=1;St+Et1},st=function(_t,Mt,Et,kt){var wt=""+Mt;if(tt(_t,kt))for(;wt.length1},St=function(Pt,zt){var Dt=mt(Pt,zt),Nt=[2,3,Dt?4:2,Dt?4:2,10,11,20]["oyYJ@!".indexOf(Pt)+1],$t=new RegExp("^-?\\d{1,"+Nt+"}"),Ut=Tt.substring(ct).match($t);if(!Ut)throw(xt.local.missingNumberAt||xt.regionalOptions[""].missingNumberAt).replace(/\{0\}/,ct);return ct+=Ut[0].length,parseInt(Ut[0],10)},_t=this,Mt=function(){if(typeof rt=="function"){mt("m");var Pt=rt.call(_t,Tt.substring(ct));return ct+=Pt.length,Pt}return St("m")},Et=function(Pt,zt,Dt,Nt){for(var $t=mt(Pt,Nt)?Dt:zt,Ut=0;Ut<$t.length;Ut++)if(Tt.substr(ct,$t[Ut].length).toLowerCase()===$t[Ut].toLowerCase())return ct+=$t[Ut].length,Ut+_t.minMonth;throw(xt.local.unknownNameAt||xt.regionalOptions[""].unknownNameAt).replace(/\{0\}/,ct)},kt=function(){if(typeof st=="function"){var Pt=mt("M")?st.call(_t,Tt.substring(ct)):tt.call(_t,Tt.substring(ct));return ct+=Pt.length,Pt}return Et("M",tt,st)},wt=function(){if(Tt.charAt(ct)!==et.charAt(It))throw(xt.local.unexpectedLiteralAt||xt.regionalOptions[""].unexpectedLiteralAt).replace(/\{0\}/,ct);ct++},ct=0,It=0;It-1){vt=1,dt=bt;for(var Ot=this.daysInMonth(nt,vt);dt>Ot;Ot=this.daysInMonth(nt,vt))vt++,dt-=Ot}return ot>-1?this.fromJD(ot):this.newDate(nt,vt,dt)},determineDate:function(et,Tt,yt,ut,ht){yt&&typeof yt!="object"&&(ht=ut,ut=yt,yt=null),typeof ut!="string"&&(ht=ut,ut="");var j=this,_=function(rt){try{return j.parseDate(ut,rt,ht)}catch{}rt=rt.toLowerCase();for(var tt=(rt.match(/^c/)&&yt?yt.newDate():null)||j.today(),st=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,ot=st.exec(rt);ot;)tt.add(parseInt(ot[1],10),ot[2]||"d"),ot=st.exec(rt);return tt};return Tt=Tt?Tt.newDate():null,et=et==null?Tt:typeof et=="string"?_(et):typeof et=="number"?isNaN(et)||et===1/0||et===-1/0?Tt:j.today().add(et,"d"):j.newDate(et),et}})},21576:function(){},19768:function(){},63436:function(Ct,Rt,o){var it=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],xt=typeof globalThis>"u"?o.g:globalThis;Ct.exports=function(){for(var Tt=[],yt=0;yt>8&15|Rr>>4&240,Rr>>4&15|Rr&240,(Rr&15)<<4|Rr&15,1):zr===8?Mt(Rr>>24&255,Rr>>16&255,Rr>>8&255,(Rr&255)/255):zr===4?Mt(Rr>>12&15|Rr>>8&240,Rr>>8&15|Rr>>4&240,Rr>>4&15|Rr&240,((Rr&15)<<4|Rr&15)/255):null):(Rr=rt.exec(Er))?new wt(Rr[1],Rr[2],Rr[3],1):(Rr=tt.exec(Er))?new wt(Rr[1]*255/100,Rr[2]*255/100,Rr[3]*255/100,1):(Rr=st.exec(Er))?Mt(Rr[1],Rr[2],Rr[3],Rr[4]):(Rr=ot.exec(Er))?Mt(Rr[1]*255/100,Rr[2]*255/100,Rr[3]*255/100,Rr[4]):(Rr=nt.exec(Er))?Dt(Rr[1],Rr[2]/100,Rr[3]/100,1):(Rr=vt.exec(Er))?Dt(Rr[1],Rr[2]/100,Rr[3]/100,Rr[4]):dt.hasOwnProperty(Er)?_t(dt[Er]):Er==="transparent"?new wt(NaN,NaN,NaN,0):null}function _t(Er){return new wt(Er>>16&255,Er>>8&255,Er&255,1)}function Mt(Er,Rr,zr,Or){return Or<=0&&(Er=Rr=zr=NaN),new wt(Er,Rr,zr,Or)}function Et(Er){return Er instanceof et||(Er=St(Er)),Er?(Er=Er.rgb(),new wt(Er.r,Er.g,Er.b,Er.opacity)):new wt}function kt(Er,Rr,zr,Or){return arguments.length===1?Et(Er):new wt(Er,Rr,zr,Or??1)}function wt(Er,Rr,zr,Or){this.r=+Er,this.g=+Rr,this.b=+zr,this.opacity=+Or}it(wt,kt,xt(et,{brighter:function(Rr){return Rr=Rr==null?yt:Math.pow(yt,Rr),new wt(this.r*Rr,this.g*Rr,this.b*Rr,this.opacity)},darker:function(Rr){return Rr=Rr==null?Tt:Math.pow(Tt,Rr),new wt(this.r*Rr,this.g*Rr,this.b*Rr,this.opacity)},rgb:function(){return this},clamp:function(){return new wt(Pt(this.r),Pt(this.g),Pt(this.b),Ot(this.opacity))},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ct,formatHex:ct,formatHex8:It,formatRgb:At,toString:At}));function ct(){return"#".concat(zt(this.r)).concat(zt(this.g)).concat(zt(this.b))}function It(){return"#".concat(zt(this.r)).concat(zt(this.g)).concat(zt(this.b)).concat(zt((isNaN(this.opacity)?1:this.opacity)*255))}function At(){var Er=Ot(this.opacity);return"".concat(Er===1?"rgb(":"rgba(").concat(Pt(this.r),", ").concat(Pt(this.g),", ").concat(Pt(this.b)).concat(Er===1?")":", ".concat(Er,")"))}function Ot(Er){return isNaN(Er)?1:Math.max(0,Math.min(1,Er))}function Pt(Er){return Math.max(0,Math.min(255,Math.round(Er)||0))}function zt(Er){return Er=Pt(Er),(Er<16?"0":"")+Er.toString(16)}function Dt(Er,Rr,zr,Or){return Or<=0?Er=Rr=zr=NaN:zr<=0||zr>=1?Er=Rr=NaN:Rr<=0&&(Er=NaN),new Ut(Er,Rr,zr,Or)}function Nt(Er){if(Er instanceof Ut)return new Ut(Er.h,Er.s,Er.l,Er.opacity);if(Er instanceof et||(Er=St(Er)),!Er)return new Ut;if(Er instanceof Ut)return Er;Er=Er.rgb();var Rr=Er.r/255,zr=Er.g/255,Or=Er.b/255,kr=Math.min(Rr,zr,Or),Nr=Math.max(Rr,zr,Or),Qr=NaN,sn=Nr-kr,un=(Nr+kr)/2;return sn?(Rr===Nr?Qr=(zr-Or)/sn+(zr0&&un<1?0:Qr,new Ut(Qr,sn,un,Er.opacity)}function $t(Er,Rr,zr,Or){return arguments.length===1?Nt(Er):new Ut(Er,Rr,zr,Or??1)}function Ut(Er,Rr,zr,Or){this.h=+Er,this.s=+Rr,this.l=+zr,this.opacity=+Or}it(Ut,$t,xt(et,{brighter:function(Rr){return Rr=Rr==null?yt:Math.pow(yt,Rr),new Ut(this.h,this.s,this.l*Rr,this.opacity)},darker:function(Rr){return Rr=Rr==null?Tt:Math.pow(Tt,Rr),new Ut(this.h,this.s,this.l*Rr,this.opacity)},rgb:function(){var Rr=this.h%360+(this.h<0)*360,zr=isNaN(Rr)||isNaN(this.s)?0:this.s,Or=this.l,kr=Or+(Or<.5?Or:1-Or)*zr,Nr=2*Or-kr;return new wt(Xt(Rr>=240?Rr-240:Rr+120,Nr,kr),Xt(Rr,Nr,kr),Xt(Rr<120?Rr+240:Rr-120,Nr,kr),this.opacity)},clamp:function(){return new Ut(Ht(this.h),Vt(this.s),Vt(this.l),Ot(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var Rr=Ot(this.opacity);return"".concat(Rr===1?"hsl(":"hsla(").concat(Ht(this.h),", ").concat(Vt(this.s)*100,"%, ").concat(Vt(this.l)*100,"%").concat(Rr===1?")":", ".concat(Rr,")"))}}));function Ht(Er){return Er=(Er||0)%360,Er<0?Er+360:Er}function Vt(Er){return Math.max(0,Math.min(1,Er||0))}function Xt(Er,Rr,zr){return(Er<60?Rr+(zr-Rr)*Er/60:Er<180?zr:Er<240?Rr+(zr-Rr)*(240-Er)/60:Rr)*255}var qt=function(Er){return function(){return Er}};function er(Er,Rr){return function(zr){return Er+zr*Rr}}function lr(Er,Rr,zr){return Er=Math.pow(Er,zr),Rr=Math.pow(Rr,zr)-Er,zr=1/zr,function(Or){return Math.pow(Er+Or*Rr,zr)}}function Jt(Er){return(Er=+Er)==1?Yt:function(Rr,zr){return zr-Rr?lr(Rr,zr,Er):qt(isNaN(Rr)?zr:Rr)}}function Yt(Er,Rr){var zr=Rr-Er;return zr?er(Er,zr):qt(isNaN(Er)?Rr:Er)}var rr=function Er(Rr){var zr=Jt(Rr);function Or(kr,Nr){var Qr=zr((kr=kt(kr)).r,(Nr=kt(Nr)).r),sn=zr(kr.g,Nr.g),un=zr(kr.b,Nr.b),en=Yt(kr.opacity,Nr.opacity);return function(Xr){return kr.r=Qr(Xr),kr.g=sn(Xr),kr.b=un(Xr),kr.opacity=en(Xr),kr+""}}return Or.gamma=Er,Or}(1);function jt(Er,Rr){var zr=Rr?Rr.length:0,Or=Er?Math.min(zr,Er.length):0,kr=new Array(Or),Nr=new Array(zr),Qr;for(Qr=0;Qrzr&&(Nr=Rr.slice(zr,Nr),sn[Qr]?sn[Qr]+=Nr:sn[++Qr]=Nr),(Or=Or[0])===(kr=kr[0])?sn[Qr]?sn[Qr]+=kr:sn[++Qr]=kr:(sn[++Qr]=null,un.push({i:Qr,x:sr(Or,kr)})),zr=tr.lastIndex;return zr{switch(i.type){case"TOGGLE_CHAT_HISTORY":return{...a,isChatHistoryOpen:!a.isChatHistoryOpen};case"UPDATE_CURRENT_CHAT":return{...a,currentChat:i.payload};case"UPDATE_CHAT_HISTORY_LOADING_STATE":return{...a,chatHistoryLoadingState:i.payload};case"UPDATE_CHAT_HISTORY":if(!a.chatHistory||!a.currentChat)return a;const _e=a.chatHistory.findIndex(Ct=>Ct.id===i.payload.id);if(_e!==-1){const Ct=[...a.chatHistory];return Ct[_e]=a.currentChat,{...a,chatHistory:Ct}}else return{...a,chatHistory:[...a.chatHistory,i.payload]};case"UPDATE_CHAT_TITLE":if(!a.chatHistory)return{...a,chatHistory:[]};const pt=a.chatHistory.map(Ct=>{var Rt;return Ct.id===i.payload.id?(((Rt=a.currentChat)==null?void 0:Rt.id)===i.payload.id&&(a.currentChat.title=i.payload.title),{...Ct,title:i.payload.title}):Ct});return{...a,chatHistory:pt};case"DELETE_CHAT_ENTRY":if(!a.chatHistory)return{...a,chatHistory:[]};const Lt=a.chatHistory.filter(Ct=>Ct.id!==i.payload);return a.currentChat=null,{...a,chatHistory:Lt};case"DELETE_CHAT_HISTORY":return{...a,chatHistory:[],filteredChatHistory:[],currentChat:null};case"DELETE_CURRENT_CHAT_MESSAGES":if(!a.currentChat||!a.chatHistory)return a;const Gt={...a.currentChat,messages:[]};return{...a,currentChat:Gt};case"FETCH_CHAT_HISTORY":return{...a,chatHistory:i.payload};case"SET_COSMOSDB_STATUS":return{...a,isCosmosDBAvailable:i.payload};case"FETCH_FRONTEND_SETTINGS":return{...a,isLoading:!1,frontendSettings:i.payload};case"SET_FEEDBACK_STATE":return{...a,feedbackState:{...a.feedbackState,[i.payload.answerId]:i.payload.feedback}};default:return a}},initialState={isChatHistoryOpen:!1,chatHistoryLoadingState:ChatHistoryLoadingState.Loading,chatHistory:null,filteredChatHistory:null,currentChat:null,isCosmosDBAvailable:{cosmosDB:!1,status:CosmosDBStatus.NotConfigured},frontendSettings:null,feedbackState:{},isLoading:!0},AppStateContext=reactExports.createContext(void 0),AppStateProvider=({children:a})=>{const[i,_e]=reactExports.useReducer(appStateReducer,initialState);return reactExports.useEffect(()=>{const pt=async(Gt=0)=>await historyList(Gt).then(Rt=>(_e(Rt?{type:"FETCH_CHAT_HISTORY",payload:Rt}:{type:"FETCH_CHAT_HISTORY",payload:null}),Rt)).catch(Rt=>(_e({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:ChatHistoryLoadingState.Fail}),_e({type:"FETCH_CHAT_HISTORY",payload:null}),console.error("There was an issue fetching your data."),null));(async()=>{_e({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:ChatHistoryLoadingState.Loading}),historyEnsure().then(Gt=>{Gt!=null&&Gt.cosmosDB?pt().then(Ct=>{Ct?(_e({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:ChatHistoryLoadingState.Success}),_e({type:"SET_COSMOSDB_STATUS",payload:Gt})):(_e({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:ChatHistoryLoadingState.Fail}),_e({type:"SET_COSMOSDB_STATUS",payload:{cosmosDB:!1,status:CosmosDBStatus.NotWorking}}))}).catch(Ct=>{_e({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:ChatHistoryLoadingState.Fail}),_e({type:"SET_COSMOSDB_STATUS",payload:{cosmosDB:!1,status:CosmosDBStatus.NotWorking}})}):(_e({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:ChatHistoryLoadingState.Fail}),_e({type:"SET_COSMOSDB_STATUS",payload:Gt}))}).catch(Gt=>{_e({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:ChatHistoryLoadingState.Fail}),_e({type:"SET_COSMOSDB_STATUS",payload:{cosmosDB:!1,status:CosmosDBStatus.NotConfigured}})})})()},[]),reactExports.useEffect(()=>{(async()=>{frontendSettings().then(Lt=>{_e({type:"FETCH_FRONTEND_SETTINGS",payload:Lt})}).catch(Lt=>{console.error("There was an issue fetching your data.")})})()},[]),jsx(AppStateContext.Provider,{value:{state:i,dispatch:_e},children:a})},enumerateCitations=a=>{const i=new Map;for(const _e of a){const{filepath:pt}=_e;let Lt=1;i.has(pt)&&(Lt=i.get(pt)+1),i.set(pt,Lt),_e.part_index=Lt}return a};function parseAnswer(a){let i=a.answer;const _e=i.match(/\[(doc\d\d?\d?)]/g),pt=4;let Lt=[],Gt=0;return _e==null||_e.forEach(Ct=>{const Rt=Ct.slice(pt,Ct.length-1),o=lodashExports.cloneDeep(a.citations[Number(Rt)-1]);!Lt.find(it=>it.id===Rt)&&o&&(i=i.replaceAll(Ct,` ^${++Gt}^ `),o.id=Rt,o.reindex_id=Gt.toString(),Lt.push(o))}),Lt=enumerateCitations(Lt),{citations:Lt,markdownFormatText:i,plotly_data:a.plotly_data}}const answerContainer="_answerContainer_1qm4u_1",answerText="_answerText_1qm4u_14",answerHeader="_answerHeader_1qm4u_31",answerFooter="_answerFooter_1qm4u_35",answerDisclaimerContainer="_answerDisclaimerContainer_1qm4u_44",answerDisclaimer="_answerDisclaimer_1qm4u_44",citationWrapper="_citationWrapper_1qm4u_64",citationContainer="_citationContainer_1qm4u_72",citation="_citation_1qm4u_64",accordionIcon="_accordionIcon_1qm4u_122",accordionTitle="_accordionTitle_1qm4u_137",clickableSup="_clickableSup_1qm4u_153",styles$4={answerContainer,answerText,answerHeader,answerFooter,answerDisclaimerContainer,answerDisclaimer,citationWrapper,citationContainer,citation,accordionIcon,accordionTitle,clickableSup},Answer=({answer:a,onCitationClicked:i,onExectResultClicked:_e})=>{var Mt,Et,kt,wt;const pt=ct=>{if(ct.message_id!=null&&ct.feedback!=null)return ct.feedback.split(",").length>1?Feedback.Negative:Object.values(Feedback).includes(ct.feedback)?ct.feedback:Feedback.Neutral},[Lt,{toggle:Gt}]=useBoolean(!1),Ct=50,Rt=reactExports.useMemo(()=>parseAnswer(a),[a]),[o,it]=reactExports.useState(Lt),[xt,et]=reactExports.useState(pt(a)),[Tt,yt]=reactExports.useState(!1),[ut,ht]=reactExports.useState(!1),[j,_]=reactExports.useState([]),rt=reactExports.useContext(AppStateContext),tt=((Mt=rt==null?void 0:rt.state.frontendSettings)==null?void 0:Mt.feedback_enabled)&&((Et=rt==null?void 0:rt.state.isCosmosDBAvailable)==null?void 0:Et.cosmosDB),st=(kt=rt==null?void 0:rt.state.frontendSettings)==null?void 0:kt.sanitize_answer,ot=()=>{it(!o),Gt()};reactExports.useEffect(()=>{it(Lt)},[Lt]),reactExports.useEffect(()=>{if(a.message_id==null)return;let ct;rt!=null&&rt.state.feedbackState&&(rt!=null&&rt.state.feedbackState[a.message_id])?ct=rt==null?void 0:rt.state.feedbackState[a.message_id]:ct=pt(a),et(ct)},[rt==null?void 0:rt.state.feedbackState,xt,a.message_id]);const nt=(ct,It,At=!1)=>{let Ot="";if(ct.filepath){const Pt=ct.part_index??(ct.chunk_id?parseInt(ct.chunk_id)+1:"");if(At&&ct.filepath.length>Ct){const zt=ct.filepath.length;Ot=`${ct.filepath.substring(0,20)}...${ct.filepath.substring(zt-20)} - Part ${Pt}`}else Ot=`${ct.filepath} - Part ${Pt}`}else ct.filepath&&ct.reindex_id?Ot=`${ct.filepath} - Part ${ct.reindex_id}`:Ot=`Citation ${It}`;return Ot},vt=async()=>{if(a.message_id==null)return;let ct=xt;xt==Feedback.Positive?ct=Feedback.Neutral:ct=Feedback.Positive,rt==null||rt.dispatch({type:"SET_FEEDBACK_STATE",payload:{answerId:a.message_id,feedback:ct}}),et(ct),await historyMessageFeedback(a.message_id,ct)},dt=async()=>{if(a.message_id==null)return;let ct=xt;xt===void 0||xt===Feedback.Neutral||xt===Feedback.Positive?(ct=Feedback.Negative,et(ct),yt(!0)):(ct=Feedback.Neutral,et(ct),await historyMessageFeedback(a.message_id,Feedback.Neutral)),rt==null||rt.dispatch({type:"SET_FEEDBACK_STATE",payload:{answerId:a.message_id,feedback:ct}})},bt=(ct,It)=>{var Pt;if(a.message_id==null)return;const At=(Pt=ct==null?void 0:ct.target)==null?void 0:Pt.id;let Ot=j.slice();It?Ot.push(At):Ot=Ot.filter(zt=>zt!==At),_(Ot)},ft=async()=>{a.message_id!=null&&(await historyMessageFeedback(a.message_id,j.join(",")),at())},at=()=>{yt(!1),ht(!1),_([])},mt=()=>jsxs(Fragment,{children:[jsx("div",{children:"Why wasn't this response helpful?"}),jsxs(Stack,{tokens:{childrenGap:4},children:[jsx(Checkbox,{label:"Citations are missing",id:Feedback.MissingCitation,defaultChecked:j.includes(Feedback.MissingCitation),onChange:bt}),jsx(Checkbox,{label:"Citations are wrong",id:Feedback.WrongCitation,defaultChecked:j.includes(Feedback.WrongCitation),onChange:bt}),jsx(Checkbox,{label:"The response is not from my data",id:Feedback.OutOfScope,defaultChecked:j.includes(Feedback.OutOfScope),onChange:bt}),jsx(Checkbox,{label:"Inaccurate or irrelevant",id:Feedback.InaccurateOrIrrelevant,defaultChecked:j.includes(Feedback.InaccurateOrIrrelevant),onChange:bt}),jsx(Checkbox,{label:"Other",id:Feedback.OtherUnhelpful,defaultChecked:j.includes(Feedback.OtherUnhelpful),onChange:bt})]}),jsx("div",{onClick:()=>ht(!0),style:{color:"#115EA3",cursor:"pointer"},children:"Report inappropriate content"})]}),St=()=>jsxs(Fragment,{children:[jsxs("div",{children:["The content is ",jsx("span",{style:{color:"red"},children:"*"})]}),jsxs(Stack,{tokens:{childrenGap:4},children:[jsx(Checkbox,{label:"Hate speech, stereotyping, demeaning",id:Feedback.HateSpeech,defaultChecked:j.includes(Feedback.HateSpeech),onChange:bt}),jsx(Checkbox,{label:"Violent: glorification of violence, self-harm",id:Feedback.Violent,defaultChecked:j.includes(Feedback.Violent),onChange:bt}),jsx(Checkbox,{label:"Sexual: explicit content, grooming",id:Feedback.Sexual,defaultChecked:j.includes(Feedback.Sexual),onChange:bt}),jsx(Checkbox,{label:"Manipulative: devious, emotional, pushy, bullying",defaultChecked:j.includes(Feedback.Manipulative),id:Feedback.Manipulative,onChange:bt}),jsx(Checkbox,{label:"Other",id:Feedback.OtherHarmful,defaultChecked:j.includes(Feedback.OtherHarmful),onChange:bt})]})]}),_t={code({node:ct,...It}){let At;if(It.className){const Pt=It.className.match(/language-(\w+)/);At=Pt?Pt[1]:void 0}const Ot=ct.children[0].value??"";return jsx(SyntaxHighlighter,{style:nord,language:At,PreTag:"div",...It,children:Ot})}};return jsxs(Fragment,{children:[jsxs(Stack,{className:styles$4.answerContainer,tabIndex:0,children:[jsx(Stack.Item,{children:jsxs(Stack,{horizontal:!0,grow:!0,children:[jsx(Stack.Item,{grow:!0,children:jsx(ReactMarkdown,{linkTarget:"_blank",remarkPlugins:[remarkGfm,supersub],children:st?purify.sanitize(Rt.markdownFormatText,{ALLOWED_TAGS:XSSAllowTags,ALLOWED_ATTR:XSSAllowAttributes}):Rt.markdownFormatText,className:styles$4.answerText,components:_t})}),jsx(Stack.Item,{className:styles$4.answerHeader,children:tt&&a.message_id!==void 0&&jsxs(Stack,{horizontal:!0,horizontalAlign:"space-between",children:[jsx(ThumbLike20Filled,{"aria-hidden":"false","aria-label":"Like this response",onClick:()=>vt(),style:xt===Feedback.Positive||(rt==null?void 0:rt.state.feedbackState[a.message_id])===Feedback.Positive?{color:"darkgreen",cursor:"pointer"}:{color:"slategray",cursor:"pointer"}}),jsx(ThumbDislike20Filled,{"aria-hidden":"false","aria-label":"Dislike this response",onClick:()=>dt(),style:xt!==Feedback.Positive&&xt!==Feedback.Neutral&&xt!==void 0?{color:"darkred",cursor:"pointer"}:{color:"slategray",cursor:"pointer"}})]})})]})}),Rt.plotly_data!==null&&jsx(Stack,{className:styles$4.answerContainer,children:jsx(Stack.Item,{grow:!0,children:jsx(Plot,{data:Rt.plotly_data.data,layout:Rt.plotly_data.layout})})}),jsxs(Stack,{horizontal:!0,className:styles$4.answerFooter,children:[!!Rt.citations.length&&jsx(Stack.Item,{onKeyDown:ct=>ct.key==="Enter"||ct.key===" "?Gt():null,children:jsx(Stack,{style:{width:"100%"},children:jsxs(Stack,{horizontal:!0,horizontalAlign:"start",verticalAlign:"center",children:[jsx(Text,{className:styles$4.accordionTitle,onClick:Gt,"aria-label":"Open references",tabIndex:0,role:"button",children:jsx("span",{children:Rt.citations.length>1?Rt.citations.length+" references":"1 reference"})}),jsx(FontIcon,{className:styles$4.accordionIcon,onClick:ot,iconName:o?"ChevronDown":"ChevronRight"})]})})}),jsx(Stack.Item,{className:styles$4.answerDisclaimerContainer,children:jsx("span",{className:styles$4.answerDisclaimer,children:"AI-generated content may be incorrect"})}),!!((wt=a.exec_results)!=null&&wt.length)&&jsx(Stack.Item,{onKeyDown:ct=>ct.key==="Enter"||ct.key===" "?Gt():null,children:jsx(Stack,{style:{width:"100%"},children:jsxs(Stack,{horizontal:!0,horizontalAlign:"start",verticalAlign:"center",children:[jsx(Text,{className:styles$4.accordionTitle,onClick:()=>_e(),"aria-label":"Open Intents",tabIndex:0,role:"button",children:jsx("span",{children:"Show Intents"})}),jsx(FontIcon,{className:styles$4.accordionIcon,onClick:ot,iconName:"ChevronRight"})]})})})]}),o&&jsx("div",{className:styles$4.citationWrapper,children:Rt.citations.map((ct,It)=>jsxs("span",{title:nt(ct,++It),tabIndex:0,role:"link",onClick:()=>i(ct),onKeyDown:At=>At.key==="Enter"||At.key===" "?i(ct):null,className:styles$4.citationContainer,"aria-label":nt(ct,It),children:[jsx("div",{className:styles$4.citation,children:It}),nt(ct,It,!0)]},It))})]}),jsx(Dialog,{onDismiss:()=>{at(),et(Feedback.Neutral)},hidden:!Tt,styles:{main:[{selectors:{["@media (min-width: 480px)"]:{maxWidth:"600px",background:"#FFFFFF",boxShadow:"0px 14px 28.8px rgba(0, 0, 0, 0.24), 0px 0px 8px rgba(0, 0, 0, 0.2)",borderRadius:"8px",maxHeight:"600px",minHeight:"100px"}}}]},dialogContentProps:{title:"Submit Feedback",showCloseButton:!0},children:jsxs(Stack,{tokens:{childrenGap:4},children:[jsx("div",{children:"Your feedback will improve this experience."}),ut?jsx(St,{}):jsx(mt,{}),jsx("div",{children:"By pressing submit, your feedback will be visible to the application owner."}),jsx(DefaultButton,{disabled:j.length<1,onClick:ft,children:"Submit"})]})})]})};var dist$1={},cjs$3={},pdfjs$1={};function commonjsRequire(a){throw new Error('Could not dynamically require "'+a+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pdfExports={},pdf={get exports(){return pdfExports},set exports(a){pdfExports=a}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$5=getAugmentedNamespace(__viteBrowserExternal$1);(function(module,exports){(function(i,_e){module.exports=i.pdfjsLib=_e()})(globalThis,()=>(()=>{var __webpack_modules__=[,(a,i)=>{var zr;Object.defineProperty(i,"__esModule",{value:!0}),i.VerbosityLevel=i.Util=i.UnknownErrorException=i.UnexpectedResponseException=i.TextRenderingMode=i.RenderingIntentFlag=i.PromiseCapability=i.PermissionFlag=i.PasswordResponses=i.PasswordException=i.PageActionEventType=i.OPS=i.MissingPDFException=i.MAX_IMAGE_SIZE_TO_CACHE=i.LINE_FACTOR=i.LINE_DESCENT_FACTOR=i.InvalidPDFException=i.ImageKind=i.IDENTITY_MATRIX=i.FormatError=i.FeatureTest=i.FONT_IDENTITY_MATRIX=i.DocumentActionEventType=i.CMapCompressionType=i.BaseException=i.BASELINE_FACTOR=i.AnnotationType=i.AnnotationReplyType=i.AnnotationPrefix=i.AnnotationMode=i.AnnotationFlag=i.AnnotationFieldFlag=i.AnnotationEditorType=i.AnnotationEditorPrefix=i.AnnotationEditorParamsType=i.AnnotationBorderStyleType=i.AnnotationActionEventType=i.AbortException=void 0,i.assert=ct,i.bytesToString=Xt,i.createValidAbsoluteUrl=At,i.getModificationDate=Ar,i.getUuid=Er,i.getVerbosityLevel=Mt,i.info=Et,i.isArrayBuffer=cr,i.isArrayEqual=mr,i.isNodeJS=void 0,i.normalizeUnicode=_r,i.objectFromMap=Jt,i.objectSize=lr,i.setVerbosityLevel=_t,i.shadow=Ot,i.string32=er,i.stringToBytes=qt,i.stringToPDFString=Kt,i.stringToUTF8String=or,i.unreachable=wt,i.utf8StringToString=tr,i.warn=kt;const _e=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser");i.isNodeJS=_e;const pt=[1,0,0,1,0,0];i.IDENTITY_MATRIX=pt;const Lt=[.001,0,0,.001,0,0];i.FONT_IDENTITY_MATRIX=Lt;const Gt=1e7;i.MAX_IMAGE_SIZE_TO_CACHE=Gt;const Ct=1.35;i.LINE_FACTOR=Ct;const Rt=.35;i.LINE_DESCENT_FACTOR=Rt;const o=Rt/Ct;i.BASELINE_FACTOR=o;const it={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256};i.RenderingIntentFlag=it;const xt={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3};i.AnnotationMode=xt;const et="pdfjs_internal_editor_";i.AnnotationEditorPrefix=et;const Tt={DISABLE:-1,NONE:0,FREETEXT:3,STAMP:13,INK:15};i.AnnotationEditorType=Tt;const yt={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23};i.AnnotationEditorParamsType=yt;const ut={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};i.PermissionFlag=ut;const ht={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};i.TextRenderingMode=ht;const j={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};i.ImageKind=j;const _={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};i.AnnotationType=_;const rt={GROUP:"Group",REPLY:"R"};i.AnnotationReplyType=rt;const tt={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};i.AnnotationFlag=tt;const st={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};i.AnnotationFieldFlag=st;const ot={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};i.AnnotationBorderStyleType=ot;const nt={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"};i.AnnotationActionEventType=nt;const vt={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"};i.DocumentActionEventType=vt;const dt={O:"PageOpen",C:"PageClose"};i.PageActionEventType=dt;const bt={ERRORS:0,WARNINGS:1,INFOS:5};i.VerbosityLevel=bt;const ft={NONE:0,BINARY:1};i.CMapCompressionType=ft;const at={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};i.OPS=at;const mt={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};i.PasswordResponses=mt;let St=bt.WARNINGS;function _t(Or){Number.isInteger(Or)&&(St=Or)}function Mt(){return St}function Et(Or){St>=bt.INFOS&&console.log(`Info: ${Or}`)}function kt(Or){St>=bt.WARNINGS&&console.log(`Warning: ${Or}`)}function wt(Or){throw new Error(Or)}function ct(Or,kr){Or||wt(kr)}function It(Or){switch(Or==null?void 0:Or.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function At(Or,kr=null,Nr=null){if(!Or)return null;try{if(Nr&&typeof Or=="string"){if(Nr.addDefaultProtocol&&Or.startsWith("www.")){const sn=Or.match(/\./g);(sn==null?void 0:sn.length)>=2&&(Or=`http://${Or}`)}if(Nr.tryConvertEncoding)try{Or=or(Or)}catch{}}const Qr=kr?new URL(Or,kr):new URL(Or);if(It(Qr))return Qr}catch{}return null}function Ot(Or,kr,Nr,Qr=!1){return Object.defineProperty(Or,kr,{value:Nr,enumerable:!Qr,configurable:!0,writable:!1}),Nr}const Pt=function(){function kr(Nr,Qr){this.constructor===kr&&wt("Cannot initialize BaseException."),this.message=Nr,this.name=Qr}return kr.prototype=new Error,kr.constructor=kr,kr}();i.BaseException=Pt;class zt extends Pt{constructor(kr,Nr){super(kr,"PasswordException"),this.code=Nr}}i.PasswordException=zt;class Dt extends Pt{constructor(kr,Nr){super(kr,"UnknownErrorException"),this.details=Nr}}i.UnknownErrorException=Dt;class Nt extends Pt{constructor(kr){super(kr,"InvalidPDFException")}}i.InvalidPDFException=Nt;class $t extends Pt{constructor(kr){super(kr,"MissingPDFException")}}i.MissingPDFException=$t;class Ut extends Pt{constructor(kr,Nr){super(kr,"UnexpectedResponseException"),this.status=Nr}}i.UnexpectedResponseException=Ut;class Ht extends Pt{constructor(kr){super(kr,"FormatError")}}i.FormatError=Ht;class Vt extends Pt{constructor(kr){super(kr,"AbortException")}}i.AbortException=Vt;function Xt(Or){(typeof Or!="object"||(Or==null?void 0:Or.length)===void 0)&&wt("Invalid argument for bytesToString");const kr=Or.length,Nr=8192;if(kr>24&255,Or>>16&255,Or>>8&255,Or&255)}function lr(Or){return Object.keys(Or).length}function Jt(Or){const kr=Object.create(null);for(const[Nr,Qr]of Or)kr[Nr]=Qr;return kr}function Yt(){const Or=new Uint8Array(4);return Or[0]=1,new Uint32Array(Or.buffer,0,1)[0]===1}function rr(){try{return new Function(""),!0}catch{return!1}}class jt{static get isLittleEndian(){return Ot(this,"isLittleEndian",Yt())}static get isEvalSupported(){return Ot(this,"isEvalSupported",rr())}static get isOffscreenCanvasSupported(){return Ot(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get platform(){return typeof navigator>"u"?Ot(this,"platform",{isWin:!1,isMac:!1}):Ot(this,"platform",{isWin:navigator.platform.includes("Win"),isMac:navigator.platform.includes("Mac")})}static get isCSSRoundSupported(){var kr,Nr;return Ot(this,"isCSSRoundSupported",(Nr=(kr=globalThis.CSS)==null?void 0:kr.supports)==null?void 0:Nr.call(kr,"width: round(1.5px, 1px)"))}}i.FeatureTest=jt;const ar=[...Array(256).keys()].map(Or=>Or.toString(16).padStart(2,"0"));class sr{static makeHexColor(kr,Nr,Qr){return`#${ar[kr]}${ar[Nr]}${ar[Qr]}`}static scaleMinMax(kr,Nr){let Qr;kr[0]?(kr[0]<0&&(Qr=Nr[0],Nr[0]=Nr[1],Nr[1]=Qr),Nr[0]*=kr[0],Nr[1]*=kr[0],kr[3]<0&&(Qr=Nr[2],Nr[2]=Nr[3],Nr[3]=Qr),Nr[2]*=kr[3],Nr[3]*=kr[3]):(Qr=Nr[0],Nr[0]=Nr[2],Nr[2]=Qr,Qr=Nr[1],Nr[1]=Nr[3],Nr[3]=Qr,kr[1]<0&&(Qr=Nr[2],Nr[2]=Nr[3],Nr[3]=Qr),Nr[2]*=kr[1],Nr[3]*=kr[1],kr[2]<0&&(Qr=Nr[0],Nr[0]=Nr[1],Nr[1]=Qr),Nr[0]*=kr[2],Nr[1]*=kr[2]),Nr[0]+=kr[4],Nr[1]+=kr[4],Nr[2]+=kr[5],Nr[3]+=kr[5]}static transform(kr,Nr){return[kr[0]*Nr[0]+kr[2]*Nr[1],kr[1]*Nr[0]+kr[3]*Nr[1],kr[0]*Nr[2]+kr[2]*Nr[3],kr[1]*Nr[2]+kr[3]*Nr[3],kr[0]*Nr[4]+kr[2]*Nr[5]+kr[4],kr[1]*Nr[4]+kr[3]*Nr[5]+kr[5]]}static applyTransform(kr,Nr){const Qr=kr[0]*Nr[0]+kr[1]*Nr[2]+Nr[4],sn=kr[0]*Nr[1]+kr[1]*Nr[3]+Nr[5];return[Qr,sn]}static applyInverseTransform(kr,Nr){const Qr=Nr[0]*Nr[3]-Nr[1]*Nr[2],sn=(kr[0]*Nr[3]-kr[1]*Nr[2]+Nr[2]*Nr[5]-Nr[4]*Nr[3])/Qr,un=(-kr[0]*Nr[1]+kr[1]*Nr[0]+Nr[4]*Nr[1]-Nr[5]*Nr[0])/Qr;return[sn,un]}static getAxialAlignedBoundingBox(kr,Nr){const Qr=this.applyTransform(kr,Nr),sn=this.applyTransform(kr.slice(2,4),Nr),un=this.applyTransform([kr[0],kr[3]],Nr),en=this.applyTransform([kr[2],kr[1]],Nr);return[Math.min(Qr[0],sn[0],un[0],en[0]),Math.min(Qr[1],sn[1],un[1],en[1]),Math.max(Qr[0],sn[0],un[0],en[0]),Math.max(Qr[1],sn[1],un[1],en[1])]}static inverseTransform(kr){const Nr=kr[0]*kr[3]-kr[1]*kr[2];return[kr[3]/Nr,-kr[1]/Nr,-kr[2]/Nr,kr[0]/Nr,(kr[2]*kr[5]-kr[4]*kr[3])/Nr,(kr[4]*kr[1]-kr[5]*kr[0])/Nr]}static singularValueDecompose2dScale(kr){const Nr=[kr[0],kr[2],kr[1],kr[3]],Qr=kr[0]*Nr[0]+kr[1]*Nr[2],sn=kr[0]*Nr[1]+kr[1]*Nr[3],un=kr[2]*Nr[0]+kr[3]*Nr[2],en=kr[2]*Nr[1]+kr[3]*Nr[3],Xr=(Qr+en)/2,ln=Math.sqrt((Qr+en)**2-4*(Qr*en-un*sn))/2,mn=Xr+ln||1,pn=Xr-ln||1;return[Math.sqrt(mn),Math.sqrt(pn)]}static normalizeRect(kr){const Nr=kr.slice(0);return kr[0]>kr[2]&&(Nr[0]=kr[2],Nr[2]=kr[0]),kr[1]>kr[3]&&(Nr[1]=kr[3],Nr[3]=kr[1]),Nr}static intersect(kr,Nr){const Qr=Math.max(Math.min(kr[0],kr[2]),Math.min(Nr[0],Nr[2])),sn=Math.min(Math.max(kr[0],kr[2]),Math.max(Nr[0],Nr[2]));if(Qr>sn)return null;const un=Math.max(Math.min(kr[1],kr[3]),Math.min(Nr[1],Nr[3])),en=Math.min(Math.max(kr[1],kr[3]),Math.max(Nr[1],Nr[3]));return un>en?null:[Qr,un,sn,en]}static bezierBoundingBox(kr,Nr,Qr,sn,un,en,Xr,ln){const mn=[],pn=[[],[]];let Tn,Zr,Fr,Ur,Wr,Gr,wr,pr;for(let xr=0;xr<2;++xr){if(xr===0?(Zr=6*kr-12*Qr+6*un,Tn=-3*kr+9*Qr-9*un+3*Xr,Fr=3*Qr-3*kr):(Zr=6*Nr-12*sn+6*en,Tn=-3*Nr+9*sn-9*en+3*ln,Fr=3*sn-3*Nr),Math.abs(Tn)<1e-12){if(Math.abs(Zr)<1e-12)continue;Ur=-Fr/Zr,0="ï"){let Nr;if(Or[0]==="þ"&&Or[1]==="ÿ"?Nr="utf-16be":Or[0]==="ÿ"&&Or[1]==="þ"?Nr="utf-16le":Or[0]==="ï"&&Or[1]==="»"&&Or[2]==="¿"&&(Nr="utf-8"),Nr)try{const Qr=new TextDecoder(Nr,{fatal:!0}),sn=qt(Or);return Qr.decode(sn)}catch(Qr){kt(`stringToPDFString: "${Qr}".`)}}const kr=[];for(let Nr=0,Qr=Or.length;Nr{this.resolve=Qr=>{ks(this,zr,!0),kr(Qr)},this.reject=Qr=>{ks(this,zr,!0),Nr(Qr)}})}get settled(){return On(this,zr)}}zr=new WeakMap,i.PromiseCapability=br;let Ir=null,Tr=null;function _r(Or){return Ir||(Ir=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,Tr=new Map([["ſt","ſt"]])),Or.replaceAll(Ir,(kr,Nr,Qr)=>Nr?Nr.normalize("NFKC"):Tr.get(Qr))}function Er(){if(typeof crypto<"u"&&typeof(crypto==null?void 0:crypto.randomUUID)=="function")return crypto.randomUUID();const Or=new Uint8Array(32);if(typeof crypto<"u"&&typeof(crypto==null?void 0:crypto.getRandomValues)=="function")crypto.getRandomValues(Or);else for(let kr=0;kr<32;kr++)Or[kr]=Math.floor(Math.random()*255);return Xt(Or)}const Rr="pdfjs_internal_id_";i.AnnotationPrefix=Rr},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{var a,_e,pt,Lt,i2,Ct,KE,o,it,xt,et,Tt,yt,ut,ht,j,ZE,rt,tt,x_,ot,nt;Object.defineProperty(exports,"__esModule",{value:!0}),exports.RenderTask=exports.PDFWorkerUtil=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultFilterFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,Object.defineProperty(exports,"SVGGraphics",{enumerable:!0,get:function(){return _displaySvg.SVGGraphics}}),exports.build=void 0,exports.getDocument=getDocument,exports.version=void 0;var _util=__w_pdfjs_require__(1),_annotation_storage=__w_pdfjs_require__(3),_display_utils=__w_pdfjs_require__(6),_font_loader=__w_pdfjs_require__(9),_displayNode_utils=__w_pdfjs_require__(10),_canvas=__w_pdfjs_require__(11),_worker_options=__w_pdfjs_require__(14),_message_handler=__w_pdfjs_require__(15),_metadata=__w_pdfjs_require__(16),_optional_content_config=__w_pdfjs_require__(17),_transport_stream=__w_pdfjs_require__(18),_displayFetch_stream=__w_pdfjs_require__(19),_displayNetwork=__w_pdfjs_require__(22),_displayNode_stream=__w_pdfjs_require__(23),_displaySvg=__w_pdfjs_require__(24),_xfa_text=__w_pdfjs_require__(25);const DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,DELAYED_CLEANUP_TIMEOUT=5e3,DefaultCanvasFactory=_util.isNodeJS?_displayNode_utils.NodeCanvasFactory:_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;const DefaultCMapReaderFactory=_util.isNodeJS?_displayNode_utils.NodeCMapReaderFactory:_display_utils.DOMCMapReaderFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;const DefaultFilterFactory=_util.isNodeJS?_displayNode_utils.NodeFilterFactory:_display_utils.DOMFilterFactory;exports.DefaultFilterFactory=DefaultFilterFactory;const DefaultStandardFontDataFactory=_util.isNodeJS?_displayNode_utils.NodeStandardFontDataFactory:_display_utils.DOMStandardFontDataFactory;exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory;function getDocument(dt){if(typeof dt=="string"||dt instanceof URL?dt={url:dt}:(0,_util.isArrayBuffer)(dt)&&(dt={data:dt}),typeof dt!="object")throw new Error("Invalid parameter in getDocument, need parameter object.");if(!dt.url&&!dt.data&&!dt.range)throw new Error("Invalid parameter object: need either .data, .range or .url");const bt=new PDFDocumentLoadingTask,{docId:ft}=bt,at=dt.url?getUrlProp(dt.url):null,mt=dt.data?getDataProp(dt.data):null,St=dt.httpHeaders||null,_t=dt.withCredentials===!0,Mt=dt.password??null,Et=dt.range instanceof PDFDataRangeTransport?dt.range:null,kt=Number.isInteger(dt.rangeChunkSize)&&dt.rangeChunkSize>0?dt.rangeChunkSize:DEFAULT_RANGE_CHUNK_SIZE;let wt=dt.worker instanceof PDFWorker?dt.worker:null;const ct=dt.verbosity,It=typeof dt.docBaseUrl=="string"&&!(0,_display_utils.isDataScheme)(dt.docBaseUrl)?dt.docBaseUrl:null,At=typeof dt.cMapUrl=="string"?dt.cMapUrl:null,Ot=dt.cMapPacked!==!1,Pt=dt.CMapReaderFactory||DefaultCMapReaderFactory,zt=typeof dt.standardFontDataUrl=="string"?dt.standardFontDataUrl:null,Dt=dt.StandardFontDataFactory||DefaultStandardFontDataFactory,Nt=dt.stopAtErrors!==!0,$t=Number.isInteger(dt.maxImageSize)&&dt.maxImageSize>-1?dt.maxImageSize:-1,Ut=dt.isEvalSupported!==!1,Ht=typeof dt.isOffscreenCanvasSupported=="boolean"?dt.isOffscreenCanvasSupported:!_util.isNodeJS,Vt=Number.isInteger(dt.canvasMaxAreaInBytes)?dt.canvasMaxAreaInBytes:-1,Xt=typeof dt.disableFontFace=="boolean"?dt.disableFontFace:_util.isNodeJS,qt=dt.fontExtraProperties===!0,er=dt.enableXfa===!0,lr=dt.ownerDocument||globalThis.document,Jt=dt.disableRange===!0,Yt=dt.disableStream===!0,rr=dt.disableAutoFetch===!0,jt=dt.pdfBug===!0,ar=Et?Et.length:dt.length??NaN,sr=typeof dt.useSystemFonts=="boolean"?dt.useSystemFonts:!_util.isNodeJS&&!Xt,Zt=typeof dt.useWorkerFetch=="boolean"?dt.useWorkerFetch:Pt===_display_utils.DOMCMapReaderFactory&&Dt===_display_utils.DOMStandardFontDataFactory&&At&&zt&&(0,_display_utils.isValidFetchUrl)(At,document.baseURI)&&(0,_display_utils.isValidFetchUrl)(zt,document.baseURI),Kt=dt.canvasFactory||new DefaultCanvasFactory({ownerDocument:lr}),or=dt.filterFactory||new DefaultFilterFactory({docId:ft,ownerDocument:lr}),tr=null;(0,_util.setVerbosityLevel)(ct);const cr={canvasFactory:Kt,filterFactory:or};if(Zt||(cr.cMapReaderFactory=new Pt({baseUrl:At,isCompressed:Ot}),cr.standardFontDataFactory=new Dt({baseUrl:zt})),!wt){const br={verbosity:ct,port:_worker_options.GlobalWorkerOptions.workerPort};wt=br.port?PDFWorker.fromPort(br):new PDFWorker(br),bt._worker=wt}const mr={docId:ft,apiVersion:"3.11.174",data:mt,password:Mt,disableAutoFetch:rr,rangeChunkSize:kt,length:ar,docBaseUrl:It,enableXfa:er,evaluatorOptions:{maxImageSize:$t,disableFontFace:Xt,ignoreErrors:Nt,isEvalSupported:Ut,isOffscreenCanvasSupported:Ht,canvasMaxAreaInBytes:Vt,fontExtraProperties:qt,useSystemFonts:sr,cMapUrl:Zt?At:null,standardFontDataUrl:Zt?zt:null}},Ar={ignoreErrors:Nt,isEvalSupported:Ut,disableFontFace:Xt,fontExtraProperties:qt,enableXfa:er,ownerDocument:lr,disableAutoFetch:rr,pdfBug:jt,styleElement:tr};return wt.promise.then(function(){if(bt.destroyed)throw new Error("Loading aborted");const br=_fetchDocument(wt,mr),Ir=new Promise(function(Tr){let _r;Et?_r=new _transport_stream.PDFDataTransportStream({length:ar,initialData:Et.initialData,progressiveDone:Et.progressiveDone,contentDispositionFilename:Et.contentDispositionFilename,disableRange:Jt,disableStream:Yt},Et):mt||(_r=(Rr=>_util.isNodeJS?new _displayNode_stream.PDFNodeStream(Rr):(0,_display_utils.isValidFetchUrl)(Rr.url)?new _displayFetch_stream.PDFFetchStream(Rr):new _displayNetwork.PDFNetworkStream(Rr))({url:at,length:ar,httpHeaders:St,withCredentials:_t,rangeChunkSize:kt,disableRange:Jt,disableStream:Yt})),Tr(_r)});return Promise.all([br,Ir]).then(function([Tr,_r]){if(bt.destroyed)throw new Error("Loading aborted");const Er=new _message_handler.MessageHandler(ft,Tr,wt.port),Rr=new WorkerTransport(Er,bt,_r,Ar,cr);bt._transport=Rr,Er.send("Ready",null)})}).catch(bt._capability.reject),bt}async function _fetchDocument(dt,bt){if(dt.destroyed)throw new Error("Worker was destroyed");const ft=await dt.messageHandler.sendWithPromise("GetDocRequest",bt,bt.data?[bt.data.buffer]:null);if(dt.destroyed)throw new Error("Worker was destroyed");return ft}function getUrlProp(dt){if(dt instanceof URL)return dt.href;try{return new URL(dt,window.location).href}catch{if(_util.isNodeJS&&typeof dt=="string")return dt}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function getDataProp(dt){if(_util.isNodeJS&&typeof Buffer<"u"&&dt instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(dt instanceof Uint8Array&&dt.byteLength===dt.buffer.byteLength)return dt;if(typeof dt=="string")return(0,_util.stringToBytes)(dt);if(typeof dt=="object"&&!isNaN(dt==null?void 0:dt.length)||(0,_util.isArrayBuffer)(dt))return new Uint8Array(dt);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}const i=class{constructor(){this._capability=new _util.PromiseCapability,this._transport=null,this._worker=null,this.docId=`d${G2(i,a)._++}`,this.destroyed=!1,this.onPassword=null,this.onProgress=null}get promise(){return this._capability.promise}async destroy(){var bt,ft,at;this.destroyed=!0;try{(bt=this._worker)!=null&&bt.port&&(this._worker._pendingDestroy=!0),await((ft=this._transport)==null?void 0:ft.destroy())}catch(mt){throw(at=this._worker)!=null&&at.port&&delete this._worker._pendingDestroy,mt}this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}};let PDFDocumentLoadingTask=i;a=new WeakMap,Xo(PDFDocumentLoadingTask,a,0),exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;class PDFDataRangeTransport{constructor(bt,ft,at=!1,mt=null){this.length=bt,this.initialData=ft,this.progressiveDone=at,this.contentDispositionFilename=mt,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=new _util.PromiseCapability}addRangeListener(bt){this._rangeListeners.push(bt)}addProgressListener(bt){this._progressListeners.push(bt)}addProgressiveReadListener(bt){this._progressiveReadListeners.push(bt)}addProgressiveDoneListener(bt){this._progressiveDoneListeners.push(bt)}onDataRange(bt,ft){for(const at of this._rangeListeners)at(bt,ft)}onDataProgress(bt,ft){this._readyCapability.promise.then(()=>{for(const at of this._progressListeners)at(bt,ft)})}onDataProgressiveRead(bt){this._readyCapability.promise.then(()=>{for(const ft of this._progressiveReadListeners)ft(bt)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const bt of this._progressiveDoneListeners)bt()})}transportReady(){this._readyCapability.resolve()}requestDataRange(bt,ft){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(bt,ft){this._pdfInfo=bt,this._transport=ft,Object.defineProperty(this,"getJavaScript",{value:()=>((0,_display_utils.deprecated)("`PDFDocumentProxy.getJavaScript`, please use `PDFDocumentProxy.getJSActions` instead."),this.getJSActions().then(at=>{if(!at)return at;const mt=[];for(const St in at)mt.push(...at[St]);return mt}))})}get annotationStorage(){return this._transport.annotationStorage}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(bt){return this._transport.getPage(bt)}getPageIndex(bt){return this._transport.getPageIndex(bt)}getDestinations(){return this._transport.getDestinations()}getDestination(bt){return this._transport.getDestination(bt)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig(){return this._transport.getOptionalContentConfig()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(bt=!1){return this._transport.startCleanup(bt||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}exports.PDFDocumentProxy=PDFDocumentProxy;class PDFPageProxy{constructor(bt,ft,at,mt=!1){Xo(this,Lt);Xo(this,Ct);Xo(this,_e,null);Xo(this,pt,!1);this._pageIndex=bt,this._pageInfo=ft,this._transport=at,this._stats=mt?new _display_utils.StatTimer:null,this._pdfBug=mt,this.commonObjs=at.commonObjs,this.objs=new PDFObjects,this._maybeCleanupAfterRender=!1,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:bt,rotation:ft=this.rotate,offsetX:at=0,offsetY:mt=0,dontFlip:St=!1}={}){return new _display_utils.PageViewport({viewBox:this.view,scale:bt,rotation:ft,offsetX:at,offsetY:mt,dontFlip:St})}getAnnotations({intent:bt="display"}={}){const ft=this._transport.getRenderingIntent(bt);return this._transport.getAnnotations(this._pageIndex,ft.renderingIntent)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){var bt;return((bt=this._transport._htmlForXfa)==null?void 0:bt.children[this._pageIndex])||null}render({canvasContext:bt,viewport:ft,intent:at="display",annotationMode:mt=_util.AnnotationMode.ENABLE,transform:St=null,background:_t=null,optionalContentConfigPromise:Mt=null,annotationCanvasMap:Et=null,pageColors:kt=null,printAnnotationStorage:wt=null}){var Dt,Nt;(Dt=this._stats)==null||Dt.time("Overall");const ct=this._transport.getRenderingIntent(at,mt,wt);ks(this,pt,!1),hs(this,Ct,KE).call(this),Mt||(Mt=this._transport.getOptionalContentConfig());let It=this._intentStates.get(ct.cacheKey);It||(It=Object.create(null),this._intentStates.set(ct.cacheKey,It)),It.streamReaderCancelTimeout&&(clearTimeout(It.streamReaderCancelTimeout),It.streamReaderCancelTimeout=null);const At=!!(ct.renderingIntent&_util.RenderingIntentFlag.PRINT);It.displayReadyCapability||(It.displayReadyCapability=new _util.PromiseCapability,It.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},(Nt=this._stats)==null||Nt.time("Page Request"),this._pumpOperatorList(ct));const Ot=$t=>{var Ut,Ht;It.renderTasks.delete(Pt),(this._maybeCleanupAfterRender||At)&&ks(this,pt,!0),hs(this,Lt,i2).call(this,!At),$t?(Pt.capability.reject($t),this._abortOperatorList({intentState:It,reason:$t instanceof Error?$t:new Error($t)})):Pt.capability.resolve(),(Ut=this._stats)==null||Ut.timeEnd("Rendering"),(Ht=this._stats)==null||Ht.timeEnd("Overall")},Pt=new InternalRenderTask({callback:Ot,params:{canvasContext:bt,viewport:ft,transform:St,background:_t},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:Et,operatorList:It.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!At,pdfBug:this._pdfBug,pageColors:kt});(It.renderTasks||(It.renderTasks=new Set)).add(Pt);const zt=Pt.task;return Promise.all([It.displayReadyCapability.promise,Mt]).then(([$t,Ut])=>{var Ht;if(this.destroyed){Ot();return}(Ht=this._stats)==null||Ht.time("Rendering"),Pt.initializeGraphics({transparency:$t,optionalContentConfig:Ut}),Pt.operatorListChanged()}).catch(Ot),zt}getOperatorList({intent:bt="display",annotationMode:ft=_util.AnnotationMode.ENABLE,printAnnotationStorage:at=null}={}){var Et;function mt(){_t.operatorList.lastChunk&&(_t.opListReadCapability.resolve(_t.operatorList),_t.renderTasks.delete(Mt))}const St=this._transport.getRenderingIntent(bt,ft,at,!0);let _t=this._intentStates.get(St.cacheKey);_t||(_t=Object.create(null),this._intentStates.set(St.cacheKey,_t));let Mt;return _t.opListReadCapability||(Mt=Object.create(null),Mt.operatorListChanged=mt,_t.opListReadCapability=new _util.PromiseCapability,(_t.renderTasks||(_t.renderTasks=new Set)).add(Mt),_t.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},(Et=this._stats)==null||Et.time("Page Request"),this._pumpOperatorList(St)),_t.opListReadCapability.promise}streamTextContent({includeMarkedContent:bt=!1,disableNormalization:ft=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:bt===!0,disableNormalization:ft===!0},{highWaterMark:100,size(mt){return mt.items.length}})}getTextContent(bt={}){if(this._transport._htmlForXfa)return this.getXfa().then(at=>_xfa_text.XfaText.textContent(at));const ft=this.streamTextContent(bt);return new Promise(function(at,mt){function St(){_t.read().then(function({value:Et,done:kt}){if(kt){at(Mt);return}Object.assign(Mt.styles,Et.styles),Mt.items.push(...Et.items),St()},mt)}const _t=ft.getReader(),Mt={items:[],styles:Object.create(null)};St()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const bt=[];for(const ft of this._intentStates.values())if(this._abortOperatorList({intentState:ft,reason:new Error("Page was destroyed."),force:!0}),!ft.opListReadCapability)for(const at of ft.renderTasks)bt.push(at.completed),at.cancel();return this.objs.clear(),ks(this,pt,!1),hs(this,Ct,KE).call(this),Promise.all(bt)}cleanup(bt=!1){ks(this,pt,!0);const ft=hs(this,Lt,i2).call(this,!1);return bt&&ft&&this._stats&&(this._stats=new _display_utils.StatTimer),ft}_startRenderPage(bt,ft){var mt,St;const at=this._intentStates.get(ft);at&&((mt=this._stats)==null||mt.timeEnd("Page Request"),(St=at.displayReadyCapability)==null||St.resolve(bt))}_renderPageChunk(bt,ft){for(let at=0,mt=bt.length;at{Mt.read().then(({value:wt,done:ct})=>{if(ct){Et.streamReader=null;return}this._transport.destroyed||(this._renderPageChunk(wt,Et),kt())},wt=>{if(Et.streamReader=null,!this._transport.destroyed){if(Et.operatorList){Et.operatorList.lastChunk=!0;for(const ct of Et.renderTasks)ct.operatorListChanged();hs(this,Lt,i2).call(this,!0)}if(Et.displayReadyCapability)Et.displayReadyCapability.reject(wt);else if(Et.opListReadCapability)Et.opListReadCapability.reject(wt);else throw wt}})};kt()}_abortOperatorList({intentState:bt,reason:ft,force:at=!1}){if(bt.streamReader){if(bt.streamReaderCancelTimeout&&(clearTimeout(bt.streamReaderCancelTimeout),bt.streamReaderCancelTimeout=null),!at){if(bt.renderTasks.size>0)return;if(ft instanceof _display_utils.RenderingCancelledException){let mt=RENDERING_CANCELLED_TIMEOUT;ft.extraDelay>0&&ft.extraDelay<1e3&&(mt+=ft.extraDelay),bt.streamReaderCancelTimeout=setTimeout(()=>{bt.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:bt,reason:ft,force:!0})},mt);return}}if(bt.streamReader.cancel(new _util.AbortException(ft.message)).catch(()=>{}),bt.streamReader=null,!this._transport.destroyed){for(const[mt,St]of this._intentStates)if(St===bt){this._intentStates.delete(mt);break}this.cleanup()}}}get stats(){return this._stats}}_e=new WeakMap,pt=new WeakMap,Lt=new WeakSet,i2=function(bt=!1){if(hs(this,Ct,KE).call(this),!On(this,pt)||this.destroyed)return!1;if(bt)return ks(this,_e,setTimeout(()=>{ks(this,_e,null),hs(this,Lt,i2).call(this,!1)},DELAYED_CLEANUP_TIMEOUT)),!1;for(const{renderTasks:ft,operatorList:at}of this._intentStates.values())if(ft.size>0||!at.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),ks(this,pt,!1),!0},Ct=new WeakSet,KE=function(){On(this,_e)&&(clearTimeout(On(this,_e)),ks(this,_e,null))},exports.PDFPageProxy=PDFPageProxy;class LoopbackPort{constructor(){Xo(this,o,new Set);Xo(this,it,Promise.resolve())}postMessage(bt,ft){const at={data:structuredClone(bt,ft?{transfer:ft}:null)};On(this,it).then(()=>{for(const mt of On(this,o))mt.call(this,at)})}addEventListener(bt,ft){On(this,o).add(ft)}removeEventListener(bt,ft){On(this,o).delete(ft)}terminate(){On(this,o).clear()}}o=new WeakMap,it=new WeakMap,exports.LoopbackPort=LoopbackPort;const PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};exports.PDFWorkerUtil=PDFWorkerUtil;{if(_util.isNodeJS&&typeof commonjsRequire=="function")PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if(typeof document=="object"){const dt=(xt=document==null?void 0:document.currentScript)==null?void 0:xt.src;dt&&(PDFWorkerUtil.fallbackWorkerSrc=dt.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.isSameOrigin=function(dt,bt){let ft;try{if(ft=new URL(dt),!ft.origin||ft.origin==="null")return!1}catch{return!1}const at=new URL(bt,ft);return ft.origin===at.origin},PDFWorkerUtil.createCDNWrapper=function(dt){const bt=`importScripts("${dt}");`;return URL.createObjectURL(new Blob([bt]))}}const _PDFWorker=class{constructor({name:dt=null,port:bt=null,verbosity:ft=(0,_util.getVerbosityLevel)()}={}){var at;if(this.name=dt,this.destroyed=!1,this.verbosity=ft,this._readyCapability=new _util.PromiseCapability,this._port=null,this._webWorker=null,this._messageHandler=null,bt){if((at=On(_PDFWorker,et))!=null&&at.has(bt))throw new Error("Cannot use more than one PDFWorker per port.");(On(_PDFWorker,et)||ks(_PDFWorker,et,new WeakMap)).set(bt,this),this._initializeFromPort(bt);return}this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(dt){this._port=dt,this._messageHandler=new _message_handler.MessageHandler("main","worker",dt),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})}_initialize(){if(!PDFWorkerUtil.isWorkerDisabled&&!_PDFWorker._mainThreadWorkerMessageHandler){let{workerSrc:dt}=_PDFWorker;try{PDFWorkerUtil.isSameOrigin(window.location.href,dt)||(dt=PDFWorkerUtil.createCDNWrapper(new URL(dt,window.location).href));const bt=new Worker(dt),ft=new _message_handler.MessageHandler("main","worker",bt),at=()=>{bt.removeEventListener("error",mt),ft.destroy(),bt.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},mt=()=>{this._webWorker||at()};bt.addEventListener("error",mt),ft.on("test",_t=>{if(bt.removeEventListener("error",mt),this.destroyed){at();return}_t?(this._messageHandler=ft,this._port=bt,this._webWorker=bt,this._readyCapability.resolve(),ft.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),ft.destroy(),bt.terminate())}),ft.on("ready",_t=>{if(bt.removeEventListener("error",mt),this.destroyed){at();return}try{St()}catch{this._setupFakeWorker()}});const St=()=>{const _t=new Uint8Array;ft.send("test",_t,[_t.buffer])};St();return}catch{(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),_PDFWorker._setupFakeWorkerGlobal.then(dt=>{if(this.destroyed){this._readyCapability.reject(new Error("Worker was destroyed"));return}const bt=new LoopbackPort;this._port=bt;const ft=`fake${PDFWorkerUtil.fakeWorkerId++}`,at=new _message_handler.MessageHandler(ft+"_worker",ft,bt);dt.setup(at,bt);const mt=new _message_handler.MessageHandler(ft,ft+"_worker",bt);this._messageHandler=mt,this._readyCapability.resolve(),mt.send("configure",{verbosity:this.verbosity})}).catch(dt=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${dt.message}".`))})}destroy(){var dt;this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),(dt=On(_PDFWorker,et))==null||dt.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(dt){var ft;if(!(dt!=null&&dt.port))throw new Error("PDFWorker.fromPort - invalid method signature.");const bt=(ft=On(this,et))==null?void 0:ft.get(dt.port);if(bt){if(bt._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return bt}return new _PDFWorker(dt)}static get workerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(PDFWorkerUtil.fallbackWorkerSrc!==null)return _util.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _mainThreadWorkerMessageHandler(){var dt;try{return((dt=globalThis.pdfjsWorker)==null?void 0:dt.WorkerMessageHandler)||null}catch{return null}}static get _setupFakeWorkerGlobal(){const loader=async()=>{const mainWorkerMessageHandler=this._mainThreadWorkerMessageHandler;if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_util.isNodeJS&&typeof commonjsRequire=="function"){const worker=eval("require")(this.workerSrc);return worker.WorkerMessageHandler}return await(0,_display_utils.loadScript)(this.workerSrc),window.pdfjsWorker.WorkerMessageHandler};return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}};let PDFWorker=_PDFWorker;et=new WeakMap,Xo(PDFWorker,et,void 0),exports.PDFWorker=PDFWorker;class WorkerTransport{constructor(bt,ft,at,mt,St){Xo(this,j);Xo(this,Tt,new Map);Xo(this,yt,new Map);Xo(this,ut,new Map);Xo(this,ht,null);this.messageHandler=bt,this.loadingTask=ft,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({ownerDocument:mt.ownerDocument,styleElement:mt.styleElement}),this._params=mt,this.canvasFactory=St.canvasFactory,this.filterFactory=St.filterFactory,this.cMapReaderFactory=St.cMapReaderFactory,this.standardFontDataFactory=St.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=at,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=new _util.PromiseCapability,this.setupMessageHandler()}get annotationStorage(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}getRenderingIntent(bt,ft=_util.AnnotationMode.ENABLE,at=null,mt=!1){let St=_util.RenderingIntentFlag.DISPLAY,_t=_annotation_storage.SerializableEmpty;switch(bt){case"any":St=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":St=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)(`getRenderingIntent - invalid intent: ${bt}`)}switch(ft){case _util.AnnotationMode.DISABLE:St+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:St+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:St+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE,_t=(St&_util.RenderingIntentFlag.PRINT&&at instanceof _annotation_storage.PrintAnnotationStorage?at:this.annotationStorage).serializable;break;default:(0,_util.warn)(`getRenderingIntent - invalid annotationMode: ${ft}`)}return mt&&(St+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:St,cacheKey:`${St}_${_t.hash}`,annotationStorageSerializable:_t}}destroy(){var at;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=new _util.PromiseCapability,(at=On(this,ht))==null||at.reject(new Error("Worker was destroyed during onPassword callback"));const bt=[];for(const mt of On(this,yt).values())bt.push(mt._destroy());On(this,yt).clear(),On(this,ut).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const ft=this.messageHandler.sendWithPromise("Terminate",null);return bt.push(ft),Promise.all(bt).then(()=>{var mt;this.commonObjs.clear(),this.fontLoader.clear(),On(this,Tt).clear(),this.filterFactory.destroy(),(mt=this._networkStream)==null||mt.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:bt,loadingTask:ft}=this;bt.on("GetReader",(at,mt)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=St=>{this._lastProgress={loaded:St.loaded,total:St.total}},mt.onPull=()=>{this._fullReader.read().then(function({value:St,done:_t}){if(_t){mt.close();return}(0,_util.assert)(St instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),mt.enqueue(new Uint8Array(St),1,[St])}).catch(St=>{mt.error(St)})},mt.onCancel=St=>{this._fullReader.cancel(St),mt.ready.catch(_t=>{if(!this.destroyed)throw _t})}}),bt.on("ReaderHeadersReady",at=>{const mt=new _util.PromiseCapability,St=this._fullReader;return St.headersReady.then(()=>{var _t;(!St.isStreamingSupported||!St.isRangeSupported)&&(this._lastProgress&&((_t=ft.onProgress)==null||_t.call(ft,this._lastProgress)),St.onProgress=Mt=>{var Et;(Et=ft.onProgress)==null||Et.call(ft,{loaded:Mt.loaded,total:Mt.total})}),mt.resolve({isStreamingSupported:St.isStreamingSupported,isRangeSupported:St.isRangeSupported,contentLength:St.contentLength})},mt.reject),mt.promise}),bt.on("GetRangeReader",(at,mt)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const St=this._networkStream.getRangeReader(at.begin,at.end);if(!St){mt.close();return}mt.onPull=()=>{St.read().then(function({value:_t,done:Mt}){if(Mt){mt.close();return}(0,_util.assert)(_t instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),mt.enqueue(new Uint8Array(_t),1,[_t])}).catch(_t=>{mt.error(_t)})},mt.onCancel=_t=>{St.cancel(_t),mt.ready.catch(Mt=>{if(!this.destroyed)throw Mt})}}),bt.on("GetDoc",({pdfInfo:at})=>{this._numPages=at.numPages,this._htmlForXfa=at.htmlForXfa,delete at.htmlForXfa,ft._capability.resolve(new PDFDocumentProxy(at,this))}),bt.on("DocException",function(at){let mt;switch(at.name){case"PasswordException":mt=new _util.PasswordException(at.message,at.code);break;case"InvalidPDFException":mt=new _util.InvalidPDFException(at.message);break;case"MissingPDFException":mt=new _util.MissingPDFException(at.message);break;case"UnexpectedResponseException":mt=new _util.UnexpectedResponseException(at.message,at.status);break;case"UnknownErrorException":mt=new _util.UnknownErrorException(at.message,at.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}ft._capability.reject(mt)}),bt.on("PasswordRequest",at=>{if(ks(this,ht,new _util.PromiseCapability),ft.onPassword){const mt=St=>{St instanceof Error?On(this,ht).reject(St):On(this,ht).resolve({password:St})};try{ft.onPassword(mt,at.code)}catch(St){On(this,ht).reject(St)}}else On(this,ht).reject(new _util.PasswordException(at.message,at.code));return On(this,ht).promise}),bt.on("DataLoaded",at=>{var mt;(mt=ft.onProgress)==null||mt.call(ft,{loaded:at.length,total:at.length}),this.downloadInfoCapability.resolve(at)}),bt.on("StartRenderPage",at=>{if(this.destroyed)return;On(this,yt).get(at.pageIndex)._startRenderPage(at.transparency,at.cacheKey)}),bt.on("commonobj",([at,mt,St])=>{var _t;if(!this.destroyed&&!this.commonObjs.has(at))switch(mt){case"Font":const Mt=this._params;if("error"in St){const wt=St.error;(0,_util.warn)(`Error during font loading: ${wt}`),this.commonObjs.resolve(at,wt);break}const Et=Mt.pdfBug&&((_t=globalThis.FontInspector)!=null&&_t.enabled)?(wt,ct)=>globalThis.FontInspector.fontAdded(wt,ct):null,kt=new _font_loader.FontFaceObject(St,{isEvalSupported:Mt.isEvalSupported,disableFontFace:Mt.disableFontFace,ignoreErrors:Mt.ignoreErrors,inspectFont:Et});this.fontLoader.bind(kt).catch(wt=>bt.sendWithPromise("FontFallback",{id:at})).finally(()=>{!Mt.fontExtraProperties&&kt.data&&(kt.data=null),this.commonObjs.resolve(at,kt)});break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(at,St);break;default:throw new Error(`Got unknown common object type ${mt}`)}}),bt.on("obj",([at,mt,St,_t])=>{var Et;if(this.destroyed)return;const Mt=On(this,yt).get(mt);if(!Mt.objs.has(at))switch(St){case"Image":if(Mt.objs.resolve(at,_t),_t){let kt;if(_t.bitmap){const{width:wt,height:ct}=_t;kt=wt*ct*4}else kt=((Et=_t.data)==null?void 0:Et.length)||0;kt>_util.MAX_IMAGE_SIZE_TO_CACHE&&(Mt._maybeCleanupAfterRender=!0)}break;case"Pattern":Mt.objs.resolve(at,_t);break;default:throw new Error(`Got unknown object type ${St}`)}}),bt.on("DocProgress",at=>{var mt;this.destroyed||(mt=ft.onProgress)==null||mt.call(ft,{loaded:at.loaded,total:at.total})}),bt.on("FetchBuiltInCMap",at=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.cMapReaderFactory?this.cMapReaderFactory.fetch(at):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))),bt.on("FetchStandardFontData",at=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.standardFontDataFactory?this.standardFontDataFactory.fetch(at):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.")))}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){var at;this.annotationStorage.size<=0&&(0,_util.warn)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");const{map:bt,transfers:ft}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:bt,filename:((at=this._fullReader)==null?void 0:at.filename)??null},ft).finally(()=>{this.annotationStorage.resetModified()})}getPage(bt){if(!Number.isInteger(bt)||bt<=0||bt>this._numPages)return Promise.reject(new Error("Invalid page request."));const ft=bt-1,at=On(this,ut).get(ft);if(at)return at;const mt=this.messageHandler.sendWithPromise("GetPage",{pageIndex:ft}).then(St=>{if(this.destroyed)throw new Error("Transport destroyed");const _t=new PDFPageProxy(ft,St,this,this._params.pdfBug);return On(this,yt).set(ft,_t),_t});return On(this,ut).set(ft,mt),mt}getPageIndex(bt){return typeof bt!="object"||bt===null||!Number.isInteger(bt.num)||bt.num<0||!Number.isInteger(bt.gen)||bt.gen<0?Promise.reject(new Error("Invalid pageIndex request.")):this.messageHandler.sendWithPromise("GetPageIndex",{num:bt.num,gen:bt.gen})}getAnnotations(bt,ft){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:bt,intent:ft})}getFieldObjects(){return hs(this,j,ZE).call(this,"GetFieldObjects")}hasJSActions(){return hs(this,j,ZE).call(this,"HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(bt){return typeof bt!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:bt})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getDocJSActions(){return hs(this,j,ZE).call(this,"GetDocJSActions")}getPageJSActions(bt){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:bt})}getStructTree(bt){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:bt})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then(bt=>new _optional_content_config.OptionalContentConfig(bt))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const bt="GetMetadata",ft=On(this,Tt).get(bt);if(ft)return ft;const at=this.messageHandler.sendWithPromise(bt,null).then(mt=>{var St,_t;return{info:mt[0],metadata:mt[1]?new _metadata.Metadata(mt[1]):null,contentDispositionFilename:((St=this._fullReader)==null?void 0:St.filename)??null,contentLength:((_t=this._fullReader)==null?void 0:_t.contentLength)??null}});return On(this,Tt).set(bt,at),at}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(bt=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(const ft of On(this,yt).values())if(!ft.cleanup())throw new Error(`startCleanup: Page ${ft.pageNumber} is currently rendering.`);this.commonObjs.clear(),bt||this.fontLoader.clear(),On(this,Tt).clear(),this.filterFactory.destroy(!0)}}get loadingParams(){const{disableAutoFetch:bt,enableXfa:ft}=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:bt,enableXfa:ft})}}Tt=new WeakMap,yt=new WeakMap,ut=new WeakMap,ht=new WeakMap,j=new WeakSet,ZE=function(bt,ft=null){const at=On(this,Tt).get(bt);if(at)return at;const mt=this.messageHandler.sendWithPromise(bt,ft);return On(this,Tt).set(bt,mt),mt};class PDFObjects{constructor(){Xo(this,tt);Xo(this,rt,Object.create(null))}get(bt,ft=null){if(ft){const mt=hs(this,tt,x_).call(this,bt);return mt.capability.promise.then(()=>ft(mt.data)),null}const at=On(this,rt)[bt];if(!(at!=null&&at.capability.settled))throw new Error(`Requesting object that isn't resolved yet ${bt}.`);return at.data}has(bt){const ft=On(this,rt)[bt];return(ft==null?void 0:ft.capability.settled)||!1}resolve(bt,ft=null){const at=hs(this,tt,x_).call(this,bt);at.data=ft,at.capability.resolve()}clear(){var bt;for(const ft in On(this,rt)){const{data:at}=On(this,rt)[ft];(bt=at==null?void 0:at.bitmap)==null||bt.close()}ks(this,rt,Object.create(null))}}rt=new WeakMap,tt=new WeakSet,x_=function(bt){var ft;return(ft=On(this,rt))[bt]||(ft[bt]={capability:new _util.PromiseCapability,data:null})};class RenderTask{constructor(bt){Xo(this,ot,null);ks(this,ot,bt),this.onContinue=null}get promise(){return On(this,ot).capability.promise}cancel(bt=0){On(this,ot).cancel(null,bt)}get separateAnnots(){const{separateAnnots:bt}=On(this,ot).operatorList;if(!bt)return!1;const{annotationCanvasMap:ft}=On(this,ot);return bt.form||bt.canvas&&(ft==null?void 0:ft.size)>0}}ot=new WeakMap,exports.RenderTask=RenderTask;const vt=class{constructor({callback:bt,params:ft,objs:at,commonObjs:mt,annotationCanvasMap:St,operatorList:_t,pageIndex:Mt,canvasFactory:Et,filterFactory:kt,useRequestAnimationFrame:wt=!1,pdfBug:ct=!1,pageColors:It=null}){this.callback=bt,this.params=ft,this.objs=at,this.commonObjs=mt,this.annotationCanvasMap=St,this.operatorListIdx=null,this.operatorList=_t,this._pageIndex=Mt,this.canvasFactory=Et,this.filterFactory=kt,this._pdfBug=ct,this.pageColors=It,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=wt===!0&&typeof window<"u",this.cancelled=!1,this.capability=new _util.PromiseCapability,this.task=new RenderTask(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=ft.canvasContext.canvas}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:bt=!1,optionalContentConfig:ft}){var Mt,Et;if(this.cancelled)return;if(this._canvas){if(On(vt,nt).has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");On(vt,nt).add(this._canvas)}this._pdfBug&&((Mt=globalThis.StepperManager)!=null&&Mt.enabled)&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:at,viewport:mt,transform:St,background:_t}=this.params;this.gfx=new _canvas.CanvasGraphics(at,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:ft},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:St,viewport:mt,transparency:bt,background:_t}),this.operatorListIdx=0,this.graphicsReady=!0,(Et=this.graphicsReadyCallback)==null||Et.call(this)}cancel(bt=null,ft=0){var at;this.running=!1,this.cancelled=!0,(at=this.gfx)==null||at.endDrawing(),On(vt,nt).delete(this._canvas),this.callback(bt||new _display_utils.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex+1}`,ft))}operatorListChanged(){var bt;if(!this.graphicsReady){this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound);return}(bt=this.stepper)==null||bt.updateOperatorList(this.operatorList),!this.running&&this._continue()}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame(()=>{this._nextBound().catch(this._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),On(vt,nt).delete(this._canvas),this.callback())))}};let InternalRenderTask=vt;nt=new WeakMap,Xo(InternalRenderTask,nt,new WeakSet);const version="3.11.174";exports.version=version;const build="ce8716743";exports.build=build},(a,i,_e)=>{var it,xt,et,aS,yt;Object.defineProperty(i,"__esModule",{value:!0}),i.SerializableEmpty=i.PrintAnnotationStorage=i.AnnotationStorage=void 0;var pt=_e(1),Lt=_e(4),Gt=_e(8);const Ct=Object.freeze({map:null,hash:"",transfers:void 0});i.SerializableEmpty=Ct;class Rt{constructor(){Xo(this,et);Xo(this,it,!1);Xo(this,xt,new Map);this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(ht,j){const _=On(this,xt).get(ht);return _===void 0?j:Object.assign(j,_)}getRawValue(ht){return On(this,xt).get(ht)}remove(ht){if(On(this,xt).delete(ht),On(this,xt).size===0&&this.resetModified(),typeof this.onAnnotationEditor=="function"){for(const j of On(this,xt).values())if(j instanceof Lt.AnnotationEditor)return;this.onAnnotationEditor(null)}}setValue(ht,j){const _=On(this,xt).get(ht);let rt=!1;if(_!==void 0)for(const[tt,st]of Object.entries(j))_[tt]!==st&&(rt=!0,_[tt]=st);else rt=!0,On(this,xt).set(ht,j);rt&&hs(this,et,aS).call(this),j instanceof Lt.AnnotationEditor&&typeof this.onAnnotationEditor=="function"&&this.onAnnotationEditor(j.constructor._type)}has(ht){return On(this,xt).has(ht)}getAll(){return On(this,xt).size>0?(0,pt.objectFromMap)(On(this,xt)):null}setAll(ht){for(const[j,_]of Object.entries(ht))this.setValue(j,_)}get size(){return On(this,xt).size}resetModified(){On(this,it)&&(ks(this,it,!1),typeof this.onResetModified=="function"&&this.onResetModified())}get print(){return new o(this)}get serializable(){if(On(this,xt).size===0)return Ct;const ht=new Map,j=new Gt.MurmurHash3_64,_=[],rt=Object.create(null);let tt=!1;for(const[st,ot]of On(this,xt)){const nt=ot instanceof Lt.AnnotationEditor?ot.serialize(!1,rt):ot;nt&&(ht.set(st,nt),j.update(`${st}:${JSON.stringify(nt)}`),tt||(tt=!!nt.bitmap))}if(tt)for(const st of ht.values())st.bitmap&&_.push(st.bitmap);return ht.size>0?{map:ht,hash:j.hexdigest(),transfers:_}:Ct}}it=new WeakMap,xt=new WeakMap,et=new WeakSet,aS=function(){On(this,it)||(ks(this,it,!0),typeof this.onSetModified=="function"&&this.onSetModified())},i.AnnotationStorage=Rt;class o extends Rt{constructor(j){super();Xo(this,yt,void 0);const{map:_,hash:rt,transfers:tt}=j.serializable,st=structuredClone(_,tt?{transfer:tt}:null);ks(this,yt,{map:st,hash:rt,transfers:tt})}get print(){(0,pt.unreachable)("Should not call PrintAnnotationStorage.print")}get serializable(){return On(this,yt)}}yt=new WeakMap,i.PrintAnnotationStorage=o},(a,i,_e)=>{var o,it,xt,et,Tt,yt,ut,ht,j,_,rt,tt,st,ot,nt,b_,dt,E_,ft,T_,mt,A_,_t,iS,Et,oS,wt,sS,It,__,Ot,lS;Object.defineProperty(i,"__esModule",{value:!0}),i.AnnotationEditor=void 0;var pt=_e(5),Lt=_e(1),Gt=_e(6);const zt=class{constructor(Nt){Xo(this,nt);Xo(this,dt);Xo(this,mt);Xo(this,_t);Xo(this,Et);Xo(this,wt);Xo(this,It);Xo(this,Ot);Xo(this,o,"");Xo(this,it,!1);Xo(this,xt,null);Xo(this,et,null);Xo(this,Tt,null);Xo(this,yt,!1);Xo(this,ut,null);Xo(this,ht,this.focusin.bind(this));Xo(this,j,this.focusout.bind(this));Xo(this,_,!1);Xo(this,rt,!1);Xo(this,tt,!1);Dp(this,"_initialOptions",Object.create(null));Dp(this,"_uiManager",null);Dp(this,"_focusEventsAllowed",!0);Dp(this,"_l10nPromise",null);Xo(this,st,!1);Xo(this,ot,zt._zIndex++);this.constructor===zt&&(0,Lt.unreachable)("Cannot initialize AnnotationEditor."),this.parent=Nt.parent,this.id=Nt.id,this.width=this.height=null,this.pageIndex=Nt.parent.pageIndex,this.name=Nt.name,this.div=null,this._uiManager=Nt.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=Nt.isCentered,this._structTreeParentId=null;const{rotation:$t,rawDims:{pageWidth:Ut,pageHeight:Ht,pageX:Vt,pageY:Xt}}=this.parent.viewport;this.rotation=$t,this.pageRotation=(360+$t-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[Ut,Ht],this.pageTranslation=[Vt,Xt];const[qt,er]=this.parentDimensions;this.x=Nt.x/qt,this.y=Nt.y/er,this.isAttachedToDOM=!1,this.deleted=!1}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get _defaultLineColor(){return(0,Lt.shadow)(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(Nt){const $t=new Rt({id:Nt.parent.getNextId(),parent:Nt.parent,uiManager:Nt._uiManager});$t.annotationElementId=Nt.annotationElementId,$t.deleted=!0,$t._uiManager.addToAnnotationStorage($t)}static initialize(Nt,$t=null){if(zt._l10nPromise||(zt._l10nPromise=new Map(["editor_alt_text_button_label","editor_alt_text_edit_button_label","editor_alt_text_decorative_tooltip"].map(Ht=>[Ht,Nt.get(Ht)]))),$t!=null&&$t.strings)for(const Ht of $t.strings)zt._l10nPromise.set(Ht,Nt.get(Ht));if(zt._borderLineWidth!==-1)return;const Ut=getComputedStyle(document.documentElement);zt._borderLineWidth=parseFloat(Ut.getPropertyValue("--outline-width"))||0}static updateDefaultParams(Nt,$t){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(Nt){return!1}static paste(Nt,$t){(0,Lt.unreachable)("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return On(this,st)}set _isDraggable(Nt){var $t;ks(this,st,Nt),($t=this.div)==null||$t.classList.toggle("draggable",Nt)}center(){const[Nt,$t]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*$t/(Nt*2),this.y+=this.width*Nt/($t*2);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*$t/(Nt*2),this.y-=this.width*Nt/($t*2);break;default:this.x-=this.width/2,this.y-=this.height/2;break}this.fixAndSetPosition()}addCommands(Nt){this._uiManager.addCommands(Nt)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=On(this,ot)}setParent(Nt){Nt!==null&&(this.pageIndex=Nt.pageIndex,this.pageDimensions=Nt.pageDimensions),this.parent=Nt}focusin(Nt){this._focusEventsAllowed&&(On(this,_)?ks(this,_,!1):this.parent.setSelected(this))}focusout(Nt){var Ut;if(!this._focusEventsAllowed||!this.isAttachedToDOM)return;const $t=Nt.relatedTarget;$t!=null&&$t.closest(`#${this.id}`)||(Nt.preventDefault(),(Ut=this.parent)!=null&&Ut.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(Nt,$t,Ut,Ht){const[Vt,Xt]=this.parentDimensions;[Ut,Ht]=this.screenToPageTranslation(Ut,Ht),this.x=(Nt+Ut)/Vt,this.y=($t+Ht)/Xt,this.fixAndSetPosition()}translate(Nt,$t){hs(this,nt,b_).call(this,this.parentDimensions,Nt,$t)}translateInPage(Nt,$t){hs(this,nt,b_).call(this,this.pageDimensions,Nt,$t),this.div.scrollIntoView({block:"nearest"})}drag(Nt,$t){const[Ut,Ht]=this.parentDimensions;if(this.x+=Nt/Ut,this.y+=$t/Ht,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){const{x:lr,y:Jt}=this.div.getBoundingClientRect();this.parent.findNewParent(this,lr,Jt)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:Vt,y:Xt}=this;const[qt,er]=hs(this,dt,E_).call(this);Vt+=qt,Xt+=er,this.div.style.left=`${(100*Vt).toFixed(2)}%`,this.div.style.top=`${(100*Xt).toFixed(2)}%`,this.div.scrollIntoView({block:"nearest"})}fixAndSetPosition(){const[Nt,$t]=this.pageDimensions;let{x:Ut,y:Ht,width:Vt,height:Xt}=this;switch(Vt*=Nt,Xt*=$t,Ut*=Nt,Ht*=$t,this.rotation){case 0:Ut=Math.max(0,Math.min(Nt-Vt,Ut)),Ht=Math.max(0,Math.min($t-Xt,Ht));break;case 90:Ut=Math.max(0,Math.min(Nt-Xt,Ut)),Ht=Math.min($t,Math.max(Vt,Ht));break;case 180:Ut=Math.min(Nt,Math.max(Vt,Ut)),Ht=Math.min($t,Math.max(Xt,Ht));break;case 270:Ut=Math.min(Nt,Math.max(Xt,Ut)),Ht=Math.max(0,Math.min($t-Vt,Ht));break}this.x=Ut/=Nt,this.y=Ht/=$t;const[qt,er]=hs(this,dt,E_).call(this);Ut+=qt,Ht+=er;const{style:lr}=this.div;lr.left=`${(100*Ut).toFixed(2)}%`,lr.top=`${(100*Ht).toFixed(2)}%`,this.moveInDOM()}screenToPageTranslation(Nt,$t){var Ut;return hs(Ut=zt,ft,T_).call(Ut,Nt,$t,this.parentRotation)}pageTranslationToScreen(Nt,$t){var Ut;return hs(Ut=zt,ft,T_).call(Ut,Nt,$t,360-this.parentRotation)}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){const{parentScale:Nt,pageDimensions:[$t,Ut]}=this,Ht=$t*Nt,Vt=Ut*Nt;return Lt.FeatureTest.isCSSRoundSupported?[Math.round(Ht),Math.round(Vt)]:[Ht,Vt]}setDims(Nt,$t){var Vt;const[Ut,Ht]=this.parentDimensions;this.div.style.width=`${(100*Nt/Ut).toFixed(2)}%`,On(this,yt)||(this.div.style.height=`${(100*$t/Ht).toFixed(2)}%`),(Vt=On(this,xt))==null||Vt.classList.toggle("small",NtUt.stopPropagation()),Nt.addEventListener("click",Ut=>{Ut.preventDefault(),this._uiManager.editAltText(this)},{capture:!0}),Nt.addEventListener("keydown",Ut=>{Ut.target===Nt&&Ut.key==="Enter"&&(Ut.preventDefault(),this._uiManager.editAltText(this))}),hs(this,It,__).call(this),this.div.append(Nt),zt.SMALL_EDITOR_SIZE||(zt.SMALL_EDITOR_SIZE=Math.min(128,Math.round(Nt.getBoundingClientRect().width*1.4)))}getClientDimensions(){return this.div.getBoundingClientRect()}get altTextData(){return{altText:On(this,o),decorative:On(this,it)}}set altTextData({altText:Nt,decorative:$t}){On(this,o)===Nt&&On(this,it)===$t||(ks(this,o,Nt),ks(this,it,$t),hs(this,It,__).call(this))}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.setAttribute("tabIndex",0),this.setInForeground(),this.div.addEventListener("focusin",On(this,ht)),this.div.addEventListener("focusout",On(this,j));const[Nt,$t]=this.parentDimensions;this.parentRotation%180!==0&&(this.div.style.maxWidth=`${(100*$t/Nt).toFixed(2)}%`,this.div.style.maxHeight=`${(100*Nt/$t).toFixed(2)}%`);const[Ut,Ht]=this.getInitialTranslation();return this.translate(Ut,Ht),(0,pt.bindEvents)(this,this.div,["pointerdown"]),this.div}pointerdown(Nt){const{isMac:$t}=Lt.FeatureTest.platform;if(Nt.button!==0||Nt.ctrlKey&&$t){Nt.preventDefault();return}ks(this,_,!0),hs(this,Ot,lS).call(this,Nt)}moveInDOM(){var Nt;(Nt=this.parent)==null||Nt.moveEditorInDOM(this)}_setParentAndPosition(Nt,$t,Ut){Nt.changeParent(this),this.x=$t,this.y=Ut,this.fixAndSetPosition()}getRect(Nt,$t){const Ut=this.parentScale,[Ht,Vt]=this.pageDimensions,[Xt,qt]=this.pageTranslation,er=Nt/Ut,lr=$t/Ut,Jt=this.x*Ht,Yt=this.y*Vt,rr=this.width*Ht,jt=this.height*Vt;switch(this.rotation){case 0:return[Jt+er+Xt,Vt-Yt-lr-jt+qt,Jt+er+rr+Xt,Vt-Yt-lr+qt];case 90:return[Jt+lr+Xt,Vt-Yt+er+qt,Jt+lr+jt+Xt,Vt-Yt+er+rr+qt];case 180:return[Jt-er-rr+Xt,Vt-Yt+lr+qt,Jt-er+Xt,Vt-Yt+lr+jt+qt];case 270:return[Jt-lr-jt+Xt,Vt-Yt-er-rr+qt,Jt-lr+Xt,Vt-Yt-er+qt];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(Nt,$t){const[Ut,Ht,Vt,Xt]=Nt,qt=Vt-Ut,er=Xt-Ht;switch(this.rotation){case 0:return[Ut,$t-Xt,qt,er];case 90:return[Ut,$t-Ht,er,qt];case 180:return[Vt,$t-Ht,qt,er];case 270:return[Vt,$t-Xt,er,qt];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){ks(this,tt,!0)}disableEditMode(){ks(this,tt,!1)}isInEditMode(){return On(this,tt)}shouldGetKeyboardEvents(){return!1}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){var Nt,$t;(Nt=this.div)==null||Nt.addEventListener("focusin",On(this,ht)),($t=this.div)==null||$t.addEventListener("focusout",On(this,j))}serialize(Nt=!1,$t=null){(0,Lt.unreachable)("An editor must be serializable")}static deserialize(Nt,$t,Ut){const Ht=new this.prototype.constructor({parent:$t,id:$t.getNextId(),uiManager:Ut});Ht.rotation=Nt.rotation;const[Vt,Xt]=Ht.pageDimensions,[qt,er,lr,Jt]=Ht.getRectInCurrentCoords(Nt.rect,Xt);return Ht.x=qt/Vt,Ht.y=er/Xt,Ht.width=lr/Vt,Ht.height=Jt/Xt,Ht}remove(){var Nt;this.div.removeEventListener("focusin",On(this,ht)),this.div.removeEventListener("focusout",On(this,j)),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),(Nt=On(this,xt))==null||Nt.remove(),ks(this,xt,null),ks(this,et,null)}get isResizable(){return!1}makeResizable(){this.isResizable&&(hs(this,_t,iS).call(this),On(this,ut).classList.remove("hidden"))}select(){var Nt;this.makeResizable(),(Nt=this.div)==null||Nt.classList.add("selectedEditor")}unselect(){var Nt,$t,Ut;(Nt=On(this,ut))==null||Nt.classList.add("hidden"),($t=this.div)==null||$t.classList.remove("selectedEditor"),(Ut=this.div)!=null&&Ut.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus()}updateParams(Nt,$t){}disableEditing(){On(this,xt)&&(On(this,xt).hidden=!0)}enableEditing(){On(this,xt)&&(On(this,xt).hidden=!1)}enterInEditMode(){}get contentDiv(){return this.div}get isEditing(){return On(this,rt)}set isEditing(Nt){ks(this,rt,Nt),this.parent&&(Nt?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(Nt,$t){ks(this,yt,!0);const Ut=Nt/$t,{style:Ht}=this.div;Ht.aspectRatio=Ut,Ht.height="auto"}static get MIN_SIZE(){return 16}};let Ct=zt;o=new WeakMap,it=new WeakMap,xt=new WeakMap,et=new WeakMap,Tt=new WeakMap,yt=new WeakMap,ut=new WeakMap,ht=new WeakMap,j=new WeakMap,_=new WeakMap,rt=new WeakMap,tt=new WeakMap,st=new WeakMap,ot=new WeakMap,nt=new WeakSet,b_=function([Nt,$t],Ut,Ht){[Ut,Ht]=this.screenToPageTranslation(Ut,Ht),this.x+=Ut/Nt,this.y+=Ht/$t,this.fixAndSetPosition()},dt=new WeakSet,E_=function(){const[Nt,$t]=this.parentDimensions,{_borderLineWidth:Ut}=zt,Ht=Ut/Nt,Vt=Ut/$t;switch(this.rotation){case 90:return[-Ht,Vt];case 180:return[Ht,Vt];case 270:return[Ht,-Vt];default:return[-Ht,-Vt]}},ft=new WeakSet,T_=function(Nt,$t,Ut){switch(Ut){case 90:return[$t,-Nt];case 180:return[-Nt,-$t];case 270:return[-$t,Nt];default:return[Nt,$t]}},mt=new WeakSet,A_=function(Nt){switch(Nt){case 90:{const[$t,Ut]=this.pageDimensions;return[0,-$t/Ut,Ut/$t,0]}case 180:return[-1,0,0,-1];case 270:{const[$t,Ut]=this.pageDimensions;return[0,$t/Ut,-Ut/$t,0]}default:return[1,0,0,1]}},_t=new WeakSet,iS=function(){if(On(this,ut))return;ks(this,ut,document.createElement("div")),On(this,ut).classList.add("resizers");const Nt=["topLeft","topRight","bottomRight","bottomLeft"];this._willKeepAspectRatio||Nt.push("topMiddle","middleRight","bottomMiddle","middleLeft");for(const $t of Nt){const Ut=document.createElement("div");On(this,ut).append(Ut),Ut.classList.add("resizer",$t),Ut.addEventListener("pointerdown",hs(this,Et,oS).bind(this,$t)),Ut.addEventListener("contextmenu",Gt.noContextMenu)}this.div.prepend(On(this,ut))},Et=new WeakSet,oS=function(Nt,$t){$t.preventDefault();const{isMac:Ut}=Lt.FeatureTest.platform;if($t.button!==0||$t.ctrlKey&&Ut)return;const Ht=hs(this,wt,sS).bind(this,Nt),Vt=this._isDraggable;this._isDraggable=!1;const Xt={passive:!0,capture:!0};window.addEventListener("pointermove",Ht,Xt);const qt=this.x,er=this.y,lr=this.width,Jt=this.height,Yt=this.parent.div.style.cursor,rr=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle($t.target).cursor;const jt=()=>{this._isDraggable=Vt,window.removeEventListener("pointerup",jt),window.removeEventListener("blur",jt),window.removeEventListener("pointermove",Ht,Xt),this.parent.div.style.cursor=Yt,this.div.style.cursor=rr;const ar=this.x,sr=this.y,Zt=this.width,Kt=this.height;ar===qt&&sr===er&&Zt===lr&&Kt===Jt||this.addCommands({cmd:()=>{this.width=Zt,this.height=Kt,this.x=ar,this.y=sr;const[or,tr]=this.parentDimensions;this.setDims(or*Zt,tr*Kt),this.fixAndSetPosition()},undo:()=>{this.width=lr,this.height=Jt,this.x=qt,this.y=er;const[or,tr]=this.parentDimensions;this.setDims(or*lr,tr*Jt),this.fixAndSetPosition()},mustExec:!0})};window.addEventListener("pointerup",jt),window.addEventListener("blur",jt)},wt=new WeakSet,sS=function(Nt,$t){const[Ut,Ht]=this.parentDimensions,Vt=this.x,Xt=this.y,qt=this.width,er=this.height,lr=zt.MIN_SIZE/Ut,Jt=zt.MIN_SIZE/Ht,Yt=Qr=>Math.round(Qr*1e4)/1e4,rr=hs(this,mt,A_).call(this,this.rotation),jt=(Qr,sn)=>[rr[0]*Qr+rr[2]*sn,rr[1]*Qr+rr[3]*sn],ar=hs(this,mt,A_).call(this,360-this.rotation),sr=(Qr,sn)=>[ar[0]*Qr+ar[2]*sn,ar[1]*Qr+ar[3]*sn];let Zt,Kt,or=!1,tr=!1;switch(Nt){case"topLeft":or=!0,Zt=(Qr,sn)=>[0,0],Kt=(Qr,sn)=>[Qr,sn];break;case"topMiddle":Zt=(Qr,sn)=>[Qr/2,0],Kt=(Qr,sn)=>[Qr/2,sn];break;case"topRight":or=!0,Zt=(Qr,sn)=>[Qr,0],Kt=(Qr,sn)=>[0,sn];break;case"middleRight":tr=!0,Zt=(Qr,sn)=>[Qr,sn/2],Kt=(Qr,sn)=>[0,sn/2];break;case"bottomRight":or=!0,Zt=(Qr,sn)=>[Qr,sn],Kt=(Qr,sn)=>[0,0];break;case"bottomMiddle":Zt=(Qr,sn)=>[Qr/2,sn],Kt=(Qr,sn)=>[Qr/2,0];break;case"bottomLeft":or=!0,Zt=(Qr,sn)=>[0,sn],Kt=(Qr,sn)=>[Qr,0];break;case"middleLeft":tr=!0,Zt=(Qr,sn)=>[0,sn/2],Kt=(Qr,sn)=>[Qr,sn/2];break}const cr=Zt(qt,er),mr=Kt(qt,er);let Ar=jt(...mr);const br=Yt(Vt+Ar[0]),Ir=Yt(Xt+Ar[1]);let Tr=1,_r=1,[Er,Rr]=this.screenToPageTranslation($t.movementX,$t.movementY);if([Er,Rr]=sr(Er/Ut,Rr/Ht),or){const Qr=Math.hypot(qt,er);Tr=_r=Math.max(Math.min(Math.hypot(mr[0]-cr[0]-Er,mr[1]-cr[1]-Rr)/Qr,1/qt,1/er),lr/qt,Jt/er)}else tr?Tr=Math.max(lr,Math.min(1,Math.abs(mr[0]-cr[0]-Er)))/qt:_r=Math.max(Jt,Math.min(1,Math.abs(mr[1]-cr[1]-Rr)))/er;const zr=Yt(qt*Tr),Or=Yt(er*_r);Ar=jt(...Kt(zr,Or));const kr=br-Ar[0],Nr=Ir-Ar[1];this.width=zr,this.height=Or,this.x=kr,this.y=Nr,this.setDims(Ut*zr,Ht*Or),this.fixAndSetPosition()},It=new WeakSet,__=async function(){var Ut;const Nt=On(this,xt);if(!Nt)return;if(!On(this,o)&&!On(this,it)){Nt.classList.remove("done"),(Ut=On(this,et))==null||Ut.remove();return}zt._l10nPromise.get("editor_alt_text_edit_button_label").then(Ht=>{Nt.setAttribute("aria-label",Ht)});let $t=On(this,et);if(!$t){ks(this,et,$t=document.createElement("span")),$t.className="tooltip",$t.setAttribute("role","tooltip");const Ht=$t.id=`alt-text-tooltip-${this.id}`;Nt.setAttribute("aria-describedby",Ht);const Vt=100;Nt.addEventListener("mouseenter",()=>{ks(this,Tt,setTimeout(()=>{ks(this,Tt,null),On(this,et).classList.add("show"),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",subtype:this.editorType,data:{action:"alt_text_tooltip"}}})},Vt))}),Nt.addEventListener("mouseleave",()=>{var Xt;clearTimeout(On(this,Tt)),ks(this,Tt,null),(Xt=On(this,et))==null||Xt.classList.remove("show")})}Nt.classList.add("done"),$t.innerText=On(this,it)?await zt._l10nPromise.get("editor_alt_text_decorative_tooltip"):On(this,o),$t.parentNode||Nt.append($t)},Ot=new WeakSet,lS=function(Nt){if(!this._isDraggable)return;const $t=this._uiManager.isSelected(this);this._uiManager.setUpDragSession();let Ut,Ht;$t&&(Ut={passive:!0,capture:!0},Ht=Xt=>{const[qt,er]=this.screenToPageTranslation(Xt.movementX,Xt.movementY);this._uiManager.dragSelectedEditors(qt,er)},window.addEventListener("pointermove",Ht,Ut));const Vt=()=>{if(window.removeEventListener("pointerup",Vt),window.removeEventListener("blur",Vt),$t&&window.removeEventListener("pointermove",Ht,Ut),ks(this,_,!1),!this._uiManager.endDragSession()){const{isMac:Xt}=Lt.FeatureTest.platform;Nt.ctrlKey&&!Xt||Nt.shiftKey||Nt.metaKey&&Xt?this.parent.toggleSelected(this):this.parent.setSelected(this)}};window.addEventListener("pointerup",Vt),window.addEventListener("blur",Vt)},Xo(Ct,ft),Dp(Ct,"_borderLineWidth",-1),Dp(Ct,"_colorManager",new pt.ColorManager),Dp(Ct,"_zIndex",1),Dp(Ct,"SMALL_EDITOR_SIZE",0),i.AnnotationEditor=Ct;class Rt extends Ct{constructor(Nt){super(Nt),this.annotationElementId=Nt.annotationElementId,this.deleted=!0}serialize(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex}}}},(a,i,_e)=>{var yt,ut,ht,j,_,S_,st,ot,nt,vt,dt,uS,at,mt,St,_t,Mt,Et,kt,wt,ct,It,At,Ot,Pt,zt,Dt,Nt,$t,Ut,Ht,Vt,Xt,qt,er,lr,Jt,Yt,rr,jt,ar,sr,Zt,Kt,or,tr,cr,cS,Ar,w_,Ir,C_,_r,JE,Rr,R_,Or,M_,Nr,Om,sn,V2,en,fS,ln,dS,pn,I_,Zr,W2,Ur,k_;Object.defineProperty(i,"__esModule",{value:!0}),i.KeyboardManager=i.CommandManager=i.ColorManager=i.AnnotationEditorUIManager=void 0,i.bindEvents=Gt,i.opacityToHex=Ct;var pt=_e(1),Lt=_e(6);function Gt(wr,pr,Dr){for(const Sr of Dr)pr.addEventListener(Sr,wr[Sr].bind(wr))}function Ct(wr){return Math.round(Math.min(255,Math.max(1,255*wr))).toString(16).padStart(2,"0")}class Rt{constructor(){Xo(this,yt,0)}getId(){return`${pt.AnnotationEditorPrefix}${G2(this,yt)._++}`}}yt=new WeakMap;const tt=class{constructor(){Xo(this,_);Xo(this,ut,(0,pt.getUuid)());Xo(this,ht,0);Xo(this,j,null)}static get _isSVGFittingCanvas(){const pr='data:image/svg+xml;charset=UTF-8,',Sr=new OffscreenCanvas(1,3).getContext("2d"),ur=new Image;ur.src=pr;const xr=ur.decode().then(()=>(Sr.drawImage(ur,0,0,1,1,0,0,1,3),new Uint32Array(Sr.getImageData(0,0,1,1).data.buffer)[0]===0));return(0,pt.shadow)(this,"_isSVGFittingCanvas",xr)}async getFromFile(pr){const{lastModified:Dr,name:Sr,size:ur,type:xr}=pr;return hs(this,_,S_).call(this,`${Dr}_${Sr}_${ur}_${xr}`,pr)}async getFromUrl(pr){return hs(this,_,S_).call(this,pr,pr)}async getFromId(pr){On(this,j)||ks(this,j,new Map);const Dr=On(this,j).get(pr);return Dr?Dr.bitmap?(Dr.refCounter+=1,Dr):Dr.file?this.getFromFile(Dr.file):this.getFromUrl(Dr.url):null}getSvgUrl(pr){const Dr=On(this,j).get(pr);return Dr!=null&&Dr.isSvg?Dr.svgUrl:null}deleteId(pr){On(this,j)||ks(this,j,new Map);const Dr=On(this,j).get(pr);Dr&&(Dr.refCounter-=1,Dr.refCounter===0&&(Dr.bitmap=null))}isValidId(pr){return pr.startsWith(`image_${On(this,ut)}_`)}};let o=tt;ut=new WeakMap,ht=new WeakMap,j=new WeakMap,_=new WeakSet,S_=async function(pr,Dr){On(this,j)||ks(this,j,new Map);let Sr=On(this,j).get(pr);if(Sr===null)return null;if(Sr!=null&&Sr.bitmap)return Sr.refCounter+=1,Sr;try{Sr||(Sr={bitmap:null,id:`image_${On(this,ut)}_${G2(this,ht)._++}`,refCounter:0,isSvg:!1});let ur;if(typeof Dr=="string"){Sr.url=Dr;const xr=await fetch(Dr);if(!xr.ok)throw new Error(xr.statusText);ur=await xr.blob()}else ur=Sr.file=Dr;if(ur.type==="image/svg+xml"){const xr=tt._isSVGFittingCanvas,Pr=new FileReader,Vr=new Image,qr=new Promise((rn,Cn)=>{Vr.onload=()=>{Sr.bitmap=Vr,Sr.isSvg=!0,rn()},Pr.onload=async()=>{const xn=Sr.svgUrl=Pr.result;Vr.src=await xr?`${xn}#svgView(preserveAspectRatio(none))`:xn},Vr.onerror=Pr.onerror=Cn});Pr.readAsDataURL(ur),await qr}else Sr.bitmap=await createImageBitmap(ur);Sr.refCounter=1}catch(ur){console.error(ur),Sr=null}return On(this,j).set(pr,Sr),Sr&&On(this,j).set(Sr.id,Sr),Sr};class it{constructor(pr=128){Xo(this,st,[]);Xo(this,ot,!1);Xo(this,nt,void 0);Xo(this,vt,-1);ks(this,nt,pr)}add({cmd:pr,undo:Dr,mustExec:Sr,type:ur=NaN,overwriteIfSameType:xr=!1,keepUndo:Pr=!1}){if(Sr&&pr(),On(this,ot))return;const Vr={cmd:pr,undo:Dr,type:ur};if(On(this,vt)===-1){On(this,st).length>0&&(On(this,st).length=0),ks(this,vt,0),On(this,st).push(Vr);return}if(xr&&On(this,st)[On(this,vt)].type===ur){Pr&&(Vr.undo=On(this,st)[On(this,vt)].undo),On(this,st)[On(this,vt)]=Vr;return}const qr=On(this,vt)+1;qr===On(this,nt)?On(this,st).splice(0,1):(ks(this,vt,qr),qrxr===Dr[Pr]))return ft._colorsMapping.get(Sr);return Dr}getHexCode(pr){const Dr=this._colors.get(pr);return Dr?pt.Util.makeHexColor(...Dr):pr}};let et=ft;Dp(et,"_colorsMapping",new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]])),i.ColorManager=et;const Gr=class{constructor(pr,Dr,Sr,ur,xr,Pr){Xo(this,cr);Xo(this,Ar);Xo(this,Ir);Xo(this,_r);Xo(this,Rr);Xo(this,Or);Xo(this,Nr);Xo(this,sn);Xo(this,en);Xo(this,ln);Xo(this,pn);Xo(this,Zr);Xo(this,Ur);Xo(this,at,null);Xo(this,mt,new Map);Xo(this,St,new Map);Xo(this,_t,null);Xo(this,Mt,null);Xo(this,Et,new it);Xo(this,kt,0);Xo(this,wt,new Set);Xo(this,ct,null);Xo(this,It,null);Xo(this,At,new Set);Xo(this,Ot,null);Xo(this,Pt,new Rt);Xo(this,zt,!1);Xo(this,Dt,!1);Xo(this,Nt,null);Xo(this,$t,pt.AnnotationEditorType.NONE);Xo(this,Ut,new Set);Xo(this,Ht,null);Xo(this,Vt,this.blur.bind(this));Xo(this,Xt,this.focus.bind(this));Xo(this,qt,this.copy.bind(this));Xo(this,er,this.cut.bind(this));Xo(this,lr,this.paste.bind(this));Xo(this,Jt,this.keydown.bind(this));Xo(this,Yt,this.onEditingAction.bind(this));Xo(this,rr,this.onPageChanging.bind(this));Xo(this,jt,this.onScaleChanging.bind(this));Xo(this,ar,this.onRotationChanging.bind(this));Xo(this,sr,{isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1});Xo(this,Zt,[0,0]);Xo(this,Kt,null);Xo(this,or,null);Xo(this,tr,null);ks(this,or,pr),ks(this,tr,Dr),ks(this,_t,Sr),this._eventBus=ur,this._eventBus._on("editingaction",On(this,Yt)),this._eventBus._on("pagechanging",On(this,rr)),this._eventBus._on("scalechanging",On(this,jt)),this._eventBus._on("rotationchanging",On(this,ar)),ks(this,Mt,xr.annotationStorage),ks(this,Ot,xr.filterFactory),ks(this,Ht,Pr),this.viewParameters={realScale:Lt.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:0}}static get _keyboardManager(){const pr=Gr.prototype,Dr=xr=>{const{activeElement:Pr}=document;return Pr&&On(xr,or).contains(Pr)&&xr.hasSomethingToControl()},Sr=this.TRANSLATE_SMALL,ur=this.TRANSLATE_BIG;return(0,pt.shadow)(this,"_keyboardManager",new xt([[["ctrl+a","mac+meta+a"],pr.selectAll],[["ctrl+z","mac+meta+z"],pr.undo],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],pr.redo],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],pr.delete],[["Escape","mac+Escape"],pr.unselectAll],[["ArrowLeft","mac+ArrowLeft"],pr.translateSelectedEditors,{args:[-Sr,0],checker:Dr}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],pr.translateSelectedEditors,{args:[-ur,0],checker:Dr}],[["ArrowRight","mac+ArrowRight"],pr.translateSelectedEditors,{args:[Sr,0],checker:Dr}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],pr.translateSelectedEditors,{args:[ur,0],checker:Dr}],[["ArrowUp","mac+ArrowUp"],pr.translateSelectedEditors,{args:[0,-Sr],checker:Dr}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],pr.translateSelectedEditors,{args:[0,-ur],checker:Dr}],[["ArrowDown","mac+ArrowDown"],pr.translateSelectedEditors,{args:[0,Sr],checker:Dr}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],pr.translateSelectedEditors,{args:[0,ur],checker:Dr}]]))}destroy(){hs(this,_r,JE).call(this),hs(this,Ar,w_).call(this),this._eventBus._off("editingaction",On(this,Yt)),this._eventBus._off("pagechanging",On(this,rr)),this._eventBus._off("scalechanging",On(this,jt)),this._eventBus._off("rotationchanging",On(this,ar));for(const pr of On(this,St).values())pr.destroy();On(this,St).clear(),On(this,mt).clear(),On(this,At).clear(),ks(this,at,null),On(this,Ut).clear(),On(this,Et).destroy(),On(this,_t).destroy()}get hcmFilter(){return(0,pt.shadow)(this,"hcmFilter",On(this,Ht)?On(this,Ot).addHCMFilter(On(this,Ht).foreground,On(this,Ht).background):"none")}get direction(){return(0,pt.shadow)(this,"direction",getComputedStyle(On(this,or)).direction)}editAltText(pr){var Dr;(Dr=On(this,_t))==null||Dr.editAltText(this,pr)}onPageChanging({pageNumber:pr}){ks(this,kt,pr-1)}focusMainContainer(){On(this,or).focus()}findParent(pr,Dr){for(const Sr of On(this,St).values()){const{x:ur,y:xr,width:Pr,height:Vr}=Sr.div.getBoundingClientRect();if(pr>=ur&&pr<=ur+Pr&&Dr>=xr&&Dr<=xr+Vr)return Sr}return null}disableUserSelect(pr=!1){On(this,tr).classList.toggle("noUserSelect",pr)}addShouldRescale(pr){On(this,At).add(pr)}removeShouldRescale(pr){On(this,At).delete(pr)}onScaleChanging({scale:pr}){this.commitOrRemove(),this.viewParameters.realScale=pr*Lt.PixelsPerInch.PDF_TO_CSS_UNITS;for(const Dr of On(this,At))Dr.onScaleChanging()}onRotationChanging({pagesRotation:pr}){this.commitOrRemove(),this.viewParameters.rotation=pr}addToAnnotationStorage(pr){!pr.isEmpty()&&On(this,Mt)&&!On(this,Mt).has(pr.id)&&On(this,Mt).setValue(pr.id,pr)}blur(){if(!this.hasSelection)return;const{activeElement:pr}=document;for(const Dr of On(this,Ut))if(Dr.div.contains(pr)){ks(this,Nt,[Dr,pr]),Dr._focusEventsAllowed=!1;break}}focus(){if(!On(this,Nt))return;const[pr,Dr]=On(this,Nt);ks(this,Nt,null),Dr.addEventListener("focusin",()=>{pr._focusEventsAllowed=!0},{once:!0}),Dr.focus()}addEditListeners(){hs(this,Ir,C_).call(this),hs(this,Rr,R_).call(this)}removeEditListeners(){hs(this,_r,JE).call(this),hs(this,Or,M_).call(this)}copy(pr){var Sr;if(pr.preventDefault(),(Sr=On(this,at))==null||Sr.commitOrRemove(),!this.hasSelection)return;const Dr=[];for(const ur of On(this,Ut)){const xr=ur.serialize(!0);xr&&Dr.push(xr)}Dr.length!==0&&pr.clipboardData.setData("application/pdfjs",JSON.stringify(Dr))}cut(pr){this.copy(pr),this.delete()}paste(pr){pr.preventDefault();const{clipboardData:Dr}=pr;for(const xr of Dr.items)for(const Pr of On(this,It))if(Pr.isHandlingMimeForPasting(xr.type)){Pr.paste(xr,this.currentLayer);return}let Sr=Dr.getData("application/pdfjs");if(!Sr)return;try{Sr=JSON.parse(Sr)}catch(xr){(0,pt.warn)(`paste: "${xr.message}".`);return}if(!Array.isArray(Sr))return;this.unselectAll();const ur=this.currentLayer;try{const xr=[];for(const qr of Sr){const rn=ur.deserialize(qr);if(!rn)return;xr.push(rn)}const Pr=()=>{for(const qr of xr)hs(this,pn,I_).call(this,qr);hs(this,Ur,k_).call(this,xr)},Vr=()=>{for(const qr of xr)qr.remove()};this.addCommands({cmd:Pr,undo:Vr,mustExec:!0})}catch(xr){(0,pt.warn)(`paste: "${xr.message}".`)}}keydown(pr){var Dr;(Dr=this.getActive())!=null&&Dr.shouldGetKeyboardEvents()||Gr._keyboardManager.exec(this,pr)}onEditingAction(pr){["undo","redo","delete","selectAll"].includes(pr.name)&&this[pr.name]()}setEditingState(pr){pr?(hs(this,cr,cS).call(this),hs(this,Ir,C_).call(this),hs(this,Rr,R_).call(this),hs(this,Nr,Om).call(this,{isEditing:On(this,$t)!==pt.AnnotationEditorType.NONE,isEmpty:hs(this,Zr,W2).call(this),hasSomethingToUndo:On(this,Et).hasSomethingToUndo(),hasSomethingToRedo:On(this,Et).hasSomethingToRedo(),hasSelectedEditor:!1})):(hs(this,Ar,w_).call(this),hs(this,_r,JE).call(this),hs(this,Or,M_).call(this),hs(this,Nr,Om).call(this,{isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(pr){if(!On(this,It)){ks(this,It,pr);for(const Dr of On(this,It))hs(this,sn,V2).call(this,Dr.defaultPropertiesToUpdate)}}getId(){return On(this,Pt).getId()}get currentLayer(){return On(this,St).get(On(this,kt))}getLayer(pr){return On(this,St).get(pr)}get currentPageIndex(){return On(this,kt)}addLayer(pr){On(this,St).set(pr.pageIndex,pr),On(this,zt)?pr.enable():pr.disable()}removeLayer(pr){On(this,St).delete(pr.pageIndex)}updateMode(pr,Dr=null){if(On(this,$t)!==pr){if(ks(this,$t,pr),pr===pt.AnnotationEditorType.NONE){this.setEditingState(!1),hs(this,ln,dS).call(this);return}this.setEditingState(!0),hs(this,en,fS).call(this),this.unselectAll();for(const Sr of On(this,St).values())Sr.updateMode(pr);if(Dr){for(const Sr of On(this,mt).values())if(Sr.annotationElementId===Dr){this.setSelected(Sr),Sr.enterInEditMode();break}}}}updateToolbar(pr){pr!==On(this,$t)&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:pr})}updateParams(pr,Dr){if(On(this,It)){if(pr===pt.AnnotationEditorParamsType.CREATE){this.currentLayer.addNewEditor(pr);return}for(const Sr of On(this,Ut))Sr.updateParams(pr,Dr);for(const Sr of On(this,It))Sr.updateDefaultParams(pr,Dr)}}enableWaiting(pr=!1){if(On(this,Dt)!==pr){ks(this,Dt,pr);for(const Dr of On(this,St).values())pr?Dr.disableClick():Dr.enableClick(),Dr.div.classList.toggle("waiting",pr)}}getEditors(pr){const Dr=[];for(const Sr of On(this,mt).values())Sr.pageIndex===pr&&Dr.push(Sr);return Dr}getEditor(pr){return On(this,mt).get(pr)}addEditor(pr){On(this,mt).set(pr.id,pr)}removeEditor(pr){var Dr;On(this,mt).delete(pr.id),this.unselect(pr),(!pr.annotationElementId||!On(this,wt).has(pr.annotationElementId))&&((Dr=On(this,Mt))==null||Dr.remove(pr.id))}addDeletedAnnotationElement(pr){On(this,wt).add(pr.annotationElementId),pr.deleted=!0}isDeletedAnnotationElement(pr){return On(this,wt).has(pr)}removeDeletedAnnotationElement(pr){On(this,wt).delete(pr.annotationElementId),pr.deleted=!1}setActiveEditor(pr){On(this,at)!==pr&&(ks(this,at,pr),pr&&hs(this,sn,V2).call(this,pr.propertiesToUpdate))}toggleSelected(pr){if(On(this,Ut).has(pr)){On(this,Ut).delete(pr),pr.unselect(),hs(this,Nr,Om).call(this,{hasSelectedEditor:this.hasSelection});return}On(this,Ut).add(pr),pr.select(),hs(this,sn,V2).call(this,pr.propertiesToUpdate),hs(this,Nr,Om).call(this,{hasSelectedEditor:!0})}setSelected(pr){for(const Dr of On(this,Ut))Dr!==pr&&Dr.unselect();On(this,Ut).clear(),On(this,Ut).add(pr),pr.select(),hs(this,sn,V2).call(this,pr.propertiesToUpdate),hs(this,Nr,Om).call(this,{hasSelectedEditor:!0})}isSelected(pr){return On(this,Ut).has(pr)}unselect(pr){pr.unselect(),On(this,Ut).delete(pr),hs(this,Nr,Om).call(this,{hasSelectedEditor:this.hasSelection})}get hasSelection(){return On(this,Ut).size!==0}undo(){On(this,Et).undo(),hs(this,Nr,Om).call(this,{hasSomethingToUndo:On(this,Et).hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:hs(this,Zr,W2).call(this)})}redo(){On(this,Et).redo(),hs(this,Nr,Om).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:On(this,Et).hasSomethingToRedo(),isEmpty:hs(this,Zr,W2).call(this)})}addCommands(pr){On(this,Et).add(pr),hs(this,Nr,Om).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:hs(this,Zr,W2).call(this)})}delete(){if(this.commitOrRemove(),!this.hasSelection)return;const pr=[...On(this,Ut)],Dr=()=>{for(const ur of pr)ur.remove()},Sr=()=>{for(const ur of pr)hs(this,pn,I_).call(this,ur)};this.addCommands({cmd:Dr,undo:Sr,mustExec:!0})}commitOrRemove(){var pr;(pr=On(this,at))==null||pr.commitOrRemove()}hasSomethingToControl(){return On(this,at)||this.hasSelection}selectAll(){for(const pr of On(this,Ut))pr.commit();hs(this,Ur,k_).call(this,On(this,mt).values())}unselectAll(){if(On(this,at)){On(this,at).commitOrRemove();return}if(this.hasSelection){for(const pr of On(this,Ut))pr.unselect();On(this,Ut).clear(),hs(this,Nr,Om).call(this,{hasSelectedEditor:!1})}}translateSelectedEditors(pr,Dr,Sr=!1){if(Sr||this.commitOrRemove(),!this.hasSelection)return;On(this,Zt)[0]+=pr,On(this,Zt)[1]+=Dr;const[ur,xr]=On(this,Zt),Pr=[...On(this,Ut)],Vr=1e3;On(this,Kt)&&clearTimeout(On(this,Kt)),ks(this,Kt,setTimeout(()=>{ks(this,Kt,null),On(this,Zt)[0]=On(this,Zt)[1]=0,this.addCommands({cmd:()=>{for(const qr of Pr)On(this,mt).has(qr.id)&&qr.translateInPage(ur,xr)},undo:()=>{for(const qr of Pr)On(this,mt).has(qr.id)&&qr.translateInPage(-ur,-xr)},mustExec:!1})},Vr));for(const qr of Pr)qr.translateInPage(pr,Dr)}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),ks(this,ct,new Map);for(const pr of On(this,Ut))On(this,ct).set(pr,{savedX:pr.x,savedY:pr.y,savedPageIndex:pr.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!On(this,ct))return!1;this.disableUserSelect(!1);const pr=On(this,ct);ks(this,ct,null);let Dr=!1;for(const[{x:ur,y:xr,pageIndex:Pr},Vr]of pr)Vr.newX=ur,Vr.newY=xr,Vr.newPageIndex=Pr,Dr||(Dr=ur!==Vr.savedX||xr!==Vr.savedY||Pr!==Vr.savedPageIndex);if(!Dr)return!1;const Sr=(ur,xr,Pr,Vr)=>{if(On(this,mt).has(ur.id)){const qr=On(this,St).get(Vr);qr?ur._setParentAndPosition(qr,xr,Pr):(ur.pageIndex=Vr,ur.x=xr,ur.y=Pr)}};return this.addCommands({cmd:()=>{for(const[ur,{newX:xr,newY:Pr,newPageIndex:Vr}]of pr)Sr(ur,xr,Pr,Vr)},undo:()=>{for(const[ur,{savedX:xr,savedY:Pr,savedPageIndex:Vr}]of pr)Sr(ur,xr,Pr,Vr)},mustExec:!0}),!0}dragSelectedEditors(pr,Dr){if(On(this,ct))for(const Sr of On(this,ct).keys())Sr.drag(pr,Dr)}rebuild(pr){if(pr.parent===null){const Dr=this.getLayer(pr.pageIndex);Dr?(Dr.changeParent(pr),Dr.addOrRebuild(pr)):(this.addEditor(pr),this.addToAnnotationStorage(pr),pr.rebuild())}else pr.parent.addOrRebuild(pr)}isActive(pr){return On(this,at)===pr}getActive(){return On(this,at)}getMode(){return On(this,$t)}get imageManager(){return(0,pt.shadow)(this,"imageManager",new o)}};let Tt=Gr;at=new WeakMap,mt=new WeakMap,St=new WeakMap,_t=new WeakMap,Mt=new WeakMap,Et=new WeakMap,kt=new WeakMap,wt=new WeakMap,ct=new WeakMap,It=new WeakMap,At=new WeakMap,Ot=new WeakMap,Pt=new WeakMap,zt=new WeakMap,Dt=new WeakMap,Nt=new WeakMap,$t=new WeakMap,Ut=new WeakMap,Ht=new WeakMap,Vt=new WeakMap,Xt=new WeakMap,qt=new WeakMap,er=new WeakMap,lr=new WeakMap,Jt=new WeakMap,Yt=new WeakMap,rr=new WeakMap,jt=new WeakMap,ar=new WeakMap,sr=new WeakMap,Zt=new WeakMap,Kt=new WeakMap,or=new WeakMap,tr=new WeakMap,cr=new WeakSet,cS=function(){window.addEventListener("focus",On(this,Xt)),window.addEventListener("blur",On(this,Vt))},Ar=new WeakSet,w_=function(){window.removeEventListener("focus",On(this,Xt)),window.removeEventListener("blur",On(this,Vt))},Ir=new WeakSet,C_=function(){window.addEventListener("keydown",On(this,Jt),{capture:!0})},_r=new WeakSet,JE=function(){window.removeEventListener("keydown",On(this,Jt),{capture:!0})},Rr=new WeakSet,R_=function(){document.addEventListener("copy",On(this,qt)),document.addEventListener("cut",On(this,er)),document.addEventListener("paste",On(this,lr))},Or=new WeakSet,M_=function(){document.removeEventListener("copy",On(this,qt)),document.removeEventListener("cut",On(this,er)),document.removeEventListener("paste",On(this,lr))},Nr=new WeakSet,Om=function(pr){Object.entries(pr).some(([Sr,ur])=>On(this,sr)[Sr]!==ur)&&this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(On(this,sr),pr)})},sn=new WeakSet,V2=function(pr){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:pr})},en=new WeakSet,fS=function(){if(!On(this,zt)){ks(this,zt,!0);for(const pr of On(this,St).values())pr.enable()}},ln=new WeakSet,dS=function(){if(this.unselectAll(),On(this,zt)){ks(this,zt,!1);for(const pr of On(this,St).values())pr.disable()}},pn=new WeakSet,I_=function(pr){const Dr=On(this,St).get(pr.pageIndex);Dr?Dr.addOrRebuild(pr):this.addEditor(pr)},Zr=new WeakSet,W2=function(){if(On(this,mt).size===0)return!0;if(On(this,mt).size===1)for(const pr of On(this,mt).values())return pr.isEmpty();return!1},Ur=new WeakSet,k_=function(pr){On(this,Ut).clear();for(const Dr of pr)Dr.isEmpty()||(On(this,Ut).add(Dr),Dr.select());hs(this,Nr,Om).call(this,{hasSelectedEditor:!0})},Dp(Tt,"TRANSLATE_SMALL",1),Dp(Tt,"TRANSLATE_BIG",10),i.AnnotationEditorUIManager=Tt},(a,i,_e)=>{var kt,wt,ct,It,At,Ot,Pt,zt,Dt,Nt,$t,Ut,o2,Vt,s2,qt,L_,lr,QE,Yt,qE,jt,j2,sr,Y2;Object.defineProperty(i,"__esModule",{value:!0}),i.StatTimer=i.RenderingCancelledException=i.PixelsPerInch=i.PageViewport=i.PDFDateString=i.DOMStandardFontDataFactory=i.DOMSVGFactory=i.DOMFilterFactory=i.DOMCanvasFactory=i.DOMCMapReaderFactory=void 0,i.deprecated=vt,i.getColorValues=mt,i.getCurrentTransform=St,i.getCurrentTransformInverse=_t,i.getFilenameFromUrl=_,i.getPdfFilenameFromUrl=rt,i.getRGB=at,i.getXfaPageViewport=ft,i.isDataScheme=ht,i.isPdfFile=j,i.isValidFetchUrl=st,i.loadScript=nt,i.noContextMenu=ot,i.setLayerDimensions=Mt;var pt=_e(7),Lt=_e(1);const Gt="http://www.w3.org/2000/svg",Et=class{};let Ct=Et;Dp(Ct,"CSS",96),Dp(Ct,"PDF",72),Dp(Ct,"PDF_TO_CSS_UNITS",Et.CSS/Et.PDF),i.PixelsPerInch=Ct;class Rt extends pt.BaseFilterFactory{constructor({docId:tr,ownerDocument:cr=globalThis.document}={}){super();Xo(this,Ut);Xo(this,Vt);Xo(this,qt);Xo(this,lr);Xo(this,Yt);Xo(this,jt);Xo(this,sr);Xo(this,kt,void 0);Xo(this,wt,void 0);Xo(this,ct,void 0);Xo(this,It,void 0);Xo(this,At,void 0);Xo(this,Ot,void 0);Xo(this,Pt,void 0);Xo(this,zt,void 0);Xo(this,Dt,void 0);Xo(this,Nt,void 0);Xo(this,$t,0);ks(this,ct,tr),ks(this,It,cr)}addFilter(tr){if(!tr)return"none";let cr=On(this,Ut,o2).get(tr);if(cr)return cr;let mr,Ar,br,Ir;if(tr.length===1){const Rr=tr[0],zr=new Array(256);for(let Or=0;Or<256;Or++)zr[Or]=Rr[Or]/255;Ir=mr=Ar=br=zr.join(",")}else{const[Rr,zr,Or]=tr,kr=new Array(256),Nr=new Array(256),Qr=new Array(256);for(let sn=0;sn<256;sn++)kr[sn]=Rr[sn]/255,Nr[sn]=zr[sn]/255,Qr[sn]=Or[sn]/255;mr=kr.join(","),Ar=Nr.join(","),br=Qr.join(","),Ir=`${mr}${Ar}${br}`}if(cr=On(this,Ut,o2).get(Ir),cr)return On(this,Ut,o2).set(tr,cr),cr;const Tr=`g_${On(this,ct)}_transfer_map_${G2(this,$t)._++}`,_r=`url(#${Tr})`;On(this,Ut,o2).set(tr,_r),On(this,Ut,o2).set(Ir,_r);const Er=hs(this,lr,QE).call(this,Tr);return hs(this,jt,j2).call(this,mr,Ar,br,Er),_r}addHCMFilter(tr,cr){var zr;const mr=`${tr}-${cr}`;if(On(this,Ot)===mr)return On(this,Pt);if(ks(this,Ot,mr),ks(this,Pt,"none"),(zr=On(this,At))==null||zr.remove(),!tr||!cr)return On(this,Pt);const Ar=hs(this,sr,Y2).call(this,tr);tr=Lt.Util.makeHexColor(...Ar);const br=hs(this,sr,Y2).call(this,cr);if(cr=Lt.Util.makeHexColor(...br),On(this,Vt,s2).style.color="",tr==="#000000"&&cr==="#ffffff"||tr===cr)return On(this,Pt);const Ir=new Array(256);for(let Or=0;Or<=255;Or++){const kr=Or/255;Ir[Or]=kr<=.03928?kr/12.92:((kr+.055)/1.055)**2.4}const Tr=Ir.join(","),_r=`g_${On(this,ct)}_hcm_filter`,Er=ks(this,zt,hs(this,lr,QE).call(this,_r));hs(this,jt,j2).call(this,Tr,Tr,Tr,Er),hs(this,qt,L_).call(this,Er);const Rr=(Or,kr)=>{const Nr=Ar[Or]/255,Qr=br[Or]/255,sn=new Array(kr+1);for(let un=0;un<=kr;un++)sn[un]=Nr+un/kr*(Qr-Nr);return sn.join(",")};return hs(this,jt,j2).call(this,Rr(0,5),Rr(1,5),Rr(2,5),Er),ks(this,Pt,`url(#${_r})`),On(this,Pt)}addHighlightHCMFilter(tr,cr,mr,Ar){var Qr;const br=`${tr}-${cr}-${mr}-${Ar}`;if(On(this,Dt)===br)return On(this,Nt);if(ks(this,Dt,br),ks(this,Nt,"none"),(Qr=On(this,zt))==null||Qr.remove(),!tr||!cr)return On(this,Nt);const[Ir,Tr]=[tr,cr].map(hs(this,sr,Y2).bind(this));let _r=Math.round(.2126*Ir[0]+.7152*Ir[1]+.0722*Ir[2]),Er=Math.round(.2126*Tr[0]+.7152*Tr[1]+.0722*Tr[2]),[Rr,zr]=[mr,Ar].map(hs(this,sr,Y2).bind(this));Er<_r&&([_r,Er,Rr,zr]=[Er,_r,zr,Rr]),On(this,Vt,s2).style.color="";const Or=(sn,un,en)=>{const Xr=new Array(256),ln=(Er-_r)/en,mn=sn/255,pn=(un-sn)/(255*en);let Tn=0;for(let Zr=0;Zr<=en;Zr++){const Fr=Math.round(_r+Zr*ln),Ur=mn+Zr*pn;for(let Wr=Tn;Wr<=Fr;Wr++)Xr[Wr]=Ur;Tn=Fr+1}for(let Zr=Tn;Zr<256;Zr++)Xr[Zr]=Xr[Tn-1];return Xr.join(",")},kr=`g_${On(this,ct)}_hcm_highlight_filter`,Nr=ks(this,zt,hs(this,lr,QE).call(this,kr));return hs(this,qt,L_).call(this,Nr),hs(this,jt,j2).call(this,Or(Rr[0],zr[0],5),Or(Rr[1],zr[1],5),Or(Rr[2],zr[2],5),Nr),ks(this,Nt,`url(#${kr})`),On(this,Nt)}destroy(tr=!1){tr&&(On(this,Pt)||On(this,Nt))||(On(this,wt)&&(On(this,wt).parentNode.parentNode.remove(),ks(this,wt,null)),On(this,kt)&&(On(this,kt).clear(),ks(this,kt,null)),ks(this,$t,0))}}kt=new WeakMap,wt=new WeakMap,ct=new WeakMap,It=new WeakMap,At=new WeakMap,Ot=new WeakMap,Pt=new WeakMap,zt=new WeakMap,Dt=new WeakMap,Nt=new WeakMap,$t=new WeakMap,Ut=new WeakSet,o2=function(){return On(this,kt)||ks(this,kt,new Map)},Vt=new WeakSet,s2=function(){if(!On(this,wt)){const tr=On(this,It).createElement("div"),{style:cr}=tr;cr.visibility="hidden",cr.contain="strict",cr.width=cr.height=0,cr.position="absolute",cr.top=cr.left=0,cr.zIndex=-1;const mr=On(this,It).createElementNS(Gt,"svg");mr.setAttribute("width",0),mr.setAttribute("height",0),ks(this,wt,On(this,It).createElementNS(Gt,"defs")),tr.append(mr),mr.append(On(this,wt)),On(this,It).body.append(tr)}return On(this,wt)},qt=new WeakSet,L_=function(tr){const cr=On(this,It).createElementNS(Gt,"feColorMatrix");cr.setAttribute("type","matrix"),cr.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),tr.append(cr)},lr=new WeakSet,QE=function(tr){const cr=On(this,It).createElementNS(Gt,"filter");return cr.setAttribute("color-interpolation-filters","sRGB"),cr.setAttribute("id",tr),On(this,Vt,s2).append(cr),cr},Yt=new WeakSet,qE=function(tr,cr,mr){const Ar=On(this,It).createElementNS(Gt,cr);Ar.setAttribute("type","discrete"),Ar.setAttribute("tableValues",mr),tr.append(Ar)},jt=new WeakSet,j2=function(tr,cr,mr,Ar){const br=On(this,It).createElementNS(Gt,"feComponentTransfer");Ar.append(br),hs(this,Yt,qE).call(this,br,"feFuncR",tr),hs(this,Yt,qE).call(this,br,"feFuncG",cr),hs(this,Yt,qE).call(this,br,"feFuncB",mr)},sr=new WeakSet,Y2=function(tr){return On(this,Vt,s2).style.color=tr,at(getComputedStyle(On(this,Vt,s2)).getPropertyValue("color"))},i.DOMFilterFactory=Rt;class o extends pt.BaseCanvasFactory{constructor({ownerDocument:or=globalThis.document}={}){super(),this._document=or}_createCanvas(or,tr){const cr=this._document.createElement("canvas");return cr.width=or,cr.height=tr,cr}}i.DOMCanvasFactory=o;async function it(Kt,or=!1){if(st(Kt,document.baseURI)){const tr=await fetch(Kt);if(!tr.ok)throw new Error(tr.statusText);return or?new Uint8Array(await tr.arrayBuffer()):(0,Lt.stringToBytes)(await tr.text())}return new Promise((tr,cr)=>{const mr=new XMLHttpRequest;mr.open("GET",Kt,!0),or&&(mr.responseType="arraybuffer"),mr.onreadystatechange=()=>{if(mr.readyState===XMLHttpRequest.DONE){if(mr.status===200||mr.status===0){let Ar;if(or&&mr.response?Ar=new Uint8Array(mr.response):!or&&mr.responseText&&(Ar=(0,Lt.stringToBytes)(mr.responseText)),Ar){tr(Ar);return}}cr(new Error(mr.statusText))}},mr.send(null)})}class xt extends pt.BaseCMapReaderFactory{_fetchData(or,tr){return it(or,this.isCompressed).then(cr=>({cMapData:cr,compressionType:tr}))}}i.DOMCMapReaderFactory=xt;class et extends pt.BaseStandardFontDataFactory{_fetchData(or){return it(or,!0)}}i.DOMStandardFontDataFactory=et;class Tt extends pt.BaseSVGFactory{_createSVG(or){return document.createElementNS(Gt,or)}}i.DOMSVGFactory=Tt;class yt{constructor({viewBox:or,scale:tr,rotation:cr,offsetX:mr=0,offsetY:Ar=0,dontFlip:br=!1}){this.viewBox=or,this.scale=tr,this.rotation=cr,this.offsetX=mr,this.offsetY=Ar;const Ir=(or[2]+or[0])/2,Tr=(or[3]+or[1])/2;let _r,Er,Rr,zr;switch(cr%=360,cr<0&&(cr+=360),cr){case 180:_r=-1,Er=0,Rr=0,zr=1;break;case 90:_r=0,Er=1,Rr=1,zr=0;break;case 270:_r=0,Er=-1,Rr=-1,zr=0;break;case 0:_r=1,Er=0,Rr=0,zr=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}br&&(Rr=-Rr,zr=-zr);let Or,kr,Nr,Qr;_r===0?(Or=Math.abs(Tr-or[1])*tr+mr,kr=Math.abs(Ir-or[0])*tr+Ar,Nr=(or[3]-or[1])*tr,Qr=(or[2]-or[0])*tr):(Or=Math.abs(Ir-or[0])*tr+mr,kr=Math.abs(Tr-or[1])*tr+Ar,Nr=(or[2]-or[0])*tr,Qr=(or[3]-or[1])*tr),this.transform=[_r*tr,Er*tr,Rr*tr,zr*tr,Or-_r*tr*Ir-Rr*tr*Tr,kr-Er*tr*Ir-zr*tr*Tr],this.width=Nr,this.height=Qr}get rawDims(){const{viewBox:or}=this;return(0,Lt.shadow)(this,"rawDims",{pageWidth:or[2]-or[0],pageHeight:or[3]-or[1],pageX:or[0],pageY:or[1]})}clone({scale:or=this.scale,rotation:tr=this.rotation,offsetX:cr=this.offsetX,offsetY:mr=this.offsetY,dontFlip:Ar=!1}={}){return new yt({viewBox:this.viewBox.slice(),scale:or,rotation:tr,offsetX:cr,offsetY:mr,dontFlip:Ar})}convertToViewportPoint(or,tr){return Lt.Util.applyTransform([or,tr],this.transform)}convertToViewportRectangle(or){const tr=Lt.Util.applyTransform([or[0],or[1]],this.transform),cr=Lt.Util.applyTransform([or[2],or[3]],this.transform);return[tr[0],tr[1],cr[0],cr[1]]}convertToPdfPoint(or,tr){return Lt.Util.applyInverseTransform([or,tr],this.transform)}}i.PageViewport=yt;class ut extends Lt.BaseException{constructor(or,tr=0){super(or,"RenderingCancelledException"),this.extraDelay=tr}}i.RenderingCancelledException=ut;function ht(Kt){const or=Kt.length;let tr=0;for(;tr{const mr=document.createElement("script");mr.src=Kt,mr.onload=function(Ar){or&&mr.remove(),tr(Ar)},mr.onerror=function(){cr(new Error(`Cannot load script at: ${mr.src}`))},(document.head||document.documentElement).append(mr)})}function vt(Kt){console.log("Deprecated API usage: "+Kt)}let dt;class bt{static toDateObject(or){if(!or||typeof or!="string")return null;dt||(dt=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const tr=dt.exec(or);if(!tr)return null;const cr=parseInt(tr[1],10);let mr=parseInt(tr[2],10);mr=mr>=1&&mr<=12?mr-1:0;let Ar=parseInt(tr[3],10);Ar=Ar>=1&&Ar<=31?Ar:1;let br=parseInt(tr[4],10);br=br>=0&&br<=23?br:0;let Ir=parseInt(tr[5],10);Ir=Ir>=0&&Ir<=59?Ir:0;let Tr=parseInt(tr[6],10);Tr=Tr>=0&&Tr<=59?Tr:0;const _r=tr[7]||"Z";let Er=parseInt(tr[8],10);Er=Er>=0&&Er<=23?Er:0;let Rr=parseInt(tr[9],10)||0;return Rr=Rr>=0&&Rr<=59?Rr:0,_r==="-"?(br+=Er,Ir+=Rr):_r==="+"&&(br-=Er,Ir-=Rr),new Date(Date.UTC(cr,mr,Ar,br,Ir,Tr))}}i.PDFDateString=bt;function ft(Kt,{scale:or=1,rotation:tr=0}){const{width:cr,height:mr}=Kt.attributes.style,Ar=[0,0,parseInt(cr),parseInt(mr)];return new yt({viewBox:Ar,scale:or,rotation:tr})}function at(Kt){if(Kt.startsWith("#")){const or=parseInt(Kt.slice(1),16);return[(or&16711680)>>16,(or&65280)>>8,or&255]}return Kt.startsWith("rgb(")?Kt.slice(4,-1).split(",").map(or=>parseInt(or)):Kt.startsWith("rgba(")?Kt.slice(5,-1).split(",").map(or=>parseInt(or)).slice(0,3):((0,Lt.warn)(`Not a valid color format: "${Kt}"`),[0,0,0])}function mt(Kt){const or=document.createElement("span");or.style.visibility="hidden",document.body.append(or);for(const tr of Kt.keys()){or.style.color=tr;const cr=window.getComputedStyle(or).color;Kt.set(tr,at(cr))}or.remove()}function St(Kt){const{a:or,b:tr,c:cr,d:mr,e:Ar,f:br}=Kt.getTransform();return[or,tr,cr,mr,Ar,br]}function _t(Kt){const{a:or,b:tr,c:cr,d:mr,e:Ar,f:br}=Kt.getTransform().invertSelf();return[or,tr,cr,mr,Ar,br]}function Mt(Kt,or,tr=!1,cr=!0){if(or instanceof yt){const{pageWidth:mr,pageHeight:Ar}=or.rawDims,{style:br}=Kt,Ir=Lt.FeatureTest.isCSSRoundSupported,Tr=`var(--scale-factor) * ${mr}px`,_r=`var(--scale-factor) * ${Ar}px`,Er=Ir?`round(${Tr}, 1px)`:`calc(${Tr})`,Rr=Ir?`round(${_r}, 1px)`:`calc(${_r})`;!tr||or.rotation%180===0?(br.width=Er,br.height=Rr):(br.width=Rr,br.height=Er)}cr&&Kt.setAttribute("data-main-rotation",or.rotation)}},(a,i,_e)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.BaseStandardFontDataFactory=i.BaseSVGFactory=i.BaseFilterFactory=i.BaseCanvasFactory=i.BaseCMapReaderFactory=void 0;var pt=_e(1);class Lt{constructor(){this.constructor===Lt&&(0,pt.unreachable)("Cannot initialize BaseFilterFactory.")}addFilter(xt){return"none"}addHCMFilter(xt,et){return"none"}addHighlightHCMFilter(xt,et,Tt,yt){return"none"}destroy(xt=!1){}}i.BaseFilterFactory=Lt;class Gt{constructor(){this.constructor===Gt&&(0,pt.unreachable)("Cannot initialize BaseCanvasFactory.")}create(xt,et){if(xt<=0||et<=0)throw new Error("Invalid canvas size");const Tt=this._createCanvas(xt,et);return{canvas:Tt,context:Tt.getContext("2d")}}reset(xt,et,Tt){if(!xt.canvas)throw new Error("Canvas is not specified");if(et<=0||Tt<=0)throw new Error("Invalid canvas size");xt.canvas.width=et,xt.canvas.height=Tt}destroy(xt){if(!xt.canvas)throw new Error("Canvas is not specified");xt.canvas.width=0,xt.canvas.height=0,xt.canvas=null,xt.context=null}_createCanvas(xt,et){(0,pt.unreachable)("Abstract method `_createCanvas` called.")}}i.BaseCanvasFactory=Gt;class Ct{constructor({baseUrl:xt=null,isCompressed:et=!0}){this.constructor===Ct&&(0,pt.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=xt,this.isCompressed=et}async fetch({name:xt}){if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!xt)throw new Error("CMap name must be specified.");const et=this.baseUrl+xt+(this.isCompressed?".bcmap":""),Tt=this.isCompressed?pt.CMapCompressionType.BINARY:pt.CMapCompressionType.NONE;return this._fetchData(et,Tt).catch(yt=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${et}`)})}_fetchData(xt,et){(0,pt.unreachable)("Abstract method `_fetchData` called.")}}i.BaseCMapReaderFactory=Ct;class Rt{constructor({baseUrl:xt=null}){this.constructor===Rt&&(0,pt.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=xt}async fetch({filename:xt}){if(!this.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!xt)throw new Error("Font filename must be specified.");const et=`${this.baseUrl}${xt}`;return this._fetchData(et).catch(Tt=>{throw new Error(`Unable to load font data at: ${et}`)})}_fetchData(xt){(0,pt.unreachable)("Abstract method `_fetchData` called.")}}i.BaseStandardFontDataFactory=Rt;class o{constructor(){this.constructor===o&&(0,pt.unreachable)("Cannot initialize BaseSVGFactory.")}create(xt,et,Tt=!1){if(xt<=0||et<=0)throw new Error("Invalid SVG dimensions");const yt=this._createSVG("svg:svg");return yt.setAttribute("version","1.1"),Tt||(yt.setAttribute("width",`${xt}px`),yt.setAttribute("height",`${et}px`)),yt.setAttribute("preserveAspectRatio","none"),yt.setAttribute("viewBox",`0 0 ${xt} ${et}`),yt}createElement(xt){if(typeof xt!="string")throw new Error("Invalid SVG element type");return this._createSVG(xt)}_createSVG(xt){(0,pt.unreachable)("Abstract method `_createSVG` called.")}}i.BaseSVGFactory=o},(a,i,_e)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.MurmurHash3_64=void 0;var pt=_e(1);const Lt=3285377520,Gt=4294901760,Ct=65535;class Rt{constructor(it){this.h1=it?it&4294967295:Lt,this.h2=it?it&4294967295:Lt}update(it){let xt,et;if(typeof it=="string"){xt=new Uint8Array(it.length*2),et=0;for(let vt=0,dt=it.length;vt>>8,xt[et++]=bt&255)}}else if((0,pt.isArrayBuffer)(it))xt=it.slice(),et=xt.byteLength;else throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");const Tt=et>>2,yt=et-Tt*4,ut=new Uint32Array(xt.buffer,0,Tt);let ht=0,j=0,_=this.h1,rt=this.h2;const tt=3432918353,st=461845907,ot=tt&Ct,nt=st&Ct;for(let vt=0;vt>>17,ht=ht*st&Gt|ht*nt&Ct,_^=ht,_=_<<13|_>>>19,_=_*5+3864292196):(j=ut[vt],j=j*tt&Gt|j*ot&Ct,j=j<<15|j>>>17,j=j*st&Gt|j*nt&Ct,rt^=j,rt=rt<<13|rt>>>19,rt=rt*5+3864292196);switch(ht=0,yt){case 3:ht^=xt[Tt*4+2]<<16;case 2:ht^=xt[Tt*4+1]<<8;case 1:ht^=xt[Tt*4],ht=ht*tt&Gt|ht*ot&Ct,ht=ht<<15|ht>>>17,ht=ht*st&Gt|ht*nt&Ct,Tt&1?_^=ht:rt^=ht}this.h1=_,this.h2=rt}hexdigest(){let it=this.h1,xt=this.h2;return it^=xt>>>1,it=it*3981806797&Gt|it*36045&Ct,xt=xt*4283543511&Gt|((xt<<16|it>>>16)*2950163797&Gt)>>>16,it^=xt>>>1,it=it*444984403&Gt|it*60499&Ct,xt=xt*3301882366&Gt|((xt<<16|it>>>16)*3120437893&Gt)>>>16,it^=xt>>>1,(it>>>0).toString(16).padStart(8,"0")+(xt>>>0).toString(16).padStart(8,"0")}}i.MurmurHash3_64=Rt},(a,i,_e)=>{var Ct;Object.defineProperty(i,"__esModule",{value:!0}),i.FontLoader=i.FontFaceObject=void 0;var pt=_e(1);class Lt{constructor({ownerDocument:o=globalThis.document,styleElement:it=null}){Xo(this,Ct,new Set);this._document=o,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(o){this.nativeFontFaces.add(o),this._document.fonts.add(o)}removeNativeFontFace(o){this.nativeFontFaces.delete(o),this._document.fonts.delete(o)}insertRule(o){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));const it=this.styleElement.sheet;it.insertRule(o,it.cssRules.length)}clear(){for(const o of this.nativeFontFaces)this._document.fonts.delete(o);this.nativeFontFaces.clear(),On(this,Ct).clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont(o){if(!(!o||On(this,Ct).has(o.loadedName))){if((0,pt.assert)(!this.disableFontFace,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){const{loadedName:it,src:xt,style:et}=o,Tt=new FontFace(it,xt,et);this.addNativeFontFace(Tt);try{await Tt.load(),On(this,Ct).add(it)}catch{(0,pt.warn)(`Cannot load system font: ${o.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(Tt)}return}(0,pt.unreachable)("Not implemented: loadSystemFont without the Font Loading API.")}}async bind(o){if(o.attached||o.missingFile&&!o.systemFontInfo)return;if(o.attached=!0,o.systemFontInfo){await this.loadSystemFont(o.systemFontInfo);return}if(this.isFontLoadingAPISupported){const xt=o.createNativeFontFace();if(xt){this.addNativeFontFace(xt);try{await xt.loaded}catch(et){throw(0,pt.warn)(`Failed to load font '${xt.family}': '${et}'.`),o.disableFontFace=!0,et}}return}const it=o.createFontFaceRule();if(it){if(this.insertRule(it),this.isSyncFontLoadingSupported)return;await new Promise(xt=>{const et=this._queueLoadingCallback(xt);this._prepareFontLoadEvent(o,et)})}}get isFontLoadingAPISupported(){var it;const o=!!((it=this._document)!=null&&it.fonts);return(0,pt.shadow)(this,"isFontLoadingAPISupported",o)}get isSyncFontLoadingSupported(){let o=!1;return(pt.isNodeJS||typeof navigator<"u"&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(o=!0),(0,pt.shadow)(this,"isSyncFontLoadingSupported",o)}_queueLoadingCallback(o){function it(){for((0,pt.assert)(!et.done,"completeRequest() cannot be called twice."),et.done=!0;xt.length>0&&xt[0].done;){const Tt=xt.shift();setTimeout(Tt.callback,0)}}const{loadingRequests:xt}=this,et={done:!1,complete:it,callback:o};return xt.push(et),et}get _loadTestFont(){const o=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return(0,pt.shadow)(this,"_loadTestFont",o)}_prepareFontLoadEvent(o,it){function xt(at,mt){return at.charCodeAt(mt)<<24|at.charCodeAt(mt+1)<<16|at.charCodeAt(mt+2)<<8|at.charCodeAt(mt+3)&255}function et(at,mt,St,_t){const Mt=at.substring(0,mt),Et=at.substring(mt+St);return Mt+_t+Et}let Tt,yt;const ut=this._document.createElement("canvas");ut.width=1,ut.height=1;const ht=ut.getContext("2d");let j=0;function _(at,mt){if(++j>30){(0,pt.warn)("Load test font never loaded."),mt();return}if(ht.font="30px "+at,ht.fillText(".",0,20),ht.getImageData(0,0,1,1).data[3]>0){mt();return}setTimeout(_.bind(null,at,mt))}const rt=`lt${Date.now()}${this.loadTestFontId++}`;let tt=this._loadTestFont;tt=et(tt,976,rt.length,rt);const ot=16,nt=1482184792;let vt=xt(tt,ot);for(Tt=0,yt=rt.length-3;Tt{ft.remove(),it.complete()})}}Ct=new WeakMap,i.FontLoader=Lt;class Gt{constructor(o,{isEvalSupported:it=!0,disableFontFace:xt=!1,ignoreErrors:et=!1,inspectFont:Tt=null}){this.compiledGlyphs=Object.create(null);for(const yt in o)this[yt]=o[yt];this.isEvalSupported=it!==!1,this.disableFontFace=xt===!0,this.ignoreErrors=et===!0,this._inspectFont=Tt}createNativeFontFace(){var it;if(!this.data||this.disableFontFace)return null;let o;if(!this.cssFontInfo)o=new FontFace(this.loadedName,this.data,{});else{const xt={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(xt.style=`oblique ${this.cssFontInfo.italicAngle}deg`),o=new FontFace(this.cssFontInfo.fontFamily,this.data,xt)}return(it=this._inspectFont)==null||it.call(this,this),o}createFontFaceRule(){var et;if(!this.data||this.disableFontFace)return null;const o=(0,pt.bytesToString)(this.data),it=`url(data:${this.mimetype};base64,${btoa(o)});`;let xt;if(!this.cssFontInfo)xt=`@font-face {font-family:"${this.loadedName}";src:${it}}`;else{let Tt=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(Tt+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),xt=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${Tt}src:${it}}`}return(et=this._inspectFont)==null||et.call(this,this,it),xt}getPathGenerator(o,it){if(this.compiledGlyphs[it]!==void 0)return this.compiledGlyphs[it];let xt;try{xt=o.get(this.loadedName+"_path_"+it)}catch(et){if(!this.ignoreErrors)throw et;return(0,pt.warn)(`getPathGenerator - ignoring character: "${et}".`),this.compiledGlyphs[it]=function(Tt,yt){}}if(this.isEvalSupported&&pt.FeatureTest.isEvalSupported){const et=[];for(const Tt of xt){const yt=Tt.args!==void 0?Tt.args.join(","):"";et.push("c.",Tt.cmd,"(",yt,`); +`)}return this.compiledGlyphs[it]=new Function("c","size",et.join(""))}return this.compiledGlyphs[it]=function(et,Tt){for(const yt of xt)yt.cmd==="scale"&&(yt.args=[Tt,-Tt]),et[yt.cmd].apply(et,yt.args)}}}i.FontFaceObject=Gt},(a,i,_e)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.NodeStandardFontDataFactory=i.NodeFilterFactory=i.NodeCanvasFactory=i.NodeCMapReaderFactory=void 0;var pt=_e(7);_e(1);const Lt=function(it){return new Promise((xt,et)=>{require$$5.readFile(it,(yt,ut)=>{if(yt||!ut){et(new Error(yt));return}xt(new Uint8Array(ut))})})};class Gt extends pt.BaseFilterFactory{}i.NodeFilterFactory=Gt;class Ct extends pt.BaseCanvasFactory{_createCanvas(xt,et){return require$$5.createCanvas(xt,et)}}i.NodeCanvasFactory=Ct;class Rt extends pt.BaseCMapReaderFactory{_fetchData(xt,et){return Lt(xt).then(Tt=>({cMapData:Tt,compressionType:et}))}}i.NodeCMapReaderFactory=Rt;class o extends pt.BaseStandardFontDataFactory{_fetchData(xt){return Lt(xt)}}i.NodeStandardFontDataFactory=o},(a,i,_e)=>{var wt,D_,It,P_;Object.defineProperty(i,"__esModule",{value:!0}),i.CanvasGraphics=void 0;var pt=_e(1),Lt=_e(6),Gt=_e(12),Ct=_e(13);const Rt=16,o=100,it=4096,xt=15,et=10,Tt=1e3,yt=16;function ut(Pt,zt){if(Pt._removeMirroring)throw new Error("Context is already forwarding operations.");Pt.__originalSave=Pt.save,Pt.__originalRestore=Pt.restore,Pt.__originalRotate=Pt.rotate,Pt.__originalScale=Pt.scale,Pt.__originalTranslate=Pt.translate,Pt.__originalTransform=Pt.transform,Pt.__originalSetTransform=Pt.setTransform,Pt.__originalResetTransform=Pt.resetTransform,Pt.__originalClip=Pt.clip,Pt.__originalMoveTo=Pt.moveTo,Pt.__originalLineTo=Pt.lineTo,Pt.__originalBezierCurveTo=Pt.bezierCurveTo,Pt.__originalRect=Pt.rect,Pt.__originalClosePath=Pt.closePath,Pt.__originalBeginPath=Pt.beginPath,Pt._removeMirroring=()=>{Pt.save=Pt.__originalSave,Pt.restore=Pt.__originalRestore,Pt.rotate=Pt.__originalRotate,Pt.scale=Pt.__originalScale,Pt.translate=Pt.__originalTranslate,Pt.transform=Pt.__originalTransform,Pt.setTransform=Pt.__originalSetTransform,Pt.resetTransform=Pt.__originalResetTransform,Pt.clip=Pt.__originalClip,Pt.moveTo=Pt.__originalMoveTo,Pt.lineTo=Pt.__originalLineTo,Pt.bezierCurveTo=Pt.__originalBezierCurveTo,Pt.rect=Pt.__originalRect,Pt.closePath=Pt.__originalClosePath,Pt.beginPath=Pt.__originalBeginPath,delete Pt._removeMirroring},Pt.save=function(){zt.save(),this.__originalSave()},Pt.restore=function(){zt.restore(),this.__originalRestore()},Pt.translate=function(Nt,$t){zt.translate(Nt,$t),this.__originalTranslate(Nt,$t)},Pt.scale=function(Nt,$t){zt.scale(Nt,$t),this.__originalScale(Nt,$t)},Pt.transform=function(Nt,$t,Ut,Ht,Vt,Xt){zt.transform(Nt,$t,Ut,Ht,Vt,Xt),this.__originalTransform(Nt,$t,Ut,Ht,Vt,Xt)},Pt.setTransform=function(Nt,$t,Ut,Ht,Vt,Xt){zt.setTransform(Nt,$t,Ut,Ht,Vt,Xt),this.__originalSetTransform(Nt,$t,Ut,Ht,Vt,Xt)},Pt.resetTransform=function(){zt.resetTransform(),this.__originalResetTransform()},Pt.rotate=function(Nt){zt.rotate(Nt),this.__originalRotate(Nt)},Pt.clip=function(Nt){zt.clip(Nt),this.__originalClip(Nt)},Pt.moveTo=function(Dt,Nt){zt.moveTo(Dt,Nt),this.__originalMoveTo(Dt,Nt)},Pt.lineTo=function(Dt,Nt){zt.lineTo(Dt,Nt),this.__originalLineTo(Dt,Nt)},Pt.bezierCurveTo=function(Dt,Nt,$t,Ut,Ht,Vt){zt.bezierCurveTo(Dt,Nt,$t,Ut,Ht,Vt),this.__originalBezierCurveTo(Dt,Nt,$t,Ut,Ht,Vt)},Pt.rect=function(Dt,Nt,$t,Ut){zt.rect(Dt,Nt,$t,Ut),this.__originalRect(Dt,Nt,$t,Ut)},Pt.closePath=function(){zt.closePath(),this.__originalClosePath()},Pt.beginPath=function(){zt.beginPath(),this.__originalBeginPath()}}class ht{constructor(zt){this.canvasFactory=zt,this.cache=Object.create(null)}getCanvas(zt,Dt,Nt){let $t;return this.cache[zt]!==void 0?($t=this.cache[zt],this.canvasFactory.reset($t,Dt,Nt)):($t=this.canvasFactory.create(Dt,Nt),this.cache[zt]=$t),$t}delete(zt){delete this.cache[zt]}clear(){for(const zt in this.cache){const Dt=this.cache[zt];this.canvasFactory.destroy(Dt),delete this.cache[zt]}}}function j(Pt,zt,Dt,Nt,$t,Ut,Ht,Vt,Xt,qt){const[er,lr,Jt,Yt,rr,jt]=(0,Lt.getCurrentTransform)(Pt);if(lr===0&&Jt===0){const Zt=Ht*er+rr,Kt=Math.round(Zt),or=Vt*Yt+jt,tr=Math.round(or),cr=(Ht+Xt)*er+rr,mr=Math.abs(Math.round(cr)-Kt)||1,Ar=(Vt+qt)*Yt+jt,br=Math.abs(Math.round(Ar)-tr)||1;return Pt.setTransform(Math.sign(er),0,0,Math.sign(Yt),Kt,tr),Pt.drawImage(zt,Dt,Nt,$t,Ut,0,0,mr,br),Pt.setTransform(er,lr,Jt,Yt,rr,jt),[mr,br]}if(er===0&&Yt===0){const Zt=Vt*Jt+rr,Kt=Math.round(Zt),or=Ht*lr+jt,tr=Math.round(or),cr=(Vt+qt)*Jt+rr,mr=Math.abs(Math.round(cr)-Kt)||1,Ar=(Ht+Xt)*lr+jt,br=Math.abs(Math.round(Ar)-tr)||1;return Pt.setTransform(0,Math.sign(lr),Math.sign(Jt),0,Kt,tr),Pt.drawImage(zt,Dt,Nt,$t,Ut,0,0,br,mr),Pt.setTransform(er,lr,Jt,Yt,rr,jt),[br,mr]}Pt.drawImage(zt,Dt,Nt,$t,Ut,Ht,Vt,Xt,qt);const ar=Math.hypot(er,lr),sr=Math.hypot(Jt,Yt);return[ar*Xt,sr*qt]}function _(Pt){const{width:zt,height:Dt}=Pt;if(zt>Tt||Dt>Tt)return null;const Nt=1e3,$t=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),Ut=zt+1;let Ht=new Uint8Array(Ut*(Dt+1)),Vt,Xt,qt;const er=zt+7&-8;let lr=new Uint8Array(er*Dt),Jt=0;for(const sr of Pt.data){let Zt=128;for(;Zt>0;)lr[Jt++]=sr&Zt?0:255,Zt>>=1}let Yt=0;for(Jt=0,lr[Jt]!==0&&(Ht[0]=1,++Yt),Xt=1;Xt>2)+(lr[Jt+1]?4:0)+(lr[Jt-er+1]?8:0),$t[sr]&&(Ht[qt+Xt]=$t[sr],++Yt),Jt++;if(lr[Jt-er]!==lr[Jt]&&(Ht[qt+Xt]=lr[Jt]?2:4,++Yt),Yt>Nt)return null}for(Jt=er*(Dt-1),qt=Vt*Ut,lr[Jt]!==0&&(Ht[qt]=8,++Yt),Xt=1;XtNt)return null;const rr=new Int32Array([0,Ut,-1,0,-Ut,0,0,0,1]),jt=new Path2D;for(Vt=0;Yt&&Vt<=Dt;Vt++){let sr=Vt*Ut;const Zt=sr+zt;for(;sr>4,Ht[sr]&=or>>2|or<<2),jt.lineTo(sr%Ut,sr/Ut|0),Ht[sr]||--Yt}while(Kt!==sr);--Vt}return lr=null,Ht=null,function(sr){sr.save(),sr.scale(1/zt,-1/Dt),sr.translate(0,-Dt),sr.fill(jt),sr.beginPath(),sr.restore()}}class rt{constructor(zt,Dt){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=pt.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=pt.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=pt.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps="none",this.startNewPathAndClipBox([0,0,zt,Dt])}clone(){const zt=Object.create(this);return zt.clipBox=this.clipBox.slice(),zt}setCurrentPoint(zt,Dt){this.x=zt,this.y=Dt}updatePathMinMax(zt,Dt,Nt){[Dt,Nt]=pt.Util.applyTransform([Dt,Nt],zt),this.minX=Math.min(this.minX,Dt),this.minY=Math.min(this.minY,Nt),this.maxX=Math.max(this.maxX,Dt),this.maxY=Math.max(this.maxY,Nt)}updateRectMinMax(zt,Dt){const Nt=pt.Util.applyTransform(Dt,zt),$t=pt.Util.applyTransform(Dt.slice(2),zt);this.minX=Math.min(this.minX,Nt[0],$t[0]),this.minY=Math.min(this.minY,Nt[1],$t[1]),this.maxX=Math.max(this.maxX,Nt[0],$t[0]),this.maxY=Math.max(this.maxY,Nt[1],$t[1])}updateScalingPathMinMax(zt,Dt){pt.Util.scaleMinMax(zt,Dt),this.minX=Math.min(this.minX,Dt[0]),this.maxX=Math.max(this.maxX,Dt[1]),this.minY=Math.min(this.minY,Dt[2]),this.maxY=Math.max(this.maxY,Dt[3])}updateCurvePathMinMax(zt,Dt,Nt,$t,Ut,Ht,Vt,Xt,qt,er){const lr=pt.Util.bezierBoundingBox(Dt,Nt,$t,Ut,Ht,Vt,Xt,qt);if(er){er[0]=Math.min(er[0],lr[0],lr[2]),er[1]=Math.max(er[1],lr[0],lr[2]),er[2]=Math.min(er[2],lr[1],lr[3]),er[3]=Math.max(er[3],lr[1],lr[3]);return}this.updateRectMinMax(zt,lr)}getPathBoundingBox(zt=Gt.PathType.FILL,Dt=null){const Nt=[this.minX,this.minY,this.maxX,this.maxY];if(zt===Gt.PathType.STROKE){Dt||(0,pt.unreachable)("Stroke bounding box must include transform.");const $t=pt.Util.singularValueDecompose2dScale(Dt),Ut=$t[0]*this.lineWidth/2,Ht=$t[1]*this.lineWidth/2;Nt[0]-=Ut,Nt[1]-=Ht,Nt[2]+=Ut,Nt[3]+=Ht}return Nt}updateClipFromPath(){const zt=pt.Util.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(zt||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(zt){this.clipBox=zt,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(zt=Gt.PathType.FILL,Dt=null){return pt.Util.intersect(this.clipBox,this.getPathBoundingBox(zt,Dt))}}function tt(Pt,zt){if(typeof ImageData<"u"&&zt instanceof ImageData){Pt.putImageData(zt,0,0);return}const Dt=zt.height,Nt=zt.width,$t=Dt%yt,Ut=(Dt-$t)/yt,Ht=$t===0?Ut:Ut+1,Vt=Pt.createImageData(Nt,yt);let Xt=0,qt;const er=zt.data,lr=Vt.data;let Jt,Yt,rr,jt;if(zt.kind===pt.ImageKind.GRAYSCALE_1BPP){const ar=er.byteLength,sr=new Uint32Array(lr.buffer,0,lr.byteLength>>2),Zt=sr.length,Kt=Nt+7>>3,or=4294967295,tr=pt.FeatureTest.isLittleEndian?4278190080:255;for(Jt=0;JtKt?Nt:cr*8-7,br=Ar&-8;let Ir=0,Tr=0;for(;mr>=1}for(;qt=Ut&&(rr=$t,jt=Nt*rr),qt=0,Yt=jt;Yt--;)lr[qt++]=er[Xt++],lr[qt++]=er[Xt++],lr[qt++]=er[Xt++],lr[qt++]=255;Pt.putImageData(Vt,0,Jt*yt)}else throw new Error(`bad image kind: ${zt.kind}`)}function st(Pt,zt){if(zt.bitmap){Pt.drawImage(zt.bitmap,0,0);return}const Dt=zt.height,Nt=zt.width,$t=Dt%yt,Ut=(Dt-$t)/yt,Ht=$t===0?Ut:Ut+1,Vt=Pt.createImageData(Nt,yt);let Xt=0;const qt=zt.data,er=Vt.data;for(let lr=0;lr>8,Pt[Ut-2]=Pt[Ut-2]*Ht+Dt*Vt>>8,Pt[Ut-1]=Pt[Ut-1]*Ht+Nt*Vt>>8}}}function dt(Pt,zt,Dt){const Nt=Pt.length,$t=1/255;for(let Ut=3;Ut>8]>>8:zt[$t]*Ut>>16}}function ft(Pt,zt,Dt,Nt,$t,Ut,Ht,Vt,Xt,qt,er){const lr=!!Ut,Jt=lr?Ut[0]:0,Yt=lr?Ut[1]:0,rr=lr?Ut[2]:0,jt=$t==="Luminosity"?bt:dt,sr=Math.min(Nt,Math.ceil(1048576/Dt));for(let Zt=0;Ztet&&typeof Nt=="function",er=qt?Date.now()+xt:0;let lr=0;const Jt=this.commonObjs,Yt=this.objs;let rr;for(;;){if($t!==void 0&&Vt===$t.nextBreakPoint)return $t.breakIt(Vt,Nt),Vt;if(rr=Ht[Vt],rr!==pt.OPS.dependency)this[rr].apply(this,Ut[Vt]);else for(const jt of Ut[Vt]){const ar=jt.startsWith("g_")?Jt:Yt;if(!ar.has(jt))return ar.get(jt,Nt),Vt}if(Vt++,Vt===Xt)return Vt;if(qt&&++lr>et){if(Date.now()>er)return Nt(),Vt;lr=0}}}endDrawing(){hs(this,wt,D_).call(this),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const zt of this._cachedBitmapsMap.values()){for(const Dt of zt.values())typeof HTMLCanvasElement<"u"&&Dt instanceof HTMLCanvasElement&&(Dt.width=Dt.height=0);zt.clear()}this._cachedBitmapsMap.clear(),hs(this,It,P_).call(this)}_scaleImage(zt,Dt){const Nt=zt.width,$t=zt.height;let Ut=Math.max(Math.hypot(Dt[0],Dt[1]),1),Ht=Math.max(Math.hypot(Dt[2],Dt[3]),1),Vt=Nt,Xt=$t,qt="prescale1",er,lr;for(;Ut>2&&Vt>1||Ht>2&&Xt>1;){let Jt=Vt,Yt=Xt;Ut>2&&Vt>1&&(Jt=Vt>=16384?Math.floor(Vt/2)-1||1:Math.ceil(Vt/2),Ut/=Vt/Jt),Ht>2&&Xt>1&&(Yt=Xt>=16384?Math.floor(Xt/2)-1||1:Math.ceil(Xt)/2,Ht/=Xt/Yt),er=this.cachedCanvases.getCanvas(qt,Jt,Yt),lr=er.context,lr.clearRect(0,0,Jt,Yt),lr.drawImage(zt,0,0,Vt,Xt,0,0,Jt,Yt),zt=er.canvas,Vt=Jt,Xt=Yt,qt=qt==="prescale1"?"prescale2":"prescale1"}return{img:zt,paintWidth:Vt,paintHeight:Xt}}_createMaskCanvas(zt){const Dt=this.ctx,{width:Nt,height:$t}=zt,Ut=this.current.fillColor,Ht=this.current.patternFill,Vt=(0,Lt.getCurrentTransform)(Dt);let Xt,qt,er,lr;if((zt.bitmap||zt.data)&&zt.count>1){const mr=zt.bitmap||zt.data.buffer;qt=JSON.stringify(Ht?Vt:[Vt.slice(0,4),Ut]),Xt=this._cachedBitmapsMap.get(mr),Xt||(Xt=new Map,this._cachedBitmapsMap.set(mr,Xt));const Ar=Xt.get(qt);if(Ar&&!Ht){const br=Math.round(Math.min(Vt[0],Vt[2])+Vt[4]),Ir=Math.round(Math.min(Vt[1],Vt[3])+Vt[5]);return{canvas:Ar,offsetX:br,offsetY:Ir}}er=Ar}er||(lr=this.cachedCanvases.getCanvas("maskCanvas",Nt,$t),st(lr.context,zt));let Jt=pt.Util.transform(Vt,[1/Nt,0,0,-1/$t,0,0]);Jt=pt.Util.transform(Jt,[1,0,0,1,0,-$t]);const Yt=pt.Util.applyTransform([0,0],Jt),rr=pt.Util.applyTransform([Nt,$t],Jt),jt=pt.Util.normalizeRect([Yt[0],Yt[1],rr[0],rr[1]]),ar=Math.round(jt[2]-jt[0])||1,sr=Math.round(jt[3]-jt[1])||1,Zt=this.cachedCanvases.getCanvas("fillCanvas",ar,sr),Kt=Zt.context,or=Math.min(Yt[0],rr[0]),tr=Math.min(Yt[1],rr[1]);Kt.translate(-or,-tr),Kt.transform(...Jt),er||(er=this._scaleImage(lr.canvas,(0,Lt.getCurrentTransformInverse)(Kt)),er=er.img,Xt&&Ht&&Xt.set(qt,er)),Kt.imageSmoothingEnabled=mt((0,Lt.getCurrentTransform)(Kt),zt.interpolate),j(Kt,er,0,0,er.width,er.height,0,0,Nt,$t),Kt.globalCompositeOperation="source-in";const cr=pt.Util.transform((0,Lt.getCurrentTransformInverse)(Kt),[1,0,0,1,-or,-tr]);return Kt.fillStyle=Ht?Ut.getPattern(Dt,this,cr,Gt.PathType.FILL):Ut,Kt.fillRect(0,0,Nt,$t),Xt&&!Ht&&(this.cachedCanvases.delete("fillCanvas"),Xt.set(qt,Zt.canvas)),{canvas:Zt.canvas,offsetX:Math.round(or),offsetY:Math.round(tr)}}setLineWidth(zt){zt!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=zt,this.ctx.lineWidth=zt}setLineCap(zt){this.ctx.lineCap=St[zt]}setLineJoin(zt){this.ctx.lineJoin=_t[zt]}setMiterLimit(zt){this.ctx.miterLimit=zt}setDash(zt,Dt){const Nt=this.ctx;Nt.setLineDash!==void 0&&(Nt.setLineDash(zt),Nt.lineDashOffset=Dt)}setRenderingIntent(zt){}setFlatness(zt){}setGState(zt){for(const[Dt,Nt]of zt)switch(Dt){case"LW":this.setLineWidth(Nt);break;case"LC":this.setLineCap(Nt);break;case"LJ":this.setLineJoin(Nt);break;case"ML":this.setMiterLimit(Nt);break;case"D":this.setDash(Nt[0],Nt[1]);break;case"RI":this.setRenderingIntent(Nt);break;case"FL":this.setFlatness(Nt);break;case"Font":this.setFont(Nt[0],Nt[1]);break;case"CA":this.current.strokeAlpha=Nt;break;case"ca":this.current.fillAlpha=Nt,this.ctx.globalAlpha=Nt;break;case"BM":this.ctx.globalCompositeOperation=Nt;break;case"SMask":this.current.activeSMask=Nt?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(Nt);break}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const zt=this.inSMaskMode;this.current.activeSMask&&!zt?this.beginSMaskMode():!this.current.activeSMask&&zt&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const zt=this.ctx.canvas.width,Dt=this.ctx.canvas.height,Nt="smaskGroupAt"+this.groupLevel,$t=this.cachedCanvases.getCanvas(Nt,zt,Dt);this.suspendedCtx=this.ctx,this.ctx=$t.context;const Ut=this.ctx;Ut.setTransform(...(0,Lt.getCurrentTransform)(this.suspendedCtx)),ot(this.suspendedCtx,Ut),ut(Ut,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),ot(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(zt){if(!this.current.activeSMask)return;zt?(zt[0]=Math.floor(zt[0]),zt[1]=Math.floor(zt[1]),zt[2]=Math.ceil(zt[2]),zt[3]=Math.ceil(zt[3])):zt=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const Dt=this.current.activeSMask,Nt=this.suspendedCtx;at(Nt,Dt,this.ctx,zt),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}save(){this.inSMaskMode?(ot(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const zt=this.current;this.stateStack.push(zt),this.current=zt.clone()}restore(){this.stateStack.length===0&&this.inSMaskMode&&this.endSMaskMode(),this.stateStack.length!==0&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),ot(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}transform(zt,Dt,Nt,$t,Ut,Ht){this.ctx.transform(zt,Dt,Nt,$t,Ut,Ht),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(zt,Dt,Nt){const $t=this.ctx,Ut=this.current;let Ht=Ut.x,Vt=Ut.y,Xt,qt;const er=(0,Lt.getCurrentTransform)($t),lr=er[0]===0&&er[3]===0||er[1]===0&&er[2]===0,Jt=lr?Nt.slice(0):null;for(let Yt=0,rr=0,jt=zt.length;Yto&&(qt=o),this.current.fontSizeScale=Dt/qt,this.ctx.font=`${Xt} ${Vt} ${qt}px ${Ht}`}setTextRenderingMode(zt){this.current.textRenderingMode=zt}setTextRise(zt){this.current.textRise=zt}moveText(zt,Dt){this.current.x=this.current.lineX+=zt,this.current.y=this.current.lineY+=Dt}setLeadingMoveText(zt,Dt){this.setLeading(-Dt),this.moveText(zt,Dt)}setTextMatrix(zt,Dt,Nt,$t,Ut,Ht){this.current.textMatrix=[zt,Dt,Nt,$t,Ut,Ht],this.current.textMatrixScale=Math.hypot(zt,Dt),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(zt,Dt,Nt,$t){const Ut=this.ctx,Ht=this.current,Vt=Ht.font,Xt=Ht.textRenderingMode,qt=Ht.fontSize/Ht.fontSizeScale,er=Xt&pt.TextRenderingMode.FILL_STROKE_MASK,lr=!!(Xt&pt.TextRenderingMode.ADD_TO_PATH_FLAG),Jt=Ht.patternFill&&!Vt.missingFile;let Yt;(Vt.disableFontFace||lr||Jt)&&(Yt=Vt.getPathGenerator(this.commonObjs,zt)),Vt.disableFontFace||Jt?(Ut.save(),Ut.translate(Dt,Nt),Ut.beginPath(),Yt(Ut,qt),$t&&Ut.setTransform(...$t),(er===pt.TextRenderingMode.FILL||er===pt.TextRenderingMode.FILL_STROKE)&&Ut.fill(),(er===pt.TextRenderingMode.STROKE||er===pt.TextRenderingMode.FILL_STROKE)&&Ut.stroke(),Ut.restore()):((er===pt.TextRenderingMode.FILL||er===pt.TextRenderingMode.FILL_STROKE)&&Ut.fillText(zt,Dt,Nt),(er===pt.TextRenderingMode.STROKE||er===pt.TextRenderingMode.FILL_STROKE)&&Ut.strokeText(zt,Dt,Nt)),lr&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:(0,Lt.getCurrentTransform)(Ut),x:Dt,y:Nt,fontSize:qt,addToPath:Yt})}get isFontSubpixelAAEnabled(){const{context:zt}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);zt.scale(1.5,1),zt.fillText("I",0,10);const Dt=zt.getImageData(0,0,10,10).data;let Nt=!1;for(let $t=3;$t0&&Dt[$t]<255){Nt=!0;break}return(0,pt.shadow)(this,"isFontSubpixelAAEnabled",Nt)}showText(zt){const Dt=this.current,Nt=Dt.font;if(Nt.isType3Font)return this.showType3Text(zt);const $t=Dt.fontSize;if($t===0)return;const Ut=this.ctx,Ht=Dt.fontSizeScale,Vt=Dt.charSpacing,Xt=Dt.wordSpacing,qt=Dt.fontDirection,er=Dt.textHScale*qt,lr=zt.length,Jt=Nt.vertical,Yt=Jt?1:-1,rr=Nt.defaultVMetrics,jt=$t*Dt.fontMatrix[0],ar=Dt.textRenderingMode===pt.TextRenderingMode.FILL&&!Nt.disableFontFace&&!Dt.patternFill;Ut.save(),Ut.transform(...Dt.textMatrix),Ut.translate(Dt.x,Dt.y+Dt.textRise),qt>0?Ut.scale(er,-1):Ut.scale(er,1);let sr;if(Dt.patternFill){Ut.save();const cr=Dt.fillColor.getPattern(Ut,this,(0,Lt.getCurrentTransformInverse)(Ut),Gt.PathType.FILL);sr=(0,Lt.getCurrentTransform)(Ut),Ut.restore(),Ut.fillStyle=cr}let Zt=Dt.lineWidth;const Kt=Dt.textMatrixScale;if(Kt===0||Zt===0){const cr=Dt.textRenderingMode&pt.TextRenderingMode.FILL_STROKE_MASK;(cr===pt.TextRenderingMode.STROKE||cr===pt.TextRenderingMode.FILL_STROKE)&&(Zt=this.getSinglePixelWidth())}else Zt/=Kt;if(Ht!==1&&(Ut.scale(Ht,Ht),Zt/=Ht),Ut.lineWidth=Zt,Nt.isInvalidPDFjsFont){const cr=[];let mr=0;for(const Ar of zt)cr.push(Ar.unicode),mr+=Ar.width;Ut.fillText(cr.join(""),0,0),Dt.x+=mr*jt*er,Ut.restore(),this.compose();return}let or=0,tr;for(tr=0;tr0){const zr=Ut.measureText(br).width*1e3/$t*Ht;if(Ernew Ot(Ht,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})};Dt=new Gt.TilingPattern(zt,Nt,this.ctx,Ut,$t)}else Dt=this._getPattern(zt[1],zt[2]);return Dt}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(zt,Dt,Nt){const $t=pt.Util.makeHexColor(zt,Dt,Nt);this.ctx.strokeStyle=$t,this.current.strokeColor=$t}setFillRGBColor(zt,Dt,Nt){const $t=pt.Util.makeHexColor(zt,Dt,Nt);this.ctx.fillStyle=$t,this.current.fillColor=$t,this.current.patternFill=!1}_getPattern(zt,Dt=null){let Nt;return this.cachedPatterns.has(zt)?Nt=this.cachedPatterns.get(zt):(Nt=(0,Gt.getShadingPattern)(this.getObject(zt)),this.cachedPatterns.set(zt,Nt)),Dt&&(Nt.matrix=Dt),Nt}shadingFill(zt){if(!this.contentVisible)return;const Dt=this.ctx;this.save();const Nt=this._getPattern(zt);Dt.fillStyle=Nt.getPattern(Dt,this,(0,Lt.getCurrentTransformInverse)(Dt),Gt.PathType.SHADING);const $t=(0,Lt.getCurrentTransformInverse)(Dt);if($t){const{width:Ut,height:Ht}=Dt.canvas,[Vt,Xt,qt,er]=pt.Util.getAxialAlignedBoundingBox([0,0,Ut,Ht],$t);this.ctx.fillRect(Vt,Xt,qt-Vt,er-Xt)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){(0,pt.unreachable)("Should not call beginInlineImage")}beginImageData(){(0,pt.unreachable)("Should not call beginImageData")}paintFormXObjectBegin(zt,Dt){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(zt)&&zt.length===6&&this.transform(...zt),this.baseTransform=(0,Lt.getCurrentTransform)(this.ctx),Dt)){const Nt=Dt[2]-Dt[0],$t=Dt[3]-Dt[1];this.ctx.rect(Dt[0],Dt[1],Nt,$t),this.current.updateRectMinMax((0,Lt.getCurrentTransform)(this.ctx),Dt),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(zt){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const Dt=this.ctx;zt.isolated||(0,pt.info)("TODO: Support non-isolated groups."),zt.knockout&&(0,pt.warn)("Knockout groups not supported.");const Nt=(0,Lt.getCurrentTransform)(Dt);if(zt.matrix&&Dt.transform(...zt.matrix),!zt.bbox)throw new Error("Bounding box is required.");let $t=pt.Util.getAxialAlignedBoundingBox(zt.bbox,(0,Lt.getCurrentTransform)(Dt));const Ut=[0,0,Dt.canvas.width,Dt.canvas.height];$t=pt.Util.intersect($t,Ut)||[0,0,0,0];const Ht=Math.floor($t[0]),Vt=Math.floor($t[1]);let Xt=Math.max(Math.ceil($t[2])-Ht,1),qt=Math.max(Math.ceil($t[3])-Vt,1),er=1,lr=1;Xt>it&&(er=Xt/it,Xt=it),qt>it&&(lr=qt/it,qt=it),this.current.startNewPathAndClipBox([0,0,Xt,qt]);let Jt="groupAt"+this.groupLevel;zt.smask&&(Jt+="_smask_"+this.smaskCounter++%2);const Yt=this.cachedCanvases.getCanvas(Jt,Xt,qt),rr=Yt.context;rr.scale(1/er,1/lr),rr.translate(-Ht,-Vt),rr.transform(...Nt),zt.smask?this.smaskStack.push({canvas:Yt.canvas,context:rr,offsetX:Ht,offsetY:Vt,scaleX:er,scaleY:lr,subtype:zt.smask.subtype,backdrop:zt.smask.backdrop,transferMap:zt.smask.transferMap||null,startTransformInverse:null}):(Dt.setTransform(1,0,0,1,0,0),Dt.translate(Ht,Vt),Dt.scale(er,lr),Dt.save()),ot(Dt,rr),this.ctx=rr,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(Dt),this.groupLevel++}endGroup(zt){if(!this.contentVisible)return;this.groupLevel--;const Dt=this.ctx,Nt=this.groupStack.pop();if(this.ctx=Nt,this.ctx.imageSmoothingEnabled=!1,zt.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const $t=(0,Lt.getCurrentTransform)(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...$t);const Ut=pt.Util.getAxialAlignedBoundingBox([0,0,Dt.canvas.width,Dt.canvas.height],$t);this.ctx.drawImage(Dt.canvas,0,0),this.ctx.restore(),this.compose(Ut)}}beginAnnotation(zt,Dt,Nt,$t,Ut){if(hs(this,wt,D_).call(this),nt(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),Array.isArray(Dt)&&Dt.length===4){const Ht=Dt[2]-Dt[0],Vt=Dt[3]-Dt[1];if(Ut&&this.annotationCanvasMap){Nt=Nt.slice(),Nt[4]-=Dt[0],Nt[5]-=Dt[1],Dt=Dt.slice(),Dt[0]=Dt[1]=0,Dt[2]=Ht,Dt[3]=Vt;const[Xt,qt]=pt.Util.singularValueDecompose2dScale((0,Lt.getCurrentTransform)(this.ctx)),{viewportScale:er}=this,lr=Math.ceil(Ht*this.outputScaleX*er),Jt=Math.ceil(Vt*this.outputScaleY*er);this.annotationCanvas=this.canvasFactory.create(lr,Jt);const{canvas:Yt,context:rr}=this.annotationCanvas;this.annotationCanvasMap.set(zt,Yt),this.annotationCanvas.savedCtx=this.ctx,this.ctx=rr,this.ctx.save(),this.ctx.setTransform(Xt,0,0,-qt,0,Vt*qt),nt(this.ctx)}else nt(this.ctx),this.ctx.rect(Dt[0],Dt[1],Ht,Vt),this.ctx.clip(),this.endPath()}this.current=new rt(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...Nt),this.transform(...$t)}endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),hs(this,It,P_).call(this),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(zt){if(!this.contentVisible)return;const Dt=zt.count;zt=this.getObject(zt.data,zt),zt.count=Dt;const Nt=this.ctx,$t=this.processingType3;if($t&&($t.compiled===void 0&&($t.compiled=_(zt)),$t.compiled)){$t.compiled(Nt);return}const Ut=this._createMaskCanvas(zt),Ht=Ut.canvas;Nt.save(),Nt.setTransform(1,0,0,1,0,0),Nt.drawImage(Ht,Ut.offsetX,Ut.offsetY),Nt.restore(),this.compose()}paintImageMaskXObjectRepeat(zt,Dt,Nt=0,$t=0,Ut,Ht){if(!this.contentVisible)return;zt=this.getObject(zt.data,zt);const Vt=this.ctx;Vt.save();const Xt=(0,Lt.getCurrentTransform)(Vt);Vt.transform(Dt,Nt,$t,Ut,0,0);const qt=this._createMaskCanvas(zt);Vt.setTransform(1,0,0,1,qt.offsetX-Xt[4],qt.offsetY-Xt[5]);for(let er=0,lr=Ht.length;erlr?er/lr:1,Vt=qt>lr?qt/lr:1}}this._cachedScaleForStroking[0]=Ht,this._cachedScaleForStroking[1]=Vt}return this._cachedScaleForStroking}rescaleAndStroke(zt){const{ctx:Dt}=this,{lineWidth:Nt}=this.current,[$t,Ut]=this.getScaleForStroking();if(Dt.lineWidth=Nt||1,$t===1&&Ut===1){Dt.stroke();return}const Ht=Dt.getLineDash();if(zt&&Dt.save(),Dt.scale($t,Ut),Ht.length>0){const Vt=Math.max($t,Ut);Dt.setLineDash(Ht.map(Xt=>Xt/Vt)),Dt.lineDashOffset/=Vt}Dt.stroke(),zt&&Dt.restore()}isContentVisible(){for(let zt=this.markedContentStack.length-1;zt>=0;zt--)if(!this.markedContentStack[zt].visible)return!1;return!0}};let kt=Ot;wt=new WeakSet,D_=function(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)},It=new WeakSet,P_=function(){if(this.pageColors){const zt=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if(zt!=="none"){const Dt=this.ctx.filter;this.ctx.filter=zt,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=Dt}}},i.CanvasGraphics=kt;for(const Pt in pt.OPS)kt.prototype[Pt]!==void 0&&(kt.prototype[pt.OPS[Pt]]=kt.prototype[Pt])},(a,i,_e)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.TilingPattern=i.PathType=void 0,i.getShadingPattern=yt;var pt=_e(1),Lt=_e(6);const Gt={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};i.PathType=Gt;function Ct(_,rt){if(!rt)return;const tt=rt[2]-rt[0],st=rt[3]-rt[1],ot=new Path2D;ot.rect(rt[0],rt[1],tt,st),_.clip(ot)}class Rt{constructor(){this.constructor===Rt&&(0,pt.unreachable)("Cannot initialize BaseShadingPattern.")}getPattern(){(0,pt.unreachable)("Abstract method `getPattern` called.")}}class o extends Rt{constructor(rt){super(),this._type=rt[1],this._bbox=rt[2],this._colorStops=rt[3],this._p0=rt[4],this._p1=rt[5],this._r0=rt[6],this._r1=rt[7],this.matrix=null}_createGradient(rt){let tt;this._type==="axial"?tt=rt.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):this._type==="radial"&&(tt=rt.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const st of this._colorStops)tt.addColorStop(st[0],st[1]);return tt}getPattern(rt,tt,st,ot){let nt;if(ot===Gt.STROKE||ot===Gt.FILL){const vt=tt.current.getClippedPathBoundingBox(ot,(0,Lt.getCurrentTransform)(rt))||[0,0,0,0],dt=Math.ceil(vt[2]-vt[0])||1,bt=Math.ceil(vt[3]-vt[1])||1,ft=tt.cachedCanvases.getCanvas("pattern",dt,bt,!0),at=ft.context;at.clearRect(0,0,at.canvas.width,at.canvas.height),at.beginPath(),at.rect(0,0,at.canvas.width,at.canvas.height),at.translate(-vt[0],-vt[1]),st=pt.Util.transform(st,[1,0,0,1,vt[0],vt[1]]),at.transform(...tt.baseTransform),this.matrix&&at.transform(...this.matrix),Ct(at,this._bbox),at.fillStyle=this._createGradient(at),at.fill(),nt=rt.createPattern(ft.canvas,"no-repeat");const mt=new DOMMatrix(st);nt.setTransform(mt)}else Ct(rt,this._bbox),nt=this._createGradient(rt);return nt}}function it(_,rt,tt,st,ot,nt,vt,dt){const bt=rt.coords,ft=rt.colors,at=_.data,mt=_.width*4;let St;bt[tt+1]>bt[st+1]&&(St=tt,tt=st,st=St,St=nt,nt=vt,vt=St),bt[st+1]>bt[ot+1]&&(St=st,st=ot,ot=St,St=vt,vt=dt,dt=St),bt[tt+1]>bt[st+1]&&(St=tt,tt=st,st=St,St=nt,nt=vt,vt=St);const _t=(bt[tt]+rt.offsetX)*rt.scaleX,Mt=(bt[tt+1]+rt.offsetY)*rt.scaleY,Et=(bt[st]+rt.offsetX)*rt.scaleX,kt=(bt[st+1]+rt.offsetY)*rt.scaleY,wt=(bt[ot]+rt.offsetX)*rt.scaleX,ct=(bt[ot+1]+rt.offsetY)*rt.scaleY;if(Mt>=ct)return;const It=ft[nt],At=ft[nt+1],Ot=ft[nt+2],Pt=ft[vt],zt=ft[vt+1],Dt=ft[vt+2],Nt=ft[dt],$t=ft[dt+1],Ut=ft[dt+2],Ht=Math.round(Mt),Vt=Math.round(ct);let Xt,qt,er,lr,Jt,Yt,rr,jt;for(let ar=Ht;ar<=Vt;ar++){if(arct?tr=1:kt===ct?tr=0:tr=(kt-ar)/(kt-ct),Xt=Et-(Et-wt)*tr,qt=Pt-(Pt-Nt)*tr,er=zt-(zt-$t)*tr,lr=Dt-(Dt-Ut)*tr}let sr;arct?sr=1:sr=(Mt-ar)/(Mt-ct),Jt=_t-(_t-wt)*sr,Yt=It-(It-Nt)*sr,rr=At-(At-$t)*sr,jt=Ot-(Ot-Ut)*sr;const Zt=Math.round(Math.min(Xt,Jt)),Kt=Math.round(Math.max(Xt,Jt));let or=mt*ar+Zt*4;for(let tr=Zt;tr<=Kt;tr++)sr=(Xt-tr)/(Xt-Jt),sr<0?sr=0:sr>1&&(sr=1),at[or++]=qt-(qt-Yt)*sr|0,at[or++]=er-(er-rr)*sr|0,at[or++]=lr-(lr-jt)*sr|0,at[or++]=255}}function xt(_,rt,tt){const st=rt.coords,ot=rt.colors;let nt,vt;switch(rt.type){case"lattice":const dt=rt.verticesPerRow,bt=Math.floor(st.length/dt)-1,ft=dt-1;for(nt=0;nt=ot?nt=ot:st=nt/rt,{scale:st,size:nt}}clipBbox(rt,tt,st,ot,nt){const vt=ot-tt,dt=nt-st;rt.ctx.rect(tt,st,vt,dt),rt.current.updateRectMinMax((0,Lt.getCurrentTransform)(rt.ctx),[tt,st,ot,nt]),rt.clip(),rt.endPath()}setFillAndStrokeStyleToContext(rt,tt,st){const ot=rt.ctx,nt=rt.current;switch(tt){case ut.COLORED:const vt=this.ctx;ot.fillStyle=vt.fillStyle,ot.strokeStyle=vt.strokeStyle,nt.fillColor=vt.fillStyle,nt.strokeColor=vt.strokeStyle;break;case ut.UNCOLORED:const dt=pt.Util.makeHexColor(st[0],st[1],st[2]);ot.fillStyle=dt,ot.strokeStyle=dt,nt.fillColor=dt,nt.strokeColor=dt;break;default:throw new pt.FormatError(`Unsupported paint type: ${tt}`)}}getPattern(rt,tt,st,ot){let nt=st;ot!==Gt.SHADING&&(nt=pt.Util.transform(nt,tt.baseTransform),this.matrix&&(nt=pt.Util.transform(nt,this.matrix)));const vt=this.createPatternCanvas(tt);let dt=new DOMMatrix(nt);dt=dt.translate(vt.offsetX,vt.offsetY),dt=dt.scale(1/vt.scaleX,1/vt.scaleY);const bt=rt.createPattern(vt.canvas,"repeat");return bt.setTransform(dt),bt}};let ht=j;Dp(ht,"MAX_PATTERN_SIZE",3e3),i.TilingPattern=ht},(a,i,_e)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.convertBlackAndWhiteToRGBA=Gt,i.convertToRGBA=Lt,i.grayToRGBA=Rt;var pt=_e(1);function Lt(o){switch(o.kind){case pt.ImageKind.GRAYSCALE_1BPP:return Gt(o);case pt.ImageKind.RGB_24BPP:return Ct(o)}return null}function Gt({src:o,srcPos:it=0,dest:xt,width:et,height:Tt,nonBlackColor:yt=4294967295,inverseDecode:ut=!1}){const ht=pt.FeatureTest.isLittleEndian?4278190080:255,[j,_]=ut?[yt,ht]:[ht,yt],rt=et>>3,tt=et&7,st=o.length;xt=new Uint32Array(xt.buffer);let ot=0;for(let nt=0;nt>2,j=new Uint32Array(o.buffer,it,ht);if(pt.FeatureTest.isLittleEndian){for(;ut>>24|rt<<8|4278190080,xt[et+2]=rt>>>16|tt<<16|4278190080,xt[et+3]=tt>>>8|4278190080}for(let _=ut*4,rt=o.length;_>>8|255,xt[et+2]=rt<<16|tt>>>16|255,xt[et+3]=tt<<8|255}for(let _=ut*4,rt=o.length;_{Object.defineProperty(i,"__esModule",{value:!0}),i.GlobalWorkerOptions=void 0;const _e=Object.create(null);i.GlobalWorkerOptions=_e,_e.workerPort=null,_e.workerSrc=""},(a,i,_e)=>{var o,hS,xt,pS,Tt,eT;Object.defineProperty(i,"__esModule",{value:!0}),i.MessageHandler=void 0;var pt=_e(1);const Lt={UNKNOWN:0,DATA:1,ERROR:2},Gt={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function Ct(ut){switch(ut instanceof Error||typeof ut=="object"&&ut!==null||(0,pt.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),ut.name){case"AbortException":return new pt.AbortException(ut.message);case"MissingPDFException":return new pt.MissingPDFException(ut.message);case"PasswordException":return new pt.PasswordException(ut.message,ut.code);case"UnexpectedResponseException":return new pt.UnexpectedResponseException(ut.message,ut.status);case"UnknownErrorException":return new pt.UnknownErrorException(ut.message,ut.details);default:return new pt.UnknownErrorException(ut.message,ut.toString())}}class Rt{constructor(ht,j,_){Xo(this,o);Xo(this,xt);Xo(this,Tt);this.sourceName=ht,this.targetName=j,this.comObj=_,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=rt=>{const tt=rt.data;if(tt.targetName!==this.sourceName)return;if(tt.stream){hs(this,xt,pS).call(this,tt);return}if(tt.callback){const ot=tt.callbackId,nt=this.callbackCapabilities[ot];if(!nt)throw new Error(`Cannot resolve callback ${ot}`);if(delete this.callbackCapabilities[ot],tt.callback===Lt.DATA)nt.resolve(tt.data);else if(tt.callback===Lt.ERROR)nt.reject(Ct(tt.reason));else throw new Error("Unexpected callback case");return}const st=this.actionHandler[tt.action];if(!st)throw new Error(`Unknown action from worker: ${tt.action}`);if(tt.callbackId){const ot=this.sourceName,nt=tt.sourceName;new Promise(function(vt){vt(st(tt.data))}).then(function(vt){_.postMessage({sourceName:ot,targetName:nt,callback:Lt.DATA,callbackId:tt.callbackId,data:vt})},function(vt){_.postMessage({sourceName:ot,targetName:nt,callback:Lt.ERROR,callbackId:tt.callbackId,reason:Ct(vt)})});return}if(tt.streamId){hs(this,o,hS).call(this,tt);return}st(tt.data)},_.addEventListener("message",this._onComObjOnMessage)}on(ht,j){const _=this.actionHandler;if(_[ht])throw new Error(`There is already an actionName called "${ht}"`);_[ht]=j}send(ht,j,_){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:ht,data:j},_)}sendWithPromise(ht,j,_){const rt=this.callbackId++,tt=new pt.PromiseCapability;this.callbackCapabilities[rt]=tt;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:ht,callbackId:rt,data:j},_)}catch(st){tt.reject(st)}return tt.promise}sendWithStream(ht,j,_,rt){const tt=this.streamId++,st=this.sourceName,ot=this.targetName,nt=this.comObj;return new ReadableStream({start:vt=>{const dt=new pt.PromiseCapability;return this.streamControllers[tt]={controller:vt,startCall:dt,pullCall:null,cancelCall:null,isClosed:!1},nt.postMessage({sourceName:st,targetName:ot,action:ht,streamId:tt,data:j,desiredSize:vt.desiredSize},rt),dt.promise},pull:vt=>{const dt=new pt.PromiseCapability;return this.streamControllers[tt].pullCall=dt,nt.postMessage({sourceName:st,targetName:ot,stream:Gt.PULL,streamId:tt,desiredSize:vt.desiredSize}),dt.promise},cancel:vt=>{(0,pt.assert)(vt instanceof Error,"cancel must have a valid reason");const dt=new pt.PromiseCapability;return this.streamControllers[tt].cancelCall=dt,this.streamControllers[tt].isClosed=!0,nt.postMessage({sourceName:st,targetName:ot,stream:Gt.CANCEL,streamId:tt,reason:Ct(vt)}),dt.promise}},_)}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}o=new WeakSet,hS=function(ht){const j=ht.streamId,_=this.sourceName,rt=ht.sourceName,tt=this.comObj,st=this,ot=this.actionHandler[ht.action],nt={enqueue(vt,dt=1,bt){if(this.isCancelled)return;const ft=this.desiredSize;this.desiredSize-=dt,ft>0&&this.desiredSize<=0&&(this.sinkCapability=new pt.PromiseCapability,this.ready=this.sinkCapability.promise),tt.postMessage({sourceName:_,targetName:rt,stream:Gt.ENQUEUE,streamId:j,chunk:vt},bt)},close(){this.isCancelled||(this.isCancelled=!0,tt.postMessage({sourceName:_,targetName:rt,stream:Gt.CLOSE,streamId:j}),delete st.streamSinks[j])},error(vt){(0,pt.assert)(vt instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,tt.postMessage({sourceName:_,targetName:rt,stream:Gt.ERROR,streamId:j,reason:Ct(vt)}))},sinkCapability:new pt.PromiseCapability,onPull:null,onCancel:null,isCancelled:!1,desiredSize:ht.desiredSize,ready:null};nt.sinkCapability.resolve(),nt.ready=nt.sinkCapability.promise,this.streamSinks[j]=nt,new Promise(function(vt){vt(ot(ht.data,nt))}).then(function(){tt.postMessage({sourceName:_,targetName:rt,stream:Gt.START_COMPLETE,streamId:j,success:!0})},function(vt){tt.postMessage({sourceName:_,targetName:rt,stream:Gt.START_COMPLETE,streamId:j,reason:Ct(vt)})})},xt=new WeakSet,pS=function(ht){const j=ht.streamId,_=this.sourceName,rt=ht.sourceName,tt=this.comObj,st=this.streamControllers[j],ot=this.streamSinks[j];switch(ht.stream){case Gt.START_COMPLETE:ht.success?st.startCall.resolve():st.startCall.reject(Ct(ht.reason));break;case Gt.PULL_COMPLETE:ht.success?st.pullCall.resolve():st.pullCall.reject(Ct(ht.reason));break;case Gt.PULL:if(!ot){tt.postMessage({sourceName:_,targetName:rt,stream:Gt.PULL_COMPLETE,streamId:j,success:!0});break}ot.desiredSize<=0&&ht.desiredSize>0&&ot.sinkCapability.resolve(),ot.desiredSize=ht.desiredSize,new Promise(function(nt){var vt;nt((vt=ot.onPull)==null?void 0:vt.call(ot))}).then(function(){tt.postMessage({sourceName:_,targetName:rt,stream:Gt.PULL_COMPLETE,streamId:j,success:!0})},function(nt){tt.postMessage({sourceName:_,targetName:rt,stream:Gt.PULL_COMPLETE,streamId:j,reason:Ct(nt)})});break;case Gt.ENQUEUE:if((0,pt.assert)(st,"enqueue should have stream controller"),st.isClosed)break;st.controller.enqueue(ht.chunk);break;case Gt.CLOSE:if((0,pt.assert)(st,"close should have stream controller"),st.isClosed)break;st.isClosed=!0,st.controller.close(),hs(this,Tt,eT).call(this,st,j);break;case Gt.ERROR:(0,pt.assert)(st,"error should have stream controller"),st.controller.error(Ct(ht.reason)),hs(this,Tt,eT).call(this,st,j);break;case Gt.CANCEL_COMPLETE:ht.success?st.cancelCall.resolve():st.cancelCall.reject(Ct(ht.reason)),hs(this,Tt,eT).call(this,st,j);break;case Gt.CANCEL:if(!ot)break;new Promise(function(nt){var vt;nt((vt=ot.onCancel)==null?void 0:vt.call(ot,Ct(ht.reason)))}).then(function(){tt.postMessage({sourceName:_,targetName:rt,stream:Gt.CANCEL_COMPLETE,streamId:j,success:!0})},function(nt){tt.postMessage({sourceName:_,targetName:rt,stream:Gt.CANCEL_COMPLETE,streamId:j,reason:Ct(nt)})}),ot.sinkCapability.reject(Ct(ht.reason)),ot.isCancelled=!0,delete this.streamSinks[j];break;default:throw new Error("Unexpected stream case")}},Tt=new WeakSet,eT=async function(ht,j){var _,rt,tt;await Promise.allSettled([(_=ht.startCall)==null?void 0:_.promise,(rt=ht.pullCall)==null?void 0:rt.promise,(tt=ht.cancelCall)==null?void 0:tt.promise]),delete this.streamControllers[j]},i.MessageHandler=Rt},(a,i,_e)=>{var Gt,Ct;Object.defineProperty(i,"__esModule",{value:!0}),i.Metadata=void 0;var pt=_e(1);class Lt{constructor({parsedData:o,rawData:it}){Xo(this,Gt,void 0);Xo(this,Ct,void 0);ks(this,Gt,o),ks(this,Ct,it)}getRaw(){return On(this,Ct)}get(o){return On(this,Gt).get(o)??null}getAll(){return(0,pt.objectFromMap)(On(this,Gt))}has(o){return On(this,Gt).has(o)}}Gt=new WeakMap,Ct=new WeakMap,i.Metadata=Lt},(a,i,_e)=>{var o,it,xt,et,Tt,yt,N_;Object.defineProperty(i,"__esModule",{value:!0}),i.OptionalContentConfig=void 0;var pt=_e(1),Lt=_e(8);const Gt=Symbol("INTERNAL");class Ct{constructor(j,_){Xo(this,o,!0);this.name=j,this.intent=_}get visible(){return On(this,o)}_setVisible(j,_){j!==Gt&&(0,pt.unreachable)("Internal method `_setVisible` called."),ks(this,o,_)}}o=new WeakMap;class Rt{constructor(j){Xo(this,yt);Xo(this,it,null);Xo(this,xt,new Map);Xo(this,et,null);Xo(this,Tt,null);if(this.name=null,this.creator=null,j!==null){this.name=j.name,this.creator=j.creator,ks(this,Tt,j.order);for(const _ of j.groups)On(this,xt).set(_.id,new Ct(_.name,_.intent));if(j.baseState==="OFF")for(const _ of On(this,xt).values())_._setVisible(Gt,!1);for(const _ of j.on)On(this,xt).get(_)._setVisible(Gt,!0);for(const _ of j.off)On(this,xt).get(_)._setVisible(Gt,!1);ks(this,et,this.getHash())}}isVisible(j){if(On(this,xt).size===0)return!0;if(!j)return(0,pt.warn)("Optional content group not defined."),!0;if(j.type==="OCG")return On(this,xt).has(j.id)?On(this,xt).get(j.id).visible:((0,pt.warn)(`Optional content group not found: ${j.id}`),!0);if(j.type==="OCMD"){if(j.expression)return hs(this,yt,N_).call(this,j.expression);if(!j.policy||j.policy==="AnyOn"){for(const _ of j.ids){if(!On(this,xt).has(_))return(0,pt.warn)(`Optional content group not found: ${_}`),!0;if(On(this,xt).get(_).visible)return!0}return!1}else if(j.policy==="AllOn"){for(const _ of j.ids){if(!On(this,xt).has(_))return(0,pt.warn)(`Optional content group not found: ${_}`),!0;if(!On(this,xt).get(_).visible)return!1}return!0}else if(j.policy==="AnyOff"){for(const _ of j.ids){if(!On(this,xt).has(_))return(0,pt.warn)(`Optional content group not found: ${_}`),!0;if(!On(this,xt).get(_).visible)return!0}return!1}else if(j.policy==="AllOff"){for(const _ of j.ids){if(!On(this,xt).has(_))return(0,pt.warn)(`Optional content group not found: ${_}`),!0;if(On(this,xt).get(_).visible)return!1}return!0}return(0,pt.warn)(`Unknown optional content policy ${j.policy}.`),!0}return(0,pt.warn)(`Unknown group type ${j.type}.`),!0}setVisibility(j,_=!0){if(!On(this,xt).has(j)){(0,pt.warn)(`Optional content group not found: ${j}`);return}On(this,xt).get(j)._setVisible(Gt,!!_),ks(this,it,null)}get hasInitialVisibility(){return On(this,et)===null||this.getHash()===On(this,et)}getOrder(){return On(this,xt).size?On(this,Tt)?On(this,Tt).slice():[...On(this,xt).keys()]:null}getGroups(){return On(this,xt).size>0?(0,pt.objectFromMap)(On(this,xt)):null}getGroup(j){return On(this,xt).get(j)||null}getHash(){if(On(this,it)!==null)return On(this,it);const j=new Lt.MurmurHash3_64;for(const[_,rt]of On(this,xt))j.update(`${_}:${rt.visible}`);return ks(this,it,j.hexdigest())}}it=new WeakMap,xt=new WeakMap,et=new WeakMap,Tt=new WeakMap,yt=new WeakSet,N_=function(j){const _=j.length;if(_<2)return!0;const rt=j[0];for(let tt=1;tt<_;tt++){const st=j[tt];let ot;if(Array.isArray(st))ot=hs(this,yt,N_).call(this,st);else if(On(this,xt).has(st))ot=On(this,xt).get(st).visible;else return(0,pt.warn)(`Optional content group not found: ${st}`),!0;switch(rt){case"And":if(!ot)return!1;break;case"Or":if(ot)return!0;break;case"Not":return!ot;default:return!0}}return rt==="And"},i.OptionalContentConfig=Rt},(a,i,_e)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.PDFDataTransportStream=void 0;var pt=_e(1),Lt=_e(6);class Gt{constructor({length:it,initialData:xt,progressiveDone:et=!1,contentDispositionFilename:Tt=null,disableRange:yt=!1,disableStream:ut=!1},ht){if((0,pt.assert)(ht,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=et,this._contentDispositionFilename=Tt,(xt==null?void 0:xt.length)>0){const j=xt instanceof Uint8Array&&xt.byteLength===xt.buffer.byteLength?xt.buffer:new Uint8Array(xt).buffer;this._queuedChunks.push(j)}this._pdfDataRangeTransport=ht,this._isStreamingSupported=!ut,this._isRangeSupported=!yt,this._contentLength=it,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((j,_)=>{this._onReceiveData({begin:j,chunk:_})}),this._pdfDataRangeTransport.addProgressListener((j,_)=>{this._onProgress({loaded:j,total:_})}),this._pdfDataRangeTransport.addProgressiveReadListener(j=>{this._onReceiveData({chunk:j})}),this._pdfDataRangeTransport.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}_onReceiveData({begin:it,chunk:xt}){const et=xt instanceof Uint8Array&&xt.byteLength===xt.buffer.byteLength?xt.buffer:new Uint8Array(xt).buffer;if(it===void 0)this._fullRequestReader?this._fullRequestReader._enqueue(et):this._queuedChunks.push(et);else{const Tt=this._rangeReaders.some(function(yt){return yt._begin!==it?!1:(yt._enqueue(et),!0)});(0,pt.assert)(Tt,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){var it;return((it=this._fullRequestReader)==null?void 0:it._loaded)??0}_onProgress(it){var xt,et,Tt,yt;it.total===void 0?(et=(xt=this._rangeReaders[0])==null?void 0:xt.onProgress)==null||et.call(xt,{loaded:it.loaded}):(yt=(Tt=this._fullRequestReader)==null?void 0:Tt.onProgress)==null||yt.call(Tt,{loaded:it.loaded,total:it.total})}_onProgressiveDone(){var it;(it=this._fullRequestReader)==null||it.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(it){const xt=this._rangeReaders.indexOf(it);xt>=0&&this._rangeReaders.splice(xt,1)}getFullReader(){(0,pt.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const it=this._queuedChunks;return this._queuedChunks=null,new Ct(this,it,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(it,xt){if(xt<=this._progressiveDataLength)return null;const et=new Rt(this,it,xt);return this._pdfDataRangeTransport.requestDataRange(it,xt),this._rangeReaders.push(et),et}cancelAllRequests(it){var xt;(xt=this._fullRequestReader)==null||xt.cancel(it);for(const et of this._rangeReaders.slice(0))et.cancel(it);this._pdfDataRangeTransport.abort()}}i.PDFDataTransportStream=Gt;class Ct{constructor(it,xt,et=!1,Tt=null){this._stream=it,this._done=et||!1,this._filename=(0,Lt.isPdfFile)(Tt)?Tt:null,this._queuedChunks=xt||[],this._loaded=0;for(const yt of this._queuedChunks)this._loaded+=yt.byteLength;this._requests=[],this._headersReady=Promise.resolve(),it._fullRequestReader=this,this.onProgress=null}_enqueue(it){this._done||(this._requests.length>0?this._requests.shift().resolve({value:it,done:!1}):this._queuedChunks.push(it),this._loaded+=it.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const it=new pt.PromiseCapability;return this._requests.push(it),it.promise}cancel(it){this._done=!0;for(const xt of this._requests)xt.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class Rt{constructor(it,xt,et){this._stream=it,this._begin=xt,this._end=et,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(it){if(!this._done){if(this._requests.length===0)this._queuedChunk=it;else{this._requests.shift().resolve({value:it,done:!1});for(const et of this._requests)et.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const xt=this._queuedChunk;return this._queuedChunk=null,{value:xt,done:!1}}if(this._done)return{value:void 0,done:!0};const it=new pt.PromiseCapability;return this._requests.push(it),it.promise}cancel(it){this._done=!0;for(const xt of this._requests)xt.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}},(a,i,_e)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.PDFFetchStream=void 0;var pt=_e(1),Lt=_e(20);function Gt(et,Tt,yt){return{method:"GET",headers:et,signal:yt.signal,mode:"cors",credentials:Tt?"include":"same-origin",redirect:"follow"}}function Ct(et){const Tt=new Headers;for(const yt in et){const ut=et[yt];ut!==void 0&&Tt.append(yt,ut)}return Tt}function Rt(et){return et instanceof Uint8Array?et.buffer:et instanceof ArrayBuffer?et:((0,pt.warn)(`getArrayBuffer - unexpected data format: ${et}`),new Uint8Array(et).buffer)}class o{constructor(Tt){this.source=Tt,this.isHttp=/^https?:/i.test(Tt.url),this.httpHeaders=this.isHttp&&Tt.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var Tt;return((Tt=this._fullRequestReader)==null?void 0:Tt._loaded)??0}getFullReader(){return(0,pt.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new it(this),this._fullRequestReader}getRangeReader(Tt,yt){if(yt<=this._progressiveDataLength)return null;const ut=new xt(this,Tt,yt);return this._rangeRequestReaders.push(ut),ut}cancelAllRequests(Tt){var yt;(yt=this._fullRequestReader)==null||yt.cancel(Tt);for(const ut of this._rangeRequestReaders.slice(0))ut.cancel(Tt)}}i.PDFFetchStream=o;class it{constructor(Tt){this._stream=Tt,this._reader=null,this._loaded=0,this._filename=null;const yt=Tt.source;this._withCredentials=yt.withCredentials||!1,this._contentLength=yt.length,this._headersCapability=new pt.PromiseCapability,this._disableRange=yt.disableRange||!1,this._rangeChunkSize=yt.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!yt.disableStream,this._isRangeSupported=!yt.disableRange,this._headers=Ct(this._stream.httpHeaders);const ut=yt.url;fetch(ut,Gt(this._headers,this._withCredentials,this._abortController)).then(ht=>{if(!(0,Lt.validateResponseStatus)(ht.status))throw(0,Lt.createResponseStatusError)(ht.status,ut);this._reader=ht.body.getReader(),this._headersCapability.resolve();const j=tt=>ht.headers.get(tt),{allowRangeRequests:_,suggestedLength:rt}=(0,Lt.validateRangeRequestCapabilities)({getResponseHeader:j,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=_,this._contentLength=rt||this._contentLength,this._filename=(0,Lt.extractFilenameFromHeader)(j),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new pt.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var ut;await this._headersCapability.promise;const{value:Tt,done:yt}=await this._reader.read();return yt?{value:Tt,done:yt}:(this._loaded+=Tt.byteLength,(ut=this.onProgress)==null||ut.call(this,{loaded:this._loaded,total:this._contentLength}),{value:Rt(Tt),done:!1})}cancel(Tt){var yt;(yt=this._reader)==null||yt.cancel(Tt),this._abortController.abort()}}class xt{constructor(Tt,yt,ut){this._stream=Tt,this._reader=null,this._loaded=0;const ht=Tt.source;this._withCredentials=ht.withCredentials||!1,this._readCapability=new pt.PromiseCapability,this._isStreamingSupported=!ht.disableStream,this._abortController=new AbortController,this._headers=Ct(this._stream.httpHeaders),this._headers.append("Range",`bytes=${yt}-${ut-1}`);const j=ht.url;fetch(j,Gt(this._headers,this._withCredentials,this._abortController)).then(_=>{if(!(0,Lt.validateResponseStatus)(_.status))throw(0,Lt.createResponseStatusError)(_.status,j);this._readCapability.resolve(),this._reader=_.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){var ut;await this._readCapability.promise;const{value:Tt,done:yt}=await this._reader.read();return yt?{value:Tt,done:yt}:(this._loaded+=Tt.byteLength,(ut=this.onProgress)==null||ut.call(this,{loaded:this._loaded}),{value:Rt(Tt),done:!1})}cancel(Tt){var yt;(yt=this._reader)==null||yt.cancel(Tt),this._abortController.abort()}}},(a,i,_e)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.createResponseStatusError=o,i.extractFilenameFromHeader=Rt,i.validateRangeRequestCapabilities=Ct,i.validateResponseStatus=it;var pt=_e(1),Lt=_e(21),Gt=_e(6);function Ct({getResponseHeader:xt,isHttp:et,rangeChunkSize:Tt,disableRange:yt}){const ut={allowRangeRequests:!1,suggestedLength:void 0},ht=parseInt(xt("Content-Length"),10);return!Number.isInteger(ht)||(ut.suggestedLength=ht,ht<=2*Tt)||yt||!et||xt("Accept-Ranges")!=="bytes"||(xt("Content-Encoding")||"identity")!=="identity"||(ut.allowRangeRequests=!0),ut}function Rt(xt){const et=xt("Content-Disposition");if(et){let Tt=(0,Lt.getFilenameFromContentDispositionHeader)(et);if(Tt.includes("%"))try{Tt=decodeURIComponent(Tt)}catch{}if((0,Gt.isPdfFile)(Tt))return Tt}return null}function o(xt,et){return xt===404||xt===0&&et.startsWith("file:")?new pt.MissingPDFException('Missing PDF "'+et+'".'):new pt.UnexpectedResponseException(`Unexpected server response (${xt}) while retrieving PDF "${et}".`,xt)}function it(xt){return xt===200||xt===206}},(a,i,_e)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.getFilenameFromContentDispositionHeader=Lt;var pt=_e(1);function Lt(Gt){let Ct=!0,Rt=o("filename\\*","i").exec(Gt);if(Rt){Rt=Rt[1];let ht=Tt(Rt);return ht=unescape(ht),ht=yt(ht),ht=ut(ht),xt(ht)}if(Rt=et(Gt),Rt){const ht=ut(Rt);return xt(ht)}if(Rt=o("filename","i").exec(Gt),Rt){Rt=Rt[1];let ht=Tt(Rt);return ht=ut(ht),xt(ht)}function o(ht,j){return new RegExp("(?:^|;)\\s*"+ht+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',j)}function it(ht,j){if(ht){if(!/^[\x00-\xFF]+$/.test(j))return j;try{const _=new TextDecoder(ht,{fatal:!0}),rt=(0,pt.stringToBytes)(j);j=_.decode(rt),Ct=!1}catch{}}return j}function xt(ht){return Ct&&/[\x80-\xff]/.test(ht)&&(ht=it("utf-8",ht),Ct&&(ht=it("iso-8859-1",ht))),ht}function et(ht){const j=[];let _;const rt=o("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(_=rt.exec(ht))!==null;){let[,st,ot,nt]=_;if(st=parseInt(st,10),st in j){if(st===0)break;continue}j[st]=[ot,nt]}const tt=[];for(let st=0;st{Object.defineProperty(i,"__esModule",{value:!0}),i.PDFNetworkStream=void 0;var pt=_e(1),Lt=_e(20);const Gt=200,Ct=206;function Rt(Tt){const yt=Tt.response;return typeof yt!="string"?yt:(0,pt.stringToBytes)(yt).buffer}class o{constructor(yt,ut={}){this.url=yt,this.isHttp=/^https?:/i.test(yt),this.httpHeaders=this.isHttp&&ut.httpHeaders||Object.create(null),this.withCredentials=ut.withCredentials||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(yt,ut,ht){const j={begin:yt,end:ut};for(const _ in ht)j[_]=ht[_];return this.request(j)}requestFull(yt){return this.request(yt)}request(yt){const ut=new XMLHttpRequest,ht=this.currXhrId++,j=this.pendingRequests[ht]={xhr:ut};ut.open("GET",this.url),ut.withCredentials=this.withCredentials;for(const _ in this.httpHeaders){const rt=this.httpHeaders[_];rt!==void 0&&ut.setRequestHeader(_,rt)}return this.isHttp&&"begin"in yt&&"end"in yt?(ut.setRequestHeader("Range",`bytes=${yt.begin}-${yt.end-1}`),j.expectedStatus=Ct):j.expectedStatus=Gt,ut.responseType="arraybuffer",yt.onError&&(ut.onerror=function(_){yt.onError(ut.status)}),ut.onreadystatechange=this.onStateChange.bind(this,ht),ut.onprogress=this.onProgress.bind(this,ht),j.onHeadersReceived=yt.onHeadersReceived,j.onDone=yt.onDone,j.onError=yt.onError,j.onProgress=yt.onProgress,ut.send(null),ht}onProgress(yt,ut){var j;const ht=this.pendingRequests[yt];ht&&((j=ht.onProgress)==null||j.call(ht,ut))}onStateChange(yt,ut){var st,ot,nt;const ht=this.pendingRequests[yt];if(!ht)return;const j=ht.xhr;if(j.readyState>=2&&ht.onHeadersReceived&&(ht.onHeadersReceived(),delete ht.onHeadersReceived),j.readyState!==4||!(yt in this.pendingRequests))return;if(delete this.pendingRequests[yt],j.status===0&&this.isHttp){(st=ht.onError)==null||st.call(ht,j.status);return}const _=j.status||Gt;if(!(_===Gt&&ht.expectedStatus===Ct)&&_!==ht.expectedStatus){(ot=ht.onError)==null||ot.call(ht,j.status);return}const tt=Rt(j);if(_===Ct){const vt=j.getResponseHeader("Content-Range"),dt=/bytes (\d+)-(\d+)\/(\d+)/.exec(vt);ht.onDone({begin:parseInt(dt[1],10),chunk:tt})}else tt?ht.onDone({begin:0,chunk:tt}):(nt=ht.onError)==null||nt.call(ht,j.status)}getRequestXhr(yt){return this.pendingRequests[yt].xhr}isPendingRequest(yt){return yt in this.pendingRequests}abortRequest(yt){const ut=this.pendingRequests[yt].xhr;delete this.pendingRequests[yt],ut.abort()}}class it{constructor(yt){this._source=yt,this._manager=new o(yt.url,{httpHeaders:yt.httpHeaders,withCredentials:yt.withCredentials}),this._rangeChunkSize=yt.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(yt){const ut=this._rangeRequestReaders.indexOf(yt);ut>=0&&this._rangeRequestReaders.splice(ut,1)}getFullReader(){return(0,pt.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new xt(this._manager,this._source),this._fullRequestReader}getRangeReader(yt,ut){const ht=new et(this._manager,yt,ut);return ht.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(ht),ht}cancelAllRequests(yt){var ut;(ut=this._fullRequestReader)==null||ut.cancel(yt);for(const ht of this._rangeRequestReaders.slice(0))ht.cancel(yt)}}i.PDFNetworkStream=it;class xt{constructor(yt,ut){this._manager=yt;const ht={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=ut.url,this._fullRequestId=yt.requestFull(ht),this._headersReceivedCapability=new pt.PromiseCapability,this._disableRange=ut.disableRange||!1,this._contentLength=ut.length,this._rangeChunkSize=ut.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const yt=this._fullRequestId,ut=this._manager.getRequestXhr(yt),ht=rt=>ut.getResponseHeader(rt),{allowRangeRequests:j,suggestedLength:_}=(0,Lt.validateRangeRequestCapabilities)({getResponseHeader:ht,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});j&&(this._isRangeSupported=!0),this._contentLength=_||this._contentLength,this._filename=(0,Lt.extractFilenameFromHeader)(ht),this._isRangeSupported&&this._manager.abortRequest(yt),this._headersReceivedCapability.resolve()}_onDone(yt){if(yt&&(this._requests.length>0?this._requests.shift().resolve({value:yt.chunk,done:!1}):this._cachedChunks.push(yt.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const ut of this._requests)ut.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(yt){this._storedError=(0,Lt.createResponseStatusError)(yt,this._url),this._headersReceivedCapability.reject(this._storedError);for(const ut of this._requests)ut.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(yt){var ut;(ut=this.onProgress)==null||ut.call(this,{loaded:yt.loaded,total:yt.lengthComputable?yt.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const yt=new pt.PromiseCapability;return this._requests.push(yt),yt.promise}cancel(yt){this._done=!0,this._headersReceivedCapability.reject(yt);for(const ut of this._requests)ut.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class et{constructor(yt,ut,ht){this._manager=yt;const j={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=yt.url,this._requestId=yt.requestRange(ut,ht,j),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){var yt;(yt=this.onClosed)==null||yt.call(this,this)}_onDone(yt){const ut=yt.chunk;this._requests.length>0?this._requests.shift().resolve({value:ut,done:!1}):this._queuedChunk=ut,this._done=!0;for(const ht of this._requests)ht.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(yt){this._storedError=(0,Lt.createResponseStatusError)(yt,this._url);for(const ut of this._requests)ut.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(yt){var ut;this.isStreamingSupported||(ut=this.onProgress)==null||ut.call(this,{loaded:yt.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(this._queuedChunk!==null){const ut=this._queuedChunk;return this._queuedChunk=null,{value:ut,done:!1}}if(this._done)return{value:void 0,done:!0};const yt=new pt.PromiseCapability;return this._requests.push(yt),yt.promise}cancel(yt){this._done=!0;for(const ut of this._requests)ut.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},(a,i,_e)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.PDFNodeStream=void 0;var pt=_e(1),Lt=_e(20);const Gt=/^file:\/\/\/[a-zA-Z]:\//;function Ct(ht){const j=require$$5,_=j.parse(ht);return _.protocol==="file:"||_.host?_:/^[a-z]:[/\\]/i.test(ht)?j.parse(`file:///${ht}`):(_.host||(_.protocol="file:"),_)}class Rt{constructor(j){this.source=j,this.url=Ct(j.url),this.isHttp=this.url.protocol==="http:"||this.url.protocol==="https:",this.isFsUrl=this.url.protocol==="file:",this.httpHeaders=this.isHttp&&j.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var j;return((j=this._fullRequestReader)==null?void 0:j._loaded)??0}getFullReader(){return(0,pt.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new yt(this):new et(this),this._fullRequestReader}getRangeReader(j,_){if(_<=this._progressiveDataLength)return null;const rt=this.isFsUrl?new ut(this,j,_):new Tt(this,j,_);return this._rangeRequestReaders.push(rt),rt}cancelAllRequests(j){var _;(_=this._fullRequestReader)==null||_.cancel(j);for(const rt of this._rangeRequestReaders.slice(0))rt.cancel(j)}}i.PDFNodeStream=Rt;class o{constructor(j){this._url=j.url,this._done=!1,this._storedError=null,this.onProgress=null;const _=j.source;this._contentLength=_.length,this._loaded=0,this._filename=null,this._disableRange=_.disableRange||!1,this._rangeChunkSize=_.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!_.disableStream,this._isRangeSupported=!_.disableRange,this._readableStream=null,this._readCapability=new pt.PromiseCapability,this._headersCapability=new pt.PromiseCapability}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var rt;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const j=this._readableStream.read();return j===null?(this._readCapability=new pt.PromiseCapability,this.read()):(this._loaded+=j.length,(rt=this.onProgress)==null||rt.call(this,{loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(j).buffer,done:!1})}cancel(j){if(!this._readableStream){this._error(j);return}this._readableStream.destroy(j)}_error(j){this._storedError=j,this._readCapability.resolve()}_setReadableStream(j){this._readableStream=j,j.on("readable",()=>{this._readCapability.resolve()}),j.on("end",()=>{j.destroy(),this._done=!0,this._readCapability.resolve()}),j.on("error",_=>{this._error(_)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new pt.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class it{constructor(j){this._url=j.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=new pt.PromiseCapability;const _=j.source;this._isStreamingSupported=!_.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){var rt;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const j=this._readableStream.read();return j===null?(this._readCapability=new pt.PromiseCapability,this.read()):(this._loaded+=j.length,(rt=this.onProgress)==null||rt.call(this,{loaded:this._loaded}),{value:new Uint8Array(j).buffer,done:!1})}cancel(j){if(!this._readableStream){this._error(j);return}this._readableStream.destroy(j)}_error(j){this._storedError=j,this._readCapability.resolve()}_setReadableStream(j){this._readableStream=j,j.on("readable",()=>{this._readCapability.resolve()}),j.on("end",()=>{j.destroy(),this._done=!0,this._readCapability.resolve()}),j.on("error",_=>{this._error(_)}),this._storedError&&this._readableStream.destroy(this._storedError)}}function xt(ht,j){return{protocol:ht.protocol,auth:ht.auth,host:ht.hostname,port:ht.port,path:ht.path,method:"GET",headers:j}}class et extends o{constructor(j){super(j);const _=rt=>{if(rt.statusCode===404){const nt=new pt.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=nt,this._headersCapability.reject(nt);return}this._headersCapability.resolve(),this._setReadableStream(rt);const tt=nt=>this._readableStream.headers[nt.toLowerCase()],{allowRangeRequests:st,suggestedLength:ot}=(0,Lt.validateRangeRequestCapabilities)({getResponseHeader:tt,isHttp:j.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=st,this._contentLength=ot||this._contentLength,this._filename=(0,Lt.extractFilenameFromHeader)(tt)};if(this._request=null,this._url.protocol==="http:"){const rt=require$$5;this._request=rt.request(xt(this._url,j.httpHeaders),_)}else{const rt=require$$5;this._request=rt.request(xt(this._url,j.httpHeaders),_)}this._request.on("error",rt=>{this._storedError=rt,this._headersCapability.reject(rt)}),this._request.end()}}class Tt extends it{constructor(j,_,rt){super(j),this._httpHeaders={};for(const st in j.httpHeaders){const ot=j.httpHeaders[st];ot!==void 0&&(this._httpHeaders[st]=ot)}this._httpHeaders.Range=`bytes=${_}-${rt-1}`;const tt=st=>{if(st.statusCode===404){const ot=new pt.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=ot;return}this._setReadableStream(st)};if(this._request=null,this._url.protocol==="http:"){const st=require$$5;this._request=st.request(xt(this._url,this._httpHeaders),tt)}else{const st=require$$5;this._request=st.request(xt(this._url,this._httpHeaders),tt)}this._request.on("error",st=>{this._storedError=st}),this._request.end()}}class yt extends o{constructor(j){super(j);let _=decodeURIComponent(this._url.path);Gt.test(this._url.href)&&(_=_.replace(/^\//,""));const rt=require$$5;rt.lstat(_,(tt,st)=>{if(tt){tt.code==="ENOENT"&&(tt=new pt.MissingPDFException(`Missing PDF "${_}".`)),this._storedError=tt,this._headersCapability.reject(tt);return}this._contentLength=st.size,this._setReadableStream(rt.createReadStream(_)),this._headersCapability.resolve()})}}class ut extends it{constructor(j,_,rt){super(j);let tt=decodeURIComponent(this._url.path);Gt.test(this._url.href)&&(tt=tt.replace(/^\//,""));const st=require$$5;this._setReadableStream(st.createReadStream(tt,{start:_,end:rt-1}))}}},(a,i,_e)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.SVGGraphics=void 0;var pt=_e(6),Lt=_e(1);const Gt={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},Ct="http://www.w3.org/XML/1998/namespace",Rt="http://www.w3.org/1999/xlink",o=["butt","round","square"],it=["miter","round","bevel"],xt=function(st,ot="",nt=!1){if(URL.createObjectURL&&typeof Blob<"u"&&!nt)return URL.createObjectURL(new Blob([st],{type:ot}));const vt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let dt=`data:${ot};base64,`;for(let bt=0,ft=st.length;bt>2,Mt=(at&3)<<4|mt>>4,Et=bt+1>6:64,kt=bt+2>1&2147483647:_t>>1&2147483647;nt[St]=_t}function vt(St,_t,Mt){let Et=-1;for(let kt=_t;kt>>8^ct}return Et^-1}function dt(St,_t,Mt,Et){let kt=Et;const wt=_t.length;Mt[kt]=wt>>24&255,Mt[kt+1]=wt>>16&255,Mt[kt+2]=wt>>8&255,Mt[kt+3]=wt&255,kt+=4,Mt[kt]=St.charCodeAt(0)&255,Mt[kt+1]=St.charCodeAt(1)&255,Mt[kt+2]=St.charCodeAt(2)&255,Mt[kt+3]=St.charCodeAt(3)&255,kt+=4,Mt.set(_t,kt),kt+=_t.length;const ct=vt(Mt,Et+4,kt);Mt[kt]=ct>>24&255,Mt[kt+1]=ct>>16&255,Mt[kt+2]=ct>>8&255,Mt[kt+3]=ct&255}function bt(St,_t,Mt){let Et=1,kt=0;for(let wt=_t;wt=8?St:Buffer.from(St),Mt=require$$5.deflateSync(_t,{level:9});return Mt instanceof Uint8Array?Mt:new Uint8Array(Mt)}catch(_t){(0,Lt.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+_t)}return at(St)}function at(St){let _t=St.length;const Mt=65535,Et=Math.ceil(_t/Mt),kt=new Uint8Array(2+_t+Et*5+4);let wt=0;kt[wt++]=120,kt[wt++]=156;let ct=0;for(;_t>Mt;)kt[wt++]=0,kt[wt++]=255,kt[wt++]=255,kt[wt++]=0,kt[wt++]=0,kt.set(St.subarray(ct,ct+Mt),wt),wt+=Mt,ct+=Mt,_t-=Mt;kt[wt++]=1,kt[wt++]=_t&255,kt[wt++]=_t>>8&255,kt[wt++]=~_t&65535&255,kt[wt++]=(~_t&65535)>>8&255,kt.set(St.subarray(ct),wt),wt+=St.length-ct;const It=bt(St,0,St.length);return kt[wt++]=It>>24&255,kt[wt++]=It>>16&255,kt[wt++]=It>>8&255,kt[wt++]=It&255,kt}function mt(St,_t,Mt,Et){const kt=St.width,wt=St.height;let ct,It,At;const Ot=St.data;switch(_t){case Lt.ImageKind.GRAYSCALE_1BPP:It=0,ct=1,At=kt+7>>3;break;case Lt.ImageKind.RGB_24BPP:It=2,ct=8,At=kt*3;break;case Lt.ImageKind.RGBA_32BPP:It=6,ct=8,At=kt*4;break;default:throw new Error("invalid format")}const Pt=new Uint8Array((1+At)*wt);let zt=0,Dt=0;for(let Xt=0;Xt>24&255,kt>>16&255,kt>>8&255,kt&255,wt>>24&255,wt>>16&255,wt>>8&255,wt&255,ct,It,0,0,0]),$t=ft(Pt),Ut=st.length+ot*3+Nt.length+$t.length,Ht=new Uint8Array(Ut);let Vt=0;return Ht.set(st,Vt),Vt+=st.length,dt("IHDR",Nt,Ht,Vt),Vt+=ot+Nt.length,dt("IDATA",$t,Ht,Vt),Vt+=ot+$t.length,dt("IEND",new Uint8Array(0),Ht,Vt),xt(Ht,"image/png",Mt)}return function(_t,Mt,Et){const kt=_t.kind===void 0?Lt.ImageKind.GRAYSCALE_1BPP:_t.kind;return mt(_t,kt,Mt,Et)}}();class Tt{constructor(){this.fontSizeScale=1,this.fontWeight=Gt.fontWeight,this.fontSize=0,this.textMatrix=Lt.IDENTITY_MATRIX,this.fontMatrix=Lt.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=Lt.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=Gt.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(ot,nt){this.x=ot,this.y=nt}}function yt(st){let ot=[];const nt=[];for(const vt of st){if(vt.fn==="save"){ot.push({fnId:92,fn:"group",items:[]}),nt.push(ot),ot=ot.at(-1).items;continue}vt.fn==="restore"?ot=nt.pop():ot.push(vt)}return ot}function ut(st){if(Number.isInteger(st))return st.toString();const ot=st.toFixed(10);let nt=ot.length-1;if(ot[nt]!=="0")return ot;do nt--;while(ot[nt]==="0");return ot.substring(0,ot[nt]==="."?nt:nt+1)}function ht(st){if(st[4]===0&&st[5]===0){if(st[1]===0&&st[2]===0)return st[0]===1&&st[3]===1?"":`scale(${ut(st[0])} ${ut(st[3])})`;if(st[0]===st[3]&&st[1]===-st[2]){const ot=Math.acos(st[0])*180/Math.PI;return`rotate(${ut(ot)})`}}else if(st[0]===1&&st[1]===0&&st[2]===0&&st[3]===1)return`translate(${ut(st[4])} ${ut(st[5])})`;return`matrix(${ut(st[0])} ${ut(st[1])} ${ut(st[2])} ${ut(st[3])} ${ut(st[4])} ${ut(st[5])})`}let j=0,_=0,rt=0;class tt{constructor(ot,nt,vt=!1){(0,pt.deprecated)("The SVG back-end is no longer maintained and *may* be removed in the future."),this.svgFactory=new pt.DOMSVGFactory,this.current=new Tt,this.transformMatrix=Lt.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=ot,this.objs=nt,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!vt,this._operatorIdMapping=[];for(const dt in Lt.OPS)this._operatorIdMapping[Lt.OPS[dt]]=dt}getObject(ot,nt=null){return typeof ot=="string"?ot.startsWith("g_")?this.commonObjs.get(ot):this.objs.get(ot):nt}save(){this.transformStack.push(this.transformMatrix);const ot=this.current;this.extraStack.push(ot),this.current=ot.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(ot){this.save(),this.executeOpTree(ot),this.restore()}loadDependencies(ot){const nt=ot.fnArray,vt=ot.argsArray;for(let dt=0,bt=nt.length;dt{at.get(ft,St)});this.current.dependencies.push(mt)}return Promise.all(this.current.dependencies)}transform(ot,nt,vt,dt,bt,ft){const at=[ot,nt,vt,dt,bt,ft];this.transformMatrix=Lt.Util.transform(this.transformMatrix,at),this.tgrp=null}getSVG(ot,nt){this.viewport=nt;const vt=this._initialize(nt);return this.loadDependencies(ot).then(()=>(this.transformMatrix=Lt.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(ot)),vt))}convertOpList(ot){const nt=this._operatorIdMapping,vt=ot.argsArray,dt=ot.fnArray,bt=[];for(let ft=0,at=dt.length;ft0&&(this.current.lineWidth=ot)}setLineCap(ot){this.current.lineCap=o[ot]}setLineJoin(ot){this.current.lineJoin=it[ot]}setMiterLimit(ot){this.current.miterLimit=ot}setStrokeAlpha(ot){this.current.strokeAlpha=ot}setStrokeRGBColor(ot,nt,vt){this.current.strokeColor=Lt.Util.makeHexColor(ot,nt,vt)}setFillAlpha(ot){this.current.fillAlpha=ot}setFillRGBColor(ot,nt,vt){this.current.fillColor=Lt.Util.makeHexColor(ot,nt,vt),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(ot){this.current.strokeColor=this._makeColorN_Pattern(ot)}setFillColorN(ot){this.current.fillColor=this._makeColorN_Pattern(ot)}shadingFill(ot){const{width:nt,height:vt}=this.viewport,dt=Lt.Util.inverseTransform(this.transformMatrix),[bt,ft,at,mt]=Lt.Util.getAxialAlignedBoundingBox([0,0,nt,vt],dt),St=this.svgFactory.createElement("svg:rect");St.setAttributeNS(null,"x",bt),St.setAttributeNS(null,"y",ft),St.setAttributeNS(null,"width",at-bt),St.setAttributeNS(null,"height",mt-ft),St.setAttributeNS(null,"fill",this._makeShadingPattern(ot)),this.current.fillAlpha<1&&St.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().append(St)}_makeColorN_Pattern(ot){return ot[0]==="TilingPattern"?this._makeTilingPattern(ot):this._makeShadingPattern(ot)}_makeTilingPattern(ot){const nt=ot[1],vt=ot[2],dt=ot[3]||Lt.IDENTITY_MATRIX,[bt,ft,at,mt]=ot[4],St=ot[5],_t=ot[6],Mt=ot[7],Et=`shading${rt++}`,[kt,wt,ct,It]=Lt.Util.normalizeRect([...Lt.Util.applyTransform([bt,ft],dt),...Lt.Util.applyTransform([at,mt],dt)]),[At,Ot]=Lt.Util.singularValueDecompose2dScale(dt),Pt=St*At,zt=_t*Ot,Dt=this.svgFactory.createElement("svg:pattern");Dt.setAttributeNS(null,"id",Et),Dt.setAttributeNS(null,"patternUnits","userSpaceOnUse"),Dt.setAttributeNS(null,"width",Pt),Dt.setAttributeNS(null,"height",zt),Dt.setAttributeNS(null,"x",`${kt}`),Dt.setAttributeNS(null,"y",`${wt}`);const Nt=this.svg,$t=this.transformMatrix,Ut=this.current.fillColor,Ht=this.current.strokeColor,Vt=this.svgFactory.create(ct-kt,It-wt);if(this.svg=Vt,this.transformMatrix=dt,Mt===2){const Xt=Lt.Util.makeHexColor(...nt);this.current.fillColor=Xt,this.current.strokeColor=Xt}return this.executeOpTree(this.convertOpList(vt)),this.svg=Nt,this.transformMatrix=$t,this.current.fillColor=Ut,this.current.strokeColor=Ht,Dt.append(Vt.childNodes[0]),this.defs.append(Dt),`url(#${Et})`}_makeShadingPattern(ot){switch(typeof ot=="string"&&(ot=this.objs.get(ot)),ot[0]){case"RadialAxial":const nt=`shading${rt++}`,vt=ot[3];let dt;switch(ot[1]){case"axial":const bt=ot[4],ft=ot[5];dt=this.svgFactory.createElement("svg:linearGradient"),dt.setAttributeNS(null,"id",nt),dt.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),dt.setAttributeNS(null,"x1",bt[0]),dt.setAttributeNS(null,"y1",bt[1]),dt.setAttributeNS(null,"x2",ft[0]),dt.setAttributeNS(null,"y2",ft[1]);break;case"radial":const at=ot[4],mt=ot[5],St=ot[6],_t=ot[7];dt=this.svgFactory.createElement("svg:radialGradient"),dt.setAttributeNS(null,"id",nt),dt.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),dt.setAttributeNS(null,"cx",mt[0]),dt.setAttributeNS(null,"cy",mt[1]),dt.setAttributeNS(null,"r",_t),dt.setAttributeNS(null,"fx",at[0]),dt.setAttributeNS(null,"fy",at[1]),dt.setAttributeNS(null,"fr",St);break;default:throw new Error(`Unknown RadialAxial type: ${ot[1]}`)}for(const bt of vt){const ft=this.svgFactory.createElement("svg:stop");ft.setAttributeNS(null,"offset",bt[0]),ft.setAttributeNS(null,"stop-color",bt[1]),dt.append(ft)}return this.defs.append(dt),`url(#${nt})`;case"Mesh":return(0,Lt.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${ot[0]}`)}}setDash(ot,nt){this.current.dashArray=ot,this.current.dashPhase=nt}constructPath(ot,nt){const vt=this.current;let dt=vt.x,bt=vt.y,ft=[],at=0;for(const mt of ot)switch(mt|0){case Lt.OPS.rectangle:dt=nt[at++],bt=nt[at++];const St=nt[at++],_t=nt[at++],Mt=dt+St,Et=bt+_t;ft.push("M",ut(dt),ut(bt),"L",ut(Mt),ut(bt),"L",ut(Mt),ut(Et),"L",ut(dt),ut(Et),"Z");break;case Lt.OPS.moveTo:dt=nt[at++],bt=nt[at++],ft.push("M",ut(dt),ut(bt));break;case Lt.OPS.lineTo:dt=nt[at++],bt=nt[at++],ft.push("L",ut(dt),ut(bt));break;case Lt.OPS.curveTo:dt=nt[at+4],bt=nt[at+5],ft.push("C",ut(nt[at]),ut(nt[at+1]),ut(nt[at+2]),ut(nt[at+3]),ut(dt),ut(bt)),at+=6;break;case Lt.OPS.curveTo2:ft.push("C",ut(dt),ut(bt),ut(nt[at]),ut(nt[at+1]),ut(nt[at+2]),ut(nt[at+3])),dt=nt[at+2],bt=nt[at+3],at+=4;break;case Lt.OPS.curveTo3:dt=nt[at+2],bt=nt[at+3],ft.push("C",ut(nt[at]),ut(nt[at+1]),ut(dt),ut(bt),ut(dt),ut(bt)),at+=4;break;case Lt.OPS.closePath:ft.push("Z");break}ft=ft.join(" "),vt.path&&ot.length>0&&ot[0]!==Lt.OPS.rectangle&&ot[0]!==Lt.OPS.moveTo?ft=vt.path.getAttributeNS(null,"d")+ft:(vt.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().append(vt.path)),vt.path.setAttributeNS(null,"d",ft),vt.path.setAttributeNS(null,"fill","none"),vt.element=vt.path,vt.setCurrentPoint(dt,bt)}endPath(){const ot=this.current;if(ot.path=null,!this.pendingClip)return;if(!ot.element){this.pendingClip=null;return}const nt=`clippath${j++}`,vt=this.svgFactory.createElement("svg:clipPath");vt.setAttributeNS(null,"id",nt),vt.setAttributeNS(null,"transform",ht(this.transformMatrix));const dt=ot.element.cloneNode(!0);if(this.pendingClip==="evenodd"?dt.setAttributeNS(null,"clip-rule","evenodd"):dt.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,vt.append(dt),this.defs.append(vt),ot.activeClipUrl){ot.clipGroup=null;for(const bt of this.extraStack)bt.clipGroup=null;vt.setAttributeNS(null,"clip-path",ot.activeClipUrl)}ot.activeClipUrl=`url(#${nt})`,this.tgrp=null}clip(ot){this.pendingClip=ot}closePath(){const ot=this.current;if(ot.path){const nt=`${ot.path.getAttributeNS(null,"d")}Z`;ot.path.setAttributeNS(null,"d",nt)}}setLeading(ot){this.current.leading=-ot}setTextRise(ot){this.current.textRise=ot}setTextRenderingMode(ot){this.current.textRenderingMode=ot}setHScale(ot){this.current.textHScale=ot/100}setRenderingIntent(ot){}setFlatness(ot){}setGState(ot){for(const[nt,vt]of ot)switch(nt){case"LW":this.setLineWidth(vt);break;case"LC":this.setLineCap(vt);break;case"LJ":this.setLineJoin(vt);break;case"ML":this.setMiterLimit(vt);break;case"D":this.setDash(vt[0],vt[1]);break;case"RI":this.setRenderingIntent(vt);break;case"FL":this.setFlatness(vt);break;case"Font":this.setFont(vt);break;case"CA":this.setStrokeAlpha(vt);break;case"ca":this.setFillAlpha(vt);break;default:(0,Lt.warn)(`Unimplemented graphic state operator ${nt}`);break}}fill(){const ot=this.current;ot.element&&(ot.element.setAttributeNS(null,"fill",ot.fillColor),ot.element.setAttributeNS(null,"fill-opacity",ot.fillAlpha),this.endPath())}stroke(){const ot=this.current;ot.element&&(this._setStrokeAttributes(ot.element),ot.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(ot,nt=1){const vt=this.current;let dt=vt.dashArray;nt!==1&&dt.length>0&&(dt=dt.map(function(bt){return nt*bt})),ot.setAttributeNS(null,"stroke",vt.strokeColor),ot.setAttributeNS(null,"stroke-opacity",vt.strokeAlpha),ot.setAttributeNS(null,"stroke-miterlimit",ut(vt.miterLimit)),ot.setAttributeNS(null,"stroke-linecap",vt.lineCap),ot.setAttributeNS(null,"stroke-linejoin",vt.lineJoin),ot.setAttributeNS(null,"stroke-width",ut(nt*vt.lineWidth)+"px"),ot.setAttributeNS(null,"stroke-dasharray",dt.map(ut).join(" ")),ot.setAttributeNS(null,"stroke-dashoffset",ut(nt*vt.dashPhase)+"px")}eoFill(){var ot;(ot=this.current.element)==null||ot.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){var ot;(ot=this.current.element)==null||ot.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const ot=this.svgFactory.createElement("svg:rect");ot.setAttributeNS(null,"x","0"),ot.setAttributeNS(null,"y","0"),ot.setAttributeNS(null,"width","1px"),ot.setAttributeNS(null,"height","1px"),ot.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().append(ot)}paintImageXObject(ot){const nt=this.getObject(ot);if(!nt){(0,Lt.warn)(`Dependent image with object ID ${ot} is not ready yet`);return}this.paintInlineImageXObject(nt)}paintInlineImageXObject(ot,nt){const vt=ot.width,dt=ot.height,bt=et(ot,this.forceDataSchema,!!nt),ft=this.svgFactory.createElement("svg:rect");ft.setAttributeNS(null,"x","0"),ft.setAttributeNS(null,"y","0"),ft.setAttributeNS(null,"width",ut(vt)),ft.setAttributeNS(null,"height",ut(dt)),this.current.element=ft,this.clip("nonzero");const at=this.svgFactory.createElement("svg:image");at.setAttributeNS(Rt,"xlink:href",bt),at.setAttributeNS(null,"x","0"),at.setAttributeNS(null,"y",ut(-dt)),at.setAttributeNS(null,"width",ut(vt)+"px"),at.setAttributeNS(null,"height",ut(dt)+"px"),at.setAttributeNS(null,"transform",`scale(${ut(1/vt)} ${ut(-1/dt)})`),nt?nt.append(at):this._ensureTransformGroup().append(at)}paintImageMaskXObject(ot){const nt=this.getObject(ot.data,ot);if(nt.bitmap){(0,Lt.warn)("paintImageMaskXObject: ImageBitmap support is not implemented, ensure that the `isOffscreenCanvasSupported` API parameter is disabled.");return}const vt=this.current,dt=nt.width,bt=nt.height,ft=vt.fillColor;vt.maskId=`mask${_++}`;const at=this.svgFactory.createElement("svg:mask");at.setAttributeNS(null,"id",vt.maskId);const mt=this.svgFactory.createElement("svg:rect");mt.setAttributeNS(null,"x","0"),mt.setAttributeNS(null,"y","0"),mt.setAttributeNS(null,"width",ut(dt)),mt.setAttributeNS(null,"height",ut(bt)),mt.setAttributeNS(null,"fill",ft),mt.setAttributeNS(null,"mask",`url(#${vt.maskId})`),this.defs.append(at),this._ensureTransformGroup().append(mt),this.paintInlineImageXObject(nt,at)}paintFormXObjectBegin(ot,nt){if(Array.isArray(ot)&&ot.length===6&&this.transform(ot[0],ot[1],ot[2],ot[3],ot[4],ot[5]),nt){const vt=nt[2]-nt[0],dt=nt[3]-nt[1],bt=this.svgFactory.createElement("svg:rect");bt.setAttributeNS(null,"x",nt[0]),bt.setAttributeNS(null,"y",nt[1]),bt.setAttributeNS(null,"width",ut(vt)),bt.setAttributeNS(null,"height",ut(dt)),this.current.element=bt,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(ot){const nt=this.svgFactory.create(ot.width,ot.height),vt=this.svgFactory.createElement("svg:defs");nt.append(vt),this.defs=vt;const dt=this.svgFactory.createElement("svg:g");return dt.setAttributeNS(null,"transform",ht(ot.transform)),nt.append(dt),this.svg=dt,nt}_ensureClipGroup(){if(!this.current.clipGroup){const ot=this.svgFactory.createElement("svg:g");ot.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.append(ot),this.current.clipGroup=ot}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",ht(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().append(this.tgrp):this.svg.append(this.tgrp)),this.tgrp}}i.SVGGraphics=tt},(a,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.XfaText=void 0;class _e{static textContent(Lt){const Gt=[],Ct={items:Gt,styles:Object.create(null)};function Rt(o){var et;if(!o)return;let it=null;const xt=o.name;if(xt==="#text")it=o.value;else if(_e.shouldBuildText(xt))(et=o==null?void 0:o.attributes)!=null&&et.textContent?it=o.attributes.textContent:o.value&&(it=o.value);else return;if(it!==null&&Gt.push({str:it}),!!o.children)for(const Tt of o.children)Rt(Tt)}return Rt(Lt),Ct}static shouldBuildText(Lt){return!(Lt==="textarea"||Lt==="input"||Lt==="option"||Lt==="select")}}i.XfaText=_e},(a,i,_e)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.TextLayerRenderTask=void 0,i.renderTextLayer=ht,i.updateTextLayer=j;var pt=_e(1),Lt=_e(6);const Gt=1e5,Ct=30,Rt=.8,o=new Map;function it(_,rt){let tt;if(rt&&pt.FeatureTest.isOffscreenCanvasSupported)tt=new OffscreenCanvas(_,_).getContext("2d",{alpha:!1});else{const st=document.createElement("canvas");st.width=st.height=_,tt=st.getContext("2d",{alpha:!1})}return tt}function xt(_,rt){const tt=o.get(_);if(tt)return tt;const st=it(Ct,rt);st.font=`${Ct}px ${_}`;const ot=st.measureText("");let nt=ot.fontBoundingBoxAscent,vt=Math.abs(ot.fontBoundingBoxDescent);if(nt){const bt=nt/(nt+vt);return o.set(_,bt),st.canvas.width=st.canvas.height=0,bt}st.strokeStyle="red",st.clearRect(0,0,Ct,Ct),st.strokeText("g",0,0);let dt=st.getImageData(0,0,Ct,Ct).data;vt=0;for(let bt=dt.length-1-3;bt>=0;bt-=4)if(dt[bt]>0){vt=Math.ceil(bt/4/Ct);break}st.clearRect(0,0,Ct,Ct),st.strokeText("A",0,Ct),dt=st.getImageData(0,0,Ct,Ct).data,nt=0;for(let bt=0,ft=dt.length;bt0){nt=Ct-Math.floor(bt/4/Ct);break}if(st.canvas.width=st.canvas.height=0,nt){const bt=nt/(nt+vt);return o.set(_,bt),bt}return o.set(_,Rt),Rt}function et(_,rt,tt){const st=document.createElement("span"),ot={angle:0,canvasWidth:0,hasText:rt.str!=="",hasEOL:rt.hasEOL,fontSize:0};_._textDivs.push(st);const nt=pt.Util.transform(_._transform,rt.transform);let vt=Math.atan2(nt[1],nt[0]);const dt=tt[rt.fontName];dt.vertical&&(vt+=Math.PI/2);const bt=Math.hypot(nt[2],nt[3]),ft=bt*xt(dt.fontFamily,_._isOffscreenCanvasSupported);let at,mt;vt===0?(at=nt[4],mt=nt[5]-ft):(at=nt[4]+ft*Math.sin(vt),mt=nt[5]-ft*Math.cos(vt));const St="calc(var(--scale-factor)*",_t=st.style;_._container===_._rootContainer?(_t.left=`${(100*at/_._pageWidth).toFixed(2)}%`,_t.top=`${(100*mt/_._pageHeight).toFixed(2)}%`):(_t.left=`${St}${at.toFixed(2)}px)`,_t.top=`${St}${mt.toFixed(2)}px)`),_t.fontSize=`${St}${bt.toFixed(2)}px)`,_t.fontFamily=dt.fontFamily,ot.fontSize=bt,st.setAttribute("role","presentation"),st.textContent=rt.str,st.dir=rt.dir,_._fontInspectorEnabled&&(st.dataset.fontName=rt.fontName),vt!==0&&(ot.angle=vt*(180/Math.PI));let Mt=!1;if(rt.str.length>1)Mt=!0;else if(rt.str!==" "&&rt.transform[0]!==rt.transform[3]){const Et=Math.abs(rt.transform[0]),kt=Math.abs(rt.transform[3]);Et!==kt&&Math.max(Et,kt)/Math.min(Et,kt)>1.5&&(Mt=!0)}Mt&&(ot.canvasWidth=dt.vertical?rt.height:rt.width),_._textDivProperties.set(st,ot),_._isReadableStream&&_._layoutText(st)}function Tt(_){const{div:rt,scale:tt,properties:st,ctx:ot,prevFontSize:nt,prevFontFamily:vt}=_,{style:dt}=rt;let bt="";if(st.canvasWidth!==0&&st.hasText){const{fontFamily:ft}=dt,{canvasWidth:at,fontSize:mt}=st;(nt!==mt||vt!==ft)&&(ot.font=`${mt*tt}px ${ft}`,_.prevFontSize=mt,_.prevFontFamily=ft);const{width:St}=ot.measureText(rt.textContent);St>0&&(bt=`scaleX(${at*tt/St})`)}st.angle!==0&&(bt=`rotate(${st.angle}deg) ${bt}`),bt.length>0&&(dt.transform=bt)}function yt(_){if(_._canceled)return;const rt=_._textDivs,tt=_._capability;if(rt.length>Gt){tt.resolve();return}if(!_._isReadableStream)for(const ot of rt)_._layoutText(ot);tt.resolve()}class ut{constructor({textContentSource:rt,container:tt,viewport:st,textDivs:ot,textDivProperties:nt,textContentItemsStr:vt,isOffscreenCanvasSupported:dt}){var St;this._textContentSource=rt,this._isReadableStream=rt instanceof ReadableStream,this._container=this._rootContainer=tt,this._textDivs=ot||[],this._textContentItemsStr=vt||[],this._isOffscreenCanvasSupported=dt,this._fontInspectorEnabled=!!((St=globalThis.FontInspector)!=null&&St.enabled),this._reader=null,this._textDivProperties=nt||new WeakMap,this._canceled=!1,this._capability=new pt.PromiseCapability,this._layoutTextParams={prevFontSize:null,prevFontFamily:null,div:null,scale:st.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:it(0,dt)};const{pageWidth:bt,pageHeight:ft,pageX:at,pageY:mt}=st.rawDims;this._transform=[1,0,0,-1,-at,mt+ft],this._pageWidth=bt,this._pageHeight=ft,(0,Lt.setLayerDimensions)(tt,st),this._capability.promise.finally(()=>{this._layoutTextParams=null}).catch(()=>{})}get promise(){return this._capability.promise}cancel(){this._canceled=!0,this._reader&&(this._reader.cancel(new pt.AbortException("TextLayer task cancelled.")).catch(()=>{}),this._reader=null),this._capability.reject(new pt.AbortException("TextLayer task cancelled."))}_processItems(rt,tt){for(const st of rt){if(st.str===void 0){if(st.type==="beginMarkedContentProps"||st.type==="beginMarkedContent"){const ot=this._container;this._container=document.createElement("span"),this._container.classList.add("markedContent"),st.id!==null&&this._container.setAttribute("id",`${st.id}`),ot.append(this._container)}else st.type==="endMarkedContent"&&(this._container=this._container.parentNode);continue}this._textContentItemsStr.push(st.str),et(this,st,tt)}}_layoutText(rt){const tt=this._layoutTextParams.properties=this._textDivProperties.get(rt);if(this._layoutTextParams.div=rt,Tt(this._layoutTextParams),tt.hasText&&this._container.append(rt),tt.hasEOL){const st=document.createElement("br");st.setAttribute("role","presentation"),this._container.append(st)}}_render(){const rt=new pt.PromiseCapability;let tt=Object.create(null);if(this._isReadableStream){const st=()=>{this._reader.read().then(({value:ot,done:nt})=>{if(nt){rt.resolve();return}Object.assign(tt,ot.styles),this._processItems(ot.items,tt),st()},rt.reject)};this._reader=this._textContentSource.getReader(),st()}else if(this._textContentSource){const{items:st,styles:ot}=this._textContentSource;this._processItems(st,ot),rt.resolve()}else throw new Error('No "textContentSource" parameter specified.');rt.promise.then(()=>{tt=null,yt(this)},this._capability.reject)}}i.TextLayerRenderTask=ut;function ht(_){!_.textContentSource&&(_.textContent||_.textContentStream)&&((0,Lt.deprecated)("The TextLayerRender `textContent`/`textContentStream` parameters will be removed in the future, please use `textContentSource` instead."),_.textContentSource=_.textContent||_.textContentStream);const{container:rt,viewport:tt}=_,st=getComputedStyle(rt),ot=st.getPropertyValue("visibility"),nt=parseFloat(st.getPropertyValue("--scale-factor"));ot==="visible"&&(!nt||Math.abs(nt-tt.scale)>1e-5)&&console.error("The `--scale-factor` CSS-variable must be set, to the same value as `viewport.scale`, either on the `container`-element itself or higher up in the DOM.");const vt=new ut(_);return vt._render(),vt}function j({container:_,viewport:rt,textDivs:tt,textDivProperties:st,isOffscreenCanvasSupported:ot,mustRotate:nt=!0,mustRescale:vt=!0}){if(nt&&(0,Lt.setLayerDimensions)(_,{rotation:rt.rotation}),vt){const dt=it(0,ot),ft={prevFontSize:null,prevFontFamily:null,div:null,scale:rt.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:dt};for(const at of tt)ft.properties=st.get(at),ft.div=at,Tt(ft)}}},(a,i,_e)=>{var xt,et,Tt,yt,ut,ht,j,_,rt,tt,st,O_,nt,tT,dt,F_,ft,B_;Object.defineProperty(i,"__esModule",{value:!0}),i.AnnotationEditorLayer=void 0;var pt=_e(1),Lt=_e(4),Gt=_e(28),Ct=_e(33),Rt=_e(6),o=_e(34);const mt=class{constructor({uiManager:_t,pageIndex:Mt,div:Et,accessibilityManager:kt,annotationLayer:wt,viewport:ct,l10n:It}){Xo(this,st);Xo(this,nt);Xo(this,dt);Xo(this,ft);Xo(this,xt,void 0);Xo(this,et,!1);Xo(this,Tt,null);Xo(this,yt,this.pointerup.bind(this));Xo(this,ut,this.pointerdown.bind(this));Xo(this,ht,new Map);Xo(this,j,!1);Xo(this,_,!1);Xo(this,rt,!1);Xo(this,tt,void 0);const At=[Gt.FreeTextEditor,Ct.InkEditor,o.StampEditor];if(!mt._initialized){mt._initialized=!0;for(const Ot of At)Ot.initialize(It)}_t.registerEditorTypes(At),ks(this,tt,_t),this.pageIndex=Mt,this.div=Et,ks(this,xt,kt),ks(this,Tt,wt),this.viewport=ct,On(this,tt).addLayer(this)}get isEmpty(){return On(this,ht).size===0}updateToolbar(_t){On(this,tt).updateToolbar(_t)}updateMode(_t=On(this,tt).getMode()){hs(this,ft,B_).call(this),_t===pt.AnnotationEditorType.INK?(this.addInkEditorIfNeeded(!1),this.disableClick()):this.enableClick(),_t!==pt.AnnotationEditorType.NONE&&(this.div.classList.toggle("freeTextEditing",_t===pt.AnnotationEditorType.FREETEXT),this.div.classList.toggle("inkEditing",_t===pt.AnnotationEditorType.INK),this.div.classList.toggle("stampEditing",_t===pt.AnnotationEditorType.STAMP),this.div.hidden=!1)}addInkEditorIfNeeded(_t){if(!_t&&On(this,tt).getMode()!==pt.AnnotationEditorType.INK)return;if(!_t){for(const Et of On(this,ht).values())if(Et.isEmpty()){Et.setInBackground();return}}hs(this,nt,tT).call(this,{offsetX:0,offsetY:0},!1).setInBackground()}setEditingState(_t){On(this,tt).setEditingState(_t)}addCommands(_t){On(this,tt).addCommands(_t)}enable(){this.div.style.pointerEvents="auto";const _t=new Set;for(const Et of On(this,ht).values())Et.enableEditing(),Et.annotationElementId&&_t.add(Et.annotationElementId);if(!On(this,Tt))return;const Mt=On(this,Tt).getEditableAnnotations();for(const Et of Mt){if(Et.hide(),On(this,tt).isDeletedAnnotationElement(Et.data.id)||_t.has(Et.data.id))continue;const kt=this.deserialize(Et);kt&&(this.addOrRebuild(kt),kt.enableEditing())}}disable(){var Mt;ks(this,rt,!0),this.div.style.pointerEvents="none";const _t=new Set;for(const Et of On(this,ht).values()){if(Et.disableEditing(),!Et.annotationElementId||Et.serialize()!==null){_t.add(Et.annotationElementId);continue}(Mt=this.getEditableAnnotation(Et.annotationElementId))==null||Mt.show(),Et.remove()}if(On(this,Tt)){const Et=On(this,Tt).getEditableAnnotations();for(const kt of Et){const{id:wt}=kt.data;_t.has(wt)||On(this,tt).isDeletedAnnotationElement(wt)||kt.show()}}hs(this,ft,B_).call(this),this.isEmpty&&(this.div.hidden=!0),ks(this,rt,!1)}getEditableAnnotation(_t){var Mt;return((Mt=On(this,Tt))==null?void 0:Mt.getEditableAnnotation(_t))||null}setActiveEditor(_t){On(this,tt).getActive()!==_t&&On(this,tt).setActiveEditor(_t)}enableClick(){this.div.addEventListener("pointerdown",On(this,ut)),this.div.addEventListener("pointerup",On(this,yt))}disableClick(){this.div.removeEventListener("pointerdown",On(this,ut)),this.div.removeEventListener("pointerup",On(this,yt))}attach(_t){On(this,ht).set(_t.id,_t);const{annotationElementId:Mt}=_t;Mt&&On(this,tt).isDeletedAnnotationElement(Mt)&&On(this,tt).removeDeletedAnnotationElement(_t)}detach(_t){var Mt;On(this,ht).delete(_t.id),(Mt=On(this,xt))==null||Mt.removePointerInTextLayer(_t.contentDiv),!On(this,rt)&&_t.annotationElementId&&On(this,tt).addDeletedAnnotationElement(_t)}remove(_t){this.detach(_t),On(this,tt).removeEditor(_t),_t.div.contains(document.activeElement)&&setTimeout(()=>{On(this,tt).focusMainContainer()},0),_t.div.remove(),_t.isAttachedToDOM=!1,On(this,_)||this.addInkEditorIfNeeded(!1)}changeParent(_t){var Mt;_t.parent!==this&&(_t.annotationElementId&&(On(this,tt).addDeletedAnnotationElement(_t.annotationElementId),Lt.AnnotationEditor.deleteAnnotationElement(_t),_t.annotationElementId=null),this.attach(_t),(Mt=_t.parent)==null||Mt.detach(_t),_t.setParent(this),_t.div&&_t.isAttachedToDOM&&(_t.div.remove(),this.div.append(_t.div)))}add(_t){if(this.changeParent(_t),On(this,tt).addEditor(_t),this.attach(_t),!_t.isAttachedToDOM){const Mt=_t.render();this.div.append(Mt),_t.isAttachedToDOM=!0}_t.fixAndSetPosition(),_t.onceAdded(),On(this,tt).addToAnnotationStorage(_t)}moveEditorInDOM(_t){var Et;if(!_t.isAttachedToDOM)return;const{activeElement:Mt}=document;_t.div.contains(Mt)&&(_t._focusEventsAllowed=!1,setTimeout(()=>{_t.div.contains(document.activeElement)?_t._focusEventsAllowed=!0:(_t.div.addEventListener("focusin",()=>{_t._focusEventsAllowed=!0},{once:!0}),Mt.focus())},0)),_t._structTreeParentId=(Et=On(this,xt))==null?void 0:Et.moveElementInDOM(this.div,_t.div,_t.contentDiv,!0)}addOrRebuild(_t){_t.needsToBeRebuilt()?_t.rebuild():this.add(_t)}addUndoableEditor(_t){const Mt=()=>_t._uiManager.rebuild(_t),Et=()=>{_t.remove()};this.addCommands({cmd:Mt,undo:Et,mustExec:!1})}getNextId(){return On(this,tt).getId()}pasteEditor(_t,Mt){On(this,tt).updateToolbar(_t),On(this,tt).updateMode(_t);const{offsetX:Et,offsetY:kt}=hs(this,dt,F_).call(this),wt=this.getNextId(),ct=hs(this,st,O_).call(this,{parent:this,id:wt,x:Et,y:kt,uiManager:On(this,tt),isCentered:!0,...Mt});ct&&this.add(ct)}deserialize(_t){switch(_t.annotationType??_t.annotationEditorType){case pt.AnnotationEditorType.FREETEXT:return Gt.FreeTextEditor.deserialize(_t,this,On(this,tt));case pt.AnnotationEditorType.INK:return Ct.InkEditor.deserialize(_t,this,On(this,tt));case pt.AnnotationEditorType.STAMP:return o.StampEditor.deserialize(_t,this,On(this,tt))}return null}addNewEditor(){hs(this,nt,tT).call(this,hs(this,dt,F_).call(this),!0)}setSelected(_t){On(this,tt).setSelected(_t)}toggleSelected(_t){On(this,tt).toggleSelected(_t)}isSelected(_t){return On(this,tt).isSelected(_t)}unselect(_t){On(this,tt).unselect(_t)}pointerup(_t){const{isMac:Mt}=pt.FeatureTest.platform;if(!(_t.button!==0||_t.ctrlKey&&Mt)&&_t.target===this.div&&On(this,j)){if(ks(this,j,!1),!On(this,et)){ks(this,et,!0);return}if(On(this,tt).getMode()===pt.AnnotationEditorType.STAMP){On(this,tt).unselectAll();return}hs(this,nt,tT).call(this,_t,!1)}}pointerdown(_t){if(On(this,j)){ks(this,j,!1);return}const{isMac:Mt}=pt.FeatureTest.platform;if(_t.button!==0||_t.ctrlKey&&Mt||_t.target!==this.div)return;ks(this,j,!0);const Et=On(this,tt).getActive();ks(this,et,!Et||Et.isEmpty())}findNewParent(_t,Mt,Et){const kt=On(this,tt).findParent(Mt,Et);return kt===null||kt===this?!1:(kt.changeParent(_t),!0)}destroy(){var _t,Mt;((_t=On(this,tt).getActive())==null?void 0:_t.parent)===this&&(On(this,tt).commitOrRemove(),On(this,tt).setActiveEditor(null));for(const Et of On(this,ht).values())(Mt=On(this,xt))==null||Mt.removePointerInTextLayer(Et.contentDiv),Et.setParent(null),Et.isAttachedToDOM=!1,Et.div.remove();this.div=null,On(this,ht).clear(),On(this,tt).removeLayer(this)}render({viewport:_t}){this.viewport=_t,(0,Rt.setLayerDimensions)(this.div,_t);for(const Mt of On(this,tt).getEditors(this.pageIndex))this.add(Mt);this.updateMode()}update({viewport:_t}){On(this,tt).commitOrRemove(),this.viewport=_t,(0,Rt.setLayerDimensions)(this.div,{rotation:_t.rotation}),this.updateMode()}get pageDimensions(){const{pageWidth:_t,pageHeight:Mt}=this.viewport.rawDims;return[_t,Mt]}};let it=mt;xt=new WeakMap,et=new WeakMap,Tt=new WeakMap,yt=new WeakMap,ut=new WeakMap,ht=new WeakMap,j=new WeakMap,_=new WeakMap,rt=new WeakMap,tt=new WeakMap,st=new WeakSet,O_=function(_t){switch(On(this,tt).getMode()){case pt.AnnotationEditorType.FREETEXT:return new Gt.FreeTextEditor(_t);case pt.AnnotationEditorType.INK:return new Ct.InkEditor(_t);case pt.AnnotationEditorType.STAMP:return new o.StampEditor(_t)}return null},nt=new WeakSet,tT=function(_t,Mt){const Et=this.getNextId(),kt=hs(this,st,O_).call(this,{parent:this,id:Et,x:_t.offsetX,y:_t.offsetY,uiManager:On(this,tt),isCentered:Mt});return kt&&this.add(kt),kt},dt=new WeakSet,F_=function(){const{x:_t,y:Mt,width:Et,height:kt}=this.div.getBoundingClientRect(),wt=Math.max(0,_t),ct=Math.max(0,Mt),It=Math.min(window.innerWidth,_t+Et),At=Math.min(window.innerHeight,Mt+kt),Ot=(wt+It)/2-_t,Pt=(ct+At)/2-Mt,[zt,Dt]=this.viewport.rotation%180===0?[Ot,Pt]:[Pt,Ot];return{offsetX:zt,offsetY:Dt}},ft=new WeakSet,B_=function(){ks(this,_,!0);for(const _t of On(this,ht).values())_t.isEmpty()&&_t.remove();ks(this,_,!1)},Dp(it,"_initialized",!1),i.AnnotationEditorLayer=it},(a,i,_e)=>{var o,it,xt,et,Tt,yt,ut,ht,j,_,vS,tt,gS,ot,mS,vt,X2,bt,z_,at,yS,St,U_;Object.defineProperty(i,"__esModule",{value:!0}),i.FreeTextEditor=void 0;var pt=_e(1),Lt=_e(5),Gt=_e(4),Ct=_e(29);const Mt=class extends Gt.AnnotationEditor{constructor(wt){super({...wt,name:"freeTextEditor"});Xo(this,_);Xo(this,tt);Xo(this,ot);Xo(this,vt);Xo(this,bt);Xo(this,at);Xo(this,St);Xo(this,o,this.editorDivBlur.bind(this));Xo(this,it,this.editorDivFocus.bind(this));Xo(this,xt,this.editorDivInput.bind(this));Xo(this,et,this.editorDivKeydown.bind(this));Xo(this,Tt,void 0);Xo(this,yt,"");Xo(this,ut,`${this.id}-editor`);Xo(this,ht,void 0);Xo(this,j,null);ks(this,Tt,wt.color||Mt._defaultColor||Gt.AnnotationEditor._defaultLineColor),ks(this,ht,wt.fontSize||Mt._defaultFontSize)}static get _keyboardManager(){const wt=Mt.prototype,ct=Ot=>Ot.isEmpty(),It=Lt.AnnotationEditorUIManager.TRANSLATE_SMALL,At=Lt.AnnotationEditorUIManager.TRANSLATE_BIG;return(0,pt.shadow)(this,"_keyboardManager",new Lt.KeyboardManager([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],wt.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],wt.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],wt._translateEmpty,{args:[-It,0],checker:ct}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],wt._translateEmpty,{args:[-At,0],checker:ct}],[["ArrowRight","mac+ArrowRight"],wt._translateEmpty,{args:[It,0],checker:ct}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],wt._translateEmpty,{args:[At,0],checker:ct}],[["ArrowUp","mac+ArrowUp"],wt._translateEmpty,{args:[0,-It],checker:ct}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],wt._translateEmpty,{args:[0,-At],checker:ct}],[["ArrowDown","mac+ArrowDown"],wt._translateEmpty,{args:[0,It],checker:ct}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],wt._translateEmpty,{args:[0,At],checker:ct}]]))}static initialize(wt){Gt.AnnotationEditor.initialize(wt,{strings:["free_text2_default_content","editor_free_text2_aria_label"]});const ct=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(ct.getPropertyValue("--freetext-padding"))}static updateDefaultParams(wt,ct){switch(wt){case pt.AnnotationEditorParamsType.FREETEXT_SIZE:Mt._defaultFontSize=ct;break;case pt.AnnotationEditorParamsType.FREETEXT_COLOR:Mt._defaultColor=ct;break}}updateParams(wt,ct){switch(wt){case pt.AnnotationEditorParamsType.FREETEXT_SIZE:hs(this,_,vS).call(this,ct);break;case pt.AnnotationEditorParamsType.FREETEXT_COLOR:hs(this,tt,gS).call(this,ct);break}}static get defaultPropertiesToUpdate(){return[[pt.AnnotationEditorParamsType.FREETEXT_SIZE,Mt._defaultFontSize],[pt.AnnotationEditorParamsType.FREETEXT_COLOR,Mt._defaultColor||Gt.AnnotationEditor._defaultLineColor]]}get propertiesToUpdate(){return[[pt.AnnotationEditorParamsType.FREETEXT_SIZE,On(this,ht)],[pt.AnnotationEditorParamsType.FREETEXT_COLOR,On(this,Tt)]]}_translateEmpty(wt,ct){this._uiManager.translateSelectedEditors(wt,ct,!0)}getInitialTranslation(){const wt=this.parentScale;return[-Mt._internalPadding*wt,-(Mt._internalPadding+On(this,ht))*wt]}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.isAttachedToDOM||this.parent.add(this)))}enableEditMode(){this.isInEditMode()||(this.parent.setEditingState(!1),this.parent.updateToolbar(pt.AnnotationEditorType.FREETEXT),super.enableEditMode(),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant"),this.editorDiv.addEventListener("keydown",On(this,et)),this.editorDiv.addEventListener("focus",On(this,it)),this.editorDiv.addEventListener("blur",On(this,o)),this.editorDiv.addEventListener("input",On(this,xt)))}disableEditMode(){this.isInEditMode()&&(this.parent.setEditingState(!0),super.disableEditMode(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",On(this,ut)),this._isDraggable=!0,this.editorDiv.removeEventListener("keydown",On(this,et)),this.editorDiv.removeEventListener("focus",On(this,it)),this.editorDiv.removeEventListener("blur",On(this,o)),this.editorDiv.removeEventListener("input",On(this,xt)),this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freeTextEditing"))}focusin(wt){this._focusEventsAllowed&&(super.focusin(wt),wt.target!==this.editorDiv&&this.editorDiv.focus())}onceAdded(){var wt;if(this.width){hs(this,St,U_).call(this);return}this.enableEditMode(),this.editorDiv.focus(),(wt=this._initialOptions)!=null&&wt.isCentered&&this.center(),this._initialOptions=null}isEmpty(){return!this.editorDiv||this.editorDiv.innerText.trim()===""}remove(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add("freeTextEditing")),super.remove()}commit(){if(!this.isInEditMode())return;super.commit(),this.disableEditMode();const wt=On(this,yt),ct=ks(this,yt,hs(this,ot,mS).call(this).trimEnd());if(wt===ct)return;const It=At=>{if(ks(this,yt,At),!At){this.remove();return}hs(this,bt,z_).call(this),this._uiManager.rebuild(this),hs(this,vt,X2).call(this)};this.addCommands({cmd:()=>{It(ct)},undo:()=>{It(wt)},mustExec:!1}),hs(this,vt,X2).call(this)}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}dblclick(wt){this.enterInEditMode()}keydown(wt){wt.target===this.div&&wt.key==="Enter"&&(this.enterInEditMode(),wt.preventDefault())}editorDivKeydown(wt){Mt._keyboardManager.exec(this,wt)}editorDivFocus(wt){this.isEditing=!0}editorDivBlur(wt){this.isEditing=!1}editorDivInput(wt){this.parent.div.classList.toggle("freeTextEditing",this.isEmpty())}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}render(){if(this.div)return this.div;let wt,ct;this.width&&(wt=this.x,ct=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",On(this,ut)),this.enableEditing(),Gt.AnnotationEditor._l10nPromise.get("editor_free_text2_aria_label").then(At=>{var Ot;return(Ot=this.editorDiv)==null?void 0:Ot.setAttribute("aria-label",At)}),Gt.AnnotationEditor._l10nPromise.get("free_text2_default_content").then(At=>{var Ot;return(Ot=this.editorDiv)==null?void 0:Ot.setAttribute("default-content",At)}),this.editorDiv.contentEditable=!0;const{style:It}=this.editorDiv;if(It.fontSize=`calc(${On(this,ht)}px * var(--scale-factor))`,It.color=On(this,Tt),this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),(0,Lt.bindEvents)(this,this.div,["dblclick","keydown"]),this.width){const[At,Ot]=this.parentDimensions;if(this.annotationElementId){const{position:Pt}=On(this,j);let[zt,Dt]=this.getInitialTranslation();[zt,Dt]=this.pageTranslationToScreen(zt,Dt);const[Nt,$t]=this.pageDimensions,[Ut,Ht]=this.pageTranslation;let Vt,Xt;switch(this.rotation){case 0:Vt=wt+(Pt[0]-Ut)/Nt,Xt=ct+this.height-(Pt[1]-Ht)/$t;break;case 90:Vt=wt+(Pt[0]-Ut)/Nt,Xt=ct-(Pt[1]-Ht)/$t,[zt,Dt]=[Dt,-zt];break;case 180:Vt=wt-this.width+(Pt[0]-Ut)/Nt,Xt=ct-(Pt[1]-Ht)/$t,[zt,Dt]=[-zt,-Dt];break;case 270:Vt=wt+(Pt[0]-Ut-this.height*$t)/Nt,Xt=ct+(Pt[1]-Ht-this.width*Nt)/$t,[zt,Dt]=[-Dt,zt];break}this.setAt(Vt*At,Xt*Ot,zt,Dt)}else this.setAt(wt*At,ct*Ot,this.width*At,this.height*Ot);hs(this,bt,z_).call(this),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}get contentDiv(){return this.editorDiv}static deserialize(wt,ct,It){let At=null;if(wt instanceof Ct.FreeTextAnnotationElement){const{data:{defaultAppearanceData:{fontSize:Pt,fontColor:zt},rect:Dt,rotation:Nt,id:$t},textContent:Ut,textPosition:Ht,parent:{page:{pageNumber:Vt}}}=wt;if(!Ut||Ut.length===0)return null;At=wt={annotationType:pt.AnnotationEditorType.FREETEXT,color:Array.from(zt),fontSize:Pt,value:Ut.join(` +`),position:Ht,pageIndex:Vt-1,rect:Dt,rotation:Nt,id:$t,deleted:!1}}const Ot=super.deserialize(wt,ct,It);return ks(Ot,ht,wt.fontSize),ks(Ot,Tt,pt.Util.makeHexColor(...wt.color)),ks(Ot,yt,wt.value),Ot.annotationElementId=wt.id||null,ks(Ot,j,At),Ot}serialize(wt=!1){if(this.isEmpty())return null;if(this.deleted)return{pageIndex:this.pageIndex,id:this.annotationElementId,deleted:!0};const ct=Mt._internalPadding*this.parentScale,It=this.getRect(ct,ct),At=Gt.AnnotationEditor._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:On(this,Tt)),Ot={annotationType:pt.AnnotationEditorType.FREETEXT,color:At,fontSize:On(this,ht),value:On(this,yt),pageIndex:this.pageIndex,rect:It,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return wt?Ot:this.annotationElementId&&!hs(this,at,yS).call(this,Ot)?null:(Ot.id=this.annotationElementId,Ot)}};let Rt=Mt;o=new WeakMap,it=new WeakMap,xt=new WeakMap,et=new WeakMap,Tt=new WeakMap,yt=new WeakMap,ut=new WeakMap,ht=new WeakMap,j=new WeakMap,_=new WeakSet,vS=function(wt){const ct=At=>{this.editorDiv.style.fontSize=`calc(${At}px * var(--scale-factor))`,this.translate(0,-(At-On(this,ht))*this.parentScale),ks(this,ht,At),hs(this,vt,X2).call(this)},It=On(this,ht);this.addCommands({cmd:()=>{ct(wt)},undo:()=>{ct(It)},mustExec:!0,type:pt.AnnotationEditorParamsType.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})},tt=new WeakSet,gS=function(wt){const ct=On(this,Tt);this.addCommands({cmd:()=>{ks(this,Tt,this.editorDiv.style.color=wt)},undo:()=>{ks(this,Tt,this.editorDiv.style.color=ct)},mustExec:!0,type:pt.AnnotationEditorParamsType.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})},ot=new WeakSet,mS=function(){const wt=this.editorDiv.getElementsByTagName("div");if(wt.length===0)return this.editorDiv.innerText;const ct=[];for(const It of wt)ct.push(It.innerText.replace(/\r\n?|\n/,""));return ct.join(` +`)},vt=new WeakSet,X2=function(){const[wt,ct]=this.parentDimensions;let It;if(this.isAttachedToDOM)It=this.div.getBoundingClientRect();else{const{currentLayer:At,div:Ot}=this,Pt=Ot.style.display;Ot.style.display="hidden",At.div.append(this.div),It=Ot.getBoundingClientRect(),Ot.remove(),Ot.style.display=Pt}this.rotation%180===this.parentRotation%180?(this.width=It.width/wt,this.height=It.height/ct):(this.width=It.height/wt,this.height=It.width/ct),this.fixAndSetPosition()},bt=new WeakSet,z_=function(){if(this.editorDiv.replaceChildren(),!!On(this,yt))for(const wt of On(this,yt).split(` +`)){const ct=document.createElement("div");ct.append(wt?document.createTextNode(wt):document.createElement("br")),this.editorDiv.append(ct)}},at=new WeakSet,yS=function(wt){const{value:ct,fontSize:It,color:At,rect:Ot,pageIndex:Pt}=On(this,j);return wt.value!==ct||wt.fontSize!==It||wt.rect.some((zt,Dt)=>Math.abs(zt-Ot[Dt])>=1)||wt.color.some((zt,Dt)=>zt!==At[Dt])||wt.pageIndex!==Pt},St=new WeakSet,U_=function(wt=!1){if(!this.annotationElementId)return;if(hs(this,vt,X2).call(this),!wt&&(this.width===0||this.height===0)){setTimeout(()=>hs(this,St,U_).call(this,!0),0);return}const ct=Mt._internalPadding*this.parentScale;On(this,j).rect=this.getRect(ct,ct)},Dp(Rt,"_freeTextDefaultContent",""),Dp(Rt,"_internalPadding",0),Dp(Rt,"_defaultColor",null),Dp(Rt,"_defaultFontSize",10),Dp(Rt,"_type","freetext"),i.FreeTextEditor=Rt},(a,i,_e)=>{var Dt,$t,Dx,Ht,xS,Xt,qt,er,lr,Jt,Yt,rr,jt,ar,sr,Zt,Kt,or,tr,cr,mr,Ar,br,bS,Tr,rT,Er,$_,zr,H_,kr,Nr,Qr,sn,un,en,Xr,G_,mn,pn,Tn,Zr,ES,Ur,V_;Object.defineProperty(i,"__esModule",{value:!0}),i.StampAnnotationElement=i.InkAnnotationElement=i.FreeTextAnnotationElement=i.AnnotationLayer=void 0;var pt=_e(1),Lt=_e(6),Gt=_e(3),Ct=_e(30),Rt=_e(31),o=_e(32);const it=1e3,xt=9,et=new WeakSet;function Tt(Gr){return{width:Gr[2]-Gr[0],height:Gr[3]-Gr[1]}}class yt{static create(wr){switch(wr.data.annotationType){case pt.AnnotationType.LINK:return new ht(wr);case pt.AnnotationType.TEXT:return new j(wr);case pt.AnnotationType.WIDGET:switch(wr.data.fieldType){case"Tx":return new rt(wr);case"Btn":return wr.data.radioButton?new ot(wr):wr.data.checkBox?new st(wr):new nt(wr);case"Ch":return new vt(wr);case"Sig":return new tt(wr)}return new _(wr);case pt.AnnotationType.POPUP:return new dt(wr);case pt.AnnotationType.FREETEXT:return new ft(wr);case pt.AnnotationType.LINE:return new at(wr);case pt.AnnotationType.SQUARE:return new mt(wr);case pt.AnnotationType.CIRCLE:return new St(wr);case pt.AnnotationType.POLYLINE:return new _t(wr);case pt.AnnotationType.CARET:return new Et(wr);case pt.AnnotationType.INK:return new kt(wr);case pt.AnnotationType.POLYGON:return new Mt(wr);case pt.AnnotationType.HIGHLIGHT:return new wt(wr);case pt.AnnotationType.UNDERLINE:return new ct(wr);case pt.AnnotationType.SQUIGGLY:return new It(wr);case pt.AnnotationType.STRIKEOUT:return new At(wr);case pt.AnnotationType.STAMP:return new Ot(wr);case pt.AnnotationType.FILEATTACHMENT:return new Pt(wr);default:return new ut(wr)}}}const Nt=class{constructor(wr,{isRenderable:pr=!1,ignoreBorder:Dr=!1,createQuadrilaterals:Sr=!1}={}){Xo(this,Dt,!1);this.isRenderable=pr,this.data=wr.data,this.layer=wr.layer,this.linkService=wr.linkService,this.downloadManager=wr.downloadManager,this.imageResourcesPath=wr.imageResourcesPath,this.renderForms=wr.renderForms,this.svgFactory=wr.svgFactory,this.annotationStorage=wr.annotationStorage,this.enableScripting=wr.enableScripting,this.hasJSActions=wr.hasJSActions,this._fieldObjects=wr.fieldObjects,this.parent=wr.parent,pr&&(this.container=this._createContainer(Dr)),Sr&&this._createQuadrilaterals()}static _hasPopupData({titleObj:wr,contentsObj:pr,richText:Dr}){return!!(wr!=null&&wr.str||pr!=null&&pr.str||Dr!=null&&Dr.str)}get hasPopupData(){return Nt._hasPopupData(this.data)}_createContainer(wr){const{data:pr,parent:{page:Dr,viewport:Sr}}=this,ur=document.createElement("section");ur.setAttribute("data-annotation-id",pr.id),this instanceof _||(ur.tabIndex=it),ur.style.zIndex=this.parent.zIndex++,this.data.popupRef&&ur.setAttribute("aria-haspopup","dialog"),pr.noRotate&&ur.classList.add("norotate");const{pageWidth:xr,pageHeight:Pr,pageX:Vr,pageY:qr}=Sr.rawDims;if(!pr.rect||this instanceof dt){const{rotation:bn}=pr;return!pr.hasOwnCanvas&&bn!==0&&this.setRotation(bn,ur),ur}const{width:rn,height:Cn}=Tt(pr.rect),xn=pt.Util.normalizeRect([pr.rect[0],Dr.view[3]-pr.rect[1]+Dr.view[1],pr.rect[2],Dr.view[3]-pr.rect[3]+Dr.view[1]]);if(!wr&&pr.borderStyle.width>0){ur.style.borderWidth=`${pr.borderStyle.width}px`;const bn=pr.borderStyle.horizontalCornerRadius,Un=pr.borderStyle.verticalCornerRadius;if(bn>0||Un>0){const yn=`calc(${bn}px * var(--scale-factor)) / calc(${Un}px * var(--scale-factor))`;ur.style.borderRadius=yn}else if(this instanceof ot){const yn=`calc(${rn}px * var(--scale-factor)) / calc(${Cn}px * var(--scale-factor))`;ur.style.borderRadius=yn}switch(pr.borderStyle.style){case pt.AnnotationBorderStyleType.SOLID:ur.style.borderStyle="solid";break;case pt.AnnotationBorderStyleType.DASHED:ur.style.borderStyle="dashed";break;case pt.AnnotationBorderStyleType.BEVELED:(0,pt.warn)("Unimplemented border style: beveled");break;case pt.AnnotationBorderStyleType.INSET:(0,pt.warn)("Unimplemented border style: inset");break;case pt.AnnotationBorderStyleType.UNDERLINE:ur.style.borderBottomStyle="solid";break}const _i=pr.borderColor||null;_i?(ks(this,Dt,!0),ur.style.borderColor=pt.Util.makeHexColor(_i[0]|0,_i[1]|0,_i[2]|0)):ur.style.borderWidth=0}ur.style.left=`${100*(xn[0]-Vr)/xr}%`,ur.style.top=`${100*(xn[1]-qr)/Pr}%`;const{rotation:fn}=pr;return pr.hasOwnCanvas||fn===0?(ur.style.width=`${100*rn/xr}%`,ur.style.height=`${100*Cn/Pr}%`):this.setRotation(fn,ur),ur}setRotation(wr,pr=this.container){if(!this.data.rect)return;const{pageWidth:Dr,pageHeight:Sr}=this.parent.viewport.rawDims,{width:ur,height:xr}=Tt(this.data.rect);let Pr,Vr;wr%180===0?(Pr=100*ur/Dr,Vr=100*xr/Sr):(Pr=100*xr/Dr,Vr=100*ur/Sr),pr.style.width=`${Pr}%`,pr.style.height=`${Vr}%`,pr.setAttribute("data-main-rotation",(360-wr)%360)}get _commonActions(){const wr=(pr,Dr,Sr)=>{const ur=Sr.detail[pr],xr=ur[0],Pr=ur.slice(1);Sr.target.style[Dr]=Ct.ColorConverters[`${xr}_HTML`](Pr),this.annotationStorage.setValue(this.data.id,{[Dr]:Ct.ColorConverters[`${xr}_rgb`](Pr)})};return(0,pt.shadow)(this,"_commonActions",{display:pr=>{const{display:Dr}=pr.detail,Sr=Dr%2===1;this.container.style.visibility=Sr?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:Sr,noPrint:Dr===1||Dr===2})},print:pr=>{this.annotationStorage.setValue(this.data.id,{noPrint:!pr.detail.print})},hidden:pr=>{const{hidden:Dr}=pr.detail;this.container.style.visibility=Dr?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:Dr,noView:Dr})},focus:pr=>{setTimeout(()=>pr.target.focus({preventScroll:!1}),0)},userName:pr=>{pr.target.title=pr.detail.userName},readonly:pr=>{pr.target.disabled=pr.detail.readonly},required:pr=>{this._setRequired(pr.target,pr.detail.required)},bgColor:pr=>{wr("bgColor","backgroundColor",pr)},fillColor:pr=>{wr("fillColor","backgroundColor",pr)},fgColor:pr=>{wr("fgColor","color",pr)},textColor:pr=>{wr("textColor","color",pr)},borderColor:pr=>{wr("borderColor","borderColor",pr)},strokeColor:pr=>{wr("strokeColor","borderColor",pr)},rotation:pr=>{const Dr=pr.detail.rotation;this.setRotation(Dr),this.annotationStorage.setValue(this.data.id,{rotation:Dr})}})}_dispatchEventFromSandbox(wr,pr){const Dr=this._commonActions;for(const Sr of Object.keys(pr.detail)){const ur=wr[Sr]||Dr[Sr];ur==null||ur(pr)}}_setDefaultPropertiesFromJS(wr){if(!this.enableScripting)return;const pr=this.annotationStorage.getRawValue(this.data.id);if(!pr)return;const Dr=this._commonActions;for(const[Sr,ur]of Object.entries(pr)){const xr=Dr[Sr];if(xr){const Pr={detail:{[Sr]:ur},target:wr};xr(Pr),delete pr[Sr]}}}_createQuadrilaterals(){if(!this.container)return;const{quadPoints:wr}=this.data;if(!wr)return;const[pr,Dr,Sr,ur]=this.data.rect;if(wr.length===1){const[,{x:Un,y:_i},{x:yn,y:Kn}]=wr[0];if(Sr===Un&&ur===_i&&pr===yn&&Dr===Kn)return}const{style:xr}=this.container;let Pr;if(On(this,Dt)){const{borderColor:Un,borderWidth:_i}=xr;xr.borderWidth=0,Pr=["url('data:image/svg+xml;utf8,",'',``],this.container.classList.add("hasBorder")}const Vr=Sr-pr,qr=ur-Dr,{svgFactory:rn}=this,Cn=rn.createElement("svg");Cn.classList.add("quadrilateralsContainer"),Cn.setAttribute("width",0),Cn.setAttribute("height",0);const xn=rn.createElement("defs");Cn.append(xn);const fn=rn.createElement("clipPath"),bn=`clippath_${this.data.id}`;fn.setAttribute("id",bn),fn.setAttribute("clipPathUnits","objectBoundingBox"),xn.append(fn);for(const[,{x:Un,y:_i},{x:yn,y:Kn}]of wr){const Jn=rn.createElement("rect"),so=(yn-pr)/Vr,ba=(ur-_i)/qr,An=(Un-yn)/Vr,hn=(_i-Kn)/qr;Jn.setAttribute("x",so),Jn.setAttribute("y",ba),Jn.setAttribute("width",An),Jn.setAttribute("height",hn),fn.append(Jn),Pr==null||Pr.push(``)}On(this,Dt)&&(Pr.push("')"),xr.backgroundImage=Pr.join("")),this.container.append(Cn),this.container.style.clipPath=`url(#${bn})`}_createPopup(){const{container:wr,data:pr}=this;wr.setAttribute("aria-haspopup","dialog");const Dr=new dt({data:{color:pr.color,titleObj:pr.titleObj,modificationDate:pr.modificationDate,contentsObj:pr.contentsObj,richText:pr.richText,parentRect:pr.rect,borderStyle:0,id:`popup_${pr.id}`,rotation:pr.rotation},parent:this.parent,elements:[this]});this.parent.div.append(Dr.render())}render(){(0,pt.unreachable)("Abstract method `AnnotationElement.render` called")}_getElementsByName(wr,pr=null){const Dr=[];if(this._fieldObjects){const Sr=this._fieldObjects[wr];if(Sr)for(const{page:ur,id:xr,exportValues:Pr}of Sr){if(ur===-1||xr===pr)continue;const Vr=typeof Pr=="string"?Pr:null,qr=document.querySelector(`[data-element-id="${xr}"]`);if(qr&&!et.has(qr)){(0,pt.warn)(`_getElementsByName - element not allowed: ${xr}`);continue}Dr.push({id:xr,exportValue:Vr,domElement:qr})}return Dr}for(const Sr of document.getElementsByName(wr)){const{exportValue:ur}=Sr,xr=Sr.getAttribute("data-element-id");xr!==pr&&et.has(Sr)&&Dr.push({id:xr,exportValue:ur,domElement:Sr})}return Dr}show(){var wr;this.container&&(this.container.hidden=!1),(wr=this.popup)==null||wr.maybeShow()}hide(){var wr;this.container&&(this.container.hidden=!0),(wr=this.popup)==null||wr.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){const wr=this.getElementsToTriggerPopup();if(Array.isArray(wr))for(const pr of wr)pr.classList.add("highlightArea");else wr.classList.add("highlightArea")}_editOnDoubleClick(){const{annotationEditorType:wr,data:{id:pr}}=this;this.container.addEventListener("dblclick",()=>{var Dr;(Dr=this.linkService.eventBus)==null||Dr.dispatch("switchannotationeditormode",{source:this,mode:wr,editId:pr})})}};let ut=Nt;Dt=new WeakMap;class ht extends ut{constructor(pr,Dr=null){super(pr,{isRenderable:!0,ignoreBorder:!!(Dr!=null&&Dr.ignoreBorder),createQuadrilaterals:!0});Xo(this,$t);Xo(this,Ht);this.isTooltipOnly=pr.data.isTooltipOnly}render(){const{data:pr,linkService:Dr}=this,Sr=document.createElement("a");Sr.setAttribute("data-element-id",pr.id);let ur=!1;return pr.url?(Dr.addLinkAttributes(Sr,pr.url,pr.newWindow),ur=!0):pr.action?(this._bindNamedAction(Sr,pr.action),ur=!0):pr.attachment?(this._bindAttachment(Sr,pr.attachment),ur=!0):pr.setOCGState?(hs(this,Ht,xS).call(this,Sr,pr.setOCGState),ur=!0):pr.dest?(this._bindLink(Sr,pr.dest),ur=!0):(pr.actions&&(pr.actions.Action||pr.actions["Mouse Up"]||pr.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(Sr,pr),ur=!0),pr.resetForm?(this._bindResetFormAction(Sr,pr.resetForm),ur=!0):this.isTooltipOnly&&!ur&&(this._bindLink(Sr,""),ur=!0)),this.container.classList.add("linkAnnotation"),ur&&this.container.append(Sr),this.container}_bindLink(pr,Dr){pr.href=this.linkService.getDestinationHash(Dr),pr.onclick=()=>(Dr&&this.linkService.goToDestination(Dr),!1),(Dr||Dr==="")&&hs(this,$t,Dx).call(this)}_bindNamedAction(pr,Dr){pr.href=this.linkService.getAnchorUrl(""),pr.onclick=()=>(this.linkService.executeNamedAction(Dr),!1),hs(this,$t,Dx).call(this)}_bindAttachment(pr,Dr){pr.href=this.linkService.getAnchorUrl(""),pr.onclick=()=>{var Sr;return(Sr=this.downloadManager)==null||Sr.openOrDownloadData(this.container,Dr.content,Dr.filename),!1},hs(this,$t,Dx).call(this)}_bindJSAction(pr,Dr){pr.href=this.linkService.getAnchorUrl("");const Sr=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const ur of Object.keys(Dr.actions)){const xr=Sr.get(ur);xr&&(pr[xr]=()=>{var Pr;return(Pr=this.linkService.eventBus)==null||Pr.dispatch("dispatcheventinsandbox",{source:this,detail:{id:Dr.id,name:ur}}),!1})}pr.onclick||(pr.onclick=()=>!1),hs(this,$t,Dx).call(this)}_bindResetFormAction(pr,Dr){const Sr=pr.onclick;if(Sr||(pr.href=this.linkService.getAnchorUrl("")),hs(this,$t,Dx).call(this),!this._fieldObjects){(0,pt.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),Sr||(pr.onclick=()=>!1);return}pr.onclick=()=>{var Cn;Sr==null||Sr();const{fields:ur,refs:xr,include:Pr}=Dr,Vr=[];if(ur.length!==0||xr.length!==0){const xn=new Set(xr);for(const fn of ur){const bn=this._fieldObjects[fn]||[];for(const{id:Un}of bn)xn.add(Un)}for(const fn of Object.values(this._fieldObjects))for(const bn of fn)xn.has(bn.id)===Pr&&Vr.push(bn)}else for(const xn of Object.values(this._fieldObjects))Vr.push(...xn);const qr=this.annotationStorage,rn=[];for(const xn of Vr){const{id:fn}=xn;switch(rn.push(fn),xn.type){case"text":{const Un=xn.defaultValue||"";qr.setValue(fn,{value:Un});break}case"checkbox":case"radiobutton":{const Un=xn.defaultValue===xn.exportValues;qr.setValue(fn,{value:Un});break}case"combobox":case"listbox":{const Un=xn.defaultValue||"";qr.setValue(fn,{value:Un});break}default:continue}const bn=document.querySelector(`[data-element-id="${fn}"]`);if(bn){if(!et.has(bn)){(0,pt.warn)(`_bindResetFormAction - element not allowed: ${fn}`);continue}}else continue;bn.dispatchEvent(new Event("resetform"))}return this.enableScripting&&((Cn=this.linkService.eventBus)==null||Cn.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:rn,name:"ResetForm"}})),!1}}}$t=new WeakSet,Dx=function(){this.container.setAttribute("data-internal-link","")},Ht=new WeakSet,xS=function(pr,Dr){pr.href=this.linkService.getAnchorUrl(""),pr.onclick=()=>(this.linkService.executeSetOCGState(Dr),!1),hs(this,$t,Dx).call(this)};class j extends ut{constructor(wr){super(wr,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");const wr=document.createElement("img");return wr.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",wr.alt="[{{type}} Annotation]",wr.dataset.l10nId="text_annotation_type",wr.dataset.l10nArgs=JSON.stringify({type:this.data.name}),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(wr),this.container}}class _ extends ut{render(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}showElementAndHideCanvas(wr){var pr;this.data.hasOwnCanvas&&(((pr=wr.previousSibling)==null?void 0:pr.nodeName)==="CANVAS"&&(wr.previousSibling.hidden=!0),wr.hidden=!1)}_getKeyModifier(wr){const{isWin:pr,isMac:Dr}=pt.FeatureTest.platform;return pr&&wr.ctrlKey||Dr&&wr.metaKey}_setEventListener(wr,pr,Dr,Sr,ur){Dr.includes("mouse")?wr.addEventListener(Dr,xr=>{var Pr;(Pr=this.linkService.eventBus)==null||Pr.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:Sr,value:ur(xr),shift:xr.shiftKey,modifier:this._getKeyModifier(xr)}})}):wr.addEventListener(Dr,xr=>{var Pr;if(Dr==="blur"){if(!pr.focused||!xr.relatedTarget)return;pr.focused=!1}else if(Dr==="focus"){if(pr.focused)return;pr.focused=!0}ur&&((Pr=this.linkService.eventBus)==null||Pr.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:Sr,value:ur(xr)}}))})}_setEventListeners(wr,pr,Dr,Sr){var ur,xr,Pr;for(const[Vr,qr]of Dr)(qr==="Action"||(ur=this.data.actions)!=null&&ur[qr])&&((qr==="Focus"||qr==="Blur")&&(pr||(pr={focused:!1})),this._setEventListener(wr,pr,Vr,qr,Sr),qr==="Focus"&&!((xr=this.data.actions)!=null&&xr.Blur)?this._setEventListener(wr,pr,"blur","Blur",null):qr==="Blur"&&!((Pr=this.data.actions)!=null&&Pr.Focus)&&this._setEventListener(wr,pr,"focus","Focus",null))}_setBackgroundColor(wr){const pr=this.data.backgroundColor||null;wr.style.backgroundColor=pr===null?"transparent":pt.Util.makeHexColor(pr[0],pr[1],pr[2])}_setTextStyle(wr){const pr=["left","center","right"],{fontColor:Dr}=this.data.defaultAppearanceData,Sr=this.data.defaultAppearanceData.fontSize||xt,ur=wr.style;let xr;const Pr=2,Vr=qr=>Math.round(10*qr)/10;if(this.data.multiLine){const qr=Math.abs(this.data.rect[3]-this.data.rect[1]-Pr),rn=Math.round(qr/(pt.LINE_FACTOR*Sr))||1,Cn=qr/rn;xr=Math.min(Sr,Vr(Cn/pt.LINE_FACTOR))}else{const qr=Math.abs(this.data.rect[3]-this.data.rect[1]-Pr);xr=Math.min(Sr,Vr(qr/pt.LINE_FACTOR))}ur.fontSize=`calc(${xr}px * var(--scale-factor))`,ur.color=pt.Util.makeHexColor(Dr[0],Dr[1],Dr[2]),this.data.textAlignment!==null&&(ur.textAlign=pr[this.data.textAlignment])}_setRequired(wr,pr){pr?wr.setAttribute("required",!0):wr.removeAttribute("required"),wr.setAttribute("aria-required",pr)}}class rt extends _{constructor(wr){const pr=wr.renderForms||!wr.data.hasAppearance&&!!wr.data.fieldValue;super(wr,{isRenderable:pr})}setPropertyOnSiblings(wr,pr,Dr,Sr){const ur=this.annotationStorage;for(const xr of this._getElementsByName(wr.name,wr.id))xr.domElement&&(xr.domElement[pr]=Dr),ur.setValue(xr.id,{[Sr]:Dr})}render(){var Sr,ur;const wr=this.annotationStorage,pr=this.data.id;this.container.classList.add("textWidgetAnnotation");let Dr=null;if(this.renderForms){const xr=wr.getValue(pr,{value:this.data.fieldValue});let Pr=xr.value||"";const Vr=wr.getValue(pr,{charLimit:this.data.maxLen}).charLimit;Vr&&Pr.length>Vr&&(Pr=Pr.slice(0,Vr));let qr=xr.formattedValue||((Sr=this.data.textContent)==null?void 0:Sr.join(` +`))||null;qr&&this.data.comb&&(qr=qr.replaceAll(/\s+/g,""));const rn={userValue:Pr,formattedValue:qr,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?(Dr=document.createElement("textarea"),Dr.textContent=qr??Pr,this.data.doNotScroll&&(Dr.style.overflowY="hidden")):(Dr=document.createElement("input"),Dr.type="text",Dr.setAttribute("value",qr??Pr),this.data.doNotScroll&&(Dr.style.overflowX="hidden")),this.data.hasOwnCanvas&&(Dr.hidden=!0),et.add(Dr),Dr.setAttribute("data-element-id",pr),Dr.disabled=this.data.readOnly,Dr.name=this.data.fieldName,Dr.tabIndex=it,this._setRequired(Dr,this.data.required),Vr&&(Dr.maxLength=Vr),Dr.addEventListener("input",xn=>{wr.setValue(pr,{value:xn.target.value}),this.setPropertyOnSiblings(Dr,"value",xn.target.value,"value"),rn.formattedValue=null}),Dr.addEventListener("resetform",xn=>{const fn=this.data.defaultFieldValue??"";Dr.value=rn.userValue=fn,rn.formattedValue=null});let Cn=xn=>{const{formattedValue:fn}=rn;fn!=null&&(xn.target.value=fn),xn.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){Dr.addEventListener("focus",fn=>{if(rn.focused)return;const{target:bn}=fn;rn.userValue&&(bn.value=rn.userValue),rn.lastCommittedValue=bn.value,rn.commitKey=1,rn.focused=!0}),Dr.addEventListener("updatefromsandbox",fn=>{this.showElementAndHideCanvas(fn.target);const bn={value(Un){rn.userValue=Un.detail.value??"",wr.setValue(pr,{value:rn.userValue.toString()}),Un.target.value=rn.userValue},formattedValue(Un){const{formattedValue:_i}=Un.detail;rn.formattedValue=_i,_i!=null&&Un.target!==document.activeElement&&(Un.target.value=_i),wr.setValue(pr,{formattedValue:_i})},selRange(Un){Un.target.setSelectionRange(...Un.detail.selRange)},charLimit:Un=>{var Jn;const{charLimit:_i}=Un.detail,{target:yn}=Un;if(_i===0){yn.removeAttribute("maxLength");return}yn.setAttribute("maxLength",_i);let Kn=rn.userValue;!Kn||Kn.length<=_i||(Kn=Kn.slice(0,_i),yn.value=rn.userValue=Kn,wr.setValue(pr,{value:Kn}),(Jn=this.linkService.eventBus)==null||Jn.dispatch("dispatcheventinsandbox",{source:this,detail:{id:pr,name:"Keystroke",value:Kn,willCommit:!0,commitKey:1,selStart:yn.selectionStart,selEnd:yn.selectionEnd}}))}};this._dispatchEventFromSandbox(bn,fn)}),Dr.addEventListener("keydown",fn=>{var _i;rn.commitKey=1;let bn=-1;if(fn.key==="Escape"?bn=0:fn.key==="Enter"&&!this.data.multiLine?bn=2:fn.key==="Tab"&&(rn.commitKey=3),bn===-1)return;const{value:Un}=fn.target;rn.lastCommittedValue!==Un&&(rn.lastCommittedValue=Un,rn.userValue=Un,(_i=this.linkService.eventBus)==null||_i.dispatch("dispatcheventinsandbox",{source:this,detail:{id:pr,name:"Keystroke",value:Un,willCommit:!0,commitKey:bn,selStart:fn.target.selectionStart,selEnd:fn.target.selectionEnd}}))});const xn=Cn;Cn=null,Dr.addEventListener("blur",fn=>{var Un;if(!rn.focused||!fn.relatedTarget)return;rn.focused=!1;const{value:bn}=fn.target;rn.userValue=bn,rn.lastCommittedValue!==bn&&((Un=this.linkService.eventBus)==null||Un.dispatch("dispatcheventinsandbox",{source:this,detail:{id:pr,name:"Keystroke",value:bn,willCommit:!0,commitKey:rn.commitKey,selStart:fn.target.selectionStart,selEnd:fn.target.selectionEnd}})),xn(fn)}),(ur=this.data.actions)!=null&&ur.Keystroke&&Dr.addEventListener("beforeinput",fn=>{var ba;rn.lastCommittedValue=null;const{data:bn,target:Un}=fn,{value:_i,selectionStart:yn,selectionEnd:Kn}=Un;let Jn=yn,so=Kn;switch(fn.inputType){case"deleteWordBackward":{const An=_i.substring(0,yn).match(/\w*[^\w]*$/);An&&(Jn-=An[0].length);break}case"deleteWordForward":{const An=_i.substring(yn).match(/^[^\w]*\w*/);An&&(so+=An[0].length);break}case"deleteContentBackward":yn===Kn&&(Jn-=1);break;case"deleteContentForward":yn===Kn&&(so+=1);break}fn.preventDefault(),(ba=this.linkService.eventBus)==null||ba.dispatch("dispatcheventinsandbox",{source:this,detail:{id:pr,name:"Keystroke",value:_i,change:bn||"",willCommit:!1,selStart:Jn,selEnd:so}})}),this._setEventListeners(Dr,rn,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],fn=>fn.target.value)}if(Cn&&Dr.addEventListener("blur",Cn),this.data.comb){const fn=(this.data.rect[2]-this.data.rect[0])/Vr;Dr.classList.add("comb"),Dr.style.letterSpacing=`calc(${fn}px * var(--scale-factor) - 1ch)`}}else Dr=document.createElement("div"),Dr.textContent=this.data.fieldValue,Dr.style.verticalAlign="middle",Dr.style.display="table-cell";return this._setTextStyle(Dr),this._setBackgroundColor(Dr),this._setDefaultPropertiesFromJS(Dr),this.container.append(Dr),this.container}}class tt extends _{constructor(wr){super(wr,{isRenderable:!!wr.data.hasOwnCanvas})}}class st extends _{constructor(wr){super(wr,{isRenderable:wr.renderForms})}render(){const wr=this.annotationStorage,pr=this.data,Dr=pr.id;let Sr=wr.getValue(Dr,{value:pr.exportValue===pr.fieldValue}).value;typeof Sr=="string"&&(Sr=Sr!=="Off",wr.setValue(Dr,{value:Sr})),this.container.classList.add("buttonWidgetAnnotation","checkBox");const ur=document.createElement("input");return et.add(ur),ur.setAttribute("data-element-id",Dr),ur.disabled=pr.readOnly,this._setRequired(ur,this.data.required),ur.type="checkbox",ur.name=pr.fieldName,Sr&&ur.setAttribute("checked",!0),ur.setAttribute("exportValue",pr.exportValue),ur.tabIndex=it,ur.addEventListener("change",xr=>{const{name:Pr,checked:Vr}=xr.target;for(const qr of this._getElementsByName(Pr,Dr)){const rn=Vr&&qr.exportValue===pr.exportValue;qr.domElement&&(qr.domElement.checked=rn),wr.setValue(qr.id,{value:rn})}wr.setValue(Dr,{value:Vr})}),ur.addEventListener("resetform",xr=>{const Pr=pr.defaultFieldValue||"Off";xr.target.checked=Pr===pr.exportValue}),this.enableScripting&&this.hasJSActions&&(ur.addEventListener("updatefromsandbox",xr=>{const Pr={value(Vr){Vr.target.checked=Vr.detail.value!=="Off",wr.setValue(Dr,{value:Vr.target.checked})}};this._dispatchEventFromSandbox(Pr,xr)}),this._setEventListeners(ur,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],xr=>xr.target.checked)),this._setBackgroundColor(ur),this._setDefaultPropertiesFromJS(ur),this.container.append(ur),this.container}}class ot extends _{constructor(wr){super(wr,{isRenderable:wr.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");const wr=this.annotationStorage,pr=this.data,Dr=pr.id;let Sr=wr.getValue(Dr,{value:pr.fieldValue===pr.buttonValue}).value;typeof Sr=="string"&&(Sr=Sr!==pr.buttonValue,wr.setValue(Dr,{value:Sr}));const ur=document.createElement("input");if(et.add(ur),ur.setAttribute("data-element-id",Dr),ur.disabled=pr.readOnly,this._setRequired(ur,this.data.required),ur.type="radio",ur.name=pr.fieldName,Sr&&ur.setAttribute("checked",!0),ur.tabIndex=it,ur.addEventListener("change",xr=>{const{name:Pr,checked:Vr}=xr.target;for(const qr of this._getElementsByName(Pr,Dr))wr.setValue(qr.id,{value:!1});wr.setValue(Dr,{value:Vr})}),ur.addEventListener("resetform",xr=>{const Pr=pr.defaultFieldValue;xr.target.checked=Pr!=null&&Pr===pr.buttonValue}),this.enableScripting&&this.hasJSActions){const xr=pr.buttonValue;ur.addEventListener("updatefromsandbox",Pr=>{const Vr={value:qr=>{const rn=xr===qr.detail.value;for(const Cn of this._getElementsByName(qr.target.name)){const xn=rn&&Cn.id===Dr;Cn.domElement&&(Cn.domElement.checked=xn),wr.setValue(Cn.id,{value:xn})}}};this._dispatchEventFromSandbox(Vr,Pr)}),this._setEventListeners(ur,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],Pr=>Pr.target.checked)}return this._setBackgroundColor(ur),this._setDefaultPropertiesFromJS(ur),this.container.append(ur),this.container}}class nt extends ht{constructor(wr){super(wr,{ignoreBorder:wr.data.hasAppearance})}render(){const wr=super.render();wr.classList.add("buttonWidgetAnnotation","pushButton"),this.data.alternativeText&&(wr.title=this.data.alternativeText);const pr=wr.lastChild;return this.enableScripting&&this.hasJSActions&&pr&&(this._setDefaultPropertiesFromJS(pr),pr.addEventListener("updatefromsandbox",Dr=>{this._dispatchEventFromSandbox({},Dr)})),wr}}class vt extends _{constructor(wr){super(wr,{isRenderable:wr.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");const wr=this.annotationStorage,pr=this.data.id,Dr=wr.getValue(pr,{value:this.data.fieldValue}),Sr=document.createElement("select");et.add(Sr),Sr.setAttribute("data-element-id",pr),Sr.disabled=this.data.readOnly,this._setRequired(Sr,this.data.required),Sr.name=this.data.fieldName,Sr.tabIndex=it;let ur=this.data.combo&&this.data.options.length>0;this.data.combo||(Sr.size=this.data.options.length,this.data.multiSelect&&(Sr.multiple=!0)),Sr.addEventListener("resetform",rn=>{const Cn=this.data.defaultFieldValue;for(const xn of Sr.options)xn.selected=xn.value===Cn});for(const rn of this.data.options){const Cn=document.createElement("option");Cn.textContent=rn.displayValue,Cn.value=rn.exportValue,Dr.value.includes(rn.exportValue)&&(Cn.setAttribute("selected",!0),ur=!1),Sr.append(Cn)}let xr=null;if(ur){const rn=document.createElement("option");rn.value=" ",rn.setAttribute("hidden",!0),rn.setAttribute("selected",!0),Sr.prepend(rn),xr=()=>{rn.remove(),Sr.removeEventListener("input",xr),xr=null},Sr.addEventListener("input",xr)}const Pr=rn=>{const Cn=rn?"value":"textContent",{options:xn,multiple:fn}=Sr;return fn?Array.prototype.filter.call(xn,bn=>bn.selected).map(bn=>bn[Cn]):xn.selectedIndex===-1?null:xn[xn.selectedIndex][Cn]};let Vr=Pr(!1);const qr=rn=>{const Cn=rn.target.options;return Array.prototype.map.call(Cn,xn=>({displayValue:xn.textContent,exportValue:xn.value}))};return this.enableScripting&&this.hasJSActions?(Sr.addEventListener("updatefromsandbox",rn=>{const Cn={value(xn){xr==null||xr();const fn=xn.detail.value,bn=new Set(Array.isArray(fn)?fn:[fn]);for(const Un of Sr.options)Un.selected=bn.has(Un.value);wr.setValue(pr,{value:Pr(!0)}),Vr=Pr(!1)},multipleSelection(xn){Sr.multiple=!0},remove(xn){const fn=Sr.options,bn=xn.detail.remove;fn[bn].selected=!1,Sr.remove(bn),fn.length>0&&Array.prototype.findIndex.call(fn,_i=>_i.selected)===-1&&(fn[0].selected=!0),wr.setValue(pr,{value:Pr(!0),items:qr(xn)}),Vr=Pr(!1)},clear(xn){for(;Sr.length!==0;)Sr.remove(0);wr.setValue(pr,{value:null,items:[]}),Vr=Pr(!1)},insert(xn){const{index:fn,displayValue:bn,exportValue:Un}=xn.detail.insert,_i=Sr.children[fn],yn=document.createElement("option");yn.textContent=bn,yn.value=Un,_i?_i.before(yn):Sr.append(yn),wr.setValue(pr,{value:Pr(!0),items:qr(xn)}),Vr=Pr(!1)},items(xn){const{items:fn}=xn.detail;for(;Sr.length!==0;)Sr.remove(0);for(const bn of fn){const{displayValue:Un,exportValue:_i}=bn,yn=document.createElement("option");yn.textContent=Un,yn.value=_i,Sr.append(yn)}Sr.options.length>0&&(Sr.options[0].selected=!0),wr.setValue(pr,{value:Pr(!0),items:qr(xn)}),Vr=Pr(!1)},indices(xn){const fn=new Set(xn.detail.indices);for(const bn of xn.target.options)bn.selected=fn.has(bn.index);wr.setValue(pr,{value:Pr(!0)}),Vr=Pr(!1)},editable(xn){xn.target.disabled=!xn.detail.editable}};this._dispatchEventFromSandbox(Cn,rn)}),Sr.addEventListener("input",rn=>{var xn;const Cn=Pr(!0);wr.setValue(pr,{value:Cn}),rn.preventDefault(),(xn=this.linkService.eventBus)==null||xn.dispatch("dispatcheventinsandbox",{source:this,detail:{id:pr,name:"Keystroke",value:Vr,changeEx:Cn,willCommit:!1,commitKey:1,keyDown:!1}})}),this._setEventListeners(Sr,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],rn=>rn.target.value)):Sr.addEventListener("input",function(rn){wr.setValue(pr,{value:Pr(!0)})}),this.data.combo&&this._setTextStyle(Sr),this._setBackgroundColor(Sr),this._setDefaultPropertiesFromJS(Sr),this.container.append(Sr),this.container}}class dt extends ut{constructor(wr){const{data:pr,elements:Dr}=wr;super(wr,{isRenderable:ut._hasPopupData(pr)}),this.elements=Dr}render(){this.container.classList.add("popupAnnotation");const wr=new bt({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open}),pr=[];for(const Dr of this.elements)Dr.popup=wr,pr.push(Dr.data.id),Dr.addHighlightArea();return this.container.setAttribute("aria-controls",pr.map(Dr=>`${pt.AnnotationPrefix}${Dr}`).join(",")),this.container}}class bt{constructor({container:wr,color:pr,elements:Dr,titleObj:Sr,modificationDate:ur,contentsObj:xr,richText:Pr,parent:Vr,rect:qr,parentRect:rn,open:Cn}){Xo(this,br);Xo(this,Tr);Xo(this,Er);Xo(this,zr);Xo(this,Xt,null);Xo(this,qt,hs(this,br,bS).bind(this));Xo(this,er,hs(this,zr,H_).bind(this));Xo(this,lr,hs(this,Er,$_).bind(this));Xo(this,Jt,hs(this,Tr,rT).bind(this));Xo(this,Yt,null);Xo(this,rr,null);Xo(this,jt,null);Xo(this,ar,null);Xo(this,sr,null);Xo(this,Zt,null);Xo(this,Kt,!1);Xo(this,or,null);Xo(this,tr,null);Xo(this,cr,null);Xo(this,mr,null);Xo(this,Ar,!1);var fn;ks(this,rr,wr),ks(this,mr,Sr),ks(this,jt,xr),ks(this,cr,Pr),ks(this,sr,Vr),ks(this,Yt,pr),ks(this,tr,qr),ks(this,Zt,rn),ks(this,ar,Dr);const xn=Lt.PDFDateString.toDateObject(ur);xn&&ks(this,Xt,Vr.l10n.get("annotation_date_string",{date:xn.toLocaleDateString(),time:xn.toLocaleTimeString()})),this.trigger=Dr.flatMap(bn=>bn.getElementsToTriggerPopup());for(const bn of this.trigger)bn.addEventListener("click",On(this,Jt)),bn.addEventListener("mouseenter",On(this,lr)),bn.addEventListener("mouseleave",On(this,er)),bn.classList.add("popupTriggerArea");for(const bn of Dr)(fn=bn.container)==null||fn.addEventListener("keydown",On(this,qt));On(this,rr).hidden=!0,Cn&&hs(this,Tr,rT).call(this)}render(){if(On(this,or))return;const{page:{view:wr},viewport:{rawDims:{pageWidth:pr,pageHeight:Dr,pageX:Sr,pageY:ur}}}=On(this,sr),xr=ks(this,or,document.createElement("div"));if(xr.className="popup",On(this,Yt)){const Jn=xr.style.outlineColor=pt.Util.makeHexColor(...On(this,Yt));CSS.supports("background-color","color-mix(in srgb, red 30%, white)")?xr.style.backgroundColor=`color-mix(in srgb, ${Jn} 30%, white)`:xr.style.backgroundColor=pt.Util.makeHexColor(...On(this,Yt).map(ba=>Math.floor(.7*(255-ba)+ba)))}const Pr=document.createElement("span");Pr.className="header";const Vr=document.createElement("h1");if(Pr.append(Vr),{dir:Vr.dir,str:Vr.textContent}=On(this,mr),xr.append(Pr),On(this,Xt)){const Jn=document.createElement("span");Jn.classList.add("popupDate"),On(this,Xt).then(so=>{Jn.textContent=so}),Pr.append(Jn)}const qr=On(this,jt),rn=On(this,cr);if(rn!=null&&rn.str&&(!(qr!=null&&qr.str)||qr.str===rn.str))o.XfaLayer.render({xfaHtml:rn.html,intent:"richText",div:xr}),xr.lastChild.classList.add("richText","popupContent");else{const Jn=this._formatContents(qr);xr.append(Jn)}let Cn=!!On(this,Zt),xn=Cn?On(this,Zt):On(this,tr);for(const Jn of On(this,ar))if(!xn||pt.Util.intersect(Jn.data.rect,xn)!==null){xn=Jn.data.rect,Cn=!0;break}const fn=pt.Util.normalizeRect([xn[0],wr[3]-xn[1]+wr[1],xn[2],wr[3]-xn[3]+wr[1]]),bn=5,Un=Cn?xn[2]-xn[0]+bn:0,_i=fn[0]+Un,yn=fn[1],{style:Kn}=On(this,rr);Kn.left=`${100*(_i-Sr)/pr}%`,Kn.top=`${100*(yn-ur)/Dr}%`,On(this,rr).append(xr)}_formatContents({str:wr,dir:pr}){const Dr=document.createElement("p");Dr.classList.add("popupContent"),Dr.dir=pr;const Sr=wr.split(/(?:\r\n?|\n)/);for(let ur=0,xr=Sr.length;ur{xr.key==="Enter"&&(ur?xr.metaKey:xr.ctrlKey)&&hs(this,Xr,G_).call(this)}),!Dr.popupRef&&this.hasPopupData?this._createPopup():Sr.classList.add("popupTriggerArea"),pr.append(Sr),pr}getElementsToTriggerPopup(){return On(this,en)}addHighlightArea(){this.container.classList.add("highlightArea")}}en=new WeakMap,Xr=new WeakSet,G_=function(){var pr;(pr=this.downloadManager)==null||pr.openOrDownloadData(this.container,this.content,this.filename)};class zt{constructor({div:wr,accessibilityManager:pr,annotationCanvasMap:Dr,l10n:Sr,page:ur,viewport:xr}){Xo(this,Zr);Xo(this,Ur);Xo(this,mn,null);Xo(this,pn,null);Xo(this,Tn,new Map);this.div=wr,ks(this,mn,pr),ks(this,pn,Dr),this.l10n=Sr,this.page=ur,this.viewport=xr,this.zIndex=0,this.l10n||(this.l10n=Rt.NullL10n)}async render(wr){const{annotations:pr}=wr,Dr=this.div;(0,Lt.setLayerDimensions)(Dr,this.viewport);const Sr=new Map,ur={data:null,layer:Dr,linkService:wr.linkService,downloadManager:wr.downloadManager,imageResourcesPath:wr.imageResourcesPath||"",renderForms:wr.renderForms!==!1,svgFactory:new Lt.DOMSVGFactory,annotationStorage:wr.annotationStorage||new Gt.AnnotationStorage,enableScripting:wr.enableScripting===!0,hasJSActions:wr.hasJSActions,fieldObjects:wr.fieldObjects,parent:this,elements:null};for(const xr of pr){if(xr.noHTML)continue;const Pr=xr.annotationType===pt.AnnotationType.POPUP;if(Pr){const rn=Sr.get(xr.id);if(!rn)continue;ur.elements=rn}else{const{width:rn,height:Cn}=Tt(xr.rect);if(rn<=0||Cn<=0)continue}ur.data=xr;const Vr=yt.create(ur);if(!Vr.isRenderable)continue;if(!Pr&&xr.popupRef){const rn=Sr.get(xr.popupRef);rn?rn.push(Vr):Sr.set(xr.popupRef,[Vr])}Vr.annotationEditorType>0&&On(this,Tn).set(Vr.data.id,Vr);const qr=Vr.render();xr.hidden&&(qr.style.visibility="hidden"),hs(this,Zr,ES).call(this,qr,xr.id)}hs(this,Ur,V_).call(this),await this.l10n.translate(Dr)}update({viewport:wr}){const pr=this.div;this.viewport=wr,(0,Lt.setLayerDimensions)(pr,{rotation:wr.rotation}),hs(this,Ur,V_).call(this),pr.hidden=!1}getEditableAnnotations(){return Array.from(On(this,Tn).values())}getEditableAnnotation(wr){return On(this,Tn).get(wr)}}mn=new WeakMap,pn=new WeakMap,Tn=new WeakMap,Zr=new WeakSet,ES=function(wr,pr){var Sr;const Dr=wr.firstChild||wr;Dr.id=`${pt.AnnotationPrefix}${pr}`,this.div.append(wr),(Sr=On(this,mn))==null||Sr.moveElementInDOM(this.div,wr,Dr,!1)},Ur=new WeakSet,V_=function(){if(!On(this,pn))return;const wr=this.div;for(const[pr,Dr]of On(this,pn)){const Sr=wr.querySelector(`[data-annotation-id="${pr}"]`);if(!Sr)continue;const{firstChild:ur}=Sr;ur?ur.nodeName==="CANVAS"?ur.replaceWith(Dr):ur.before(Dr):Sr.append(Dr)}On(this,pn).clear()},i.AnnotationLayer=zt},(a,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.ColorConverters=void 0;function _e(Gt){return Math.floor(Math.max(0,Math.min(1,Gt))*255).toString(16).padStart(2,"0")}function pt(Gt){return Math.max(0,Math.min(255,255*Gt))}class Lt{static CMYK_G([Ct,Rt,o,it]){return["G",1-Math.min(1,.3*Ct+.59*o+.11*Rt+it)]}static G_CMYK([Ct]){return["CMYK",0,0,0,1-Ct]}static G_RGB([Ct]){return["RGB",Ct,Ct,Ct]}static G_rgb([Ct]){return Ct=pt(Ct),[Ct,Ct,Ct]}static G_HTML([Ct]){const Rt=_e(Ct);return`#${Rt}${Rt}${Rt}`}static RGB_G([Ct,Rt,o]){return["G",.3*Ct+.59*Rt+.11*o]}static RGB_rgb(Ct){return Ct.map(pt)}static RGB_HTML(Ct){return`#${Ct.map(_e).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB([Ct,Rt,o,it]){return["RGB",1-Math.min(1,Ct+it),1-Math.min(1,o+it),1-Math.min(1,Rt+it)]}static CMYK_rgb([Ct,Rt,o,it]){return[pt(1-Math.min(1,Ct+it)),pt(1-Math.min(1,o+it)),pt(1-Math.min(1,Rt+it))]}static CMYK_HTML(Ct){const Rt=this.CMYK_RGB(Ct).slice(1);return this.RGB_HTML(Rt)}static RGB_CMYK([Ct,Rt,o]){const it=1-Ct,xt=1-Rt,et=1-o,Tt=Math.min(it,xt,et);return["CMYK",it,xt,et,Tt]}}i.ColorConverters=Lt},(a,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.NullL10n=void 0,i.getL10nFallback=pt;const _e={of_pages:"of {{pagesCount}}",page_of_pages:"({{pageNumber}} of {{pagesCount}})",document_properties_kb:"{{size_kb}} KB ({{size_b}} bytes)",document_properties_mb:"{{size_mb}} MB ({{size_b}} bytes)",document_properties_date_string:"{{date}}, {{time}}",document_properties_page_size_unit_inches:"in",document_properties_page_size_unit_millimeters:"mm",document_properties_page_size_orientation_portrait:"portrait",document_properties_page_size_orientation_landscape:"landscape",document_properties_page_size_name_a3:"A3",document_properties_page_size_name_a4:"A4",document_properties_page_size_name_letter:"Letter",document_properties_page_size_name_legal:"Legal",document_properties_page_size_dimension_string:"{{width}} × {{height}} {{unit}} ({{orientation}})",document_properties_page_size_dimension_name_string:"{{width}} × {{height}} {{unit}} ({{name}}, {{orientation}})",document_properties_linearized_yes:"Yes",document_properties_linearized_no:"No",additional_layers:"Additional Layers",page_landmark:"Page {{page}}",thumb_page_title:"Page {{page}}",thumb_page_canvas:"Thumbnail of Page {{page}}",find_reached_top:"Reached top of document, continued from bottom",find_reached_bottom:"Reached end of document, continued from top","find_match_count[one]":"{{current}} of {{total}} match","find_match_count[other]":"{{current}} of {{total}} matches","find_match_count_limit[one]":"More than {{limit}} match","find_match_count_limit[other]":"More than {{limit}} matches",find_not_found:"Phrase not found",page_scale_width:"Page Width",page_scale_fit:"Page Fit",page_scale_auto:"Automatic Zoom",page_scale_actual:"Actual Size",page_scale_percent:"{{scale}}%",loading_error:"An error occurred while loading the PDF.",invalid_file_error:"Invalid or corrupted PDF file.",missing_file_error:"Missing PDF file.",unexpected_response_error:"Unexpected server response.",rendering_error:"An error occurred while rendering the page.",annotation_date_string:"{{date}}, {{time}}",printing_not_supported:"Warning: Printing is not fully supported by this browser.",printing_not_ready:"Warning: The PDF is not fully loaded for printing.",web_fonts_disabled:"Web fonts are disabled: unable to use embedded PDF fonts.",free_text2_default_content:"Start typing…",editor_free_text2_aria_label:"Text Editor",editor_ink2_aria_label:"Draw Editor",editor_ink_canvas_aria_label:"User-created image",editor_alt_text_button_label:"Alt text",editor_alt_text_edit_button_label:"Edit alt text",editor_alt_text_decorative_tooltip:"Marked as decorative"};_e.print_progress_percent="{{progress}}%";function pt(Ct,Rt){switch(Ct){case"find_match_count":Ct=`find_match_count[${Rt.total===1?"one":"other"}]`;break;case"find_match_count_limit":Ct=`find_match_count_limit[${Rt.limit===1?"one":"other"}]`;break}return _e[Ct]||""}function Lt(Ct,Rt){return Rt?Ct.replaceAll(/\{\{\s*(\w+)\s*\}\}/g,(o,it)=>it in Rt?Rt[it]:"{{"+it+"}}"):Ct}const Gt={async getLanguage(){return"en-us"},async getDirection(){return"ltr"},async get(Ct,Rt=null,o=pt(Ct,Rt)){return Lt(o,Rt)},async translate(Ct){}};i.NullL10n=Gt},(a,i,_e)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.XfaLayer=void 0;var pt=_e(25);class Lt{static setupStorage(Ct,Rt,o,it,xt){const et=it.getValue(Rt,{value:null});switch(o.name){case"textarea":if(et.value!==null&&(Ct.textContent=et.value),xt==="print")break;Ct.addEventListener("input",Tt=>{it.setValue(Rt,{value:Tt.target.value})});break;case"input":if(o.attributes.type==="radio"||o.attributes.type==="checkbox"){if(et.value===o.attributes.xfaOn?Ct.setAttribute("checked",!0):et.value===o.attributes.xfaOff&&Ct.removeAttribute("checked"),xt==="print")break;Ct.addEventListener("change",Tt=>{it.setValue(Rt,{value:Tt.target.checked?Tt.target.getAttribute("xfaOn"):Tt.target.getAttribute("xfaOff")})})}else{if(et.value!==null&&Ct.setAttribute("value",et.value),xt==="print")break;Ct.addEventListener("input",Tt=>{it.setValue(Rt,{value:Tt.target.value})})}break;case"select":if(et.value!==null){Ct.setAttribute("value",et.value);for(const Tt of o.children)Tt.attributes.value===et.value?Tt.attributes.selected=!0:Tt.attributes.hasOwnProperty("selected")&&delete Tt.attributes.selected}Ct.addEventListener("input",Tt=>{const yt=Tt.target.options,ut=yt.selectedIndex===-1?"":yt[yt.selectedIndex].value;it.setValue(Rt,{value:ut})});break}}static setAttributes({html:Ct,element:Rt,storage:o=null,intent:it,linkService:xt}){const{attributes:et}=Rt,Tt=Ct instanceof HTMLAnchorElement;et.type==="radio"&&(et.name=`${et.name}-${it}`);for(const[yt,ut]of Object.entries(et))if(ut!=null)switch(yt){case"class":ut.length&&Ct.setAttribute(yt,ut.join(" "));break;case"dataId":break;case"id":Ct.setAttribute("data-element-id",ut);break;case"style":Object.assign(Ct.style,ut);break;case"textContent":Ct.textContent=ut;break;default:(!Tt||yt!=="href"&&yt!=="newWindow")&&Ct.setAttribute(yt,ut)}Tt&&xt.addLinkAttributes(Ct,et.href,et.newWindow),o&&et.dataId&&this.setupStorage(Ct,et.dataId,Rt,o)}static render(Ct){var ht;const Rt=Ct.annotationStorage,o=Ct.linkService,it=Ct.xfaHtml,xt=Ct.intent||"display",et=document.createElement(it.name);it.attributes&&this.setAttributes({html:et,element:it,intent:xt,linkService:o});const Tt=[[it,-1,et]],yt=Ct.div;if(yt.append(et),Ct.viewport){const j=`matrix(${Ct.viewport.transform.join(",")})`;yt.style.transform=j}xt!=="richText"&&yt.setAttribute("class","xfaLayer xfaFont");const ut=[];for(;Tt.length>0;){const[j,_,rt]=Tt.at(-1);if(_+1===j.children.length){Tt.pop();continue}const tt=j.children[++Tt.at(-1)[1]];if(tt===null)continue;const{name:st}=tt;if(st==="#text"){const nt=document.createTextNode(tt.value);ut.push(nt),rt.append(nt);continue}const ot=(ht=tt==null?void 0:tt.attributes)!=null&&ht.xmlns?document.createElementNS(tt.attributes.xmlns,st):document.createElement(st);if(rt.append(ot),tt.attributes&&this.setAttributes({html:ot,element:tt,storage:Rt,intent:xt,linkService:o}),tt.children&&tt.children.length>0)Tt.push([tt,-1,ot]);else if(tt.value){const nt=document.createTextNode(tt.value);pt.XfaText.shouldBuildText(st)&&ut.push(nt),ot.append(nt)}}for(const j of yt.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))j.setAttribute("readOnly",!0);return{textDivs:ut}}static update(Ct){const Rt=`matrix(${Ct.viewport.transform.join(",")})`;Ct.div.style.transform=Rt,Ct.div.hidden=!1}}i.XfaLayer=Lt},(a,i,_e)=>{var it,xt,et,Tt,yt,ut,ht,j,_,rt,tt,st,ot,nt,vt,TS,bt,AS,at,_S,St,SS,Mt,W_,kt,wS,ct,j_,At,CS,Pt,RS,Dt,MS,$t,IS,Ht,kS,Xt,zy,er,Y_,Jt,nT,rr,aT,ar,l2,Zt,X_,or,iT,cr,LS,Ar,K_,Ir,DS,_r,PS,Rr,Z_,Or,oT,Nr,u2;Object.defineProperty(i,"__esModule",{value:!0}),i.InkEditor=void 0;var pt=_e(1),Lt=_e(4),Gt=_e(29),Ct=_e(6),Rt=_e(5);const sn=class extends Lt.AnnotationEditor{constructor(Xr){super({...Xr,name:"inkEditor"});Xo(this,vt);Xo(this,bt);Xo(this,at);Xo(this,St);Xo(this,Mt);Xo(this,kt);Xo(this,ct);Xo(this,At);Xo(this,Pt);Xo(this,Dt);Xo(this,$t);Xo(this,Ht);Xo(this,Xt);Xo(this,er);Xo(this,Jt);Xo(this,rr);Xo(this,ar);Xo(this,Zt);Xo(this,or);Xo(this,_r);Xo(this,Rr);Xo(this,Or);Xo(this,Nr);Xo(this,it,0);Xo(this,xt,0);Xo(this,et,this.canvasPointermove.bind(this));Xo(this,Tt,this.canvasPointerleave.bind(this));Xo(this,yt,this.canvasPointerup.bind(this));Xo(this,ut,this.canvasPointerdown.bind(this));Xo(this,ht,new Path2D);Xo(this,j,!1);Xo(this,_,!1);Xo(this,rt,!1);Xo(this,tt,null);Xo(this,st,0);Xo(this,ot,0);Xo(this,nt,null);this.color=Xr.color||null,this.thickness=Xr.thickness||null,this.opacity=Xr.opacity||null,this.paths=[],this.bezierPath2D=[],this.allRawPaths=[],this.currentPath=[],this.scaleFactor=1,this.translationX=this.translationY=0,this.x=0,this.y=0,this._willKeepAspectRatio=!0}static initialize(Xr){Lt.AnnotationEditor.initialize(Xr,{strings:["editor_ink_canvas_aria_label","editor_ink2_aria_label"]})}static updateDefaultParams(Xr,ln){switch(Xr){case pt.AnnotationEditorParamsType.INK_THICKNESS:sn._defaultThickness=ln;break;case pt.AnnotationEditorParamsType.INK_COLOR:sn._defaultColor=ln;break;case pt.AnnotationEditorParamsType.INK_OPACITY:sn._defaultOpacity=ln/100;break}}updateParams(Xr,ln){switch(Xr){case pt.AnnotationEditorParamsType.INK_THICKNESS:hs(this,vt,TS).call(this,ln);break;case pt.AnnotationEditorParamsType.INK_COLOR:hs(this,bt,AS).call(this,ln);break;case pt.AnnotationEditorParamsType.INK_OPACITY:hs(this,at,_S).call(this,ln);break}}static get defaultPropertiesToUpdate(){return[[pt.AnnotationEditorParamsType.INK_THICKNESS,sn._defaultThickness],[pt.AnnotationEditorParamsType.INK_COLOR,sn._defaultColor||Lt.AnnotationEditor._defaultLineColor],[pt.AnnotationEditorParamsType.INK_OPACITY,Math.round(sn._defaultOpacity*100)]]}get propertiesToUpdate(){return[[pt.AnnotationEditorParamsType.INK_THICKNESS,this.thickness||sn._defaultThickness],[pt.AnnotationEditorParamsType.INK_COLOR,this.color||sn._defaultColor||Lt.AnnotationEditor._defaultLineColor],[pt.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*(this.opacity??sn._defaultOpacity))]]}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.canvas||(hs(this,Jt,nT).call(this),hs(this,rr,aT).call(this)),this.isAttachedToDOM||(this.parent.add(this),hs(this,ar,l2).call(this)),hs(this,Nr,u2).call(this)))}remove(){this.canvas!==null&&(this.isEmpty()||this.commit(),this.canvas.width=this.canvas.height=0,this.canvas.remove(),this.canvas=null,On(this,tt).disconnect(),ks(this,tt,null),super.remove())}setParent(Xr){!this.parent&&Xr?this._uiManager.removeShouldRescale(this):this.parent&&Xr===null&&this._uiManager.addShouldRescale(this),super.setParent(Xr)}onScaleChanging(){const[Xr,ln]=this.parentDimensions,mn=this.width*Xr,pn=this.height*ln;this.setDimensions(mn,pn)}enableEditMode(){On(this,j)||this.canvas===null||(super.enableEditMode(),this._isDraggable=!1,this.canvas.addEventListener("pointerdown",On(this,ut)))}disableEditMode(){!this.isInEditMode()||this.canvas===null||(super.disableEditMode(),this._isDraggable=!this.isEmpty(),this.div.classList.remove("editing"),this.canvas.removeEventListener("pointerdown",On(this,ut)))}onceAdded(){this._isDraggable=!this.isEmpty()}isEmpty(){return this.paths.length===0||this.paths.length===1&&this.paths[0].length===0}commit(){On(this,j)||(super.commit(),this.isEditing=!1,this.disableEditMode(),this.setInForeground(),ks(this,j,!0),this.div.classList.add("disabled"),hs(this,Nr,u2).call(this,!0),this.makeResizable(),this.parent.addInkEditorIfNeeded(!0),this.moveInDOM(),this.div.focus({preventScroll:!0}))}focusin(Xr){this._focusEventsAllowed&&(super.focusin(Xr),this.enableEditMode())}canvasPointerdown(Xr){Xr.button!==0||!this.isInEditMode()||On(this,j)||(this.setInForeground(),Xr.preventDefault(),Xr.type!=="mouse"&&this.div.focus(),hs(this,kt,wS).call(this,Xr.offsetX,Xr.offsetY))}canvasPointermove(Xr){Xr.preventDefault(),hs(this,ct,j_).call(this,Xr.offsetX,Xr.offsetY)}canvasPointerup(Xr){Xr.preventDefault(),hs(this,er,Y_).call(this,Xr)}canvasPointerleave(Xr){hs(this,er,Y_).call(this,Xr)}get isResizable(){return!this.isEmpty()&&On(this,j)}render(){if(this.div)return this.div;let Xr,ln;this.width&&(Xr=this.x,ln=this.y),super.render(),Lt.AnnotationEditor._l10nPromise.get("editor_ink2_aria_label").then(Fr=>{var Ur;return(Ur=this.div)==null?void 0:Ur.setAttribute("aria-label",Fr)});const[mn,pn,Tn,Zr]=hs(this,St,SS).call(this);if(this.setAt(mn,pn,0,0),this.setDims(Tn,Zr),hs(this,Jt,nT).call(this),this.width){const[Fr,Ur]=this.parentDimensions;this.setAspectRatio(this.width*Fr,this.height*Ur),this.setAt(Xr*Fr,ln*Ur,this.width*Fr,this.height*Ur),ks(this,rt,!0),hs(this,ar,l2).call(this),this.setDims(this.width*Fr,this.height*Ur),hs(this,Xt,zy).call(this),this.div.classList.add("disabled")}else this.div.classList.add("editing"),this.enableEditMode();return hs(this,rr,aT).call(this),this.div}setDimensions(Xr,ln){const mn=Math.round(Xr),pn=Math.round(ln);if(On(this,st)===mn&&On(this,ot)===pn)return;ks(this,st,mn),ks(this,ot,pn),this.canvas.style.visibility="hidden";const[Tn,Zr]=this.parentDimensions;this.width=Xr/Tn,this.height=ln/Zr,this.fixAndSetPosition(),On(this,j)&&hs(this,Zt,X_).call(this,Xr,ln),hs(this,ar,l2).call(this),hs(this,Xt,zy).call(this),this.canvas.style.visibility="visible",this.fixDims()}static deserialize(Xr,ln,mn){var ur,xr,Pr;if(Xr instanceof Gt.InkAnnotationElement)return null;const pn=super.deserialize(Xr,ln,mn);pn.thickness=Xr.thickness,pn.color=pt.Util.makeHexColor(...Xr.color),pn.opacity=Xr.opacity;const[Tn,Zr]=pn.pageDimensions,Fr=pn.width*Tn,Ur=pn.height*Zr,Wr=pn.parentScale,Gr=Xr.thickness/2;ks(pn,j,!0),ks(pn,st,Math.round(Fr)),ks(pn,ot,Math.round(Ur));const{paths:wr,rect:pr,rotation:Dr}=Xr;for(let{bezier:Vr}of wr){Vr=hs(ur=sn,Ir,DS).call(ur,Vr,pr,Dr);const qr=[];pn.paths.push(qr);let rn=Wr*(Vr[0]-Gr),Cn=Wr*(Vr[1]-Gr);for(let fn=2,bn=Vr.length;fn{this.thickness=Xr,hs(this,Nr,u2).call(this)},undo:()=>{this.thickness=ln,hs(this,Nr,u2).call(this)},mustExec:!0,type:pt.AnnotationEditorParamsType.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0})},bt=new WeakSet,AS=function(Xr){const ln=this.color;this.addCommands({cmd:()=>{this.color=Xr,hs(this,Xt,zy).call(this)},undo:()=>{this.color=ln,hs(this,Xt,zy).call(this)},mustExec:!0,type:pt.AnnotationEditorParamsType.INK_COLOR,overwriteIfSameType:!0,keepUndo:!0})},at=new WeakSet,_S=function(Xr){Xr/=100;const ln=this.opacity;this.addCommands({cmd:()=>{this.opacity=Xr,hs(this,Xt,zy).call(this)},undo:()=>{this.opacity=ln,hs(this,Xt,zy).call(this)},mustExec:!0,type:pt.AnnotationEditorParamsType.INK_OPACITY,overwriteIfSameType:!0,keepUndo:!0})},St=new WeakSet,SS=function(){const{parentRotation:Xr,parentDimensions:[ln,mn]}=this;switch(Xr){case 90:return[0,mn,mn,ln];case 180:return[ln,mn,ln,mn];case 270:return[ln,0,mn,ln];default:return[0,0,ln,mn]}},Mt=new WeakSet,W_=function(){const{ctx:Xr,color:ln,opacity:mn,thickness:pn,parentScale:Tn,scaleFactor:Zr}=this;Xr.lineWidth=pn*Tn/Zr,Xr.lineCap="round",Xr.lineJoin="round",Xr.miterLimit=10,Xr.strokeStyle=`${ln}${(0,Rt.opacityToHex)(mn)}`},kt=new WeakSet,wS=function(Xr,ln){this.canvas.addEventListener("contextmenu",Ct.noContextMenu),this.canvas.addEventListener("pointerleave",On(this,Tt)),this.canvas.addEventListener("pointermove",On(this,et)),this.canvas.addEventListener("pointerup",On(this,yt)),this.canvas.removeEventListener("pointerdown",On(this,ut)),this.isEditing=!0,On(this,rt)||(ks(this,rt,!0),hs(this,ar,l2).call(this),this.thickness||(this.thickness=sn._defaultThickness),this.color||(this.color=sn._defaultColor||Lt.AnnotationEditor._defaultLineColor),this.opacity??(this.opacity=sn._defaultOpacity)),this.currentPath.push([Xr,ln]),ks(this,_,!1),hs(this,Mt,W_).call(this),ks(this,nt,()=>{hs(this,Dt,MS).call(this),On(this,nt)&&window.requestAnimationFrame(On(this,nt))}),window.requestAnimationFrame(On(this,nt))},ct=new WeakSet,j_=function(Xr,ln){const[mn,pn]=this.currentPath.at(-1);if(this.currentPath.length>1&&Xr===mn&&ln===pn)return;const Tn=this.currentPath;let Zr=On(this,ht);if(Tn.push([Xr,ln]),ks(this,_,!0),Tn.length<=2){Zr.moveTo(...Tn[0]),Zr.lineTo(Xr,ln);return}Tn.length===3&&(ks(this,ht,Zr=new Path2D),Zr.moveTo(...Tn[0])),hs(this,$t,IS).call(this,Zr,...Tn.at(-3),...Tn.at(-2),Xr,ln)},At=new WeakSet,CS=function(){if(this.currentPath.length===0)return;const Xr=this.currentPath.at(-1);On(this,ht).lineTo(...Xr)},Pt=new WeakSet,RS=function(Xr,ln){ks(this,nt,null),Xr=Math.min(Math.max(Xr,0),this.canvas.width),ln=Math.min(Math.max(ln,0),this.canvas.height),hs(this,ct,j_).call(this,Xr,ln),hs(this,At,CS).call(this);let mn;if(this.currentPath.length!==1)mn=hs(this,Ht,kS).call(this);else{const Ur=[Xr,ln];mn=[[Ur,Ur.slice(),Ur.slice(),Ur]]}const pn=On(this,ht),Tn=this.currentPath;this.currentPath=[],ks(this,ht,new Path2D);const Zr=()=>{this.allRawPaths.push(Tn),this.paths.push(mn),this.bezierPath2D.push(pn),this.rebuild()},Fr=()=>{this.allRawPaths.pop(),this.paths.pop(),this.bezierPath2D.pop(),this.paths.length===0?this.remove():(this.canvas||(hs(this,Jt,nT).call(this),hs(this,rr,aT).call(this)),hs(this,Nr,u2).call(this))};this.addCommands({cmd:Zr,undo:Fr,mustExec:!0})},Dt=new WeakSet,MS=function(){if(!On(this,_))return;ks(this,_,!1);const Xr=Math.ceil(this.thickness*this.parentScale),ln=this.currentPath.slice(-3),mn=ln.map(Zr=>Zr[0]),pn=ln.map(Zr=>Zr[1]);Math.min(...mn)-Xr,Math.max(...mn)+Xr,Math.min(...pn)-Xr,Math.max(...pn)+Xr;const{ctx:Tn}=this;Tn.save(),Tn.clearRect(0,0,this.canvas.width,this.canvas.height);for(const Zr of this.bezierPath2D)Tn.stroke(Zr);Tn.stroke(On(this,ht)),Tn.restore()},$t=new WeakSet,IS=function(Xr,ln,mn,pn,Tn,Zr,Fr){const Ur=(ln+pn)/2,Wr=(mn+Tn)/2,Gr=(pn+Zr)/2,wr=(Tn+Fr)/2;Xr.bezierCurveTo(Ur+2*(pn-Ur)/3,Wr+2*(Tn-Wr)/3,Gr+2*(pn-Gr)/3,wr+2*(Tn-wr)/3,Gr,wr)},Ht=new WeakSet,kS=function(){const Xr=this.currentPath;if(Xr.length<=2)return[[Xr[0],Xr[0],Xr.at(-1),Xr.at(-1)]];const ln=[];let mn,[pn,Tn]=Xr[0];for(mn=1;mn{this.canvas.removeEventListener("contextmenu",Ct.noContextMenu)},10),hs(this,Pt,RS).call(this,Xr.offsetX,Xr.offsetY),this.addToAnnotationStorage(),this.setInBackground()},Jt=new WeakSet,nT=function(){this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=0,this.canvas.className="inkEditorCanvas",Lt.AnnotationEditor._l10nPromise.get("editor_ink_canvas_aria_label").then(Xr=>{var ln;return(ln=this.canvas)==null?void 0:ln.setAttribute("aria-label",Xr)}),this.div.append(this.canvas),this.ctx=this.canvas.getContext("2d")},rr=new WeakSet,aT=function(){ks(this,tt,new ResizeObserver(Xr=>{const ln=Xr[0].contentRect;ln.width&&ln.height&&this.setDimensions(ln.width,ln.height)})),On(this,tt).observe(this.div)},ar=new WeakSet,l2=function(){if(!On(this,rt))return;const[Xr,ln]=this.parentDimensions;this.canvas.width=Math.ceil(this.width*Xr),this.canvas.height=Math.ceil(this.height*ln),hs(this,or,iT).call(this)},Zt=new WeakSet,X_=function(Xr,ln){const mn=hs(this,Or,oT).call(this),pn=(Xr-mn)/On(this,xt),Tn=(ln-mn)/On(this,it);this.scaleFactor=Math.min(pn,Tn)},or=new WeakSet,iT=function(){const Xr=hs(this,Or,oT).call(this)/2;this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+Xr,this.translationY*this.scaleFactor+Xr)},cr=new WeakSet,LS=function(Xr){const ln=new Path2D;for(let mn=0,pn=Xr.length;mn{var o,it,xt,et,Tt,yt,ut,ht,j,_,rt,K2,st,Z2,nt,sT,dt,J_,ft,OS,mt,FS,_t,Q_,Et,lT,wt,BS;Object.defineProperty(i,"__esModule",{value:!0}),i.StampEditor=void 0;var pt=_e(1),Lt=_e(4),Gt=_e(6),Ct=_e(29);const It=class extends Lt.AnnotationEditor{constructor(Pt){super({...Pt,name:"stampEditor"});Xo(this,rt);Xo(this,st);Xo(this,nt);Xo(this,dt);Xo(this,ft);Xo(this,mt);Xo(this,_t);Xo(this,Et);Xo(this,wt);Xo(this,o,null);Xo(this,it,null);Xo(this,xt,null);Xo(this,et,null);Xo(this,Tt,null);Xo(this,yt,null);Xo(this,ut,null);Xo(this,ht,null);Xo(this,j,!1);Xo(this,_,!1);ks(this,et,Pt.bitmapUrl),ks(this,Tt,Pt.bitmapFile)}static initialize(Pt){Lt.AnnotationEditor.initialize(Pt)}static get supportedTypes(){const Pt=["apng","avif","bmp","gif","jpeg","png","svg+xml","webp","x-icon"];return(0,pt.shadow)(this,"supportedTypes",Pt.map(zt=>`image/${zt}`))}static get supportedTypesStr(){return(0,pt.shadow)(this,"supportedTypesStr",this.supportedTypes.join(","))}static isHandlingMimeForPasting(Pt){return this.supportedTypes.includes(Pt)}static paste(Pt,zt){zt.pasteEditor(pt.AnnotationEditorType.STAMP,{bitmapFile:Pt.getAsFile()})}remove(){var Pt,zt;On(this,it)&&(ks(this,o,null),this._uiManager.imageManager.deleteId(On(this,it)),(Pt=On(this,yt))==null||Pt.remove(),ks(this,yt,null),(zt=On(this,ut))==null||zt.disconnect(),ks(this,ut,null)),super.remove()}rebuild(){if(!this.parent){On(this,it)&&hs(this,nt,sT).call(this);return}super.rebuild(),this.div!==null&&(On(this,it)&&hs(this,nt,sT).call(this),this.isAttachedToDOM||this.parent.add(this))}onceAdded(){this._isDraggable=!0,this.div.focus()}isEmpty(){return!(On(this,xt)||On(this,o)||On(this,et)||On(this,Tt))}get isResizable(){return!0}render(){if(this.div)return this.div;let Pt,zt;if(this.width&&(Pt=this.x,zt=this.y),super.render(),this.div.hidden=!0,On(this,o)?hs(this,dt,J_).call(this):hs(this,nt,sT).call(this),this.width){const[Dt,Nt]=this.parentDimensions;this.setAt(Pt*Dt,zt*Nt,this.width*Dt,this.height*Nt)}return this.div}static deserialize(Pt,zt,Dt){if(Pt instanceof Ct.StampAnnotationElement)return null;const Nt=super.deserialize(Pt,zt,Dt),{rect:$t,bitmapUrl:Ut,bitmapId:Ht,isSvg:Vt,accessibilityData:Xt}=Pt;Ht&&Dt.imageManager.isValidId(Ht)?ks(Nt,it,Ht):ks(Nt,et,Ut),ks(Nt,j,Vt);const[qt,er]=Nt.pageDimensions;return Nt.width=($t[2]-$t[0])/qt,Nt.height=($t[3]-$t[1])/er,Xt&&(Nt.altTextData=Xt),Nt}serialize(Pt=!1,zt=null){if(this.isEmpty())return null;const Dt={annotationType:pt.AnnotationEditorType.STAMP,bitmapId:On(this,it),pageIndex:this.pageIndex,rect:this.getRect(0,0),rotation:this.rotation,isSvg:On(this,j),structTreeParentId:this._structTreeParentId};if(Pt)return Dt.bitmapUrl=hs(this,Et,lT).call(this,!0),Dt.accessibilityData=this.altTextData,Dt;const{decorative:Nt,altText:$t}=this.altTextData;if(!Nt&&$t&&(Dt.accessibilityData={type:"Figure",alt:$t}),zt===null)return Dt;zt.stamps||(zt.stamps=new Map);const Ut=On(this,j)?(Dt.rect[2]-Dt.rect[0])*(Dt.rect[3]-Dt.rect[1]):null;if(!zt.stamps.has(On(this,it)))zt.stamps.set(On(this,it),{area:Ut,serialized:Dt}),Dt.bitmap=hs(this,Et,lT).call(this,!1);else if(On(this,j)){const Ht=zt.stamps.get(On(this,it));Ut>Ht.area&&(Ht.area=Ut,Ht.serialized.bitmap.close(),Ht.serialized.bitmap=hs(this,Et,lT).call(this,!1))}return Dt}};let Rt=It;o=new WeakMap,it=new WeakMap,xt=new WeakMap,et=new WeakMap,Tt=new WeakMap,yt=new WeakMap,ut=new WeakMap,ht=new WeakMap,j=new WeakMap,_=new WeakMap,rt=new WeakSet,K2=function(Pt,zt=!1){if(!Pt){this.remove();return}ks(this,o,Pt.bitmap),zt||(ks(this,it,Pt.id),ks(this,j,Pt.isSvg)),hs(this,dt,J_).call(this)},st=new WeakSet,Z2=function(){ks(this,xt,null),this._uiManager.enableWaiting(!1),On(this,yt)&&this.div.focus()},nt=new WeakSet,sT=function(){if(On(this,it)){this._uiManager.enableWaiting(!0),this._uiManager.imageManager.getFromId(On(this,it)).then(zt=>hs(this,rt,K2).call(this,zt,!0)).finally(()=>hs(this,st,Z2).call(this));return}if(On(this,et)){const zt=On(this,et);ks(this,et,null),this._uiManager.enableWaiting(!0),ks(this,xt,this._uiManager.imageManager.getFromUrl(zt).then(Dt=>hs(this,rt,K2).call(this,Dt)).finally(()=>hs(this,st,Z2).call(this)));return}if(On(this,Tt)){const zt=On(this,Tt);ks(this,Tt,null),this._uiManager.enableWaiting(!0),ks(this,xt,this._uiManager.imageManager.getFromFile(zt).then(Dt=>hs(this,rt,K2).call(this,Dt)).finally(()=>hs(this,st,Z2).call(this)));return}const Pt=document.createElement("input");Pt.type="file",Pt.accept=It.supportedTypesStr,ks(this,xt,new Promise(zt=>{Pt.addEventListener("change",async()=>{if(!Pt.files||Pt.files.length===0)this.remove();else{this._uiManager.enableWaiting(!0);const Dt=await this._uiManager.imageManager.getFromFile(Pt.files[0]);hs(this,rt,K2).call(this,Dt)}zt()}),Pt.addEventListener("cancel",()=>{this.remove(),zt()})}).finally(()=>hs(this,st,Z2).call(this))),Pt.click()},dt=new WeakSet,J_=function(){const{div:Pt}=this;let{width:zt,height:Dt}=On(this,o);const[Nt,$t]=this.pageDimensions,Ut=.75;if(this.width)zt=this.width*Nt,Dt=this.height*$t;else if(zt>Ut*Nt||Dt>Ut*$t){const qt=Math.min(Ut*Nt/zt,Ut*$t/Dt);zt*=qt,Dt*=qt}const[Ht,Vt]=this.parentDimensions;this.setDims(zt*Ht/Nt,Dt*Vt/$t),this._uiManager.enableWaiting(!1);const Xt=ks(this,yt,document.createElement("canvas"));Pt.append(Xt),Pt.hidden=!1,hs(this,_t,Q_).call(this,zt,Dt),hs(this,wt,BS).call(this),On(this,_)||(this.parent.addUndoableEditor(this),ks(this,_,!0)),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",subtype:this.editorType,data:{action:"inserted_image"}}}),this.addAltTextButton()},ft=new WeakSet,OS=function(Pt,zt){var Ut;const[Dt,Nt]=this.parentDimensions;this.width=Pt/Dt,this.height=zt/Nt,this.setDims(Pt,zt),(Ut=this._initialOptions)!=null&&Ut.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,On(this,ht)!==null&&clearTimeout(On(this,ht)),ks(this,ht,setTimeout(()=>{ks(this,ht,null),hs(this,_t,Q_).call(this,Pt,zt)},200))},mt=new WeakSet,FS=function(Pt,zt){const{width:Dt,height:Nt}=On(this,o);let $t=Dt,Ut=Nt,Ht=On(this,o);for(;$t>2*Pt||Ut>2*zt;){const Vt=$t,Xt=Ut;$t>2*Pt&&($t=$t>=16384?Math.floor($t/2)-1:Math.ceil($t/2)),Ut>2*zt&&(Ut=Ut>=16384?Math.floor(Ut/2)-1:Math.ceil(Ut/2));const qt=new OffscreenCanvas($t,Ut);qt.getContext("2d").drawImage(Ht,0,0,Vt,Xt,0,0,$t,Ut),Ht=qt.transferToImageBitmap()}return Ht},_t=new WeakSet,Q_=function(Pt,zt){Pt=Math.ceil(Pt),zt=Math.ceil(zt);const Dt=On(this,yt);if(!Dt||Dt.width===Pt&&Dt.height===zt)return;Dt.width=Pt,Dt.height=zt;const Nt=On(this,j)?On(this,o):hs(this,mt,FS).call(this,Pt,zt),$t=Dt.getContext("2d");$t.filter=this._uiManager.hcmFilter,$t.drawImage(Nt,0,0,Nt.width,Nt.height,0,0,Pt,zt)},Et=new WeakSet,lT=function(Pt){if(Pt){if(On(this,j)){const Nt=this._uiManager.imageManager.getSvgUrl(On(this,it));if(Nt)return Nt}const zt=document.createElement("canvas");return{width:zt.width,height:zt.height}=On(this,o),zt.getContext("2d").drawImage(On(this,o),0,0),zt.toDataURL()}if(On(this,j)){const[zt,Dt]=this.pageDimensions,Nt=Math.round(this.width*zt*Gt.PixelsPerInch.PDF_TO_CSS_UNITS),$t=Math.round(this.height*Dt*Gt.PixelsPerInch.PDF_TO_CSS_UNITS),Ut=new OffscreenCanvas(Nt,$t);return Ut.getContext("2d").drawImage(On(this,o),0,0,On(this,o).width,On(this,o).height,0,0,Nt,$t),Ut.transferToImageBitmap()}return structuredClone(On(this,o))},wt=new WeakSet,BS=function(){ks(this,ut,new ResizeObserver(Pt=>{const zt=Pt[0].contentRect;zt.width&&zt.height&&hs(this,ft,OS).call(this,zt.width,zt.height)})),On(this,ut).observe(this.div)},Dp(Rt,"_type","stamp"),i.StampEditor=Rt}],__webpack_module_cache__={};function __w_pdfjs_require__(a){var i=__webpack_module_cache__[a];if(i!==void 0)return i.exports;var _e=__webpack_module_cache__[a]={exports:{}};return __webpack_modules__[a](_e,_e.exports,__w_pdfjs_require__),_e.exports}var __webpack_exports__={};return(()=>{var a=__webpack_exports__;Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"AbortException",{enumerable:!0,get:function(){return i.AbortException}}),Object.defineProperty(a,"AnnotationEditorLayer",{enumerable:!0,get:function(){return Gt.AnnotationEditorLayer}}),Object.defineProperty(a,"AnnotationEditorParamsType",{enumerable:!0,get:function(){return i.AnnotationEditorParamsType}}),Object.defineProperty(a,"AnnotationEditorType",{enumerable:!0,get:function(){return i.AnnotationEditorType}}),Object.defineProperty(a,"AnnotationEditorUIManager",{enumerable:!0,get:function(){return Ct.AnnotationEditorUIManager}}),Object.defineProperty(a,"AnnotationLayer",{enumerable:!0,get:function(){return Rt.AnnotationLayer}}),Object.defineProperty(a,"AnnotationMode",{enumerable:!0,get:function(){return i.AnnotationMode}}),Object.defineProperty(a,"CMapCompressionType",{enumerable:!0,get:function(){return i.CMapCompressionType}}),Object.defineProperty(a,"DOMSVGFactory",{enumerable:!0,get:function(){return pt.DOMSVGFactory}}),Object.defineProperty(a,"FeatureTest",{enumerable:!0,get:function(){return i.FeatureTest}}),Object.defineProperty(a,"GlobalWorkerOptions",{enumerable:!0,get:function(){return o.GlobalWorkerOptions}}),Object.defineProperty(a,"ImageKind",{enumerable:!0,get:function(){return i.ImageKind}}),Object.defineProperty(a,"InvalidPDFException",{enumerable:!0,get:function(){return i.InvalidPDFException}}),Object.defineProperty(a,"MissingPDFException",{enumerable:!0,get:function(){return i.MissingPDFException}}),Object.defineProperty(a,"OPS",{enumerable:!0,get:function(){return i.OPS}}),Object.defineProperty(a,"PDFDataRangeTransport",{enumerable:!0,get:function(){return _e.PDFDataRangeTransport}}),Object.defineProperty(a,"PDFDateString",{enumerable:!0,get:function(){return pt.PDFDateString}}),Object.defineProperty(a,"PDFWorker",{enumerable:!0,get:function(){return _e.PDFWorker}}),Object.defineProperty(a,"PasswordResponses",{enumerable:!0,get:function(){return i.PasswordResponses}}),Object.defineProperty(a,"PermissionFlag",{enumerable:!0,get:function(){return i.PermissionFlag}}),Object.defineProperty(a,"PixelsPerInch",{enumerable:!0,get:function(){return pt.PixelsPerInch}}),Object.defineProperty(a,"PromiseCapability",{enumerable:!0,get:function(){return i.PromiseCapability}}),Object.defineProperty(a,"RenderingCancelledException",{enumerable:!0,get:function(){return pt.RenderingCancelledException}}),Object.defineProperty(a,"SVGGraphics",{enumerable:!0,get:function(){return _e.SVGGraphics}}),Object.defineProperty(a,"UnexpectedResponseException",{enumerable:!0,get:function(){return i.UnexpectedResponseException}}),Object.defineProperty(a,"Util",{enumerable:!0,get:function(){return i.Util}}),Object.defineProperty(a,"VerbosityLevel",{enumerable:!0,get:function(){return i.VerbosityLevel}}),Object.defineProperty(a,"XfaLayer",{enumerable:!0,get:function(){return it.XfaLayer}}),Object.defineProperty(a,"build",{enumerable:!0,get:function(){return _e.build}}),Object.defineProperty(a,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return i.createValidAbsoluteUrl}}),Object.defineProperty(a,"getDocument",{enumerable:!0,get:function(){return _e.getDocument}}),Object.defineProperty(a,"getFilenameFromUrl",{enumerable:!0,get:function(){return pt.getFilenameFromUrl}}),Object.defineProperty(a,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return pt.getPdfFilenameFromUrl}}),Object.defineProperty(a,"getXfaPageViewport",{enumerable:!0,get:function(){return pt.getXfaPageViewport}}),Object.defineProperty(a,"isDataScheme",{enumerable:!0,get:function(){return pt.isDataScheme}}),Object.defineProperty(a,"isPdfFile",{enumerable:!0,get:function(){return pt.isPdfFile}}),Object.defineProperty(a,"loadScript",{enumerable:!0,get:function(){return pt.loadScript}}),Object.defineProperty(a,"noContextMenu",{enumerable:!0,get:function(){return pt.noContextMenu}}),Object.defineProperty(a,"normalizeUnicode",{enumerable:!0,get:function(){return i.normalizeUnicode}}),Object.defineProperty(a,"renderTextLayer",{enumerable:!0,get:function(){return Lt.renderTextLayer}}),Object.defineProperty(a,"setLayerDimensions",{enumerable:!0,get:function(){return pt.setLayerDimensions}}),Object.defineProperty(a,"shadow",{enumerable:!0,get:function(){return i.shadow}}),Object.defineProperty(a,"updateTextLayer",{enumerable:!0,get:function(){return Lt.updateTextLayer}}),Object.defineProperty(a,"version",{enumerable:!0,get:function(){return _e.version}});var i=__w_pdfjs_require__(1),_e=__w_pdfjs_require__(2),pt=__w_pdfjs_require__(6),Lt=__w_pdfjs_require__(26),Gt=__w_pdfjs_require__(27),Ct=__w_pdfjs_require__(5),Rt=__w_pdfjs_require__(29),o=__w_pdfjs_require__(14),it=__w_pdfjs_require__(32)})(),__webpack_exports__})())})(pdf);var __createBinding=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(a,i,_e,pt){pt===void 0&&(pt=_e);var Lt=Object.getOwnPropertyDescriptor(i,_e);(!Lt||("get"in Lt?!i.__esModule:Lt.writable||Lt.configurable))&&(Lt={enumerable:!0,get:function(){return i[_e]}}),Object.defineProperty(a,pt,Lt)}:function(a,i,_e,pt){pt===void 0&&(pt=_e),a[pt]=i[_e]}),__setModuleDefault=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(a,i){Object.defineProperty(a,"default",{enumerable:!0,value:i})}:function(a,i){a.default=i}),__importStar=commonjsGlobal&&commonjsGlobal.__importStar||function(a){if(a&&a.__esModule)return a;var i={};if(a!=null)for(var _e in a)_e!=="default"&&Object.prototype.hasOwnProperty.call(a,_e)&&__createBinding(i,a,_e);return __setModuleDefault(i,a),i};Object.defineProperty(pdfjs$1,"__esModule",{value:!0});const pdfjsModule=__importStar(pdfExports),pdfjs="default"in pdfjsModule?pdfjsModule.default:pdfjsModule;pdfjs$1.default=pdfjs;var Document$1={};const require$$0=getAugmentedNamespace(jsxRuntime);var cjs$2={};(function(a){var i=commonjsGlobal&&commonjsGlobal.__spreadArray||function(pt,Lt,Gt){if(Gt||arguments.length===2)for(var Ct=0,Rt=Lt.length,o;Ct{(0,tiny_invariant_1$a.default)(this.pdfDocument,"PDF document not loaded."),(0,tiny_invariant_1$a.default)(i,"Destination is not specified."),typeof i=="string"?this.pdfDocument.getDestination(i).then(_e):Array.isArray(i)?_e(i):i.then(_e)}).then(_e=>{(0,tiny_invariant_1$a.default)(Array.isArray(_e),`"${_e}" is not a valid destination array.`);const pt=_e[0];new Promise(Lt=>{(0,tiny_invariant_1$a.default)(this.pdfDocument,"PDF document not loaded."),pt instanceof Object?this.pdfDocument.getPageIndex(pt).then(Gt=>{Lt(Gt)}).catch(()=>{(0,tiny_invariant_1$a.default)(!1,`"${pt}" is not a valid page reference.`)}):typeof pt=="number"?Lt(pt):(0,tiny_invariant_1$a.default)(!1,`"${pt}" is not a valid destination reference.`)}).then(Lt=>{const Gt=Lt+1;(0,tiny_invariant_1$a.default)(this.pdfViewer,"PDF viewer is not initialized."),(0,tiny_invariant_1$a.default)(Gt>=1&&Gt<=this.pagesCount,`"${Gt}" is not a valid page number.`),this.pdfViewer.scrollPageIntoView({dest:_e,pageIndex:Lt,pageNumber:Gt})})})}navigateTo(i){this.goToDestination(i)}goToPage(i){const _e=i-1;(0,tiny_invariant_1$a.default)(this.pdfViewer,"PDF viewer is not initialized."),(0,tiny_invariant_1$a.default)(i>=1&&i<=this.pagesCount,`"${i}" is not a valid page number.`),this.pdfViewer.scrollPageIntoView({pageIndex:_e,pageNumber:i})}addLinkAttributes(i,_e,pt){i.href=_e,i.rel=this.externalLinkRel||DEFAULT_LINK_REL,i.target=pt?"_blank":this.externalLinkTarget||""}getDestinationHash(){return"#"}getAnchorUrl(){return"#"}setHash(){}executeNamedAction(){}cachePageRef(){}isPageVisible(){return!0}isPageCached(){return!0}executeSetOCGState(){}}LinkService$1.default=LinkService;var PasswordResponses$1={};Object.defineProperty(PasswordResponses$1,"__esModule",{value:!0});const PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};PasswordResponses$1.default=PasswordResponses;var utils={};(function(a){var i=commonjsGlobal&&commonjsGlobal.__importDefault||function(tt){return tt&&tt.__esModule?tt:{default:tt}};Object.defineProperty(a,"__esModule",{value:!0}),a.loadFromFile=a.isCancelException=a.makePageCallback=a.cancelRunningTask=a.displayWorkerWarning=a.displayCORSWarning=a.getDevicePixelRatio=a.dataURItoByteString=a.isDataURI=a.isBlob=a.isArrayBuffer=a.isString=a.isProvided=a.isDefined=a.isLocalFileSystem=a.isBrowser=void 0;const _e=i(tinyInvariant_cjs),pt=i(warning_1$8);a.isBrowser=typeof document<"u",a.isLocalFileSystem=a.isBrowser&&window.location.protocol==="file:";function Lt(tt){return typeof tt<"u"}a.isDefined=Lt;function Gt(tt){return Lt(tt)&&tt!==null}a.isProvided=Gt;function Ct(tt){return typeof tt=="string"}a.isString=Ct;function Rt(tt){return tt instanceof ArrayBuffer}a.isArrayBuffer=Rt;function o(tt){return(0,_e.default)(a.isBrowser,"isBlob can only be used in a browser environment"),tt instanceof Blob}a.isBlob=o;function it(tt){return Ct(tt)&&/^data:/.test(tt)}a.isDataURI=it;function xt(tt){(0,_e.default)(it(tt),"Invalid data URI.");const[st="",ot=""]=tt.split(",");return st.split(";").indexOf("base64")!==-1?atob(ot):unescape(ot)}a.dataURItoByteString=xt;function et(){return a.isBrowser&&window.devicePixelRatio||1}a.getDevicePixelRatio=et;const Tt="On Chromium based browsers, you can use --allow-file-access-from-files flag for debugging purposes.";function yt(){(0,pt.default)(!a.isLocalFileSystem,`Loading PDF as base64 strings/URLs may not work on protocols other than HTTP/HTTPS. ${Tt}`)}a.displayCORSWarning=yt;function ut(){(0,pt.default)(!a.isLocalFileSystem,`Loading PDF.js worker may not work on protocols other than HTTP/HTTPS. ${Tt}`)}a.displayWorkerWarning=ut;function ht(tt){tt&&tt.cancel&&tt.cancel()}a.cancelRunningTask=ht;function j(tt,st){return Object.defineProperty(tt,"width",{get(){return this.view[2]*st},configurable:!0}),Object.defineProperty(tt,"height",{get(){return this.view[3]*st},configurable:!0}),Object.defineProperty(tt,"originalWidth",{get(){return this.view[2]},configurable:!0}),Object.defineProperty(tt,"originalHeight",{get(){return this.view[3]},configurable:!0}),tt}a.makePageCallback=j;function _(tt){return tt.name==="RenderingCancelledException"}a.isCancelException=_;function rt(tt){return new Promise((st,ot)=>{const nt=new FileReader;nt.onload=()=>{if(!nt.result)return ot(new Error("Error while reading a file."));st(nt.result)},nt.onerror=vt=>{if(!vt.target)return ot(new Error("Error while reading a file."));const{error:dt}=vt.target;if(!dt)return ot(new Error("Error while reading a file."));switch(dt.code){case dt.NOT_FOUND_ERR:return ot(new Error("Error while reading a file: File not found."));case dt.SECURITY_ERR:return ot(new Error("Error while reading a file: Security error."));case dt.ABORT_ERR:return ot(new Error("Error while reading a file: Aborted."));default:return ot(new Error("Error while reading a file."))}},nt.readAsArrayBuffer(tt)})}a.loadFromFile=rt})(utils);var useResolver$1={};Object.defineProperty(useResolver$1,"__esModule",{value:!0});const react_1$f=reactExports;function reducer(a,i){switch(i.type){case"RESOLVE":return{value:i.value,error:void 0};case"REJECT":return{value:!1,error:i.error};case"RESET":return{value:void 0,error:void 0};default:return a}}function useResolver(){return(0,react_1$f.useReducer)(reducer,{value:void 0,error:void 0})}useResolver$1.default=useResolver;var __awaiter$2=commonjsGlobal&&commonjsGlobal.__awaiter||function(a,i,_e,pt){function Lt(Gt){return Gt instanceof _e?Gt:new _e(function(Ct){Ct(Gt)})}return new(_e||(_e=Promise))(function(Gt,Ct){function Rt(xt){try{it(pt.next(xt))}catch(et){Ct(et)}}function o(xt){try{it(pt.throw(xt))}catch(et){Ct(et)}}function it(xt){xt.done?Gt(xt.value):Lt(xt.value).then(Rt,o)}it((pt=pt.apply(a,i||[])).next())})},__rest$4=commonjsGlobal&&commonjsGlobal.__rest||function(a,i){var _e={};for(var pt in a)Object.prototype.hasOwnProperty.call(a,pt)&&i.indexOf(pt)<0&&(_e[pt]=a[pt]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,pt=Object.getOwnPropertySymbols(a);Lt{switch(i){case PasswordResponses_js_1$1.default.NEED_PASSWORD:{const _e=prompt("Enter the password to open this PDF file.");a(_e);break}case PasswordResponses_js_1$1.default.INCORRECT_PASSWORD:{const _e=prompt("Invalid password. Please try again.");a(_e);break}}};function isParameterObject(a){return typeof a=="object"&&a!==null&&("data"in a||"range"in a||"url"in a)}const Document=(0,react_1$e.forwardRef)(function a(i,_e){var{children:pt,className:Lt,error:Gt="Failed to load PDF file.",externalLinkRel:Ct,externalLinkTarget:Rt,file:o,inputRef:it,imageResourcesPath:xt,loading:et="Loading PDF…",noData:Tt="No PDF file specified.",onItemClick:yt,onLoadError:ut,onLoadProgress:ht,onLoadSuccess:j,onPassword:_=defaultOnPassword,onSourceError:rt,onSourceSuccess:tt,options:st,renderMode:ot,rotate:nt}=i,vt=__rest$4(i,["children","className","error","externalLinkRel","externalLinkTarget","file","inputRef","imageResourcesPath","loading","noData","onItemClick","onLoadError","onLoadProgress","onLoadSuccess","onPassword","onSourceError","onSourceSuccess","options","renderMode","rotate"]);const[dt,bt]=(0,useResolver_js_1$6.default)(),{value:ft,error:at}=dt,[mt,St]=(0,useResolver_js_1$6.default)(),{value:_t,error:Mt}=mt,Et=(0,react_1$e.useRef)(new LinkService_js_1.default),kt=(0,react_1$e.useRef)([]),wt=(0,react_1$e.useRef)(void 0),ct=(0,react_1$e.useRef)(void 0);o&&o!==wt.current&&isParameterObject(o)&&((0,warning_1$7.default)(!(0,dequal_1.dequal)(o,wt.current),`File prop passed to changed, but it's equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "file" prop.`),wt.current=o),st&&st!==ct.current&&((0,warning_1$7.default)(!(0,dequal_1.dequal)(st,ct.current),`Options prop passed to changed, but it's equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "options" prop.`),ct.current=st);const It=(0,react_1$e.useRef)({scrollPageIntoView:Yt=>{const{dest:rr,pageNumber:jt,pageIndex:ar=jt-1}=Yt;if(yt){yt({dest:rr,pageIndex:ar,pageNumber:jt});return}const sr=kt.current[ar];if(sr){sr.scrollIntoView();return}(0,warning_1$7.default)(!1,`An internal link leading to page ${jt} was clicked, but neither was provided with onItemClick nor it was able to find the page within itself. Either provide onItemClick to and handle navigating by yourself or ensure that all pages are rendered within .`)}});(0,react_1$e.useImperativeHandle)(_e,()=>({linkService:Et,pages:kt,viewer:It}),[]);function At(){tt&&tt()}function Ot(){at&&((0,warning_1$7.default)(!1,at.toString()),rt&&rt(at))}function Pt(){bt({type:"RESET"})}(0,react_1$e.useEffect)(Pt,[o,bt]);const zt=(0,react_1$e.useCallback)(()=>__awaiter$2(this,void 0,void 0,function*(){if(!o)return null;if(typeof o=="string")return(0,utils_js_1$a.isDataURI)(o)?{data:(0,utils_js_1$a.dataURItoByteString)(o)}:((0,utils_js_1$a.displayCORSWarning)(),{url:o});if(o instanceof PDFDataRangeTransport)return{range:o};if((0,utils_js_1$a.isArrayBuffer)(o))return{data:o};if(utils_js_1$a.isBrowser&&(0,utils_js_1$a.isBlob)(o))return{data:yield(0,utils_js_1$a.loadFromFile)(o)};if((0,tiny_invariant_1$9.default)(typeof o=="object","Invalid parameter in file, need either Uint8Array, string or a parameter object"),(0,tiny_invariant_1$9.default)(isParameterObject(o),"Invalid parameter object: need either .data, .range or .url"),"url"in o&&typeof o.url=="string"){if((0,utils_js_1$a.isDataURI)(o.url)){const{url:Yt}=o,rr=__rest$4(o,["url"]),jt=(0,utils_js_1$a.dataURItoByteString)(Yt);return Object.assign({data:jt},rr)}(0,utils_js_1$a.displayCORSWarning)()}return o}),[o]);(0,react_1$e.useEffect)(()=>{const Yt=(0,make_cancellable_promise_1$6.default)(zt());return Yt.promise.then(rr=>{bt({type:"RESOLVE",value:rr})}).catch(rr=>{bt({type:"REJECT",error:rr})}),()=>{(0,utils_js_1$a.cancelRunningTask)(Yt)}},[zt,bt]),(0,react_1$e.useEffect)(()=>{if(!(typeof ft>"u")){if(ft===!1){Ot();return}At()}},[ft]);function Dt(){_t&&(j&&j(_t),kt.current=new Array(_t.numPages),Et.current.setDocument(_t))}function Nt(){Mt&&((0,warning_1$7.default)(!1,Mt.toString()),ut&&ut(Mt))}function $t(){St({type:"RESET"})}(0,react_1$e.useEffect)($t,[St,ft]);function Ut(){if(!ft)return;const Yt=Object.assign(Object.assign({},st),{isEvalSupported:!1}),rr=Object.assign(Object.assign({},ft),Yt),jt=pdfjs_js_1$5.default.getDocument(rr);ht&&(jt.onProgress=ht),_&&(jt.onPassword=_);const ar=jt;return ar.promise.then(sr=>{St({type:"RESOLVE",value:sr})}).catch(sr=>{ar.destroyed||St({type:"REJECT",error:sr})}),()=>{ar.destroy()}}(0,react_1$e.useEffect)(Ut,[st,St,ft]),(0,react_1$e.useEffect)(()=>{if(!(typeof _t>"u")){if(_t===!1){Nt();return}Dt()}},[_t]);function Ht(){Et.current.setViewer(It.current),Et.current.setExternalLinkRel(Ct),Et.current.setExternalLinkTarget(Rt)}(0,react_1$e.useEffect)(Ht,[Ct,Rt]);function Vt(Yt,rr){kt.current[Yt]=rr}function Xt(Yt){delete kt.current[Yt]}const qt=(0,react_1$e.useMemo)(()=>({imageResourcesPath:xt,linkService:Et.current,onItemClick:yt,pdf:_t,registerPage:Vt,renderMode:ot,rotate:nt,unregisterPage:Xt}),[xt,yt,_t,ot,nt]),er=(0,react_1$e.useMemo)(()=>(0,make_event_props_1$2.default)(vt,()=>_t),[vt,_t]);function lr(){return(0,jsx_runtime_1$a.jsx)(DocumentContext_js_1$1.default.Provider,{value:qt,children:pt})}function Jt(){return o?_t==null?(0,jsx_runtime_1$a.jsx)(Message_js_1$1.default,{type:"loading",children:typeof et=="function"?et():et}):_t===!1?(0,jsx_runtime_1$a.jsx)(Message_js_1$1.default,{type:"error",children:typeof Gt=="function"?Gt():Gt}):lr():(0,jsx_runtime_1$a.jsx)(Message_js_1$1.default,{type:"no-data",children:typeof Tt=="function"?Tt():Tt})}return(0,jsx_runtime_1$a.jsx)("div",Object.assign({className:(0,clsx_1$5.default)("react-pdf__Document",Lt),ref:it,style:{["--scale-factor"]:"1"}},er,{children:Jt()}))});Document$1.default=Document;var Outline$1={},OutlineContext={};Object.defineProperty(OutlineContext,"__esModule",{value:!0});const react_1$d=reactExports;OutlineContext.default=(0,react_1$d.createContext)(null);var OutlineItem$1={},Ref$1={};Object.defineProperty(Ref$1,"__esModule",{value:!0});class Ref{constructor({num:i,gen:_e}){this.num=i,this.gen=_e}toString(){let i=`${this.num}R`;return this.gen!==0&&(i+=this.gen),i}}Ref$1.default=Ref;var useCachedValue$1={};Object.defineProperty(useCachedValue$1,"__esModule",{value:!0});const react_1$c=reactExports,utils_js_1$9=utils;function useCachedValue(a){const i=(0,react_1$c.useRef)(void 0),_e=i.current;return(0,utils_js_1$9.isDefined)(_e)?()=>_e:()=>{const pt=a();return i.current=pt,pt}}useCachedValue$1.default=useCachedValue;var useDocumentContext$1={},__importDefault$c=commonjsGlobal&&commonjsGlobal.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(useDocumentContext$1,"__esModule",{value:!0});const react_1$b=reactExports,DocumentContext_js_1=__importDefault$c(DocumentContext);function useDocumentContext(){return(0,react_1$b.useContext)(DocumentContext_js_1.default)}useDocumentContext$1.default=useDocumentContext;var useOutlineContext$1={},__importDefault$b=commonjsGlobal&&commonjsGlobal.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(useOutlineContext$1,"__esModule",{value:!0});const react_1$a=reactExports,OutlineContext_js_1$1=__importDefault$b(OutlineContext);function useOutlineContext(){return(0,react_1$a.useContext)(OutlineContext_js_1$1.default)}useOutlineContext$1.default=useOutlineContext;var __awaiter$1=commonjsGlobal&&commonjsGlobal.__awaiter||function(a,i,_e,pt){function Lt(Gt){return Gt instanceof _e?Gt:new _e(function(Ct){Ct(Gt)})}return new(_e||(_e=Promise))(function(Gt,Ct){function Rt(xt){try{it(pt.next(xt))}catch(et){Ct(et)}}function o(xt){try{it(pt.throw(xt))}catch(et){Ct(et)}}function it(xt){xt.done?Gt(xt.value):Lt(xt.value).then(Rt,o)}it((pt=pt.apply(a,i||[])).next())})},__rest$3=commonjsGlobal&&commonjsGlobal.__rest||function(a,i){var _e={};for(var pt in a)Object.prototype.hasOwnProperty.call(a,pt)&&i.indexOf(pt)<0&&(_e[pt]=a[pt]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,pt=Object.getOwnPropertySymbols(a);Lt in a or pass explicit `pdf` prop.");const it=(0,useCachedValue_js_1.default)(()=>typeof Lt.dest=="string"?Rt.getDestination(Lt.dest):Lt.dest),xt=(0,useCachedValue_js_1.default)(()=>__awaiter$1(this,void 0,void 0,function*(){const ut=yield it();if(!ut)throw new Error("Destination not found.");const[ht]=ut;return Rt.getPageIndex(new Ref_js_1.default(ht))})),et=(0,useCachedValue_js_1.default)(()=>__awaiter$1(this,void 0,void 0,function*(){return(yield xt())+1}));function Tt(ut){ut.preventDefault(),(0,tiny_invariant_1$8.default)(Ct||Gt,"Either onItemClick callback or linkService must be defined in order to navigate to an outline item."),Ct?Promise.all([it(),xt(),et()]).then(([ht,j,_])=>{Ct({dest:ht,pageIndex:j,pageNumber:_})}):Gt&&Gt.goToDestination(Lt.dest)}function yt(){if(!Lt.items||!Lt.items.length)return null;const{items:ut}=Lt;return(0,jsx_runtime_1$9.jsx)("ul",{children:ut.map((ht,j)=>(0,jsx_runtime_1$9.jsx)(OutlineItem,Object.assign({item:ht,pdf:Rt},o),typeof ht.dest=="string"?ht.dest:j))})}return(0,jsx_runtime_1$9.jsxs)("li",{children:[(0,jsx_runtime_1$9.jsx)("a",{href:"#",onClick:Tt,children:Lt.title}),yt()]})}OutlineItem$1.default=OutlineItem;var __rest$2=commonjsGlobal&&commonjsGlobal.__rest||function(a,i){var _e={};for(var pt in a)Object.prototype.hasOwnProperty.call(a,pt)&&i.indexOf(pt)<0&&(_e[pt]=a[pt]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,pt=Object.getOwnPropertySymbols(a);Lt in a or pass explicit `pdf` prop.");const[xt,et]=(0,useResolver_js_1$5.default)(),{value:Tt,error:yt}=xt;function ut(){typeof Tt>"u"||Tt===!1||Rt&&Rt(Tt)}function ht(){yt&&((0,warning_1$6.default)(!1,yt.toString()),Ct&&Ct(yt))}function j(){et({type:"RESET"})}(0,react_1$9.useEffect)(j,[et,o]);function _(){if(!o)return;const ot=(0,make_cancellable_promise_1$5.default)(o.getOutline()),nt=ot;return ot.promise.then(vt=>{et({type:"RESOLVE",value:vt})}).catch(vt=>{et({type:"REJECT",error:vt})}),()=>(0,utils_js_1$8.cancelRunningTask)(nt)}(0,react_1$9.useEffect)(_,[et,o]),(0,react_1$9.useEffect)(()=>{if(Tt!==void 0){if(Tt===!1){ht();return}ut()}},[Tt]);const rt=(0,react_1$9.useMemo)(()=>({onItemClick:Gt}),[Gt]),tt=(0,react_1$9.useMemo)(()=>(0,make_event_props_1$1.default)(it,()=>Tt),[it,Tt]);if(!Tt)return null;function st(){return Tt?(0,jsx_runtime_1$8.jsx)("ul",{children:Tt.map((ot,nt)=>(0,jsx_runtime_1$8.jsx)(OutlineItem_js_1.default,{item:ot,pdf:o},typeof ot.dest=="string"?ot.dest:nt))}):null}return(0,jsx_runtime_1$8.jsx)("div",Object.assign({className:(0,clsx_1$4.default)("react-pdf__Outline",pt),ref:Lt},tt,{children:(0,jsx_runtime_1$8.jsx)(OutlineContext_js_1.default.Provider,{value:rt,children:st()})}))}Outline$1.default=Outline;var Page$1={},cjs={};Object.defineProperty(cjs,"__esModule",{value:!0});function mergeRefs(){for(var a=[],i=0;i(0,structTreeUtils_js_1.getAttributes)(i),[i]),pt=(0,react_1$7.useMemo)(()=>!(0,structTreeUtils_js_1.isStructTreeNode)(i)||(0,structTreeUtils_js_1.isStructTreeNodeWithOnlyContentChild)(i)?null:i.children.map((Lt,Gt)=>(0,jsx_runtime_1$7.jsx)(StructTreeItem,{node:Lt},Gt)),[i]);return(0,jsx_runtime_1$7.jsx)("span",Object.assign({className:a},_e,{children:pt}))}StructTreeItem$1.default=StructTreeItem;var usePageContext$1={},__importDefault$8=commonjsGlobal&&commonjsGlobal.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(usePageContext$1,"__esModule",{value:!0});const react_1$6=reactExports,PageContext_js_1$1=__importDefault$8(PageContext);function usePageContext(){return(0,react_1$6.useContext)(PageContext_js_1$1.default)}usePageContext$1.default=usePageContext;var __importDefault$7=commonjsGlobal&&commonjsGlobal.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(StructTree$1,"__esModule",{value:!0});const jsx_runtime_1$6=require$$0,react_1$5=reactExports,make_cancellable_promise_1$4=__importDefault$7(cjs$1),tiny_invariant_1$6=__importDefault$7(tinyInvariant_cjs),warning_1$5=__importDefault$7(warning_1$8),StructTreeItem_js_1=__importDefault$7(StructTreeItem$1),usePageContext_js_1$5=__importDefault$7(usePageContext$1),useResolver_js_1$4=__importDefault$7(useResolver$1),utils_js_1$7=utils;function StructTree(){const a=(0,usePageContext_js_1$5.default)();(0,tiny_invariant_1$6.default)(a,"Unable to find Page context.");const{onGetStructTreeError:i,onGetStructTreeSuccess:_e}=a,[pt,Lt]=(0,useResolver_js_1$4.default)(),{value:Gt,error:Ct}=pt,{customTextRenderer:Rt,page:o}=a;function it(){Gt&&_e&&_e(Gt)}function xt(){Ct&&((0,warning_1$5.default)(!1,Ct.toString()),i&&i(Ct))}function et(){Lt({type:"RESET"})}(0,react_1$5.useEffect)(et,[Lt,o]);function Tt(){if(Rt||!o)return;const yt=(0,make_cancellable_promise_1$4.default)(o.getStructTree()),ut=yt;return yt.promise.then(ht=>{Lt({type:"RESOLVE",value:ht})}).catch(ht=>{Lt({type:"REJECT",error:ht})}),()=>(0,utils_js_1$7.cancelRunningTask)(ut)}return(0,react_1$5.useEffect)(Tt,[Rt,o,Lt]),(0,react_1$5.useEffect)(()=>{if(Gt!==void 0){if(Gt===!1){xt();return}it()}},[Gt]),Gt?(0,jsx_runtime_1$6.jsx)(StructTreeItem_js_1.default,{className:"react-pdf__Page__structTree structTree",node:Gt}):null}StructTree$1.default=StructTree;var __importDefault$6=commonjsGlobal&&commonjsGlobal.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(PageCanvas$1,"__esModule",{value:!0});const jsx_runtime_1$5=require$$0,react_1$4=reactExports,merge_refs_1$1=__importDefault$6(cjs),tiny_invariant_1$5=__importDefault$6(tinyInvariant_cjs),warning_1$4=__importDefault$6(warning_1$8),pdfjs_js_1$4=__importDefault$6(pdfjs$1),StructTree_js_1=__importDefault$6(StructTree$1),usePageContext_js_1$4=__importDefault$6(usePageContext$1),utils_js_1$6=utils,ANNOTATION_MODE=pdfjs_js_1$4.default.AnnotationMode;function PageCanvas(a){const i=(0,usePageContext_js_1$4.default)();(0,tiny_invariant_1$5.default)(i,"Unable to find Page context.");const _e=Object.assign(Object.assign({},i),a),{_className:pt,canvasBackground:Lt,devicePixelRatio:Gt=(0,utils_js_1$6.getDevicePixelRatio)(),onRenderError:Ct,onRenderSuccess:Rt,page:o,renderForms:it,renderTextLayer:xt,rotate:et,scale:Tt}=_e,{canvasRef:yt}=a;(0,tiny_invariant_1$5.default)(o,"Attempted to render page canvas, but no page was specified.");const ut=(0,react_1$4.useRef)(null);function ht(){o&&Rt&&Rt((0,utils_js_1$6.makePageCallback)(o,Tt))}function j(ot){(0,utils_js_1$6.isCancelException)(ot)||((0,warning_1$4.default)(!1,ot.toString()),Ct&&Ct(ot))}const _=(0,react_1$4.useMemo)(()=>o.getViewport({scale:Tt*Gt,rotation:et}),[Gt,o,et,Tt]),rt=(0,react_1$4.useMemo)(()=>o.getViewport({scale:Tt,rotation:et}),[o,et,Tt]);function tt(){if(!o)return;o.cleanup();const{current:ot}=ut;if(!ot)return;ot.width=_.width,ot.height=_.height,ot.style.width=`${Math.floor(rt.width)}px`,ot.style.height=`${Math.floor(rt.height)}px`,ot.style.visibility="hidden";const nt={annotationMode:it?ANNOTATION_MODE.ENABLE_FORMS:ANNOTATION_MODE.ENABLE,canvasContext:ot.getContext("2d",{alpha:!1}),viewport:_};Lt&&(nt.background=Lt);const vt=o.render(nt),dt=vt;return vt.promise.then(()=>{ot.style.visibility="",ht()}).catch(j),()=>(0,utils_js_1$6.cancelRunningTask)(dt)}(0,react_1$4.useEffect)(tt,[Lt,ut,Gt,o,it,_,rt]);const st=(0,react_1$4.useCallback)(()=>{const{current:ot}=ut;ot&&(ot.width=0,ot.height=0)},[ut]);return(0,react_1$4.useEffect)(()=>st,[st]),(0,jsx_runtime_1$5.jsx)("canvas",{className:`${pt}__canvas`,dir:"ltr",ref:(0,merge_refs_1$1.default)(yt,ut),style:{display:"block",userSelect:"none"},children:xt?(0,jsx_runtime_1$5.jsx)(StructTree_js_1.default,{}):null})}PageCanvas$1.default=PageCanvas;var PageSVG$1={},__importDefault$5=commonjsGlobal&&commonjsGlobal.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(PageSVG$1,"__esModule",{value:!0});const jsx_runtime_1$4=require$$0,react_1$3=reactExports,make_cancellable_promise_1$3=__importDefault$5(cjs$1),tiny_invariant_1$4=__importDefault$5(tinyInvariant_cjs),warning_1$3=__importDefault$5(warning_1$8),pdfjs_js_1$3=__importDefault$5(pdfjs$1),usePageContext_js_1$3=__importDefault$5(usePageContext$1),useResolver_js_1$3=__importDefault$5(useResolver$1),utils_js_1$5=utils;function PageSVG(){const a=(0,usePageContext_js_1$3.default)();(0,tiny_invariant_1$4.default)(a,"Unable to find Page context.");const{_className:i,onRenderSuccess:_e,onRenderError:pt,page:Lt,rotate:Gt,scale:Ct}=a;(0,tiny_invariant_1$4.default)(Lt,"Attempted to render page SVG, but no page was specified.");const[Rt,o]=(0,useResolver_js_1$3.default)(),{value:it,error:xt}=Rt;function et(){Lt&&_e&&_e((0,utils_js_1$5.makePageCallback)(Lt,Ct))}function Tt(){xt&&((0,utils_js_1$5.isCancelException)(xt)||((0,warning_1$3.default)(!1,xt.toString()),pt&&pt(xt)))}const yt=(0,react_1$3.useMemo)(()=>Lt.getViewport({scale:Ct,rotation:Gt}),[Lt,Gt,Ct]);function ut(){o({type:"RESET"})}(0,react_1$3.useEffect)(ut,[Lt,o,yt]);function ht(){if(!Lt)return;const tt=(0,make_cancellable_promise_1$3.default)(Lt.getOperatorList());return tt.promise.then(st=>{new pdfjs_js_1$3.default.SVGGraphics(Lt.commonObjs,Lt.objs).getSVG(st,yt).then(nt=>{if(!(nt instanceof SVGElement))throw new Error("getSVG returned unexpected result.");o({type:"RESOLVE",value:nt})}).catch(nt=>{o({type:"REJECT",error:nt})})}).catch(st=>{o({type:"REJECT",error:st})}),()=>(0,utils_js_1$5.cancelRunningTask)(tt)}(0,react_1$3.useEffect)(ht,[Lt,o,yt]),(0,react_1$3.useEffect)(()=>{if(it!==void 0){if(it===!1){Tt();return}et()}},[it]);function j(tt){if(!tt||!it)return;tt.firstElementChild||tt.appendChild(it);const{width:st,height:ot}=yt;it.setAttribute("width",`${st}`),it.setAttribute("height",`${ot}`)}const{width:_,height:rt}=yt;return(0,jsx_runtime_1$4.jsx)("div",{className:`${i}__svg`,ref:tt=>j(tt),style:{display:"block",backgroundColor:"white",overflow:"hidden",width:_,height:rt,userSelect:"none"}})}PageSVG$1.default=PageSVG;var TextLayer$1={},__importDefault$4=commonjsGlobal&&commonjsGlobal.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(TextLayer$1,"__esModule",{value:!0});const jsx_runtime_1$3=require$$0,react_1$2=reactExports,make_cancellable_promise_1$2=__importDefault$4(cjs$1),clsx_1$3=__importDefault$4(clsxExports),tiny_invariant_1$3=__importDefault$4(tinyInvariant_cjs),warning_1$2=__importDefault$4(warning_1$8),pdfjs_js_1$2=__importDefault$4(pdfjs$1),usePageContext_js_1$2=__importDefault$4(usePageContext$1),useResolver_js_1$2=__importDefault$4(useResolver$1),utils_js_1$4=utils;function isTextItem(a){return"str"in a}function TextLayer(){const a=(0,usePageContext_js_1$2.default)();(0,tiny_invariant_1$3.default)(a,"Unable to find Page context.");const{customTextRenderer:i,onGetTextError:_e,onGetTextSuccess:pt,onRenderTextLayerError:Lt,onRenderTextLayerSuccess:Gt,page:Ct,pageIndex:Rt,pageNumber:o,rotate:it,scale:xt}=a;(0,tiny_invariant_1$3.default)(Ct,"Attempted to load page text content, but no page was specified.");const[et,Tt]=(0,useResolver_js_1$2.default)(),{value:yt,error:ut}=et,ht=(0,react_1$2.useRef)(null),j=(0,react_1$2.useRef)(void 0);(0,warning_1$2.default)(parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-text-layer"),10)===1,"TextLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-text-layer");function _(){yt&&pt&&pt(yt)}function rt(){ut&&((0,warning_1$2.default)(!1,ut.toString()),_e&&_e(ut))}function tt(){Tt({type:"RESET"})}(0,react_1$2.useEffect)(tt,[Ct,Tt]);function st(){if(!Ct)return;const at=(0,make_cancellable_promise_1$2.default)(Ct.getTextContent()),mt=at;return at.promise.then(St=>{Tt({type:"RESOLVE",value:St})}).catch(St=>{Tt({type:"REJECT",error:St})}),()=>(0,utils_js_1$4.cancelRunningTask)(mt)}(0,react_1$2.useEffect)(st,[Ct,Tt]),(0,react_1$2.useEffect)(()=>{if(yt!==void 0){if(yt===!1){rt();return}_()}},[yt]);const ot=(0,react_1$2.useCallback)(()=>{Gt&&Gt()},[Gt]),nt=(0,react_1$2.useCallback)(at=>{(0,warning_1$2.default)(!1,at.toString()),Lt&&Lt(at)},[Lt]);function vt(){const at=j.current;at&&at.classList.add("active")}function dt(){const at=j.current;at&&at.classList.remove("active")}const bt=(0,react_1$2.useMemo)(()=>Ct.getViewport({scale:xt,rotation:it}),[Ct,it,xt]);function ft(){if(!Ct||!yt)return;const{current:at}=ht;if(!at)return;at.innerHTML="";const mt=Ct.streamTextContent({includeMarkedContent:!0}),St={container:at,textContentSource:mt,viewport:bt},_t=pdfjs_js_1$2.default.renderTextLayer(St),Mt=_t;return _t.promise.then(()=>{const Et=document.createElement("div");Et.className="endOfContent",at.append(Et),j.current=Et;const kt=at.querySelectorAll('[role="presentation"]');if(i){let wt=0;yt.items.forEach((ct,It)=>{if(!isTextItem(ct))return;const At=kt[wt];if(!At)return;const Ot=i(Object.assign({pageIndex:Rt,pageNumber:o,itemIndex:It},ct));At.innerHTML=Ot,wt+=ct.str&&ct.hasEOL?2:1})}ot()}).catch(nt),()=>(0,utils_js_1$4.cancelRunningTask)(Mt)}return(0,react_1$2.useLayoutEffect)(ft,[i,nt,ot,Ct,Rt,o,yt,bt]),(0,jsx_runtime_1$3.jsx)("div",{className:(0,clsx_1$3.default)("react-pdf__Page__textContent","textLayer"),onMouseUp:dt,onMouseDown:vt,ref:ht})}TextLayer$1.default=TextLayer;var AnnotationLayer$1={},__importDefault$3=commonjsGlobal&&commonjsGlobal.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(AnnotationLayer$1,"__esModule",{value:!0});const jsx_runtime_1$2=require$$0,react_1$1=reactExports,make_cancellable_promise_1$1=__importDefault$3(cjs$1),clsx_1$2=__importDefault$3(clsxExports),tiny_invariant_1$2=__importDefault$3(tinyInvariant_cjs),warning_1$1=__importDefault$3(warning_1$8),pdfjs_js_1$1=__importDefault$3(pdfjs$1),useDocumentContext_js_1$3=__importDefault$3(useDocumentContext$1),usePageContext_js_1$1=__importDefault$3(usePageContext$1),useResolver_js_1$1=__importDefault$3(useResolver$1),utils_js_1$3=utils;function AnnotationLayer(){const a=(0,useDocumentContext_js_1$3.default)(),i=(0,usePageContext_js_1$1.default)();(0,tiny_invariant_1$2.default)(i,"Unable to find Page context.");const _e=Object.assign(Object.assign({},a),i),{imageResourcesPath:pt,linkService:Lt,onGetAnnotationsError:Gt,onGetAnnotationsSuccess:Ct,onRenderAnnotationLayerError:Rt,onRenderAnnotationLayerSuccess:o,page:it,pdf:xt,renderForms:et,rotate:Tt,scale:yt=1}=_e;(0,tiny_invariant_1$2.default)(xt,"Attempted to load page annotations, but no document was specified. Wrap in a or pass explicit `pdf` prop."),(0,tiny_invariant_1$2.default)(it,"Attempted to load page annotations, but no page was specified."),(0,tiny_invariant_1$2.default)(Lt,"Attempted to load page annotations, but no linkService was specified.");const[ut,ht]=(0,useResolver_js_1$1.default)(),{value:j,error:_}=ut,rt=(0,react_1$1.useRef)(null);(0,warning_1$1.default)(parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-annotation-layer"),10)===1,"AnnotationLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-annotations");function tt(){j&&Ct&&Ct(j)}function st(){_&&((0,warning_1$1.default)(!1,_.toString()),Gt&&Gt(_))}function ot(){ht({type:"RESET"})}(0,react_1$1.useEffect)(ot,[ht,it]);function nt(){if(!it)return;const at=(0,make_cancellable_promise_1$1.default)(it.getAnnotations()),mt=at;return at.promise.then(St=>{ht({type:"RESOLVE",value:St})}).catch(St=>{ht({type:"REJECT",error:St})}),()=>{(0,utils_js_1$3.cancelRunningTask)(mt)}}(0,react_1$1.useEffect)(nt,[ht,it,et]),(0,react_1$1.useEffect)(()=>{if(j!==void 0){if(j===!1){st();return}tt()}},[j]);function vt(){o&&o()}function dt(at){(0,warning_1$1.default)(!1,`${at}`),Rt&&Rt(at)}const bt=(0,react_1$1.useMemo)(()=>it.getViewport({scale:yt,rotation:Tt}),[it,Tt,yt]);function ft(){if(!xt||!it||!Lt||!j)return;const{current:at}=rt;if(!at)return;const mt=bt.clone({dontFlip:!0}),St={accessibilityManager:null,annotationCanvasMap:null,div:at,l10n:null,page:it,viewport:mt},_t={annotations:j,annotationStorage:xt.annotationStorage,div:at,downloadManager:null,imageResourcesPath:pt,linkService:Lt,page:it,renderForms:et,viewport:mt};at.innerHTML="";try{new pdfjs_js_1$1.default.AnnotationLayer(St).render(_t),vt()}catch(Mt){dt(Mt)}return()=>{}}return(0,react_1$1.useEffect)(ft,[j,pt,Lt,it,et,bt]),(0,jsx_runtime_1$2.jsx)("div",{className:(0,clsx_1$2.default)("react-pdf__Page__annotations","annotationLayer"),ref:rt})}AnnotationLayer$1.default=AnnotationLayer;var __rest$1=commonjsGlobal&&commonjsGlobal.__rest||function(a,i){var _e={};for(var pt in a)Object.prototype.hasOwnProperty.call(a,pt)&&i.indexOf(pt)<0&&(_e[pt]=a[pt]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,pt=Object.getOwnPropertySymbols(a);Lt in a or pass explicit `pdf` prop.");const er=(0,utils_js_1$2.isProvided)(Et)?Et-1:Mt??null,lr=Et??((0,utils_js_1$2.isProvided)(Mt)?Mt+1:null),Jt=Pt??(Vt?Vt.rotate:null),Yt=(0,react_1.useMemo)(()=>{if(!Vt)return null;let _r=1;const Er=zt??defaultScale;if(Nt||yt){const Rr=Vt.getViewport({scale:1,rotation:Jt});Nt?_r=Nt/Rr.width:yt&&(_r=yt/Rr.height)}return Er*_r},[yt,Vt,Jt,zt,Nt]);function rr(){return()=>{(0,utils_js_1$2.isProvided)(er)&&Lt&&Dt&&Dt(er)}}(0,react_1.useEffect)(rr,[Lt,kt,er,Dt]);function jt(){if(dt){if(!Vt||!Yt)return;dt((0,utils_js_1$2.makePageCallback)(Vt,Yt))}if(Lt&&wt){if(!(0,utils_js_1$2.isProvided)(er)||!qt.current)return;wt(er,qt.current)}}function ar(){Xt&&((0,warning_1.default)(!1,Xt.toString()),vt&&vt(Xt))}function sr(){Ht({type:"RESET"})}(0,react_1.useEffect)(sr,[Ht,kt,er]);function Zt(){if(!kt||!lr)return;const _r=(0,make_cancellable_promise_1.default)(kt.getPage(lr)),Er=_r;return _r.promise.then(Rr=>{Ht({type:"RESOLVE",value:Rr})}).catch(Rr=>{Ht({type:"REJECT",error:Rr})}),()=>(0,utils_js_1$2.cancelRunningTask)(Er)}(0,react_1.useEffect)(Zt,[Ht,kt,er,lr,wt]),(0,react_1.useEffect)(()=>{if(Vt!==void 0){if(Vt===!1){ar();return}jt()}},[Vt,Yt]);const Kt=(0,react_1.useMemo)(()=>Vt&&(0,utils_js_1$2.isProvided)(er)&&lr&&(0,utils_js_1$2.isProvided)(Jt)&&(0,utils_js_1$2.isProvided)(Yt)?{_className:pt,canvasBackground:Gt,customTextRenderer:xt,devicePixelRatio:et,onGetAnnotationsError:_,onGetAnnotationsSuccess:rt,onGetStructTreeError:tt,onGetStructTreeSuccess:st,onGetTextError:ot,onGetTextSuccess:nt,onRenderAnnotationLayerError:bt,onRenderAnnotationLayerSuccess:ft,onRenderError:at,onRenderSuccess:mt,onRenderTextLayerError:St,onRenderTextLayerSuccess:_t,page:Vt,pageIndex:er,pageNumber:lr,renderForms:It,renderTextLayer:Ot,rotate:Jt,scale:Yt}:null,[pt,Gt,xt,et,_,rt,tt,st,ot,nt,bt,ft,at,mt,St,_t,Vt,er,lr,It,Ot,Jt,Yt]),or=(0,react_1.useMemo)(()=>(0,make_event_props_1.default)($t,()=>Vt&&(Yt?(0,utils_js_1$2.makePageCallback)(Vt,Yt):void 0)),[$t,Vt,Yt]),tr=`${er}@${Yt}/${Jt}`,cr=`${er}/${Jt}`;function mr(){switch(At){case"custom":return(0,tiny_invariant_1$1.default)(it,'renderMode was set to "custom", but no customRenderer was passed.'),(0,jsx_runtime_1$1.jsx)(it,{},`${tr}_custom`);case"none":return null;case"svg":return(0,jsx_runtime_1$1.jsx)(PageSVG_js_1.default,{},`${cr}_svg`);case"canvas":default:return(0,jsx_runtime_1$1.jsx)(PageCanvas_js_1.default,{canvasRef:Ct},`${tr}_canvas`)}}function Ar(){return Ot?(0,jsx_runtime_1$1.jsx)(TextLayer_js_1.default,{},`${tr}_text`):null}function br(){return ct?(0,jsx_runtime_1$1.jsx)(AnnotationLayer_js_1.default,{},`${tr}_annotations`):null}function Ir(){return(0,jsx_runtime_1$1.jsxs)(PageContext_js_1.default.Provider,{value:Kt,children:[mr(),Ar(),br(),Rt]})}function Tr(){return lr?kt===null||Vt===void 0||Vt===null?(0,jsx_runtime_1$1.jsx)(Message_js_1.default,{type:"loading",children:typeof ht=="function"?ht():ht}):kt===!1||Vt===!1?(0,jsx_runtime_1$1.jsx)(Message_js_1.default,{type:"error",children:typeof Tt=="function"?Tt():Tt}):Ir():(0,jsx_runtime_1$1.jsx)(Message_js_1.default,{type:"no-data",children:typeof j=="function"?j():j})}return(0,jsx_runtime_1$1.jsx)("div",Object.assign({className:(0,clsx_1$1.default)(pt,o),"data-page-number":lr,ref:(0,merge_refs_1.default)(ut,qt),style:{["--scale-factor"]:`${Yt}`,backgroundColor:Gt||"white",position:"relative",minWidth:"min-content",minHeight:"min-content"}},or,{children:Tr()}))}Page$1.default=Page;var Thumbnail$1={},__rest=commonjsGlobal&&commonjsGlobal.__rest||function(a,i){var _e={};for(var pt in a)Object.prototype.hasOwnProperty.call(a,pt)&&i.indexOf(pt)<0&&(_e[pt]=a[pt]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,pt=Object.getOwnPropertySymbols(a);Lt in a or pass explicit `pdf` prop.");const it=(0,utils_js_1$1.isProvided)(Rt)?Rt-1:Ct??null,xt=Rt??((0,utils_js_1$1.isProvided)(Ct)?Ct+1:null);function et(yt){yt.preventDefault(),!(!(0,utils_js_1$1.isProvided)(it)||!xt)&&((0,tiny_invariant_1.default)(Gt||Lt,"Either onItemClick callback or linkService must be defined in order to navigate to an outline item."),Gt?Gt({pageIndex:it,pageNumber:xt}):Lt&&Lt.goToPage(xt))}const Tt=__rest(a,["className","onItemClick"]);return(0,jsx_runtime_1.jsx)("a",{className:(0,clsx_1.default)("react-pdf__Thumbnail",pt),href:xt?"#":void 0,onClick:et,children:(0,jsx_runtime_1.jsx)(Page_js_1$1.default,Object.assign({},Tt,{_className:"react-pdf__Thumbnail__page",_enableRegisterUnregisterPage:!1,renderAnnotationLayer:!1,renderTextLayer:!1}))})}Thumbnail$1.default=Thumbnail;var __importDefault=commonjsGlobal&&commonjsGlobal.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(cjs$3,"__esModule",{value:!0});cjs$3.PasswordResponses=cjs$3.usePageContext=cjs$3.useOutlineContext=cjs$3.useDocumentContext=cjs$3.Thumbnail=cjs$3.Page=cjs$3.Outline=cjs$3.Document=cjs$3.pdfjs=void 0;const pdfjs_js_1=__importDefault(pdfjs$1);cjs$3.pdfjs=pdfjs_js_1.default;const Document_js_1=__importDefault(Document$1);cjs$3.Document=Document_js_1.default;const Outline_js_1=__importDefault(Outline$1);cjs$3.Outline=Outline_js_1.default;const Page_js_1=__importDefault(Page$1);cjs$3.Page=Page_js_1.default;const Thumbnail_js_1=__importDefault(Thumbnail$1);cjs$3.Thumbnail=Thumbnail_js_1.default;const useDocumentContext_js_1=__importDefault(useDocumentContext$1);cjs$3.useDocumentContext=useDocumentContext_js_1.default;const useOutlineContext_js_1=__importDefault(useOutlineContext$1);cjs$3.useOutlineContext=useOutlineContext_js_1.default;const usePageContext_js_1=__importDefault(usePageContext$1);cjs$3.usePageContext=usePageContext_js_1.default;const PasswordResponses_js_1=__importDefault(PasswordResponses$1);cjs$3.PasswordResponses=PasswordResponses_js_1.default;const utils_js_1=utils;(0,utils_js_1.displayWorkerWarning)();pdfjs_js_1.default.GlobalWorkerOptions.workerSrc="pdf.worker.js";var __awaiter=commonjsGlobal&&commonjsGlobal.__awaiter||function(a,i,_e,pt){function Lt(Gt){return Gt instanceof _e?Gt:new _e(function(Ct){Ct(Gt)})}return new(_e||(_e=Promise))(function(Gt,Ct){function Rt(xt){try{it(pt.next(xt))}catch(et){Ct(et)}}function o(xt){try{it(pt.throw(xt))}catch(et){Ct(et)}}function it(xt){xt.done?Gt(xt.value):Lt(xt.value).then(Rt,o)}it((pt=pt.apply(a,i||[])).next())})};Object.defineProperty(dist$1,"__esModule",{value:!0});const react_pdf_1=cjs$3;react_pdf_1.pdfjs.GlobalWorkerOptions.workerSrc=`//cdnjs.cloudflare.com/ajax/libs/pdf.js/${react_pdf_1.pdfjs.version}/pdf.worker.js`;const pdfToText=a=>__awaiter(void 0,void 0,void 0,function*(){const i=URL.createObjectURL(a),_e=react_pdf_1.pdfjs.getDocument(i);let pt="",Lt=!1;try{const Gt=yield _e.promise,Ct=Gt.numPages;for(let Rt=1;Rt<=Ct;Rt++){const xt=(yield(yield Gt.getPage(Rt)).getTextContent()).items.map(et=>"str"in et?et.str:"").join(" ");pt+=xt}}catch(Gt){Lt=!0,console.error("Error extracting text from PDF:",Gt)}if(URL.revokeObjectURL(i),_e.destroy(),!Lt)return pt});var _default=dist$1.default=pdfToText;const Send="/assets/Send-d0601aaa.svg",questionInputContainer="_questionInputContainer_40emw_1",questionInputTextArea="_questionInputTextArea_40emw_15",questionInputSendButtonContainer="_questionInputSendButtonContainer_40emw_24",questionInputSendButton="_questionInputSendButton_40emw_24",questionInputSendButtonDisabled="_questionInputSendButtonDisabled_40emw_34",questionInputBottomBorder="_questionInputBottomBorder_40emw_42",questionInputOptionsButton="_questionInputOptionsButton_40emw_53",fileInput="_fileInput_40emw_65",errorText="_errorText_40emw_90",textAreaOverrides="_textAreaOverrides_40emw_104",questionInputChatButtons="_questionInputChatButtons_40emw_108",styles$3={questionInputContainer,questionInputTextArea,questionInputSendButtonContainer,questionInputSendButton,questionInputSendButtonDisabled,questionInputBottomBorder,questionInputOptionsButton,fileInput,errorText,textAreaOverrides,questionInputChatButtons};function logEvent(a,i){window.dataLayer!=null?window.dataLayer.push({event:a,...i}):console.log("In production, the following event would be logged to Google Analytics:",{eventName:a,extraParameters:i})}const InfoIcon="/assets/info-2e1a5c0f.svg",MAX_INPUT_LENGTH=1048576;function isValidLength(a){return a.length<=MAX_INPUT_LENGTH}const QuestionInput=({onSend:a,disabled:i,placeholder:_e,clearOnSend:pt,conversationId:Lt})=>{const[Gt,Ct]=reactExports.useState(""),[Rt,o]=reactExports.useState(null),it=reactExports.useRef(null),[xt,et]=reactExports.useState(""),Tt=()=>{if(i||!Gt.trim())return;const _=rt=>{var tt,st;if(rt!=null&&rt.type===FileType.Pdf&&!isValidLength(rt.contents)){et(`File contents cannot exceed ${MAX_INPUT_LENGTH} characters. Please try a smaller file.`),o(null),(tt=it==null?void 0:it.current)!=null&&tt.value&&(it.current.value=""),logEvent("submit_prompt_client_error_file_length",{object_type:rt.extension,object_length:rt.contents.length,object_size:rt.size});return}if(!isValidLength(Gt)){et(`Prompt cannot exceed ${MAX_INPUT_LENGTH} characters. Please try a smaller prompt.`),logEvent("submit_prompt_client_error_prompt_length",{input_length:Gt.length});return}Lt?a(Gt,Lt,rt):a(Gt,void 0,rt),pt&&(Ct(""),o(null),et(""),(st=it==null?void 0:it.current)!=null&&st.value&&(it.current.value=""))};if(Rt)if(Rt.type==="application/pdf")_default(Rt).then(rt=>{rt.length===0?et("Could not read text from PDF. Please try uploading a different file."):_({name:Rt.name,type:FileType.Pdf,contents:rt,extension:Rt.type,size:Rt.size})}).catch(rt=>{et("Failed to upload PDF. Please try uploading a different file.")});else{const rt=new FileReader;rt.onloadend=()=>{_({name:Rt.name,type:FileType.Image,contents:rt.result,extension:Rt.type,size:Rt.size})},rt.readAsDataURL(Rt)}else _()},yt=_=>{var rt;_.key==="Enter"&&!_.shiftKey&&((rt=_.nativeEvent)==null?void 0:rt.isComposing)!==!0&&(_.preventDefault(),Tt())},ut=(_,rt)=>{Ct(rt||"")},ht=_=>{var tt,st,ot;const rt=(tt=_.target.files)==null?void 0:tt[0];rt&&(ACCEPTED_FILE_TYPES.includes(rt.type)?rt.size>5*1024*1024?(et("File size of attachments cannot exceed 5 MB. Please try a smaller file."),o(null),(ot=it==null?void 0:it.current)!=null&&ot.value&&(it.current.value=""),logEvent("submit_prompt_client_error_file_size",{object_size:rt.size,object_type:rt.type})):(et(""),o(rt)):(et("Only the following file types are supported: .pdf, .jpeg, .png, .gif, .bmp, .tiff. Please try a different file."),o(null),(st=it==null?void 0:it.current)!=null&&st.value&&(it.current.value=""),logEvent("submit_prompt_client_error_file_type",{object_type:rt.type})))},j=i||!Gt.trim();return jsxs(Stack,{horizontal:!1,className:styles$3.questionInputContainer,wrap:!0,children:[xt&&jsxs("div",{className:styles$3.errorText,children:[jsx("img",{src:InfoIcon,alt:""}),xt]}),jsx(TextField,{className:styles$3.questionInputTextArea,placeholder:_e,multiline:!0,resizable:!1,borderless:!0,value:Gt,onChange:ut,onKeyDown:yt,ariaLabel:"Type a question",inputClassName:styles$3.textAreaOverrides}),jsxs("div",{className:styles$3.questionInputChatButtons,children:[jsx("div",{children:jsx("input",{ref:it,type:"file",accept:ACCEPTED_FILE_TYPES.join(","),onChange:ht,disabled:i,className:styles$3.fileInput,"aria-label":"Upload file"})}),jsx("div",{className:styles$3.questionInputSendButtonContainer,role:"button",tabIndex:0,"aria-label":"Ask question button",onClick:Tt,onKeyDown:_=>_.key==="Enter"||_.key===" "?Tt():null,children:j?jsx(SendRegular,{className:styles$3.questionInputSendButtonDisabled}):jsx("img",{src:Send,className:styles$3.questionInputSendButton,alt:"Send Button"})})]}),jsx("div",{className:styles$3.questionInputBottomBorder})]})},container="_container_1epg5_1",listContainer="_listContainer_1epg5_6",itemCell="_itemCell_1epg5_11",itemButton="_itemButton_1epg5_28",chatGroup="_chatGroup_1epg5_45",spinnerContainer="_spinnerContainer_1epg5_50",chatList="_chatList_1epg5_57",chatMonth="_chatMonth_1epg5_61",chatTitle="_chatTitle_1epg5_68",styles$2={container,listContainer,itemCell,itemButton,chatGroup,spinnerContainer,chatList,chatMonth,chatTitle},formatMonth=a=>{const _e=new Date().getFullYear(),[pt,Lt]=a.split(" ");return parseInt(Lt)===_e?pt:a},ChatHistoryListItemCell=({item:a,onSelect:i})=>{var Mt,Et,kt;const[_e,pt]=reactExports.useState(!1),[Lt,Gt]=reactExports.useState(!1),[Ct,Rt]=reactExports.useState(""),[o,{toggle:it}]=useBoolean(!0),[xt,et]=reactExports.useState(!1),[Tt,yt]=reactExports.useState(!1),[ut,ht]=reactExports.useState(void 0),[j,_]=reactExports.useState(!1),rt=reactExports.useRef(null),tt=reactExports.useContext(AppStateContext),st=(a==null?void 0:a.id)===((Mt=tt==null?void 0:tt.state.currentChat)==null?void 0:Mt.id),ot={type:DialogType.close,title:"Are you sure you want to delete this item?",closeButtonAriaLabel:"Close",subText:"The history of this chat session will permanently removed."},nt={titleAriaId:"labelId",subtitleAriaId:"subTextId",isBlocking:!0,styles:{main:{maxWidth:450}}};if(!a)return null;reactExports.useEffect(()=>{j&&rt.current&&(rt.current.focus(),_(!1))},[j]),reactExports.useEffect(()=>{var wt;((wt=tt==null?void 0:tt.state.currentChat)==null?void 0:wt.id)!==(a==null?void 0:a.id)&&(Gt(!1),Rt(""))},[(Et=tt==null?void 0:tt.state.currentChat)==null?void 0:Et.id,a==null?void 0:a.id]);const vt=async()=>{(await historyDelete(a.id)).ok?tt==null||tt.dispatch({type:"DELETE_CHAT_ENTRY",payload:a.id}):(et(!0),setTimeout(()=>{et(!1)},5e3)),it()},dt=()=>{Gt(!0),_(!0),Rt(a==null?void 0:a.title)},bt=()=>{i(a),tt==null||tt.dispatch({type:"UPDATE_CURRENT_CHAT",payload:a})},ft=((kt=a==null?void 0:a.title)==null?void 0:kt.length)>28?`${a.title.substring(0,28)} ...`:a.title,at=async wt=>{if(wt.preventDefault(),ut||Tt)return;if(Ct==a.title){ht("Error: Enter a new title to proceed."),setTimeout(()=>{ht(void 0),_(!0),rt.current&&rt.current.focus()},5e3);return}yt(!0),(await historyRename(a.id,Ct)).ok?(yt(!1),Gt(!1),tt==null||tt.dispatch({type:"UPDATE_CHAT_TITLE",payload:{...a,title:Ct}}),Rt("")):(ht("Error: could not rename item"),setTimeout(()=>{_(!0),ht(void 0),rt.current&&rt.current.focus()},5e3))},mt=wt=>{Rt(wt.target.value)},St=()=>{Gt(!1),Rt("")},_t=wt=>{if(wt.key==="Enter")return at(wt);if(wt.key==="Escape"){St();return}};return jsxs(Stack,{tabIndex:0,"aria-label":"chat history item",className:styles$2.itemCell,onClick:()=>bt(),onKeyDown:wt=>wt.key==="Enter"||wt.key===" "?bt():null,verticalAlign:"center",onMouseEnter:()=>pt(!0),onMouseLeave:()=>pt(!1),styles:{root:{backgroundColor:st?"#e6e6e6":"transparent"}},children:[Lt?jsx(Fragment,{children:jsx(Stack.Item,{style:{width:"100%"},children:jsxs("form",{"aria-label":"edit title form",onSubmit:wt=>at(wt),style:{padding:"5px 0px"},children:[jsxs(Stack,{horizontal:!0,verticalAlign:"start",children:[jsx(Stack.Item,{children:jsx(TextField,{componentRef:rt,autoFocus:j,value:Ct,placeholder:a.title,onChange:mt,onKeyDown:_t,disabled:!!ut})}),Ct&&jsx(Stack.Item,{children:jsxs(Stack,{"aria-label":"action button group",horizontal:!0,verticalAlign:"center",children:[jsx(IconButton,{role:"button",disabled:ut!==void 0,onKeyDown:wt=>wt.key===" "||wt.key==="Enter"?at(wt):null,onClick:wt=>at(wt),"aria-label":"confirm new title",iconProps:{iconName:"CheckMark"},styles:{root:{color:"green",marginLeft:"5px"}}}),jsx(IconButton,{role:"button",disabled:ut!==void 0,onKeyDown:wt=>wt.key===" "||wt.key==="Enter"?St():null,onClick:()=>St(),"aria-label":"cancel edit title",iconProps:{iconName:"Cancel"},styles:{root:{color:"red",marginLeft:"5px"}}})]})})]}),ut&&jsx(Text,{role:"alert","aria-label":ut,style:{fontSize:12,fontWeight:400,color:"rgb(164,38,44)"},children:ut})]})})}):jsx(Fragment,{children:jsxs(Stack,{horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[jsx("div",{className:styles$2.chatTitle,children:ft}),(st||_e)&&jsxs(Stack,{horizontal:!0,horizontalAlign:"end",children:[jsx(IconButton,{className:styles$2.itemButton,iconProps:{iconName:"Delete"},title:"Delete",onClick:it,onKeyDown:wt=>wt.key===" "?it():null}),jsx(IconButton,{className:styles$2.itemButton,iconProps:{iconName:"Edit"},title:"Edit",onClick:dt,onKeyDown:wt=>wt.key===" "?dt():null})]})]})}),xt&&jsx(Text,{styles:{root:{color:"red",marginTop:5,fontSize:14}},children:"Error: could not delete item"}),jsx(Dialog,{hidden:o,onDismiss:it,dialogContentProps:ot,modalProps:nt,children:jsxs(DialogFooter,{children:[jsx(PrimaryButton,{onClick:vt,text:"Delete"}),jsx(DefaultButton,{onClick:it,text:"Cancel"})]})})]},a.id)},ChatHistoryListItemGroups=({groupedChatHistory:a})=>{const i=reactExports.useContext(AppStateContext),_e=reactExports.useRef(null),[,pt]=reactExports.useState(null),[Lt,Gt]=reactExports.useState(25),[Ct,Rt]=reactExports.useState(0),[o,it]=reactExports.useState(!1),xt=reactExports.useRef(!0),et=ut=>{ut&&pt(ut)},Tt=ut=>jsx(ChatHistoryListItemCell,{item:ut,onSelect:()=>et(ut)});reactExports.useEffect(()=>{if(xt.current){xt.current=!1;return}yt(),Gt(ut=>ut+=25)},[Ct]);const yt=async()=>{const ut=i==null?void 0:i.state.chatHistory;it(!0),await historyList(Lt).then(ht=>{const j=ut&&ht&&ut.concat(...ht);return ht?i==null||i.dispatch({type:"FETCH_CHAT_HISTORY",payload:j||ht}):i==null||i.dispatch({type:"FETCH_CHAT_HISTORY",payload:null}),it(!1),ht})};return reactExports.useEffect(()=>{const ut=new IntersectionObserver(ht=>{ht[0].isIntersecting&&Rt(j=>j+=1)},{threshold:1});return _e.current&&ut.observe(_e.current),()=>{_e.current&&ut.unobserve(_e.current)}},[_e]),jsxs("div",{className:styles$2.listContainer,"data-is-scrollable":!0,children:[a.map(ut=>ut.entries.length>0&&jsxs(Stack,{horizontalAlign:"start",verticalAlign:"center",className:styles$2.chatGroup,"aria-label":`chat history group: ${ut.month}`,children:[jsx(Stack,{"aria-label":ut.month,className:styles$2.chatMonth,children:formatMonth(ut.month)}),jsx(List,{"aria-label":"chat history list",items:ut.entries,onRenderCell:Tt,className:styles$2.chatList}),jsx("div",{ref:_e}),jsx(Separator,{styles:{root:{width:"100%",position:"relative","::before":{backgroundColor:"#d6d6d6"}}}})]},ut.month)),o&&jsx("div",{className:styles$2.spinnerContainer,children:jsx(Spinner,{size:SpinnerSize.small,"aria-label":"loading more chat history",className:styles$2.spinner})})]})},groupByMonth=a=>{const i=[{month:"Recent",entries:[]}],_e=new Date;return a.forEach(pt=>{const Lt=new Date(pt.date),Gt=(_e.getTime()-Lt.getTime())/(1e3*60*60*24),Ct=Lt.toLocaleString("default",{month:"long",year:"numeric"}),Rt=i.find(o=>o.month===Ct);Gt<=7?i[0].entries.push(pt):Rt?Rt.entries.push(pt):i.push({month:Ct,entries:[pt]})}),i.sort((pt,Lt)=>{if(pt.entries.length===0&&Lt.entries.length===0)return 0;if(pt.entries.length===0)return 1;if(Lt.entries.length===0)return-1;const Gt=new Date(pt.entries[0].date);return new Date(Lt.entries[0].date).getTime()-Gt.getTime()}),i.forEach(pt=>{pt.entries.sort((Lt,Gt)=>{const Ct=new Date(Lt.date);return new Date(Gt.date).getTime()-Ct.getTime()})}),i},ChatHistoryList=()=>{const a=reactExports.useContext(AppStateContext),i=a==null?void 0:a.state.chatHistory;React.useEffect(()=>{},[a==null?void 0:a.state.chatHistory]);let _e;if(i&&i.length>0)_e=groupByMonth(i);else return jsx(Stack,{horizontal:!0,horizontalAlign:"center",verticalAlign:"center",style:{width:"100%",marginTop:10},children:jsx(StackItem,{children:jsx(Text,{style:{alignSelf:"center",fontWeight:"400",fontSize:14},children:jsx("span",{children:"No chat history."})})})});return jsx(ChatHistoryListItemGroups,{groupedChatHistory:_e})},commandBarStyle={root:{padding:"0",display:"flex",justifyContent:"center",backgroundColor:"transparent"}},commandBarButtonStyle={root:{height:"50px"}};function ChatHistoryPanel(a){var rt,tt,st;const i=reactExports.useContext(AppStateContext),[_e,pt]=React.useState(!1),[Lt,{toggle:Gt}]=useBoolean(!0),[Ct,Rt]=React.useState(!1),[o,it]=React.useState(!1),xt={type:DialogType.close,title:o?"Error deleting all of chat history":"Are you sure you want to clear all chat history?",closeButtonAriaLabel:"Close",subText:o?"Please try again. If the problem persists, please contact the site administrator.":"All chat history will be permanently removed."},et={titleAriaId:"labelId",subtitleAriaId:"subTextId",isBlocking:!0,styles:{main:{maxWidth:450}}},Tt=[{key:"clearAll",text:"Clear all chat history",iconProps:{iconName:"Delete"}}],yt=()=>{i==null||i.dispatch({type:"TOGGLE_CHAT_HISTORY"})},ut=React.useCallback(ot=>{ot.preventDefault(),pt(!0)},[]),ht=React.useCallback(()=>pt(!1),[]),j=async()=>{Rt(!0),(await historyDeleteAll()).ok?(i==null||i.dispatch({type:"DELETE_CHAT_HISTORY"}),Gt()):it(!0),Rt(!1)},_=()=>{Gt(),setTimeout(()=>{it(!1)},2e3)};return React.useEffect(()=>{},[i==null?void 0:i.state.chatHistory,o]),jsxs("section",{className:styles$2.container,"data-is-scrollable":!0,"aria-label":"chat history panel",children:[jsxs(Stack,{horizontal:!0,horizontalAlign:"space-between",verticalAlign:"center",wrap:!0,"aria-label":"chat history header",children:[jsx(StackItem,{children:jsx(Text,{role:"heading","aria-level":2,style:{alignSelf:"center",fontWeight:"600",fontSize:"18px",marginRight:"auto",paddingLeft:"20px"},children:"Chat history"})}),jsx(Stack,{verticalAlign:"start",children:jsxs(Stack,{horizontal:!0,styles:commandBarButtonStyle,children:[jsx(CommandBarButton,{iconProps:{iconName:"More"},title:"Clear all chat history",onClick:ut,"aria-label":"clear all chat history",styles:commandBarStyle,role:"button",id:"moreButton"}),jsx(ContextualMenu,{items:Tt,hidden:!_e,target:"#moreButton",onItemClick:Gt,onDismiss:ht}),jsx(CommandBarButton,{iconProps:{iconName:"Cancel"},title:"Hide",onClick:yt,"aria-label":"hide button",styles:commandBarStyle,role:"button"})]})})]}),jsx(Stack,{"aria-label":"chat history panel content",styles:{root:{display:"flex",flexGrow:1,flexDirection:"column",paddingTop:"2.5px",maxWidth:"100%"}},style:{display:"flex",flexGrow:1,flexDirection:"column",flexWrap:"wrap",padding:"1px"},children:jsxs(Stack,{className:styles$2.chatHistoryListContainer,children:[(i==null?void 0:i.state.chatHistoryLoadingState)===ChatHistoryLoadingState.Success&&(i==null?void 0:i.state.isCosmosDBAvailable.cosmosDB)&&jsx(ChatHistoryList,{}),(i==null?void 0:i.state.chatHistoryLoadingState)===ChatHistoryLoadingState.Fail&&(i==null?void 0:i.state.isCosmosDBAvailable)&&jsx(Fragment,{children:jsx(Stack,{children:jsxs(Stack,{horizontalAlign:"center",verticalAlign:"center",style:{width:"100%",marginTop:10},children:[jsx(StackItem,{children:jsxs(Text,{style:{alignSelf:"center",fontWeight:"400",fontSize:16},children:[((rt=i==null?void 0:i.state.isCosmosDBAvailable)==null?void 0:rt.status)&&jsx("span",{children:(tt=i==null?void 0:i.state.isCosmosDBAvailable)==null?void 0:tt.status}),!((st=i==null?void 0:i.state.isCosmosDBAvailable)!=null&&st.status)&&jsx("span",{children:"Error loading chat history"})]})}),jsx(StackItem,{children:jsx(Text,{style:{alignSelf:"center",fontWeight:"400",fontSize:14},children:jsx("span",{children:"Chat history can't be saved at this time"})})})]})})}),(i==null?void 0:i.state.chatHistoryLoadingState)===ChatHistoryLoadingState.Loading&&jsx(Fragment,{children:jsx(Stack,{children:jsxs(Stack,{horizontal:!0,horizontalAlign:"center",verticalAlign:"center",style:{width:"100%",marginTop:10},children:[jsx(StackItem,{style:{justifyContent:"center",alignItems:"center"},children:jsx(Spinner,{style:{alignSelf:"flex-start",height:"100%",marginRight:"5px"},size:SpinnerSize.medium})}),jsx(StackItem,{children:jsx(Text,{style:{alignSelf:"center",fontWeight:"400",fontSize:14},children:jsx("span",{style:{whiteSpace:"pre-wrap"},children:"Loading chat history"})})})]})})})]})}),jsx(Dialog,{hidden:Lt,onDismiss:Ct?()=>{}:_,dialogContentProps:xt,modalProps:et,children:jsxs(DialogFooter,{children:[!o&&jsx(PrimaryButton,{onClick:j,disabled:Ct,text:"Clear All"}),jsx(DefaultButton,{onClick:_,disabled:Ct,text:o?"Close":"Cancel"})]})})]})}const Chat=()=>{var sr,Zt,Kt,or,tr,cr,mr,Ar;const a=reactExports.useContext(AppStateContext),i=(sr=a==null?void 0:a.state.frontendSettings)==null?void 0:sr.ui,_e=(Zt=a==null?void 0:a.state.frontendSettings)==null?void 0:Zt.auth_enabled,pt=reactExports.useRef(null),[Lt,Gt]=reactExports.useState(!1),[Ct,Rt]=reactExports.useState(!1),[o,it]=reactExports.useState(),[xt,et]=reactExports.useState(!1),[Tt,yt]=reactExports.useState(!1),ut=reactExports.useRef([]),[ht,j]=reactExports.useState(),[_,rt]=reactExports.useState([]),[tt,st]=reactExports.useState([]),[ot,nt]=reactExports.useState("Not Running"),[vt,dt]=reactExports.useState(!1),[bt,{toggle:ft}]=useBoolean(!0),[at,mt]=reactExports.useState(),[St,_t]=reactExports.useState(""),Mt={type:DialogType.close,title:at==null?void 0:at.title,closeButtonAriaLabel:"Close",subText:at==null?void 0:at.subtitle},Et={titleAriaId:"labelId",subtitleAriaId:"subTextId",isBlocking:!0,styles:{main:{maxWidth:450}}},[kt,wt,ct]=["assistant","tool","error"],It="No content in messages object.";reactExports.useEffect(()=>{var br,Ir;if(((br=a==null?void 0:a.state.isCosmosDBAvailable)==null?void 0:br.status)!==CosmosDBStatus.Working&&((Ir=a==null?void 0:a.state.isCosmosDBAvailable)==null?void 0:Ir.status)!==CosmosDBStatus.NotConfigured&&(a==null?void 0:a.state.chatHistoryLoadingState)===ChatHistoryLoadingState.Fail&&bt){let Tr=`${a.state.isCosmosDBAvailable.status}. Please contact the site administrator.`;mt({title:"Chat history is not enabled",subtitle:Tr}),ft()}},[a==null?void 0:a.state.isCosmosDBAvailable]);const At=()=>{ft(),setTimeout(()=>{mt(null)},500)};reactExports.useEffect(()=>{a!=null&&a.state.isLoading||_t((i==null?void 0:i.chat_logo)||(i==null?void 0:i.logo)||Contoso)},[a==null?void 0:a.state.isLoading]),reactExports.useEffect(()=>{Gt((a==null?void 0:a.state.chatHistoryLoadingState)===ChatHistoryLoadingState.Loading)},[a==null?void 0:a.state.chatHistoryLoadingState]);const Ot=async()=>{if(!_e){j(!1);return}(await getUserInfo()).length===0&&window.location.hostname!=="127.0.0.1"?j(!0):j(!1)};let Pt={},zt={},Dt="";const Nt=(br,Ir,Tr)=>{if(br.content.includes("all_exec_results")){const _r=JSON.parse(br.content);st(_r.all_exec_results)}br.role===kt&&(Dt+=br.content,Pt=br,Pt.content=Dt,br.context&&(zt={id:uuid_1(),role:wt,content:br.context,date:new Date().toISOString()})),br.role===wt&&(zt=br),Tr?lodashExports.isEmpty(zt)?rt([..._,Pt]):rt([..._,zt,Pt]):lodashExports.isEmpty(zt)?rt([..._,Ir,Pt]):rt([..._,Ir,zt,Pt])},$t=async(br,Ir,Tr)=>{var Nr,Qr,sn,un,en;Gt(!0),Rt(!0);const _r=new AbortController;ut.current.unshift(_r);const Er={id:uuid_1(),role:"user",content:br,date:new Date().toISOString(),uploaded_file:Tr};let Rr;if(!Ir)Rr={id:Ir??uuid_1(),title:br,messages:[Er],date:new Date().toISOString()};else if(Rr=(Nr=a==null?void 0:a.state)==null?void 0:Nr.currentChat,Rr)Rr.messages.push(Er);else{console.error("Conversation not found."),Gt(!1),Rt(!1),ut.current=ut.current.filter(Xr=>Xr!==_r);return}a==null||a.dispatch({type:"UPDATE_CURRENT_CHAT",payload:Rr}),rt(Rr.messages);const zr={messages:[...Rr.messages.filter(Xr=>Xr.role!==ct)]};let Or={};try{const Xr=await conversationApi(zr,_r.signal,(Qr=a==null?void 0:a.state.frontendSettings)==null?void 0:Qr.conversation_id_header);if(Xr!=null&&Xr.body){const ln=Xr.body.getReader();let mn="";for(;;){nt("Processing");const{done:pn,value:Tn}=await ln.read();if(pn)break;var kr=new TextDecoder("utf-8").decode(Tn);kr.split(` +`).forEach(Fr=>{var Ur,Wr;try{if(Fr!==""&&Fr!=="{}"){if(mn+=Fr,Or=JSON.parse(mn),((Ur=Or.choices)==null?void 0:Ur.length)>0)Or.choices[0].messages.forEach(Gr=>{Gr.id=Or.id,Gr.date=new Date().toISOString()}),(Wr=Or.choices[0].messages)!=null&&Wr.some(Gr=>Gr.role===kt)&&Rt(!1),Or.choices[0].messages.forEach(Gr=>{Nt(Gr,Er,Ir)});else if(Or.error)throw Error(Or.error);mn=""}}catch(Gr){if(Gr instanceof SyntaxError)console.log("Incomplete message. Continuing...");else throw console.error(Gr),Gr}})}Rr.messages.push(zt,Pt),a==null||a.dispatch({type:"UPDATE_CURRENT_CHAT",payload:Rr}),rt([..._,zt,Pt]),logEvent("submit_prompt_success",{input_length:br.length,object_length:((sn=Tr==null?void 0:Tr.contents)==null?void 0:sn.length)??"",object_type:(Tr==null?void 0:Tr.extension)??"",object_size:(Tr==null?void 0:Tr.size)??""})}}catch{if(_r.signal.aborted)rt([..._,Er]);else{let ln="An error occurred. Please try again. If the problem persists, please contact the site administrator.";(un=Or.error)!=null&&un.message?ln=Or.error.message:typeof Or.error=="string"&&(ln=Or.error),ln=Xt(ln);let mn={id:uuid_1(),role:ct,content:ln,date:new Date().toISOString()};Rr.messages.push(mn),a==null||a.dispatch({type:"UPDATE_CURRENT_CHAT",payload:Rr}),rt([..._,mn]),logEvent("submit_prompt_server_error",{input_length:br.length,object_length:((en=Tr==null?void 0:Tr.contents)==null?void 0:en.length)??"",object_type:(Tr==null?void 0:Tr.extension)??"",object_size:(Tr==null?void 0:Tr.size)??"",object_description:ln})}}finally{Gt(!1),Rt(!1),ut.current=ut.current.filter(Xr=>Xr!==_r),nt("Done")}return _r.abort()},Ut=async(br,Ir,Tr)=>{var Qr,sn,un,en,Xr,ln,mn,pn,Tn;Gt(!0),Rt(!0);const _r=new AbortController;ut.current.unshift(_r);const Er={id:uuid_1(),role:"user",content:br,date:new Date().toISOString()};let Rr,zr;if(Ir)if(zr=(sn=(Qr=a==null?void 0:a.state)==null?void 0:Qr.chatHistory)==null?void 0:sn.find(Zr=>Zr.id===Ir),zr)zr.messages.push(Er),Rr={messages:[...zr.messages.filter(Zr=>Zr.role!==ct)]};else{console.error("Conversation not found."),Gt(!1),Rt(!1),ut.current=ut.current.filter(Zr=>Zr!==_r);return}else Rr={messages:[Er].filter(Zr=>Zr.role!==ct)},rt(Rr.messages);let Or={};var kr="Please try again. If the problem persists, please contact the site administrator.";try{const Zr=Ir?await historyGenerate(Rr,_r.signal,Ir):await historyGenerate(Rr,_r.signal);if(!(Zr!=null&&Zr.ok)){const Fr=await Zr.json();kr=Fr.error===void 0?kr:Xt(Fr.error);let Ur={id:uuid_1(),role:ct,content:`There was an error generating a response. Chat history can't be saved at this time. ${kr}`,date:new Date().toISOString()},Wr;if(Ir){if(Wr=(en=(un=a==null?void 0:a.state)==null?void 0:un.chatHistory)==null?void 0:en.find(Gr=>Gr.id===Ir),!Wr){console.error("Conversation not found."),Gt(!1),Rt(!1),ut.current=ut.current.filter(Gr=>Gr!==_r);return}Wr.messages.push(Ur)}else{rt([..._,Er,Ur]),Gt(!1),Rt(!1),ut.current=ut.current.filter(Gr=>Gr!==_r);return}a==null||a.dispatch({type:"UPDATE_CURRENT_CHAT",payload:Wr}),rt([...Wr.messages]);return}if(Zr!=null&&Zr.body){const Fr=Zr.body.getReader();let Ur="";for(;;){nt("Processing");const{done:Gr,value:wr}=await Fr.read();if(Gr)break;var Nr=new TextDecoder("utf-8").decode(wr);Nr.split(` +`).forEach(Dr=>{var Sr,ur,xr,Pr,Vr;try{if(Dr!==""&&Dr!=="{}"){if(Ur+=Dr,Or=JSON.parse(Ur),!((xr=(ur=(Sr=Or.choices)==null?void 0:Sr[0])==null?void 0:ur.messages)!=null&&xr[0].content))throw kr=It,Error();((Pr=Or.choices)==null?void 0:Pr.length)>0&&(Or.choices[0].messages.forEach(qr=>{qr.id=Or.id,qr.date=new Date().toISOString()}),(Vr=Or.choices[0].messages)!=null&&Vr.some(qr=>qr.role===kt)&&Rt(!1),Or.choices[0].messages.forEach(qr=>{Nt(qr,Er,Ir)})),Ur=""}else if(Or.error)throw Error(Or.error)}catch(qr){if(qr instanceof SyntaxError)console.log("Incomplete message. Continuing...");else throw console.error(qr),qr}})}let Wr;if(Ir){if(Wr=(ln=(Xr=a==null?void 0:a.state)==null?void 0:Xr.chatHistory)==null?void 0:ln.find(Gr=>Gr.id===Ir),!Wr){console.error("Conversation not found."),Gt(!1),Rt(!1),ut.current=ut.current.filter(Gr=>Gr!==_r);return}lodashExports.isEmpty(zt)?Wr.messages.push(Pt):Wr.messages.push(zt,Pt)}else Wr={id:Or.history_metadata.conversation_id,title:Or.history_metadata.title,messages:[Er],date:Or.history_metadata.date},lodashExports.isEmpty(zt)?Wr.messages.push(Pt):Wr.messages.push(zt,Pt);if(!Wr){Gt(!1),Rt(!1),ut.current=ut.current.filter(Gr=>Gr!==_r);return}a==null||a.dispatch({type:"UPDATE_CURRENT_CHAT",payload:Wr}),lodashExports.isEmpty(zt)?rt([..._,Pt]):rt([..._,zt,Pt])}}catch{if(_r.signal.aborted)rt([..._,Er]);else{let Fr=`An error occurred. ${kr}`;(mn=Or.error)!=null&&mn.message?Fr=Or.error.message:typeof Or.error=="string"&&(Fr=Or.error),Fr=Xt(Fr);let Ur={id:uuid_1(),role:ct,content:Fr,date:new Date().toISOString()},Wr;if(Ir){if(Wr=(Tn=(pn=a==null?void 0:a.state)==null?void 0:pn.chatHistory)==null?void 0:Tn.find(Gr=>Gr.id===Ir),!Wr){console.error("Conversation not found."),Gt(!1),Rt(!1),ut.current=ut.current.filter(Gr=>Gr!==_r);return}Wr.messages.push(Ur)}else{if(!Or.history_metadata){console.error("Error retrieving data.",Or);let Gr={id:uuid_1(),role:ct,content:Fr,date:new Date().toISOString()};rt([..._,Er,Gr]),Gt(!1),Rt(!1),ut.current=ut.current.filter(wr=>wr!==_r);return}Wr={id:Or.history_metadata.conversation_id,title:Or.history_metadata.title,messages:[Er],date:Or.history_metadata.date},Wr.messages.push(Ur)}if(!Wr){Gt(!1),Rt(!1),ut.current=ut.current.filter(Gr=>Gr!==_r);return}a==null||a.dispatch({type:"UPDATE_CURRENT_CHAT",payload:Wr}),rt([..._,Ur])}}finally{Gt(!1),Rt(!1),ut.current=ut.current.filter(Zr=>Zr!==_r),nt("Done")}return _r.abort()},Ht=async()=>{var br;dt(!0),(br=a==null?void 0:a.state.currentChat)!=null&&br.id&&(a!=null&&a.state.isCosmosDBAvailable.cosmosDB)&&((await historyClear(a==null?void 0:a.state.currentChat.id)).ok?(a==null||a.dispatch({type:"DELETE_CURRENT_CHAT_MESSAGES",payload:a==null?void 0:a.state.currentChat.id}),a==null||a.dispatch({type:"UPDATE_CHAT_HISTORY",payload:a==null?void 0:a.state.currentChat}),it(void 0),et(!1),yt(!1),rt([])):(mt({title:"Error clearing current chat",subtitle:"Please try again. If the problem persists, please contact the site administrator."}),ft())),dt(!1)},Vt=br=>{try{const Ir=br.match(/'innererror': ({.*})\}\}/);if(Ir){const Tr=Ir[1].replace(/'/g,'"').replace(/\bTrue\b/g,"true").replace(/\bFalse\b/g,"false"),_r=JSON.parse(Tr);let Er="";if(_r.content_filter_result.jailbreak.filtered===!0&&(Er="Jailbreak"),Er!=="")return`The prompt was filtered due to triggering Azure OpenAI’s content filtering system. +Reason: This prompt contains content flagged as `+Er+` + +Please modify your prompt and retry. Learn more: https://go.microsoft.com/fwlink/?linkid=2198766`}}catch(Ir){console.error("Failed to parse the error:",Ir)}return br},Xt=br=>{let Ir=br.substring(0,br.indexOf("-")+1);const Tr="{\\'error\\': {\\'message\\': ";if(br.includes(Tr))try{let _r=br.substring(br.indexOf(Tr));_r.endsWith("'}}")&&(_r=_r.substring(0,_r.length-3)),_r=_r.replaceAll("\\'","'"),br=Ir+" "+_r}catch(_r){console.error("Error parsing inner error message: ",_r)}return Vt(br)},qt=()=>{nt("Processing"),rt([]),et(!1),yt(!1),it(void 0),a==null||a.dispatch({type:"UPDATE_CURRENT_CHAT",payload:null}),nt("Done"),logEvent("click_clear_chat",{})},er=()=>{ut.current.forEach(br=>br.abort()),Rt(!1),Gt(!1)};reactExports.useEffect(()=>{a!=null&&a.state.currentChat?rt(a.state.currentChat.messages):rt([])},[a==null?void 0:a.state.currentChat]),reactExports.useLayoutEffect(()=>{var Ir;const br=async(Tr,_r)=>await historyUpdate(Tr,_r);if(a&&a.state.currentChat&&ot==="Done"){if(a.state.isCosmosDBAvailable.cosmosDB){if(!((Ir=a==null?void 0:a.state.currentChat)!=null&&Ir.messages)){console.error("Failure fetching current chat state.");return}const Tr=a.state.currentChat.messages.find(_r=>_r.role===ct);Tr!=null&&Tr.content.includes(It)||br(a.state.currentChat.messages,a.state.currentChat.id).then(_r=>{var Er,Rr;if(!_r.ok){let zr="An error occurred. Answers can't be saved at this time. If the problem persists, please contact the site administrator.",Or={id:uuid_1(),role:ct,content:zr,date:new Date().toISOString()};if(!((Er=a==null?void 0:a.state.currentChat)!=null&&Er.messages))throw{...new Error,message:"Failure fetching current chat state."};rt([...(Rr=a==null?void 0:a.state.currentChat)==null?void 0:Rr.messages,Or])}return _r}).catch(_r=>(console.error("Error: ",_r),{...new Response,ok:!1,status:500}))}a==null||a.dispatch({type:"UPDATE_CHAT_HISTORY",payload:a.state.currentChat}),rt(a.state.currentChat.messages),nt("Not Running")}},[ot]),reactExports.useEffect(()=>{_e!==void 0&&Ot()},[_e]),reactExports.useLayoutEffect(()=>{var br;(br=pt.current)==null||br.scrollIntoView({behavior:"smooth"})},[Ct,ot]);const lr=br=>{it(br),et(!0)},Jt=()=>{yt(!0)},Yt=br=>{br.url&&!br.url.includes("blob.core")&&window.open(br.url,"_blank")},rr=br=>{if(br!=null&&br.role&&(br==null?void 0:br.role)==="tool")try{return JSON.parse(br.content).citations}catch{return[]}return[]},jt=br=>{var Ir;if(br!=null&&br.role&&(br==null?void 0:br.role)==="tool")try{const _r=(Ir=JSON.parse(br.content).all_exec_results.at(-1))==null?void 0:Ir.code_exec_result;return _r===void 0?null:_r}catch{return null}return null},ar=()=>Lt||_&&_.length===0||vt||(a==null?void 0:a.state.chatHistoryLoadingState)===ChatHistoryLoadingState.Loading;return jsx("div",{className:styles$5.container,role:"main",children:ht?jsxs(Stack,{className:styles$5.chatEmptyState,children:[jsx(ShieldLockRegular,{className:styles$5.chatIcon,style:{color:"darkorange",height:"200px",width:"200px"}}),jsx("h1",{className:styles$5.chatEmptyStateTitle,children:"Authentication Not Configured"}),jsxs("h2",{className:styles$5.chatEmptyStateSubtitle,children:["This app does not have authentication configured. Please add an identity provider by finding your app in the"," ",jsx("a",{href:"https://portal.azure.com/",target:"_blank",children:"Azure Portal"}),"and following"," ",jsx("a",{href:"https://learn.microsoft.com/en-us/azure/app-service/scenario-secure-app-authentication-app-service#3-configure-authentication-and-authorization",target:"_blank",children:"these instructions"}),"."]}),jsx("h2",{className:styles$5.chatEmptyStateSubtitle,style:{fontSize:"20px"},children:jsx("strong",{children:"Authentication configuration takes a few minutes to apply. "})}),jsx("h2",{className:styles$5.chatEmptyStateSubtitle,style:{fontSize:"20px"},children:jsx("strong",{children:"If you deployed in the last 10 minutes, please wait and reload the page after 10 minutes."})})]}):jsxs(Stack,{horizontal:!0,className:styles$5.chatRoot,children:[jsxs("div",{className:styles$5.chatContainer,children:[!_||_.length<1?jsxs(Stack,{className:styles$5.chatEmptyState,children:[jsx("img",{src:St,className:styles$5.chatIcon,"aria-hidden":"true",alt:"Official logo for the State of New Jersey"}),jsx("h1",{className:styles$5.chatEmptyStateTitle,children:i==null?void 0:i.chat_title}),jsx("h2",{className:styles$5.chatEmptyStateSubtitle,dangerouslySetInnerHTML:{__html:(i==null?void 0:i.chat_description)??""}})]}):jsxs("div",{className:styles$5.chatMessageStream,style:{marginBottom:Lt?"40px":"0px"},role:"log",children:[_.map((br,Ir)=>jsx(Fragment,{children:br.role==="user"?jsx("div",{className:styles$5.chatMessageUser,tabIndex:0,children:jsxs("div",{className:styles$5.chatMessageUserMessage,children:[br.uploaded_file!=null&&br.uploaded_file.type===FileType.Image&&br.uploaded_file.contents&&jsx("div",{className:styles$5.chatMessageUserAttachment,children:jsx("img",{width:"100",height:"auto",src:br.uploaded_file.contents,alt:br.uploaded_file.name})}),jsx("div",{children:br.content}),br.uploaded_file!=null&&br.uploaded_file.contents&&jsxs("div",{className:styles$5.userAttachmentDisclaimer,children:[br.uploaded_file.name," is being referenced"]})]})}):br.role==="assistant"?jsx("div",{className:styles$5.chatMessageGpt,children:jsx(Answer,{answer:{answer:br.content,citations:rr(_[Ir-1]),plotly_data:jt(_[Ir-1]),message_id:br.id,feedback:br.feedback,exec_results:tt},onCitationClicked:Tr=>lr(Tr),onExectResultClicked:()=>Jt()})}):br.role===ct?jsxs("div",{className:styles$5.chatMessageError,children:[jsxs(Stack,{horizontal:!0,className:styles$5.chatMessageErrorContent,children:[jsx(ErrorCircleRegular,{className:styles$5.errorIcon,style:{color:"rgba(182, 52, 67, 1)"}}),jsx("span",{children:"Error"})]}),jsx("span",{className:styles$5.chatMessageErrorContent,children:br.content})]}):null})),Ct&&jsx(Fragment,{children:jsx("div",{className:styles$5.chatMessageGpt,children:jsx(Answer,{answer:{answer:"Generating answer...",citations:[],plotly_data:null},onCitationClicked:()=>null,onExectResultClicked:()=>null})})}),jsx("div",{ref:pt})]}),jsxs(Stack,{horizontal:!0,className:styles$5.chatInput,children:[Lt&&_.length>0&&jsxs(Stack,{horizontal:!0,className:styles$5.stopGeneratingContainer,role:"button","aria-label":"Stop generating",tabIndex:0,onClick:er,onKeyDown:br=>br.key==="Enter"||br.key===" "?er():null,children:[jsx(SquareRegular,{className:styles$5.stopGeneratingIcon,"aria-hidden":"true"}),jsx("span",{className:styles$5.stopGeneratingText,"aria-hidden":"true",children:"Stop generating"})]}),jsxs(Stack,{children:[((Kt=a==null?void 0:a.state.isCosmosDBAvailable)==null?void 0:Kt.status)!==CosmosDBStatus.NotConfigured&&jsx(CommandBarButton,{role:"button",styles:{icon:{color:"#FFFFFF"},iconDisabled:{color:"#BDBDBD !important"},root:{color:"#FFFFFF",background:"radial-gradient(109.81% 107.82% at 100.1% 90.19%, #0F6CBD 33.63%, #2D87C3 70.31%, #8DDDD8 100%)"},rootDisabled:{background:"#F0F0F0"}},className:styles$5.newChatIcon,iconProps:{iconName:"Add"},onClick:qt,disabled:ar(),"aria-label":"start a new chat button"}),jsx(CommandBarButton,{role:"button",styles:{icon:{color:"#FFFFFF"},iconDisabled:{color:"#BDBDBD !important"},root:{color:"#FFFFFF",background:"radial-gradient(109.81% 107.82% at 100.1% 90.19%, #0F6CBD 33.63%, #2D87C3 70.31%, #8DDDD8 100%)"},rootDisabled:{background:"#F0F0F0"}},className:((or=a==null?void 0:a.state.isCosmosDBAvailable)==null?void 0:or.status)!==CosmosDBStatus.NotConfigured?styles$5.clearChatBroom:styles$5.clearChatBroomNoCosmos,iconProps:{iconName:"Broom"},onClick:((tr=a==null?void 0:a.state.isCosmosDBAvailable)==null?void 0:tr.status)!==CosmosDBStatus.NotConfigured?Ht:qt,disabled:ar(),"aria-label":"clear chat button"}),jsx(Dialog,{hidden:bt,onDismiss:At,dialogContentProps:Mt,modalProps:Et})]}),jsx(QuestionInput,{clearOnSend:!0,placeholder:"Type a new question...",disabled:Lt,onSend:(br,Ir,Tr)=>{var _r;(_r=a==null?void 0:a.state.isCosmosDBAvailable)!=null&&_r.cosmosDB?Ut(br,Ir):$t(br,Ir,Tr)},conversationId:(cr=a==null?void 0:a.state.currentChat)!=null&&cr.id?(mr=a==null?void 0:a.state.currentChat)==null?void 0:mr.id:void 0})]})]}),_&&_.length>0&&xt&&o&&jsxs(Stack.Item,{className:styles$5.citationPanel,tabIndex:0,role:"tabpanel","aria-label":"Citations Panel",children:[jsxs(Stack,{"aria-label":"Citations Panel Header Container",horizontal:!0,className:styles$5.citationPanelHeaderContainer,horizontalAlign:"space-between",verticalAlign:"center",children:[jsx("span",{"aria-label":"Citations",className:styles$5.citationPanelHeader,children:"Citations"}),jsx(IconButton,{iconProps:{iconName:"Cancel"},"aria-label":"Close citations panel",onClick:()=>et(!1)})]}),jsx("h5",{className:styles$5.citationPanelTitle,tabIndex:0,title:o.url&&!o.url.includes("blob.core")?o.url:o.title??"",onClick:()=>Yt(o),children:o.title}),jsx("div",{tabIndex:0,children:jsx(ReactMarkdown,{linkTarget:"_blank",className:styles$5.citationPanelContent,children:purify.sanitize(o.content,{ALLOWED_TAGS:XSSAllowTags}),remarkPlugins:[remarkGfm],rehypePlugins:[rehypeRaw]})})]}),_&&_.length>0&&Tt&&jsxs(Stack.Item,{className:styles$5.citationPanel,tabIndex:0,role:"tabpanel","aria-label":"Intents Panel",children:[jsxs(Stack,{"aria-label":"Intents Panel Header Container",horizontal:!0,className:styles$5.citationPanelHeaderContainer,horizontalAlign:"space-between",verticalAlign:"center",children:[jsx("span",{"aria-label":"Intents",className:styles$5.citationPanelHeader,children:"Intents"}),jsx(IconButton,{iconProps:{iconName:"Cancel"},"aria-label":"Close intents panel",onClick:()=>yt(!1)})]}),jsx(Stack,{horizontalAlign:"space-between",children:tt.map(br=>jsxs(Stack,{className:styles$5.exectResultList,verticalAlign:"space-between",children:[jsxs(Fragment,{children:[jsx("span",{children:"Intent:"})," ",jsx("p",{children:br.intent})]}),br.search_query&&jsxs(Fragment,{children:[jsx("span",{children:"Search Query:"}),jsx(SyntaxHighlighter,{style:nord,wrapLines:!0,lineProps:{style:{wordBreak:"break-all",whiteSpace:"pre-wrap"}},language:"sql",PreTag:"p",children:br.search_query})]}),br.search_result&&jsxs(Fragment,{children:[jsx("span",{children:"Search Result:"})," ",jsx("p",{children:br.search_result})]}),br.code_generated&&jsxs(Fragment,{children:[jsx("span",{children:"Code Generated:"}),jsx(SyntaxHighlighter,{style:nord,wrapLines:!0,lineProps:{style:{wordBreak:"break-all",whiteSpace:"pre-wrap"}},language:"python",PreTag:"p",children:br.code_generated})]})]}))})]}),(a==null?void 0:a.state.isChatHistoryOpen)&&((Ar=a==null?void 0:a.state.isCosmosDBAvailable)==null?void 0:Ar.status)!==CosmosDBStatus.NotConfigured&&jsx(ChatHistoryPanel,{})]})})},shareButtonRoot="_shareButtonRoot_1ep5g_1",historyButtonRoot="_historyButtonRoot_1ep5g_25",styles$1={shareButtonRoot,historyButtonRoot},ShareButton=({onClick:a,text:i})=>jsx(CommandBarButton,{className:styles$1.shareButtonRoot,iconProps:{iconName:"Share"},onClick:a,text:i}),HistoryButton=({onClick:a,text:i})=>jsx(DefaultButton,{className:styles$1.historyButtonRoot,text:i,iconProps:{iconName:"History"},onClick:a}),layout="_layout_1e0ns_1",header="_header_1e0ns_7",headerContainer="_headerContainer_1e0ns_11",headerTitleContainer="_headerTitleContainer_1e0ns_17",headerTitle="_headerTitle_1e0ns_17",headerIcon="_headerIcon_1e0ns_34",shareButtonContainer="_shareButtonContainer_1e0ns_40",shareButton="_shareButton_1e0ns_40",shareButtonText="_shareButtonText_1e0ns_51",urlTextBox="_urlTextBox_1e0ns_61",copyButtonContainer="_copyButtonContainer_1e0ns_71",copyButton="_copyButton_1e0ns_71",copyButtonText="_copyButtonText_1e0ns_93",styles={layout,header,headerContainer,headerTitleContainer,headerTitle,headerIcon,shareButtonContainer,shareButton,shareButtonText,urlTextBox,copyButtonContainer,copyButton,copyButtonText},Layout=()=>{var st,ot,nt;const[a,i]=reactExports.useState(!1),[_e,pt]=reactExports.useState(!1),[Lt,Gt]=reactExports.useState("Copy URL"),[Ct,Rt]=reactExports.useState("Share"),[o,it]=reactExports.useState("Hide chat history"),[xt,et]=reactExports.useState("Show chat history"),[Tt,yt]=reactExports.useState(""),ut=reactExports.useContext(AppStateContext),ht=(st=ut==null?void 0:ut.state.frontendSettings)==null?void 0:st.ui,j=()=>{i(!0)},_=()=>{i(!1),pt(!1),Gt("Copy URL")},rt=()=>{navigator.clipboard.writeText(window.location.href),pt(!0)},tt=()=>{ut==null||ut.dispatch({type:"TOGGLE_CHAT_HISTORY"})};return reactExports.useEffect(()=>{ut!=null&&ut.state.isLoading||yt((ht==null?void 0:ht.logo)||Contoso)},[ut==null?void 0:ut.state.isLoading]),reactExports.useEffect(()=>{_e&&Gt("Copied URL")},[_e]),reactExports.useEffect(()=>{},[ut==null?void 0:ut.state.isCosmosDBAvailable.status]),reactExports.useEffect(()=>{const vt=()=>{window.innerWidth<480?(Rt(void 0),it("Hide history"),et("Show history")):(Rt("Share"),it("Hide chat history"),et("Show chat history"))};return window.addEventListener("resize",vt),vt(),()=>window.removeEventListener("resize",vt)},[]),jsxs("div",{className:styles.layout,children:[jsx("header",{className:styles.header,role:"banner",children:jsxs(Stack,{horizontal:!0,verticalAlign:"center",horizontalAlign:"space-between",children:[jsxs(Stack,{horizontal:!0,verticalAlign:"center",children:[jsx("img",{src:Tt,className:styles.headerIcon,"aria-hidden":"true",alt:""}),jsx(Link,{to:"/",className:styles.headerTitleContainer,children:jsx("h1",{className:styles.headerTitle,children:ht==null?void 0:ht.title})})]}),jsxs(Stack,{horizontal:!0,tokens:{childrenGap:4},className:styles.shareButtonContainer,children:[((ot=ut==null?void 0:ut.state.isCosmosDBAvailable)==null?void 0:ot.status)!==CosmosDBStatus.NotConfigured&&(ht==null?void 0:ht.show_chat_history_button)!==!1&&jsx(HistoryButton,{onClick:tt,text:(nt=ut==null?void 0:ut.state)!=null&&nt.isChatHistoryOpen?o:xt}),(ht==null?void 0:ht.show_share_button)&&jsx(ShareButton,{onClick:j,text:Ct})]})]})}),jsx(Outlet,{}),jsx(Dialog,{onDismiss:_,hidden:!a,styles:{main:[{selectors:{["@media (min-width: 480px)"]:{maxWidth:"600px",background:"#FFFFFF",boxShadow:"0px 14px 28.8px rgba(0, 0, 0, 0.24), 0px 0px 8px rgba(0, 0, 0, 0.2)",borderRadius:"8px",maxHeight:"200px",minHeight:"100px"}}}]},dialogContentProps:{title:"Share the web app",showCloseButton:!0},children:jsxs(Stack,{horizontal:!0,verticalAlign:"center",style:{gap:"8px"},children:[jsx(TextField,{className:styles.urlTextBox,defaultValue:window.location.href,readOnly:!0}),jsxs("div",{className:styles.copyButtonContainer,role:"button",tabIndex:0,"aria-label":"Copy",onClick:rt,onKeyDown:vt=>vt.key==="Enter"||vt.key===" "?rt():null,children:[jsx(CopyRegular,{className:styles.copyButton}),jsx("span",{className:styles.copyButtonText,children:Lt})]})]})}),jsx("feedback-widget",{"only-save-rating-to-analytics":"true","show-comment-disclaimer":"false","skip-email-step":"true"})]})},NoPage=()=>jsx("h1",{children:"404"}),index="";function logGoogleEvent(a,i=void 0){typeof window.gtag=="function"?window.gtag("event",a,{event_category:"Page feedback",event_label:i}):window.dataLayer!=null&&window.dataLayer.push({event:"click_feedback_rating",object_type:i})}let LANG_TO_CONTENT={en:{ratingPrompt:"Did you find what you were looking for on this page?",ratingPositive:"Yes",ratingNegative:"No",commentPromptPositive:"Great! We're looking for ways to improve this page — what ideas come to mind?",commentPromptNegative:"Sorry to hear that. What were you looking for today?",commentPromptDisclaimer:"Your feedback helps improve this web page. For specific questions about your situation, ",commentPromptDisclaimerLink:"contact us",commentSubmit:"Send feedback",commentSubmitLoading:"Sending...",commentConfirmation:"Thanks for sharing your thoughts!",emailPrompt:"To hear about paid feedback opportunities in the future, join our user testing list.",emailLabel:"Email address",emailSubmit:"Join the list",emailSubmitLoading:"Joining...",errorMessage:"Try again, please. We didn't get your answer because of a technical issue.",emailConfirmation:"Thanks for signing up!"},es:{ratingPrompt:"¿Encontraste lo que buscabas en esta página?",ratingPositive:"Sí",ratingNegative:"No",commentPromptPositive:"¡Excelente! Estamos buscando formas de mejorar esta página. ¿Qué ideas se te ocurren?",commentPromptNegative:"Lamentamos escuchar eso. ¿De que se trataba su búsqueda?",commentPromptDisclaimer:"Sus comentarios nos ayudan a mejorar nuestro sitio de web. Si tiene preguntas específicas sobre su situación, ",commentPromptDisclaimerLink:"por favor póngase en contacto con nosotros",commentSubmit:"Enviar comentarios",commentSubmitLoading:"Enviando...",commentConfirmation:"¡Gracias por compartir tus ideas!",emailPrompt:"Para conocer mas oportunidades de comentarios pagados en el futuro, sea parte de nuestra lista de prueba de usuarios.",emailLabel:"Dirección de correo electrónico",emailSubmit:"Sea parte de la lista",emailSubmitLoading:"Enviando...",errorMessage:"Por favor, inténtalo de nuevo. No obtuvimos su respuesta debido a un problema técnico.",emailConfirmation:"¡Gracias por registrarte!"}},API_URL="https://innovation.nj.gov/app/feedback/dev",JSON_HEADER={"Content-Type":"application/json"};class NJFeedbackWidget extends window.HTMLElement{constructor(){super(),this.rating=!1,this.feedbackId=void 0,this.retryRating=!1,this.language=new URL(window.location).searchParams.get("lang")??"en"}connectedCallback(){this.innerHTML=this.getHTML(),this.applyListeners(),this.addStyling(),document.addEventListener("changeLanguage",this.handleChangeLanguage.bind(this))}disconnectedCallback(){document.removeEventListener("changeLanguage",this.handleChangeLanguage.bind(this))}handleChangeLanguage(i){this.language=i.detail,this.innerHTML=this.getHTML(),this.applyListeners()}applyListeners(){this.querySelector("#yesButton").addEventListener("click",i=>{this.handleRating(!0)}),this.querySelector("#noButton").addEventListener("click",i=>{this.handleRating(!1)}),this.querySelector("#commentForm").addEventListener("submit",i=>{i.preventDefault();let _e=document.getElementById("commentSubmit");_e.disabled=!0,_e.textContent=LANG_TO_CONTENT[this.language].commentSubmitLoading,this.hideElement("#commentSubmitError"),i=i.target.elements.comment.value,i=this.retryRating||this.feedbackId==null?{comment:i,rating:this.rating,pageURL:window.location.href}:{feedbackId:this.feedbackId,comment:i},fetch(API_URL+"/comment",{method:"POST",headers:JSON_HEADER,body:JSON.stringify(i)}).then(pt=>pt.json()).then(pt=>{this.feedbackId==null&&(this.feedbackId=pt.feedbackId),pt.message==="Success"&&this.feedbackId!=null?(this.hideElement("#commentPrompt"),this.getAttribute("skip-email-step")==="true"?this.showElement("#confirmation","flex"):this.showElement("#emailPrompt")):this.showElement("#commentSubmitError")}).catch(pt=>{this.showElement("#commentSubmitError")}).finally(()=>{_e.disabled=!1,_e.textContent=LANG_TO_CONTENT[this.language].commentSubmit})}),this.querySelector("#emailForm").addEventListener("submit",i=>{i.preventDefault();let _e=document.getElementById("emailSubmit");_e.disabled=!0,_e.textContent=LANG_TO_CONTENT[this.language].emailSubmitLoading,this.hideElement("#emailSubmitError"),i={feedbackId:this.feedbackId,email:i.target.elements.email.value},fetch(API_URL+"/email",{method:"POST",headers:JSON_HEADER,body:JSON.stringify(i)}).then(pt=>pt.json()).then(pt=>{pt.message==="Success"&&pt.feedbackId!=null?(this.hideElement("#emailPrompt"),this.showElement("#confirmation","flex")):this.showElement("#emailSubmitError")}).catch(pt=>{this.showElement("#emailSubmitError")}).finally(()=>{_e.disabled=!1,_e.textContent=LANG_TO_CONTENT[this.language].emailSubmit})})}handleRating(i){var _e;(this.rating=i)||(this.querySelector("#commentPromptText").innerText=LANG_TO_CONTENT[this.language].commentPromptNegative),this.hideElement("#ratingPrompt"),this.showElement("#commentPrompt"),this.getAttribute("only-save-rating-to-analytics")==="true"?logGoogleEvent("Clicked initial button",i?"Yes":"No"):(document.getElementById("commentSubmit").disabled=!0,_e={pageURL:window.location.href,rating:i},fetch(API_URL+"/rating",{method:"POST",headers:JSON_HEADER,body:JSON.stringify(_e)}).then(pt=>pt.json()).then(pt=>{pt.message==="Success"&&pt.feedbackId!=null?(this.feedbackId=pt.feedbackId,logGoogleEvent("Clicked initial button",i?"Yes":"No")):this.retryRating=!0}).catch(pt=>{this.retryRating=!0}).finally(()=>{document.getElementById("commentSubmit").disabled=!1}))}showElement(i,_e="block"){this.querySelector(i).style.display=_e}hideElement(i){this.querySelector(i).style.display="none"}getHTML(){var i=LANG_TO_CONTENT[this.language],_e=this.getAttribute("contact-link")||"https://www.nj.gov/nj/feedback.html",pt=this.getAttribute("show-comment-disclaimer")!=="false";return`